From 329f718365741e3128fbe8501f74203b73748539 Mon Sep 17 00:00:00 2001 From: rickcole Date: Thu, 30 Jul 2020 20:22:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20gh-pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gh-pages/audio.html | 62 - gh-pages/carousel.html | 62 - gh-pages/chart.html | 62 - gh-pages/crud/aside.html | 62 - gh-pages/crud/columns.html | 62 - gh-pages/crud/fixed.html | 62 - gh-pages/crud/footable.html | 62 - gh-pages/crud/grid.html | 62 - gh-pages/crud/header-group.html | 62 - gh-pages/crud/header-hide.html | 62 - gh-pages/crud/item-actions.html | 62 - gh-pages/crud/jump-next.html | 62 - gh-pages/crud/keyboards.html | 62 - gh-pages/crud/list.html | 62 - gh-pages/crud/load-more.html | 62 - gh-pages/crud/load-once.html | 62 - gh-pages/crud/merge-cell.html | 62 - gh-pages/crud/nested.html | 62 - gh-pages/crud/table.html | 62 - gh-pages/dialog/drawer.html | 62 - gh-pages/dialog/simple.html | 62 - gh-pages/docs.html | 109 ++ gh-pages/docs/advanced.html | 62 - gh-pages/docs/advanced_19de30a.js | 48 - gh-pages/docs/api.html | 62 - gh-pages/docs/api_c4c26b6.js | 27 - gh-pages/docs/basic.html | 62 - gh-pages/docs/basic_1bfad5f.js | 14 - gh-pages/docs/components/action.html | 109 ++ gh-pages/docs/components/action_d8e6841.js | 163 +++ gh-pages/docs/components/alert.html | 109 ++ gh-pages/docs/components/alert_01e045b.js | 39 + gh-pages/docs/components/audio.html | 109 ++ gh-pages/docs/components/audio_1f5c5a9.js | 33 + gh-pages/docs/components/button.html | 109 ++ gh-pages/docs/components/button_b10165a.js | 27 + gh-pages/docs/components/buttongroup.html | 109 ++ gh-pages/docs/components/card.html | 109 ++ gh-pages/docs/components/card_5089ddc.js | 33 + gh-pages/docs/components/cards.html | 109 ++ gh-pages/docs/components/cards_25ddea3.js | 33 + gh-pages/docs/components/carousel.html | 109 ++ gh-pages/docs/components/carousel_306f7cd.js | 33 + gh-pages/docs/components/chart.html | 109 ++ gh-pages/docs/components/chart_02cb848.js | 57 + gh-pages/docs/components/collapse.html | 109 ++ gh-pages/docs/components/collapse_cc8d533.js | 33 + gh-pages/docs/components/color.html | 109 ++ gh-pages/docs/components/color_4f5b643.js | 53 + gh-pages/docs/components/component.html | 109 ++ gh-pages/docs/components/component_0427056.js | 20 + gh-pages/docs/components/container.html | 109 ++ gh-pages/docs/components/container_32c292f.js | 33 + gh-pages/docs/components/crud.html | 109 ++ gh-pages/docs/components/crud_3c02c38.js | 191 +++ gh-pages/docs/components/date.html | 109 ++ gh-pages/docs/components/date_4d93d99.js | 65 + gh-pages/docs/components/dialog.html | 109 ++ gh-pages/docs/components/dialog_470fe73.js | 111 ++ gh-pages/docs/components/divider.html | 109 ++ gh-pages/docs/components/divider_efe5635.js | 39 + gh-pages/docs/components/drawer.html | 109 ++ gh-pages/docs/components/drawer_3ee7135.js | 77 + gh-pages/docs/components/dropdown-button.html | 109 ++ .../components/dropdown-button_9d8957d.js | 33 + gh-pages/docs/components/each.html | 109 ++ gh-pages/docs/components/each_dbf646e.js | 33 + gh-pages/docs/components/form/array.html | 109 ++ .../docs/components/form/array_281ba79.js | 33 + .../docs/components/form/button-group.html | 109 ++ .../components/form/button-group_302a6cd.js | 39 + .../docs/components/form/button-toolbar.html | 109 ++ .../components/form/button-toolbar_ecc5c9a.js | 33 + gh-pages/docs/components/form/button.html | 109 ++ .../docs/components/form/button_59dbe73.js | 45 + .../docs/components/form/chain-select.html | 109 ++ .../components/form/chain-select_7440083.js | 39 + gh-pages/docs/components/form/checkbox.html | 109 ++ .../docs/components/form/checkbox_0f3c4a4.js | 39 + gh-pages/docs/components/form/checkboxes.html | 109 ++ .../components/form/checkboxes_b3f66f0.js | 39 + gh-pages/docs/components/form/city.html | 109 ++ gh-pages/docs/components/form/city_b2ae470.js | 45 + gh-pages/docs/components/form/color.html | 109 ++ .../docs/components/form/color_2e3cfe6.js | 39 + gh-pages/docs/components/form/combo.html | 109 ++ .../docs/components/form/combo_d115739.js | 107 ++ gh-pages/docs/components/form/date-range.html | 109 ++ .../components/form/date-range_cf725ad.js | 33 + gh-pages/docs/components/form/date.html | 109 ++ gh-pages/docs/components/form/date_2b84501.js | 103 ++ .../docs/components/form/datetime-range.html | 109 ++ .../components/form/datetime-range_1aa262b.js | 33 + gh-pages/docs/components/form/datetime.html | 109 ++ .../docs/components/form/datetime_fff2baa.js | 103 ++ .../docs/components/form/diff-editor.html | 109 ++ .../components/form/diff-editor_2cdb917.js | 45 + gh-pages/docs/components/form/editor.html | 109 ++ .../docs/components/form/editor_66729c0.js | 39 + gh-pages/docs/components/form/fieldset.html | 109 ++ .../docs/components/form/fieldset_a7c8a60.js | 53 + gh-pages/docs/components/form/file.html | 109 ++ gh-pages/docs/components/form/file_d0f0212.js | 51 + gh-pages/docs/components/form/formitem.html | 109 ++ .../docs/components/form/formitem_290452c.js | 141 ++ gh-pages/docs/components/form/formula.html | 109 ++ .../docs/components/form/formula_92cc019.js | 51 + gh-pages/docs/components/form/grid.html | 109 ++ gh-pages/docs/components/form/grid_9ac0207.js | 33 + gh-pages/docs/components/form/group.html | 109 ++ .../docs/components/form/group_c2a9f65.js | 39 + gh-pages/docs/components/form/hbox.html | 109 ++ gh-pages/docs/components/form/hbox_70c4e2a.js | 41 + gh-pages/docs/components/form/hidden.html | 109 ++ .../docs/components/form/hidden_66404f8.js | 27 + gh-pages/docs/components/form/image.html | 109 ++ .../docs/components/form/image_c6fe3b6.js | 53 + gh-pages/docs/components/form/index.html | 109 ++ .../docs/components/form/index_3cbf377.js | 187 +++ .../docs/components/form/input-group.html | 109 ++ .../components/form/input-group_0207619.js | 39 + gh-pages/docs/components/form/list.html | 109 ++ gh-pages/docs/components/form/list_8445f10.js | 39 + gh-pages/docs/components/form/matrix.html | 109 ++ .../docs/components/form/matrix_b19da5c.js | 65 + .../docs/components/form/nestedselect.html | 109 ++ .../components/form/nestedselect_5cb111c.js | 45 + gh-pages/docs/components/form/number.html | 109 ++ .../docs/components/form/number_25ae740.js | 33 + gh-pages/docs/components/form/options.html | 109 ++ .../docs/components/form/options_767ada8.js | 223 +++ gh-pages/docs/components/form/panel.html | 109 ++ .../docs/components/form/panel_a25fc7f.js | 33 + gh-pages/docs/components/form/picker.html | 109 ++ .../docs/components/form/picker_5475b7b.js | 45 + gh-pages/docs/components/form/radios.html | 109 ++ .../docs/components/form/radios_150cedb.js | 33 + gh-pages/docs/components/form/range.html | 109 ++ .../docs/components/form/range_03f7f4d.js | 39 + gh-pages/docs/components/form/rating.html | 109 ++ .../docs/components/form/rating_d8a03f7.js | 33 + gh-pages/docs/components/form/repeat.html | 109 ++ .../docs/components/form/repeat_0dd0d65.js | 33 + gh-pages/docs/components/form/rich-text.html | 109 ++ .../docs/components/form/rich-text_834e56f.js | 39 + gh-pages/docs/components/form/select.html | 109 ++ .../docs/components/form/select_ea3976f.js | 33 + gh-pages/docs/components/form/service.html | 109 ++ .../docs/components/form/service_272f05f.js | 59 + gh-pages/docs/components/form/static.html | 109 ++ .../docs/components/form/static_99a4237.js | 39 + gh-pages/docs/components/form/subform.html | 109 ++ .../docs/components/form/subform_0d92a4d.js | 39 + gh-pages/docs/components/form/switch.html | 109 ++ .../docs/components/form/switch_d67faa6.js | 39 + gh-pages/docs/components/form/table.html | 109 ++ .../docs/components/form/table_f742e94.js | 59 + gh-pages/docs/components/form/tabs.html | 109 ++ gh-pages/docs/components/form/tabs_58991e8.js | 33 + gh-pages/docs/components/form/tag.html | 109 ++ gh-pages/docs/components/form/tag_66c7895.js | 33 + gh-pages/docs/components/form/text.html | 109 ++ gh-pages/docs/components/form/text_8c0b817.js | 51 + gh-pages/docs/components/form/textarea.html | 109 ++ .../docs/components/form/textarea_1e5d429.js | 33 + gh-pages/docs/components/form/time.html | 109 ++ gh-pages/docs/components/form/time_ddec400.js | 65 + gh-pages/docs/components/form/tree.html | 109 ++ gh-pages/docs/components/form/tree_471c535.js | 57 + gh-pages/docs/components/form/treeselect.html | 109 ++ .../components/form/treeselect_45dddc3.js | 27 + gh-pages/docs/components/grid.html | 109 ++ gh-pages/docs/components/grid_ea077bf.js | 33 + gh-pages/docs/components/hbox.html | 109 ++ gh-pages/docs/components/hbox_03de3cd.js | 33 + gh-pages/docs/components/html.html | 109 ++ gh-pages/docs/components/html_503cc79.js | 27 + gh-pages/docs/components/icon.html | 109 ++ gh-pages/docs/components/icon_7e31078.js | 27 + gh-pages/docs/components/iframe.html | 109 ++ gh-pages/docs/components/iframe_9c5dffc.js | 33 + gh-pages/docs/components/image.html | 109 ++ gh-pages/docs/components/image_88e9d67.js | 79 + gh-pages/docs/components/images.html | 109 ++ gh-pages/docs/components/images_4ebab74.js | 85 ++ gh-pages/docs/components/json.html | 109 ++ gh-pages/docs/components/json_66a54da.js | 45 + gh-pages/docs/components/link.html | 109 ++ gh-pages/docs/components/link_cda4d11.js | 39 + gh-pages/docs/components/list.html | 109 ++ gh-pages/docs/components/list_2d73202.js | 33 + gh-pages/docs/components/mapping.html | 109 ++ gh-pages/docs/components/mapping_a299efb.js | 59 + gh-pages/docs/components/nav.html | 109 ++ gh-pages/docs/components/nav_81426ec.js | 39 + gh-pages/docs/components/page.html | 109 ++ gh-pages/docs/components/page_caa5013.js | 57 + gh-pages/docs/components/panel.html | 109 ++ gh-pages/docs/components/panel_707cc10.js | 45 + gh-pages/docs/components/progress.html | 109 ++ gh-pages/docs/components/progress_28f96a5.js | 59 + gh-pages/docs/components/qrcode.html | 109 ++ gh-pages/docs/components/qrcode_22fc31a.js | 51 + gh-pages/docs/components/remark.html | 109 ++ gh-pages/docs/components/remark_4b0dc53.js | 45 + gh-pages/docs/components/service.html | 109 ++ gh-pages/docs/components/service_0d0dc92.js | 51 + gh-pages/docs/components/spinner.html | 109 ++ gh-pages/docs/components/spinner_9b73f11.js | 27 + gh-pages/docs/components/status.html | 109 ++ gh-pages/docs/components/status_f2af3fb.js | 33 + gh-pages/docs/components/switch.html | 109 ++ gh-pages/docs/components/switch_5b27078.js | 27 + gh-pages/docs/components/table.html | 109 ++ gh-pages/docs/components/table_f351105.js | 121 ++ gh-pages/docs/components/tabs_7fe91d3.js | 97 ++ gh-pages/docs/components/tabstabs.html | 109 ++ gh-pages/docs/components/tasks.html | 109 ++ gh-pages/docs/components/tasks_52f543f.js | 33 + gh-pages/docs/components/tpl.html | 109 ++ gh-pages/docs/components/tpl_9288c7b.js | 33 + gh-pages/docs/components/video.html | 109 ++ gh-pages/docs/components/video_aa75752.js | 33 + gh-pages/docs/components/wizard.html | 109 ++ gh-pages/docs/components/wizard_29a668b.js | 41 + gh-pages/docs/components/wrapper.html | 109 ++ gh-pages/docs/components/wrapper_d26aaaf.js | 39 + gh-pages/docs/concepts/action.html | 109 ++ gh-pages/docs/concepts/action_1571cc0.js | 41 + gh-pages/docs/concepts/data-mapping.html | 109 ++ .../docs/concepts/data-mapping_a378ea6.js | 271 ++++ .../concepts/datascope-and-datachain.html | 109 ++ .../datascope-and-datachain_9b7aaf7.js | 83 ++ gh-pages/docs/concepts/expression.html | 109 ++ gh-pages/docs/concepts/expression_ad06709.js | 27 + gh-pages/docs/concepts/linkage.html | 109 ++ gh-pages/docs/concepts/linkage_cf54698.js | 73 + gh-pages/docs/concepts/schema.html | 109 ++ gh-pages/docs/concepts/schema_990f7b2.js | 39 + gh-pages/docs/concepts/style.html | 109 ++ gh-pages/docs/concepts/style_a38cafb.js | 87 ++ gh-pages/docs/concepts/template.html | 109 ++ gh-pages/docs/concepts/template_6fdf01a.js | 67 + gh-pages/docs/custom.html | 62 - gh-pages/docs/custom_eb35831.js | 79 - gh-pages/docs/getting-started.html | 62 - gh-pages/docs/getting_started_bd3ac9e.js | 41 - gh-pages/docs/index.html | 109 ++ gh-pages/docs/index_aa0b5b1.js | 63 + gh-pages/docs/intro.html | 62 - gh-pages/docs/intro_ac33587.js | 46 - gh-pages/docs/renderers.html | 62 - gh-pages/docs/renderers/Action.html | 62 - gh-pages/docs/renderers/Action_083821d.js | 76 - gh-pages/docs/renderers/Alert.html | 62 - gh-pages/docs/renderers/Alert_54cb1d4.js | 20 - gh-pages/docs/renderers/Audio.html | 62 - gh-pages/docs/renderers/Audio_5aebb11.js | 20 - gh-pages/docs/renderers/ButtonGroup.html | 62 - .../docs/renderers/ButtonGroup_0227900.js | 20 - gh-pages/docs/renderers/CRUD-Cards.html | 62 - gh-pages/docs/renderers/CRUD-Cards_62597ee.js | 20 - gh-pages/docs/renderers/CRUD-List.html | 62 - gh-pages/docs/renderers/CRUD-List_ec4d0a4.js | 20 - gh-pages/docs/renderers/CRUD-Table.html | 62 - gh-pages/docs/renderers/CRUD-Table_be9310a.js | 20 - gh-pages/docs/renderers/CRUD.html | 62 - gh-pages/docs/renderers/CRUD_4a3a17a.js | 72 - gh-pages/docs/renderers/Card.html | 62 - gh-pages/docs/renderers/Card_54b1c58.js | 20 - gh-pages/docs/renderers/Cards.html | 62 - gh-pages/docs/renderers/Cards_85d81ab.js | 20 - gh-pages/docs/renderers/Carousel.html | 62 - gh-pages/docs/renderers/Carousel_8641cdc.js | 20 - gh-pages/docs/renderers/Chart.html | 62 - gh-pages/docs/renderers/Chart_4cb7078.js | 20 - gh-pages/docs/renderers/Collapse.html | 62 - gh-pages/docs/renderers/Collapse_e5c7144.js | 20 - gh-pages/docs/renderers/Column.html | 62 - gh-pages/docs/renderers/Column_a83876e.js | 20 - gh-pages/docs/renderers/Definitions.html | 62 - .../docs/renderers/Definitions_c19e5b0.js | 20 - gh-pages/docs/renderers/Dialog.html | 62 - gh-pages/docs/renderers/Dialog_58adbe7.js | 20 - gh-pages/docs/renderers/Divider.html | 62 - gh-pages/docs/renderers/Divider_f9eecf6.js | 20 - gh-pages/docs/renderers/Drawer.html | 62 - gh-pages/docs/renderers/Drawer_f1f7b47.js | 20 - gh-pages/docs/renderers/Each.html | 62 - gh-pages/docs/renderers/Each_bd014bf.js | 20 - gh-pages/docs/renderers/Field.html | 62 - gh-pages/docs/renderers/Field_502c51b.js | 82 -- gh-pages/docs/renderers/Form/Array.html | 62 - gh-pages/docs/renderers/Form/Array_5f97598.js | 20 - .../docs/renderers/Form/Button-Group.html | 62 - .../renderers/Form/Button-Group_3a1b588.js | 20 - .../docs/renderers/Form/Button-Toolbar.html | 62 - .../renderers/Form/Button-Toolbar_21e0c6f.js | 20 - gh-pages/docs/renderers/Form/Button.html | 62 - .../docs/renderers/Form/Button_c0048e7.js | 20 - .../docs/renderers/Form/Chained-Select.html | 62 - .../renderers/Form/Chained-Select_e75f010.js | 20 - gh-pages/docs/renderers/Form/Checkbox.html | 62 - .../docs/renderers/Form/Checkbox_5016029.js | 20 - gh-pages/docs/renderers/Form/Checkboxes.html | 62 - .../docs/renderers/Form/Checkboxes_c3f6f17.js | 34 - gh-pages/docs/renderers/Form/City.html | 62 - gh-pages/docs/renderers/Form/City_95447f6.js | 20 - gh-pages/docs/renderers/Form/Color.html | 62 - gh-pages/docs/renderers/Form/Color_e64e8ba.js | 20 - gh-pages/docs/renderers/Form/Combo.html | 62 - gh-pages/docs/renderers/Form/Combo_c0b4570.js | 46 - gh-pages/docs/renderers/Form/Date-Range.html | 62 - .../docs/renderers/Form/Date-Range_8008f2f.js | 20 - gh-pages/docs/renderers/Form/Date.html | 62 - gh-pages/docs/renderers/Form/Date_54e0829.js | 20 - gh-pages/docs/renderers/Form/Datetime.html | 62 - .../docs/renderers/Form/Datetime_86f7f28.js | 20 - gh-pages/docs/renderers/Form/Editor.html | 62 - .../docs/renderers/Form/Editor_69dbb63.js | 32 - gh-pages/docs/renderers/Form/Email.html | 62 - gh-pages/docs/renderers/Form/Email_e595ffa.js | 20 - gh-pages/docs/renderers/Form/FieldSet.html | 62 - .../docs/renderers/Form/FieldSet_8208aaf.js | 20 - gh-pages/docs/renderers/Form/File.html | 62 - gh-pages/docs/renderers/Form/File_35b737e.js | 34 - gh-pages/docs/renderers/Form/Form.html | 62 - gh-pages/docs/renderers/Form/FormItem.html | 62 - .../docs/renderers/Form/FormItem_0c8c7ce.js | 20 - gh-pages/docs/renderers/Form/Form_e88ad2b.js | 48 - gh-pages/docs/renderers/Form/Formula.html | 62 - .../docs/renderers/Form/Formula_1d1634b.js | 20 - gh-pages/docs/renderers/Form/Grid.html | 62 - gh-pages/docs/renderers/Form/Grid_6f16bfb.js | 20 - gh-pages/docs/renderers/Form/Group.html | 62 - gh-pages/docs/renderers/Form/Group_15ccdf1.js | 20 - gh-pages/docs/renderers/Form/HBox.html | 62 - gh-pages/docs/renderers/Form/HBox_1e4c680.js | 20 - gh-pages/docs/renderers/Form/Hidden.html | 62 - .../docs/renderers/Form/Hidden_bc6ba42.js | 20 - gh-pages/docs/renderers/Form/Image.html | 62 - gh-pages/docs/renderers/Form/Image_ff1c98b.js | 20 - gh-pages/docs/renderers/Form/Input-Group.html | 62 - .../renderers/Form/Input-Group_604428f.js | 20 - gh-pages/docs/renderers/Form/List.html | 62 - gh-pages/docs/renderers/Form/List_9183181.js | 34 - gh-pages/docs/renderers/Form/Matrix.html | 62 - .../docs/renderers/Form/Matrix_b0ea40c.js | 20 - .../docs/renderers/Form/NestedSelect.html | 62 - .../renderers/Form/NestedSelect_b4158ce.js | 20 - gh-pages/docs/renderers/Form/Number.html | 62 - .../docs/renderers/Form/Number_6024fc2.js | 20 - gh-pages/docs/renderers/Form/Panel.html | 62 - gh-pages/docs/renderers/Form/Panel_7f777c5.js | 20 - gh-pages/docs/renderers/Form/Password.html | 62 - .../docs/renderers/Form/Password_3d90706.js | 20 - gh-pages/docs/renderers/Form/Picker.html | 62 - .../docs/renderers/Form/Picker_a9dd52c.js | 20 - gh-pages/docs/renderers/Form/Radios.html | 62 - .../docs/renderers/Form/Radios_26e5b40.js | 34 - gh-pages/docs/renderers/Form/Range.html | 62 - gh-pages/docs/renderers/Form/Range_5c3c86f.js | 20 - gh-pages/docs/renderers/Form/Rating.html | 62 - .../docs/renderers/Form/Rating_e39b192.js | 20 - gh-pages/docs/renderers/Form/Repeat.html | 62 - .../docs/renderers/Form/Repeat_546f78e.js | 20 - gh-pages/docs/renderers/Form/Rich-Text.html | 62 - .../docs/renderers/Form/Rich-Text_55fff00.js | 20 - gh-pages/docs/renderers/Form/Select.html | 62 - .../docs/renderers/Form/Select_4350284.js | 34 - gh-pages/docs/renderers/Form/Service.html | 62 - .../docs/renderers/Form/Service_573d6fd.js | 20 - gh-pages/docs/renderers/Form/SubForm.html | 62 - .../docs/renderers/Form/SubForm_d246ec9.js | 20 - gh-pages/docs/renderers/Form/Switch.html | 62 - .../docs/renderers/Form/Switch_5e518bc.js | 20 - gh-pages/docs/renderers/Form/Table.html | 62 - gh-pages/docs/renderers/Form/Table_4ae6d2e.js | 20 - gh-pages/docs/renderers/Form/Tabs.html | 62 - .../docs/renderers/Form/TabsTransfer.html | 62 - .../renderers/Form/TabsTransfer_c8d136a.js | 20 - gh-pages/docs/renderers/Form/Tabs_f7d0349.js | 20 - gh-pages/docs/renderers/Form/Tag.html | 62 - gh-pages/docs/renderers/Form/Tag_a3aaf96.js | 20 - gh-pages/docs/renderers/Form/Text.html | 62 - gh-pages/docs/renderers/Form/Text_0fa050d.js | 20 - gh-pages/docs/renderers/Form/Textarea.html | 62 - .../docs/renderers/Form/Textarea_2f46130.js | 20 - gh-pages/docs/renderers/Form/Time.html | 62 - gh-pages/docs/renderers/Form/Time_a87409c.js | 20 - gh-pages/docs/renderers/Form/Transfer.html | 62 - .../docs/renderers/Form/Transfer_1a1e52b.js | 40 - gh-pages/docs/renderers/Form/Tree.html | 62 - gh-pages/docs/renderers/Form/TreeSelect.html | 62 - .../docs/renderers/Form/TreeSelect_a2839ac.js | 20 - gh-pages/docs/renderers/Form/Tree_f0b622f.js | 20 - gh-pages/docs/renderers/Form/Url.html | 62 - gh-pages/docs/renderers/Form/Url_6893cc6.js | 20 - gh-pages/docs/renderers/Grid.html | 62 - gh-pages/docs/renderers/Grid_2df5b62.js | 20 - gh-pages/docs/renderers/HBox.html | 62 - gh-pages/docs/renderers/HBox_79a17cd.js | 20 - gh-pages/docs/renderers/Html.html | 62 - gh-pages/docs/renderers/Html_1ee09ea.js | 20 - gh-pages/docs/renderers/JSON.html | 62 - gh-pages/docs/renderers/JSON_da34db9.js | 20 - gh-pages/docs/renderers/List.html | 62 - gh-pages/docs/renderers/List_cb69bf8.js | 20 - gh-pages/docs/renderers/Nav.html | 62 - gh-pages/docs/renderers/Nav_2fcdf44.js | 26 - gh-pages/docs/renderers/Operation.html | 62 - gh-pages/docs/renderers/Operation_de3557f.js | 20 - gh-pages/docs/renderers/Page.html | 62 - gh-pages/docs/renderers/Page_6c0b253.js | 36 - gh-pages/docs/renderers/Panel.html | 62 - gh-pages/docs/renderers/Panel_10aa4f4.js | 20 - gh-pages/docs/renderers/Plain.html | 62 - gh-pages/docs/renderers/Plain_ba4ec78.js | 20 - gh-pages/docs/renderers/QRCode.html | 62 - gh-pages/docs/renderers/QRCode_234ed43.js | 20 - gh-pages/docs/renderers/Service.html | 62 - gh-pages/docs/renderers/Service_93518c2.js | 28 - gh-pages/docs/renderers/Static.html | 62 - gh-pages/docs/renderers/Static_483ca85.js | 26 - gh-pages/docs/renderers/Table.html | 62 - gh-pages/docs/renderers/Table_01faf1c.js | 58 - gh-pages/docs/renderers/Tabs.html | 62 - gh-pages/docs/renderers/Tabs_01ea13a.js | 20 - gh-pages/docs/renderers/Tasks.html | 62 - gh-pages/docs/renderers/Tasks_e7740fb.js | 20 - gh-pages/docs/renderers/Tpl.html | 62 - gh-pages/docs/renderers/Tpl_75b23ac.js | 20 - gh-pages/docs/renderers/Types.html | 62 - gh-pages/docs/renderers/Types_8aa1add.js | 40 - gh-pages/docs/renderers/Video.html | 62 - gh-pages/docs/renderers/Video_34ce435.js | 20 - gh-pages/docs/renderers/Wizard.html | 62 - gh-pages/docs/renderers/Wizard_fc89a19.js | 48 - gh-pages/docs/renderers/Wrapper.html | 62 - gh-pages/docs/renderers/Wrapper_489c930.js | 20 - gh-pages/docs/renderers/iFrame.html | 62 - gh-pages/docs/renderers/iFrame_fd4f4c8.js | 20 - gh-pages/docs/renderers_b49067c.js | 14 - gh-pages/docs/start/custom.html | 109 ++ gh-pages/docs/start/custom_a165cb2.js | 79 + gh-pages/docs/start/getting-started.html | 109 ++ .../docs/start/getting-started_904df92.js | 42 + gh-pages/docs/style.html | 62 - gh-pages/docs/style_3996404.js | 82 -- gh-pages/docs/types/api.html | 109 ++ gh-pages/docs/types/api_102dfdc.js | 181 +++ gh-pages/docs/types/schemanode.html | 109 ++ gh-pages/docs/types/schemanode_d42b346.js | 47 + gh-pages/examples.html | 109 ++ gh-pages/form/combo.html | 62 - gh-pages/form/custom.html | 62 - gh-pages/form/definitions.html | 62 - gh-pages/form/fields-tabs.html | 62 - gh-pages/form/fieldset.html | 62 - gh-pages/form/formula.html | 62 - gh-pages/form/full.html | 62 - gh-pages/form/hint.html | 62 - gh-pages/form/ide.html | 62 - gh-pages/form/json-schema.html | 62 - gh-pages/form/mode.html | 62 - gh-pages/form/picker.html | 62 - gh-pages/form/reaction.html | 62 - gh-pages/form/remote.html | 62 - gh-pages/form/rich-text.html | 62 - gh-pages/form/static.html | 62 - gh-pages/form/sub-form.html | 62 - gh-pages/form/table.html | 62 - gh-pages/form/tabs.html | 62 - gh-pages/form/transfer.html | 62 - gh-pages/form/validation.html | 62 - gh-pages/horizontal.html | 62 - gh-pages/iframe.html | 62 - gh-pages/index.html | 61 +- gh-pages/linkpage/crud.html | 62 - gh-pages/linkpage/form.html | 62 - gh-pages/linkpage/form2.html | 62 - gh-pages/linkpage/options-local.html | 62 - gh-pages/linkpage/options.html | 62 - gh-pages/linkpage/page.html | 62 - gh-pages/pages/error.html | 62 - gh-pages/pages/form.html | 62 - gh-pages/pages/simple.html | 62 - gh-pages/pkg/app_de57f66.js | 1304 ----------------- .../{charts_e26cdd4.js => charts_1139e21.js} | 144 +- ...p_de89256.js => index.html_map_60551c6.js} | 507 ++++--- ...js => sdk-placeholder.html_map_b004e91.js} | 59 +- .../pkg/{npm_3938ec9.js => npm_a0ccfd5.js} | 822 ++++++----- gh-pages/pkg/rest_d6dda30.js | 574 ++++++++ gh-pages/pkg/rest_e51f111.js | 22 - ...h-text_6ad7fdb.js => rich-text_5b6e508.js} | 6 +- gh-pages/pkg/style_5dbc8b5.css | 4 + gh-pages/pkg/style_ebc8609.css | 4 - gh-pages/scss/themes/cxd_ae1e6f7.css | 2 +- gh-pages/scss/themes/dark_4ab4fa5.css | 2 +- gh-pages/scss/themes/default_a0692c3.css | 2 +- gh-pages/sdk-placeholder.html | 59 +- gh-pages/sdk.html | 62 - gh-pages/services/data.html | 62 - gh-pages/services/form.html | 62 - gh-pages/services/schema.html | 62 - gh-pages/src/icons/back_a010c56.js | 15 + gh-pages/src/icons/calendar_4feb052.js | 23 + gh-pages/src/icons/caret_2c1e3e2.js | 13 + gh-pages/src/icons/check_ffc4744.js | 13 + gh-pages/src/icons/close_f877507.js | 12 + gh-pages/src/icons/column-filter_6916c3b.js | 14 + gh-pages/src/icons/columns_a79ca1f.js | 13 + gh-pages/src/icons/copy_27500da.js | 14 + gh-pages/src/icons/drag-bar_c7cfeba.js | 13 + gh-pages/src/icons/enter_2f4ecd6.js | 12 + gh-pages/src/icons/exchange_69489aa.js | 13 + gh-pages/src/icons/fail_cc798be.js | 14 + gh-pages/src/icons/file_85a7b87.js | 15 + gh-pages/src/icons/filter_9249661.js | 13 + gh-pages/src/icons/folder_ee06d7d.js | 14 + gh-pages/src/icons/home_451b4ee.js | 13 + gh-pages/src/icons/info-circle_637cf2a.js | 13 + gh-pages/src/icons/info_c744e37.js | 15 + gh-pages/src/icons/left-arrow_cdc2518.js | 13 + gh-pages/src/icons/location_4e65b4d.js | 14 + gh-pages/src/icons/minus_680789d.js | 13 + gh-pages/src/icons/move_17f7902.js | 14 + gh-pages/src/icons/mute_bec02c7.js | 12 + gh-pages/src/icons/pause_88232d0.js | 13 + gh-pages/src/icons/pencil_f253e3f.js | 13 + gh-pages/src/icons/play_e65dfdc.js | 12 + gh-pages/src/icons/plus_1fff691.js | 14 + gh-pages/src/icons/question_2603e42.js | 13 + gh-pages/src/icons/redo_fd4d729.js | 13 + gh-pages/src/icons/reload_bb52da6.js | 13 + gh-pages/src/icons/remove_bd754a4.js | 16 + gh-pages/src/icons/retry_dd12b2b.js | 14 + .../src/icons/right-arrow-bold_3f86372.js | 13 + gh-pages/src/icons/right-arrow_7dfd151.js | 13 + gh-pages/src/icons/schedule_6264048.js | 14 + gh-pages/src/icons/search_57ae5a0.js | 12 + gh-pages/src/icons/sort-asc_4fdf533.js | 13 + gh-pages/src/icons/sort-default_5d6d546.js | 14 + gh-pages/src/icons/sort-desc_ca5cbfd.js | 13 + gh-pages/src/icons/success_70b3df3.js | 15 + gh-pages/src/icons/undo_e49cfd6.js | 13 + gh-pages/src/icons/upload_8d2a2ce.js | 18 + gh-pages/src/icons/view_a74d833.js | 14 + gh-pages/src/icons/volume_eb7b003.js | 13 + gh-pages/src/icons/warning_ca70db3.js | 13 + gh-pages/src/icons/window-restore_9213752.js | 13 + gh-pages/src/icons/zoom-in_f0f9c0e.js | 13 + gh-pages/src/icons/zoom-out_76018f0.js | 13 + gh-pages/tabs/form.html | 62 - gh-pages/tabs/normal.html | 62 - gh-pages/tabs/tab1.html | 62 - gh-pages/tabs/tab2.html | 62 - gh-pages/tabs/tab3.html | 62 - gh-pages/task.html | 62 - gh-pages/test.html | 62 - gh-pages/video.html | 62 - gh-pages/wizard.html | 62 - 562 files changed, 21001 insertions(+), 15225 deletions(-) delete mode 100644 gh-pages/audio.html delete mode 100644 gh-pages/carousel.html delete mode 100644 gh-pages/chart.html delete mode 100644 gh-pages/crud/aside.html delete mode 100644 gh-pages/crud/columns.html delete mode 100644 gh-pages/crud/fixed.html delete mode 100644 gh-pages/crud/footable.html delete mode 100644 gh-pages/crud/grid.html delete mode 100644 gh-pages/crud/header-group.html delete mode 100644 gh-pages/crud/header-hide.html delete mode 100644 gh-pages/crud/item-actions.html delete mode 100644 gh-pages/crud/jump-next.html delete mode 100644 gh-pages/crud/keyboards.html delete mode 100644 gh-pages/crud/list.html delete mode 100644 gh-pages/crud/load-more.html delete mode 100644 gh-pages/crud/load-once.html delete mode 100644 gh-pages/crud/merge-cell.html delete mode 100644 gh-pages/crud/nested.html delete mode 100644 gh-pages/crud/table.html delete mode 100644 gh-pages/dialog/drawer.html delete mode 100644 gh-pages/dialog/simple.html create mode 100644 gh-pages/docs.html delete mode 100644 gh-pages/docs/advanced.html delete mode 100644 gh-pages/docs/advanced_19de30a.js delete mode 100644 gh-pages/docs/api.html delete mode 100644 gh-pages/docs/api_c4c26b6.js delete mode 100644 gh-pages/docs/basic.html delete mode 100644 gh-pages/docs/basic_1bfad5f.js create mode 100644 gh-pages/docs/components/action.html create mode 100644 gh-pages/docs/components/action_d8e6841.js create mode 100644 gh-pages/docs/components/alert.html create mode 100644 gh-pages/docs/components/alert_01e045b.js create mode 100644 gh-pages/docs/components/audio.html create mode 100644 gh-pages/docs/components/audio_1f5c5a9.js create mode 100644 gh-pages/docs/components/button.html create mode 100644 gh-pages/docs/components/button_b10165a.js create mode 100644 gh-pages/docs/components/buttongroup.html create mode 100644 gh-pages/docs/components/card.html create mode 100644 gh-pages/docs/components/card_5089ddc.js create mode 100644 gh-pages/docs/components/cards.html create mode 100644 gh-pages/docs/components/cards_25ddea3.js create mode 100644 gh-pages/docs/components/carousel.html create mode 100644 gh-pages/docs/components/carousel_306f7cd.js create mode 100644 gh-pages/docs/components/chart.html create mode 100644 gh-pages/docs/components/chart_02cb848.js create mode 100644 gh-pages/docs/components/collapse.html create mode 100644 gh-pages/docs/components/collapse_cc8d533.js create mode 100644 gh-pages/docs/components/color.html create mode 100644 gh-pages/docs/components/color_4f5b643.js create mode 100644 gh-pages/docs/components/component.html create mode 100644 gh-pages/docs/components/component_0427056.js create mode 100644 gh-pages/docs/components/container.html create mode 100644 gh-pages/docs/components/container_32c292f.js create mode 100644 gh-pages/docs/components/crud.html create mode 100644 gh-pages/docs/components/crud_3c02c38.js create mode 100644 gh-pages/docs/components/date.html create mode 100644 gh-pages/docs/components/date_4d93d99.js create mode 100644 gh-pages/docs/components/dialog.html create mode 100644 gh-pages/docs/components/dialog_470fe73.js create mode 100644 gh-pages/docs/components/divider.html create mode 100644 gh-pages/docs/components/divider_efe5635.js create mode 100644 gh-pages/docs/components/drawer.html create mode 100644 gh-pages/docs/components/drawer_3ee7135.js create mode 100644 gh-pages/docs/components/dropdown-button.html create mode 100644 gh-pages/docs/components/dropdown-button_9d8957d.js create mode 100644 gh-pages/docs/components/each.html create mode 100644 gh-pages/docs/components/each_dbf646e.js create mode 100644 gh-pages/docs/components/form/array.html create mode 100644 gh-pages/docs/components/form/array_281ba79.js create mode 100644 gh-pages/docs/components/form/button-group.html create mode 100644 gh-pages/docs/components/form/button-group_302a6cd.js create mode 100644 gh-pages/docs/components/form/button-toolbar.html create mode 100644 gh-pages/docs/components/form/button-toolbar_ecc5c9a.js create mode 100644 gh-pages/docs/components/form/button.html create mode 100644 gh-pages/docs/components/form/button_59dbe73.js create mode 100644 gh-pages/docs/components/form/chain-select.html create mode 100644 gh-pages/docs/components/form/chain-select_7440083.js create mode 100644 gh-pages/docs/components/form/checkbox.html create mode 100644 gh-pages/docs/components/form/checkbox_0f3c4a4.js create mode 100644 gh-pages/docs/components/form/checkboxes.html create mode 100644 gh-pages/docs/components/form/checkboxes_b3f66f0.js create mode 100644 gh-pages/docs/components/form/city.html create mode 100644 gh-pages/docs/components/form/city_b2ae470.js create mode 100644 gh-pages/docs/components/form/color.html create mode 100644 gh-pages/docs/components/form/color_2e3cfe6.js create mode 100644 gh-pages/docs/components/form/combo.html create mode 100644 gh-pages/docs/components/form/combo_d115739.js create mode 100644 gh-pages/docs/components/form/date-range.html create mode 100644 gh-pages/docs/components/form/date-range_cf725ad.js create mode 100644 gh-pages/docs/components/form/date.html create mode 100644 gh-pages/docs/components/form/date_2b84501.js create mode 100644 gh-pages/docs/components/form/datetime-range.html create mode 100644 gh-pages/docs/components/form/datetime-range_1aa262b.js create mode 100644 gh-pages/docs/components/form/datetime.html create mode 100644 gh-pages/docs/components/form/datetime_fff2baa.js create mode 100644 gh-pages/docs/components/form/diff-editor.html create mode 100644 gh-pages/docs/components/form/diff-editor_2cdb917.js create mode 100644 gh-pages/docs/components/form/editor.html create mode 100644 gh-pages/docs/components/form/editor_66729c0.js create mode 100644 gh-pages/docs/components/form/fieldset.html create mode 100644 gh-pages/docs/components/form/fieldset_a7c8a60.js create mode 100644 gh-pages/docs/components/form/file.html create mode 100644 gh-pages/docs/components/form/file_d0f0212.js create mode 100644 gh-pages/docs/components/form/formitem.html create mode 100644 gh-pages/docs/components/form/formitem_290452c.js create mode 100644 gh-pages/docs/components/form/formula.html create mode 100644 gh-pages/docs/components/form/formula_92cc019.js create mode 100644 gh-pages/docs/components/form/grid.html create mode 100644 gh-pages/docs/components/form/grid_9ac0207.js create mode 100644 gh-pages/docs/components/form/group.html create mode 100644 gh-pages/docs/components/form/group_c2a9f65.js create mode 100644 gh-pages/docs/components/form/hbox.html create mode 100644 gh-pages/docs/components/form/hbox_70c4e2a.js create mode 100644 gh-pages/docs/components/form/hidden.html create mode 100644 gh-pages/docs/components/form/hidden_66404f8.js create mode 100644 gh-pages/docs/components/form/image.html create mode 100644 gh-pages/docs/components/form/image_c6fe3b6.js create mode 100644 gh-pages/docs/components/form/index.html create mode 100644 gh-pages/docs/components/form/index_3cbf377.js create mode 100644 gh-pages/docs/components/form/input-group.html create mode 100644 gh-pages/docs/components/form/input-group_0207619.js create mode 100644 gh-pages/docs/components/form/list.html create mode 100644 gh-pages/docs/components/form/list_8445f10.js create mode 100644 gh-pages/docs/components/form/matrix.html create mode 100644 gh-pages/docs/components/form/matrix_b19da5c.js create mode 100644 gh-pages/docs/components/form/nestedselect.html create mode 100644 gh-pages/docs/components/form/nestedselect_5cb111c.js create mode 100644 gh-pages/docs/components/form/number.html create mode 100644 gh-pages/docs/components/form/number_25ae740.js create mode 100644 gh-pages/docs/components/form/options.html create mode 100644 gh-pages/docs/components/form/options_767ada8.js create mode 100644 gh-pages/docs/components/form/panel.html create mode 100644 gh-pages/docs/components/form/panel_a25fc7f.js create mode 100644 gh-pages/docs/components/form/picker.html create mode 100644 gh-pages/docs/components/form/picker_5475b7b.js create mode 100644 gh-pages/docs/components/form/radios.html create mode 100644 gh-pages/docs/components/form/radios_150cedb.js create mode 100644 gh-pages/docs/components/form/range.html create mode 100644 gh-pages/docs/components/form/range_03f7f4d.js create mode 100644 gh-pages/docs/components/form/rating.html create mode 100644 gh-pages/docs/components/form/rating_d8a03f7.js create mode 100644 gh-pages/docs/components/form/repeat.html create mode 100644 gh-pages/docs/components/form/repeat_0dd0d65.js create mode 100644 gh-pages/docs/components/form/rich-text.html create mode 100644 gh-pages/docs/components/form/rich-text_834e56f.js create mode 100644 gh-pages/docs/components/form/select.html create mode 100644 gh-pages/docs/components/form/select_ea3976f.js create mode 100644 gh-pages/docs/components/form/service.html create mode 100644 gh-pages/docs/components/form/service_272f05f.js create mode 100644 gh-pages/docs/components/form/static.html create mode 100644 gh-pages/docs/components/form/static_99a4237.js create mode 100644 gh-pages/docs/components/form/subform.html create mode 100644 gh-pages/docs/components/form/subform_0d92a4d.js create mode 100644 gh-pages/docs/components/form/switch.html create mode 100644 gh-pages/docs/components/form/switch_d67faa6.js create mode 100644 gh-pages/docs/components/form/table.html create mode 100644 gh-pages/docs/components/form/table_f742e94.js create mode 100644 gh-pages/docs/components/form/tabs.html create mode 100644 gh-pages/docs/components/form/tabs_58991e8.js create mode 100644 gh-pages/docs/components/form/tag.html create mode 100644 gh-pages/docs/components/form/tag_66c7895.js create mode 100644 gh-pages/docs/components/form/text.html create mode 100644 gh-pages/docs/components/form/text_8c0b817.js create mode 100644 gh-pages/docs/components/form/textarea.html create mode 100644 gh-pages/docs/components/form/textarea_1e5d429.js create mode 100644 gh-pages/docs/components/form/time.html create mode 100644 gh-pages/docs/components/form/time_ddec400.js create mode 100644 gh-pages/docs/components/form/tree.html create mode 100644 gh-pages/docs/components/form/tree_471c535.js create mode 100644 gh-pages/docs/components/form/treeselect.html create mode 100644 gh-pages/docs/components/form/treeselect_45dddc3.js create mode 100644 gh-pages/docs/components/grid.html create mode 100644 gh-pages/docs/components/grid_ea077bf.js create mode 100644 gh-pages/docs/components/hbox.html create mode 100644 gh-pages/docs/components/hbox_03de3cd.js create mode 100644 gh-pages/docs/components/html.html create mode 100644 gh-pages/docs/components/html_503cc79.js create mode 100644 gh-pages/docs/components/icon.html create mode 100644 gh-pages/docs/components/icon_7e31078.js create mode 100644 gh-pages/docs/components/iframe.html create mode 100644 gh-pages/docs/components/iframe_9c5dffc.js create mode 100644 gh-pages/docs/components/image.html create mode 100644 gh-pages/docs/components/image_88e9d67.js create mode 100644 gh-pages/docs/components/images.html create mode 100644 gh-pages/docs/components/images_4ebab74.js create mode 100644 gh-pages/docs/components/json.html create mode 100644 gh-pages/docs/components/json_66a54da.js create mode 100644 gh-pages/docs/components/link.html create mode 100644 gh-pages/docs/components/link_cda4d11.js create mode 100644 gh-pages/docs/components/list.html create mode 100644 gh-pages/docs/components/list_2d73202.js create mode 100644 gh-pages/docs/components/mapping.html create mode 100644 gh-pages/docs/components/mapping_a299efb.js create mode 100644 gh-pages/docs/components/nav.html create mode 100644 gh-pages/docs/components/nav_81426ec.js create mode 100644 gh-pages/docs/components/page.html create mode 100644 gh-pages/docs/components/page_caa5013.js create mode 100644 gh-pages/docs/components/panel.html create mode 100644 gh-pages/docs/components/panel_707cc10.js create mode 100644 gh-pages/docs/components/progress.html create mode 100644 gh-pages/docs/components/progress_28f96a5.js create mode 100644 gh-pages/docs/components/qrcode.html create mode 100644 gh-pages/docs/components/qrcode_22fc31a.js create mode 100644 gh-pages/docs/components/remark.html create mode 100644 gh-pages/docs/components/remark_4b0dc53.js create mode 100644 gh-pages/docs/components/service.html create mode 100644 gh-pages/docs/components/service_0d0dc92.js create mode 100644 gh-pages/docs/components/spinner.html create mode 100644 gh-pages/docs/components/spinner_9b73f11.js create mode 100644 gh-pages/docs/components/status.html create mode 100644 gh-pages/docs/components/status_f2af3fb.js create mode 100644 gh-pages/docs/components/switch.html create mode 100644 gh-pages/docs/components/switch_5b27078.js create mode 100644 gh-pages/docs/components/table.html create mode 100644 gh-pages/docs/components/table_f351105.js create mode 100644 gh-pages/docs/components/tabs_7fe91d3.js create mode 100644 gh-pages/docs/components/tabstabs.html create mode 100644 gh-pages/docs/components/tasks.html create mode 100644 gh-pages/docs/components/tasks_52f543f.js create mode 100644 gh-pages/docs/components/tpl.html create mode 100644 gh-pages/docs/components/tpl_9288c7b.js create mode 100644 gh-pages/docs/components/video.html create mode 100644 gh-pages/docs/components/video_aa75752.js create mode 100644 gh-pages/docs/components/wizard.html create mode 100644 gh-pages/docs/components/wizard_29a668b.js create mode 100644 gh-pages/docs/components/wrapper.html create mode 100644 gh-pages/docs/components/wrapper_d26aaaf.js create mode 100644 gh-pages/docs/concepts/action.html create mode 100644 gh-pages/docs/concepts/action_1571cc0.js create mode 100644 gh-pages/docs/concepts/data-mapping.html create mode 100644 gh-pages/docs/concepts/data-mapping_a378ea6.js create mode 100644 gh-pages/docs/concepts/datascope-and-datachain.html create mode 100644 gh-pages/docs/concepts/datascope-and-datachain_9b7aaf7.js create mode 100644 gh-pages/docs/concepts/expression.html create mode 100644 gh-pages/docs/concepts/expression_ad06709.js create mode 100644 gh-pages/docs/concepts/linkage.html create mode 100644 gh-pages/docs/concepts/linkage_cf54698.js create mode 100644 gh-pages/docs/concepts/schema.html create mode 100644 gh-pages/docs/concepts/schema_990f7b2.js create mode 100644 gh-pages/docs/concepts/style.html create mode 100644 gh-pages/docs/concepts/style_a38cafb.js create mode 100644 gh-pages/docs/concepts/template.html create mode 100644 gh-pages/docs/concepts/template_6fdf01a.js delete mode 100644 gh-pages/docs/custom.html delete mode 100644 gh-pages/docs/custom_eb35831.js delete mode 100644 gh-pages/docs/getting-started.html delete mode 100644 gh-pages/docs/getting_started_bd3ac9e.js create mode 100644 gh-pages/docs/index.html create mode 100644 gh-pages/docs/index_aa0b5b1.js delete mode 100644 gh-pages/docs/intro.html delete mode 100644 gh-pages/docs/intro_ac33587.js delete mode 100644 gh-pages/docs/renderers.html delete mode 100644 gh-pages/docs/renderers/Action.html delete mode 100644 gh-pages/docs/renderers/Action_083821d.js delete mode 100644 gh-pages/docs/renderers/Alert.html delete mode 100644 gh-pages/docs/renderers/Alert_54cb1d4.js delete mode 100644 gh-pages/docs/renderers/Audio.html delete mode 100644 gh-pages/docs/renderers/Audio_5aebb11.js delete mode 100644 gh-pages/docs/renderers/ButtonGroup.html delete mode 100644 gh-pages/docs/renderers/ButtonGroup_0227900.js delete mode 100644 gh-pages/docs/renderers/CRUD-Cards.html delete mode 100644 gh-pages/docs/renderers/CRUD-Cards_62597ee.js delete mode 100644 gh-pages/docs/renderers/CRUD-List.html delete mode 100644 gh-pages/docs/renderers/CRUD-List_ec4d0a4.js delete mode 100644 gh-pages/docs/renderers/CRUD-Table.html delete mode 100644 gh-pages/docs/renderers/CRUD-Table_be9310a.js delete mode 100644 gh-pages/docs/renderers/CRUD.html delete mode 100644 gh-pages/docs/renderers/CRUD_4a3a17a.js delete mode 100644 gh-pages/docs/renderers/Card.html delete mode 100644 gh-pages/docs/renderers/Card_54b1c58.js delete mode 100644 gh-pages/docs/renderers/Cards.html delete mode 100644 gh-pages/docs/renderers/Cards_85d81ab.js delete mode 100644 gh-pages/docs/renderers/Carousel.html delete mode 100644 gh-pages/docs/renderers/Carousel_8641cdc.js delete mode 100644 gh-pages/docs/renderers/Chart.html delete mode 100644 gh-pages/docs/renderers/Chart_4cb7078.js delete mode 100644 gh-pages/docs/renderers/Collapse.html delete mode 100644 gh-pages/docs/renderers/Collapse_e5c7144.js delete mode 100644 gh-pages/docs/renderers/Column.html delete mode 100644 gh-pages/docs/renderers/Column_a83876e.js delete mode 100644 gh-pages/docs/renderers/Definitions.html delete mode 100644 gh-pages/docs/renderers/Definitions_c19e5b0.js delete mode 100644 gh-pages/docs/renderers/Dialog.html delete mode 100644 gh-pages/docs/renderers/Dialog_58adbe7.js delete mode 100644 gh-pages/docs/renderers/Divider.html delete mode 100644 gh-pages/docs/renderers/Divider_f9eecf6.js delete mode 100644 gh-pages/docs/renderers/Drawer.html delete mode 100644 gh-pages/docs/renderers/Drawer_f1f7b47.js delete mode 100644 gh-pages/docs/renderers/Each.html delete mode 100644 gh-pages/docs/renderers/Each_bd014bf.js delete mode 100644 gh-pages/docs/renderers/Field.html delete mode 100644 gh-pages/docs/renderers/Field_502c51b.js delete mode 100644 gh-pages/docs/renderers/Form/Array.html delete mode 100644 gh-pages/docs/renderers/Form/Array_5f97598.js delete mode 100644 gh-pages/docs/renderers/Form/Button-Group.html delete mode 100644 gh-pages/docs/renderers/Form/Button-Group_3a1b588.js delete mode 100644 gh-pages/docs/renderers/Form/Button-Toolbar.html delete mode 100644 gh-pages/docs/renderers/Form/Button-Toolbar_21e0c6f.js delete mode 100644 gh-pages/docs/renderers/Form/Button.html delete mode 100644 gh-pages/docs/renderers/Form/Button_c0048e7.js delete mode 100644 gh-pages/docs/renderers/Form/Chained-Select.html delete mode 100644 gh-pages/docs/renderers/Form/Chained-Select_e75f010.js delete mode 100644 gh-pages/docs/renderers/Form/Checkbox.html delete mode 100644 gh-pages/docs/renderers/Form/Checkbox_5016029.js delete mode 100644 gh-pages/docs/renderers/Form/Checkboxes.html delete mode 100644 gh-pages/docs/renderers/Form/Checkboxes_c3f6f17.js delete mode 100644 gh-pages/docs/renderers/Form/City.html delete mode 100644 gh-pages/docs/renderers/Form/City_95447f6.js delete mode 100644 gh-pages/docs/renderers/Form/Color.html delete mode 100644 gh-pages/docs/renderers/Form/Color_e64e8ba.js delete mode 100644 gh-pages/docs/renderers/Form/Combo.html delete mode 100644 gh-pages/docs/renderers/Form/Combo_c0b4570.js delete mode 100644 gh-pages/docs/renderers/Form/Date-Range.html delete mode 100644 gh-pages/docs/renderers/Form/Date-Range_8008f2f.js delete mode 100644 gh-pages/docs/renderers/Form/Date.html delete mode 100644 gh-pages/docs/renderers/Form/Date_54e0829.js delete mode 100644 gh-pages/docs/renderers/Form/Datetime.html delete mode 100644 gh-pages/docs/renderers/Form/Datetime_86f7f28.js delete mode 100644 gh-pages/docs/renderers/Form/Editor.html delete mode 100644 gh-pages/docs/renderers/Form/Editor_69dbb63.js delete mode 100644 gh-pages/docs/renderers/Form/Email.html delete mode 100644 gh-pages/docs/renderers/Form/Email_e595ffa.js delete mode 100644 gh-pages/docs/renderers/Form/FieldSet.html delete mode 100644 gh-pages/docs/renderers/Form/FieldSet_8208aaf.js delete mode 100644 gh-pages/docs/renderers/Form/File.html delete mode 100644 gh-pages/docs/renderers/Form/File_35b737e.js delete mode 100644 gh-pages/docs/renderers/Form/Form.html delete mode 100644 gh-pages/docs/renderers/Form/FormItem.html delete mode 100644 gh-pages/docs/renderers/Form/FormItem_0c8c7ce.js delete mode 100644 gh-pages/docs/renderers/Form/Form_e88ad2b.js delete mode 100644 gh-pages/docs/renderers/Form/Formula.html delete mode 100644 gh-pages/docs/renderers/Form/Formula_1d1634b.js delete mode 100644 gh-pages/docs/renderers/Form/Grid.html delete mode 100644 gh-pages/docs/renderers/Form/Grid_6f16bfb.js delete mode 100644 gh-pages/docs/renderers/Form/Group.html delete mode 100644 gh-pages/docs/renderers/Form/Group_15ccdf1.js delete mode 100644 gh-pages/docs/renderers/Form/HBox.html delete mode 100644 gh-pages/docs/renderers/Form/HBox_1e4c680.js delete mode 100644 gh-pages/docs/renderers/Form/Hidden.html delete mode 100644 gh-pages/docs/renderers/Form/Hidden_bc6ba42.js delete mode 100644 gh-pages/docs/renderers/Form/Image.html delete mode 100644 gh-pages/docs/renderers/Form/Image_ff1c98b.js delete mode 100644 gh-pages/docs/renderers/Form/Input-Group.html delete mode 100644 gh-pages/docs/renderers/Form/Input-Group_604428f.js delete mode 100644 gh-pages/docs/renderers/Form/List.html delete mode 100644 gh-pages/docs/renderers/Form/List_9183181.js delete mode 100644 gh-pages/docs/renderers/Form/Matrix.html delete mode 100644 gh-pages/docs/renderers/Form/Matrix_b0ea40c.js delete mode 100644 gh-pages/docs/renderers/Form/NestedSelect.html delete mode 100644 gh-pages/docs/renderers/Form/NestedSelect_b4158ce.js delete mode 100644 gh-pages/docs/renderers/Form/Number.html delete mode 100644 gh-pages/docs/renderers/Form/Number_6024fc2.js delete mode 100644 gh-pages/docs/renderers/Form/Panel.html delete mode 100644 gh-pages/docs/renderers/Form/Panel_7f777c5.js delete mode 100644 gh-pages/docs/renderers/Form/Password.html delete mode 100644 gh-pages/docs/renderers/Form/Password_3d90706.js delete mode 100644 gh-pages/docs/renderers/Form/Picker.html delete mode 100644 gh-pages/docs/renderers/Form/Picker_a9dd52c.js delete mode 100644 gh-pages/docs/renderers/Form/Radios.html delete mode 100644 gh-pages/docs/renderers/Form/Radios_26e5b40.js delete mode 100644 gh-pages/docs/renderers/Form/Range.html delete mode 100644 gh-pages/docs/renderers/Form/Range_5c3c86f.js delete mode 100644 gh-pages/docs/renderers/Form/Rating.html delete mode 100644 gh-pages/docs/renderers/Form/Rating_e39b192.js delete mode 100644 gh-pages/docs/renderers/Form/Repeat.html delete mode 100644 gh-pages/docs/renderers/Form/Repeat_546f78e.js delete mode 100644 gh-pages/docs/renderers/Form/Rich-Text.html delete mode 100644 gh-pages/docs/renderers/Form/Rich-Text_55fff00.js delete mode 100644 gh-pages/docs/renderers/Form/Select.html delete mode 100644 gh-pages/docs/renderers/Form/Select_4350284.js delete mode 100644 gh-pages/docs/renderers/Form/Service.html delete mode 100644 gh-pages/docs/renderers/Form/Service_573d6fd.js delete mode 100644 gh-pages/docs/renderers/Form/SubForm.html delete mode 100644 gh-pages/docs/renderers/Form/SubForm_d246ec9.js delete mode 100644 gh-pages/docs/renderers/Form/Switch.html delete mode 100644 gh-pages/docs/renderers/Form/Switch_5e518bc.js delete mode 100644 gh-pages/docs/renderers/Form/Table.html delete mode 100644 gh-pages/docs/renderers/Form/Table_4ae6d2e.js delete mode 100644 gh-pages/docs/renderers/Form/Tabs.html delete mode 100644 gh-pages/docs/renderers/Form/TabsTransfer.html delete mode 100644 gh-pages/docs/renderers/Form/TabsTransfer_c8d136a.js delete mode 100644 gh-pages/docs/renderers/Form/Tabs_f7d0349.js delete mode 100644 gh-pages/docs/renderers/Form/Tag.html delete mode 100644 gh-pages/docs/renderers/Form/Tag_a3aaf96.js delete mode 100644 gh-pages/docs/renderers/Form/Text.html delete mode 100644 gh-pages/docs/renderers/Form/Text_0fa050d.js delete mode 100644 gh-pages/docs/renderers/Form/Textarea.html delete mode 100644 gh-pages/docs/renderers/Form/Textarea_2f46130.js delete mode 100644 gh-pages/docs/renderers/Form/Time.html delete mode 100644 gh-pages/docs/renderers/Form/Time_a87409c.js delete mode 100644 gh-pages/docs/renderers/Form/Transfer.html delete mode 100644 gh-pages/docs/renderers/Form/Transfer_1a1e52b.js delete mode 100644 gh-pages/docs/renderers/Form/Tree.html delete mode 100644 gh-pages/docs/renderers/Form/TreeSelect.html delete mode 100644 gh-pages/docs/renderers/Form/TreeSelect_a2839ac.js delete mode 100644 gh-pages/docs/renderers/Form/Tree_f0b622f.js delete mode 100644 gh-pages/docs/renderers/Form/Url.html delete mode 100644 gh-pages/docs/renderers/Form/Url_6893cc6.js delete mode 100644 gh-pages/docs/renderers/Grid.html delete mode 100644 gh-pages/docs/renderers/Grid_2df5b62.js delete mode 100644 gh-pages/docs/renderers/HBox.html delete mode 100644 gh-pages/docs/renderers/HBox_79a17cd.js delete mode 100644 gh-pages/docs/renderers/Html.html delete mode 100644 gh-pages/docs/renderers/Html_1ee09ea.js delete mode 100644 gh-pages/docs/renderers/JSON.html delete mode 100644 gh-pages/docs/renderers/JSON_da34db9.js delete mode 100644 gh-pages/docs/renderers/List.html delete mode 100644 gh-pages/docs/renderers/List_cb69bf8.js delete mode 100644 gh-pages/docs/renderers/Nav.html delete mode 100644 gh-pages/docs/renderers/Nav_2fcdf44.js delete mode 100644 gh-pages/docs/renderers/Operation.html delete mode 100644 gh-pages/docs/renderers/Operation_de3557f.js delete mode 100644 gh-pages/docs/renderers/Page.html delete mode 100644 gh-pages/docs/renderers/Page_6c0b253.js delete mode 100644 gh-pages/docs/renderers/Panel.html delete mode 100644 gh-pages/docs/renderers/Panel_10aa4f4.js delete mode 100644 gh-pages/docs/renderers/Plain.html delete mode 100644 gh-pages/docs/renderers/Plain_ba4ec78.js delete mode 100644 gh-pages/docs/renderers/QRCode.html delete mode 100644 gh-pages/docs/renderers/QRCode_234ed43.js delete mode 100644 gh-pages/docs/renderers/Service.html delete mode 100644 gh-pages/docs/renderers/Service_93518c2.js delete mode 100644 gh-pages/docs/renderers/Static.html delete mode 100644 gh-pages/docs/renderers/Static_483ca85.js delete mode 100644 gh-pages/docs/renderers/Table.html delete mode 100644 gh-pages/docs/renderers/Table_01faf1c.js delete mode 100644 gh-pages/docs/renderers/Tabs.html delete mode 100644 gh-pages/docs/renderers/Tabs_01ea13a.js delete mode 100644 gh-pages/docs/renderers/Tasks.html delete mode 100644 gh-pages/docs/renderers/Tasks_e7740fb.js delete mode 100644 gh-pages/docs/renderers/Tpl.html delete mode 100644 gh-pages/docs/renderers/Tpl_75b23ac.js delete mode 100644 gh-pages/docs/renderers/Types.html delete mode 100644 gh-pages/docs/renderers/Types_8aa1add.js delete mode 100644 gh-pages/docs/renderers/Video.html delete mode 100644 gh-pages/docs/renderers/Video_34ce435.js delete mode 100644 gh-pages/docs/renderers/Wizard.html delete mode 100644 gh-pages/docs/renderers/Wizard_fc89a19.js delete mode 100644 gh-pages/docs/renderers/Wrapper.html delete mode 100644 gh-pages/docs/renderers/Wrapper_489c930.js delete mode 100644 gh-pages/docs/renderers/iFrame.html delete mode 100644 gh-pages/docs/renderers/iFrame_fd4f4c8.js delete mode 100644 gh-pages/docs/renderers_b49067c.js create mode 100644 gh-pages/docs/start/custom.html create mode 100644 gh-pages/docs/start/custom_a165cb2.js create mode 100644 gh-pages/docs/start/getting-started.html create mode 100644 gh-pages/docs/start/getting-started_904df92.js delete mode 100644 gh-pages/docs/style.html delete mode 100644 gh-pages/docs/style_3996404.js create mode 100644 gh-pages/docs/types/api.html create mode 100644 gh-pages/docs/types/api_102dfdc.js create mode 100644 gh-pages/docs/types/schemanode.html create mode 100644 gh-pages/docs/types/schemanode_d42b346.js create mode 100644 gh-pages/examples.html delete mode 100644 gh-pages/form/combo.html delete mode 100644 gh-pages/form/custom.html delete mode 100644 gh-pages/form/definitions.html delete mode 100644 gh-pages/form/fields-tabs.html delete mode 100644 gh-pages/form/fieldset.html delete mode 100644 gh-pages/form/formula.html delete mode 100644 gh-pages/form/full.html delete mode 100644 gh-pages/form/hint.html delete mode 100644 gh-pages/form/ide.html delete mode 100644 gh-pages/form/json-schema.html delete mode 100644 gh-pages/form/mode.html delete mode 100644 gh-pages/form/picker.html delete mode 100644 gh-pages/form/reaction.html delete mode 100644 gh-pages/form/remote.html delete mode 100644 gh-pages/form/rich-text.html delete mode 100644 gh-pages/form/static.html delete mode 100644 gh-pages/form/sub-form.html delete mode 100644 gh-pages/form/table.html delete mode 100644 gh-pages/form/tabs.html delete mode 100644 gh-pages/form/transfer.html delete mode 100644 gh-pages/form/validation.html delete mode 100644 gh-pages/horizontal.html delete mode 100644 gh-pages/iframe.html delete mode 100644 gh-pages/linkpage/crud.html delete mode 100644 gh-pages/linkpage/form.html delete mode 100644 gh-pages/linkpage/form2.html delete mode 100644 gh-pages/linkpage/options-local.html delete mode 100644 gh-pages/linkpage/options.html delete mode 100644 gh-pages/linkpage/page.html delete mode 100644 gh-pages/pages/error.html delete mode 100644 gh-pages/pages/form.html delete mode 100644 gh-pages/pages/simple.html delete mode 100644 gh-pages/pkg/app_de57f66.js rename gh-pages/pkg/{charts_e26cdd4.js => charts_1139e21.js} (79%) rename gh-pages/pkg/examples/{index.html_map_de89256.js => index.html_map_60551c6.js} (91%) rename gh-pages/pkg/examples/{sdk-placeholder.html_map_8bc3a56.js => sdk-placeholder.html_map_b004e91.js} (99%) rename gh-pages/pkg/{npm_3938ec9.js => npm_a0ccfd5.js} (73%) create mode 100644 gh-pages/pkg/rest_d6dda30.js delete mode 100644 gh-pages/pkg/rest_e51f111.js rename gh-pages/pkg/{rich-text_6ad7fdb.js => rich-text_5b6e508.js} (86%) create mode 100644 gh-pages/pkg/style_5dbc8b5.css delete mode 100644 gh-pages/pkg/style_ebc8609.css delete mode 100644 gh-pages/sdk.html delete mode 100644 gh-pages/services/data.html delete mode 100644 gh-pages/services/form.html delete mode 100644 gh-pages/services/schema.html create mode 100644 gh-pages/src/icons/back_a010c56.js create mode 100644 gh-pages/src/icons/calendar_4feb052.js create mode 100644 gh-pages/src/icons/caret_2c1e3e2.js create mode 100644 gh-pages/src/icons/check_ffc4744.js create mode 100644 gh-pages/src/icons/close_f877507.js create mode 100644 gh-pages/src/icons/column-filter_6916c3b.js create mode 100644 gh-pages/src/icons/columns_a79ca1f.js create mode 100644 gh-pages/src/icons/copy_27500da.js create mode 100644 gh-pages/src/icons/drag-bar_c7cfeba.js create mode 100644 gh-pages/src/icons/enter_2f4ecd6.js create mode 100644 gh-pages/src/icons/exchange_69489aa.js create mode 100644 gh-pages/src/icons/fail_cc798be.js create mode 100644 gh-pages/src/icons/file_85a7b87.js create mode 100644 gh-pages/src/icons/filter_9249661.js create mode 100644 gh-pages/src/icons/folder_ee06d7d.js create mode 100644 gh-pages/src/icons/home_451b4ee.js create mode 100644 gh-pages/src/icons/info-circle_637cf2a.js create mode 100644 gh-pages/src/icons/info_c744e37.js create mode 100644 gh-pages/src/icons/left-arrow_cdc2518.js create mode 100644 gh-pages/src/icons/location_4e65b4d.js create mode 100644 gh-pages/src/icons/minus_680789d.js create mode 100644 gh-pages/src/icons/move_17f7902.js create mode 100644 gh-pages/src/icons/mute_bec02c7.js create mode 100644 gh-pages/src/icons/pause_88232d0.js create mode 100644 gh-pages/src/icons/pencil_f253e3f.js create mode 100644 gh-pages/src/icons/play_e65dfdc.js create mode 100644 gh-pages/src/icons/plus_1fff691.js create mode 100644 gh-pages/src/icons/question_2603e42.js create mode 100644 gh-pages/src/icons/redo_fd4d729.js create mode 100644 gh-pages/src/icons/reload_bb52da6.js create mode 100644 gh-pages/src/icons/remove_bd754a4.js create mode 100644 gh-pages/src/icons/retry_dd12b2b.js create mode 100644 gh-pages/src/icons/right-arrow-bold_3f86372.js create mode 100644 gh-pages/src/icons/right-arrow_7dfd151.js create mode 100644 gh-pages/src/icons/schedule_6264048.js create mode 100644 gh-pages/src/icons/search_57ae5a0.js create mode 100644 gh-pages/src/icons/sort-asc_4fdf533.js create mode 100644 gh-pages/src/icons/sort-default_5d6d546.js create mode 100644 gh-pages/src/icons/sort-desc_ca5cbfd.js create mode 100644 gh-pages/src/icons/success_70b3df3.js create mode 100644 gh-pages/src/icons/undo_e49cfd6.js create mode 100644 gh-pages/src/icons/upload_8d2a2ce.js create mode 100644 gh-pages/src/icons/view_a74d833.js create mode 100644 gh-pages/src/icons/volume_eb7b003.js create mode 100644 gh-pages/src/icons/warning_ca70db3.js create mode 100644 gh-pages/src/icons/window-restore_9213752.js create mode 100644 gh-pages/src/icons/zoom-in_f0f9c0e.js create mode 100644 gh-pages/src/icons/zoom-out_76018f0.js delete mode 100644 gh-pages/tabs/form.html delete mode 100644 gh-pages/tabs/normal.html delete mode 100644 gh-pages/tabs/tab1.html delete mode 100644 gh-pages/tabs/tab2.html delete mode 100644 gh-pages/tabs/tab3.html delete mode 100644 gh-pages/task.html delete mode 100644 gh-pages/test.html delete mode 100644 gh-pages/video.html delete mode 100644 gh-pages/wizard.html diff --git a/gh-pages/audio.html b/gh-pages/audio.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/audio.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/carousel.html b/gh-pages/carousel.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/carousel.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/chart.html b/gh-pages/chart.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/chart.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/aside.html b/gh-pages/crud/aside.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/aside.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/columns.html b/gh-pages/crud/columns.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/columns.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/fixed.html b/gh-pages/crud/fixed.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/fixed.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/footable.html b/gh-pages/crud/footable.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/footable.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/grid.html b/gh-pages/crud/grid.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/grid.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/header-group.html b/gh-pages/crud/header-group.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/header-group.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/header-hide.html b/gh-pages/crud/header-hide.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/header-hide.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/item-actions.html b/gh-pages/crud/item-actions.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/item-actions.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/jump-next.html b/gh-pages/crud/jump-next.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/jump-next.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/keyboards.html b/gh-pages/crud/keyboards.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/keyboards.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/list.html b/gh-pages/crud/list.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/list.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/load-more.html b/gh-pages/crud/load-more.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/load-more.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/load-once.html b/gh-pages/crud/load-once.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/load-once.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/merge-cell.html b/gh-pages/crud/merge-cell.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/merge-cell.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/nested.html b/gh-pages/crud/nested.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/nested.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/crud/table.html b/gh-pages/crud/table.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/crud/table.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/dialog/drawer.html b/gh-pages/dialog/drawer.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/dialog/drawer.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/dialog/simple.html b/gh-pages/dialog/simple.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/dialog/simple.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs.html b/gh-pages/docs.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/advanced.html b/gh-pages/docs/advanced.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/advanced.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/advanced_19de30a.js b/gh-pages/docs/advanced_19de30a.js deleted file mode 100644 index ce5cf88ff..000000000 --- a/gh-pages/docs/advanced_19de30a.js +++ /dev/null @@ -1,48 +0,0 @@ -amis.define('docs/advanced.md', function(require, exports, module, define) { - - module.exports = { - "title": "高级用法", - "shortname": "advanced", - "html": "

在开始阅读之前,希望你已经阅读 基本用法

\n

数据作用域

配置中很多地方都可以用变量如: tpl 类型的渲染器、API 中的 Url、FormItem 中的 source 配置、visibleOn、disabledOn 以及 Form 中的 redirect 配置等等。

\n

那么都有哪些数据可以用?这取决于在哪个容器,关于容器中的数据说明如下:

\n\n

取值过程,也跟 JS 作用域中取值一样,当前作用域中有,则直接返回当前作用域中,如果没有当前作用域没有,会一直往上找,直到找到了为止。如果存在同名变量,则返回就近作用域中数据。

\n

需要注意的是,要取到值一定是在自己所在的作用域,或者上级作用域里面,同级的是取不到的,如果需要怎么办?可以往下看联动,比如:FormA 的数据发送给 formB, 另外一种方式,可以把接口拉取换到父级组件去操作,没有可拉取数据的组件,就一起包在一个 service 控件里面。

\n

联动

简单的显隐联动

主要通过 visibleOnhiddenOndisabledOn 来配置。

\n
\n

数据联动

比如 select 中 options 可能根据某个值不同而不同。

\n
\n

他们是怎么关联的呢?注意看 select 的 source 配置 "/api/mock/getOptions?waitSeconds=1&type=$foo" 这里用了变量 $foo 这个 foo 正好是第一个表单的 name 值。只要这个值发生变化,source 就会重新获取一次。

\n

这里有个问题就是,数据一旦变化就会出发重新拉取,如果是输入框岂不是拉取得很频繁?没关系,也可以主动拉取如:

\n
\n

注意,source 中的传参是通过 source 中的 data 关联的,不能写在 source 的 url 中,因为如果写了,就会自动监控值的变化而自动刷新,写在 data 里面关联则不会。如果对 source 中的配置规则不了解,请前往 API 说明

\n

另外注意 button 的 target 值,正好是这个 form 的 name 值 lidong 的 formItem 的 name 值 select。当按钮的对象是一个 formItem 时,会出发 formItem 的数据重新拉取。

\n

组件间通信

CRUD 有个 filter 配置项,里面可以配置表单项,当他提交时 CRUD 自动就会携带接受到的表单数据然后重新获取数据。有个限制,就是 CRUD 和 filter 必须放在一起,不能分开,实际上完全可以分开,只要 Form 的 target 是 CRUD 的 name 值即可。

\n
\n

Form 的 target 还可以是另外一个 Form,当 A Form 把自己的数据提交给 B Form 时,A 的数据会被合并到 B Form 中,同时,B Form 会再次初始化,如:拉取 initApi, 重新拉取 formItem 上的 source 等等。 比如用户管理中的加入用户操作就是用这种方式实现的。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/advanced.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "数据作用域", - "fragment": "%E6%95%B0%E6%8D%AE%E4%BD%9C%E7%94%A8%E5%9F%9F", - "fullPath": "#%E6%95%B0%E6%8D%AE%E4%BD%9C%E7%94%A8%E5%9F%9F", - "level": 2 - }, - { - "label": "联动", - "fragment": "%E8%81%94%E5%8A%A8", - "fullPath": "#%E8%81%94%E5%8A%A8", - "level": 2, - "children": [ - { - "label": "简单的显隐联动", - "fragment": "%E7%AE%80%E5%8D%95%E7%9A%84%E6%98%BE%E9%9A%90%E8%81%94%E5%8A%A8", - "fullPath": "#%E7%AE%80%E5%8D%95%E7%9A%84%E6%98%BE%E9%9A%90%E8%81%94%E5%8A%A8", - "level": 3 - }, - { - "label": "数据联动", - "fragment": "%E6%95%B0%E6%8D%AE%E8%81%94%E5%8A%A8", - "fullPath": "#%E6%95%B0%E6%8D%AE%E8%81%94%E5%8A%A8", - "level": 3 - }, - { - "label": "组件间通信", - "fragment": "%E7%BB%84%E4%BB%B6%E9%97%B4%E9%80%9A%E4%BF%A1", - "fullPath": "#%E7%BB%84%E4%BB%B6%E9%97%B4%E9%80%9A%E4%BF%A1", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/api.html b/gh-pages/docs/api.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/api.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/api_c4c26b6.js b/gh-pages/docs/api_c4c26b6.js deleted file mode 100644 index f0a0a4e22..000000000 --- a/gh-pages/docs/api_c4c26b6.js +++ /dev/null @@ -1,27 +0,0 @@ -amis.define('docs/api.md', function(require, exports, module, define) { - - module.exports = { - "title": "动态数据", - "html": "

除了渲染静态页面及表单,amis 还能渲染动态数据,比如下面这个表格数据是来自 api 这个接口的请求

\n
{\n  \"type\": \"crud\",\n  \"api\": \" http://xxx/api/sample\",\n  \"columns\": [\n    {\n      \"name\": \"engine\",\n      \"label\": \"引擎\"\n    },\n    {\n      \"name\": \"browser\",\n      \"label\": \"浏览器\"\n    }\n  ]\n}\n
\n

amis 期望这个 api 接口返回的是如下的格式:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"IE 9\"\n      },\n      {\n        \"engine\": \"Gecko\",\n        \"browser\": \"Firefox 70\"\n      }\n    ]\n  }\n}\n
\n

下面是具体介绍

\n

整体格式

要求每个接口都返回 status 字段用来表示成功还是失败,如果失败了,通过 msg 字段来说明失败原因。当然如果成功 msg 也可以用来设置提示信息。

\n
{\n  \"status\": 0, // 0 表示成功,非0 表示失败\n  \"msg\": \"\", // 提示信息 包括失败和成功\n  \"data\": {\n    // ...\n    // 具体的数据\n  }\n}\n
\n

如果你的系统有自己的规范,可以在 fetcher 统一进行适配,如:

\n
{\n  renderAmis(\n    {\n      // 这里是 amis 的 Json 配置。\n      type: 'page',\n      title: '简单页面',\n      body: '内容'\n    },\n    {\n      // props\n    },\n    {\n      // 忽略别的设置项\n      fetcher: function (api) {\n        // 适配这种格式 {\"code\": 0, \"message\": \"\", \"result\": {}}\n        return axios(config).then(response => {\n          let payload = {\n            status: response.data.code,\n            msg: response.data.message,\n            data: response.data.result\n          };\n\n          return {\n            ...response,\n            data: payload\n          };\n        });\n      }\n    }\n  );\n}\n
\n

具体要求

每个渲染的接口返回都有自己的格式要求,主要体现在 data 字段内部,具体请参考每个渲染的接口说明。

\n\n

TBD

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/api.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "整体格式", - "fragment": "%E6%95%B4%E4%BD%93%E6%A0%BC%E5%BC%8F", - "fullPath": "#%E6%95%B4%E4%BD%93%E6%A0%BC%E5%BC%8F", - "level": 3 - }, - { - "label": "具体要求", - "fragment": "%E5%85%B7%E4%BD%93%E8%A6%81%E6%B1%82", - "fullPath": "#%E5%85%B7%E4%BD%93%E8%A6%81%E6%B1%82", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/basic.html b/gh-pages/docs/basic.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/basic.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/basic_1bfad5f.js b/gh-pages/docs/basic_1bfad5f.js deleted file mode 100644 index f98b2c141..000000000 --- a/gh-pages/docs/basic_1bfad5f.js +++ /dev/null @@ -1,14 +0,0 @@ -amis.define('docs/basic.md', function(require, exports, module, define) { - - module.exports = { - "title": "基本用法", - "html": "

先来看个简单的例子。

\n
\n
\n

可以通过编辑器实时修改预览

\n
\n

通过使用上面的例子就能配出一个基本页面框架,这是 amis 渲染器配置的入口。从 page 渲染器开始出发,通过在容器中放置不同的渲染器来配置不同性质的页面。

\n

简单说明以上配置信息。

\n\n

这里有三个配置都是容器类型的。asidebodytoolbar。什么是容器类型?容器类型表示,他能够把其他渲染类型放进来。以上的例子为了简单,直接放了个字符串。字符串类型内部是把他当成了 tpl 渲染器来处理,在这里也可以通过对象的形式指定,如以下的例子的 body 区域是完全等价的。

\n
\n

容器内可以直接放一个渲染器,也可以放多个,用数组包起来即可如:

\n
\n

再来看一个表单页面的列子

\n
\n

这个例子就是在 body 容器内,放置一个 form 类型的渲染器,它就成了一个简单的表单提交页面了,controls 中可以决定放哪些表单项目,actions 中可以放置操作按钮。

\n

如果 body 区域放置一个 crud 渲染器,它就是列表页面了,再来看个栗子:

\n
\n

这个栗子最主要的渲染器就是 CRUD 渲染器了,他的作用是配置了个 API,把数据拉取过来后,根据配置 columns 信息完成列表展示,列类型可以是静态文本、图片、映射或者日期等等。 columns 通过 name 与行数据关联。除了展示外还可以放置操作按钮。

\n

这里相对复杂一点配置就是按钮了,按钮主要是通过 actionType来决定用户点下的行为。可以配置成 弹框、发送 ajax、页面跳转、复制内容到剪切板、刷新目标组件等等。具体请参考:Action 渲染器说明

\n

更多用法请参考渲染器手册和示例。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/basic.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/components/action.html b/gh-pages/docs/components/action.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/action.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/action_d8e6841.js b/gh-pages/docs/components/action_d8e6841.js new file mode 100644 index 000000000..02b957ce7 --- /dev/null +++ b/gh-pages/docs/components/action_d8e6841.js @@ -0,0 +1,163 @@ +amis.define('docs/components/action.md', function(require, exports, module, define) { + + module.exports = { + "title": "Action 行为按钮", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Action 行为按钮", + "icon": null, + "order": 26, + "html": "

Action 行为按钮,是触发页面行为的主要方法之一

\n

基本用法

我们这里简单实现一个点击按钮弹框的交互。

\n
\n

样式

尺寸

配置size,显示不同尺寸

\n
\n

主题

可以配置level或者primary,显示不同样式。

\n
\n

图标

可以配置icon配置项,实现按钮显示图标

\n
\n

如果label配置为空字符串,可以只显示icon

\n
\n

操作前确认

可以通过配置confirmText,实现在任意操作前,弹出提示框确认是否进行该操作。

\n
\n

ajax 请求

通过配置"actionType":"ajax"api,可以实现 ajax 请求。

\n
\n

请求成功后,跳转至某个页面

配置相对路径,实现单页跳转
\n
配置完整路径,直接跳转指定路径
\n

请求成功后,显示反馈弹框

\n

更多内容查看Dialog 文档

\n

自定义 toast 文字

可以通过配置messages,自定义接口返回toast信息

\n
\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
apiApi-请求地址,参考 api 格式说明。
redirect模板字符串-指定当前请求结束后跳转的路径,可用 ${xxx} 取值。
feedbackDialogObject-如果 ajax 类型的,当 ajax 返回正常后,还能接着弹出一个 dialog 做其他交互。返回的数据可用于这个 dialog 中。格式可参考Dialog
messagesobject-success:ajax 操作成功后提示,可以不指定,不指定时以 api 返回为准。failed:ajax 操作失败提示。
\n

跳转链接

单页跳转

\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringlink单页跳转
linkstringlink用来指定跳转地址,跟 url 不同的是,这是单页跳转方式,不会渲染浏览器,请指定 amis 平台内的页面。可用 ${xxx} 取值。
\n

直接跳转

\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringurl页面跳转
urlstring-按钮点击后,会打开指定页面。可用 ${xxx} 取值。
blankbooleanfalse如果为 true 将在新 tab 页面打开。
\n

注意:由于 amis 平台内 http 地址会被替换成 proxy 地址,所以在 amis 平台内使用请加上 raw: 作为前缀。 比如:raw:http://www.baidu.com

\n

弹框

\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdialog点击后显示一个弹出框
dialogstringDialogObject-指定弹框内容,格式可参考Dialog
nextConditionboolean-可以用来设置下一条数据的条件,默认为 true
\n

抽屉

\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdrawer点击后显示一个侧边栏
drawerstringDrawerObject-指定弹框内容,格式可参考Drawer
\n

复制文本

\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringcopy复制一段内容到粘贴板
content模板-指定复制的内容。可用 ${xxx} 取值。
\n

刷新其他组件

基本使用

xxx

\n
属性表
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringreload刷新目标组件
targetstring-需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
\n

组件特有的行为类型

表单中表格添加一行

该 actionType 为FormItem-Table专用行为

\n

重置表单

在 form 中,配置"type": "reset"的按钮,可以实现重置表单数据的功能

\n
\n

通用属性表

所有actionType都支持的通用配置项

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringaction指定为 Page 渲染器。
actionTypestring-【必填】这是 action 最核心的配置,来指定该 action 的作用类型,支持:ajaxlinkurldrawerdialogconfirmcancelprevnextcopyclose
labelstring-按钮文本。可用 ${xxx} 取值。
levelstringdefault按钮样式,支持:linkprimarysecondaryinfosuccesswarningdangerlightdarkdefault
sizestring-按钮大小,支持:xssmmdlg
iconstring-设置图标,例如fa fa-plus
iconClassNamestring-给图标上添加类名。
activeboolean-按钮是否高亮。
activeLevelstring-按钮高亮时的样式,配置支持同level
activeClassNamestringis-active给按钮高亮添加类名。
blockboolean-display:"block"来显示按钮。
confirmText模板-当设置后,操作在开始前会询问用户。可用 ${xxx} 取值。
reloadstring-指定此次操作完后,需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
tooltipstring-鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
disabledTipstring-被禁用后鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
tooltipPlacementstringtop如果配置了tooltip或者disabledTip,指定提示信息位置,可配置topbottomleftright
closeboolean-action配置在dialogdraweractions中时,配置为true指定此次操作完后关闭当前dialogdrawer
requiredArray<string>-配置字符串数组,指定在form中进行操作之前,需要指定的字段名的表单项通过验证
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "样式", + "fragment": "%E6%A0%B7%E5%BC%8F", + "fullPath": "#%E6%A0%B7%E5%BC%8F", + "level": 2, + "children": [ + { + "label": "尺寸", + "fragment": "%E5%B0%BA%E5%AF%B8", + "fullPath": "#%E5%B0%BA%E5%AF%B8", + "level": 3 + }, + { + "label": "主题", + "fragment": "%E4%B8%BB%E9%A2%98", + "fullPath": "#%E4%B8%BB%E9%A2%98", + "level": 3 + }, + { + "label": "图标", + "fragment": "%E5%9B%BE%E6%A0%87", + "fullPath": "#%E5%9B%BE%E6%A0%87", + "level": 3 + } + ] + }, + { + "label": "操作前确认", + "fragment": "%E6%93%8D%E4%BD%9C%E5%89%8D%E7%A1%AE%E8%AE%A4", + "fullPath": "#%E6%93%8D%E4%BD%9C%E5%89%8D%E7%A1%AE%E8%AE%A4", + "level": 2 + }, + { + "label": "ajax 请求", + "fragment": "ajax-%E8%AF%B7%E6%B1%82", + "fullPath": "#ajax-%E8%AF%B7%E6%B1%82", + "level": 2, + "children": [ + { + "label": "请求成功后,跳转至某个页面", + "fragment": "%E8%AF%B7%E6%B1%82%E6%88%90%E5%8A%9F%E5%90%8E-%E8%B7%B3%E8%BD%AC%E8%87%B3%E6%9F%90%E4%B8%AA%E9%A1%B5%E9%9D%A2", + "fullPath": "#%E8%AF%B7%E6%B1%82%E6%88%90%E5%8A%9F%E5%90%8E-%E8%B7%B3%E8%BD%AC%E8%87%B3%E6%9F%90%E4%B8%AA%E9%A1%B5%E9%9D%A2", + "level": 3 + }, + { + "label": "请求成功后,显示反馈弹框", + "fragment": "%E8%AF%B7%E6%B1%82%E6%88%90%E5%8A%9F%E5%90%8E-%E6%98%BE%E7%A4%BA%E5%8F%8D%E9%A6%88%E5%BC%B9%E6%A1%86", + "fullPath": "#%E8%AF%B7%E6%B1%82%E6%88%90%E5%8A%9F%E5%90%8E-%E6%98%BE%E7%A4%BA%E5%8F%8D%E9%A6%88%E5%BC%B9%E6%A1%86", + "level": 3 + }, + { + "label": "自定义 toast 文字", + "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89-toast-%E6%96%87%E5%AD%97", + "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89-toast-%E6%96%87%E5%AD%97", + "level": 3 + } + ] + }, + { + "label": "跳转链接", + "fragment": "%E8%B7%B3%E8%BD%AC%E9%93%BE%E6%8E%A5", + "fullPath": "#%E8%B7%B3%E8%BD%AC%E9%93%BE%E6%8E%A5", + "level": 2, + "children": [ + { + "label": "单页跳转", + "fragment": "%E5%8D%95%E9%A1%B5%E8%B7%B3%E8%BD%AC", + "fullPath": "#%E5%8D%95%E9%A1%B5%E8%B7%B3%E8%BD%AC", + "level": 3 + }, + { + "label": "直接跳转", + "fragment": "%E7%9B%B4%E6%8E%A5%E8%B7%B3%E8%BD%AC", + "fullPath": "#%E7%9B%B4%E6%8E%A5%E8%B7%B3%E8%BD%AC", + "level": 3 + } + ] + }, + { + "label": "弹框", + "fragment": "%E5%BC%B9%E6%A1%86", + "fullPath": "#%E5%BC%B9%E6%A1%86", + "level": 2 + }, + { + "label": "抽屉", + "fragment": "%E6%8A%BD%E5%B1%89", + "fullPath": "#%E6%8A%BD%E5%B1%89", + "level": 2 + }, + { + "label": "复制文本", + "fragment": "%E5%A4%8D%E5%88%B6%E6%96%87%E6%9C%AC", + "fullPath": "#%E5%A4%8D%E5%88%B6%E6%96%87%E6%9C%AC", + "level": 2 + }, + { + "label": "刷新其他组件", + "fragment": "%E5%88%B7%E6%96%B0%E5%85%B6%E4%BB%96%E7%BB%84%E4%BB%B6", + "fullPath": "#%E5%88%B7%E6%96%B0%E5%85%B6%E4%BB%96%E7%BB%84%E4%BB%B6", + "level": 2, + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 3 + } + ] + }, + { + "label": "组件特有的行为类型", + "fragment": "%E7%BB%84%E4%BB%B6%E7%89%B9%E6%9C%89%E7%9A%84%E8%A1%8C%E4%B8%BA%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E7%BB%84%E4%BB%B6%E7%89%B9%E6%9C%89%E7%9A%84%E8%A1%8C%E4%B8%BA%E7%B1%BB%E5%9E%8B", + "level": 2, + "children": [ + { + "label": "表单中表格添加一行", + "fragment": "%E8%A1%A8%E5%8D%95%E4%B8%AD%E8%A1%A8%E6%A0%BC%E6%B7%BB%E5%8A%A0%E4%B8%80%E8%A1%8C", + "fullPath": "#%E8%A1%A8%E5%8D%95%E4%B8%AD%E8%A1%A8%E6%A0%BC%E6%B7%BB%E5%8A%A0%E4%B8%80%E8%A1%8C", + "level": 3 + }, + { + "label": "重置表单", + "fragment": "%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "fullPath": "#%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "level": 3 + } + ] + }, + { + "label": "通用属性表", + "fragment": "%E9%80%9A%E7%94%A8%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E9%80%9A%E7%94%A8%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/alert.html b/gh-pages/docs/components/alert.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/alert.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/alert_01e045b.js b/gh-pages/docs/components/alert_01e045b.js new file mode 100644 index 000000000..105c45c23 --- /dev/null +++ b/gh-pages/docs/components/alert_01e045b.js @@ -0,0 +1,39 @@ +amis.define('docs/components/alert.md', function(require, exports, module, define) { + + module.exports = { + "title": "Alert 提示", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Alert 提示", + "icon": null, + "order": 27, + "html": "

用来做文字特殊提示,分为四类:提示类、成功类、警告类和危险类。

\n

基本使用

\n

显示关闭按钮

配置"showCloseButton": true实现显示关闭按钮。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"alert"指定为 alert 渲染器
classNamestring外层 Dom 的类名
levelstringinfo级别,可以是:infosuccesswarning 或者 danger
bodySchemaNode显示内容
showCloseButtonbooleanfalse是否显示关闭按钮
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "显示关闭按钮", + "fragment": "%E6%98%BE%E7%A4%BA%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE", + "fullPath": "#%E6%98%BE%E7%A4%BA%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/audio.html b/gh-pages/docs/components/audio.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/audio.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/audio_1f5c5a9.js b/gh-pages/docs/components/audio_1f5c5a9.js new file mode 100644 index 000000000..94da7d71b --- /dev/null +++ b/gh-pages/docs/components/audio_1f5c5a9.js @@ -0,0 +1,33 @@ +amis.define('docs/components/audio.md', function(require, exports, module, define) { + + module.exports = { + "title": "Audio 音频", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Audio 音频", + "icon": null, + "order": 28, + "html": "

基本使用

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"audio"指定为 audio 渲染器
classNamestring外层 Dom 的类名
inlinebooleantrue是否是内联模式
srcstring音频地址
loopbooleanfalse是否循环播放
autoPlaybooleanfalse是否自动播放
ratesarray[]可配置音频播放倍速如:[1.0, 1.5, 2.0]
controlsarray['rates', 'play', 'time', 'process', 'volume']内部模块定制化
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/button.html b/gh-pages/docs/components/button.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/button.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/button_b10165a.js b/gh-pages/docs/components/button_b10165a.js new file mode 100644 index 000000000..7c327885c --- /dev/null +++ b/gh-pages/docs/components/button_b10165a.js @@ -0,0 +1,27 @@ +amis.define('docs/components/button.md', function(require, exports, module, define) { + + module.exports = { + "title": "Button 按钮", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Button 按钮", + "icon": null, + "order": 29, + "html": "

基本用法

\n

button 实际上是 action 的别名,更多用法见action

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/buttongroup.html b/gh-pages/docs/components/buttongroup.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/buttongroup.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/card.html b/gh-pages/docs/components/card.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/card.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/card_5089ddc.js b/gh-pages/docs/components/card_5089ddc.js new file mode 100644 index 000000000..a130ad016 --- /dev/null +++ b/gh-pages/docs/components/card_5089ddc.js @@ -0,0 +1,33 @@ +amis.define('docs/components/card.md', function(require, exports, module, define) { + + module.exports = { + "title": "Card 卡片", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Card 卡片", + "icon": null, + "order": 31, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"card"指定为 Card 渲染器
classNamestring"panel-default"外层 Dom 的类名
headerObjectCard 头部内容设置
header.classNamestring头部类名
header.title模板标题
header.subTitle模板副标题
header.desc模板描述
header.avatar模板图片
header.avatarText模板如果不配置图片,则会在图片处显示该文本
header.highlightboolean是否显示激活样式
header.avatarClassNamestring"pull-left thumb avatar b-3x m-r"图片类名
bodyArray内容容器,主要用来放置非表单项组件
bodyClassNamestring"padder m-t-sm m-b-sm"内容区域类名
actionsArray<Action>配置按钮集合
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/cards.html b/gh-pages/docs/components/cards.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/cards.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/cards_25ddea3.js b/gh-pages/docs/components/cards_25ddea3.js new file mode 100644 index 000000000..56a7dea5e --- /dev/null +++ b/gh-pages/docs/components/cards_25ddea3.js @@ -0,0 +1,33 @@ +amis.define('docs/components/cards.md', function(require, exports, module, define) { + + module.exports = { + "title": "Cards 卡片组", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Cards 卡片组", + "icon": null, + "order": 32, + "html": "

卡片展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像Service这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过source属性,获取数据链中的数据,完成数据展示。

\n

基本用法

这里我们使用手动初始数据域的方式,即配置data属性,进行数据域的初始化。

\n
\n

或者你也可以使用 CRUD 的 card 模式

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"cards" 指定为卡片组。
title模板标题
source数据映射${items}数据源, 获取当前数据域中的变量
placeholder模板‘暂无数据’当没数据的时候的文字提示
classNamestring外层 CSS 类名
headerClassNamestringamis-grid-header顶部外层 CSS 类名
footerClassNamestringamis-grid-footer底部外层 CSS 类名
itemClassNamestringcol-sm-4 col-md-3卡片 CSS 类名
cardCard配置卡片信息
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/carousel.html b/gh-pages/docs/components/carousel.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/carousel.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/carousel_306f7cd.js b/gh-pages/docs/components/carousel_306f7cd.js new file mode 100644 index 000000000..d22973b90 --- /dev/null +++ b/gh-pages/docs/components/carousel_306f7cd.js @@ -0,0 +1,33 @@ +amis.define('docs/components/carousel.md', function(require, exports, module, define) { + + module.exports = { + "title": "Carousel 轮播图", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Carousel 幻灯片", + "icon": null, + "order": 33, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"carousel"指定为 Carousel 渲染器
classNamestring"panel-default"外层 Dom 的类名
optionsarray[]轮播面板数据
options.imagestring图片链接
options.imageClassNamestring图片类名
options.titlestring图片标题
options.titleClassNamestring图片标题类名
options.descriptionstring图片描述
options.descriptionClassNamestring图片描述类名
options.htmlstringHTML 自定义,同Tpl一致
itemSchemaobject自定义schema来展示数据
autobooleantrue是否自动轮播
intervalstring5s切换动画间隔
durationstring0.5s切换动画时长
widthstringauto宽度
heightstring200px高度
controlsarray['dots', 'arrows']显示左右箭头、底部圆点索引
controlsThemestringlight左右箭头、底部圆点索引颜色,默认light,另有dark模式
animationstringfade切换动画效果,默认fade,另有slide模式
\n\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/chart.html b/gh-pages/docs/components/chart.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/chart.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/chart_02cb848.js b/gh-pages/docs/components/chart_02cb848.js new file mode 100644 index 000000000..37307ecf1 --- /dev/null +++ b/gh-pages/docs/components/chart_02cb848.js @@ -0,0 +1,57 @@ +amis.define('docs/components/chart.md', function(require, exports, module, define) { + + module.exports = { + "title": "Chart 图表", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Chart 图标", + "icon": null, + "order": 34, + "html": "

图表渲染器,采用 echarts 渲染,配置格式跟 echarts 相同,echarts 配置文档

\n

基本用法

\n

配置静态配置项

通过配置"config": {},可以配置echarts配置

\n
\n

配置图表点击行为

可以通过配置"clickAction": {},来指定图表节点的点击行为,支持 amis 的行为

\n
\n

点击下面坐标中的节点查看效果!

\n
\n
\n

远程拉取动态配置项

配置api,来远程拉取图标配置

\n
\n

通过组件间联动,更新图表

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"chart"指定为 chart 渲染器
classNamestring外层 Dom 的类名
bodySchemaNode内容容器
apiapi配置项接口地址
initFetchboolean组件初始化时,是否请求接口
intervalnumber刷新时间(最低 3000)
config`objectstring`设置 eschars 的配置项,当为string的时候可以设置 function 等配置项
styleobject设置根元素的 style
widthstring设置根元素的宽度
heightstring设置根元素的高度
replaceChartOptionbooleanfalse每次更新是完全覆盖配置项还是追加?
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置静态配置项", + "fragment": "%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "level": 2 + }, + { + "label": "配置图表点击行为", + "fragment": "%E9%85%8D%E7%BD%AE%E5%9B%BE%E8%A1%A8%E7%82%B9%E5%87%BB%E8%A1%8C%E4%B8%BA", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%9B%BE%E8%A1%A8%E7%82%B9%E5%87%BB%E8%A1%8C%E4%B8%BA", + "level": 2 + }, + { + "label": "远程拉取动态配置项", + "fragment": "%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "fullPath": "#%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "level": 2 + }, + { + "label": "通过组件间联动,更新图表", + "fragment": "%E9%80%9A%E8%BF%87%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8-%E6%9B%B4%E6%96%B0%E5%9B%BE%E8%A1%A8", + "fullPath": "#%E9%80%9A%E8%BF%87%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8-%E6%9B%B4%E6%96%B0%E5%9B%BE%E8%A1%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/collapse.html b/gh-pages/docs/components/collapse.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/collapse.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/collapse_cc8d533.js b/gh-pages/docs/components/collapse_cc8d533.js new file mode 100644 index 000000000..cb98434cc --- /dev/null +++ b/gh-pages/docs/components/collapse_cc8d533.js @@ -0,0 +1,33 @@ +amis.define('docs/components/collapse.md', function(require, exports, module, define) { + + module.exports = { + "title": "Collapse 折叠器", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Collapse 折叠器", + "icon": null, + "order": 36, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"collapse"指定为 Collapse 渲染器
titleSchemaNode标题
bodySchemaNode内容
classNamestringbg-white wrapperCSS 类名
headingClassNamestringfont-thin b-b b-light text-lg p-b-xs标题 CSS 类名
bodyClassNamestring内容 CSS 类名。
collapsedbooleanfalse默认是否要收起。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/color.html b/gh-pages/docs/components/color.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/color.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/color_4f5b643.js b/gh-pages/docs/components/color_4f5b643.js new file mode 100644 index 000000000..bcd3a5ed4 --- /dev/null +++ b/gh-pages/docs/components/color_4f5b643.js @@ -0,0 +1,53 @@ +amis.define('docs/components/color.md', function(require, exports, module, define) { + + module.exports = { + "title": "Color 颜色", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Color", + "icon": null, + "order": 37, + "html": "

用于展示颜色

\n

基本用法

\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"color";在 Form 中用作静态展示,为"static-color"
classNamestring外层 CSS 类名
valuestring显示的颜色值
namestring在其他组件中,时,用作变量映射
defaultColorstring#ccc默认颜色值
showValuebooleantrue是否显示右边的颜色值
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "用作 Field 时", + "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "level": 2, + "children": [ + { + "label": "Table 中的列类型", + "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "Form 中静态展示", + "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/component.html b/gh-pages/docs/components/component.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/component.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/component_0427056.js b/gh-pages/docs/components/component_0427056.js new file mode 100644 index 000000000..08bca5e4d --- /dev/null +++ b/gh-pages/docs/components/component_0427056.js @@ -0,0 +1,20 @@ +amis.define('docs/components/component.md', function(require, exports, module, define) { + + module.exports = { + "title": "组件介绍", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "组件介绍", + "icon": null, + "order": 21, + "html": "

从这个章节开始,我们将会介绍 amis 中内置的所有组件的使用方法

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/container.html b/gh-pages/docs/components/container.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/container.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/container_32c292f.js b/gh-pages/docs/components/container_32c292f.js new file mode 100644 index 000000000..10e7d487b --- /dev/null +++ b/gh-pages/docs/components/container_32c292f.js @@ -0,0 +1,33 @@ +amis.define('docs/components/container.md', function(require, exports, module, define) { + + module.exports = { + "title": "Container 容器", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Container 容器", + "icon": null, + "order": 38, + "html": "

Container 是一种容器组件,它可以渲染其他 amis 组件

\n

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"alert"指定为 alert 渲染器
classNamestring外层 Dom 的类名
bodyClassNamestring容器内容区的类名
bodySchemaNode容器内容
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/crud.html b/gh-pages/docs/components/crud.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/crud.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/crud_3c02c38.js b/gh-pages/docs/components/crud_3c02c38.js new file mode 100644 index 000000000..4fa875c7f --- /dev/null +++ b/gh-pages/docs/components/crud_3c02c38.js @@ -0,0 +1,191 @@ +amis.define('docs/components/crud.md', function(require, exports, module, define) { + + module.exports = { + "title": "CRUD 增删改查", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "CRUD 增删改查", + "icon": null, + "order": 25, + "html": "

CRUD,即增删改查组件,主要用来展现数据列表,并支持各类【增】【删】【改】【查】等操作。

\n

基本用法

最基本的用法是配置 数据源接口(api) 以及 展示列(columns)

\n
\n

数据源接口数据结构要求

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        // 每一行的数据\n        \"id\": 1,\n        \"xxx\": \"xxxx\"\n      }\n    ],\n\n    \"total\": 200 // 注意!!!这里不是当前请求返回的 items 的长度,而是数据库中一共有多少条数据,用于生成分页组件\n    // 如果你不想要分页,把这个不返回就可以了。\n  }\n}\n
\n

如果无法知道数据总数,只能知道是否有下一页,请返回如下格式,AMIS 会简单生成一个简单版本的分页控件。

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        // 每个成员的数据。\n        \"id\": 1,\n        \"xxx\": \"xxxx\"\n      }\n    ],\n\n    \"hasNext\": true // 是否有下一页。\n  }\n}\n
\n

如果不需要分页,或者配置了 loadDataOnce 则可以忽略掉 totalhasNext 参数。

\n

展示模式

CRUD 支持下面 3 种展示模式,默认为 Table 表格模式。

\n

Table 表格模式

Table 模式支持 Table 中的所有功能。

\n
\n

List 列表模式

List 模式支持 List 中的所有功能。

\n
\n

Cards 卡片模式

Cards 模式支持 Cards 中的所有功能。

\n
\n

查询条件表单

大部分表格展示有对数据进行检索的需求,CRUD 自身支持通过配置filter,实现查询条件过滤表单

\n

filter 配置实际上同 Form 组件,因此支持绝大部分form的功能。

\n
\n

请注意:在默认没有自定义配置 api 数据映射时,提交查询条件表单,会自动将表单中的表单项值,发送给crud所配置的接口,然后通过后端接口,实现对数据的过滤操作,前端默认是不会进行任何的数据过滤操作

\n

如果想前端实现过滤功能,请看前端一次性加载部分。

\n

数据源接口轮训

可以配置interval来实现数据接口轮训功能,默认最低为3000毫秒,

\n
\n

配置stopAutoRefreshWhen表达式,来实现满足条件,停止轮训

\n

列配置

除了支持 Table 中的列配置 以外,crud 还支持下面这些配置,帮助更好的操作数据

\n

排序检索

可以在列上配置"sortable": true,该列表头右侧会渲染一个可点击的排序图标,可以切换正序倒序

\n
\n

amis 只负责生成排序组件,并将排序参数传递给接口,而不会在前端对数据进行排序处理。参数格式如下:

\n
{\n  \"orderBy\": \"engine\", // 这里为所配置列的 name\n  \"orderDir\": \"asc\" // asc 为升序,desc 为降序\n}\n
\n

你可以通过数据映射,在api中获取这些参数。

\n

快速搜索

可以在列上配置"sortable": true,该列表头右侧会渲染一个可点击的搜索图标,点击可以输入关键字进行该列的搜索:

\n
\n

amis 只负责生成搜索组件,并将搜索参数传递给接口,而不会在前端对数据进行搜索处理。参数格式如下:

\n
{\n  \"engine\": \"xxx\" // 这里的key是列的 name,value是输入的关键字\n}\n
\n

你可以通过数据映射,在api中获取这些参数。

\n

快速过滤

可以在列上配置filterable属性,该列表头右侧会渲染一个可点击的过滤图标,点击显示下拉框,选中进行过滤:

\n
\n

amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,而不会在前端对数据进行搜索处理。参数格式如下:

\n
{\n  \"grade\": \"xxx\" // 这里的key是列的 name,value是选中项的value值\n}\n
\n

你可以通过数据映射,在api中获取这些参数。

\n

快速编辑

可以通过给列配置:"quickEdit":truequickSaveApi 可以实现表格内快速编辑并批量保存的功能。

\n

如下Rendering engine列的每一行中,会生成可编辑图标,点击后会显示弹框,用于编辑该列的值,

\n
\n

指定编辑表单项类型

quickEdit也可以配置对象形式,可以指定编辑表单项的类型,例如"type": "select"

\n
\n

内联模式

配置quickEditmodeinline。可以直接将编辑表单项渲染至表格内,可以直接操作编辑。

\n
\n

即时保存

如果想编辑完表单项之后,不想点击顶部确认按钮来进行保存,而是即时保存当前标记的数据,则需要配置quickEdit"saveImmediately": true,然后配置接口quickSaveItemApi。可以直接将编辑表单项渲染至表格内,可以直接操作编辑。

\n
\n

你也可以在saveImmediately中配置 api,实现即时保存

\n
\n

顶部和底部工具栏

crud 组件支持通过配置headerToolbarfooterToolbar属性,实现在表格顶部和底部渲染组件,

\n
\n

上例中我们在顶部渲染了一段模板,通过${count}取到数据域中,CRUD 返回的count变量值;然后我们在底部渲染了一个按钮。

\n

从上面一些例子中你可能已经发现,当我们不配置该属性时,crud 默认会在顶部和底部渲染一些组件,实际上,headerToolbarfooterToolbar默认会有下面这些配置:

\n
{\n  \"headerToolbar\": [\"bulkActions\", \"pagination\"],\n  \"footerToolbar\": [\"statistics\", \"pagination\"]\n}\n
\n\n
\n

如果你不希望在顶部或者底部渲染默认组件,你可以设置headerToolbarfooterToolbar为空数组[]

\n
\n

除了可以配置SchemaNode 类型以外,headerToolbarfooterToolbar还支持一些针对列表场景而内置的一些常用组件,下面分别介绍:

\n

分页

headerToolbar或者footerToolbar数组中添加pagination字符串,并且在数据源接口中返回了数据总数count,即可以渲染分页组件;添加switch-per-page字符串,可以渲染切换每页条数组件

\n
\n

crud默认不会处理数据分页,只是会把分页参数传给后端,由后端实现分页,并返回需要展示的数据 和 总数据数total变量:

\n

默认传给后端的分页参数格式为:

\n
{\n  \"page\": 1,\n  \"perPage\": 10\n}\n
\n

你可以通过配置pageFieldperPageField来修改传给后端的分页数据格式,如:

\n
{\n  \"pageField\": \"pageNo\",\n  \"perPageField\": \"pageSize\"\n}\n
\n

这样传给后端的参数格式将为:

\n
{\n  \"pageNo\": 1,\n  \"pageSize\": 10\n}\n
\n

你可以通过数据映射,在api中获取这些参数。

\n
{\n    \"type\": \"crud\",\n    \"api\": {\n        \"method\": \"get\",\n        \"url\": \"xxxxxx\",\n        \"data\": {\n            \"pageNo\": \"${page}\",\n            \"pageSize\": \"${perPage}\",\n            ... // 一些其他参数\n        }\n    }\n}\n
\n

分页有两种模式:

\n
1. 知道数据总数

如果后端可以知道数据总数时,接口返回格式如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        // 每一行的数据。\n        \"id\": 1,\n        \"xxx\": \"xxxx\"\n      }\n    ],\n\n    \"total\": 200 // 注意这里不是当前请求返回的 items 的长度,而是数据库一共有多少条数据,用于生成分页,\n  }\n}\n
\n

该模式下,会自动计算总页码数,渲染出有页码的分页组件

\n
2. 不知道数据总数

如果后端无法知道数据总数,那么可以返回hasNext字段,来标识是否有下一页。

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        // 每个成员的数据。\n        \"id\": 1,\n        \"xxx\": \"xxxx\"\n      }\n    ],\n\n    \"hasNext\": true // 标识是否有下一页。\n  }\n}\n
\n

这样 amis 会在配置分页组件的地方,渲染出一个简单的页面跳转控件。

\n

批量操作

headerToolbar或者footerToolbar数组中添加bulkActions字符串,并且在 crud 上配置bulkActions行为按钮数组,可以实现选中表格项并批量操作的功能。

\n
\n

批量操作会默认将下面数据添加到数据域中以供按钮行为使用

\n\n

你可以通过数据映射,在api中获取这些参数。

\n

数据统计

headerToolbar或者footerToolbar数组中添加statistics字符串,可以实现简单的数据统计功能

\n
\n

加载更多

headerToolbar或者footerToolbar数组中添加load-more字符串,可以实现点击加载更多功能。

\n
\n

显隐显示查询条件表单

headerToolbar或者footerToolbar数组中添加filter-toggler字符串,并且在 crud 中配置"filterTogglable": true后,可以渲染一个可以切换显示查询表单的功能按钮

\n
\n

拖拽排序

通过配置"draggable": true和保存排序接口saveOrderApi,可以实现拖拽排序功能,

\n
\n

同样的,前端是不会处理排序结果,需要后端调用接口saveOrderApi来保存新的顺序

\n

发送方式默认为POST,会包含以下信息。

\n\n

你可以通过数据映射,在api中获取这些参数。

\n

如下:

\n
{\n  \"saveOrderApi\": {\n    \"url\": \"/api/xxxx\",\n    \"data\": {\n      \"ids\": \"${ids}\"\n    }\n  }\n}\n
\n

这样就只会发送 ids 了。

\n

单条操作

当操作对象是单条数据时这类操作叫单条操作,比如:编辑、删除、通过、拒绝等等。CRUD 的 table 模式可以在 column 通过放置按钮来完成(其他模式参考 table 模式)。比如编辑就是添加个按钮行为是弹框类型的按钮或者添加一个页面跳转类型的按钮把当前行数据的 id 放在 query 中传过去、删除操作就是配置一个按钮行为是 AJAX 类型的按钮,将数据通过 api 发送给后端完成。

\n

CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一个按钮就行了。CRUD 在处理按钮行为的时候会把当前行的完整数据传递过去,如果你的按钮行为是弹出时,还会包含一下信息:

\n\n

你可以通过数据映射,在api中获取这些参数。

\n

如果你的按钮类型是 ajax,你也可以限定只发送部分数据比如。

\n
{\n  \"type\": \"button\",\n  \"label\": \"删除\",\n  \"actionType\": \"ajax\",\n  \"api\": \"delete:/api/xxxx/$id\",\n  \"confirmText\": \"确定要删除?\"\n}\n
\n

上面这个例子就会发送 id 字段了,如果想要全部发送过去同时还想添加点别的字段就这样:

\n
{\n  \"type\": \"button\",\n  \"label\": \"删除\",\n  \"actionType\": \"ajax\",\n  \"api\": {\n    \"method\": \"post\",\n    \"url\": \"/api/xxxx/$id\",\n    \"data\": {\n      \"&\": \"$$\",\n      \"op\": \"delete\"\n    }\n  },\n  \"confirmText\": \"确定要删除?\"\n}\n
\n

过滤条件参数同步地址栏

默认 CRUD 会将过滤条件参数同步至浏览器地址栏中,

\n

不过,如果你了解 数据链 的话,在开启同步地址栏时,地址栏中的参数数据会合并到顶层的数据链中,可能会造成一些预期中的问题,例如:会自动给某些同名的表单项设置默认值等。可以手动设置syncLocation: false来关闭此特性

\n

前端一次性加载

如果你的数据并不是很大,而且后端不方便做分页和条件过滤操作,那么通过配置loadDataOnce实现前端一次性加载并支持分页和条件过滤操作

\n
\n

配置一次性加载后,基本的分页、快速排序操作将会在前端进行完成。如果想实现前端检索,需要用到数据映射功能:

\n
\n

上例使用了数据映射中的filter过滤器,在前端实现了engine列的搜索功能。

\n
\n

注意:如果你的数据量较大,请务必使用服务端分页的方案,过多的前端数据展示,会显著影响前端页面的性能

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringtype 指定为 CRUD 渲染器
modestring"table""table" 、 "cards" 或者 "list"
titlestring""可设置成空,当设置成空时,没有标题栏
classNamestring表格外层 Dom 的类名
apiAPICRUD 用来获取列表数据的 api。
loadDataOnceboolean是否一次性加载所有数据(前端分页)
loadDataOnceFetchOnFilterbooleantrue在开启 loadDataOnce 时,filter 时是否去重新请求 api
sourcestring数据映射接口返回某字段的值,不设置会默认把接口返回的items或者rows填充进mode区域
filterForm设置过滤器,当该表单提交后,会把数据带给当前 mode 刷新列表。
filterTogglablebooleanfalse是否可显隐过滤器
filterDefaultVisiblebooleantrue设置过滤器默认是否可见。
initFetchbooleantrue是否初始化的时候拉取数据, 只针对有 filter 的情况, 没有 filter 初始都会拉取数据
intervalnumber3000刷新时间(最低 3000)
silentPollingbooleanfalse配置刷新时是否隐藏加载动画
stopAutoRefreshWhenstring""通过表达式来配置停止刷新的条件
stopAutoRefreshWhenModalIsOpenbooleanfalse当有弹框时关闭自动刷新,关闭弹框又恢复
syncLocationbooleantrue是否将过滤条件的参数同步到地址栏
draggablebooleanfalse是否可通过拖拽排序
itemDraggableOnboolean表达式来配置是否可拖拽排序
saveOrderApiAPI保存排序的 api。
quickSaveApiAPI快速编辑后用来批量保存的 API。
quickSaveItemApiAPI快速编辑配置成及时保存时使用的 API。
bulkActionsArray<Action>批量操作列表,配置后,表格可进行选中操作。
defaultCheckedbooleanfalse当可批量操作时,默认是否全部勾选。
messagesObject覆盖消息提示,如果不指定,将采用 api 返回的 message
messages.fetchFailedstring获取失败时提示
messages.saveOrderFailedstring保存顺序失败提示
messages.saveOrderSuccessstring保存顺序成功提示
messages.quickSaveFailedstring快速保存失败提示
messages.quickSaveSuccessstring快速保存成功提示
primaryFieldstring"id"设置 ID 字段名。
defaultParamsObject设置默认 filter 默认参数,会在查询的时候一起发给后端
pageFieldstring"page"设置分页页码字段名。
perPageFieldstring"perPage"设置分页一页显示的多少条数据的字段名。注意:最好与 defaultParams 一起使用,请看下面例子。
perPageAvailableArray<number>[5, 10, 20, 50, 100]设置一页显示多少条数据下拉框可选条数。
orderFieldstring设置用来确定位置的字段名,设置后新的顺序将被赋值到该字段中。
hideQuickSaveBtnbooleanfalse隐藏顶部快速保存提示
autoJumpToTopOnPagerChangebooleanfalse当切分页的时候,是否自动跳顶部。
syncResponse2Querybooleantrue将返回数据同步到过滤器上。
keepItemSelectionOnPageChangebooleantrue保留条目选择,默认分页、搜素后,用户选择条目会被清空,开启此选项后会保留用户选择,可以实现跨页面批量操作。
labelTplstring单条描述模板,keepItemSelectionOnPageChange设置为true后会把所有已选择条目列出来,此选项可以用来定制条目展示文案。
headerToolbarArray['bulkActions', 'pagination']顶部工具栏配置
footerToolbarArray['statistics', 'pagination']底部工具栏配置
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "数据源接口数据结构要求", + "fragment": "%E6%95%B0%E6%8D%AE%E6%BA%90%E6%8E%A5%E5%8F%A3%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E8%A6%81%E6%B1%82", + "fullPath": "#%E6%95%B0%E6%8D%AE%E6%BA%90%E6%8E%A5%E5%8F%A3%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E8%A6%81%E6%B1%82", + "level": 2 + }, + { + "label": "展示模式", + "fragment": "%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "level": 2, + "children": [ + { + "label": "Table 表格模式", + "fragment": "table-%E8%A1%A8%E6%A0%BC%E6%A8%A1%E5%BC%8F", + "fullPath": "#table-%E8%A1%A8%E6%A0%BC%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "List 列表模式", + "fragment": "list-%E5%88%97%E8%A1%A8%E6%A8%A1%E5%BC%8F", + "fullPath": "#list-%E5%88%97%E8%A1%A8%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "Cards 卡片模式", + "fragment": "cards-%E5%8D%A1%E7%89%87%E6%A8%A1%E5%BC%8F", + "fullPath": "#cards-%E5%8D%A1%E7%89%87%E6%A8%A1%E5%BC%8F", + "level": 3 + } + ] + }, + { + "label": "查询条件表单", + "fragment": "%E6%9F%A5%E8%AF%A2%E6%9D%A1%E4%BB%B6%E8%A1%A8%E5%8D%95", + "fullPath": "#%E6%9F%A5%E8%AF%A2%E6%9D%A1%E4%BB%B6%E8%A1%A8%E5%8D%95", + "level": 2 + }, + { + "label": "数据源接口轮训", + "fragment": "%E6%95%B0%E6%8D%AE%E6%BA%90%E6%8E%A5%E5%8F%A3%E8%BD%AE%E8%AE%AD", + "fullPath": "#%E6%95%B0%E6%8D%AE%E6%BA%90%E6%8E%A5%E5%8F%A3%E8%BD%AE%E8%AE%AD", + "level": 2 + }, + { + "label": "列配置", + "fragment": "%E5%88%97%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%88%97%E9%85%8D%E7%BD%AE", + "level": 2, + "children": [ + { + "label": "排序检索", + "fragment": "%E6%8E%92%E5%BA%8F%E6%A3%80%E7%B4%A2", + "fullPath": "#%E6%8E%92%E5%BA%8F%E6%A3%80%E7%B4%A2", + "level": 3 + }, + { + "label": "快速搜索", + "fragment": "%E5%BF%AB%E9%80%9F%E6%90%9C%E7%B4%A2", + "fullPath": "#%E5%BF%AB%E9%80%9F%E6%90%9C%E7%B4%A2", + "level": 3 + }, + { + "label": "快速过滤", + "fragment": "%E5%BF%AB%E9%80%9F%E8%BF%87%E6%BB%A4", + "fullPath": "#%E5%BF%AB%E9%80%9F%E8%BF%87%E6%BB%A4", + "level": 3 + }, + { + "label": "快速编辑", + "fragment": "%E5%BF%AB%E9%80%9F%E7%BC%96%E8%BE%91", + "fullPath": "#%E5%BF%AB%E9%80%9F%E7%BC%96%E8%BE%91", + "level": 3, + "children": [ + { + "label": "指定编辑表单项类型", + "fragment": "%E6%8C%87%E5%AE%9A%E7%BC%96%E8%BE%91%E8%A1%A8%E5%8D%95%E9%A1%B9%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E6%8C%87%E5%AE%9A%E7%BC%96%E8%BE%91%E8%A1%A8%E5%8D%95%E9%A1%B9%E7%B1%BB%E5%9E%8B", + "level": 4 + }, + { + "label": "内联模式", + "fragment": "%E5%86%85%E8%81%94%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%86%85%E8%81%94%E6%A8%A1%E5%BC%8F", + "level": 4 + }, + { + "label": "即时保存", + "fragment": "%E5%8D%B3%E6%97%B6%E4%BF%9D%E5%AD%98", + "fullPath": "#%E5%8D%B3%E6%97%B6%E4%BF%9D%E5%AD%98", + "level": 4 + } + ] + } + ] + }, + { + "label": "顶部和底部工具栏", + "fragment": "%E9%A1%B6%E9%83%A8%E5%92%8C%E5%BA%95%E9%83%A8%E5%B7%A5%E5%85%B7%E6%A0%8F", + "fullPath": "#%E9%A1%B6%E9%83%A8%E5%92%8C%E5%BA%95%E9%83%A8%E5%B7%A5%E5%85%B7%E6%A0%8F", + "level": 2, + "children": [ + { + "label": "分页", + "fragment": "%E5%88%86%E9%A1%B5", + "fullPath": "#%E5%88%86%E9%A1%B5", + "level": 3 + }, + { + "label": "批量操作", + "fragment": "%E6%89%B9%E9%87%8F%E6%93%8D%E4%BD%9C", + "fullPath": "#%E6%89%B9%E9%87%8F%E6%93%8D%E4%BD%9C", + "level": 3 + }, + { + "label": "数据统计", + "fragment": "%E6%95%B0%E6%8D%AE%E7%BB%9F%E8%AE%A1", + "fullPath": "#%E6%95%B0%E6%8D%AE%E7%BB%9F%E8%AE%A1", + "level": 3 + }, + { + "label": "加载更多", + "fragment": "%E5%8A%A0%E8%BD%BD%E6%9B%B4%E5%A4%9A", + "fullPath": "#%E5%8A%A0%E8%BD%BD%E6%9B%B4%E5%A4%9A", + "level": 3 + }, + { + "label": "显隐显示查询条件表单", + "fragment": "%E6%98%BE%E9%9A%90%E6%98%BE%E7%A4%BA%E6%9F%A5%E8%AF%A2%E6%9D%A1%E4%BB%B6%E8%A1%A8%E5%8D%95", + "fullPath": "#%E6%98%BE%E9%9A%90%E6%98%BE%E7%A4%BA%E6%9F%A5%E8%AF%A2%E6%9D%A1%E4%BB%B6%E8%A1%A8%E5%8D%95", + "level": 3 + } + ] + }, + { + "label": "拖拽排序", + "fragment": "%E6%8B%96%E6%8B%BD%E6%8E%92%E5%BA%8F", + "fullPath": "#%E6%8B%96%E6%8B%BD%E6%8E%92%E5%BA%8F", + "level": 2 + }, + { + "label": "单条操作", + "fragment": "%E5%8D%95%E6%9D%A1%E6%93%8D%E4%BD%9C", + "fullPath": "#%E5%8D%95%E6%9D%A1%E6%93%8D%E4%BD%9C", + "level": 2 + }, + { + "label": "过滤条件参数同步地址栏", + "fragment": "%E8%BF%87%E6%BB%A4%E6%9D%A1%E4%BB%B6%E5%8F%82%E6%95%B0%E5%90%8C%E6%AD%A5%E5%9C%B0%E5%9D%80%E6%A0%8F", + "fullPath": "#%E8%BF%87%E6%BB%A4%E6%9D%A1%E4%BB%B6%E5%8F%82%E6%95%B0%E5%90%8C%E6%AD%A5%E5%9C%B0%E5%9D%80%E6%A0%8F", + "level": 2 + }, + { + "label": "前端一次性加载", + "fragment": "%E5%89%8D%E7%AB%AF%E4%B8%80%E6%AC%A1%E6%80%A7%E5%8A%A0%E8%BD%BD", + "fullPath": "#%E5%89%8D%E7%AB%AF%E4%B8%80%E6%AC%A1%E6%80%A7%E5%8A%A0%E8%BD%BD", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/date.html b/gh-pages/docs/components/date.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/date.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/date_4d93d99.js b/gh-pages/docs/components/date_4d93d99.js new file mode 100644 index 000000000..73795f33a --- /dev/null +++ b/gh-pages/docs/components/date_4d93d99.js @@ -0,0 +1,65 @@ +amis.define('docs/components/date.md', function(require, exports, module, define) { + + module.exports = { + "title": "Date 日期时间", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Date", + "icon": null, + "order": 39, + "html": "

用于展示日期

\n

基本使用

\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n

配置展示格式

例如你想将某一个时间值,以 xxxx年xx月xx日 xx时xx分xx秒 这样的格式输出,那么查找 moment 文档可知配置格式应为 YYYY年MM月DD日 HH时mm分ss秒,即:

\n
\n

配置数据格式

如果你的数据值默认不是X格式(即时间戳格式),那么需要配置valueformat参数用于解析当前时间值

\n

例如下面value值为:"2020/4/14 19:59:50",查阅 moment 文档可知,需要配置数据格式为 "YYYY/MM/DD HH:mm:ss",然后我们配置输出格式format,输出指定格式日期:

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"date";在 Form 中用作静态展示,为"static-date"
classNamestring外层 CSS 类名
valuestring显示的颜色值
namestring在其他组件中,时,用作变量映射
placeholderstring-占位内容
formatstringYYYY-MM-DD展示格式
valueFormatstringX数据格式,默认为时间戳
fromNowbooleanfalsefromNow
updateFrequencybooleanfalseupdateFrequency
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "用作 Field 时", + "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "level": 2, + "children": [ + { + "label": "Table 中的列类型", + "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "Form 中静态展示", + "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "level": 3 + } + ] + }, + { + "label": "配置展示格式", + "fragment": "%E9%85%8D%E7%BD%AE%E5%B1%95%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%B1%95%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "配置数据格式", + "fragment": "%E9%85%8D%E7%BD%AE%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/dialog.html b/gh-pages/docs/components/dialog.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/dialog.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/dialog_470fe73.js b/gh-pages/docs/components/dialog_470fe73.js new file mode 100644 index 000000000..8e43971d5 --- /dev/null +++ b/gh-pages/docs/components/dialog_470fe73.js @@ -0,0 +1,111 @@ +amis.define('docs/components/dialog.md', function(require, exports, module, define) { + + module.exports = { + "title": "Dialog 对话框", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Dialog 对话框", + "icon": null, + "order": 41, + "html": "

Dialog 弹框 主要由 Action 触发,主要展示一个对话框以供用户操作。

\n

基本用法

\n

配置尺寸

\n

多级弹框

\n

弹框中配置表单

基本使用

\n

提交表单 或 ajax 请求

弹框中通过配置formajax行为按钮,可以实现form提交和ajax请求操作。

\n
\n

提交表单 或 ajax 请求 后不关闭弹框

默认情况下,当弹框中配置了 form 并进行了提交表单操作(confirm)或进行了ajax请求,请求成功后,会自动关闭当前弹框,你可以通过手动设置"close": true 来禁止该默认特性。

\n
\n

feedback 反馈弹框

feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,进行反馈操作

\n

基本使用

\n

弹框中配置 feedback

关闭 feedback 弹框时,同时关闭上层弹框

当你在弹框中配置了 feedback,操作之后,你希望关闭当前 feedback 弹框同时,关闭上层的弹框,具体有两种方式

\n
1. 不请求接口,直接关闭

feedbackactions中配置 "actionType": "close" 的按钮

\n
\n
2. 请求接口,请求成功后,关闭所有弹框

需要在 feedback 的 body 中添加 Form 组件,并配置"actionType": "confirm"

\n
\n
\n

注意上面的例子:如果你的触发feedback的按钮actionTypeajax时,为需要额外在按钮上配置"close": true

\n
\n

关闭 feedback 弹框时,不同时关闭上层弹框

改场景只适用于不请求接口关闭弹框的场景,需要在 feedback 层添加"skipRestOnCancel": true

\n
\n

根据条件显示 feedback

可以根据条件弹出,例如下面这个例子,只有当接口返回的时间戳可以整除 2 时才显示弹框。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"dialog" 指定为 Dialog 渲染器
titleSchemaNode弹出层标题
bodySchemaNode往 Dialog 内容区加内容
sizestring指定 dialog 大小,支持: xssmmdlg
bodyClassNamestringmodal-bodyDialog body 区域的样式类名
closeOnEscbooleanfalse是否支持按 Esc 关闭 Dialog
showCloseButtonbooleantrue是否显示右上角的关闭按钮
showErrorMsgbooleantrue是否在弹框左下角显示报错信息
disabledbooleanfalse如果设置此属性,则该 Dialog 只读没有提交操作。
actionsArray<Action>【确认】和【取消】如果想不显示底部按钮,可以配置:[]
dataobject支持数据映射,如果不设定将默认将触发按钮的上下文中继承数据。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置尺寸", + "fragment": "%E9%85%8D%E7%BD%AE%E5%B0%BA%E5%AF%B8", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%B0%BA%E5%AF%B8", + "level": 2 + }, + { + "label": "多级弹框", + "fragment": "%E5%A4%9A%E7%BA%A7%E5%BC%B9%E6%A1%86", + "fullPath": "#%E5%A4%9A%E7%BA%A7%E5%BC%B9%E6%A1%86", + "level": 2 + }, + { + "label": "弹框中配置表单", + "fragment": "%E5%BC%B9%E6%A1%86%E4%B8%AD%E9%85%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "fullPath": "#%E5%BC%B9%E6%A1%86%E4%B8%AD%E9%85%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "level": 2, + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 3 + }, + { + "label": "提交表单 或 ajax 请求", + "fragment": "%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95-%E6%88%96-ajax-%E8%AF%B7%E6%B1%82", + "fullPath": "#%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95-%E6%88%96-ajax-%E8%AF%B7%E6%B1%82", + "level": 3 + }, + { + "label": "提交表单 或 ajax 请求 后不关闭弹框", + "fragment": "%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95-%E6%88%96-ajax-%E8%AF%B7%E6%B1%82-%E5%90%8E%E4%B8%8D%E5%85%B3%E9%97%AD%E5%BC%B9%E6%A1%86", + "fullPath": "#%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95-%E6%88%96-ajax-%E8%AF%B7%E6%B1%82-%E5%90%8E%E4%B8%8D%E5%85%B3%E9%97%AD%E5%BC%B9%E6%A1%86", + "level": 3 + } + ] + }, + { + "label": "feedback 反馈弹框", + "fragment": "feedback-%E5%8F%8D%E9%A6%88%E5%BC%B9%E6%A1%86", + "fullPath": "#feedback-%E5%8F%8D%E9%A6%88%E5%BC%B9%E6%A1%86", + "level": 2, + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 3 + }, + { + "label": "弹框中配置 feedback", + "fragment": "%E5%BC%B9%E6%A1%86%E4%B8%AD%E9%85%8D%E7%BD%AE-feedback", + "fullPath": "#%E5%BC%B9%E6%A1%86%E4%B8%AD%E9%85%8D%E7%BD%AE-feedback", + "level": 3, + "children": [ + { + "label": "关闭 feedback 弹框时,同时关闭上层弹框", + "fragment": "%E5%85%B3%E9%97%AD-feedback-%E5%BC%B9%E6%A1%86%E6%97%B6-%E5%90%8C%E6%97%B6%E5%85%B3%E9%97%AD%E4%B8%8A%E5%B1%82%E5%BC%B9%E6%A1%86", + "fullPath": "#%E5%85%B3%E9%97%AD-feedback-%E5%BC%B9%E6%A1%86%E6%97%B6-%E5%90%8C%E6%97%B6%E5%85%B3%E9%97%AD%E4%B8%8A%E5%B1%82%E5%BC%B9%E6%A1%86", + "level": 4 + }, + { + "label": "关闭 feedback 弹框时,不同时关闭上层弹框", + "fragment": "%E5%85%B3%E9%97%AD-feedback-%E5%BC%B9%E6%A1%86%E6%97%B6-%E4%B8%8D%E5%90%8C%E6%97%B6%E5%85%B3%E9%97%AD%E4%B8%8A%E5%B1%82%E5%BC%B9%E6%A1%86", + "fullPath": "#%E5%85%B3%E9%97%AD-feedback-%E5%BC%B9%E6%A1%86%E6%97%B6-%E4%B8%8D%E5%90%8C%E6%97%B6%E5%85%B3%E9%97%AD%E4%B8%8A%E5%B1%82%E5%BC%B9%E6%A1%86", + "level": 4 + } + ] + }, + { + "label": "根据条件显示 feedback", + "fragment": "%E6%A0%B9%E6%8D%AE%E6%9D%A1%E4%BB%B6%E6%98%BE%E7%A4%BA-feedback", + "fullPath": "#%E6%A0%B9%E6%8D%AE%E6%9D%A1%E4%BB%B6%E6%98%BE%E7%A4%BA-feedback", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/divider.html b/gh-pages/docs/components/divider.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/divider.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/divider_efe5635.js b/gh-pages/docs/components/divider_efe5635.js new file mode 100644 index 000000000..489e87af0 --- /dev/null +++ b/gh-pages/docs/components/divider_efe5635.js @@ -0,0 +1,39 @@ +amis.define('docs/components/divider.md', function(require, exports, module, define) { + + module.exports = { + "title": "Divider 分割线", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Divider 分割线", + "icon": null, + "order": 42, + "html": "

基本用法

\n

不同样式

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"dialog" 指定为 Dialog 渲染器
classNamestring外层 Dom 的类名
lineStylestring"dashed"分割线的样式,支持dashedsolid
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "不同样式", + "fragment": "%E4%B8%8D%E5%90%8C%E6%A0%B7%E5%BC%8F", + "fullPath": "#%E4%B8%8D%E5%90%8C%E6%A0%B7%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/drawer.html b/gh-pages/docs/components/drawer.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/drawer.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/drawer_3ee7135.js b/gh-pages/docs/components/drawer_3ee7135.js new file mode 100644 index 000000000..7c53f14ab --- /dev/null +++ b/gh-pages/docs/components/drawer_3ee7135.js @@ -0,0 +1,77 @@ +amis.define('docs/components/drawer.md', function(require, exports, module, define) { + + module.exports = { + "title": "Drawer 抽屉", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Drawer 抽屉", + "icon": null, + "order": 43, + "html": "

基本用法

\n

抽屉尺寸

\n

指定弹出方向

\n

可拖拽抽屉大小

配置"resizable": true,可以拖拽调整drawer大小

\n
\n

不显示蒙层

\n

点击抽屉外自动关闭

配置"closeOnOutside":true

\n

显示蒙层

\n

不显示蒙层

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"drawer" 指定为 Drawer 渲染器
titleSchemaNode弹出层标题
bodySchemaNode往 Drawer 内容区加内容
sizestring指定 Drawer 大小,支持: xssmmdlg
bodyClassNamestringmodal-bodyDrawer body 区域的样式类名
closeOnEscbooleanfalse是否支持按 Esc 关闭 Drawer
closeOnOutsidebooleanfalse点击内容区外是否关闭 Drawer
overlaybooleantrue是否显示蒙层
resizablebooleanfalse是否可通过拖拽改变 Drawer 大小
actionsArray<Action>【确认】和【取消】可以不设置,默认只有两个按钮。
dataobject支持 数据映射,如果不设定将默认将触发按钮的上下文中继承数据。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "抽屉尺寸", + "fragment": "%E6%8A%BD%E5%B1%89%E5%B0%BA%E5%AF%B8", + "fullPath": "#%E6%8A%BD%E5%B1%89%E5%B0%BA%E5%AF%B8", + "level": 2 + }, + { + "label": "指定弹出方向", + "fragment": "%E6%8C%87%E5%AE%9A%E5%BC%B9%E5%87%BA%E6%96%B9%E5%90%91", + "fullPath": "#%E6%8C%87%E5%AE%9A%E5%BC%B9%E5%87%BA%E6%96%B9%E5%90%91", + "level": 2 + }, + { + "label": "可拖拽抽屉大小", + "fragment": "%E5%8F%AF%E6%8B%96%E6%8B%BD%E6%8A%BD%E5%B1%89%E5%A4%A7%E5%B0%8F", + "fullPath": "#%E5%8F%AF%E6%8B%96%E6%8B%BD%E6%8A%BD%E5%B1%89%E5%A4%A7%E5%B0%8F", + "level": 2 + }, + { + "label": "不显示蒙层", + "fragment": "%E4%B8%8D%E6%98%BE%E7%A4%BA%E8%92%99%E5%B1%82", + "fullPath": "#%E4%B8%8D%E6%98%BE%E7%A4%BA%E8%92%99%E5%B1%82", + "level": 2 + }, + { + "label": "点击抽屉外自动关闭", + "fragment": "%E7%82%B9%E5%87%BB%E6%8A%BD%E5%B1%89%E5%A4%96%E8%87%AA%E5%8A%A8%E5%85%B3%E9%97%AD", + "fullPath": "#%E7%82%B9%E5%87%BB%E6%8A%BD%E5%B1%89%E5%A4%96%E8%87%AA%E5%8A%A8%E5%85%B3%E9%97%AD", + "level": 2, + "children": [ + { + "label": "显示蒙层", + "fragment": "%E6%98%BE%E7%A4%BA%E8%92%99%E5%B1%82", + "fullPath": "#%E6%98%BE%E7%A4%BA%E8%92%99%E5%B1%82", + "level": 3 + }, + { + "label": "不显示蒙层", + "fragment": "%E4%B8%8D%E6%98%BE%E7%A4%BA%E8%92%99%E5%B1%82", + "fullPath": "#%E4%B8%8D%E6%98%BE%E7%A4%BA%E8%92%99%E5%B1%82", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/dropdown-button.html b/gh-pages/docs/components/dropdown-button.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/dropdown-button.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/dropdown-button_9d8957d.js b/gh-pages/docs/components/dropdown-button_9d8957d.js new file mode 100644 index 000000000..655af2d29 --- /dev/null +++ b/gh-pages/docs/components/dropdown-button_9d8957d.js @@ -0,0 +1,33 @@ +amis.define('docs/components/dropdown-button.md', function(require, exports, module, define) { + + module.exports = { + "title": "DropDownButton", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "DropDownButton", + "icon": null, + "order": 44, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringdropdown-button类型
labelstring按钮文本
classNamestring外层 CSS 类名
blockboolean块状样式
sizestring尺寸,支持'xs''sm''md''lg'
alignstring位置,可选'left''right'
buttonsArray<action>配置下拉按钮
caretIconstringcaretIcon
iconOnlyboolean只显示icon
defaultIsOpenedboolean默认是否打开
closeOnOutsideboolean点击外侧区域是否收起
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/each.html b/gh-pages/docs/components/each.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/each.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/each_dbf646e.js b/gh-pages/docs/components/each_dbf646e.js new file mode 100644 index 000000000..05c5daa0e --- /dev/null +++ b/gh-pages/docs/components/each_dbf646e.js @@ -0,0 +1,33 @@ +amis.define('docs/components/each.md', function(require, exports, module, define) { + + module.exports = { + "title": "Each 循环渲染器", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Each 循环渲染器", + "icon": null, + "order": 45, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"each"指定为 Each 组件
valuearray[]用于循环的值
namestring获取数据域中变量,支持 数据映射
itemsobject使用value中的数据,循环输出渲染器。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/array.html b/gh-pages/docs/components/form/array.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/array.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/array_281ba79.js b/gh-pages/docs/components/form/array_281ba79.js new file mode 100644 index 000000000..cb36595e6 --- /dev/null +++ b/gh-pages/docs/components/form/array_281ba79.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/array.md', function(require, exports, module, define) { + + module.exports = { + "title": "Array 数组输入框", + "description": null, + "type": 0, + "group": null, + "menuName": "Array 数组输入框", + "icon": null, + "order": 3, + "html": "

普通表单项,其实就是 Combo 的一个 flat 用法。

\n

基本用法

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"array"指明为array组件
itemsstringAPI配置单项表单类型
addableboolean是否可新增。
removableboolean是否可删除
draggablebooleanfalse是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段
draggableTipstring可拖拽的提示文字,默认为:"可通过拖动每行中的【交换】按钮进行顺序调整"
addButtonTextstring"新增"新增按钮文字
minLengthnumber限制最小长度
maxLengthnumber限制最大长度
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/button-group.html b/gh-pages/docs/components/form/button-group.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/button-group.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/button-group_302a6cd.js b/gh-pages/docs/components/form/button-group_302a6cd.js new file mode 100644 index 000000000..bf9909ad0 --- /dev/null +++ b/gh-pages/docs/components/form/button-group_302a6cd.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/button-group.md', function(require, exports, module, define) { + + module.exports = { + "title": "Button-Group 按钮集合", + "description": null, + "type": 0, + "group": null, + "menuName": "Button-Group", + "icon": null, + "order": 6, + "html": "

基本用法

可以用作按钮组,进行按钮的合并展示。

\n
\n

作为选择器表单项

当不配置 buttons 属性时,button-group还可以作为 选择类表单项 使用。

\n
\n

更多属性查看 选择类表单项文档

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
multiplebooleanfalse多选
labelFieldboolean"label"选项标签字段
valueFieldboolean"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
autoFillobject自动填充
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "作为选择器表单项", + "fragment": "%E4%BD%9C%E4%B8%BA%E9%80%89%E6%8B%A9%E5%99%A8%E8%A1%A8%E5%8D%95%E9%A1%B9", + "fullPath": "#%E4%BD%9C%E4%B8%BA%E9%80%89%E6%8B%A9%E5%99%A8%E8%A1%A8%E5%8D%95%E9%A1%B9", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/button-toolbar.html b/gh-pages/docs/components/form/button-toolbar.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/button-toolbar.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/button-toolbar_ecc5c9a.js b/gh-pages/docs/components/form/button-toolbar_ecc5c9a.js new file mode 100644 index 000000000..e250667a9 --- /dev/null +++ b/gh-pages/docs/components/form/button-toolbar_ecc5c9a.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/button-toolbar.md', function(require, exports, module, define) { + + module.exports = { + "title": "Button-Toolbar 按钮工具栏", + "description": null, + "type": 0, + "group": null, + "menuName": "Button-Toolbar", + "icon": null, + "order": 5, + "html": "

默认按钮独立配置的时候,是独占一行的,如果想让多个按钮在一起放置,可以使用 button-toolbar 组件

\n

基本使用

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"button-toolbar"指定为 ButtonToolbar 组件
buttonsArray<行为按钮>按钮组
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/button.html b/gh-pages/docs/components/form/button.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/button.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/button_59dbe73.js b/gh-pages/docs/components/form/button_59dbe73.js new file mode 100644 index 000000000..83747bc07 --- /dev/null +++ b/gh-pages/docs/components/form/button_59dbe73.js @@ -0,0 +1,45 @@ +amis.define('docs/components/form/button.md', function(require, exports, module, define) { + + module.exports = { + "title": "Button 按钮", + "description": null, + "type": 0, + "group": null, + "menuName": "Button", + "icon": null, + "order": 4, + "html": "

form中除了支持 行为按钮以外,还支持一些特定的按钮。

\n

基本用法

\n

提交表单

请配置"actionType": "submit""type": "submit"按钮,可以触发表单提交行为,

\n
\n

重置表单

请配置"actionType": "reset""type": "reset"按钮,可以触发表单提交行为。

\n
\n

属性表

Action 行为按钮

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "提交表单", + "fragment": "%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95", + "fullPath": "#%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95", + "level": 2 + }, + { + "label": "重置表单", + "fragment": "%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "fullPath": "#%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/chain-select.html b/gh-pages/docs/components/form/chain-select.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/chain-select.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/chain-select_7440083.js b/gh-pages/docs/components/form/chain-select_7440083.js new file mode 100644 index 000000000..bb341e56d --- /dev/null +++ b/gh-pages/docs/components/form/chain-select_7440083.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/chain-select.md', function(require, exports, module, define) { + + module.exports = { + "title": "Chain-Select 链式下拉框", + "description": null, + "type": 0, + "group": null, + "menuName": "Chain-Select", + "icon": null, + "order": 7, + "html": "

基本用法

无限级别下拉,只支持单选,且必须和 source 搭配,通过 API 拉取数据,只要 API 有返回结果,就能一直无限级别下拉下去。

\n
\n
\n

source接口中配置的参数waitSeconds=1maxLevel=4是测试接口所需参数,实际使用自己接口时不需要添加这两个参数

\n
\n

暴露参数

为了帮助后端接口获取当前选择器状态,chained-select 会默认给 source 接口的数据域中,添加若干个参数:

\n\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
autoCompletestringAPI自动选中
delimiterstring,拼接符
labelFieldboolean"label"选项标签字段
valueFieldboolean"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
\n

@todo 可能还支持别的

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "暴露参数", + "fragment": "%E6%9A%B4%E9%9C%B2%E5%8F%82%E6%95%B0", + "fullPath": "#%E6%9A%B4%E9%9C%B2%E5%8F%82%E6%95%B0", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/checkbox.html b/gh-pages/docs/components/form/checkbox.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/checkbox.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/checkbox_0f3c4a4.js b/gh-pages/docs/components/form/checkbox_0f3c4a4.js new file mode 100644 index 000000000..7f0ff5dd5 --- /dev/null +++ b/gh-pages/docs/components/form/checkbox_0f3c4a4.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/checkbox.md', function(require, exports, module, define) { + + module.exports = { + "title": "Checkbox 勾选框", + "description": null, + "type": 0, + "group": null, + "menuName": "Checkbox", + "icon": null, + "order": 8, + "html": "

基本用法

\n

配置真假值

默认情况:

\n\n
\n

如果你想调整这个值,可以配置trueValuefalseValue

\n
\n

勾选上例中的勾选框,观察数据域变化,会发现勾选后值为1,而取消勾选后为0

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明 ## 二级标题
optionstring选项说明
trueValueanytrue标识真值
falseValueany"false"标识假值
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置真假值", + "fragment": "%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC", + "fullPath": "#%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/checkboxes.html b/gh-pages/docs/components/form/checkboxes.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/checkboxes.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/checkboxes_b3f66f0.js b/gh-pages/docs/components/form/checkboxes_b3f66f0.js new file mode 100644 index 000000000..cb41bee25 --- /dev/null +++ b/gh-pages/docs/components/form/checkboxes_b3f66f0.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/checkboxes.md', function(require, exports, module, define) { + + module.exports = { + "title": "Checkboxes 复选框", + "description": null, + "type": 0, + "group": null, + "menuName": "Checkboxes", + "icon": null, + "order": 9, + "html": "

基本用法

\n

展示多行

可以配置columnsCount属性调整展示列的个数

\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
delimeterstringfalse拼接符
labelFieldstring"label"选项标签字段
valueFieldstring"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
columnsCountnumber1选项按几列显示,默认为一列
checkAllbooleanfalse是否支持全选
defaultCheckAllbooleanfalse默认是否全选
creatablebooleanfalse新增选项
createBtnLabelstring"新增选项"新增选项
addControlsArray<表单项>自定义新增表单项
addApiAPI配置新增选项接口
editablebooleanfalse编辑选项
editControlsArray<表单项>自定义编辑表单项
editApiAPI配置编辑选项接口
removablebooleanfalse删除选项
deleteApiAPI配置删除选项接口
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "展示多行", + "fragment": "%E5%B1%95%E7%A4%BA%E5%A4%9A%E8%A1%8C", + "fullPath": "#%E5%B1%95%E7%A4%BA%E5%A4%9A%E8%A1%8C", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/city.html b/gh-pages/docs/components/form/city.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/city.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/city_b2ae470.js b/gh-pages/docs/components/form/city_b2ae470.js new file mode 100644 index 000000000..9a1148981 --- /dev/null +++ b/gh-pages/docs/components/form/city_b2ae470.js @@ -0,0 +1,45 @@ +amis.define('docs/components/form/city.md', function(require, exports, module, define) { + + module.exports = { + "title": "City 城市选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "City", + "icon": null, + "order": 10, + "html": "

城市选择器,可用于让用户输入城市。

\n

基本用法

\n

观察数据域中表单项的值,存储的是位置邮编。

\n

配置选择级别

可以通过设置 allowDistrictallowCity 设置用户选择级别,例如只选择省份:

\n
\n

获取更多选项信息

表单项值默认格式是编码(即 code),如果你想要详细点的信息,可以把 extractValue 设置成 false

\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
allowCitybooleantrue允许选择城市
allowDistrictbooleantrue允许选择区域
extractValuebooleantrue默认 true 是否抽取值,如果设置成 false 值格式会变成对象,包含 codeprovincecitydistrict 文字信息。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置选择级别", + "fragment": "%E9%85%8D%E7%BD%AE%E9%80%89%E6%8B%A9%E7%BA%A7%E5%88%AB", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%80%89%E6%8B%A9%E7%BA%A7%E5%88%AB", + "level": 2 + }, + { + "label": "获取更多选项信息", + "fragment": "%E8%8E%B7%E5%8F%96%E6%9B%B4%E5%A4%9A%E9%80%89%E9%A1%B9%E4%BF%A1%E6%81%AF", + "fullPath": "#%E8%8E%B7%E5%8F%96%E6%9B%B4%E5%A4%9A%E9%80%89%E9%A1%B9%E4%BF%A1%E6%81%AF", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/color.html b/gh-pages/docs/components/form/color.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/color.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/color_2e3cfe6.js b/gh-pages/docs/components/form/color_2e3cfe6.js new file mode 100644 index 000000000..50c1eeea5 --- /dev/null +++ b/gh-pages/docs/components/form/color_2e3cfe6.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/color.md', function(require, exports, module, define) { + + module.exports = { + "title": "Color 颜色选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "Color", + "icon": null, + "order": 11, + "html": "

基本用法

\n

选择器预设颜色值

颜色选择器底部预设有会写可选的颜色值,默认为:['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF']

\n

你可以配置presetColors数组进行自定义。

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
formatstringhex请选择 hexhlsrgb或者rgba
presetColorsArray<string>见选择器预设颜色值选择器底部的默认颜色,数组内为空则不显示默认颜色
allowCustomColorbooleantruefalse时只能选择颜色,使用 presetColors 设定颜色选择范围
clearableboolean"label"是否显示清除按钮
resetValuestring""清除后,表单项值调整成该值
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "选择器预设颜色值", + "fragment": "%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC", + "fullPath": "#%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/combo.html b/gh-pages/docs/components/form/combo.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/combo.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/combo_d115739.js b/gh-pages/docs/components/form/combo_d115739.js new file mode 100644 index 000000000..9c565a7e4 --- /dev/null +++ b/gh-pages/docs/components/form/combo_d115739.js @@ -0,0 +1,107 @@ +amis.define('docs/components/form/combo.md', function(require, exports, module, define) { + + module.exports = { + "title": "Combo 组合", + "description": null, + "type": 0, + "group": null, + "menuName": "Combo", + "icon": null, + "order": 12, + "html": "

组合模式,支持自由组合多个表单项。当设置成单选时数据格式为对象,当设置成多选时数据格式为数组,数组成员是对象(flat 模式可以直接是某个表单单项的数值)。

\n

基本使用

配置controls属性,组合多个表单项

\n
\n

多行展示模式

默认,combo 内表单项是横着展示一排,如果想换行展示,可以配置"multiLine": true

\n
\n

多选模式

默认,combo 为单选模式,可以配置"multiple": true实现多选模式

\n
\n

限制个数

多选模式下,可以配置minLengthmaxLength配置该 Combo 可添加的条数

\n
\n

值格式

观察下例中表单数据域值的变化,可以发现:

\n\n
\n

打平值

默认多选模式下,数据格式是对象数组的形式,当你配置的组合中只有一个表单项时,可以配置"flat": true,将值进行打平处理。

\n
\n

查看上例表单数据域,可以看到打平后数据格式如下:

\n
{\n  \"combo2\": [\"aaa\", \"bbb\"]\n}\n
\n

唯一验证

可以在配置的controls项上,配置"unique": true,指定当前表单项不可重复

\n
\n

上例中,textselect都配置了"unique": true,新增多条 combo,在任意两个text输入框的值相同时,提交时都会报错"当前值不唯一",而select选择框也不可选择重复的选项

\n

拖拽排序

多选模式下,可以配置"draggable": true实现拖拽调整排序

\n
\n

条件分支

默认 Combo 渲染的成员是固定表单项的,成员的类型时一致,如果不一致怎么办?这里可以设置条件分支来给不同的成员设置不同的表单项。

\n

如下面的栗子,定义了两种类型:文本和数字,用户新增的时候可以选择是新增文本还是数字。区分是文字和数字的方式是根据成员数据中的 type 字段来决定。

\n
\n\n

Tabs 模式

默认成员是一个一个排列的,如果数据比较多有点让人眼花缭乱。所以 Combo 支持了 tabs 的排列方式。

\n
\n\n

注意:这是新引入的功能,目前还不支持拖拽组合使用。且此模式只有多选时才能生效。

\n

获取父级数据

默认情况下,Combo 内表达项无法获取父级数据域的数据,如下,我们添加 Combo 表单项时,尽管 Combo 内的文本框的name与父级数据域中的super_text变量同名,但是没有自动映射值。

\n
\n

可以配置"canAccessSuperData": true开启此特性,如下,配置了该配置项后,添加 Combo 的text表单项会自动映射父级数据域的同名变量

\n
\n

同步更新内部表单项

配置canAccessSuperData可以获取父级数据域值,但是为了效率,在父级数据域变化的时候,默认 combo 内部是不会进行同步的

\n

如下,添加一组 combo,然后可以看到默认会映射父级变量值123,但是当你在更改父级数据域super_text文本框值后,combo 内部文本框并没有同步更新

\n
\n

如果想实现内部同步更新,需要如下配置:

\n\n

以上面为例,我们在 combo 上配置"strictMode": false"syncFields": ["super_text"],即可实现同步

\n
\n

设置序号

默认 Combo 数据域中,每一项会有一个隐藏变量index,可以利用 Tpl 组件,显示当前项序号

\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
formClassNamestring单组表单项的类名
controlsArray<表单项>组合展示的表单项
controls[x].columnClassNamestring列的类名,可以用它配置列宽度。默认平均分配。
controls[x].uniqueboolean设置当前列值是否唯一,即不允许重复选择。
multiplebooleanfalse是否多选
multiLinebooleanfalse默认是横着展示一排,设置以后竖着展示
minLengthnumber最少添加的条数
maxLengthnumber最多添加的条数
flatbooleanfalse是否将结果扁平化(去掉 name),只有当 controls 的 length 为 1 且 multiple 为 true 的时候才有效。
joinValuesbooleantrue默认为 true 当扁平化开启的时候,是否用分隔符的形式发送给后端,否则采用 array 的方式。
delimeterstringfalse当扁平化开启并且 joinValues 为 true 时,用什么分隔符。
addablebooleanfalse是否可新增
removablebooleanfalse是否可删除
deleteApiAPI如果配置了,则删除前会发送一个 api,请求成功才完成删除
deleteConfirmTextstring"确认要删除?"当配置 deleteApi 才生效!删除时用来做用户确认
draggablebooleanfalse是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段
draggableTipstring"可通过拖动每行中的【交换】按钮进行顺序调整"可拖拽的提示文字
addButtonTextstring"新增"新增按钮文字
scaffoldobject{}单组表单项初始值
canAccessSuperDatabooleanfalse指定是否可以自动获取上层的数据并映射到表单项上
conditionsobject数组的形式包含所有条件的渲染类型,单个数组内的test 为判断条件,数组内的controls为符合该条件后渲染的schema
typeSwitchablebooleanfalse是否可切换条件,配合conditions使用
noBorderbooleanfalse单组表单项是否显示边框
strictModebooleantrue默认为严格模式,设置为 false 时,当其他表单项更新是,里面的表单项也可以及时获取,否则不会。
syncFieldsArray<string>true配置同步字段。只有 strictMode 为 false 时有效。如果 combo 层级比较深,底层的获取外层的数据可能不同步。但是给 combo 配置这个属性就能同步下来。输入格式:["os"]
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "多行展示模式", + "fragment": "%E5%A4%9A%E8%A1%8C%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%A4%9A%E8%A1%8C%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "多选模式", + "fragment": "%E5%A4%9A%E9%80%89%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%A4%9A%E9%80%89%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "限制个数", + "fragment": "%E9%99%90%E5%88%B6%E4%B8%AA%E6%95%B0", + "fullPath": "#%E9%99%90%E5%88%B6%E4%B8%AA%E6%95%B0", + "level": 2 + }, + { + "label": "值格式", + "fragment": "%E5%80%BC%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E5%80%BC%E6%A0%BC%E5%BC%8F", + "level": 2, + "children": [ + { + "label": "打平值", + "fragment": "%E6%89%93%E5%B9%B3%E5%80%BC", + "fullPath": "#%E6%89%93%E5%B9%B3%E5%80%BC", + "level": 3 + } + ] + }, + { + "label": "唯一验证", + "fragment": "%E5%94%AF%E4%B8%80%E9%AA%8C%E8%AF%81", + "fullPath": "#%E5%94%AF%E4%B8%80%E9%AA%8C%E8%AF%81", + "level": 2 + }, + { + "label": "拖拽排序", + "fragment": "%E6%8B%96%E6%8B%BD%E6%8E%92%E5%BA%8F", + "fullPath": "#%E6%8B%96%E6%8B%BD%E6%8E%92%E5%BA%8F", + "level": 2 + }, + { + "label": "条件分支", + "fragment": "%E6%9D%A1%E4%BB%B6%E5%88%86%E6%94%AF", + "fullPath": "#%E6%9D%A1%E4%BB%B6%E5%88%86%E6%94%AF", + "level": 2 + }, + { + "label": "Tabs 模式", + "fragment": "tabs-%E6%A8%A1%E5%BC%8F", + "fullPath": "#tabs-%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "获取父级数据", + "fragment": "%E8%8E%B7%E5%8F%96%E7%88%B6%E7%BA%A7%E6%95%B0%E6%8D%AE", + "fullPath": "#%E8%8E%B7%E5%8F%96%E7%88%B6%E7%BA%A7%E6%95%B0%E6%8D%AE", + "level": 2 + }, + { + "label": "同步更新内部表单项", + "fragment": "%E5%90%8C%E6%AD%A5%E6%9B%B4%E6%96%B0%E5%86%85%E9%83%A8%E8%A1%A8%E5%8D%95%E9%A1%B9", + "fullPath": "#%E5%90%8C%E6%AD%A5%E6%9B%B4%E6%96%B0%E5%86%85%E9%83%A8%E8%A1%A8%E5%8D%95%E9%A1%B9", + "level": 2 + }, + { + "label": "设置序号", + "fragment": "%E8%AE%BE%E7%BD%AE%E5%BA%8F%E5%8F%B7", + "fullPath": "#%E8%AE%BE%E7%BD%AE%E5%BA%8F%E5%8F%B7", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/date-range.html b/gh-pages/docs/components/form/date-range.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/date-range.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/date-range_cf725ad.js b/gh-pages/docs/components/form/date-range_cf725ad.js new file mode 100644 index 000000000..083b75902 --- /dev/null +++ b/gh-pages/docs/components/form/date-range_cf725ad.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/date-range.md', function(require, exports, module, define) { + + module.exports = { + "title": "Date-Range 日期范围", + "description": null, + "type": 0, + "group": null, + "menuName": "Date-Range", + "icon": null, + "order": 15, + "html": "

基本用法

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
formatstringX日期选择器值格式
inputFormatstringYYYY-DD-MM日期选择器显示格式
placeholderstring"请选择日期范围"占位文本
shortcutsstring日期快捷键
minDatestring限制最小日期,用法同 限制范围
maxDatestring限制最大日期,用法同 限制范围
utcbooleanfalse保存UTC值
clearablebooleantrue是否可清除
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/date.html b/gh-pages/docs/components/form/date.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/date.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/date_2b84501.js b/gh-pages/docs/components/form/date_2b84501.js new file mode 100644 index 000000000..417732aa1 --- /dev/null +++ b/gh-pages/docs/components/form/date_2b84501.js @@ -0,0 +1,103 @@ +amis.define('docs/components/form/date.md', function(require, exports, module, define) { + + module.exports = { + "title": "Date 日期", + "description": null, + "type": 0, + "group": null, + "menuName": "Date", + "icon": null, + "order": 13, + "html": "

基本用法

\n

显示格式

选中任意日期,可以看到默认显示日期的格式是像2020-04-14这样的格式,如果你想要自定义显示格式,那么可以配置inputFormat

\n

例如你想显示2020年04月14日这样的格式,查找 moment 文档可知配置格式应为 YYYY年MM月DD日,即:

\n
\n

选中任意日期,观察显示格式

\n

值格式

选中任意日期,可以看到默认表单项的值格式是像1591862818这样的时间戳格式。

\n
\n

如果你想要其他格式的日期值,,那么可以配置format参数用于调整表单项的值格式。

\n

例如你调整值为2020-04-14这样的格式,查找 moment 文档可知配置格式应为 YYYY-MM-DD,即:

\n
\n

选中任意日期,观察数据域中表单项值的变化

\n

默认值

可以设置value属性,设置日期选择器的默认值

\n

基本配置

配置符合当前 值格式 的默认值。

\n
\n

相对值

value 还支持类似像"+1days"这样的相对值,更加便捷的配置默认值

\n
\n

上例中配置了"value": "+1days",默认就会选中明天。

\n

支持的相对值关键字有:

\n\n

限制范围

可以通过配置maxDateminDate显示可选范围

\n

固定时间值

[[7]]

\n

支持相对值

范围限制也支持设置 相对值

\n
\n

支持模板

也支持通过模板,设置自定义值。

\n

来一个常见例子,配置两个选择开始时间结束时间的时间选择器,需要满足:开始时间不能小于结束时间结束时间也不能大于开始时间,。

\n
\n

快捷键

你也可以配置shortcuts属性支持快捷选择日期

\n
\n

上例中我们配置了"shortcuts": ["yesterday" ,"today", "tomorrow"],选择器顶部有将会显示快捷键昨天今天明天

\n

支持的快捷键有

\n\n

UTC

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
valuestring默认值
formatstringX日期选择器值格式,更多格式类型请参考 moment
inputFormatstringYYYY-DD-MM日期选择器显示格式,即时间戳格式,更多格式类型请参考 moment
closeOnSelectbooleanfalse点选日期后,是否马上关闭选择框
placeholderstring"请选择日期"占位文本
shortcutsstring日期快捷键
minDatestring限制最小日期
maxDatestring限制最大日期
utcbooleanfalse保存utc值
clearablebooleantrue是否可清除
timeConstrainstobjecttrue请参考: react-datetime
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "显示格式", + "fragment": "%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "值格式", + "fragment": "%E5%80%BC%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E5%80%BC%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "默认值", + "fragment": "%E9%BB%98%E8%AE%A4%E5%80%BC", + "fullPath": "#%E9%BB%98%E8%AE%A4%E5%80%BC", + "level": 2, + "children": [ + { + "label": "基本配置", + "fragment": "%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE", + "level": 3 + }, + { + "label": "相对值", + "fragment": "%E7%9B%B8%E5%AF%B9%E5%80%BC", + "fullPath": "#%E7%9B%B8%E5%AF%B9%E5%80%BC", + "level": 3 + } + ] + }, + { + "label": "限制范围", + "fragment": "%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4", + "fullPath": "#%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4", + "level": 2, + "children": [ + { + "label": "固定时间值", + "fragment": "%E5%9B%BA%E5%AE%9A%E6%97%B6%E9%97%B4%E5%80%BC", + "fullPath": "#%E5%9B%BA%E5%AE%9A%E6%97%B6%E9%97%B4%E5%80%BC", + "level": 3 + }, + { + "label": "支持相对值", + "fragment": "%E6%94%AF%E6%8C%81%E7%9B%B8%E5%AF%B9%E5%80%BC", + "fullPath": "#%E6%94%AF%E6%8C%81%E7%9B%B8%E5%AF%B9%E5%80%BC", + "level": 3 + }, + { + "label": "支持模板", + "fragment": "%E6%94%AF%E6%8C%81%E6%A8%A1%E6%9D%BF", + "fullPath": "#%E6%94%AF%E6%8C%81%E6%A8%A1%E6%9D%BF", + "level": 3 + } + ] + }, + { + "label": "快捷键", + "fragment": "%E5%BF%AB%E6%8D%B7%E9%94%AE", + "fullPath": "#%E5%BF%AB%E6%8D%B7%E9%94%AE", + "level": 2 + }, + { + "label": "UTC", + "fragment": "utc", + "fullPath": "#utc", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/datetime-range.html b/gh-pages/docs/components/form/datetime-range.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/datetime-range.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/datetime-range_1aa262b.js b/gh-pages/docs/components/form/datetime-range_1aa262b.js new file mode 100644 index 000000000..4a9db9eaa --- /dev/null +++ b/gh-pages/docs/components/form/datetime-range_1aa262b.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/datetime-range.md', function(require, exports, module, define) { + + module.exports = { + "title": "Datetime-Range 日期时间范围", + "description": null, + "type": 0, + "group": null, + "menuName": "Datetime-Range", + "icon": null, + "order": 16, + "html": "

基本用法

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
formatstringX日期时间选择器值格式
inputFormatstringYYYY-DD-MM日期时间选择器显示格式
placeholderstring"请选择日期范围"占位文本
shortcutsstring日期时间快捷键
minDatestring限制最小日期时间,用法同 限制范围
maxDatestring限制最大日期时间,用法同 限制范围
utcbooleanfalse保存UTC值
clearablebooleantrue是否可清除
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/datetime.html b/gh-pages/docs/components/form/datetime.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/datetime.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/datetime_fff2baa.js b/gh-pages/docs/components/form/datetime_fff2baa.js new file mode 100644 index 000000000..03baff9ab --- /dev/null +++ b/gh-pages/docs/components/form/datetime_fff2baa.js @@ -0,0 +1,103 @@ +amis.define('docs/components/form/datetime.md', function(require, exports, module, define) { + + module.exports = { + "title": "Datetime 日期时间", + "description": null, + "type": 0, + "group": null, + "menuName": "Datetime", + "icon": null, + "order": 14, + "html": "

基本用法

\n

显示格式

选中任意日期时间,可以看到默认显示日期的格式是像2020-04-14 12:20:10这样的格式,如果你想要自定义显示格式,那么可以配置inputFormat

\n

例如你想显示2020年04月14日 12时20分10秒这样的格式,查找 moment 文档可知配置格式应为 YYYY年MM月DD日 HH时mm分ss秒,即:

\n
\n

选中任意日期时间,观察显示格式

\n

值格式

选中任意日期时间,可以看到默认表单项的值格式是像1591862818这样的时间戳格式。

\n
\n

如果你想要其他格式的日期值,,那么可以配置format参数用于调整表单项的值格式。

\n

例如你调整值为2020-04-14 12:20:10这样的格式,查找 moment 文档可知配置格式应为 YYYY-MM-DD HH:mm:ss,即:

\n
\n

选中任意日期时间,观察数据域中表单项值的变化

\n

默认值

可以设置value属性,设置日期选择器的默认值

\n

基本配置

配置符合当前 值格式 的默认值。

\n
\n

相对值

value 还支持类似像"+1hours"这样的相对值,更加便捷的配置默认值

\n
\n

上例中配置了"value": "+1hours",默认就会选中一小时后的时间。

\n

支持的相对值关键字除了 Date 中的以外,还支持:

\n\n

限制范围

可以通过配置maxDateminDate显示可选范围

\n

固定时间值

[[7]]

\n

支持相对值

范围限制也支持设置 相对值

\n
\n

支持模板

也支持通过模板,设置自定义值。

\n

来一个常见例子,配置两个选择开始时间结束时间的时间选择器,需要满足:开始时间不能小于结束时间结束时间也不能大于开始时间,。

\n
\n

快捷键

你也可以配置shortcuts属性支持快捷选择日期

\n
\n

上例中我们配置了"shortcuts": ["yesterday" ,"today", "tomorrow"],选择器顶部有将会显示快捷键昨天今天明天

\n

除了支持 的快捷键有

\n

支持的快捷键除了 Date 中的以外,还支持:

\n\n

UTC

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
valuestring默认值
formatstringX日期时间选择器值格式,更多格式类型请参考 moment
inputFormatstringYYYY-MM-DD HH:mm:ss日期时间选择器显示格式,即时间戳格式,更多格式类型请参考 moment
placeholderstring"请选择日期以及时间"占位文本
shortcutsstring日期时间快捷键
minDatestring限制最大日期时间
maxDatestring限制最大日期时间
utcbooleanfalse保存utc值
clearablebooleantrue是否可清除
timeConstrainstobjecttrue请参考: react-datetime
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "显示格式", + "fragment": "%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "值格式", + "fragment": "%E5%80%BC%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E5%80%BC%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "默认值", + "fragment": "%E9%BB%98%E8%AE%A4%E5%80%BC", + "fullPath": "#%E9%BB%98%E8%AE%A4%E5%80%BC", + "level": 2, + "children": [ + { + "label": "基本配置", + "fragment": "%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE", + "level": 3 + }, + { + "label": "相对值", + "fragment": "%E7%9B%B8%E5%AF%B9%E5%80%BC", + "fullPath": "#%E7%9B%B8%E5%AF%B9%E5%80%BC", + "level": 3 + } + ] + }, + { + "label": "限制范围", + "fragment": "%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4", + "fullPath": "#%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4", + "level": 2, + "children": [ + { + "label": "固定时间值", + "fragment": "%E5%9B%BA%E5%AE%9A%E6%97%B6%E9%97%B4%E5%80%BC", + "fullPath": "#%E5%9B%BA%E5%AE%9A%E6%97%B6%E9%97%B4%E5%80%BC", + "level": 3 + }, + { + "label": "支持相对值", + "fragment": "%E6%94%AF%E6%8C%81%E7%9B%B8%E5%AF%B9%E5%80%BC", + "fullPath": "#%E6%94%AF%E6%8C%81%E7%9B%B8%E5%AF%B9%E5%80%BC", + "level": 3 + }, + { + "label": "支持模板", + "fragment": "%E6%94%AF%E6%8C%81%E6%A8%A1%E6%9D%BF", + "fullPath": "#%E6%94%AF%E6%8C%81%E6%A8%A1%E6%9D%BF", + "level": 3 + } + ] + }, + { + "label": "快捷键", + "fragment": "%E5%BF%AB%E6%8D%B7%E9%94%AE", + "fullPath": "#%E5%BF%AB%E6%8D%B7%E9%94%AE", + "level": 2 + }, + { + "label": "UTC", + "fragment": "utc", + "fullPath": "#utc", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/diff-editor.html b/gh-pages/docs/components/form/diff-editor.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/diff-editor.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/diff-editor_2cdb917.js b/gh-pages/docs/components/form/diff-editor_2cdb917.js new file mode 100644 index 000000000..681317d92 --- /dev/null +++ b/gh-pages/docs/components/form/diff-editor_2cdb917.js @@ -0,0 +1,45 @@ +amis.define('docs/components/form/diff-editor.md', function(require, exports, module, define) { + + module.exports = { + "title": "DiffEditor 对比编辑器", + "description": null, + "type": 0, + "group": null, + "menuName": "DiffEditor 对比编辑器", + "icon": null, + "order": 17, + "html": "

基本使用

\n

禁用编辑器

左侧编辑器始终不可编辑,右侧编辑器可以通过设置disableddisabledOn,控制是否禁用

\n
\n

diff 数据域中的两个变量

如下例,左侧编辑器中的值,通过"diffValue": "${value1}"获取,右侧编辑器的值,通过设置"name": "value2",自动映射数据域中value2的值

\n
\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
languagestringjavascript编辑器高亮的语言,可选 支持的语言
diffValueTpl左侧值
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "禁用编辑器", + "fragment": "%E7%A6%81%E7%94%A8%E7%BC%96%E8%BE%91%E5%99%A8", + "fullPath": "#%E7%A6%81%E7%94%A8%E7%BC%96%E8%BE%91%E5%99%A8", + "level": 2 + }, + { + "label": "diff 数据域中的两个变量", + "fragment": "diff-%E6%95%B0%E6%8D%AE%E5%9F%9F%E4%B8%AD%E7%9A%84%E4%B8%A4%E4%B8%AA%E5%8F%98%E9%87%8F", + "fullPath": "#diff-%E6%95%B0%E6%8D%AE%E5%9F%9F%E4%B8%AD%E7%9A%84%E4%B8%A4%E4%B8%AA%E5%8F%98%E9%87%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/editor.html b/gh-pages/docs/components/form/editor.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/editor.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/editor_66729c0.js b/gh-pages/docs/components/form/editor_66729c0.js new file mode 100644 index 000000000..6c983a777 --- /dev/null +++ b/gh-pages/docs/components/form/editor_66729c0.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/editor.md', function(require, exports, module, define) { + + module.exports = { + "title": "Editor 编辑器", + "description": null, + "type": 0, + "group": null, + "menuName": "Editor", + "icon": null, + "order": 19, + "html": "

基本用法

\n

支持的语言

可以设置language配置高亮的语言,支持的语言有:

\n

batccoffeescriptcppcsharpcssdockerfilefsharpgohandlebarshtmlinijavajavascriptjsonlessluamarkdownmsdaxobjective-cphpplaintextpostiatspowershellpugpythonrrazorrubysbscsssolsqlswifttypescriptvbxmlyaml

\n
\n

当然你也可以使用xxx-editor这种形式,例如"type": "json-editor"

\n
\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
languagestringjavascript编辑器高亮的语言
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "支持的语言", + "fragment": "%E6%94%AF%E6%8C%81%E7%9A%84%E8%AF%AD%E8%A8%80", + "fullPath": "#%E6%94%AF%E6%8C%81%E7%9A%84%E8%AF%AD%E8%A8%80", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/fieldset.html b/gh-pages/docs/components/form/fieldset.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/fieldset.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/fieldset_a7c8a60.js b/gh-pages/docs/components/form/fieldset_a7c8a60.js new file mode 100644 index 000000000..29814a9f3 --- /dev/null +++ b/gh-pages/docs/components/form/fieldset_a7c8a60.js @@ -0,0 +1,53 @@ +amis.define('docs/components/form/fieldset.md', function(require, exports, module, define) { + + module.exports = { + "title": "FieldSet 表单项集合", + "description": null, + "type": 0, + "group": null, + "menuName": "FieldSet", + "icon": null, + "order": 20, + "html": "

FieldSet 是用于分组展示表单项的一种容器型组件。

\n

基本用法

可以通过配置标题title和表单项数组controls,实现多个表单项分组展示

\n
\n

展示模式

可以通过设置mode调整展示模式,用法同 Form 展示模式

\n

下面group我们配置了"mode": "horizontal",观察显示情况

\n
\n

可折叠

配置"collapsable": true可以实现点击标题折叠显隐表单项。

\n
\n

默认是否折叠

默认是展开的,如果想默认折叠,那么配置"collapsed": false默认折叠。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
classNamestringCSS 类名
headingClassNamestring标题 CSS 类名
bodyClassNamestring内容区域 CSS 类名
titleSchemaNode标题
controlsArray<表单项>表单项集合
modestring展示默认,同 Form 中的模式
collapsablebooleanfalse配置是否可折叠
collapsedbooelan展示默认,同 Form 中的模式
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "展示模式", + "fragment": "%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "可折叠", + "fragment": "%E5%8F%AF%E6%8A%98%E5%8F%A0", + "fullPath": "#%E5%8F%AF%E6%8A%98%E5%8F%A0", + "level": 2, + "children": [ + { + "label": "默认是否折叠", + "fragment": "%E9%BB%98%E8%AE%A4%E6%98%AF%E5%90%A6%E6%8A%98%E5%8F%A0", + "fullPath": "#%E9%BB%98%E8%AE%A4%E6%98%AF%E5%90%A6%E6%8A%98%E5%8F%A0", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/file.html b/gh-pages/docs/components/form/file.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/file.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/file_d0f0212.js b/gh-pages/docs/components/form/file_d0f0212.js new file mode 100644 index 000000000..c917f08ac --- /dev/null +++ b/gh-pages/docs/components/form/file_d0f0212.js @@ -0,0 +1,51 @@ +amis.define('docs/components/form/file.md', function(require, exports, module, define) { + + module.exports = { + "title": "File 文件上传", + "description": null, + "type": 0, + "group": null, + "menuName": "File", + "icon": null, + "order": 21, + "html": "

基本用法

用来负责文件上传,文件上传成功后会返回文件地址,这个文件地址会作为这个表单项的值,整个表单提交的时候,其实提交的是文件地址,文件上传已经在这个控件中完成了。

\n
\n

限制文件类型

可以配置accept来限制可选择的文件类型,格式是文件后缀名.xxx

\n
\n

想要限制多个类型,则用逗号分隔,例如:.csv,.md

\n

手动上传

如果不希望 File 组件上传,可以配置 asBlob 或者 asBase64,采用这种方式后,组件不再自己上传了,而是直接把文件数据作为表单项的值,文件内容会在 Form 表单提交的接口里面一起带上。

\n
\n

上例中,选择任意文件,然后观察数据域变化;点击提交,amis 自动会调整接口数据格式为FormData

\n

分块上传

如果文件过大,则可能需要使用分块上传

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
recieverAPI上传文件接口
acceptstringtext/plain默认只支持纯文本,要支持其他类型,请配置此属性为文件后缀.xxx
asBase64booleanfalse将文件以base64的形式,赋值给当前组件
asBlobbooleanfalse将文件以二进制的形式,赋值给当前组件
maxSizestring默认没有限制,当设置后,文件大小大于此值将不允许上传。单位为KB
maxLengthnumber默认没有限制,当设置后,一次只允许上传指定数量文件。
multiplebooleanfalse是否多选。
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
delimeterstring,拼接符
autoUploadbooleantrue否选择完就自动开始上传
hideUploadButtonbooleanfalse隐藏上传按钮
stateTextMapobject{ init: '', pending: '等待上传', uploading: '上传中', error: '上传出错', uploaded: '已上传', ready: '' }上传状态文案
fileFieldstringfile如果你不想自己存储,则可以忽略此属性。
downloadUrlbooleanstring""默认显示文件路径的时候会支持直接下载,可以支持加前缀如:http://xx.dom/filename= ,如果不希望这样,可以把当前配置项设置为 false
useChunkboolean"auto""auto"amis 所在服务器,限制了文件上传大小不得超出 10M,所以 amis 在用户选择大文件的时候,自动会改成分块上传模式。
chunkSizenumber5 * 1024 * 1024分块大小
startChunkApiAPIstartChunkApi
chunkApiAPIchunkApi
finishChunkApiAPIfinishChunkApi
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "限制文件类型", + "fragment": "%E9%99%90%E5%88%B6%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E9%99%90%E5%88%B6%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B", + "level": 2 + }, + { + "label": "手动上传", + "fragment": "%E6%89%8B%E5%8A%A8%E4%B8%8A%E4%BC%A0", + "fullPath": "#%E6%89%8B%E5%8A%A8%E4%B8%8A%E4%BC%A0", + "level": 2 + }, + { + "label": "分块上传", + "fragment": "%E5%88%86%E5%9D%97%E4%B8%8A%E4%BC%A0", + "fullPath": "#%E5%88%86%E5%9D%97%E4%B8%8A%E4%BC%A0", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/formitem.html b/gh-pages/docs/components/form/formitem.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/formitem.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/formitem_290452c.js b/gh-pages/docs/components/form/formitem_290452c.js new file mode 100644 index 000000000..698ae3b3f --- /dev/null +++ b/gh-pages/docs/components/form/formitem_290452c.js @@ -0,0 +1,141 @@ +amis.define('docs/components/form/formitem.md', function(require, exports, module, define) { + + module.exports = { + "title": "FormItem 普通表单项", + "description": null, + "type": 0, + "group": null, + "menuName": "Formula 普通表单项", + "icon": null, + "order": 1, + "html": "

表单项 是组成一个表单的基本单位,它具有的一些特性会帮助我们更好地实现表单操作。

\n
\n

所有派生自FormItem的组件,都具有FormItem的特性。

\n
\n

基本用法

最基本的表单项配置像这样:

\n
\n\n
\n

所有表单项都只可以配置在form组件中,即formcontrols属性中。

\n
\n

表单项展示

内联模式

通过配置"inline": true,标识当前表单项使用内联模式。

\n
\n

表单项尺寸

可以配置size,来调整表单项的尺寸,支持'xs' | 'sm' | 'md' | 'lg' | 'full',如下:

\n
\n
\n

不同组件的size效果可能会有所不同,具体请参考对应的组件文档。

\n
\n

表单项标签

设置label属性来配置表单项标签。

\n

当表单为水平布局时,左边即便是不设置label为了保持对齐也会留空,如果想要去掉空白,请设置成false

\n
\n

配置禁用

静态配置

通过配置"disabled": true来禁用表单项

\n
\n
通过条件配置是否禁用

你也通过表达式配置disabledOn,来实现在某个条件下禁用当前表单项.

\n
\n

配置显隐

静态配置

通过配置"hidden": true或者"visible": false来禁用表单项

\n
\n

上例中的text2被隐藏了。

\n
通过条件配置显隐

你也通过表达式配置hiddenOn,来实现在某个条件下禁用当前表单项.

\n
\n
\n

visiblehiddenvisibleOnhiddenOn除了判断逻辑相反以外,没有任何区别

\n
\n

表单项值

表单项值,即表单项通过用户交互发生变化后,更新表单数据域中同name变量值.

\n
\n

如上例,更改姓名表单项值,可以改变表单数据域中name变量的值。

\n

配置默认值

通过配置value属性,可以设置表单项的默认值。

\n
\n

value不支持数据映射,也就是说不可以直接配置类似于这样的语法:${xxx},如果想要映射当前数据域中的某个变量,那么设置该表单项name为该变量名就行,如下:

\n
\n

上例中我们表单数据域中有变量"text": "hello world!",然后我们设置表达项"name": "text",这样就可以自动映射值了。

\n

表单项必填

静态配置

通过配置"required": true来标识该表单项为必填。

\n
\n

满足条件校验必填

你也通过表达式配置requiredOn,来实现在某个条件下使当前表单项必填。

\n
\n

格式校验

可以配置validations属性,指定校验当前表单项值的格式

\n

可以通过对象形式配置

\n
\n

同样也可以配置多个格式校验

\n
\n

字符串形式(不推荐)

也可以配置字符串形式来指定,如下例,输入不合法的值,点击提交会报错并显示报错信息

\n
\n

也可以指定多个格式校验,中间用逗号分隔。

\n
\n

如果需要配置参数,例如显示最大值或最小值,则在格式标识符后:和参数

\n

自定义校验信息

amis 会有默认的报错信息,如果你想自定义校验信息,配置validationErrors属性

\n
\n

如果需要获取当前格式校验配置的参数,可以使用$1

\n
\n

表单项值发生变化即校验

默认校验是当进行行为操作时,对表单项进行校验,如果你想每次表单项的值发生变化的时候就校验,请配置"validateOnChange": false

\n

支持的格式校验

\n

服务端校验

也可以通过接口返回错误信息,实现服务端校验

\n
\n

点击提交,api 接口返回中,需要在 errors 变量中,返回某个表单项的报错信息,key值为该表单项的name值。

\n

如上,接口返回的格式如下,提交后,test2表达项会显示报错信息

\n
{\n  \"status\": 422, // 返回非0状态码\n  \"msg\": \"\",\n  \"errors\": {\n    \"test2\": \"服务器端说,这个有错误。\"\n  },\n  \"data\": null\n}\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring指定表单项类型
classNamestring表单最外层类名
inputClassNamestring表单控制器类名
labelClassNamestringlabel 的类名
namestring字段名,指定该表单项提交时的 key
label模板false表单项标签
description模板表单项描述
placeholderstring表单项描述
inlineboolean是否为 内联 模式
submitOnChangeboolean是否该表单项值发生变化时就提交当前表单。
disabledboolean当前表单项是否是禁用状态
disabledOn表达式当前表单项是否禁用的条件
visible表达式当前表单项是否禁用的条件
visibleOn表达式当前表单项是否禁用的条件
requiredboolean是否为必填。
requiredOn表达式表达式来配置当前表单项是否为必填。
validations表达式表单项值格式验证,支持设置多个,多个规则用英文逗号隔开。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "表单项展示", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%B1%95%E7%A4%BA", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%B1%95%E7%A4%BA", + "level": 2, + "children": [ + { + "label": "内联模式", + "fragment": "%E5%86%85%E8%81%94%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%86%85%E8%81%94%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "表单项尺寸", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%B0%BA%E5%AF%B8", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%B0%BA%E5%AF%B8", + "level": 3 + }, + { + "label": "表单项标签", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E6%A0%87%E7%AD%BE", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E6%A0%87%E7%AD%BE", + "level": 3 + }, + { + "label": "配置禁用", + "fragment": "%E9%85%8D%E7%BD%AE%E7%A6%81%E7%94%A8", + "fullPath": "#%E9%85%8D%E7%BD%AE%E7%A6%81%E7%94%A8", + "level": 3 + }, + { + "label": "配置显隐", + "fragment": "%E9%85%8D%E7%BD%AE%E6%98%BE%E9%9A%90", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%98%BE%E9%9A%90", + "level": 3 + } + ] + }, + { + "label": "表单项值", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%80%BC", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%80%BC", + "level": 2 + }, + { + "label": "配置默认值", + "fragment": "%E9%85%8D%E7%BD%AE%E9%BB%98%E8%AE%A4%E5%80%BC", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%BB%98%E8%AE%A4%E5%80%BC", + "level": 2 + }, + { + "label": "表单项必填", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%BF%85%E5%A1%AB", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%BF%85%E5%A1%AB", + "level": 2, + "children": [ + { + "label": "静态配置", + "fragment": "%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE", + "fullPath": "#%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE", + "level": 3 + }, + { + "label": "满足条件校验必填", + "fragment": "%E6%BB%A1%E8%B6%B3%E6%9D%A1%E4%BB%B6%E6%A0%A1%E9%AA%8C%E5%BF%85%E5%A1%AB", + "fullPath": "#%E6%BB%A1%E8%B6%B3%E6%9D%A1%E4%BB%B6%E6%A0%A1%E9%AA%8C%E5%BF%85%E5%A1%AB", + "level": 3 + } + ] + }, + { + "label": "格式校验", + "fragment": "%E6%A0%BC%E5%BC%8F%E6%A0%A1%E9%AA%8C", + "fullPath": "#%E6%A0%BC%E5%BC%8F%E6%A0%A1%E9%AA%8C", + "level": 2, + "children": [ + { + "label": "字符串形式(不推荐)", + "fragment": "%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%BD%A2%E5%BC%8F-%E4%B8%8D%E6%8E%A8%E8%8D%90-", + "fullPath": "#%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%BD%A2%E5%BC%8F-%E4%B8%8D%E6%8E%A8%E8%8D%90-", + "level": 3 + }, + { + "label": "自定义校验信息", + "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A0%A1%E9%AA%8C%E4%BF%A1%E6%81%AF", + "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A0%A1%E9%AA%8C%E4%BF%A1%E6%81%AF", + "level": 3 + }, + { + "label": "表单项值发生变化即校验", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%80%BC%E5%8F%91%E7%94%9F%E5%8F%98%E5%8C%96%E5%8D%B3%E6%A0%A1%E9%AA%8C", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%80%BC%E5%8F%91%E7%94%9F%E5%8F%98%E5%8C%96%E5%8D%B3%E6%A0%A1%E9%AA%8C", + "level": 3 + }, + { + "label": "支持的格式校验", + "fragment": "%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E6%A0%A1%E9%AA%8C", + "fullPath": "#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E6%A0%A1%E9%AA%8C", + "level": 3 + } + ] + }, + { + "label": "服务端校验", + "fragment": "%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C", + "fullPath": "#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/formula.html b/gh-pages/docs/components/form/formula.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/formula.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/formula_92cc019.js b/gh-pages/docs/components/form/formula_92cc019.js new file mode 100644 index 000000000..197ec6f9e --- /dev/null +++ b/gh-pages/docs/components/form/formula_92cc019.js @@ -0,0 +1,51 @@ +amis.define('docs/components/form/formula.md', function(require, exports, module, define) { + + module.exports = { + "title": "Formula 公式", + "description": null, + "type": 0, + "group": null, + "menuName": "Formula", + "icon": null, + "order": 22, + "html": "

可以设置公式,将公式结果设置到指定表单项上。

\n
\n

该表单项是隐藏的

\n
\n

基本用法

\n

自动应用

\n

手动应用

配置"autoSet": false,然后按钮上配置target,配置值为formulaid值,就可以实现手动触发公式应用

\n
\n
\n

为什么设置id而不是设置name?

\n

因为name值已经用来设置目标变量名了,这个表单项肯定已经存在了,所以不是唯一了,不能够被按钮指定。

\n
\n

条件应用

可以配置condition用来指定作用条件,有两种写法:

\n\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
namestring需要应用的表单项name值,公式结果将作用到此处指定的变量中去。
formula表达式应用的公式
condition表达式公式作用条件
initSetbooleantrue初始化时是否设置
autoSetbooleantrue观察公式结果,如果计算结果有变化,则自动应用到变量上
idbooleantrue定义个名字,当某个按钮的目标指定为此值后,会触发一次公式应用。这个机制可以在 autoSet 为 false 时用来手动触发
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "自动应用", + "fragment": "%E8%87%AA%E5%8A%A8%E5%BA%94%E7%94%A8", + "fullPath": "#%E8%87%AA%E5%8A%A8%E5%BA%94%E7%94%A8", + "level": 2 + }, + { + "label": "手动应用", + "fragment": "%E6%89%8B%E5%8A%A8%E5%BA%94%E7%94%A8", + "fullPath": "#%E6%89%8B%E5%8A%A8%E5%BA%94%E7%94%A8", + "level": 2 + }, + { + "label": "条件应用", + "fragment": "%E6%9D%A1%E4%BB%B6%E5%BA%94%E7%94%A8", + "fullPath": "#%E6%9D%A1%E4%BB%B6%E5%BA%94%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/grid.html b/gh-pages/docs/components/form/grid.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/grid.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/grid_9ac0207.js b/gh-pages/docs/components/form/grid_9ac0207.js new file mode 100644 index 000000000..bd36324c3 --- /dev/null +++ b/gh-pages/docs/components/form/grid_9ac0207.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/grid.md', function(require, exports, module, define) { + + module.exports = { + "title": "Grid 网格", + "description": null, + "type": 0, + "group": null, + "menuName": "Grid", + "icon": null, + "order": 23, + "html": "

支持 Form 内部再用 grid 布局进行渲染组件。

\n

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"grid"指定为 Grid 渲染器
classNamestring外层 Dom 的类名
columnsArray列集合
columns[x]SchemaNode成员可以是其他渲染器
columns[x].controlsArray<表单项>如果配置了表单集合,同时没有指定 type 类型,则优先展示表单集合
columns[x].columnClassNameint配置列的 className
columns[x].xsint宽度占比: 1 - 12
columns[x].xsHiddenboolean是否隐藏
columns[x].xsOffsetint偏移量 1 - 12
columns[x].xsPullint靠左的距离占比:1 - 12
columns[x].xsPushint靠右的距离占比: 1 - 12
columns[x].smint宽度占比: 1 - 12
columns[x].smHiddenboolean是否隐藏
columns[x].smOffsetint偏移量 1 - 12
columns[x].smPullint靠左的距离占比:1 - 12
columns[x].smPushint靠右的距离占比: 1 - 12
columns[x].mdint宽度占比: 1 - 12
columns[x].mdHiddenboolean是否隐藏
columns[x].mdOffsetint偏移量 1 - 12
columns[x].mdPullint靠左的距离占比:1 - 12
columns[x].mdPushint靠右的距离占比: 1 - 12
columns[x].lgint宽度占比: 1 - 12
columns[x].lgHiddenboolean是否隐藏
columns[x].lgOffsetint偏移量 1 - 12
columns[x].lgPullint靠左的距离占比:1 - 12
columns[x].lgPushint靠右的距离占比: 1 - 12
\n

更多使用说明,请参看 Grid Props

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/group.html b/gh-pages/docs/components/form/group.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/group.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/group_c2a9f65.js b/gh-pages/docs/components/form/group_c2a9f65.js new file mode 100644 index 000000000..6f3258e86 --- /dev/null +++ b/gh-pages/docs/components/form/group_c2a9f65.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/group.md', function(require, exports, module, define) { + + module.exports = { + "title": "Group 表单项组", + "description": null, + "type": 0, + "group": null, + "menuName": "Group", + "icon": null, + "order": 24, + "html": "

表单项,默认都是一行显示一个,Group 组件用于在一行展示多个表单项

\n

基本用法

\n

展示

可以给group组件设置mode调整展示模式,用法同 Form 展示

\n

下面group我们配置了"mode": "horizontal",观察显示情况

\n
\n

当表单在水平模式下时,如果group内表单项设置"label": false,会导致布局错乱,如下

\n
\n

这时可以给group配置label属性,保持和其他表单项布局统一

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
classNamestringCSS 类名
labelstringgroup 的标签
controlsArray<表单项>表单项集合
modestring展示默认,同 Form 中的模式
gapstring表单项之间的间距,可选:
directionstring"horizontal"可以配置水平展示还是垂直展示。对应的配置项分别是:verticalhorizontal
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "展示", + "fragment": "%E5%B1%95%E7%A4%BA", + "fullPath": "#%E5%B1%95%E7%A4%BA", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/hbox.html b/gh-pages/docs/components/form/hbox.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/hbox.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/hbox_70c4e2a.js b/gh-pages/docs/components/form/hbox_70c4e2a.js new file mode 100644 index 000000000..1fe25847b --- /dev/null +++ b/gh-pages/docs/components/form/hbox_70c4e2a.js @@ -0,0 +1,41 @@ +amis.define('docs/components/form/hbox.md', function(require, exports, module, define) { + + module.exports = { + "title": "HBox", + "description": null, + "type": 0, + "group": null, + "menuName": "HBox", + "icon": null, + "order": 25, + "html": "

表单内部也可以使用 HBox 布局,实现左右排列。更推荐 Group

\n

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
columnsArray<Column>列内容。每个 column 为一个独立的渲染器。
\n

Column 属性

除了 SchemaNode 支持属性以外,还支持以下几种属性

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
columnClassNamestring配置列的 CSS 类名
controlsArray<表单项>表单项数组,如果配置了表单集合,同时没有指定 type 类型,则优先展示表单集合。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2, + "children": [ + { + "label": "Column 属性", + "fragment": "column-%E5%B1%9E%E6%80%A7", + "fullPath": "#column-%E5%B1%9E%E6%80%A7", + "level": 3 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/hidden.html b/gh-pages/docs/components/form/hidden.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/hidden.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/hidden_66404f8.js b/gh-pages/docs/components/form/hidden_66404f8.js new file mode 100644 index 000000000..8041305aa --- /dev/null +++ b/gh-pages/docs/components/form/hidden_66404f8.js @@ -0,0 +1,27 @@ +amis.define('docs/components/form/hidden.md', function(require, exports, module, define) { + + module.exports = { + "title": "Hidden 隐藏字段", + "description": null, + "type": 0, + "group": null, + "menuName": "Hidden 隐藏字段", + "icon": null, + "order": 26, + "html": "

基本用法

默认表单提交,在没有 自定义 API 请求数据 的情况下,只会发送 controls 里面的这些成员,对于隐藏的字段同时又希望提交表单的时候带过去,可以使用 hidden 组件

\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/image.html b/gh-pages/docs/components/form/image.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/image.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/image_c6fe3b6.js b/gh-pages/docs/components/form/image_c6fe3b6.js new file mode 100644 index 000000000..957461d2e --- /dev/null +++ b/gh-pages/docs/components/form/image_c6fe3b6.js @@ -0,0 +1,53 @@ +amis.define('docs/components/form/image.md', function(require, exports, module, define) { + + module.exports = { + "title": "Image 图片", + "description": null, + "type": 0, + "group": null, + "menuName": "Image", + "icon": null, + "order": 27, + "html": "

图片格式输入,默认 amis 会直接存储在 FEX 的 hiphoto 里面,提交到 form 是直接的图片 url。

\n

基本用法

\n

限制文件类型

可以配置accept来限制可选择的文件类型,格式是文件后缀名.xxx

\n
\n

想要限制多个类型,则用逗号分隔,例如:.jpg,.png

\n

支持裁剪

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
recieverAPI上传文件接口
acceptstringtext/plain默认只支持image/jpeg, image/jpg, image/png, image/gif,要支持其他类型,请配置此属性为图片后缀.xxx
maxSizestring默认没有限制,当设置后,文件大小大于此值将不允许上传。单位为KB
maxLengthnumber默认没有限制,当设置后,一次只允许上传指定数量文件。
multiplebooleanfalse是否多选。
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
delimeterstring,拼接符
autoUploadbooleantrue否选择完就自动开始上传
hideUploadButtonbooleanfalse隐藏上传按钮
fileFieldstringfile如果你不想自己存储,则可以忽略此属性。
cropboolean{"aspectRatio":""}用来设置是否支持裁剪。
crop.aspectRationumber裁剪比例。浮点型,默认 11:1,如果要设置 16:9 请设置 1.777777777777777716 / 9。。
limitLimit限制图片大小,超出不让上传。
\n

Limit 属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
widthnumber限制图片宽度。
heightnumber限制图片高度。
minWidthnumber限制图片最小宽度。
minHeightnumber限制图片最小高度。
maxWidthnumber限制图片最大宽度。
maxHeightnumber限制图片最大高度。
aspectRationumber限制图片宽高比,格式为浮点型数字,默认 11:1,如果要设置 16:9 请设置 1.777777777777777716 / 9。 如果不想限制比率,请设置空字符串。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "限制文件类型", + "fragment": "%E9%99%90%E5%88%B6%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E9%99%90%E5%88%B6%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B", + "level": 2 + }, + { + "label": "支持裁剪", + "fragment": "%E6%94%AF%E6%8C%81%E8%A3%81%E5%89%AA", + "fullPath": "#%E6%94%AF%E6%8C%81%E8%A3%81%E5%89%AA", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2, + "children": [ + { + "label": "Limit 属性表", + "fragment": "limit-%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#limit-%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 3 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/index.html b/gh-pages/docs/components/form/index.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/index.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/index_3cbf377.js b/gh-pages/docs/components/form/index_3cbf377.js new file mode 100644 index 000000000..43f6eb32e --- /dev/null +++ b/gh-pages/docs/components/form/index_3cbf377.js @@ -0,0 +1,187 @@ +amis.define('docs/components/form/index.md', function(require, exports, module, define) { + + module.exports = { + "title": "Form 表单", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Form 表单", + "icon": null, + "order": 24, + "html": "

表单是 amis 中核心组件之一,主要作用是提交或者展示表单数据。

\n

基本用法

最基本的用法是配置 表单项 和 提交接口api

\n

如下我们配置姓名和邮箱表单项,并可以填写数据并提交给接口/api/mock2/form/saveForm

\n
\n

表单展示

默认模式

默认展示模式为文字表单项分行显示

\n
\n

水平模式

水平模式,左右摆放,左右比率分配。

\n
\n

可以配置horizontal属性,调整偏移量,格式如下:

\n
"horizontal": {\n    "left": 2,\n    "right": 10,\n    "offset": 2\n}\n
\n

内联模式

使用内联模式展现表单项

\n
\n

实现一行展示多个表单项

使用 group 实现一行显示多个表单项

\n
\n

底部按钮栏

隐藏默认提交按钮

Form 默认会在底部渲染一个提交按钮,用于执行表单的提交行为。你可以通过两种方式去掉这个默认的提交按钮:

\n
    \n
  1. 配置:"submitText": ""
  2. \n
  3. 配置:"actions": []
  4. \n
\n
\n

配置若干自定义按钮

同样,你可以通过 actions 属性,配置任意你想要的行为按钮。

\n
\n

请记住,如果想触发表单提交行为,请配置"actionType": "submit""type": "submit"按钮

\n

去掉表单边框

通过配置"wrapWithPanel": false,可以去掉默认表单边框(包括标题,按钮栏以及边距样式等)。

\n
\n

注意!配置该属性后,titleactions属性将失效并无法渲染,请在表单内自行配置。

\n

固定底部栏

如果表单项较多导致表单过长,而不方便操作底部的按钮栏,可以配置"affixFooter": true属性,将底部按钮栏固定在浏览器底部

\n

表单项数据初始化

表单可以通过配置initApi,实现表单初始化时请求接口,用于展示数据或初始化表单项。

\n
\n

轮训初始化请求

Form 支持轮训初始化接口,步骤如下:

\n
    \n
  1. 配置initApi
  2. \n
  3. 配置 interval:单位为ms,最低值3000,低于该值按3000处理
  4. \n
\n
\n

如果希望在满足某个条件的情况下停止轮训,配置stopAutoRefreshWhen表达式。

\n
\n

表单提交

配置api属性,当表单执行提交行为时,会默认将当前表单数据域中的数据使用post方式发送给所配置api

\n
\n

点击提交按钮,会看到发送表单请求,请求数据体为:

\n
{\n  \"name\": \"xxx\",\n  \"email\": \"xxx@xx.com\"\n}\n
\n

当你需要配置特定的请求方式,请求体,header时,使用对象类型 api 配置,并使用 数据映射 进行数据配置。下面示例我们更改了请求方法为PUT,并在原提交数据的基础上添加一个字段"_from"。更多用法查看 API 文档数据映射文档

\n
\n

触发表单提交行为有下面几种方式:

\n
    \n
  1. 默认的提交按钮
  2. \n
  3. 为行为按钮配置"actionType": "submit"
  4. \n
  5. 配置"type": "submit"的按钮
  6. \n
\n

轮训提交请求

通过设置asyncApi,当表单提交发送保存接口后,还会继续轮训请求该接口,默认间隔为3秒,直到返回 finished 属性为 true 才 结束。

\n
\n

如果决定结束轮训的标识字段名不是 finished,请设置finishedField属性,比如:"finishedField": "is_success"

\n

重置表单

配置"type": "reset"或者"actionType": "reset"的按钮,可以实现点击重置表单项值。

\n
\n
\n

请注意:这里的重置是将表单数据域重置到初始状态而不是清空,如果你配置了初始化接口,那么重置操作是会将表单项重置至初始化表单项值

\n
\n

表单数据域调试

配置debug:true可以查看当前表单的数据域数据详情,方便数据映射、表达式等功能调试,如下,你可以修改表单项查看数据域变化

\n
\n
\n

该配置不会展示完整的数据链,只会展示当前表单的数据域

\n
\n

禁用数据链

默认表单是可以获取到完整数据链中的数据的,但是该默认行为不适用于所有场景,例如:

\n

在 CRUD 的列表项中配置弹框,弹框中有一个表单,则该表单项中所有的同name表单项都会根据上层crud的行数据进行初始化,如果你是实现编辑的功能那并没有是什么问题,但是如果你是新建功能,那么这将不符合你的预期,你可以手动设置"canAccessSuperData": false来关闭该行为

\n

提交后行为

表单提交成功后,可以执行一些行为。

\n

重置表单

如果想提交表单成功后,重置当前表单至初始状态,可以配置"resetAfterSubmit": true

\n
\n

编辑表单项,点击提交,成功后会发现表单项的值会重置到初始状态,即空

\n
\n

注意,如果表单项有默认值,则会将该表单项的值重置至该默认值。

\n
\n

跳转页面

配置redirect属性,可以指定表单提交成功后要跳转至的页面

\n
\n

刷新目标组件

配置reload属性为其他组件name值,可以在表单提交成功之后,刷新指定组件。

\n
\n

上例中form提交成功后,会触发namemy_serviceService组件重新请求初始化接口

\n

上面示例是一种组件间联动

\n

将数据域发送给目标组件

配置target属性为目标组件name值,可以在触发提交行为后,将当前表单的数据域发送给目标组件。

\n
\n

第一个表单在提交时,会将它的表单数据域数据发送给detailForm表单,触发detailForm的初始化接口联动,重新请求接口更新数据域,并更新关键字表单项。

\n

上面示例组合使用了 组件间联动接口联动

\n

持久化保存表单项数据

表单默认在重置之后(切换页面、弹框中表单关闭表单),会自动清空掉表单中的所有数据,如果你想持久化保留当前表单项的数据而不清空它,那么配置persistData:true

\n

如果想提交成功后,清空该缓存,则配置"clearPersistDataAfterSubmit": true

\n

修改表单项变化方式

@todo

\n\n

默认表单项变化时,会即时变化,例如你输入文本,每键入一次,就会触发

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"form" 指定为 Form 渲染器
modestringnormal表单展示方式,可以是:normalhorizontal 或者 inline
horizontalObject{"left":"col-sm-2", "right":"col-sm-10", "offset":"col-sm-offset-2"}当 mode 为 horizontal 时有用,用来控制 label
titlestring"表单"Form 的标题
submitTextString"提交"默认的提交按钮名称,如果设置成空,则可以把默认按钮去掉。
classNamestring外层 Dom 的类名
controlsArray<表单项>Form 表单项集合
actionsArray<表单项>Form 提交按钮,成员为 Action
messagesObject消息提示覆写,默认消息读取的是 API 返回的消息,但是在此可以覆写它。
messages.fetchSuccessstring获取成功时提示
messages.fetchFailedstring获取失败时提示
messages.saveSuccessstring保存成功时提示
messages.saveFailedstring保存失败时提示
wrapWithPanelbooleantrue是否让 Form 用 panel 包起来,设置为 false 后,actions 将无效。
panelClassNamebooleantrue是否让 Form 用 panel 包起来,设置为 false 后,actions 将无效。
apiAPIForm 用来保存数据的 api。
initApiAPIForm 用来获取初始数据的 api。
intervalnumber3000刷新时间(最低 3000)
silentPollingbooleanfalse配置刷新时是否显示加载动画
stopAutoRefreshWhenstring""通过表达式 来配置停止刷新的条件
initAsyncApiAPIForm 用来获取初始数据的 api,与 initApi 不同的是,会一直轮训请求该接口,直到返回 finished 属性为 true 才 结束。
initFetchbooleantrue设置了 initApi 或者 initAsyncApi 后,默认会开始就发请求,设置为 false 后就不会起始就请求接口
initFetchOnstring用表达式来配置
initFinishedFieldstringfinished设置了 initAsyncApi 后,默认会从返回数据的 data.finished 来判断是否完成,也可以设置成其他的 xxx,就会从 data.xxx 中获取
initCheckIntervalnumber3000设置了 initAsyncApi 以后,默认拉取的时间间隔
asyncApiAPI设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束。
checkIntervalnumber3000轮训请求的时间间隔,默认为 3 秒。设置 asyncApi 才有效
finishedFieldstring"finished"如果决定结束的字段名不是 finished 请设置此属性,比如 is_success
submitOnChangebooleanfalse表单修改即提交
submitOnInitbooleanfalse初始就提交一次
resetAfterSubmitbooleanfalse提交后是否重置表单
primaryFieldstring"id"设置主键 id, 当设置后,检测表单是否完成时(asyncApi),只会携带此数据。
targetstring默认表单提交自己会通过发送 api 保存数据,但是也可以设定另外一个 form 的 name 值,或者另外一个 CRUD 模型的 name 值。 如果 target 目标是一个 Form ,则目标 Form 会重新触发 initApi,api 可以拿到当前 form 数据。如果目标是一个 CRUD 模型,则目标模型会重新触发搜索,参数为当前 Form 数据。当目标是 window 时,会把当前表单的数据附带到页面地址上。
redirectstring设置此属性后,Form 保存成功后,自动跳转到指定页面。支持相对地址,和绝对地址(相对于组内的)。
reloadstring操作完后刷新目标对象。请填写目标组件设置的 name 值,如果填写为 window 则让当前页面整体刷新。
autoFocusbooleanfalse是否自动聚焦。
canAccessSuperDatabooleantrue指定是否可以自动获取上层的数据并映射到表单项上
persistDatabooleantrue指定表单是否开启本地缓存
clearPersistDataAfterSubmitbooleantrue指定表单提交成功后是否清除本地缓存
namestring设置一个名字后,方便其他组件与其通信
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "表单展示", + "fragment": "%E8%A1%A8%E5%8D%95%E5%B1%95%E7%A4%BA", + "fullPath": "#%E8%A1%A8%E5%8D%95%E5%B1%95%E7%A4%BA", + "level": 2, + "children": [ + { + "label": "默认模式", + "fragment": "%E9%BB%98%E8%AE%A4%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E9%BB%98%E8%AE%A4%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "水平模式", + "fragment": "%E6%B0%B4%E5%B9%B3%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E6%B0%B4%E5%B9%B3%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "内联模式", + "fragment": "%E5%86%85%E8%81%94%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%86%85%E8%81%94%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "实现一行展示多个表单项", + "fragment": "%E5%AE%9E%E7%8E%B0%E4%B8%80%E8%A1%8C%E5%B1%95%E7%A4%BA%E5%A4%9A%E4%B8%AA%E8%A1%A8%E5%8D%95%E9%A1%B9", + "fullPath": "#%E5%AE%9E%E7%8E%B0%E4%B8%80%E8%A1%8C%E5%B1%95%E7%A4%BA%E5%A4%9A%E4%B8%AA%E8%A1%A8%E5%8D%95%E9%A1%B9", + "level": 3 + }, + { + "label": "底部按钮栏", + "fragment": "%E5%BA%95%E9%83%A8%E6%8C%89%E9%92%AE%E6%A0%8F", + "fullPath": "#%E5%BA%95%E9%83%A8%E6%8C%89%E9%92%AE%E6%A0%8F", + "level": 3, + "children": [ + { + "label": "隐藏默认提交按钮", + "fragment": "%E9%9A%90%E8%97%8F%E9%BB%98%E8%AE%A4%E6%8F%90%E4%BA%A4%E6%8C%89%E9%92%AE", + "fullPath": "#%E9%9A%90%E8%97%8F%E9%BB%98%E8%AE%A4%E6%8F%90%E4%BA%A4%E6%8C%89%E9%92%AE", + "level": 4 + }, + { + "label": "配置若干自定义按钮", + "fragment": "%E9%85%8D%E7%BD%AE%E8%8B%A5%E5%B9%B2%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8C%89%E9%92%AE", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%8B%A5%E5%B9%B2%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8C%89%E9%92%AE", + "level": 4 + } + ] + }, + { + "label": "去掉表单边框", + "fragment": "%E5%8E%BB%E6%8E%89%E8%A1%A8%E5%8D%95%E8%BE%B9%E6%A1%86", + "fullPath": "#%E5%8E%BB%E6%8E%89%E8%A1%A8%E5%8D%95%E8%BE%B9%E6%A1%86", + "level": 3 + }, + { + "label": "固定底部栏", + "fragment": "%E5%9B%BA%E5%AE%9A%E5%BA%95%E9%83%A8%E6%A0%8F", + "fullPath": "#%E5%9B%BA%E5%AE%9A%E5%BA%95%E9%83%A8%E6%A0%8F", + "level": 3 + } + ] + }, + { + "label": "表单项数据初始化", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E6%95%B0%E6%8D%AE%E5%88%9D%E5%A7%8B%E5%8C%96", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E6%95%B0%E6%8D%AE%E5%88%9D%E5%A7%8B%E5%8C%96", + "level": 2, + "children": [ + { + "label": "轮训初始化请求", + "fragment": "%E8%BD%AE%E8%AE%AD%E5%88%9D%E5%A7%8B%E5%8C%96%E8%AF%B7%E6%B1%82", + "fullPath": "#%E8%BD%AE%E8%AE%AD%E5%88%9D%E5%A7%8B%E5%8C%96%E8%AF%B7%E6%B1%82", + "level": 3 + } + ] + }, + { + "label": "表单提交", + "fragment": "%E8%A1%A8%E5%8D%95%E6%8F%90%E4%BA%A4", + "fullPath": "#%E8%A1%A8%E5%8D%95%E6%8F%90%E4%BA%A4", + "level": 2, + "children": [ + { + "label": "轮训提交请求", + "fragment": "%E8%BD%AE%E8%AE%AD%E6%8F%90%E4%BA%A4%E8%AF%B7%E6%B1%82", + "fullPath": "#%E8%BD%AE%E8%AE%AD%E6%8F%90%E4%BA%A4%E8%AF%B7%E6%B1%82", + "level": 3 + } + ] + }, + { + "label": "重置表单", + "fragment": "%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "fullPath": "#%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "level": 2 + }, + { + "label": "表单数据域调试", + "fragment": "%E8%A1%A8%E5%8D%95%E6%95%B0%E6%8D%AE%E5%9F%9F%E8%B0%83%E8%AF%95", + "fullPath": "#%E8%A1%A8%E5%8D%95%E6%95%B0%E6%8D%AE%E5%9F%9F%E8%B0%83%E8%AF%95", + "level": 2 + }, + { + "label": "禁用数据链", + "fragment": "%E7%A6%81%E7%94%A8%E6%95%B0%E6%8D%AE%E9%93%BE", + "fullPath": "#%E7%A6%81%E7%94%A8%E6%95%B0%E6%8D%AE%E9%93%BE", + "level": 2 + }, + { + "label": "提交后行为", + "fragment": "%E6%8F%90%E4%BA%A4%E5%90%8E%E8%A1%8C%E4%B8%BA", + "fullPath": "#%E6%8F%90%E4%BA%A4%E5%90%8E%E8%A1%8C%E4%B8%BA", + "level": 2, + "children": [ + { + "label": "重置表单", + "fragment": "%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "fullPath": "#%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95", + "level": 3 + }, + { + "label": "跳转页面", + "fragment": "%E8%B7%B3%E8%BD%AC%E9%A1%B5%E9%9D%A2", + "fullPath": "#%E8%B7%B3%E8%BD%AC%E9%A1%B5%E9%9D%A2", + "level": 3 + }, + { + "label": "刷新目标组件", + "fragment": "%E5%88%B7%E6%96%B0%E7%9B%AE%E6%A0%87%E7%BB%84%E4%BB%B6", + "fullPath": "#%E5%88%B7%E6%96%B0%E7%9B%AE%E6%A0%87%E7%BB%84%E4%BB%B6", + "level": 3 + }, + { + "label": "将数据域发送给目标组件", + "fragment": "%E5%B0%86%E6%95%B0%E6%8D%AE%E5%9F%9F%E5%8F%91%E9%80%81%E7%BB%99%E7%9B%AE%E6%A0%87%E7%BB%84%E4%BB%B6", + "fullPath": "#%E5%B0%86%E6%95%B0%E6%8D%AE%E5%9F%9F%E5%8F%91%E9%80%81%E7%BB%99%E7%9B%AE%E6%A0%87%E7%BB%84%E4%BB%B6", + "level": 3 + } + ] + }, + { + "label": "持久化保存表单项数据", + "fragment": "%E6%8C%81%E4%B9%85%E5%8C%96%E4%BF%9D%E5%AD%98%E8%A1%A8%E5%8D%95%E9%A1%B9%E6%95%B0%E6%8D%AE", + "fullPath": "#%E6%8C%81%E4%B9%85%E5%8C%96%E4%BF%9D%E5%AD%98%E8%A1%A8%E5%8D%95%E9%A1%B9%E6%95%B0%E6%8D%AE", + "level": 2 + }, + { + "label": "修改表单项变化方式", + "fragment": "%E4%BF%AE%E6%94%B9%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%8F%98%E5%8C%96%E6%96%B9%E5%BC%8F", + "fullPath": "#%E4%BF%AE%E6%94%B9%E8%A1%A8%E5%8D%95%E9%A1%B9%E5%8F%98%E5%8C%96%E6%96%B9%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/input-group.html b/gh-pages/docs/components/form/input-group.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/input-group.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/input-group_0207619.js b/gh-pages/docs/components/form/input-group_0207619.js new file mode 100644 index 000000000..fe7627249 --- /dev/null +++ b/gh-pages/docs/components/form/input-group_0207619.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/input-group.md', function(require, exports, module, define) { + + module.exports = { + "title": "Input-Group 输入框组合", + "description": null, + "type": 0, + "group": null, + "menuName": "Input-Group", + "icon": null, + "order": 28, + "html": "

输入框组合选择器 可用于输入框与其他组件进行组合。

\n

基本用法

\n

校验

input-group 配置校验方法较为特殊,需要配置下面步骤:

\n
    \n
  1. input-group 上配置任意name
  2. \n
  3. input-group 的 controls 内配置的表单项上配置校验规则
  4. \n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
classNamestringCSS 类名
controlsArray<表单项>表单项集合
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "校验", + "fragment": "%E6%A0%A1%E9%AA%8C", + "fullPath": "#%E6%A0%A1%E9%AA%8C", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/list.html b/gh-pages/docs/components/form/list.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/list.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/list_8445f10.js b/gh-pages/docs/components/form/list_8445f10.js new file mode 100644 index 000000000..42fa3c5cf --- /dev/null +++ b/gh-pages/docs/components/form/list_8445f10.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/list.md', function(require, exports, module, define) { + + module.exports = { + "title": "List 列表", + "description": null, + "type": 0, + "group": null, + "menuName": "List", + "icon": null, + "order": 29, + "html": "

基本用法

\n

选项带图片

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
multiplebooleanfalse多选
labelFieldboolean"label"选项标签字段
valueFieldboolean"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
autoFillobject自动填充
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "选项带图片", + "fragment": "%E9%80%89%E9%A1%B9%E5%B8%A6%E5%9B%BE%E7%89%87", + "fullPath": "#%E9%80%89%E9%A1%B9%E5%B8%A6%E5%9B%BE%E7%89%87", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/matrix.html b/gh-pages/docs/components/form/matrix.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/matrix.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/matrix_b19da5c.js b/gh-pages/docs/components/form/matrix_b19da5c.js new file mode 100644 index 000000000..7cbab356e --- /dev/null +++ b/gh-pages/docs/components/form/matrix_b19da5c.js @@ -0,0 +1,65 @@ +amis.define('docs/components/form/matrix.md', function(require, exports, module, define) { + + module.exports = { + "title": "Matrix 矩阵", + "description": null, + "type": 0, + "group": null, + "menuName": "Matrix", + "icon": null, + "order": 30, + "html": "

矩阵类型的输入框。

\n

基本用法

\n

单选模式

配置"multiple": false可以设置单选,配置singleSelectMode可以设置单选模式

\n
\n

动态选项

可以配置 source 渲染动态选项

\n
\n

以上面为例,source 接口返回格式如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"ok\",\n  \"data\": {\n    \"columns\": [\n      {\n        \"label\": \"Col A\",\n        \"col\": \"a\"\n      },\n      {\n        \"label\": \"Col B\",\n        \"col\": \"b\"\n      },\n      {\n        \"label\": \"Col C\",\n        \"col\": \"c\"\n      },\n      {\n        \"label\": \"Col D\",\n        \"col\": \"d\"\n      },\n      {\n        \"label\": \"Col E\",\n        \"col\": \"e\"\n      }\n    ],\n    \"rows\": [\n      {\n        \"label\": \"Row 1\",\n        \"rol\": 1\n      },\n      {\n        \"label\": \"Row 2\",\n        \"rol\": 2\n      },\n      {\n        \"label\": \"Row 3\",\n        \"rol\": 3\n      },\n      {\n        \"label\": \"Row 4\",\n        \"rol\": 4\n      },\n      {\n        \"label\": \"Row 5\",\n        \"rol\": 5\n      },\n      {\n        \"label\": \"Row 6\",\n        \"rol\": 6\n      }\n    ]\n  }\n}\n
\n

column 模式

默认为 column 模式,即每列只能单选某个单元格

\n
\n

cell 模式

cell 模式,指全部选项中只能单选某个单元格

\n
\n

row 模式

row 模式,每行只能单选某个单元格

\n
\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
columnsArray<column>列信息,数组中 label 字段是必须给出的
rowsArray<row>行信息, 数组中 label 字段是必须给出的
rowLabelstring行标题说明
sourceAPIApi 地址,如果选项组不固定,可以通过配置 source 动态拉取。
multiplebooleantrue是否多选
singleSelectModestring"column"设置单选模式,multiplefalse时有效,可设置为cell, row, column 分别为全部选项中只能单选某个单元格、每行只能单选某个单元格,每列只能单选某个单元格
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "单选模式", + "fragment": "%E5%8D%95%E9%80%89%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%8D%95%E9%80%89%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "动态选项", + "fragment": "%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9", + "fullPath": "#%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9", + "level": 2, + "children": [ + { + "label": "column 模式", + "fragment": "column-%E6%A8%A1%E5%BC%8F", + "fullPath": "#column-%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "cell 模式", + "fragment": "cell-%E6%A8%A1%E5%BC%8F", + "fullPath": "#cell-%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "row 模式", + "fragment": "row-%E6%A8%A1%E5%BC%8F", + "fullPath": "#row-%E6%A8%A1%E5%BC%8F", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/nestedselect.html b/gh-pages/docs/components/form/nestedselect.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/nestedselect.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/nestedselect_5cb111c.js b/gh-pages/docs/components/form/nestedselect_5cb111c.js new file mode 100644 index 000000000..7bbfecc56 --- /dev/null +++ b/gh-pages/docs/components/form/nestedselect_5cb111c.js @@ -0,0 +1,45 @@ +amis.define('docs/components/form/nestedselect.md', function(require, exports, module, define) { + + module.exports = { + "title": "NestedSelect 级联选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "NestedSelect 级联选择器", + "icon": null, + "order": 31, + "html": "

基本用法

\n

选中父节点是否自动选中子节点

默认选中父节点会自动选中子节点,可以设置"cascade": true,不自动选中子节点

\n
\n

选中父节点,值是否包含子节点

默认选中父节点,是不会带上子节点的值,想要自动带上子节点的值,那么配置"withChildren": true

\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
delimeterbooleanfalse拼接符
labelFieldboolean"label"选项标签字段
valueFieldboolean"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
autoFillobject自动填充
cascadebooleanfalse设置 true时,当选中父节点时不自动选择子节点。
withChildrenbooleanfalse设置 true时,选中父节点时,值里面将包含子节点的值,否则只会保留父节点的值。
searchPromptTextstring"输入内容进行检索"搜索框占位文本
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "选中父节点是否自动选中子节点", + "fragment": "%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9%E6%98%AF%E5%90%A6%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E5%AD%90%E8%8A%82%E7%82%B9", + "fullPath": "#%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9%E6%98%AF%E5%90%A6%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E5%AD%90%E8%8A%82%E7%82%B9", + "level": 2 + }, + { + "label": "选中父节点,值是否包含子节点", + "fragment": "%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9-%E5%80%BC%E6%98%AF%E5%90%A6%E5%8C%85%E5%90%AB%E5%AD%90%E8%8A%82%E7%82%B9", + "fullPath": "#%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9-%E5%80%BC%E6%98%AF%E5%90%A6%E5%8C%85%E5%90%AB%E5%AD%90%E8%8A%82%E7%82%B9", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/number.html b/gh-pages/docs/components/form/number.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/number.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/number_25ae740.js b/gh-pages/docs/components/form/number_25ae740.js new file mode 100644 index 000000000..79ed9fec4 --- /dev/null +++ b/gh-pages/docs/components/form/number_25ae740.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/number.md', function(require, exports, module, define) { + + module.exports = { + "title": "Number 数字输入框", + "description": null, + "type": 0, + "group": null, + "menuName": "Number", + "icon": null, + "order": 32, + "html": "

基本用法

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
min模板最小值
max模板最大值
stepnumber步长
precisionnumber精度,即小数点后几位
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/options.html b/gh-pages/docs/components/form/options.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/options.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/options_767ada8.js b/gh-pages/docs/components/form/options_767ada8.js new file mode 100644 index 000000000..f721064f0 --- /dev/null +++ b/gh-pages/docs/components/form/options_767ada8.js @@ -0,0 +1,223 @@ +amis.define('docs/components/form/options.md', function(require, exports, module, define) { + + module.exports = { + "title": "Options 选择器表单项", + "description": null, + "type": 0, + "group": null, + "menuName": "Options 选择器表单项", + "icon": null, + "order": 2, + "html": "

选择器表单项 是指那些(例如下拉选择框)具有选择器特性的表单项

\n

它派生自 表单项,拥有表单项所有的特性。

\n

静态选项组 options

选择器表单项可以通过配置一组选项(options),可以供给用户选择,如下:

\n
\n

options属性配置的对象数组就是select组件的选项组。

\n

选项组格式

标准格式
{\n    \"options\": [\n        {\n            \"label\": \"xxx1\",\n            \"value\": \"value1\"\n            ... // 其他变量值\n        },\n        {\n            \"label\": \"xxx2\",\n            \"value\": \"value2\"\n            ... // 其他变量值\n        }\n    ]\n}\n
\n

标准的选项格式为对象数组,数组中的每个对象需要两个必备字段:

\n\n

查看下面例子,修改选项你会发现数据域会发发生变化,改数据域中该表单项的值为选中选项的value值。

\n
\n
简单格式

也可以配置简单的字符串或数字数组,此时默认labelvalue保持一致

\n
\n

动态选项组 source

通过数据域中变量配置

你也可以配置source属性,利用 数据映射,获取当前数据链中的变量

\n
\n

上例中,我们给 select 组件,配置"source": "${items}",获取了当前数据域中的items变量作为选项组。

\n

远程拉取

除了可以通过数据映射获取当前数据域中的变量以外,source还支持配置接口,格式为 API,用于动态返回选项组。

\n
\n

远程拉取接口时,返回的数据结构除了需要满足 amis 接口要求的基本数据结构 以外,必须用"options"作为选项组的key值,如下

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    // 必须用 options 作为选项组的 key 值\n    \"options\": [\n      {\n        \"label\": \"A\",\n        \"value\": \"a\"\n      },\n      {\n        \"label\": \"B\",\n        \"value\": \"b\"\n      },\n      {\n        \"label\": \"C\",\n        \"value\": \"c\"\n      }\n    ]\n  }\n}\n
\n

自动选中

我们知道表单项可以通过配置value属性来设置默认值

\n

而选择器表单项如果设置value属性,为某一个选项中的value值,那么该选择器将自动选中该选项。

\n

静态配置

静态配置同表单项默认值配置方式,直接在组件上配置value属性。

\n
\n

上例我们设置默认值为b,则会自动匹配到选项B并选中。

\n

动态配置

有时候我们想默认选中一个选项,但是options又是远程拉取的,无法确定默认值是啥,这时候,需要在source接口中返回value,来动态设置默认值,接口返回数据结构如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"value\": \"b\", // 这样就会自动选中b选项\n    \"options\": [\n      {\n        \"label\": \"A\",\n        \"value\": \"a\"\n      },\n      {\n        \"label\": \"B\",\n        \"value\": \"b\"\n      },\n      {\n        \"label\": \"C\",\n        \"value\": \"c\"\n      }\n    ]\n  }\n}\n
\n

多选 multiple

大部分选择器组件默认是单选的,可以配置"multiple": true支持多选。

\n
\n

拼接符 delimiter

多选模式下,默认表单项值为选中的选项的value值,用默认拼接符,拼接,如下

\n
\n

默认的拼接符是逗号,,但是当你的某个选项中的value值内包含,这个字符,这样会造成一些预期中的问题

\n

你可以设置delimiter属性,自定义拼接符,保证不与你选项中的value值冲突

\n
\n

上例我们value中有逗号,与默认拼接符冲突,这时设置"delimiter": "|",可以看到选择多个选项时,每个选项的value属性会用|拼接起来,作为表单项的值

\n

拼接值 joinValues

当选择器表单项选中某一选项后,当前表单项的值格式默认:

\n\n

选中下面两个选择器,观察数据域值变化。

\n
\n

但是你可以通过配置"joinValues": false,来获取完整的选项对象

\n

单选模式

单选模式下,配置"joinValues": false,该表单项值为选中选项的完整对象值,选中下例中的任意选项,观察数据域变化。

\n
\n

多选模式

多选模式下,配置"joinValues": false,该表单项值为所有选中项的对象数组

\n
\n

自动选中问题

当你通过joinValues调整选择器表单项的数据结构后,设置默认值时,格式也要和设置的数据结构保持一致

\n

例如下面这个例子,当你给select设置了"joinValues": false时,选中 B 选项,则该表单项值为{"label":"B","value":"b"},如果你想要默认选中某一项,则也需要设置value为完整的对象:{"label":"B","value":"b"}

\n
\n

提取多选值 extractValue

"joinValues": false时,默认会将选中的所有选项组成的对象数组,作为表单项的值,如果你想只抽取选项中的 value 值,拼成新的数组,那么可以配置"extractValue": true

\n
\n

选中所有选型,你会看到表单项的值为:["a", "b", "c"]

\n

自动选中问题

当你通过joinValuesextractValue调整选择器表单项的数据结构后,设置默认值时,格式也要和设置的数据结构保持一致

\n

例如下面这个例子,当你给select设置了"joinValues": false"extractValue": true时,选中 A、B 选项,则该表单项值为["a", "b"],如果你想要默认选中某一项,则也需要设置value为同样格式:["a", "b"]

\n
\n

自动补全 autoComplete

\n

可以在autoComplete配置中,用数据映射,获取变量term,为当前输入的关键字。

\n

支持该配置项的组件有:Text、Select、Chained-Select、TreeSelect。

\n

选项标签字段 labelField

默认渲染选项组,会获取每一项中的label变量作为展示文本,如果你的选中项中没有label字段,可能会有显示问题

\n

例如下例中,options 中只有textvalue字段而没有 value 字段,这时点开下拉框,你会发现选项无法正常显示。

\n
\n

这种情况下如果你想自定义该字段,则可以设置labelField

\n
\n
\n

不推荐使用该方式,建议格式化好选项组数据结构

\n
\n

选项值字段 valueField

默认渲染选项组,会获取每一项中的value变量作为表单项值,如果你的选中项中没有value字段,将会无法选中

\n

例如下例中,options 中只有labelval字段而没有value字段,这时点开下拉框,你会发现选项无法正常选中。

\n
\n

这种情况下如果你想自定义该字段,则可以设置valueField

\n
\n
\n

不推荐使用该方式,建议格式化好选项组数据结构

\n
\n

新增选项

部分选择器组件支持在前端进行新增选项的操作。

\n

支持该功能的组件有:CheckBoxes、Select、Tree

\n

前端新增 creatable

,可以配置"creatable": true,支持在前端临时新增选项。

\n
\n

点开下拉框,会看到选项列表底部有新增选项按钮,点击后会显示一个包含简单表单的弹框,点击提交可以新增选项,不同组件交互会有不同。

\n

新增选项表单弹框的默认配置如下:

\n
{\n  \"type\": \"dialog\",\n  \"title\": \"新增选项\",\n  \"body\": {\n    \"type\": \"form\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"name\": \"label\",\n        \"label\": false,\n        \"placeholder\": \"请输入名称\"\n      }\n    ]\n  }\n}\n
\n\n

自定义新增表单项 addControls

默认只有一个文本框,也就是意味着,默认添加选项后,该选项labelvalue是一样的,如果你想自定义该表单中的表单项,你可以通过配置addControls属性

\n
\n

上例中你可以选项标题输入D,选项值输入d。实现自定义添加选项格式

\n

不过在没配置保存接口时,addControls中务必需要有labelFieldvalueField所配置的name表单项才可以正确保存

\n
\n

addControls属性格式为表单项数组,更多细节参考 FormItem 表单项

\n
\n

配置新增接口 addApi

默认新增只会暂时把新增的值保存在前端,如果你想前端新增选项后,同时把该选项保存到后端,则可以配置保存接口addApi

\n
\n
\n

配置addApi实际上将该配置值设置给该表单的api属性。

\n

如果同时配置了sourceaddApi,添加选项成功后会重新获取请求source接口

\n
\n

编辑选项

部分选择器组件支持在前端编辑选项

\n

支持该功能的组件有:CheckBoxes、Select、Tree、Table-formitem

\n

前端编辑 editable

配置"editable": true,支持在前端编辑选项。

\n
\n

点开下拉框,会看到每个选项右侧有一个编辑图标,点击后会显示一个编辑选项的弹框,修改后点击提交可以编辑选项标签。不同组件交互会有不同

\n

编辑选项弹框的默认配置如下:

\n
{\n  \"type\": \"dialog\",\n  \"title\": \"新增选项\",\n  \"body\": {\n    \"type\": \"form\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"name\": \"label\",\n        \"label\": false,\n        \"placeholder\": \"请输入名称\"\n      }\n    ]\n  }\n}\n
\n\n

自定义编辑表单项 editControls

默认只能修改当前选项的label属性,如果你想要修改其他属性,可以配置editControls,自定义编辑表单项

\n
\n

修改后重新选中该表单项,观察数据域中数据变化。

\n

配置编辑接口 editApi

默认编辑只会作用在前端,如果你想前端编辑选项后,同时把该选项保存到后端,则可以配置保存接口editApi

\n
\n
\n

配置editApi实际上将该配置值设置给编辑表单的api属性。

\n

如果同时配置了sourceeditApi,添加选项成功后会重新获取请求source接口

\n
\n

删除选项

部分选择器组件,支持在前端进行编辑选项操作

\n

支持该功能的组件有:CheckBoxes、Select、Tree、Table-formitem

\n

配置删除接口 deleteApi

删除选项不支持在前端级别删除,我们认为是没有意义的,必须要配置deleteApi使用接口进行删除

\n

配置"removable": truedeleteApi,支持在前端删除选项。

\n
\n

点开下拉框,鼠标悬浮在选项上,可以看到右侧会有删除图标,点击可请求删除接口进行删除

\n

自动填充 autoFill

一些选择器组件,支持配置autoFill,将当前已选中的选项的某个字段的值,自动填充到表单中某个表单项中,只在单选时有效,支持数据映射

\n
\n

上例中我们配置了"autoFill": {"option": "${label}"},表示将选中项中的label的值,自动填充到当前表单项中nameoption的文本框中。

\n

支持该配置项的有:ButtonGroup、List、NestedSelect、Picker、Radios、Select。

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组,供用户选择
sourcestringAPI选项组源,可通过数据映射获取当前数据域变量、或者配置 API 对象
multiplebooleanfalse是否多选
labelFieldboolean"label"标识选项中哪个字段是label
valueFieldboolean"value"标识选项中哪个字段是value
joinValuesbooleantrue是否拼接value
extractValuebooleanfalse是否将value值抽取出来组成新的数组,只有在joinValuesfalse是生效
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "静态选项组 options", + "fragment": "%E9%9D%99%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-options", + "fullPath": "#%E9%9D%99%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-options", + "level": 2, + "children": [ + { + "label": "选项组格式", + "fragment": "%E9%80%89%E9%A1%B9%E7%BB%84%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E9%80%89%E9%A1%B9%E7%BB%84%E6%A0%BC%E5%BC%8F", + "level": 3 + } + ] + }, + { + "label": "动态选项组 source", + "fragment": "%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-source", + "fullPath": "#%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-source", + "level": 2, + "children": [ + { + "label": "通过数据域中变量配置", + "fragment": "%E9%80%9A%E8%BF%87%E6%95%B0%E6%8D%AE%E5%9F%9F%E4%B8%AD%E5%8F%98%E9%87%8F%E9%85%8D%E7%BD%AE", + "fullPath": "#%E9%80%9A%E8%BF%87%E6%95%B0%E6%8D%AE%E5%9F%9F%E4%B8%AD%E5%8F%98%E9%87%8F%E9%85%8D%E7%BD%AE", + "level": 3 + }, + { + "label": "远程拉取", + "fragment": "%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96", + "fullPath": "#%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96", + "level": 3 + } + ] + }, + { + "label": "自动选中", + "fragment": "%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD", + "fullPath": "#%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD", + "level": 2, + "children": [ + { + "label": "静态配置", + "fragment": "%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE", + "fullPath": "#%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE", + "level": 3 + }, + { + "label": "动态配置", + "fragment": "%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE", + "level": 3 + } + ] + }, + { + "label": "多选 multiple", + "fragment": "%E5%A4%9A%E9%80%89-multiple", + "fullPath": "#%E5%A4%9A%E9%80%89-multiple", + "level": 2 + }, + { + "label": "拼接符 delimiter", + "fragment": "%E6%8B%BC%E6%8E%A5%E7%AC%A6-delimiter", + "fullPath": "#%E6%8B%BC%E6%8E%A5%E7%AC%A6-delimiter", + "level": 2 + }, + { + "label": "拼接值 joinValues", + "fragment": "%E6%8B%BC%E6%8E%A5%E5%80%BC-joinvalues", + "fullPath": "#%E6%8B%BC%E6%8E%A5%E5%80%BC-joinvalues", + "level": 2, + "children": [ + { + "label": "单选模式", + "fragment": "%E5%8D%95%E9%80%89%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%8D%95%E9%80%89%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "多选模式", + "fragment": "%E5%A4%9A%E9%80%89%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%A4%9A%E9%80%89%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "自动选中问题", + "fragment": "%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E9%97%AE%E9%A2%98", + "fullPath": "#%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E9%97%AE%E9%A2%98", + "level": 3 + } + ] + }, + { + "label": "提取多选值 extractValue", + "fragment": "%E6%8F%90%E5%8F%96%E5%A4%9A%E9%80%89%E5%80%BC-extractvalue", + "fullPath": "#%E6%8F%90%E5%8F%96%E5%A4%9A%E9%80%89%E5%80%BC-extractvalue", + "level": 2, + "children": [ + { + "label": "自动选中问题", + "fragment": "%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E9%97%AE%E9%A2%98", + "fullPath": "#%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E9%97%AE%E9%A2%98", + "level": 3 + } + ] + }, + { + "label": "自动补全 autoComplete", + "fragment": "%E8%87%AA%E5%8A%A8%E8%A1%A5%E5%85%A8-autocomplete", + "fullPath": "#%E8%87%AA%E5%8A%A8%E8%A1%A5%E5%85%A8-autocomplete", + "level": 2 + }, + { + "label": "选项标签字段 labelField", + "fragment": "%E9%80%89%E9%A1%B9%E6%A0%87%E7%AD%BE%E5%AD%97%E6%AE%B5-labelfield", + "fullPath": "#%E9%80%89%E9%A1%B9%E6%A0%87%E7%AD%BE%E5%AD%97%E6%AE%B5-labelfield", + "level": 2 + }, + { + "label": "选项值字段 valueField", + "fragment": "%E9%80%89%E9%A1%B9%E5%80%BC%E5%AD%97%E6%AE%B5-valuefield", + "fullPath": "#%E9%80%89%E9%A1%B9%E5%80%BC%E5%AD%97%E6%AE%B5-valuefield", + "level": 2 + }, + { + "label": "新增选项", + "fragment": "%E6%96%B0%E5%A2%9E%E9%80%89%E9%A1%B9", + "fullPath": "#%E6%96%B0%E5%A2%9E%E9%80%89%E9%A1%B9", + "level": 2, + "children": [ + { + "label": "前端新增 creatable", + "fragment": "%E5%89%8D%E7%AB%AF%E6%96%B0%E5%A2%9E-creatable", + "fullPath": "#%E5%89%8D%E7%AB%AF%E6%96%B0%E5%A2%9E-creatable", + "level": 3 + }, + { + "label": "自定义新增表单项 addControls", + "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89%E6%96%B0%E5%A2%9E%E8%A1%A8%E5%8D%95%E9%A1%B9-addcontrols", + "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%96%B0%E5%A2%9E%E8%A1%A8%E5%8D%95%E9%A1%B9-addcontrols", + "level": 3 + }, + { + "label": "配置新增接口 addApi", + "fragment": "%E9%85%8D%E7%BD%AE%E6%96%B0%E5%A2%9E%E6%8E%A5%E5%8F%A3-addapi", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%96%B0%E5%A2%9E%E6%8E%A5%E5%8F%A3-addapi", + "level": 3 + } + ] + }, + { + "label": "编辑选项", + "fragment": "%E7%BC%96%E8%BE%91%E9%80%89%E9%A1%B9", + "fullPath": "#%E7%BC%96%E8%BE%91%E9%80%89%E9%A1%B9", + "level": 2, + "children": [ + { + "label": "前端编辑 editable", + "fragment": "%E5%89%8D%E7%AB%AF%E7%BC%96%E8%BE%91-editable", + "fullPath": "#%E5%89%8D%E7%AB%AF%E7%BC%96%E8%BE%91-editable", + "level": 3 + }, + { + "label": "自定义编辑表单项 editControls", + "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BC%96%E8%BE%91%E8%A1%A8%E5%8D%95%E9%A1%B9-editcontrols", + "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BC%96%E8%BE%91%E8%A1%A8%E5%8D%95%E9%A1%B9-editcontrols", + "level": 3 + }, + { + "label": "配置编辑接口 editApi", + "fragment": "%E9%85%8D%E7%BD%AE%E7%BC%96%E8%BE%91%E6%8E%A5%E5%8F%A3-editapi", + "fullPath": "#%E9%85%8D%E7%BD%AE%E7%BC%96%E8%BE%91%E6%8E%A5%E5%8F%A3-editapi", + "level": 3 + } + ] + }, + { + "label": "删除选项", + "fragment": "%E5%88%A0%E9%99%A4%E9%80%89%E9%A1%B9", + "fullPath": "#%E5%88%A0%E9%99%A4%E9%80%89%E9%A1%B9", + "level": 2, + "children": [ + { + "label": "配置删除接口 deleteApi", + "fragment": "%E9%85%8D%E7%BD%AE%E5%88%A0%E9%99%A4%E6%8E%A5%E5%8F%A3-deleteapi", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%88%A0%E9%99%A4%E6%8E%A5%E5%8F%A3-deleteapi", + "level": 3 + } + ] + }, + { + "label": "自动填充 autoFill", + "fragment": "%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%85%85-autofill", + "fullPath": "#%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%85%85-autofill", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/panel.html b/gh-pages/docs/components/form/panel.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/panel.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/panel_a25fc7f.js b/gh-pages/docs/components/form/panel_a25fc7f.js new file mode 100644 index 000000000..d3f209663 --- /dev/null +++ b/gh-pages/docs/components/form/panel_a25fc7f.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/panel.md', function(require, exports, module, define) { + + module.exports = { + "title": "Panel 面板", + "description": null, + "type": 0, + "group": null, + "menuName": "Panel", + "icon": null, + "order": 34, + "html": "

还是为了布局,可以把一部分 FormItem 合并到一个 panel 里面单独展示。

\n

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
titlestringpanel 标题
bodySchemaNode内容区
bodyClassNamestringbody 的 className
footerSchemaNode底部区
footerClassNamestringfooter 的 className
controlsArray<表单项>controlsbody 二选一,如果设置了 controls 优先显示表单集合。
\n\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/picker.html b/gh-pages/docs/components/form/picker.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/picker.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/picker_5475b7b.js b/gh-pages/docs/components/form/picker_5475b7b.js new file mode 100644 index 000000000..5df03ce81 --- /dev/null +++ b/gh-pages/docs/components/form/picker_5475b7b.js @@ -0,0 +1,45 @@ +amis.define('docs/components/form/picker.md', function(require, exports, module, define) { + + module.exports = { + "title": "Picker 列表选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "Picker", + "icon": null, + "order": 35, + "html": "

列表选取。可以静态数据,或者通过接口拉取动态数据。

\n

基本用法

\n

配置 pickerSchema

可以配置 pickerSchema,实现弹框 crud 选择模式,更多 crud 配置可查看 crud 文档

\n
\n

内嵌模式

可以配置"embed": true,实现内嵌 picker

\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
multipleboolean是否为多选。
delimeterbooleanfalse拼接符
labelFieldboolean"label"选项标签字段
valueFieldboolean"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
autoFillobject自动填充
modalModestring"dialog"设置 dialog 或者 drawer,用来配置弹出方式。
pickerSchemastring{mode: 'list', listItem: {title: '${label}'}}即用 List 类型的渲染,来展示列表信息。更多配置参考 CRUD
embedbooleanfalse是否使用内嵌模式
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置 pickerSchema", + "fragment": "%E9%85%8D%E7%BD%AE-pickerschema", + "fullPath": "#%E9%85%8D%E7%BD%AE-pickerschema", + "level": 2 + }, + { + "label": "内嵌模式", + "fragment": "%E5%86%85%E5%B5%8C%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%86%85%E5%B5%8C%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/radios.html b/gh-pages/docs/components/form/radios.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/radios.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/radios_150cedb.js b/gh-pages/docs/components/form/radios_150cedb.js new file mode 100644 index 000000000..f1fa98c27 --- /dev/null +++ b/gh-pages/docs/components/form/radios_150cedb.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/radios.md', function(require, exports, module, define) { + + module.exports = { + "title": "Radios 单选框", + "description": null, + "type": 0, + "group": null, + "menuName": "Radios 单选框", + "icon": null, + "order": 36, + "html": "

基本用法

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
labelFieldboolean"label"选项标签字段
valueFieldboolean"value"选项值字段
columnsCountnumber1选项按几列显示,默认为一列
autoFillobject自动填充
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/range.html b/gh-pages/docs/components/form/range.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/range.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/range_03f7f4d.js b/gh-pages/docs/components/form/range_03f7f4d.js new file mode 100644 index 000000000..c2aead773 --- /dev/null +++ b/gh-pages/docs/components/form/range_03f7f4d.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/range.md', function(require, exports, module, define) { + + module.exports = { + "title": "Range 滑块", + "description": null, + "type": 0, + "group": null, + "menuName": "Range 范围", + "icon": null, + "order": 38, + "html": "

基本用法

\n

选择范围

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
classNamestringcss 类名
minnumber最小值
maxnumber最大值
stepnumber步长
multiplebooleanfalse支持选择范围
joinValusebooleantrue默认为 true,选择的 value 会通过 delimiter 连接起来,否则直接将以{min: 1, max: 100}的形式提交,开启multiple时有效
delimiterstring,分隔符
unitstring单位
clearableboolean是否可清除
showInputstring是否显示输入框
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "选择范围", + "fragment": "%E9%80%89%E6%8B%A9%E8%8C%83%E5%9B%B4", + "fullPath": "#%E9%80%89%E6%8B%A9%E8%8C%83%E5%9B%B4", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/rating.html b/gh-pages/docs/components/form/rating.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/rating.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/rating_d8a03f7.js b/gh-pages/docs/components/form/rating_d8a03f7.js new file mode 100644 index 000000000..743c48806 --- /dev/null +++ b/gh-pages/docs/components/form/rating_d8a03f7.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/rating.md', function(require, exports, module, define) { + + module.exports = { + "title": "Rating 评分", + "description": null, + "type": 0, + "group": null, + "menuName": "Rating 评分", + "icon": null, + "order": 37, + "html": "

基本用法

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
halfbooleanfalse是否使用半星选择
countnumber5共有多少星可供选择
readOnlybooleanfalse只读
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/repeat.html b/gh-pages/docs/components/form/repeat.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/repeat.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/repeat_0dd0d65.js b/gh-pages/docs/components/form/repeat_0dd0d65.js new file mode 100644 index 000000000..49109e185 --- /dev/null +++ b/gh-pages/docs/components/form/repeat_0dd0d65.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/repeat.md', function(require, exports, module, define) { + + module.exports = { + "title": "Repeat 重复频率选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "Repeat 重复频率", + "icon": null, + "order": 39, + "html": "

基本用法

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsstringhourly,daily,weekly,monthly可用配置 secondly,minutely,hourly,daily,weekdays,weekly,monthly,yearly
placeholderstring不重复当不指定值时的说明。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/rich-text.html b/gh-pages/docs/components/form/rich-text.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/rich-text.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/rich-text_834e56f.js b/gh-pages/docs/components/form/rich-text_834e56f.js new file mode 100644 index 000000000..eecb3a79a --- /dev/null +++ b/gh-pages/docs/components/form/rich-text_834e56f.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/rich-text.md', function(require, exports, module, define) { + + module.exports = { + "title": "Rich-Text 富文本编辑器", + "description": null, + "type": 0, + "group": null, + "menuName": "Rich-Text", + "icon": null, + "order": 47, + "html": "

基本用法

\n

配置 buttons

[\n  'paragraphFormat',\n  'quote',\n  'color',\n  '|',\n  'bold',\n  'italic',\n  'underline',\n  'strikeThrough',\n  '|',\n  'formatOL',\n  'formatUL',\n  'align',\n  '|',\n  'insertLink',\n  'insertImage',\n  'insertTable',\n  '|',\n  'undo',\n  'redo',\n  'html'\n];\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
saveAsUbbboolean是否保存为 ubb 格式
recieverAPI默认的图片保存 API
sizestring框的大小,可设置为 md 或者 lg
optionsobjectObject 类型,给富文本的配置信息。请参考 https://www.froala.com/wysiwyg-editor/docs/options
buttonsArray<string>`[ 'paragraphFormat', 'quote', 'color', '', 'bold', 'italic', 'underline', 'strikeThrough', '', 'formatOL', 'formatUL', 'align', '', 'insertLink', 'insertImage', 'insertTable', '', 'undo', 'redo', 'html' ]`精度,即小数点后几位
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置 buttons", + "fragment": "%E9%85%8D%E7%BD%AE-buttons", + "fullPath": "#%E9%85%8D%E7%BD%AE-buttons", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/select.html b/gh-pages/docs/components/form/select.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/select.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/select_ea3976f.js b/gh-pages/docs/components/form/select_ea3976f.js new file mode 100644 index 000000000..fd90cd20c --- /dev/null +++ b/gh-pages/docs/components/form/select_ea3976f.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/select.md', function(require, exports, module, define) { + + module.exports = { + "title": "Select 选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "Select 选择器", + "icon": null, + "order": 48, + "html": "

基本用法

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
autoCompleteAPI自动提示补全
delimeterstringfalse拼接符
labelFieldstring"label"选项标签字段
valueFieldstring"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
checkAllbooleanfalse是否支持全选
checkAllLabelstring全选全选的文字
defaultCheckAllbooleanfalse默认是否全选
creatablebooleanfalse新增选项
createBtnLabelstring"新增选项"新增选项
addControlsArray<表单项>自定义新增表单项
addApiAPI配置新增选项接口
editablebooleanfalse编辑选项
editControlsArray<表单项>自定义编辑表单项
editApiAPI配置编辑选项接口
removablebooleanfalse删除选项
deleteApiAPI配置删除选项接口
autoFillobject自动填充
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/service.html b/gh-pages/docs/components/form/service.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/service.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/service_272f05f.js b/gh-pages/docs/components/form/service_272f05f.js new file mode 100644 index 000000000..6dafe384c --- /dev/null +++ b/gh-pages/docs/components/form/service_272f05f.js @@ -0,0 +1,59 @@ +amis.define('docs/components/form/service.md', function(require, exports, module, define) { + + module.exports = { + "title": "Service 功能容器", + "description": null, + "type": 0, + "group": null, + "menuName": "Service", + "icon": null, + "order": 49, + "html": "

基本用法

\n

上例中我们在text表单项外,嵌套一层 service,用于初始化该表单项

\n
\n

一般初始化表单项是使用 form 的initApi配置,当你需要多个接口来初始化一个表单中的表单项时,可以考虑使用 service

\n
\n

作为 FormItem 的不同点

除了支持非表单项时的Service的功能以外。作为 FormItem 使用时最大的不同在于作为容器渲染器,他的孩子是优先用表单项还是非表单项。

\n

比如放置一个 {type: 'text'},是渲染一个文本输入框、还是一个文本展示?

\n

两种应该都存在可能,所以作为表单项的 Service, 有两种用法,当把孩子节点放在 controls 里面时输出表单项,如果放在 body 底下时输出非表单项。

\n

放在 body 属性下,输出纯展示类组件

\n

放在 controls 属性下,输出表单项

\n

接口联动

Service 中的apischemaApi都支持接口联动

\n

下面例子中,数据模板下拉框的值变化后,会触发 service 重新拉取 api 接口,从而更新数据源,变化表单项的值,更多用法查看 接口联动

\n
\n

动态渲染表单项

默认 Service 可以通过配置schemaApi 动态渲染页面内容,但是如果想渲染表单项,请返回下面这种格式:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"name\": \"text\",\n        \"label\": \"文本输入\"\n      }\n    ]\n  }\n}\n
\n

例如下例:

\n
\n

schemaApi 同样支持

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "作为 FormItem 的不同点", + "fragment": "%E4%BD%9C%E4%B8%BA-formitem-%E7%9A%84%E4%B8%8D%E5%90%8C%E7%82%B9", + "fullPath": "#%E4%BD%9C%E4%B8%BA-formitem-%E7%9A%84%E4%B8%8D%E5%90%8C%E7%82%B9", + "level": 2, + "children": [ + { + "label": "放在 body 属性下,输出纯展示类组件", + "fragment": "%E6%94%BE%E5%9C%A8-body-%E5%B1%9E%E6%80%A7%E4%B8%8B-%E8%BE%93%E5%87%BA%E7%BA%AF%E5%B1%95%E7%A4%BA%E7%B1%BB%E7%BB%84%E4%BB%B6", + "fullPath": "#%E6%94%BE%E5%9C%A8-body-%E5%B1%9E%E6%80%A7%E4%B8%8B-%E8%BE%93%E5%87%BA%E7%BA%AF%E5%B1%95%E7%A4%BA%E7%B1%BB%E7%BB%84%E4%BB%B6", + "level": 3 + }, + { + "label": "放在 controls 属性下,输出表单项", + "fragment": "%E6%94%BE%E5%9C%A8-controls-%E5%B1%9E%E6%80%A7%E4%B8%8B-%E8%BE%93%E5%87%BA%E8%A1%A8%E5%8D%95%E9%A1%B9", + "fullPath": "#%E6%94%BE%E5%9C%A8-controls-%E5%B1%9E%E6%80%A7%E4%B8%8B-%E8%BE%93%E5%87%BA%E8%A1%A8%E5%8D%95%E9%A1%B9", + "level": 3 + } + ] + }, + { + "label": "接口联动", + "fragment": "%E6%8E%A5%E5%8F%A3%E8%81%94%E5%8A%A8", + "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%81%94%E5%8A%A8", + "level": 2 + }, + { + "label": "动态渲染表单项", + "fragment": "%E5%8A%A8%E6%80%81%E6%B8%B2%E6%9F%93%E8%A1%A8%E5%8D%95%E9%A1%B9", + "fullPath": "#%E5%8A%A8%E6%80%81%E6%B8%B2%E6%9F%93%E8%A1%A8%E5%8D%95%E9%A1%B9", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/static.html b/gh-pages/docs/components/form/static.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/static.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/static_99a4237.js b/gh-pages/docs/components/form/static_99a4237.js new file mode 100644 index 000000000..321b5f815 --- /dev/null +++ b/gh-pages/docs/components/form/static_99a4237.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/static.md', function(require, exports, module, define) { + + module.exports = { + "title": "Static 静态展示", + "description": null, + "type": 0, + "group": null, + "menuName": "Static 静态展示", + "icon": null, + "order": 52, + "html": "

用来在表单中,展示静态数据

\n

基本用法

\n

数据域变量映射

除了显式配置value属性,来展示数据以外,支持通过配置name属性,来自动映射数据域中的相关变量

\n
\n

展示其他组件

支持通过配置typestatic-xxx的形式,展示其他 表单项 组件,例如:

\n
\n

理论上可以支持所有非表达项的所有组件,并且支持对应的配置项,下面是一些示例:

\n
\n

想要调整展示组件的配置,请查阅相应组件的文档。

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "数据域变量映射", + "fragment": "%E6%95%B0%E6%8D%AE%E5%9F%9F%E5%8F%98%E9%87%8F%E6%98%A0%E5%B0%84", + "fullPath": "#%E6%95%B0%E6%8D%AE%E5%9F%9F%E5%8F%98%E9%87%8F%E6%98%A0%E5%B0%84", + "level": 2 + }, + { + "label": "展示其他组件", + "fragment": "%E5%B1%95%E7%A4%BA%E5%85%B6%E4%BB%96%E7%BB%84%E4%BB%B6", + "fullPath": "#%E5%B1%95%E7%A4%BA%E5%85%B6%E4%BB%96%E7%BB%84%E4%BB%B6", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/subform.html b/gh-pages/docs/components/form/subform.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/subform.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/subform_0d92a4d.js b/gh-pages/docs/components/form/subform_0d92a4d.js new file mode 100644 index 000000000..a32111a96 --- /dev/null +++ b/gh-pages/docs/components/form/subform_0d92a4d.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/subform.md', function(require, exports, module, define) { + + module.exports = { + "title": "SubForm 子表单", + "description": null, + "type": 0, + "group": null, + "menuName": "SubForm 子表单", + "icon": null, + "order": 50, + "html": "

基本用法

\n

多选模式

可以配置"multiple": true,实现多选模式

\n
\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
multiplebooleanfalse是否为多选模式
labelFieldstring当值中存在这个字段,则按钮名称将使用此字段的值来展示。
btnLabelstring"设置"按钮默认名称
minLengthnumber0限制最小长度。
maxLengthnumber0限制最大长度。
addButtonClassNamestringbtn-success btn-sm新增按钮 CSS 类名
editButtonClassNamestringbtn-info btn-addon btn-sm修改按钮 CSS 类名
formForm子表单配置,同 Form
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "多选模式", + "fragment": "%E5%A4%9A%E9%80%89%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%A4%9A%E9%80%89%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/switch.html b/gh-pages/docs/components/form/switch.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/switch.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/switch_d67faa6.js b/gh-pages/docs/components/form/switch_d67faa6.js new file mode 100644 index 000000000..45d7909f0 --- /dev/null +++ b/gh-pages/docs/components/form/switch_d67faa6.js @@ -0,0 +1,39 @@ +amis.define('docs/components/form/switch.md', function(require, exports, module, define) { + + module.exports = { + "title": "Switch 开关", + "description": null, + "type": 0, + "group": null, + "menuName": "Switch", + "icon": null, + "order": 51, + "html": "

基本用法

\n

配置真假值

默认情况:

\n\n
\n

如果你想调整这个值,可以配置trueValuefalseValue

\n
\n

调整开关,观察数据域变化,会发现打开后值为1,而关闭后为0

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionstring选项说明
trueValueanytrue标识真值
falseValueany"false"标识假值
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置真假值", + "fragment": "%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC", + "fullPath": "#%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/table.html b/gh-pages/docs/components/form/table.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/table.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/table_f742e94.js b/gh-pages/docs/components/form/table_f742e94.js new file mode 100644 index 000000000..bc1f6005f --- /dev/null +++ b/gh-pages/docs/components/form/table_f742e94.js @@ -0,0 +1,59 @@ +amis.define('docs/components/form/table.md', function(require, exports, module, define) { + + module.exports = { + "title": "Table 表格", + "description": null, + "type": 0, + "group": null, + "menuName": "Table 表格", + "icon": null, + "order": 54, + "html": "

基本用法

可以用来展示数组类型的数据。配置columns 数组,来定义列信息。

\n
\n

我们为表单数据域设置了table变量,配置table表单项可以展示该数据

\n

可新增行

可以配置addableeditable指定可以新增且编辑行数据

\n
\n

按钮触发新增行

按钮上配置"actionType": "add"target指定表格name,可以实现点击按钮添加一行的效果。

\n
\n

编辑行配置

还可以在列上配置quickEdit实现编辑配置,更多配置参考 快速编辑

\n
\n

可拖拽

配置"draggable": true,实现可拖拽调整顺序

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"table"指定为 Table 渲染器
addablebooleanfalse是否可增加一行
editablebooleanfalse是否可编辑
removablebooleanfalse是否可删除
showAddBtnbooleantrue是否显示添加按钮
addApiAPI-新增时提交的 API
updateApiAPI-修改时提交的 API
deleteApiAPI-删除时提交的 API
addBtnLabelstring增加按钮名称
addBtnIconstring"fa fa-plus"增加按钮图标
updateBtnLabelstring""更新按钮名称
updateBtnIconstring"fa fa-pencil"更新按钮图标
deleteBtnLabelstring""删除按钮名称
deleteBtnIconstring"fa fa-minus"删除按钮图标
confirmBtnLabelstring""确认编辑按钮名称
confirmBtnIconstring"fa fa-check"确认编辑按钮图标
cancelBtnLabelstring""取消编辑按钮名称
cancelBtnIconstring"fa fa-times"取消编辑按钮图标
columnsarray[]列信息
columns[x].quickEditboolean 或者 object-配合 editable 为 true 一起使用
columns[x].quickEditOnUpdateboolean 或者 object-可以用来区分新建模式和更新模式的编辑配置
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "可新增行", + "fragment": "%E5%8F%AF%E6%96%B0%E5%A2%9E%E8%A1%8C", + "fullPath": "#%E5%8F%AF%E6%96%B0%E5%A2%9E%E8%A1%8C", + "level": 2, + "children": [ + { + "label": "按钮触发新增行", + "fragment": "%E6%8C%89%E9%92%AE%E8%A7%A6%E5%8F%91%E6%96%B0%E5%A2%9E%E8%A1%8C", + "fullPath": "#%E6%8C%89%E9%92%AE%E8%A7%A6%E5%8F%91%E6%96%B0%E5%A2%9E%E8%A1%8C", + "level": 3 + }, + { + "label": "编辑行配置", + "fragment": "%E7%BC%96%E8%BE%91%E8%A1%8C%E9%85%8D%E7%BD%AE", + "fullPath": "#%E7%BC%96%E8%BE%91%E8%A1%8C%E9%85%8D%E7%BD%AE", + "level": 3 + } + ] + }, + { + "label": "可拖拽", + "fragment": "%E5%8F%AF%E6%8B%96%E6%8B%BD", + "fullPath": "#%E5%8F%AF%E6%8B%96%E6%8B%BD", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/tabs.html b/gh-pages/docs/components/form/tabs.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/tabs.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/tabs_58991e8.js b/gh-pages/docs/components/form/tabs_58991e8.js new file mode 100644 index 000000000..bc300b7da --- /dev/null +++ b/gh-pages/docs/components/form/tabs_58991e8.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/tabs.md', function(require, exports, module, define) { + + module.exports = { + "title": "Tabs 选项卡", + "description": null, + "type": 0, + "group": null, + "menuName": "Tabs 选项卡", + "icon": null, + "order": 53, + "html": "

有多组输入框时,也可以通过选项卡来分组。

\n

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
tabsArraytabs 内容
toolbarSchemaNodetabs 中的工具栏
toolbarClassNamestringtabs 中工具栏的类名
tabs[x].titlestringTab 标题
tabs[x].bodySchemaNode内容容器
tabs[x].controlsArray<表单项>表单项集合。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/tag.html b/gh-pages/docs/components/form/tag.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/tag.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/tag_66c7895.js b/gh-pages/docs/components/form/tag_66c7895.js new file mode 100644 index 000000000..c02b908f4 --- /dev/null +++ b/gh-pages/docs/components/form/tag_66c7895.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/tag.md', function(require, exports, module, define) { + + module.exports = { + "title": "Tag 标签选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "Tag 标签选择器", + "icon": null, + "order": 55, + "html": "

基本使用

\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
optionsTipArray<object>Array<string>"最近您使用的标签"选项提示
sourcestringAPI动态选项组
delimeterstringfalse拼接符
labelFieldstring"label"选项标签字段
valueFieldstring"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
clearablebooleanfalse在有值的时候是否显示一个删除图标在右侧。
resetValuestring""删除后设置此配置项给定的值。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/text.html b/gh-pages/docs/components/form/text.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/text.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/text_8c0b817.js b/gh-pages/docs/components/form/text_8c0b817.js new file mode 100644 index 000000000..55daf15ba --- /dev/null +++ b/gh-pages/docs/components/form/text_8c0b817.js @@ -0,0 +1,51 @@ +amis.define('docs/components/form/text.md', function(require, exports, module, define) { + + module.exports = { + "title": "Text 输入框", + "description": null, + "type": 0, + "group": null, + "menuName": "Text 输入框", + "icon": null, + "order": 56, + "html": "

基本使用

\n

不同类型

配置type可以支持不同格式的文本输入框

\n
\n

附加组件

可以配置addOn,附带附加组件

\n
\n

选择器模式

配置options即可支持选择器模式。

\n
\n

选择器模式下,支持部分选择器组件支持的配置项,具体请查看下面的属性表

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
autoCompletestringAPI自动补全
multipleboolean是否多选
delimeterstring,拼接符
labelFieldstring"label"选项标签字段
valueFieldstring"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
addOnaddOn输入框附加组件,比如附带一个提示文字,或者附带一个提交按钮。
addOn.typestring请选择 textbutton 或者 submit
addOn.labelstring文字说明
addOn.xxxstring其他参数请参考按钮文档
trimContentsboolean是否去除首尾空白文本。
clearableboolean是否可清除
resetValuestring""清除后设置此配置项给定的值。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "不同类型", + "fragment": "%E4%B8%8D%E5%90%8C%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E4%B8%8D%E5%90%8C%E7%B1%BB%E5%9E%8B", + "level": 2 + }, + { + "label": "附加组件", + "fragment": "%E9%99%84%E5%8A%A0%E7%BB%84%E4%BB%B6", + "fullPath": "#%E9%99%84%E5%8A%A0%E7%BB%84%E4%BB%B6", + "level": 2 + }, + { + "label": "选择器模式", + "fragment": "%E9%80%89%E6%8B%A9%E5%99%A8%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E9%80%89%E6%8B%A9%E5%99%A8%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/textarea.html b/gh-pages/docs/components/form/textarea.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/textarea.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/textarea_1e5d429.js b/gh-pages/docs/components/form/textarea_1e5d429.js new file mode 100644 index 000000000..17f604f43 --- /dev/null +++ b/gh-pages/docs/components/form/textarea_1e5d429.js @@ -0,0 +1,33 @@ +amis.define('docs/components/form/textarea.md', function(require, exports, module, define) { + + module.exports = { + "title": "Textarea 多行文本输入框", + "description": null, + "type": 0, + "group": null, + "menuName": "Textarea 多行文本输入框", + "icon": null, + "order": 57, + "html": "

基本使用

\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
minRowsnumber最小行数
maxRowsnumber最大行数
trimContentsboolean是否去除首尾空白文本。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/time.html b/gh-pages/docs/components/form/time.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/time.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/time_ddec400.js b/gh-pages/docs/components/form/time_ddec400.js new file mode 100644 index 000000000..3ae1790f5 --- /dev/null +++ b/gh-pages/docs/components/form/time_ddec400.js @@ -0,0 +1,65 @@ +amis.define('docs/components/form/time.md', function(require, exports, module, define) { + + module.exports = { + "title": "Time 时间", + "description": null, + "type": 0, + "group": null, + "menuName": "Time 时间", + "icon": null, + "order": 58, + "html": "

基本用法

\n

显示格式

选中任意时间,可以看到默认显示时间的格式是像01:01这样的格式,如果你想要自定义显示格式,那么可以配置inputFormat

\n

例如你想显示01时01分这样的格式,查找 moment 文档可知配置格式应为 HH时mm分,即:

\n
\n

调整时间,观察显示格式

\n

值格式

选中任意时间,可以看到默认表单项的值格式是像1591862818这样的时间戳格式。

\n
\n

如果你想要其他格式的日期值,,那么可以配置format参数用于调整表单项的值格式。

\n

例如你调整值为01:11这样的格式,查找 moment 文档可知配置格式应为 HH:mm,即:

\n
\n

调整时间,观察数据域中表单项值的变化

\n

默认值

可以设置value属性,设置日期选择器的默认值

\n

基本配置

配置符合当前 值格式 的默认值。

\n
\n

相对值

value 还支持类似像"+1hours"这样的相对值,更加便捷的配置默认值

\n
\n

上例中配置了"value": "+1hours",默认就会选中一小时后。

\n

支持的相对值关键字有:

\n\n

属性表

除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
valuestring默认值
formatstringX时间选择器值格式,更多格式类型请参考 moment
inputFormatstringHH:mm时间选择器显示格式,即时间戳格式,更多格式类型请参考 moment
placeholderstring"请选择时间"占位文本
clearablebooleantrue是否可清除
timeConstrainstobjecttrue请参考: react-datetime
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "显示格式", + "fragment": "%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "值格式", + "fragment": "%E5%80%BC%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E5%80%BC%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "默认值", + "fragment": "%E9%BB%98%E8%AE%A4%E5%80%BC", + "fullPath": "#%E9%BB%98%E8%AE%A4%E5%80%BC", + "level": 2, + "children": [ + { + "label": "基本配置", + "fragment": "%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE", + "level": 3 + }, + { + "label": "相对值", + "fragment": "%E7%9B%B8%E5%AF%B9%E5%80%BC", + "fullPath": "#%E7%9B%B8%E5%AF%B9%E5%80%BC", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/tree.html b/gh-pages/docs/components/form/tree.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/tree.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/tree_471c535.js b/gh-pages/docs/components/form/tree_471c535.js new file mode 100644 index 000000000..4b6be9123 --- /dev/null +++ b/gh-pages/docs/components/form/tree_471c535.js @@ -0,0 +1,57 @@ +amis.define('docs/components/form/tree.md', function(require, exports, module, define) { + + module.exports = { + "title": "Tree 树形选择框", + "description": null, + "type": 0, + "group": null, + "menuName": "Tree 树形选择框", + "icon": null, + "order": 59, + "html": "

基本使用

配置的options中,可以通过children字段进行嵌套展示,实现树形选择器

\n
\n

选择器样式

配置"type": "tree-select"可以实现选择器样式

\n
\n

选中父节点是否自动选中子节点

默认选中父节点会自动选中子节点,可以设置"cascade": true,不自动选中子节点

\n
\n

选中父节点,值是否包含子节点

默认选中父节点,是不会带上子节点的值,想要自动带上子节点的值,那么配置"withChildren": true

\n
\n

也可以设置onlyChildren,实现只包含子节点的值

\n
\n

默认展开

默认是展开所有子节点的,如果不想默认展开,则配置"initiallyOpen": false

\n
\n

如果层级较多,也可以配置unfoldedLevel指定展开的层级数。

\n

下例中设置"unfoldedLevel": 1,默认展开第 1 层

\n
\n

属性表

当做选择器表单项使用时,除了支持 普通表单项属性表 中的配置以外,还支持下面一些配置

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
optionsArray<object>Array<string>选项组
sourcestringAPI动态选项组
autoCompleteAPI自动提示补全
multiplebooleanfalse是否多选
delimeterstringfalse拼接符
labelFieldstring"label"选项标签字段
valueFieldstring"value"选项值字段
joinValuesbooleantrue拼接值
extractValuebooleanfalse提取值
creatablebooleanfalse新增选项
addControlsArray<表单项>自定义新增表单项
addApiAPI配置新增选项接口
editablebooleanfalse编辑选项
editControlsArray<表单项>自定义编辑表单项
editApiAPI配置编辑选项接口
removablebooleanfalse删除选项
deleteApiAPI配置删除选项接口
hideRootbooleantrue如果想要显示个顶级节点,请设置为 false
rootLabelboolean"顶级"hideRoot 不为 false 时有用,用来设置顶级节点的文字。
showIconbooleantrue是否显示图标
showRadiobooleanfalse是否显示单选按钮,multiplefalse 是有效。
initiallyOpenbooleantrue设置是否默认展开所有层级。
unfoldedLevelnumber0设置默认展开的级数,只有initiallyOpen不是true时生效。
cascadebooleanfalse当选中父节点时不自动选择子节点。
withChildrenbooleanfalse选中父节点时,值里面将包含子节点的值,否则只会保留父节点的值。
onlyChildrenbooleanfalse多选时,选中父节点时,是否只将其子节点加入到值中。
rootCreatablebooleanfalse是否可以创建顶级节点
rootCreateTipstring"添加一级节点"创建顶级节点的悬浮提示
minLengthnumber最少选中的节点数
maxLengthnumber最多选中的节点数
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "选择器样式", + "fragment": "%E9%80%89%E6%8B%A9%E5%99%A8%E6%A0%B7%E5%BC%8F", + "fullPath": "#%E9%80%89%E6%8B%A9%E5%99%A8%E6%A0%B7%E5%BC%8F", + "level": 2 + }, + { + "label": "选中父节点是否自动选中子节点", + "fragment": "%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9%E6%98%AF%E5%90%A6%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E5%AD%90%E8%8A%82%E7%82%B9", + "fullPath": "#%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9%E6%98%AF%E5%90%A6%E8%87%AA%E5%8A%A8%E9%80%89%E4%B8%AD%E5%AD%90%E8%8A%82%E7%82%B9", + "level": 2 + }, + { + "label": "选中父节点,值是否包含子节点", + "fragment": "%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9-%E5%80%BC%E6%98%AF%E5%90%A6%E5%8C%85%E5%90%AB%E5%AD%90%E8%8A%82%E7%82%B9", + "fullPath": "#%E9%80%89%E4%B8%AD%E7%88%B6%E8%8A%82%E7%82%B9-%E5%80%BC%E6%98%AF%E5%90%A6%E5%8C%85%E5%90%AB%E5%AD%90%E8%8A%82%E7%82%B9", + "level": 2 + }, + { + "label": "默认展开", + "fragment": "%E9%BB%98%E8%AE%A4%E5%B1%95%E5%BC%80", + "fullPath": "#%E9%BB%98%E8%AE%A4%E5%B1%95%E5%BC%80", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/treeselect.html b/gh-pages/docs/components/form/treeselect.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/form/treeselect.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/form/treeselect_45dddc3.js b/gh-pages/docs/components/form/treeselect_45dddc3.js new file mode 100644 index 000000000..2c6ae4ca5 --- /dev/null +++ b/gh-pages/docs/components/form/treeselect_45dddc3.js @@ -0,0 +1,27 @@ +amis.define('docs/components/form/treeselect.md', function(require, exports, module, define) { + + module.exports = { + "title": "TreeSelect 树形选择器", + "description": null, + "type": 0, + "group": null, + "menuName": "TreeSelect 树形选择器", + "icon": null, + "order": 60, + "html": "

基本使用

\n

更多用法,见 Tree

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/grid.html b/gh-pages/docs/components/grid.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/grid.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/grid_ea077bf.js b/gh-pages/docs/components/grid_ea077bf.js new file mode 100644 index 000000000..9a59e7445 --- /dev/null +++ b/gh-pages/docs/components/grid_ea077bf.js @@ -0,0 +1,33 @@ +amis.define('docs/components/grid.md', function(require, exports, module, define) { + + module.exports = { + "title": "Grid 网格布局", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Grid 格线组件", + "icon": null, + "order": 46, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"grid"指定为 Grid 渲染器
classNamestring外层 Dom 的类名
columnsArray列集合
columns[x]SchemaNode成员可以是其他渲染器
columns[x].xsint宽度占比: 1 - 12
columns[x].xsHiddenboolean是否隐藏
columns[x].xsOffsetint偏移量 1 - 12
columns[x].xsPullint靠左的距离占比:1 - 12
columns[x].xsPushint靠右的距离占比: 1 - 12
columns[x].smint宽度占比: 1 - 12
columns[x].smHiddenboolean是否隐藏
columns[x].smOffsetint偏移量 1 - 12
columns[x].smPullint靠左的距离占比:1 - 12
columns[x].smPushint靠右的距离占比: 1 - 12
columns[x].mdint宽度占比: 1 - 12
columns[x].mdHiddenboolean是否隐藏
columns[x].mdOffsetint偏移量 1 - 12
columns[x].mdPullint靠左的距离占比:1 - 12
columns[x].mdPushint靠右的距离占比: 1 - 12
columns[x].lgint宽度占比: 1 - 12
columns[x].lgHiddenboolean是否隐藏
columns[x].lgOffsetint偏移量 1 - 12
columns[x].lgPullint靠左的距离占比:1 - 12
columns[x].lgPushint靠右的距离占比: 1 - 12
\n

更多使用说明,请参看 Grid Props

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/hbox.html b/gh-pages/docs/components/hbox.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/hbox.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/hbox_03de3cd.js b/gh-pages/docs/components/hbox_03de3cd.js new file mode 100644 index 000000000..f2e53e22e --- /dev/null +++ b/gh-pages/docs/components/hbox_03de3cd.js @@ -0,0 +1,33 @@ +amis.define('docs/components/hbox.md', function(require, exports, module, define) { + + module.exports = { + "title": "HBox 布局", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "HBox", + "icon": null, + "order": 48, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"hbox"指定为 HBox 渲染器
classNamestring外层 Dom 的类名
columnsArray列集合
columns[x]SchemaNode成员可以是其他渲染器
columns[x].columnClassNamestring"wrapper-xs"列上类名
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/html.html b/gh-pages/docs/components/html.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/html.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/html_503cc79.js b/gh-pages/docs/components/html_503cc79.js new file mode 100644 index 000000000..24ddde778 --- /dev/null +++ b/gh-pages/docs/components/html_503cc79.js @@ -0,0 +1,27 @@ +amis.define('docs/components/html.md', function(require, exports, module, define) { + + module.exports = { + "title": "Html", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Html", + "icon": null, + "order": 49, + "html": "

基本用法

渲染一段 HTML

\n
\n
\n

当需要获取数据域中变量时,使用 Tpl

\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/icon.html b/gh-pages/docs/components/icon.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/icon.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/icon_7e31078.js b/gh-pages/docs/components/icon_7e31078.js new file mode 100644 index 000000000..47280ff6b --- /dev/null +++ b/gh-pages/docs/components/icon_7e31078.js @@ -0,0 +1,27 @@ +amis.define('docs/components/icon.md', function(require, exports, module, define) { + + module.exports = { + "title": "Icon 图标", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Icon", + "icon": null, + "order": 50, + "html": "

基本使用

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringicon指定组件类型
classNamestring外层 CSS 类名
iconstringicon 名,只支持 fontawesome v4
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/iframe.html b/gh-pages/docs/components/iframe.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/iframe.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/iframe_9c5dffc.js b/gh-pages/docs/components/iframe_9c5dffc.js new file mode 100644 index 000000000..6b2734c81 --- /dev/null +++ b/gh-pages/docs/components/iframe_9c5dffc.js @@ -0,0 +1,33 @@ +amis.define('docs/components/iframe.md', function(require, exports, module, define) { + + module.exports = { + "title": "iFrame", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "iFrame", + "icon": null, + "order": 51, + "html": "

基本使用

内嵌外部站点,可用 iframe 来实现。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"iframe"指定为 iFrame 渲染器
classNamestringiFrame 的类名
frameBorderArrayframeBorder
styleobject样式
srcstringiframe地址
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/image.html b/gh-pages/docs/components/image.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/image.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/image_88e9d67.js b/gh-pages/docs/components/image_88e9d67.js new file mode 100644 index 000000000..96612aa5c --- /dev/null +++ b/gh-pages/docs/components/image_88e9d67.js @@ -0,0 +1,79 @@ +amis.define('docs/components/image.md', function(require, exports, module, define) { + + module.exports = { + "title": "Image 图片", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Image 图片", + "icon": null, + "order": 52, + "html": "

基本使用

\n

也可以配置value属性

\n
\n

配置标题和说明

\n

配置缩略图

显示模式

\n

显示比例

\n

放大功能

配置"enlargeAble": true,鼠标移动到图片上会显示可点击图标,点击可放大展示

\n
\n

可以配置originalSrc,来指定原图资源地址,作为放大预览的图片地址

\n
\n

enlargeTitleenlargeCaption可以配置放大预览中的标题和描述

\n
\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"color";在 Form 中用作静态展示,为"static-color"
classNamestring外层 CSS 类名
imageClassNamestring图片 CSS 类名
titlestring标题
imageCaptionstring描述
placeholderstring占位文本
defaultImagestring默认显示的图片地址
srcstring缩略图地址
originalSrcstring原图地址
enlargeAbleboolean支持放大预览
enlargeTitlestring放大预览的标题
enlargeCaptionstring放大预览的描述
thumbModestringcontain预览图模式,可选:'w-full', 'h-full', 'contain', 'cover'
thumbRatiostring1:1预览图比例,可选:'1:1', '4:3', '16:9'
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "配置标题和说明", + "fragment": "%E9%85%8D%E7%BD%AE%E6%A0%87%E9%A2%98%E5%92%8C%E8%AF%B4%E6%98%8E", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%A0%87%E9%A2%98%E5%92%8C%E8%AF%B4%E6%98%8E", + "level": 2 + }, + { + "label": "配置缩略图", + "fragment": "%E9%85%8D%E7%BD%AE%E7%BC%A9%E7%95%A5%E5%9B%BE", + "fullPath": "#%E9%85%8D%E7%BD%AE%E7%BC%A9%E7%95%A5%E5%9B%BE", + "level": 2, + "children": [ + { + "label": "显示模式", + "fragment": "%E6%98%BE%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E6%98%BE%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "显示比例", + "fragment": "%E6%98%BE%E7%A4%BA%E6%AF%94%E4%BE%8B", + "fullPath": "#%E6%98%BE%E7%A4%BA%E6%AF%94%E4%BE%8B", + "level": 3 + } + ] + }, + { + "label": "放大功能", + "fragment": "%E6%94%BE%E5%A4%A7%E5%8A%9F%E8%83%BD", + "fullPath": "#%E6%94%BE%E5%A4%A7%E5%8A%9F%E8%83%BD", + "level": 2 + }, + { + "label": "用作 Field 时", + "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "level": 2, + "children": [ + { + "label": "Table 中的列类型", + "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "Form 中静态展示", + "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "level": 3 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/images.html b/gh-pages/docs/components/images.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/images.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/images_4ebab74.js b/gh-pages/docs/components/images_4ebab74.js new file mode 100644 index 000000000..60d6be089 --- /dev/null +++ b/gh-pages/docs/components/images_4ebab74.js @@ -0,0 +1,85 @@ +amis.define('docs/components/images.md', function(require, exports, module, define) { + + module.exports = { + "title": "Images 图片集", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Images 图片集合", + "icon": null, + "order": 53, + "html": "

图片集展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像ServiceFormCRUD这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过source属性,获取数据链中的数据,完成数据展示。

\n

基本用法

\n

也可以直接指定value字段:

\n
\n

图片集值是对象数组

除了支持纯文本数组以外,也支持对象数组,

\n

配置预览图地址

需要设置对象中预览图地址的key值为image

\n
\n

如果key值不是image,也可以在 images组件 上,通过配置src,使用数据映射,来获取图片地址

\n
\n

配置原图地址

需要设置对象中原图地址的key值为src

\n
\n

如果原图数据的key值不是src,也可以在 images组件 上,通过配置originalSrc,使用数据映射,来获取原图片地址

\n
\n

配置标题和说明

设置对象中标题的key值为title,说明的keydescriptioncaption

\n
\n

配置放大预览

images组件 上,配置enlargeAble,支持放大预览

\n
\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringimages如果在 Table、Card 和 List 中,为"images";在 Form 中用作静态展示,为"static-images"
classNamestring外层 CSS 类名
defaultImagestring默认展示图片
valuestringArray<string>Array<object>图片数组
sourcestring数据源
delimiterstring,分隔符,当value为字符串时,用该值进行分隔拆分
srcstring预览图地址,支持数据映射获取对象中图片变量
originalSrcstring原图地址,支持数据映射获取对象中图片变量
enlargeAbleboolean支持放大预览
thumbModestringcontain预览图模式,可选:'w-full', 'h-full', 'contain', 'cover'
thumbRatiostring1:1预览图比例,可选:'1:1', '4:3', '16:9'
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "图片集值是对象数组", + "fragment": "%E5%9B%BE%E7%89%87%E9%9B%86%E5%80%BC%E6%98%AF%E5%AF%B9%E8%B1%A1%E6%95%B0%E7%BB%84", + "fullPath": "#%E5%9B%BE%E7%89%87%E9%9B%86%E5%80%BC%E6%98%AF%E5%AF%B9%E8%B1%A1%E6%95%B0%E7%BB%84", + "level": 2, + "children": [ + { + "label": "配置预览图地址", + "fragment": "%E9%85%8D%E7%BD%AE%E9%A2%84%E8%A7%88%E5%9B%BE%E5%9C%B0%E5%9D%80", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%A2%84%E8%A7%88%E5%9B%BE%E5%9C%B0%E5%9D%80", + "level": 3 + }, + { + "label": "配置原图地址", + "fragment": "%E9%85%8D%E7%BD%AE%E5%8E%9F%E5%9B%BE%E5%9C%B0%E5%9D%80", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%8E%9F%E5%9B%BE%E5%9C%B0%E5%9D%80", + "level": 3 + }, + { + "label": "配置标题和说明", + "fragment": "%E9%85%8D%E7%BD%AE%E6%A0%87%E9%A2%98%E5%92%8C%E8%AF%B4%E6%98%8E", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%A0%87%E9%A2%98%E5%92%8C%E8%AF%B4%E6%98%8E", + "level": 3 + } + ] + }, + { + "label": "配置放大预览", + "fragment": "%E9%85%8D%E7%BD%AE%E6%94%BE%E5%A4%A7%E9%A2%84%E8%A7%88", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%94%BE%E5%A4%A7%E9%A2%84%E8%A7%88", + "level": 2 + }, + { + "label": "用作 Field 时", + "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "level": 2, + "children": [ + { + "label": "Table 中的列类型", + "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "Form 中静态展示", + "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/json.html b/gh-pages/docs/components/json.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/json.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/json_66a54da.js b/gh-pages/docs/components/json_66a54da.js new file mode 100644 index 000000000..1764c75c0 --- /dev/null +++ b/gh-pages/docs/components/json_66a54da.js @@ -0,0 +1,45 @@ +amis.define('docs/components/json.md', function(require, exports, module, define) { + + module.exports = { + "title": "Json", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Json", + "icon": null, + "order": 54, + "html": "

JSON 展示组件

\n

基本用法

\n

主题

可配置jsonTheme,指定显示主题,可选twilighteighties,默认为twilight

\n
\n

配置默认展开层级

\n

如上,levelExpand配置为0,则默认不展开。

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"json";在 Form 中用作静态展示,为"static-json"
classNamestring外层 CSS 类名
placeholderstring-占位文本
levelExpandnumber1默认展开的层级
jsonThemestringtwilight主题,可选twilighteighties
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "主题", + "fragment": "%E4%B8%BB%E9%A2%98", + "fullPath": "#%E4%B8%BB%E9%A2%98", + "level": 2 + }, + { + "label": "配置默认展开层级", + "fragment": "%E9%85%8D%E7%BD%AE%E9%BB%98%E8%AE%A4%E5%B1%95%E5%BC%80%E5%B1%82%E7%BA%A7", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%BB%98%E8%AE%A4%E5%B1%95%E5%BC%80%E5%B1%82%E7%BA%A7", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/link.html b/gh-pages/docs/components/link.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/link.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/link_cda4d11.js b/gh-pages/docs/components/link_cda4d11.js new file mode 100644 index 000000000..c979e961b --- /dev/null +++ b/gh-pages/docs/components/link_cda4d11.js @@ -0,0 +1,39 @@ +amis.define('docs/components/link.md', function(require, exports, module, define) { + + module.exports = { + "title": "Link 链接", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Link", + "icon": null, + "order": 55, + "html": "

基本用法

\n

新标签页打开

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"link";在 Form 中用作静态展示,为"static-link"
bodystring标签内文本
hrefstring链接地址
blankboolean是否在新标签页打开
htmlTargetstringa标签的target
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "新标签页打开", + "fragment": "%E6%96%B0%E6%A0%87%E7%AD%BE%E9%A1%B5%E6%89%93%E5%BC%80", + "fullPath": "#%E6%96%B0%E6%A0%87%E7%AD%BE%E9%A1%B5%E6%89%93%E5%BC%80", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/list.html b/gh-pages/docs/components/list.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/list.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/list_2d73202.js b/gh-pages/docs/components/list_2d73202.js new file mode 100644 index 000000000..e8876f780 --- /dev/null +++ b/gh-pages/docs/components/list_2d73202.js @@ -0,0 +1,33 @@ +amis.define('docs/components/list.md', function(require, exports, module, define) { + + module.exports = { + "title": "List 列表", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "List", + "icon": null, + "order": 56, + "html": "

列表展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像Service这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过source属性,获取数据链中的数据,完成数据展示。

\n

基本用法

\n

或者你也可以使用 CRUD 的 list 模式

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"list" 指定为列表展示。
titlestring标题
sourcestring${items}数据源, 获取当前数据域变量,支持数据映射
placeholderstring‘暂无数据’当没数据的时候的文字提示
classNamestring外层 CSS 类名
headerClassNamestringamis-list-header顶部外层 CSS 类名
footerClassNamestringamis-list-footer底部外层 CSS 类名
listItemArray配置单条信息
listItem.title模板标题
listItem.titleClassNamestringh5标题 CSS 类名
listItem.subTitle模板副标题
listItem.avatar模板图片地址
listItem.avatarClassNamestringthumb-sm avatar m-r图片 CSS 类名
listItem.desc模板描述
listItem.bodyArray内容容器,主要用来放置非表单项组件
listItem.actionsArray<Action>按钮区域
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/mapping.html b/gh-pages/docs/components/mapping.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/mapping.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/mapping_a299efb.js b/gh-pages/docs/components/mapping_a299efb.js new file mode 100644 index 000000000..3c5d57390 --- /dev/null +++ b/gh-pages/docs/components/mapping_a299efb.js @@ -0,0 +1,59 @@ +amis.define('docs/components/mapping.md', function(require, exports, module, define) { + + module.exports = { + "title": "Mapping 映射", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Mapping 映射", + "icon": null, + "order": 57, + "html": "

基本用法

\n

渲染 HTML

\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"color";在 Form 中用作静态展示,为"static-color"
classNamestring外层 CSS 类名
placeholderstring占位文本
mapobject映射配置
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "渲染 HTML", + "fragment": "%E6%B8%B2%E6%9F%93-html", + "fullPath": "#%E6%B8%B2%E6%9F%93-html", + "level": 2 + }, + { + "label": "用作 Field 时", + "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "level": 2, + "children": [ + { + "label": "Table 中的列类型", + "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "Form 中静态展示", + "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/nav.html b/gh-pages/docs/components/nav.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/nav.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/nav_81426ec.js b/gh-pages/docs/components/nav_81426ec.js new file mode 100644 index 000000000..d7d1382b6 --- /dev/null +++ b/gh-pages/docs/components/nav_81426ec.js @@ -0,0 +1,39 @@ +amis.define('docs/components/nav.md', function(require, exports, module, define) { + + module.exports = { + "title": "Nav 导航", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Nav", + "icon": null, + "order": 58, + "html": "

用于展示链接导航

\n

基本用法

\n

横向摆放

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"nav"指定为 Nav 渲染器
classNamestring外层 Dom 的类名
stackedbooleantrue设置成 false 可以以 tabs 的形式展示
linksArray链接集合
links[x].labelstring名称
links[x].to模板链接地址
links[x].iconstring图标
links[x].activeboolean是否高亮
links[x].activeOn表达式是否高亮的条件,留空将自动分析链接地址
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "横向摆放", + "fragment": "%E6%A8%AA%E5%90%91%E6%91%86%E6%94%BE", + "fullPath": "#%E6%A8%AA%E5%90%91%E6%91%86%E6%94%BE", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/page.html b/gh-pages/docs/components/page.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/page.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/page_caa5013.js b/gh-pages/docs/components/page_caa5013.js new file mode 100644 index 000000000..a423ebea7 --- /dev/null +++ b/gh-pages/docs/components/page_caa5013.js @@ -0,0 +1,57 @@ +amis.define('docs/components/page.md', function(require, exports, module, define) { + + module.exports = { + "title": "Page 页面", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Page 页面", + "icon": null, + "order": 23, + "html": "

Page 组件是 amis 页面 JSON 配置中,唯一的 顶级容器组件,是整个页面配置的入口组件。

\n

基本用法

我们这里在内容区中简单渲染一段文字。

\n
\n

渲染组件

内容区同样可以渲染各种组件,这里我们渲染一个表单。

\n
\n

在其他区域渲染组件

Page 默认将页面分为几个区域,分别是内容区(body侧边栏(aside工具栏(toolbar)部分,你可以在这些区域配置你想要的组件和内容。

\n
\n
\n

不同区域都是Page的子节点,也就是说都可以使用Page下数据作用域。

\n
\n

页面初始化请求

通过配置initApi,可以在初始化页面时请求所配置的接口。

\n
\n

具体 API 规范查看 API 文档

\n

轮训初始化接口

想要在页面渲染后,轮训请求初始化接口,步骤如下:

\n
    \n
  1. 配置 initApi;
  2. \n
  3. 配置 interval:单位为 ms,最低值 3000,低于该值按 3000 处理。
  4. \n
\n
\n

如果希望在满足某个条件的情况下停止轮训,配置stopAutoRefreshWhen表达式。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"page"指定为 Page 组件
titleSchemaNode页面标题
subTitleSchemaNode页面副标题
remarkRemark标题附近会出现一个提示图标,鼠标放上去会提示该内容。
asideSchemaNode往页面的边栏区域加内容
toolbarSchemaNode往页面的右上角加内容,需要注意的是,当有 title 时,该区域在右上角,没有时该区域在顶部
bodySchemaNode往页面的内容区域加内容
classNamestring外层 dom 类名
toolbarClassNamestringv-middle wrapper text-right bg-light b-bToolbar dom 类名
bodyClassNamestringwrapperBody dom 类名
asideClassNamestringw page-aside-region bg-autoAside dom 类名
headerClassNamestringbg-light b-b wrapperHeader 区域 dom 类名
initApiAPIPage 用来获取初始数据的 api。返回的数据可以整个 page 级别使用。
initFetchbooleantrue是否起始拉取 initApi
initFetchOn表达式是否起始拉取 initApi, 通过表达式配置
intervalnumber3000刷新时间(最低 3000)
silentPollingbooleanfalse配置刷新时是否显示加载动画
stopAutoRefreshWhen表达式""通过表达式来配置停止刷新的条件
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "渲染组件", + "fragment": "%E6%B8%B2%E6%9F%93%E7%BB%84%E4%BB%B6", + "fullPath": "#%E6%B8%B2%E6%9F%93%E7%BB%84%E4%BB%B6", + "level": 2 + }, + { + "label": "在其他区域渲染组件", + "fragment": "%E5%9C%A8%E5%85%B6%E4%BB%96%E5%8C%BA%E5%9F%9F%E6%B8%B2%E6%9F%93%E7%BB%84%E4%BB%B6", + "fullPath": "#%E5%9C%A8%E5%85%B6%E4%BB%96%E5%8C%BA%E5%9F%9F%E6%B8%B2%E6%9F%93%E7%BB%84%E4%BB%B6", + "level": 2 + }, + { + "label": "页面初始化请求", + "fragment": "%E9%A1%B5%E9%9D%A2%E5%88%9D%E5%A7%8B%E5%8C%96%E8%AF%B7%E6%B1%82", + "fullPath": "#%E9%A1%B5%E9%9D%A2%E5%88%9D%E5%A7%8B%E5%8C%96%E8%AF%B7%E6%B1%82", + "level": 2 + }, + { + "label": "轮训初始化接口", + "fragment": "%E8%BD%AE%E8%AE%AD%E5%88%9D%E5%A7%8B%E5%8C%96%E6%8E%A5%E5%8F%A3", + "fullPath": "#%E8%BD%AE%E8%AE%AD%E5%88%9D%E5%A7%8B%E5%8C%96%E6%8E%A5%E5%8F%A3", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/panel.html b/gh-pages/docs/components/panel.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/panel.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/panel_707cc10.js b/gh-pages/docs/components/panel_707cc10.js new file mode 100644 index 000000000..1afaa3bfa --- /dev/null +++ b/gh-pages/docs/components/panel_707cc10.js @@ -0,0 +1,45 @@ +amis.define('docs/components/panel.md', function(require, exports, module, define) { + + module.exports = { + "title": "Panel 面板", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Panel", + "icon": null, + "order": 59, + "html": "

可以把相关信息以面板的形式展示到一块。

\n

基本用法

\n

底部配置按钮

可以通过配置actions数组,实现渲染底部按钮栏

\n
\n

固定底部

有时 panel 内,内容过多,导致底部操作按钮不是很方便,可以配置"affixFooter": true,将底部部分贴在浏览器底部展示。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"panel"指定为 Panel 渲染器
classNamestring"panel-default"外层 Dom 的类名
headerClassNamestring"panel-heading"header 区域的类名
footerClassNamestring"panel-footer bg-light lter wrapper"footer 区域的类名
actionsClassNamestring"panel-footer"actions 区域的类名
bodyClassNamestring"panel-body"body 区域的类名
titleSchemaNode标题
headerSchemaNode头部容器
bodySchemaNode内容容器
footerSchemaNode底部容器
affixFooterboolean是否固定底部容器
actionsArray<Action>按钮区域
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "底部配置按钮", + "fragment": "%E5%BA%95%E9%83%A8%E9%85%8D%E7%BD%AE%E6%8C%89%E9%92%AE", + "fullPath": "#%E5%BA%95%E9%83%A8%E9%85%8D%E7%BD%AE%E6%8C%89%E9%92%AE", + "level": 2 + }, + { + "label": "固定底部", + "fragment": "%E5%9B%BA%E5%AE%9A%E5%BA%95%E9%83%A8", + "fullPath": "#%E5%9B%BA%E5%AE%9A%E5%BA%95%E9%83%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/progress.html b/gh-pages/docs/components/progress.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/progress.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/progress_28f96a5.js b/gh-pages/docs/components/progress_28f96a5.js new file mode 100644 index 000000000..1af674730 --- /dev/null +++ b/gh-pages/docs/components/progress_28f96a5.js @@ -0,0 +1,59 @@ +amis.define('docs/components/progress.md', function(require, exports, module, define) { + + module.exports = { + "title": "Progress 进度条", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Progress 进度条", + "icon": null, + "order": 60, + "html": "

基本用法

\n

颜色映射

可以配置map,指定颜色映射,例如,默认的map配置为:['bg-danger', 'bg-warning', 'bg-info', 'bg-success', 'bg-success']

\n

它意味着将进度条分成了5份,前20%将会添加bg-danger css 类名到进度条上,20%~40%,将会添加bg-warning,以此类推,你可以自定义map来配置想要的进度效果

\n
\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"color";在 Form 中用作静态展示,为"static-color"
classNamestring外层 CSS 类名
progressClassNamestringprogress-xs progress-striped active m-b-none进度调 CSS 类名
progressBarClassNamestring完成进度条 CSS 类名
valuestring进度值
placeholderstring-占位文本
showLabelbooleantrue是否展示进度文本
mapArray<string>['bg-danger', 'bg-warning', 'bg-info', 'bg-success', 'bg-success']进度颜色映射
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "颜色映射", + "fragment": "%E9%A2%9C%E8%89%B2%E6%98%A0%E5%B0%84", + "fullPath": "#%E9%A2%9C%E8%89%B2%E6%98%A0%E5%B0%84", + "level": 2 + }, + { + "label": "用作 Field 时", + "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", + "level": 2, + "children": [ + { + "label": "Table 中的列类型", + "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "Form 中静态展示", + "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", + "level": 3 + } + ] + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/qrcode.html b/gh-pages/docs/components/qrcode.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/qrcode.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/qrcode_22fc31a.js b/gh-pages/docs/components/qrcode_22fc31a.js new file mode 100644 index 000000000..13fe5f70e --- /dev/null +++ b/gh-pages/docs/components/qrcode_22fc31a.js @@ -0,0 +1,51 @@ +amis.define('docs/components/qrcode.md', function(require, exports, module, define) { + + module.exports = { + "title": "QRCode 二维码", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "QRCode 二维码", + "icon": null, + "order": 61, + "html": "

基本用法

\n
\n

根据 QR 码国际标准,二进制模式最多可存储2953字节的内容(1 中文汉字=2 字节)

\n
\n

配置背景色

\n

配置前景色

\n

不同复杂度

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"qr-code"指定为 QRCode 渲染器
classNamestring外层 Dom 的类名
qrcodeClassNamestring二维码 SVG 的类名
codeSizenumber128二维码的宽高大小
backgroundColorstring"#fff"二维码背景色
foregroundColorstring"#000"二维码前景色
levelstring"L"二维码复杂级别,有('L' 'M' 'Q' 'H')四种
value模板"https://www.baidu.com"扫描二维码后显示的文本,如果要显示某个页面请输入完整 url("http://...""https://..."开头),支持使用 模板
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置背景色", + "fragment": "%E9%85%8D%E7%BD%AE%E8%83%8C%E6%99%AF%E8%89%B2", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%83%8C%E6%99%AF%E8%89%B2", + "level": 2 + }, + { + "label": "配置前景色", + "fragment": "%E9%85%8D%E7%BD%AE%E5%89%8D%E6%99%AF%E8%89%B2", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%89%8D%E6%99%AF%E8%89%B2", + "level": 2 + }, + { + "label": "不同复杂度", + "fragment": "%E4%B8%8D%E5%90%8C%E5%A4%8D%E6%9D%82%E5%BA%A6", + "fullPath": "#%E4%B8%8D%E5%90%8C%E5%A4%8D%E6%9D%82%E5%BA%A6", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/remark.html b/gh-pages/docs/components/remark.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/remark.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/remark_4b0dc53.js b/gh-pages/docs/components/remark_4b0dc53.js new file mode 100644 index 000000000..5a7c77337 --- /dev/null +++ b/gh-pages/docs/components/remark_4b0dc53.js @@ -0,0 +1,45 @@ +amis.define('docs/components/remark.md', function(require, exports, module, define) { + + module.exports = { + "title": "Remark 标记", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Remark", + "icon": null, + "order": 62, + "html": "

用于展示颜色

\n

基本用法

\n

可配置标题

\n

弹出位置

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringremark
classNamestring外层 CSS 类名
contentstring提示文本
placementstring弹出位置
triggerstring['hover', 'focus']触发条件
iconstringfa fa-question-circle图标
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "可配置标题", + "fragment": "%E5%8F%AF%E9%85%8D%E7%BD%AE%E6%A0%87%E9%A2%98", + "fullPath": "#%E5%8F%AF%E9%85%8D%E7%BD%AE%E6%A0%87%E9%A2%98", + "level": 2 + }, + { + "label": "弹出位置", + "fragment": "%E5%BC%B9%E5%87%BA%E4%BD%8D%E7%BD%AE", + "fullPath": "#%E5%BC%B9%E5%87%BA%E4%BD%8D%E7%BD%AE", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/service.html b/gh-pages/docs/components/service.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/service.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/service_0d0dc92.js b/gh-pages/docs/components/service_0d0dc92.js new file mode 100644 index 000000000..39a741dd4 --- /dev/null +++ b/gh-pages/docs/components/service_0d0dc92.js @@ -0,0 +1,51 @@ +amis.define('docs/components/service.md', function(require, exports, module, define) { + + module.exports = { + "title": "Service 功能型容器", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Service", + "icon": null, + "order": 63, + "html": "

amis 中部分组件,作为展示组件,自身没有使用接口初始化数据域的能力,例如:TableCardsList等,他们需要使用某些配置项,例如source,通过数据映射功能,在当前的 数据链 中获取数据,并进行数据展示。

\n

Service组件就是专门为该类组件而生,它的功能是::配置初始化接口,进行数据域的初始化,然后在Service内容器中配置子组件,这些子组件通过数据链的方法,获取Service所拉取到的数据

\n

基本使用

最基本的使用,是配置初始化接口api,将接口返回的数据添加到自身的数据域中,以供子组件通过数据链进行获取使用。

\n
\n

你可以通过查看网络面板看到,service接口返回的数据结构为:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"title\": \"Test Page Component\",\n    \"date\": \"2017-10-13\"\n  }\n}\n
\n

service的子组件中,就可以使用${title}${date}展示数据

\n

展示列表

另外一种使用较为频繁的场景是:serivce + table 进行列表渲染

\n
\n

上例中 service 接口返回数据结构如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"ok\",\n  \"data\": {\n    \"count\": 57,\n    \"rows\": [\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"Internet Explorer 4.0\",\n        \"platform\": \"Win 95+\",\n        \"version\": \"4\",\n        \"grade\": \"X\",\n        \"id\": 1\n      },\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"Internet Explorer 5.0\",\n        \"platform\": \"Win 95+\",\n        \"version\": \"5\",\n        \"grade\": \"C\",\n        \"id\": 2\n      },\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"Internet Explorer 5.5\",\n        \"platform\": \"Win 95+\",\n        \"version\": \"5.5\",\n        \"grade\": \"A\",\n        \"id\": 3\n      },\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"Internet Explorer 6\",\n        \"platform\": \"Win 98+\",\n        \"version\": \"6\",\n        \"grade\": \"A\",\n        \"id\": 4\n      },\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"Internet Explorer 7\",\n        \"platform\": \"Win XP SP2+\",\n        \"version\": \"7\",\n        \"grade\": \"A\",\n        \"id\": 5\n      },\n      {\n        \"engine\": \"Trident\",\n        \"browser\": \"AOL browser (AOL desktop)\",\n        \"platform\": \"Win XP\",\n        \"version\": \"6\",\n        \"grade\": \"A\",\n        \"id\": 6\n      },\n      {\n        \"engine\": \"Gecko\",\n        \"browser\": \"Firefox 1.0\",\n        \"platform\": \"Win 98+ / OSX.2+\",\n        \"version\": \"1.7\",\n        \"grade\": \"A\",\n        \"id\": 7\n      },\n      {\n        \"engine\": \"Gecko\",\n        \"browser\": \"Firefox 1.5\",\n        \"platform\": \"Win 98+ / OSX.2+\",\n        \"version\": \"1.8\",\n        \"grade\": \"A\",\n        \"id\": 8\n      },\n      {\n        \"engine\": \"Gecko\",\n        \"browser\": \"Firefox 2.0\",\n        \"platform\": \"Win 98+ / OSX.2+\",\n        \"version\": \"1.8\",\n        \"grade\": \"A\",\n        \"id\": 9\n      },\n      {\n        \"engine\": \"Gecko\",\n        \"browser\": \"Firefox 3.0\",\n        \"platform\": \"Win 2k+ / OSX.3+\",\n        \"version\": \"1.9\",\n        \"grade\": \"A\",\n        \"id\": 10\n      }\n    ]\n  }\n}\n
\n

table中配置source属性为${rows}就可以获取到rows变量的数据,并用于展示。

\n

动态渲染页面

Service 还有个重要的功能就是支持配置 schemaApi,通过它可以实现动态渲染页面内容。

\n
\n

同样观察schemaApi接口返回的数据结构:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"type\": \"tabs\",\n    \"tabs\": [\n      {\n        \"title\": \"TabA\",\n        \"body\": \"卡片A内容\"\n      },\n      {\n        \"title\": \"TabB\",\n        \"body\": \"卡片B内容\"\n      }\n    ]\n  }\n}\n
\n

它将data返回的对象作为 amis 页面配置,进行了解析渲染,实现动态渲染页面的功能。

\n

接口联动

apischemaApi都支持接口联动

\n
\n

上例可看到,变更数据模板的值,会触发 service 重新请求,并更新当前数据域中的数据

\n

更多相关见接口联动

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"service"指定为 service 渲染器
classNamestring外层 Dom 的类名
bodySchemaNode内容容器
apiapi初始化数据域接口地址
initFetchboolean是否默认拉取
schemaApiapi用来获取远程 Schema 接口地址
initFetchSchemaboolean是否默认拉取 Schema
messagesObject消息提示覆写,默认消息读取的是接口返回的 toast 提示文字,但是在此可以覆写它。
messages.fetchSuccessstring接口请求成功时的 toast 提示文字
messages.fetchFailedstring"初始化失败"接口请求失败时 toast 提示文字
intervalnumber轮训时间间隔(最低 3000)
silentPollingbooleanfalse配置轮训时是否显示加载动画
stopAutoRefreshWhen表达式配置停止轮训的条件
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "展示列表", + "fragment": "%E5%B1%95%E7%A4%BA%E5%88%97%E8%A1%A8", + "fullPath": "#%E5%B1%95%E7%A4%BA%E5%88%97%E8%A1%A8", + "level": 2 + }, + { + "label": "动态渲染页面", + "fragment": "%E5%8A%A8%E6%80%81%E6%B8%B2%E6%9F%93%E9%A1%B5%E9%9D%A2", + "fullPath": "#%E5%8A%A8%E6%80%81%E6%B8%B2%E6%9F%93%E9%A1%B5%E9%9D%A2", + "level": 2 + }, + { + "label": "接口联动", + "fragment": "%E6%8E%A5%E5%8F%A3%E8%81%94%E5%8A%A8", + "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%81%94%E5%8A%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/spinner.html b/gh-pages/docs/components/spinner.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/spinner.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/spinner_9b73f11.js b/gh-pages/docs/components/spinner_9b73f11.js new file mode 100644 index 000000000..91d073214 --- /dev/null +++ b/gh-pages/docs/components/spinner_9b73f11.js @@ -0,0 +1,27 @@ +amis.define('docs/components/spinner.md', function(require, exports, module, define) { + + module.exports = { + "title": "Spinner 加载中", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Spinner", + "icon": null, + "order": 64, + "html": "

基本使用

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/status.html b/gh-pages/docs/components/status.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/status.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/status_f2af3fb.js b/gh-pages/docs/components/status_f2af3fb.js new file mode 100644 index 000000000..e1e71d436 --- /dev/null +++ b/gh-pages/docs/components/status_f2af3fb.js @@ -0,0 +1,33 @@ +amis.define('docs/components/status.md', function(require, exports, module, define) { + + module.exports = { + "title": "Status 状态", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Status", + "icon": null, + "order": 65, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"status" 指定为 Status 渲染器
classNamestring外层 Dom 的类名
placeholderstring-占位文本
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/switch.html b/gh-pages/docs/components/switch.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/switch.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/switch_5b27078.js b/gh-pages/docs/components/switch_5b27078.js new file mode 100644 index 000000000..1c4476b0d --- /dev/null +++ b/gh-pages/docs/components/switch_5b27078.js @@ -0,0 +1,27 @@ +amis.define('docs/components/switch.md', function(require, exports, module, define) { + + module.exports = { + "title": "Switch 开关", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Switch", + "icon": null, + "order": 66, + "html": "

基本用法

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"switch" 指定为 Dialog 渲染器
classNamestring外层 Dom 的类名
trueValueany真值,当值为该值时,开关开启
optionstring右侧选项文本
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/table.html b/gh-pages/docs/components/table.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/table.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/table_f351105.js b/gh-pages/docs/components/table_f351105.js new file mode 100644 index 000000000..7f0850482 --- /dev/null +++ b/gh-pages/docs/components/table_f351105.js @@ -0,0 +1,121 @@ +amis.define('docs/components/table.md', function(require, exports, module, define) { + + module.exports = { + "title": "Table 表格", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Table 表格", + "icon": null, + "order": 67, + "html": "

表格展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像Service这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过source属性,获取数据链中的数据,完成数据展示。

\n

基本用法

\n

列配置

columns内,除了简单的配置labelname展示数据以外,还支持一些额外的配置项,可以帮助更好的展示数据。

\n

列类型

除了简单展示数据源所返回的数据以外,list的列支持除表单项以外所有组件类型,例如:

\n
\n

列宽

可以给列配置width属性,控制列宽,共有两种方式:

\n

固定像素

可以配置数字,用于设置列宽像素,例如下面例子我们给Rendering engine列宽设置为100px

\n
\n

百分比

也可以百分比来指定列宽,例如下面例子我们给Rendering engine列宽设置为50%

\n
\n

默认是否显示

默认 columnsTogglable 配置为 auto,当列超过 5 列后,就会在工具栏多渲染出来一个列展示与否的开关。你可以设置成 true 或者 false 来强制开或者关。在列配置中可以通过配置 toggledfalse 默认不展示这列,比如下面这个栗子中 ID 这一栏。

\n
\n

可复制

可以在列上配置"copyable": true,会在该列的内容区里,渲染一个复制内容的图标,点击可复制该显示内容

\n
\n

你也可以配置对象形式,可以自定义显示内容

\n
\n

弹出框

可以给列上配置popover属性,会在该列的内容区里,渲染一个图标,点击会显示弹出框,用于展示内容

\n
\n

表头样式

可以配置"isHead": true,来让当前列以表头的样式展示。应用场景是:

\n
    \n
  1. 所有列label配置空字符串,不显示表头
  2. \n
  3. 配置combineNum,合并单元格,实现左侧表头的形式
  4. \n
  5. 列上配置"isHead": true,调整样式
  6. \n
\n
\n

还可以配置"offset",实现弹出框位置调整自定义

\n
\n

嵌套

当行数据中存在 children 属性时,可以自动嵌套显示下去。

\n
\n

底部展示 (Footable)

列太多时,内容没办法全部显示完,可以让部分信息在底部显示,可以让用户展开查看详情。配置很简单,只需要开启 footable 属性,同时将想在底部展示的列加个 breakpoint 属性为 * 即可。

\n
\n

默认都不会展开,如果你想默认展开第一个就把 footable 配置成这样。

\n
{\n  \"footable\": {\n    \"expand\": \"first\"\n  }\n}\n
\n

当配置成 all 时表示全部展开。

\n

合并单元格

只需要配置 combineNum 属性即可,他表示从左到右多少列内启动自动合并单元格,只要多行的同一个属性值是一样的,就会自动合并。

\n
\n

超级表头

超级表头意思是,表头还可以再一次进行分组。额外添加个 groupName 属性即可。

\n
\n

固定列

列太多可以让重要的几列固定,可以配置固定在左侧还是右侧,只需要给需要固定的列上配置 fixed 属性,配置 left 或者 right

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"type" 指定为 table 渲染器
titlestring标题
sourcestring${items}数据源, 绑定当前环境变量
affixHeaderbooleantrue是否固定表头
columnsTogglableauto 或者 booleanauto展示列显示开关, 自动即:列数量大于或等于 5 个时自动开启
placeholderstring暂无数据当没数据的时候的文字提示
classNamestringpanel-default外层 CSS 类名
tableClassNamestringtable-db table-striped表格 CSS 类名
headerClassNamestringAction.md-table-header顶部外层 CSS 类名
footerClassNamestringAction.md-table-footer底部外层 CSS 类名
toolbarClassNamestringAction.md-table-toolbar工具栏 CSS 类名
columnsArray<Column>用来设置列信息
combineNumnumber自动合并单元格
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "列配置", + "fragment": "%E5%88%97%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%88%97%E9%85%8D%E7%BD%AE", + "level": 2, + "children": [ + { + "label": "列类型", + "fragment": "%E5%88%97%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E5%88%97%E7%B1%BB%E5%9E%8B", + "level": 3 + }, + { + "label": "列宽", + "fragment": "%E5%88%97%E5%AE%BD", + "fullPath": "#%E5%88%97%E5%AE%BD", + "level": 3, + "children": [ + { + "label": "固定像素", + "fragment": "%E5%9B%BA%E5%AE%9A%E5%83%8F%E7%B4%A0", + "fullPath": "#%E5%9B%BA%E5%AE%9A%E5%83%8F%E7%B4%A0", + "level": 4 + }, + { + "label": "百分比", + "fragment": "%E7%99%BE%E5%88%86%E6%AF%94", + "fullPath": "#%E7%99%BE%E5%88%86%E6%AF%94", + "level": 4 + } + ] + }, + { + "label": "默认是否显示", + "fragment": "%E9%BB%98%E8%AE%A4%E6%98%AF%E5%90%A6%E6%98%BE%E7%A4%BA", + "fullPath": "#%E9%BB%98%E8%AE%A4%E6%98%AF%E5%90%A6%E6%98%BE%E7%A4%BA", + "level": 3 + }, + { + "label": "可复制", + "fragment": "%E5%8F%AF%E5%A4%8D%E5%88%B6", + "fullPath": "#%E5%8F%AF%E5%A4%8D%E5%88%B6", + "level": 3 + }, + { + "label": "弹出框", + "fragment": "%E5%BC%B9%E5%87%BA%E6%A1%86", + "fullPath": "#%E5%BC%B9%E5%87%BA%E6%A1%86", + "level": 3 + }, + { + "label": "表头样式", + "fragment": "%E8%A1%A8%E5%A4%B4%E6%A0%B7%E5%BC%8F", + "fullPath": "#%E8%A1%A8%E5%A4%B4%E6%A0%B7%E5%BC%8F", + "level": 3 + } + ] + }, + { + "label": "嵌套", + "fragment": "%E5%B5%8C%E5%A5%97", + "fullPath": "#%E5%B5%8C%E5%A5%97", + "level": 2 + }, + { + "label": "底部展示 (Footable)", + "fragment": "%E5%BA%95%E9%83%A8%E5%B1%95%E7%A4%BA-footable-", + "fullPath": "#%E5%BA%95%E9%83%A8%E5%B1%95%E7%A4%BA-footable-", + "level": 2 + }, + { + "label": "合并单元格", + "fragment": "%E5%90%88%E5%B9%B6%E5%8D%95%E5%85%83%E6%A0%BC", + "fullPath": "#%E5%90%88%E5%B9%B6%E5%8D%95%E5%85%83%E6%A0%BC", + "level": 2 + }, + { + "label": "超级表头", + "fragment": "%E8%B6%85%E7%BA%A7%E8%A1%A8%E5%A4%B4", + "fullPath": "#%E8%B6%85%E7%BA%A7%E8%A1%A8%E5%A4%B4", + "level": 2 + }, + { + "label": "固定列", + "fragment": "%E5%9B%BA%E5%AE%9A%E5%88%97", + "fullPath": "#%E5%9B%BA%E5%AE%9A%E5%88%97", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/tabs_7fe91d3.js b/gh-pages/docs/components/tabs_7fe91d3.js new file mode 100644 index 000000000..85fd701da --- /dev/null +++ b/gh-pages/docs/components/tabs_7fe91d3.js @@ -0,0 +1,97 @@ +amis.define('docs/components/tabs.md', function(require, exports, module, define) { + + module.exports = { + "title": "Tabs 选项卡", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Tabs", + "icon": null, + "order": 68, + "html": "

基本用法

\n

展示模式

线型

\n

卡片模式

\n

选择器型

\n

配置顶部工具栏

配置toolbar实现顶部工具栏。

\n
\n

配置 hash

可以在单个tab下,配置hash属性,支持地址栏#xxx

\n
\n

默认显示某个选项卡

主要配置activeKey属性来实现该效果,共有下面两种方法:

\n

配置 hash 值

\n

配置索引值

单个tab上不要配置hash属性,配置需要展示的tab索引值,0代表第一个。

\n
\n

unmountOnExit

如果你想在切换 tab 时,自动销毁掉隐藏的 tab,请配置"unmountOnExit": true

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tabs"指定为 Tabs 渲染器
classNamestring外层 Dom 的类名
tabsClassNamestringTabs Dom 的类名
tabsArraytabs 内容
toolbarSchemaNodetabs 中的工具栏
toolbarClassNamestringtabs 中工具栏的类名
tabs[x].titlestringTab 标题
tabs[x].iconiconTab 的图标
tabs[x].tabSchemaNode内容区
tabs[x].hashstring设置以后将跟 url 的 hash 对应
tabs[x].reloadboolean设置以后内容每次都会重新渲染,对于 crud 的重新拉取很有用
tabs[x].unmountOnExitboolean每次退出都会销毁当前 tab 栏内容
tabs[x].classNamestring"bg-white b-l b-r b-b wrapper-md"Tab 区域样式
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "展示模式", + "fragment": "%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%B1%95%E7%A4%BA%E6%A8%A1%E5%BC%8F", + "level": 2, + "children": [ + { + "label": "线型", + "fragment": "%E7%BA%BF%E5%9E%8B", + "fullPath": "#%E7%BA%BF%E5%9E%8B", + "level": 3 + }, + { + "label": "卡片模式", + "fragment": "%E5%8D%A1%E7%89%87%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E5%8D%A1%E7%89%87%E6%A8%A1%E5%BC%8F", + "level": 3 + }, + { + "label": "选择器型", + "fragment": "%E9%80%89%E6%8B%A9%E5%99%A8%E5%9E%8B", + "fullPath": "#%E9%80%89%E6%8B%A9%E5%99%A8%E5%9E%8B", + "level": 3 + } + ] + }, + { + "label": "配置顶部工具栏", + "fragment": "%E9%85%8D%E7%BD%AE%E9%A1%B6%E9%83%A8%E5%B7%A5%E5%85%B7%E6%A0%8F", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%A1%B6%E9%83%A8%E5%B7%A5%E5%85%B7%E6%A0%8F", + "level": 2 + }, + { + "label": "配置 hash", + "fragment": "%E9%85%8D%E7%BD%AE-hash", + "fullPath": "#%E9%85%8D%E7%BD%AE-hash", + "level": 2 + }, + { + "label": "默认显示某个选项卡", + "fragment": "%E9%BB%98%E8%AE%A4%E6%98%BE%E7%A4%BA%E6%9F%90%E4%B8%AA%E9%80%89%E9%A1%B9%E5%8D%A1", + "fullPath": "#%E9%BB%98%E8%AE%A4%E6%98%BE%E7%A4%BA%E6%9F%90%E4%B8%AA%E9%80%89%E9%A1%B9%E5%8D%A1", + "level": 2, + "children": [ + { + "label": "配置 hash 值", + "fragment": "%E9%85%8D%E7%BD%AE-hash-%E5%80%BC", + "fullPath": "#%E9%85%8D%E7%BD%AE-hash-%E5%80%BC", + "level": 4 + }, + { + "label": "配置索引值", + "fragment": "%E9%85%8D%E7%BD%AE%E7%B4%A2%E5%BC%95%E5%80%BC", + "fullPath": "#%E9%85%8D%E7%BD%AE%E7%B4%A2%E5%BC%95%E5%80%BC", + "level": 4 + } + ] + }, + { + "label": "unmountOnExit", + "fragment": "unmountonexit", + "fullPath": "#unmountonexit", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/tabstabs.html b/gh-pages/docs/components/tabstabs.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/tabstabs.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/tasks.html b/gh-pages/docs/components/tasks.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/tasks.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/tasks_52f543f.js b/gh-pages/docs/components/tasks_52f543f.js new file mode 100644 index 000000000..7a05a9ede --- /dev/null +++ b/gh-pages/docs/components/tasks_52f543f.js @@ -0,0 +1,33 @@ +amis.define('docs/components/tasks.md', function(require, exports, module, define) { + + module.exports = { + "title": "Tasks 任务操作集合", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Tasks", + "icon": null, + "order": 69, + "html": "

任务操作集合,类似于 orp 上线。

\n

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tasks"指定为 Tasks 渲染器
classNamestring外层 Dom 的类名
tableClassNamestringtable Dom 的类名
itemsArray任务列表
items[x].labelstring任务名称
items[x].keystring任务键值,请唯一区分
items[x].remarkstring当前任务状态,支持 html
items[x].statusstring任务状态: 0: 初始状态,不可操作。1: 就绪,可操作状态。2: 进行中,还没有结束。3:有错误,不可重试。4: 已正常结束。5:有错误,且可以重试。
checkApiAPI返回任务列表,返回的数据请参考 items。
submitApiAPI提交任务使用的 API
reSubmitApiAPI如果任务失败,且可以重试,提交的时候会使用此 API
intervalnumber3000当有任务进行中,会每隔一段时间再次检测,而时间间隔就是通过此项配置,默认 3s。
taskNameLabelstring任务名称任务名称列说明
operationLabelstring操作操作列说明
statusLabelstring状态状态列说明
remarkLabelstring备注备注列说明
btnTextstring上线操作按钮文字
retryBtnTextstring重试重试操作按钮文字
btnClassNamestringbtn-sm btn-default配置容器按钮 className
retryBtnClassNamestringbtn-sm btn-danger配置容器重试按钮 className
statusLabelMaparray["label-warning", "label-info", "label-success", "label-danger", "label-default", "label-danger"]状态显示对应的类名配置
statusTextMaparray["未开始", "就绪", "进行中", "出错", "已完成", "出错"]状态显示对应的文字显示配置
\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/tpl.html b/gh-pages/docs/components/tpl.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/tpl.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/tpl_9288c7b.js b/gh-pages/docs/components/tpl_9288c7b.js new file mode 100644 index 000000000..3b34af9fd --- /dev/null +++ b/gh-pages/docs/components/tpl_9288c7b.js @@ -0,0 +1,33 @@ +amis.define('docs/components/tpl.md', function(require, exports, module, define) { + + module.exports = { + "title": "Tpl 模板", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Tpl", + "icon": null, + "order": 70, + "html": "

输出 模板 的常用组件

\n

基本用法

\n

更多模板相关配置请看模板文档

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tpl"指定为 Tpl 组件
classNamestring外层 Dom 的类名
tpl模板配置模板
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/video.html b/gh-pages/docs/components/video.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/video.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/video_aa75752.js b/gh-pages/docs/components/video_aa75752.js new file mode 100644 index 000000000..ecada8838 --- /dev/null +++ b/gh-pages/docs/components/video_aa75752.js @@ -0,0 +1,33 @@ +amis.define('docs/components/video.md', function(require, exports, module, define) { + + module.exports = { + "title": "Video 视频", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Video", + "icon": null, + "order": 71, + "html": "

基本用法

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"video"指定为 video 渲染器
classNamestring外层 Dom 的类名
srcstring视频地址
isLivebooleanfalse是否为直播,视频为直播时需要添加上
posterstring视频封面地址
mutedboolean是否静音
autoPlayboolean是否自动播放
ratesarray倍数,格式为[1.0, 1.5, 2.0]
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/wizard.html b/gh-pages/docs/components/wizard.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/wizard.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/wizard_29a668b.js b/gh-pages/docs/components/wizard_29a668b.js new file mode 100644 index 000000000..1561fbada --- /dev/null +++ b/gh-pages/docs/components/wizard_29a668b.js @@ -0,0 +1,41 @@ +amis.define('docs/components/wizard.md', function(require, exports, module, define) { + + module.exports = { + "title": "Wizard 向导", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Wizard 向导", + "icon": null, + "order": 73, + "html": "

表单向导,能够配置多个步骤引导用户一步一步完成表单提交。

\n

基本使用

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"wizard"指定为 Wizard 组件
modestring"horizontal"展示模式,选择:horizontal 或者 vertical
apiAPI最后一步保存的接口。
initApiAPI初始化数据接口
initFetchAPI初始是否拉取数据。
initFetchOn表达式初始是否拉取数据,通过表达式来配置
actionPrevLabelstring上一步上一步按钮文本
actionNextLabelstring下一步下一步按钮文本
actionNextSaveLabelstring保存并下一步保存并下一步按钮文本
actionFinishLabelstring完成完成按钮文本
classNamestring外层 CSS 类名
actionClassNamestringbtn-sm btn-default按钮 CSS 类名
reloadstring操作完后刷新目标对象。请填写目标组件设置的 name 值,如果填写为 window 则让当前页面整体刷新。
redirect模板3000操作完后跳转。
targetstringfalse可以把数据提交给别的组件而不是自己保存。请填写目标组件设置的 name 值,如果填写为 window 则把数据同步到地址栏上,同时依赖这些数据的组件会自动重新刷新。
stepsArray<step>数组,配置步骤信息
\n

step

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
titlestring步骤标题
modestring展示默认,跟 Form 中的模式一样,选择: normalhorizontal或者inline
horizontalObject当为水平模式时,用来控制左右占比
horizontal.labelnumber左边 label 的宽度占比
horizontal.rightnumber右边控制器的宽度占比。
horizontal.offsetnumber当没有设置 label 时,右边控制器的偏移量
apiAPI当前步骤保存接口,可以不配置。
initApiAPI当前步骤数据初始化接口。
initFetchboolean当前步骤数据初始化接口是否初始拉取。
initFetchOn表达式当前步骤数据初始化接口是否初始拉取,用表达式来决定。
controlsArray<FormItem>当前步骤的表单项集合,请参考 FormItem
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2, + "children": [ + { + "label": "step", + "fragment": "step", + "fullPath": "#step", + "level": 3 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/wrapper.html b/gh-pages/docs/components/wrapper.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/components/wrapper.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/components/wrapper_d26aaaf.js b/gh-pages/docs/components/wrapper_d26aaaf.js new file mode 100644 index 000000000..d047c2c43 --- /dev/null +++ b/gh-pages/docs/components/wrapper_d26aaaf.js @@ -0,0 +1,39 @@ +amis.define('docs/components/wrapper.md', function(require, exports, module, define) { + + module.exports = { + "title": "Wrapper 包裹容器", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Wrapper", + "icon": null, + "order": 72, + "html": "

简单的一个包裹容器组件

\n

基本用法

\n

不同内边距

通过配置size属性,可以调整内边距

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"wrapper"指定为 Wrapper 渲染器
classNamestring外层 Dom 的类名
sizestring支持: xssmmdlg
bodySchemaNode内容容器
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "不同内边距", + "fragment": "%E4%B8%8D%E5%90%8C%E5%86%85%E8%BE%B9%E8%B7%9D", + "fullPath": "#%E4%B8%8D%E5%90%8C%E5%86%85%E8%BE%B9%E8%B7%9D", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/action.html b/gh-pages/docs/concepts/action.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/action.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/action_1571cc0.js b/gh-pages/docs/concepts/action_1571cc0.js new file mode 100644 index 000000000..b053006c5 --- /dev/null +++ b/gh-pages/docs/concepts/action_1571cc0.js @@ -0,0 +1,41 @@ +amis.define('docs/concepts/action.md', function(require, exports, module, define) { + + module.exports = { + "title": "行为", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "行为", + "icon": null, + "order": 12, + "html": "

页面的交互操作,例如:提交表单、显示一个弹框、跳转页面、复制一段文字到粘贴板等等操作,都可以视作页面的一种行为

\n

在 amis 中,大部分 行为 是跟 行为按钮组件 进行绑定的,也就是说,当你想要配置一个行为,大部分情况下你应该遵循下面的步骤:

\n
    \n
  1. 添加一个 行为按钮组件
  2. \n
  3. 配置当前 行为类型(actionType)
  4. \n
  5. 根据当前行为类型,配置你想要的 属性
  6. \n
\n

如何配置行为?

通过行为按钮

\n
    \n
  1. page内容区中,添加一个action行为按钮组件
  2. \n
  3. 配置当前行为类型是 ajax(即发送一个 ajax 请求)
  4. \n
  5. 配置请求 api,值为 API 类型
  6. \n
\n

现在点击该按钮,你会发现浏览器发出了这个ajax请求。

\n

很简单是吧?我们再来一个例子:

\n
\n

这次我们配置actionTypedialog,意味着点击该按钮会弹出一个模态框,并配置dialog内容,来显示字符串Hello World!

\n
\n

dialog是容器,也就意味着可以在body属性中配置其他组件

\n
\n

完整的行为列表可以查看 action组件

\n

组件所支持的行为

一些特殊组件,例如 Chart 组件 中的图表点击行为,可以直接配置clickAction,来配置行为对象。

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "如何配置行为?", + "fragment": "%E5%A6%82%E4%BD%95%E9%85%8D%E7%BD%AE%E8%A1%8C%E4%B8%BA-", + "fullPath": "#%E5%A6%82%E4%BD%95%E9%85%8D%E7%BD%AE%E8%A1%8C%E4%B8%BA-", + "level": 2, + "children": [ + { + "label": "通过行为按钮", + "fragment": "%E9%80%9A%E8%BF%87%E8%A1%8C%E4%B8%BA%E6%8C%89%E9%92%AE", + "fullPath": "#%E9%80%9A%E8%BF%87%E8%A1%8C%E4%B8%BA%E6%8C%89%E9%92%AE", + "level": 3 + }, + { + "label": "组件所支持的行为", + "fragment": "%E7%BB%84%E4%BB%B6%E6%89%80%E6%94%AF%E6%8C%81%E7%9A%84%E8%A1%8C%E4%B8%BA", + "fullPath": "#%E7%BB%84%E4%BB%B6%E6%89%80%E6%94%AF%E6%8C%81%E7%9A%84%E8%A1%8C%E4%B8%BA", + "level": 3 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/data-mapping.html b/gh-pages/docs/concepts/data-mapping.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/data-mapping.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/data-mapping_a378ea6.js b/gh-pages/docs/concepts/data-mapping_a378ea6.js new file mode 100644 index 000000000..0033f5275 --- /dev/null +++ b/gh-pages/docs/concepts/data-mapping_a378ea6.js @@ -0,0 +1,271 @@ +amis.define('docs/concepts/data-mapping.md', function(require, exports, module, define) { + + module.exports = { + "title": "数据映射", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "数据映射", + "icon": null, + "order": 12, + "html": "

数据映射支持用户通过${xxx}$xxx获取当前数据链中某个变量的值,实现灵活的数据配置功能,主要用于模板字符串、 自定义 api 请求数据体格式等场景。

\n

模板字符串

\n

tip: 默认 amis 在解析模板字符串时,遇到$字符会尝试去解析该变量并替换改模板变量,如果你想输出纯文本"${xxx}""$xxx",那么需要在$前加转义字符"\\\\",即"\\\\${xxx}"

\n
\n

支持链式取值

可以使用.进行链式取值

\n
\n

自定义 api 请求体数据格式

在表单提交接口时,amis 默认的请求体数据格式可能不符合你的预期,不用担心,你可以使用数据映射定制想要的数据格式:

\n

查看下面这种场景:

\n
\n

当输入姓名:rick 和邮箱:`rick@gmail.com后,form` 获取当前的数据域,提交后端接口的数据格式应该是这样的:

\n
{\n  \"name\": \"rick\",\n  \"email\": \"rick@gmail.com\"\n}\n
\n

遗憾的是,你的后端接口只支持的如下的输入数据结构,且无法修改:

\n
{\n  \"userName\": \"xxx\",\n  \"userEmail\": \"xxx@xxx.com\"\n}\n
\n

这时,除了直接更改你的 姓名表单项 和 邮箱表单项 的name属性为相应的字段以外,你可以配置apidata属性,使用数据映射轻松实现数据格式的自定义:

\n
\n

你可以查看网络面板,发送给后端接口的数据体应该已经成功修改为:

\n
{\n  \"userName\": \"rick\",\n  \"userEmail\": \"rick@gmail.com\"\n}\n
\n

复杂配置

展开所配置的数据

可以使用"&",作为数据映射 key,展开所配置的变量,例如:

\n

下面例子中,我们想在提交的时候,除了提交 nameemail 变量以外,还想添加 c 下面的所有变量 e,f,g,但是按照之前所讲的, api 应该这么配置:

\n
\n

点击提交查看网络面板数据,你会发现数据是符合预期的:

\n
{\n  \"name\": \"rick\",\n  \"email\": \"rick@gmail.comn\",\n  \"e\": \"3\",\n  \"f\": \"4\",\n  \"g\": \"5\"\n}\n
\n

但是当变量字段过多的时候,你需要一一映射配置,也许有点麻烦,所以可以使用"&"标识符,来展开所配置变量:

\n
\n

上例中我们 api.data 配置如下:

\n
\"data\": {\n  \"name\": \"${name}\",\n  \"email\": \"${email}\",\n  \"&\": \"${c}\"\n}\n
\n

"&"标识符会将所配置的c变量的value值,展开并拼接在data中。查看网络面板可以看到数据如下:

\n
{\n  \"name\": \"rick\",\n  \"email\": \"rick@gmail.comn\",\n  \"e\": \"3\",\n  \"f\": \"4\",\n  \"g\": \"5\"\n}\n
\n

数组提取值

\n

上例中的apidata配置格式如下:

\n
\"data\": {\n    \"items\": {\n      \"$table\": {\n        \"a\": \"${a}\",\n        \"c\": \"${c}\"\n      }\n    }\n}\n
\n

这个配置的意思是,只提取table数组中的a变量和c变量,组成新的数组,赋值给items变量

\n

点击提交,查看浏览器网络面板可以发现,表单的提交数据结构如下:

\n
{\n  \"items\": [\n    {\n      \"a\": \"a1\",\n      \"c\": \"c1\"\n    },\n    {\n      \"a\": \"a2\",\n      \"c\": \"c2\"\n    },\n    {\n      \"a\": \"a3\",\n      \"c\": \"c3\"\n    }\n  ]\n}\n
\n

过滤器

过滤器是对数据映射的一种增强,它的作用是对获取数据做一些处理,基本用法如下:

\n
${xxx [ |filter1 |filter2...] }\n

下面我们会逐一介绍每一个过滤器的用法。

\n
\n

过滤器可以 串联使用

\n
\n

html

用于显示 html 文本。

\n
基本用法
${xxx | html}\n
\n

raw

不同场景下,在使用数据映射时,amis 可能默认会使用html过滤器对数据进行转义显示,这时如果想要输出原始文本,请配置raw过滤器。

\n
基本用法

使用raw可以直接输出原始文本

\n
${xxx | raw}\n
\n
\n

注意!!!

\n

raw过滤器虽然支持显示原始文本,也就意味着可以输出 HTML 片段,但是动态渲染 HTML 是非常危险的,容易导致 XSS 攻击。

\n

因此在 使用raw过滤器的时候,请确保变量的内容可信,且永远不要渲染用户填写的内容。

\n
\n

json

用于将数据转换为json格式字符串

\n
基本用法
${xxx | json[:tabSize]}\n
\n
指定缩进数
${xxx|json:4} // 指定缩进为4个空格\n

toJson

json相反,用于将json格式的字符串,转换为javascript对象

\n
${xxx | toJson}\n
\n

Javascript的直接输出会显示[object Object],你可以使用 json 过滤器 来格式化显示json文本。

\n

date

日期格式化过滤器,用于把特定时间值按指定格式输出。

\n
基本用法
${xxx | date[:format][:inputFormat]}\n
\n

具体参数的配置需要参考 moment

\n
\n
配置输出格式

例如你想将某一个时间值,以 2020-04-14 这样的格式输出,那么查找 moment 文档可知配置格式应为 YYYY-MM-DD,即:

\n
\n
配置数据格式

如果你的数据值默认不是X格式(即时间戳格式),那么需要配置inputformat参数用于解析当前时间值,例如:

\n
\n
\n

注意: 在过滤器参数中使用:字符,需要在前面加\\\\转义字符

\n
\n

number

自动给数字加千分位。

\n
基本用法
${xxx | number}\n
\n

trim

把变量值前后多余的空格去掉。

\n
基本用法
${xxx | trim}\n

percent

基本用法
${xxx | percent[:decimals]}\n
\n
\n
指定小数点后位数
\n

round

四舍五入取整

\n
${xxx | round[:decimals]}\n
\n
\n
指定小数点后位数
\n

truncate

当超出若干个字符时,后面的部分直接显示某串字符

\n
基本用法
${xxx | truncate[:length][:mask]}\n
\n
\n

url_encode

效果同 encodeURIComponent() - JavaScript | MDN

\n
基本用法
${xxx | url_encode}\n

url_decode

效果同 decodeURIComponent() - JavaScript | MDN

\n
基本用法
${xxx | url_decode}\n

default

当变量值为空时,显示其他值代替。

\n
基本用法
${xxx | default[:defaultValue]}\n
\n
\n

split

可以将字符传通过分隔符分离成数组

\n
基本用法
${xxx | split[:delimiter]}\n
\n
\n

join

当变量值是数组时,可以把内容连接起来。

\n
基本用法
${xxx | join[:glue]}\n
\n
\n
配置连接符
\n

first

获取数组中的第一个值

\n
基本用法
${xxx | first}\n
\n

last

获取数组中的最后一个值

\n
基本用法
${xxx | last}\n
\n

nth

获取数组中的第n个值

\n
基本用法
${xxx | nth[:nth]}\n
\n
\n

注意: nth 配置0为获取第一个元素。

\n

pick

获取对象或数组中符合条件的筛选值

\n
基本用法
${xxx | pick[:path]}\n
\n
在对象中获取某个 key 值
\n
遍历对象数组获取指定值
\n
遍历数组对象,并自定义 key
\n

str2date

@todo

\n

duration

秒值格式化成时间格式

\n
基本用法
${xxx | duration}\n
\n

asArray

将数据包成数组

\n
基本用法
${xxx | asArray}\n
\n

lowerCase

将字符串转小写

\n
基本用法
${xxx | lowerCase}\n
\n

upperCase

将字符串转大写

\n
基本用法
${xxx | upperCase}\n
\n

base64Encode

base64 加密

\n
基本用法
${xxx | base64Encode}\n
\n

base64Decode

base64 解密

\n
基本用法
${xxx | base64Decode}\n
\n

isTrue

真值条件过滤器

\n
基本用法
${xxx | isTrue[:trueValue][:falseValue]\n
\n
\n

配置trueValuefalseValue时,如果想要返回当前数据域中某个变量的值,那么参数可以直接配置变量名而不需要在两边添加引号;如果想返回某字符串,那么需要给参数两边添加单引号或双引号,

\n

例如 ${xxx|isTrue:'foo':bar},当 xxx 变量为真,那么会返回 字符串'foo',如果不为真,那么返回数据域中 变量bar 的值。

\n
\n
\n
返回数据域中变量

参数中不添加引号,可以直接返回数据域中变量值

\n
\n

isFalse

假值条件过滤器

\n
基本用法
${xxx | isFalse[:falseValue][:trueValue]\n

用法与 isTrue 过滤器 相同,判断逻辑相反

\n

isMatch

模糊匹配条件过滤器

\n
基本用法
${xxx | isMatch[:matchParam][:trueValue][:falseValue]\n
\n
\n
返回数据域中变量

参数中不添加引号,可以直接返回数据域中变量值

\n
\n

notMatch

基本用法
${xxx | notMatch[:matchParam][:trueValue][:falseValue]\n

用法与 isMatch 相同,判断逻辑相反。

\n

isEquals

全等匹配过滤器

\n
基本用法
${xxx | isEquals[:equalsValue][:trueValue][:falseValue]\n
\n
\n
返回数据域中变量

参数中不添加引号,可以直接返回数据域中变量值

\n
\n

notEquals

不全等匹配过滤器

\n
基本用法
${xxx | notEquals[:equalsValue][:trueValue][:falseValue]\n

用法与 isEquals 相同,判断逻辑相反。

\n

filter

过滤数组,操作对象为数组,当目标对象不是数组时将无效。

\n
基本用法
${xxx | filter[:keys][:directive][:arg1]}\n
\n

串联使用过滤器

使用单一的过滤器可能无法满足你的所有需求,幸运的是 amis 支持串联使用过滤器,而前一个过滤器的值会作为下一个过滤器的入参,进行下一步处理。语法如下:

\n
${xxx|filter1|filter2|...}\n
先拆分字符串,再获取第 n 个值
\n

上例子中${value|split|first},会经历下面几个步骤:

\n
    \n
  1. 会先执行split过滤器,将字符串a,b,c,拆分成数组["a", "b", "c"]
  2. \n
  3. 然后将该数据传给下一个过滤器first,执行该过滤器,获取数组第一个元素,为"a"
  4. \n
  5. 输出"a"
  6. \n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "模板字符串", + "fragment": "%E6%A8%A1%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2", + "fullPath": "#%E6%A8%A1%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2", + "level": 2 + }, + { + "label": "支持链式取值", + "fragment": "%E6%94%AF%E6%8C%81%E9%93%BE%E5%BC%8F%E5%8F%96%E5%80%BC", + "fullPath": "#%E6%94%AF%E6%8C%81%E9%93%BE%E5%BC%8F%E5%8F%96%E5%80%BC", + "level": 2 + }, + { + "label": "自定义 api 请求体数据格式", + "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89-api-%E8%AF%B7%E6%B1%82%E4%BD%93%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89-api-%E8%AF%B7%E6%B1%82%E4%BD%93%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F", + "level": 2 + }, + { + "label": "复杂配置", + "fragment": "%E5%A4%8D%E6%9D%82%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%A4%8D%E6%9D%82%E9%85%8D%E7%BD%AE", + "level": 2, + "children": [ + { + "label": "展开所配置的数据", + "fragment": "%E5%B1%95%E5%BC%80%E6%89%80%E9%85%8D%E7%BD%AE%E7%9A%84%E6%95%B0%E6%8D%AE", + "fullPath": "#%E5%B1%95%E5%BC%80%E6%89%80%E9%85%8D%E7%BD%AE%E7%9A%84%E6%95%B0%E6%8D%AE", + "level": 3 + }, + { + "label": "数组提取值", + "fragment": "%E6%95%B0%E7%BB%84%E6%8F%90%E5%8F%96%E5%80%BC", + "fullPath": "#%E6%95%B0%E7%BB%84%E6%8F%90%E5%8F%96%E5%80%BC", + "level": 3 + } + ] + }, + { + "label": "过滤器", + "fragment": "%E8%BF%87%E6%BB%A4%E5%99%A8", + "fullPath": "#%E8%BF%87%E6%BB%A4%E5%99%A8", + "level": 2, + "children": [ + { + "label": "html", + "fragment": "html", + "fullPath": "#html", + "level": 3 + }, + { + "label": "raw", + "fragment": "raw", + "fullPath": "#raw", + "level": 3 + }, + { + "label": "json", + "fragment": "json", + "fullPath": "#json", + "level": 3 + }, + { + "label": "toJson", + "fragment": "tojson", + "fullPath": "#tojson", + "level": 3 + }, + { + "label": "date", + "fragment": "date", + "fullPath": "#date", + "level": 3 + }, + { + "label": "number", + "fragment": "number", + "fullPath": "#number", + "level": 3 + }, + { + "label": "trim", + "fragment": "trim", + "fullPath": "#trim", + "level": 3 + }, + { + "label": "percent", + "fragment": "percent", + "fullPath": "#percent", + "level": 3 + }, + { + "label": "round", + "fragment": "round", + "fullPath": "#round", + "level": 3 + }, + { + "label": "truncate", + "fragment": "truncate", + "fullPath": "#truncate", + "level": 3 + }, + { + "label": "url_encode", + "fragment": "url_encode", + "fullPath": "#url_encode", + "level": 3 + }, + { + "label": "url_decode", + "fragment": "url_decode", + "fullPath": "#url_decode", + "level": 3 + }, + { + "label": "default", + "fragment": "default", + "fullPath": "#default", + "level": 3 + }, + { + "label": "split", + "fragment": "split", + "fullPath": "#split", + "level": 3 + }, + { + "label": "join", + "fragment": "join", + "fullPath": "#join", + "level": 3 + }, + { + "label": "first", + "fragment": "first", + "fullPath": "#first", + "level": 3 + }, + { + "label": "last", + "fragment": "last", + "fullPath": "#last", + "level": 3 + }, + { + "label": "nth", + "fragment": "nth", + "fullPath": "#nth", + "level": 3 + }, + { + "label": "pick", + "fragment": "pick", + "fullPath": "#pick", + "level": 3 + }, + { + "label": "str2date", + "fragment": "str2date", + "fullPath": "#str2date", + "level": 3 + }, + { + "label": "duration", + "fragment": "duration", + "fullPath": "#duration", + "level": 3 + }, + { + "label": "asArray", + "fragment": "asarray", + "fullPath": "#asarray", + "level": 3 + }, + { + "label": "lowerCase", + "fragment": "lowercase", + "fullPath": "#lowercase", + "level": 3 + }, + { + "label": "upperCase", + "fragment": "uppercase", + "fullPath": "#uppercase", + "level": 3 + }, + { + "label": "base64Encode", + "fragment": "base64encode", + "fullPath": "#base64encode", + "level": 3 + }, + { + "label": "base64Decode", + "fragment": "base64decode", + "fullPath": "#base64decode", + "level": 3 + }, + { + "label": "isTrue", + "fragment": "istrue", + "fullPath": "#istrue", + "level": 3 + }, + { + "label": "isFalse", + "fragment": "isfalse", + "fullPath": "#isfalse", + "level": 3 + }, + { + "label": "isMatch", + "fragment": "ismatch", + "fullPath": "#ismatch", + "level": 3 + }, + { + "label": "notMatch", + "fragment": "notmatch", + "fullPath": "#notmatch", + "level": 3 + }, + { + "label": "isEquals", + "fragment": "isequals", + "fullPath": "#isequals", + "level": 3 + }, + { + "label": "notEquals", + "fragment": "notequals", + "fullPath": "#notequals", + "level": 3 + }, + { + "label": "filter", + "fragment": "filter", + "fullPath": "#filter", + "level": 3 + } + ] + }, + { + "label": "串联使用过滤器", + "fragment": "%E4%B8%B2%E8%81%94%E4%BD%BF%E7%94%A8%E8%BF%87%E6%BB%A4%E5%99%A8", + "fullPath": "#%E4%B8%B2%E8%81%94%E4%BD%BF%E7%94%A8%E8%BF%87%E6%BB%A4%E5%99%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/datascope-and-datachain.html b/gh-pages/docs/concepts/datascope-and-datachain.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/datascope-and-datachain.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/datascope-and-datachain_9b7aaf7.js b/gh-pages/docs/concepts/datascope-and-datachain_9b7aaf7.js new file mode 100644 index 000000000..27c0cf356 --- /dev/null +++ b/gh-pages/docs/concepts/datascope-and-datachain_9b7aaf7.js @@ -0,0 +1,83 @@ +amis.define('docs/concepts/datascope-and-datachain.md', function(require, exports, module, define) { + + module.exports = { + "title": "数据域与数据链", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "数据域与数据链", + "icon": null, + "order": 10, + "html": "

基本的数据展示

我们再看之前的 Hello World 示例:

\n
{\n  \"type\": \"page\",\n  \"body\": \"Hello World!\"\n}\n
\n

目前我们只是在 Page 组件中渲染一串固定的文本,如果我们想要 通过接口拉取想要的数据,并展示到 Page 组件的内容区 呢?

\n

添加初始化接口

{\n  \"type\": \"page\",\n  \"initApi\": \"https://houtai.baidu.com/api/mock2/page/initData\",\n  \"body\": \"date is ${date}\"\n}\n
\n

接口返回的数据结构如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"title\": \"Test Page Component\",\n    \"date\": \"2017-10-13\"\n  }\n}\n
\n

渲染后页面如下:

\n
\n

发生了什么?

我们可以看到,输出结果不变,但是我们这次渲染的是接口返回的数据:

\n
    \n
  1. 首先我们给 Page 组件配置了initApi属性,该属性会在组件初始化时,请求所该属性所配置的接口
  2. \n
  3. 接口请求成功后,Page 会把接口返回的data内数据存到当前的数据域中
  4. \n
  5. Page 在渲染 body 所配置的文本时,会解析文本内容,当解析到模板变量${text}时,amis 会把尝试在当前组件的数据域中获取text变量值,并替换掉${text},最后渲染解析后的文本。
  6. \n
\n
\n

下一节我们会介绍模板body属性自身支持模板语法,amis 中支持模板语法的组件还有很多

\n
\n

数据域

前面我们提到了数据域这个概念,它是 amis 中最重要的概念之一。

\n

还是通过最简单的示例进行讲解:

\n
{\n  \"type\": \"page\",\n  \"body\": \"Hello ${text}\"\n}\n
\n

上面的配置要做的很简单:使用 Page 组件,在内容区内渲染一段模板文字,其中${text}模板变量,它会去到当前组件的数据域中,获取text变量值。

\n

毫无疑问,${text}将会解析为空白文本,最终渲染的文本是 Hello

\n
\n

因为当前 Page 组件的数据域中是没有任何数据的,相比之前的示例,区别在于前面我们为 Page 组件配置了初始化接口,它会将接口返回的数据存入数据域中以供组件使用。

\n

再观察下面这段配置:

\n
\n

再次查看渲染结果,顺利输出了 Hello World!

\n

相信你可能已经猜到,组件的data属性值是数据域的一种形式,实际上当我们没有显式的配置数据域时,可以假想成这样:

\n
\n
\n

amis 中大部分组件都具有数据域。

\n

而前面我们知道 amis 的特性之一是基于组件树,因此自然数据域也会形成类似于树型结构,如何来处理这些数据域之间的联系呢,这就是我们马上要介绍到的 数据链

\n
\n

数据链

相信通过上文,你已经基本掌握了 amis 中数据域的概念,接下来我们会介绍另一个重要概念:数据链

\n

数据链的特性是,当前组件在遇到获取变量的场景(例如模板渲染、展示表单数据、渲染列表等等)时:

\n
    \n
  1. 首先会先尝试在当前组件的数据域中寻找变量,当成功找到变量时,通过数据映射完成渲染,停止寻找过程;
  2. \n
  3. 当在当前数据域中没有找到变量时,则向上寻找,在父组件的数据域中,重复步骤12
  4. \n
  5. 一直寻找,直到顶级节点,也就是page节点,寻找过程结束。
  6. \n
\n
\n

为了方便讲解,我们这一章的例子统一使用的设置组件data属性的方式来初始化数据域,请记住,如果组件支持,你永远可以通过接口来进行数据域的初始化

\n
\n

继续来看这个例子:

\n
\n

上面的配置项形成了如下的组件树和数据链:

\n

组件树:

\n
page\n  ├─ tpl\n  └─ service\n       └─ tpl\n

数据链:

\n
{\n  \"name\": \"zhangsan\",\n  \"age\": 20,\n  \"__sub\": {\n    \"name\": \"lisi\"\n  }\n}\n
\n
\n

__sub 字段只是为了方便理解。

\n
\n

首先,page组件下的tpl组件,在渲染my name is ${name}时,首先会在page的数据域中,尝试寻找name变量,在当前数据域中,name变量为zhangsan,因此寻找变量结束,通过数据映射渲染,输出:my name is zhangsan,渲染结束;

\n

然后,service组件开始渲染,service组件内子组件tpl,它配置的模板字符串是:my name is ${name}, I'm ${age} years old,它会在service的数据域中,尝试寻找nameage变量。

\n

由代码可以看出,service数据域中name变量为lisi,因此停止该变量的寻找,接下来寻找age变量。

\n

很明显在service数据域中寻找age变量会失败,因此向上查找,尝试在page数据域中寻找age变量,找到为20,寻找变量结束,通过数据映射渲染,输出:my name is lisi, I'm 20 years old,渲染结束。

\n
\n

注意: 当前例子中,对数据域中数据的获取使用的是 \\${xxx} 模板语法,但是在不同的组件配置项中,获取数据的语法会有差异,我们会在后续的模板表达式章节中一一介绍。

\n
\n

初始化数据域

通过上面的介绍你可能发现,初始化数据域有两种方式:

\n

1. 配置组件初始化接口

想要将自己的服务中的数据保存到某个组件的数据域中,最好的方式就是为当前组件配置初始化接口:

\n
{\n  \"type\": \"page\",\n  \"initApi\": \"/api/initData\",\n  \"body\": \"Hello ${text}\"\n}\n
\n

接口必须按照下面的格式返回:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"text\": \"World!\"\n    ...其他字段\n  }\n}\n
\n

注意:

\n
    \n
  1. 并不是所有组件都支持配置初始化接口来实现数据域初始化操作,对于那些不支持配置初始化接口的组件来说,一般会使用 Service 组件 来辅助实现数据域初始化;
  2. \n
  3. statusmsgdata 字段为接口返回的必要字段;
  4. \n
  5. data必须返回一个具有key-value结构的对象
  6. \n
\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": { // 正确\n    \"text\": \"World!\"\n  }\n}\n\n// 直接返回字符串或者数组都是无效的\n{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": \"some string\" // 错误,使用 key 包装\n}\n{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": [\"a\", \"b\"] // 错误,使用 key 包装\n}\n
\n
\n

api 除了配置字符串格式以外,还可以配置复杂对象结构,更多详情查看API 文档

\n
\n

2. 显式配置 data 属性值

另一种初始化当前数据域的方式是显式的设置组件的data属性值:

\n
\n

同时配置

在同时配置 初始化接口data属性 时,数据域将会合并data属性值和初始化接口返回的数据

\n

更新数据域

部分组件的某些交互或行为会对当前组件的数据域进行更新:

\n
\n

/api/saveForm接口会保存当前表单提交的数据,并返回后端服务生成的id,并返回到前端,格式如下;

\n
{\n  \"status\": 0,\n  \"msg\": \"保存成功\",\n  \"data\": {\n    \"id\": 1\n  }\n}\n
\n

这时 amis 将会把data数据与当前form组件的数据域进行mergeform组件中的static-tpl组件会根据更新后的数据域,显示id1

\n
\n

具有类似特征的组件还有Formula

\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本的数据展示", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%9A%84%E6%95%B0%E6%8D%AE%E5%B1%95%E7%A4%BA", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%9A%84%E6%95%B0%E6%8D%AE%E5%B1%95%E7%A4%BA", + "level": 2 + }, + { + "label": "添加初始化接口", + "fragment": "%E6%B7%BB%E5%8A%A0%E5%88%9D%E5%A7%8B%E5%8C%96%E6%8E%A5%E5%8F%A3", + "fullPath": "#%E6%B7%BB%E5%8A%A0%E5%88%9D%E5%A7%8B%E5%8C%96%E6%8E%A5%E5%8F%A3", + "level": 2 + }, + { + "label": "发生了什么?", + "fragment": "%E5%8F%91%E7%94%9F%E4%BA%86%E4%BB%80%E4%B9%88-", + "fullPath": "#%E5%8F%91%E7%94%9F%E4%BA%86%E4%BB%80%E4%B9%88-", + "level": 2 + }, + { + "label": "数据域", + "fragment": "%E6%95%B0%E6%8D%AE%E5%9F%9F", + "fullPath": "#%E6%95%B0%E6%8D%AE%E5%9F%9F", + "level": 2 + }, + { + "label": "数据链", + "fragment": "%E6%95%B0%E6%8D%AE%E9%93%BE", + "fullPath": "#%E6%95%B0%E6%8D%AE%E9%93%BE", + "level": 2 + }, + { + "label": "初始化数据域", + "fragment": "%E5%88%9D%E5%A7%8B%E5%8C%96%E6%95%B0%E6%8D%AE%E5%9F%9F", + "fullPath": "#%E5%88%9D%E5%A7%8B%E5%8C%96%E6%95%B0%E6%8D%AE%E5%9F%9F", + "level": 2, + "children": [ + { + "label": "1. 配置组件初始化接口", + "fragment": "1-%E9%85%8D%E7%BD%AE%E7%BB%84%E4%BB%B6%E5%88%9D%E5%A7%8B%E5%8C%96%E6%8E%A5%E5%8F%A3", + "fullPath": "#1-%E9%85%8D%E7%BD%AE%E7%BB%84%E4%BB%B6%E5%88%9D%E5%A7%8B%E5%8C%96%E6%8E%A5%E5%8F%A3", + "level": 3 + }, + { + "label": "2. 显式配置 data 属性值", + "fragment": "2-%E6%98%BE%E5%BC%8F%E9%85%8D%E7%BD%AE-data-%E5%B1%9E%E6%80%A7%E5%80%BC", + "fullPath": "#2-%E6%98%BE%E5%BC%8F%E9%85%8D%E7%BD%AE-data-%E5%B1%9E%E6%80%A7%E5%80%BC", + "level": 3 + }, + { + "label": "同时配置", + "fragment": "%E5%90%8C%E6%97%B6%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%90%8C%E6%97%B6%E9%85%8D%E7%BD%AE", + "level": 3 + } + ] + }, + { + "label": "更新数据域", + "fragment": "%E6%9B%B4%E6%96%B0%E6%95%B0%E6%8D%AE%E5%9F%9F", + "fullPath": "#%E6%9B%B4%E6%96%B0%E6%95%B0%E6%8D%AE%E5%9F%9F", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/expression.html b/gh-pages/docs/concepts/expression.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/expression.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/expression_ad06709.js b/gh-pages/docs/concepts/expression_ad06709.js new file mode 100644 index 000000000..48ce28306 --- /dev/null +++ b/gh-pages/docs/concepts/expression_ad06709.js @@ -0,0 +1,27 @@ +amis.define('docs/concepts/expression.md', function(require, exports, module, define) { + + module.exports = { + "title": "表达式", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "表达式", + "icon": null, + "order": 13, + "html": "

一般来说,属性名类似于xxxOn的配置项,都可以使用表达式进行配置,表达式具有如下的语法:

\n
{\n  \"type\": \"tpl\",\n  \"tpl\": \"当前作用域中变量 show 是 1 的时候才可以看得到我哦~\",\n  \"visibleOn\": \"data.show === 1\" \n}\n
\n

其中:data.show === 1 就是表达式。

\n

表达式语法

\n

表达式语法实际上是 JavaScript 代码,更多 JavaScript 知识查看 这里

\n
\n

在 amis 的实现过程中,当正则匹配到某个组件存在xxxOn语法的属性名时,会尝试进行下面步骤(以上面配置为例):

\n
    \n
  1. 提取visibleOn配置项配置的 JavaScript 语句data.show === 1,并以当前组件的数据域为这段代码的数据作用域,执行这段js代码;
  2. \n
  3. 之后将执行结果赋值给visible并添加到组件属性中
  4. \n
  5. 执行渲染。当前示例中:visible代表着是否显示当前组件;
  6. \n
\n

组件不同的配置项会有不同的效果,请大家在组件文档中多留意。

\n
\n

表达式的执行结果预期应该是boolean类型值,如果不是,amis 会根据 JavaScript 的规则将结果视作boolean类型进行判断

\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "表达式语法", + "fragment": "%E8%A1%A8%E8%BE%BE%E5%BC%8F%E8%AF%AD%E6%B3%95", + "fullPath": "#%E8%A1%A8%E8%BE%BE%E5%BC%8F%E8%AF%AD%E6%B3%95", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/linkage.html b/gh-pages/docs/concepts/linkage.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/linkage.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/linkage_cf54698.js b/gh-pages/docs/concepts/linkage_cf54698.js new file mode 100644 index 000000000..32c61197d --- /dev/null +++ b/gh-pages/docs/concepts/linkage_cf54698.js @@ -0,0 +1,73 @@ +amis.define('docs/concepts/linkage.md', function(require, exports, module, define) { + + module.exports = { + "title": "联动", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "联动", + "icon": null, + "order": 14, + "html": "

上一节我们介绍了表达式的概念,而表达式应用最多的场景,是实现页面的联动效果。

\n

基本联动

元素的联动是页面开发中很常见的功能之一,类似于:

\n\n
\n

联动配置项一般都是 表达式

\n
\n

组件配置联动

控制组件的显隐,表单项的禁用状态等,看下面这个例子:

\n
\n

上面实例主要为一个表单,表单内有三个组件:一个radio, 两个text,通过配置联动配置项,实现下面联动效果:

\n
    \n
  1. 只要当radio选中类型1时,才会显示text1
  2. \n
  3. radio选中类型2时,text2将会变为禁用状态
  4. \n
\n
\n

注意:

\n

在表单项联动中,为了方便数据的读取,赋值后或者修改过的表单项,通过隐藏后,并不会在当前数据域中删除掉该字段值,因此默认提交的时候可能仍然会带上已隐藏表单项的值

\n

如果想要在提交时去掉某个隐藏的字段,可以通过 数据映射 配置自定义数据体

\n
\n

接口联动

基本使用

接口联动是另外一种很常见的场景,查看下面这个例子:

\n
\n

上面例子我们实现了这个逻辑:每次选择选项1的时候,会触发选项2source配置的接口重新请求,并返回不同的下拉选项。

\n

是如何做到的?

\n

实际上,所有初始化接口链接上使用数据映射获取参数的形式时,例如下面的query=${query},在当前数据域中,所引用的变量值(即 query)发生变化时,自动重新请求该接口。

\n
{\n  \"initApi\": \"/api/initData?query=${query}\"\n}\n
\n
\n

tip:

\n

触发所引用变量值发生变化的方式有以下几种:

\n
    \n
  1. 通过对表单项的修改,可以更改表单项name属性值所配置变量的值;
  2. \n
  3. 通过组件间联动,将其他组件的值发送到目标组件,进行数据域的更新,从而触发联动效果
  4. \n
\n

接口联动一般只适用于初始化接口,例如:

\n\n
\n

配置请求条件

默认在变量变化时,总是会去请求联动的接口,你也可以配置请求条件,当只有当前数据域中某个值符合特定条件才去请求该接口。

\n
\n

更多用法,见:Api-配置请求条件

\n

主动触发

上面示例有个问题,就是数据一旦变化就会出发重新拉取,而输入框的频繁变化值会导致频繁的拉取?没关系,也可以配置主动拉取如:

\n
\n
    \n
  1. 通过api对象形式,将获取变量值配置到data请求体中。
  2. \n
  3. 配置搜索按钮,并配置该行为是刷新目标组件,并配置目标组件target
  4. \n
  5. 这样我们只有在点击搜索按钮的时候,才会将keyword值发送给select组件,重新拉取选项
  6. \n
\n

其他联动

还有一些组件特有的联动效果,例如 form 的 disabledOn,crud 中的 itemDraggableOn 等等,可以参考相应的组件文档。

\n

组件间联动

联动很可能会出现跨组件的形式,思考下面这种场景:

\n

有一个表单form组件,还有一个列表组件crud,我们想要把form提交的数据,可以用作crud的查询条件,并请求crud的接口,由于formcrud位于同一层级,因此没法使用数据链的方式进行取值。

\n
\n

现在更改配置如下:

\n
\n

我们进行两个调整:

\n
    \n
  1. crud组件设置了name属性为my_crud
  2. \n
  3. form组件配置了target属性为crudnamemy_crud
  4. \n
\n

更改配置后,提交表单时,如果有配置提交接口,会先请求提交,之后 amis 会寻找target所配置的目标组件,把form中所提交的数据,发送给该目标组件中,并将该数据合并到目标组件的数据域中,并触发目标组件的刷新操作,对于 CRUD 组件来说,刷新即重新拉取数据接口。

\n
\n

当然,crud组件内置已经支持此功能,你只需要配置crud中的filter属性,就可以实现上面的效果,更多内容查看 crud -> filter 文档。

\n
\n

我们再来一个例子,这次我们实现两个form之间的联动:

\n

事实上,组件间联动也可以实现上述任意的 基本联动效果(显隐联动、接口联动等其他联动)。

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本联动", + "fragment": "%E5%9F%BA%E6%9C%AC%E8%81%94%E5%8A%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E8%81%94%E5%8A%A8", + "level": 2, + "children": [ + { + "label": "组件配置联动", + "fragment": "%E7%BB%84%E4%BB%B6%E9%85%8D%E7%BD%AE%E8%81%94%E5%8A%A8", + "fullPath": "#%E7%BB%84%E4%BB%B6%E9%85%8D%E7%BD%AE%E8%81%94%E5%8A%A8", + "level": 3 + }, + { + "label": "接口联动", + "fragment": "%E6%8E%A5%E5%8F%A3%E8%81%94%E5%8A%A8", + "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%81%94%E5%8A%A8", + "level": 3, + "children": [ + { + "label": "基本使用", + "fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8", + "level": 4 + }, + { + "label": "配置请求条件", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%9D%A1%E4%BB%B6", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%9D%A1%E4%BB%B6", + "level": 4 + }, + { + "label": "主动触发", + "fragment": "%E4%B8%BB%E5%8A%A8%E8%A7%A6%E5%8F%91", + "fullPath": "#%E4%B8%BB%E5%8A%A8%E8%A7%A6%E5%8F%91", + "level": 4 + } + ] + }, + { + "label": "其他联动", + "fragment": "%E5%85%B6%E4%BB%96%E8%81%94%E5%8A%A8", + "fullPath": "#%E5%85%B6%E4%BB%96%E8%81%94%E5%8A%A8", + "level": 3 + } + ] + }, + { + "label": "组件间联动", + "fragment": "%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8", + "fullPath": "#%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/schema.html b/gh-pages/docs/concepts/schema.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/schema.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/schema_990f7b2.js b/gh-pages/docs/concepts/schema_990f7b2.js new file mode 100644 index 000000000..10cb0fc65 --- /dev/null +++ b/gh-pages/docs/concepts/schema_990f7b2.js @@ -0,0 +1,39 @@ +amis.define('docs/concepts/schema.md', function(require, exports, module, define) { + + module.exports = { + "title": "配置与组件", + "description": "配置与组件", + "type": 0, + "group": "💡 概念", + "menuName": "配置与组件", + "icon": null, + "order": 9, + "html": "

最简单的 amis 配置

一个最简单的 amis 配置看起来是这样的:

\n
{\n  \"type\": \"page\",\n  \"body\": \"Hello World!\"\n}\n
\n

请观察上面的代码,这是一段普通的 JSON 格式文本,它的含义是:

\n
    \n
  1. type是每一个amis节点中,最重要的一个字段,它会告诉 amis 当前节点需要渲染的是Page组件
  2. \n
  3. body字段会被看作是Page组件的属性,将该属性值所配置的内容,渲染到Page组件的内容区中
  4. \n
\n

上面配置通过 amis 的处理,会渲染出一个简单的页面,并在页面中展示文字:Hello World!,就像下面这样:

\n
\n

后续章节中,你会经常看到例如上面这样,支持实时编辑配置预览效果的页面配置预览工具,它可以帮助你更直观的看到具体配置所展示的页面效果。

\n
\n

配置中,$schema 这个字段可以忽略,它是指定当前 JSON 配置是符合指定路径 https://houtai.baidu.com/v2/schemas/page.json 的 JSON SCHEMA 文件描述的。

\n

该实时编辑器就是通过该描述文件,实现输入提示的功能。

\n
\n

组件

上面提到,type字段会告诉 amis 当前节点渲染的组件为PagePage 属于 amis 内置组件之一。

\n

组件节点的配置永远都是由 type字段 (用于标识当前是哪个组件)和 若干属性值 构成的。

\n
{\n  "type": "xxx",\n  ...若干属性值\n}\n

组件树

这次我们看一个稍微复杂一点的配置:

\n
{\n  \"type\": \"page\",\n  \"body\": {\n    \"type\": \"tpl\",\n    \"tpl\": \"Hello World!\"\n  }\n}\n
\n

该配置渲染页面如下:

\n
\n

看起来和之前的示例没啥区别,但是发现和之前不同的地方了吗?

\n

这次 Page 组件的 body 属性值,我们配置了一个对象,通过type指明body内容区内会渲染一个叫Tpl的组件,它是一个模板渲染组件,这里我们先只是配置一段固定文字。

\n

它是 Page 的子节点。

\n

再来观察下面这个配置:

\n
\n

我们通过数组的形式,在内容区配置tplform组件。

\n

没错,body 属性支持数组结构,这也就意味着你可以 通过组件树的形式 渲染出足够复杂的页面。

\n

具有body这类属性的组件一般称为容器型组件,就如名字所形容的,这类组件可以作为容器,在他们的子节点配置若干其他类型的组件,amis 中还有很多类似的组件,例如FormService等,后续我们会逐一进行介绍。

\n
\n

注意:

\n

Page是一个特殊的容器组件,它是 amis 页面配置中 必须也是唯一的顶级节点

\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "最简单的 amis 配置", + "fragment": "%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84-amis-%E9%85%8D%E7%BD%AE", + "fullPath": "#%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84-amis-%E9%85%8D%E7%BD%AE", + "level": 2 + }, + { + "label": "组件", + "fragment": "%E7%BB%84%E4%BB%B6", + "fullPath": "#%E7%BB%84%E4%BB%B6", + "level": 2 + }, + { + "label": "组件树", + "fragment": "%E7%BB%84%E4%BB%B6%E6%A0%91", + "fullPath": "#%E7%BB%84%E4%BB%B6%E6%A0%91", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/style.html b/gh-pages/docs/concepts/style.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/style.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/style_a38cafb.js b/gh-pages/docs/concepts/style_a38cafb.js new file mode 100644 index 000000000..7a52b8516 --- /dev/null +++ b/gh-pages/docs/concepts/style_a38cafb.js @@ -0,0 +1,87 @@ +amis.define('docs/concepts/style.md', function(require, exports, module, define) { + + module.exports = { + "title": "样式", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "样式", + "icon": null, + "order": 18, + "html": "

amis 中有大量的功能类 class 可以使用,即可以用在 schema 中,也可以用在自定义组件开发中,掌握这些 class, 几乎可以不用写样式。

\n

图标

amis 集成了 fontawesome,所以关于图标部分,请前往 fontawesome 查看。

\n

布局

水平布局可以考虑用 Bootstrap 的 Grids 或者用 hobxcol

\n
\n
Col A
\n
Col B
\n
Col C
\n
\n
<div class=\"hbox b-a\">\n  <div class=\"col wrapper-sm bg-success\">Col A</div>\n  <div class=\"col wrapper-sm bg-info\">Col B</div>\n  <div class=\"col wrapper-sm bg-danger\">Col C</div>\n</div>\n
\n

宽高

.w-1x {\n  width: 1em;\n}\n.w-2x {\n  width: 2em;\n}\n.w-3x {\n  width: 3em;\n}\n.w-xxs {\n  width: 60px;\n}\n.w-xs {\n  width: 90px;\n}\n.w-sm {\n  width: 150px;\n}\n.w {\n  width: 200px;\n}\n.w-md {\n  width: 240px;\n}\n.w-lg {\n  width: 280px;\n}\n.w-xl {\n  width: 320px;\n}\n.w-xxl {\n  width: 360px;\n}\n.w-full {\n  width: 100%;\n}\n.w-auto {\n  width: auto;\n}\n.h-auto {\n  height: auto;\n}\n.h-full {\n  height: 100% !important;\n  max-height: none !important;\n}\n
\n
\n
w-1x
\n
w-2x
\n
w-3x
\n
w-xxs
\n
w-xs
\n
w-sm
\n
w
\n
...
\n
\n
\n
w-md
\n
w-lg
\n
w-xl
\n
...
\n
\n
\n
w-xxl
\n
...
\n
\n
<div class=\"hbox b-a bg-primary\">\n  <div class=\"col wrapper-sm b-r w-1x\">w-1x</div>\n  <div class=\"col wrapper-sm b-r w-2x\">w-2x</div>\n  <div class=\"col wrapper-sm b-r w-3x\">w-3x</div>\n  <div class=\"col wrapper-sm b-r w-xxs\">w-xxs</div>\n  <div class=\"col wrapper-sm b-r w-xs\">w-xs</div>\n  <div class=\"col wrapper-sm b-r w-sm\">w-sm</div>\n  <div class=\"col wrapper-sm b-r w\">w</div>\n  <div class=\"col wrapper-sm  lter\">...</div>\n</div>\n<div class=\"hbox b-a bg-primary m-t\">\n  <div class=\"col wrapper-sm b-r w-md\">w-md</div>\n  <div class=\"col wrapper-sm b-r w-lg\">w-lg</div>\n  <div class=\"col wrapper-sm b-r w-xl\">w-xl</div>\n  <div class=\"col wrapper-sm lter\">...</div>\n</div>\n<div class=\"hbox b-a bg-primary m-t\">\n  <div class=\"col wrapper-sm b-r w-xxl\">w-xxl</div>\n  <div class=\"col wrapper-sm lter\">...</div>\n</div>\n
\n

外边距

.m-xxs {\n  margin: 2px 4px;\n}\n.m-xs {\n  margin: 5px;\n}\n.m-sm {\n  margin: 10px;\n}\n.m {\n  margin: 15px;\n}\n.m-md {\n  margin: 20px;\n}\n.m-lg {\n  margin: 30px;\n}\n.m-xl {\n  margin: 50px;\n}\n.m-n {\n  margin: 0 !important;\n}\n.m-l-none {\n  margin-left: 0 !important;\n}\n.m-l-xs {\n  margin-left: 5px;\n}\n.m-l-sm {\n  margin-left: 10px;\n}\n.m-l {\n  margin-left: 15px;\n}\n.m-l-md {\n  margin-left: 20px;\n}\n.m-l-lg {\n  margin-left: 30px;\n}\n.m-l-xl {\n  margin-left: 40px;\n}\n.m-l-xxl {\n  margin-left: 50px;\n}\n.m-l-n-xxs {\n  margin-left: -1px;\n}\n.m-l-n-xs {\n  margin-left: -5px;\n}\n.m-l-n-sm {\n  margin-left: -10px;\n}\n.m-l-n {\n  margin-left: -15px;\n}\n.m-l-n-md {\n  margin-left: -20px;\n}\n.m-l-n-lg {\n  margin-left: -30px;\n}\n.m-l-n-xl {\n  margin-left: -40px;\n}\n.m-l-n-xxl {\n  margin-left: -50px;\n}\n.m-t-none {\n  margin-top: 0 !important;\n}\n.m-t-xxs {\n  margin-top: 1px;\n}\n.m-t-xs {\n  margin-top: 5px;\n}\n.m-t-sm {\n  margin-top: 10px;\n}\n.m-t {\n  margin-top: 15px;\n}\n.m-t-md {\n  margin-top: 20px;\n}\n.m-t-lg {\n  margin-top: 30px;\n}\n.m-t-xl {\n  margin-top: 40px;\n}\n.m-t-xxl {\n  margin-top: 50px;\n}\n.m-t-n-xxs {\n  margin-top: -1px;\n}\n.m-t-n-xs {\n  margin-top: -5px;\n}\n.m-t-n-sm {\n  margin-top: -10px;\n}\n.m-t-n {\n  margin-top: -15px;\n}\n.m-t-n-md {\n  margin-top: -20px;\n}\n.m-t-n-lg {\n  margin-top: -30px;\n}\n.m-t-n-xl {\n  margin-top: -40px;\n}\n.m-t-n-xxl {\n  margin-top: -50px;\n}\n.m-r-none {\n  margin-right: 0 !important;\n}\n.m-r-xxs {\n  margin-right: 1px;\n}\n.m-r-xs {\n  margin-right: 5px;\n}\n.m-r-sm {\n  margin-right: 10px;\n}\n.m-r {\n  margin-right: 15px;\n}\n.m-r-md {\n  margin-right: 20px;\n}\n.m-r-lg {\n  margin-right: 30px;\n}\n.m-r-xl {\n  margin-right: 40px;\n}\n.m-r-xxl {\n  margin-right: 50px;\n}\n.m-r-n-xxs {\n  margin-right: -1px;\n}\n.m-r-n-xs {\n  margin-right: -5px;\n}\n.m-r-n-sm {\n  margin-right: -10px;\n}\n.m-r-n {\n  margin-right: -15px;\n}\n.m-r-n-md {\n  margin-right: -20px;\n}\n.m-r-n-lg {\n  margin-right: -30px;\n}\n.m-r-n-xl {\n  margin-right: -40px;\n}\n.m-r-n-xxl {\n  margin-right: -50px;\n}\n.m-b-none {\n  margin-bottom: 0 !important;\n}\n.m-b-xxs {\n  margin-bottom: 1px;\n}\n.m-b-xs {\n  margin-bottom: 5px;\n}\n.m-b-sm {\n  margin-bottom: 10px;\n}\n.m-b {\n  margin-bottom: 15px;\n}\n.m-b-md {\n  margin-bottom: 20px;\n}\n.m-b-lg {\n  margin-bottom: 30px;\n}\n.m-b-xl {\n  margin-bottom: 40px;\n}\n.m-b-xxl {\n  margin-bottom: 50px;\n}\n.m-b-n-xxs {\n  margin-bottom: -1px;\n}\n.m-b-n-xs {\n  margin-bottom: -5px;\n}\n.m-b-n-sm {\n  margin-bottom: -10px;\n}\n.m-b-n {\n  margin-bottom: -15px;\n}\n.m-b-n-md {\n  margin-bottom: -20px;\n}\n.m-b-n-lg {\n  margin-bottom: -30px;\n}\n.m-b-n-xl {\n  margin-bottom: -40px;\n}\n.m-b-n-xxl {\n  margin-bottom: -50px;\n}\n
\n

内边距

.wrapper-xs {\n  padding: 5px;\n}\n.wrapper-sm {\n  padding: 10px;\n}\n.wrapper {\n  padding: 15px;\n}\n.wrapper-md {\n  padding: 20px;\n}\n.wrapper-lg {\n  padding: 30px;\n}\n.wrapper-xl {\n  padding: 50px;\n}\n.padder-xs {\n  padding-left: 5px;\n  padding-right: 5px;\n}\n.padder-sm {\n  padding-left: 10px;\n  padding-right: 10px;\n}\n.padder-lg {\n  padding-left: 30px;\n  padding-right: 30px;\n}\n.padder-md {\n  padding-left: 20px;\n  padding-right: 20px;\n}\n.padder {\n  padding-left: 15px;\n  padding-right: 15px;\n}\n.padder-v-xs {\n  padding-top: 5px;\n  padding-bottom: 5px;\n}\n.padder-v-sm {\n  padding-top: 10px;\n  padding-bottom: 10px;\n}\n.padder-v-lg {\n  padding-top: 30px;\n  padding-bottom: 30px;\n}\n.padder-v-md {\n  padding-top: 20px;\n  padding-bottom: 20px;\n}\n.padder-v {\n  padding-top: 15px;\n  padding-bottom: 15px;\n}\n.no-padder {\n  padding: 0 !important;\n}\n.pull-in {\n  margin-left: -15px;\n  margin-right: -15px;\n}\n.pull-out {\n  margin: -10px -15px;\n}\n
\n

边框

.b {\n  border: 1px solid rgba(0, 0, 0, 0.05);\n}\n.b-a {\n  border: 1px solid @border-color;\n}\n.b-t {\n  border-top: 1px solid @border-color;\n}\n.b-r {\n  border-right: 1px solid @border-color;\n}\n.b-b {\n  border-bottom: 1px solid @border-color;\n}\n.b-l {\n  border-left: 1px solid @border-color;\n}\n.b-light {\n  border-color: @brand-light;\n}\n.b-dark {\n  border-color: @brand-dark;\n}\n.b-black {\n  border-color: @brand-dark;\n}\n.b-primary {\n  border-color: @brand-primary;\n}\n.b-success {\n  border-color: @brand-success;\n}\n.b-info {\n  border-color: @brand-info;\n}\n.b-warning {\n  border-color: @brand-warning;\n}\n.b-danger {\n  border-color: @brand-danger;\n}\n.b-white {\n  border-color: #fff;\n}\n.b-dashed {\n  border-style: dashed !important;\n}\n.b-l-light {\n  border-left-color: @brand-light;\n}\n.b-l-dark {\n  border-left-color: @brand-dark;\n}\n.b-l-black {\n  border-left-color: @brand-dark;\n}\n.b-l-primary {\n  border-left-color: @brand-primary;\n}\n.b-l-success {\n  border-left-color: @brand-success;\n}\n.b-l-info {\n  border-left-color: @brand-info;\n}\n.b-l-warning {\n  border-left-color: @brand-warning;\n}\n.b-l-danger {\n  border-left-color: @brand-danger;\n}\n.b-l-white {\n  border-left-color: #fff;\n}\n.b-l-2x {\n  border-left-width: 2px;\n}\n.b-l-3x {\n  border-left-width: 3px;\n}\n.b-l-4x {\n  border-left-width: 4px;\n}\n.b-l-5x {\n  border-left-width: 5px;\n}\n.b-2x {\n  border-width: 2px;\n}\n.b-3x {\n  border-width: 3px;\n}\n.b-4x {\n  border-width: 4px;\n}\n.b-5x {\n  border-width: 5px;\n}\n
\n

圆角

.r {\n  border-radius: @border-radius-base @border-radius-base @border-radius-base\n    @border-radius-base;\n}\n.r-2x {\n  border-radius: @border-radius-base * 2;\n}\n.r-3x {\n  border-radius: @border-radius-base * 3;\n}\n.r-l {\n  border-radius: @border-radius-base 0 0 @border-radius-base;\n}\n.r-r {\n  border-radius: 0 @border-radius-base @border-radius-base 0;\n}\n.r-t {\n  border-radius: @border-radius-base @border-radius-base 0 0;\n}\n.r-b {\n  border-radius: 0 0 @border-radius-base @border-radius-base;\n}\n
\n

字体相关

.font-normal {\n  font-weight: normal;\n}\n.font-thin {\n  font-weight: 300;\n}\n.font-bold {\n  font-weight: 700;\n}\n.text-3x {\n  font-size: 3em;\n}\n.text-2x {\n  font-size: 2em;\n}\n.text-lg {\n  font-size: @font-size-lg;\n}\n.text-md {\n  font-size: @font-size-md;\n}\n.text-base {\n  font-size: @font-size-base;\n}\n.text-sm {\n  font-size: @font-size-sm;\n}\n.text-xs {\n  font-size: @font-size-xs;\n}\n.text-xxs {\n  text-indent: -9999px;\n}\n.text-ellipsis {\n  display: block;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.text-u-c {\n  text-transform: uppercase;\n}\n.text-l-t {\n  text-decoration: line-through;\n}\n.text-u-l {\n  text-decoration: underline;\n}\n.text-left {\n  text-align: left;\n}\n.text-center {\n  text-align: center;\n}\n.text-right {\n  text-align: right;\n}\n
\n

定位

.pos-rlt {\n  position: relative;\n}\n.pos-stc {\n  position: static !important;\n}\n.pos-abt {\n  position: absolute;\n}\n.pos-fix {\n  position: fixed;\n}\n
\n

背景

\n
bg-white
\n
bg-dark
\n
bg-info
\n
bg-success
\n
bg-warning
\n
bg-danger
\n
bg-primary
\n
\n
<div class=\"hbox b-a bg-light\">\n  <div class=\"col wrapper-sm b-r bg-white\">bg-white</div>\n  <div class=\"col wrapper-sm b-r bg-dark\">bg-dark</div>\n  <div class=\"col wrapper-sm b-r bg-info\">bg-info</div>\n  <div class=\"col wrapper-sm b-r bg-success\">bg-success</div>\n  <div class=\"col wrapper-sm b-r bg-warning\">bg-warning</div>\n  <div class=\"col wrapper-sm b-r bg-danger\">bg-danger</div>\n  <div class=\"col wrapper-sm bg-primary\">bg-primary</div>\n</div>\n
\n

其他

.show {\n  visibility: visible;\n}\n.line {\n  *width: 100%;\n  height: 2px;\n  margin: 10px 0;\n  font-size: 0;\n  overflow: hidden;\n  background-color: transparent;\n  border-width: 0;\n  border-top: 1px solid @border-color;\n}\n.line-xs {\n  margin: 0;\n}\n.line-lg {\n  margin-top: 15px;\n  margin-bottom: 15px;\n}\n.line-dashed {\n  border-style: dashed;\n  background: transparent;\n}\n.no-line {\n  border-width: 0;\n}\n.no-border,\n.no-borders {\n  border-color: transparent;\n  border-width: 0;\n}\n.no-radius {\n  border-radius: 0;\n}\n.block {\n  display: block;\n}\n.block.hide {\n  display: none;\n}\n.inline {\n  display: inline-block !important;\n}\n.none {\n  display: none;\n}\n.pull-none {\n  float: none;\n}\n.rounded {\n  border-radius: 500px;\n}\n.clear {\n  display: block;\n  overflow: hidden;\n}\n.no-bg {\n  background-color: transparent;\n  color: inherit;\n}\n.no-select {\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "图标", + "fragment": "%E5%9B%BE%E6%A0%87", + "fullPath": "#%E5%9B%BE%E6%A0%87", + "level": 2 + }, + { + "label": "布局", + "fragment": "%E5%B8%83%E5%B1%80", + "fullPath": "#%E5%B8%83%E5%B1%80", + "level": 2 + }, + { + "label": "宽高", + "fragment": "%E5%AE%BD%E9%AB%98", + "fullPath": "#%E5%AE%BD%E9%AB%98", + "level": 2 + }, + { + "label": "外边距", + "fragment": "%E5%A4%96%E8%BE%B9%E8%B7%9D", + "fullPath": "#%E5%A4%96%E8%BE%B9%E8%B7%9D", + "level": 2 + }, + { + "label": "内边距", + "fragment": "%E5%86%85%E8%BE%B9%E8%B7%9D", + "fullPath": "#%E5%86%85%E8%BE%B9%E8%B7%9D", + "level": 2 + }, + { + "label": "边框", + "fragment": "%E8%BE%B9%E6%A1%86", + "fullPath": "#%E8%BE%B9%E6%A1%86", + "level": 2 + }, + { + "label": "圆角", + "fragment": "%E5%9C%86%E8%A7%92", + "fullPath": "#%E5%9C%86%E8%A7%92", + "level": 2 + }, + { + "label": "字体相关", + "fragment": "%E5%AD%97%E4%BD%93%E7%9B%B8%E5%85%B3", + "fullPath": "#%E5%AD%97%E4%BD%93%E7%9B%B8%E5%85%B3", + "level": 2 + }, + { + "label": "定位", + "fragment": "%E5%AE%9A%E4%BD%8D", + "fullPath": "#%E5%AE%9A%E4%BD%8D", + "level": 2 + }, + { + "label": "背景", + "fragment": "%E8%83%8C%E6%99%AF", + "fullPath": "#%E8%83%8C%E6%99%AF", + "level": 2 + }, + { + "label": "其他", + "fragment": "%E5%85%B6%E4%BB%96", + "fullPath": "#%E5%85%B6%E4%BB%96", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/concepts/template.html b/gh-pages/docs/concepts/template.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/concepts/template.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/concepts/template_6fdf01a.js b/gh-pages/docs/concepts/template_6fdf01a.js new file mode 100644 index 000000000..2009cc0c4 --- /dev/null +++ b/gh-pages/docs/concepts/template_6fdf01a.js @@ -0,0 +1,67 @@ +amis.define('docs/concepts/template.md', function(require, exports, module, define) { + + module.exports = { + "title": "模板", + "description": null, + "type": 0, + "group": "💡 概念", + "menuName": "模板", + "icon": null, + "order": 11, + "html": "

为了可以更加灵活渲染文本、数据结构,amis 借鉴其他模板引擎,实现了一套模板渲染功能。

\n

模板字符串

普通文本

配置一段普通文本并输出

\n
\n

文本中获取变量

可以支持在普通文本中,使用数据映射语法:${xxx} 获取数据域中变量的值,如下

\n
\n

更多${xxx}语法相关介绍,移步 数据映射

\n

渲染html

使用数据映射语法:${xxx} 获取数据域中变量的值,并渲染 HTML

\n
\n

JavaScript 模板引擎

amis 还支持用 JavaScript 模板引擎进行组织输出,内部采用 lodash template 进行实现。

\n
\n
\n

注意到了吗?

\n

在 JavaScript 模板引擎中,我们获取数据域变量的方式是data.xxx,而不是之前的${xxx},如果你熟悉 JavaScript 的话,这里模板引擎其实是将数据域,当做当前代码的数据作用域进行执行,因此需要使用data.xxx进行取值

\n

要注意使用模板的时候在不同的场景下要使用正确的取值方式。

\n
\n

仔细看示例不难发现,语法跟 ejs 很像,<% 这里面是 js 语句 %>,所以只要会写 js,做页面渲染没有什么问题。另外以下是一些可用 js 方法。

\n\n

下面 filters 中的方法也可以使用如: <%= date(data.xxx, 'YYYY-MM-DD') %>

\n

注意事项

1. 模板字符串 和 模板引擎 不可以交叉使用

例如:

\n
{\n    \"type\": \"tpl\",\n    \"tpl\": \"${data.xxx === 'a'}\" //错误!\n}\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "模板字符串", + "fragment": "%E6%A8%A1%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2", + "fullPath": "#%E6%A8%A1%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2", + "level": 2, + "children": [ + { + "label": "普通文本", + "fragment": "%E6%99%AE%E9%80%9A%E6%96%87%E6%9C%AC", + "fullPath": "#%E6%99%AE%E9%80%9A%E6%96%87%E6%9C%AC", + "level": 3 + }, + { + "label": "文本中获取变量", + "fragment": "%E6%96%87%E6%9C%AC%E4%B8%AD%E8%8E%B7%E5%8F%96%E5%8F%98%E9%87%8F", + "fullPath": "#%E6%96%87%E6%9C%AC%E4%B8%AD%E8%8E%B7%E5%8F%96%E5%8F%98%E9%87%8F", + "level": 3 + }, + { + "label": "渲染html", + "fragment": "%E6%B8%B2%E6%9F%93html", + "fullPath": "#%E6%B8%B2%E6%9F%93html", + "level": 3 + } + ] + }, + { + "label": "JavaScript 模板引擎", + "fragment": "javascript-%E6%A8%A1%E6%9D%BF%E5%BC%95%E6%93%8E", + "fullPath": "#javascript-%E6%A8%A1%E6%9D%BF%E5%BC%95%E6%93%8E", + "level": 2 + }, + { + "label": "注意事项", + "fragment": "%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9", + "fullPath": "#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9", + "level": 2, + "children": [ + { + "label": "1. 模板字符串 和 模板引擎 不可以交叉使用", + "fragment": "1-%E6%A8%A1%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2-%E5%92%8C-%E6%A8%A1%E6%9D%BF%E5%BC%95%E6%93%8E-%E4%B8%8D%E5%8F%AF%E4%BB%A5%E4%BA%A4%E5%8F%89%E4%BD%BF%E7%94%A8", + "fullPath": "#1-%E6%A8%A1%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2-%E5%92%8C-%E6%A8%A1%E6%9D%BF%E5%BC%95%E6%93%8E-%E4%B8%8D%E5%8F%AF%E4%BB%A5%E4%BA%A4%E5%8F%89%E4%BD%BF%E7%94%A8", + "level": 4 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/custom.html b/gh-pages/docs/custom.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/custom.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/custom_eb35831.js b/gh-pages/docs/custom_eb35831.js deleted file mode 100644 index 392eb45c2..000000000 --- a/gh-pages/docs/custom_eb35831.js +++ /dev/null @@ -1,79 +0,0 @@ -amis.define('docs/custom.md', function(require, exports, module, define) { - - module.exports = { - "title": "定制功能", - "html": "

如果默认的组件不能满足需求,可以通过定制组件来进行扩展,在 amis 中有两种方法:

\n
    \n
  1. 临时扩展,适合无需复用的组件。
  2. \n
  3. 注册自定义类型,适合需要在很多地方复用的组件。
  4. \n
\n
\n

注意,扩展只支持使用 React 组件方式引入的 amis,使用 JSSDK 无法支持

\n
\n

临时扩展

amis 的 JSON 配置最终会转成 React 组件来执行,所以如果只是想在某个配置中加入定制功能,可以直接在这个 JSON 配置里写 React 代码,比如下面这个例子:

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"form\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"label\": \"用户名\",\n        \"name\": \"usename\"\n      },\n      {\n        \"name\": \"mycustom\",\n        \"children\": ({\n          value,\n          onChange\n        }) => (\n          <div>\n            <p>这个是个自定义组件</p>\n            <p>当前值:{value}</p>\n            <a className=\"btn btn-default\" onClick={\n              () => onChange(Math.round(Math.random() * 10000))\n            }>随机修改</a>\n          </div>\n        )\n      }\n    ]\n  }\n}\n
\n

其中的 mycustom 就是一个临时扩展,它的 children 属性是一个函数,它的返回内容和 React 的 Render 方法一样,即 jsx,在这个方法里你可以写任意 JavaScript 来实现自己的定制需求,这个函数有两个参数 valueonChangevalue 就是组件的值,onChange 方法用来改变这个值,比如上面的例子中,点击链接后就会修改 mycustom 为一个随机数,在提交表单的时候就变成了这个随机数。

\n

与之类似的还有个 component 属性,这个属性可以传入 React Component,如果想用 React Hooks,请通过 component 传递,而不是 children

\n

这种扩展方式既简单又灵活,但它是写在配置中的,如果需要在很多地方,可以使用下面的「注册自定义类型」方式:

\n

注册自定义类型

注册自定义类型需要了解 amis 的工作原理。

\n

工作原理

amis 的渲染过程是将 json 转成对应的 React 组件。先通过 json 的 type 找到对应的 Component 然后,然后把其他属性作为 props 传递过去完成渲染。

\n

拿一个表单页面来说,如果用 React 组件开发一般长这样。

\n
<Page title=\"页面标题\" subTitle=\"副标题\">\n  <Form\n    title=\"用户登录\"\n    controls={[\n      {\n        type: 'text',\n        name: 'username',\n        label: '用户名'\n      }\n    ]}\n  />\n</Page>\n
\n

把以上配置方式换成 amis JSON, 则是:

\n
{\n  \"type\": \"page\",\n  \"title\": \"页面标题\",\n  \"subTitle\": \"副标题\",\n  \"body\": {\n    \"type\": \"form\",\n    \"title\": \"用户登录\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"name\": \"username\",\n        \"label\": \"用户名\"\n      }\n    ]\n  }\n}\n
\n

那么,amis 是如何将 JSON 转成组件的呢?直接根据节点的 type 去跟组件一一对应?这样会重名,比如在表格里面展示的类型 text 跟表单里面的 text 是完全不一样的,一个负责展示,一个却负责输入。所以说一个节点要被什么组件渲染,还需要携带上下文(context)信息。

\n

如何携带上下文(context)信息?amis 中是用节点的路径(path)来作为上下文信息。从上面的例子来看,一共有三个节点,path 信息分别是。

\n\n

根据 path 的信息就能很容易注册组件跟节点对应了。

\n

Page 组件的示例代码

\n
@Renderer({\n  test: /^page$/\n  // ... 其他信息隐藏了\n})\nexport class PageRenderer extends React.Component {\n  // ... 其他信息隐藏了\n  render() {\n    const {\n      title,\n      body,\n      render // 用来渲染孩子节点,如果当前是叶子节点则可以忽略。\n    } = this.props;\n    return (\n      <div className=\"page\">\n        <h1>{title}</h1>\n        <div className=\"body-container\">\n          {render('body', body) /*渲染孩子节点*/}\n        </div>\n      </div>\n    );\n  }\n}\n
\n

Form 组件的示例代码

\n
@Renderer({\n  test: /(^|\\/)form$/\n  // ... 其他信息隐藏了\n})\nexport class FormRenderer extends React.Component {\n  // ... 其他信息隐藏了\n  render() {\n    const {\n      title,\n      controls,\n      render // 用来渲染孩子节点,如果当前是叶子节点则可以忽略。\n    } = this.props;\n    return (\n      <form className=\"form\">\n        {controls.map((control, index) => (\n          <div className=\"form-item\" key={index}>\n            {render(`${index}/control`, control)}\n          </div>\n        ))}\n      </form>\n    );\n  }\n}\n
\n

Text 组件的示例代码

\n
@Renderer({\n    test: /(^|\\/)form(?:\\/\\d+)?\\/control(?\\/\\d+)?\\/text$/\n    // ... 其他信息隐藏了\n})\nexport class FormItemTextRenderer extends React.Component {\n    // ... 其他信息隐藏了\n    render() {\n        const {\n            label,\n            name,\n            onChange\n        } = this.props;\n        return (\n            <div className=\"form-group\">\n                <label>{label}<label>\n                <input type=\"text\" onChange={(e) => onChange(e.currentTarget.value)} />\n            </div>\n        );\n    }\n}\n
\n

那么渲染过程就是根据节点 path 信息,跟组件池中的组件 test (检测) 信息做匹配,如果命中,则把当前节点转给对应组件渲染,节点中其他属性将作为目标组件的 props。需要注意的是,如果是容器组件,比如以上例子中的 page 组件,从 props 中拿到的 body 是一个子节点,由于节点类型是不固定,由使用者决定,所以不能直接完成渲染,所以交给属性中下发的 render 方法去完成渲染,{render('body', body)},他的工作就是拿子节点的 path 信息去组件池里面找到对应的渲染器,然后交给对应组件去完成渲染。

\n

编写自定义组件

了解了基本原理后,来看个简单的例子:

\n
import * as React from 'react';\nimport {Renderer} from 'amis';\n\n@Renderer({\n  test: /(^|\\/)my\\-renderer$/\n})\nclass CustomRenderer extends React.Component {\n  render() {\n    const {tip} = this.props;\n    return <div>这是自定义组件:{tip}</div>;\n  }\n}\n
\n

有了以上这段代码后,就可以这样使用了。

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"my-renderer\",\n    \"tip\": \"简单示例\"\n  }\n}\n
\n

看了前面amis 工作原理应该不难理解,这里注册一个 React 组件,当节点的 path 信息是 my-renderer 结尾时,交给当前组件来完成渲染。

\n

如果这个组件还能通过 children 属性添加子节点,则需要使用下面这种写法:

\n
import * as React from 'react';\nimport {Renderer} from 'amis';\n\n@Renderer({\n  test: /(^|\\/)my\\-renderer2$/\n})\nclass CustomRenderer extends React.Component {\n  render() {\n    const {tip, body, render} = this.props;\n    return (\n      <div>\n        <p>这是自定义组件:{tip}</p>\n        {body ? (\n          <div className=\"container\">\n            {render('body', body, {\n              // 这里的信息会作为 props 传递给子组件,一般情况下都不需要这个\n            })}\n          </div>\n        ) : null}\n      </div>\n    );\n  }\n}\n
\n

有了以上这段代码后,就可以这样使用了。

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"my-renderer2\",\n    \"tip\": \"简单示例\",\n    \"body\": {\n      \"type\": \"form\",\n      \"controls\": [\n        {\n          \"type\": \"text\",\n          \"label\": \"用户名\",\n          \"name\": \"usename\"\n        }\n      ]\n    }\n  }\n}\n
\n

跟第一个列子不同的地方是,这里多了个 render 方法,这个方法就是专门用来渲染子节点的。来看下参数说明:

\n\n

表单项的扩展

以上是普通渲染器的注册方式,如果是表单项,为了更简单的扩充,请使用 FormItem 注解,而不是 Renderer。 原因是如果用 FormItem 是不用关心:label 怎么摆,表单验证器怎么实现,如何适配表单的 3 中展现方式(水平、上下和内联模式),而只用关心:有了值后如何回显,响应用户交互设置新值。

\n
import * as React from 'react';\nimport {FormItem} from 'amis';\n\n@FormItem({\n  type: 'custom'\n})\nclass MyFormItem extends React.Component {\n  render() {\n    const {value, onChange} = this.props;\n\n    return (\n      <div>\n        <p>这个是个自定义组件</p>\n        <p>当前值:{value}</p>\n        <a\n          className=\"btn btn-default\"\n          onClick={() => onChange(Math.round(Math.random() * 10000))}\n        >\n          随机修改\n        </a>\n      </div>\n    );\n  }\n}\n
\n

有了以上这段代码后,就可以这样使用了。

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"form\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"label\": \"用户名\",\n        \"name\": \"usename\"\n      },\n\n      {\n        \"type\": \"custom\",\n        \"label\": \"随机值\",\n        \"name\": \"random\"\n      }\n    ]\n  }\n}\n
\n
\n

注意: 使用 FormItem 默认是严格模式,即只有必要的属性变化才会重新渲染,有可能满足不了你的需求,如果忽略性能问题,可以传入 strictMode: false 来关闭。

\n
\n

表单项开发主要关心两件事。

\n
    \n
  1. 呈现当前值。如以上例子,通过 this.props.value 判定如果勾选了则显示已勾选,否则显示请勾选
  2. \n
  3. 接收用户交互,通过 this.props.onChange 修改表单项值。如以上例子,当用户点击按钮时,切换当前选中的值。
  4. \n
\n

至于其他功能如:label/description 的展示、表单验证功能、表单布局(常规、左右或者内联)等等,只要是通过 FormItem 注册进去的都无需自己实现。

\n

需要注意,获取或者修改的是什么值跟配置中 type 并列的 name 属性有关,也就是说直接关联某个变量,自定义中直接通过 props 下发了某个指定变量的值和修改的方法。如果你想获取其他数据,或者设置其他数据可以看下以下说明:

\n\n

其它高级定制

下面是一些不太常用的 amis 扩展方式及技巧。

\n

自定义验证器

如果 amis 自带的验证能满足需求了,则不需要关心。组件可以有自己的验证逻辑。

\n
import * as React from 'react';\nimport {FormItem} from 'amis';\nimport * as cx from 'classnames';\n\n@FormItem({\n  type: 'custom-checkbox'\n})\nexport default class CustomCheckbox extends React.Component {\n  validate() {\n    // 通过 this.props.value 可以知道当前值。\n\n    return isValid ? '' : '不合法,说明不合法原因。';\n  }\n  // ... 其他省略了\n}\n
\n

上面的栗子只是简单说明,另外可以做异步验证,validate 方法可以返回一个 promise。

\n

OptionsControl

如果你的表单组件性质和 amis 的 Select、Checkboxes、List 差不多,用户配置配置 source 可通过 API 拉取选项,你可以用 OptionsControl 取代 FormItem 这个注解。

\n

用法是一样,功能方面主要多了以下功能。

\n\n

组件间通信

关于组件间通信,amis 中有个机制就是,把需要被引用的组件设置一个 name 值,然后其他组件就可以通过这个 name 与其通信,比如这个栗子。其实内部是依赖于内部的一个 Scoped Context。你的组件希望可以被别的组件引用,你需要把自己注册进去,默认自定义的非表单类组件并没有把自己注册进去,可以参考以下代码做添加。

\n
import * as React from 'react';\nimport {Renderer, ScopedContext} from 'amis';\n@Renderer({\n  test: /(?:^|\\/)my\\-renderer$/\n})\nexport class CustomRenderer extends React.Component {\n  static contextType = ScopedContext;\n\n  componentWillMount() {\n    const scoped = this.context;\n    scoped.registerComponent(this);\n  }\n\n  componentWillUnmount() {\n    const scoped = this.context;\n    scoped.unRegisterComponent(this);\n  }\n\n  // 其他部分省略了。\n}\n
\n

把自己注册进去了,其他组件就能引用到了。同时,如果你想找别的组件,也同样是通过 scoped 这个 context,如: scoped.getComponentByName("xxxName") 这样就能拿到目标组件的实例了(前提是目标组件已经配置了 name 为 xxxName)。

\n

其他功能方法

自定义的渲染器 props 会下发一个非常有用的 env 对象。这个 env 有以下功能方法。

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/custom.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "临时扩展", - "fragment": "%E4%B8%B4%E6%97%B6%E6%89%A9%E5%B1%95", - "fullPath": "#%E4%B8%B4%E6%97%B6%E6%89%A9%E5%B1%95", - "level": 2 - }, - { - "label": "注册自定义类型", - "fragment": "%E6%B3%A8%E5%86%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B", - "fullPath": "#%E6%B3%A8%E5%86%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B", - "level": 2, - "children": [ - { - "label": "工作原理", - "fragment": "%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86", - "fullPath": "#%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86", - "level": 3 - }, - { - "label": "编写自定义组件", - "fragment": "%E7%BC%96%E5%86%99%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6", - "fullPath": "#%E7%BC%96%E5%86%99%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6", - "level": 3 - }, - { - "label": "表单项的扩展", - "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E7%9A%84%E6%89%A9%E5%B1%95", - "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E7%9A%84%E6%89%A9%E5%B1%95", - "level": 3 - }, - { - "label": "其它高级定制", - "fragment": "%E5%85%B6%E5%AE%83%E9%AB%98%E7%BA%A7%E5%AE%9A%E5%88%B6", - "fullPath": "#%E5%85%B6%E5%AE%83%E9%AB%98%E7%BA%A7%E5%AE%9A%E5%88%B6", - "level": 3, - "children": [ - { - "label": "自定义验证器", - "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89%E9%AA%8C%E8%AF%81%E5%99%A8", - "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%AA%8C%E8%AF%81%E5%99%A8", - "level": 4 - }, - { - "label": "OptionsControl", - "fragment": "optionscontrol", - "fullPath": "#optionscontrol", - "level": 4 - }, - { - "label": "组件间通信", - "fragment": "%E7%BB%84%E4%BB%B6%E9%97%B4%E9%80%9A%E4%BF%A1", - "fullPath": "#%E7%BB%84%E4%BB%B6%E9%97%B4%E9%80%9A%E4%BF%A1", - "level": 4 - }, - { - "label": "其他功能方法", - "fragment": "%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD%E6%96%B9%E6%B3%95", - "fullPath": "#%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD%E6%96%B9%E6%B3%95", - "level": 4 - } - ] - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/getting-started.html b/gh-pages/docs/getting-started.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/getting-started.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/getting_started_bd3ac9e.js b/gh-pages/docs/getting_started_bd3ac9e.js deleted file mode 100644 index 4fdb84314..000000000 --- a/gh-pages/docs/getting_started_bd3ac9e.js +++ /dev/null @@ -1,41 +0,0 @@ -amis.define('docs/getting_started.md', function(require, exports, module, define) { - - module.exports = { - "title": "快速开始", - "html": "

有两种方式使用 amis:

\n
    \n
  1. React 组件,可以整合到 React 项目中,适合熟悉 React 的开发者,可以开发自定义组件进行扩展
  2. \n
  3. JSSDK,可以放到任意页面中使用,能使用 amis 内置的渲染组件,但无法开发自定义组件,适合不使用 React 的项目或不熟悉前端的开发者。
  4. \n
\n

React 组件

安装依赖

直接通过 npm 安装即可。

\n
npm i amis\n

整合到 React 组件中

可以在 React Component 这么使用(TypeScript)。

\n
import * as React from 'react';\nimport {\n    render as renderAmis\n} from 'amis';\n\nclass MyComponent extends React.Component<any, any> {\n    render() {\n        return (\n            <div>\n                <p>通过 amis 渲染页面</p>\n                {renderAmis({\n                    // schema\n                    // 这里是 amis 的 Json 配置。\n                    type: 'page',\n                    title: '简单页面',\n                    body: '内容'\n                }, {\n                    // props\n                }, {\n                    // env\n                    // 这些是 amis 需要的一些接口实现\n                    // 可以参考本项目里面的 Demo 部分代码。\n\n                    updateLocation: (location:string/*目标地址*/, replace:boolean/*是replace,还是push?*/) => {\n                        // 用来更新地址栏\n                    },\n\n                    jumpTo: (location:string/*目标地址*/) => {\n                        // 页面跳转, actionType:  link、url 都会进来。\n                    },\n\n                    fetcher: ({\n                        url,\n                        method,\n                        data,\n                        config\n                    }:{\n                        url:string/*目标地址*/,\n                        method:'get' | 'post' | 'put' | 'delete'/*发送方式*/,\n                        data: object | void/*数据*/,\n                        config: object/*其他配置*/\n                    }) => {\n                        // 用来发送 Ajax 请求,建议使用 axios\n                    },\n                    notify: (type:'error'|'success'/**/, msg:string/*提示内容*/) => {\n                        // 用来提示用户\n                    },\n                    alert: (content:string/*提示信息*/) => {\n                        // 另外一种提示,可以直接用系统框\n                    },\n                    confirm: (content:string/*提示信息*/) => {\n                        // 确认框。\n                    }\n                });}\n            </div>\n        );\n    }\n}\n
\n

(schema:Schema, props?:any, env?: any) => JSX.Element

\n

参数说明:

\n\n

JSSDK

JSSDK 适合对前端或 React 不了解的开发者,它不依赖 npm 及 webpack,直接引入代码就能使用,但需要注意这种方式不支持定制组件,只能使用 amis 内置的组件。

\n

JSSDK 的代码从以下地址获取:

\n\n

然后在页面中插入下面的代码就能渲染出来了:

\n
(function () {\n  var amis = amisRequire('amis/embed');\n  amis.embed(\n    '#container',\n    {\n      type: 'page',\n      title: 'AMIS Demo',\n      body: 'This is a simple amis page.'\n    },\n    {\n      // props 一般不用传。\n    },\n    {\n      // env\n      fetcher: () => {\n        // 可以不传,用来实现 ajax 请求\n      },\n\n      jumpTo: () => {\n        // 可以不传,用来实现页面跳转\n      },\n\n      updateLocation: () => {\n        // 可以不传,用来实现地址栏更新\n      },\n\n      isCurrentUrl: () => {\n        // 可以不传,用来判断是否目标地址当前地址。\n      },\n\n      copy: () => {\n        // 可以不传,用来实现复制到剪切板\n      },\n\n      notify: () => {\n        // 可以不传,用来实现通知\n      },\n\n      alert: () => {\n        // 可以不传,用来实现提示\n      },\n\n      confirm: () => {\n        // 可以不传,用来实现确认框。\n      }\n    }\n  );\n})();\n
\n

注意:以上的 SDK 地址是一个页面跳转,会跳转到一个 CDN 地址,而且每次跳转都是最新的版本,随着 amis 的升级这个地址会一直变动,如果你的页面已经完成功能回归,请直接使用某个固定地址,这样才不会因为 amis 升级而导致你的页面不可用。

\n

另外,sdk 代码也伴随 npm 一起发布了,不使用 CDN 版本,直接替换成 npm 包里面的 amis/sdk.jsamis/sdk.css 即可。

\n

完整示例:

\n
<!DOCTYPE html>\n<html lang=\"zh\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <title>AMIS Demo</title>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n    <meta\n      name=\"viewport\"\n      content=\"width=device-width, initial-scale=1, maximum-scale=1\"\n    />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\n    <link rel=\"stylesheet\" href=\"amis/sdk.css\" />\n    <style>\n      html,\n      body,\n      .app-wrapper {\n        position: relative;\n        width: 100%;\n        height: 100%;\n        margin: 0;\n        padding: 0;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"root\" class=\"app-wrapper\"></div>\n    <script src=\"amis/sdk.js\"></script>\n    <script type=\"text/javascript\">\n      (function () {\n        var amis = amisRequire('amis/embed');\n        amis.embed('#root', {\n          type: 'page',\n          title: 'AMIS Demo',\n          body: 'hello world'\n        });\n      })();\n    </script>\n  </body>\n</html>\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/getting_started.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "React 组件", - "fragment": "react-%E7%BB%84%E4%BB%B6", - "fullPath": "#react-%E7%BB%84%E4%BB%B6", - "level": 2, - "children": [ - { - "label": "安装依赖", - "fragment": "%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96", - "fullPath": "#%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96", - "level": 3 - }, - { - "label": "整合到 React 组件中", - "fragment": "%E6%95%B4%E5%90%88%E5%88%B0-react-%E7%BB%84%E4%BB%B6%E4%B8%AD", - "fullPath": "#%E6%95%B4%E5%90%88%E5%88%B0-react-%E7%BB%84%E4%BB%B6%E4%B8%AD", - "level": 3 - } - ] - }, - { - "label": "JSSDK", - "fragment": "jssdk", - "fullPath": "#jssdk", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/index.html b/gh-pages/docs/index.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/index.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/index_aa0b5b1.js b/gh-pages/docs/index_aa0b5b1.js new file mode 100644 index 000000000..8e0d14946 --- /dev/null +++ b/gh-pages/docs/index_aa0b5b1.js @@ -0,0 +1,63 @@ +amis.define('docs/index.md', function(require, exports, module, define) { + + module.exports = { + "title": "介绍", + "description": "ddsaad", + "type": 0, + "group": "💡 概念", + "menuName": "介绍", + "icon": null, + "order": 8, + "html": "

什么是 amis

amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可以节省页面开发工作量,极大提升开发前端页面的效率。

\n

为什么要做 amis?🤔

在经历了十几年的发展后,前端开发变得越来越复杂,门槛也越来越高,要使用当下流行的 UI 组件库,你必须懂 npm、webpack、react/vue,必须熟悉 ES 6 语法,最好还了解状态管理(比如 Redux),如果没接触过函数式编程,一开始入门就很困难,而它还有巨大的 生态,相关的库有 2347 个。

\n

然而前端技术的发展不会停滞,等学完这些后可能会发现大家都用 Hooks 了、某个打包工具取代 Webpack 了。。。

\n

而有时候你只是为了做个普通的增删改查界面,用于系统管理,类似下面这种:

\n
\n

这个界面虽然用 Bootstrap 也能快速搭起来,但要想体验好就需要加很多细节功能,比如:

\n\n

然而上面也看到了,在 amis 里只需要 150 行 JSON 配置(嘿,其中 40 多行只有一个括号),你不需要了解 React/Vue、Webpack,甚至不需要了解 JavaScript,即便没学过 amis 也能猜到大部分配置的作用,只需要简单配置就能完成所有页面开发

\n

这正是建立 amis 的初衷,我们认为:对于大部分常用页面,应该使用最简单的方法来实现,而不是越来越复杂。

\n

用 JSON 写页面有什么好处 ❓

为了实现用最简单方式来生成大部分页面,amis 的解决方案是基于 JSON 来配置,它的独特好处是:

\n\n
\n

JSON 是一种轻量级的数据交换格式,简洁和清晰的层次结构使得它成为理想的数据交换语言。它易于人阅读和编写,同时也易于机器解析和生成,能够有效地提升网络传输效率。

\n

更多关于 JSON 的知识,可以阅读百度百科

\n
\n

amis 的其它亮点 ✨

\n

amis 不适合做什么?😶

使用 JSON 有优点但也有明显缺点,在以下场合并不适合 amis:

\n\n

阅读建议 👆

\n

让我们马上开始吧!

点击页面底部的下一篇,继续后续部分的阅读。

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "什么是 amis", + "fragment": "%E4%BB%80%E4%B9%88%E6%98%AF-amis", + "fullPath": "#%E4%BB%80%E4%B9%88%E6%98%AF-amis", + "level": 2 + }, + { + "label": "为什么要做 amis?🤔", + "fragment": "%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%81%9A-amis-", + "fullPath": "#%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%81%9A-amis-", + "level": 2 + }, + { + "label": "用 JSON 写页面有什么好处 ❓", + "fragment": "%E7%94%A8-json-%E5%86%99%E9%A1%B5%E9%9D%A2%E6%9C%89%E4%BB%80%E4%B9%88%E5%A5%BD%E5%A4%84-", + "fullPath": "#%E7%94%A8-json-%E5%86%99%E9%A1%B5%E9%9D%A2%E6%9C%89%E4%BB%80%E4%B9%88%E5%A5%BD%E5%A4%84-", + "level": 2 + }, + { + "label": "amis 的其它亮点 ✨", + "fragment": "amis-%E7%9A%84%E5%85%B6%E5%AE%83%E4%BA%AE%E7%82%B9-", + "fullPath": "#amis-%E7%9A%84%E5%85%B6%E5%AE%83%E4%BA%AE%E7%82%B9-", + "level": 2 + }, + { + "label": "amis 不适合做什么?😶", + "fragment": "amis-%E4%B8%8D%E9%80%82%E5%90%88%E5%81%9A%E4%BB%80%E4%B9%88-", + "fullPath": "#amis-%E4%B8%8D%E9%80%82%E5%90%88%E5%81%9A%E4%BB%80%E4%B9%88-", + "level": 2 + }, + { + "label": "阅读建议 👆", + "fragment": "%E9%98%85%E8%AF%BB%E5%BB%BA%E8%AE%AE-", + "fullPath": "#%E9%98%85%E8%AF%BB%E5%BB%BA%E8%AE%AE-", + "level": 2 + }, + { + "label": "让我们马上开始吧!", + "fragment": "%E8%AE%A9%E6%88%91%E4%BB%AC%E9%A9%AC%E4%B8%8A%E5%BC%80%E5%A7%8B%E5%90%A7-", + "fullPath": "#%E8%AE%A9%E6%88%91%E4%BB%AC%E9%A9%AC%E4%B8%8A%E5%BC%80%E5%A7%8B%E5%90%A7-", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/intro.html b/gh-pages/docs/intro.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/intro.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/intro_ac33587.js b/gh-pages/docs/intro_ac33587.js deleted file mode 100644 index 95ea35036..000000000 --- a/gh-pages/docs/intro_ac33587.js +++ /dev/null @@ -1,46 +0,0 @@ -amis.define('docs/intro.md', function(require, exports, module, define) { - - module.exports = { - "title": "AMIS 是什么?", - "shortname": "intro", - "html": "

amis 是一个前端低代码框架,它使用 JSON 配置来生成页面,可以极大节省页面开发工作量,极大提升开发前端界面的效率。

\n

为什么要做 amis?

在经历了十几年的发展后,前端开发变得越来越复杂,门槛也越来越高,要使用当下流行的 UI 组件库,你必须懂 npm、webpack、react/vue,必须熟悉 ES 6 语法,最好还了解状态管理,比如 Redux,如果没接触过函数式编程,一开始入门就很困难,而它还有巨大的生态,相关的库有 2347 个,然而前端技术的发展不会停滞,等学完这些后可能会发现大家都用 Hooks 了、某个打包工具取代 WebPack 了。。。

\n

而有时候你只是为了做个普通的增删改查界面,用于系统管理,类似下面这种:

\n
\n

这个界面虽然用 Bootstrap 也能快速搭起来,但要想体验好就需要加很多细节功能,比如数据动态加载、编辑单行数据、批量删除和修改、查询某列、按某列排序、隐藏某列、开启整页内容拖拽排序、表格有分页(页数还会同步到地址栏,刷新页面试试)、如果往下拖动还有首行冻结来方便查看表头等,全部实现这些需要大量的代码。

\n

然而上面也看到了,在 amis 里只需要 150 行 JSON 配置(嘿,其中 40 多行只有一个括号),你不需要了解 React/Vue、Webpack,甚至不需要了解 JavaScript,即便没学过 amis 也能猜到大部分配置的作用,只需要简单配置就能完成所有页面开发,这正是建立 amis 的初衷,我们认为对于大部分常用页面,应该使用最简单的方法来实现,而不是越来越复杂。

\n

用 JSON 写页面有什么好处?

为了实现用最简单方式来生成大部分页面,amis 的解决方案是基于 JSON 来配置,它的独特好处是:

\n\n

amis 的其它亮点

\n

amis 不适合做什么?

使用 JSON 有优点但也有明显缺点,在以下场合并不适合 amis:

\n\n

接下来

请阅读快速开始来学习如何使用 amis。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/intro.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "为什么要做 amis?", - "fragment": "%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%81%9A-amis-", - "fullPath": "#%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%81%9A-amis-", - "level": 2 - }, - { - "label": "用 JSON 写页面有什么好处?", - "fragment": "%E7%94%A8-json-%E5%86%99%E9%A1%B5%E9%9D%A2%E6%9C%89%E4%BB%80%E4%B9%88%E5%A5%BD%E5%A4%84-", - "fullPath": "#%E7%94%A8-json-%E5%86%99%E9%A1%B5%E9%9D%A2%E6%9C%89%E4%BB%80%E4%B9%88%E5%A5%BD%E5%A4%84-", - "level": 2 - }, - { - "label": "amis 的其它亮点", - "fragment": "amis-%E7%9A%84%E5%85%B6%E5%AE%83%E4%BA%AE%E7%82%B9", - "fullPath": "#amis-%E7%9A%84%E5%85%B6%E5%AE%83%E4%BA%AE%E7%82%B9", - "level": 2 - }, - { - "label": "amis 不适合做什么?", - "fragment": "amis-%E4%B8%8D%E9%80%82%E5%90%88%E5%81%9A%E4%BB%80%E4%B9%88-", - "fullPath": "#amis-%E4%B8%8D%E9%80%82%E5%90%88%E5%81%9A%E4%BB%80%E4%B9%88-", - "level": 2 - }, - { - "label": "接下来", - "fragment": "%E6%8E%A5%E4%B8%8B%E6%9D%A5", - "fullPath": "#%E6%8E%A5%E4%B8%8B%E6%9D%A5", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers.html b/gh-pages/docs/renderers.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Action.html b/gh-pages/docs/renderers/Action.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Action.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Action_083821d.js b/gh-pages/docs/renderers/Action_083821d.js deleted file mode 100644 index 88c65d4cd..000000000 --- a/gh-pages/docs/renderers/Action_083821d.js +++ /dev/null @@ -1,76 +0,0 @@ -amis.define('docs/renderers/Action.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Action

Action 是一种特殊的渲染器,它本身是一个按钮,同时它能触发事件。

\n
\n

除了能弹框,它还能设定很多行为比如:提交表单、发送 ajax、页面跳转、关闭弹框、复制文本等等。

\n

通用配置项

所有actionType都支持的通用配置项

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringaction指定为 Action 渲染器,也可以是 buttonsubmitreset
actionTypestring-【必填】这是 action 最核心的配置,来指定该 action 的作用类型,支持:ajaxlinkurldrawerdialogconfirmcancelprevnextcopyclose
labelstring-按钮文本。可用 ${xxx} 取值。
levelstringdefault按钮样式,支持:linkprimarysecondaryinfosuccesswarningdangerlightdarkdefault
sizestring-按钮大小,支持:xssmmdlg
iconstring-设置图标,例如fa fa-plus
iconClassNamestring-给图标上添加类名。
activeboolean-按钮是否高亮。
activeLevelstring-按钮高亮时的样式,配置支持同level
activeClassNamestringis-active给按钮高亮添加类名。
blockboolean-display:"block"来显示按钮。
confirmTextstring-当设置后,操作在开始前会询问用户。可用 ${xxx} 取值。
reloadstring-指定此次操作完后,需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
tooltipstring-鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
disabledTipstring-被禁用后鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
tooltipPlacementstringtop如果配置了tooltip或者disabledTip,指定提示信息位置,可配置topbottomleftright
closebooleanstring-action配置在dialogdraweractions中时,配置为true指定此次操作完后关闭当前dialogdrawer。 也可以配置字符串,指定此次操作完后需要关闭的dialog或者drawername值(在弹框或抽屉上配置 name 属性),多个请用,号隔开
requiredArray<string>-配置字符串数组,指定在form中进行操作之前,需要指定的字段名的表单项通过验证
\n

下面会分别介绍每种类型的 Action 配置项

\n

ajax

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringajax发送请求
apistringApiObject-请求地址,参考 api 格式说明。
redirectstring-指定当前请求结束后跳转的路径,可用 ${xxx} 取值。
feedbackDialogObject-如果 ajax 类型的,当 ajax 返回正常后,还能接着弹出一个 dialog 做其他交互。返回的数据可用于这个 dialog 中。格式可参考Dialog
feedback.visibleOnstring-可以用来配置 feedback 弹框出现的条件。
feedback.skipRestOnCancelboolean-如果配置了,在 feedback 弹窗里面,如果用户点了取消,那么这个按钮的其他动作也不做了。
messagesobject-success:ajax 操作成功后提示,可以不指定,不指定时以 api 返回为准。failed:ajax 操作失败提示。
\n
\n

link

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringlink单页跳转
linkstringlink用来指定跳转地址,跟 url 不同的是,这是单页跳转方式,不会渲染浏览器,请指定 amis 平台内的页面。可用 ${xxx} 取值。
\n
\n

url

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringurl页面跳转
urlstring-按钮点击后,会打开指定页面。可用 ${xxx} 取值。
blankbooleanfalse如果为 true 将在新 tab 页面打开。
\n
\n

注意:由于 amis 平台内 http 地址会被替换成 proxy 地址,所以在 amis 平台内使用请加上 raw: 作为前缀。 比如:raw:http://www.baidu.com

\n

dialog

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdialog点击后显示一个弹出框
dialogstringDialogObject-指定弹框内容,格式可参考Dialog
nextConditionboolean-可以用来设置下一条数据的条件,默认为 true
\n
\n

drawer

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdrawer点击后显示一个侧边栏
drawerstringDrawerObject-指定弹框内容,格式可参考Drawer
\n
\n

copy

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringcopy复制一段内容到粘贴板
contentstring-指定复制的内容。可用 ${xxx} 取值。
\n

reload

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringreload刷新目标组件
targetstring-需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
\n

add

该 actionType 为FormItem-Table专用

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringadd给指定FormItem-Table添加一条数据,
targetstring-指定FormItem-Table的名字(Tablename值),多个请用 , 号隔开。
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Action.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Action", - "fragment": "action", - "fullPath": "#action", - "level": 2, - "children": [ - { - "label": "通用配置项", - "fragment": "%E9%80%9A%E7%94%A8%E9%85%8D%E7%BD%AE%E9%A1%B9", - "fullPath": "#%E9%80%9A%E7%94%A8%E9%85%8D%E7%BD%AE%E9%A1%B9", - "level": 3 - }, - { - "label": "ajax", - "fragment": "ajax", - "fullPath": "#ajax", - "level": 3 - }, - { - "label": "link", - "fragment": "link", - "fullPath": "#link", - "level": 3 - }, - { - "label": "url", - "fragment": "url", - "fullPath": "#url", - "level": 3 - }, - { - "label": "dialog", - "fragment": "dialog", - "fullPath": "#dialog", - "level": 3 - }, - { - "label": "drawer", - "fragment": "drawer", - "fullPath": "#drawer", - "level": 3 - }, - { - "label": "copy", - "fragment": "copy", - "fullPath": "#copy", - "level": 3 - }, - { - "label": "reload", - "fragment": "reload", - "fullPath": "#reload", - "level": 3 - }, - { - "label": "add", - "fragment": "add", - "fullPath": "#add", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Alert.html b/gh-pages/docs/renderers/Alert.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Alert.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Alert_54cb1d4.js b/gh-pages/docs/renderers/Alert_54cb1d4.js deleted file mode 100644 index f49d0b03b..000000000 --- a/gh-pages/docs/renderers/Alert_54cb1d4.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Alert.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Alert

用来做文字特殊提示,分为四类:提示类、成功类、警告类和危险类。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"alert"指定为 alert 渲染器
classNamestring外层 Dom 的类名
levelstringinfo级别,可以是:infosuccesswarning 或者 danger
showCloseButtonbooleanfalse是否显示关闭按钮
\n
\n

可结合 visibleOn 用来做错误信息提示。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Alert.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Alert", - "fragment": "alert", - "fullPath": "#alert", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Audio.html b/gh-pages/docs/renderers/Audio.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Audio.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Audio_5aebb11.js b/gh-pages/docs/renderers/Audio_5aebb11.js deleted file mode 100644 index d4102ea2f..000000000 --- a/gh-pages/docs/renderers/Audio_5aebb11.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Audio.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Audio

音频播放器

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"audio"指定为 audio 渲染器
classNamestring外层 Dom 的类名
inlinebooleantrue是否是内联模式
srcstring音频地址
loopbooleanfalse是否循环播放
autoPlaybooleanfalse是否自动播放
ratesarray[]可配置音频播放倍速如:[1.0, 1.5, 2.0]
controlsarray['rates', 'play', 'time', 'process', 'volume']内部模块定制化
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Audio.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Audio", - "fragment": "audio", - "fullPath": "#audio", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/ButtonGroup.html b/gh-pages/docs/renderers/ButtonGroup.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/ButtonGroup.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/ButtonGroup_0227900.js b/gh-pages/docs/renderers/ButtonGroup_0227900.js deleted file mode 100644 index e1dbfc388..000000000 --- a/gh-pages/docs/renderers/ButtonGroup_0227900.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/ButtonGroup.md', function(require, exports, module, define) { - - module.exports = { - "html": "

ButtonGroup

按钮集合。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/ButtonGroup.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "ButtonGroup", - "fragment": "buttongroup", - "fullPath": "#buttongroup", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/CRUD-Cards.html b/gh-pages/docs/renderers/CRUD-Cards.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/CRUD-Cards.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/CRUD-Cards_62597ee.js b/gh-pages/docs/renderers/CRUD-Cards_62597ee.js deleted file mode 100644 index bde7ed438..000000000 --- a/gh-pages/docs/renderers/CRUD-Cards_62597ee.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/CRUD-Cards.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Cards(CRUD)

请参考Cards

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/CRUD-Cards.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Cards(CRUD)", - "fragment": "cards-crud-", - "fullPath": "#cards-crud-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/CRUD-List.html b/gh-pages/docs/renderers/CRUD-List.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/CRUD-List.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/CRUD-List_ec4d0a4.js b/gh-pages/docs/renderers/CRUD-List_ec4d0a4.js deleted file mode 100644 index b627a9c0c..000000000 --- a/gh-pages/docs/renderers/CRUD-List_ec4d0a4.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/CRUD-List.md', function(require, exports, module, define) { - - module.exports = { - "html": "

List(CRUD)

请参考List

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/CRUD-List.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "List(CRUD)", - "fragment": "list-crud-", - "fullPath": "#list-crud-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/CRUD-Table.html b/gh-pages/docs/renderers/CRUD-Table.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/CRUD-Table.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/CRUD-Table_be9310a.js b/gh-pages/docs/renderers/CRUD-Table_be9310a.js deleted file mode 100644 index 429ca39e7..000000000 --- a/gh-pages/docs/renderers/CRUD-Table_be9310a.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/CRUD-Table.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Table(CRUD)

在 CRUD 中的 Table 主要增加了 Column 里面的以下配置功能,更多参数,请参考Table

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/CRUD-Table.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Table(CRUD)", - "fragment": "table-crud-", - "fullPath": "#table-crud-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/CRUD.html b/gh-pages/docs/renderers/CRUD.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/CRUD.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/CRUD_4a3a17a.js b/gh-pages/docs/renderers/CRUD_4a3a17a.js deleted file mode 100644 index 5fd5378d8..000000000 --- a/gh-pages/docs/renderers/CRUD_4a3a17a.js +++ /dev/null @@ -1,72 +0,0 @@ -amis.define('docs/renderers/CRUD.md', function(require, exports, module, define) { - - module.exports = { - "html": "

CRUD

增删改查模型,主要用来展现列表,并支持各类【增】【删】【改】【查】的操作。

\n

CRUD 支持三种模式:tablecardslist,默认为 table

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringtype 指定为 CRUD 渲染器
modestring"table""table" 、 "cards" 或者 "list"
titlestring""可设置成空,当设置成空时,没有标题栏
classNamestring表格外层 Dom 的类名
apiApiCRUD 用来获取列表数据的 api。
loadDataOnceboolean是否一次性加载所有数据(前端分页)
loadDataOnceFetchOnFilterbooleantrue在开启 loadDataOnce 时,filter 时是否去重新请求 api
sourcestring数据映射接口返回某字段的值,不设置会默认把接口返回的items或者rows填充进mode区域
filterForm设置过滤器,当该表单提交后,会把数据带给当前 mode 刷新列表。
filterTogglablebooleanfalse是否可显隐过滤器
filterDefaultVisiblebooleantrue设置过滤器默认是否可见。
initFetchbooleantrue是否初始化的时候拉取数据, 只针对有 filter 的情况, 没有 filter 初始都会拉取数据
intervalnumber3000刷新时间(最低 3000),单位是毫秒
silentPollingbooleanfalse配置刷新时是否隐藏加载动画
stopAutoRefreshWhenstring""通过表达式来配置停止刷新的条件
stopAutoRefreshWhenModalIsOpenbooleanfalse当有弹框时关闭自动刷新,关闭弹框又恢复
syncLocationbooleantrue是否将过滤条件的参数同步到地址栏
draggablebooleanfalse是否可通过拖拽排序
itemDraggableOnboolean表达式来配置是否可拖拽排序
saveOrderApiApi保存排序的 api。
quickSaveApiApi快速编辑后用来批量保存的 API。
quickSaveItemApiApi快速编辑配置成及时保存时使用的 API。
bulkActionsArray Of Action批量操作列表,配置后,表格可进行选中操作。
defaultCheckedbooleanfalse当可批量操作时,默认是否全部勾选。
messagesObject覆盖消息提示,如果不指定,将采用 api 返回的 message
messages.fetchFailedstring获取失败时提示
messages.saveOrderFailedstring保存顺序失败提示
messages.saveOrderSuccessstring保存顺序成功提示
messages.quickSaveFailedstring快速保存失败提示
messages.quickSaveSuccessstring快速保存成功提示
primaryFieldstring"id"设置 ID 字段名。
defaultParamsObject设置默认 filter 默认参数,会在查询的时候一起发给后端
pageFieldstring"page"设置分页页码字段名。
perPageFieldstring"perPage"设置分页一页显示的多少条数据的字段名。注意:最好与 defaultParams 一起使用,请看下面例子。
perPageAvailableArray<number>[5, 10, 20, 50, 100]设置一页显示多少条数据下拉框可选条数。
orderFieldstring设置用来确定位置的字段名,设置后新的顺序将被赋值到该字段中。
hideQuickSaveBtnbooleanfalse隐藏顶部快速保存提示
autoJumpToTopOnPagerChangebooleanfalse当切分页的时候,是否自动跳顶部。
syncResponse2Querybooleantrue将返回数据同步到过滤器上。
keepItemSelectionOnPageChangebooleantrue保留条目选择,默认分页、搜素后,用户选择条目会被清空,开启此选项后会保留用户选择,可以实现跨页面批量操作。
labelTplstring单条描述模板,keepItemSelectionOnPageChange设置为true后会把所有已选择条目列出来,此选项可以用来定制条目展示文案。
headerToolbarArray['bulk-actions', 'pagination']顶部工具栏配置, 可用控件: bulk-actionspaginatnionstatisticsswitch-per-pagefilter-toggler 或者放 tpl 或者 button 之类的渲染器控件。
footerToolbarArray['statistics', 'pagination']底部工具栏配置 , 可用控件: bulk-actionspaginatnionstatisticsswitch-per-pagefilter-toggler 或者放 tpl 或者 button 之类的渲染器控件。
\n

接口说明

开始之前请你先阅读整体要求

\n

api

用来返回列表数据。

\n

发送:

\n

可能会包含以下信息。

\n\n

另外如果 CRUD 配置了 Filter,即过滤器表单,表单里面的数据也会自动 merge 到这个请求里面。前提是:你没有干预接口参数。

\n

什么意思?来个对比 /api/xxxx/api/xxxx?a=${a}。第二个配置方式就是干预了,如果你配置接口的时候有明确指定要发送什么参数,那么 amis 则不再默认把所有你可能要的参数都发过去了。这个时候如果想要接收原来的那些参数,你需要进一步配置 api,把你需要的参数写上如:/api/xxxx?a=${a}&page=${page}&perPage=${perPage}

\n

响应:

\n

常规返回格式如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        // 每个成员的数据。\n        \"id\": 1,\n        \"xxx\": \"xxxx\"\n      }\n    ],\n\n    \"total\": 200 // 注意这里不是当前请求返回的 items 的长度,而是一共有多少条数据,用于生成分页,\n    // 如果你不想要分页,把这个不返回就可以了。\n  }\n}\n
\n

如果无法知道数据总条数,只能知道是否有下一页,请返回如下格式,AMIS 会简单生成一个简单版本的分页控件。

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"items\": [\n      {\n        // 每个成员的数据。\n        \"id\": 1,\n        \"xxx\": \"xxxx\"\n      }\n    ],\n\n    \"hasNext\": true // 是否有下一页。\n  }\n}\n
\n

如果不需要分页,或者配置了 loadDataOnce 则可以忽略掉 totalhasNext 参数。

\n

saveOrderApi

用来保存新的顺序,配置了 draggable 后会通过这个接口保存结果。

\n

发送:

\n

发送方式默认为 POST 会包含以下信息。

\n\n

发送数据多了?amis 只能猜你可能需要什么格式化的数据,api 不是可以配置数据映射吗?你可以通过 data 指定只发送什么如:

\n
{\n  \"saveOrderApi\": {\n    \"url\": \"/api/xxxx\",\n    \"data\": {\n      \"ids\": \"${ids}\"\n    }\n  }\n}\n
\n

这样就只会发送 ids 了。

\n

响应:

\n

响应没有什么特殊要求,只关注 status 状态。data 中返回了数据也不会影响结果集。默认调用完保存顺序接口会自动再调用一次 api 接口用来刷新数据。

\n

quickSaveApi

用来保存快速编辑结果,当 crud 的列配置快速保存时会调用进来。

\n

发送:

\n

发送方式默认为 POST 会包含以下信息。

\n\n

默认发送的数据有点多,不过可以通过 api 的数据映射自己选择需要的部分。

\n

响应:

\n

响应没有什么特殊要求,只关注 status 状态。

\n

quickSaveItemApi

跟 quickSaveApi 不一样的地方在于当你配置快速保存为立即保存的时候,优先使用此接口。因为只会保存单条数据,所以发送格式会不一样,直接就是整个更新后的成员数据。

\n

发送:

\n

POST payload 中就是更新后的成员数据。

\n

响应:

\n

响应没有什么特殊要求,只关注 status 状态。

\n

单条操作

当操作对象是单条数据时这类操作叫单条操作,比如:编辑、删除、通过、拒绝等等。CRUD 的 table 模式可以在 column 通过放置按钮来完成(其他模式参考 table 模式)。比如编辑就是添加个按钮行为是弹框类型的按钮或者添加一个页面跳转类型的按钮把当前行数据的 id 放在 query 中传过去、删除操作就是配置一个按钮行为是 AJAX 类型的按钮,将数据通过 api 发送给后端完成。

\n

CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一个按钮就行了。CRUD 在处理按钮行为的时候会把当前行的完整数据传递过去,如果你的按钮行为是弹出时,还会包含一下信息:

\n\n

如果你的按钮类型是 AJAX,你也可以限定只发送部分数据比如。

\n
{\n  \"type\": \"button\",\n  \"label\": \"删除\",\n  \"actionType\": \"ajax\",\n  \"api\": \"delete:/api/xxxx/$id\",\n  \"confirmText\": \"确定要删除?\"\n}\n
\n

上面这个例子就会发送 id 字段了,如果想要全部发送过去同时还想添加点别的字段就这样:

\n
{\n  \"type\": \"button\",\n  \"label\": \"删除\",\n  \"actionType\": \"ajax\",\n  \"api\": {\n    \"method\": \"post\",\n    \"url\": \"/api/xxxx/$id\",\n    \"data\": {\n      \"&\": \"$$\",\n      \"op\": \"delete\"\n    }\n  },\n  \"confirmText\": \"确定要删除?\"\n}\n
\n

这取决于 api 怎么配置,关于 api 的配置说明请前往这

\n

批量操作

当操作对象是多条数据时这类操作叫批量操作、跟单条操作类似,将按钮放在 crud 的 bulkActions 中即可, 添加 bulkActions 后列表会自动出现选择框。CRUD 会准备以下数据供按钮行为使用。

\n\n

快速编辑

列信息中可以配置 quickEdit 属性来启动快速编辑功能、开启后当鼠标 hover 到对应的行时,会出现一个编辑的小图标,点开后弹出表单项完成编辑。保存的结果不会立即发送 api 完成保存,除非你配置了立即保存,当所有的编辑都完成了,可以点击表格顶部的提交按钮,crud 将通过 quickSaveApi 通知后端完成保存。更多信息请看 quickSaveApi 和 quickSaveItemApi 的说明。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/CRUD.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "CRUD", - "fragment": "crud", - "fullPath": "#crud", - "level": 2, - "children": [ - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "api", - "fragment": "api", - "fullPath": "#api", - "level": 4 - }, - { - "label": "saveOrderApi", - "fragment": "saveorderapi", - "fullPath": "#saveorderapi", - "level": 4 - }, - { - "label": "quickSaveApi", - "fragment": "quicksaveapi", - "fullPath": "#quicksaveapi", - "level": 4 - }, - { - "label": "quickSaveItemApi", - "fragment": "quicksaveitemapi", - "fullPath": "#quicksaveitemapi", - "level": 4 - } - ] - }, - { - "label": "单条操作", - "fragment": "%E5%8D%95%E6%9D%A1%E6%93%8D%E4%BD%9C", - "fullPath": "#%E5%8D%95%E6%9D%A1%E6%93%8D%E4%BD%9C", - "level": 3 - }, - { - "label": "批量操作", - "fragment": "%E6%89%B9%E9%87%8F%E6%93%8D%E4%BD%9C", - "fullPath": "#%E6%89%B9%E9%87%8F%E6%93%8D%E4%BD%9C", - "level": 3 - }, - { - "label": "快速编辑", - "fragment": "%E5%BF%AB%E9%80%9F%E7%BC%96%E8%BE%91", - "fullPath": "#%E5%BF%AB%E9%80%9F%E7%BC%96%E8%BE%91", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Card.html b/gh-pages/docs/renderers/Card.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Card.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Card_54b1c58.js b/gh-pages/docs/renderers/Card_54b1c58.js deleted file mode 100644 index 50e0937bb..000000000 --- a/gh-pages/docs/renderers/Card_54b1c58.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Card.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Card

卡片的展示形式。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"card"指定为 Card 渲染器
classNamestring"panel-default"外层 Dom 的类名
headerObjectCard 头部内容设置
header.classNamestring头部类名
header.titlestring标题
header.subTitlestring副标题
header.descstring描述
header.avatarstring图片
header.highlightboolean是否点亮
header.avatarClassNamestring"pull-left thumb avatar b-3x m-r"图片类名
bodyArray 或者 Field内容容器,主要用来放置 Field
bodyClassNamestring"padder m-t-sm m-b-sm"内容区域类名
actionsArray Of Button按钮区域
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Card.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Card", - "fragment": "card", - "fullPath": "#card", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Cards.html b/gh-pages/docs/renderers/Cards.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Cards.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Cards_85d81ab.js b/gh-pages/docs/renderers/Cards_85d81ab.js deleted file mode 100644 index ae0988745..000000000 --- a/gh-pages/docs/renderers/Cards_85d81ab.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Cards.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Cards

卡片集合。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"cards" 指定为卡片集合。
titlestring标题
sourcestring${items}数据源, 绑定当前环境变量
placeholderstring‘暂无数据’当没数据的时候的文字提示
classNamestring外层 CSS 类名
headerClassNamestringamis-grid-header顶部外层 CSS 类名
footerClassNamestringamis-grid-footer底部外层 CSS 类名
itemClassNamestringcol-sm-4 col-md-3卡片 CSS 类名
cardCard配置卡片信息
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Cards.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Cards", - "fragment": "cards", - "fullPath": "#cards", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Carousel.html b/gh-pages/docs/renderers/Carousel.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Carousel.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Carousel_8641cdc.js b/gh-pages/docs/renderers/Carousel_8641cdc.js deleted file mode 100644 index 22f19fd0d..000000000 --- a/gh-pages/docs/renderers/Carousel_8641cdc.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Carousel.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Carousel

轮播图

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Carousel.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Carousel", - "fragment": "carousel", - "fullPath": "#carousel", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Chart.html b/gh-pages/docs/renderers/Chart.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Chart.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Chart_4cb7078.js b/gh-pages/docs/renderers/Chart_4cb7078.js deleted file mode 100644 index d4ee6d66c..000000000 --- a/gh-pages/docs/renderers/Chart_4cb7078.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Chart.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Chart

图表渲染器,采用 echarts 渲染,配置格式跟 echarts 相同,echarts 配置文档

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"chart"指定为 chart 渲染器
classNamestring外层 Dom 的类名
bodyContainer内容容器
apiapi配置项远程地址
initFetchboolean是否默认拉取
intervalnumber刷新时间(最低 3000) ,单位是毫秒
configobject/string设置 eschars 的配置项,当为string的时候可以设置 function 等配置项
styleobject设置根元素的 style
widthstring设置根元素的宽度
heightstring设置根元素的高度
replaceChartOptionbooleanfalse每次更新是完全覆盖配置项还是追加?
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Chart.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Chart", - "fragment": "chart", - "fullPath": "#chart", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Collapse.html b/gh-pages/docs/renderers/Collapse.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Collapse.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Collapse_e5c7144.js b/gh-pages/docs/renderers/Collapse_e5c7144.js deleted file mode 100644 index 219420a4c..000000000 --- a/gh-pages/docs/renderers/Collapse_e5c7144.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Collapse.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Collapse

折叠器

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Collapse.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Collapse", - "fragment": "collapse", - "fullPath": "#collapse", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Column.html b/gh-pages/docs/renderers/Column.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Column.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Column_a83876e.js b/gh-pages/docs/renderers/Column_a83876e.js deleted file mode 100644 index 855db3d30..000000000 --- a/gh-pages/docs/renderers/Column_a83876e.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Column.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Column

表格中的列配置

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Column.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Column", - "fragment": "column", - "fullPath": "#column", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Definitions.html b/gh-pages/docs/renderers/Definitions.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Definitions.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Definitions_c19e5b0.js b/gh-pages/docs/renderers/Definitions_c19e5b0.js deleted file mode 100644 index c87e5a087..000000000 --- a/gh-pages/docs/renderers/Definitions_c19e5b0.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Definitions.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Definitions

Definitions建立当前页面公共的配置项,在其他组件中可以通过$ref来引用当前配置项中的内容。注意 definitions 只能在顶级节点中定义,定义在其他位置,将引用不到。

\n
\n

Definitions 最大的作用其实是能够实现对数据格式的递归引用。来看这个栗子吧。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Definitions.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Definitions", - "fragment": "definitions", - "fullPath": "#definitions", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Dialog.html b/gh-pages/docs/renderers/Dialog.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Dialog.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Dialog_58adbe7.js b/gh-pages/docs/renderers/Dialog_58adbe7.js deleted file mode 100644 index f0627264d..000000000 --- a/gh-pages/docs/renderers/Dialog_58adbe7.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Dialog.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Dialog

Dialog 由 Action 触发。他是一个类似于 Page 的容器模型。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"dialog" 指定为 Dialog 渲染器
titlestring 或者 Container弹出层标题
bodyContainer往 Dialog 内容区加内容
sizestring指定 dialog 大小,支持: xssmmdlg
bodyClassNamestringmodal-bodyDialog body 区域的样式类名
closeOnEscbooleanfalse是否支持按 Esc 关闭 Dialog
disabledbooleanfalse如果设置此属性,则该 Dialog 只读没有提交操作。
actionsArray Of Action可以不设置,默认只有【确认】和【取消】两个按钮。
dataobject用于数据映射,如果不设定将默认将触发按钮的上下文中继承数据。用法同 api 中的 data 用法
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Dialog.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Dialog", - "fragment": "dialog", - "fullPath": "#dialog", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Divider.html b/gh-pages/docs/renderers/Divider.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Divider.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Divider_f9eecf6.js b/gh-pages/docs/renderers/Divider_f9eecf6.js deleted file mode 100644 index 6487f7f52..000000000 --- a/gh-pages/docs/renderers/Divider_f9eecf6.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Divider.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Divider

分割线

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Divider.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Divider", - "fragment": "divider", - "fullPath": "#divider", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Drawer.html b/gh-pages/docs/renderers/Drawer.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Drawer.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Drawer_f1f7b47.js b/gh-pages/docs/renderers/Drawer_f1f7b47.js deleted file mode 100644 index 774cfbbe2..000000000 --- a/gh-pages/docs/renderers/Drawer_f1f7b47.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Drawer.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Drawer

Drawer 由 Action 触发。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"drawer" 指定为 Drawer 渲染器
titlestring 或者 Container弹出层标题
bodyContainer往 Drawer 内容区加内容
sizestring指定 Drawer 大小,支持: xssmmdlg
bodyClassNamestringmodal-bodyDrawer body 区域的样式类名
closeOnEscbooleanfalse是否支持按 Esc 关闭 Drawer
closeOnOutsidebooleanfalse点击内容区外是否关闭 Drawer
overlaybooleantrue是否显示蒙层
resizablebooleanfalse是否可通过拖拽改变 Drawer 大小
actionsArray Of Action可以不设置,默认只有【确认】和【取消】两个按钮。
dataobject用于数据映射,如果不设定将默认将触发按钮的上下文中继承数据。用法同 api 中的 data 用法
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Drawer.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Drawer", - "fragment": "drawer", - "fullPath": "#drawer", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Each.html b/gh-pages/docs/renderers/Each.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Each.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Each_bd014bf.js b/gh-pages/docs/renderers/Each_bd014bf.js deleted file mode 100644 index afe131b0d..000000000 --- a/gh-pages/docs/renderers/Each_bd014bf.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Each.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Each

基于现有变量循环输出渲染器

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Each.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Each", - "fragment": "each", - "fullPath": "#each", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Field.html b/gh-pages/docs/renderers/Field.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Field.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Field_502c51b.js b/gh-pages/docs/renderers/Field_502c51b.js deleted file mode 100644 index f1665ee0a..000000000 --- a/gh-pages/docs/renderers/Field_502c51b.js +++ /dev/null @@ -1,82 +0,0 @@ -amis.define('docs/renderers/Field.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Field

主要用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中。它主要用来展示数据。

\n
\n

通用配置

\n

Tpl(Field)

请参考tpl

\n

Plain(Field)

请参考Plain

\n

Json(Field)

\n

Date(Field)

用来显示日期。

\n\n

Mapping(Field)

用来对值做映射显示。

\n\n

Image(Field)

用来展示图片。

\n\n

Progress(Field)

用来展示进度条。

\n\n

Status(Field)

用来显示状态,用图表展示。

\n\n

Switch(Field)

用来占一个开关。

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Field.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Field", - "fragment": "field", - "fullPath": "#field", - "level": 2, - "children": [ - { - "label": "通用配置", - "fragment": "%E9%80%9A%E7%94%A8%E9%85%8D%E7%BD%AE", - "fullPath": "#%E9%80%9A%E7%94%A8%E9%85%8D%E7%BD%AE", - "level": 3 - }, - { - "label": "Tpl(Field)", - "fragment": "tpl-field-", - "fullPath": "#tpl-field-", - "level": 3 - }, - { - "label": "Plain(Field)", - "fragment": "plain-field-", - "fullPath": "#plain-field-", - "level": 3 - }, - { - "label": "Json(Field)", - "fragment": "json-field-", - "fullPath": "#json-field-", - "level": 3 - }, - { - "label": "Date(Field)", - "fragment": "date-field-", - "fullPath": "#date-field-", - "level": 3 - }, - { - "label": "Mapping(Field)", - "fragment": "mapping-field-", - "fullPath": "#mapping-field-", - "level": 3 - }, - { - "label": "Image(Field)", - "fragment": "image-field-", - "fullPath": "#image-field-", - "level": 3 - }, - { - "label": "Progress(Field)", - "fragment": "progress-field-", - "fullPath": "#progress-field-", - "level": 3 - }, - { - "label": "Status(Field)", - "fragment": "status-field-", - "fullPath": "#status-field-", - "level": 3 - }, - { - "label": "Switch(Field)", - "fragment": "switch-field-", - "fullPath": "#switch-field-", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Array.html b/gh-pages/docs/renderers/Form/Array.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Array.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Array_5f97598.js b/gh-pages/docs/renderers/Form/Array_5f97598.js deleted file mode 100644 index de05f329a..000000000 --- a/gh-pages/docs/renderers/Form/Array_5f97598.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Array.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Array

数组输入框配置

\n

其实就是 Combo 的一个 flat 用法。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Array.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Array", - "fragment": "array", - "fullPath": "#array", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Button-Group.html b/gh-pages/docs/renderers/Form/Button-Group.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Button-Group.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Button-Group_3a1b588.js b/gh-pages/docs/renderers/Form/Button-Group_3a1b588.js deleted file mode 100644 index e4bbd38c8..000000000 --- a/gh-pages/docs/renderers/Form/Button-Group_3a1b588.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Button-Group.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Button-Group(FormItem)

按钮集合,直接看示例吧。

\n\n
\n

button-group 有两种模式,除了能让按钮组合在一起,还能做类似于单选功能。

\n

当不配置 buttons 属性时,就可以当复选框用。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Button-Group.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Button-Group(FormItem)", - "fragment": "button-group-formitem-", - "fullPath": "#button-group-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Button-Toolbar.html b/gh-pages/docs/renderers/Form/Button-Toolbar.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Button-Toolbar.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Button-Toolbar_21e0c6f.js b/gh-pages/docs/renderers/Form/Button-Toolbar_21e0c6f.js deleted file mode 100644 index 30ff02b45..000000000 --- a/gh-pages/docs/renderers/Form/Button-Toolbar_21e0c6f.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Button-Toolbar.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Button-Toolbar

从上面的例子可以看出,当按钮独立配置的时候,是独占一行的,如果想让多个按钮在一起放置,可以利用 button-toolbar

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Button-Toolbar.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Button-Toolbar", - "fragment": "button-toolbar", - "fullPath": "#button-toolbar", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Button.html b/gh-pages/docs/renderers/Form/Button.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Button.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Button_c0048e7.js b/gh-pages/docs/renderers/Form/Button_c0048e7.js deleted file mode 100644 index fbe9ba37b..000000000 --- a/gh-pages/docs/renderers/Form/Button_c0048e7.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Button.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Button

按钮, 包含 buttonsubmitreset。 字段说明。

\n\n

如果按钮是 button 类型,则还需要配置 Action 中定义的属性,否则,amis 不知道如何响应当前按钮点击。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Button.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Button", - "fragment": "button", - "fullPath": "#button", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Chained-Select.html b/gh-pages/docs/renderers/Form/Chained-Select.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Chained-Select.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Chained-Select_e75f010.js b/gh-pages/docs/renderers/Form/Chained-Select_e75f010.js deleted file mode 100644 index 1004a5831..000000000 --- a/gh-pages/docs/renderers/Form/Chained-Select_e75f010.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Chained-Select.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Chained-Select

无限级别下拉,只支持单选,且必须和 source 搭配,通过 API 拉取数据,只要 API 有返回结果,就能一直无限级别下拉下去。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Chained-Select.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Chained-Select", - "fragment": "chained-select", - "fullPath": "#chained-select", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Checkbox.html b/gh-pages/docs/renderers/Form/Checkbox.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Checkbox.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Checkbox_5016029.js b/gh-pages/docs/renderers/Form/Checkbox_5016029.js deleted file mode 100644 index a13e32fb4..000000000 --- a/gh-pages/docs/renderers/Form/Checkbox_5016029.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Checkbox.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Checkbox

勾选框

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Checkbox.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Checkbox", - "fragment": "checkbox", - "fullPath": "#checkbox", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Checkboxes.html b/gh-pages/docs/renderers/Form/Checkboxes.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Checkboxes.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Checkboxes_c3f6f17.js b/gh-pages/docs/renderers/Form/Checkboxes_c3f6f17.js deleted file mode 100644 index d9cfc77a7..000000000 --- a/gh-pages/docs/renderers/Form/Checkboxes_c3f6f17.js +++ /dev/null @@ -1,34 +0,0 @@ -amis.define('docs/renderers/Form/Checkboxes.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Checkboxes

复选框

\n\n
\n

接口说明

开始之前请你先阅读整体要求

\n

source

发送

\n

默认 GET,不携带数据,可从上下文中取数据设置进去。

\n

响应

\n

格式要求如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"options\": [\n      {\n        \"label\": \"描述\",\n        \"value\": \"值\"\n      },\n\n      {\n        \"label\": \"描述2\",\n        \"value\": \"值2\"\n      }\n    ],\n\n    \"value\": \"值\" // 默认值,可以获取列表的同时设置默认值。\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Checkboxes.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Checkboxes", - "fragment": "checkboxes", - "fullPath": "#checkboxes", - "level": 3 - }, - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "source", - "fragment": "source", - "fullPath": "#source", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/City.html b/gh-pages/docs/renderers/Form/City.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/City.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/City_95447f6.js b/gh-pages/docs/renderers/Form/City_95447f6.js deleted file mode 100644 index fba99090b..000000000 --- a/gh-pages/docs/renderers/Form/City_95447f6.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/City.md', function(require, exports, module, define) { - - module.exports = { - "html": "

City

城市选择器,可用于让用户输入城市。

\n\n
\n

从配置项可以看出来,通过设置 allowDistrictallowCity 是可以限制用户输入级别的,比如只选择省份。

\n
\n

从上面的例子可以看出来,值默认格式是编码(即 code),如果你想要详细点的信息,可以把 extractValue 设置成 false

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/City.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "City", - "fragment": "city", - "fullPath": "#city", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Color.html b/gh-pages/docs/renderers/Form/Color.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Color.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Color_e64e8ba.js b/gh-pages/docs/renderers/Form/Color_e64e8ba.js deleted file mode 100644 index 240136578..000000000 --- a/gh-pages/docs/renderers/Form/Color_e64e8ba.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Color.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Color

颜色选择器。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Color.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Color", - "fragment": "color", - "fullPath": "#color", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Combo.html b/gh-pages/docs/renderers/Form/Combo.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Combo.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Combo_c0b4570.js b/gh-pages/docs/renderers/Form/Combo_c0b4570.js deleted file mode 100644 index 5c3a67184..000000000 --- a/gh-pages/docs/renderers/Form/Combo_c0b4570.js +++ /dev/null @@ -1,46 +0,0 @@ -amis.define('docs/renderers/Form/Combo.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Combo

组合模式,支持自由组合多个表单项。当设置成单选时数据格式为对象,当设置成多选时数据格式为数组,数组成员是对象(flat 模式可以直接是某个表单单项的数值)。

\n\n

单行模式

\n

多行模式。

\n

条件分支

默认 Combo 渲染的成员是固定表单项的,成员的类型时一致,如果不一致怎么办?这里可以设置条件分支来给不同的成员设置不同的表单项。

\n

如下面的栗子,定义了两种类型:文本和数字,用户新增的时候可以选择是新增文本还是数字。区分是文字和数字的方式是根据成员数据中的 type 字段来决定。

\n
\n\n

Tabs 模式

默认成员是一个一个排列的,如果数据比较多优点让人眼花缭乱。所以 Combo 支持了 tabs 的排列方式。

\n
\n\n

注意:这是新引入的功能,目前还不支持拖拽组合使用。且此模式只有多选时才能生效。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Combo.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Combo", - "fragment": "combo", - "fullPath": "#combo", - "level": 3, - "children": [ - { - "label": "单行模式", - "fragment": "%E5%8D%95%E8%A1%8C%E6%A8%A1%E5%BC%8F", - "fullPath": "#%E5%8D%95%E8%A1%8C%E6%A8%A1%E5%BC%8F", - "level": 4 - }, - { - "label": "多行模式。", - "fragment": "%E5%A4%9A%E8%A1%8C%E6%A8%A1%E5%BC%8F-", - "fullPath": "#%E5%A4%9A%E8%A1%8C%E6%A8%A1%E5%BC%8F-", - "level": 4 - }, - { - "label": "条件分支", - "fragment": "%E6%9D%A1%E4%BB%B6%E5%88%86%E6%94%AF", - "fullPath": "#%E6%9D%A1%E4%BB%B6%E5%88%86%E6%94%AF", - "level": 4 - }, - { - "label": "Tabs 模式", - "fragment": "tabs-%E6%A8%A1%E5%BC%8F", - "fullPath": "#tabs-%E6%A8%A1%E5%BC%8F", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Date-Range.html b/gh-pages/docs/renderers/Form/Date-Range.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Date-Range.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Date-Range_8008f2f.js b/gh-pages/docs/renderers/Form/Date-Range_8008f2f.js deleted file mode 100644 index e24ab3149..000000000 --- a/gh-pages/docs/renderers/Form/Date-Range_8008f2f.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Date-Range.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Date-Range

日期范围类型。

\n\n
\n

考虑到大家都习惯用两个字段来存储,那么就用 date 来代替吧。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Date-Range.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Date-Range", - "fragment": "date-range", - "fullPath": "#date-range", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Date.html b/gh-pages/docs/renderers/Form/Date.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Date.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Date_54e0829.js b/gh-pages/docs/renderers/Form/Date_54e0829.js deleted file mode 100644 index 1eebd1579..000000000 --- a/gh-pages/docs/renderers/Form/Date_54e0829.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Date.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Date

日期类型。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Date.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Date", - "fragment": "date", - "fullPath": "#date", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Datetime.html b/gh-pages/docs/renderers/Form/Datetime.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Datetime.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Datetime_86f7f28.js b/gh-pages/docs/renderers/Form/Datetime_86f7f28.js deleted file mode 100644 index c36512f69..000000000 --- a/gh-pages/docs/renderers/Form/Datetime_86f7f28.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Datetime.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Datetime

日期时间类型。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Datetime.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Datetime", - "fragment": "datetime", - "fullPath": "#datetime", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Editor.html b/gh-pages/docs/renderers/Form/Editor.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Editor.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Editor_69dbb63.js b/gh-pages/docs/renderers/Form/Editor_69dbb63.js deleted file mode 100644 index dae558a77..000000000 --- a/gh-pages/docs/renderers/Form/Editor_69dbb63.js +++ /dev/null @@ -1,32 +0,0 @@ -amis.define('docs/renderers/Form/Editor.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Editor

XXX-Editor

\n
\n

Diff-Editor

\n

PS: 当用作纯展示时,可以通过value配置项,设置右侧编辑器的值

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Editor.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Editor", - "fragment": "editor", - "fullPath": "#editor", - "level": 3 - }, - { - "label": "XXX-Editor", - "fragment": "xxx-editor", - "fullPath": "#xxx-editor", - "level": 3 - }, - { - "label": "Diff-Editor", - "fragment": "diff-editor", - "fullPath": "#diff-editor", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Email.html b/gh-pages/docs/renderers/Form/Email.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Email.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Email_e595ffa.js b/gh-pages/docs/renderers/Form/Email_e595ffa.js deleted file mode 100644 index 93f25c4da..000000000 --- a/gh-pages/docs/renderers/Form/Email_e595ffa.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Email.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Email

Email 输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Email.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Email", - "fragment": "email", - "fullPath": "#email", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/FieldSet.html b/gh-pages/docs/renderers/Form/FieldSet.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/FieldSet.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/FieldSet_8208aaf.js b/gh-pages/docs/renderers/Form/FieldSet_8208aaf.js deleted file mode 100644 index 7796f24b4..000000000 --- a/gh-pages/docs/renderers/Form/FieldSet_8208aaf.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/FieldSet.md', function(require, exports, module, define) { - - module.exports = { - "html": "

FieldSet

多个输入框可以通过 fieldSet 捆绑在一起。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/FieldSet.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "FieldSet", - "fragment": "fieldset", - "fullPath": "#fieldset", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/File.html b/gh-pages/docs/renderers/Form/File.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/File.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/File_35b737e.js b/gh-pages/docs/renderers/Form/File_35b737e.js deleted file mode 100644 index c7233f185..000000000 --- a/gh-pages/docs/renderers/Form/File_35b737e.js +++ /dev/null @@ -1,34 +0,0 @@ -amis.define('docs/renderers/Form/File.md', function(require, exports, module, define) { - - module.exports = { - "html": "

File

用来负责文件上传,文件上传成功后会返回文件地址,这个文件地址会作为这个表单项的值,整个表单提交的时候,其实提交的是文件地址,文件上传已经在这个控件中完成了。

\n\n
\n

如果不希望 File 控件接管上传,可以配置 asBlob 或者 asBase64 这两个属性(二选一),采用这种方式后,File 控件不再自己上传了,而是直接把文件数据作为表单项的值,文件内容会在 Form 表单提交的接口里面一起带上。

\n

接口说明

开始之前请你先阅读整体要求

\n

reciever

用来自己实现文件接收

\n

发送:

\n

POST 方式,内容体为 form-data/multipart 格式。文件的字段名为 file。

\n

响应:

\n

常规返回格式如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"value\": \"一般为文件的下载地址\"\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/File.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "File", - "fragment": "file", - "fullPath": "#file", - "level": 3 - }, - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "reciever", - "fragment": "reciever", - "fullPath": "#reciever", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Form.html b/gh-pages/docs/renderers/Form/Form.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Form.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/FormItem.html b/gh-pages/docs/renderers/Form/FormItem.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/FormItem.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/FormItem_0c8c7ce.js b/gh-pages/docs/renderers/Form/FormItem_0c8c7ce.js deleted file mode 100644 index 8d8918e48..000000000 --- a/gh-pages/docs/renderers/Form/FormItem_0c8c7ce.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/FormItem.md', function(require, exports, module, define) { - - module.exports = { - "html": "

FormItem

Form 中主要是由各种 FormItem 组成。FormItem 中主要包含这些字段。

\n\n
\n

不同类型的表单,可配置项还有更多,具体请看下面对应的类型。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/FormItem.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "FormItem", - "fragment": "formitem", - "fullPath": "#formitem", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Form_e88ad2b.js b/gh-pages/docs/renderers/Form/Form_e88ad2b.js deleted file mode 100644 index 19e9e59f9..000000000 --- a/gh-pages/docs/renderers/Form/Form_e88ad2b.js +++ /dev/null @@ -1,48 +0,0 @@ -amis.define('docs/renderers/Form/Form.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Form

表单渲染器,主要用来展示或者接收用户输入后将数据提交给后端或者其他组件。

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"form" 指定为 Form 渲染器
modestringnormal表单展示方式,可以是:normalhorizontal 或者 inline
horizontalObject{"left":"col-sm-2", "right":"col-sm-10", "offset":"col-sm-offset-2"}当 mode 为 horizontal 时有用,用来控制 label
titlestring"表单"Form 的标题
submitTextString"提交"默认的提交按钮名称,如果设置成空,则可以把默认按钮去掉。
classNamestring外层 Dom 的类名
controlsArray of FormItemForm 表单项集合
actionsArray of ActionForm 提交按钮,成员为 Action
messagesObject消息提示覆写,默认消息读取的是 API 返回的消息,但是在此可以覆写它。
messages.fetchSuccessstring获取成功时提示
messages.fetchFailedstring获取失败时提示
messages.saveSuccessstring保存成功时提示
messages.saveFailedstring保存失败时提示
wrapWithPanelbooleantrue是否让 Form 用 panel 包起来,设置为 false 后,actions 将无效。
panelClassNamebooleantruepanel 的类名。
apiApiForm 用来保存数据的 api。
initApiApiForm 用来获取初始数据的 api。
intervalnumber3000刷新时间(最低 3000),单位是毫秒
silentPollingbooleanfalse配置刷新时是否显示加载动画
stopAutoRefreshWhenstring""通过表达式 来配置停止刷新的条件
initAsyncApiApiForm 用来获取初始数据的 api,与 initApi 不同的是,会一直轮训请求该接口,直到返回 finished 属性为 true 才 结束。
initFetchbooleantrue设置了 initApi 或者 initAsyncApi 后,默认会开始就发请求,设置为 false 后就不会起始就请求接口
initFetchOnstring用表达式来配置
initFinishedFieldstringfinished设置了 initAsyncApi 后,默认会从返回数据的 data.finished 来判断是否完成,也可以设置成其他的 xxx,就会从 data.xxx 中获取
initCheckIntervalnumber3000设置了 initAsyncApi 以后,默认拉取的时间间隔
schemaApiApi已不支持,请改用 controls 里面放置 Service 渲染器实现
asyncApiApi设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束。
checkIntervalnumber3000轮训请求的时间间隔,默认为 3000 毫秒。设置 asyncApi 才有效
finishedFieldstring"finished"如果决定结束的字段名不是 finished 请设置此属性,比如 is_success
submitOnChangebooleanfalse表单修改即提交
submitOnInitbooleanfalse初始就提交一次
resetAfterSubmitbooleanfalse提交后是否重置表单
primaryFieldstring"id"设置主键 id, 当设置后,检测表单是否完成时(asyncApi),只会携带此数据。
targetstring默认表单提交自己会通过发送 api 保存数据,但是也可以设定另外一个 form 的 name 值,或者另外一个 CRUD 模型的 name 值。 如果 target 目标是一个 Form ,则目标 Form 会重新触发 initApi,api 可以拿到当前 form 数据。如果目标是一个 CRUD 模型,则目标模型会重新触发搜索,参数为当前 Form 数据。当目标是 window 时,会把当前表单的数据附带到页面地址上。
redirectstring设置此属性后,Form 保存成功后,自动跳转到指定页面。支持相对地址,和绝对地址(相对于组内的)。
reloadstring操作完后刷新目标对象。请填写目标组件设置的 name 值,如果填写为 window 则让当前页面整体刷新。
autoFocusbooleanfalse是否自动聚焦。
canAccessSuperDatabooleantrue指定是否可以自动获取上层的数据并映射到表单项上
persistDatabooleantrue指定表单是否开启本地缓存
clearPersistDataAfterSubmitbooleantrue指定表单提交成功后是否清除本地缓存
namestring设置一个名字后,方便其他组件与其通信
\n

表单项都是通过 controls 设置的,类型是数组,成员主要是FormItem,默认一行一个(当然 form 是 inline 模式时例外),如果想一行多个,可以将多个FormItem放在一个 Group 里面。

\n
\n

水平模式的 Form 也支持 Group 展现。

\n
\n

接口说明

开始之前请你先阅读整体要求

\n

initApi

可以用来初始化表单数据。

\n

发送

\n

默认不携带任何参数,可以在上下文中取变量设置进去。

\n

响应

\n

要求返回的数据 data 是对象,不要返回其他格式,且注意层级问题,data 中返回的数据正好跟 form 中的变量一一对应。

\n
{\n  status: 0,\n  msg: '',\n  data: {\n    a: '123'\n  }\n}\n

如果有个表单项的 name 配置成 a,initApi 返回后会自动填充 '123'。

\n

api

用来保存表单结果。

\n

发送

\n

默认为 POST 方式,会将所有表单项整理成一个对象发送过过去。除此之外你开可以主动的获取以下信息。

\n\n

如:

\n
{\n  \"api\": {\n    \"method\": \"post\",\n    \"url\": \"/api/xxx/save\",\n    \"data\": {\n      \"modified\": \"$$\",\n      \"diff\": \"${diff}\",\n      \"origin\": \"${prinstine}\"\n    }\n  }\n}\n
\n

响应

\n

如果 返回了 data 对象,且是对象,会把结果 merge 到表单数据里面。

\n

initAsyncApi

这个接口的作用在于解决接口耗时比较长导致超时问题的情况,当配置此接口后,初始化接口的时候先请求 initApi 如果 initApi 接口返回了 data.finished 为 true,则初始化完成。如果返回为 false 则之后每隔 3s 请求 initAsyncApi,直到接口返回了 data.finished 为 true 才结束。 用这种机制的话,业务 api 不需要完全等待操作完成才输出结果,而是直接检测状态,没完成也直接返回,后续还会发起请求检测。

\n

格式要求就是 data 是对象,且 有 finished 这个字段。返回的其他字段会被 merge 到表单数据里面。

\n
asyncApi

保存同样也可以采用异步模式,具体请参考 initAsyncApi。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Form.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Form", - "fragment": "form", - "fullPath": "#form", - "level": 2, - "children": [ - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "initApi", - "fragment": "initapi", - "fullPath": "#initapi", - "level": 4 - }, - { - "label": "api", - "fragment": "api", - "fullPath": "#api", - "level": 4 - }, - { - "label": "initAsyncApi", - "fragment": "initasyncapi", - "fullPath": "#initasyncapi", - "level": 4 - } - ] - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Formula.html b/gh-pages/docs/renderers/Form/Formula.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Formula.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Formula_1d1634b.js b/gh-pages/docs/renderers/Form/Formula_1d1634b.js deleted file mode 100644 index 760efd37d..000000000 --- a/gh-pages/docs/renderers/Form/Formula_1d1634b.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Formula.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Formula

公式类型,可以设置公式,并将结果设置给目标值。

\n\n
\n

公式最常见的用法,就是用来实现,当某个值发生变化时,将另外一个值置空如:

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Formula.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Formula", - "fragment": "formula", - "fullPath": "#formula", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Grid.html b/gh-pages/docs/renderers/Form/Grid.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Grid.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Grid_6f16bfb.js b/gh-pages/docs/renderers/Form/Grid_6f16bfb.js deleted file mode 100644 index bb096eb58..000000000 --- a/gh-pages/docs/renderers/Form/Grid_6f16bfb.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Grid.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Grid(FormItem)

支持 form 内部再用 grid 布局。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Grid.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Grid(FormItem)", - "fragment": "grid-formitem-", - "fullPath": "#grid-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Group.html b/gh-pages/docs/renderers/Form/Group.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Group.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Group_15ccdf1.js b/gh-pages/docs/renderers/Form/Group_15ccdf1.js deleted file mode 100644 index 6a4954786..000000000 --- a/gh-pages/docs/renderers/Form/Group_15ccdf1.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Group.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Group

表单项集合中,默认都是一行一个,如果想要一行多个,请用 Group 包裹起来。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Group.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Group", - "fragment": "group", - "fullPath": "#group", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/HBox.html b/gh-pages/docs/renderers/Form/HBox.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/HBox.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/HBox_1e4c680.js b/gh-pages/docs/renderers/Form/HBox_1e4c680.js deleted file mode 100644 index 90953e79c..000000000 --- a/gh-pages/docs/renderers/Form/HBox_1e4c680.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/HBox.md', function(require, exports, module, define) { - - module.exports = { - "html": "

HBox(FormItem)

支持 form 内部再用 HBox 布局,实现左右排列。没错用 Group 也能实现,所以还是推荐用 Group

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/HBox.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "HBox(FormItem)", - "fragment": "hbox-formitem-", - "fullPath": "#hbox-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Hidden.html b/gh-pages/docs/renderers/Form/Hidden.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Hidden.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Hidden_bc6ba42.js b/gh-pages/docs/renderers/Form/Hidden_bc6ba42.js deleted file mode 100644 index 4d7c30430..000000000 --- a/gh-pages/docs/renderers/Form/Hidden_bc6ba42.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Hidden.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Hidden

隐藏字段类型,默认表单提交,只会发送 controls 里面的这些成员,对于隐藏的字段同时又希望提交表单的时候带过去,请把表单项配置成 hidden 类型。

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Hidden.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Hidden", - "fragment": "hidden", - "fullPath": "#hidden", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Image.html b/gh-pages/docs/renderers/Form/Image.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Image.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Image_ff1c98b.js b/gh-pages/docs/renderers/Form/Image_ff1c98b.js deleted file mode 100644 index d97f2aa7d..000000000 --- a/gh-pages/docs/renderers/Form/Image_ff1c98b.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Image.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Image

用于上传图片的控件。

\n\n
\n

由于 github pages 只能是静态页面,下面的示例暂未实现上传功能

\n
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Image.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Image", - "fragment": "image", - "fullPath": "#image", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Input-Group.html b/gh-pages/docs/renderers/Form/Input-Group.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Input-Group.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Input-Group_604428f.js b/gh-pages/docs/renderers/Form/Input-Group_604428f.js deleted file mode 100644 index 4da24ae3e..000000000 --- a/gh-pages/docs/renderers/Form/Input-Group_604428f.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Input-Group.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Input-Group

输入框组合选择器,可用于输入框与其他多个组件组合。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Input-Group.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Input-Group", - "fragment": "input-group", - "fullPath": "#input-group", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/List.html b/gh-pages/docs/renderers/Form/List.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/List.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/List_9183181.js b/gh-pages/docs/renderers/Form/List_9183181.js deleted file mode 100644 index 61c9dfb8d..000000000 --- a/gh-pages/docs/renderers/Form/List_9183181.js +++ /dev/null @@ -1,34 +0,0 @@ -amis.define('docs/renderers/Form/List.md', function(require, exports, module, define) { - - module.exports = { - "html": "

List(FormItem)

简单的列表选择框。

\n\n

单选

\n
\n

多选

\n
\n

选项带图片

\n
\n

接口说明

开始之前请你先阅读整体要求

\n

source

发送

\n

默认 GET,不携带数据,可从上下文中取数据设置进去。

\n

响应

\n

格式要求如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"options\": [\n      {\n        \"label\": \"描述\",\n        \"value\": \"值\"\n      },\n\n      {\n        \"label\": \"描述2\",\n        \"value\": \"值2\"\n      }\n    ],\n\n    \"value\": \"值\" // 默认值,可以获取列表的同时设置默认值。\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/List.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "List(FormItem)", - "fragment": "list-formitem-", - "fullPath": "#list-formitem-", - "level": 3 - }, - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "source", - "fragment": "source", - "fullPath": "#source", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Matrix.html b/gh-pages/docs/renderers/Form/Matrix.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Matrix.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Matrix_b0ea40c.js b/gh-pages/docs/renderers/Form/Matrix_b0ea40c.js deleted file mode 100644 index 9f2de30f0..000000000 --- a/gh-pages/docs/renderers/Form/Matrix_b0ea40c.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Matrix.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Matrix

矩阵类型的输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Matrix.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Matrix", - "fragment": "matrix", - "fullPath": "#matrix", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/NestedSelect.html b/gh-pages/docs/renderers/Form/NestedSelect.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/NestedSelect.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/NestedSelect_b4158ce.js b/gh-pages/docs/renderers/Form/NestedSelect_b4158ce.js deleted file mode 100644 index 3428a4bf8..000000000 --- a/gh-pages/docs/renderers/Form/NestedSelect_b4158ce.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/NestedSelect.md', function(require, exports, module, define) { - - module.exports = { - "html": "

NestedSelect

嵌套选择框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/NestedSelect.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "NestedSelect", - "fragment": "nestedselect", - "fullPath": "#nestedselect", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Number.html b/gh-pages/docs/renderers/Form/Number.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Number.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Number_6024fc2.js b/gh-pages/docs/renderers/Form/Number_6024fc2.js deleted file mode 100644 index 8e17c9f5a..000000000 --- a/gh-pages/docs/renderers/Form/Number_6024fc2.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Number.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Number

数字输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Number.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Number", - "fragment": "number", - "fullPath": "#number", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Panel.html b/gh-pages/docs/renderers/Form/Panel.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Panel.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Panel_7f777c5.js b/gh-pages/docs/renderers/Form/Panel_7f777c5.js deleted file mode 100644 index a579a4f81..000000000 --- a/gh-pages/docs/renderers/Form/Panel_7f777c5.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Panel.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Panel(FormItem)

还是为了布局,可以把一部分 FormItem 合并到一个 panel 里面单独展示。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Panel.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Panel(FormItem)", - "fragment": "panel-formitem-", - "fullPath": "#panel-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Password.html b/gh-pages/docs/renderers/Form/Password.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Password.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Password_3d90706.js b/gh-pages/docs/renderers/Form/Password_3d90706.js deleted file mode 100644 index 612f3d4b9..000000000 --- a/gh-pages/docs/renderers/Form/Password_3d90706.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Password.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Password

密码输入框。

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Password.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Password", - "fragment": "password", - "fullPath": "#password", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Picker.html b/gh-pages/docs/renderers/Form/Picker.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Picker.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Picker_a9dd52c.js b/gh-pages/docs/renderers/Form/Picker_a9dd52c.js deleted file mode 100644 index e631f0cfc..000000000 --- a/gh-pages/docs/renderers/Form/Picker_a9dd52c.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Picker.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Picker

列表选取。可以静态数据,或者通过接口拉取动态数据。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Picker.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Picker", - "fragment": "picker", - "fullPath": "#picker", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Radios.html b/gh-pages/docs/renderers/Form/Radios.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Radios.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Radios_26e5b40.js b/gh-pages/docs/renderers/Form/Radios_26e5b40.js deleted file mode 100644 index 608448142..000000000 --- a/gh-pages/docs/renderers/Form/Radios_26e5b40.js +++ /dev/null @@ -1,34 +0,0 @@ -amis.define('docs/renderers/Form/Radios.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Radios

单选框

\n\n
\n

接口说明

开始之前请你先阅读整体要求

\n

source

发送

\n

默认 GET,不携带数据,可从上下文中取数据设置进去。

\n

响应

\n

格式要求如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"options\": [\n      {\n        \"label\": \"描述\",\n        \"value\": \"值\"\n      },\n\n      {\n        \"label\": \"描述2\",\n        \"value\": \"值2\"\n      }\n    ],\n\n    \"value\": \"值\" // 默认值,可以获取列表的同时设置默认值。\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Radios.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Radios", - "fragment": "radios", - "fullPath": "#radios", - "level": 3 - }, - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "source", - "fragment": "source", - "fullPath": "#source", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Range.html b/gh-pages/docs/renderers/Form/Range.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Range.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Range_5c3c86f.js b/gh-pages/docs/renderers/Form/Range_5c3c86f.js deleted file mode 100644 index c7d453207..000000000 --- a/gh-pages/docs/renderers/Form/Range_5c3c86f.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Range.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Range

范围输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Range.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Range", - "fragment": "range", - "fullPath": "#range", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Rating.html b/gh-pages/docs/renderers/Form/Rating.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Rating.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Rating_e39b192.js b/gh-pages/docs/renderers/Form/Rating_e39b192.js deleted file mode 100644 index b8f5f6d00..000000000 --- a/gh-pages/docs/renderers/Form/Rating_e39b192.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Rating.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Rating

评分

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Rating.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Rating", - "fragment": "rating", - "fullPath": "#rating", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Repeat.html b/gh-pages/docs/renderers/Form/Repeat.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Repeat.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Repeat_546f78e.js b/gh-pages/docs/renderers/Form/Repeat_546f78e.js deleted file mode 100644 index 4eefe6fe2..000000000 --- a/gh-pages/docs/renderers/Form/Repeat_546f78e.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Repeat.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Repeat

可用来设置重复频率

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Repeat.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Repeat", - "fragment": "repeat", - "fullPath": "#repeat", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Rich-Text.html b/gh-pages/docs/renderers/Form/Rich-Text.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Rich-Text.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Rich-Text_55fff00.js b/gh-pages/docs/renderers/Form/Rich-Text_55fff00.js deleted file mode 100644 index 08cef065a..000000000 --- a/gh-pages/docs/renderers/Form/Rich-Text_55fff00.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Rich-Text.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Rich-Text

富文本编辑器

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Rich-Text.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Rich-Text", - "fragment": "rich-text", - "fullPath": "#rich-text", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Select.html b/gh-pages/docs/renderers/Form/Select.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Select.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Select_4350284.js b/gh-pages/docs/renderers/Form/Select_4350284.js deleted file mode 100644 index 19dabe69e..000000000 --- a/gh-pages/docs/renderers/Form/Select_4350284.js +++ /dev/null @@ -1,34 +0,0 @@ -amis.define('docs/renderers/Form/Select.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Select

选项表单。

\n\n

单选

\n
\n

多选

\n
\n

接口说明

开始之前请你先阅读整体要求

\n

source

发送

\n

默认 GET,不携带数据,可从上下文中取数据设置进去。

\n

响应

\n

格式要求如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"options\": [\n      {\n        \"label\": \"描述\",\n        \"value\": \"值\"\n      },\n\n      {\n        \"label\": \"描述2\",\n        \"value\": \"值2\"\n      }\n    ],\n\n    \"value\": \"值\" // 默认值,可以获取列表的同时设置默认值。\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Select.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Select", - "fragment": "select", - "fullPath": "#select", - "level": 3 - }, - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "source", - "fragment": "source", - "fullPath": "#source", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Service.html b/gh-pages/docs/renderers/Form/Service.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Service.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Service_573d6fd.js b/gh-pages/docs/renderers/Form/Service_573d6fd.js deleted file mode 100644 index a28658dfd..000000000 --- a/gh-pages/docs/renderers/Form/Service_573d6fd.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Service.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Service(FormItem)

请先参考Form外的Service用法。作为 FormItem 使用时最大的不同在于作为容器渲染器,他的孩子是优先用表单项还是非表单项。比如放置一个 {type: 'text'},是渲染一个文本输入框、还是一个文本展示?

\n

两种都存在可能,所以作为表单项的 Service, 有两种用法,当把孩子节点放在 controls 里面时输出表单项,如果放在 body 底下时输出非表单项。

\n
\n

如果把子节点放在 controls 就输出表单项如:

\n
\n

从上面的栗子还可以发现,表单项的值是由 service 的 api 拉取过来的,也就是说,你可以利用 service 实现动态拉取部分表单项数据。

\n

比如:

\n
\n

注意:为什么修改数据模板的时候会自动让下面的 service 重新拉取数据?因为 service 的 api 是 /api/mock2/form/initData?tpl=${tpl},amis 有个机制就是,当 api 地址值发生变化时就会重新拉取,当修改数据模板的时候,form 底下 tpl 变量会发生改变,然后会导致 api 的计算结果发生变化,然后会让 service 重新拉取。 那怎样不自动拉取?换种写法就行,比如把上面的 api 换成 {method: "get", url: "/api/mock2/form/initData", data: {tpl: "${tpl}"}} 这种写法就不会自动刷新了,因为 /api/mock2/form/initData 是一个不会发生变化的值了。更多内容请查看联动说明

\n

有时候自动拉取触发会比较频繁,所以有时候需要用到手动刷新,注意看以下的配置。

\n
\n

以上的栗子都是数据拉取,接下来要介绍 service 的另外一个重要功能,就是用它来拉取动态配置项。

\n
\n

你会发现上面的栗子其实并不是拉取的表单项,如果想直接渲染表单项,请返回这种格式

\n
{\n  status: 0,\n  msg: '',\n  data: {\n    controls: [\n      {\n        type: \"text\",\n        name: \"a\",\n        label: \"文本输入\"\n      }\n    ]\n  }\n}\n
\n

比如

\n
\n

schemaApi 同样支持上面的联动用法。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Service.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Service(FormItem)", - "fragment": "service-formitem-", - "fullPath": "#service-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/SubForm.html b/gh-pages/docs/renderers/Form/SubForm.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/SubForm.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/SubForm_d246ec9.js b/gh-pages/docs/renderers/Form/SubForm_d246ec9.js deleted file mode 100644 index acf55aa4a..000000000 --- a/gh-pages/docs/renderers/Form/SubForm_d246ec9.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/SubForm.md', function(require, exports, module, define) { - - module.exports = { - "html": "

SubForm

formItem 还可以是子表单类型。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/SubForm.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "SubForm", - "fragment": "subform", - "fullPath": "#subform", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Switch.html b/gh-pages/docs/renderers/Form/Switch.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Switch.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Switch_5e518bc.js b/gh-pages/docs/renderers/Form/Switch_5e518bc.js deleted file mode 100644 index c319bc429..000000000 --- a/gh-pages/docs/renderers/Form/Switch_5e518bc.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Switch.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Switch

可选框,和 checkbox 完全等价。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Switch.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Switch", - "fragment": "switch", - "fullPath": "#switch", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Table.html b/gh-pages/docs/renderers/Form/Table.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Table.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Table_4ae6d2e.js b/gh-pages/docs/renderers/Form/Table_4ae6d2e.js deleted file mode 100644 index 0b10d026d..000000000 --- a/gh-pages/docs/renderers/Form/Table_4ae6d2e.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Table.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Table(FormItem)

可以用来展现数据的,可以用来展示数组类型的数据,比如 multiple 的子 form

\n\n
\n

当然也可以用来作为表单输入。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"table"指定为 Table 渲染器
addablebooleanfalse是否可增加一行
editablebooleanfalse是否可编辑
removablebooleanfalse是否可删除
showAddBtnbooleantrue是否显示添加按钮
addApiapi-新增时提交的 API
updateApiapi-修改时提交的 API
deleteApiapi-删除时提交的 API
addBtnLabelstring增加按钮名称
addBtnIconstring"fa fa-plus"增加按钮图标
updateBtnLabelstring""更新按钮名称
updateBtnIconstring"fa fa-pencil"更新按钮图标
deleteBtnLabelstring""删除按钮名称
deleteBtnIconstring"fa fa-minus"删除按钮图标
confirmBtnLabelstring""确认编辑按钮名称
confirmBtnIconstring"fa fa-check"确认编辑按钮图标
cancelBtnLabelstring""取消编辑按钮名称
cancelBtnIconstring"fa fa-times"取消编辑按钮图标
columnsarray[]列信息
columns[x].quickEditboolean 或者 object-配合 editable 为 true 一起使用
columns[x].quickEditOnUpdateboolean 或者 object-可以用来区分新建模式和更新模式的编辑配置
\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Table.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Table(FormItem)", - "fragment": "table-formitem-", - "fullPath": "#table-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Tabs.html b/gh-pages/docs/renderers/Form/Tabs.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Tabs.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/TabsTransfer.html b/gh-pages/docs/renderers/Form/TabsTransfer.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/TabsTransfer.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/TabsTransfer_c8d136a.js b/gh-pages/docs/renderers/Form/TabsTransfer_c8d136a.js deleted file mode 100644 index f95bb3c94..000000000 --- a/gh-pages/docs/renderers/Form/TabsTransfer_c8d136a.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/TabsTransfer.md', function(require, exports, module, define) { - - module.exports = { - "html": "

组合穿梭器(TabsTransfer)

穿梭器(Transfer)的基础上扩充了左边的展示形式,支持 Tabs 的形式展示。对应的 options 的顶级数据,顶层 options 的成员支持 selectMode 配置这个 tab 下面的选项怎么展示。title 可以配置 tab 的标题。

\n

比如:

\n
\n

更多配置请参考穿梭器(Transfer)

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/TabsTransfer.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "组合穿梭器(TabsTransfer)", - "fragment": "%E7%BB%84%E5%90%88%E7%A9%BF%E6%A2%AD%E5%99%A8-tabstransfer-", - "fullPath": "#%E7%BB%84%E5%90%88%E7%A9%BF%E6%A2%AD%E5%99%A8-tabstransfer-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Tabs_f7d0349.js b/gh-pages/docs/renderers/Form/Tabs_f7d0349.js deleted file mode 100644 index a560d0dd8..000000000 --- a/gh-pages/docs/renderers/Form/Tabs_f7d0349.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Tabs.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Tabs(FormItem)

多个输入框也可以通过选项卡来分组。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Tabs.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Tabs(FormItem)", - "fragment": "tabs-formitem-", - "fullPath": "#tabs-formitem-", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Tag.html b/gh-pages/docs/renderers/Form/Tag.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Tag.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Tag_a3aaf96.js b/gh-pages/docs/renderers/Form/Tag_a3aaf96.js deleted file mode 100644 index 7e2800b87..000000000 --- a/gh-pages/docs/renderers/Form/Tag_a3aaf96.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Tag.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Tag

标签输入框。

\n\n
\n

待选项的标签输入。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Tag.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Tag", - "fragment": "tag", - "fullPath": "#tag", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Text.html b/gh-pages/docs/renderers/Form/Text.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Text.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Text_0fa050d.js b/gh-pages/docs/renderers/Form/Text_0fa050d.js deleted file mode 100644 index 6053b7ef9..000000000 --- a/gh-pages/docs/renderers/Form/Text_0fa050d.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Text.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Text

普通的文本输入框。

\n\n
\n

带提示功能

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Text.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Text", - "fragment": "text", - "fullPath": "#text", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Textarea.html b/gh-pages/docs/renderers/Form/Textarea.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Textarea.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Textarea_2f46130.js b/gh-pages/docs/renderers/Form/Textarea_2f46130.js deleted file mode 100644 index f830252e1..000000000 --- a/gh-pages/docs/renderers/Form/Textarea_2f46130.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Textarea.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Textarea

多行文本输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Textarea.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Textarea", - "fragment": "textarea", - "fullPath": "#textarea", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Time.html b/gh-pages/docs/renderers/Form/Time.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Time.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Time_a87409c.js b/gh-pages/docs/renderers/Form/Time_a87409c.js deleted file mode 100644 index 72e7d1336..000000000 --- a/gh-pages/docs/renderers/Form/Time_a87409c.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Time.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Time

时间类型。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Time.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Time", - "fragment": "time", - "fullPath": "#time", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Transfer.html b/gh-pages/docs/renderers/Form/Transfer.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Transfer.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Transfer_1a1e52b.js b/gh-pages/docs/renderers/Form/Transfer_1a1e52b.js deleted file mode 100644 index b3202bd31..000000000 --- a/gh-pages/docs/renderers/Form/Transfer_1a1e52b.js +++ /dev/null @@ -1,40 +0,0 @@ -amis.define('docs/renderers/Form/Transfer.md', function(require, exports, module, define) { - - module.exports = { - "html": "

穿梭器(Transfer)

适用于需选择的数据/信息源较多时,用户可直观的知道自己所选择的数据/信息的场景,一般左侧框为数据/信息源,右侧为已选数据/信息,被选中信息同时存在于 2 个框内。

\n\n\n
\n

更多示例

\n

接口说明

开始之前请你先阅读整体要求

\n

source

发送

\n

默认 GET,不携带数据,可从上下文中取数据设置进去。

\n

响应

\n

格式要求如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"options\": [\n      {\n        \"label\": \"描述\",\n        \"value\": \"值\" // ,\n        // \"children\": [] // 可以嵌套\n      },\n\n      {\n        \"label\": \"描述2\",\n        \"value\": \"值2\"\n      }\n    ],\n\n    \"value\": \"值\" // 默认值,可以获取列表的同时设置默认值。\n  }\n}\n
\n

searchApi

发送

\n

默认 GET,携带 term 变量,值为搜索框输入的文字,可从上下文中取数据设置进去。

\n

响应

\n

格式要求如下:

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"options\": [\n      {\n        \"label\": \"描述\",\n        \"value\": \"值\" // ,\n        // \"children\": [] // 可以嵌套\n      },\n\n      {\n        \"label\": \"描述2\",\n        \"value\": \"值2\"\n      }\n    ],\n\n    \"value\": \"值\" // 默认值,可以获取列表的同时设置默认值。\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Transfer.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "穿梭器(Transfer)", - "fragment": "%E7%A9%BF%E6%A2%AD%E5%99%A8-transfer-", - "fullPath": "#%E7%A9%BF%E6%A2%AD%E5%99%A8-transfer-", - "level": 3 - }, - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "source", - "fragment": "source", - "fullPath": "#source", - "level": 4 - }, - { - "label": "searchApi", - "fragment": "searchapi", - "fullPath": "#searchapi", - "level": 4 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Tree.html b/gh-pages/docs/renderers/Form/Tree.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Tree.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/TreeSelect.html b/gh-pages/docs/renderers/Form/TreeSelect.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/TreeSelect.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/TreeSelect_a2839ac.js b/gh-pages/docs/renderers/Form/TreeSelect_a2839ac.js deleted file mode 100644 index e32ec301f..000000000 --- a/gh-pages/docs/renderers/Form/TreeSelect_a2839ac.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/TreeSelect.md', function(require, exports, module, define) { - - module.exports = { - "html": "

TreeSelect

树形结构选择框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/TreeSelect.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "TreeSelect", - "fragment": "treeselect", - "fullPath": "#treeselect", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Tree_f0b622f.js b/gh-pages/docs/renderers/Form/Tree_f0b622f.js deleted file mode 100644 index 72f4a97c6..000000000 --- a/gh-pages/docs/renderers/Form/Tree_f0b622f.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Tree.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Tree

树形结构输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Tree.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Tree", - "fragment": "tree", - "fullPath": "#tree", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Form/Url.html b/gh-pages/docs/renderers/Form/Url.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Form/Url.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Form/Url_6893cc6.js b/gh-pages/docs/renderers/Form/Url_6893cc6.js deleted file mode 100644 index 09acbfdc1..000000000 --- a/gh-pages/docs/renderers/Form/Url_6893cc6.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Form/Url.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Url

URL 输入框。

\n\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Form/Url.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Url", - "fragment": "url", - "fullPath": "#url", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Grid.html b/gh-pages/docs/renderers/Grid.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Grid.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Grid_2df5b62.js b/gh-pages/docs/renderers/Grid_2df5b62.js deleted file mode 100644 index a1a45b655..000000000 --- a/gh-pages/docs/renderers/Grid_2df5b62.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Grid.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Grid

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"grid"指定为 Grid 渲染器
classNamestring外层 Dom 的类名
columnsArray列集合
columns[x]Container成员可以是其他渲染器
columns[x].xsint宽度占比: 1 - 12
columns[x].xsHiddenboolean是否隐藏
columns[x].xsOffsetint偏移量 1 - 12
columns[x].xsPullint靠左的距离占比:1 - 12
columns[x].xsPushint靠右的距离占比: 1 - 12
columns[x].smint宽度占比: 1 - 12
columns[x].smHiddenboolean是否隐藏
columns[x].smOffsetint偏移量 1 - 12
columns[x].smPullint靠左的距离占比:1 - 12
columns[x].smPushint靠右的距离占比: 1 - 12
columns[x].mdint宽度占比: 1 - 12
columns[x].mdHiddenboolean是否隐藏
columns[x].mdOffsetint偏移量 1 - 12
columns[x].mdPullint靠左的距离占比:1 - 12
columns[x].mdPushint靠右的距离占比: 1 - 12
columns[x].lgint宽度占比: 1 - 12
columns[x].lgHiddenboolean是否隐藏
columns[x].lgOffsetint偏移量 1 - 12
columns[x].lgPullint靠左的距离占比:1 - 12
columns[x].lgPushint靠右的距离占比: 1 - 12
\n

更多使用说明,请参看 Grid Props

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Grid.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Grid", - "fragment": "grid", - "fullPath": "#grid", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/HBox.html b/gh-pages/docs/renderers/HBox.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/HBox.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/HBox_79a17cd.js b/gh-pages/docs/renderers/HBox_79a17cd.js deleted file mode 100644 index e39c73079..000000000 --- a/gh-pages/docs/renderers/HBox_79a17cd.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/HBox.md', function(require, exports, module, define) { - - module.exports = { - "html": "

HBox

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"hbox"指定为 HBox 渲染器
classNamestring外层 Dom 的类名
columnsArray列集合
columns[x]Container成员可以是其他渲染器
columns[x].columnClassNamestring"wrapper-xs"列上类名
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/HBox.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "HBox", - "fragment": "hbox", - "fullPath": "#hbox", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Html.html b/gh-pages/docs/renderers/Html.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Html.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Html_1ee09ea.js b/gh-pages/docs/renderers/Html_1ee09ea.js deleted file mode 100644 index 3a53838b2..000000000 --- a/gh-pages/docs/renderers/Html_1ee09ea.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Html.md', function(require, exports, module, define) { - - module.exports = { - "html": "

\bHTML

当需要用到变量时,请用 Tpl 代替。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Html.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "\bHTML", - "fragment": "-html", - "fullPath": "#-html", - "level": 1 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/JSON.html b/gh-pages/docs/renderers/JSON.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/JSON.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/JSON_da34db9.js b/gh-pages/docs/renderers/JSON_da34db9.js deleted file mode 100644 index b7e76bb8e..000000000 --- a/gh-pages/docs/renderers/JSON_da34db9.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/JSON.md', function(require, exports, module, define) { - - module.exports = { - "html": "

JSON

可以用来显示深层嵌套的 JSON 内容。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"json"指定为 JSON 渲染器
namestring用于 CRUD 或 Form 中,通过这个 name 来获取数值
jsonThemestring"twilight"颜色主题,还有一个是 "eighties"
levelExpandnumber1默认展开的层级
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/JSON.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "JSON", - "fragment": "json", - "fullPath": "#json", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/List.html b/gh-pages/docs/renderers/List.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/List.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/List_cb69bf8.js b/gh-pages/docs/renderers/List_cb69bf8.js deleted file mode 100644 index 7fd1de530..000000000 --- a/gh-pages/docs/renderers/List_cb69bf8.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/List.md', function(require, exports, module, define) { - - module.exports = { - "html": "

List

列表展示。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"list" 指定为列表展示。
titlestring标题
sourcestring${items}数据源, 绑定当前环境变量
placeholderstring‘暂无数据’当没数据的时候的文字提示
classNamestring外层 CSS 类名
headerClassNamestringamis-list-header顶部外层 CSS 类名
footerClassNamestringamis-list-footer底部外层 CSS 类名
listItemArray配置单条信息
listItem.titlestring标题,支持模板语法如: \\${xxx}
listItem.titleClassNamestringh5标题 CSS 类名
listItem.subTitlestring副标题,支持模板语法如: \\${xxx}
listItem.avatarstring图片地址,支持模板语法如: \\${xxx}
listItem.avatarClassNamestringthumb-sm avatar m-r图片 CSS 类名
listItem.descstring描述,支持模板语法如: \\${xxx}
listItem.bodyArray 或者 Field内容容器,主要用来放置 Field
listItem.actionsArray Of Button按钮区域
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/List.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "List", - "fragment": "list", - "fullPath": "#list", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Nav.html b/gh-pages/docs/renderers/Nav.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Nav.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Nav_2fcdf44.js b/gh-pages/docs/renderers/Nav_2fcdf44.js deleted file mode 100644 index 7ca31658c..000000000 --- a/gh-pages/docs/renderers/Nav_2fcdf44.js +++ /dev/null @@ -1,26 +0,0 @@ -amis.define('docs/renderers/Nav.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Nav

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tabs"指定为 Nav 渲染器
classNamestring外层 Dom 的类名
stackedbooleantrue设置成 false 可以以 tabs 的形式展示
sourceApistring动态拉取的 api 地址,也支持${xxx}获取变量
linksArray链接集合
links[x].labelstring名称
links[x].tostring链接地址
links[x].iconstring图标
links[x].activeboolean是否高亮
links[x].activeOn表达式是否高亮的条件,留空将自动分析链接地址
\n

链接集合。

\n
\n
\n

source 返回格式

{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": [\n    {\n      \"label\": \"Nav 1\",\n      \"to\": \"/docs/index\",\n      \"icon\": \"fa fa-user\"\n    },\n\n    {\n      \"label\": \"Nav 2\",\n      \"to\": \"/docs/api\"\n    },\n\n    {\n      \"label\": \"Nav 3\",\n      \"to\": \"/docs/renderers\"\n    }\n  ]\n}\n
\n

或者

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"links\": [ // 可选字段值:options, items, rows\n      {\n        \"label\": \"Nav 1\",\n        \"to\": \"/docs/index\",\n        \"icon\": \"fa fa-user\"\n      },\n\n      {\n        \"label\": \"Nav 2\",\n        \"to\": \"/docs/api\"\n      },\n\n      {\n        \"label\": \"Nav 3\",\n        \"to\": \"/docs/renderers\"\n      }\n    ]\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Nav.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Nav", - "fragment": "nav", - "fullPath": "#nav", - "level": 2 - }, - { - "label": "source 返回格式", - "fragment": "source-%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F", - "fullPath": "#source-%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Operation.html b/gh-pages/docs/renderers/Operation.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Operation.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Operation_de3557f.js b/gh-pages/docs/renderers/Operation_de3557f.js deleted file mode 100644 index 101dc5503..000000000 --- a/gh-pages/docs/renderers/Operation_de3557f.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Operation.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Operation

表格列中的操作栏,用来放置按钮集合,只能放在 table 的列配置中。

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Operation.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Operation", - "fragment": "operation", - "fullPath": "#operation", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Page.html b/gh-pages/docs/renderers/Page.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Page.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Page_6c0b253.js b/gh-pages/docs/renderers/Page_6c0b253.js deleted file mode 100644 index 780c946e3..000000000 --- a/gh-pages/docs/renderers/Page_6c0b253.js +++ /dev/null @@ -1,36 +0,0 @@ -amis.define('docs/renderers/Page.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Page

页面渲染器,他主要包含标题,副标题,提示信息等设置,需要注意的是,他有三个容器区域分别是:内容区、边栏区和工具条区,在容器里面放不同的渲染器,就能配置出不同的页面来。

\n

可以配置 initApi 从远端拉取数据,拉取的数据可以在整个页面级别使用。

\n
\n
\n

PS: 代码支持及时编辑预览

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"page"指定为 Page 渲染器。
titlestring页面标题
subTitlestring页面副标题
remarkstring标题附近会出现一个提示图标,鼠标放上去会提示该内容。
asideContainer往页面的边栏区域加内容
toolbarContainer往页面的右上角加内容,需要注意的是,当有 Title 是,区域在右上角,没有时区域就在顶部
bodyContainer往页面的内容区域加内容
classNamestring外层 dom 类名
toolbarClassNamestringv-middle wrapper text-right bg-light b-bToolbar dom 类名
bodyClassNamestringwrapperBody dom 类名
asideClassNamestringw page-aside-region bg-autoAside dom 类名
headerClassNamestringbg-light b-b wrapperHeader 区域 dom 类名
initApiApiPage 用来获取初始数据的 api。返回的数据可以整个 page 级别使用。
initFetchbooleantrue是否起始拉取 initApi
initFetchOnstring是否起始拉取 initApi, 通过表达式配置
intervalnumber3000刷新时间(最低 3000),单位是毫秒
silentPollingbooleanfalse配置刷新时是否隐藏加载动画
stopAutoRefreshWhenstring""通过表达式来配置停止刷新的条件
\n

接口说明

开始之前请你先阅读整体要求

\n

initApi

Page 渲染器可以配置 initApi 来拉取后端数据。

\n

发送:

\n

默认不发送任何参数,如果有需要,在这可以取地址栏上的参数,假如地址栏携带了 id=1 这个参数, 那么接口这么配置就能把 id 作为 query 参数发送给后端。

\n
{\n  \"initApi\": \"/api/xxx?id=${id}\"\n}\n
\n

响应:

\n

data 返回是对象即可。

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"a\": 1\n  }\n}\n
\n

当配置了 initApi 且返回如上数据后,当前 page 渲染器,以及所有孩子渲染器都能取到这个这个变量了如:

\n
{\n  \"type\": \"page\",\n  \"initApi\": \"/api/xxx\",\n  \"body\": \"${a}\"\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Page.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Page", - "fragment": "page", - "fullPath": "#page", - "level": 2, - "children": [ - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "initApi", - "fragment": "initapi", - "fullPath": "#initapi", - "level": 4 - } - ] - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Panel.html b/gh-pages/docs/renderers/Panel.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Panel.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Panel_10aa4f4.js b/gh-pages/docs/renderers/Panel_10aa4f4.js deleted file mode 100644 index dcffd1ec3..000000000 --- a/gh-pages/docs/renderers/Panel_10aa4f4.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Panel.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Panel

可以把相关信息以盒子的形式展示到一块。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"panel"指定为 Panel 渲染器
classNamestring"panel-default"外层 Dom 的类名
headerClassNamestring"panel-heading"header 区域的类名
footerClassNamestring"panel-footer bg-light lter wrapper"footer 区域的类名
actionsClassNamestring"panel-footer"actions 区域的类名
bodyClassNamestring"panel-body"body 区域的类名
titlestring标题
headerContainer顶部容器
bodyContainer内容容器
footerContainer底部容器
affixFooterboolean是否固定底部容器
actionsArray Of Button按钮区域
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Panel.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Panel", - "fragment": "panel", - "fullPath": "#panel", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Plain.html b/gh-pages/docs/renderers/Plain.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Plain.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Plain_ba4ec78.js b/gh-pages/docs/renderers/Plain_ba4ec78.js deleted file mode 100644 index ecb88b4df..000000000 --- a/gh-pages/docs/renderers/Plain_ba4ec78.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Plain.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Plain

plain, 单纯的文字输出来,像 tpl 一样支持变量,区别在于内容不支持 html 标签。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Plain.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Plain", - "fragment": "plain", - "fullPath": "#plain", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/QRCode.html b/gh-pages/docs/renderers/QRCode.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/QRCode.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/QRCode_234ed43.js b/gh-pages/docs/renderers/QRCode_234ed43.js deleted file mode 100644 index 80bb33aa9..000000000 --- a/gh-pages/docs/renderers/QRCode_234ed43.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/QRCode.md', function(require, exports, module, define) { - - module.exports = { - "html": "

QRCode

二维码显示组件

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"qr-code"指定为 QRCode 渲染器
classNamestring外层 Dom 的类名
codeSizenumber128二维码的宽高大小
backgroundColorstring"#fff"二维码背景色
foregroundColorstring"#000"二维码前景色
levelstring"L"二维码复杂级别,有('L' 'M' 'Q' 'H')四种
valuestring"https://www.baidu.com"扫描二维码后显示的文本,如果要显示某个页面请输入完整 url("http://...""https://..."开头),支持使用 ${xxx} 来获取变量
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/QRCode.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "QRCode", - "fragment": "qrcode", - "fullPath": "#qrcode", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Service.html b/gh-pages/docs/renderers/Service.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Service.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Service_93518c2.js b/gh-pages/docs/renderers/Service_93518c2.js deleted file mode 100644 index 9349b114d..000000000 --- a/gh-pages/docs/renderers/Service_93518c2.js +++ /dev/null @@ -1,28 +0,0 @@ -amis.define('docs/renderers/Service.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Service

功能型容器,自身不负责展示内容,主要职责在于通过配置的 api 拉取数据,数据可用于子组件。\n该组件初始化时就会自动拉取一次数据,后续如果需要刷新,请结合 Action 实现,可以把 Action 的 actionType 设置为 reload, target 为该组件的 name 值。\n同时该组件,还支持 api 数值自动监听,比如 getData?type=$type 只要当前环境 type 值发生变化,就会自动重新拉取。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"service"指定为 service 渲染器
classNamestring外层 Dom 的类名
bodyContainer内容容器
apiapi数据源 API 地址
initFetchboolean是否默认拉取
schemaApiapi用来获取远程 Schema 的 api
initFetchSchemaboolean是否默认拉取 Schema
messagesObject消息提示覆写,默认消息读取的是 API 返回的消息,但是在此可以覆写它。
messages.fetchSuccessstring获取成功时提示
messages.fetchFailedstring"初始化失败"获取失败时提示
intervalnumber3000刷新时间(最低 3000),单位是毫秒
silentPollingbooleanfalse配置刷新时是否显示加载动画
stopAutoRefreshWhenstring""通过表达式来配置停止刷新的条件
\n
\n

动态配置

Service 还有个重要的功能就是支持配置 schemaApi,通过它可以实现动态渲染。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Service.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Service", - "fragment": "service", - "fullPath": "#service", - "level": 2, - "children": [ - { - "label": "动态配置", - "fragment": "%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE", - "fullPath": "#%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Static.html b/gh-pages/docs/renderers/Static.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Static.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Static_483ca85.js b/gh-pages/docs/renderers/Static_483ca85.js deleted file mode 100644 index dacb6fd87..000000000 --- a/gh-pages/docs/renderers/Static_483ca85.js +++ /dev/null @@ -1,26 +0,0 @@ -amis.define('docs/renderers/Static.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Static

纯用来展现数据的。

\n\n
\n

Static-XXX

\n

纯用来展示数据的,用法跟 crud 里面的Column一样, 且支持 quickEdit 和 popOver 功能。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Static.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Static", - "fragment": "static", - "fullPath": "#static", - "level": 3 - }, - { - "label": "Static-XXX", - "fragment": "static-xxx", - "fullPath": "#static-xxx", - "level": 3 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Table.html b/gh-pages/docs/renderers/Table.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Table.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Table_01faf1c.js b/gh-pages/docs/renderers/Table_01faf1c.js deleted file mode 100644 index e0681c657..000000000 --- a/gh-pages/docs/renderers/Table_01faf1c.js +++ /dev/null @@ -1,58 +0,0 @@ -amis.define('docs/renderers/Table.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Table

表格展示,不负责拉取数据,所以你需要配置 source 用来关联数据,一般需要搭配其他具备获取接口数据能力的渲染器一起使用,比如: Page 的 initApi 或者 Service 的 api。有了数据后,配置 columns 就能完成渲染了。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"type" 指定为 table 渲染器
titlestring标题
sourcestring${items}数据源, 绑定当前环境变量
affixHeaderbooleantrue是否固定表头
columnsTogglableauto 或者 booleanauto展示列显示开关, 自动即:列数量大于或等于 5 个时自动开启
placeholderstring暂无数据当没数据的时候的文字提示
classNamestringpanel-default外层 CSS 类名
tableClassNamestringtable-db table-striped表格 CSS 类名
headerClassNamestringAction.md-table-header顶部外层 CSS 类名
footerClassNamestringAction.md-table-footer底部外层 CSS 类名
toolbarClassNamestringAction.md-table-toolbar工具栏 CSS 类名
columnsArray of Column用来设置列信息
combineNumnumber自动合并单元格
\n
\n

列开关

默认 columnsTogglable 配置为 auto,当列超过 5 列后,就会在工具栏多渲染出来一个列展示与否的开关。你可以设置成 true 或者 false 来强制开或者关。在列配置中可以通过配置 toggledfalse 默认不展示这列,比如下面这个栗子中 ID 这一栏。

\n
\n

嵌套

当行数据中存在 children 属性时,可以自动嵌套显示下去。示例:https://baidu.github.io/amis/crud/nested?page=1

\n
\n

底部展示 (Footable)

列太多时,内容没办法全部显示完,可以让部分信息在底部显示,可以让用户展开查看详情。配置很简单,只需要开启 footable 属性,同时将想在底部展示的列加个 breakpoint 属性为 * 即可。

\n

示例:https://baidu.github.io/amis/crud/footable?page=1

\n
\n

默认都不会展开,如果你想默认展开第一个就把 footable 配置成这样。

\n
{\n    \"footable\": {\n        \"expand\": \"first\"\n    }\n}\n
\n

当配置成 all 时表示全部展开。

\n

合并单元格

只需要配置 combineNum 属性即可,他表示从左到右多少列内启动自动合并单元格,只要多行的同一个属性值是一样的,就会自动合并。

\n

示例:https://baidu.github.io/amis/crud/merge-cell

\n
\n

超级表头

超级表头意思是,表头还可以再一次进行分组。额外添加个 groupName 属性即可。

\n

示例:https://baidu.github.io/amis/crud/header-group

\n
\n

固定列

列太多可以让重要的几列固定,可以配置固定在左侧还是右侧,只需要给需要固定的列上配置 fixed 属性,配置 left 或者 right

\n

示例:https://baidu.github.io/amis/crud/fixed

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Table.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Table", - "fragment": "table", - "fullPath": "#table", - "level": 2, - "children": [ - { - "label": "列开关", - "fragment": "%E5%88%97%E5%BC%80%E5%85%B3", - "fullPath": "#%E5%88%97%E5%BC%80%E5%85%B3", - "level": 3 - }, - { - "label": "嵌套", - "fragment": "%E5%B5%8C%E5%A5%97", - "fullPath": "#%E5%B5%8C%E5%A5%97", - "level": 3 - }, - { - "label": "底部展示 (Footable)", - "fragment": "%E5%BA%95%E9%83%A8%E5%B1%95%E7%A4%BA-footable-", - "fullPath": "#%E5%BA%95%E9%83%A8%E5%B1%95%E7%A4%BA-footable-", - "level": 3 - }, - { - "label": "合并单元格", - "fragment": "%E5%90%88%E5%B9%B6%E5%8D%95%E5%85%83%E6%A0%BC", - "fullPath": "#%E5%90%88%E5%B9%B6%E5%8D%95%E5%85%83%E6%A0%BC", - "level": 3 - }, - { - "label": "超级表头", - "fragment": "%E8%B6%85%E7%BA%A7%E8%A1%A8%E5%A4%B4", - "fullPath": "#%E8%B6%85%E7%BA%A7%E8%A1%A8%E5%A4%B4", - "level": 3 - }, - { - "label": "固定列", - "fragment": "%E5%9B%BA%E5%AE%9A%E5%88%97", - "fullPath": "#%E5%9B%BA%E5%AE%9A%E5%88%97", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Tabs.html b/gh-pages/docs/renderers/Tabs.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Tabs.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Tabs_01ea13a.js b/gh-pages/docs/renderers/Tabs_01ea13a.js deleted file mode 100644 index b870b8508..000000000 --- a/gh-pages/docs/renderers/Tabs_01ea13a.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Tabs.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Tabs

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tabs"指定为 Tabs 渲染器
classNamestring外层 Dom 的类名
tabsClassNamestringTabs Dom 的类名
activeKeynumberstring配置默认展示的 tab。配置tabstabhash值,或者配置需要展示第ntab0 是第一个
tabsArraytabs 内容
toolbarContainertabs 中的工具栏
toolbarClassNamestringtabs 中工具栏的类名
tabs[x].titlestringTab 标题
tabs[x].iconiconTab 的图标
tabs[x].tabContainer内容区
tabs[x].hashstring设置以后将跟 url 的 hash 对应
tabs[x].reloadboolean设置以后内容每次都会重新渲染,对于 crud 的重新拉取很有用
tabs[x].unmountOnExitboolean每次退出都会销毁当前 tab 栏内容
tabs[x].classNamestring"bg-white b-l b-r b-b wrapper-md"Tab 区域样式
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Tabs.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Tabs", - "fragment": "tabs", - "fullPath": "#tabs", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Tasks.html b/gh-pages/docs/renderers/Tasks.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Tasks.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Tasks_e7740fb.js b/gh-pages/docs/renderers/Tasks_e7740fb.js deleted file mode 100644 index 4a307e6e4..000000000 --- a/gh-pages/docs/renderers/Tasks_e7740fb.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Tasks.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Tasks

任务操作集合,类似于 orp 上线。

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tasks"指定为 Tasks 渲染器
classNamestring外层 Dom 的类名
tableClassNamestringtable Dom 的类名
itemsArray任务列表
items[x].labelstring任务名称
items[x].keystring任务键值,请唯一区分
items[x].remarkstring当前任务状态,支持 html
items[x].statusstring任务状态: 0: 初始状态,不可操作。1: 就绪,可操作状态。2: 进行中,还没有结束。3:有错误,不可重试。4: 已正常结束。5:有错误,且可以重试。
checkApiapi返回任务列表,返回的数据请参考 items。
submitApiapi提交任务使用的 API
reSubmitApiapi如果任务失败,且可以重试,提交的时候会使用此 API
intervalnumber3000当有任务进行中,会每隔一段时间再次检测,而时间间隔就是通过此项配置,默认 3000,单位是毫秒
taskNameLabelstring任务名称任务名称列说明
operationLabelstring操作操作列说明
statusLabelstring状态状态列说明
remarkLabelstring备注备注列说明
btnTextstring上线操作按钮文字
retryBtnTextstring重试重试操作按钮文字
btnClassNamestringbtn-sm btn-default配置容器按钮 className
retryBtnClassNamestringbtn-sm btn-danger配置容器重试按钮 className
statusLabelMaparray["label-warning", "label-info", "label-success", "label-danger", "label-default", "label-danger"]状态显示对应的类名配置
statusTextMaparray["未开始", "就绪", "进行中", "出错", "已完成", "出错"]状态显示对应的文字显示配置
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Tasks.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Tasks", - "fragment": "tasks", - "fullPath": "#tasks", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Tpl.html b/gh-pages/docs/renderers/Tpl.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Tpl.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Tpl_75b23ac.js b/gh-pages/docs/renderers/Tpl_75b23ac.js deleted file mode 100644 index 817a892d5..000000000 --- a/gh-pages/docs/renderers/Tpl_75b23ac.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Tpl.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Tpl

tpl 类型的渲染器支持用 JS 模板引擎来组织输出,采用的 lodash 的 template,关于语法部分,请前往 lodash 文档页面。

\n
\n

仔细看示例不难发现,语法跟 ejs 很像,<% 这里面是 js 语句 %>,所以只要会写 js,做页面渲染没有什么问题。另外以下是一些可用 js 方法。

\n\n

如:

\n
{\n  \"data\": {\n    \"user\": \"no one\"\n  },\n  \"body\": {\n    \"type\": \"tpl\",\n    \"tpl\": \"User: <%= formatDate(data.time, 'YYYY-MM-DD') %>\"\n  }\n}\n
\n

如果只想简单取下变量,可以用 $xxx 或者 ${xxx}。同时如果不指定渲染器类型,默认就是 tpl, 所以以上示例可以简化为。

\n
\n

取值支持多级,如果层级比较深可以用 . 来分割如: ${xx.xxx.xx}\n另外 $& 表示直接获取当前的 data

\n
\n
\n

注意:$xxx 与 <%= data.xxx %> 这两种语法不能同时使用,只有一种有效,所以不要交叉使用。

\n

通过 $xxx 取到的值,默认是会做 html 转义的,也就是说 $xxx 完全等价于 ${xxx | html}, 如果你想什么都不做,那么请这么写 ${xxx | raw}

\n

从上面的语法可以看出来,取值时是支持指定 filter 的,那么有哪些 filter 呢?

\n\n

组合使用。

\n\n

没有找到合适的?可以自定义 filter。如果是 AMIS 平台用户,可以将以下代码加入到自定义组件中,如果不是请想办法插入以下代码。

\n
import {registerFilter} from 'amis';\n\nregisterFilter('myfilter', (input: string) => `${input}Boom`);\n
\n

加入成功后就可以这样使用了 ${xxx | myfilter}。 如果 xxx 的值是 abc 那么输出将会是 abcBoom

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Tpl.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Tpl", - "fragment": "tpl", - "fullPath": "#tpl", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Types.html b/gh-pages/docs/renderers/Types.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Types.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Types_8aa1add.js b/gh-pages/docs/renderers/Types_8aa1add.js deleted file mode 100644 index cb292b70a..000000000 --- a/gh-pages/docs/renderers/Types_8aa1add.js +++ /dev/null @@ -1,40 +0,0 @@ -amis.define('docs/renderers/Types.md', function(require, exports, module, define) { - - module.exports = { - "html": "

类型说明

Container

Container 不是一个特定的渲染器,而是 amis 中一个特殊类型,它是以下类型的任何一种。

\n\n

示例:

\n
{\n  \"container\": \"普通一段字符串\"\n}\n
\n
{\n  \"container\": {\n    \"type\": \"button\",\n    \"label\": \"按钮\"\n  }\n}\n
\n
{\n  \"container\": [\n    \"普通一段字符串\",\n\n    {\n      \"type\": \"button\",\n      \"label\": \"按钮\"\n    },\n\n    [\"普通一段字符串\", \"普通一段字符串\"]\n  ]\n}\n
\n

API

Api 类型可以是字符串或者对象。API 中可以直接设置数据发送结构,注意看示例。

\n\n

如:

\n
* `get:http://imis.tieba.baidu.com/yule/list?start=$startTime&end=$endTime`\n* `get:http://imis.tieba.baidu.com/yule/list?$$` 拿所有可用数据。\n* `get:http://imis.tieba.baidu.com/yule/list?data=$$` 拿所有可用数据。\n
\n

注意

\n

amis 平台中使用所有的 http 地址 url 的如: "http://www.baidu.com" 都会被替换成 proxy 代理,如果不希望这么做,请明确指示如: "raw:http://www.baidu.com"。还有为了安全,amis 默认只能转发公司内部 API 接口,如果您的接口在外网环境,也请明确指示如:"external:http://www.baidu.com"

\n

表达式

配置项中,所有 boolean 类型的配置,都可以用 JS 表达式来配置。所有boolean 配置项,后面加个 On 则是表达式配置方式,可以用 js 语法来根据当前模型中的数据来决定是否启用。\n如:FormItem 中的 disabledOnhiddenOnvisibleOnCRUD 中的 itemDraggableOn 等等。

\n
\n

为了能加入权限控制,表达是中允许可以用 acl.can 方法来检测当前用户是否拥有某个权限。\n如: {"disabledOn": "!acl.can('some-resource')"}。权限能力部分,请前往能力管理,\n权限配置请前往权限配置管理。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Types.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "类型说明", - "fragment": "%E7%B1%BB%E5%9E%8B%E8%AF%B4%E6%98%8E", - "fullPath": "#%E7%B1%BB%E5%9E%8B%E8%AF%B4%E6%98%8E", - "level": 2, - "children": [ - { - "label": "Container", - "fragment": "container", - "fullPath": "#container", - "level": 3 - }, - { - "label": "API", - "fragment": "api", - "fullPath": "#api", - "level": 3 - }, - { - "label": "表达式", - "fragment": "%E8%A1%A8%E8%BE%BE%E5%BC%8F", - "fullPath": "#%E8%A1%A8%E8%BE%BE%E5%BC%8F", - "level": 3 - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Video.html b/gh-pages/docs/renderers/Video.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Video.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Video_34ce435.js b/gh-pages/docs/renderers/Video_34ce435.js deleted file mode 100644 index 854832078..000000000 --- a/gh-pages/docs/renderers/Video_34ce435.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Video.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Video

视频播放器。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"video"指定为 video 渲染器
classNamestring外层 Dom 的类名
srcstring视频地址
isLivebooleanfalse是否为直播,视频为直播时需要添加上
posterstring视频封面地址
mutedboolean是否静音
autoPlayboolean是否自动播放
ratesarray倍数,格式为[1.0, 1.5, 2.0]
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Video.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Video", - "fragment": "video", - "fullPath": "#video", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Wizard.html b/gh-pages/docs/renderers/Wizard.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Wizard.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Wizard_fc89a19.js b/gh-pages/docs/renderers/Wizard_fc89a19.js deleted file mode 100644 index 049e26ffa..000000000 --- a/gh-pages/docs/renderers/Wizard_fc89a19.js +++ /dev/null @@ -1,48 +0,0 @@ -amis.define('docs/renderers/Wizard.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Wizard

表单向导,能够配置多个步骤引导用户一步一步完成表单提交。

\n\n
\n

接口说明

开始之前请你先阅读整体要求

\n

initApi

可以用来初始化表单数据。

\n

发送

\n

默认不携带任何参数,可以在上下文中取变量设置进去。

\n

响应

\n

要求返回的数据 data 是对象,不要返回其他格式,且注意层级问题,data 中返回的数据正好跟 form 中的变量一一对应。

\n
 {\n   status: 0,\n   msg: '',\n   data: {\n     a: '123'\n   }\n }\n

如果有个表单项的 name 配置成 a,initApi 返回后会自动填充 '123'。

\n

api

用来保存表单结果。

\n

发送

\n

默认为 POST 方式,会将所有表单项整理成一个对象发送过过去。

\n

响应

\n

如果 返回了 data 对象,且是对象,会把结果 merge 到表单数据里面。

\n

initAsyncApi

这个接口的作用在于解决接口耗时比较长导致超时问题的情况,当配置此接口后,初始化接口的时候先请求 initApi 如果 initApi 接口返回了 data.finished 为 true,则初始化完成。如果返回为 false 则之后每隔 3s 请求 initAsyncApi,直到接口返回了 data.finished 为 true 才结束。 用这种机制的话,业务 api 不需要完全等待操作完成才输出结果,而是直接检测状态,没完成也直接返回,后续还会发起请求检测。

\n

格式要求就是 data 是对象,且 有 finished 这个字段。返回的其他字段会被 merge 到表单数据里面。

\n
asyncApi

保存同样也可以采用异步模式,具体请参考 initAsyncApi。

\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Wizard.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Wizard", - "fragment": "wizard", - "fullPath": "#wizard", - "level": 2, - "children": [ - { - "label": "接口说明", - "fragment": "%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E", - "level": 3, - "children": [ - { - "label": "initApi", - "fragment": "initapi", - "fullPath": "#initapi", - "level": 4 - }, - { - "label": "api", - "fragment": "api", - "fullPath": "#api", - "level": 4 - }, - { - "label": "initAsyncApi", - "fragment": "initasyncapi", - "fullPath": "#initasyncapi", - "level": 4 - } - ] - } - ] - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/Wrapper.html b/gh-pages/docs/renderers/Wrapper.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/Wrapper.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/Wrapper_489c930.js b/gh-pages/docs/renderers/Wrapper_489c930.js deleted file mode 100644 index 819611713..000000000 --- a/gh-pages/docs/renderers/Wrapper_489c930.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/Wrapper.md', function(require, exports, module, define) { - - module.exports = { - "html": "

Wrapper

简单的一个容器。

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"wrapper"指定为 Wrapper 渲染器
classNamestring外层 Dom 的类名
sizestring支持: xssmmdlg
bodyContainer内容容器
\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Wrapper.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "Wrapper", - "fragment": "wrapper", - "fullPath": "#wrapper", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers/iFrame.html b/gh-pages/docs/renderers/iFrame.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/renderers/iFrame.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/renderers/iFrame_fd4f4c8.js b/gh-pages/docs/renderers/iFrame_fd4f4c8.js deleted file mode 100644 index 0026920ae..000000000 --- a/gh-pages/docs/renderers/iFrame_fd4f4c8.js +++ /dev/null @@ -1,20 +0,0 @@ -amis.define('docs/renderers/iFrame.md', function(require, exports, module, define) { - - module.exports = { - "html": "

iFrame

如果需要内嵌外部站点,可用 iframe 来实现。

\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/iFrame.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "iFrame", - "fragment": "iframe", - "fullPath": "#iframe", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/renderers_b49067c.js b/gh-pages/docs/renderers_b49067c.js deleted file mode 100644 index 3891fba67..000000000 --- a/gh-pages/docs/renderers_b49067c.js +++ /dev/null @@ -1,14 +0,0 @@ -amis.define('docs/renderers.md', function(require, exports, module, define) { - - module.exports = { - "title": "渲染器手册", - "html": "

amis 页面是由一个个渲染模型组成的,并且支持无限层级嵌套,掌握他们规则,就能灵活配置出各种页面。

\n

开始之前,请您一定要先阅读基本用法

\n\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/start/custom.html b/gh-pages/docs/start/custom.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/start/custom.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/start/custom_a165cb2.js b/gh-pages/docs/start/custom_a165cb2.js new file mode 100644 index 000000000..4a0cd454e --- /dev/null +++ b/gh-pages/docs/start/custom_a165cb2.js @@ -0,0 +1,79 @@ +amis.define('docs/start/custom.md', function(require, exports, module, define) { + + module.exports = { + "title": "自定义", + "html": "

如果默认的组件不能满足需求,可以通过自定义组件来进行扩展,在 amis 中有两种方法:

\n
    \n
  1. 临时扩展,适合无需复用的组件。
  2. \n
  3. 注册自定义类型,适合需要在很多地方复用的组件。
  4. \n
\n
\n

注意,自定义组件只支持 npm 方式,不支持 SDK

\n
\n

临时扩展

amis 的 JSON 配置最终会转成 React 组件来执行,所以如果只是想在某个配置中加入定制功能,可以直接在这个 JSON 配置里写 React 代码,比如下面这个例子:

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"form\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"label\": \"用户名\",\n        \"name\": \"usename\"\n      },\n      {\n        \"name\": \"mycustom\",\n        \"children\": ({\n          value,\n          onChange\n        }) => (\n          <div>\n            <p>这个是个自定义组件</p>\n            <p>当前值:{value}</p>\n            <a className=\"btn btn-default\" onClick={\n              () => onChange(Math.round(Math.random() * 10000))\n            }>随机修改</a>\n          </div>\n        )\n      }\n    ]\n  }\n}\n
\n

其中的 mycustom 就是一个临时扩展,它的 children 属性是一个函数,它的返回内容和 React 的 Render 方法一样,即 jsx,在这个方法里你可以写任意 JavaScript 来实现自己的定制需求,这个函数有两个参数 valueonChangevalue 就是组件的值,onChange 方法用来改变这个值,比如上面的例子中,点击链接后就会修改 mycustom 为一个随机数,在提交表单的时候就变成了这个随机数。

\n

与之类似的还有个 component 属性,这个属性可以传入 React Component,如果想用 React Hooks,请通过 component 传递,而不是 children

\n

这种扩展方式既简单又灵活,但它是写在配置中的,如果需要在很多地方,可以使用下面的「注册自定义类型」方式:

\n

注册自定义类型

注册自定义类型需要了解 amis 的工作原理。

\n

工作原理

amis 的渲染过程是将 json 转成对应的 React 组件。先通过 json 的 type 找到对应的 Component 然后,然后把其他属性作为 props 传递过去完成渲染。

\n

拿一个表单页面来说,如果用 React 组件开发一般长这样。

\n
<Page title=\"页面标题\" subTitle=\"副标题\">\n  <Form\n    title=\"用户登录\"\n    controls={[\n      {\n        type: 'text',\n        name: 'username',\n        label: '用户名'\n      }\n    ]}\n  />\n</Page>\n
\n

把以上配置方式换成 amis JSON, 则是:

\n
{\n  \"type\": \"page\",\n  \"title\": \"页面标题\",\n  \"subTitle\": \"副标题\",\n  \"body\": {\n    \"type\": \"form\",\n    \"title\": \"用户登录\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"name\": \"username\",\n        \"label\": \"用户名\"\n      }\n    ]\n  }\n}\n
\n

那么,amis 是如何将 JSON 转成组件的呢?直接根据节点的 type 去跟组件一一对应?这样会重名,比如在表格里面展示的类型 text 跟表单里面的 text 是完全不一样的,一个负责展示,一个却负责输入。所以说一个节点要被什么组件渲染,还需要携带上下文(context)信息。

\n

如何携带上下文(context)信息?amis 中是用节点的路径(path)来作为上下文信息。从上面的例子来看,一共有三个节点,path 信息分别是。

\n\n

根据 path 的信息就能很容易注册组件跟节点对应了。

\n

Page 组件的示例代码

\n
@Renderer({\n  test: /^page$/\n  // ... 其他信息隐藏了\n})\nexport class PageRenderer extends React.Component {\n  // ... 其他信息隐藏了\n  render() {\n    const {\n      title,\n      body,\n      render // 用来渲染孩子节点,如果当前是叶子节点则可以忽略。\n    } = this.props;\n    return (\n      <div className=\"page\">\n        <h1>{title}</h1>\n        <div className=\"body-container\">\n          {render('body', body) /*渲染孩子节点*/}\n        </div>\n      </div>\n    );\n  }\n}\n
\n

Form 组件的示例代码

\n
@Renderer({\n  test: /(^|\\/)form$/\n  // ... 其他信息隐藏了\n})\nexport class FormRenderer extends React.Component {\n  // ... 其他信息隐藏了\n  render() {\n    const {\n      title,\n      controls,\n      render // 用来渲染孩子节点,如果当前是叶子节点则可以忽略。\n    } = this.props;\n    return (\n      <form className=\"form\">\n        {controls.map((control, index) => (\n          <div className=\"form-item\" key={index}>\n            {render(`${index}/control`, control)}\n          </div>\n        ))}\n      </form>\n    );\n  }\n}\n
\n

Text 组件的示例代码

\n
@Renderer({\n    test: /(^|\\/)form(?:\\/\\d+)?\\/control(?\\/\\d+)?\\/text$/\n    // ... 其他信息隐藏了\n})\nexport class FormItemTextRenderer extends React.Component {\n    // ... 其他信息隐藏了\n    render() {\n        const {\n            label,\n            name,\n            onChange\n        } = this.props;\n        return (\n            <div className=\"form-group\">\n                <label>{label}<label>\n                <input type=\"text\" onChange={(e) => onChange(e.currentTarget.value)} />\n            </div>\n        );\n    }\n}\n
\n

那么渲染过程就是根据节点 path 信息,跟组件池中的组件 test (检测) 信息做匹配,如果命中,则把当前节点转给对应组件渲染,节点中其他属性将作为目标组件的 props。需要注意的是,如果是容器组件,比如以上例子中的 page 组件,从 props 中拿到的 body 是一个子节点,由于节点类型是不固定,由使用者决定,所以不能直接完成渲染,所以交给属性中下发的 render 方法去完成渲染,{render('body', body)},他的工作就是拿子节点的 path 信息去组件池里面找到对应的渲染器,然后交给对应组件去完成渲染。

\n

编写自定义组件

了解了基本原理后,来看个简单的例子:

\n
import * as React from 'react';\nimport {Renderer} from 'amis';\n\n@Renderer({\n  test: /(^|\\/)my\\-renderer$/\n})\nclass CustomRenderer extends React.Component {\n  render() {\n    const {tip} = this.props;\n    return <div>这是自定义组件:{tip}</div>;\n  }\n}\n
\n

有了以上这段代码后,就可以这样使用了。

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"my-renderer\",\n    \"tip\": \"简单示例\"\n  }\n}\n
\n

看了前面amis 工作原理应该不难理解,这里注册一个 React 组件,当节点的 path 信息是 my-renderer 结尾时,交给当前组件来完成渲染。

\n

如果这个组件还能通过 children 属性添加子节点,则需要使用下面这种写法:

\n
import * as React from 'react';\nimport {Renderer} from 'amis';\n\n@Renderer({\n  test: /(^|\\/)my\\-renderer2$/\n})\nclass CustomRenderer extends React.Component {\n  render() {\n    const {tip, body, render} = this.props;\n    return (\n      <div>\n        <p>这是自定义组件:{tip}</p>\n        {body ? (\n          <div className=\"container\">\n            {render('body', body, {\n              // 这里的信息会作为 props 传递给子组件,一般情况下都不需要这个\n            })}\n          </div>\n        ) : null}\n      </div>\n    );\n  }\n}\n
\n

有了以上这段代码后,就可以这样使用了。

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"my-renderer2\",\n    \"tip\": \"简单示例\",\n    \"body\": {\n      \"type\": \"form\",\n      \"controls\": [\n        {\n          \"type\": \"text\",\n          \"label\": \"用户名\",\n          \"name\": \"usename\"\n        }\n      ]\n    }\n  }\n}\n
\n

跟第一个列子不同的地方是,这里多了个 render 方法,这个方法就是专门用来渲染子节点的。来看下参数说明:

\n\n

表单项的扩展

以上是普通渲染器的注册方式,如果是表单项,为了更简单的扩充,请使用 FormItem 注解,而不是 Renderer。 原因是如果用 FormItem 是不用关心:label 怎么摆,表单验证器怎么实现,如何适配表单的 3 中展现方式(水平、上下和内联模式),而只用关心:有了值后如何回显,响应用户交互设置新值。

\n
import * as React from 'react';\nimport {FormItem} from 'amis';\n\n@FormItem({\n  type: 'custom'\n})\nclass MyFormItem extends React.Component {\n  render() {\n    const {value, onChange} = this.props;\n\n    return (\n      <div>\n        <p>这个是个自定义组件</p>\n        <p>当前值:{value}</p>\n        <a\n          className=\"btn btn-default\"\n          onClick={() => onChange(Math.round(Math.random() * 10000))}\n        >\n          随机修改\n        </a>\n      </div>\n    );\n  }\n}\n
\n

有了以上这段代码后,就可以这样使用了。

\n
{\n  \"type\": \"page\",\n  \"title\": \"自定义组件示例\",\n  \"body\": {\n    \"type\": \"form\",\n    \"controls\": [\n      {\n        \"type\": \"text\",\n        \"label\": \"用户名\",\n        \"name\": \"usename\"\n      },\n\n      {\n        \"type\": \"custom\",\n        \"label\": \"随机值\",\n        \"name\": \"random\"\n      }\n    ]\n  }\n}\n
\n
\n

注意: 使用 FormItem 默认是严格模式,即只有必要的属性变化才会重新渲染,有可能满足不了你的需求,如果忽略性能问题,可以传入 strictMode: false 来关闭。

\n
\n

表单项开发主要关心两件事。

\n
    \n
  1. 呈现当前值。如以上例子,通过 this.props.value 判定如果勾选了则显示已勾选,否则显示请勾选
  2. \n
  3. 接收用户交互,通过 this.props.onChange 修改表单项值。如以上例子,当用户点击按钮时,切换当前选中的值。
  4. \n
\n

至于其他功能如:label/description 的展示、表单验证功能、表单布局(常规、左右或者内联)等等,只要是通过 FormItem 注册进去的都无需自己实现。

\n

需要注意,获取或者修改的是什么值跟配置中 type 并列的 name 属性有关,也就是说直接关联某个变量,自定义中直接通过 props 下发了某个指定变量的值和修改的方法。如果你想获取其他数据,或者设置其他数据可以看下以下说明:

\n\n

其它高级定制

下面是一些不太常用的 amis 扩展方式及技巧。

\n

自定义验证器

如果 amis 自带的验证能满足需求了,则不需要关心。组件可以有自己的验证逻辑。

\n
import * as React from 'react';\nimport {FormItem} from 'amis';\nimport * as cx from 'classnames';\n\n@FormItem({\n  type: 'custom-checkbox'\n})\nexport default class CustomCheckbox extends React.Component {\n  validate() {\n    // 通过 this.props.value 可以知道当前值。\n\n    return isValid ? '' : '不合法,说明不合法原因。';\n  }\n  // ... 其他省略了\n}\n
\n

上面的栗子只是简单说明,另外可以做异步验证,validate 方法可以返回一个 promise。

\n

OptionsControl

如果你的表单组件性质和 amis 的 Select、Checkboxes、List 差不多,用户配置配置 source 可通过 API 拉取选项,你可以用 OptionsControl 取代 FormItem 这个注解。

\n

用法是一样,功能方面主要多了以下功能。

\n\n

组件间通信

关于组件间通信,amis 中有个机制就是,把需要被引用的组件设置一个 name 值,然后其他组件就可以通过这个 name 与其通信,比如这个栗子。其实内部是依赖于内部的一个 Scoped Context。你的组件希望可以被别的组件引用,你需要把自己注册进去,默认自定义的非表单类组件并没有把自己注册进去,可以参考以下代码做添加。

\n
import * as React from 'react';\nimport {Renderer, ScopedContext} from 'amis';\n@Renderer({\n  test: /(?:^|\\/)my\\-renderer$/\n})\nexport class CustomRenderer extends React.Component {\n  static contextType = ScopedContext;\n\n  componentWillMount() {\n    const scoped = this.context;\n    scoped.registerComponent(this);\n  }\n\n  componentWillUnmount() {\n    const scoped = this.context;\n    scoped.unRegisterComponent(this);\n  }\n\n  // 其他部分省略了。\n}\n
\n

把自己注册进去了,其他组件就能引用到了。同时,如果你想找别的组件,也同样是通过 scoped 这个 context,如: scoped.getComponentByName("xxxName") 这样就能拿到目标组件的实例了(前提是目标组件已经配置了 name 为 xxxName)。

\n

其他功能方法

自定义的渲染器 props 会下发一个非常有用的 env 对象。这个 env 有以下功能方法。

\n\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "临时扩展", + "fragment": "%E4%B8%B4%E6%97%B6%E6%89%A9%E5%B1%95", + "fullPath": "#%E4%B8%B4%E6%97%B6%E6%89%A9%E5%B1%95", + "level": 2 + }, + { + "label": "注册自定义类型", + "fragment": "%E6%B3%A8%E5%86%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B", + "fullPath": "#%E6%B3%A8%E5%86%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B", + "level": 2, + "children": [ + { + "label": "工作原理", + "fragment": "%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86", + "fullPath": "#%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86", + "level": 3 + }, + { + "label": "编写自定义组件", + "fragment": "%E7%BC%96%E5%86%99%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6", + "fullPath": "#%E7%BC%96%E5%86%99%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6", + "level": 3 + }, + { + "label": "表单项的扩展", + "fragment": "%E8%A1%A8%E5%8D%95%E9%A1%B9%E7%9A%84%E6%89%A9%E5%B1%95", + "fullPath": "#%E8%A1%A8%E5%8D%95%E9%A1%B9%E7%9A%84%E6%89%A9%E5%B1%95", + "level": 3 + }, + { + "label": "其它高级定制", + "fragment": "%E5%85%B6%E5%AE%83%E9%AB%98%E7%BA%A7%E5%AE%9A%E5%88%B6", + "fullPath": "#%E5%85%B6%E5%AE%83%E9%AB%98%E7%BA%A7%E5%AE%9A%E5%88%B6", + "level": 3, + "children": [ + { + "label": "自定义验证器", + "fragment": "%E8%87%AA%E5%AE%9A%E4%B9%89%E9%AA%8C%E8%AF%81%E5%99%A8", + "fullPath": "#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%AA%8C%E8%AF%81%E5%99%A8", + "level": 4 + }, + { + "label": "OptionsControl", + "fragment": "optionscontrol", + "fullPath": "#optionscontrol", + "level": 4 + }, + { + "label": "组件间通信", + "fragment": "%E7%BB%84%E4%BB%B6%E9%97%B4%E9%80%9A%E4%BF%A1", + "fullPath": "#%E7%BB%84%E4%BB%B6%E9%97%B4%E9%80%9A%E4%BF%A1", + "level": 4 + }, + { + "label": "其他功能方法", + "fragment": "%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD%E6%96%B9%E6%B3%95", + "fullPath": "#%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD%E6%96%B9%E6%B3%95", + "level": 4 + } + ] + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/start/getting-started.html b/gh-pages/docs/start/getting-started.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/start/getting-started.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/start/getting-started_904df92.js b/gh-pages/docs/start/getting-started_904df92.js new file mode 100644 index 000000000..f14da76b7 --- /dev/null +++ b/gh-pages/docs/start/getting-started_904df92.js @@ -0,0 +1,42 @@ +amis.define('docs/start/getting-started.md', function(require, exports, module, define) { + + module.exports = { + "title": "快速开始", + "description": null, + "html": "

npm

安装

npm i amis\n

使用

可以在 React Component 这么使用(TypeScript)。

\n
import * as React from 'react';\nimport {\n    render as renderAmis\n} from 'amis';\n\nclass MyComponent extends React.Component<any, any> {\n    render() {\n        return (\n            <div>\n                <p>通过 amis 渲染页面</p>\n                {renderAmis({\n                    // schema\n                    // 这里是 amis 的 Json 配置。\n                    type: 'page',\n                    title: '简单页面',\n                    body: '内容'\n                }, {\n                    // props\n                }, {\n                    // env\n                    // 这些是 amis 需要的一些接口实现\n                    // 可以参考本项目里面的 Demo 部分代码。\n\n                    updateLocation: (location:string/*目标地址*/, replace:boolean/*是replace,还是push?*/) => {\n                        // 用来更新地址栏\n                    },\n\n                    jumpTo: (location:string/*目标地址*/) => {\n                        // 页面跳转, actionType:  link、url 都会进来。\n                    },\n\n                    fetcher: ({\n                        url,\n                        method,\n                        data,\n                        config\n                    }:{\n                        url:string/*目标地址*/,\n                        method:'get' | 'post' | 'put' | 'delete'/*发送方式*/,\n                        data: object | void/*数据*/,\n                        config: object/*其他配置*/\n                    }) => {\n                        // 用来发送 Ajax 请求,建议使用 axios\n                    },\n                    notify: (type:'error'|'success'/**/, msg:string/*提示内容*/) => {\n                        // 用来提示用户\n                    },\n                    alert: (content:string/*提示信息*/) => {\n                        // 另外一种提示,可以直接用系统框\n                    },\n                    confirm: (content:string/*提示信息*/) => {\n                        // 确认框。\n                    }\n                });}\n            </div>\n        );\n    }\n}\n
\n

(schema:Schema, props?:any, env?: any) => JSX.Element

\n

参数说明:

\n\n

SDK

SDK 适合对前端或 React 不了解的开发者,它不依赖 npm 及 webpack,直接引入代码就能使用,但需要注意这种方式不支持 自定义组件,只能使用 amis 内置的组件。

\n

JSSDK 的代码从以下地址获取:

\n\n

然后在页面中插入下面的代码就能渲染出来了:

\n
(function () {\n  var amis = amisRequire('amis/embed');\n  amis.embed(\n    '#container',\n    {\n      type: 'page',\n      title: 'AMIS Demo',\n      body: 'This is a simple amis page.'\n    },\n    {\n      // props 一般不用传。\n    },\n    {\n      // env\n      fetcher: () => {\n        // 可以不传,用来实现 ajax 请求\n      },\n\n      jumpTo: () => {\n        // 可以不传,用来实现页面跳转\n      },\n\n      updateLocation: () => {\n        // 可以不传,用来实现地址栏更新\n      },\n\n      isCurrentUrl: () => {\n        // 可以不传,用来判断是否目标地址当前地址。\n      },\n\n      copy: () => {\n        // 可以不传,用来实现复制到剪切板\n      },\n\n      notify: () => {\n        // 可以不传,用来实现通知\n      },\n\n      alert: () => {\n        // 可以不传,用来实现提示\n      },\n\n      confirm: () => {\n        // 可以不传,用来实现确认框。\n      }\n    }\n  );\n})();\n
\n

注意:以上的 SDK 地址是一个页面跳转,会跳转到一个 CDN 地址,而且每次跳转都是最新的版本,随着 amis 的升级这个地址会一直变动,如果你的页面已经完成功能回归,请直接使用某个固定地址,这样才不会因为 amis 升级而导致你的页面不可用。

\n

另外,sdk 代码也伴随 npm 一起发布了,不使用 CDN 版本,直接替换成 npm 包里面的 amis/sdk.jsamis/sdk.css 即可。

\n

完整示例:

\n
<!DOCTYPE html>\n<html lang=\"zh\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <title>AMIS Demo</title>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n    <meta\n      name=\"viewport\"\n      content=\"width=device-width, initial-scale=1, maximum-scale=1\"\n    />\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\n    <link rel=\"stylesheet\" href=\"amis/sdk.css\" />\n    <style>\n      html,\n      body,\n      .app-wrapper {\n        position: relative;\n        width: 100%;\n        height: 100%;\n        margin: 0;\n        padding: 0;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"root\" class=\"app-wrapper\"></div>\n    <script src=\"amis/sdk.js\"></script>\n    <script type=\"text/javascript\">\n      (function () {\n        var amis = amisRequire('amis/embed');\n        amis.embed('#root', {\n          type: 'page',\n          title: 'AMIS Demo',\n          body: 'hello world'\n        });\n      })();\n    </script>\n  </body>\n</html>\n
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "npm", + "fragment": "npm", + "fullPath": "#npm", + "level": 2, + "children": [ + { + "label": "安装", + "fragment": "%E5%AE%89%E8%A3%85", + "fullPath": "#%E5%AE%89%E8%A3%85", + "level": 3 + }, + { + "label": "使用", + "fragment": "%E4%BD%BF%E7%94%A8", + "fullPath": "#%E4%BD%BF%E7%94%A8", + "level": 3 + } + ] + }, + { + "label": "SDK", + "fragment": "sdk", + "fullPath": "#sdk", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/style.html b/gh-pages/docs/style.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/docs/style.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/docs/style_3996404.js b/gh-pages/docs/style_3996404.js deleted file mode 100644 index 6954a14f6..000000000 --- a/gh-pages/docs/style_3996404.js +++ /dev/null @@ -1,82 +0,0 @@ -amis.define('docs/style.md', function(require, exports, module, define) { - - module.exports = { - "title": "定制样式", - "shortname": "style", - "html": "

绝大部分 amis 组件里都有个 className 配置项,设置后就会给对应的组件添加 css class,而 amis 内置了大量的功能类 class,通过这些 class 的组合就能满足大部分展现调整的需求。

\n

图标

amis 集成了 fontawesome,所以关于图标部分,请前往 fontawesome 查看。

\n

布局

水平布局可以考虑用 Bootstrap 的 Grids 或者用 hobxcol

\n
\n
Col A
\n
Col B
\n
Col C
\n
\n
<div class=\"hbox b-a\">\n  <div class=\"col wrapper-sm bg-success\">Col A</div>\n  <div class=\"col wrapper-sm bg-info\">Col B</div>\n  <div class=\"col wrapper-sm bg-danger\">Col C</div>\n</div>\n
\n

宽高

.w-1x {\n  width: 1em;\n}\n.w-2x {\n  width: 2em;\n}\n.w-3x {\n  width: 3em;\n}\n.w-xxs {\n  width: 60px;\n}\n.w-xs {\n  width: 90px;\n}\n.w-sm {\n  width: 150px;\n}\n.w {\n  width: 200px;\n}\n.w-md {\n  width: 240px;\n}\n.w-lg {\n  width: 280px;\n}\n.w-xl {\n  width: 320px;\n}\n.w-xxl {\n  width: 360px;\n}\n.w-full {\n  width: 100%;\n}\n.w-auto {\n  width: auto;\n}\n.h-auto {\n  height: auto;\n}\n.h-full {\n  height: 100% !important;\n  max-height: none !important;\n}\n
\n
\n
w-1x
\n
w-2x
\n
w-3x
\n
w-xxs
\n
w-xs
\n
w-sm
\n
w
\n
...
\n
\n
\n
w-md
\n
w-lg
\n
w-xl
\n
...
\n
\n
\n
w-xxl
\n
...
\n
\n
<div class=\"hbox b-a bg-primary\">\n  <div class=\"col wrapper-sm b-r w-1x\">w-1x</div>\n  <div class=\"col wrapper-sm b-r w-2x\">w-2x</div>\n  <div class=\"col wrapper-sm b-r w-3x\">w-3x</div>\n  <div class=\"col wrapper-sm b-r w-xxs\">w-xxs</div>\n  <div class=\"col wrapper-sm b-r w-xs\">w-xs</div>\n  <div class=\"col wrapper-sm b-r w-sm\">w-sm</div>\n  <div class=\"col wrapper-sm b-r w\">w</div>\n  <div class=\"col wrapper-sm  lter\">...</div>\n</div>\n<div class=\"hbox b-a bg-primary m-t\">\n  <div class=\"col wrapper-sm b-r w-md\">w-md</div>\n  <div class=\"col wrapper-sm b-r w-lg\">w-lg</div>\n  <div class=\"col wrapper-sm b-r w-xl\">w-xl</div>\n  <div class=\"col wrapper-sm lter\">...</div>\n</div>\n<div class=\"hbox b-a bg-primary m-t\">\n  <div class=\"col wrapper-sm b-r w-xxl\">w-xxl</div>\n  <div class=\"col wrapper-sm lter\">...</div>\n</div>\n
\n

外边距

.m-xxs {\n  margin: 2px 4px;\n}\n.m-xs {\n  margin: 5px;\n}\n.m-sm {\n  margin: 10px;\n}\n.m {\n  margin: 15px;\n}\n.m-md {\n  margin: 20px;\n}\n.m-lg {\n  margin: 30px;\n}\n.m-xl {\n  margin: 50px;\n}\n.m-n {\n  margin: 0 !important;\n}\n.m-l-none {\n  margin-left: 0 !important;\n}\n.m-l-xs {\n  margin-left: 5px;\n}\n.m-l-sm {\n  margin-left: 10px;\n}\n.m-l {\n  margin-left: 15px;\n}\n.m-l-md {\n  margin-left: 20px;\n}\n.m-l-lg {\n  margin-left: 30px;\n}\n.m-l-xl {\n  margin-left: 40px;\n}\n.m-l-xxl {\n  margin-left: 50px;\n}\n.m-l-n-xxs {\n  margin-left: -1px;\n}\n.m-l-n-xs {\n  margin-left: -5px;\n}\n.m-l-n-sm {\n  margin-left: -10px;\n}\n.m-l-n {\n  margin-left: -15px;\n}\n.m-l-n-md {\n  margin-left: -20px;\n}\n.m-l-n-lg {\n  margin-left: -30px;\n}\n.m-l-n-xl {\n  margin-left: -40px;\n}\n.m-l-n-xxl {\n  margin-left: -50px;\n}\n.m-t-none {\n  margin-top: 0 !important;\n}\n.m-t-xxs {\n  margin-top: 1px;\n}\n.m-t-xs {\n  margin-top: 5px;\n}\n.m-t-sm {\n  margin-top: 10px;\n}\n.m-t {\n  margin-top: 15px;\n}\n.m-t-md {\n  margin-top: 20px;\n}\n.m-t-lg {\n  margin-top: 30px;\n}\n.m-t-xl {\n  margin-top: 40px;\n}\n.m-t-xxl {\n  margin-top: 50px;\n}\n.m-t-n-xxs {\n  margin-top: -1px;\n}\n.m-t-n-xs {\n  margin-top: -5px;\n}\n.m-t-n-sm {\n  margin-top: -10px;\n}\n.m-t-n {\n  margin-top: -15px;\n}\n.m-t-n-md {\n  margin-top: -20px;\n}\n.m-t-n-lg {\n  margin-top: -30px;\n}\n.m-t-n-xl {\n  margin-top: -40px;\n}\n.m-t-n-xxl {\n  margin-top: -50px;\n}\n.m-r-none {\n  margin-right: 0 !important;\n}\n.m-r-xxs {\n  margin-right: 1px;\n}\n.m-r-xs {\n  margin-right: 5px;\n}\n.m-r-sm {\n  margin-right: 10px;\n}\n.m-r {\n  margin-right: 15px;\n}\n.m-r-md {\n  margin-right: 20px;\n}\n.m-r-lg {\n  margin-right: 30px;\n}\n.m-r-xl {\n  margin-right: 40px;\n}\n.m-r-xxl {\n  margin-right: 50px;\n}\n.m-r-n-xxs {\n  margin-right: -1px;\n}\n.m-r-n-xs {\n  margin-right: -5px;\n}\n.m-r-n-sm {\n  margin-right: -10px;\n}\n.m-r-n {\n  margin-right: -15px;\n}\n.m-r-n-md {\n  margin-right: -20px;\n}\n.m-r-n-lg {\n  margin-right: -30px;\n}\n.m-r-n-xl {\n  margin-right: -40px;\n}\n.m-r-n-xxl {\n  margin-right: -50px;\n}\n.m-b-none {\n  margin-bottom: 0 !important;\n}\n.m-b-xxs {\n  margin-bottom: 1px;\n}\n.m-b-xs {\n  margin-bottom: 5px;\n}\n.m-b-sm {\n  margin-bottom: 10px;\n}\n.m-b {\n  margin-bottom: 15px;\n}\n.m-b-md {\n  margin-bottom: 20px;\n}\n.m-b-lg {\n  margin-bottom: 30px;\n}\n.m-b-xl {\n  margin-bottom: 40px;\n}\n.m-b-xxl {\n  margin-bottom: 50px;\n}\n.m-b-n-xxs {\n  margin-bottom: -1px;\n}\n.m-b-n-xs {\n  margin-bottom: -5px;\n}\n.m-b-n-sm {\n  margin-bottom: -10px;\n}\n.m-b-n {\n  margin-bottom: -15px;\n}\n.m-b-n-md {\n  margin-bottom: -20px;\n}\n.m-b-n-lg {\n  margin-bottom: -30px;\n}\n.m-b-n-xl {\n  margin-bottom: -40px;\n}\n.m-b-n-xxl {\n  margin-bottom: -50px;\n}\n
\n

内边距

.wrapper-xs {\n  padding: 5px;\n}\n.wrapper-sm {\n  padding: 10px;\n}\n.wrapper {\n  padding: 15px;\n}\n.wrapper-md {\n  padding: 20px;\n}\n.wrapper-lg {\n  padding: 30px;\n}\n.wrapper-xl {\n  padding: 50px;\n}\n.padder-xs {\n  padding-left: 5px;\n  padding-right: 5px;\n}\n.padder-sm {\n  padding-left: 10px;\n  padding-right: 10px;\n}\n.padder-lg {\n  padding-left: 30px;\n  padding-right: 30px;\n}\n.padder-md {\n  padding-left: 20px;\n  padding-right: 20px;\n}\n.padder {\n  padding-left: 15px;\n  padding-right: 15px;\n}\n.padder-v-xs {\n  padding-top: 5px;\n  padding-bottom: 5px;\n}\n.padder-v-sm {\n  padding-top: 10px;\n  padding-bottom: 10px;\n}\n.padder-v-lg {\n  padding-top: 30px;\n  padding-bottom: 30px;\n}\n.padder-v-md {\n  padding-top: 20px;\n  padding-bottom: 20px;\n}\n.padder-v {\n  padding-top: 15px;\n  padding-bottom: 15px;\n}\n.no-padder {\n  padding: 0 !important;\n}\n.pull-in {\n  margin-left: -15px;\n  margin-right: -15px;\n}\n.pull-out {\n  margin: -10px -15px;\n}\n
\n

边框

.b {\n  border: 1px solid rgba(0, 0, 0, 0.05);\n}\n.b-a {\n  border: 1px solid @border-color;\n}\n.b-t {\n  border-top: 1px solid @border-color;\n}\n.b-r {\n  border-right: 1px solid @border-color;\n}\n.b-b {\n  border-bottom: 1px solid @border-color;\n}\n.b-l {\n  border-left: 1px solid @border-color;\n}\n.b-light {\n  border-color: @brand-light;\n}\n.b-dark {\n  border-color: @brand-dark;\n}\n.b-black {\n  border-color: @brand-dark;\n}\n.b-primary {\n  border-color: @brand-primary;\n}\n.b-success {\n  border-color: @brand-success;\n}\n.b-info {\n  border-color: @brand-info;\n}\n.b-warning {\n  border-color: @brand-warning;\n}\n.b-danger {\n  border-color: @brand-danger;\n}\n.b-white {\n  border-color: #fff;\n}\n.b-dashed {\n  border-style: dashed !important;\n}\n.b-l-light {\n  border-left-color: @brand-light;\n}\n.b-l-dark {\n  border-left-color: @brand-dark;\n}\n.b-l-black {\n  border-left-color: @brand-dark;\n}\n.b-l-primary {\n  border-left-color: @brand-primary;\n}\n.b-l-success {\n  border-left-color: @brand-success;\n}\n.b-l-info {\n  border-left-color: @brand-info;\n}\n.b-l-warning {\n  border-left-color: @brand-warning;\n}\n.b-l-danger {\n  border-left-color: @brand-danger;\n}\n.b-l-white {\n  border-left-color: #fff;\n}\n.b-l-2x {\n  border-left-width: 2px;\n}\n.b-l-3x {\n  border-left-width: 3px;\n}\n.b-l-4x {\n  border-left-width: 4px;\n}\n.b-l-5x {\n  border-left-width: 5px;\n}\n.b-2x {\n  border-width: 2px;\n}\n.b-3x {\n  border-width: 3px;\n}\n.b-4x {\n  border-width: 4px;\n}\n.b-5x {\n  border-width: 5px;\n}\n
\n

圆角

.r {\n  border-radius: @border-radius-base @border-radius-base @border-radius-base\n    @border-radius-base;\n}\n.r-2x {\n  border-radius: @border-radius-base * 2;\n}\n.r-3x {\n  border-radius: @border-radius-base * 3;\n}\n.r-l {\n  border-radius: @border-radius-base 0 0 @border-radius-base;\n}\n.r-r {\n  border-radius: 0 @border-radius-base @border-radius-base 0;\n}\n.r-t {\n  border-radius: @border-radius-base @border-radius-base 0 0;\n}\n.r-b {\n  border-radius: 0 0 @border-radius-base @border-radius-base;\n}\n
\n

字体相关

.font-normal {\n  font-weight: normal;\n}\n.font-thin {\n  font-weight: 300;\n}\n.font-bold {\n  font-weight: 700;\n}\n.text-3x {\n  font-size: 3em;\n}\n.text-2x {\n  font-size: 2em;\n}\n.text-lg {\n  font-size: @font-size-lg;\n}\n.text-md {\n  font-size: @font-size-md;\n}\n.text-base {\n  font-size: @font-size-base;\n}\n.text-sm {\n  font-size: @font-size-sm;\n}\n.text-xs {\n  font-size: @font-size-xs;\n}\n.text-xxs {\n  text-indent: -9999px;\n}\n.text-ellipsis {\n  display: block;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.text-u-c {\n  text-transform: uppercase;\n}\n.text-l-t {\n  text-decoration: line-through;\n}\n.text-u-l {\n  text-decoration: underline;\n}\n.text-left {\n  text-align: left;\n}\n.text-center {\n  text-align: center;\n}\n.text-right {\n  text-align: right;\n}\n
\n

定位

.pos-rlt {\n  position: relative;\n}\n.pos-stc {\n  position: static !important;\n}\n.pos-abt {\n  position: absolute;\n}\n.pos-fix {\n  position: fixed;\n}\n
\n

背景

\n
bg-white
\n
bg-dark
\n
bg-info
\n
bg-success
\n
bg-warning
\n
bg-danger
\n
bg-primary
\n
\n
<div class=\"hbox b-a bg-light\">\n  <div class=\"col wrapper-sm b-r bg-white\">bg-white</div>\n  <div class=\"col wrapper-sm b-r bg-dark\">bg-dark</div>\n  <div class=\"col wrapper-sm b-r bg-info\">bg-info</div>\n  <div class=\"col wrapper-sm b-r bg-success\">bg-success</div>\n  <div class=\"col wrapper-sm b-r bg-warning\">bg-warning</div>\n  <div class=\"col wrapper-sm b-r bg-danger\">bg-danger</div>\n  <div class=\"col wrapper-sm bg-primary\">bg-primary</div>\n</div>\n
\n

其他

.show {\n  visibility: visible;\n}\n.line {\n  *width: 100%;\n  height: 2px;\n  margin: 10px 0;\n  font-size: 0;\n  overflow: hidden;\n  background-color: transparent;\n  border-width: 0;\n  border-top: 1px solid @border-color;\n}\n.line-xs {\n  margin: 0;\n}\n.line-lg {\n  margin-top: 15px;\n  margin-bottom: 15px;\n}\n.line-dashed {\n  border-style: dashed;\n  background: transparent;\n}\n.no-line {\n  border-width: 0;\n}\n.no-border,\n.no-borders {\n  border-color: transparent;\n  border-width: 0;\n}\n.no-radius {\n  border-radius: 0;\n}\n.block {\n  display: block;\n}\n.block.hide {\n  display: none;\n}\n.inline {\n  display: inline-block !important;\n}\n.none {\n  display: none;\n}\n.pull-none {\n  float: none;\n}\n.rounded {\n  border-radius: 500px;\n}\n.clear {\n  display: block;\n  overflow: hidden;\n}\n.no-bg {\n  background-color: transparent;\n  color: inherit;\n}\n.no-select {\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/style.md
", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "图标", - "fragment": "%E5%9B%BE%E6%A0%87", - "fullPath": "#%E5%9B%BE%E6%A0%87", - "level": 2 - }, - { - "label": "布局", - "fragment": "%E5%B8%83%E5%B1%80", - "fullPath": "#%E5%B8%83%E5%B1%80", - "level": 2 - }, - { - "label": "宽高", - "fragment": "%E5%AE%BD%E9%AB%98", - "fullPath": "#%E5%AE%BD%E9%AB%98", - "level": 2 - }, - { - "label": "外边距", - "fragment": "%E5%A4%96%E8%BE%B9%E8%B7%9D", - "fullPath": "#%E5%A4%96%E8%BE%B9%E8%B7%9D", - "level": 2 - }, - { - "label": "内边距", - "fragment": "%E5%86%85%E8%BE%B9%E8%B7%9D", - "fullPath": "#%E5%86%85%E8%BE%B9%E8%B7%9D", - "level": 2 - }, - { - "label": "边框", - "fragment": "%E8%BE%B9%E6%A1%86", - "fullPath": "#%E8%BE%B9%E6%A1%86", - "level": 2 - }, - { - "label": "圆角", - "fragment": "%E5%9C%86%E8%A7%92", - "fullPath": "#%E5%9C%86%E8%A7%92", - "level": 2 - }, - { - "label": "字体相关", - "fragment": "%E5%AD%97%E4%BD%93%E7%9B%B8%E5%85%B3", - "fullPath": "#%E5%AD%97%E4%BD%93%E7%9B%B8%E5%85%B3", - "level": 2 - }, - { - "label": "定位", - "fragment": "%E5%AE%9A%E4%BD%8D", - "fullPath": "#%E5%AE%9A%E4%BD%8D", - "level": 2 - }, - { - "label": "背景", - "fragment": "%E8%83%8C%E6%99%AF", - "fullPath": "#%E8%83%8C%E6%99%AF", - "level": 2 - }, - { - "label": "其他", - "fragment": "%E5%85%B6%E4%BB%96", - "fullPath": "#%E5%85%B6%E4%BB%96", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/types/api.html b/gh-pages/docs/types/api.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/types/api.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/types/api_102dfdc.js b/gh-pages/docs/types/api_102dfdc.js new file mode 100644 index 000000000..0f54f2d07 --- /dev/null +++ b/gh-pages/docs/types/api_102dfdc.js @@ -0,0 +1,181 @@ +amis.define('docs/types/api.md', function(require, exports, module, define) { + + module.exports = { + "title": "API", + "description": null, + "type": 0, + "group": "🔧 类型", + "menuName": "API", + "icon": null, + "order": 20, + "html": "

API 类型用于配置请求接口的格式,涉及请求方式、请求地址、请求数据体等等相关配置

\n

简单配置

如果你只需要配置简单的 ajax 接口,可以使用简单字符串格式,如下:

\n
[<method>:]<url>\n
\n

示例:

\n
{\n  \"api\": \"get:/api/initData\", // get 请求\n  \"api\": \"post:/api/initData\", // post 请求\n  \"api\": \"put:/api/initData\", // put 请求\n  \"api\": \"delete:/api/initData\" // delete 请求\n}\n
\n

接口返回格式(重要)

所有配置在 amis 组件中的接口,都要符合下面的返回格式

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    ...其他字段\n  }\n}\n
\n\n

statusmsgdata 字段为接口返回的必要字段;

\n

正确的格式

{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    // 正确\n    \"text\": \"World!\"\n  }\n}\n
\n

错误的格式

直接返回字符串或者数组都是不推荐的

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": \"some string\" // 错误,使用 key 包装\n}\n
\n

不推荐的格式

部分组件为了可以兼容,支持下面这种直接返回数组的用法,但并不推荐这种方式。

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": [\"a\", \"b\"] // 不推荐,使用 key 包装\n}\n
\n

复杂配置

API 还支持配置对象类型

\n

基本用法

{\n    \"api\": {\n        \"method\": \"get\",\n        \"url\": \"xxxx\",\n        \"data\": {\n            xxx\n        },\n        ... // 其他配置\n    }\n}\n
\n

配置请求方式

可以配置method指定接口的请求方式,支持:getpostputdelete

\n
\n

method值留空时:

\n\n
\n

配置请求地址

可以配置url指定接口请求地址,支持模板字符串

\n

配置请求数据

可以配置data,配置自定义接口请求数据体。

\n
\n

支持数据映射

\n
\n

method配置为get时,data中的值默认会添加到请求路径中

\n
\n

配置请求数据格式

可以配置dataType,来指定请求的数据体格式,默认为json

\n
\n

下面例子中 api 没有配置data属性,因为form会默认将所有表单项的值进行提交。

\n
\n

application/json

默认是application/json,不需要额外配置

\n
\n

application/x-www-form-urlencoded

配置"dataType": "form",可配置发送体格式为application/x-www-form-urlencoded

\n
\n

multipart/form-data

配置"dataType": "form-data",可配置发送体格式为multipart/form-data

\n
\n

当表单项中文件类型数据,则自动使用multipart/form-data数据体

\n
\n
\n

asBlob配置项会指定当前 File 控件不再自己上传了,而是直接把文件数据作为表单项的值,文件内容会在 Form 表单提交的接口里面一起带上。

\n
\n

配置自定义请求头

可以配置headers对象,添加自定义请求头

\n
\n

配置请求条件

可以配置表达式sendOn来实现:当符合某个条件的情况下,接口才触发请求

\n
\n

查看 选项 2source属性,他是 API 类型值,支持配置sendOn 表达式,实现根据条件请求接口。

\n

配置接口缓存

当你在某种情况下,需要非常频繁的请求同一个接口,例如列表中,每一行中都有一个 Service 进行数据拉取操作,

\n
\n

如上,如果你打开浏览器网络面板,会发现/api/mock2/page/initData接口将重复请求多次,次数为你当前列表的数据条数。

\n

这往往并不理想,你可以设置cache来设置缓存时间,单位是毫秒,在设置的缓存时间内,同样的请求将不会重复发起,而是会获取缓存好的请求响应数据。

\n
\n

这下我们再打开网络面板,发现只有一条请求了

\n

配置请求适配器

amis 的 API 配置,如果无法配置出你想要的请求结构,那么可以配置requestAdaptor发送适配器

\n

发送适配器是指在接口请求前,对请求进行一些自定义处理,例如修改发送数据体、添加请求头、等等,基本用法是,获取暴露的api参数,并且对该参数进行一些修改,并return出去:

\n

字符串形式

如果在 JSON 文件中配置的话,requestAdaptor只支持字符串形式,如下:

\n
\n

上例中的适配器实际上是如下代码的字符串形式:

\n
return {\n  ...api,\n  data: {\n    ...api.data, // 获取暴露的 api 中的 data 变量\n    foo: 'bar' // 新添加数据\n  }\n};\n
\n

函数形式

如果你的使用环境为 js 文件,则可以直接传入函数,如下:

\n
const schema = {\n  type: 'form',\n  api: {\n    method: 'post',\n    url: 'https://houtai.baidu.com/api/mock2/form/saveForm',\n    requestAdaptor: function (api) {\n      return {\n        ...api,\n        data: {\n          ...api.data, // 获取暴露的 api 中的 data 变量\n          foo: 'bar' // 新添加数据\n        }\n      };\n    }\n  },\n  controls: [\n    {\n      type: 'text',\n      name: 'name',\n      label: '姓名:'\n    },\n    {\n      name: 'text',\n      type: 'email',\n      label: '邮箱:'\n    }\n  ]\n};\n
\n

上面例子中,我们获取暴露的api对象中的data变量,并且为其添加了一个新的字段foo,并且一起返回出去就可以了,这样我们的请求数据体中就会加上我们这个新的字段。

\n

api变量中一般会包含下面几个属性:

\n\n

你也可以使用debugger自行进行调试。

\n

配置接收适配器

同样的,如果后端返回的响应结构不符合 amis 的接口格式要求,而后端不方便调整时,可以配置adaptor实现接收适配器

\n

接受欧适配器是指在接口请求后,对响应进行一些自定义处理,例如修改响应的数据结构、修改响应的数据等等。

\n

例如:接口正确返回的格式中,会返回"code": 200,而 amis 中,接口返回格式需要"status": 0,这时候就需要接收适配器进行调整结构。

\n

字符串形式

如果在 JSON 文件中配置的话,adaptor只支持字符串形式,如下:

\n
{\n  \"type\": \"form\",\n  \"api\": {\n    \"method\": \"post\",\n    \"url\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n    \"adaptor\": \"return {\\n    ...payload,\\n    status: payload.code === 200 ? 0 : payload.code\\n}\"\n  },\n  \"controls\": [\n    {\n      \"type\": \"text\",\n      \"name\": \"name\",\n      \"label\": \"姓名:\"\n    },\n    {\n      \"name\": \"file\",\n      \"type\": \"file\",\n      \"label\": \"附件:\",\n      \"asBlob\": true\n    }\n  ]\n}\n
\n

上例中的适配器实际上是如下代码的字符串形式:

\n
return {\n  ...payload,\n  status: payload.code === 200 ? 0 : payload.code\n};\n
\n

函数形式

如果你的使用环境为 js 文件,则可以直接传入函数,如下:

\n
const schema = {\n  type: 'form',\n  api: {\n    method: 'post',\n    url: 'https://houtai.baidu.com/api/mock2/form/saveForm',\n    adaptor: function (payload, response) {\n      return {\n        ...payload,\n        status: payload.code === 200 ? 0 : payload.code\n      };\n    }\n  },\n  controls: [\n    {\n      type: 'text',\n      name: 'name',\n      label: '姓名:'\n    },\n    {\n      name: 'email',\n      type: 'email',\n      label: '邮箱:'\n    }\n  ]\n};\n
\n

replaceData

返回的数据是否替换掉当前的数据,默认为 false(即追加),设置为true就是完全替换当前数据。

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
字段名说明类型备注
method请求方式字符串支持:get、post、put、delete
url请求地址模板字符串-
data请求数据对象或字符串支持数据映射
dataType数据体格式字符串默认为 json 可以配置成 form 或者 form-data。当 data 中包含文件时,自动会采用 form-data(multipart/form-data) 格式。当配置为 form 时为 application/x-www-form-urlencoded 格式。
qsOptions--对象或字符串当 dataType 为 form 或者 form-data 的时候有用。具体参数请参考这里,默认设置为: { arrayFormat: 'indices', encodeValuesOnly: true }
headers请求头对象-
sendOn请求条件表达式-
cache接口缓存时间整型数字-
requestAdaptor发送适配器字符串,支持字符串串格式,或者直接就是函数如:
adaptor接收适配器字符串如果接口返回不符合要求,可以通过配置一个适配器来处理成 amis 需要的。同样支持 Function 或者 字符串函数体格式
replaceData替换当前数据布尔返回的数据是否替换掉当前的数据,默认为 false,即:追加,设置成 true 就是完全替换。
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "简单配置", + "fragment": "%E7%AE%80%E5%8D%95%E9%85%8D%E7%BD%AE", + "fullPath": "#%E7%AE%80%E5%8D%95%E9%85%8D%E7%BD%AE", + "level": 2 + }, + { + "label": "接口返回格式(重要)", + "fragment": "%E6%8E%A5%E5%8F%A3%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F-%E9%87%8D%E8%A6%81-", + "fullPath": "#%E6%8E%A5%E5%8F%A3%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F-%E9%87%8D%E8%A6%81-", + "level": 2, + "children": [ + { + "label": "正确的格式", + "fragment": "%E6%AD%A3%E7%A1%AE%E7%9A%84%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E6%AD%A3%E7%A1%AE%E7%9A%84%E6%A0%BC%E5%BC%8F", + "level": 3 + }, + { + "label": "错误的格式", + "fragment": "%E9%94%99%E8%AF%AF%E7%9A%84%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E9%94%99%E8%AF%AF%E7%9A%84%E6%A0%BC%E5%BC%8F", + "level": 3 + }, + { + "label": "不推荐的格式", + "fragment": "%E4%B8%8D%E6%8E%A8%E8%8D%90%E7%9A%84%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E4%B8%8D%E6%8E%A8%E8%8D%90%E7%9A%84%E6%A0%BC%E5%BC%8F", + "level": 3 + } + ] + }, + { + "label": "复杂配置", + "fragment": "%E5%A4%8D%E6%9D%82%E9%85%8D%E7%BD%AE", + "fullPath": "#%E5%A4%8D%E6%9D%82%E9%85%8D%E7%BD%AE", + "level": 2, + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 3 + }, + { + "label": "配置请求方式", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%96%B9%E5%BC%8F", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%96%B9%E5%BC%8F", + "level": 3 + }, + { + "label": "配置请求地址", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E5%9C%B0%E5%9D%80", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E5%9C%B0%E5%9D%80", + "level": 3 + }, + { + "label": "配置请求数据", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%95%B0%E6%8D%AE", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%95%B0%E6%8D%AE", + "level": 3 + }, + { + "label": "配置请求数据格式", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F", + "level": 3, + "children": [ + { + "label": "application/json", + "fragment": "application-json", + "fullPath": "#application-json", + "level": 4 + }, + { + "label": "application/x-www-form-urlencoded", + "fragment": "application-x-www-form-urlencoded", + "fullPath": "#application-x-www-form-urlencoded", + "level": 4 + }, + { + "label": "multipart/form-data", + "fragment": "multipart-form-data", + "fullPath": "#multipart-form-data", + "level": 4 + } + ] + }, + { + "label": "配置自定义请求头", + "fragment": "%E9%85%8D%E7%BD%AE%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%B7%E6%B1%82%E5%A4%B4", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%B7%E6%B1%82%E5%A4%B4", + "level": 3 + }, + { + "label": "配置请求条件", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%9D%A1%E4%BB%B6", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E6%9D%A1%E4%BB%B6", + "level": 3 + }, + { + "label": "配置接口缓存", + "fragment": "%E9%85%8D%E7%BD%AE%E6%8E%A5%E5%8F%A3%E7%BC%93%E5%AD%98", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%8E%A5%E5%8F%A3%E7%BC%93%E5%AD%98", + "level": 3 + }, + { + "label": "配置请求适配器", + "fragment": "%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E9%80%82%E9%85%8D%E5%99%A8", + "fullPath": "#%E9%85%8D%E7%BD%AE%E8%AF%B7%E6%B1%82%E9%80%82%E9%85%8D%E5%99%A8", + "level": 3, + "children": [ + { + "label": "字符串形式", + "fragment": "%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%BD%A2%E5%BC%8F", + "fullPath": "#%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%BD%A2%E5%BC%8F", + "level": 4 + }, + { + "label": "函数形式", + "fragment": "%E5%87%BD%E6%95%B0%E5%BD%A2%E5%BC%8F", + "fullPath": "#%E5%87%BD%E6%95%B0%E5%BD%A2%E5%BC%8F", + "level": 4 + } + ] + }, + { + "label": "配置接收适配器", + "fragment": "%E9%85%8D%E7%BD%AE%E6%8E%A5%E6%94%B6%E9%80%82%E9%85%8D%E5%99%A8", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%8E%A5%E6%94%B6%E9%80%82%E9%85%8D%E5%99%A8", + "level": 3, + "children": [ + { + "label": "字符串形式", + "fragment": "%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%BD%A2%E5%BC%8F", + "fullPath": "#%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%BD%A2%E5%BC%8F", + "level": 4 + }, + { + "label": "函数形式", + "fragment": "%E5%87%BD%E6%95%B0%E5%BD%A2%E5%BC%8F", + "fullPath": "#%E5%87%BD%E6%95%B0%E5%BD%A2%E5%BC%8F", + "level": 4 + } + ] + }, + { + "label": "replaceData", + "fragment": "replacedata", + "fullPath": "#replacedata", + "level": 3 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 3 + } + ] + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/types/schemanode.html b/gh-pages/docs/types/schemanode.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/docs/types/schemanode.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/docs/types/schemanode_d42b346.js b/gh-pages/docs/types/schemanode_d42b346.js new file mode 100644 index 000000000..fe7937a2a --- /dev/null +++ b/gh-pages/docs/types/schemanode_d42b346.js @@ -0,0 +1,47 @@ +amis.define('docs/types/schemanode.md', function(require, exports, module, define) { + + module.exports = { + "title": "SchemaNode", + "description": null, + "type": 0, + "group": "🔧 类型", + "menuName": "SchemaNode 配置节点", + "icon": null, + "order": 19, + "html": "

SchemaNode 是指每一个 amis 配置节点的类型,支持模板Schema(配置)以及SchemaArray(配置数组)三种类型

\n

模板

{\n  \"type\": \"page\",\n  \"data\": {\n    \"text\": \"World\"\n  },\n  \"body\": \"Hello ${text}!\" // 输出 Hello World!\n}\n
\n

上例中的body属性所配置的属性值"Hello ${text}!"就是一个模板

\n

更多使用说明见 模板文档

\n

Schema 配置

Schema,即组件的 JSON 配置

\n

它至少需要一个type字段,用以标识当前Schema的类型。

\n
{\n  \"type\": \"page\",\n  \"data\": {\n    \"text\": \"World\"\n  },\n  \"body\": {\n    \"type\": \"tpl\",\n    \"tpl\": \"Hello ${text}!\" // 输出 Hello World!\n  }\n}\n
\n

type, data, body这三个字段组成的JSON对象,便是一个Schema,它由type字段作为标识,指明当前 SchemaPage组件节点

\n

而通过查看 Page 组件属性表 可知,body属性类型是SchemaNode,即可以在body中,嵌套配置其他组件。我们在这里,用typetpl JSON 对象,配置了 Tpl 组件,渲染了一段模板字符串。

\n
\n

amis 可以通过该方法,在Schema中嵌套配置其他SchemaNode,从而搭建非常复杂的页面应用。

\n
\n

配置显隐

所有的Schema类型都可以通过配置visiblehiddenvisibleOnhiddenOn来控制组件的显隐,下面是两种方式

\n
静态配置

通过配置"hidden": true或者"visible": false来隐藏组件

\n
\n

下面那个表单被隐藏了。

\n
通过条件配置显隐

你也通过 表达式 配置hiddenOn,来实现在某个条件下禁用当前组件.

\n
\n

为了方便说明,我们在 form 中演示了条件显隐,实际上,只要当前数据域中数据有变化,都可以实现组件显隐

\n
\n

visiblehiddenvisibleOnhiddenOn除了判断逻辑相反以外,没有任何区别

\n
\n

SchemaArray 配置数组

明白了何为Schema之后,你就会很轻松理解SchemaArray,它其实就是支持通过数组配置Schema,从而在某一节点层级下,配置多个组件

\n
{\n  \"type\": \"page\",\n  \"data\": {\n      \"name\": \"amis\"\n      \"age\": 1\n  },\n  \"body\": [\n      {\n        \"type\":\"tpl\",\n        \"tpl\": \"my name is ${name}\" // 输出 Hello World!\n      },\n      {\n        \"type\":\"tpl\",\n        \"tpl\": \"I am ${age} years old!\" // 输出 Hello World!\n      }\n  ]\n}\n
\n

非常容易看出来,我们给body属性,配置了数组结构的Schema,从而实现在body下,渲染两个tpl,来输入两段文字的效果

\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "模板", + "fragment": "%E6%A8%A1%E6%9D%BF", + "fullPath": "#%E6%A8%A1%E6%9D%BF", + "level": 2 + }, + { + "label": "Schema 配置", + "fragment": "schema-%E9%85%8D%E7%BD%AE", + "fullPath": "#schema-%E9%85%8D%E7%BD%AE", + "level": 2, + "children": [ + { + "label": "配置显隐", + "fragment": "%E9%85%8D%E7%BD%AE%E6%98%BE%E9%9A%90", + "fullPath": "#%E9%85%8D%E7%BD%AE%E6%98%BE%E9%9A%90", + "level": 3 + } + ] + }, + { + "label": "SchemaArray 配置数组", + "fragment": "schemaarray-%E9%85%8D%E7%BD%AE%E6%95%B0%E7%BB%84", + "fullPath": "#schemaarray-%E9%85%8D%E7%BD%AE%E6%95%B0%E7%BB%84", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/examples.html b/gh-pages/examples.html new file mode 100644 index 000000000..734772c6c --- /dev/null +++ b/gh-pages/examples.html @@ -0,0 +1,109 @@ + + + + + amis - 低代码前端框架 + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gh-pages/form/combo.html b/gh-pages/form/combo.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/combo.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/custom.html b/gh-pages/form/custom.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/custom.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/definitions.html b/gh-pages/form/definitions.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/definitions.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/fields-tabs.html b/gh-pages/form/fields-tabs.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/fields-tabs.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/fieldset.html b/gh-pages/form/fieldset.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/fieldset.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/formula.html b/gh-pages/form/formula.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/formula.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/full.html b/gh-pages/form/full.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/full.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/hint.html b/gh-pages/form/hint.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/hint.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/ide.html b/gh-pages/form/ide.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/ide.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/json-schema.html b/gh-pages/form/json-schema.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/json-schema.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/mode.html b/gh-pages/form/mode.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/mode.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/picker.html b/gh-pages/form/picker.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/picker.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/reaction.html b/gh-pages/form/reaction.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/reaction.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/remote.html b/gh-pages/form/remote.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/remote.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/rich-text.html b/gh-pages/form/rich-text.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/rich-text.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/static.html b/gh-pages/form/static.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/static.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/sub-form.html b/gh-pages/form/sub-form.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/sub-form.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/table.html b/gh-pages/form/table.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/table.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/tabs.html b/gh-pages/form/tabs.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/tabs.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/transfer.html b/gh-pages/form/transfer.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/transfer.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/form/validation.html b/gh-pages/form/validation.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/form/validation.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/horizontal.html b/gh-pages/horizontal.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/horizontal.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/iframe.html b/gh-pages/iframe.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/iframe.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/index.html b/gh-pages/index.html index ba5fbdd97..734772c6c 100644 --- a/gh-pages/index.html +++ b/gh-pages/index.html @@ -2,7 +2,7 @@ - AMis Renderer + amis - 低代码前端框架 - +
- - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - diff --git a/gh-pages/linkpage/form.html b/gh-pages/linkpage/form.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/linkpage/form.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/linkpage/form2.html b/gh-pages/linkpage/form2.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/linkpage/form2.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/linkpage/options-local.html b/gh-pages/linkpage/options-local.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/linkpage/options-local.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/linkpage/options.html b/gh-pages/linkpage/options.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/linkpage/options.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/linkpage/page.html b/gh-pages/linkpage/page.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/linkpage/page.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/pages/error.html b/gh-pages/pages/error.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/pages/error.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/pages/form.html b/gh-pages/pages/form.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/pages/form.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/pages/simple.html b/gh-pages/pages/simple.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/pages/simple.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/pkg/app_de57f66.js b/gh-pages/pkg/app_de57f66.js deleted file mode 100644 index 85b5b0db8..000000000 --- a/gh-pages/pkg/app_de57f66.js +++ /dev/null @@ -1,1304 +0,0 @@ -;/*!src/theme.tsx*/ -amis.define("256b65d",function(e,t){"use strict";function n(e,t){h[e]=m.__assign({},t)}function s(e){if(e&&p[e])return p[e];var t=function(){for(var t=[],n=0;n=r[n]?(i.push(Math.floor(e/r[n])+t[n]),e%=r[n]):0===n&&e&&i.push((e.toFixed?e.toFixed(2):"0")+t[0]);return i.join("")}function n(e,r){return/^('|")(.*)\1$/.test(e)?RegExp.$2:/^-?\d+$/.test(e)?parseInt(e,10):/^(-?\d+)\.\d+?$/.test(e)?parseFloat(e):/,/.test(e)?e.split(/\s*,\s*/):t.resolveVariable(e,r)}function i(e,t,r,i,u){return t||!t&&i?n(t?r:i,u):e}function u(e,r){t.filters[e]=r}function o(){return t.filters}function s(e,r){var n,i;if(!e||(i=e.split(","))&&i.length<2){var u=e.indexOf("~");if(~u){var o=e.substring(0,u),s=e.substring(u+1);return n={},n[o]=t.resolveVariable(s,r),n}return t.resolveVariable(e,r)}var a={};return i.forEach(function(e){var n=e.indexOf("~"),i=e;~n&&(i=e.substring(n+1),e=e.substring(0,n)),v.setVariable(a,e,t.resolveVariable(i,r))}),a}function a(e,r,n){return void 0===n&&(n="| raw"),"string"==typeof e&&t.isPureVariable(e)?t.resolveVariableAndFilter(e,r,n):"string"==typeof e&&~e.indexOf("$")?t.tokenize(e,r,n):e}function f(e,t){var r={};return Array.isArray(e)?e.map(function(e){return f(e,t)}):e?(Object.keys(e).forEach(function(n){var i,u=e[n];if("&"===n&&"$$"===u)r=c.__assign(c.__assign({},r),t);else if("&"===n){var o=g.default(u)&&(i=Object.keys(u))&&1===i.length&&t[i[0].substring(1)]&&Array.isArray(t[i[0].substring(1)])?t[i[0].substring(1)].map(function(e){return f(u[i[0]],v.createObject(t,e))}):a(u,t);r=Array.isArray(o)||"string"==typeof o?o:"function"==typeof o?c.__assign(c.__assign({},r),o(t)):c.__assign(c.__assign({},r),o)}else if("$$"===u)r[n]=t;else if(u&&"$"===u[0]){var o=a(u,t);r[n]=o,"__undefined"===o&&delete r[n]}else if(g.default(u)&&(i=Object.keys(u))&&1===i.length&&t[i[0].substring(1)]&&Array.isArray(t[i[0].substring(1)])){var s=t[i[0].substring(1)],l=u[i[0]];r[n]=s.map(function(e){return f(l,v.createObject(t,e))})}else g.default(u)?r[n]=f(u,t):Array.isArray(u)?r[n]=u.map(function(e){return g.default(e)?f(e,t):a(e,t)}):"string"==typeof u&&~u.indexOf("$")?r[n]=a(u,t):"function"==typeof u?r[n]=u(t):(r[n]=u,"__undefined"===u&&delete r[n])}),r):r}function l(){d.reigsterTplEnginer("builtin",{test:function(e){return!!~e.indexOf("$")},compile:function(e,r,n){return void 0===n&&(n="| html"),t.tokenize(e,r,n)}})}Object.defineProperty(t,"__esModule",{value:!0});var c=e("node_modules/tslib/tslib"),d=e("6a2dbb7"),p=c.__importDefault(e("node_modules/moment/moment")),g=c.__importDefault(e("node_modules/lodash/isPlainObject")),v=e("9a80175"),y=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];t.prettyBytes=function(e){if(!Number.isFinite(e))throw new TypeError("Expected a finite number, got "+typeof e+": "+e);var t=0>e;if(t&&(e=-e),1>e)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),y.length-1),n=Number((e/Math.pow(1e3,r)).toPrecision(3)),i=y[r];return(t?"-":"")+n+" "+i};var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};t.escapeHtml=function(e){return String(e).replace(/[&<>"'\/]/g,function(e){return h[e]})},t.formatDuration=r;var m={year:"Y",month:"M",week:"w",weekday:"W",day:"d",hour:"h",minute:"m",min:"m",second:"s",millisecond:"ms"};t.relativeValueRe=/^(.+)?(\+|-)(\d+)(minute|min|hour|day|week|month|year|weekday|second|millisecond)s?$/i,t.filterDate=function(e,r,n,i){void 0===r&&(r={}),void 0===n&&(n="X"),void 0===i&&(i=!1);var u,o=i?p.default.utc:p.default;if("string"==typeof e&&(e=e.trim()),e=d.filter(e,r),e&&"string"==typeof e&&(u=t.relativeValueRe.exec(e))){var s=new Date,a=parseInt(u[3],10),f=u[1]?t.filterDate(u[1],r,n,i):o(/(minute|min|hour|second)s?/.test(u[4])?[s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds()]:[s.getFullYear(),s.getMonth(),s.getDate()]);return"-"===u[2]?f.subtract(a,m[u[4]]):f.add(a,m[u[4]])}if("now"===e)return o();if("today"===e){var s=new Date;return o([s.getFullYear(),s.getMonth(),s.getDate()])}return o(e,n)},t.filters={html:function(e){return t.escapeHtml(e)},json:function(e,t){return void 0===t&&(t=2),t?JSON.stringify(e,null,parseInt(t,10)):JSON.stringify(e)},toJson:function(e){var t;try{t=JSON.parse(e)}catch(r){t=null}return t},raw:function(e){return e},date:function(e,t,r){return void 0===t&&(t="LLL"),void 0===r&&(r="X"),p.default(e,r).format(t)},number:function(e){var t=String(e).split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},trim:function(e){return e.trim()},percent:function(e,t){void 0===t&&(t=0),e=parseFloat(e)||0,t=parseInt(t,10)||0;var r=100*e,n=Math.pow(10,t);return(Math.round(r*n)/n).toFixed(t)+"%"},duration:function(e){return e?r(e):e},bytes:function(e){return e?t.prettyBytes(parseFloat(e)):e},round:function(e,t){void 0===t&&(t=2);var r;if(isNaN(e))return 0;r=parseInt(t,10),t=null!==r&&void 0!==r?r:2;var n=Math.pow(10,t);return(Math.round(e*n)/n).toFixed(t)},truncate:function(e,t,r){return r=r||"...",null==t?e:(t=parseInt(t,10)||200,e.substring(0,t)+(e.length>t?r:""))},url_encode:function(e){return encodeURIComponent(e)},url_decode:function(e){return decodeURIComponent(e)},"default":function(e,t){return e||function(){try{return"undefined"===t?void 0:JSON.parse(t)}catch(e){return t}}()},join:function(e,t){return e&&e.join?e.join(t):e},split:function(e,t){return void 0===t&&(t=","),"string"==typeof e?e.split(t):e},first:function(e){return e&&e[0]},nth:function(e,t){return void 0===t&&(t=0),e&&e[t]},last:function(e){return e&&(e.length?e[e.length-1]:null)},minus:function(e,t){return void 0===t&&(t=1),(parseInt(e,10)||0)-parseInt(t,10)},plus:function(e,t){return void 0===t&&(t=1),(parseInt(e,10)||0)+parseInt(t,10)},pick:function(e,t){return void 0===t&&(t="&"),Array.isArray(e)&&!/^\d+$/.test(t)?e.map(function(e){return s(t,e)}):s(t,e)},pick_if_exist:function(e,r){return void 0===r&&(r="&"),Array.isArray(e)?e.map(function(e){return t.resolveVariable(r,e)||e}):t.resolveVariable(r,e)||e},str2date:function(e,r,n){return void 0===r&&(r="X"),void 0===n&&(n="X"),e?t.filterDate(e,this,r).format(n):""},asArray:function(e){return Array.isArray(e)?e:e?[e]:e},filter:function(e,r,i,u){if(!Array.isArray(e)||!r||!i)return e;var o=i,s=function(){return!0};if("isTrue"===o)s=function(e){return!!e};else if("isFalse"===o)s=function(e){return!e};else if("isExists"===o)s=function(e){return"undefined"!=typeof e};else if("equals"===o||"equal"===o)u=u?n(u,this):"",s=function(e){return u==e};else if("isIn"===o){var a=u?n(u,this):[];a=Array.isArray(a)?a:[a],s=function(e){return!!~a.indexOf(e)}}else if("notIn"===o){var f=u?n(u,this):[];f=Array.isArray(f)?f:[f],s=function(e){return!~f.indexOf(e)}}else{if("match"!==o&&(o="match",u=i),u=u?n(u,this):"",!u)return e;s=function(e){return new RegExp(u,"i").test(String(e))}}return r=r.split(/\s*,\s*/),e.filter(function(e){return r.some(function(r){return s(t.resolveVariable(r,e),r,e)})})},base64Encode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},base64Decode:function(e){return decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))},lowerCase:function(e){return e&&"string"==typeof e?e.toLowerCase():e},upperCase:function(e){return e&&"string"==typeof e?e.toUpperCase():e},isTrue:function(e,t,r){return i(e,!!e,t,r,this)},isFalse:function(e,t,r){return i(e,!e,t,r,this)},isMatch:function(e,t,r,u){return t=n(t,this),i(e,t&&new RegExp(t,"i").test(String(e)),r,u,this)},notMatch:function(e,t,r,u){return t=n(t,this),i(e,t&&!new RegExp(t,"i").test(String(e)),r,u,this)},isEquals:function(e,t,r,u){return t=/^\d+$/.test(t)?parseInt(t,10):n(t,this),i(e,e===t,r,u,this)},notEquals:function(e,t,r,u){return t=/^\d+$/.test(t)?parseInt(t,10):n(t,this),i(e,e!==t,r,u,this)}},t.registerFilter=u,t.getFilters=o,t.pickValues=s,t.resolveVariable=function(e,t){if(void 0===t&&(t={}),!e)return void 0;if("$$"===e)return t;if("$"===e[0])e=e.substring(1);else if("&"===e)return t;if("undefined"!=typeof t[e])return t[e];var r=e.replace(/^{|}$/g,"").split(".");return r.reduce(function(e,t){return(v.isObject(e)||Array.isArray(e))&&t in e?e[t]:void 0},t)},t.isPureVariable=function(e){return"string"==typeof e?/^\$(?:([a-z0-9_.]+)|{[^}{]+})$/.test(e):!1},t.resolveVariableAndFilter=function(e,r,n){if(void 0===r&&(r={}),void 0===n&&(n="| html"),!e)return void 0;var i=/^(\\)?\$(?:([a-z0-9_.]+)|{([\s\S]+)})$/i.exec(e);if(!i)return void 0;var u=i[0],o=i[1],s=i[2],a=i[3];if(o)return u.substring(1);var f=s||a;f=f.replace(/(\\|\\\$)?\$(?:([a-z0-9_.]+)|{([^}{]+)})/g,function(e,i){return i?e.substring(1):t.resolveVariableAndFilter(e,r,n)}),~f.indexOf("|")||(f+=n);var l=f.split(/\s*\|\s*/g),d=f;f=l.shift();var p=t.resolveVariable(f,r),g=!1;return null!=p||~d.indexOf("default")?l.reduce(function(e,n){var i,u,o=n.replace(/([^\\])\\([\:\\])/g,function(e,t,r){return t+"__"+(":"===r?"colon":"slash")+"__"}).split(":").map(function(e){return e.replace(/__(slash|colon)__/g,function(e,t){return"colon"===t?":":"\\"})}),s=o.shift();if(~["isTrue","isFalse","isMatch","isEquals","notMatch","notEquals"].indexOf(s)){if(g)return e;var a=(i=t.filters[s]).call.apply(i,c.__spreadArrays([r,e],o));return g=a!==e,a}return g=!1,(u=t.filters[s]||t.filters.raw).call.apply(u,c.__spreadArrays([r,e],o))},p):""},t.tokenize=function(e,r,n){return void 0===n&&(n="| html"),e&&"string"==typeof e?e.replace(/(\\)?\$(?:([a-z0-9_\.]+|&|\$)|{([^}{]+?)})/gi,function(e,i,u,o,s,a){if(!i&&"$"===u){var f=a[s-1];return"="===f?encodeURIComponent(JSON.stringify(r)):v.qsstringify(r)}return i?e.substring(1):t.resolveVariableAndFilter(e,r,n)}):e},t.dataMapping=f,t.register=l}); -;/*!src/utils/tpl-lodash.ts*/ -amis.define("1267928",function(e,t){"use strict";function a(e,t){try{var a=u.getFilters(),n=r.__assign(r.__assign(r.__assign({},a),{formatTimeStamp:a.date,formatNumber:a.number,defaultValue:a.defaut}),d);delete n.default;var i=o.default(e,{imports:n,variable:"data"});return i(t)}catch(s){return''+s.message+""}}function n(){i.reigsterTplEnginer("lodash",{test:function(e){return!!~e.indexOf("<%")},compile:function(e,t){return a(e,t)}})}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),i=e("6a2dbb7"),o=r.__importDefault(e("node_modules/lodash/template")),u=e("f2e345e"),s=r.__importDefault(e("node_modules/moment/moment")),d={"default":void 0,moment:s.default,countDown:function(e){if(!e)return"--";var t=new Date(1e3*parseInt(e,10)),a=Date.now();return t.getTime()u;u++){var s=c[i[u]];if(s.test(e))return s.compile.apply(s,o.__spreadArrays([e,t],r))}return e}function i(e){g=e}function u(e,t){if("function"==typeof g)return g(e,t);if(!e||"string"!=typeof e)return!1;try{var r=!1,n=e.indexOf("debugger");~n&&(r=!0,e=e.replace(/debugger;?/,""));var i=new Function("data","utils","with(data) {"+(r?"debugger;":"")+"return !!("+e+");}");return t=t||{},i.call(t,t,l.getFilters())}catch(u){return console.warn(u),!1}}function a(e){d=e}function s(e,t){if("function"==typeof d)return d(e,t);try{var r=new Function("data","utils","with(data) {"+(/^\s*return\b/.test(e)?"":"return ")+e+";}");return t=t||{},r.call(t,t,l.getFilters())}catch(n){return console.warn(n),null}}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),l=e("f2e345e"),f=e("1267928"),c={};t.reigsterTplEnginer=r,[l.register,f.register].forEach(function(e){return e()}),t.filter=n;var g;t.setCustomEvalExpression=i,t.evalExpression=u;var d;t.setCustomEvalJs=a,t.evalJS=s}); -;/*!src/utils/helper.ts*/ -amis.define("9a80175",function(n,e){"use strict";function r(n,e,r){n&&Object.isFrozen(n)&&(n=t(n));var i=n?Object.create(n,ie.__assign(ie.__assign({},r),{__super:{value:n,writable:!1,enumerable:!1}})):Object.create(Object.prototype,r);return e&&A(e)&&Object.keys(e).forEach(function(n){return i[n]=e[n]}),i}function t(n,e){void 0===e&&(e=!0);var r=n&&n.__super?Object.create(n.__super,{__super:{value:n.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return e&&n&&Object.keys(n).forEach(function(e){return r[e]=n[e]}),r}function i(n,e,r){void 0===r&&(r=!0);var i=t(n,r);return e&&Object.keys(e).forEach(function(n){return i[n]=e[n]}),i}function o(n,e,r,t,i){var o=ie.__assign({},n),a=[];return t&&"FormStore"===t.storeType?a=ce.default(t.items.map(function(n){return(""+n.name).replace(/\..*$/,"")}).concat(Object.keys(o))):i&&(a=Object.keys(o)),(e||r)&&a.forEach(function(n){n&&(e&&"undefined"!=typeof e[n]||r&&"undefined"!=typeof r[n])&&(r&&!e||!r&&e||r[n]!==e[n])&&(o[n]=e[n])}),o}function a(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()+n()}function u(n,e){for(var r=0,t=n.length;t>r;r++)if(e(n[r],r))return r;return-1}function c(n,e,r){return void 0===r&&(r=!0),n&&e?(r?e in n:n.hasOwnProperty(e))?n[e]:e.split(".").reduce(function(n,e){return n&&"object"==typeof n&&(r?e in n:n.hasOwnProperty(e))?n[e]:void 0},n):void 0}function s(n,e,r){if(n=n||{},e in n)return void(n[e]=r);for(var t=e.split("."),i=t.pop();t.length;){var o=t.shift();oe.default(n[o])?n=n[o]=ie.__assign({},n[o]):n[o]?(n[o]={},n=n[o]):(n[o]={},n=n[o])}n[i]=r}function f(n,e){if(n){if(n.hasOwnProperty(e))return void delete n[e];for(var r=e.split("."),t=r.pop();r.length;){var i=r.shift();if(!oe.default(n[i])){if(n[i])throw new Error("目标路径不是纯对象,不能修改");break}n=n[i]=ie.__assign({},n[i])}n&&n.hasOwnProperty&&n.hasOwnProperty(t)&&delete n[t]}}function l(n,e){for(var r=e.split(".");r.length;){var t=r.shift();if(!A(n)||!n.hasOwnProperty(t))return!1;n=n[t]}return!0}function d(){}function p(n,e,r,t){return void 0===t&&(t=!0),("string"==typeof n?n.split(/\s*,\s*/):n).some(function(n){return t?e[n]!==r[n]:e[n]!=r[n]})}function h(n){var e={};if("object"!=typeof n)return n;var r=Object.keys(n);return r.forEach(function(r){void 0!==n[r]&&(e[r]=n[r])}),e}function v(n,e,r,t){if(void 0===r&&(r=!0),void 0===t&&(t=!1),null==n||null==e||!A(n)||!A(e))return r?n!==e:n!=e;t&&(n=h(n),e=h(e));var i=Object.keys(n),o=Object.keys(e);if(i.length!==o.length||i.join(",")!==o.join(","))return!0;for(var a=i.length-1;a>=0;a--){var u=i[a];if(r?e[u]!==n[u]:v(e[u],n[u],!1,t))return!0}return!1}function m(n,e,r){if(void 0===r&&(r=!0),!Array.isArray(n)||!Array.isArray(e))return r?n!==e:n!=e;if(n.length!==e.length)return!0;for(var t=n.length-1;t>=0;t--)if(r?n[t]!==e[t]:n[t]!=e[t])return!0;return!1}function y(n,e,r){if(void 0===r&&(r=!1),!A(n)||!A(e))return n;var t=n;return Object.keys(e).forEach(function(r){var i=n[r],o=e[r];i!==o&&(t=t!==n?t:ie.__assign({},n),t[r]=o)}),t}function g(n,e){void 0===e&&(e="col-sm-$value");var r=12,t=Math.floor(r/n);return function(i){if(i.columnClassName&&/\bcol-(?:xs|sm|md|lg)-(\d+)\b/.test(i.columnClassName)){var o=parseInt(RegExp.$1,10);return r-=o,n--,t=Math.floor(r/n),i.columnClassName}return i.columnClassName?(r-=t,n--,i.columnClassName):(r-=t,n--,e.replace("$value",""+t))}}function b(n,e){return!(n.hidden||n.visible===!1||n.hiddenOn&&se.evalExpression(n.hiddenOn,e)===!0||n.visibleOn&&se.evalExpression(n.visibleOn,e)===!1)}function _(n,e){return n.disabled||n.disabledOn&&se.evalExpression(n.disabledOn,e)}function O(n,e,r,t){return void 0===t&&(t=!0),n.hasOwnProperty(e)?n[e]:n.hasOwnProperty(e+"On")?se.evalExpression(n[e+"On"],r||n):t}function w(n,e){if(e>1&&/\bcol-(xs|sm|md|lg)-(\d+)\b/.test(n.left)){var r=parseInt(RegExp.$2,10)*e;return{leftFixed:n.leftFixed,left:r,right:12-r,offset:r}}if(e>1&&"number"==typeof n.left){var r=n.left*e;return{leftFixed:n.leftFixed,left:r,right:12-r,offset:r}}return n}function x(n){var e=function(){try{var e=n.apply(null,arguments);return e&&e.then?e:"function"==typeof e?new Promise(function(n,r){return e(function(e,t){return e?r(e):n(t)})}):Promise.resolve(e)}catch(r){Promise.reject(r)}};return e.raw=n,e}function j(n){if(null==n)return null;var e=getComputedStyle(n);if(!e)return null;var r=e.getPropertyValue("overflow")+e.getPropertyValue("overflow-x")+e.getPropertyValue("overflow-y");return/auto|scroll/.test(r)||"BODY"===n.nodeName?n:j(n.parentNode)}function E(n,e,r){function t(n,e){var i=ce.default(Object.keys(n).concat(Object.keys(e))),o={};return i.forEach(function(i){var a=n[i],u=e[i];r&&~r.indexOf(i)&&(o[i]=a),ae.default(a,u)||(o[i]=n.hasOwnProperty(i)?Array.isArray(a)&&Array.isArray(u)?a:ue.default(a)&&ue.default(u)?t(a,u):a:void 0)}),o}return t(n,e)}function k(n){return n}function A(n){var e=typeof n;return n&&"string"!==e&&"number"!==e&&"boolean"!==e&&"function"!==e&&!Array.isArray(n)}function P(n){if("string"!=typeof n)return!!n;var e=n.split(/\s*,\s*|\s+/);if(window.matchMedia)return e.some(function(n){return"*"===n||"xs"===n&&matchMedia("screen and (max-width: 767px)").matches||"sm"===n&&matchMedia("screen and (min-width: 768px) and (max-width: 991px)").matches||"md"===n&&matchMedia("screen and (min-width: 992px) and (max-width: 1199px)").matches||"lg"===n&&matchMedia("screen and (min-width: 1200px)").matches});var r=window.innerWidth;return e.some(function(n){return"*"===n||"xs"===n&&768>r||"sm"===n&&r>=768&&992>r||"md"===n&&r>=992&&1200>r||"lg"===n&&r>=1200})}function F(n,e,r,t){var i=this;void 0===t&&(t=5e3);var o,a=!1;return new Promise(function(u,c){var s=function(){clearTimeout(o),a=!0},f=function(){return ie.__awaiter(i,void 0,void 0,function(){var r,i;return ie.__generator(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,n()];case 1:return r=s.sent(),a?[2]:(e(r)?(a=!0,u(r)):o=setTimeout(f,t),[3,3]);case 2:return i=s.sent(),c(i),[3,3];case 3:return[2]}})})};f(),r&&r(s)})}function C(n,e){return n.filter(function(n){return!~e.indexOf(n.name||n._name)})}function M(n){return A(n)&&Object.keys(n).length?!1:!0}function T(n,e,r,t,i){return void 0===r&&(r=1),void 0===t&&(t=!1),void 0===i&&(i=[]),n.map(function(n,o){if(t){var a=n.children?T(n.children,e,r+1,t,i.concat(n)):void 0;return a&&(n=ie.__assign(ie.__assign({},n),{children:a})),n=e(n,o,r,i)||ie.__assign({},n)}return n=e(n,o,r,i)||ie.__assign({},n),n.children&&n.children.splice&&(n.children=T(n.children,e,r+1,t,i.concat(n))),n})}function D(n,e,r){void 0===r&&(r=1),n.map(function(n,t){e(n,t,r),n.children&&n.children.splice&&D(n.children,e,r+1)})}function S(n,e){var r=null;return R(n,function(n,t,i,o){return e(n,t,i,o)?(r=n,!1):!0}),r}function V(n,e){var r=[];return S(n,function(t,i,o,a){if(e(t,i,o,a)){r=[i],a=a.concat(),a.unshift({children:n});for(var u=a.length-1;u>0;u--){var c=a[u-1],s=a[u];r.unshift(c.children.indexOf(s))}return!0}return!1}),r.length?r:void 0}function $(n,e){for(var r=Array.isArray(e)?e:[e],t=r.pop(),i=n,o=0,a=r.length;a>o;o++){var u=r[o];if(!i[u]){i=null;break}i=i[u].children}return i?i[t]:void 0}function N(n,e,r,t){return void 0===r&&(r=1),void 0===t&&(t=!1),t?n.map(function(n){var i=n.children?N(n.children,e,r+1,t):void 0;return i&&(n=ie.__assign(ie.__assign({},n),{children:i})),n}).filter(function(n,t){return e(n,t,r)}):n.filter(function(n,t){return e(n,t,r)}).map(function(n){return n.children&&n.children.splice&&(n=ie.__assign(ie.__assign({},n),{children:N(n.children,e,r+1,t)})),n})}function R(n,e,r,t,i){return void 0===r&&(r=1),void 0===t&&(t=[]),void 0===i&&(i=[]),n.every(function(n,o){var a=e(n,o,r,t,i);return a&&n.children&&n.children.splice?R(n.children,e,r+1,t.concat(n),i.concat(o)):a})}function I(n,e){var r=!1;return R(n,function(n,t,i,o){return e(n,t,i,o)?(r=!0,!1):!0}),r}function q(n,e){var r=[];return D(n,function(n,t){return r.push(e?e(n,t):n)}),r}function B(n,e,r){void 0===r&&(r=0);for(var t=[],i=3;io?-1:o===a?0:1:String(o).localeCompare(String(a)),i*r})}function Q(n){return Object.keys(n).some(function(e){var r=n[e];return r instanceof File||Array.isArray(r)&&r.length&&r[0]instanceof File})}function X(n,e){return void 0===e&&(e={arrayFormat:"indices",encodeValuesOnly:!0}),le.default.stringify(n,e)}function Z(n,e,r){void 0===e&&(e={arrayFormat:"indices",encodeValuesOnly:!0}),void 0===r&&(r=new FormData);var t={};return Object.keys(n).forEach(function(e){var i=n[e];i instanceof File?r.append(e,i,i.name):Array.isArray(i)&&i.length&&i[0]instanceof File?i.forEach(function(n){return r.append(e+"[]",n,n.name)}):t[e]=i}),X(t,e).split("&").forEach(function(n){var e=n.split("=");e[0]&&r.append(e[0],decodeURIComponent(e[1]))}),r}function ne(){for(var n=[],e=0;e=e?i+=1:o.push(t.shift())}return r},e.__uri=k,e.isObject=A,e.isBreakpoint=P,e.until=F,e.omitControls=C,e.isEmpty=M,e.uuid=function(){return(+new Date).toString(36)},e.mapTree=T,e.eachTree=D,e.findTree=S,e.findTreeIndex=V,e.getTree=$,e.filterTree=N,e.everyTree=R,e.someTree=I,e.flattenTree=q,e.spliceTree=B,e.getTreeDepth=U,e.ucFirst=z,e.lcFirst=L,e.camel=W,e.getWidthRate=H,e.getLevelFromClassName=Y,e.string2regExp=G,e.pickEventsProps=J,e.autobind=fe.boundMethod,e.bulkBindFunctions=function(n,e){e.forEach(function(e){return n[e]=n[e].bind(n)})},e.sortArray=K,e.hasFile=Q,e.qsstringify=X,e.object2formData=Z,e.chainFunctions=ne,e.chainEvents=ee,e.mapObject=re,e.loadScript=te;var de=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return ie.__extends(e,n),e}(Error);e.SkipOperation=de}); -;/*!src/components/AsideNav.tsx*/ -amis.define("4e7c54b",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),a=t.__importDefault(e("node_modules/react/index")),i=e("9a80175"),s=e("256b65d"),r=function(e){function n(n){var a=e.call(this,n)||this,s=n.isOpen,r=1;return a.state={navigations:i.mapTree(n.navigations,function(e){var a="undefined"==typeof e.active?n.isActive(e):e.active;return t.__assign(t.__assign({},e),{id:r++,active:a,open:a||s(e)})},1,!0)},a.renderLink=a.renderLink.bind(a),a.toggleExpand=a.toggleExpand.bind(a),a}return t.__extends(n,e),n.prototype.componentWillReceiveProps=function(e){var n=this.props,a=n.isOpen;if(n.navigations!==e.navigations||n.isActive!==e.isActive){var s=1;this.setState({navigations:i.mapTree(e.navigations,function(n){var i="undefined"==typeof n.active?e.isActive(n):n.active;return t.__assign(t.__assign({},n),{id:s++,active:i,open:i||a(n)})},1,!0)})}},n.prototype.toggleExpand=function(e,n){n&&(n.stopPropagation(),n.preventDefault()),this.setState({navigations:i.mapTree(this.state.navigations,function(n){return t.__assign(t.__assign({},n),{open:e.id===n.id?!n.open:n.open})},1,!0)})},n.prototype.renderLink=function(e,n,i,s){var r;void 0===i&&(i={}),void 0===s&&(s=1);var l=this.props,o=l.renderLink,c=(l.isActive,l.renderSubLinks),u=l.classnames,d=t.__rest(l,["renderLink","isActive","renderSubLinks","classnames"]),p=o(t.__assign({link:e,active:e.active,open:e.open,toggleExpand:this.toggleExpand,depth:s,classnames:u},d));return p?a.default.createElement("li",t.__assign({},i,{key:n,className:u("AsideNav-item",e.className,(r={},r["is-open"]=e.open,r["is-active"]=e.active,r))}),p,c(e,this.renderLink,s,this.props)):void 0},n.prototype.render=function(){var e=this,n=this.state.navigations,i=[],s=this.props,r=s.className,l=s.classnames;return n.forEach(function(n,s){if(n.prefix){var r="function"==typeof n.prefix?n.prefix(e.props):n.prefix;i.push(a.default.cloneElement(r,t.__assign(t.__assign({},r.props),{key:s+"-prefix"})))}if(n.label&&i.push(a.default.createElement("li",{key:s+"-label",className:l("AsideNav-label",n.className)},a.default.createElement("span",null,n.label))),n.children.forEach(function(n,t){var a=e.renderLink(n,s+"-"+t);a&&i.push(a)}),n.affix){var o="function"==typeof n.affix?n.affix(e.props):n.affix;i.push(a.default.cloneElement(o,t.__assign(t.__assign({},o.props),{key:s+"-affix"})))}}),a.default.createElement("nav",{className:l("AsideNav",r)},a.default.createElement("ul",{className:l("AsideNav-list")},i))},n.defaultProps={renderLink:function(e){return a.default.createElement("a",null,e.label)},renderSubLinks:function(e,n,t,i){var s=i.classnames;return e.children&&e.children.length?a.default.createElement("ul",{className:s("AsideNav-subList")},e.label?a.default.createElement("li",{key:"subHeader",className:s("AsideNav-subHeader")},a.default.createElement("a",null,e.label)):null,e.children.map(function(e,a){return n(e,a,{},t+1)})):e.label&&1===t?a.default.createElement("div",{className:s("AsideNav-tooltip")},e.label):null},isActive:function(e){return e.open},isOpen:function(e){return e.children?e.children.some(function(e){return e.open}):!1}},n}(a.default.Component);n.AsideNav=r,n.default=s.themeable(r)}); -;/*!src/components/ModalManager.ts*/ -amis.define("8768414",function(e,n){"use strict";function o(){return l.length}function t(){return l[l.length-1]}function d(e){l.push(e)}function i(){l.pop()}function r(e){var n=s.default(e);if("esc"===n){var o=t();if(o){var d=o.props,i=d.disabled,r=d.closeOnEsc;r&&!i&&o.props.onHide(e)}}}Object.defineProperty(n,"__esModule",{value:!0});var u=e("node_modules/tslib/tslib"),s=u.__importDefault(e("node_modules/keycode/index")),l=[];n.current=o,n.currentModal=t,n.addModal=d,n.removeModal=i,window.addEventListener("keydown",r)}); -;/*!src/icons/close.svg*/ -amis.define('src/icons/close.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Close = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), - react_1.default.createElement("polygon", { id: "path-1", points: "6.0003653 5.2970518 10.5993691 0.6980479600000002 11.3064759 1.4051547400000004 6.7074721 6.0041586 11.3009516 10.5976381 10.5938448 11.3047449 6.0003653 6.7112654 1.4056713299999997 11.3059593 0.6985645500000004 10.5988525 5.2932585 6.0041586 0.6956119200000002 1.4065120000000002 1.4027187000000003 0.69940522" })); }; - exports.default = Close; - - -}); - -;/*!src/icons/undo.svg*/ -amis.define('src/icons/undo.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Undo = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 854 768", className: "icon" }, props), - react_1.default.createElement("g", { id: "undo", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M576.333333,213.333333 L82.04,213.333333 L265.293333,30.08 L235,0 L0.333333,234.666667 L235,469.333333 L265.08,439.253333 L82.04,256 L576.333333,256 C705.930172,256.00846 810.984681,361.069827 810.984681,490.666667 C810.984681,620.263506 705.930172,725.324873 576.333333,725.333333 L363,725.333333 L363,768 L576.333333,768 C729.500304,768 853.666667,643.833637 853.666667,490.666667 C853.666667,337.499696 729.500304,213.333333 576.333333,213.333333 Z", id: "\\u8DEF\\u5F84" }))); }; - exports.default = Undo; - - -}); - -;/*!src/icons/redo.svg*/ -amis.define('src/icons/redo.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Redo = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 854 768", className: "icon" }, props), - react_1.default.createElement("g", { id: "redo", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M619,0 L588.92,30.08 L771.96,213.333333 L277.666667,213.333333 C124.499696,213.333333 0.3333335,337.499696 0.3333335,490.666667 C0.3333335,643.833637 124.499696,768 277.666667,768 L491,768 L491,725.333333 L277.666667,725.333333 C148.069828,725.324873 43.0153188,620.263506 43.0153188,490.666667 C43.0153188,361.069827 148.069828,256.00846 277.666667,256 L771.96,256 L588.706667,439.253333 L619,469.333333 L853.666667,234.666667 L619,0 Z", id: "\\u8DEF\\u5F84" }))); }; - exports.default = Redo; - - -}); - -;/*!src/icons/enter.svg*/ -amis.define('src/icons/enter.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Enter = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("path", { d: "M864 192c-19.2 0-32 12.8-32 32v224c0 89.6-70.4 160-160 160H236.8l105.6-105.6c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0l-160 160c-3.2 3.2-6.4 6.4-6.4 9.6-3.2 6.4-3.2 16 0 25.6 3.2 3.2 3.2 6.4 6.4 9.6l160 160c6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6c12.8-12.8 12.8-32 0-44.8L236.8 672H672c124.8 0 224-99.2 224-224V224c0-19.2-12.8-32-32-32z" })); }; - exports.default = Enter; - - -}); - -;/*!src/icons/volume.svg*/ -amis.define('src/icons/volume.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Volume = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("path", { d: "M536.319574 5.11991a63.99888 63.99888 0 0 0-69.758779 13.439765L229.764939 255.99552H64.00784a63.99888 63.99888 0 0 0-63.99888 63.99888v383.99328a63.99888 63.99888 0 0 0 63.99888 63.99888h165.757099l236.795856 237.435845A63.99888 63.99888 0 0 0 512 1023.98208a53.759059 53.759059 0 0 0 24.319574-5.11991A63.99888 63.99888 0 0 0 575.99888 959.9832V63.99888a63.99888 63.99888 0 0 0-39.679306-58.87897zM192.0056 639.9888H128.00672V383.99328h63.99888z m255.99552 165.757099l-127.99776-127.99776V346.233941l127.99776-127.99776zM879.353571 148.477402a63.99888 63.99888 0 0 0-94.718342 87.038476 402.552955 402.552955 0 0 1 0 552.950324A63.99888 63.99888 0 0 0 831.9944 895.98432a63.99888 63.99888 0 0 0 46.719183-20.479641 531.830693 531.830693 0 0 0 0-727.027277z", fill: "#606670", "p-id": 3605 }), - react_1.default.createElement("path", { d: "M751.9958 277.11515a63.99888 63.99888 0 0 0-95.99832 85.7585A218.236181 218.236181 0 0 1 703.99664 511.99104a221.436125 221.436125 0 0 1-47.359171 149.117391 63.99888 63.99888 0 0 0 4.479921 90.23842A63.99888 63.99888 0 0 0 703.99664 767.98656a63.99888 63.99888 0 0 0 47.359171-21.11963A349.433885 349.433885 0 0 0 831.9944 511.99104a353.273818 353.273818 0 0 0-79.9986-234.87589z", fill: "#606670", "p-id": 3606 })); }; - exports.default = Volume; - - -}); - -;/*!src/icons/mute.svg*/ -amis.define('src/icons/mute.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Mute = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("path", { d: "M536.310615 5.11991a63.99888 63.99888 0 0 0-69.75878 13.439765L229.755979 255.99552H63.99888a63.99888 63.99888 0 0 0-63.99888 63.99888v383.99328a63.99888 63.99888 0 0 0 63.99888 63.99888h165.757099l236.795856 237.435845A63.99888 63.99888 0 0 0 511.99104 1023.98208a53.759059 53.759059 0 0 0 24.319575-5.11991A63.99888 63.99888 0 0 0 575.98992 959.9832V63.99888a63.99888 63.99888 0 0 0-39.679305-58.87897zM191.99664 639.9888H127.99776V383.99328h63.99888z m255.99552 165.757099l-127.99776-127.99776V346.233941l127.99776-127.99776zM914.543995 511.99104l90.87841-90.238421a63.99888 63.99888 0 1 0-90.87841-90.878409l-90.23842 90.878409-90.238421-90.878409a63.99888 63.99888 0 0 0-90.87841 90.878409L734.067154 511.99104l-90.87841 90.238421a63.99888 63.99888 0 0 0 90.87841 90.87841l90.238421-90.87841 90.23842 90.87841a63.99888 63.99888 0 1 0 90.87841-90.87841z", fill: "#606670", "p-id": 2312 })); }; - exports.default = Mute; - - -}); - -;/*!src/icons/play.svg*/ -amis.define('src/icons/play.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Play = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 16", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("path", { d: "M13.5722,7.254 L1.2838,0.115 C1.019,-0.038 0.6926,-0.038 0.4278,0.115 C0.163,0.269 -1.83725092e-07,0.554 -1.83725092e-07,0.861 L-1.83725092e-07,15.139 C-0.0002,15.446 0.1629,15.731 0.4278,15.885 C0.6927,16.039 1.019,16.038 1.2838,15.884 L13.5721,8.746 C13.8368,8.592 13.9999998,8.308 13.9999998,8 C13.9999998,7.692 13.837,7.408 13.5722,7.254 Z", id: "path-1" })); }; - exports.default = Play; - - -}); - -;/*!src/icons/pause.svg*/ -amis.define('src/icons/pause.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Pause = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("path", { d: "M757.52 73.107h-62.493c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.493c34.516 0 62.502-27.968 62.502-62.493v-749.953c-0.001-34.524-27.984-62.509-62.502-62.509z", "p-id": 7567, fill: "#606670" }), - react_1.default.createElement("path", { d: "M320.054 73.107h-62.502c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.502c34.505 0 62.493-27.968 62.493-62.493v-749.953c-0.001-34.524-27.984-62.509-62.493-62.509z", "p-id": 7568, fill: "#606670" })); }; - exports.default = Pause; - - -}); - -;/*!src/icons/left-arrow.svg*/ -amis.define('src/icons/left-arrow.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var LeftArrow = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 577 1024", className: "icon" }, props), - react_1.default.createElement("g", { id: "left-arrow", transform: "translate(-1.000000, 0.000000)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M101.211517,511.805631 L564.889594,73.082583 C581.083814,56.452218 581.083814,29.107879 564.889594,12.477515 C548.695374,-4.15285 522.393987,-4.15285 506.275618,12.477515 L12.750113,479.360302 C4.103082,488.3297 0.405338,500.295219 1.03111,511.805631 C0.386375,523.714261 4.103082,535.67978 12.750113,544.630216 L506.256655,1011.513 C522.375024,1028.16233 548.695373,1028.16233 564.870631,1011.513 C581.064851,994.427533 581.064851,967.5383 564.870631,950.907936 L101.211517,511.805631", id: "\\u8DEF\\u5F84" }))); }; - exports.default = LeftArrow; - - -}); - -;/*!src/icons/right-arrow.svg*/ -amis.define('src/icons/right-arrow.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var RightArrow = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 513 1021", className: "icon" }, props), - react_1.default.createElement("g", { id: "right-arrow", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M56.559054,1013.77369 L512.908116,512.684524 L56.559054,12.234501 C49.4114678,2.93455912 37.6664238,-1.59188176 26.1262324,0.505948246 C14.586041,2.60377825 5.18544409,10.9741727 1.76815516,22.1946471 C-1.64913377,33.4151214 1.48980228,45.6045351 9.901516,53.778884 L424.706197,512.684524 L12.458094,969.672731 C2.45820596,982.551498 4.01297737,1000.9483 16.0324422,1011.96615 C28.0519071,1022.98399 46.5142346,1022.93619 58.476487,1011.85626 L56.559054,1013.77369 Z", id: "\\u8DEF\\u5F84" }))); }; - exports.default = RightArrow; - - -}); - -;/*!src/icons/check.svg*/ -amis.define('src/icons/check.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Check = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 13 9", "p-id": 3506, className: "icon" }, props), - react_1.default.createElement("g", { transform: "translate(6.656854, 2.656854) scale(-1, 1) rotate(-315.000000) translate(-6.656854, -2.656854) " }, - react_1.default.createElement("polygon", { id: "path-1", points: "11.1568542 5.15685425 11.1568542 -0.843145751 12.1568542 -0.843145751 12.1568542 6.15685425 1.15685425 6.15685425 1.15685425 5.15685425" }))); }; - exports.default = Check; - - -}); - -;/*!src/icons/plus.svg*/ -amis.define('src/icons/plus.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Plus = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), - react_1.default.createElement("g", { id: "\\u9875\\u9762-1", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("g", { id: "plus", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("polygon", { id: "path-1", points: "6.6 6.6 6.6 12 5.4 12 5.4 6.6 0 6.6 0 5.4 5.4 5.4 5.4 0 6.6 0 6.6 5.4 12 5.4 12 6.6" })))); }; - exports.default = Plus; - - -}); - -;/*!src/icons/minus.svg*/ -amis.define('src/icons/minus.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Minus = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 2", className: "icon" }, props), - react_1.default.createElement("g", { id: "minus", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("polygon", { id: "path-1", points: "0 1.6 0 0.4 12 0.4 12 1.6" }))); }; - exports.default = Minus; - - -}); - -;/*!src/icons/pencil.svg*/ -amis.define('src/icons/pencil.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Pencil = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 14", className: "icon" }, props), - react_1.default.createElement("g", { id: "pencil", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M10.496,0.834 L13.168,3.506 C13.48,3.818 13.48,4.322 13.168,4.634 L10.904,6.898 L4.4,13.402 L0.6,13.402 L0.6,9.602 L7.848,2.354 L7.848,2.354 L9.368,0.834 C9.68,0.522 10.184,0.522 10.496,0.834 Z M7.67,3.663 L1.4,9.9333708 L1.4,12.602 L4.06862915,12.602 L10.338,6.331 L7.67,3.663 Z M9.932,1.40137085 L8.23537085,3.098 L10.904,5.76662915 L12.6006292,4.07 L9.932,1.40137085 Z M7,12.6 L11.8,12.6 L11.8,13.4 L7,13.4 L7,12.6 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = Pencil; - - -}); - -;/*!src/icons/view.svg*/ -amis.define('src/icons/view.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var View = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 10", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("g", null, - react_1.default.createElement("path", { d: "M8,1 C11,1 13.7,3.8 14.7,5 C13.7,6.2 11,9 8,9 C5,9 2.3,6.2 1.3,5 C2.3,3.8 5,1 8,1 L8,1 Z M8,0 C3.6,0 0,5 0,5 C0,5 3.6,10 8,10 C12.4,10 16,5 16,5 C16,5 12.4,0 8,0 L8,0 Z" }), - react_1.default.createElement("path", { d: "M8,2 C9.7,2 11,3.3 11,5 C11,6.7 9.7,8 8,8 C6.3,8 5,6.7 5,5 C5,3.3 6.3,2 8,2 L8,2 Z M8,1 C5.8,1 4,2.8 4,5 C4,7.2 5.8,9 8,9 C10.2,9 12,7.2 12,5 C12,2.8 10.2,1 8,1 L8,1 Z" }))); }; - exports.default = View; - - -}); - -;/*!src/icons/remove.svg*/ -amis.define('src/icons/remove.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Remove = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("g", null, - react_1.default.createElement("rect", { id: "Rectangle-path", x: 4, y: 5, width: 1, height: 4 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 7, y: 5, width: 1, height: 4 }), - react_1.default.createElement("path", { d: "M0,2 L0,3 L1,3 L1,11 L1,11.5 L1,12 L11,12 L11,11.5 L11,11 L11,3 L12,3 L12,2 L0,2 Z M10,11 L2,11 L2,3 L10,3 L10,11 Z", id: "Shape" }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 4, y: 0, width: 4, height: 1 }))); }; - exports.default = Remove; - - -}); - -;/*!src/icons/retry.svg*/ -amis.define('src/icons/retry.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Retry = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 15 17", className: "icon" }, props), - react_1.default.createElement("g", { transform: "translate(1.000000, 0.000000)" }, - react_1.default.createElement("polygon", { id: "Fill-1", fill: "#666666", points: "5.0003 0.0003 5.0003 7.0703 9.5353 3.5353" }), - react_1.default.createElement("path", { fill: "none", d: "M13,9.5355 C13,13.1255 10.09,16.0355 6.5,16.0355 C2.91,16.0355 0,13.1255 0,9.5355 C0,5.9455 2.91,3.0355 6.5,3.0355", stroke: "#666666", strokeWidth: 2 }))); }; - exports.default = Retry; - - -}); - -;/*!src/icons/upload.svg*/ -amis.define('src/icons/upload.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Upload = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("g", { stroke: "currentColor", strokeWidth: 2, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("path", { d: "M8,12.2426 L8,1.2426" }), - react_1.default.createElement("path", { d: "M4.4648,4.9496 L8.7068,0.7076" }), - react_1.default.createElement("path", { d: "M11.5352,4.9496 L7.2932,0.7076" }), - react_1.default.createElement("path", { d: "M0,14.2426 L16,14.2426" }), - react_1.default.createElement("path", { d: "M1,9.2426 L1,15.2426" }), - react_1.default.createElement("path", { d: "M15,9.2426 L15,15.2426" }))); }; - exports.default = Upload; - - -}); - -;/*!src/icons/file.svg*/ -amis.define('src/icons/file.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var File = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 16", className: "icon" }, props), - react_1.default.createElement("g", null, - react_1.default.createElement("path", { d: "M0,0 L0,16 L14,16 L14,4.001 L9.939,0 L0,0 Z M1,1 L9,1 L9,4.001 L9,5 L10,5 L13,5 L13,15 L1,15 L1,1 Z M10,1.464 L12.575,4.001 L10,4.001 L10,1.464 Z", id: "Fill-1" }), - react_1.default.createElement("polygon", { points: "4 12.0002 10 12.0002 10 10.9992 4 10.9992" }), - react_1.default.createElement("polygon", { points: "4 9.0002 10 9.0002 10 8.0002 4 8.0002" }))); }; - exports.default = File; - - -}); - -;/*!src/icons/success.svg*/ -amis.define('src/icons/success.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Success = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 32 32", className: "icon" }, props), - react_1.default.createElement("g", { id: "Group-5" }, - react_1.default.createElement("circle", { stroke: "currentColor", fill: "none", cx: 16, cy: 16, r: 15.5 }), - react_1.default.createElement("g", { transform: "translate(5.647059, 7.529412)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("polygon", { id: "Shape", points: "21.1764706 2.76408669 18.7058824 0.26749226 7.41176471 11.6804954 2.47058824 6.50897833 0 9.18390093 4.94117647 14.1770898 4.94117647 14.1770898 7.41176471 16.6736842 9.88235294 14.1770898 9.88235294 14.1770898" })))); }; - exports.default = Success; - - -}); - -;/*!src/icons/fail.svg*/ -amis.define('src/icons/fail.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Fail = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 34 34", className: "icon" }, props), - react_1.default.createElement("g", { transform: "translate(1.000000, 1.000000)" }, - react_1.default.createElement("circle", { stroke: "currentColor", cx: 16, cy: 16, r: 16, fill: "none" }), - react_1.default.createElement("polygon", { fill: "currentColor", fillRule: "nonzero", points: "24 10.1052632 21.8947368 8 16 14.0350877 10.1052632 8 8 10.1052632 14.0350877 16 8 21.8947368 10.1052632 24 16 17.9649123 21.8947368 24 24 21.8947368 17.9649123 16" }))); }; - exports.default = Fail; - - -}); - -;/*!src/icons/search.svg*/ -amis.define('src/icons/search.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Search = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 18 18", className: "icon" }, props), - react_1.default.createElement("path", { d: "M2,8 C2,4.691 4.691,2 8,2 C11.309,2 14,4.691 14,8 C14,11.309 11.309,14 8,14 C4.691,14 2,11.309 2,8 L2,8 Z M18,16.586 L14.314,12.9 C15.367,11.545 16,9.849 16,8 C16,3.582 12.418,0 8,0 C3.582,0 0,3.582 0,8 C0,12.418 3.582,16 8,16 C9.849,16 11.545,15.367 12.9,14.314 L16.586,18 L18,16.586 Z" })); }; - exports.default = Search; - - -}); - -;/*!src/icons/back.svg*/ -amis.define('src/icons/back.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Back = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 9 12", "p-id": 3506, className: "icon" }, props), - react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("g", { transform: "translate(-11.000000, -9.000000)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("g", { transform: "translate(11.000000, 9.000000)" }, - react_1.default.createElement("polygon", { transform: "translate(4.294118, 6.000000) rotate(-270.000000) translate(-4.294118, -6.000000) ", points: "8.76684493 2 4.29411765 6.79999999 -0.178609633 2 -1.70588235 3.6 4.29411765 10 10.2941176 3.6" }))))); }; - exports.default = Back; - - -}); - -;/*!src/icons/move.svg*/ -amis.define('src/icons/move.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Move = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", className: "icon" }, props), - react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("g", { fill: "currentColor" }, - react_1.default.createElement("polygon", { points: "8.02 0 5.161 2.859 6.161 3.859 7.02 3.001 7.02 7.02 3.001 7.02 3.859 6.16 2.859 5.161 0 8.02 2.82 10.84 3.82 9.84 3.001 9.02 7.02 9.02 7.02 13.001 6.161 12.141 5.161 13.141 8.02 16 10.839 13.18 9.839 12.181 9.02 13.001 9.02 9.02 13.001 9.02 12.18 9.84 13.18 10.84 16 8.02 13.141 5.161 12.141 6.16 13.001 7.02 9.02 7.02 9.02 3.001 9.839 3.82 10.839 2.82" })))); }; - exports.default = Move; - - -}); - -;/*!src/icons/info.svg*/ -amis.define('src/icons/info.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Info = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", "p-id": 1463, className: "icon" }, props), - react_1.default.createElement("g", { id: "Group-9" }, - react_1.default.createElement("circle", { id: "Oval-7", stroke: "currentColor", fill: "transparent", cx: 8, cy: 8, r: 7.5 }), - react_1.default.createElement("rect", { id: "Rectangle-26", fill: "currentColor", x: 7, y: 3, width: 2, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-26-Copy", fill: "currentColor", x: 7, y: 6, width: 2, height: 7 }))); }; - exports.default = Info; - - -}); - -;/*!src/icons/location.svg*/ -amis.define('src/icons/location.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Location = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ t: 1585402743083, className: "icon", viewBox: "0 0 1024 1024", "p-id": 2408 }, props), - react_1.default.createElement("defs", null, - react_1.default.createElement("style", { type: "text/css" })), - react_1.default.createElement("path", { d: "M511.968 0c-207.84 0-376.96 169.12-376.96 376.992 0 54.208 11.104 105.984 32.96 153.888 94.24 206.24 274.976 424 328.128 485.824 3.968 4.608 9.792 7.296 15.904 7.296s11.904-2.656 15.904-7.296c53.12-61.824 233.856-279.552 328.128-485.824 21.888-47.904 32.96-99.648 32.96-153.888-0.032-207.872-169.152-376.992-376.992-376.992zM511.968 572.8c-107.968 0-195.808-87.84-195.808-195.808s87.84-195.84 195.808-195.84 195.808 87.84 195.808 195.84c0 107.968-87.84 195.808-195.808 195.808z", "p-id": 2409 })); }; - exports.default = Location; - - -}); - -;/*!src/icons/drag-bar.svg*/ -amis.define('src/icons/drag-bar.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var DragBar = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 428 684", className: "icon" }, props), - react_1.default.createElement("g", { id: "drag-bar", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M171.333333,86 C171.333333,133.128298 133.128298,171.333333 86,171.333333 C38.8717015,171.333333 0.666667,133.128298 0.666667,86 C0.666667,38.8717015 38.8717015,0.666667 86,0.666667 C133.128298,0.666667 171.333333,38.8717015 171.333333,86 L171.333333,86 Z M86,256.666667 C38.8717015,256.666667 0.666667,294.871702 0.666667,342 C0.666667,389.128298 38.8717015,427.333333 86,427.333333 C133.128298,427.333333 171.333333,389.128298 171.333333,342 C171.333333,294.871702 133.128298,256.666667 86,256.666667 L86,256.666667 Z M86,512.666667 C38.8717015,512.666667 0.666667,550.871702 0.666667,598 C0.666667,645.128298 38.8717015,683.333333 86,683.333333 C133.128298,683.333333 171.333333,645.128298 171.333333,598 C171.333333,550.871702 133.128298,512.666667 86,512.666667 L86,512.666667 Z M342,171.333333 C389.128298,171.333333 427.333333,133.128298 427.333333,86 C427.333333,38.8717015 389.128298,0.666667 342,0.666667 C294.871702,0.666667 256.666667,38.8717015 256.666667,86 C256.666667,133.128298 294.871702,171.333333 342,171.333333 L342,171.333333 Z M342,256.666667 C294.871702,256.666667 256.666667,294.871702 256.666667,342 C256.666667,389.128298 294.871702,427.333333 342,427.333333 C389.128298,427.333333 427.333333,389.128298 427.333333,342 C427.333333,294.871702 389.128298,256.666667 342,256.666667 L342,256.666667 Z M342,512.666667 C294.871702,512.666667 256.666667,550.871702 256.666667,598 C256.666667,645.128298 294.871702,683.333333 342,683.333333 C389.128298,683.333333 427.333333,645.128298 427.333333,598 C427.333333,575.368193 418.342883,553.663326 402.339778,537.660222 C386.336674,521.657117 364.631807,512.666667 342,512.666667 L342,512.666667 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = DragBar; - - -}); - -;/*!src/icons/reload.svg*/ -amis.define('src/icons/reload.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Reload = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", className: "icon" }, props), - react_1.default.createElement("g", { fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M8.05031447,14.0555556 C5.93710692,14.0555556 4.02515723,12.9861111 2.91823899,11.2361111 L5.03144654,9.19444444 L0,9.19444444 L0,14.0555556 L1.40880503,12.6944444 C2.91823899,14.7361111 5.33333333,16 8.05031447,16 C12.0754717,16 15.4968553,13.1805556 16,9.29166667 L13.9874214,9 C13.5849057,11.9166667 11.0691824,14.0555556 8.05031447,14.0555556 Z M14.591195,3.30555556 C13.081761,1.26388889 10.6666667,0 7.94968553,0 C3.9245283,0 0.503144654,2.81944444 0,6.70833333 L2.01257862,7 C2.41509434,4.08333333 4.93081761,1.94444444 7.94968553,1.94444444 C10.0628931,1.94444444 11.9748428,3.01388889 13.081761,4.76388889 L10.9685535,6.80555556 L16,6.80555556 L16,1.94444444 L14.591195,3.30555556 Z", id: "Shape" }))); }; - exports.default = Reload; - - -}); - -;/*!src/icons/exchange.svg*/ -amis.define('src/icons/exchange.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Exchange = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 175 201", className: "icon" }, props), - react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("path", { d: "M-1.01710969,84.1828903 L176.48289,84.1828903 C182.68289,84.1828903 187.78289,79.0828903 187.78289,72.8828903 C187.78289,69.4828903 186.28289,66.3828903 183.68289,64.1828903 C183.08289,63.3828903 182.28289,62.6828903 181.48289,62.0828903 L115.18289,15.5828903 C110.08289,11.9828903 103.08289,13.1828903 99.4828903,18.2828903 C95.8828903,23.3828903 97.1828903,30.3828903 102.28289,33.9828903 L141.58289,61.5828903 L-1.01710969,61.5828903 C-7.21710969,61.6828903 -12.3171097,66.7828903 -12.3171097,72.9828903 C-12.3171097,79.1828903 -7.21710969,84.1828903 -1.01710969,84.1828903 Z M-1.01710969,117.38289 C-7.21710969,117.38289 -12.3171097,122.48289 -12.3171097,128.68289 C-12.3171097,132.08289 -10.8171097,135.18289 -8.21710969,137.38289 C-7.51710969,138.18289 -6.81710969,138.88289 -6.01710969,139.48289 L60.2828903,185.98289 C62.1828903,187.28289 64.3828903,187.98289 66.7828903,187.98289 C70.4828903,187.98289 73.8828903,186.18289 75.9828903,183.18289 C77.6828903,180.68289 78.3828903,177.78289 77.8828903,174.78289 C77.3828903,171.78289 75.6828903,169.28289 73.2828903,167.48289 L33.9828903,139.88289 L176.48289,139.88289 C182.68289,139.88289 187.78289,134.78289 187.78289,128.58289 C187.68289,122.38289 182.58289,117.38289 176.38289,117.38289 L-1.01710969,117.38289 Z", fill: "currentColor", fillRule: "nonzero", transform: "translate(87.732890, 100.745312) rotate(-270.000000) translate(-87.732890, -100.745312) " }))); }; - exports.default = Exchange; - - -}); - -;/*!src/icons/columns.svg*/ -amis.define('src/icons/columns.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Columns = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 122 123", className: "icon" }, props), - react_1.default.createElement("g", { id: "th", transform: "translate(0.062500, 0.671875)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M5.5208334,0.078125 L27.6041666,0.078125 C29.2708332,0.078125 30.5208332,0.494791602 31.3541666,1.7447916 C32.1875,2.9947916 33.0208334,4.2447916 33.0208334,5.4947916 L33.0208334,27.578125 C33.0208334,29.2447916 32.6041666,30.4947916 31.3541666,31.328125 C30.1041666,32.1614584 28.8541666,32.9947916 27.6041666,32.9947916 L5.5208334,32.9947916 C3.8541668,32.9947916 2.6041666,32.578125 1.7708334,31.328125 C0.520833398,30.078125 0.104166602,28.828125 0.104166602,27.578125 L0.104166602,5.4947916 C0.104166602,3.828125 0.520833203,2.578125 1.7708334,1.7447916 C2.6041666,0.911458203 3.8541668,0.078125 5.5208334,0.078125 Z M49.6875,0.078125 L71.7708334,0.078125 C73.4375,0.078125 74.6875,0.494791602 75.5208334,1.7447916 C76.7708334,2.9947916 77.1875,4.2447916 77.1875,5.4947916 L77.1875,27.578125 C77.1875,29.2447916 76.7708334,30.4947916 75.5208334,31.328125 C74.2708334,32.578125 73.0208334,32.9947916 71.7708334,32.9947916 L49.6875,32.9947916 C48.0208334,32.9947916 46.7708334,32.578125 45.9375,31.328125 C44.6875,30.078125 44.2708334,28.828125 44.2708334,27.578125 L44.2708334,5.4947916 C44.2708334,3.828125 44.6875,2.578125 45.9375,1.7447916 C46.7708334,0.911458203 48.4375,0.078125 49.6875,0.078125 L49.6875,0.078125 Z M94.2708334,0.078125 L116.354167,0.078125 C118.020833,0.078125 119.270833,0.494791602 120.104167,1.7447916 C120.9375,2.9947916 121.770833,4.2447916 121.770833,5.4947916 L121.770833,27.578125 C121.770833,29.2447916 121.354167,30.4947916 120.104167,31.328125 C118.854167,32.1614584 117.604167,32.9947916 116.354167,32.9947916 L94.2708334,32.9947916 C92.6041668,32.9947916 91.3541666,32.578125 90.5208334,31.328125 C89.6875,30.078125 88.8541666,28.828125 88.8541666,27.578125 L88.8541666,5.4947916 C88.8541666,3.828125 89.2708332,2.578125 90.5208334,1.7447916 C91.7708336,0.911458203 92.6041668,0.078125 94.2708334,0.078125 Z M5.5208334,44.6614584 L27.6041666,44.6614584 C29.2708332,44.6614584 30.5208332,45.078125 31.3541666,46.328125 C32.6041666,47.578125 33.0208334,48.828125 33.0208334,50.078125 L33.0208334,72.1614584 C33.0208334,73.828125 32.6041666,75.078125 31.3541666,75.9114584 C30.1041666,76.7447918 28.8541666,77.578125 27.6041666,77.578125 L5.5208334,77.578125 C3.8541668,77.578125 2.6041666,77.1614584 1.7708334,75.9114584 C0.520833398,74.6614584 0.104166602,73.4114584 0.104166602,72.1614584 L0.104166602,50.078125 C0.104166602,48.4114584 0.520833203,47.1614584 1.7708334,46.328125 C2.6041666,45.078125 3.8541668,44.6614584 5.5208334,44.6614584 Z M49.6875,44.6614584 L71.7708334,44.6614584 C73.4375,44.6614584 74.6875,45.078125 75.5208334,46.328125 C76.7708334,47.578125 77.1875,48.828125 77.1875,50.078125 L77.1875,72.1614584 C77.1875,73.828125 76.7708334,75.078125 75.5208334,75.9114584 C74.2708334,77.1614584 73.0208334,77.578125 71.7708334,77.578125 L49.6875,77.578125 C48.0208334,77.578125 46.7708334,77.1614584 45.9375,75.9114584 C44.6875,74.6614584 44.2708334,73.4114584 44.2708334,72.1614584 L44.2708334,50.078125 C44.2708334,48.4114584 44.6875,47.1614584 45.9375,46.328125 C46.7708334,45.078125 48.4375,44.6614584 49.6875,44.6614584 L49.6875,44.6614584 Z M94.2708334,44.6614584 L116.354167,44.6614584 C118.020833,44.6614584 119.270833,45.078125 120.104167,46.328125 C121.354167,47.578125 121.770833,48.828125 121.770833,50.078125 L121.770833,72.1614584 C121.770833,73.828125 121.354167,75.078125 120.104167,75.9114584 C118.854167,76.7447918 117.604167,77.578125 116.354167,77.578125 L94.2708334,77.578125 C92.6041668,77.578125 91.3541666,77.1614584 90.5208334,75.9114584 C89.6875,74.6614584 88.8541666,73.4114584 88.8541666,72.1614584 L88.8541666,50.078125 C88.8541666,48.4114584 89.2708332,47.1614584 90.5208334,46.328125 C91.3541666,45.078125 92.6041668,44.6614584 94.2708334,44.6614584 Z M5.5208334,89.2447916 L27.6041666,89.2447916 C29.2708332,89.2447916 30.5208332,89.6614582 31.3541666,90.9114584 C32.1875,92.1614586 33.0208334,93.4114584 33.0208334,94.6614584 L33.0208334,116.744792 C33.0208334,118.411458 32.6041666,119.661458 31.3541666,120.494792 C30.1041666,121.328125 28.8541666,122.161458 27.6041666,122.161458 L5.5208334,122.161458 C3.8541668,122.161458 2.6041666,121.744792 1.7708334,120.494792 C0.520833398,119.244792 0.104166602,117.994792 0.104166602,116.744792 L0.104166602,94.6614584 C0.104166602,92.9947918 0.520833203,91.7447916 1.7708334,90.9114584 C2.6041666,89.6614584 3.8541668,89.2447916 5.5208334,89.2447916 Z M49.6875,89.2447916 L71.7708334,89.2447916 C73.4375,89.2447916 74.6875,89.6614582 75.5208334,90.9114584 C76.7708334,92.1614584 77.1875,93.4114584 77.1875,94.6614584 L77.1875,116.744792 C77.1875,118.411458 76.7708334,119.661458 75.5208334,120.494792 C74.2708334,121.744792 73.0208334,122.161458 71.7708334,122.161458 L49.6875,122.161458 C48.0208334,122.161458 46.7708334,121.744792 45.9375,120.494792 C44.6875,119.244792 44.2708334,117.994792 44.2708334,116.744792 L44.2708334,94.6614584 C44.2708334,92.9947918 44.6875,91.7447916 45.9375,90.9114584 C46.7708334,89.6614584 48.4375,89.2447916 49.6875,89.2447916 L49.6875,89.2447916 Z M94.2708334,89.2447916 L116.354167,89.2447916 C118.020833,89.2447916 119.270833,89.6614582 120.104167,90.9114584 C120.9375,92.1614586 121.770833,93.4114584 121.770833,94.6614584 L121.770833,116.744792 C121.770833,118.411458 121.354167,119.661458 120.104167,120.494792 C118.854167,121.328125 117.604167,122.161458 116.354167,122.161458 L94.2708334,122.161458 C92.6041668,122.161458 91.3541666,121.744792 90.5208334,120.494792 C89.6875,119.244792 88.8541666,117.994792 88.8541666,116.744792 L88.8541666,94.6614584 C88.8541666,92.9947918 89.2708332,91.7447916 90.5208334,90.9114584 C91.3541666,89.6614584 92.6041668,89.2447916 94.2708334,89.2447916 Z" }))); }; - exports.default = Columns; - - -}); - -;/*!src/icons/calendar.svg*/ -amis.define('src/icons/calendar.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Calendar = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 14", className: "icon" }, props), - react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("g", { transform: "translate(-136.000000, -8.000000)" }, - react_1.default.createElement("path", { d: "M159.5,0.5 L0.5,0.5 L0.5,29.5 L159.5,29.5 L159.5,0.5 Z", stroke: "currentColor" }), - react_1.default.createElement("g", { transform: "translate(136.000000, 8.000000)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M0,14 L14,14 L14,3 L0,3 L0,14 Z M2,5 L12,5 L12,12 L2,12 L2,5 Z", id: "Shape" }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 0, y: 0, width: 14, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 9, y: 6, width: 2, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 9, y: 9, width: 2, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 6, y: 6, width: 2, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 6, y: 9, width: 2, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 3, y: 6, width: 2, height: 2 }), - react_1.default.createElement("rect", { id: "Rectangle-path", x: 3, y: 9, width: 2, height: 2 }))))); }; - exports.default = Calendar; - - -}); - -;/*!src/icons/copy.svg*/ -amis.define('src/icons/copy.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Copy = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), - react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("polyline", { id: "Stroke-1", stroke: "currentColor", points: "2.5 9.5 0.5 9.5 0.5 0.5 9.5 0.5 9.5 2.5" }), - react_1.default.createElement("polygon", { id: "Stroke-3", stroke: "currentColor", points: "2.5 11.5 11.5 11.5 11.5 2.5 2.5 2.5" }))); }; - exports.default = Copy; - - -}); - -;/*!src/icons/filter.svg*/ -amis.define('src/icons/filter.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Filter = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 150 100", className: "icon" }, props), - react_1.default.createElement("g", { fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M58.3333334,100 L91.6666666,100 L91.6666666,83.3333334 L58.3333334,83.3333334 L58.3333334,100 L58.3333334,100 Z M0,0 L0,16.6666666 L150,16.6666666 L150,0 L0,0 Z M25,58.3333334 L125,58.3333334 L125,41.6666666 L25,41.6666666 L25,58.3333334 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = Filter; - - -}); - -;/*!src/icons/caret.svg*/ -amis.define('src/icons/caret.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Caret = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 8", className: "icon" }, props), - react_1.default.createElement("g", { id: "04\\u4E0B\\u62C9/24px/\\u9ED8\\u8BA4\\u7981\\u7528", transform: "translate(-115.000000, -8.000000)" }, - react_1.default.createElement("polygon", { id: "Shape", fill: "currentColor", fillRule: "nonzero", points: "125.472727 8 121 12.8 116.527273 8 115 9.6 121 16 127 9.6" }))); }; - exports.default = Caret; - - -}); - -;/*!src/icons/right-arrow-bold.svg*/ -amis.define('src/icons/right-arrow-bold.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var RightArrowBold = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 99 176", className: "icon" }, props), - react_1.default.createElement("g", { transform: "translate(-0.132812, 0.304688)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M95.6353697,79.4031346 C95.3433678,79.1111326 95.037575,78.8417152 94.7219891,78.5906854 L19.819373,3.29993262 C15.6492004,-0.870040234 8.88818437,-0.870040234 4.71821172,3.29993262 C0.548238867,7.47010527 0.548238867,14.2309215 4.71821172,18.4010939 L72.9329621,87.0041811 L3.25320488,156.617783 C-0.916767969,160.787956 -0.916767969,167.548772 3.25320488,171.719144 C7.42317773,175.889117 14.1841937,175.889117 18.3543662,171.719144 L94.7211895,95.4180764 C95.0369754,95.1668467 95.342968,94.8976293 95.6351697,94.6054273 C97.7329475,92.5076496 98.7744412,89.7539166 98.7615739,87.0043809 C98.7746414,84.2544453 97.7331475,81.5009123 95.6353697,79.4031346 Z", id: "\\u8DEF\\u5F84" }))); }; - exports.default = RightArrowBold; - - -}); - -;/*!src/icons/column-filter.svg*/ -amis.define('src/icons/column-filter.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var ColumnFilter = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), - react_1.default.createElement("g", { id: "\\u7EC4\\u4EF6", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, - react_1.default.createElement("g", { fill: "currentColor" }, - react_1.default.createElement("path", { d: "M0,0 L4,4.999 L4.082,10 L8,12 L8,4.999 L12,0 L0,0 Z M5.0528196,9.05445227 L4.97933146,4.82735426 L4.97320745,4.49967969 L4.75580505,4.24311339 L2,1 L10,1 L7.24419495,4.24311339 L7.02066854,4.50640615 L7.02066854,4.84272902 L7.02066854,10 L5.0528196,9.05445227 Z", id: "Page-1" })))); }; - exports.default = ColumnFilter; - - -}); - -;/*!src/icons/zoom-in.svg*/ -amis.define('src/icons/zoom-in.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var ZoomIn = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 201 200", className: "icon" }, props), - react_1.default.createElement("g", { id: "Zoom-In-(1)", transform: "translate(-0.195312, 0.000000)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M200.969037,185.426237 L186.577193,199.885458 L132.526927,145.673486 C118.265005,157.063662 100.555788,163.269253 82.3037053,163.2725 C44.3450876,163.501364 11.2373309,137.535745 2.41322763,100.616316 C-6.41087568,63.6968867 11.3773428,25.5666334 45.3369837,8.60633202 C79.2966246,-8.35396931 120.465786,0.331480961 144.679988,29.5647067 C168.894189,58.7979325 169.763336,100.864327 146.777278,131.072772 L200.969037,185.426237 Z M82.3037053,18.6663447 C56.751881,18.5686211 33.6615322,33.8854576 23.8157876,57.4644032 C13.970043,81.0433489 19.3114596,108.232298 37.3456107,126.334087 C55.3797618,144.435876 82.5485248,149.879037 106.164163,140.121629 C129.779801,130.364221 145.182969,107.331373 145.180448,81.7793602 C145.206592,47.004448 117.078472,18.7708318 82.3037053,18.6663447 L82.3037053,18.6663447 Z M91.4198871,118.452958 L73.1605725,118.452958 L73.1605725,90.9427063 L45.7783383,90.9427063 L45.7783383,72.6092764 L73.1605725,72.6092764 L73.1605725,45.1192381 L91.4198871,45.1192381 L91.4198871,72.6092764 L118.822334,72.6092764 L118.822334,90.9427063 L91.4198871,90.9427063 L91.4198871,118.452958 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = ZoomIn; - - -}); - -;/*!src/icons/zoom-out.svg*/ -amis.define('src/icons/zoom-out.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var ZoomOut = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 187 187", className: "icon" }, props), - react_1.default.createElement("g", { id: "Zoom-In", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M45.4545455,90.9090908 L118.181818,90.9090908 L118.181818,72.7272727 L45.4545455,72.7272727 L45.4545455,90.9090908 Z M145.709091,132.854546 C157.32865,118.383803 163.653932,100.376636 163.636364,81.8181818 C163.636364,36.6272727 127.009091,0 81.8181818,0 C36.6272727,0 0,36.6272727 0,81.8181818 C0,127.009091 36.6272727,163.636364 81.8181818,163.636364 C101.136364,163.636364 118.854546,156.909091 132.854546,145.709091 L173.827273,186.681818 L186.681818,173.827273 L145.709091,132.854546 Z M81.8181818,145.454546 C46.6727886,145.454546 18.1818182,116.963575 18.1818182,81.8181818 C18.1818182,46.6727886 46.6727886,18.1818182 81.8181818,18.1818182 C116.963575,18.1818182 145.454546,46.6727886 145.454546,81.8181818 C145.454546,116.963575 116.963575,145.454546 81.8181818,145.454546 L81.8181818,145.454546 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = ZoomOut; - - -}); - -;/*!src/icons/question.svg*/ -amis.define('src/icons/question.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Question = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 175 175", className: "icon" }, props), - react_1.default.createElement("g", { id: "question-(1)", transform: "translate(0.304688, 0.500000)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M167.56875,53.3876953 C163.179297,43.0103516 156.89707,33.6917969 148.896094,25.6910156 C140.895312,17.6902344 131.576758,11.4078125 121.199414,7.01855469 C110.452539,2.47285156 99.0396484,0.16796875 87.2785156,0.16796875 C75.5173828,0.16796875 64.1046875,2.47285156 53.3574219,7.01855469 C42.9800781,11.4078125 33.6615234,17.6902344 25.6607422,25.6910156 C17.6599609,33.6917969 11.3775391,43.0103516 6.98828125,53.3876953 C2.44257813,64.1349609 0.137695313,75.5474609 0.137695313,87.3087891 C0.137695313,99.0701172 2.44257813,110.482617 6.98828125,121.229883 C11.3775391,131.607227 17.6599609,140.925781 25.6607422,148.926562 C33.6615234,156.927539 42.9800781,163.209766 53.3574219,167.599219 C64.1046875,172.144727 75.5171875,174.449609 87.2785156,174.449609 C99.0396484,174.449609 110.452344,172.144727 121.199609,167.599219 C131.576953,163.209766 140.895508,156.927539 148.896289,148.926562 C156.897266,140.925781 163.179492,131.607227 167.568945,121.229883 C172.114453,110.482617 174.419336,99.0699219 174.419336,87.3087891 C174.419336,75.5476562 172.114453,64.1349609 167.56875,53.3876953 L167.56875,53.3876953 Z M95.5601563,149.20625 C93.1902344,151.314648 90.4513672,152.366016 87.3447266,152.366016 C84.1318359,152.366016 81.328125,151.326172 78.9310547,149.246484 C76.5353516,147.166797 75.3375,144.256836 75.3375,140.519727 C75.3375,137.199023 76.4951172,134.409766 78.8132813,132.143359 C81.1300781,129.879883 83.9738281,128.748047 87.3447266,128.748047 C90.6625,128.748047 93.453125,129.879883 95.7181641,132.143359 C97.9816406,134.409766 99.1150391,137.199023 99.1150391,140.519727 C99.1150391,144.205273 97.9298828,147.100781 95.5601563,149.20625 Z M125.063867,76.0599609 C123.248437,79.4294922 121.088281,82.3392578 118.586328,84.7867187 C116.085742,87.2369141 111.595898,91.35625 105.118359,97.1501953 C103.327344,98.7818359 101.892578,100.218164 100.813867,101.456055 C99.7337891,102.694141 98.9294922,103.825977 98.4037109,104.851367 C97.8765625,105.879688 97.46875,106.905273 97.1800781,107.933594 C96.8900391,108.95918 96.4546875,110.763086 95.8759766,113.345508 C94.875,118.820508 91.7410156,121.560937 86.4755859,121.560937 C83.7365234,121.560937 81.4328125,120.664648 79.5628906,118.872266 C77.6943359,117.082617 76.759375,114.422656 76.759375,110.895312 C76.759375,106.47168 77.4429687,102.639648 78.8132812,99.4023437 C80.1820312,96.1621094 81.9990234,93.3183594 84.2638672,90.8708984 C86.5273437,88.4207031 89.5824219,85.5107422 93.4273437,82.1412109 C96.796875,79.1910156 99.2341797,76.9677734 100.733594,75.4654297 C102.225903,73.9792131 103.50228,72.290943 104.525391,70.45 C105.553711,68.6058594 106.066602,66.6066406 106.066602,64.4464844 C106.066602,60.2324219 104.499609,56.6791016 101.365625,53.7806641 C98.2332031,50.8851562 94.1900391,49.4373047 89.240625,49.4373047 C83.4466797,49.4373047 79.1810547,50.8994141 76.4433594,53.8207031 C73.7044922,56.7449219 71.3876953,61.0480469 69.4917969,66.7357422 C67.7007812,72.6876953 64.3039062,75.6636719 59.3015625,75.6636719 C56.3515625,75.6636719 53.8638672,74.6238281 51.8373047,72.5441406 C49.809375,70.4644531 48.7953125,68.2123047 48.7953125,65.7878906 C48.7953125,60.7867187 50.4009766,55.7167969 53.6140625,50.5835937 C56.8255859,45.4474609 61.5134766,41.1960937 67.6751953,37.8265625 C73.8367187,34.4542969 81.0253906,32.7708984 89.2408203,32.7708984 C96.8759766,32.7708984 103.617969,34.1785156 109.463477,36.9964844 C115.308984,39.8144531 119.824805,43.6435547 123.010352,48.4894531 C126.197461,53.3353516 127.790234,58.6007812 127.790234,64.2884766 C127.790234,68.7636719 126.882227,72.6875 125.063867,76.0599609 L125.063867,76.0599609 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = Question; - - -}); - -;/*!src/icons/window-restore.svg*/ -amis.define('src/icons/window-restore.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var WindowRestore = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 200 200", className: "icon" }, props), - react_1.default.createElement("g", { id: "window-restore", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M181.25,0 L56.25,0 C45.8984375,0 37.5,8.3984375 37.5,18.75 L37.5,37.5 L18.75,37.5 C8.3984375,37.5 0,45.8984375 0,56.25 L0,181.25 C0,191.601562 8.3984375,200 18.75,200 L143.75,200 C154.101562,200 162.5,191.601562 162.5,181.25 L162.5,162.5 L181.25,162.5 C191.601562,162.5 200,154.101562 200,143.75 L200,18.75 C200,8.3984375 191.601562,0 181.25,0 Z M143.75,181.25 L18.75,181.25 L18.75,100 L143.75,100 L143.75,181.25 Z M181.25,143.75 L162.5,143.75 L162.5,56.25 C162.5,45.8984375 154.101562,37.5 143.75,37.5 L56.25,37.5 L56.25,18.75 L181.25,18.75 L181.25,143.75 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = WindowRestore; - - -}); - -;/*!src/icons/info-circle.svg*/ -amis.define('src/icons/info-circle.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var InfoCircle = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 172 172", className: "icon" }, props), - react_1.default.createElement("g", { id: "info-circle", transform: "translate(0.257812, 0.257812)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M114.313616,139.313616 L114.313616,121.456473 C114.313616,120.414807 113.978795,119.559152 113.309152,118.889509 C112.639509,118.219866 111.783854,117.885045 110.742187,117.885045 L100.027902,117.885045 L100.027902,60.7421875 C100.027902,59.7005208 99.6930803,58.8448661 99.0234375,58.1752232 C98.3537947,57.5055804 97.4981399,57.170759 96.4564732,57.170759 L60.7421875,57.170759 C59.7005208,57.170759 58.8448661,57.5055804 58.1752232,58.1752232 C57.5055804,58.8448661 57.170759,59.7005208 57.170759,60.7421875 L57.170759,78.5993303 C57.170759,79.6409969 57.5055804,80.4966517 58.1752232,81.1662945 C58.8448661,81.8359374 59.7005208,82.170759 60.7421875,82.170759 L71.4564732,82.170759 L71.4564732,117.885045 L60.7421875,117.885045 C59.7005208,117.885045 58.8448661,118.219866 58.1752232,118.889509 C57.5055804,119.559152 57.170759,120.414806 57.170759,121.456473 L57.170759,139.313616 C57.170759,140.355282 57.5055804,141.210937 58.1752232,141.88058 C58.8448661,142.550223 59.7005208,142.885044 60.7421875,142.885044 L110.742187,142.885044 C111.783854,142.885044 112.639509,142.550223 113.309152,141.88058 C113.978795,141.210937 114.313616,140.355282 114.313616,139.313616 L114.313616,139.313616 Z M100.027902,39.313616 L100.027902,21.4564732 C100.027902,20.4148066 99.6930803,19.5591518 99.0234375,18.889509 C98.3537947,18.2198661 97.4981399,17.8850447 96.4564732,17.8850447 L75.0279018,17.8850447 C73.9862351,17.8850447 73.1305803,18.2198661 72.4609375,18.889509 C71.7912947,19.5591518 71.4564732,20.4148066 71.4564732,21.4564732 L71.4564732,39.313616 C71.4564732,40.3552827 71.7912947,41.2109374 72.4609375,41.8805803 C73.1305803,42.5502231 73.9862351,42.8850447 75.0279018,42.8850447 L96.4564732,42.8850447 C97.4981399,42.8850447 98.3537947,42.5502231 99.0234375,41.8805803 C99.6930803,41.2109374 100.027902,40.3552827 100.027902,39.313616 Z M171.456473,85.7421875 C171.456473,101.292783 167.624628,115.634301 159.960938,128.766741 C152.297247,141.899182 141.899182,152.297247 128.766741,159.960938 C115.634301,167.624628 101.292783,171.456473 85.7421875,171.456473 C70.1915923,171.456473 55.8500745,167.624628 42.717634,159.960938 C29.5851935,152.297247 19.187128,141.899182 11.5234375,128.766741 C3.85974701,115.634301 0.0279017578,101.292783 0.0279017578,85.7421875 C0.0279017578,70.1915923 3.85974701,55.8500745 11.5234375,42.717634 C19.187128,29.5851935 29.5851935,19.187128 42.717634,11.5234375 C55.8500745,3.85974701 70.1915923,0.0279017578 85.7421875,0.0279017578 C101.292783,0.0279017578 115.634301,3.85974701 128.766741,11.5234375 C141.899182,19.187128 152.297247,29.5851935 159.960938,42.717634 C167.624628,55.8500745 171.456473,70.1915923 171.456473,85.7421875 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = InfoCircle; - - -}); - -;/*!src/icons/warning.svg*/ -amis.define('src/icons/warning.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Warning = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 150 138", className: "icon" }, props), - react_1.default.createElement("g", { id: "warning", transform: "translate(0.390625, 0.882812)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M80.6802084,1.5963541 C82.7195697,2.72968791 84.4010413,4.41115959 85.534375,6.4505209 L147.626042,118.213021 C149.777654,122.085674 149.718692,126.807897 147.471057,130.62562 C145.223423,134.443344 141.122931,136.78617 136.692708,136.783856 L12.5260416,136.783856 C8.09656245,136.783856 3.99742458,134.441281 1.75080345,130.623824 C-0.495817677,126.806367 -0.554375449,122.085024 1.596875,118.213021 L63.684375,6.4505209 C67.0377886,0.417546946 74.64639,-1.7555398 80.6802084,1.5963541 Z M74.609375,12.5213541 L12.521875,124.283854 L136.692708,124.283854 L74.609375,12.5213541 Z M80.859375,99.2838541 L80.859375,111.783854 L68.359375,111.783854 L68.359375,99.2838541 L80.859375,99.2838541 Z M80.859375,45.2921875 L80.859375,90.9505209 L68.359375,90.9505209 L68.359375,45.2921875 L80.859375,45.2921875 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = Warning; - - -}); - -;/*!src/icons/schedule.svg*/ -amis.define('src/icons/schedule.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Schedule = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 176 176", className: "icon" }, props), - react_1.default.createElement("g", { id: "schedule", transform: "translate(0.500000, 0.304688)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M87.4999,0.154665039 C39.4624693,0.154665039 0.159116992,39.4580174 0.159116992,87.495448 C0.159116992,135.532879 39.4624693,174.836231 87.4999,174.836231 C135.537331,174.836231 174.840683,135.532879 174.840683,87.495448 C174.840683,39.4580174 135.537131,0.154665039 87.4999,0.154665039 Z M87.4999,157.368074 C49.075152,157.368074 17.6272736,125.92879 17.6272736,87.495448 C17.6272736,49.0621059 49.075152,17.6228217 87.4999,17.6228217 C125.924648,17.6228217 157.372526,49.0621059 157.372526,87.495448 C157.372526,125.92879 125.924648,157.368074 87.4999,157.368074 Z", id: "\\u5F62\\u72B6" }), - react_1.default.createElement("polygon", { id: "\\u8DEF\\u5F84", points: "91.8667393 43.8250564 78.7656219 43.8250564 78.7656219 96.2295262 124.184628 124.180176 131.170092 112.827673 91.8667393 89.2438625" }))); }; - exports.default = Schedule; - - -}); - -;/*!src/icons/home.svg*/ -amis.define('src/icons/home.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Home = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 200 189", className: "icon" }, props), - react_1.default.createElement("g", { transform: "translate(0.000000, -0.195312)", fill: "currentColor", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M195.85125,93.1203125 L110.60125,7.9453125 L104.91375,2.1953125 C102.202931,-0.499697856 97.8245686,-0.499697856 95.11375,2.1953125 L4.15125,93.1203125 C1.45507434,95.8051128 -0.0415864607,99.4656205 0.000355140024,103.270313 C0.158203791,111.052241 6.53032046,117.268533 14.31375,117.232812 L23.68875,117.232812 L23.68875,189.082812 L176.31375,189.082812 L176.31375,117.232812 L185.88875,117.232812 C189.65125,117.232812 193.20125,115.757812 195.87625,113.095312 C198.55125,110.420312 200.00125,106.870312 200.00125,103.095312 C200.00125,99.3453125 198.52625,95.7953125 195.85125,93.1203125 Z M112.35125,173.207812 L87.65125,173.207812 L87.65125,128.207812 L112.35125,128.207812 L112.35125,173.207812 L112.35125,173.207812 Z M160.42625,101.357812 L160.42625,173.207812 L126.47625,173.207812 L126.47625,122.907812 C126.47625,118.0339 122.525163,114.082812 117.65125,114.082812 L82.35125,114.082812 C77.4773371,114.082812 73.52625,118.0339 73.52625,122.907812 L73.52625,173.207812 L39.57625,173.207812 L39.57625,101.357812 L18.40125,101.357812 L100.02625,19.7953125 L105.11375,24.8953125 L181.61375,101.357812 L160.42625,101.357812 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = Home; - - -}); - -;/*!src/icons/folder.svg*/ -amis.define('src/icons/folder.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var Folder = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 200 168", className: "icon" }, props), - react_1.default.createElement("g", { id: "folder-(1)", transform: "translate(0.000000, 0.601562)", fill: "currentFolder", fillRule: "nonzero" }, - react_1.default.createElement("path", { d: "M166.666667,166.731771 L8.3333334,166.731771 C3.3333334,166.731771 0,163.398437 0,158.398437 L0,8.3984375 C0,3.3984375 3.3333334,0.0651041016 8.3333334,0.0651041016 L66.6666668,0.0651041016 C71.6666668,0.0651041016 75,3.3984375 75,8.3984375 L75,16.7317709 L166.666667,16.7317709 C171.666667,16.7317709 175,20.0651041 175,25.0651041 L175,58.3984377 C175,63.3984377 171.666667,66.7317711 166.666667,66.7317711 C161.666667,66.7317711 158.333333,63.3984377 158.333333,58.3984377 L158.333333,33.3984375 L66.6666666,33.3984375 C61.6666666,33.3984375 58.3333334,30.0651041 58.3333334,25.0651041 L58.3333334,16.7317709 L16.6666666,16.7317709 L16.6666666,150.065104 L166.666667,150.065104 C171.666667,150.065104 175,153.398438 175,158.398438 C175,163.398438 171.666667,166.731771 166.666667,166.731771 Z", id: "\\u8DEF\\u5F84" }), - react_1.default.createElement("path", { d: "M166.666667,166.731771 L8.3333334,166.731771 C5.8333334,166.731771 3.3333334,165.898438 1.6666668,163.398438 C0,160.898438 0,159.231771 0,156.731771 L25,56.7317709 C25.8333334,52.5651041 29.1666666,50.0651041 33.3333334,50.0651041 L191.666667,50.0651041 C194.166667,50.0651041 196.666667,50.8984375 198.333333,53.3984375 C200,55.8984375 200,57.5651041 200,60.0651041 L175,160.065104 C174.166667,164.231771 170.833333,166.731771 166.666667,166.731771 Z M19.1666666,150.065104 L160,150.065104 L180.833333,66.7317707 L40,66.7317707 L19.1666666,150.065104 Z", id: "\\u5F62\\u72B6" }))); }; - exports.default = Folder; - - -}); - -;/*!src/icons/sort-default.svg*/ -amis.define('src/icons/sort-default.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var SortDefault = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 7 12", className: "icon" }, props), - react_1.default.createElement("g", { fill: "currentColor" }, - react_1.default.createElement("polygon", { points: "3.5354 0.0004 2.8284 0.7064 0.0004 3.5344 0.7074 4.2424 3.0354 1.9134 3.0354 5.0354 4.0354 5.0354 4.0354 1.9134 6.3634 4.2424 7.0704 3.5344 4.2424 0.7064" }), - react_1.default.createElement("polygon", { points: "3.035 7.0348 3.035 10.1558 0.708 7.8278 0 8.5348 2.828 11.3628 3.535 12.0708 4.243 11.3628 7.071 8.5348 6.363 7.8278 4.036 10.1558 4.036 7.0348" }))); }; - exports.default = SortDefault; - - -}); - -;/*!src/icons/sort-asc.svg*/ -amis.define('src/icons/sort-asc.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var SortAsc = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 7 10", className: "icon" }, props), - react_1.default.createElement("g", { fill: "currentColor" }, - react_1.default.createElement("polygon", { points: "3.5 0 2.8 0.703 0 3.514 0.7 4.217 3.005 1.903 3.005 10 3.995 10 3.995 1.903 6.3 4.217 7 3.514 4.2 0.703" }))); }; - exports.default = SortAsc; - - -}); - -;/*!src/icons/sort-desc.svg*/ -amis.define('src/icons/sort-desc.svg', function(require, exports, module, define) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = require("node_modules/tslib/tslib"); - var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); - var SortDesc = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 7 10", className: "icon" }, props), - react_1.default.createElement("g", { id: "07icon/\\u8868\\u5934/\\u6392\\u5E8F\\u4E0B", fill: "currentColor" }, - react_1.default.createElement("polygon", { id: "07icon/\\u6392\\u5E8F/\\u6B63\\u5E8F", transform: "translate(3.500000, 5.000000) scale(1, -1) translate(-3.500000, -5.000000) ", points: "3.5 0 2.8 0.703 0 3.514 0.7 4.217 3.005 1.903 3.005 10 3.995 10 3.995 1.903 6.3 4.217 7 3.514 4.2 0.703" }))); }; - exports.default = SortDesc; - - -}); - -;/*!src/components/icons.tsx*/ -amis.define("b7bbd16",function(e,t){"use strict";function l(e){return tt[e]}function a(e,t){tt[e]=t}function o(e){var t=e.icon,a=e.className,o=r.__rest(e,["icon","className"]);"undefined"!=typeof jest&&(o.icon=t);var u=l(t);return u?s.default.createElement(u,r.__assign({},o,{className:(a||"")+" icon-"+t})):s.default.createElement("span",{className:"text-danger"},"没有 icon ",t)}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),s=r.__importDefault(e("node_modules/react/index")),u=r.__importDefault(e("src/icons/close.svg"));t.CloseIcon=u.default;var c=r.__importDefault(e("src/icons/undo.svg"));t.UnDoIcon=c.default;var f=r.__importDefault(e("src/icons/redo.svg"));t.ReDoIcon=f.default;var n=r.__importDefault(e("src/icons/enter.svg"));t.EnterIcon=n.default;var i=r.__importDefault(e("src/icons/volume.svg"));t.VolumeIcon=i.default;var d=r.__importDefault(e("src/icons/mute.svg"));t.MuteIcon=d.default;var _=r.__importDefault(e("src/icons/play.svg"));t.PlayIcon=_.default;var m=r.__importDefault(e("src/icons/pause.svg"));t.PauseIcon=m.default;var v=r.__importDefault(e("src/icons/left-arrow.svg"));t.LeftArrowIcon=v.default;var p=r.__importDefault(e("src/icons/right-arrow.svg"));t.RightArrowIcon=p.default;var g=r.__importDefault(e("src/icons/check.svg"));t.CheckIcon=g.default;var D=r.__importDefault(e("src/icons/plus.svg"));t.PlusIcon=D.default;var I=r.__importDefault(e("src/icons/minus.svg"));t.MinusIcon=I.default;var w=r.__importDefault(e("src/icons/pencil.svg"));t.PencilIcon=w.default;var h=r.__importDefault(e("src/icons/view.svg")),E=r.__importDefault(e("src/icons/remove.svg")),b=r.__importDefault(e("src/icons/retry.svg")),y=r.__importDefault(e("src/icons/upload.svg")),k=r.__importDefault(e("src/icons/file.svg")),x=r.__importDefault(e("src/icons/success.svg")),P=r.__importDefault(e("src/icons/fail.svg")),z=r.__importDefault(e("src/icons/search.svg")),A=r.__importDefault(e("src/icons/back.svg")),N=r.__importDefault(e("src/icons/move.svg")),M=r.__importDefault(e("src/icons/info.svg")),j=r.__importDefault(e("src/icons/location.svg")),q=r.__importDefault(e("src/icons/drag-bar.svg")),C=r.__importDefault(e("src/icons/reload.svg")),R=r.__importDefault(e("src/icons/exchange.svg")),L=r.__importDefault(e("src/icons/columns.svg")),O=r.__importDefault(e("src/icons/calendar.svg")),U=r.__importDefault(e("src/icons/copy.svg")),V=r.__importDefault(e("src/icons/filter.svg")),B=r.__importDefault(e("src/icons/caret.svg")),F=r.__importDefault(e("src/icons/right-arrow-bold.svg")),G=r.__importDefault(e("src/icons/column-filter.svg")),H=r.__importDefault(e("src/icons/zoom-in.svg")),J=r.__importDefault(e("src/icons/zoom-out.svg")),K=r.__importDefault(e("src/icons/question.svg")),Q=r.__importDefault(e("src/icons/window-restore.svg")),S=r.__importDefault(e("src/icons/info-circle.svg")),T=r.__importDefault(e("src/icons/warning.svg")),W=r.__importDefault(e("src/icons/schedule.svg")),X=r.__importDefault(e("src/icons/home.svg")),Y=r.__importDefault(e("src/icons/folder.svg")),Z=r.__importDefault(e("src/icons/sort-default.svg")),$=r.__importDefault(e("src/icons/sort-asc.svg")),et=r.__importDefault(e("src/icons/sort-desc.svg"));t.closeIcon=s.default.createElement(u.default,null),t.unDoIcon=s.default.createElement(c.default,null),t.reDoIcon=s.default.createElement(f.default,null),t.enterIcon=s.default.createElement(n.default,null),t.volumeIcon=s.default.createElement(i.default,null),t.muteIcon=s.default.createElement(d.default,null),t.playIcon=s.default.createElement(_.default,null),t.pauseIcon=s.default.createElement(m.default,null),t.leftArrowIcon=s.default.createElement(v.default,null),t.rightArrowIcon=s.default.createElement(p.default,null);var tt={};t.getIcon=l,t.registerIcon=a,a("close",u.default),a("undo",c.default),a("redo",f.default),a("enter",n.default),a("volume",i.default),a("mute",d.default),a("play",_.default),a("pause",m.default),a("left-arrow",v.default),a("right-arrow",p.default),a("prev",v.default),a("next",p.default),a("check",g.default),a("plus",D.default),a("add",D.default),a("minus",I.default),a("pencil",w.default),a("view",h.default),a("remove",E.default),a("retry",b.default),a("upload",y.default),a("file",k.default),a("success",x.default),a("fail",P.default),a("warning",T.default),a("search",z.default),a("back",A.default),a("move",N.default),a("info",M.default),a("info-circle",S.default),a("location",j.default),a("drag-bar",q.default),a("reload",C.default),a("exchange",R.default),a("columns",L.default),a("calendar",O.default),a("copy",U.default),a("filter",V.default),a("column-filter",G.default),a("caret",B.default),a("right-arrow-bold",F.default),a("zoom-in",H.default),a("zoom-out",J.default),a("question",K.default),a("window-restore",Q.default),a("schedule",W.default),a("home",X.default),a("folder",Y.default),a("sort-default",Z.default),a("sort-asc",$.default),a("sort-desc",et.default),t.Icon=o}); -;/*!src/locale.tsx*/ -amis.define("5ab4e9d",function(e,t){"use strict";function n(e,t){p[e]=t}function r(e,t){return e.replace(/(\\)?\{\{([\s\S]+?)\}\}/g,function(e,n,r){return n?e.substring(1):f.resolveVariable(r,t||{})})}function a(e){if(e&&m[e])return m[e];var t=function(t){for(var n=[],a=1;as?-s:d>l?l-d:0}function f(t,e,o,i){var r=n(o),f=r.width,l=t-i,s=t+i+e;return 0>l?-l:s>f?f-s:0}function l(t,e,o,i,n){void 0===n&&(n=0);var l="BODY"===i.tagName?p.default(o):c.default(o,i),s=p.default(e),d=s.height,u=s.width,h=i.getBoundingClientRect(),a=e.getBoundingClientRect(),m=e.offsetWidth?a.width/e.offsetWidth:1,g=e.offsetHeight?a.height/e.offsetHeight:1;t="auto"===t?"left-bottom-left-top right-bottom-right-top left-top-left-bottom right-top-right-bottom left-bottom-left-top":t;var _=0,w=0,v="",b="",y=t;if(~t.indexOf("-"))for(var D=t.split(/\s+/);D.length;){var O=y=D.shift(),x=O.split("-"),P=x[0],B=x[1],C=x[2],H=x[3];if(C=C||P,H=H||B,_="left"===P?l.left:"right"===P?l.left+l.width:l.left+l.width/2,w="top"===B?l.top:"bottom"===B?l.top+l.height:l.top+l.height/2,_-="left"===C?0:"right"===C?u:u/2,w-="top"===H?0:"bottom"===H?d:d/2,D.length){var N={x:h.x+_/m,y:h.y+w/g,width:u,height:d};if(N.x>0&&N.x+N.width0&&N.y+N.height\n
\n \n
\n
\n
\n
',e.appendChild(n),e.hasInlineStyle=e.hasAttribute("style");var l=e.originPosition=i(e,"position");~["fixed","absolute"].indexOf(l)||(e.style.position="relative");var d,a,c=n.children[0],h=c.children[0],f=n.children[1],u=n.children[2],v=function(){h.style.width=c.offsetWidth+10+"px",h.style.height=c.offsetHeight+10+"px",c.scrollLeft=c.scrollWidth,c.scrollTop=c.scrollHeight,f.scrollLeft=f.scrollWidth,f.scrollTop=f.scrollHeight,d=e.offsetWidth,a=e.offsetHeight};v();var p=function(){e.resizedAttached&&e.resizedAttached.call()},y=function(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i)},g=function(){(e.offsetWidth!=d||e.offsetHeight!=a)&&p(),v()};y(c,"scroll",g),y(f,"scroll",g),y(u,"animationstart",v)}function s(e){if(e.resizeSensor){e.hasInlineStyle?e.style.position=e.originPosition:e.removeAttribute("style");try{e.removeChild(e.resizeSensor)}catch(t){}delete e.resizeSensor,delete e.resizedAttached,delete e.hasInlineStyle,delete e.originPosition}}function o(e,t,i){if(void 0===i&&(i=!1),i)return void n(e,function(){t.apply(this,arguments),s(e)});n(e,t);var o=!1;return function(){o||(o=!0,s(e))}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.q=[]}return e.prototype.add=function(e){this.q.push(e)},e.prototype.call=function(){for(var e=[],t=0;t=F},isUrlPath:function(u,t){return!s(t)||d(t)||/^[a-z0-9_\\-]+$/i.test(t)},maximum:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)<=(parseFloat(F)||0)},lt:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)<(parseFloat(F)||0)},minimum:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)>=(parseFloat(F)||0)},gt:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)>(parseFloat(F)||0)},isJson:function(u,t){if(s(t)&&!d(t))try{JSON.parse(t)}catch(F){return!1}return!0},isPhoneNumber:function(u,t){return!s(t)||d(t)||/^[1]([3-9])[0-9]{9}$/.test(t)},isTelNumber:function(u,t){return!s(t)||d(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)},isZipcode:function(u,t){return!s(t)||d(t)||/^[1-9]{1}(\d+){5}$/.test(t)},isId:function(u,t){return!s(t)||d(t)||/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/.test(t)},notEmptyString:function(u,t){return!s(t)||!(String(t)&&""===String(t).trim())},matchRegexp1:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp2:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp3:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp4:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp5:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp6:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp7:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp8:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp9:function(u,F,n){return t.validations.matchRegexp(u,F,n)}},t.addRule=F,t.validateMessages={isEmail:"Email 格式不正确",isRequired:"这是必填项",isUrl:"Url 格式不正确",isInt:"请输入整型数字",isAlpha:"请输入字母",isNumeric:"请输入数字",isAlphanumeric:"请输入字母或者数字",isFloat:"请输入浮点型数值",isWords:"请输入字母",isUrlPath:"只能输入字母、数字、`-` 和 `_`.",matchRegexp:"格式不正确, 请输入符合规则为 `${1|raw}` 的内容。",minLength:"请输入更多的内容,至少输入 $1 个字符。",maxLength:"请控制内容长度, 不要输入 $1 个字符以上",maximum:"当前输入值超出最大值 $1,请检查",lt:"请输入小于 $1 的值",minimum:"当前输入值低于最小值 $1,请检查",gt:"请输入大于 $1 的值",isJson:"请检查 Json 格式。",isLength:"请输入长度为 $1 的内容",notEmptyString:"请不要全输入空白字符",equalsField:"输入的数据与 $1 值不一致",equals:"输入的数据与 $1 不一致",isPhoneNumber:"请输入合法的手机号码",isTelNumber:"请输入合法的电话号码",isZipcode:"请输入合法的邮编地址",isId:"请输入合法的身份证号"},t.validate=n,t.validateObject=e;var c=function(u){var t=0,F={};return u.replace(/matchRegexp\d*\s*\:\s*\/.*?\/[igm]*/g,function(u){return F["__"+t]=u,"__"+t++}).split(/,(?![^{\[]*[}\]])/g).map(function(u){return/^__\d+$/.test(u)?F[u]:u.trim()})};t.str2rules=i}); -;/*!src/components/PopOver.tsx*/ -amis.define("2b3dcdf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),o=s.__importDefault(e("node_modules/react/index")),a=e("node_modules/react-dom/index"),n=e("256b65d"),i=e("9a80175"),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={xOffset:0,yOffset:0},t}return s.__extends(t,e),t.prototype.componentDidMount=function(){this.mayUpdateOffset();var e=a.findDOMNode(this);this.parent=e.parentNode,this.parent.classList.add("has-popover")},t.prototype.componentDidUpdate=function(){this.mayUpdateOffset()},t.prototype.componentWillUnmount=function(){this.parent&&this.parent.classList.remove("has-popover")},t.prototype.mayUpdateOffset=function(){var e,t=this.props.offset;if(t&&"function"==typeof t){var s=this.props,o=s.placement,n=s.positionTop,i=s.positionLeft;e=t(a.findDOMNode(this).getBoundingClientRect(),{x:i,y:n,placement:o})}else e=t;this.setState({xOffset:e&&e.x?e.x:0,yOffset:e&&e.y?e.y:0})},t.prototype.render=function(){var e=this.props,t=(e.placement,e.activePlacement),a=e.positionTop,n=e.positionLeft,f=(e.arrowOffsetLeft,e.arrowOffsetTop,e.style),r=e.children,p=(e.offset,e.overlay),l=e.onHide,c=e.classPrefix,d=e.classnames,m=e.className,u=s.__rest(e,["placement","activePlacement","positionTop","positionLeft","arrowOffsetLeft","arrowOffsetTop","style","children","offset","overlay","onHide","classPrefix","classnames","className"]),y=this.state,v=y.xOffset,h=y.yOffset,O=s.__assign(s.__assign({display:"block"},f),{top:a+h,left:n+v});return o.default.createElement("div",s.__assign({className:d(c+"PopOver",m,c+"PopOver--"+i.camel(t)),style:O},u),p?o.default.createElement("div",{className:c+"PopOver-overlay",onClick:l}):null,r)},t.defaultProps={className:"",offset:{x:0,y:0},overlay:!1,placement:"auto"},t}(o.default.PureComponent);t.PopOver=f,t.default=n.themeable(f)}); -;/*!src/utils/api.ts*/ -amis.define("1caead1",function(e,t){"use strict";function a(e,t){if("string"==typeof e){var a=b.test(e)?RegExp.$1:"";a&&(e=e.replace(a+":","")),e={method:a||t,url:e}}else e=g.__assign({},e);return e}function r(e,t,r){void 0===r&&(r={}),e=a(e,r.method);var s=r.autoAppend,i=r.ignoreData,o=g.__rest(r,["autoAppend","ignoreData"]);if(e.config=g.__assign({},o),e.method=e.method||r.method||"get",!t)return e;if(t instanceof FormData||t instanceof Blob||t instanceof ArrayBuffer)return e.data=t,e;var d=e.url=e.url||"",u=e.url.indexOf("?");if(~u){var p=e.url.indexOf("#"),f=_.default.parse(e.url.substring(u+1,~p?p:void 0));e.url=m.tokenize(e.url.substring(0,u+1),t,"| url_encode")+v.qsstringify(m.dataMapping(f,t))+(~p?e.url.substring(p):"")}else e.url=m.tokenize(e.url,t,"| url_encode");if(i)return e;if(e.data?e.data=m.dataMapping(e.data,t):("post"===e.method||"put"===e.method)&&(e.data=v.cloneObject(t)),"get"===e.method&&(~d.indexOf("$")||e.data||!s||(e.data=t),e.data)){var l=e.url.indexOf("?");if(~l){var f=g.__assign(g.__assign({},_.default.parse(e.url.substring(l+1))),e.data);e.url=e.url.substring(0,l)+"?"+v.qsstringify(f)}else e.url+="?"+v.qsstringify(e.data);delete e.data}return e.headers&&(e.headers=m.dataMapping(e.headers,t)),e.requestAdaptor&&"string"==typeof e.requestAdaptor&&(e.requestAdaptor=n(e.requestAdaptor,"api")),e.adaptor&&"string"==typeof e.adaptor&&(e.adaptor=n(e.adaptor,"payload","response","api")),e}function n(e){for(var t=[],a=1;a0){var s=l(t);return o(s?s.cachedPromise:c(t,e(t)),t)}return o(e(t),t)}}function o(e,t){var a=t.adaptor;return a?e.then(function(e){return g.__assign(g.__assign({},e),{data:a(e.data,e,t)})}).then(s):e.then(s)}function d(e,t,a,n){var s=t&&t.url||t;return t&&t.autoRefresh===!1?!1:s&&"string"==typeof s&&~s.indexOf("$")?(e=r(e,a,{ignoreData:!0}),t=r(t,n,{ignoreData:!0}),!(e.url===t.url||!u(t.url)||t.sendOn&&!y.evalExpression(t.sendOn,n))):!1}function u(e){return e&&/^(?:(https?|wss?|taf):\/\/[^\/]+)?(\/[^\s\/\?]*){1,}(\?.*)?$/.test(e)}function p(e,t,a,r){return e?a===!1?!1:r&&t&&!y.evalExpression(r,t)?!1:"string"==typeof e&&e.length?!0:v.isObject(e)&&e.url?e.sendOn&&t&&!y.evalExpression(e.sendOn,t)?!1:!0:!1:!1}function f(e,t){return e.method===t.method&&e.url===t.url&&!v.isObjectShallowModified(e.data,t.data,!1)}function l(e){for(var t,a=Date.now(),r=0,n=A.length;n>r;r++){var s=A[r];if(a-s.requestTime>s.cache)A.splice(r,1),n--,r--;else if(f(e,s)){t=s;break}}return t}function c(e,t){return A.push(g.__assign(g.__assign({},e),{cachedPromise:t,requestTime:Date.now()})),t}function h(){A.splice(0,A.length)}Object.defineProperty(t,"__esModule",{value:!0});var g=e("node_modules/tslib/tslib"),m=e("f2e345e"),_=g.__importDefault(e("node_modules/qs/lib/index")),y=e("6a2dbb7"),v=e("9a80175"),b=/(?:^|raw\:)(get|post|put|delete|patch|options|head):/i,A=[];t.normalizeApi=a,t.buildApi=r,t.wrapFetcher=i,t.wrapAdaptor=o,t.isApiOutdated=d,t.isValidApi=u,t.isEffectiveApi=p,t.isSameApi=f,t.getApiCache=l,t.setApiCache=c,t.clearApiCache=h}); -;/*!src/types.ts*/ -amis.define("8f9f9e3",function(e,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0})}); -;/*!src/renderers/Form/Item.tsx*/ -amis.define("567b83c",function(e,t){"use strict";function r(e){return function(r){var a,n=!(r.prototype instanceof l.default.Component);if(e.validate&&!r.prototype.validate){var s=e.validate;r.prototype.validate=function(){var e={input:this};return s.apply(e,arguments)}}else e.validate&&console.error("FormItem配置中的 validate 将不起作用,因为类的成员函数中已经定义了 validate 方法,将优先使用类里面的实现。");return e.storeType&&(r=m.HocStoreFactory({storeType:e.storeType,extendsData:e.extendsData})(c.observer(r)),delete e.storeType),i.default((a=function(a){function i(e){var t=a.call(this,e)||this;return t.refFn=t.refFn.bind(t),t}return o.__extends(i,a),i.prototype.componentWillMount=function(){var t=this.props,r=t.validations,n=t.formItem;n&&!r&&e.validations&&n.config({rules:e.validations}),a.prototype.componentWillMount.call(this)},i.prototype.shouldComponentUpdate=function(r){return r.strictMode===!1||e.strictMode===!1?!0:d.anyChanged(t.detectProps,this.props,r)?!0:!1},i.prototype.getWrappedInstance=function(){return this.ref},i.prototype.refFn=function(e){this.ref=e},i.prototype.renderControl=function(){var t,a=this.props,i=a.inputClassName,s=a.formItem,m=a.classnames,c=(a.children,a.type),p=a.size,u=a.defaultSize,f=o.__rest(a,["inputClassName","formItem","classnames","children","type","size","defaultSize"]),h=p||u;return l.default.createElement(r,o.__assign({},f,{onOpenDialog:this.handleOpenDialog,size:e.sizeMutable!==!1?void 0:p,onFocus:this.handleFocus,onBlur:this.handleBlur,type:c,classnames:m,ref:n?void 0:this.refFn,forwardedRef:n?this.refFn:void 0,formItem:s,className:m("Form-control",(t={"is-inline":!!f.inline,"is-error":s&&!s.valid},t["Form-control--withSize Form-control--size"+d.ucFirst(h)]=e.sizeMutable!==!1&&"string"==typeof h&&!!h&&"full"!==h,t),i)}))},i}(f),a.defaultProps=o.__assign({className:"",renderLabel:e.renderLabel,renderDescription:e.renderDescription,sizeMutable:e.sizeMutable,wrap:e.wrap,showErrorMsg:e.showErrorMsg},r.defaultProps),a.propsList=o.__spreadArrays(["value","defaultValue","onChange","setPrinstineValue","readOnly","strictMode"],r.propsList||[]),a.displayName="FormItem"+(e.type?"("+e.type+")":""),a.ComposedComponent=r,a),r)}}function a(e){var t=r(e)(e.component);return m.registerRenderer(o.__assign(o.__assign({},e),{name:e.name||e.type+"-control",weight:"undefined"!=typeof e.weight?e.weight:-100,test:e.test||new RegExp("(^|/)form(?:/.+)?/control/(?:d+/)?"+e.type+"$","i"),component:t,isFormItem:!0}))}function n(e){return function(t){var r=a(o.__assign(o.__assign({},e),{component:t}));return r.component}}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),l=o.__importDefault(e("node_modules/react/index")),i=o.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),s=e("node_modules/mobx/lib/mobx"),m=e("0f9ebdf"),d=e("9a80175"),c=e("node_modules/mobx-react/dist/mobx-react"),p=e("8f9f9e3"),u=e("6a2dbb7"),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.formItem;t&&(this.reaction=s.reaction(function(){return""+t.errors.join("")+t.isFocused+t.dialogOpen},function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},t.prototype.handleFocus=function(e){var t=this.props.formItem;t&&t.focus(),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props.formItem;t&&t.blur(),this.props.onBlur&&this.props.onBlur(e)},t.prototype.handleOpenDialog=function(e,t){return o.__awaiter(this,void 0,void 0,function(){var r;return o.__generator(this,function(){return r=this.props.formItem,r?[2,new Promise(function(a){return r.openDialog(e,t,function(e){return a(e)})})]:[2]})})},t.prototype.handleDialogConfirm=function(e){var t=e[0],r=this.props.formItem;r&&r.closeDialog(t)},t.prototype.handleDialogClose=function(){var e=this.props.formItem;e&&e.closeDialog()},t.prototype.renderControl=function(){var e,t=this.props,r=t.inputClassName,a=t.formItem,n=t.classnames,l=(t.children,t.type),i=t.renderControl,s=(t.formItemConfig,t.sizeMutable),m=t.size,c=t.defaultSize,p=o.__rest(t,["inputClassName","formItem","classnames","children","type","renderControl","formItemConfig","sizeMutable","size","defaultSize"]);if(i){var u=m||c;return i(o.__assign(o.__assign({},p),{onOpenDialog:this.handleOpenDialog,type:l,classnames:n,formItem:a,className:n("Form-control",(e={"is-inline":!!p.inline,"is-error":a&&!a.valid},e["Form-control--withSize Form-control--size"+d.ucFirst(u)]=s!==!1&&"string"==typeof u&&!!u&&"full"!==u,e),r)}))}return null},t.prototype.renderHorizontal=function(){var e,t,r,a=this.props,n=a.className,o=a.classnames,i=a.description,s=a.descriptionClassName,m=a.captionClassName,c=a.desc,p=a.label,f=a.labelClassName,h=a.render,g=a.required,F=a.caption,y=a.remark,b=a.labelRemark,_=a.env,v=a.formItem,N=a.renderLabel,C=a.renderDescription,k=a.hint,M=a.data,E=a.showErrorMsg;N===!1&&(p=p===!1?!1:""),i=i||c;var I=this.props.horizontal||this.props.formHorizontal,w=d.getWidthRate(I.left),z=d.getWidthRate(I.right);return l.default.createElement("div",{className:o("Form-item Form-item--horizontal",n,(e={},e["is-error"]=v&&!v.valid,e["is-required"]=g,e))},p!==!1?l.default.createElement("label",{className:o("Form-label",(t={},t["Form-itemColumn--"+("string"==typeof I.leftFixed?I.leftFixed:"normal")]=I.leftFixed,t["Form-itemColumn--"+w]=!I.leftFixed,t),f)},l.default.createElement("span",null,u.filter(p,M),g&&(p||b)?l.default.createElement("span",{className:o("Form-star")},"*"):null,b?h("label-remark",{type:"remark",tooltip:b,className:o("Form-labelRemark"),container:_&&_.getModalContainer?_.getModalContainer:void 0}):null)):null,l.default.createElement("div",{className:o("Form-value",(r={},r["Form-itemColumn--"+z]=!!z&&z!==12-w,r))},this.renderControl(),F?h("caption",F,{className:o("Form-caption",m)}):null,y?h("remark",{type:"remark",tooltip:y,className:o("Form-remark"),container:_&&_.getModalContainer?_.getModalContainer:void 0}):null,k&&v&&v.isFocused?h("hint",k,{className:o("Form-hint")}):null,v&&!v.valid&&E!==!1?l.default.createElement("ul",{className:o("Form-feedback")},v.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,C!==!1&&i?h("description",i,{className:o("Form-description",s)}):null))},t.prototype.renderNormal=function(){var e,t=this.props,r=t.className,a=t.classnames,n=t.desc,o=t.description,i=t.label,s=t.labelClassName,m=t.render,d=t.required,c=t.caption,p=t.remark,f=t.labelRemark,h=t.env,g=t.descriptionClassName,F=t.captionClassName,y=t.formItem,b=t.renderLabel,_=t.renderDescription,v=t.hint,N=t.formMode,C=t.data,k=t.showErrorMsg;return o=o||n,l.default.createElement("div",{className:a("Form-item Form-item--"+N,r,(e={"is-error":y&&!y.valid},e["is-required"]=d,e))},i&&b!==!1?l.default.createElement("label",{className:a("Form-label",s)},l.default.createElement("span",null,u.filter(i,C),d&&(i||f)?l.default.createElement("span",{className:a("Form-star")},"*"):null,f?m("label-remark",{type:"remark",tooltip:f,className:a("Form-lableRemark"),container:h&&h.getModalContainer?h.getModalContainer:void 0}):null)):null,this.renderControl(),c?m("caption",c,{className:a("Form-caption",F)}):null,p?m("remark",{type:"remark",className:a("Form-remark"),tooltip:p,container:h&&h.getModalContainer?h.getModalContainer:void 0}):null,v&&y&&y.isFocused?m("hint",v,{className:a("Form-hint")}):null,y&&!y.valid&&k!==!1?l.default.createElement("ul",{className:a("Form-feedback")},y.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,_!==!1&&o?m("description",o,{className:a("Form-description",g)}):null)},t.prototype.renderInline=function(){var e,t=this.props,r=t.className,a=t.classnames,n=t.desc,o=t.description,i=t.label,s=t.labelClassName,m=t.render,d=t.required,c=t.caption,p=t.descriptionClassName,f=t.captionClassName,h=t.formItem,g=t.remark,F=t.labelRemark,y=t.env,b=t.hint,_=t.renderLabel,v=t.renderDescription,N=t.data,C=t.showErrorMsg;return o=o||n,l.default.createElement("div",{className:a("Form-item Form-item--inline",r,(e={"is-error":h&&!h.valid},e["is-required"]=d,e))},i&&_!==!1?l.default.createElement("label",{className:a("Form-label",s)},l.default.createElement("span",null,u.filter(i,N),d&&(i||F)?l.default.createElement("span",{className:a("Form-star")},"*"):null,F?m("label-remark",{type:"remark",tooltip:F,className:a("Form-lableRemark"),container:y&&y.getModalContainer?y.getModalContainer:void 0}):null)):null,l.default.createElement("div",{className:a("Form-value")},this.renderControl(),c?m("caption",c,{className:a("Form-caption",f)}):null,g?m("remark",{type:"remark",className:a("Form-remark"),tooltip:g,container:y&&y.getModalContainer?y.getModalContainer:void 0}):null,b&&h&&h.isFocused?m("hint",b,{className:a("Form-hint")}):null,h&&!h.valid&&C!==!1?l.default.createElement("ul",{className:a("Form-feedback")},h.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,v!==!1&&o?m("description",o,{className:a("Form-description",p)}):null))},t.prototype.renderRow=function(){var e,t=this.props,r=t.className,a=t.classnames,n=t.desc,o=t.description,i=t.label,s=t.labelClassName,m=t.render,d=t.required,c=t.caption,p=t.remark,f=t.labelRemark,h=t.env,g=t.descriptionClassName,F=t.captionClassName,y=t.formItem,b=t.renderLabel,_=t.renderDescription,v=t.hint,N=t.formMode,C=t.data,k=t.showErrorMsg;return o=o||n,l.default.createElement("div",{className:a("Form-item Form-item--"+N,r,(e={"is-error":y&&!y.valid},e["is-required"]=d,e))},l.default.createElement("div",{className:a("Form-rowInner")},i&&b!==!1?l.default.createElement("label",{className:a("Form-label",s)},l.default.createElement("span",null,u.filter(i,C),d&&(i||f)?l.default.createElement("span",{className:a("Form-star")},"*"):null,f?m("label-remark",{type:"remark",tooltip:f,className:a("Form-lableRemark"),container:h&&h.getModalContainer?h.getModalContainer:void 0}):null)):null,this.renderControl(),c?m("caption",c,{className:a("Form-caption",F)}):null,p?m("remark",{type:"remark",className:a("Form-remark"),tooltip:p,container:h&&h.getModalContainer?h.getModalContainer:void 0}):null),v&&y&&y.isFocused?m("hint",v,{className:a("Form-hint")}):null,y&&!y.valid&&k!==!1?l.default.createElement("ul",{className:a("Form-feedback")},y.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,o&&_!==!1?m("description",o,{className:a("Form-description",g)}):null)},t.prototype.render=function(){var e=this.props,t=e.formMode,r=e.inputOnly,a=e.wrap,n=e.render,i=e.formItem;return a===!1||r?this.renderControl():l.default.createElement(l.default.Fragment,null,"inline"===t?this.renderInline():"horizontal"===t?this.renderHorizontal():"row"===t?this.renderRow():this.renderNormal(),i?n("modal",o.__assign({type:"dialog"},i.dialogSchema),{show:i.dialogOpen,onClose:this.handleDialogClose,onConfirm:this.handleDialogConfirm,data:i.dialogData}):null)};var r,a;return o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof p.Schema&&p.Schema)?r:Object,Object]),o.__metadata("design:returntype",Promise)],t.prototype,"handleOpenDialog",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof Array&&Array)?a:Object]),o.__metadata("design:returntype",void 0)],t.prototype,"handleDialogConfirm",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],t.prototype,"handleDialogClose",null),t}(l.default.Component);t.FormItemWrap=f,t.detectProps=["formPristine","formInited","addable","addButtonClassName","addButtonText","addOn","btnClassName","btnLabel","btnDisabled","className","clearable","columns","columnsCount","controls","desc","description","disabled","draggable","editable","editButtonClassName","formHorizontal","formMode","hideRoot","horizontal","icon","inline","inputClassName","label","labelClassName","labelField","language","level","max","maxRows","min","minRows","multiLine","multiple","option","placeholder","removable","required","remark","hint","rows","searchable","showCompressOptions","size","step","showInput","unit","value","diffValue"],t.asFormItem=r,t.registerFormItem=a,t.FormItem=n,t.default=n}); -;/*!src/renderers/Form/Options.tsx*/ -amis.define("b86428a",function(e,t){"use strict";function o(e){var o=e.component,n=function(n){function a(){return null!==n&&n.apply(this,arguments)||this}i.__extends(a,n),a.prototype.componentWillMount=function(){var t=this,o=this.props,n=o.initFetch,a=o.formItem,i=(o.source,o.data,o.setPrinstineValue),r=o.defaultValue,s=o.multiple,p=o.joinValues,d=o.extractValue,u=o.addHook,c=o.formInited,f=o.valueField,_=o.options,y=o.value;a&&(a.setOptions(m.normalizeOptions(_)),this.reaction=l.reaction(function(){return JSON.stringify([a.loading,a.filteredOptions])},function(){return t.forceUpdate()}));var g=n!==!1;if(a&&p===!1&&r){var h=d?a.getSelectedOptions(y).map(function(e){return e[f||"value"]}):a.getSelectedOptions(y);i(s?h.concat():h[0])}g&&e.autoLoadOptionsFromSource!==!1&&(c?this.reload():u&&u(this.initOptions,"init"))},a.prototype.componentDidMount=function(){this.normalizeValue()},a.prototype.shouldComponentUpdate=function(o){return e.strictMode===!1||o.strictMode===!1?!0:o.source||o.autoComplete?!0:p.anyChanged(t.detectProps,this.props,o)?!0:!1},a.prototype.componentDidUpdate=function(t){var o=this,n=this.props,a=n.formItem;if(a&&n.formInited)if(!t.formItem,(t.value!==n.value||a.expressionsInOptions)&&a.syncOptions(),t.options!==n.options&&a)a.setOptions(m.normalizeOptions(n.options||[])),this.normalizeValue();else if(e.autoLoadOptionsFromSource!==!1&&n.source&&a&&(t.source!==n.source||t.data!==n.data))if(c.isPureVariable(n.source)){var i=c.resolveVariableAndFilter(t.source,t.data,"| raw"),s=c.resolveVariableAndFilter(n.source,n.data,"| raw");i!==s&&a.setOptions(m.normalizeOptions(s||[])),this.normalizeValue()}else r.isEffectiveApi(n.source,n.data)&&r.isApiOutdated(t.source,n.source,t.data,n.data)&&a.loadOptions(n.source,n.data,void 0,!0,n.onChange).then(function(){return o.normalizeValue()})},a.prototype.componentWillUnmount=function(){this.props.removeHook&&this.props.removeHook(this.reload,"init"),this.reaction&&this.reaction()},a.prototype.normalizeValue=function(){var e=this.props,t=e.joinValues,o=e.extractValue,n=e.value,a=e.multiple,i=e.formItem,r=e.valueField;if(i&&t===!1&&i.options.length)if(o!==!1||"string"!=typeof n&&"number"!=typeof n){if(o===!0&&n&&!(Array.isArray(n)&&n.every(function(e){return"string"==typeof e||"number"==typeof e})||"string"==typeof n||"number"==typeof n)){var s=i.getSelectedOptions(n).map(function(e){return e[r||"value"]});i.changeValue(a?s.concat():s[0])}}else{var s=i.getSelectedOptions(n);i.changeValue(a?s.concat():s[0])}},a.prototype.getWrappedInstance=function(){return this.input},a.prototype.inputRef=function(e){this.input=e},a.prototype.handleToggle=function(e,t,o){var n=this.props,a=n.onChange,i=n.joinValues,r=n.extractValue,s=n.valueField,p=n.delimiter,l=n.clearable,d=n.resetValue,u=n.multiple,c=n.formItem,f=n.value;if(c){var y=c.getSelectedOptions(f).concat(),g=_.default(y,m.optionValueCompare(e[s||"value"],s||"value")),h="";u?(~g?y.splice(g,1):y.push(e),h=y,i?h=h.map(function(e){return e[s||"value"]}).join(p):r&&(h=h.map(function(e){return e[s||"value"]}))):(~g&&l?y.splice(g,1):y=[e],h=y[0]||d,(i||r)&&h&&(h=h[s||"value"])),a&&a(h,t,o)}},a.prototype.handleToggleAll=function(){var e=this.props,t=e.value,o=e.onChange,n=e.joinValues,a=e.extractValue,i=e.valueField,r=e.delimiter,s=e.resetValue,p=e.multiple,l=e.formItem;if(l){var d=l.getSelectedOptions(t),u=d.length===l.filteredOptions.length?[]:l.filteredOptions.concat(),c="";p?(c=u,n?c=c.map(function(e){return e[i||"value"]}).join(r):a&&(c=c.map(function(e){return e[i||"value"]}))):(c=u[0]||s,n&&c&&(c=c[i||"value"])),o&&o(c)}},a.prototype.reload=function(){return this.reloadOptions()},a.prototype.reloadOptions=function(e){var t=this.props,o=t.source,n=t.formItem,a=t.data,i=t.onChange;if(n&&c.isPureVariable(o))return void n.setOptions(m.normalizeOptions(c.resolveVariableAndFilter(o,a,"| raw")||[]));if(n&&r.isEffectiveApi(o,a))return n.loadOptions(o,a,void 0,!1,i,e)},a.prototype.deferLoad=function(e){var t,o=this.props,n=o.deferApi,a=o.source,i=o.env,r=o.formItem,s=o.data;if(!e.loaded){var l=e.deferApi||n||a;return l?void(null===(t=r)||void 0===t?void 0:t.deferLoadOptions(e,l,p.createObject(s,e))):void i.notify("error","请在选项中设置 `deferApi` 或者表单项中设置 `deferApi`,用来加载子选项。")}},a.prototype.initOptions=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,o,n;return i.__generator(this,function(a){switch(a.label){case 0:return[4,this.reload()];case 1:return a.sent(),t=this.props,o=t.formItem,n=t.name,o?(s.isAlive(o)&&o.value&&p.setVariable(e,n,o.value),[2]):[2]}})})},a.prototype.focus=function(){this.input&&this.input.focus&&this.input.focus()},a.prototype.setOptions=function(e,t){void 0===t&&(t=!1);var o=this.props.formItem;o&&o.setOptions(t?e:m.normalizeOptions(e||[]))},a.prototype.syncOptions=function(){var e=this.props.formItem;e&&e.syncOptions()},a.prototype.setLoading=function(e){var t=this.props.formItem;t&&t.setLoading(e)},a.prototype.handleOptionAdd=function(e,t,o){return void 0===e&&(e=-1),void 0===o&&(o=!1),i.__awaiter(this,void 0,void 0,function(){var n,a,r,s,l,d,u,c,m,f,_,y,g,h,v,b,O,A,V,F,j;return i.__generator(this,function(I){switch(I.label){case 0:return n=this.props,a=n.addControls,r=n.disabled,s=n.labelField,l=n.onOpenDialog,d=n.optionLabel,u=n.addApi,c=n.source,m=n.data,f=n.valueField,_=n.formItem,y=n.createBtnLabel,g=n.env,h=n.translate,r||!_?[2]:(o||Array.isArray(a)&&a.length||(a=[{type:"text",name:s||"label",label:!1,placeholder:h("请输入名称")}]),v=p.createObject(m,Array.isArray(e)?i.__assign({parent:p.getTree(_.options,e.slice(0,e.length-1))},t):t),o?(O=v,[3,3]):[3,1]);case 1:return[4,l({type:"dialog",title:y||"新增"+(d||"选项"),body:{type:"form",api:u,controls:a}},v)];case 2:O=I.sent(),I.label=3;case 3:if(b=O,!o||!u)return[3,7];I.label=4;case 4:return I.trys.push([4,6,,7]),[4,g.fetcher(u,b,{method:"post"})];case 5:return A=I.sent(),A.ok?b=A.data||b:(g.notify("error",A.msg||"新增失败,请仔细检查"),b=null),[3,7];case 6:return V=I.sent(),b=null,console.error(V),g.notify("error",V.message),[3,7];case 7:return b?(b.hasOwnProperty(f||"value")||(b=i.__assign(i.__assign({},b),(j={},j[f||"value"]=b[s||"label"],j))),c&&u?this.reload():(F=_.options.concat(),Array.isArray(e)?F=p.spliceTree(F,e,0,i.__assign({},b)):~e?F.splice(e,0,i.__assign({},b)):F.push(i.__assign({},b)),_.setOptions(F)),[2]):[2]}})})},a.prototype.handleOptionEdit=function(e,t,o){return void 0===t&&(t=e),void 0===o&&(o=!1),i.__awaiter(this,void 0,void 0,function(){var n,a,r,s,l,d,u,c,m,f,_,y,g,h,v,b,O;return i.__generator(this,function(A){switch(A.label){case 0:return n=this.props,a=n.editControls,r=n.disabled,s=n.labelField,l=n.onOpenDialog,d=n.editApi,u=n.env,c=n.source,m=n.data,f=n.formItem,_=n.optionLabel,y=n.translate,r||!f?[2]:(o||Array.isArray(a)&&a.length||(a=[{type:"text",name:s||"label",label:!1,placeholder:y("请输入名称")}]),o?(h=e,[3,3]):[3,1]);case 1:return[4,l({type:"dialog",title:y("编辑{{label}}",{label:_||"选项"}),body:{type:"form",api:d,controls:a}},p.createObject(m,e))];case 2:h=A.sent(),A.label=3;case 3:if(g=h,!o||!d)return[3,7];A.label=4;case 4:return A.trys.push([4,6,,7]),[4,u.fetcher(d,p.createObject(m,g),{method:"post"})];case 5:return v=A.sent(),v.ok?g=v.data||g:(u.notify("error",v.msg||y("保存失败,请仔细检查")),g=null),[3,7];case 6:return b=A.sent(),g=null,console.error(b),u.notify("error",b.message),[3,7];case 7:return g?(c&&!d?this.reload():(O=p.findTreeIndex(f.options,function(e){return e===t}),O&&f.setOptions(p.spliceTree(f.options,O,1,i.__assign(i.__assign({},t),g)))),[2]):[2]}})})},a.prototype.handleOptionDelete=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,o,n,a,r,s,l,d,u,c,m,y,g,h,v,b,O;return i.__generator(this,function(i){switch(i.label){case 0:return t=this.props,o=t.deleteConfirmText,n=t.disabled,a=t.data,r=t.deleteApi,s=t.env,l=t.formItem,d=t.source,u=t.valueField,c=t.translate,n||!l?[2]:(m=p.createObject(a,e),o?[4,s.confirm(f.filter(o,m))]:[3,2]);case 1:return g=i.sent(),[3,3];case 2:g=!0,i.label=3;case 3:if(y=g,!y)return[2];i.label=4;case 4:if(i.trys.push([4,6,,7]),!r)throw new Error(c("请配置 deleteApi"));return[4,s.fetcher(r,m,{method:"delete"})];case 5:return h=i.sent(),h.ok?d?this.reload():(v=l.options.concat(),b=_.default(v,function(t){return t[u||"value"]==e[u||"value"]}),~b&&(v.splice(b,1),l.setOptions(v))):s.notify("error",h.msg||c("删除失败,请重试")),[3,7];case 6:return O=i.sent(),console.error(O),s.notify("error",O.message),[3,7];case 7:return[2]}})})},a.prototype.render=function(){var e=this.props,t=e.value,n=e.formItem,a=e.addApi,s=e.editApi,p=e.deleteApi,l=e.creatable,d=e.editable,c=e.removable;return u.default.createElement(o,i.__assign({},this.props,{ref:this.inputRef,options:n?n.filteredOptions:[],onToggle:this.handleToggle,onToggleAll:this.handleToggleAll,selectedOptions:n?n.getSelectedOptions(t):[],loading:n?n.loading:!1,setLoading:this.setLoading,setOptions:this.setOptions,syncOptions:this.syncOptions,reloadOptions:this.reload,deferLoad:this.deferLoad,creatable:l||l!==!1&&r.isEffectiveApi(a),editable:d||d!==!1&&r.isEffectiveApi(s),removable:c||c!==!1&&r.isEffectiveApi(p),onAdd:this.handleOptionAdd,onEdit:this.handleOptionEdit,onDelete:this.handleOptionDelete}))};var d,y,g;return a.displayName="OptionsControl("+e.type+")",a.defaultProps=i.__assign({delimiter:",",labelField:"label",valueField:"value",joinValues:!0,extractValue:!1,multiple:!1,placeholder:"请选择",resetValue:"",deleteConfirmText:"确定要删除?"},o.defaultProps),a.propsList=o.propsList?i.__spreadArrays(o.propsList):[],a.ComposedComponent=o,i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],a.prototype,"inputRef",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof m.Option&&m.Option)?d:Object,Boolean,Boolean]),i.__metadata("design:returntype",void 0)],a.prototype,"handleToggle",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],a.prototype,"handleToggleAll",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],a.prototype,"reload",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Boolean]),i.__metadata("design:returntype",void 0)],a.prototype,"reloadOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",["function"==typeof(y="undefined"!=typeof m.Option&&m.Option)?y:Object]),i.__metadata("design:returntype",void 0)],a.prototype,"deferLoad",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",Promise)],a.prototype,"initOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",["function"==typeof(g="undefined"!=typeof Array&&Array)?g:Object,Object]),i.__metadata("design:returntype",void 0)],a.prototype,"setOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],a.prototype,"syncOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Boolean]),i.__metadata("design:returntype",void 0)],a.prototype,"setLoading",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object,Object,Boolean]),i.__metadata("design:returntype",Promise)],a.prototype,"handleOptionAdd",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object,Object,Boolean]),i.__metadata("design:returntype",Promise)],a.prototype,"handleOptionEdit",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",Promise)],a.prototype,"handleOptionDelete",null),a}(u.default.Component);return d.registerFormItem(i.__assign(i.__assign({},e),{strictMode:!1,component:n}))}function n(e){return function(t){var n=o(i.__assign(i.__assign({},e),{component:t}));return n.component}}function a(e,t,o){if(void 0===o&&(o="is-matched"),!t)return e;e=String(e);var n=new RegExp(t.replace(/([\$\^\*\+\-\?\.\(\)\|\[\]\\])/g,"\\$1"),"i");if(!n.test(e))return e;var a=e.split(n),i=[];return a.forEach(function(e,n){e&&i.push(u.default.createElement("span",{key:n},e)),i.push(u.default.createElement("span",{className:o,key:n+"-hl"},t))}),i.pop(),i}Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),r=e("1caead1"),s=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),p=e("9a80175"),l=e("node_modules/mobx/lib/mobx"),d=e("567b83c"),u=i.__importDefault(e("node_modules/react/index")),c=e("f2e345e"),m=e("d57879c");t.Option=m.Option;var f=e("6a2dbb7"),_=i.__importDefault(e("node_modules/lodash/findIndex"));t.detectProps=d.detectProps.concat(["options","size","buttons","columnsCount","multiple","hideRoot","checkAll","showIcon","showRadio","btnDisabled","joinValues","extractValue"]),t.registerOptionsControl=o,t.OptionsControl=n,t.highlight=a}); -;/*!src/components/Checkbox.tsx*/ -amis.define("0a43d97",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("256b65d"),d=e("9a80175"),u=function(e){return e.stopPropagation()},o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.handleCheck=function(e){var t=this.props,a=t.trueValue,n=t.falseValue,l=t.onChange;l&&l(e.currentTarget.checked?a:n)},t.prototype.render=function(){var e,t=this.props,a=t.size,l=t.className,d=t.classnames,o=t.value,r=t.label,c=t.partial,s=t.trueValue,i=t.children,p=t.disabled,f=t.description,h=t.readOnly,m=t.checked,b=t.type,y=t.name,_=t.labelClassName;return n.default.createElement("label",{className:d("Checkbox Checkbox--"+b,l,(e={"Checkbox--full":!c},e["Checkbox--"+a]=a,e))},n.default.createElement("input",{type:b,checked:"undefined"!=typeof m?m:"undefined"==typeof o?o:o==s,onChange:this.handleCheck,onClick:u,disabled:p,readOnly:h,name:y}),n.default.createElement("i",null),n.default.createElement("span",{className:d(_)},i||r),f?n.default.createElement("div",{className:d("Checkbox-desc")},f):null)};var l;return t.defaultProps={trueValue:!0,falseValue:!1,type:"checkbox"},a.__decorate([d.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.ChangeEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCheck",null),t}(n.default.Component);t.Checkbox=o,t.default=l.themeable(o)}); -;/*!src/components/Input.tsx*/ -amis.define("4ee46ff",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),a=e("9a80175"),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isOnComposition=!1,t.state={value:t.props.value},t}n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.value!==e.value&&this.setState({value:e.value})},t.prototype.handleComposition=function(e){this.isOnComposition="compositionend"!==e.type,this.isOnComposition||this.handleChange(e)},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;this.isOnComposition||t&&t(e),this.setState({value:n})},t.prototype.render=function(){var e=this.props,t=e.forwardedRef,a=n.__rest(e,["forwardedRef"]);return o.default.createElement("input",n.__assign({type:"text"},a,{value:this.state.value,ref:t,onChange:this.handleChange,onCompositionStart:this.handleComposition,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleComposition}))};var i,s;return n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof o.default&&o.default.CompositionEvent)?i:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleComposition",null),n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof o.default&&o.default.ChangeEvent)?s:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t}(o.default.Component);t.default=o.default.forwardRef(function(e,t){return o.default.createElement(i,n.__assign({},e,{forwardedRef:t}))})}); -;/*!src/components/Spinner.tsx*/ -amis.define("acad559",function(e,n){"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=r.__importDefault(e("node_modules/react/index")),l=e("256b65d"),i=r.__importStar(e("node_modules/react-transition-group/Transition")),o=e("b7bbd16"),u=(t={},t[i.ENTERING]="in",t[i.ENTERED]="in",t),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.div=a.default.createRef(),n.overlay=a.default.createRef(),n}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.show,r=n.classnames,l=n.spinnerClassName,s=n.mode,d=n.size,c=n.overlay,f=n.icon;return a.default.createElement(i.default,{mountOnEnter:!0,unmountOnExit:!0,"in":t,timeout:350},function(n){var t;return n===i.ENTERING&&e.overlay.current&&e.overlay.current.offsetWidth,a.default.createElement(a.default.Fragment,null,c?a.default.createElement("div",{ref:e.overlay,className:r("Spinner-overlay",u[n])}):null,a.default.createElement("div",{ref:e.div,className:r("Spinner",l,u[n],(t={},t["Spinner--"+s]=s,t["Spinner--overlay"]=c,t["Spinner--"+d]=d,t["Spinner--icon"]=f,t))},f?a.default.createElement(o.Icon,{icon:f,className:"icon"}):null))})},n.defaultProps={overlay:!1,spinnerClassName:"",mode:"",size:"",show:!0},n}(a.default.Component);n.Spinner=s,n.default=l.themeable(s)}); -;/*!src/components/Select.tsx*/ -amis.define("d57879c",function(e,t){"use strict";function n(e,t){if(t.multi||t.multiple){if("string"==typeof e&&(e=e.split(t.delimiter||",")),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return l(e,t.options,t.valueField)}).filter(function(e){return e})}Array.isArray(e)&&(e=e[0]);var n=l(e,t.options,t.valueField);return n?[n]:[]}function l(e,t,n){void 0===n&&(n="value");var l,a=typeof e;return"string"!==a&&"number"!==a&&"boolean"!==a&&"object"!==a?e:t?("object"===a&&e&&e.hasOwnProperty(n||"value")&&(l=e[n||"value"],e=null!==l&&void 0!==l?l:""),m.findTree(t,i(e,n||"value"))):null}function a(e,t,n){return void 0===n&&(n="value"),m.isObject(e)?e===t[n||"value"]:String(t[n||"value"])===String(e)}function i(e,t){return void 0===t&&(t="value"),function(n){return a(e,n,t)}}function o(e,t){return void 0===t&&(t={values:[],options:[]}),"string"==typeof e?e.split(",").map(function(e){var n=t.values.indexOf(e);if(~n)return t.options[n];var l={label:e,value:e};return t.values.push(l.value),t.options.push(l),l}):Array.isArray(e)&&"string"==typeof e[0]?e.map(function(e){var n=t.values.indexOf(e);if(~n)return t.options[n];var l={label:e,value:e};return t.values.push(l.value),t.options.push(l),l}):Array.isArray(e)?e.map(function(e){var n=e&&e.value,l=void 0!==n?t.values.indexOf(n):-1;if(~l)return t.options[l];var a=s.__assign(s.__assign({},e),{value:n});return"undefined"!=typeof a.children?a.children=o(a.children,t):void 0!==n&&(t.values.push(n),t.options.push(a)),a}):v.default(e)?Object.keys(e).map(function(n){var l=t.values.indexOf(n);if(~l)return t.options[l];var a={label:e[n],value:n};return t.values.push(a.value),t.options.push(a),a}):[]}Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),r=e("node_modules/uncontrollable/cjs/index"),u=s.__importDefault(e("node_modules/react/index")),c=s.__importDefault(e("997df41")),d=s.__importDefault(e("2b3dcdf")),p=s.__importDefault(e("node_modules/downshift/dist/downshift.cjs")),h=e("b7bbd16"),f=s.__importDefault(e("node_modules/match-sorter/dist/match-sorter.cjs")),m=e("9a80175"),v=s.__importDefault(e("node_modules/lodash/isPlainObject")),g=s.__importDefault(e("node_modules/lodash/union")),b=e("b86428a"),y=e("node_modules/react-dom/index"),C=e("256b65d"),_=s.__importDefault(e("0a43d97")),k=s.__importDefault(e("4ee46ff")),S=e("5ab4e9d"),O=s.__importDefault(e("acad559"));t.value2array=n,t.expandValue=l,t.matchOptionValue=a,t.optionValueCompare=i,t.normalizeOptions=o;var E=p.default.stateChangeTypes,A=function(e){function t(t){var l=e.call(this,t)||this;return l.menu=u.default.createRef(),l.open=l.open.bind(l),l.close=l.close.bind(l),l.toggle=l.toggle.bind(l),l.onBlur=l.onBlur.bind(l),l.onFocus=l.onFocus.bind(l),l.focus=l.focus.bind(l),l.inputRef=l.inputRef.bind(l),l.handleChange=l.handleChange.bind(l),l.handleInputChange=l.handleInputChange.bind(l),l.clearValue=l.clearValue.bind(l),l.handleStateChange=l.handleStateChange.bind(l),l.handleKeyPress=l.handleKeyPress.bind(l),l.getTarget=l.getTarget.bind(l),l.toggleCheckAll=l.toggleCheckAll.bind(l),l.handleAddClick=l.handleAddClick.bind(l),l.handleEditClick=l.handleEditClick.bind(l),l.handleDeleteClick=l.handleDeleteClick.bind(l),l.state={isOpen:t.defaultOpen||!1,isFocused:!1,inputValue:"",highlightedIndex:-1,selection:n(t.value,t)},l}return s.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.loadOptions,n=e.options,l=e.multiple,a=e.defaultCheckAll,i=e.onChange,o=e.simpleValue,s=this.state.selection;l&&a&&n.length&&(s=g.default(n,s),this.setState({selection:s}),i(o?s.map(function(e){return e.value}):s)),t&&t("")},t.prototype.componentDidUpdate=function(e){var t=this.props,l=m.noop;if(t.value!==e.value||JSON.stringify(t.options)!==JSON.stringify(e.options)){var a;if(e.options&&e.options.length||!t.options.length)a=n(t.value,t);else{var i=this.state.selection,o=t.multiple,s=t.defaultCheckAll,r=t.options,u=t.onChange,c=t.simpleValue;o&&s&&r.length?(a=g.default(r,i),l=function(){return u(c?a.map(function(e){return e.value}):a)}):a=n(t.value,t)}this.setState({selection:a},l)}},t.prototype.open=function(){var e=this;this.props.disabled||this.setState({isOpen:!0,highlightedIndex:-1},function(){return setTimeout(e.focus,500)})},t.prototype.close=function(){this.setState({isOpen:!1})},t.prototype.toggle=function(e){var t=this;e&&this.menu.current&&this.menu.current.contains(e.target)||this.props.disabled||this.setState({isOpen:!this.state.isOpen,highlightedIndex:-1},this.state.isOpen?void 0:function(){return setTimeout(t.focus,500)})},t.prototype.onFocus=function(e){this.props.disabled||this.state.isOpen||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(e)},t.prototype.onBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},t.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},t.prototype.getTarget=function(){return this.target||(this.target=y.findDOMNode(this)),this.target},t.prototype.inputRef=function(e){this.input=e},t.prototype.toggleCheckAll=function(){var e=this.props,t=e.options,n=e.onChange,l=e.simpleValue,a=this.state.selection,i=t.map(function(e){return e.value}),o=a.map(function(e){return e.value}),s=i.every(function(e){return o.indexOf(e)>-1});a=s?[]:t,n(l?a.map(function(e){return e.value}):a)},t.prototype.removeItem=function(e,t){var n=this.props,l=n.onChange,a=n.simpleValue,i=n.disabled;if(!i){var o=this.state.selection;t&&t.stopPropagation(),o=Array.isArray(o)?o.concat():[o],o.splice(e,1),l(a?o.map(function(e){return e.value}):o)}},t.prototype.handleInputChange=function(e){var t=this,n=this.props.loadOptions;this.setState({inputValue:e.currentTarget.value},function(){return n&&n(t.state.inputValue)})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,l=t.multiple,a=t.simpleValue,i=t.valueField,o=this.state.selection;if(l){var s=o.map(function(e){return e[i]});o=o.concat();var r=s.indexOf(e[i]);~r?o.splice(r,1):o.push(e),n(a?o.map(function(e){return e[i]}):o)}else n(a?e[i]:e)},t.prototype.handleStateChange=function(e){var t=this.props,n=t.multiple,l=t.checkAll,a=t.loadOptions,i=this.state.inputValue,o={},r=!1;switch(e.type){case E.keyDownEnter:case E.clickItem:o=s.__assign(s.__assign({},o),{isOpen:n?!0:!1,isFocused:n&&l?!0:!1,inputValue:n?i:""}),r=!n;break;case E.changeInput:o.highlightedIndex=0;case E.keyDownArrowDown:case E.keyDownArrowUp:case E.itemMouseEnter:o=s.__assign(s.__assign({},o),e)}Object.keys(o).length&&this.setState(o,r&&a?function(){return a("")}:void 0)},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.toggle(),e.preventDefault())},t.prototype.clearValue=function(e){var t=this.props.onChange;e.preventDefault(),e.stopPropagation(),t("")},t.prototype.handleAddClick=function(){var e=this.props.onAdd;e&&e()},t.prototype.handleEditClick=function(e,t){var n=this.props.onEdit;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.handleDeleteClick=function(e,t){var n=this.props.onDelete;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.renderValue=function(e){var t=this,n=(e.inputValue,e.isOpen,this.props),l=n.multiple,a=n.placeholder,i=n.classPrefix,o=n.labelField,s=n.disabled,r=n.translate,c=this.state.selection;return c.length?c.map(function(e,n){return l?u.default.createElement("div",{className:i+"Select-value",key:n},u.default.createElement("span",{className:i+"Select-valueIcon "+(s||e.disabled?"is-disabled":""),onClick:t.removeItem.bind(t,n)},"×"),u.default.createElement("span",{className:i+"Select-valueLabel"},e[o||"label"])):u.default.createElement("div",{className:i+"Select-value",key:n},e[o||"label"])}):u.default.createElement("div",{key:"placeholder",className:i+"Select-placeholder"},r(a))},t.prototype.renderOuter=function(e){var t=this,n=e.selectedItem,l=e.getItemProps,a=e.highlightedIndex,i=e.inputValue,o=e.isOpen,r=(e.getToggleButtonProps,e.getInputProps),p=this.props,m=p.popOverContainer,v=p.options,g=p.valueField,y=p.labelField,C=p.noResultsText,S=p.loadOptions,O=p.creatable,E=p.multiple,A=p.classnames,x=p.checkAll,I=p.checkAllLabel,N=p.searchable,D=p.createBtnLabel,V=p.disabled,F=p.searchPromptText,P=p.editable,T=p.removable,w=p.overlayPlacement,B=p.translate,j=this.state.selection,R=!1,K=!1,L=(i&&o&&!S?f.default(v,i,{keys:[y||"label",g||"value"]}):v.concat()).filter(function(e){return!e.hidden&&e.visible!==!1}),M=j.map(function(e){return e[g]});if(E&&x){var W=v.map(function(e){return e[g]});R=W.every(function(e){return M.indexOf(e)>-1}),K=W.some(function(e){return M.indexOf(e)>-1})}var J=u.default.createElement("div",{ref:this.menu,className:A("Select-menu")},N?u.default.createElement("div",{className:A("Select-input",{"is-focused":this.state.isFocused})},u.default.createElement(h.Icon,{icon:"search",className:"icon"}),u.default.createElement(k.default,s.__assign({},r({onFocus:this.onFocus,onBlur:this.onBlur,disabled:V,placeholder:B(F),onChange:this.handleInputChange,ref:this.inputRef})))):null,E&&x&&L.length?u.default.createElement("div",{className:A("Select-option")},u.default.createElement(_.default,{checked:K,partial:K&&!R,onChange:this.toggleCheckAll},B(I))):null,L.length?L.map(function(e,o){var r=n===e||!!~M.indexOf(e[g]);return u.default.createElement("div",s.__assign({},l({key:"string"==typeof e.value?e.label+"-"+e.value:o,index:o,item:e,disabled:e.disabled}),{className:A("Select-option",{"is-disabled":e.disabled,"is-highlight":a===o,"is-active":r})}),T?u.default.createElement("a",{"data-tooltip":"移除","data-position":"left"},u.default.createElement(h.Icon,{icon:"minus",className:"icon",onClick:function(n){return t.handleDeleteClick(n,e)}})):null,P?u.default.createElement("a",{"data-tooltip":"编辑","data-position":"left"},u.default.createElement(h.Icon,{icon:"pencil",className:"icon",onClick:function(n){return t.handleEditClick(n,e)}})):null,x||E?u.default.createElement(_.default,{checked:r,trueValue:e.value,onChange:function(){t.handleChange(e)},disabled:e.disabled},e.disabled?e[y]:b.highlight(e[y],i,A("Select-option-hl")),e.tip):u.default.createElement("span",null,e.disabled?e[y]:b.highlight(e[y],i,A("Select-option-hl")),e.tip))}):u.default.createElement("div",{className:A("Select-noResult")},B(C)),O&&!V?u.default.createElement("a",{className:A("Select-addBtn"),onClick:this.handleAddClick},u.default.createElement(h.Icon,{icon:"plus",className:"icon"}),B(D)):null);return u.default.createElement(c.default,{container:m||this.getTarget,target:this.getTarget,placement:w,show:!0},u.default.createElement(d.default,{overlay:!0,className:A("Select-popover"),style:{minWidth:this.target?this.target.offsetWidth:"auto"},onHide:this.close},J))},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,l=t.multiple,a=t.searchable,i=t.inline,o=t.className,s=t.value,r=t.loading,c=t.clearable,d=t.labelField,f=t.disabled,v=t.checkAll,g=this.state.selection,b=this.state.inputValue;return u.default.createElement(p.default,{selectedItem:g,highlightedIndex:this.state.highlightedIndex,isOpen:this.state.isOpen,inputValue:b,onChange:l||v?m.noop:this.handleChange,onStateChange:this.handleStateChange,itemToString:function(e){return e?e[d]:""}},function(t){var d,p=t.isOpen;return u.default.createElement("div",{tabIndex:f?-1:0,onKeyPress:e.handleKeyPress,onClick:e.toggle,onFocus:e.onFocus,onBlur:e.onBlur,className:n("Select",(d={},d["Select--multi"]=l,d["Select--inline"]=i,d["Select--searchable"]=a,d["is-opened"]=p,d["is-focused"]=e.state.isFocused,d["is-disabled"]=f,d),o)},u.default.createElement("div",{className:n("Select-valueWrap")},e.renderValue(t)),c&&!f&&s&&s.length?u.default.createElement("a",{onClick:e.clearValue,className:n("Select-clear")},u.default.createElement(h.Icon,{icon:"close",className:"icon"})):null,r?u.default.createElement(O.default,{show:!0,icon:"reload",spinnerClassName:n("Select-spinner")}):null,u.default.createElement("span",{className:n("Select-arrow")},u.default.createElement(h.Icon,{icon:"caret",className:"icon"})),p?e.renderOuter(t):null)})},t.defaultProps={multiple:!1,clearable:!0,creatable:!1,createBtnLabel:"新增选项",searchPromptText:"输入内容进行检索",loadingPlaceholder:"加载中..",noResultsText:"未找到任何结果",clearAllText:"移除所有",clearValueText:"移除",placeholder:"请选择",valueField:"value",labelField:"label",inline:!1,disabled:!1,checkAll:!1,checkAllLabel:"全选",defaultCheckAll:!1,overlayPlacement:"auto"},t}(u.default.Component);t.Select=A,t.default=C.themeable(S.localeable(r.uncontrollable(A,{value:"onChange"})))}); -;/*!src/store/formItem.ts*/ -amis.define("4ad5d54",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),i=e("943464a"),o=e("3fbfd93"),r=e("6a2dbb7"),l=n.__importDefault(e("node_modules/lodash/findIndex")),s=e("9a80175"),u=e("9a80175"),d=e("d57879c"),f=n.__importDefault(e("node_modules/lodash/find")),p=e("398dbab"),c=a.types.model("ErrorDetail",{msg:"",tag:""});t.FormItemStore=a.types.model("FormItemStore",{identifier:a.types.identifier,isFocused:!1,type:"",unique:!1,loading:!1,required:!1,rules:a.types.optional(a.types.frozen(),{}),messages:a.types.optional(a.types.frozen(),{}),errorData:a.types.optional(a.types.array(c),[]),name:a.types.string,id:"",unsetValueOnInvisible:!1,validated:!1,validating:!1,multiple:!1,delimiter:",",valueField:"value",labelField:"label",joinValues:!0,extractValue:!1,options:a.types.optional(a.types.array(a.types.frozen()),[]),expressionsInOptions:!1,selectedOptions:a.types.optional(a.types.frozen(),[]),filteredOptions:a.types.optional(a.types.frozen(),[]),dialogSchema:a.types.frozen(),dialogOpen:!1,dialogData:a.types.frozen()}).views(function(e){function t(){return a.hasParent(e,2)?a.getParent(e,2):null}function n(){return t()?t().getValueByName(e.name):void 0}function i(){return e.selectedOptions.length?e.selectedOptions[e.selectedOptions.length-1].value:""}function o(){return e.errorData.map(function(e){return e.msg})}return{get form(){return t()},get value(){return n()},get prinstine(){return a.getParent(e,2).getPristineValueByName(e.name)},get errors(){return o()},get valid(){var e=o();return!(e&&e.length)},get lastSelectValue(){return i()},getSelectedOptions:function(t){if(void 0===t&&(t=n()),"undefined"==typeof t)return[];var a=Array.isArray(t)?t:"string"==typeof t?t.split(e.delimiter||","):[t],i=a.map(function(t){return t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t}),o=[];return i.forEach(function(t,n){var i,r,l=s.findTree(e.filteredOptions,d.optionValueCompare(t,e.valueField||"value"));if(l)o.push(l);else{var u=a&&a[n]||t;!u||"string"!=typeof u&&"number"!=typeof u?u&&e.extractValue&&(r={},r[e.valueField||"value"]=t,r[e.labelField||"label"]="UnKnown",r.__unmatched=!0,u=r):(i={},i[e.valueField||"value"]=t,i[e.labelField||"label"]=t,i.__unmatched=!0,u=i),u&&o.push(u)}}),o},get __(){return a.isAlive(e)&&a.getRoot(e)&&"RendererStore"===a.getRoot(e).storeType?a.getRoot(e).__:function(e){return e}}}}).actions(function(e){function t(t){var a=t.required,o=t.unique,r=t.value,l=t.rules,u=t.messages,d=t.delimiter,f=t.multiple,p=t.valueField,c=t.labelField,v=t.joinValues,g=t.extractValue,m=t.type,y=t.id;"string"==typeof l&&(l=i.str2rules(l)),"undefined"!=typeof m&&(e.type=m),"undefined"!=typeof y&&(e.id=y),"undefined"!=typeof u&&(e.messages=u),"undefined"!=typeof a&&(e.required=!!a),"undefined"!=typeof o&&(e.unique=!!o),"undefined"!=typeof f&&(e.multiple=!!f),"undefined"!=typeof v&&(e.joinValues=!!v),"undefined"!=typeof g&&(e.extractValue=!!g),"undefined"!=typeof d&&(e.delimiter=d||","),"undefined"!=typeof p&&(e.valueField=p||"value"),"undefined"!=typeof c&&(e.labelField=c||"label"),l=l||{},l=n.__assign(n.__assign({},l),{isRequired:e.required}),s.isObjectShallowModified(l,e.rules)&&(e.rules=l,b("bultin"),e.validated=!1),void 0!==r&&void 0===e.value&&x.setValueByName(e.name,r,!0)}function c(){e.isFocused=!0}function v(){e.isFocused=!1}function g(t,n){void 0===n&&(n=!1),"undefined"==typeof t||"__undefined"===t?e.form.deleteValueByName(e.name):e.form.setValueByName(e.name,t,n)}function m(e,t){void 0===t&&(t="bultin"),b(),y(e,t)}function y(t,n){void 0===n&&(n="bultin");var a=Array.isArray(t)?t:[t];a.forEach(function(t){return e.errorData.push({msg:t,tag:n})})}function b(t){if(t){var n=e.errorData.filter(function(e){return e.tag!==t});e.errorData.replace(n)}else e.errorData.clear()}function _(t){if(Array.isArray(t)){t=t.filter(function(e){return e});var n=e.options.concat();t.length?e.options.replace(t):e.options.clear(),h(n)}}function h(t){var a;if(!e.options.length&&"undefined"==typeof e.value)return e.selectedOptions=[],void(e.filteredOptions=[]);var i=e.form,p=e.value,c=Array.isArray(p)?p.map(function(t){return t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t}):"string"==typeof p?p.split(e.delimiter||","):void 0===p?[]:[p&&p.hasOwnProperty(e.valueField||"value")?p[e.valueField||"value"]:p];p&&p.hasOwnProperty(e.labelField||"label")&&(c[0]=(a={},a[e.labelField||"label"]=p[e.labelField||"label"],a[e.valueField||"value"]=p[e.valueField||"value"],a));var v=!1,g=e.options.filter(function(e){return v||!e.visibleOn&&!e.hiddenOn||(v=!0),e.visibleOn?r.evalExpression(e.visibleOn,i.data)!==!1:e.hiddenOn?r.evalExpression(e.hiddenOn,i.data)!==!0:e.visible!==!1||e.hidden!==!0}).map(function(t,a){var o=r.evalExpression(t.disabledOn,i.data),l=t.disabledOn?e.filteredOptions.length>a&&e.filteredOptions[a].disabled===o?e.filteredOptions[a]:n.__assign(n.__assign({},t),{disabled:o}):t;return l});e.expressionsInOptions=v;var m=u.flattenTree(g),y=[];c.forEach(function(n,a){var i,o,r=l.default(m,d.optionValueCompare(n,e.valueField||"value"));if(~r)y.push(m[r]);else{var s=p&&p[a]||n;if(!s||"string"!=typeof s&&"number"!=typeof s)s&&e.extractValue&&(o={},o[e.valueField||"value"]=n,o[e.labelField||"label"]="UnKnown",o.__unmatched=!0,s=o);else{i={},i[e.valueField||"value"]=n,i[e.labelField||"label"]=n,i.__unmatched=!0,s=i;var u=t&&f.default(t,d.optionValueCompare(n,e.valueField||"value"));u&&(s[e.labelField||"label"]=u[e.labelField||"label"])}s&&y.push(s)}});var b=i.parentStore;if(b&&b.storeType===o.ComboStore.name){var _=b,h=_.uniques.get(e.name),O=[];h&&h.items.forEach(function(t){e!==t&&O.push.apply(O,t.selectedOptions.map(function(e){return e&&e.value}))}),g.length&&(g=g.filter(function(e){return!~O.indexOf(e.value)}))}s.isArrayChildrenModified(e.selectedOptions,y)&&(e.selectedOptions=y),s.isArrayChildrenModified(e.filteredOptions,g)&&(e.filteredOptions=g)}function O(t){e.loading=t}function F(e){V=e}function j(){if(e.validated=!1,V&&"ComboStore"===V.storeType){var t=V;t.forms.forEach(function(e){return e.reset()})}b()}function w(t,n,a){void 0===n&&(n=x.data),e.dialogSchema=t,e.dialogData=n,e.dialogOpen=!0,a&&D.set(e.dialogData,a)}function S(t){var n=D.get(e.dialogData);e.dialogOpen=!1,n&&(D.delete(e.dialogData),setTimeout(function(){return n(t)},200))}var V,x=e.form,D=new p.SimpleMap,T=a.flow(function(t){var a,o;return n.__generator(this,function(n){switch(n.label){case 0:return e.validating?[2,e.valid]:(e.validating=!0,b(),t?[4,t()]:[3,2]);case 1:n.sent(),n.label=2;case 2:return y(i.validate(e.value,e.form.data,e.rules,e.messages,e.__)),e.validated=!0,e.unique&&e.form.parentStore&&"ComboStore"===e.form.parentStore.storeType&&(a=e.form.parentStore,o=a.uniques.get(e.name),o.items.some(function(t){return t!==e&&e.value&&t.value===e.value})&&y(e.__("`当前值不唯一`"))),e.validating=!1,[2,e.valid]}})}),E=null,A=a.flow(function(t,i,o,r){var l,s,u,d;return n.__generator(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),E&&(E(),E=null,e.loading=!1),e.loading=!0,[4,a.getRoot(e).fetcher(t,i,n.__assign({autoAppend:!1,cancelExecutor:function(e){return E=e}},o))];case 1:return l=f.sent(),E=null,s=null,l.ok?s=l:(r!==!1&&m(e.__("加载选项失败,原因:{{reason}}",{reason:l.msg||o&&o.errorMessage})),a.getRoot(e).notify("error",e.errors.join(""),void 0!==l.msgTimeout?{closeButton:!0,timeout:l.msgTimeout}:void 0)),e.loading=!1,[2,s];case 2:return u=f.sent(),d=a.getRoot(e),"RendererStore"!==d.storeType?[2]:(e.loading=!1,d.isCancel(u)?[2]:(console.error(u.stack),a.getRoot(e)&&a.getRoot(e).notify("error",u.message),[2]));case 3:return[2]}})}),q=a.flow(function(t,a,i,o,r,l){var s,u,f;return n.__generator(this,function(n){switch(n.label){case 0:return[4,A(t,a,i,l)];case 1:return(s=n.sent())?(b(),e.validated=!1,u=(null===(f=s.data)||void 0===f?void 0:f.options)||s.data.items||s.data.rows||s.data||[],u=d.normalizeOptions(u),_(u),s.data&&"undefined"!=typeof s.data.value?r&&r(s.data.value,!1,!0):o&&e.selectedOptions.some(function(e){return e.__unmatched})&&r&&r("",!1,!0),[2,s]):[2]}})}),R=a.flow(function(t,a,i,o){var r,l,u,d;return n.__generator(this,function(f){switch(f.label){case 0:return(r=s.findTreeIndex(e.options,function(e){return e===t}))?(_(s.spliceTree(e.options,r,1,n.__assign(n.__assign({},t),{loading:!0}))),[4,A(a,i,o,!1)]):[2];case 1:return(l=f.sent())?(u=(null===(d=l.data)||void 0===d?void 0:d.options)||l.data.items||l.data.rows||l.data||[],_(s.spliceTree(e.options,r,1,n.__assign(n.__assign({},t),{loading:!1,loaded:!0,children:u}))),[2,l]):(_(s.spliceTree(e.options,r,1,n.__assign(n.__assign({},t),{loading:!1,error:!0}))),[2])}})});return{focus:c,blur:v,config:t,changeValue:g,validate:T,setError:m,addError:y,clearError:b,setOptions:_,loadOptions:q,deferLoadOptions:R,syncOptions:h,setLoading:O,setSubStore:F,reset:j,openDialog:w,closeDialog:S}})}); -;/*!src/store/form.ts*/ -amis.define("956950c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),n=r.__importDefault(e("node_modules/lodash/debounce")),i=e("57d76d7"),s=e("4ad5d54");t.IFormItemStore=s.IFormItemStore;var o=e("bc87d08"),c=e("9a80175"),u=r.__importDefault(e("node_modules/lodash/isEqual"));t.FormStore=i.ServiceStore.named("FormStore").props({inited:!1,validated:!1,submited:!1,submiting:!1,validating:!1,items:a.types.optional(a.types.array(a.types.late(function(){return s.FormItemStore})),[]),canAccessSuperData:!0,persistData:!1}).views(function(e){return{get loading(){return e.saving||e.fetching},get errors(){var t={};return e.items.forEach(function(e){e.valid||(t[e.name]=Array.isArray(t[e.name])?t[e.name].concat(e.errors):e.errors.concat())}),t},getValueByName:function(t){return c.getVariable(e.data,t,e.canAccessSuperData)},getPristineValueByName:function(t){return c.getVariable(e.pristine,t)},getItemById:function(t){return e.items.find(function(e){return e.id===t})},getItemByName:function(t){return e.items.find(function(e){return e.name===t})},getItemsByName:function(t){return e.items.filter(function(e){return e.name===t})},get valid(){return e.items.every(function(e){return e.valid})},get isPristine(){return u.default(e.pristine,e.data)}}}).actions(function(e){function t(t,r,a){e.updateData(t,r,a),h()}function i(t,a,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var s=c.getVariable(e.data,t,!1),o=e.data,u=c.cloneObject(e.data);if(a!==s)if(o.__prev){var l=c.cloneObject(o.__prev);c.setVariable(l,t,s),Object.defineProperty(u,"__prev",{value:l,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(u,"__prev",{value:r.__assign({},o),enumerable:!1,configurable:!1,writable:!1});else if(!i)return;if(c.setVariable(u,t,a),n){var f=c.cloneObject(e.pristine);c.setVariable(f,t,a),e.pristine=f}u.__pristine||Object.defineProperty(u,"__pristine",{value:e.pristine,enumerable:!1,configurable:!1,writable:!1}),e.data=u,e.persistData&&w(),h()}function s(t){var a=e.data,n=c.cloneObject(e.data);if(a.__prev){var i=c.cloneObject(a.__prev);c.setVariable(i,t,c.getVariable(a,t)),Object.defineProperty(n,"__prev",{value:i,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(n,"__prev",{value:r.__assign({},a),enumerable:!1,configurable:!1,writable:!1});c.deleteVariable(n,t),e.data=n}function u(){var t=c.mapObject(e.data,function(e){return"string"==typeof e?e.trim():e});e.updateData(t)}function l(){var t=e.items.concat();t.forEach(function(e){return e.reset()})}function f(t,r){void 0===r&&(r=!0),r&&(e.data=e.pristine),e.validated=!1,e.submited=!1,e.items.forEach(function(e){return e.reset()}),t&&t(e.data)}function d(t,r){var a;return e.items.push({identifier:c.guid(),name:t}),a=e.items[e.items.length-1],i(a.name,a.value,!1,!1),r&&a.config(r),a}function m(e){a.detach(e)}function g(){if(e.parentStore&&"ComboStore"===e.parentStore.storeType){var t=e.parentStore;e.items.forEach(function(e){e.unique&&t.unBindUniuqueItem(e)}),t.removeForm(e),t.forms.forEach(function(e){return e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}e.items.forEach(function(e){return a.detach(e)})}function b(t){void 0===t&&(t=!0),e.canAccessSuperData=t}function p(t){e.inited=t}function v(){e.persistData=!0;var t=localStorage.getItem(location.pathname+e.path);t&&e.updateData(JSON.parse(t))}function _(){localStorage.removeItem(location.pathname+e.path)}var h=n.default(function(){return e.items.forEach(function(e){return e.syncOptions()})},250,{trailing:!0,leading:!1}),y=a.flow(function(n,i,s){var u,l,f,u,d,m;return void 0===s&&(s={}),r.__generator(this,function(g){switch(g.label){case 0:return g.trys.push([0,9,,10]),s=r.__assign({method:"post"},s),s&&s.beforeSend?(u=s.beforeSend(i),u&&u.then?[4,u]:[3,2]):[3,3];case 1:u=g.sent(),g.label=2;case 2:if(u===!1)return[2];g.label=3;case 3:return e.markSaving(!0),[4,a.getRoot(e).fetcher(n,i,s)];case 4:if(l=g.sent(),(!c.isEmpty(l.data)||l.ok)&&(e.updatedAt=Date.now(),t(l.data,{__saved:Date.now()},!!n.replaceData)),l.ok)return[3,5];throw 422===l.status&&l.errors?(f=l.errors,Object.keys(f).forEach(function(t){var r=e.getItemById(t);r?r.setError(f[t]):e.getItemsByName(t).forEach(function(e){return e.setError(f[t])})}),e.updateMessage(l.msg||s&&s.errorMessage||e.__("验证错误"),!0)):e.updateMessage(l.msg||s&&s.errorMessage,!0),new o.ServerError(e.msg,l);case 5:return s&&s.onSuccess?(u=s.onSuccess(l),u&&u.then?[4,u]:[3,7]):[3,7];case 6:g.sent(),g.label=7;case 7:return e.markSaving(!1),e.updateMessage(l.msg||s&&s.successMessage),e.msg&&a.getRoot(e).notify("success",e.msg),[2,l.data];case 8:return[3,10];case 9:if(d=g.sent(),"RendererStore"!==a.getRoot(e).storeType)return[2];throw e.markSaving(!1),"ServerError"===d.type?(m=d.response,a.getRoot(e).notify("error",d.message,void 0!==m.msgTimeout?{closeButton:!0,timeout:m.msgTimeout}:void 0)):a.getRoot(e).notify("error",d.message),d;case 10:return[2]}})}),S=a.flow(function(t,n,i){var s,o,u,l;return r.__generator(this,function(r){switch(r.label){case 0:e.submited=!0,e.submiting=!0,r.label=1;case 1:return r.trys.push([1,,5,6]),[4,O(n)];case 2:if(s=r.sent(),!s)throw o=null!==i&&void 0!==i?i:e.__("表单验证失败,请仔细检查"),o&&a.getRoot(e).notify("error",o),new Error(e.__("验证失败"));return t?(u=c.difference(e.data,e.pristine),[4,t(c.createObject(c.createObject(e.data.__super,{diff:u,__diff:u,pristine:e.pristine}),e.data))]):[3,4];case 3:return l=r.sent(),[2,null!==l&&void 0!==l?l:e.data];case 4:return[2,e.data];case 5:return e.submiting=!1,[7];case 6:return[2]}})}),O=a.flow(function(t,a){var n,i,s,o,i,s;return r.__generator(this,function(r){switch(r.label){case 0:e.validating=!0,e.validated=!0,n=e.items.concat(),i=0,s=n.length,r.label=1;case 1:return s>i?(o=n[i],!o.validated||o.unique||a?[4,o.validate()]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:if(!t||!t.length)return[3,8];i=0,s=t.length,r.label=5;case 5:return s>i?[4,t[i]()]:[3,8];case 6:r.sent(),r.label=7;case 7:return i++,[3,5];case 8:return e.validating=!1,[2,e.valid]}})}),j=a.flow(function(t){var a,n,i,s,o,c,u;return r.__generator(this,function(r){switch(r.label){case 0:e.validating=!0,a=e.items.concat(),n=[],i=0,s=a.length,r.label=1;case 1:return s>i?(o=a[i],~t.indexOf(o.name)?(u=(c=n).push,[4,o.validate()]):[3,3]):[3,4];case 2:u.apply(c,[r.sent()]),r.label=3;case 3:return i++,[3,1];case 4:return e.validating=!1,[2,n.every(function(e){return e})]}})}),w=n.default(function(){return localStorage.setItem(location.pathname+e.path,JSON.stringify(e.data))},250,{trailing:!0,leading:!1});return{setInited:p,setValues:t,setValueByName:i,trimValues:u,submit:S,validate:O,validateFields:j,clearErrors:l,saveRemote:y,reset:f,registryItem:d,unRegistryItem:m,beforeDetach:g,syncOptions:h,setCanAccessSuperData:b,deleteValueByName:s,getPersistData:v,setPersistData:w,clearPersistData:_,beforeDestroy:function(){h.cancel(),w.cancel()}}})}); -;/*!src/store/combo.ts*/ -amis.define("3fbfd93",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),i=e("7820b08"),r=e("4ad5d54"),u=e("956950c");n.UniqueGroup=t.types.model("UniqueGroup",{name:t.types.identifier,items:t.types.array(t.types.reference(t.types.late(function(){return r.FormItemStore})))}),n.ComboStore=i.iRendererStore.named("ComboStore").props({uniques:t.types.map(n.UniqueGroup),forms:t.types.array(t.types.reference(t.types.late(function(){return u.FormStore}))),minLength:0,maxLength:0,length:0,activeKey:0}).views(function(e){return{get addable(){if(e.maxLength&&e.length>=e.maxLength)return!1;if(e.uniques.size){var n=!1;if(e.uniques.forEach(function(e){if(!n&&e.items.length){var t=e.items[0].options.length,i=e.items.reduce(function(e,n){return e+n.selectedOptions.length},0);n=t&&i>=t?!0:!1}}),n)return!1}return!0},get removable(){return e.minLength&&e.minLength>=e.length?!1:!0}}}).actions(function(e){function n(n){"undefined"!=typeof n.minLength&&(e.minLength=parseInt(n.minLength,10)),"undefined"!=typeof n.maxLength&&(e.maxLength=parseInt(n.maxLength,10)),"undefined"!=typeof n.length&&(e.length=n.length)}function t(n){e.uniques.has(n.name)||e.uniques.put({name:n.name});var t=e.uniques.get(n.name);t.items.push(n)}function i(n){var t=e.uniques.get(n.name);t.items.remove(n),t.items.length||e.uniques.delete(n.name)}function r(n){e.forms.push(n)}function u(n){e.forms.includes(n)&&e.forms.remove(n)}function o(n){e.activeKey=n}return{config:n,setActiveKey:o,bindUniuqueItem:t,unBindUniuqueItem:i,addForm:r,removeForm:u}})}); -;/*!src/store/crud.ts*/ -amis.define("7b0821e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),s=e("57d76d7"),o=e("9a80175"),n=a.__importDefault(e("node_modules/lodash/pick")),i=e("f2e345e"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ServerError",t}return a.__extends(t,e),t}(Error);t.CRUDStore=s.ServiceStore.named("CRUDStore").props({pristineQuery:r.types.optional(r.types.frozen(),{}),query:r.types.optional(r.types.frozen(),{}),prevPage:1,page:1,perPage:10,total:0,mode:"normal",hasNext:!1,selectedAction:r.types.frozen(),items:r.types.optional(r.types.array(r.types.frozen()),[]),selectedItems:r.types.optional(r.types.array(r.types.frozen()),[]),unSelectedItems:r.types.optional(r.types.array(r.types.frozen()),[]),filterTogggable:!1,filterVisible:!0,hasInnerModalOpen:!1}).views(function(e){return{get lastPage(){return Math.max(Math.ceil(e.total/(e.perPage<1?10:e.perPage)),1)},get filterData(){return o.createObject(e.data,a.__assign({},e.query))},get mergedData(){return o.extendObject(e.data,a.__assign(a.__assign(a.__assign({},e.query),e.data),{selectedItems:e.selectedItems,unSelectedItems:e.unSelectedItems}))},get hasModalOpened(){return e.dialogOpen||e.drawerOpen||e.hasInnerModalOpen},get selectedItemsAsArray(){return e.selectedItems.concat()}}}).actions(function(e){function t(){e.pristineQuery=e.query}function s(t,r,s,n,i){void 0===s&&(s="page"),void 0===n&&(n="perPage"),void 0===i&&(i=!1);var c=e.query;e.query=i?a.__assign({},t):a.__assign(a.__assign({},e.query),t),e.query[s||"page"]&&(e.page=parseInt(e.query[s||"page"],10)),e.query[n||"perPage"]&&(e.perPage=parseInt(e.query[n||"perPage"],10)),r&&o.isObjectShallowModified(c,e.query,!1)&&setTimeout(r.bind(null,"?"+o.qsstringify(e.query)),4)}function u(t,a){e.page=t,a&&(e.perPage=a)}function l(t){e.selectedAction=t}var g=null,d=r.flow(function(t,c,u){var l,d,p,m,y,f,_,b,v,h,w,I,P,l,q,D,d,O,A,j;return void 0===u&&(u={}),a.__generator(this,function(M){switch(M.label){case 0:return M.trys.push([0,2,,3]),!u.forceReload&&u.loadDataOnce&&e.total?(l=u.source?i.resolveVariableAndFilter(u.source,o.createObject(e.mergedData,{items:e.data.itemsRaw,rows:e.data.itemsRaw}),"| raw"):e.items.concat(),e.query.orderBy&&(d=/desc/i.test(e.query.orderDir)?-1:1,l=o.sortArray(l,e.query.orderBy,d)),p=a.__assign(a.__assign({},e.data),{total:l.length,items:l.slice((e.page-1)*e.perPage,e.page*e.perPage)}),e.total=parseInt(p.total||p.count,10)||0,e.reInitData(p),[2]):(g&&(g(),g=null,e.fetching=!1),u.silent||e.markFetching(!0),m=o.createObject(e.data,a.__assign(a.__assign(a.__assign({},e.query),(j={},j[u.pageField||"page"]=e.page,j[u.perPageField||"perPage"]=e.perPage,j)),c)),u.loadDataOnce&&delete m[u.perPageField||"perPage"],[4,r.getRoot(e).fetcher(t,m,a.__assign(a.__assign({},u),{cancelExecutor:function(e){return g=e}}))]);case 1:if(y=M.sent(),g=null,y.ok){if(!y.data)throw new Error(e.__("返回数据格式不正确,payload.data 没有数据"));if(e.updatedAt=Date.now(),f=y.data,Array.isArray(f)&&(f={items:f}),_=f.total,b=f.count,v=f.page,h=f.hasNext,w=f.items,I=f.rows,P=a.__rest(f,["total","count","page","hasNext","items","rows"]),l=void 0,l=u.source?i.resolveVariableAndFilter(u.source,o.createObject(e.filterData,f),"| raw"):f.items||f.rows,!Array.isArray(l))throw new Error(e.__("返回数据格式不正确,payload.data.items 必须是数组"));l.map(function(e){return"string"==typeof e?{text:e}:e}),q=[],q=u.loadDataMode&&Array.isArray(e.data.items)?e.data.items.concat(l):l,D=a.__assign(a.__assign(a.__assign({},t.replaceData?{}:e.pristine),{items:q,count:b,total:_}),P),u.loadDataOnce&&(D.itemsRaw=w||I,e.query.orderBy&&(d=/desc/i.test(e.query.orderDir)?-1:1,q=o.sortArray(q,e.query.orderBy,d)),D.items=q.slice((e.page-1)*e.perPage,e.page*e.perPage),D.count=D.total=q.length),e.items.replace(q),e.reInitData(D,!!t.replaceData),u.syncResponse2Query!==!1&&s(n.default(P,Object.keys(e.query)),void 0,u.pageField||"page",u.perPageField||"perPage"),e.total=parseInt(D.total||D.count,10)||0,"undefined"!=typeof v&&(e.page=parseInt(v,10)),"undefined"!=typeof h&&(e.mode="simple",e.total=0,e.hasNext=!!h),e.updateMessage(y.msg||u.successMessage),u&&u.successMessage&&r.getRoot(e).notify("success",e.msg)}else e.updateMessage(y.msg||u.errorMessage||e.__("获取失败"),!0),r.getRoot(e).notify("error",y.msg,void 0!==y.msgTimeout?{closeButton:!0,timeout:y.msgTimeout}:void 0);return e.markFetching(!1),[2,y];case 2:return O=M.sent(),A=r.getRoot(e),r.isAlive(A)&&"RendererStore"===A.storeType?(e.markFetching(!1),A.isCancel(O)?[2]:(console.error(O.stack),A.notify("error",O.message),[2])):[2];case 3:return[2]}})}),p=r.flow(function(t,s,n){var i,u;return void 0===n&&(n={}),a.__generator(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),n=a.__assign({method:"post"},n),e.markSaving(!0),[4,r.getRoot(e).fetcher(t,s,n)];case 1:if(i=l.sent(),e.markSaving(!1),(!o.isEmpty(i.data)||i.ok)&&(e.updateData(i.data,{__saved:Date.now()},!!t&&t.replaceData),e.updatedAt=Date.now()),!i.ok)throw e.updateMessage(i.msg||n.errorMessage||e.__("保存失败"),!0),r.getRoot(e).notify("error",e.msg,void 0!==i.msgTimeout?{closeButton:!0,timeout:i.msgTimeout}:void 0),new c(e.msg);return e.updateMessage(i.msg||n.successMessage),e.msg&&r.getRoot(e).notify("success",e.msg),[2,i.data];case 2:throw u=l.sent(),e.markSaving(!1),"ServerError"!==u.type&&r.getRoot(e)&&r.getRoot(e).notify("error",u.message),u;case 3:return[2]}})}),m=function(t,a){e.filterTogggable=t,void 0!==a&&(e.filterVisible=a)},y=function(t){e.filterVisible=t},f=function(t){e.selectedItems.replace(t)},_=function(t){e.unSelectedItems.replace(t)},b=function(t){e.hasInnerModalOpen=t},v=function(t,r){var s=i.resolveVariableAndFilter(r,t,"| raw");if(Array.isArray(s)){var o=a.__assign(a.__assign({},e.pristine),{items:s,count:0,total:0});e.items.replace(s),e.reInitData(o)}};return{setPristineQuery:t,updateQuery:s,fetchInitData:d,changePage:u,selectAction:l,saveRemote:p,setFilterTogglable:m,setFilterVisible:y,setSelectedItems:f,setUnSelectedItems:_,setInnerModalOpened:b,initFromScope:v}})}); -;/*!src/store/table.ts*/ -amis.define("4fbfbc8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),o=e("7820b08"),i=e("f2e345e"),a=n.__importDefault(e("node_modules/lodash/isEqual")),l=n.__importDefault(e("node_modules/lodash/find")),c=e("9a80175"),s=e("6a2dbb7");t.Column=r.types.model("Column",{label:r.types.optional(r.types.frozen(),void 0),type:r.types.string,name:r.types.maybe(r.types.string),value:r.types.frozen(),groupName:"",toggled:!1,toggable:!0,expandable:!1,isPrimary:!1,searchable:r.types.maybe(r.types.frozen()),sortable:!1,filterable:r.types.optional(r.types.frozen(),void 0),fixed:"",index:0,rawIndex:0,breakpoint:r.types.optional(r.types.frozen(),void 0),pristine:r.types.optional(r.types.frozen(),void 0),remark:r.types.optional(r.types.frozen(),void 0),className:""}).actions(function(e){return{toggleToggle:function(){e.toggled=!e.toggled;var t=r.getParent(e,2);t.activeToggaleColumns.length||(e.toggled=!0),t.persistSaveToggledColumns()},setToggled:function(t){e.toggled=t}}}),t.Row=r.types.model("Row",{id:r.types.identifier,parentId:"",key:r.types.string,pristine:r.types.frozen({}),data:r.types.frozen({}),rowSpans:r.types.frozen({}),index:r.types.number,newIndex:r.types.number,expandable:!1,isHover:!1,children:r.types.optional(r.types.array(r.types.late(function(){return t.Row})),[]),depth:r.types.number}).views(function(e){return{get checked(){return r.getParent(e,2*e.depth).isSelected(e)},get modified(){return e.data?Object.keys(e.data).some(function(t){return!a.default(e.data[t],e.pristine[t])}):!1},getDataWithModifiedChilden:function(){var t=n.__assign({},e.data);return t.children&&e.children&&(t.children=e.children.map(function(e){return e.getDataWithModifiedChilden()})),t},get expanded(){return r.getParent(e,2*e.depth).isExpanded(e)},get moved(){return e.index!==e.newIndex},get locals(){return c.createObject(c.extendObject(r.getParent(e,2*e.depth).data,{index:e.index}),e.data)},get checkable(){var t=r.getParent(e,2*e.depth);return t&&t.itemCheckableOn?s.evalExpression(t.itemCheckableOn,e.locals):!0},get draggable(){var t=r.getParent(e,2*e.depth);return t&&t.itemDraggableOn?s.evalExpression(t.itemDraggableOn,e.locals):!0}}}).actions(function(e){return{toggle:function(){r.getParent(e,2*e.depth).toggle(e)},toggleExpanded:function(){r.getParent(e,2*e.depth).toggleExpanded(e)},change:function(t,n){e.data=c.immutableExtends(e.data,t),n&&(e.pristine=e.data)},reset:function(){e.newIndex=e.index,e.data=e.pristine},setIsHover:function(t){e.isHover=t}}}),t.TableStore=o.iRendererStore.named("TableStore").props({columns:r.types.array(t.Column),rows:r.types.array(t.Row),selectedRows:r.types.array(r.types.reference(t.Row)),expandedRows:r.types.array(r.types.reference(t.Row)),primaryField:"id",orderBy:"",orderDir:r.types.optional(r.types.union(r.types.literal("asc"),r.types.literal("desc")),"asc"),draggable:!1,dragging:!1,selectable:!1,multiple:!0,footable:r.types.frozen(),expandConfig:r.types.frozen(),isNested:!1,columnsTogglable:r.types.optional(r.types.union(r.types.boolean,r.types.literal("auto")),"auto"),itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,combineNum:0}).views(function(e){function t(){return e.columns.filter(function(t){return c.isVisible(t.pristine,e.data)&&("__checkme"===t.type?e.selectable&&!e.dragging&&!e.hideCheckToggler&&e.rows.length:"__dragme"===t.type?e.dragging:"__expandme"===t.type?(n().length||e.isNested)&&!e.dragging:!(!t.toggled&&t.toggable||e.footable&&t.breakpoint&&c.isBreakpoint(t.breakpoint)))})}function n(){return e.columns.filter(function(t){return"__checkme"===t.type||"__dragme"===t.type||"__expandme"===t.type?!1:(t.toggled||!t.toggable)&&e.footable&&t.breakpoint&&c.isBreakpoint(t.breakpoint)})}function r(){if(e.dragging)return[];var n=t().filter(function(e){return"left"===e.fixed});return n.length&&(n=t().filter(function(e){return"left"===e.fixed||/^__/.test(e.type)})),n}function o(){return e.dragging?[]:t().filter(function(e){return"right"===e.fixed})}function i(t){return!!~e.selectedRows.indexOf(t)}function a(t){return!!~e.expandedRows.indexOf(t)}function l(){return"auto"===e.columnsTogglable?e.columns.filter(function(e){return!/^__/.test(e.type)}).length>5:e.columnsTogglable}function s(){return e.columns.filter(function(t){return c.isVisible(t.pristine,e.data)&&t.toggable!==!1})}function d(){return s().filter(function(e){return e.toggled})}function u(t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),t=t&&t.length?t:e.rows,t.forEach(function(e){e.children&&e.children.length&&u(e.children,n);var t=c.difference(e.data,e.pristine),r=Object.keys(t).length;r&&n.push(e)}),n}function g(){return u().length}function p(){return c.flattenTree(e.rows).filter(function(e){return e.moved})}function f(){return p().length}function b(){return e.rows.findIndex(function(e){return e.isHover})}function h(){return e.rows.filter(function(e){return!e.checked})}function m(t){return c.createObject(t,{items:e.rows.map(function(e){return e.data}),selectedItems:e.selectedRows.map(function(e){return e.data}),unSelectedItems:h().map(function(e){return e.data})})}function y(){var e=t(),n=e.length;if(!n)return[];var r=[{label:e[0].groupName,colSpan:1,index:e[0].index,has:[e[0]]}];"__checkme"===e[0].type&&e[1]&&(r[0].label=e[1].groupName);for(var o=1;n>o;o++){var i=r[r.length-1],a=e[o];a.groupName===i.label?(i.colSpan++,i.has.push(a)):r.push({label:a.groupName,colSpan:1,index:a.index,has:[a]})}return 1!==r.length||r[0].label||r.pop(),r}return{get filteredColumns(){return t()},get footableColumns(){return n()},get leftFixedColumns(){return r()},get rightFixedColumns(){return o()},get toggableColumns(){return s()},get activeToggaleColumns(){return d()},get someChecked(){return!!e.selectedRows.length},get allChecked(){return!(e.selectedRows.length!==e.checkableRows.length||!e.checkableRows.length)},isSelected:i,get allExpanded(){return!(e.expandedRows.length!==e.rows.length||!e.rows.length)},isExpanded:a,get toggable(){return l()},get modified(){return g()},get modifiedRows(){return u()},get unSelectedRows(){return h()},get checkableRows(){return e.rows.filter(function(e){return e.checkable})},get moved(){return f()},get movedRows(){return p()},get hoverIndex(){return b()},getData:m,get columnGroup(){return y()},getRowById:function(t){return c.findTree(e.rows,function(e){return e.id===t})}}}).actions(function(e){function t(t){if(void 0!==t.primaryField&&(e.primaryField=t.primaryField),void 0!==t.selectable&&(e.selectable=t.selectable),void 0!==t.columnsTogglable&&(e.columnsTogglable=t.columnsTogglable),void 0!==t.draggable&&(e.draggable=t.draggable),"string"==typeof t.orderBy&&x(t.orderBy,"desc"===t.orderDir?"desc":"asc"),void 0!==t.multiple&&(e.multiple=t.multiple),void 0!==t.footable&&(e.footable=t.footable),void 0!==t.expandConfig&&(e.expandConfig=t.expandConfig),void 0!==t.itemCheckableOn&&(e.itemCheckableOn=t.itemCheckableOn),void 0!==t.itemDraggableOn&&(e.itemDraggableOn=t.itemDraggableOn),void 0!==t.hideCheckToggler&&(e.hideCheckToggler=!!t.hideCheckToggler),void 0!==t.combineNum&&(e.combineNum=parseInt(t.combineNum,10)||0),t.columns&&Array.isArray(t.columns)){var r=t.columns.concat();r.length||r.push({type:"text",label:"空"}),r.unshift({type:"__expandme",toggable:!1,className:"Table-expandCell"}),r.unshift({type:"__checkme",fixed:"left",toggable:!1,className:"Table-checkCell"}),r.unshift({type:"__dragme",toggable:!1,className:"Table-dragCell"}),r=r.map(function(e,t){return n.__assign(n.__assign({},e),{index:t,rawIndex:t-3,type:e.type||"plain",pristine:e,toggled:e.toggled!==!1,breakpoint:e.breakpoint,isPrimary:3===t})}),e.columns.replace(r)}}function o(e,t){if(!t.length||!e.length)return e;var n=t.shift(),r=0,l=e[r];l.rowSpans[n]=1;for(var c=i.resolveVariable(n,l.data),s=1,d=e.length;d>s;s++){var u=e[s];a.default(i.resolveVariable(n,u.data),c)?(l.rowSpans[n]+=1,u.rowSpans[n]=0):(l.rowSpans[n]>1&&o(e.slice(r,s),t.concat()),r=s,l=u,l.rowSpans[n]=1,c=i.resolveVariable(n,l.data))}return l.rowSpans[n]>1&&t.length&&o(e.slice(r,e.length),t.concat()),e}function s(e,t,n){if(!t.length||!n||!e.length)return e;for(var r=[],i=0;n>i;i++){var a=t[i];if(!a)break;if("__"!==a.type.substring(0,2)){var l=a.name;if(!l)break;r.push(l)}else n++}return o(e,r)}function d(t,n,r,o){return n+=1,t.map(function(t,i){t=c.isObject(t)?t:{item:t};var a=c.guid();return{id:a,parentId:o,key:String(r+"-"+n+"-"+i),depth:n,index:i,newIndex:i,pristine:t,data:t,rowSpans:{},modified:!1,children:t&&Array.isArray(t.children)?d(t.children,n,i,a):[],expandable:!!(t&&Array.isArray(t.children)&&t.children.length||e.footable&&e.footableColumns.length)}})}function u(t,n){e.selectedRows.clear(),e.expandedRows.clear();var r=t.map(function(t,r){var o=n?n(t,r):c.guid();return{id:o,key:String(r+"-1-"+r),depth:1,index:r,newIndex:r,pristine:t,data:t,rowSpans:{},modified:!1,children:t&&Array.isArray(t.children)?d(t.children,1,r,o):[],expandable:!!(t&&Array.isArray(t.children)&&t.children.length||e.footable&&e.footableColumns.length)}});e.combineNum&&(r=s(r,e.columns,e.combineNum)),e.rows.replace(r),e.isNested=e.rows.some(function(e){return e.children.length});var o=e.footable&&e.footable.expand;"first"===o||e.expandConfig&&"first"===e.expandConfig.expand?e.rows.length&&e.expandedRows.push(e.rows[0]):("all"===o&&!e.footable.accordion||e.expandConfig&&"all"===e.expandConfig.expand&&!e.expandConfig.accordion)&&e.expandedRows.replace(e.rows),e.dragging=!1}function g(t,n){e.selectedRows.clear(),e.rows.forEach(function(r){~t.indexOf(r.pristine)?e.selectedRows.push(r):l.default(t,function(e){return e[n||"value"]==r.pristine[n||"value"]})&&e.selectedRows.push(r)})}function p(){e.allChecked?e.selectedRows.clear():e.selectedRows.replace(e.checkableRows)}function f(t){if(t.checkable){var n=e.selectedRows.indexOf(t);e.multiple?~n?e.selectedRows.splice(n,1):e.selectedRows.push(t):~n?e.selectedRows.splice(n,1):e.selectedRows.replace([t])}}function b(){e.selectedRows.clear()}function h(){e.allExpanded?e.expandedRows.clear():e.expandedRows.replace(e.rows)}function m(t){var n=e.expandedRows.indexOf(t);if(~n)e.expandedRows.splice(n,1);else if(e.footable&&e.footable.accordion)e.expandedRows.replace([t]);else if(e.expandConfig&&e.expandConfig.accordion){var r=e.expandedRows.filter(function(e){return e.depth!==t.depth});r.push(t),e.expandedRows.replace(r)}else e.expandedRows.push(t)}function y(t){var n=e.expandedRows.filter(function(e){return e.depth!==t});e.expandedRows.replace(n)}function x(t,n){e.orderBy=t,e.orderDir=n}function w(){e.rows.forEach(function(e){return e.reset()});var t=e.rows.concat();c.eachTree(t,function(e){if(e.children){var t=e.children.concat().sort(function(e,t){return e.index-t.index});t.forEach(function(e){return e.reset()}),e.children.replace(t)}}),t.forEach(function(e){return e.reset()}),t=t.sort(function(e,t){return e.index-t.index}),e.rows.replace(t),e.dragging=!1}function v(){e.dragging=!e.dragging}function j(){e.dragging=!1}function O(t,n,r){if(r=r||e.rows[t],r.parentId){var o=e.getRowById(r.parentId),i=o.children.indexOf(r)-t;n+=i,t+=i;var a=o.children.concat();return a.splice(t,1),a.splice(n,0,r),a.forEach(function(e,t){return e.newIndex=t}),void o.children.replace(a)}var l=e.rows.concat();l.splice(t,1),l.splice(n,0,r),l.forEach(function(e,t){return e.newIndex=t}),e.rows.replace(l)}function R(){var t=location.pathname+e.path+e.toggableColumns.map(function(e){return e.name||e.index}).join("-");localStorage.setItem(t,JSON.stringify(e.activeToggaleColumns.map(function(e){return e.index})))}return{update:t,initRows:u,updateSelected:g,toggleAll:p,toggle:f,toggleExpandAll:h,toggleExpanded:m,collapseAllAtDepth:y,clear:b,setOrderByInfo:x,reset:w,toggleDragging:v,stopDragging:j,exchange:O,persistSaveToggledColumns:R,afterAttach:function(){setTimeout(function(){if(r.isAlive(e)){var t=location.pathname+e.path+e.toggableColumns.map(function(e){return e.name||e.index}).join("-"),n=localStorage.getItem(t);if(n){var o=JSON.parse(n);e.toggableColumns.forEach(function(e){return e.setToggled(!!~o.indexOf(e.index))})}}},200)}}})}); -;/*!src/store/list.ts*/ -amis.define("4e9b495",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),r=e("7820b08"),c=n.__importDefault(e("node_modules/lodash/isEqual")),a=n.__importDefault(e("node_modules/lodash/find")),l=e("9a80175"),s=e("6a2dbb7");t.Item=i.types.model("Item",{id:i.types.identifier,pristine:i.types.frozen(),data:i.types.frozen(),index:i.types.number,newIndex:i.types.number}).views(function(e){return{get checked(){return i.getParent(e,2).isSelected(e)},get modified(){return e.data?Object.keys(e.data).some(function(t){return!c.default(e.data[t],e.pristine[t])}):!1},get moved(){return e.index!==e.newIndex},get locals(){return l.createObject(l.extendObject(i.getParent(e,2).data,{index:e.index}),e.data)},get checkable(){var t=i.getParent(e,2);return t&&t.itemCheckableOn?s.evalExpression(t.itemCheckableOn,e.locals):!0},get draggable(){var t=i.getParent(e,2);return t&&t.itemDraggableOn?s.evalExpression(t.itemDraggableOn,e.locals):!0}}}).actions(function(e){return{toggle:function(){i.getParent(e,2).toggle(e)},change:function(t,n){e.data=l.immutableExtends(e.data,t),n&&(e.pristine=e.data)},reset:function(){e.newIndex=e.index,e.data=e.pristine}}}),t.ListStore=r.iRendererStore.named("ListStore").props({items:i.types.array(t.Item),selectedItems:i.types.array(i.types.reference(t.Item)),primaryField:"id",orderBy:"",orderDir:i.types.optional(i.types.union(i.types.literal("asc"),i.types.literal("desc")),"asc"),draggable:!1,dragging:!1,multiple:!0,selectable:!1,itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1}).views(function(e){function t(t){return!!~e.selectedItems.indexOf(t)}function n(){return e.items.filter(function(e){return e.modified})}function i(){return n().length}function r(){return e.items.filter(function(e){return e.moved})}function c(){return r().length}return{get allChecked(){return!(e.selectedItems.length!==e.checkableItems.length||!e.checkableItems.length)},get checkableItems(){return e.items.filter(function(e){return e.checkable})},get unSelectedItems(){return e.items.filter(function(e){return!e.checked})},isSelected:t,get modified(){return i()},get modifiedItems(){return n()},get moved(){return c()},get movedItems(){return r()}}}).actions(function(e){function t(t){void 0===t.selectable||(e.selectable=t.selectable),void 0===t.draggable||(e.draggable=t.draggable),void 0===t.multiple||(e.multiple=t.multiple),void 0===t.hideCheckToggler||(e.hideCheckToggler=t.hideCheckToggler),"undefined"!=typeof t.orderBy&&o(t.orderBy,"desc"===t.orderDir?"desc":"asc"),void 0===t.itemCheckableOn||(e.itemCheckableOn=t.itemCheckableOn),void 0===t.itemDraggableOn||(e.itemDraggableOn=t.itemDraggableOn)}function n(t){var n=t.map(function(e,t){return e=l.isObject(e)?e:{item:e},{id:l.guid(),index:t,newIndex:t,pristine:e,data:e,modified:!1}});e.selectedItems.clear(),e.items.replace(n),e.dragging=!1}function i(t,n){e.selectedItems.clear(),e.items.forEach(function(i){~t.indexOf(i.pristine)?e.selectedItems.push(i):a.default(t,function(e){return e[n||"value"]==i.pristine[n||"value"]})&&e.selectedItems.push(i)})}function r(){e.allChecked?e.selectedItems.clear():e.selectedItems.replace(e.checkableItems)}function c(t){if(t.checkable){var n=e.selectedItems.indexOf(t);e.multiple?~n?e.selectedItems.splice(n,1):e.selectedItems.push(t):~n?e.selectedItems.splice(n,1):e.selectedItems.replace([t])}}function s(){e.selectedItems.clear()}function o(t,n){e.orderBy=t,e.orderDir=n}function d(){e.items.forEach(function(e){return e.reset()}),e.dragging=!1}function u(){e.dragging=!e.dragging}function g(){e.dragging=!1}function m(t,n){var i=e.items[t];i.newIndex=n;var r=e.items.slice();r.splice(t,1),r.splice(n,0,i),e.items.replace(r)}return{update:t,initItems:n,updateSelected:i,toggleAll:r,toggle:c,clear:s,setOrderByInfo:o,reset:d,toggleDragging:u,stopDragging:g,exchange:m}})}); -;/*!src/store/modal.ts*/ -amis.define("4550477",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("57d76d7"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),n=e("9a80175");t.ModalStore=o.ServiceStore.named("ModalStore").props({form:r.types.frozen()}).views(function(e){return{get formData(){return n.createObject(e.data,e.form)}}}).actions(function(e){return{setFormData:function(t){e.form=t}}})}); -;/*!src/store/index.ts*/ -amis.define("448f42f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("node_modules/mobx-state-tree/dist/mobx-state-tree");e("node_modules/setimmediate/setImmediate");var o=e("7820b08");t.iRendererStore=o.iRendererStore,t.IIRendererStore=o.IIRendererStore;var s=e("57d76d7"),i=e("3fbfd93"),d=e("956950c"),u=e("7b0821e"),c=e("4fbfbc8"),a=e("4e9b495"),f=e("4550477");n.setLivelynessChecking("ignore");var b=[s.ServiceStore,d.FormStore,i.ComboStore,u.CRUDStore,c.TableStore,a.ListStore,f.ModalStore];t.RendererStore=n.types.model("RendererStore",{storeType:"RendererStore",stores:n.types.map(n.types.union.apply(n.types,r.__spreadArrays([{eager:!1,dispatcher:function(e){for(var t=0,r=b;tn?r.context:r}return null},this)}var i=a.default(r,function(t){return t.props.name===e||t.props.id===e});return i||t&&t.getComponentByName(e)},getComponents:function(){return r.concat()},reload:function(e,t){var n=this;if("window"===e)return location.reload();var o="string"==typeof e?e.split(/\s*,\s*/):e;o.forEach(function(e){var o=e.indexOf("?"),r=null;~o&&(r=c.dataMapping(u.default.parse(e.substring(o+1)),t),e=e.substring(0,o));var i=e.indexOf("."),s="";~i&&(s=e.substring(1+i),e=e.substring(0,i));var a=n.getComponentByName(e);a&&a.reload&&a.reload(s,r,t)})},send:function(e,t){var o=this,r="string"==typeof e?e.split(/\s*,\s*/):e;r.forEach(function(e){var r=e.indexOf("."),s="";~r&&(s=e.substring(1+r),e=e.substring(0,r));var a=o.getComponentByName(e);if(a&&a.receive)a.receive(t,s);else if("window"===e&&n&&n.updateLocation){var p=i.__assign(i.__assign({},location.search?u.default.parse(location.search.substring(1)):{}),t),c=location.pathname+"?"+d.qsstringify(p);n.updateLocation(c)}})},close:function(e){var t=this;"string"==typeof e&&e.split(/\s*,\s*/).map(function(e){return t.getComponentByName(e)}).filter(function(e){return e&&e.props.show}).forEach(o)}}}function o(e){e.context.getComponents().filter(function(e){return e&&("dialog"===e.props.type||"drawer"===e.props.type)&&e.props.show}).forEach(o),e.props.onClose&&e.props.onClose()}function r(e){var o=function(o){function r(){var e=null!==o&&o.apply(this,arguments)||this;return e.scoped=n(e.props.$path,e.context,e.props.env),e}return i.__extends(r,o),r.prototype.getWrappedInstance=function(){return this.ref},r.prototype.childRef=function(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.ref=e},r.prototype.componentWillMount=function(){var e=this.props.scopeRef;e&&e(this.scoped)},r.prototype.componentWillUnmount=function(){var e=this.props.scopeRef;e&&e(null)},r.prototype.render=function(){var n=this.props,o=(n.scopeRef,i.__rest(n,["scopeRef"]));return s.default.createElement(t.ScopedContext.Provider,{value:this.scoped},s.default.createElement(e,i.__assign({},o,{ref:this.childRef})))},r.displayName="Scoped("+(e.displayName||e.name)+")",r.contextType=t.ScopedContext,r.ComposedComponent=e,i.__decorate([d.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],r.prototype,"childRef",null),r}(s.default.Component);return p.default(o,e),o}Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),s=i.__importDefault(e("node_modules/react/index")),a=i.__importDefault(e("node_modules/lodash/find")),p=i.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),u=i.__importDefault(e("node_modules/qs/lib/index")),c=e("f2e345e"),d=e("9a80175");t.ScopedContext=s.default.createContext(n("")),t.HocScoped=r,t.default=r}); -;/*!src/components/Alert2.tsx*/ -amis.define("15e4197",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),s=l.__importDefault(e("node_modules/react/index")),o=e("256b65d"),n=e("b7bbd16"),a=function(e){function t(t){var l=e.call(this,t)||this;return l.handleClick=l.handleClick.bind(l),l.state={show:!0},l}return l.__extends(t,e),t.prototype.handleClick=function(){this.setState({show:!1},this.props.onClose)},t.prototype.render=function(){var e=this.props,t=e.classnames,l=e.className,o=e.level,a=e.children,i=e.showCloseButton;return this.state.show?s.default.createElement("div",{className:t("Alert",o?"Alert--"+o:"",l)},i?s.default.createElement("button",{className:t("Alert-close"),onClick:this.handleClick,type:"button"},s.default.createElement(n.Icon,{icon:"close",className:"icon"})):null,a):null},t.defaultProps={level:"info",className:"",showCloseButton:!1},t.propsList=["level","className","showCloseButton","onClose"],t}(s.default.Component);t.Alert=a,t.default=o.themeable(a)}); -;/*!src/components/ImageGallery.tsx*/ -amis.define("1134c30",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("256b65d"),i=e("9a80175"),s=a.__importDefault(e("628f736")),d=e("b7bbd16"),r=e("5ab4e9d"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,index:-1,items:[]},t}a.__extends(t,e),t.prototype.handleImageEnlarge=function(e){this.setState({isOpened:!0,items:e.list?e.list:[e],index:e.index||0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.prev=function(){var e=this.state.index;this.setState({index:e-1})},t.prototype.next=function(){var e=this.state.index;this.setState({index:e+1})},t.prototype.handleItemClick=function(e){var t=parseInt(e.currentTarget.getAttribute("data-index"),10);this.setState({index:t})},t.prototype.render=function(){var e=this,t=this.props,a=t.children,l=t.classnames,i=t.modalContainer,r=this.state,o=r.index,c=r.items,m=this.props.translate;return n.default.createElement(n.default.Fragment,null,n.default.cloneElement(a,{onImageEnlarge:this.handleImageEnlarge}),n.default.createElement(s.default,{closeOnEsc:!0,size:"full",onHide:this.close,show:this.state.isOpened,contentClassName:l("ImageGallery"),container:i},n.default.createElement("a",{"data-tooltip":m("关闭"),"data-position":"left",className:l("ImageGallery-close"),onClick:this.close},n.default.createElement(d.Icon,{icon:"close",className:"icon"})),~o&&c[o]?n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:l("ImageGallery-title")},c[o].title),n.default.createElement("div",{className:l("ImageGallery-main")},n.default.createElement("img",{src:c[o].originalSrc}),c.length>1?n.default.createElement(n.default.Fragment,null,n.default.createElement("a",{className:l("ImageGallery-prevBtn",0>=o?"is-disabled":""),onClick:this.prev},n.default.createElement(d.Icon,{icon:"prev",className:"icon"})),n.default.createElement("a",{className:l("ImageGallery-nextBtn",o>=c.length-1?"is-disabled":""),onClick:this.next},n.default.createElement(d.Icon,{icon:"next",className:"icon"}))):null)):null,c.length>1?n.default.createElement("div",{className:l("ImageGallery-footer")},n.default.createElement("a",{className:l("ImageGallery-prevList is-disabled")},n.default.createElement(d.Icon,{icon:"prev",className:"icon"})),n.default.createElement("div",{className:l("ImageGallery-itemsWrap")},n.default.createElement("div",{className:l("ImageGallery-items")},c.map(function(t,a){return n.default.createElement("div",{key:a,"data-index":a,onClick:e.handleItemClick,className:l("ImageGallery-item",a===o?"is-active":"")},n.default.createElement("img",{src:t.src}))}))),n.default.createElement("a",{className:l("ImageGallery-nextList is-disabled")},n.default.createElement(d.Icon,{icon:"next",className:"icon"}))):null))};var l;return a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"prev",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"next",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.MouseEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleItemClick",null),t}(n.default.Component);t.ImageGallery=o,t.default=l.themeable(r.localeable(o))}); -;/*!src/factory.tsx*/ -amis.define("0f9ebdf",function(e,t){"use strict";function r(e){M.push(e)}function n(e,t,r){return M.reduce(function(e,n){return n(e,t,r)},e)}function a(e){return function(t){var r=s(v.__assign(v.__assign({},e),{component:t}));return r.component}}function s(e){if(!e.test)throw new TypeError("config.test is required");if(!e.component)throw new TypeError("config.component is required");if(e.weight=e.weight||0,e.Renderer=e.component,e.name=e.name||"anonymous-"+L++,~W.indexOf(e.name))throw new Error('The renderer with name "'+e.name+'" has already exists, please try another name!');e.storeType&&e.component&&(e.component=l({storeType:e.storeType,extendsData:e.storeExtendsData})(C.observer(e.component))),e.isolateScope&&(e.component=A.default(e.component));var t=x.findIndex(I,function(t){return e.weight1024)throw new Error("Path太长是不是死循环了?");var r=null;return I.some(function(n){var a=!1;return"function"==typeof n.test?a=n.test(e,t,m):n.test instanceof RegExp&&(a=n.test.test(e)),a&&(r=n),a}),null!==r&&(r.test instanceof RegExp||"function"==typeof r.test&&r.test.length<2)&&(G[e]=r),r}function _(){return I.concat()}function g(e){return P.default(I,function(t){return t.name===e})}Object.defineProperty(t,"__esModule",{value:!0});var v=e("node_modules/tslib/tslib"),y=v.__importDefault(e("node_modules/react/index")),b=v.__importDefault(e("node_modules/qs/lib/index")),D=e("448f42f"),E=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),R=e("1caead1"),x=e("9a80175"),C=e("node_modules/mobx-react/dist/mobx-react"),S=v.__importDefault(e("01e2bb4")),O=v.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),w=v.__importDefault(e("node_modules/lodash/omit")),F=v.__importDefault(e("node_modules/lodash/difference")),j=v.__importDefault(e("node_modules/lodash/isPlainObject")),A=v.__importDefault(e("919cbd9")),$=e("256b65d"),P=v.__importDefault(e("node_modules/lodash/find")),T=v.__importDefault(e("15e4197")),k=e("1953fc1"),B=v.__importDefault(e("1134c30")),q=e("5ab4e9d"),I=[],W=[],M=[],L=1;t.addSchemaFilter=r,t.filterSchema=n,t.Renderer=a,t.registerRenderer=s,t.unRegisterRenderer=o,t.renderChildren=i,t.renderChild=d;var N=y.default.createContext(void 0),U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={error:null,errorInfo:null},t}return v.__extends(t,e),t.prototype.componentDidCatch=function(e,t){console.error(e),this.setState({error:e,errorInfo:t})},t.prototype.resolveDefinitions=function(e){var t=this.props.schema.definitions;return!e||x.isEmpty(t)?{}:t&&t[e]},t.prototype.render=function(){var e=this.state,t=e.error,r=e.errorInfo;if(r)return p(t,r);var n=this.props,a=n.schema,s=n.rootStore,o=n.env,i=n.pathPrefix,l=n.location,c=n.data,u=n.locale,f=n.translate,h=v.__rest(n,["schema","rootStore","env","pathPrefix","location","data","locale","translate"]),m=o.theme,_=l&&l.query||l&&l.search&&b.default.parse(l.search.substring(1))||window.location.search&&b.default.parse(window.location.search.substring(1)),g=_?x.createObject(v.__assign(v.__assign(v.__assign({},c&&c.__super?c.__super:null),_),{query:_}),c):c;return y.default.createElement(N.Provider,{value:s},y.default.createElement($.ThemeContext.Provider,{value:this.props.theme||"default"},y.default.createElement(q.LocaleContext.Provider,{value:this.props.locale},y.default.createElement(B.default,{modalContainer:o.getModalContainer},d(i||"",j.default(a)?v.__assign({type:"page"},a):a,v.__assign(v.__assign({},h),{resolveDefinitions:this.resolveDefinitions,location:l,data:g,env:o,classnames:m.classnames,classPrefix:m.classPrefix,locale:u,translate:f}))))))},v.__decorate([x.autobind,v.__metadata("design:type",Function),v.__metadata("design:paramtypes",[String]),v.__metadata("design:returntype",void 0)],t.prototype,"resolveDefinitions",null),t}(y.default.Component);t.RootRenderer=U,t.ScopedRootRenderer=A.default(U);var V=["type","name","$ref","className","data","children","ref","visible","visibleOn","hidden","hiddenOn","disabled","disabledOn","component","detectField","required","requiredOn","syncSuperStore"],z=function(e){function t(t){var r=e.call(this,t)||this;return r.refFn=r.refFn.bind(r),r.renderChild=r.renderChild.bind(r),r.reRender=r.reRender.bind(r),r}return v.__extends(t,e),t.prototype.componentWillMount=function(){this.resolveRenderer(this.props)},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.schema.type!==e.schema.type||t.schema.$$id!==e.schema.$$id)&&this.resolveRenderer(e)},t.prototype.shouldComponentUpdate=function(e){var t=this.props,r=F.default(Object.keys(e),["schema","scope"]);if(F.default(Object.keys(t),["schema","scope"]).length!==r.length||x.anyChanged(r,this.props,e))return!0;var n=Object.keys(e.schema);return Object.keys(t.schema).length!==n.length||x.anyChanged(n,t.schema,e.schema)?!0:!1},t.prototype.resolveRenderer=function(e){var t=e.schema,r=e.$path,n=e.env.rendererResolver||m;return t.$ref&&(t=v.__assign(v.__assign({},e.resolveDefinitions(t.$ref)),t),delete t.$ref,r=r.replace(/(?!.*\/).*/,t.type)),this.renderer=n(r,t,e),t},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,r){void 0===r&&(r={});var n=this.props,a=(n.schema,n.$path),s=n.env,o=v.__rest(n,["schema","$path","env"]),i=V.concat();if(this.renderer){var l=this.renderer.component;l.propsList&&i.push.apply(i,l.propsList)}return d(""+a+(e?"/"+e:""),t||"",v.__assign(v.__assign(v.__assign({},w.default(o,i)),r),{data:r.data||o.data,env:s}))},t.prototype.reRender=function(){this.resolveRenderer(this.props),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props,r=t.$path,a=t.schema,s=v.__rest(t,["$path","schema"]);a.$ref&&(a=this.resolveRenderer(this.props));var o=this.props.env.theme;if(Array.isArray(a))return i(r,a,s);if(a.children)return y.default.isValidElement(a.children)?a.children:a.children(v.__assign(v.__assign({},s),{$path:r,render:this.renderChild,forwardedRef:this.refFn}));if("function"==typeof a.component){var d=!(a.component.prototype instanceof y.default.Component);return y.default.createElement(a.component,v.__assign(v.__assign(v.__assign({},s),a),{$path:r,ref:d?void 0:this.refFn,forwardedRef:d?this.refFn:void 0,render:this.renderChild}))}if(!this.renderer)return y.default.createElement(k.LazyComponent,v.__assign({},s,{getComponent:function(){return v.__awaiter(e,void 0,void 0,function(){var e;return v.__generator(this,function(t){switch(t.label){case 0:return[4,s.env.loadRenderer(a,r,this.reRender)];case 1:return e=t.sent(),e&&"function"==typeof e?[2,e]:e&&y.default.isValidElement(e)?[2,function(){return e}]:(this.reRender(),[2,function(){return c(a,r)}])}})})},$path:r,retry:this.reRender}));var l=this.renderer;a=n(a,l,s);var p=a.data,u=v.__rest(a,["data"]),f=l.component;return y.default.createElement(f,v.__assign({},o.getRendererConfig(l.name),u,x.chainEvents(s,u),{defaultData:p,$path:r,ref:this.refFn,render:this.renderChild}))},t.displayName="Renderer",t}(y.default.Component);t.HocStoreFactory=l;var H={session:"global",affixOffsetTop:50,affixOffsetBottom:0,richTextToken:"",loadRenderer:c,fetcher:function(){return Promise.reject("fetcher is required")},isCancel:function(){return console.error("Please implements this. see https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8"),!1},alert:function(e){alert(e)},updateLocation:function(){console.error("Please implements this. see https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8")},confirm:function(e){return confirm(e)},notify:function(e){alert(e)},jumpTo:function(){console.error("Please implements this. see https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8")},isCurrentUrl:function(){return!1},copy:function(e){console.error("copy contents",e)},rendererResolver:m},J={};t.render=u,t.clearStoresCache=f,t.updateEnv=h;var G={};t.resolveRenderer=m,t.getRenderers=_,t.getRendererByName=g}); -;/*!src/components/Alert.tsx*/ -amis.define("bfe4ee0",function(t,e){"use strict";function n(t,e,n,o,i){return void 0===e&&(e={}),m.render({name:"form",type:"form",wrapWithPanel:!1,mode:"horizontal",controls:t,messages:{validateFailed:""}},{data:e,onFinished:n,scopeRef:o,theme:i},{session:"prompt"})}Object.defineProperty(e,"__esModule",{value:!0});var o=t("node_modules/tslib/tslib"),i=o.__importDefault(t("node_modules/react/index")),a=t("node_modules/react-dom/index"),l=o.__importDefault(t("628f736")),r=o.__importDefault(t("a67acca")),s=t("256b65d"),c=t("5ab4e9d"),d=o.__importDefault(t("580df19")),m=t("0f9ebdf"),f=function(t){function s(e){var n=t.call(this,e)||this;return n.state={show:!1,title:"",content:"",confirm:!1},n.close=n.close.bind(n),n.handleConfirm=n.handleConfirm.bind(n),n.handleCancel=n.handleCancel.bind(n),n.modalRef=n.modalRef.bind(n),n.handleFormSubmit=n.handleFormSubmit.bind(n),n.scopeRef=n.scopeRef.bind(n),n}return o.__extends(s,t),s.getInstance=function(){if(!s.instance){console.warn("Alert 组件应该没有被渲染,所以隐性的渲染到 body 了");var t=document.body,n=document.createElement("div");t.appendChild(n),a.render(i.default.createElement(e.FinnalAlert,null),n)}return s.instance},s.prototype.componentWillMount=function(){s.instance=this},s.prototype.componentDidMount=function(){this._body&&(this._body.innerHTML=this.state.content)},s.prototype.componentDidUpdate=function(t,e){e.content!==this.state.content&&this._body&&(this._body.innerHTML=this.state.content)},s.prototype.componentWillUnmount=function(){s.instance=null},s.prototype.scopeRef=function(t){this.schemaSope=t},s.prototype.handleConfirm=function(){var t,e=null===(t=this.schemaSope)||void 0===t?void 0:t.getComponentByName("form");e?e.doAction({type:"submit"}):this.close(!0)},s.prototype.handleCancel=function(){this.close(!1)},s.prototype.close=function(t){var e=this,n=this.state.confirm||this.state.prompt;this.setState({show:!1},n?function(){return e._resolve(t)}:void 0)},s.prototype.alert=function(t,e){this.setState({title:e,content:t,show:!0,confirm:!1})},s.prototype.confirm=function(t,e,n){var o=this;return this.setState({title:e,content:t,show:!0,confirm:!0,confirmText:n}),new Promise(function(t){o._resolve=t})},s.prototype.prompt=function(t,e,n,o){var i=this;return void 0===n&&(n="请输入"),void 0===o&&(o="确认"),"string"==typeof t?(t=[{name:"text",label:t,type:"text"}],"string"==typeof e&&(e={text:e})):Array.isArray(t)||(t=[t]),this.setState({title:n,controls:t,show:!0,prompt:!0,value:e,confirmText:o}),new Promise(function(t){i._resolve=t})},s.prototype.modalRef=function(t){this._modal=t},s.prototype.handleFormSubmit=function(t){this.close(t)},s.prototype.render=function(){var t,e,o=this.props,a=o.container,s=o.cancelText,c=o.confirmText,m=o.title,f=o.confirmBtnLevel,u=o.alertBtnLevel,p=o.classnames,h=o.theme,v=this.props.translate,y=v((t=this.state.title,null!==t&&void 0!==t?t:m)),b=v((e=this.state.confirmText,null!==e&&void 0!==e?e:c));return i.default.createElement(l.default,{show:this.state.show,onHide:this.handleCancel,container:a,ref:this.modalRef,closeOnEsc:!0},y?i.default.createElement("div",{className:p("Modal-header")},i.default.createElement("div",{className:p("Modal-title")},y)):null,i.default.createElement("div",{className:p("Modal-body")},this.state.prompt?n(this.state.controls,this.state.value,this.handleFormSubmit,this.scopeRef,h):i.default.createElement(d.default,{html:this.state.content})),b?i.default.createElement("div",{className:p("Modal-footer")},this.state.confirm||this.state.prompt?i.default.createElement(r.default,{onClick:this.handleCancel},v(s)):null,i.default.createElement(r.default,{level:this.state.confirm||this.state.prompt?f:u,onClick:this.handleConfirm},b)):null)},s.instance=null,s.defaultProps={confirmText:"确认",cancelText:"取消",title:"系统消息",alertBtnLevel:"primary",confirmBtnLevel:"danger"},s}(i.default.Component);e.Alert=f,e.alert=function(t,e){return f.getInstance().alert(t,e)},e.confirm=function(t,e,n){return f.getInstance().confirm(t,e,n)},e.prompt=function(t,e,n,o){return f.getInstance().prompt(t,e,n,o)},e.FinnalAlert=s.themeable(c.localeable(f)),e.default=e.FinnalAlert}); -;/*!src/components/ContextMenu.tsx*/ -amis.define("703f435",function(e,t){"use strict";function n(e,t){return p.getInstance().openContextMenus(e,t)}var a;Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),i=e("256b65d"),d=o.__importDefault(e("node_modules/react/index")),s=e("node_modules/react-dom/index"),u=e("9a80175"),l=o.__importStar(e("node_modules/react-transition-group/Transition")),r=e("fb7767a"),c=(a={},a[l.ENTERING]="in",a[l.ENTERED]="in",a[l.EXITING]="out",a),p=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,menus:[],x:-99999,y:-99999},t.menuRef=d.default.createRef(),t}o.__extends(n,e),n.getInstance=function(){if(!n.instance){var e=document.body,a=document.createElement("div");e.appendChild(a),s.render(d.default.createElement(t.ThemedContextMenu,null),a)}return n.instance},n.prototype.componentWillMount=function(){this.originInstance=n.instance,n.instance=this},n.prototype.componentDidMount=function(){document.body.addEventListener("click",this.handleOutClick,!0),document.addEventListener("keydown",this.handleKeyDown)},n.prototype.componentWillUnmount=function(){n.instance=this.originInstance,document.body.removeEventListener("click",this.handleOutClick,!0),document.removeEventListener("keydown",this.handleKeyDown),delete this.originInstance},n.prototype.openContextMenus=function(e,t){this.setState({isOpened:!0,x:e.x,y:e.y,menus:t})},n.prototype.close=function(){this.setState({isOpened:!1,x:-99999,y:-99999,menus:[]})},n.prototype.handleOutClick=function(e){e.target&&this.menuRef.current&&!this.menuRef.current.contains(e.target)&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.handleClick=function(e){e.disabled||Array.isArray(e.children)&&e.children.length||this.setState({isOpened:!1,x:-99999,y:-99999,menus:[]},function(){return e.onSelect?e.onSelect(e.data):null})},n.prototype.handleKeyDown=function(e){27===e.keyCode&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.handleMouseEnter=function(e){e.disabled||!e.onHighlight||e.onHighlight(!0,e.data)},n.prototype.handleMouseLeave=function(e){e.disabled||!e.onHighlight||e.onHighlight(!1,e.data)},n.prototype.handleEnter=function(e){var t=r.calculatePosition("auto",e.lastChild,e.children[1],document.body),n=t.positionLeft+300r;r++){var o=h[r],s=o.regexp.exec(e);if(s)return o.resolve.apply(o,a.__spreadArrays([t],s))}return null},t.prototype.renderShortCuts=function(e){var t=this;if(!e)return null;var n,o=this.props.classPrefix;n="string"==typeof e?e.split(","):e;var s=this.props.translate;return r.default.createElement("ul",{className:o+"DatePicker-shortcuts"},n.map(function(e){if(!e)return null;var n={};return"string"==typeof e?(n=t.getAvailableShortcuts(e),n.key=e):e.date&&(n=a.__assign(a.__assign({},e),{date:function(){return e.date}})),r.default.createElement("li",{className:o+"DatePicker-shortcut",onClick:function(){return t.selectRannge(n)},key:n.key||n.label},r.default.createElement("a",null,s(n.label)))}))},t.prototype.render=function(){var e=this.props,t=e.classPrefix,a=e.className,o=e.value,u=e.placeholder,c=e.disabled,f=e.inputFormat,h=e.dateFormat,p=e.timeFormat,m=e.viewMode,v=e.timeConstraints,b=e.popOverContainer,y=e.clearable,g=e.shortcuts,k=(e.utc,e.overlayPlacement),C=e.locale,P=this.props.translate,_=this.state.isOpened,D=this.state.value;return r.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:n.default(t+"DatePicker",{"is-disabled":c,"is-focused":this.state.isFocused},a),ref:this.domRef,onClick:this.handleClick},D?r.default.createElement("span",{className:t+"DatePicker-value"},D.format(f)):r.default.createElement("span",{className:t+"DatePicker-placeholder"},P(u)),y&&!c&&o?r.default.createElement("a",{className:t+"DatePicker-clear",onClick:this.clearValue},r.default.createElement(s.Icon,{icon:"close",className:"icon"})):null,r.default.createElement("a",{className:t+"DatePicker-toggler"},r.default.createElement(s.Icon,{icon:"calendar",className:"icon"})),_?r.default.createElement(i.default,{target:this.getTarget,container:b||this.getParent,rootClose:!1,placement:k,show:!0},r.default.createElement(l.default,{classPrefix:t,className:t+"DatePicker-popover",onHide:this.close,overlay:!0,onClick:this.handlePopOverClick},this.renderShortCuts(g),r.default.createElement(d.default,{value:D,onChange:this.handleChange,requiredConfirm:!(!h||!p),dateFormat:h,timeFormat:p,isValidDate:this.checkIsValidDate,viewMode:m,timeConstraints:v,input:!1,onClose:this.close,locale:C}))):null)},t.defaultProps={viewMode:"days",shortcuts:"",closeOnSelect:!0,overlayPlacement:"auto"},t}(r.default.Component);t.DatePicker=p,t.default=u.themeable(c.localeable(p))}); -;/*!src/components/DateRangePicker.tsx*/ -amis.define("eaae631",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),r=a.__importDefault(e("node_modules/moment/moment")),s=e("node_modules/react-dom/index"),i=a.__importDefault(e("node_modules/classnames/index")),o=e("b7bbd16"),d=a.__importDefault(e("997df41")),l=a.__importDefault(e("4c30e45")),c=a.__importDefault(e("2b3dcdf")),u=e("256b65d"),f=e("9a80175"),h=e("5ab4e9d"),p={today:{label:"今天",startDate:function(e){return e.startOf("day")},endDate:function(e){return e}},yesterday:{label:"昨天",startDate:function(e){return e.add(-1,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"1dayago":{label:"最近1天",startDate:function(e){return e.add(-1,"days")},endDate:function(e){return e}},"7daysago":{label:"最近7天",startDate:function(e){return e.add(-7,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"90daysago":{label:"最近90天",startDate:function(e){return e.add(-90,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},prevweek:{label:"上周",startDate:function(e){return e.startOf("week").add(-1,"weeks")},endDate:function(e){return e.startOf("week").add(-1,"days").endOf("day")}},thismonth:{label:"本月",startDate:function(e){return e.startOf("month")},endDate:function(e){return e}},prevmonth:{label:"上个月",startDate:function(e){return e.startOf("month").add(-1,"month")},endDate:function(e){return e.startOf("month").add(-1,"day").endOf("day")}},prevquarter:{label:"上个季节",startDate:function(e){return e.startOf("quarter").add(-1,"quarter")},endDate:function(e){return e.startOf("quarter").add(-1,"day").endOf("day")}},thisquarter:{label:"本季度",startDate:function(e){return e.startOf("quarter")},endDate:function(e){return e}}},m=function(e){function t(s){var i=e.call(this,s)||this;i.nextMonth=r.default().add(1,"months"),i.open=i.open.bind(i),i.close=i.close.bind(i),i.handleStartChange=i.handleStartChange.bind(i),i.handleEndChange=i.handleEndChange.bind(i),i.handleFocus=i.handleFocus.bind(i),i.handleBlur=i.handleBlur.bind(i),i.checkStartIsValidDate=i.checkStartIsValidDate.bind(i),i.checkEndIsValidDate=i.checkEndIsValidDate.bind(i),i.confirm=i.confirm.bind(i),i.clearValue=i.clearValue.bind(i),i.dom=n.default.createRef(),i.handleClick=i.handleClick.bind(i),i.handleKeyPress=i.handleKeyPress.bind(i),i.handlePopOverClick=i.handlePopOverClick.bind(i),i.renderDay=i.renderDay.bind(i);var o=i.props,d=o.format,l=o.joinValues,c=o.delimiter,u=o.value;return i.state=a.__assign({isOpened:!1,isFocused:!1},t.unFormatValue(u,d,l,c)),i}return a.__extends(t,e),t.formatValue=function(e,t,a,n,s){return void 0===s&&(s=!1),e=[(s?r.default.utc(e.startDate):e.startDate).format(t),(s?r.default.utc(e.endDate):e.endDate).format(t)],a&&(e=e.join(n)),e},t.unFormatValue=function(e,t,a,n){return e?(a&&"string"==typeof e&&(e=e.split(n)),{startDate:e[0]?r.default(e[0],t):void 0,endDate:e[1]?r.default(e[1],t):void 0}):{startDate:void 0,endDate:void 0}},t.prototype.componentWillReceiveProps=function(e){var n=this.props,r=e.value,s=e.format,i=e.joinValues,o=e.delimiter;n.value!==r&&this.setState(a.__assign({},t.unFormatValue(r,s,i,o)))},t.prototype.focus=function(){this.dom.current&&!this.props.disabled&&this.dom.current.focus()},t.prototype.blur=function(){this.dom.current&&!this.props.disabled&&this.dom.current.blur()},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.open=function(){this.props.disabled||this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1},this.blur)},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},t.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleClick(),e.preventDefault())},t.prototype.confirm=function(){this.state.startDate&&this.state.endDate&&(this.state.startDate.isAfter(this.state.endDate)||(this.props.onChange(t.formatValue({startDate:this.state.startDate,endDate:this.state.endDate},this.props.format,this.props.joinValues,this.props.delimiter,this.props.utc)),this.close()))},t.prototype.handleStartChange=function(e){return this.state.startDate&&!this.state.endDate&&e.isAfter(this.state.startDate)?this.setState({endDate:e.clone()}):void this.setState({startDate:e.clone()})},t.prototype.handleEndChange=function(e){return e=this.state.endDate||this.props.timeFormat?e:e.endOf("day"),this.state.endDate&&!this.state.startDate&&e.isBefore(this.state.endDate)?this.setState({startDate:e.clone()}):void this.setState({endDate:e.clone()})},t.prototype.selectRannge=function(e){var t=this.props,a=t.closeOnSelect,n=t.minDate,s=t.maxDate,i=r.default();this.setState({startDate:n?r.default.max(e.startDate(i.clone()),n):e.startDate(i.clone()),endDate:s?r.default.min(s,e.endDate(i.clone())):e.endDate(i.clone())},a?this.confirm:f.noop)},t.prototype.renderRanges=function(e){var t=this;if(!e)return null;var r,s=this.props.classPrefix;r="string"==typeof e?e.split(","):e;var i=this.props.translate;return n.default.createElement("ul",{className:s+"DateRangePicker-rangers"},r.map(function(e){if(!e)return null;var r={};return"string"==typeof e?(r=p[e],r.key=e):e.startDate&&e.endDate&&(r=a.__assign(a.__assign({},e),{startDate:function(){return e.startDate},endDate:function(){return e.endDate}})),n.default.createElement("li",{className:s+"DateRangePicker-ranger",onClick:function(){return t.selectRannge(r)},key:r.key||r.label},n.default.createElement("a",null,i(r.label)))}))},t.prototype.clearValue=function(e){e.preventDefault(),e.stopPropagation();var t=this.props,a=t.resetValue,n=t.onChange;n(a)},t.prototype.checkStartIsValidDate=function(e){var t=this.state.endDate,a=this.props,n=a.minDate,r=a.maxDate;return r=r&&t?r.isBefore(t)?r:t:r||t,n&&e.isBefore(n,"day")?!1:r&&e.isAfter(r,"day")?!1:!0},t.prototype.checkEndIsValidDate=function(e){var t=this.state.startDate,a=this.props,n=a.minDate,r=a.maxDate;return n=n&&t?n.isAfter(t)?n:t:n||t,n&&e.isBefore(n,"day")?!1:r&&e.isAfter(r,"day")?!1:!0},t.prototype.renderDay=function(e,t){var r=this.state,s=r.startDate,i=r.endDate;return s&&i&&t.isBetween(s,i,"day","[]")&&(e.className+=" rdtBetween"),n.default.createElement("td",a.__assign({},e),t.date())},t.prototype.render=function(){var e=this,a=this.props,r=a.className,u=a.classPrefix,f=a.value,h=a.placeholder,p=a.popOverContainer,m=a.inputFormat,D=a.format,y=a.dateFormat,v=a.joinValues,g=a.delimiter,b=a.clearable,k=a.timeFormat,C=a.ranges,O=a.disabled,P=a.locale,_=a.overlayPlacement,E=this.state,V=E.isOpened,F=E.isFocused,S=E.startDate,N=E.endDate,R=t.unFormatValue(f,D,v,g),B=R.startDate?R.startDate.format(m):"",x=R.endDate?R.endDate.format(m):"",w=[];B&&w.push(B),x&&w.push(x);var I=this.props.translate;return n.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:i.default(u+"DateRangePicker",{"is-disabled":O,"is-focused":F},r),ref:this.dom,onClick:this.handleClick},w.length?n.default.createElement("span",{className:u+"DateRangePicker-value"},w.join(I(" 至 "))):n.default.createElement("span",{className:u+"DateRangePicker-placeholder"},I(h)),b&&!O&&f?n.default.createElement("a",{className:u+"DateRangePicker-clear",onClick:this.clearValue},n.default.createElement(o.Icon,{icon:"close",className:"icon"})):null,n.default.createElement("a",{className:u+"DateRangePicker-toggler"},n.default.createElement(o.Icon,{icon:"calendar",className:"icon"})),V?n.default.createElement(d.default,{target:function(){return e.dom.current},onHide:this.close,container:p||function(){return s.findDOMNode(e)},rootClose:!1,placement:_,show:!0},n.default.createElement(c.default,{classPrefix:u,className:u+"DateRangePicker-popover",onHide:this.close,onClick:this.handlePopOverClick,overlay:!0},n.default.createElement("div",{className:u+"DateRangePicker-wrap"},this.renderRanges(C),n.default.createElement(l.default,{className:u+"DateRangePicker-start",value:S,onChange:this.handleStartChange,requiredConfirm:!1,dateFormat:y,timeFormat:k,isValidDate:this.checkStartIsValidDate,viewMode:"days",input:!1,onClose:this.close,renderDay:this.renderDay,locale:P}),n.default.createElement(l.default,{className:u+"DateRangePicker-end",value:N,onChange:this.handleEndChange,requiredConfirm:!1,dateFormat:y,timeFormat:k,viewDate:this.nextMonth,isEndDate:!0,isValidDate:this.checkEndIsValidDate,viewMode:"days",input:!1,onClose:this.close,renderDay:this.renderDay,locale:P}),n.default.createElement("div",{key:"button",className:u+"DateRangePicker-actions"},n.default.createElement("a",{className:i.default("rdtBtn rdtBtnConfirm",{"is-disabled":!this.state.startDate||!this.state.endDate}),onClick:this.confirm},I("确认")),n.default.createElement("a",{className:"rdtBtn rdtBtnCancel",onClick:this.close},I("取消")))))):null)},t.defaultProps={placeholder:"请选择日期范围",format:"X",inputFormat:"YYYY-MM-DD",joinValues:!0,clearable:!0,delimiter:",",ranges:"yesterday,7daysago,prevweek,thismonth,prevmonth,prevquarter",resetValue:"",closeOnSelect:!0,overlayPlacement:"auto"},t}(n.default.Component);t.DateRangePicker=m,t.default=u.themeable(h.localeable(m))}); -;/*!src/components/Drawer.tsx*/ -amis.define("01a937e",function(e,t){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),d=n.__importStar(e("node_modules/react-transition-group/Transition")),i=e("node_modules/react-overlays/lib/index"),r=e("b7bbd16"),l=n.__importDefault(e("node_modules/classnames/index")),s=e("8768414"),c=e("256b65d"),u=e("9a80175"),m=(o={},o[d.ENTERING]="in",o[d.ENTERED]="in",o),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isRootClosed=!1,t.contentRef=function(e){return t.contentDom=e},t.handleEntered=function(){var e=t.props.onEntered;document.body.classList.add("is-modalOpened"),e&&e()},t.handleExited=function(){var e=t.props.onExited;document.activeElement&&document.activeElement.blur(),e&&e(),setTimeout(function(){document.querySelector(".amis-dialog-widget")||document.body.classList.remove("is-modalOpened")},200)},t.modalRef=function(e){t.modalDom=e,e?(s.addModal(t),e.classList.add(t.props.classPrefix+"Modal--"+s.current()+"th")):s.removeModal()},t}n.__extends(t,e),t.prototype.componentDidMount=function(){this.props.show&&this.handleEntered(),document.body.addEventListener("click",this.handleRootClickCapture,!0),document.body.addEventListener("click",this.handleRootClick)},t.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited(),document.body.removeEventListener("click",this.handleRootClick),document.body.removeEventListener("click",this.handleRootClickCapture,!0)},t.prototype.handleRootClickCapture=function(e){var t=e.target,o=this.props,n=o.closeOnOutside,a=o.classPrefix,d=1===e.button&&null!==window.event||0===e.button;this.isRootClosed=!!(d&&n&&t&&this.modalDom&&(!this.modalDom.contains(t)&&!t.closest("[role=dialog]")||t.matches("."+a+"Drawer-overlay")&&t.parentElement===this.modalDom))},t.prototype.handleRootClick=function(e){var t=this.props.onHide;this.isRootClosed&&!e.defaultPrevented&&t(e)},t.prototype.render=function(){var e=this,t=this.props,o=t.classPrefix,n=t.className,s=t.children,c=t.container,u=t.show,p=t.position,f=t.size,h=t.onHide,v=t.disabled,E=t.overlay,y=t.bodyClassName;return a.default.createElement(i.Portal,{container:c},a.default.createElement(d.default,{mountOnEnter:!0,unmountOnExit:!0,"in":u,timeout:500,onExited:this.handleExited,onEntered:this.handleEntered},function(t){var i;return t===d.ENTERING&&e.contentDom.offsetWidth,a.default.createElement("div",{ref:e.modalRef,role:"dialog",className:l.default("amis-dialog-widget "+o+"Drawer",(i={},i[o+"Drawer--"+p]=p,i[o+"Drawer--"+f]=f,i[o+"Drawer--noOverlay"]=!E,i),n)},E?a.default.createElement("div",{className:l.default(o+"Drawer-overlay",m[t])}):null,a.default.createElement("div",{ref:e.contentRef,className:l.default(o+"Drawer-content",y,m[t])},a.default.createElement("a",{onClick:v?void 0:h,className:o+"Drawer-close"},a.default.createElement(r.Icon,{icon:"close",className:"icon"})),s))}))};var o,c;return t.defaultProps={container:document.body,position:"left",size:"md",overlay:!0},n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof MouseEvent&&MouseEvent)?o:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleRootClickCapture",null),n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof MouseEvent&&MouseEvent)?c:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleRootClick",null),t}(a.default.Component);t.Drawer=p,t.default=c.themeable(p)}); -;/*!src/components/Tabs.tsx*/ -amis.define("8ac7656",function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),s=a.__importStar(e("node_modules/react-transition-group/Transition")),l=e("256b65d"),o=e("node_modules/uncontrollable/cjs/index"),i=(n={},n[s.ENTERING]="in",n[s.ENTERED]="in",n),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contentRef=function(e){return t.contentDom=e},t}return a.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.mountOnEnter,l=t.reload,o=t.unmountOnExit,u=t.eventKey,c=t.activeKey,d=t.children,m=t.className;return r.default.createElement(s.default,{"in":c===u,mountOnEnter:a,unmountOnExit:"boolean"==typeof l?l:o,timeout:500},function(t){return t===s.ENTERING&&e.contentDom.offsetWidth,r.default.createElement("div",{ref:e.contentRef,className:n(i[t],c===u?"is-active":"","Tabs-pane",m)},d)})},t}(r.default.PureComponent);t.Tab=l.themeable(u);var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(n,e),n.prototype.handleSelect=function(e){var t=this.props.onSelect;t&&t(e)},n.prototype.renderNav=function(e,t){var n=this;if(e){var a=this.props,s=a.classnames,l=a.activeKey,o=e.props,i=o.eventKey,u=o.disabled,c=o.icon,d=o.title,m=o.toolbar,f=void 0===l&&0===t?i:l;return r.default.createElement("li",{className:s("Tabs-link",f===i?"is-active":"",u?"is-disabled":""),key:t,onClick:function(){return u?"":n.handleSelect(i)}},r.default.createElement("a",null,c?r.default.createElement("i",{className:c}):null," ",d),r.default.isValidElement(m)?m:null)}},n.prototype.renderTab=function(e,t){if(e){var n=this.props,s=n.activeKey,l=n.classnames,o=e.props.eventKey,i=void 0===s&&0===t?o:s;return r.default.cloneElement(e,a.__assign(a.__assign({},e.props),{key:t,classnames:l,activeKey:i}))}},n.prototype.render=function(){var e,t=this,n=this.props,a=n.classnames,s=n.contentClassName,l=n.className,o=n.mode,i=n.tabsMode,u=n.children,c=n.additionBtns,d=n.toolbar;if(!Array.isArray(u))return null;var m=i||o;return r.default.createElement("div",{className:a("Tabs",(e={},e["Tabs--"+m]=m,e),l)},r.default.createElement("ul",{className:a("Tabs-links"),role:"tablist"},u.map(function(e,n){return t.renderNav(e,n)}),c,d),r.default.createElement("div",{className:a("Tabs-content",s)},u.map(function(e,n){return t.renderTab(e,n)})))},n.defaultProps={mode:"",contentClassName:""},n.Tab=t.Tab,n}(r.default.Component);t.Tabs=c;var d=l.themeable(o.uncontrollable(c,{activeKey:"onSelect"}));t.default=d}); -;/*!src/components/Editor.tsx*/ -amis.define("997c87d",function(t,e){"use strict";function o(t){return t}function i(t,e,o){return e.editor.create(t,s.__assign({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}},o))}Object.defineProperty(e,"__esModule",{value:!0});var s=t("node_modules/tslib/tslib"),n=s.__importDefault(t("node_modules/react/index")),r=s.__importDefault(t("node_modules/classnames/index")),a=t("256b65d");window.MonacoEnvironment={getWorkerUrl:function(t,e){var i="/pkg/editor.worker.js";return"json"===e?i="/pkg/json.worker.js":"css"===e?i="/pkg/css.worker.js":"html"===e?i="/pkg/html.worker.js":("typescript"===e||"javascript"===e)&&(i="/pkg/ts.worker.js"),i=o(i),/^https?/.test(i)?"data:text/javascript;charset=utf-8,"+encodeURIComponent("\n importScripts('"+i+"');")+"\n ":i}},e.monacoFactory=i;var p=function(e){function o(t){var o=e.call(this,t)||this;return o.disposes=[],o.wrapperRef=o.wrapperRef.bind(o),o.currentValue=t.value,o}return s.__extends(o,e),o.prototype.componentWillReceiveProps=function(t){this.props.options.readOnly!==t.options.readOnly&&this.editor&&this.editor.updateOptions&&this.editor.updateOptions(t.options)},o.prototype.componentDidUpdate=function(){if(this.props.value!==this.currentValue&&this.editor){var t=String(this.props.value);if("json"===this.props.language)try{t=JSON.stringify(JSON.parse(t),null,4)}catch(e){}this.preventTriggerChangeEvent=!0,this.editor.setValue&&this.editor.setValue(t),this.preventTriggerChangeEvent=!1}},o.prototype.componentWillUnmount=function(){if(this.editor){var t=this.props.context||window,e=t.monaco||window.monaco,o=this.props.editorWillUnmount;o&&o(this.editor,e)}this.disposes.forEach(function(t){var e=t.dispose;return e()}),this.disposes=[]},o.prototype.wrapperRef=function(t){if(this.container=t,t)this.loadMonaco();else try{this.disposes.forEach(function(t){var e=t.dispose;return e()}),this.disposes=[],this.editor&&(this.editor.getModel().dispose(),this.editor.dispose()),this.editor=null}catch(e){}},o.prototype.loadMonaco=function(){var e=this;t(["b961301"],function(t){e.initMonaco(t)})},o.prototype.initMonaco=function(t){var e=null!==this.props.value?this.props.value:this.props.defaultValue,o=this.props,n=o.language,r=o.editorTheme,a=o.options,p=o.editorFactory,d=this.container;if(d){if(this.editorWillMount(t),"json"===this.props.language)try{e=JSON.stringify("string"==typeof e?JSON.parse(e):e,null,4)}catch(u){}var l=p||i;this.editor=l(d,t,s.__assign(s.__assign({},a),{automaticLayout:!0,value:e,language:n,editorTheme:r,theme:r})),t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0,allowComments:!0}),this.editorDidMount(this.editor,t)}},o.prototype.editorWillMount=function(t){var e=this.props.editorWillMount;e&&e(t)},o.prototype.editorDidMount=function(t,e){var o=this,i=this.props,s=i.editorDidMount,n=i.onChange,r=i.onFocus,a=i.onBlur;s&&s(t,e),t.onDidChangeModelContent&&this.disposes.push(t.onDidChangeModelContent(function(e){var i=t.getValue();o.currentValue=i,!o.preventTriggerChangeEvent&&n&&n(i,e)})),r&&t.onDidFocusEditorWidget&&this.disposes.push(t.onDidFocusEditorWidget(r)),a&&t.onDidBlurEditorWidget&&this.disposes.push(t.onDidBlurEditorWidget(a))},o.prototype.render=function(){var t=this.props,e=t.className,o=t.classPrefix,i=t.width,s=t.height,a=this.props.style||{};return a.width=i,a.height=s,n.default.createElement("div",{className:r.default(o+"MonacoEditor",e),style:a,ref:this.wrapperRef})},o.defaultProps={language:"javascript",editorTheme:"vs",width:"100%",height:"100%",options:{}},o}(n.default.Component);e.Editor=p,e.default=a.themeable(p)}); -;/*!src/components/LazyComponent.tsx*/ -amis.define("4783ce8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),n=i.__importDefault(e("node_modules/react/index")),l=i.__importDefault(e("node_modules/react-visibility-sensor/visibility-sensor")),a=i.__importDefault(e("acad559")),o=function(e){function t(t){var i=e.call(this,t)||this;return i.mounted=!1,i.handleVisibleChange=i.handleVisibleChange.bind(i),i.state={visible:!1,component:t.component},i}return i.__extends(t,e),t.prototype.componentWillMount=function(){this.mounted=!0},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.handleVisibleChange=function(e){var t=this;this.setState({visible:e}),e&&!this.state.component&&this.props.getComponent&&this.props.getComponent().then(function(e){return t.mounted&&"function"==typeof e&&t.setState({component:e})}).catch(function(e){return t.mounted&&t.setState({component:function(){return n.default.createElement("div",{className:"alert alert-danger"},String(e))}})})},t.prototype.render=function(){var e=this.props,t=e.placeholder,a=e.unMountOnHidden,o=e.childProps,s=e.visiblilityProps,r=e.partialVisibility,d=e.children,u=i.__rest(e,["placeholder","unMountOnHidden","childProps","visiblilityProps","partialVisibility","children"]),c=this.state,p=c.visible,m=c.component;return a?n.default.createElement(l.default,i.__assign({},s,{partialVisibility:r,onChange:this.handleVisibleChange}),n.default.createElement("div",{className:"visibility-sensor"},m&&p?n.default.createElement(m,i.__assign({},u,o)):d&&p?d:t)):p?m?n.default.createElement(m,i.__assign({},u,o)):d?d:n.default.createElement("div",null,t):n.default.createElement(l.default,i.__assign({},s,{partialVisibility:r,onChange:this.handleVisibleChange}),n.default.createElement("div",{className:"visibility-sensor"},t))},t.defaultProps={placeholder:n.default.createElement(a.default,null),unMountOnHidden:!1,partialVisibility:!0},t}(n.default.Component);t.default=o}); -;/*!src/components/Radios.tsx*/ -amis.define("8e37af0",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),t=a.__importDefault(e("node_modules/react/index")),n=e("node_modules/uncontrollable/cjs/index"),r=a.__importDefault(e("0a43d97")),i=e("d57879c"),o=a.__importDefault(e("node_modules/lodash/chunk")),s=e("256b65d"),d=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(l,e),l.prototype.toggleOption=function(e){var l=this.props,a=l.value,t=l.onChange,n=l.valueField,r=l.clearable,o=l.delimiter,s=l.options,d=i.value2array(a,{multiple:!1,delimiter:o,valueField:n,options:s}),u=d.indexOf(e);~u?r&&d.splice(u,1):d=[e];var c=d[0];t&&t(c)},l.prototype.renderGroup=function(e,l,a){var n=this,r=this.props.classnames;return t.default.createElement("div",{key:l,className:r("RadiosControl-group",e.className)},t.default.createElement("label",{className:r("RadiosControl-groupLabel",e.labelClassName)},e.label),e.children&&e.children.length?e.children.map(function(e,l){return n.renderItem(e,l,a)}):null)},l.prototype.renderItem=function(e,l,a){var n=this;if(e.children)return this.renderGroup(e,l,a);var i=this.props,o=i.disabled,s=i.inline,d=i.itemClassName,u=i.classnames,c=i.labelClassName,m=i.labelField;return t.default.createElement(r.default,{type:"radio",key:l,onChange:function(){return n.toggleOption(e)},checked:!!~a.indexOf(e),className:u(d,e.className),disabled:o||e.disabled,description:e.description,inline:s,labelClassName:c},e[m||"label"])},l.prototype.render=function(){var e=this,l=this.props,a=l.value,n=l.options,r=l.className,s=l.classnames,d=l.placeholder,u=l.columnsCount,c=(l.joinValues,l.extractValue,l.disabled,l.inline),m=l.delimiter,p=l.valueField,f=(l.classPrefix,i.value2array(a,{multiple:!1,delimiter:m,valueField:p,options:n})),h=[];if(n&&(h=n.map(function(l,a){return e.renderItem(l,a,f)})),!c&&u>1){var v=12/u,b="Grid-col--sm"+(v===Math.round(v)?v:"");h=o.default(h,u).map(function(e,l){return t.default.createElement("div",{className:s("Grid"),key:l},Array.from({length:u}).map(function(l,a){return t.default.createElement("div",{key:a,className:s(b)},e[a])}))})}return t.default.createElement("div",{className:r},h&&h.length?h:d)},l.defaultProps={type:"radio",joinValues:!0,clearable:!1,columnsCount:1},l}(t.default.Component);l.Radios=d,l.default=s.themeable(n.uncontrollable(d,{value:"onChange"}))}); -;/*!src/components/Range.tsx*/ -amis.define("736bbb6",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),t=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("node_modules/react-input-range/lib/js/index")),u=e("node_modules/uncontrollable/cjs/index"),i=e("256b65d"),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.min,u=e.max,i=e.value,r=(e.className,e.classPrefix),s=e.multiple,o={activeTrack:s?r+"InputRange-track is-active":r+"InputRange-track",disabledInputRange:r+"InputRange is-disabled",inputRange:r+"InputRange",labelContainer:r+"InputRange-labelContainer",maxLabel:r+"InputRange-label "+r+"InputRange-label--max",minLabel:r+"InputRange-label "+r+"InputRange-label--min",slider:r+"InputRange-slider",sliderContainer:r+"InputRange-sliderContainer",track:r+"InputRange-track "+r+"InputRange-track--background",valueLabel:r+"InputRange-label "+r+"InputRange-label--value"};return t.default.createElement(l.default,a.__assign({},this.props,{classNames:o,minValue:n,maxValue:u,value:i}))},n.defaultProps={min:1,max:100},n}(t.default.Component);n.Range=r,n.default=i.themeable(u.uncontrollable(r,{value:"onChange"}))}); -;/*!src/components/Rating.tsx*/ -amis.define("1b690d8",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),s=a.__importDefault(t("node_modules/react/index")),r=a.__importDefault(t("node_modules/classnames/index")),n=t("256b65d"),i=function(t){function e(e){var a=t.call(this,e)||this;return a.state={value:e.value||0,stars:[],halfStar:{at:Math.floor(e.value),hidden:e.half&&e.value%1<.5}},a.getRate=a.getRate.bind(a),a.getStars=a.getStars.bind(a),a.moreThanHalf=a.moreThanHalf.bind(a),a.mouseOver=a.mouseOver.bind(a),a.mouseLeave=a.mouseLeave.bind(a),a.handleClick=a.handleClick.bind(a),a}return a.__extends(e,t),e.prototype.componentDidMount=function(){var t=this.state.value;this.setState({stars:this.getStars(t)})},e.prototype.componentWillReceiveProps=function(t){this.setState({stars:this.getStars(t.value),value:t.value,halfStar:{at:Math.floor(t.value),hidden:t.half&&t.value%1<.5}})},e.prototype.getRate=function(){var t,e=this.state.value,a=this.props.half;return t=a?Math.floor(e):Math.round(e)},e.prototype.getStars=function(t){"undefined"==typeof t&&(t=this.getRate());for(var e=[],a=this.props.count,s=0;a>s;s++)e.push({active:t-1>=s});return e},e.prototype.mouseOver=function(t){var e=this.props,a=e.readOnly,s=e.size,r=e.half;if(!a){var n=Number(t.target.getAttribute("data-index"));if(r){var i=this.moreThanHalf(t,s);i&&(n+=1),this.setState({halfStar:{at:n,hidden:i}})}else n+=1;this.setState({stars:this.getStars(n)})}},e.prototype.moreThanHalf=function(t,e){var a=t.target,s=t.clientX-a.getBoundingClientRect().left;return s=Math.round(Math.abs(s)),s>e/2},e.prototype.mouseLeave=function(){var t=this.state.value,e=this.props,a=e.half,s=e.readOnly;s||(a&&this.setState({halfStar:{at:Math.floor(t),hidden:t%1===0}}),this.setState({stars:this.getStars()}))},e.prototype.handleClick=function(t){var e=this.props,a=e.half,s=e.readOnly,r=e.onChange,n=e.size;if(!s){var i,o=Number(t.target.getAttribute("data-index"));if(a){var l=this.moreThanHalf(t,n);l&&(o+=1),i=l?o:o+.5,this.setState({halfStar:{at:o,hidden:l}})}else i=o+=1;this.setState({value:i,stars:this.getStars(o)}),r&&r(i)}},e.prototype.renderStars=function(){var t=this,e=this.state,a=e.halfStar,r=e.stars,n=this.props,i=n.char,o=n.half,l=n.readOnly,h=n.classnames;return r.map(function(e,r){var n=h("Rating",{"Rating-half":o&&!a.hidden&&a.at===r,"is-active":e.active,"is-disabled":l});return s.default.createElement("span",{className:n,key:r,"data-index":r,"data-forhalf":i,onMouseOver:t.mouseOver,onMouseMove:t.mouseOver,onMouseLeave:t.mouseLeave,onClick:t.handleClick},i)})},e.prototype.render=function(){var t=this.props.className;return s.default.createElement("div",{className:r.default(t?t:"")},this.renderStars())},e.defaultProps={containerClass:"rating",readOnly:!1,half:!0,value:0,count:5,"char":"★",size:24},e}(s.default.Component);e.Rating=i,e.default=n.themeable(i)}); -;/*!src/components/Switch.tsx*/ -amis.define("aa2413a",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),n=l.__importDefault(e("node_modules/react/index")),t=e("256b65d"),i={md:"i-switch-md",lg:"i-switch-lg",middle:"i-switch-md",large:"i-switch-lg"},s={info:"bg-info",primary:"bg-primary",danger:"bg-danger"},d=function(e){function a(a){var l=e.call(this,a)||this;return l.hanldeCheck=l.hanldeCheck.bind(l),l}return l.__extends(a,e),a.prototype.hanldeCheck=function(e){var a=this.props,l=a.trueValue,n=a.falseValue,t=a.onChange;t&&t(e.currentTarget.checked?l:n)},a.prototype.render=function(){var e=this.props,a=e.size,t=e.level,d=e.className,r=(e.classPrefix,e.onChange,e.value),c=(e.inline,e.trueValue),u=(e.falseValue,e.disabled),o=e.readOnly,h=e.checked,f=e.classnames,m=l.__rest(e,["size","level","className","classPrefix","onChange","value","inline","trueValue","falseValue","disabled","readOnly","checked","classnames"]);return d=(d?d:"")+(a&&i[a]?" "+i[a]:"")+(t&&s[t]?" "+s[t]:""),n.default.createElement("label",{className:f("Switch",u?"is-disabled":"",d)},n.default.createElement("input",l.__assign({type:"checkbox",checked:"undefined"!=typeof h?h:"undefined"==typeof r?!1:r==c,onChange:this.hanldeCheck,disabled:u,readOnly:o},m)),n.default.createElement("i",null))},a.defaultProps={trueValue:!0,falseValue:!1},a}(n.default.PureComponent);a.Switch=d,a.default=t.themeable(d)}); -;/*!src/components/Textarea.tsx*/ -amis.define("05807e2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),a=i.__importDefault(e("node_modules/react-textarea-autosize/lib/index"));t.default=a.default}); -;/*!src/components/TitleBar.tsx*/ -amis.define("06d307c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),s=e("256b65d"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.title,s=e.titleClassName,r=e.right,i=e.classnames,n=a?l.default.createElement("div",{className:s},a):null,d=n;return d=r?l.default.createElement("div",{className:"hbox hbox-auto-xs h-auto"},l.default.createElement("div",{className:"col bg-light b-b wrapper"},n),l.default.createElement("div",{className:"col v-middle padder-md text-right bg-light b-b wrapper-sm"},r)):l.default.createElement("div",{className:"wrapper"},n),l.default.createElement("div",{className:i(t,"TitleBar")},d)},t.defaultProps={className:"bg-light lter b-b",title:"标题",titleClassName:"m-n font-thin h3",right:!1},t}(l.default.PureComponent);t.TitleBar=r,t.default=s.themeable(r)}); -;/*!src/components/Toast.tsx*/ -amis.define("6ae88e0",function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var o=t("node_modules/tslib/tslib"),a=o.__importStar(t("node_modules/react-transition-group/Transition")),i=o.__importDefault(t("node_modules/react/index")),s=o.__importDefault(t("580df19")),r=t("9a80175"),l=t("256b65d"),u=t("b7bbd16"),d=t("5ab4e9d"),c=(n={},n[a.ENTERING]="in",n[a.ENTERED]="in",n[a.EXITING]="out",n),p=null,m=function(t,e,n,a){void 0===e&&(e=""),void 0===n&&(n={}),p&&p[a]&&p[a](t,e||"",o.__assign({},n))},_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasRendered=!1,e.state={items:[]},e}return o.__extends(e,t),e.prototype.componentDidMount=function(){this.hasRendered=!0,p=this},e.prototype.componentWillUnmount=function(){this.hasRendered&&(p=null)},e.prototype.notifiy=function(t,e,n,a){var i=this.state.items.concat();i.push(o.__assign(o.__assign({title:n,body:e,level:t},a),{id:r.uuid()})),this.setState({items:i})},e.prototype.success=function(t,e,n){this.notifiy("success",t,e,n)},e.prototype.error=function(t,e,n){this.notifiy("error",t,e,n)},e.prototype.info=function(t,e,n){this.notifiy("info",t,e,n)},e.prototype.warning=function(t,e,n){this.notifiy("warning",t,e,n)},e.prototype.handleDismissed=function(t){var e=this.state.items.concat();e.splice(t,1),this.setState({items:e})},e.prototype.render=function(){var t=this;if(p&&!this.hasRendered)return null;var e=this.props,n=e.classnames,o=e.className,a=e.timeout,s=e.position,r=e.showIcon,l=e.translate,u=e.closeButton,d=this.state.items;return i.default.createElement("div",{className:n("Toast-wrap Toast-wrap--"+s.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()}),o)},d.map(function(e,o){var s,d;return i.default.createElement(f,{classnames:n,key:e.id,title:e.title,body:e.body,level:e.level||"info",timeout:(s=e.timeout,null!==s&&void 0!==s?s:a),closeButton:(d=e.closeButton,null!==d&&void 0!==d?d:u),onDismiss:t.handleDismissed.bind(t,o),translate:l,showIcon:r})}))},e.defaultProps={position:"top-right",closeButton:!1,timeout:5e3},e.themeKey="toast",o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"success",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"error",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"info",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"warning",null),e}(i.default.Component);e.ToastComponent=_,e.default=l.themeable(d.localeable(_));var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={visible:!1},e.mounted=!1,e}return o.__extends(e,t),e.prototype.componentDidMount=function(){this.mounted=!0,this.setState({visible:!0})},e.prototype.componentWillUnmount=function(){clearTimeout(this.timer),this.mounted=!1},e.prototype.handleMouseEnter=function(){clearTimeout(this.timer)},e.prototype.handleMouseLeave=function(){this.handleEntered()},e.prototype.handleEntered=function(){var t=this.props.timeout;this.mounted&&t&&(this.timer=setTimeout(this.close,t))},e.prototype.close=function(){clearTimeout(this.timer),this.setState({visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.onDismiss,o=e.classnames,l=e.closeButton,d=e.title,p=e.body,m=e.allowHtml,_=e.level,f=e.showIcon,y=e.translate;return i.default.createElement(a.default,{mountOnEnter:!0,unmountOnExit:!0,"in":this.state.visible,timeout:750,onEntered:this.handleEntered,onExited:n},function(e){return i.default.createElement("div",{className:o("Toast Toast--"+_,c[e]),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave,onClick:l?r.noop:t.close},l?i.default.createElement("a",{onClick:t.close,className:o("Toast-close")},i.default.createElement(u.Icon,{icon:"close",className:"icon"})):null,f===!1?null:i.default.createElement("div",{className:o("Toast-icon")},"success"===_?i.default.createElement(u.Icon,{icon:"success",className:"icon"}):"error"==_?i.default.createElement(u.Icon,{icon:"fail",className:"icon"}):"info"==_?i.default.createElement(u.Icon,{icon:"info-circle",className:"icon"}):"warning"==_?i.default.createElement(u.Icon,{icon:"warning",className:"icon"}):null),d?i.default.createElement("div",{className:o("Toast-title")},y(d)):null,i.default.createElement("div",{className:o("Toast-body")},m?i.default.createElement(s.default,{html:p}):p))})},e.defaultProps={timeout:5e3,classPrefix:"",position:"top-right",allowHtml:!0,level:"info"},o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"handleEntered",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"close",null),e}(i.default.Component);e.ToastMessage=f,e.toast={container:p,success:function(t,e,n){return m(t,e,n,"success")},error:function(t,e,n){return m(t,e,n,"error")},info:function(t,e,n){return m(t,e,n,"info")},warning:function(t,e,n){return m(t,e,n,"warning")}}}); -;/*!src/components/Tree.tsx*/ -amis.define("d233af4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("9a80175"),i=e("d57879c"),d=e("256b65d"),o=e("b86428a"),r=e("b7bbd16"),s=a.__importDefault(e("0a43d97")),c=e("5ab4e9d"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props;this.setState({value:i.value2array(e.value,{multiple:e.multiple,delimiter:e.delimiter,valueField:e.valueField,options:e.options}),unfolded:this.syncUnFolded(e),inputValue:"",addingParent:null,isAdding:!1,isEditing:!1,editingItem:null})},t.prototype.componentWillReceiveProps=function(e){var t={};(this.props.value!==e.value||this.props.options!==e.options)&&(t.value=i.value2array(e.value,{multiple:e.multiple,delimiter:e.delimiter,valueField:e.valueField,options:e.options})),this.props.options!==e.options&&(t.unfolded=this.syncUnFolded(e)),this.setState(t)},t.prototype.syncUnFolded=function(e){var t={},a=this.props,n=a.foldedField,i=a.unfoldedField;return l.eachTree(e.options,function(a,l,d){if(a.children&&a.children.length){var o=!0;i&&"undefined"!=typeof a[i]?o=!!a[i]:n&&"undefined"!=typeof a[n]?o=!a[n]:(o=!!e.initiallyOpen,!o&&d<=e.unfoldedLevel&&(o=!0)),t[a[e.valueField]]=o}}),t},t.prototype.toggleUnfolded=function(e){var t;this.setState({unfolded:a.__assign(a.__assign({},this.state.unfolded),(t={},t[e[this.props.valueField]]=!this.state.unfolded[e[this.props.valueField]],t))})},t.prototype.clearSelect=function(){var e=this;this.setState({value:[]},function(){var t=e.props,a=t.joinValues,n=t.rootValue,l=t.onChange;l(a?n:[])})},t.prototype.handleSelect=function(e){var t=this;this.setState({value:[e]},function(){var a=t.props,n=a.joinValues,l=a.valueField,i=a.onChange;i(n?e[l]:e)})},t.prototype.handleCheck=function(e,t){var a=this,n=this.props,l=this.state.value.concat(),i=l.indexOf(e),d=this.props.onlyChildren;if(t){if(~i||l.push(e),!n.cascade){var o=e.children?e.children.concat([]):[];if(d)for(!~i&&o.length&&l.shift();o.length;){var r=o.shift(),s=l.indexOf(r);r.children?o.push.apply(o,r.children):~s||l.push(r)}else for(;o.length;){var r=o.shift(),s=l.indexOf(r);~s&&l.splice(s,1),n.withChildren&&l.push(r),r.children&&r.children.length&&o.push.apply(o,r.children)}}}else if(!t&&(~i&&l.splice(i,1),!n.cascade&&(n.withChildren||d)))for(var o=e.children?e.children.concat([]):[];o.length;){var r=o.shift(),s=l.indexOf(r);~s&&l.splice(s,1),r.children&&r.children.length&&o.push.apply(o,r.children)}this.setState({value:l},function(){var e=a.props,t=e.joinValues,n=e.extractValue,i=e.valueField,d=e.delimiter,o=e.onChange;o(t?l.map(function(e){return e[i]}).join(d):n?l.map(function(e){return e[i]}):l)})},t.prototype.handleAdd=function(e){void 0===e&&(e=null);var t=this.props,a=t.bultinCUD,n=t.onAdd,i=t.options,d=void 0;return a?void this.setState({isEditing:!1,isAdding:!0,addingParent:e}):(d=e?l.findTreeIndex(i,function(t){return t===e}):void 0,n&&n(d))},t.prototype.handleEdit=function(e){var t=this.props.labelField;this.setState({isEditing:!0,isAdding:!1,editingItem:e,inputValue:e[t]})},t.prototype.handleRemove=function(e){var t=this.props.onDelete;t&&t(e)},t.prototype.handleInputChange=function(e){this.setState({inputValue:e.currentTarget.value})},t.prototype.handleConfirm=function(){var e=this.state,t=e.inputValue,n=e.isAdding,i=e.addingParent,d=e.editingItem,o=e.isEditing;if(t){var r=this.props,s=r.labelField,c=r.onAdd,u=r.options,p=r.onEdit;this.setState({inputValue:"",isAdding:!1,isEditing:!1},function(){var e,r;if(n&&c){var m=i&&l.findTreeIndex(u,function(e){return e===i})||[];c(m.concat(0),(e={},e[s]=t,e),!0)}else o&&p&&p(a.__assign(a.__assign({},d),(r={},r[s]=t,r)),d,!0)})}},t.prototype.handleCancel=function(){this.setState({inputValue:"",isAdding:!1,isEditing:!1})},t.prototype.renderInput=function(e){void 0===e&&(e=null);var t=this.props,a=t.classnames,l=t.translate,i=this.state.inputValue;return n.default.createElement("div",{className:a("Tree-itemLabel")},n.default.createElement("div",{className:a("Tree-itemInput")},e,n.default.createElement("input",{onChange:this.handleInputChange,value:i,placeholder:l("请输入")}),n.default.createElement("a",{"data-tooltip":l("取消"),onClick:this.handleCancel},n.default.createElement(r.Icon,{icon:"close",className:"icon"})),n.default.createElement("a",{"data-tooltip":l("确认"),onClick:this.handleConfirm},n.default.createElement(r.Icon,{icon:"check",className:"icon"}))))},t.prototype.renderList=function(e,t,a){var i=this,d=this.props,c=d.itemClassName,u=d.showIcon,p=d.showRadio,m=d.multiple,h=d.disabled,f=d.labelField,_=d.valueField,g=d.iconField,v=d.disabledField,y=d.cascade,b=d.selfDisabledAffectChildren,E=d.onlyChildren,C=d.classnames,T=d.highlightTxt,F=d.options,N=d.maxLength,I=d.minLength,k=d.creatable,O=d.editable,A=d.removable,S=d.createTip,V=d.editTip,j=d.removeTip,x=d.translate,L=this.state,w=L.unfolded,P=L.value,R=L.isAdding,U=L.addingParent,D=L.editingItem,B=L.isEditing,z=0,M=e.map(function(e,d){if(!l.isVisible(e,F))return null;var L=!!~t.indexOf(e),M=e[v],W=!!a||L,q=null,G=!1;e.children&&e.children.length&&(q=i.renderList(e.children,t,y?!1:a||(b?M:!1)||m&&L),G=!!q.childrenChecked,!W&&E&&e.children.length===q.childrenChecked&&(W=!0),q=q.dom),(G||L)&&z++;var H=!!a||!!h||M;!H&&(N&&!W&&P.length>=N||I&&W&&P.length<=I)&&(H=!0);var J=m?n.default.createElement(s.default,{size:"sm",disabled:H,checked:L,onChange:i.handleCheck.bind(i,e)}):p?n.default.createElement(s.default,{size:"sm",disabled:H,checked:L,onChange:i.handleSelect.bind(i,e)}):null,K=!(e.children&&e.children.length||e.placeholder);return n.default.createElement("li",{key:d,className:C("Tree-item "+(c||""),{"Tree-item--isLeaf":K})},B&&D===e?i.renderInput(J):n.default.createElement("div",{className:C("Tree-itemLabel",{"is-children-checked":m&&!y&&G&&!H,"is-checked":L,"is-disabled":H})},K?n.default.createElement("span",{className:C("Tree-itemArrowPlaceholder")}):n.default.createElement("div",{onClick:function(){return i.toggleUnfolded(e)},className:C("Tree-itemArrow",{"is-folded":!w[e[_]]})},n.default.createElement(r.Icon,{icon:"right-arrow-bold",className:"icon"})),J,u?n.default.createElement("i",{className:C("Tree-itemIcon "+(e[g]||(q?"Tree-folderIcon":"Tree-leafIcon"))),onClick:function(){return!H&&(m?i.handleCheck(e,!W):i.handleSelect(e))}},n.default.createElement(r.Icon,{icon:q?"folder":"file",className:"icon"})):null,n.default.createElement("span",{className:C("Tree-itemText"),onClick:function(){return!H&&(m?i.handleCheck(e,!W):i.handleSelect(e))}},T?o.highlight(e[f],T):e[f]),H||R||B?null:n.default.createElement("div",{className:C("Tree-item-icons")},k&&l.hasAbility(e,"creatable")?n.default.createElement("a",{onClick:i.handleAdd.bind(i,e),"data-tooltip":x(S),"data-position":"left"},n.default.createElement(r.Icon,{icon:"plus",className:"icon"})):null,A&&l.hasAbility(e,"removable")?n.default.createElement("a",{onClick:i.handleRemove.bind(i,e),"data-tooltip":x(j),"data-position":"left"},n.default.createElement(r.Icon,{icon:"minus",className:"icon"})):null,O&&l.hasAbility(e,"editable")?n.default.createElement("a",{onClick:i.handleEdit.bind(i,e),"data-tooltip":x(V),"data-position":"left"},n.default.createElement(r.Icon,{icon:"pencil",className:"icon"})):null)),q&&w[e[_]]||R&&U===e?n.default.createElement("ul",{className:C("Tree-sublist")},R&&U===e?n.default.createElement("li",{className:C("Tree-item")},i.renderInput(J?n.default.cloneElement(J,{checked:!1,disabled:!0}):null)):null,q):!q&&e.placeholder&&w[e[_]]?n.default.createElement("ul",{className:C("Tree-sublist")},n.default.createElement("li",{className:C("Tree-item")},n.default.createElement("div",{className:C("Tree-placeholder")},e.placeholder))):null)});return{dom:M,childrenChecked:z}},t.prototype.render=function(){var e=this.props,t=e.className,a=e.placeholder,l=e.hideRoot,i=e.rootLabel,d=e.showIcon,o=e.classnames,s=e.creatable,c=e.rootCreatable,u=e.rootCreateTip,p=e.disabled,m=e.translate,h=this.props.options,f=this.state,_=f.value,g=f.isAdding,v=f.addingParent,y=f.isEditing,b=(f.inputValue,null);return s&&c!==!1&&l&&(b=n.default.createElement("a",{className:o("Tree-addTopBtn",{"is-disabled":g||y}),onClick:this.handleAdd.bind(this,null)},n.default.createElement(r.Icon,{icon:"plus",className:"icon"}),n.default.createElement("span",null,m(u)))),n.default.createElement("div",{className:o("Tree "+(t||""))},h&&h.length?n.default.createElement("ul",{className:o("Tree-list")},l?n.default.createElement(n.default.Fragment,null,b,g&&!v?n.default.createElement("li",{className:o("Tree-item")},this.renderInput()):null,this.renderList(h,_,!1).dom):n.default.createElement("li",{className:o("Tree-rootItem",{"is-checked":!_||!_.length})},n.default.createElement("div",{className:o("Tree-itemLabel")},n.default.createElement("span",{className:o("Tree-itemText"),onClick:this.clearSelect},d?n.default.createElement("i",{className:o("Tree-itemIcon Tree-rootIcon")},n.default.createElement(r.Icon,{icon:"home",className:"icon"})):null,i),p||!s||c===!1||g||y?null:n.default.createElement("div",{className:o("Tree-item-icons")},s?n.default.createElement("a",{onClick:this.handleAdd.bind(this,null),"data-tooltip":u},n.default.createElement(r.Icon,{icon:"plus",className:"icon"})):null)),n.default.createElement("ul",{className:o("Tree-sublist")},g&&!v?n.default.createElement("li",{className:o("Tree-item")},this.renderInput()):null,this.renderList(h,_,!1).dom))):n.default.createElement("div",{className:o("Tree-placeholder")},a))};var d,c,u,p,m;return t.defaultProps={showIcon:!0,initiallyOpen:!0,unfoldedLevel:0,showRadio:!1,multiple:!1,disabled:!1,withChildren:!1,onlyChildren:!1,labelField:"label",valueField:"value",iconField:"icon",unfoldedField:"unfolded",foldedField:"foled",disabledField:"disabled",joinValues:!0,extractValue:!1,delimiter:",",hideRoot:!0,rootLabel:"顶级",rootValue:0,cascade:!1,selfDisabledAffectChildren:!0,rootCreateTip:"添加一级节点",createTip:"添加孩子节点",editTip:"编辑该节点",removeTip:"移除该节点"},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleUnfolded",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"clearSelect",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCheck",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof i.Option&&i.Option)?d:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAdd",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof i.Option&&i.Option)?c:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleEdit",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(u="undefined"!=typeof i.Option&&i.Option)?u:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRemove",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(p="undefined"!=typeof n.default&&n.default.ChangeEvent)?p:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleConfirm",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCancel",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(m="undefined"!=typeof i.Options&&i.Options)?m:Object,Array,Boolean]),a.__metadata("design:returntype",Object)],t.prototype,"renderList",null),t}(n.default.Component);t.TreeSelector=u,t.default=d.themeable(c.localeable(u))}); -;/*!src/components/ResultList.tsx*/ -amis.define("bb67122",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),n=l.__importDefault(e("node_modules/react/index")),a=e("256b65d"),o=e("b7bbd16"),i=e("9a80175"),s=l.__importDefault(e("node_modules/sortablejs/Sortable")),d=e("node_modules/react-dom/index"),r=e("5ab4e9d"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id=i.guid(),t}l.__extends(t,e),t.prototype.componentDidMount=function(){this.props.sortable&&this.initSortable()},t.prototype.componentDidUpdate=function(){this.props.sortable?this.sortable||this.initSortable():this.desposeSortable()},t.prototype.componentWillUnmount=function(){this.desposeSortable()},t.prototype.handleRemove=function(e){var t,l=parseInt(e.currentTarget.getAttribute("data-index"),10),n=this.props,a=n.value,o=n.onChange;if(Array.isArray(a)){var i=a.concat();i.splice(l,1),null===(t=o)||void 0===t?void 0:t(i)}},t.prototype.initSortable=function(){var e=this,t=this.props.classPrefix,l=d.findDOMNode(this),n=l.querySelector("."+t+"Selections-items");n&&(this.sortable=new s.default(n,{group:"selections-"+this.id,animation:150,handle:"."+t+"Selections-dragbar",ghostClass:t+"Selections-item--dragging",onEnd:function(t){var l,n;if(t.newIndex!==t.oldIndex){var a=t.to;t.newIndex1?n.default.createElement(o.Icon,{className:l("Selections-dragbar icon"),icon:"drag-bar"}):null,n.default.createElement("label",null,d(t)),r?null:n.default.createElement("a",{className:l("Selections-delBtn"),"data-index":a,onClick:e.handleRemove},n.default.createElement(o.Icon,{icon:"close",className:"icon"})))})):n.default.createElement("div",{className:l("Selections-placeholder")},m(s)))};var a;return t.defaultProps={placeholder:"请先选择数据",itemRender:function(e){return n.default.createElement("span",null,""+(e.scopeLabel||"")+e.label)}},l.__decorate([i.autobind,l.__metadata("design:type",Function),l.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof n.default&&n.default.MouseEvent)?a:Object]),l.__metadata("design:returntype",void 0)],t.prototype,"handleRemove",null),t}(n.default.Component);t.ResultList=c,t.default=a.themeable(r.localeable(c))}); -;/*!src/components/TableCheckboxes.tsx*/ -amis.define("899a736",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=e("f203847"),n=e("256b65d"),r=a.__importDefault(e("node_modules/react/index")),s=e("node_modules/uncontrollable/cjs/index"),o=a.__importDefault(e("0a43d97")),u=e("f2e345e"),c=e("5ab4e9d"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.getColumns=function(){var e=this.props.columns;return Array.isArray(e)&&e.length||(e=[{label:"Label",name:"label"}]),e},t.prototype.renderTHead=function(){var e=this.props,t=e.options,a=e.classnames,n=e.value,s=e.option2value,u=this.getColumns(),c=l.BaseCheckboxes.value2array(n,t,s),d=t.filter(function(e){return!e.disabled}),i=!1,m=!!d.length;return d.forEach(function(e){var t=!!~c.indexOf(e);t&&!i?i=!0:!t&&m&&(m=!1)}),r.default.createElement("thead",null,r.default.createElement("tr",null,Array.isArray(t)&&t.length?r.default.createElement("th",{className:a("Table-checkCell")},r.default.createElement(o.default,{size:"sm",onChange:this.toggleAll,checked:i,partial:i&&!m})):null,u.map(function(e,t){return r.default.createElement("th",{key:t},e.label)})))},t.prototype.renderTBody=function(){var e=this,t=this.props,a=t.options,n=t.placeholder,s=t.classnames,u=t.cellRender,c=t.value,d=t.option2value,i=t.translate,m=this.getColumns(),f=l.BaseCheckboxes.value2array(c,a,d);return r.default.createElement("tbody",null,Array.isArray(a)&&a.length?a.map(function(t,a){var l=-1!==f.indexOf(t);return r.default.createElement("tr",{key:a,onClick:function(a){return a.defaultPrevented||e.toggleOption(t)}},r.default.createElement("td",{className:s("Table-checkCell")},r.default.createElement(o.default,{size:"sm",checked:l})),m.map(function(e,l){return r.default.createElement("td",{key:l},u(e,t,l,a))}))}):r.default.createElement("tr",null,r.default.createElement("td",{colSpan:m.length},i(n))))},t.prototype.render=function(){var e=this,t=this.props,a=t.value,n=t.options,s=t.className,u=t.labelClassName,c=t.disabled,d=t.classnames,i=t.option2value,m=t.itemClassName,f=t.itemRender,b=l.BaseCheckboxes.value2array(a,n,i),h=[];return Array.isArray(n)&&n.length&&(h=n.map(function(t,a){return r.default.createElement("div",{key:a,className:d("TableCheckboxes-item",m,t.className,c||t.disabled?"is-disabled":""),onClick:function(){return e.toggleOption(t)}},r.default.createElement("div",{className:d("TableCheckboxes-itemLabel")},f(t)),r.default.createElement(o.default,{size:"sm",checked:!!~b.indexOf(t),disabled:c||t.disabled,labelClassName:u,description:t.description}))})),r.default.createElement("div",{className:d("TableCheckboxes",s)},r.default.createElement("div",{className:d("Table-content")},r.default.createElement("table",{className:d("Table-table")},this.renderTHead(),this.renderTBody())))},t.defaultProps=a.__assign(a.__assign({},l.BaseCheckboxes.defaultProps),{cellRender:function(e,t){return r.default.createElement("span",null,u.resolveVariable(e.name,t))}}),t}(l.BaseCheckboxes);t.TableCheckboxes=d,t.default=n.themeable(c.localeable(s.uncontrollable(d,{value:"onChange"})))}); -;/*!src/components/ListCheckboxes.tsx*/ -amis.define("0afdbca",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),s=e("f203847"),l=e("256b65d"),i=t.__importDefault(e("node_modules/react/index")),r=e("node_modules/uncontrollable/cjs/index"),n=t.__importDefault(e("0a43d97")),c=e("5ab4e9d"),d=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.renderOption=function(e,a){var t=this,s=this.props,l=s.labelClassName,r=s.disabled,c=s.classnames,d=s.itemClassName,o=s.itemRender,u=this.valueArray;return Array.isArray(e.children)?i.default.createElement("div",{key:a,className:c("ListCheckboxes-group",e.className)},i.default.createElement("div",{className:c("ListCheckboxes-itemLabel")},o(e)),i.default.createElement("div",{className:c("ListCheckboxes-items",e.className)},e.children.map(function(e,a){return t.renderOption(e,a)}))):i.default.createElement("div",{key:a,className:c("ListCheckboxes-item",d,e.className,r||e.disabled?"is-disabled":""),onClick:function(){return t.toggleOption(e)}},i.default.createElement("div",{className:c("ListCheckboxes-itemLabel")},o(e)),i.default.createElement(n.default,{size:"sm",checked:!!~u.indexOf(e),disabled:r||e.disabled,labelClassName:l,description:e.description}))},a.prototype.render=function(){var e=this,a=this.props,t=a.value,l=a.options,r=a.className,n=a.placeholder,c=a.classnames,d=a.option2value,o=this.props.translate;this.valueArray=s.BaseCheckboxes.value2array(t,l,d);var u=[];return Array.isArray(l)&&l.length&&(u=l.map(function(a,t){return e.renderOption(a,t)})),i.default.createElement("div",{className:c("ListCheckboxes",r)},u&&u.length?u:i.default.createElement("div",{className:c("ListCheckboxes-placeholder")},o(n)))},a}(s.BaseCheckboxes);a.ListCheckboxes=d,a.default=l.themeable(c.localeable(r.uncontrollable(d,{value:"onChange"})))}); -;/*!src/components/TreeCheckboxes.tsx*/ -amis.define("832511b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),t=e("f203847"),n=e("256b65d"),i=r.__importDefault(e("node_modules/react/index")),l=e("node_modules/uncontrollable/cjs/index"),s=r.__importDefault(e("0a43d97")),o=e("9a80175"),d=r.__importDefault(e("acad559")),c=e("5ab4e9d"),u=e("b7bbd16"),p=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.state={expanded:[]},a}return r.__extends(a,e),a.prototype.componentDidMount=function(){this.syncExpanded()},a.prototype.componentDidUpdate=function(e){var a=this.props;this.state.expanded.length||a.expand===e.expand&&a.options===e.options||this.syncExpanded()},a.prototype.syncExpanded=function(){var e=this.props.options,a=this.props.expand,r=[];Array.isArray(e)&&("first"===a||"root"===a?e.every(function(e,t){return Array.isArray(e.children)?(r.push(""+t),"root"===a):!0}):"all"===a&&o.everyTree(e,function(e,a,t,n,i){return Array.isArray(e.children)&&r.push(""+i.concat(a).join("-")),!0}),this.setState({expanded:r}))},a.prototype.toggleOption=function(e){var a,r=this.props,n=r.value,i=r.onChange,l=r.option2value,s=r.options,o=r.onDeferLoad;if(!e.disabled){if(e.defer&&!e.loaded)return void(null===(a=o)||void 0===a?void 0:a(e));var d=t.BaseCheckboxes.value2array(n,s,l);if(void 0===e.value&&Array.isArray(e.children)&&e.children.length){var c=function(e){return(Array.isArray(e.children)&&e.children.length?e.children.some(c):!1)||void 0!==e.value&&~d.indexOf(e)},u=e.children.some(c),p=function(e){if(Array.isArray(e.children)&&e.children.length&&e.children.forEach(p),void 0!==e.value){var a=d.indexOf(e);~a&&d.splice(a,1),u||d.push(e)}};e.children.forEach(p)}else{var h=d.indexOf(e);~h?d.splice(h,1):d.push(e)}var f=l?d.map(function(e){return l(e)}):d;i&&i(f)}},a.prototype.toggleCollapsed=function(e,a){var r=this.props.onDeferLoad,t=this.state.expanded.concat(),n=t.indexOf(a);~n?t.splice(n,1):t.push(a),this.setState({expanded:t},e.defer&&r?function(){return r(e)}:void 0)},a.prototype.renderItem=function(e,a,r){var t=this;void 0===r&&(r=[]);var n=this.props,l=n.labelClassName,o=n.disabled,c=n.classnames,p=n.itemClassName,h=n.itemRender,f=r.join("-"),v=this.valueArray,m=!1,y=!1,b=Array.isArray(e.children)&&e.children.length;if(void 0===e.value&&b){var x=!0,g=!1,A=function(e){if(Array.isArray(e.children)&&e.children.length&&e.children.forEach(A),void 0!==e.value){var a=!!~v.indexOf(e);a&&!g?g=!0:!a&&x&&(x=!1),y=g,m=g&&!x}};e.children.forEach(A)}else y=!!~v.indexOf(e);var C=!!~this.state.expanded.indexOf(f);return i.default.createElement("div",{key:a,className:c("TreeCheckboxes-item",o||e.disabled||e.defer&&e.loading?"is-disabled":"",C?"is-expanded":"")},i.default.createElement("div",{className:c("TreeCheckboxes-itemInner",p,e.className),onClick:function(){return t.toggleOption(e)}},b||e.defer?i.default.createElement("a",{onClick:function(a){a.stopPropagation(),t.toggleCollapsed(e,f)},className:c("Table-expandBtn",C?"is-active":"")},i.default.createElement(u.Icon,{icon:"right-arrow-bold",className:"icon"})):null,i.default.createElement("div",{className:c("TreeCheckboxes-itemLabel")},h(e)),e.defer&&e.loading?i.default.createElement(d.default,{show:!0,size:"sm"}):null,!e.defer||e.loaded?i.default.createElement(s.default,{size:"sm",checked:y,partial:m,disabled:o||e.disabled,labelClassName:l,description:e.description}):null),b?i.default.createElement("div",{className:c("TreeCheckboxes-sublist")},e.children.map(function(e,a){return t.renderItem(e,a,r.concat(a))})):null)},a.prototype.render=function(){var e=this,a=this.props,r=a.value,n=a.options,l=a.className,s=a.placeholder,o=a.classnames,d=a.option2value,c=a.translate;this.valueArray=t.BaseCheckboxes.value2array(r,n,d);var u=[];return Array.isArray(n)&&n.length&&(u=n.map(function(a,r){return e.renderItem(a,r,[r])})),i.default.createElement("div",{className:o("TreeCheckboxes",l)},u&&u.length?u:i.default.createElement("div",{className:o("TreeCheckboxes-placeholder")},c(s)))},a.defaultProps=r.__assign(r.__assign({},t.BaseCheckboxes.defaultProps),{expand:"first"}),a}(t.BaseCheckboxes);a.TreeCheckboxes=p,a.default=n.themeable(c.localeable(l.uncontrollable(p,{value:"onChange"})))}); -;/*!src/components/InputBox.tsx*/ -amis.define("fe0e0e4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("256b65d"),l=a.__importDefault(e("4ee46ff")),s=e("9a80175"),r=e("b7bbd16"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isFocused:!1},t}a.__extends(t,e),t.prototype.clearValue=function(e){var t,a;e.preventDefault();var n=this.props.onChange,o=this.props.onChange;null===(t=n)||void 0===t?void 0:t(e),null===(a=o)||void 0===a?void 0:a("")},t.prototype.handleChange=function(e){var t=this.props.onChange;t&&t(e.currentTarget.value)},t.prototype.handleFocus=function(e){var t=this.props.onFocus;t&&t(e),this.setState({isFocused:!0})},t.prototype.handleBlur=function(e){var t=this.props.onBlur;t&&t(e),this.setState({isFocused:!1})},t.prototype.render=function(){var e=this.props,t=e.className,o=e.classnames,s=(e.classPrefix,e.clearable),d=e.disabled,i=e.hasError,u=e.value,c=e.placeholder,p=e.prefix,_=e.children,h=a.__rest(e,["className","classnames","classPrefix","clearable","disabled","hasError","value","placeholder","prefix","children"]),f=this.state.isFocused;return n.default.createElement("div",{className:o("InputBox",t,f?"is-focused":"",d?"is-disabled":"",i?"is-error":"",h.onClick?"is-clickable":"")},p,n.default.createElement(l.default,a.__assign({},h,{value:u||"",onChange:this.handleChange,placeholder:c,onFocus:this.handleFocus,onBlur:this.handleBlur})),_,s&&!d&&u?n.default.createElement("a",{onClick:this.clearValue,className:o("InputBox-clear")},n.default.createElement(r.Icon,{icon:"close",className:"icon"})):null)};var o;return t.defaultProps={clearable:!0,placeholder:""},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof n.default&&n.default.ChangeEvent)?o:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),t}(n.default.Component);t.InputBox=d,t.default=o.themeable(d)}); -;/*!src/components/ChainedCheckboxes.tsx*/ -amis.define("5b21367",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=e("f203847"),s=e("256b65d"),n=a.__importDefault(e("node_modules/react/index")),i=e("node_modules/uncontrollable/cjs/index"),d=a.__importDefault(e("0a43d97")),r=e("9a80175"),o=a.__importDefault(e("node_modules/lodash/times")),c=a.__importDefault(e("acad559")),u=e("5ab4e9d"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selected:[]},t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.defaultSelectedIndex;void 0!==e&&this.setState({selected:[""+e]})},t.prototype.selectOption=function(e,t,a){var l=this.props.onDeferLoad,s=this.state.selected.concat();s.splice(t,s.length-t),s.push(a),this.setState({selected:s},e.defer&&l?function(){return l(e)}:void 0)},t.prototype.renderOption=function(e,t,a,l){var s=this,i=this.props,r=i.labelClassName,o=i.disabled,u=i.classnames,h=i.itemClassName,m=i.itemRender,p=this.valueArray;return Array.isArray(e.children)||e.defer?n.default.createElement("div",{key:t,className:u("ChainedCheckboxes-item",h,e.className,o||e.disabled?"is-disabled":"",~this.state.selected.indexOf(l)?"is-active":""),onClick:function(){return s.selectOption(e,a,l)}},n.default.createElement("div",{className:u("ChainedCheckboxes-itemLabel")},m(e)),e.defer&&e.loading?n.default.createElement(c.default,{size:"sm",show:!0}):null):n.default.createElement("div",{key:t,className:u("ChainedCheckboxes-item",h,e.className,o||e.disabled?"is-disabled":""),onClick:function(){return s.toggleOption(e)}},n.default.createElement("div",{className:u("ChainedCheckboxes-itemLabel")},m(e)),n.default.createElement(d.default,{size:"sm",checked:!!~p.indexOf(e),disabled:o||e.disabled,labelClassName:r,description:e.description}))},t.prototype.render=function(){var e=this,t=this.props,a=t.value,s=t.options,i=t.className,d=t.placeholder,c=t.classnames,u=t.option2value,h=(t.itemRender,t.translate);this.valueArray=l.BaseCheckboxes.value2array(a,s,u);var m=[];if(Array.isArray(s)&&s.length){var p=this.state.selected.concat(),f=Math.min(r.getTreeDepth(s),3);o.default(Math.max(f-p.length,1),function(){return p.push(null)}),p.reduce(function(t,a,l){var s=t.body,i=t.options,d=t.subTitle,r=t.indexes,o=t.placeholder,u=[],m="",p="",f=r;return s.push(n.default.createElement("div",{key:l,className:c("ChainedCheckboxes-col")},d?n.default.createElement("div",{className:c("ChainedCheckboxes-subTitle")},d):null,Array.isArray(i)&&i.length?i.map(function(t,s){var n=r.concat(s).join("-");return n===a&&(m=t.subTitle,u=t.children,f=r.concat(s),p=t.placeholder),e.renderOption(t,s,l,n)}):n.default.createElement("div",{className:c("ChainedCheckboxes-placeholder")},h(o)))),{options:u,subTitle:m,placeholder:p,indexes:f,body:s}},{options:s,body:m,indexes:[],placeholder:d})}return n.default.createElement("div",{className:c("ChainedCheckboxes",i)},m&&m.length?m:n.default.createElement("div",{className:c("ChainedCheckboxes-placeholder")},h(d)))},t}(l.BaseCheckboxes);t.ChainedCheckboxes=h,t.default=s.themeable(u.localeable(i.uncontrollable(h,{value:"onChange"})))}); -;/*!src/components/ListRadios.tsx*/ -amis.define("aff578b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("256b65d"),l=a.__importDefault(e("node_modules/react/index")),i=e("node_modules/uncontrollable/cjs/index"),s=a.__importDefault(e("0a43d97")),o=e("d57879c"),r=e("9a80175"),d=a.__importDefault(e("node_modules/lodash/isEqual")),u=e("5ab4e9d"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.resolveSelected=function(e,t,a){return void 0===a&&(a=function(e){return e}),r.findTree(t,function(t){return d.default(a(t),e)})},t.prototype.toggleOption=function(e){var a,n=this.props,l=n.onChange,i=n.clearable,s=n.value,o=n.options,r=n.option2value,d=e;if(i){var u=t.resolveSelected(s,o,r);u&&(d=null)}null===(a=l)||void 0===a?void 0:a(d&&r?r(d):d)},t.prototype.renderOption=function(e,t){var a=this,n=this.props,i=n.disabled,o=n.classnames,r=n.itemClassName,d=n.itemRender,u=n.showRadio,c=this.selected;return Array.isArray(e.children)?l.default.createElement("div",{key:t,className:o("ListRadios-group",e.className)},l.default.createElement("div",{className:o("ListRadios-itemLabel")},d(e)),l.default.createElement("div",{className:o("ListRadios-items",e.className)},e.children.map(function(e,t){return a.renderOption(e,t)}))):l.default.createElement("div",{key:t,className:o("ListRadios-item",r,e.className,i||e.disabled?"is-disabled":"",c===e?"is-active":""),onClick:function(){return a.toggleOption(e)}},l.default.createElement("div",{className:o("ListRadios-itemLabel")},d(e)),u!==!1?l.default.createElement(s.default,{type:"radio",size:"sm",checked:c===e,disabled:i||e.disabled}):null)},t.prototype.render=function(){var e=this,a=this.props,n=a.value,i=a.options,s=a.className,o=a.placeholder,r=a.classnames,d=a.option2value,u=this.props.translate;this.selected=t.resolveSelected(n,i,d);var c=[];return Array.isArray(i)&&i.length&&(c=i.map(function(t,a){return e.renderOption(t,a)})),l.default.createElement("div",{className:r("ListRadios",s)},c&&c.length?c:l.default.createElement("div",{className:r("ListRadios-placeholder")},u(o)))};var n;return t.defaultProps={placeholder:"暂无选项",itemRender:function(e){return l.default.createElement("span",null,e.label)}},a.__decorate([r.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(n="undefined"!=typeof o.Option&&o.Option)?n:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleOption",null),t}(l.default.Component);t.BaseRadios=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t}(c);t.ListRadios=p;var m=n.themeable(u.localeable(i.uncontrollable(p,{value:"onChange"})));m.resolveSelected=c.resolveSelected,t.default=m}); -;/*!src/components/TreeRadios.tsx*/ -amis.define("5281626",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("256b65d"),s=a.__importDefault(e("node_modules/react/index")),r=e("node_modules/uncontrollable/cjs/index"),i=a.__importDefault(e("0a43d97")),d=e("9a80175"),o=a.__importDefault(e("acad559")),l=e("aff578b"),c=e("5ab4e9d"),p=e("b7bbd16"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={expanded:[]},t}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.syncExpanded()},t.prototype.componentDidUpdate=function(e){var t=this.props;this.state.expanded.length||t.expand===e.expand&&t.options===e.options||this.syncExpanded()},t.prototype.syncExpanded=function(){var e=this.props.options,t=this.props.expand,a=[];Array.isArray(e)&&("first"===t||"root"===t?e.every(function(e,n){return Array.isArray(e.children)?(a.push(""+n),"root"===t):!0}):"all"===t&&d.everyTree(e,function(e,t,n,s,r){return Array.isArray(e.children)&&a.push(""+r.concat(t).join("-")),!0}),this.setState({expanded:a}))},t.prototype.toggleCollapsed=function(e,t){var a=this.props.onDeferLoad,n=this.state.expanded.concat(),s=n.indexOf(t);~s?n.splice(s,1):n.push(t),this.setState({expanded:n},e.defer&&a?function(){return a(e)}:void 0)},t.prototype.renderItem=function(e,t,a){var n=this;void 0===a&&(a=[]);var r=this.props,d=r.disabled,l=r.classnames,c=r.itemClassName,u=r.itemRender,f=r.showRadio,m=a.join("-"),h=Array.isArray(e.children)&&e.children.length,v=e===this.selected,y=!!~this.state.expanded.indexOf(m);return s.default.createElement("div",{key:t,className:l("TreeRadios-item",d||e.disabled||e.defer&&e.loading?"is-disabled":"",y?"is-expanded":"",v?"is-active":"")},s.default.createElement("div",{className:l("TreeRadios-itemInner",c,e.className,v?"is-active":""),onClick:function(){return n.toggleOption(e)}},h||e.defer?s.default.createElement("a",{onClick:function(t){t.stopPropagation(),n.toggleCollapsed(e,m)},className:l("Table-expandBtn",y?"is-active":"")},s.default.createElement(p.Icon,{icon:"right-arrow-bold",className:"icon"})):null,s.default.createElement("div",{className:l("TreeRadios-itemLabel")},u(e)),e.defer&&e.loading?s.default.createElement(o.default,{show:!0,size:"sm"}):null,e.defer&&!e.loaded||void 0===e.value||f===!1?null:s.default.createElement(i.default,{type:"radio",size:"sm",checked:v,disabled:d||e.disabled})),h?s.default.createElement("div",{className:l("TreeRadios-sublist")},e.children.map(function(e,t){return n.renderItem(e,t,a.concat(t))})):null)},t.prototype.render=function(){var e=this,t=this.props,a=t.value,n=t.options,r=t.className,i=t.placeholder,d=t.classnames,o=t.option2value,c=t.translate;this.selected=l.BaseRadios.resolveSelected(a,n,o);var p=[];return Array.isArray(n)&&n.length&&(p=n.map(function(t,a){return e.renderItem(t,a,[a])})),s.default.createElement("div",{className:d("TreeRadios",r)},p&&p.length?p:s.default.createElement("div",{className:d("TreeRadios-placeholder")},c(i)))},t.defaultProps=a.__assign(a.__assign({},l.BaseRadios.defaultProps),{expand:"first"}),t}(l.BaseRadios);t.TreeRadios=u,t.default=n.themeable(c.localeable(r.uncontrollable(u,{value:"onChange"})))}); -;/*!src/components/AssociatedCheckboxes.tsx*/ -amis.define("5e86ffe",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),o=e("f203847"),n=e("d57879c"),i=e("9a80175"),s=a.__importDefault(e("aff578b")),d=e("256b65d"),u=e("node_modules/uncontrollable/cjs/index"),r=a.__importDefault(e("0afdbca")),c=a.__importDefault(e("899a736")),f=a.__importDefault(e("832511b")),p=a.__importDefault(e("5b21367")),h=a.__importDefault(e("5281626")),m=e("b7bbd16"),v=e("5ab4e9d"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={leftValue:t.props.leftDefaultValue},t}a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.state.leftValue,t=this.props,a=t.options,l=t.onDeferLoad;if(e){var o=s.default.resolveSelected(e,a,function(e){return e.ref});o&&l&&o.defer&&l(o)}},t.prototype.leftOption2Value=function(e){return e.value},t.prototype.handleLeftSelect=function(e){var t=this.props,a=t.options,l=t.onDeferLoad;this.setState({leftValue:e});var o=s.default.resolveSelected(e,a,function(e){return e.ref});o&&l&&o.defer&&l(o)},t.prototype.handleRetry=function(e){var t,a=this.props.onDeferLoad;null===(t=a)||void 0===t?void 0:t(e)},t.prototype.render=function(){var e=this.props,t=e.classnames,a=e.className,o=e.leftOptions,n=e.options,i=e.option2value,d=e.rightMode,u=e.onChange,v=e.columns,_=e.value,b=e.leftMode,y=e.cellRender,g=s.default.resolveSelected(this.state.leftValue,n,function(e){return e.ref}),C=this.props.translate;return l.default.createElement("div",{className:t("AssociatedCheckboxes",a)},l.default.createElement("div",{className:t("AssociatedCheckboxes-left")},"tree"===b?l.default.createElement(h.default,{option2value:this.leftOption2Value,options:o,value:this.state.leftValue,onChange:this.handleLeftSelect,showRadio:!1}):l.default.createElement(s.default,{option2value:this.leftOption2Value,options:o,value:this.state.leftValue,onChange:this.handleLeftSelect,showRadio:!1})),l.default.createElement("div",{className:t("AssociatedCheckboxes-right")},this.state.leftValue?g?g.defer&&!g.loaded?l.default.createElement("div",{className:t("AssociatedCheckboxes-box")},l.default.createElement("div",{className:t("AssociatedCheckboxes-reload",g.loading?"is-spin":"is-clickable"),onClick:g.loading?void 0:this.handleRetry.bind(this,g)},l.default.createElement(m.Icon,{icon:"reload",className:"icon"})),g.loading?l.default.createElement("p",null,C("加载中")):l.default.createElement("p",null,C("点击刷新重新加载"))):"table"===d?l.default.createElement(c.default,{columns:v,value:_,options:g.children||[],onChange:u,option2value:i,cellRender:y}):"tree"===d?l.default.createElement(f.default,{value:_,options:g.children||[],onChange:u,option2value:i}):"chained"===d?l.default.createElement(p.default,{value:_,options:g.children||[],onChange:u,option2value:i}):l.default.createElement(r.default,{value:_,options:g.children||[],onChange:u,option2value:i}):l.default.createElement("div",{className:t("AssociatedCheckboxes-box")},C("配置错误,选项无法与左侧选项对应")):l.default.createElement("div",{className:t("AssociatedCheckboxes-box")},C("请先选择左侧数据"))))};var o,d;return a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof n.Option&&n.Option)?o:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"leftOption2Value",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof n.Option&&n.Option)?d:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleLeftSelect",null),t}(o.BaseCheckboxes);t.AssociatedCheckboxes=_,t.default=d.themeable(v.localeable(u.uncontrollable(_,{value:"onChange"})))}); -;/*!src/components/Transfer.tsx*/ -amis.define("0573406",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),l=t.__importDefault(e("node_modules/react/index")),n=e("256b65d"),r=e("f203847"),s=e("node_modules/uncontrollable/cjs/index"),o=t.__importDefault(e("bb67122")),c=t.__importDefault(e("899a736")),u=t.__importDefault(e("0afdbca")),i=t.__importDefault(e("832511b")),d=e("9a80175"),h=t.__importDefault(e("fe0e0e4")),f=e("b7bbd16"),p=t.__importDefault(e("node_modules/lodash/debounce")),m=t.__importDefault(e("5b21367")),v=t.__importDefault(e("5e86ffe")),_=e("5ab4e9d"),g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.state={inputValue:"",searchResult:null},a.unmounted=!1,a.lazySearch=p.default(function(e){(function(e){return t.__awaiter(a,void 0,void 0,function(){var a,l,n=this;return t.__generator(this,function(t){switch(t.label){case 0:return a=this.props.onSearch,[4,a(e,function(e){return n.cancelSearch=e})];case 1:if(l=t.sent(),this.unmounted)return[2];if(!Array.isArray(l))throw new Error("onSearch 需要返回数组");return this.setState({searchResult:l}),[2]}})})})(e).catch(function(e){return console.error(e)})},250,{trailing:!0,leading:!1}),a}return t.__extends(a,e),a.prototype.componentWillUnmount=function(){this.lazySearch.cancel(),this.unmounted=!0},a.prototype.toggleAll=function(){var e=this.props,a=e.options,t=e.option2value,l=e.onChange,n=e.value,s=r.BaseCheckboxes.value2array(n,a,t),o=d.flattenTree(a).filter(function(e,a,t){return!e.disabled&&void 0!==e.value&&t.indexOf(e)===a});s=s.length1&&!d?n.default.createElement("a",{className:o("ArrayInput-itemDrager drag-bar")},n.default.createElement(i.Icon,{icon:"drag-bar",className:"icon"})):null,l({value:e,onChange:this.handleItemOnChange.bind(this,t),index:t,disabled:d}),u===!1||d||p&&!(a.length>p)?null:n.default.createElement("a",{"data-index":t,className:o("ArrayInput-itemRemove"),onClick:this.handleRemove},n.default.createElement(i.Icon,{icon:"close",className:"icon"})))},t.prototype.render=function(){var e=this,t=this.props,a=t.classnames,r=t.value,l=t.placeholder,d=t.translate,s=t.maxLength,u=t.sortable,p=t.sortTip,c=t.disabled;return n.default.createElement("div",{className:a("ArrayInput")},Array.isArray(r)&&r.length?n.default.createElement("div",{className:a("ArrayInput-items drag-group")},r.map(function(t,a){return e.renderItem(t,a,r)})):n.default.createElement("div",{className:a("ArrayInput-placeholder")},d(l)),n.default.createElement("div",{className:a("ArrayInput-toolbar",u&&Array.isArray(r)&&r.length>1?"ArrayInput-toolbar--dnd":"")},!Array.isArray(r)||!s||r.length1?d(p):""):null))};var r;return t.defaultProps={placeholder:"<空>",itemRender:function(e){var t=e.value,a=e.onChange;return n.default.createElement(d.default,{value:t,onChange:a})}},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"dragTipRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAdd",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof n.default&&n.default.MouseEvent)?r:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRemove",null),t}(n.default.Component);t.ArrayInput=m,t.default=r.themeable(l.localeable(u.uncontrollable(m,{value:"onChange"})))}); -;/*!src/components/index.tsx*/ -amis.define("1953fc1",function(a,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=a("node_modules/tslib/tslib"),r=e.__importDefault(a("bb0be5b"));t.NotFound=r.default;var f=e.__importStar(a("bfe4ee0"));t.AlertComponent=f.default,t.alert=f.alert,t.confirm=f.confirm,t.prompt=f.prompt;var l=e.__importStar(a("703f435"));t.ContextMenu=l.default,t.openContextMenus=l.openContextMenus;var u=e.__importDefault(a("4e7c54b"));t.AsideNav=u.default;var o=e.__importDefault(a("a67acca"));t.Button=o.default;var _=e.__importDefault(a("0a43d97"));t.Checkbox=_.default;var d=e.__importDefault(a("f203847"));t.Checkboxes=d.default;var i=e.__importDefault(a("0d13109"));t.Collapse=i.default;var p=e.__importDefault(a("f11d26b"));t.ColorPicker=p.default;var m=e.__importDefault(a("dd24912"));t.DatePicker=m.default;var v=e.__importDefault(a("eaae631"));t.DateRangePicker=v.default;var D=e.__importDefault(a("01a937e"));t.Drawer=D.default;var b=e.__importStar(a("8ac7656"));t.Tabs=b.default,t.Tab=b.Tab;var c=e.__importDefault(a("997c87d"));t.Editor=c.default;var n=e.__importDefault(a("580df19"));t.Html=n.default;var s=e.__importStar(a("b7bbd16"));t.Icons=s;var C=e.__importDefault(a("4c26fd3"));t.Layout=C.default;var T=e.__importDefault(a("4783ce8"));t.LazyComponent=T.default;var x=e.__importDefault(a("628f736"));t.Modal=x.default;var k=e.__importDefault(a("997df41"));t.Overlay=k.default;var h=e.__importDefault(a("2b3dcdf"));t.PopOver=h.default;var S=e.__importDefault(a("8e37af0"));t.Radios=S.default;var R=e.__importDefault(a("736bbb6"));t.Range=R.default;var y=e.__importDefault(a("1b690d8"));t.Rating=y.default;var L=e.__importDefault(a("d57879c"));t.Select=L.default;var M=e.__importDefault(a("acad559"));t.Spinner=M.default;var P=e.__importDefault(a("aa2413a"));t.Switch=P.default;var A=e.__importDefault(a("05807e2"));t.Textarea=A.default;var B=e.__importDefault(a("06d307c"));t.TitleBar=B.default;var I=e.__importStar(a("6ae88e0"));t.ToastComponent=I.default,t.toast=I.toast;var g=e.__importDefault(a("007c3b6"));t.Tooltip=g.default;var N=e.__importDefault(a("8d5abcb"));t.TooltipWrapper=N.default;var O=e.__importDefault(a("d233af4"));t.Tree=O.default;var w=e.__importDefault(a("15e4197"));t.Alert2=w.default;var j=e.__importDefault(a("0573406"));t.Transfer=j.default;var z=e.__importDefault(a("5c35784"));t.TabsTransfer=z.default;var E=e.__importDefault(a("0afdbca"));t.ListCheckboxes=E.default;var F=e.__importDefault(a("899a736"));t.TableCheckboxes=F.default;var G=e.__importDefault(a("832511b"));t.TreeCheckboxes=G.default;var H=e.__importDefault(a("5b21367"));t.ChainedCheckboxes=H.default;var W=e.__importDefault(a("d14c6a1"));t.ResultBox=W.default;var q=e.__importDefault(a("fe0e0e4"));t.InputBox=q.default;var J=e.__importDefault(a("aff578b"));t.ListRadios=J.default;var K=e.__importDefault(a("5281626"));t.TreeRadios=K.default;var Q=e.__importDefault(a("fc16070"));t.ListGroup=Q.default;var U=e.__importDefault(a("10d195e"));t.NumberInput=U.default;var V=e.__importDefault(a("05f66e3"));t.ArrayInput=V.default}); -;/*!src/locale/en.ts*/ -amis.define("ee0cecb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("5ab4e9d");a.register("en",{"确认":"Confirm","取消":"Cancel","YYYY年":"YYYY","{{from}}年-{{to}}年":"{{from}} - {{to}}","请选择日期":"Select Date","请选择日期以及时间":"Select Datetime","请选择时间":"Select Time","系统消息":"System Info","加载中":"Loading","点击刷新重新加载":"Click to refresh","请先选择左侧数据":"Select from left first.","请选择颜色":"Select color","现在":"Now","今天":"Today","昨天":"Yesterday","本周一":"Monday","本月初":"Earlier this month","上个月初":"Earlier last month","上个季节初":"Earlier last quarter","明天":"Tomorrow","本周日":"Sunday","本月底":"last day of this month","{{hours}}小时前":"{{hours}} hour(s) ago","{{hours}}小时后":"{{hours}} hour(s) after","{{days}}天前":"{{days}} day(s) ago","{{days}}天后":"{{days}} day(s) after","{{weeks}}周前":"{{weeks}} week(s) ago","{{weeks}}周后":"{{weeks}} week(s) after","{{months}}月前":"{{months}} month(s) ago","{{months}}月后":"{{months}} month(s) after","{{quarters}}季度前":"{{quarters}} quarter(s) ago","{{quarters}}季度后":"{{quarters}} quarter(s) after"," 至 ":" to ","最近1天":"Last day","最近7天":"Last 7 days","最近90天":"Last 90 days","上周":"Last week","本月":"This month","上个月":"Last month","上个季节":"Last quarter","本季度":"This quarter","请选择日期范围":"Select Daterange","关闭":"Close","暂无选项":"No options","请选择位置":"Pick location","无":"None","没有数据":"No data","请先选择数据":"Select data first","请选择":"Select","全选":"Check all","搜索结果":"Search result","清空":"Clear","当前选择":"Selected","添加一级节点":"Add root node","添加孩子节点":"Add child","编辑该节点":"Edit this node","移除该节点":"Remove this node","请输入":"Enter","请输入关键字":"Enter keywords","新增选项":"New option","请输入街道信息":"Enter street info","删除":"Delete","新增":"New","新增一条":"Add a data","新增一条数据":"Add a data","类型":"Type","拖拽排序":"Drag to sort","删除失败":"Delete failed","确认要删除?":"Are you sure you want to delete?","组合表单成员数量不够,低于设定的最小{{minLength}}个,请添加更多的成员。":"The number of combined form members is not enough. It is lower than the minimum {{minLength}} set. Please add more members.","组合表单成员数量超出,超出设定的最大{{maxLength}}个,请删除多余的成员。":"The number of combined form members exceeds the set maximum of {{MaxLength}}}. Please delete the extra members.","子表单验证失败,请仔细检查":"Validate failed, please check this Subform.","成员{{index}}":"Member {{index}}","清空数据":"Clear data","您选择的文件 {{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制,请重新选择。":"The file {{filename}} you selected has a size of {actualsize}} which exceeds the maximum limit of {{maxsize}}. Please select again.","您添加的文件{{files}}不符合类型的`{{accept}}`的设定,请仔细检查。":"The file you added {{files}} does not match the setting of the type `{{accept}}`. Please check it carefully.","把文件拖到这,然后松完成添加!":"Drag the file here, then release to finish adding!","把图片拖到这,然后松开完成添加!":"Drag the picture here, then release to finish adding!","重新上传":"Repick","重试上传":"Retry","继续添加":"Continue add","上传文件":"Upload file","移除":"Remove","暂停上传":"Pause uplaod","开始上传":"Start upload","已成功上传{{uploaded}}个文件,{{failed}}个文件上传失败,":"Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files,","失败文件":"Failed files.","高度{{height}}px":"height: {{height}}px","宽度{{width}}px":"width: {{width}}px","尺寸({{width}} x {{height}})":"size: ({{width}}px x {{height}}px)","您选择的图片不符合尺寸要求, 请上传{{info}}的图片":"The picture you selected does not meet the size requirements. Please upload the picture of {{info}}","您选择的图片不符合尺寸要求, 请上传不要超过{{info}}的图片":"The picture you selected does not meet the size requirements. Please upload a picture that does not exceed {{info}}`.","您选择的图片不符合尺寸要求, 请上传不要小于{{info}}的图片":"The picture you selected does not meet the size requirements. Please upload a picture no less than {{info}}","您选择的图片不符合尺寸要求, 请上传尺寸比率为 {{ratio}} 的图片":"The picture you selected does not meet the size requirements. Please upload the picture with the size ratio of ${ration}","文件上传失败请重试":"File upload failed, please try again","文件上传中":"File uploading","查看大图":"Zoom In","裁剪图片":"Crop picture","当前状态支持从剪切板中粘贴图片文件。":"The current state supports pasting picture files from the clipboard.","表单":"Form","提交":"Submit","初始化失败":"Initialization failed","保存成功":"Saved successfully","保存失败":"Save failed","依赖的部分字段没有通过验证,请注意填写!":"Some of the dependent fields failed to pass the verification, please fill in!","请输入名称":"Please enter a name","编辑{{label}}":"Edit {{label}}","每":"Per","编辑详情":"Detail","删除当前行":"Delete current row","操作":"Operation","新增一行":"Add a row","暂无标签":"No tag yet","新增:{{label}}":"New {{label}}","顶级":"Root","点击复制":"Copy","{{page}}/{{lastPage}} 总共:{{total}} 项。":"{{page}} of {{lastPage}} total: {{total}}.","每页显示":"Per page","加载更多":"Load more","筛选":"Filter","搜索":"Search","日期无效":"Invalid date","关闭弹窗":"Close","链接":"Link","当前有 {{modified}} 条记录修改了内容, 但并没有提交。请选择:":"There are currently {{modified}} records that have modified the contents, but they have not been submitted. Please select:","放弃":"Give up","当前有 {{moved}} 条记录修改了顺序, 但并没有提交。请选择:":"There are currently {{moved}} records that have changed the order, but have not been committed. Please select:","点击开始排序":"Click to start sorting","请拖动左边的按钮进行排序":"Please drag the button on the left to sort","排序":"Sort","正序":"Asc","降序":"Desc","返回数据格式不正确,payload.data 没有数据":"The return data format is incorrect, nothing is in `payload.data`","获取失败":"Fetch failed","返回数据格式不正确,payload.data.items 必须是数组":"The return data format is incorrect, payload.data.items Must be an array","验证错误":"Validate failed","表单验证失败,请仔细检查":"Form validation failed, please check carefully","验证失败":"Validate failed","当前值不唯一":"Current value is not unique","加载选项失败,原因:{{reason}}":"Failed to load options because: {{reason}}","获取失败,请重试":"Fetch failed, please try again","请仔细检查表单规则,部分表单项没通过验证":"Please check the form rules carefully. Some form items fail to pass the verification","Email 格式不正确":"Email format is incorrect","这是必填项":"This is required","Url 格式不正确":"Incorrect URL format","请输入整型数字":"Please enter an integer number","请输入字母":"Please enter letters","请输入数字":"Please enter a number","请输入字母或者数字":"Please enter letters or numbers","请输入浮点型数值":"Please enter a floating point value","只能输入字母、数字、`-` 和 `_`.":"You can only enter letters, numbers, `-` and`_` .","格式不正确, 请输入符合规则为 `${1|raw}` 的内容。":"The format is not correct. Please enter the content with the rule `${1| raw}`.","请输入更多的内容,至少输入 $1 个字符。":"Please enter more, at least $1 characters.","请控制内容长度, 不要输入 $1 个字符以上":"Please control the content length, do not enter more than $1 characters","当前输入值超出最大值 $1,请检查":"The current input value exceeds the maximum value of $1, please check","请输入小于 $1 的值":"Please enter a value less than $1","当前输入值低于最小值 $1,请检查":"The current input value is lower than the minimum value of $1, please check","请输入大于 $1 的值":"Please enter a value greater than $1","请检查 Json 格式。":"Please check the JSON format.","请输入长度为 $1 的内容":"Please enter make sure the length of contents is $1","请不要全输入空白字符":"Please do not enter all blank characters","输入的数据与 $1 值不一致":"The entered data is inconsistent with the value of $1","输入的数据与 $1 不一致":"The entered data is inconsistent with $1","请输入合法的手机号码":"Please enter a valid mobile phone number","请输入合法的电话号码":"Please enter a valid phone number","请输入合法的邮编地址":"Please enter a legal postal address","请输入合法的身份证号":"Please enter a valid ID number","系统错误":"System Error","<空>":"","可拖拽排序":"Drag and drop sorting","上一步":"Prev","下一步":"Next","保存并下一步":"Save & Next","完成":"Finish","点击选择图片或者将图片拖入该区域":"Click to select the picture or drag the picture into the area"})}); -;/*!src/renderers/Form/IconPickerIcons.tsx*/ -amis.define("960de17",function(e,s){"use strict";function a(e){s.ICONS=e}Object.defineProperty(s,"__esModule",{value:!0}),s.ICONS=[{name:"Font Awesome 4.7",prefix:"fa fa-",icons:["slideshare","snapchat","snapchat-ghost","snapchat-square","soundcloud","spotify","stack-exchange","stack-overflow"]}],s.setIconVendor=a}); -;/*!src/renderers/Remark.tsx*/ -amis.define("4b7dfbe",function(e,t){"use strict";function n(e,t){return"string"==typeof e?i.filter(e,t):e?e.title?{title:i.filter(e.title,t),content:e.content||e.body?i.filter(e.content||e.body||"",t):void 0}:e.content||e.body?i.filter(e.content||e.body||"",t):void 0:e}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=r.__importDefault(e("node_modules/react/index")),o=e("0f9ebdf"),l=r.__importDefault(e("8d5abcb")),i=e("6a2dbb7"),s=e("256b65d"),c=e("b7bbd16");t.filterContents=n;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.icon,o=e.tooltip,i=e.placement,s=e.rootClose,d=e.trigger,u=e.container,m=e.classPrefix,f=e.classnames,p=e.content,b=e.data,_=o&&o.icon||r;return a.default.createElement("div",{className:f("Remark",o&&o.className||t||"Remark--warning")},a.default.createElement(l.default,{classPrefix:m,classnames:f,tooltip:n(o||p,b),tooltipClassName:o&&o.tooltipClassName,placement:o&&o.placement||i,rootClose:o&&o.rootClose||s,trigger:o&&o.trigger||d,container:u,delay:o&&o.delay},_?a.default.createElement("i",{className:f("Remark-icon",_)}):a.default.createElement(c.Icon,{icon:"question",className:"icon"})))},t.propsList=[],t.defaultProps={icon:"",trigger:["hover","focus"]},t}(a.default.Component);t.default=s.themeable(d);var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.Renderer({test:/(^|\/)remark$/,name:"remark"})],t)}(d);t.RemarkRenderer=u}); -;/*!src/renderers/Action.tsx*/ -amis.define("7648928",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=e("0f9ebdf"),o=e("6a2dbb7"),r=n.__importDefault(e("a67acca")),l=n.__importDefault(e("node_modules/lodash/pick")),s=["dialog","drawer","url","link","confirmText","tooltip","disabledTip","className","asyncApi","redirect","size","level","primary","feedback","api","blank","tooltipPlacement","to","content","required","type","actionType","label","icon","reload","target","close","messages","mergeData","index","copy","payload","requireSelected"],d=e("4b7dfbe"),u=e("256b65d"),c=e("9a80175"),p=["button","submit","reset"],m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.handleAction=function(e){var t=this.props,n=t.onAction,a=t.onClick,i=t.disabled,o=a&&a(e,this.props);if(!i&&!e.isDefaultPrevented()&&o!==!1&&n){e.preventDefault();var r=l.default(this.props,s);n(e,r)}},t.prototype.render=function(){var e,t,n=this.props,i=n.type,l=n.label,s=n.icon,u=n.iconClassName,c=n.primary,m=n.size,f=n.level,_=n.disabled,b=n.block,y=n.className,v=n.componentClass,h=n.tooltip,C=n.disabledTip,g=n.tooltipPlacement,A=n.actionType,k=n.link,x=n.data,N=n.activeClassName,R=n.isCurrentUrl,D=n.isMenuItem,T=n.active,E=n.activeLevel,O=n.tooltipContainer,P=n.classnames,M=!!T;return"link"===A&&!M&&k&&R&&(M=R(k)),D?a.default.createElement("a",{className:P(y,(e={},e[N||"is-active"]=M,e["is-disabled"]=_,e)),onClick:this.handleAction},l,s?a.default.createElement("i",{className:P("Button-icon",s)}):null):a.default.createElement(r.default,{className:P(y,(t={},t[N||"is-active"]=M,t)),size:m,level:E&&M?E:f||(c?"primary":void 0),onClick:this.handleAction,type:i&&~p.indexOf(i)?i:"button",disabled:_,componentClass:v,tooltip:d.filterContents(h,x),disabledTip:d.filterContents(C,x),placement:g,tooltipContainer:O,block:b,iconOnly:!(!s||l||"link"===f)},l?a.default.createElement("span",null,o.filter(l,x)):null,s?a.default.createElement("i",{className:P("Button-icon",s,u)}):null)};var i;return t.defaultProps={type:"button",componentClass:"button",tooltipPlacement:"bottom",activeClassName:"is-active"},n.__decorate([c.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof a.default&&a.default.MouseEvent)?i:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),t}(a.default.Component);t.Action=m,t.default=u.themeable(m);var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.handleAction=function(e,t){var n=this.props,a=n.env,i=n.onAction,r=n.data;t.confirmText&&a.confirm?a.confirm(o.filter(t.confirmText,r)).then(function(n){return n&&i(e,t,r)}):i(e,t,r)},t.prototype.isCurrentAction=function(e){var t=this.props,n=t.env,a=t.data;return n.isCurrentUrl(o.filter(e,a))},t.prototype.render=function(){var e=this.props,t=e.env,i=e.disabled,o=e.btnDisabled,r=n.__rest(e,["env","disabled","btnDisabled"]);return a.default.createElement(m,n.__assign({},r,{disabled:i||o,onAction:this.handleAction,isCurrentUrl:this.isCurrentAction,tooltipContainer:t.getModalContainer?t.getModalContainer:void 0}))};return n.__decorate([c.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),n.__decorate([c.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"isCurrentAction",null),t=n.__decorate([i.Renderer({test:/(^|\/)action$/,name:"action"})],t)}(a.default.Component);t.ActionRenderer=f;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)button$/,name:"button"})],t)}(f);t.ButtonRenderer=_;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)submit$/,name:"submit"})],t)}(f);t.SubmitRenderer=b;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)reset$/,name:"reset"})],t)}(f);t.ResetRenderer=y}); -;/*!src/renderers/Alert.tsx*/ -amis.define("30de479",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("0f9ebdf"),d=r.__importDefault(e("node_modules/react/index")),o=r.__importDefault(e("15e4197")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.body,u=r.__rest(e,["render","body"]);return d.default.createElement(o.default,r.__assign({},u),t("body",n))},t=r.__decorate([n.Renderer({test:/(^|\/)alert$/,name:"alert"})],t)}(d.default.Component);t.TplRenderer=u}); -;/*!src/renderers/Form/ButtonGroup.tsx*/ -amis.define("aa22e57",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("b86428a"),o=e("9a80175"),s=e("f2e345e"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.handleToggle=function(e){var t=this.props,a=t.onToggle,n=t.multiple,l=t.autoFill,r=t.onBulkChange,i=!n&&l&&!o.isEmpty(l)&&s.dataMapping(l,e);i&&r(i),a(e)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(e){var t,l=this;void 0===e&&(e=this.props);var s=e.render,r=e.classPrefix,i=e.classnames,u=e.className,p=e.disabled,c=e.options,d=(e.value,e.labelField),m=e.placeholder,v=e.btnClassName,f=e.btnActiveClassName,b=e.selectedOptions,_=e.buttons,g=e.size,y=e.block,h=e.vertical,N=[],C=e.btnLevel,k=e.btnActiveLevel;return v&&(C=o.getLevelFromClassName(v)),f&&(k=o.getLevelFromClassName(f)),c&&c.length?N=c.map(function(e,t){var a=!!~b.indexOf(e);return s("option/"+t,{label:e[d||"label"],icon:e.icon,size:e.size||g,type:"button",block:y},{key:t,active:a,level:(a?k:"")||e.level||C,className:i(e.className,v),disabled:e.disabled||p,onClick:function(t){l.handleToggle(e),t.preventDefault()}})}):_&&(N=_.map(function(e,t){return s("button/"+t,a.__assign({size:g,block:y,activeLevel:k},e),{key:t,className:i(e.className,v)})})),n.default.createElement("div",{className:i("ButtonGroup",(t={"ButtonGroup--block":y,"ButtonGroup--vertical":h},t["ButtonGroup--"+g]=g,t),u)},N.length?N:n.default.createElement("span",{className:r+"ButtonGroup-placeholder"},m))};var r;return t.defaultProps={btnLevel:"default",btnActiveLevel:"primary",clearable:!1,vertical:!1},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof l.Option&&l.Option)?r:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleToggle",null),t}(n.default.Component);t.default=r;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var t=this.props,l=t.className,o=t.classnames,s=a.__rest(t,["className","classnames"]),r=e.prototype.render.call(this,a.__assign(a.__assign({},s),{classnames:o}));return n.default.createElement("div",{className:o("ButtonGroupControl",l)},r)},t=a.__decorate([l.OptionsControl({type:"button-group",sizeMutable:!1,strictMode:!1})],t)}(r);t.ButtonGroupControlRenderer=i}); -;/*!src/renderers/ButtonGroup.tsx*/ -amis.define("d539455",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),u=n.__importDefault(e("aa22e57")),r=e("0f9ebdf");t.default=u.default;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.Renderer({test:/(^|\/)(?:button|action)\-group$/,name:"button-group"})],t)}(u.default);t.ButtonGroupRenderer=o}); -;/*!src/renderers/ButtonToolbar.tsx*/ -amis.define("10294a9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=e("0f9ebdf"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.buttons,n=e.className,o=e.classnames,a=e.render;return r.default.createElement("div",{className:o("ButtonToolbar",n)},Array.isArray(t)?t.map(function(e,t){return a(""+t,e,{key:t})}):null)},t.propsList=["buttons","className"],t}(r.default.Component);t.default=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.Renderer({test:/(^|\/)button-toolbar$/,name:"button-toolbar"})],t)}(a);t.ButtonToolbarRenderer=s}); -;/*!src/renderers/DropDownButton.tsx*/ -amis.define("bb5331d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),i=e("node_modules/react-overlays/lib/index"),a=n.__importDefault(e("997df41")),r=n.__importDefault(e("2b3dcdf")),l=e("9a80175"),d=e("6a2dbb7"),u=e("b7bbd16"),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.toogle=n.toogle.bind(n),n.domRef=n.domRef.bind(n),n}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.props.defaultIsOpened&&this.setState({isOpened:!0})},t.prototype.domRef=function(e){this.target=e},t.prototype.toogle=function(e){e.preventDefault(),this.setState({isOpened:!this.state.isOpened})},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.renderOuter=function(){var e,t=this,s=this.props,d=s.render,u=s.buttons,p=s.data,c=s.popOverContainer,f=s.classnames,m=s.classPrefix,b=s.children,h=(s.align,s.closeOnClick),y=s.closeOnOutside,D=o.default.createElement(i.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:y!==!1?this.close:l.noop},o.default.createElement("ul",{className:f("DropDown-menu"),onClick:h?this.close:l.noop},b?b:Array.isArray(u)?u.map(function(e,t){return l.isVisible(e,p)?"divider"===e||"divider"===e.type?o.default.createElement("li",{key:t,className:f("DropDown-divider")}):o.default.createElement("li",{key:t},d("button/"+t,n.__assign(n.__assign({type:"button"},e),{isMenuItem:!0}))):null}):null));return c?o.default.createElement(a.default,{container:c,target:function(){return t.target},show:!0},o.default.createElement(r.default,{overlay:!0,onHide:this.close,classPrefix:m,className:f("DropDown-popover"),style:{minWidth:null===(e=this.target)||void 0===e?void 0:e.offsetWidth}},D)):D},t.prototype.render=function(){var e=this.props,t=e.block,n=e.disabled,s=e.btnDisabled,i=e.size,a=e.label,r=e.level,l=e.primary,p=e.className,c=e.classnames,f=e.align,m=e.iconOnly,b=e.icon,h=e.data;return o.default.createElement("div",{className:c("DropDown ",{"DropDown--block":t,"DropDown--alignRight":"right"===f,"is-opened":this.state.isOpened}),ref:this.domRef},o.default.createElement("button",{onClick:this.toogle,disabled:n||s,className:c("Button",p,"undefined"==typeof r?"Button--default":r?"Button--"+r:"",{"Button--block":t,"Button--primary":l,"Button--iconOnly":m},i?"Button--"+i:"")},b?"string"==typeof b?o.default.createElement("i",{className:c(b,"m-r-xs")}):b:null,"string"==typeof a?d.filter(a,h):a,o.default.createElement("span",{className:c("DropDown-caret")},o.default.createElement(u.Icon,{icon:"caret",className:"icon"}))),this.state.isOpened?this.renderOuter():null)},t.defaultProps={},t}(o.default.Component);t.default=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)dropdown-button$/,name:"dropdown-button"})],t)}(p);t.DropDownButtonRenderer=c}); -;/*!src/renderers/Collapse.tsx*/ -amis.define("d221521",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=a.__importDefault(e("node_modules/react/index")),t=e("0f9ebdf"),o=e("0d13109"),n=function(e){function l(l){var a=e.call(this,l)||this;return a.state={collapsed:!1},a.toggleCollapsed=a.toggleCollapsed.bind(a),a.state.collapsed=!!l.collapsed,a}return a.__extends(l,e),l.prototype.componentWillReceiveProps=function(e){var l=this.props;l.collapsed!==e.collapsed&&this.setState({collapsed:!!e.collapsed})},l.prototype.toggleCollapsed=function(){this.props.collapsable!==!1&&this.setState({collapsed:!this.state.collapsed})},l.prototype.render=function(){var e,l=this.props,a=l.classPrefix,t=l.classnames,n=l.size,p=l.wrapperComponent,d=l.headingComponent,r=l.className,c=l.title,i=l.headingClassName,m=l.children,u=l.body,C=l.bodyClassName,f=l.render,h=l.collapsable;return s.default.createElement(p,{className:t("Collapse",(e={"is-collapsed":this.state.collapsed},e["Collapse--"+n]=n,e["Collapse--collapsable"]=h,e),r)},c?s.default.createElement(d,{onClick:this.toggleCollapsed,className:t("Collapse-header",i)},f("heading",c),h&&s.default.createElement("span",{className:t("Collapse-arrow")})):null,s.default.createElement(o.Collapse,{show:h?!this.state.collapsed:!0,classnames:t,classPrefix:a},s.default.createElement("div",{className:t("Collapse-body",C)},m?"function"==typeof m?m(this.props):m:u?f("body",u):null)))},l.propsList=["wrapperComponent","headingComponent","bodyClassName","collapsed","headingClassName"],l.defaultProps={wrapperComponent:"div",headingComponent:"h4",className:"",headingClassName:"",bodyClassName:"",collapsable:!0},l}(s.default.Component);l.default=n;var p=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(l,e),l=a.__decorate([t.Renderer({test:/(^|\/)collapse$/,name:"collapse"})],l)}(n);l.CollapseRenderer=p}); -;/*!src/renderers/Color.tsx*/ -amis.define("3227a42",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),n=e("f2e345e"),o=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l.prototype.render=function(){var e=this.props,l=e.className,t=e.data,a=e.classnames,o=e.name,s=e.value,u=e.defaultColor,d=e.showValue,i=s||(o?n.resolveVariableAndFilter(o,t,"| raw"):null);return r.default.createElement("div",{className:a("ColorField",l)},r.default.createElement("i",{className:a("ColorField-previewIcon"),style:{backgroundColor:i||u}}),d?r.default.createElement("span",{className:a("ColorField-value")},i):null)},l.defaultProps={className:"",defaultColor:"#ccc",showValue:!0},l}(r.default.Component);l.ColorField=o;var s=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l=t.__decorate([a.Renderer({test:/(^|\/)color$/,name:"color"})],l)}(o);l.ColorFieldRenderer=s}); -;/*!src/renderers/CRUD.tsx*/ -amis.define("e5683c7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),i=a.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),n=e("7b0821e"),o=e("9a80175"),s=e("919cbd9"),l=a.__importDefault(e("a67acca")),d=a.__importDefault(e("d57879c")),c=a.__importDefault(e("01e2bb4")),p=a.__importDefault(e("node_modules/lodash/pick")),u=a.__importDefault(e("node_modules/qs/lib/index")),h=e("node_modules/react-dom/index"),f=e("6a2dbb7"),m=e("1caead1"),g=a.__importDefault(e("node_modules/lodash/omit")),v=a.__importDefault(e("node_modules/lodash/find")),b=a.__importDefault(e("node_modules/lodash/findIndex")),y=a.__importDefault(e("580df19")),_=e("1953fc1"),O=e("b7bbd16"),A=function(e){function t(t){var a=e.call(this,t)||this;return a.dataInvalid=!1,a.controlRef=a.controlRef.bind(a),a.handleFilterReset=a.handleFilterReset.bind(a),a.handleFilterSubmit=a.handleFilterSubmit.bind(a),a.handleFilterInit=a.handleFilterInit.bind(a),a.handleAction=a.handleAction.bind(a),a.handleBulkAction=a.handleBulkAction.bind(a),a.handleChangePage=a.handleChangePage.bind(a),a.handleBulkGo=a.handleBulkGo.bind(a),a.handleDialogConfirm=a.handleDialogConfirm.bind(a),a.handleDialogClose=a.handleDialogClose.bind(a),a.handleSave=a.handleSave.bind(a),a.handleSaveOrder=a.handleSaveOrder.bind(a),a.handleSelect=a.handleSelect.bind(a),a.handleChildPopOverOpen=a.handleChildPopOverOpen.bind(a),a.handleChildPopOverClose=a.handleChildPopOverClose.bind(a),a.search=a.search.bind(a),a.silentSearch=a.silentSearch.bind(a),a.handlQuery=a.handlQuery.bind(a),a.renderHeaderToolbar=a.renderHeaderToolbar.bind(a),a.renderFooterToolbar=a.renderFooterToolbar.bind(a),a.clearSelection=a.clearSelection.bind(a),a}return a.__extends(t,e),t.prototype.componentWillMount=function(){{var e=this.props,t=e.location,a=e.store,i=e.pageField,r=e.perPageField,n=e.syncLocation;e.loadDataOnce}this.mounted=!0,n&&t&&(t.query||t.search)?a.updateQuery(u.default.parse(t.search.substring(1)),void 0,i,r):n&&!t&&window.location.search&&a.updateQuery(u.default.parse(window.location.search.substring(1)),void 0,i,r),this.props.store.setFilterTogglable(!!this.props.filterTogglable,this.props.filterDefaultVisible)},t.prototype.componentDidMount=function(){var e=this.props.store;(!this.props.filter||e.filterTogggable&&!e.filterVisible)&&this.handleFilterInit({}),this.props.pickerMode&&this.props.value&&e.setSelectedItems(this.props.value)},t.prototype.componentWillReceiveProps=function(e){var t=this.props,a=t.store;if(o.anyChanged(["toolbar","headerToolbar","footerToolbar","bulkActions"],t,e)&&(this.renderHeaderToolbar=this.renderHeaderToolbar.bind(this),this.renderFooterToolbar=this.renderFooterToolbar.bind(this)),this.props.pickerMode&&this.props.value!==e.value&&a.setSelectedItems(e.value),this.props.filterTogglable!==e.filterTogglable&&a.setFilterTogglable(!!e.filterTogglable,e.filterDefaultVisible),t.syncLocation&&t.location&&t.location.search!==e.location.search)a.updateQuery(u.default.parse(e.location.search.substring(1)),void 0,e.pageField,e.perPageField),this.dataInvalid=o.isObjectShallowModified(a.query,this.lastQuery,!1);else if(!t.syncLocation&&t.api&&e.api){var i=m.buildApi(t.api,t.data,{ignoreData:!0}),r=m.buildApi(e.api,e.data,{ignoreData:!0});i.url===r.url||!m.isValidApi(r.url)||r.sendOn&&!f.evalExpression(r.sendOn,e.data)||(this.dataInvalid=!0)}},t.prototype.componentDidUpdate=function(){this.dataInvalid&&(this.dataInvalid=!1,this.search())},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.controlRef=function(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.control=e},t.prototype.handleAction=function(e,t,i,r,n){var s=this;void 0===r&&(r=!1);var l=this.props,d=l.onAction,c=l.store,p=l.messages,u=l.pickerMode,h=l.env,m=(l.pageField,l.stopAutoRefreshWhenModalIsOpen);if("dialog"===t.actionType){c.setCurrentAction(t);var g=i.index,v=c.items.length;m&&clearTimeout(this.timer),c.openDialog(i,{hasNext:v-1>g,nextIndex:g+1,hasPrev:g>0,prevIndex:g-1,index:g})}else{if("ajax"===t.actionType){c.setCurrentAction(t);var b=i,y=t.redirect&&f.filter(t.redirect,b);return y&&t.blank&&h.jumpTo(y,t),c.saveRemote(t.api,b,{successMessage:t.messages&&t.messages.success||p&&p.saveSuccess,errorMessage:t.messages&&t.messages.failed||p&&p.saveFailed}).then(function(e){return a.__awaiter(s,void 0,void 0,function(){var r,n;return a.__generator(this,function(a){switch(a.label){case 0:return r=o.createObject(i,e),t.feedback&&o.isVisible(t.feedback,r)?[4,this.openFeedback(t.feedback,r)]:[3,2];case 1:a.sent(),m&&clearTimeout(this.timer),a.label=2;case 2:return n=t.redirect&&f.filter(t.redirect,r),n&&!t.blank&&h.jumpTo(n,t),t.reload?this.reloadTarget(t.reload,r):this.search(void 0,void 0,!0,!0),t.close&&this.closeTarget(t.close),[2]}})})}).catch(function(){})}if(u&&("confirm"===t.actionType||"submit"===t.actionType))return c.setCurrentAction(t),Promise.resolve({items:c.selectedItems.concat()});d(e,t,i,r,n||this.context)}},t.prototype.handleBulkAction=function(e,t,i,r){var n=this,s=this.props,l=s.store,d=s.primaryField,c=s.onAction,p=s.messages,u=s.pageField,h=s.stopAutoRefreshWhenModalIsOpen,g=s.env;if(e.length||r.requireSelected===!1){var v=e.map(function(e){return e.hasOwnProperty(d)?e[d]:null}).filter(function(e){return e}).join(","),b=o.createObject(l.mergedData,a.__assign(a.__assign({},e[0]),{rows:e,items:e,unSelectedItems:t,ids:v}));return"dialog"===r.actionType?this.handleAction(i,a.__assign(a.__assign({},r),{__from:"bulkAction"}),b):void("ajax"===r.actionType?m.isEffectiveApi(r.api,b)&&l.saveRemote(r.api,b,{successMessage:r.messages&&r.messages.success||p&&p.saveSuccess,errorMessage:r.messages&&r.messages.failed||p&&p.saveFailed}).then(function(e){return a.__awaiter(n,void 0,void 0,function(){var t,i,n;return a.__generator(this,function(a){switch(a.label){case 0:return t=o.createObject(b,e),r.feedback&&o.isVisible(r.feedback,t)?[4,this.openFeedback(r.feedback,t)]:[3,2];case 1:a.sent(),h&&clearTimeout(this.timer),a.label=2;case 2:return r.reload?this.reloadTarget(r.reload,t):this.search((n={},n[u||"page"]=1,n),void 0,!0,!0),r.close&&this.closeTarget(r.close),i=r.redirect&&f.filter(r.redirect,t),i&&g.jumpTo(i,r),[2]}})})}).catch(function(){return null}):c&&c(i,r,b,!1,this.context))}},t.prototype.handleItemAction=function(e,t){this.doAction(e,t)},t.prototype.handleFilterInit=function(e){var t=this.props,i=t.defaultParams,r=(t.data,t.store);this.handleFilterSubmit(a.__assign(a.__assign(a.__assign({},i),e),r.query),!1,!0,this.props.initFetch!==!1),r.setPristineQuery();var n=this.props,o=n.pickerMode,s=n.options;o&&r.updateData({items:s||[]})},t.prototype.handleFilterReset=function(){var e=this.props,t=e.store,a=e.syncLocation,i=e.env,r=e.pageField,n=e.perPageField;t.updateQuery(t.pristineQuery,a&&i&&i.updateLocation?function(e){return i.updateLocation(e)}:void 0,r,n,!0),this.lastQuery=t.query,this.search()},t.prototype.handleFilterSubmit=function(e,t,i,r){var n;void 0===t&&(t=!0),void 0===i&&(i=!1),void 0===r&&(r=!0);var s=this.props,l=s.store,d=s.syncLocation,c=s.env,p=s.pageField,h=s.perPageField,f=s.loadDataOnceFetchOnFilter;e=d?u.default.parse(o.qsstringify(e)):e,l.updateQuery(a.__assign(a.__assign({},e),(n={},n[p||"page"]=t?1:l.page,n)),d&&c&&c.updateLocation?function(e){return c.updateLocation(e,i)}:void 0,p,h),this.lastQuery=l.query,r&&this.search(void 0,void 0,void 0,f)},t.prototype.handleBulkGo=function(e,t,a){var i=this,r=this.props.store.selectedAction,n=this.props.env;return r.confirmText?n.confirm(r.confirmText).then(function(n){return n&&i.handleBulkAction(e,t,a,r)}):this.handleBulkAction(e,t,a,r)},t.prototype.handleDialogConfirm=function(e,t,i,r){var n,s=this.props,l=s.store,d=s.pageField,c=s.stopAutoRefreshWhenModalIsOpen,p=s.interval,u=s.silentPolling,h=s.env;l.closeDialog();var m=l.action;if(c&&p&&(this.timer=setTimeout(u?this.silentSearch:this.search,Math.max(p,3e3))),"next"===t.actionType&&"number"==typeof i.nextIndex&&l.data.items[i.nextIndex])return this.handleAction(void 0,a.__assign({},m),o.createObject(o.createObject(l.data,{index:i.nextIndex}),l.data.items[i.nextIndex]));if("prev"===t.actionType&&"number"==typeof i.prevIndex&&l.data.items[i.prevIndex])return this.handleAction(void 0,a.__assign({},m),o.createObject(o.createObject(l.data,{index:i.prevIndex}),l.data.items[i.prevIndex]));if(e.length){var g=e[0];i=o.createObject(i,g);var v=r[0];v&&"form"===v.props.type&&(g&&g.__saved?m.reload||this.search(m.__from?(n={},n[d||"page"]=1,n):void 0,void 0,!0,!0):g&&(g.hasOwnProperty("items")&&g.items||g.hasOwnProperty("ids"))&&this.control.bulkUpdate&&this.control.bulkUpdate(g,g.items))}m.reload&&this.reloadTarget(m.reload,i);var b=m.redirect&&f.filter(t.redirect,i);b&&h.jumpTo(b,m)},t.prototype.handleDialogClose=function(){var e=this.props,t=e.store,a=e.stopAutoRefreshWhenModalIsOpen,i=e.silentPolling,r=e.interval;t.closeDialog(),a&&r&&(this.timer=setTimeout(i?this.silentSearch:this.search,Math.max(r,3e3)))},t.prototype.openFeedback=function(e,t){var a=this;return new Promise(function(i){var r=a.props.store;r.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),r.openDialog(t,void 0,function(e){i(e)})})},t.prototype.search=function(e,t,a,i){var r=this;void 0===i&&(i=!1);var n=this.props,s=n.store,l=n.api,d=n.messages,c=n.pageField,p=n.perPageField,u=n.interval,h=n.stopAutoRefreshWhen,g=n.stopAutoRefreshWhenModalIsOpen,v=n.silentPolling,b=n.syncLocation,y=n.syncResponse2Query,_=n.keepItemSelectionOnPageChange,O=n.pickerMode,A=n.env,T=n.loadDataOnce,C=n.loadDataOnceFetchOnFilter,I=n.source;_&&a&&!O&&(s.setSelectedItems([]),s.setUnSelectedItems([]));var S="";e&&"string"==typeof e.loadDataMode&&(S="load-more",delete e.loadDataMode),clearTimeout(this.timer),e&&s.updateQuery(e,!S&&b&&A&&A.updateLocation?A.updateLocation:void 0,c,p),this.lastQuery=s.query;var F=o.createObject(s.data,s.query);m.isEffectiveApi(l,F)?s.fetchInitData(l,F,{successMessage:d&&d.fetchSuccess,errorMessage:d&&d.fetchFailed,autoAppend:!0,forceReload:i,loadDataOnce:T,loadDataOnceFetchOnFilter:C,source:I,silent:t,pageField:c,perPageField:p,loadDataMode:S,syncResponse2Query:y}).then(function(e){return u&&r.mounted&&(!h||!(g&&s.hasModalOpened||f.evalExpression(h,F)))&&(r.timer=setTimeout(v?r.silentSearch.bind(r,void 0,void 0,!0):r.search.bind(r,void 0,void 0,void 0,!0),Math.max(u,3e3))),e}):I&&s.initFromScope(F,I)},t.prototype.silentSearch=function(e,t,a){return void 0===a&&(a=!1),this.search(e,!0,t,a)},t.prototype.handleChangePage=function(e,t){var a,i=this.props,r=i.store,n=i.syncLocation,o=i.env,s=i.pageField,l=i.perPageField,d=i.autoJumpToTopOnPagerChange,c=(a={},a[s||"page"]=e,a);if(t&&(c[l||"perPage"]=t),r.updateQuery(c,n&&o&&o.updateLocation?o.updateLocation:void 0,s,l),this.search(void 0,void 0,void 0),d&&this.control){h.findDOMNode(this.control).scrollIntoView();var p=window.scrollY;p&&window.scroll(0,p-50)}},t.prototype.handleSave=function(e,t,a,i,r){var n=this,s=this.props,l=s.store,d=s.quickSaveApi,c=s.quickSaveItemApi,p=s.primaryField,u=s.env,h=s.messages,f=s.reload;if(Array.isArray(e)){if(!m.isEffectiveApi(d))return void(u&&u.alert("CRUD quickSaveApi is required!"));var g=o.createObject(l.data,{rows:e,rowsDiff:t,indexes:a,rowsOrigin:r});e.length&&e[0].hasOwnProperty(p||"id")&&(g.ids=e.map(function(e){return e[p||"id"]}).join(",")),i&&(g.unModifiedItems=i),l.saveRemote(d,g,{successMessage:h&&h.saveFailed,errorMessage:h&&h.saveSuccess}).then(function(){f&&n.reloadTarget(f,g),n.search(void 0,void 0,!0,!0)}).catch(function(){})}else{if(!m.isEffectiveApi(c))return void(u&&u.alert("CRUD quickSaveItemApi is required!"));var v=o.createObject(l.data,{item:e,modified:t,origin:r}),b=o.createObject(v,e);l.saveRemote(c,b).then(function(){f&&n.reloadTarget(f,v),n.search(void 0,void 0,!0,!0)}).catch(function(){})}},t.prototype.handleSaveOrder=function(e,t){var a=this,i=this.props,r=i.store,n=i.saveOrderApi,s=i.orderField,l=i.primaryField,d=i.env,c=i.reload;if(!n)return void(d&&d.alert("CRUD saveOrderApi is required!"));var u,h,f=o.createObject(r.data),g=[],v=l&&t[0]&&t[0].hasOwnProperty(l);if(v||(f.idMap={}),f.insertAfter={},t.forEach(function(a){if(~e.indexOf(a))if(u){var i=v?u[l]:t.indexOf(u);f.insertAfter[i]=f.insertAfter[i]||[],v||(f.idMap[i]=u),f.insertAfter[i].push(v?a[l]:a)}else g.push(a);else u=a,h=h||a}),h&&g.length){var b=v?h[l]:t.indexOf(h);v||(f.idMap[b]=h),f.insertBefore={},f.insertBefore[b]=g.map(function(e){return v?e[l]:e})}else if(g.length){var y=g[0],_=v?y[l]:t.indexOf(y);v||(f.idMap[_]=y),f.insertAfter[_]=g.slice(1).map(function(e){return v?e[l]:e})}if(s){var O=(r.page-1)*r.perPage||0;t=t.map(function(e,t){var a;return o.extendObject(e,(a={},a[s]=O+t+1,a))})}f.rows=t.concat(),v&&(f.ids=t.map(function(e){return e[l]}).join(",")),v&&s&&(f.order=t.map(function(e){return p.default(e,[l,s])})),m.isEffectiveApi(n,f)&&r.saveRemote(n,f).then(function(){c&&a.reloadTarget(c,f),a.search(void 0,void 0,!0,!0)}).catch(function(){})},t.prototype.handleSelect=function(e,t){var a=this.props,i=a.store,r=a.keepItemSelectionOnPageChange,n=a.primaryField,o=a.multiple,s=a.pickerMode,l=a.onSelect,d=e,c=t;if(r&&i.selectedItems.length){var p=i.selectedItems.concat(),u=i.unSelectedItems.concat();e.forEach(function(e){var t=b.default(p,function(t){return t[n||"id"]&&t[n||"id"]==e[n||"id"]});~t?p[t]=e:p.push(e)}),t.forEach(function(e){var t=b.default(u,function(t){return t[n||"id"]&&t[n||"id"]==e[n||"id"]}),a=b.default(p,function(t){return t[n||"id"]&&t[n||"id"]==e[n||"id"]});~t?u[t]=e:u.push(e),~a&&p.splice(a,1)}),d=p,c=u}s&&!o&&d.length>1&&c.push.apply(c,d.splice(0,d.length-1)),i.setSelectedItems(d),i.setUnSelectedItems(c),l&&l(d)},t.prototype.handleChildPopOverOpen=function(e){this.props.interval&&e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.stopAutoRefreshWhenModalIsOpen&&clearTimeout(this.timer),this.props.store.setInnerModalOpened(!0))},t.prototype.handleChildPopOverClose=function(e){var t=this.props,a=t.stopAutoRefreshWhenModalIsOpen,i=t.silentPolling,r=t.interval;e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.store.setInnerModalOpened(!1),a&&r&&(this.timer=setTimeout(i?this.silentSearch:this.search,Math.max(r,3e3))))},t.prototype.handlQuery=function(e,t){var i;void 0===t&&(t=!1);var r=this.props,n=r.store,o=r.syncLocation,s=r.env,l=r.pageField,d=r.perPageField;n.updateQuery(a.__assign(a.__assign({},e),(i={},i[l||"page"]=1,i)),o&&s&&s.updateLocation?s.updateLocation:void 0,l,d),this.search(void 0,void 0,void 0,t)},t.prototype.reload=function(e,t){return t?this.receive(t):void this.search(void 0,void 0,!0,!0)},t.prototype.receive=function(e){this.handlQuery(e,!0)},t.prototype.reloadTarget=function(){},t.prototype.closeTarget=function(){},t.prototype.doAction=function(e,t,a){return void 0===a&&(a=!1),this.handleAction(void 0,e,t,a)},t.prototype.unSelectItem=function(e){var t=this.props.store,a=t.selectedItems.concat(),i=t.unSelectedItems.concat(),r=a.indexOf(e);~r&&i.push.apply(i,a.splice(r,1)),t.setSelectedItems(a),t.setUnSelectedItems(i)},t.prototype.clearSelection=function(){var e=this.props.store,t=e.selectedItems.concat(),a=e.unSelectedItems.concat();e.setSelectedItems([]),e.setUnSelectedItems(a.concat(t))},t.prototype.hasBulkActionsToolbar=function(){var e=this.props,t=e.headerToolbar,a=e.footerToolbar,i=function(e){return~["bulkActions","bulk-actions"].indexOf(e.type||e)};return Array.isArray(t)&&v.default(t,i)||Array.isArray(a)&&v.default(a,i)},t.prototype.hasBulkActions=function(){var e=this.props,t=e.bulkActions,i=e.itemActions,r=e.store;if(!(t&&t.length||i&&i.length))return!1;var n=[],s=[],l=r.mergedData;t&&t.length&&(n=t.map(function(e){return a.__assign(a.__assign({},e),c.default(e,l))}).filter(function(e){return!e.hidden&&e.visible!==!1}));var d=o.createObject(r.data,r.selectedItems.length?r.selectedItems[0]:{});return i&&i.length&&(s=i.map(function(e){return a.__assign(a.__assign({},e),c.default(e,d))}).filter(function(e){return!e.hidden&&e.visible!==!1})),n.length||s.length},t.prototype.renderBulkActions=function(e){var t=this,r=this.props,n=r.bulkActions,s=r.itemActions,l=r.store,d=r.render,p=r.classnames,u=e.items;if(!(u.length&&(n&&n.length||s&&s.length)))return null;var h=l.selectedItems,f=l.unSelectedItems,m=[],v=[],b=l.mergedData;n&&n.length&&(!s||!s.length||h.length>1)&&(m=n.map(function(e){return a.__assign(a.__assign({},e),c.default(e,b))}).filter(function(e){return!e.hidden&&e.visible!==!1}));var y=o.createObject(l.data,h.length?h[0]:{});return s&&1===h.length&&(v=s.map(function(e){return a.__assign(a.__assign({},e),c.default(e,y))}).filter(function(e){return!e.hidden&&e.visible!==!1})),m.length||v.length?i.default.createElement("div",{className:p("Crud-actions")},m.map(function(e,i){return d("bulk-action/"+i,a.__assign(a.__assign({size:"sm"},g.default(e,["visibleOn","hiddenOn","disabledOn"])),{type:"button"}),{key:"bulk-"+i,data:b,disabled:e.disabled||(e.requireSelected!==!1?!h.length:!1),onAction:t.handleBulkAction.bind(t,h.concat(),f.concat())})}),v.map(function(e,i){return d("bulk-action/"+i,a.__assign(a.__assign({size:"sm"},g.default(e,["visibleOn","hiddenOn","disabledOn"])),{type:"button"}),{key:"item-"+i,data:y,disabled:e.disabled,onAction:t.handleItemAction.bind(t,e,y)})})):null},t.prototype.renderPagination=function(){var e=this.props,t=e.store,a=e.render,r=e.classnames,n=t.page,o=t.lastPage;return"simple"!==t.mode&&t.lastPage<2?null:i.default.createElement("div",{className:r("Crud-pager")},a("pagination",{type:"pagination"},{activePage:n,items:o,hasNext:t.hasNext,mode:t.mode,onPageChange:this.handleChangePage}))},t.prototype.renderStatistics=function(){var e=this.props,t=e.store,a=e.classnames,r=e.translate;return t.lastPage<=1?null:i.default.createElement("div",{className:a("Crud-statistics")},r("{{page}}/{{lastPage}} 总共:{{total}} 项。",{page:t.page,lastPage:t.lastPage,total:t.total}))},t.prototype.renderSwitchPerPage=function(e){var t=this,a=this.props,r=a.store,n=a.perPageAvailable,o=a.classnames,s=a.classPrefix,l=a.translate,c=e.items;if(!c.length)return null;var p=(n||[5,10,20,50,100]).map(function(e){return{label:e,value:e+""}});return i.default.createElement("div",{className:o("Crud-pageSwitch")},l("每页显示"),i.default.createElement(d.default,{classPrefix:s,searchable:!1,placeholder:l("请选择"),options:p,value:r.perPage+"",onChange:function(e){return t.handleChangePage(1,e.value)},clearable:!1}))},t.prototype.renderLoadMore=function(){var e=this,t=this.props,a=t.store,r=t.classPrefix,n=t.classnames,o=t.translate,s=a.page,d=a.lastPage;return d>s?i.default.createElement("div",{className:n("Crud-loadMore")},i.default.createElement(l.default,{classPrefix:r,onClick:function(){return e.search({page:s+1,loadDataMode:"load-more"})},size:"sm"},o("加载更多"))):""},t.prototype.renderFilterToggler=function(){var e=this.props,t=e.store,a=e.classnames,r=e.translate;return t.filterTogggable?i.default.createElement("button",{onClick:function(){return t.setFilterVisible(!t.filterVisible)},className:a("Button Button--sm Button--default",{"is-active":t.filterVisible})},i.default.createElement(O.Icon,{icon:"filter",className:"icon m-r-xs"}),r("筛选")):null},t.prototype.renderToolbar=function(e,t,a,r){var n=this;if(void 0===t&&(t=0),void 0===a&&(a={}),!e)return null;var s=e.type||e;if("bulkActions"===s||"bulk-actions"===s)return this.renderBulkActions(a);if("pagination"===s)return this.renderPagination();if("statistics"===s)return this.renderStatistics();if("switch-per-page"===s)return this.renderSwitchPerPage(a);if("load-more"===s)return this.renderLoadMore();if("filter-toggler"===s)return this.renderFilterToggler();if(Array.isArray(e)){var l=e.map(function(e,t){return{dom:n.renderToolbar(e,t,a,r),toolbar:e}}).filter(function(e){return e.dom}),d=l.length,c=this.props.classnames;return d?i.default.createElement("div",{className:c("Crud-toolbar"),key:t},l.map(function(e,t){var a=e.toolbar,r=e.dom,n=a.type||a,o=a.align||("pagination"===n||t===d-1&&t>0?"right":d-1>t?"left":"");return i.default.createElement("div",{key:t,className:c("Crud-toolbar-item",o?"Crud-toolbar-item--"+o:"",a.className)},r)})):null}var p=r?r(e,t):void 0;if(void 0!==p)return p;var u=this.props,h=u.render,f=u.store,m=a.$$editable;return h("toolbar/"+t,e,{data:o.createObject(o.createObject(f.filterData,{items:a.items,selectedItems:a.selectedItems,unSelectedItems:a.unSelectedItems}),{}),page:f.page,lastPage:f.lastPage,perPage:f.perPage,total:f.total,onAction:this.handleAction,onChangePage:this.handleChangePage,onBulkAction:this.handleBulkAction,$$editable:m})},t.prototype.renderHeaderToolbar=function(e,t){var a=this.props,i=a.toolbar,r=a.toolbarInline,n=a.headerToolbar;return i&&(n=Array.isArray(n)?r?n.concat(i):[n,i]:n?[n,i]:i),this.renderToolbar(n,0,e,t)},t.prototype.renderFooterToolbar=function(e,t){var a=this.props,i=a.toolbar,r=a.toolbarInline,n=a.footerToolbar;return i&&(n=Array.isArray(n)?r?n.concat(i):[n,i]:n?[n,i]:i),this.renderToolbar(n,0,e,t)},t.prototype.renderSelection=function(){var e=this,t=this.props,a=t.store,r=t.classnames,n=t.labelField,s=t.labelTpl,l=t.primaryField,d=t.translate;return a.selectedItems.length?i.default.createElement("div",{className:r("Crud-selection")},i.default.createElement("div",{className:r("Crud-selectionLabel")},"已选条目:"),a.selectedItems.map(function(t,a){return i.default.createElement("div",{key:a,className:r("Crud-value")},i.default.createElement("span",{"data-tooltip":d("删除"),"data-position":"bottom",className:r("Crud-valueIcon"),onClick:e.unSelectItem.bind(e,t,a)},"×"),i.default.createElement("span",{className:r("Crud-valueLabel")},s?i.default.createElement(y.default,{html:f.filter(s,t)}):o.getVariable(t,n||"label")||o.getVariable(t,l||"id")))}),i.default.createElement("a",{onClick:this.clearSelection,className:r("Crud-selectionClear")},d("清空"))):null},t.prototype.render=function(){var e=this.props,t=e.className,r=e.bodyClassName,n=e.filter,o=e.render,s=e.store,l=e.mode,d=(e.syncLocation,e.children,e.bulkActions),c=e.pickerMode,p=e.multiple,u=e.valueField,h=e.primaryField,f=(e.value,e.hideQuickSaveBtn),m=e.itemActions,g=e.classnames,v=e.keepItemSelectionOnPageChange,b=(e.onAction,e.popOverContainer),y=e.translate,O=a.__rest(e,["className","bodyClassName","filter","render","store","mode","syncLocation","children","bulkActions","pickerMode","multiple","valueField","primaryField","value","hideQuickSaveBtn","itemActions","classnames","keepItemSelectionOnPageChange","onAction","popOverContainer","translate"]);return i.default.createElement("div",{className:g("Crud",t,{"is-loading":s.loading})},!n||s.filterTogggable&&!s.filterVisible?null:o("filter",a.__assign(a.__assign({title:y("条件过滤"),mode:"inline",submitText:y("搜索")},n),{type:"form",api:null}),{key:"filter",data:s.filterData,onReset:this.handleFilterReset,onSubmit:this.handleFilterSubmit,onInit:this.handleFilterInit}),v&&p?this.renderSelection():null,o("body",a.__assign(a.__assign({},O),{type:l||"table"}),{key:"body",className:g("Crud-body",r),ref:this.controlRef,selectable:!!(this.hasBulkActionsToolbar()&&this.hasBulkActions()||c),itemActions:m,multiple:void 0===p?d&&d.length>0?!0:!1:p,selected:c||v?s.selectedItemsAsArray:void 0,valueField:u||h,primaryField:h,hideQuickSaveBtn:f,items:s.data.items,query:s.query,orderBy:s.query.orderBy,orderDir:s.query.orderDir,popOverContainer:b,onAction:this.handleAction,onSave:this.handleSave,onSaveOrder:this.handleSaveOrder,onQuery:this.handlQuery,onSelect:this.handleSelect,onPopOverOpened:this.handleChildPopOverOpen,onPopOverClosed:this.handleChildPopOverClose,headerToolbarRender:this.renderHeaderToolbar,footerToolbarRender:this.renderFooterToolbar,data:s.mergedData}),i.default.createElement(_.Spinner,{overlay:!0,size:"lg",key:"info",show:s.loading}),o("dialog",a.__assign(a.__assign({},s.action&&s.action.dialog),{type:"dialog"}),{key:"dialog",data:s.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:s.dialogOpen}))},t.propsList=["bulkActions","itemActions","mode","orderField","syncLocation","toolbar","toolbarInline","messages","value","options","multiple","valueField","defaultParams","bodyClassName","perPageAvailable","pageField","perPageField","hideQuickSaveBtn","autoJumpToTopOnPagerChange","interval","silentPolling","stopAutoRefreshWhen","stopAutoRefreshWhenModalIsOpen","api","affixHeader","columnsTogglable","placeholder","tableClassName","headerClassName","footerClassName","headerToolbar","footerToolbar","filterTogglable","filterDefaultVisible","syncResponse2Query","keepItemSelectionOnPageChange","labelTpl","labelField","loadDataOnce","loadDataOnceFetchOnFilter","source","header","columns","size","onChange","onInit","onSaved"],t.defaultProps={toolbarInline:!0,headerToolbar:["bulkActions","pagination"],footerToolbar:["statistics","pagination"],primaryField:"id",syncLocation:!0,pageField:"page",perPageField:"perPage",hideQuickSaveBtn:!1,autoJumpToTopOnPagerChange:!0,silentPolling:!1,filterTogglable:!1,filterDefaultVisible:!0,loadDataOnce:!1,loadDataOnceFetchOnFilter:!0},t}(i.default.Component);t.default=A;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){e.prototype.componentWillMount.call(this);var t=this.context;t.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.prototype.reloadTarget=function(e,t){var a=this.context;a.reload(e,t)},t.prototype.closeTarget=function(e){var t=this.context;t.close(e)},t.contextType=s.ScopedContext,t=a.__decorate([r.Renderer({test:/(^|\/)crud$/,storeType:n.CRUDStore.name,name:"crud"})],t)}(A);t.CRUDRenderer=T}); -;/*!src/renderers/Pagination.tsx*/ -amis.define("4fd96cf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),l=e("0f9ebdf"),r=e("9a80175"),i=e("b7bbd16"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={pageNum:String(t.props.activePage)||""},t}n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.activePage!==e.activePage&&this.setState({pageNum:String(e.activePage)||""})},t.prototype.renderSimple=function(){var e=this.props,t=e.activePage,n=e.hasNext,l=e.onPageChange,r=e.classnames;return a.default.createElement("ul",{className:r("Pagination","Pagination--sm")},a.default.createElement("li",{className:r({"is-disabled":2>t}),onClick:2>t?function(e){return e.preventDefault()}:function(){return l(t-1)}},a.default.createElement("a",null,a.default.createElement(i.Icon,{icon:"left-arrow",className:"icon"}))),a.default.createElement("li",{className:r({"is-disabled":!n}),onClick:n?function(){return l(t+1)}:function(e){return e.preventDefault()}},a.default.createElement("a",null,a.default.createElement(i.Icon,{icon:"right-arrow",className:"icon"}))))},t.prototype.handlePageChange=function(e){var t=this.props.items,n=e.currentTarget.value;/^\d+$/.test(n)&&parseInt(n,10)>t&&(n=String(t)),this.setState({pageNum:n})},t.prototype.renderNormal=function(){var e,t,n=this.props,l=n.activePage,r=n.items,u=n.maxButtons,o=n.onPageChange,s=n.classnames,c=n.showPageInput,m=this.state.pageNum,d=[];(u-1)/2+2>l&&(u=l+(u-1)/2),(u-1)/2+2>r-l&&(u=r-l+(u-1)/2+1),u&&r>u?(e=Math.max(Math.min(l-Math.floor(u/2),r-u+1),1),t=e+u-1):(e=1,t=r);for(var f=function(e){d.push(a.default.createElement("li",{onClick:function(){return o(e)},key:e,className:s({"is-active":e===l})},a.default.createElement("a",{role:"button"},e)))},p=e;t>=p;++p)f(p);return e>1&&(e>2&&d.unshift(a.default.createElement("li",{onClick:function(){return o(e-1)},key:"prev-ellipsis"},a.default.createElement("a",{role:"button"},"..."))),d.unshift(a.default.createElement("li",{onClick:function(){return o(1)},key:1,className:s({"is-active":1===l})},a.default.createElement("a",{role:"button"},1)))),r>t&&(r-t>1&&d.push(a.default.createElement("li",{className:s("Pagination-ellipsis"),onClick:function(){return o(t+1)},key:"next-ellipsis"},a.default.createElement("a",{role:"button"},a.default.createElement("span",null,"...")))),d.push(a.default.createElement("li",{onClick:function(){return o(r)},key:r,className:s({"is-active":r===l})},a.default.createElement("a",{role:"button"},r)))),d.unshift(a.default.createElement("li",{className:s("Pagination-prev",{"is-disabled":1===l}),onClick:1===l?function(e){return e.preventDefault()}:function(){return o(l-1)},key:"prev"},a.default.createElement("span",null,a.default.createElement(i.Icon,{icon:"left-arrow",className:"icon"})))),d.push(a.default.createElement("li",{className:s("Pagination-next",{"is-disabled":l===r}),onClick:l===r?function(e){return e.preventDefault()}:function(){return o(l+1)},key:"next"},a.default.createElement("span",null,a.default.createElement(i.Icon,{icon:"right-arrow",className:"icon"})))),a.default.createElement("div",null,a.default.createElement("ul",{className:s("Pagination","Pagination--sm")},d),r>9&&c?a.default.createElement("div",{className:"inline m-l-xs w-xs",key:"toPage"},a.default.createElement("span",{className:s("Pagination-inputGroup")},a.default.createElement("input",{type:"text",className:s("Pagination-input"),onChange:this.handlePageChange,onFocus:function(e){return e.currentTarget.select()},onKeyUp:function(e){return 13==e.keyCode&&o(parseInt(e.currentTarget.value,10))},value:m}),a.default.createElement("span",null,a.default.createElement("button",{onClick:function(){return o(parseInt(m,10))},type:"submit",className:s("Button","Button--default")},"Go")))):null)},t.prototype.render=function(){var e=this.props.mode;return"simple"===e?this.renderSimple():this.renderNormal()};var l;return t.defaultProps={activePage:1,items:1,maxButtons:5,mode:"normal",hasNext:!1,showPageInput:!0},n.__decorate([r.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof a.default&&a.default.ChangeEvent)?l:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handlePageChange",null),t}(a.default.Component);t.default=u;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.Renderer({test:/(^|\/)pagination$/,name:"pagination"})],t)}(u);t.PaginationRenderer=o}); -;/*!src/renderers/Cards.tsx*/ -amis.define("0afb30b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=r.__importDefault(e("node_modules/react/index")),n=e("node_modules/react-dom/index"),o=e("0f9ebdf"),i=r.__importDefault(e("a67acca")),s=e("4e9b495"),l=e("9a80175"),d=e("f2e345e"),c=r.__importDefault(e("node_modules/sortablejs/Sortable")),u=e("6a2dbb7"),m=e("b7bbd16"),h=function(e){function t(t){var r=e.call(this,t)||this;return r.handleAction=r.handleAction.bind(r),r.handleCheck=r.handleCheck.bind(r),r.handleCheckAll=r.handleCheckAll.bind(r),r.handleQuickChange=r.handleQuickChange.bind(r),r.handleSave=r.handleSave.bind(r),r.handleSaveOrder=r.handleSaveOrder.bind(r),r.reset=r.reset.bind(r),r.dragTipRef=r.dragTipRef.bind(r),r.bodyRef=r.bodyRef.bind(r),r.affixDetect=r.affixDetect.bind(r),r.itemsRef=r.itemsRef.bind(r),r.renderToolbar=r.renderToolbar.bind(r),r}return r.__extends(t,e),t.syncItems=function(e,t,r){var a=t.source,n=t.value||t.items,o=[],i=!0;if(Array.isArray(n))o=n;else if("string"==typeof a){var s=d.resolveVariable(a,t.data),l=r?d.resolveVariable(a,r.data):null;l&&l===s?i=!1:Array.isArray(s)&&(o=s)}i&&e.initItems(o),"undefined"!=typeof t.selected&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,r=e.store,a=e.selectable,n=e.draggable,o=e.orderBy,i=e.orderDir,s=e.multiple,l=e.hideCheckToggler,d=e.itemCheckableOn,c=e.itemDraggableOn;r.update({selectable:a,draggable:n,orderBy:o,orderDir:i,multiple:s,hideCheckToggler:l,itemCheckableOn:d,itemDraggableOn:c}),t.syncItems(r,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=l.getScrollParent(n.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillReceiveProps=function(e){var r=this.props,a=e.store;l.anyChanged(["selectable","draggable","orderBy","orderDir","multiple","hideCheckToggler","itemCheckableOn","itemDraggableOn"],r,e)&&a.update({selectable:e.selectable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,multiple:e.multiple,hideCheckToggler:e.hideCheckToggler,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn}),l.anyChanged(["source","value","items"],r,e)||!e.value&&!e.items&&e.data!==r.data?(t.syncItems(a,e,r),this.syncSelected()):r.selected!==e.selected&&a.updateSelected(e.selected||[],e.valueField)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.bodyRef=function(e){this.body=e},t.prototype.itemsRef=function(e){e||(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.body){var e=this.props.classPrefix,t=n.findDOMNode(this),r=this.body.getBoundingClientRect(),a=this.props.env.affixOffsetTop||0,o=r.topa,i=t.querySelector("."+e+"Cards-fixedTop");this.body.offsetWidth&&(i.style.cssText="top: "+a+"px;width: "+this.body.offsetWidth+"px;"),o?i.classList.add("in"):i.classList.remove("in")}},t.prototype.handleAction=function(e,t,r){var a=this.props.onAction;a(e,t,r)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.syncSelected=function(){var e=this.props,t=e.store,r=e.onSelect;r&&r(t.selectedItems.map(function(e){return e.data}),t.unSelectedItems.map(function(e){return e.data}))},t.prototype.handleQuickChange=function(e,t,r,a){if(e.change(t,a),r&&!a){if(r&&r.api)return void this.props.onAction(null,{actionType:"ajax",api:r.api},t);var n=this.props,o=n.onSave,i=n.primaryField;o&&o(e.data,l.difference(e.data,e.pristine,["id",i]),e.index,void 0,e.pristine)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,r=e.onSave,a=e.primaryField;if(r&&t.modifiedItems.length){var n=t.modifiedItems.map(function(e){return e.data}),o=t.modifiedItems.map(function(e){return e.index}),i=t.modifiedItems.map(function(e){return l.difference(e.data,e.pristine,["id",a])}),s=t.items.filter(function(e){return!e.modified}).map(function(e){return e.data});r(n,i,o,s,t.modifiedItems.map(function(e){return e.pristine}))}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,r=e.onSaveOrder;r&&t.movedItems.length&&r(t.movedItems.map(function(e){return e.data}),t.items.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var r=this.props.store,a=r.items.filter(function(e){return~t.indexOf(e.pristine)});a.forEach(function(t){return t.change(e)})},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedItems.map(function(e){return e.data})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this.props.store,t=n.findDOMNode(this),r=this.props.classPrefix;this.sortable=new c.default(t.querySelector("."+r+"Cards-body"),{group:"table",animation:150,handle:"."+r+"Card-dragBtn",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var r=t.to;t.oldIndexn,o=t.querySelector("."+e+"Table-fixedTop");o.style.cssText+="top: "+n+"px;width: "+this.table.parentNode.offsetWidth+"px",l?o.classList.add("in"):o.classList.remove("in")}},t.prototype.updateTableInfo=function(){var e=this;if(this.table){var t=this.table,a=t.parentNode,n=this.props.affixHeader,l=this.props.classPrefix;this.totalWidth=t.scrollWidth,this.totalHeight=t.scrollHeight,this.outterWidth=a.offsetWidth,this.outterHeight=a.offsetHeight;var i=this.widths={},s=this.heights={};s.header||(s.header=t.querySelector("thead").offsetHeight),o.default(t.querySelectorAll("thead>tr:last-child>th"),function(e){i[e.getAttribute("data-index")]=e.offsetWidth}),o.default(t.querySelectorAll("tbody>tr>*:last-child"),function(e,t){return s[t]=e.offsetHeight});var d=r.findDOMNode(this);if(o.default(d.querySelectorAll("."+l+"Table-fixedLeft, ."+l+"Table-fixedRight"),function(t){return t.parentNode===d&&(t.style.cssText+="height:"+e.totalHeight+"px;")}),n){d.querySelector("."+l+"Table-fixedTop>."+l+"Table-wrapper").style.cssText+="width: "+this.outterWidth+"px";var c=d.querySelector("."+l+"Table-wrapper table");c.style.cssText+="width: "+this.totalWidth+"px"}o.default(d.querySelectorAll("."+l+"Table-fixedTop table, ."+l+"Table-fixedLeft table, ."+l+"Table-fixedRight table"),function(t){var a=0;o.default(t.querySelectorAll("thead>tr:last-child>th"),function(t){var n=e.widths[parseInt(t.getAttribute("data-index"),10)],r=getComputedStyle(t),l=(parseInt(r.getPropertyValue("border-left-width"),10)||0)+(parseInt(r.getPropertyValue("border-right-width"),10)||0);t.style.cssText+="width: "+(n-l)+"px",a+=n}),o.default(t.querySelectorAll("tbody>tr"),function(t,a){t.style.cssText+="height: "+e.heights[a]+"px"}),t.style.cssText+="width: "+a+"px;table-layout: fixed;"}),this.lastScrollLeft=-1,this.handleOutterScroll()}},t.prototype.handleOutterScroll=function(){var e=this.table.parentNode,t=e.scrollLeft;if(t!==this.lastScrollLeft){this.lastScrollLeft=t;var a=0===t,n=t+this.outterWidth===this.totalWidth,l=this.props.classPrefix,o=r.findDOMNode(this),i=o.querySelectorAll("."+l+"Table-fixedLeft");if(i&&i.length)for(var s=0,d=i.length;d>s;s++){var c=i[s];a?c.classList.remove("in"):c.classList.add("in")}var u=o.querySelectorAll("."+l+"Table-fixedRight");if(u&&u.length)for(var s=0,d=u.length;d>s;s++){var c=u[s];n?c.classList.remove("in"):c.classList.add("in")}var p=this.affixedTable;p&&(p.style.cssText+="transform: translateX(-"+t+"px)")}},t.prototype.tableRef=function(e){this.table=e,e?this.unSensor=T.resizeSensor(e.parentNode,this.updateTableInfoLazy):(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.affixedTableRef=function(e){this.affixedTable=e},t.prototype.initDragging=function(){var e=this.props.store,t=this.props.classPrefix;this.sortable=new _.default(this.table.querySelector("tbody"),{group:"table",animation:150,handle:"."+t+"Table-dragCell",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndexl;a.insertBefore(this.draggingTr,o&&t.nextSibling||t)}}},t.prototype.handleDrop=function(){var e=this.props.store,t=this.draggingTr,a=t.parentElement,n=Array.prototype.indexOf.call(a.childNodes,t),r=e.getRowById(t.getAttribute("data-id"));this.handleDragEnd(),e.exchange(this.originIndex,n,r)},t.prototype.handleDragEnd=function(){var e=this.draggingTr,t=e.parentElement,a=Array.prototype.indexOf.call(t.childNodes,e);t.insertBefore(e,t.childNodes[a1?n&&n(a.__assign(a.__assign({},e),{list:s,index:o}),t):n&&n(e,t)},t.prototype.renderHeading=function(){var e=this.props,t=e.title,a=e.store,r=e.hideQuickSaveBtn,l=e.data,o=e.classnames,s=e.saveImmediately,d=e.headingClassName,c=e.translate;return t||!s&&a.modified&&!r||a.moved?n.default.createElement("div",{className:o("Table-heading",d),key:"heading"},s||!a.modified||r?a.moved?n.default.createElement("span",null,c("当前有 {{moved}} 条记录修改了顺序, 但并没有提交。请选择:",{moved:a.moved}),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},n.default.createElement(w.Icon,{icon:"check",className:"icon m-r-xs"}),c("提交")),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},n.default.createElement(w.Icon,{icon:"close",className:"icon m-r-xs"}),c("放弃"))):t?i.filter(t,l):"":n.default.createElement("span",null,c("当前有 {{modified}} 条记录修改了内容, 但并没有提交。请选择:",{modified:a.modified}),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},n.default.createElement(w.Icon,{icon:"check",className:"icon m-r-xs"}),c("提交")),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},n.default.createElement(w.Icon,{icon:"close",className:"icon m-r-xs"}),c("放弃")))):null},t.prototype.renderHeadCell=function(e,t){var r=this.props,l=r.store,o=r.query,i=r.onQuery,s=r.multiple,d=r.env,u=r.render,p=r.classPrefix,f=r.classnames;if("__checkme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}),l.rows.length&&s?n.default.createElement(c.default,{classPrefix:p,partial:!l.allChecked,checked:l.someChecked,onChange:this.handleCheckAll}):" ");if("__dragme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}));if("__expandme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}),l.footable&&(l.footable.expandAll===!1||l.footable.accordion)||l.expandConfig&&(l.expandConfig.expandAll===!1||l.expandConfig.accordion)?null:n.default.createElement("a",{className:f("Table-expandBtn",l.allExpanded?"is-active":""),onClick:l.toggleExpandAll},n.default.createElement(w.Icon,{icon:"right-arrow-bold",className:"icon"})));var h=null;return e.searchable&&e.name?h=n.default.createElement(I,a.__assign({},this.props,{onQuery:i,name:e.name,searchable:e.searchable,sortable:e.sortable,type:e.type,data:o,orderBy:l.orderBy,orderDir:l.orderDir,popOverContainer:this.getPopOverContainer})):e.sortable&&e.name?h=n.default.createElement("span",{className:f("TableCell-sortBtn"),onClick:function(){e.name===l.orderBy?l.setOrderByInfo(e.name,"desc"===l.orderDir?"asc":"desc"):l.setOrderByInfo(e.name,"asc"),i&&i({orderBy:l.orderBy,orderDir:l.orderDir})}},n.default.createElement("i",{className:f("TableCell-sortBtn--down",l.orderBy===e.name&&"desc"===l.orderDir?"is-active":"")},n.default.createElement(w.Icon,{icon:"sort-desc",className:"icon"})),n.default.createElement("i",{className:f("TableCell-sortBtn--up",l.orderBy===e.name&&"asc"===l.orderDir?"is-active":"")},n.default.createElement(w.Icon,{icon:"sort-asc",className:"icon"})),n.default.createElement("i",{className:f("TableCell-sortBtn--default",l.orderBy===e.name?"":"is-active")},n.default.createElement(w.Icon,{icon:"sort-default",className:"icon"}))):e.filterable&&e.name&&(h=n.default.createElement(A,a.__assign({},this.props,{onQuery:i,name:e.name,type:e.type,data:o,filterable:e.filterable,popOverContainer:this.getPopOverContainer}))),e.pristine.width&&(t.style=t.style||{},t.style.width=e.pristine.width),n.default.createElement("th",a.__assign({},t,{className:f(t?t.className:"",e.pristine.className,{"TableCell--sortable":e.sortable,"TableCell--searchable":e.searchable,"TableCell--filterable":e.filterable,"Table-operationCell":"operation"===e.type})}),n.default.createElement("div",{className:f(p+"TableCell--title")},e.label?u("tpl",e.label):null,e.remark?u("remark",{type:"remark",tooltip:e.remark,container:d&&d.getModalContainer?d.getModalContainer:void 0}):null),h)},t.prototype.renderCell=function(e,t,r,l,o){void 0===o&&(o=!1);var i=this.props,s=i.render,d=i.store,u=i.multiple,p=(i.env,i.classPrefix),f=i.classnames,g=i.checkOnItemClick,b=i.popOverContainer;if(t.name&&0===r.rowSpans[t.name])return null;if("__checkme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.checkable?n.default.createElement(c.default,{classPrefix:p,type:u?"checkbox":"radio",checked:r.checked,onChange:g?h.noop:this.handleCheck.bind(this,r)}):null);if("__dragme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.draggable?n.default.createElement(w.Icon,{icon:"drag-bar",className:"icon"}):null);if("__expandme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.depth>2?Array.from({length:r.depth-2}).map(function(e,t){return n.default.createElement("i",{key:t,className:f("Table-divider-"+(t+1))})}):null,r.expandable?n.default.createElement("a",{className:f("Table-expandBtn",r.expanded?"is-active":""),onClick:r.toggleExpanded},n.default.createElement(w.Icon,{icon:"right-arrow-bold",className:"icon"})):null);var y=null;!o&&t.isPrimary&&d.isNested&&d.draggable&&r.draggable&&(y=n.default.createElement("a",{draggable:!0,onDragStart:this.handleDragStart,className:f("Table-dragBtn")},n.default.createElement(w.Icon,{icon:"drag-bar",className:"icon"})));var v=a.__assign(a.__assign({},l),{btnDisabled:d.dragging,data:r.locals,value:t.name?m.resolveVariable(t.name,r.data):t.value,popOverContainer:b||this.getPopOverContainer,rowSpan:r.rowSpans[t.name],quickEditFormRef:this.subFormRef,prefix:y,onImageEnlarge:this.handleImageEnlarge});return delete v.label,s(e,a.__assign(a.__assign({},t.pristine),{column:t.pristine,type:"cell"}),v)},t.prototype.renderAffixHeader=function(e){var t=this,a=this.props,r=a.store,l=a.affixHeader,o=a.render,i=a.classnames,s=r.filteredColumns.every(function(e){return!e.label});return l?n.default.createElement("div",{className:i("Table-fixedTop",{"is-fakeHide":s})},this.renderHeading(),this.renderHeader(!1),n.default.createElement("div",{className:i("Table-fixedLeft")},r.leftFixedColumns.length?this.renderFixedColumns(r.rows,r.leftFixedColumns,!0,e):null),n.default.createElement("div",{className:i("Table-fixedRight")},r.rightFixedColumns.length?this.renderFixedColumns(r.rows,r.rightFixedColumns,!0,e):null),n.default.createElement("div",{className:i("Table-wrapper")},n.default.createElement("table",{ref:this.affixedTableRef,className:e},n.default.createElement("thead",null,r.columnGroup.length?n.default.createElement("tr",null,r.columnGroup.map(function(e,t){return n.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan},e.label?o("tpl",e.label):null)})):null,n.default.createElement("tr",null,r.filteredColumns.map(function(e){return t.renderHeadCell(e,{key:e.index,"data-index":e.index})})))))):null},t.prototype.renderFixedColumns=function(e,t,a,r){var l=this;void 0===a&&(a=!1),void 0===r&&(r="");var o=this.props,i=(o.rowClassName,o.rowClassNameExpr,o.placeholder),s=o.store,d=(o.onAction,o.buildItemProps,o.classnames),c=(o.classPrefix,o.checkOnItemClick,o.render),u=o.data,p=s.filteredColumns.every(function(e){return!e.label});return n.default.createElement("table",{className:d("Table-table",s.combineNum>0?"Table-table--withCombine":"",r)},n.default.createElement("thead",null,s.columnGroup.length?n.default.createElement("tr",null,s.columnGroup.map(function(e,a){var r=t.filter(function(t){return~e.has.indexOf(t)});return r.length?n.default.createElement("th",{key:a,"data-index":e.index,colSpan:r.length}," "):null})):null,n.default.createElement("tr",{className:p?"fake-hide":""},t.map(function(e){return l.renderHeadCell(e,{key:e.index,"data-index":e.index})}))),a?null:n.default.createElement("tbody",null,e.length?this.renderRows(e,t,{regionPrefix:"fixed/",renderCell:function(e,t,a,n){return l.renderCell(e,t,a,n,!0)}}):n.default.createElement("tr",{className:d("Table-placeholder")},n.default.createElement("td",{colSpan:t.length},c("placeholder",i,{data:u})))))},t.prototype.renderToolbar=function(e){var t=e.type||e;return"columns-toggler"===t?(this.renderedToolbars.push(t),this.renderColumnsToggler(e)):"drag-toggler"===t?(this.renderedToolbars.push(t),this.renderDragToggler()):void 0},t.prototype.renderColumnsToggler=function(e){var t=this.props,r=(t.className,t.store),l=t.classPrefix,o=t.classnames,i=a.__rest(t,["className","store","classPrefix","classnames"]),s=this.props.render;return r.columnsTogglable?n.default.createElement(d.default,a.__assign({},i,{align:e?e.align:"left",classnames:o,classPrefix:l,key:"columns-toggable",size:"sm",label:n.default.createElement(w.Icon,{icon:"columns",className:"icon m-r-none"})}),r.toggableColumns.map(function(e){return n.default.createElement("li",{className:o("DropDown-menuItem"),key:e.index,onClick:e.toggleToggle},n.default.createElement(c.default,{size:"sm",classPrefix:l,checked:e.toggled},e.label?s("tpl",e.label):null))})):null},t.prototype.renderDragToggler=function(){var e=this.props,t=e.store,a=e.env,r=e.draggable,l=e.classPrefix,o=e.translate;return!r||t.isNested?null:n.default.createElement(u.default,{disabled:!!t.modified,classPrefix:l,key:"dragging-toggle",tooltip:o("点击开始排序"),tooltipContainer:a&&a.getModalContainer?a.getModalContainer:void 0,size:"sm",active:t.dragging,onClick:function(e){e.preventDefault(),t.toggleDragging(),t.dragging&&t.clear()},iconOnly:!0},n.default.createElement(w.Icon,{icon:"exchange",className:"icon"}))},t.prototype.renderActions=function(e){var t=this,r=this.props,l=r.actions,o=r.render,i=r.store,s=r.classnames,d=r.data;return l=Array.isArray(l)?l.concat():[],i.toggable&&"header"===e&&!~this.renderedToolbars.indexOf("columns-toggler")&&l.push({type:"button",children:this.renderColumnsToggler()}),i.draggable&&!i.isNested&&"header"===e&&i.rows.length>1&&!~this.renderedToolbars.indexOf("drag-toggler")&&l.push({type:"button",children:this.renderDragToggler()}),Array.isArray(l)&&l.length?n.default.createElement("div",{className:s("Table-actions")},l.map(function(e,n){return o("action/"+n,a.__assign({type:"button"},e),{onAction:t.handleAction,key:n,btnDisabled:i.dragging,data:i.getData(d)})})):null},t.prototype.renderHeader=function(e){var t=this.props,r=t.header,l=t.headerClassName,o=t.toolbarClassName,i=t.headerToolbarClassName,s=t.headerToolbarRender,d=t.render,c=t.showHeader,u=t.store,p=t.classnames,f=t.data,h=t.translate;if(c===!1)return null;var m={},g=s?s(a.__assign(a.__assign(a.__assign({},this.props),{selectedItems:u.selectedRows.map(function(e){return e.data}),items:u.rows.map(function(e){return e.data}),unSelectedItems:u.unSelectedRows.map(function(e){return e.data})}),m),this.renderToolbar):null,b=this.renderActions("header"),y=b||g||u.dragging?n.default.createElement("div",{className:p("Table-toolbar Table-headToolbar",o,i),key:"header-toolbar"},b,g,u.dragging?n.default.createElement("div",{className:p("Table-dragTip"),ref:this.dragTipRef},h("请拖动左边的按钮进行排序")):null):null,v=!r||Array.isArray(r)&&!r.length?null:n.default.createElement("div",{className:p("Table-header",l),key:"header"},d("header",r,a.__assign(a.__assign({},e===!1?m:null),{data:u.getData(f)})));return v&&y?[v,y]:v||y||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,r=e.toolbarClassName,l=e.footerToolbarClassName,o=e.footerClassName,i=e.footerToolbarRender,s=e.render,d=e.showFooter,c=e.store,u=e.data,p=e.classnames;if(d===!1)return null;var f=i?i(a.__assign(a.__assign({},this.props),{selectedItems:c.selectedRows.map(function(e){return e.data}),items:c.rows.map(function(e){return e.data})}),this.renderToolbar):null,h=this.renderActions("footer"),m=h||f?n.default.createElement("div",{className:p("Table-toolbar Table-footToolbar",r,l),key:"footer-toolbar"},h,f):null,g=!t||Array.isArray(t)&&!t.length?null:n.default.createElement("div",{className:p("Table-footer",o),key:"footer"},s("footer",t,{data:c.getData(u)}));return g&&m?[m,g]:g||m||null},t.prototype.renderRows=function(e,t,r){var l=this;void 0===t&&(t=this.props.store.filteredColumns),void 0===r&&(r={});var o=this.props,s=o.store,d=o.rowClassName,c=o.rowClassNameExpr,u=o.onAction,p=o.buildItemProps,f=o.checkOnItemClick,h=o.classPrefix,m=o.classnames,g=o.render;return e.map(function(o,b){var y=p?p(o,b):null,v=[n.default.createElement(D,a.__assign({},y,{classPrefix:h,checkOnItemClick:f,key:o.id,itemIndex:b,item:o,itemClassName:m(c?i.filter(c,o.data):d,{"is-last":o.depth>1&&b===e.length-1,"is-expanded":o.expanded,"is-expandable":o.expandable}),columns:t,renderCell:l.renderCell,render:g,onAction:u,onCheck:l.handleCheck,onQuickChange:s.dragging?null:l.handleQuickChange},r))];return o.expanded&&!s.dragging&&(s.footable&&s.footableColumns.length?1===o.depth&&v.push(n.default.createElement(D,a.__assign({},y,{classPrefix:h,checkOnItemClick:f,key:"foot-"+o.id,itemIndex:b,item:o,itemClassName:m(c?i.filter(c,o.data):d),columns:s.footableColumns,renderCell:l.renderCell,render:g,onAction:u,onCheck:l.handleCheck,footableMode:!0,footableColSpan:s.filteredColumns.length,onQuickChange:s.dragging?null:l.handleQuickChange},r))):Array.isArray(o.data.children)&&v.push.apply(v,l.renderRows(o.children,t,r))),v})},t.prototype.renderItemActions=function(){var e=this.props,t=e.itemActions,r=e.render,l=e.store,o=e.classnames,i=Array.isArray(t)?t.filter(function(e){return!e.hiddenOnHover}):[],s=l.hoverIndex;if(!~s||!i.length)return null;var d=this.heights,c=40,u=0;if(d&&d[s]){c=d[s],u+=d.header;for(var p=s-1;p>=0;p--)u+=d[p]}return n.default.createElement("div",{className:o("Table-itemActions-wrap"),style:{top:u,height:c}},n.default.createElement("div",{className:o("Table-itemActions")},i.map(function(e,t){return r("itemAction/"+t,a.__assign(a.__assign({},e),{isMenuItem:!0}),{key:t,item:l.rows[s],data:l.rows[s].locals,rowIndex:s})})))},t.prototype.renderTableContent=function(){var e=this,t=this.props,a=t.store,r=t.placeholder,l=t.classnames,o=t.data,i=t.render,s=l("Table-table",a.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName),d=a.filteredColumns.every(function(e){return!e.label});return n.default.createElement("div",{onMouseMove:this.handleMouseMove,className:l("Table-content"),onScroll:this.handleOutterScroll},n.default.createElement("table",{ref:this.tableRef,className:s},n.default.createElement("thead",null,a.columnGroup.length?n.default.createElement("tr",null,a.columnGroup.map(function(e,t){return n.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan},e.label?i("tpl",e.label):null)})):null,n.default.createElement("tr",{className:d?"fake-hide":""},a.filteredColumns.map(function(t){return e.renderHeadCell(t,{"data-index":t.index,key:t.index})}))),n.default.createElement("tbody",null,a.rows.length?this.renderRows(a.rows,a.filteredColumns):n.default.createElement("tr",{className:l("Table-placeholder")},n.default.createElement("td",{colSpan:a.filteredColumns.length},i("placeholder",r,{data:o}))))))},t.prototype.render=function(){{var e=this.props,t=e.className,a=e.store,r=(e.placeholder,e.classnames),l=e.affixColumns;e.data,e.render}this.renderedToolbars=[];var o=this.renderHeading(),i=this.renderHeader(),s=this.renderFooter(),d=r("Table-table",a.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName);return n.default.createElement("div",{className:r("Table",t,{"Table--unsaved":!!a.modified||!!a.moved})},o,i,n.default.createElement("div",{className:r("Table-contentWrap"),onMouseLeave:this.handleMouseLeave},n.default.createElement("div",{className:r("Table-fixedLeft")},l!==!1&&a.leftFixedColumns.length?this.renderFixedColumns(a.rows,a.leftFixedColumns,!1,d):null),n.default.createElement("div",{className:r("Table-fixedRight")},l!==!1&&a.rightFixedColumns.length?this.renderFixedColumns(a.rows,a.rightFixedColumns,!1,d):null),this.renderTableContent(),~a.hoverIndex?this.renderItemActions():null),this.renderAffixHeader(d),s)};var l;return t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","footable","expandConfig","placeholder","tableClassName","headingClassName","source","selectable","columnsTogglable","affixHeader","affixColumns","headerClassName","footerClassName","selected","multiple","primaryField","hideQuickSaveBtn","itemCheckableOn","itemDraggableOn","checkOnItemClick","hideCheckToggler","itemActions","combineNum","items","columns","valueField","saveImmediately","rowClassName","rowClassNameExpr","popOverContainer","headerToolbarClassName","toolbarClassName","footerToolbarClassName"],t.defaultProps={className:"",placeholder:"暂无数据",tableClassName:"",source:"$items",selectable:!1,columnsTogglable:"auto",affixHeader:!0,headerClassName:"",footerClassName:"",toolbarClassName:"",headerToolbarClassName:"",footerToolbarClassName:"",primaryField:"id",itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1},a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.DragEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragStart",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragOver",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDrop",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragEnd",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),t}(n.default.Component);t.default=O;var D=function(e){function t(t){var a=e.call(this,t)||this;return a.handleAction=a.handleAction.bind(a),a.handleQuickChange=a.handleQuickChange.bind(a),a.handleClick=a.handleClick.bind(a),a -}return a.__extends(t,e),t.prototype.handleClick=function(e){var t,a=e.target,n=this.props.classPrefix;!e.currentTarget.contains(a)||~["INPUT","TEXTAREA"].indexOf(a.tagName)||(t=a.closest("button, a, ."+n+"Form-item"))&&e.currentTarget.contains(t)||this.props.onCheck(this.props.item)},t.prototype.handleAction=function(e,t,a){var n=this.props,r=n.onAction,l=n.item;r&&r(e,t,a||l.data)},t.prototype.handleQuickChange=function(e,t,a){var n=this.props,r=n.onQuickChange,l=n.item;r&&r(l,e,t,a)},t.prototype.render=function(){var e,t,r=this,l=this.props,o=l.itemClassName,i=l.itemIndex,d=l.item,c=l.columns,u=l.renderCell,p=(l.children,l.footableMode),f=l.footableColSpan,h=l.regionPrefix,m=l.checkOnItemClick,g=l.classPrefix,b=l.render,y=a.__rest(l,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","footableColSpan","regionPrefix","checkOnItemClick","classPrefix","render"]);return p?n.default.createElement("tr",{"data-id":d.id,"data-index":d.newIndex,onClick:m?this.handleClick:void 0,className:s.default(o,(e={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},e[g+"Table-tr--odd"]=i%2===0,e[g+"Table-tr--even"]=i%2===1,e))},n.default.createElement("td",{className:g+"Table-foot",colSpan:f},n.default.createElement("table",{className:g+"Table-footTable"},n.default.createElement("tbody",null,c.map(function(e){return n.default.createElement("tr",{key:e.index},e.label!==!1?n.default.createElement("th",null,b(""+h+i+"/"+e.index+"/tpl",e.label)):null,u(""+h+i+"/"+e.index,e,d,a.__assign(a.__assign({},y),{width:null,rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange})))}))))):n.default.createElement("tr",{onClick:m?this.handleClick:void 0,"data-index":1===d.depth?d.newIndex:void 0,"data-id":d.id,className:s.default(o,(t={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},t[g+"Table-tr--odd"]=i%2===0,t[g+"Table-tr--even"]=i%2===1,t),g+"Table-tr--"+d.depth+"th")},c.map(function(e){return u(i+"/"+e.index,e,d,a.__assign(a.__assign({},y),{rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange}))}))},t=a.__decorate([f.observer,a.__metadata("design:paramtypes",[Object])],t)}(n.default.Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.Renderer({test:function(e){return/(^|\/)table$/.test(e)},storeType:p.TableStore.name,name:"table"})],t)}(O);t.TableRenderer=S;var I=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1},a.open=a.open.bind(a),a.close=a.close.bind(a),a.close=a.close.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleAction=a.handleAction.bind(a),a}return a.__extends(t,e),t.prototype.buildSchema=function(){var e,t=this.props,n=t.searchable,r=t.sortable,l=t.name,o=t.label,i=t.translate;return n===!0?e={title:"",controls:[{type:"text",name:l,placeholder:o}]}:n&&(e=n.controls||n.tabs||n.fieldSet?a.__assign({title:""},n):{title:"",className:n.formClassName,controls:[a.__assign({type:n.type||"text",name:n.name||l,placeholder:o},n)]}),e&&e.controls&&r&&e.controls.unshift({type:"hidden",name:"orderBy",value:l},{type:"button-group",name:"orderDir",label:i("排序"),options:[{label:i("正序"),value:"asc"},{label:i("降序"),value:"desc"}]}),e&&(e=a.__assign(a.__assign({},e),{type:"form",wrapperComponent:"div",actions:[{type:"button",label:i("取消"),actionType:"cancel"},{label:i("搜索"),type:"submit",primary:!0}]})),e||"error"},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleAction=function(e,t,a){var n=this.props.onAction;return"cancel"===t.actionType||"close"===t.actionType?void this.close():void(n&&n(e,t,a))},t.prototype.handleSubmit=function(e){var t=this.props,n=t.onQuery,r=t.name;this.close(),e.orderDir&&(e=a.__assign(a.__assign({},e),{orderBy:r})),n(e)},t.prototype.render=function(){var e=this,t=this.props,l=t.render,o=t.name,i=t.data,d=t.searchable,c=t.store,u=t.orderBy,p=t.popOverContainer,f=t.classPrefix;return n.default.createElement("span",{className:s.default(f+"TableCell-searchBtn")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"search",className:"icon"})),this.state.isOpened?n.default.createElement(E.default,{container:p||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:p?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(x.default,{classPrefix:f,onHide:this.close,className:s.default(f+"TableCell-searchPopOver",d.className),overlay:!0},l("quick-search-form",this.buildSchema(),{data:a.__assign(a.__assign({},i),{orderBy:u,orderDir:u===o?c.orderDir:""}),onSubmit:this.handleSubmit,onAction:this.handleAction}))):null)},t}(n.default.Component);t.HeadCellSearchDropDown=I;var A=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1,filterOptions:[]},a.sourceInvalid=!1,a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleClick=a.handleClick.bind(a),a.handleCheck=a.handleCheck.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.filterable;e.source?this.fetchOptions():e.options.length>0&&this.setState({filterOptions:this.alterOptions(e.options)})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.name!==e.name||t.filterable!==e.filterable||t.data!==e.data)&&(e.filterable.source?this.sourceInvalid=g.isApiOutdated(t.filterable.source,e.filterable.source,t.data,e.data):e.filterable.options&&this.setState({filterOptions:this.alterOptions(e.filterable.options||[])}))},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&this.fetchOptions()},t.prototype.fetchOptions=function(){var e=this,t=this.props,a=t.env,n=t.filterable,r=t.data;if(g.isEffectiveApi(n.source,r)){var l=g.normalizeApi(n.source);l.cache=3e3,a.fetcher(l,r).then(function(t){var a=t.data&&t.data.options||[];e.setState({filterOptions:t&&t.data&&e.alterOptions(a)})})}},t.prototype.alterOptions=function(e){var t=this.props,n=t.data,r=t.filterable,l=t.name,o=n&&n[l]||"";return e=e.map(r.multiple?function(e){return a.__assign(a.__assign({},e),{selected:o.split(",").indexOf(e.value)>-1})}:function(e){return a.__assign(a.__assign({},e),{selected:e.value===o})})},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleClick=function(e){var t,a=this.props,n=a.onQuery,r=a.name;n((t={},t[r]=e,t)),this.close()},t.prototype.handleCheck=function(e){var t,a,n=this.props,r=n.data,l=n.name,o=n.onQuery;a=r[l]&&r[l]===e?"":r[l]&&y.default(r[l].split(","),[e]).join(",")||e,o((t={},t[l]=a,t))},t.prototype.render=function(){var e=this,t=this.state,a=t.isOpened,l=t.filterOptions,o=this.props,i=o.filterable,s=o.popOverContainer,d=o.classPrefix,u=o.classnames;return n.default.createElement("span",{className:u(d+"TableCell-filterBtn")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"column-filter",className:"icon"})),a?n.default.createElement(E.default,{container:s||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:s?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(x.default,{classPrefix:d,onHide:this.close,className:u(d+"TableCell-filterPopOver",i.className),overlay:!0},l&&l.length>0?n.default.createElement("ul",{className:u("DropDown-menu")},l.map(i.multiple?function(t,a){return n.default.createElement("li",{key:a,className:u("DropDown-divider")},n.default.createElement(c.default,{classPrefix:d,onChange:e.handleCheck.bind(e,t.value),checked:t.selected},t.label))}:function(t,a){return n.default.createElement("li",{key:a,className:u("DropDown-divider",{"is-selected":t.selected}),onClick:e.handleClick.bind(e,t.value)},t.label)})):null)):null)},t}(n.default.Component);t.HeadCellFilterDropDown=A;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.render,l=e.style,o=e.wrapperComponent,i=e.column,s=e.value,d=e.data,c=e.children,u=e.width,p=e.innerClassName,f=(e.label,e.tabIndex),h=e.onKeyUp,m=e.rowSpan,g=(e.body,e.tpl,e.remark,e.prefix),b=e.affix,y=e.isHead,v=a.__rest(e,["className","render","style","wrapperComponent","column","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark","prefix","affix","isHead"]),x=a.__assign(a.__assign({},i),{className:p,type:i&&i.type||"plain"}),C=c?c:r("field",x,a.__assign(a.__assign({},v),{value:s,data:d}));return u&&(l=a.__assign(a.__assign({},l),{width:l&&l.width||u}),/%$/.test(String(l.width))||(C=n.default.createElement("div",{style:{width:l.width}},g,C,b),g=null,b=null)),o?(y&&(o="th"),n.default.createElement(o,{rowSpan:m>1?m:void 0,style:l,className:t,tabIndex:f,onKeyUp:h},g,C,b)):C},t.defaultProps={wrapperComponent:"td"},t.propsList=["type","label","column","body","tpl","rowSpan","remark"],t}(n.default.Component);t.TableCell=R;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.propsList=a.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],R.propsList),t=a.__decorate([l.Renderer({test:/(^|\/)table\/(?:.*\/)?cell$/,name:"table-cell"}),v.default(),k.default(),C.default(),f.observer],t)}(R);t.TableCellRenderer=P;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},R.defaultProps),{wrapperComponent:"div"}),t=a.__decorate([l.Renderer({test:/(^|\/)field$/,name:"field"}),k.default(),C.default()],t)}(R);t.FieldRenderer=B}); -;/*!src/renderers/Card.tsx*/ -amis.define("8ee3b98",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),l=t.__importDefault(e("node_modules/react/index")),s=e("node_modules/react-dom/index"),r=e("0f9ebdf"),n=e("6a2dbb7"),i=t.__importDefault(e("0a43d97")),d=e("9a80175"),o=e("f2e345e"),c=t.__importDefault(e("b497f17")),m=t.__importDefault(e("bcd7efc")),u=e("f6086a9"),p=t.__importDefault(e("705a434")),h=e("b7bbd16"),C=function(e){function a(a){var t=e.call(this,a)||this;return t.getPopOverContainer=t.getPopOverContainer.bind(t),t.itemRender=t.itemRender.bind(t),t.handleAction=t.handleAction.bind(t),t.handleQuickChange=t.handleQuickChange.bind(t),t.handleClick=t.handleClick.bind(t),t.handleCheck=t.handleCheck.bind(t),t}return t.__extends(a,e),a.prototype.handleClick=function(e){var a,t=e.target,l=this.props.classPrefix;if(!(!e.currentTarget.contains(t)||~["INPUT","TEXTAREA"].indexOf(t.tagName)||(a=t.closest("button, a, ."+l+"Form-item"))&&e.currentTarget.contains(a))){var s=this.props.item;this.props.onCheck&&this.props.onCheck(s)}},a.prototype.handleCheck=function(){var e=this.props.item;this.props.onCheck&&this.props.onCheck(e)},a.prototype.handleAction=function(e,a,t){var l=this.props,s=l.onAction,r=l.item;s&&s(e,a,t||r.data)},a.prototype.handleQuickChange=function(e,a,t){var l=this.props,s=l.onQuickChange,r=l.item;s&&s(r,e,a,t)},a.prototype.getPopOverContainer=function(){return s.findDOMNode(this)},a.prototype.renderToolbar=function(){var e=this.props,a=e.dragging,t=e.selectable,s=e.checkable,r=e.selected,n=(e.onSelect,e.checkOnItemClick),o=e.multiple,c=e.hideCheckToggler,m=e.classnames,u=e.classPrefix;return a?l.default.createElement("div",{className:m("Card-dragBtn")},l.default.createElement(h.Icon,{icon:"drag-bar",className:"icon"})):t&&!c?l.default.createElement("div",{className:m("Card-checkBtn")},l.default.createElement(i.default,{classPrefix:u,type:o?"checkbox":"radio",disabled:!s,checked:r,onChange:n?d.noop:this.handleCheck})):null},a.prototype.renderActions=function(){var e=this,a=this.props,s=a.actions,r=a.render,n=a.dragging,i=a.actionsCount,o=a.data,c=a.classnames;if(Array.isArray(s)){var m=d.padArr(s.filter(function(e){return d.isVisible(e,o)}),i);return m.map(function(a,s){return l.default.createElement("div",{key:s,className:c("Card-actions")},a.map(function(a,l){var s=a.size||"sm";return r("action/"+l,t.__assign(t.__assign({level:"link",type:"button"},a),{size:s}),{isMenuItem:!0,key:l,index:l,disabled:n||d.isDisabled(a,o),className:c("Card-action",a.className||""+(s?"Card-action--"+s:"")),componentClass:"a",onAction:e.handleAction})}))})}return null},a.prototype.renderChild=function(e,a,t){void 0===a&&(a="body"),void 0===t&&(t=0);var l=this.props.render;if("string"==typeof e||"number"==typeof e)return l(a,e,{key:t});var s=e;return"hbox"===s.type||"grid"===s.type?l(a,e,{key:t,itemRender:this.itemRender}):this.renderFeild(a,s,t,this.props)},a.prototype.itemRender=function(e,a,t){return this.renderFeild("column/"+a,e,a,t)},a.prototype.renderFeild=function(e,a,s,r){var n=r.render,i=r.classnames,c=r.itemIndex,m=this.props.data;if(d.isVisible(a,m)){var u=a.$$id?a.$$id+"-field":"";return l.default.createElement("div",{className:i("Card-field"),key:s},a&&a.label?l.default.createElement("label",{className:i("Card-fieldLabel",a.labelClassName)},a.label):null,n(e,t.__assign(t.__assign({},a),{field:a,$$id:u,type:"card-item-field"}),{className:i("Card-fieldValue",a.className),rowIndex:c,colIndex:s,value:a.name?o.resolveVariable(a.name,m):void 0,popOverContainer:this.getPopOverContainer,onAction:this.handleAction,onQuickChange:this.handleQuickChange}))}},a.prototype.renderBody=function(){var e=this,a=this.props.body;return a?Array.isArray(a)?a.map(function(a,t){return e.renderChild(a,"body/"+t,t)}):this.renderChild(a,"body"):null},a.prototype.render=function(){var e=this.props,a=e.className,t=e.data,s=e.header,r=e.render,i=e.bodyClassName,d=e.highlightClassName,o=e.titleClassName,c=e.subTitleClassName,m=e.descClassName,u=e.checkOnItemClick,p=e.avatarClassName,h=e.checkable,C=e.classnames,f=(e.classPrefix,e.imageClassName),b=e.avatarTextClassName,v=null;if(s){var N=s.highlight,g=s.avatar,y=s.avatarText,_=s.title,k=s.subTitle,E=s.subTitlePlaceholder,x=s.desc,T=s.descPlaceholder,A=!!n.evalExpression(N,t),P=n.filter(g,t,"| raw"),I=n.filter(y,t),O=n.filter(_,t),w=n.filter(k,t),R=n.filter(x,t);v=l.default.createElement("div",{className:C("Card-heading",s.className)},P?l.default.createElement("span",{className:C("Card-avtar",s.avatarClassName||p)},l.default.createElement("img",{className:C("Card-img",s.imageClassName||f),src:P})):I?l.default.createElement("span",{className:C("Card-avtarText",s.avatarTextClassName||b)},I):null,l.default.createElement("div",{className:C("Card-meta")},A?l.default.createElement("i",{className:C("Card-highlight",s.highlightClassName||d)}):null,O?l.default.createElement("div",{className:C("Card-title",s.titleClassName||o)},r("title",O)):null,w||E?l.default.createElement("div",{className:C("Card-subTitle",s.subTitleClassName||c)},r("sub-title",w||E,{className:C(w?void 0:"Card-placeholder")})):null,R||T?l.default.createElement("div",{className:C("Card-desc",s.descClassName||m)},r("desc",R||T,{className:R?void 0:"text-muted"})):null))}var $=this.renderBody();return l.default.createElement("div",{onClick:u&&h?this.handleClick:void 0,className:C("Card",a)},this.renderToolbar(),v,$?l.default.createElement("div",{className:C("Card-body",i)},$):null,this.renderActions())},a.defaultProps={className:"",avatarClassName:"",bodyClassName:"",actionsCount:4,titleClassName:"",highlightClassName:"",subTitleClassName:"",descClassName:""},a.propsList=["multiple","avatarClassName","bodyClassName","actionsCount","titleClassName","highlightClassName","subTitleClassName","descClassName","hideCheckToggler"],a}(l.default.Component);a.Card=C;var f=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([r.Renderer({test:/(^|\/)card$/,name:"card"})],a)}(C);a.CardRenderer=f;var b=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.render=function(){var e=this.props,a=(e.type,e.className),s=e.render,r=e.style,n=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,c=e.width,m=e.innerClassName,u=(e.label,e.tabIndex),p=e.onKeyUp,h=e.field,C=t.__rest(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field"]),f=t.__assign(t.__assign({},h),{className:m,type:h&&h.type||"plain"}),b=o?o:s("field",f,t.__assign(t.__assign({},C),{value:i,data:d}));return c&&(r=r||{},r.width=r.width||c,b=l.default.createElement("div",{style:{width:/%/.test(String(c))?"":c}},b)),n?l.default.createElement(n,{style:r,className:a,tabIndex:u,onKeyUp:p},b):b},a.defaultProps=t.__assign(t.__assign({},u.TableCell.defaultProps),{wrapperComponent:"div"}),a.propsList=t.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],u.TableCell.propsList),a=t.__decorate([r.Renderer({test:/(^|\/)card-item-field$/,name:"card-item"}),c.default(),m.default(),p.default()],a)}(u.TableCell);a.CardItemFieldRenderer=b}); -;/*!src/renderers/Date.tsx*/ -amis.define("29e1f6a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),s=a.__importDefault(e("node_modules/moment/moment")),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={random:0},t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,a=t.fromNow,r=t.updateFrequency;a&&r&&(this.refreshInterval=setInterval(function(){e.setState({random:Math.random()})},r))},t.prototype.componentWillUnmount=function(){clearInterval(this.refreshInterval)},t.prototype.render=function(){var e=this.props,t=e.value,a=e.valueFormat,n=e.format,o=e.placeholder,l=e.fromNow,d=e.className,u=e.classnames,i=e.translate,m=r.default.createElement("span",{className:"text-muted"},o);if(t){var f=s.default(t,s.default.ISO_8601),p=s.default(t,a);m=f.isValid()?f.format(n):p.isValid()?p.format(n):!1}return l&&(m=s.default(m).fromNow()),m=m?m:r.default.createElement("span",{className:"text-danger"},i("日期无效")),r.default.createElement("span",{className:u("DateField",d)},m)},t.defaultProps={placeholder:"-",format:"YYYY-MM-DD",valueFormat:"X",fromNow:!1,updateFrequency:6e4},t}(r.default.Component);t.DateField=o;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},o.defaultProps),{format:"YYYY-MM-DD"}),t=a.__decorate([n.Renderer({test:/(^|\/)date$/,name:"date-field"})],t)}(o);t.DateFieldRenderer=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},o.defaultProps),{format:"YYYY-MM-DD HH:mm:ss"}),t=a.__decorate([n.Renderer({test:/(^|\/)datetime$/,name:"datetime-field"})],t)}(o);t.DateTimeFieldRenderer=d;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},o.defaultProps),{format:"HH:mm"}),t=a.__decorate([n.Renderer({test:/(^|\/)time$/,name:"time-field"})],t)}(o);t.TimeFieldRenderer=u}); -;/*!src/renderers/Dialog.tsx*/ -amis.define("e299c64",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),a=e("919cbd9"),r=e("0f9ebdf"),i=e("6a2dbb7"),s=o.__importDefault(e("628f736")),l=o.__importDefault(e("node_modules/lodash/findLast")),d=e("9a80175"),c=e("node_modules/mobx/lib/mobx"),p=e("b7bbd16"),h=e("4550477"),u=e("node_modules/react-dom/index"),f=e("1953fc1"),m=function(e){function t(t){var o=e.call(this,t)||this;return o.isDead=!1,o.$$id=d.guid(),o.state={entered:!!o.props.show},o.handleSelfClose=o.handleSelfClose.bind(o),o.handleAction=o.handleAction.bind(o),o.handleDialogConfirm=o.handleDialogConfirm.bind(o),o.handleDialogClose=o.handleDialogClose.bind(o),o.handleDrawerConfirm=o.handleDrawerConfirm.bind(o),o.handleDrawerClose=o.handleDrawerClose.bind(o),o.handleEntered=o.handleEntered.bind(o),o.handleExited=o.handleExited.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleFormSaved=o.handleFormSaved.bind(o),o.handleFormChange=o.handleFormChange.bind(o),o.handleChildFinished=o.handleChildFinished.bind(o),o}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.store;this.reaction=c.reaction(function(){return""+t.loading+t.error},function(){return e.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction(),this.isDead=!0},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.confirm,n=e.translate;if("undefined"!=typeof t)return t;var a=[];return a.push({type:"button",actionType:"cancel",label:n("取消")}),o&&a.push({type:"button",actionType:"confirm",label:n("确认"),primary:!0}),a},t.prototype.handleSelfClose=function(){var e=this.props,t=e.onClose,o=e.store;o.updateMessage(),t()},t.prototype.handleAction=function(e,t,o){var n=this.props,a=n.store,r=n.onAction;"reset"===t.type?a.reset():"cancel"===t.actionType?this.handleSelfClose():r&&r(e,t,o)},t.prototype.handleDialogConfirm=function(e,t){for(var n=[],a=2;an;n++){var r=o[n];(r===e||r.raw===e)&&(o.splice(n,1),i--,n--)}},t.prototype.handleChange=function(e,t,o){var n=this.props,i=n.onChange,r=n.store,a=n.submitOnChange;i&&i(r.data,d.difference(r.data,r.pristine),this.props),(o||a)&&this.handleAction(void 0,{type:"submit"},r.data)},t.prototype.handleFormSubmit=function(e){return e.preventDefault(),this.handleAction(e,{type:"submit"},this.props.store.data)},t.prototype.handleAction=function(e,t,n,i,r){var s=this;void 0===i&&(i=!1);var l=this.props,c=l.store,p=l.onSubmit,u=l.api,h=l.asyncApi,f=l.finishedField,m=l.checkInterval,g=l.messages,y=g.saveSuccess,b=g.saveFailed,C=l.resetAfterSubmit,_=l.onAction,A=l.onSaved,D=l.onReset,F=l.onFinished,w=l.onFailed,k=l.redirect,S=l.reload,T=l.target,x=l.env,I=l.onChange,O=l.clearPersistDataAfterSubmit,E=l.trimValues,M=l.translate;if(this.flush(),E&&c.trimValues(),n===this.props.data&&(n=c.data),Array.isArray(t.required)&&t.required.length)return c.validateFields(t.required).then(function(a){a?s.handleAction(e,o.__assign(o.__assign({},t),{required:void 0}),n,i,r):x.notify("error",M("依赖的部分字段没有通过验证,请注意填写!"))});if("submit"===t.type||"submit"===t.actionType||"confirm"===t.actionType)return c.setCurrentAction(t),this.submit(function(e){var i;if(p&&p(e,t)===!1)return Promise.resolve(!1);if(T)s.submitToTarget(T,e);else if("reload"===t.actionType)t.target&&s.reloadTarget(t.target,e);else if("dialog"===t.actionType)c.openDialog(n);else if("drawer"===t.actionType)c.openDrawer(n);else if(v.isEffectiveApi(t.api||u,e)){var r=t.asyncApi||h;return v.isEffectiveApi(r,c.data)&&c.updateData((i={},i[f||"finished"]=!1,i)),c.saveRemote(t.api||u,e,{successMessage:y,errorMessage:b,onSuccess:function(){return v.isEffectiveApi(r,c.data)&&!c.data[f||"finished"]?d.until(function(){return c.checkRemote(r,c.data)},function(e){return e&&e[f||"finished"]},function(e){return s.asyncCancel=e},m):void 0}}).then(function(n){return o.__awaiter(s,void 0,void 0,function(){var i;return o.__generator(this,function(o){switch(o.label){case 0:return A&&A(e,n),t.feedback&&d.isVisible(t.feedback,c.data)?[4,this.openFeedback(t.feedback,c.data)]:[3,2];case 1:if(i=o.sent(),t.feedback.skipRestOnCancel&&!i)throw new d.SkipOperation;o.label=2;case 2:return[2]}})})})}return Promise.resolve(null)}).then(function(e){if(e===!1)return c.data;if(F&&F(e,t)===!1)return e;if(C&&c.reset(D),O&&c.clearPersistData(),t.redirect||k){var o=a.filter(t.redirect||k,c.data);o&&x.jumpTo(o,t)}else(t.reload||S)&&s.reloadTarget(t.reload||S,c.data);return t.close&&s.closeTarget(t.close),e}).catch(function(e){if(!(e instanceof d.SkipOperation)&&(w&&w(e,c.errors),i))throw e});if("reset"===t.type)c.setCurrentAction(t),c.reset(D);else if("dialog"===t.actionType)c.setCurrentAction(t),c.openDialog(n);else if("drawer"===t.actionType)c.setCurrentAction(t),c.openDrawer(n);else{if("ajax"===t.actionType)return c.setCurrentAction(t),v.isEffectiveApi(t.api)?c.saveRemote(t.api,n,{successMessage:M(t.messages&&t.messages.success||y),errorMessage:M(t.messages&&t.messages.failed||b)}).then(function(e){return o.__awaiter(s,void 0,void 0,function(){var n;return o.__generator(this,function(o){switch(o.label){case 0:return e&&I&&I(c.data,d.difference(c.data,c.pristine),this.props),c.validated?[4,this.validate(!0)]:[3,2];case 1:o.sent(),o.label=2;case 2:return t.feedback&&d.isVisible(t.feedback,c.data)?[4,this.openFeedback(t.feedback,c.data)]:[3,4];case 3:o.sent(),o.label=4;case 4:return n=t.redirect&&a.filter(t.redirect,c.data),n&&x.jumpTo(n,t),t.reload&&this.reloadTarget(t.reload,c.data),t.close&&this.closeTarget(t.close),[2]}})})}).catch(function(e){if(w&&w(e,c.errors),i)throw e}):x.alert(M("当 actionType 为 ajax 时,请设置 api 属性"));if("reload"===t.actionType)c.setCurrentAction(t),t.target&&this.reloadTarget(t.target,n);else if(_)return _(e,t,n,i,r||this.context)}},t.prototype.handleDialogConfirm=function(e,t,o,n){var i=this.props,r=i.store,a=i.onChange;(t.mergeData||r.action.mergeData)&&1===e.length&&e[0]&&"form"===n[0].props.type&&(r.updateData(e[0]),a&&a(r.data,d.difference(r.data,r.pristine),this.props)),r.closeDialog(!0)},t.prototype.handleDialogClose=function(){var e=this.props.store;e.closeDialog(!1)},t.prototype.handleDrawerConfirm=function(e,t,o,n){var i=this.props,r=i.store,a=i.onChange;(t.mergeData||r.action.mergeData)&&1===e.length&&e[0]&&"form"===n[0].props.type&&(r.updateData(e[0]),a&&a(r.data,d.difference(r.data,r.pristine),this.props)),r.closeDrawer(!0)},t.prototype.handleDrawerClose=function(){var e=this.props.store;e.closeDrawer(!1)},t.prototype.submitToTarget=function(){},t.prototype.reloadTarget=function(){},t.prototype.closeTarget=function(){},t.prototype.openFeedback=function(e,t){var o=this;return new Promise(function(n){var i=o.props.store;i.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),i.openDialog(t,void 0,function(e){n(e)})})},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.submitText,n=e.controls,i=e.translate;return"undefined"!=typeof t||!o||Array.isArray(n)&&n.some(function(e){return!!~["submit","button","reset","button-group"].indexOf(e.type)})?t:[{type:"submit",label:i(o),primary:!0}]},t.prototype.renderFormItems=function(e,t,o){return void 0===t&&(t=""),void 0===o&&(o={}),this.renderControls(e.controls,t,o)},t.prototype.renderControls=function(e,t,i){var r=this;if(void 0===i&&(i={}),e=e||[],Array.isArray(e)||(e=[e]),"row"===this.props.mode){var a=this.props.classPrefix;return e=p.default(e).filter(function(e){if(e.hidden||e.visible===!1)return!1;var t=l.default(e,r.props.store.data);return t.hidden||t.visible===!1?!1:!0}),e.length?n.default.createElement("div",{className:a+"Form-row"},e.map(function(e,t){return~["hidden","formula"].indexOf(e.type)||"inline"===e.mode?r.renderControl(e,t,i):n.default.createElement("div",{key:t,className:s.default(a+"Form-col",e.columnClassName)},r.renderControl(e,"",o.__assign(o.__assign({},i),{mode:"row"})))})):null}return e.map(function(e,o){return r.renderControl(e,o,i,t)})},t.prototype.renderControl=function(e,t,n,i){if(void 0===t&&(t=""),void 0===n&&(n={}),void 0===i&&(i=""),!e)return null;"string"==typeof e&&(e={type:"tpl",tpl:e});var r=o.__assign(o.__assign({},this.props),n),a=this.props.store,s=r.render,d=r.mode,c=r.horizontal,p=r.store,u=r.disabled,h=r.controlWidth,f=r.resolveDefinitions,m=r.lazyChange,v=r.formLazyChange,g={formStore:a,data:p.data,key:(e.name||"")+"-"+e.type+"-"+t,formInited:a.inited,formMode:d,formHorizontal:c,controlWidth:h,disabled:u||e.disabled||a.loading,btnDisabled:a.loading||a.validating,onAction:this.handleAction,onChange:v===!1?this.handleChange:this.lazyHandleChange,addHook:this.addHook,removeHook:this.removeHook,renderFormItems:this.renderFormItems,formPristine:a.pristine},y="control"===e.type?e:{type:"control",control:e};if(y.control){var b=y.control;if(b.$ref?(y.control=b=o.__assign(o.__assign(o.__assign({},f(b.$ref)),b),l.default(b,p.data)),delete b.$ref):y.control=b=o.__assign(o.__assign({},b),l.default(b,p.data)),b.component&&(b.formItemConfig||void 0!==b.label&&b.name)){var _=this.componentCache.get(b.component);if(_)b.component=_;else{var A=C.asFormItem(o.__assign({strictMode:!1},b.formItemConfig))(b.component);this.componentCache.set(b.component,A),b.component=A}}b.hiddenOn&&(y.hiddenOn=b.hiddenOn),b.visibleOn&&(y.visibleOn=b.visibleOn),m===!1&&(b.changeImmediately=!0)}return s(""+(i?i+"/":"")+t,y,g)},t.prototype.renderBody=function(){var e=this.props,t=e.tabs,i=e.fieldSet,r=e.controls,a=e.mode,s=e.className,l=e.classnames,d=e.debug,c=e.$path,p=e.store,u=e.render,h=this.props.wrapperComponent||(/(?:\/|^)form\//.test(c)?"div":"form");return n.default.createElement(h,{className:l("Form","Form--"+(a||"normal"),s),onSubmit:this.handleFormSubmit,noValidate:!0},d?n.default.createElement("pre",null,n.default.createElement("code",null,JSON.stringify(p.data,null,2))):null,n.default.createElement(g.default,{show:p.loading,overlay:!0}),this.renderFormItems({tabs:t,fieldSet:i,controls:r}),u("modal",o.__assign(o.__assign({},p.action&&p.action.dialog),{type:"dialog"}),{key:"dialog",data:p.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:p.dialogOpen}),u("modal",o.__assign(o.__assign({},p.action&&p.action.drawer),{type:"drawer"}),{key:"drawer",data:p.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:p.drawerOpen}))},t.prototype.render=function(){var e=this.props,t=e.wrapWithPanel,o=e.render,i=e.title,r=e.store,a=e.panelClassName,s=e.headerClassName,l=e.footerClassName,d=e.actionsClassName,c=e.bodyClassName,p=e.classnames,u=e.affixFooter,h=e.lazyLoad,f=e.translate,m=this.renderBody();return t&&(m=o("body",{type:"panel",title:f(i)},{className:p(a,"Panel--form"),children:m,actions:this.buildActions(),onAction:this.handleAction,disabled:r.loading,btnDisabled:r.loading||r.validating,headerClassName:s,footerClassName:l,actionsClassName:d,bodyClassName:c,affixFooter:u})),h&&(m=n.default.createElement(y.LazyComponent,null,m)),m},t.defaultProps={title:"表单",submitText:"提交",initFetch:!0,wrapWithPanel:!0,mode:"normal",collapsable:!1,controlWidth:"full",horizontal:{left:2,right:10,offset:2},panelClassName:"Panel--default",messages:{fetchFailed:"初始化失败",saveSuccess:"保存成功",saveFailed:"保存失败"},wrapperComponent:"",finishedField:"finished",initFinishedField:"finished"},t.propsList=["title","header","controls","tabs","fieldSet","submitText","initFetch","wrapWithPanel","mode","collapsable","horizontal","panelClassName","messages","wrapperComponent","resetAfterSubmit","submitOnInit","submitOnChange","onInit","onReset","onSubmit","onChange","onFailed","onFinished","onSaved","canAccessSuperData","lazyChange","formLazyChange","lazyLoad","formInited"],t}(n.default.Component);t.default=A;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this),e.prototype.componentWillMount.call(this)},t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.props.autoFocus){var t=this.context,o=t.getComponents(),n=u.default(o,function(e){return e.focus});n&&setTimeout(function(){return n.focus()},200)}},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.prototype.doAction=function(e,t,o){return void 0===t&&(t=this.props.store.data),void 0===o&&(o=!1),this.handleAction(void 0,e,t,o)},t.prototype.handleAction=function(t,n,i,r,a){if(void 0===r&&(r=!1),n.target&&"reload"!==n.actionType){var s=this.context;return Promise.all(n.target.split(",").map(function(e){var t=s.getComponentByName(e);return t&&t.doAction&&t.doAction(o.__assign(o.__assign({},n),{target:void 0}),i,r)}))}return e.prototype.handleAction.call(this,t,n,i,r,a)},t.prototype.handleDialogConfirm=function(t,o,n,i){e.prototype.handleDialogConfirm.call(this,t,o,n,i);var r=this.props.store,a=this.context;o.reload?a.reload(o.reload,n):r.action&&r.action.reload&&a.reload(r.action.reload,n)},t.prototype.submitToTarget=function(e,t){var o=this.context;o.send(e,t)},t.prototype.reloadTarget=function(e,t){var o=this.context;o.reload(e,t)},t.prototype.closeTarget=function(e){var t=this.context;t.close(e)},t.prototype.reload=function(t,o,n,i){if(o)return this.receive(o);var r,a=this.context,s="",l=null;t&&~(r=t.indexOf("."))&&(s=t.substring(r+1),t=t.substring(0,r));var d=t?t.indexOf("?"):-1;~d&&(l=m.dataMapping(f.default.parse(t.substring(d+1)),n),t=t.substring(0,d));var c;if(t&&(c=a.getComponentByName(t))&&c.reload)c.reload(s,l,n);else if("*"===t){e.prototype.reload.call(this,t,o,n,i);var p=a.getComponents();p.forEach(function(e){return e.reload&&e.reload("",l,n)})}else e.prototype.reload.call(this,t,o,n,i)},t.prototype.receive=function(t,o){if(o){var n=this.context,i=o.indexOf("."),r="";~i&&(r=o.substring(1+i),o=o.substring(0,i));var a=n.getComponentByName(o);return void(a&&a.receive&&a.receive(t,r))}return e.prototype.receive.call(this,t)},t.contextType=h.ScopedContext,t=o.__decorate([i.Renderer({test:function(e){return/(^|\/)form$/.test(e)&&!/(^|\/)form(?:\/.+)?\/control\/form$/.test(e)},storeType:r.FormStore.name,name:"form",isolateScope:!0})],t)}(A);t.FormRenderer=D}); -;/*!src/renderers/Form/Control.tsx*/ -amis.define("610fd77",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),i=o.__importDefault(e("node_modules/react/index")),n=o.__importDefault(e("node_modules/lodash/debounce")),a=e("0f9ebdf"),r=e("3fbfd93"),l=e("9a80175"),s=e("919cbd9"),d=e("node_modules/mobx/lib/mobx"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lazyValidate=n.default(t.validate.bind(t),250,{trailing:!0,leading:!1}),t.lazyEmitChange=n.default(t.emitChange.bind(t),250,{trailing:!0,leading:!1}),t.state={value:t.value=t.props.control.value},t}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props,o=t.formStore,i=t.control,n=i.name,a=i.id,l=i.type,s=i.required,h=i.validations,u=i.validationErrors,p=i.unique,m=i.value,c=i.multiple,f=i.delimiter,v=i.valueField,g=i.labelField,y=i.joinValues,b=i.extractValue;if(this.getValue=this.getValue.bind(this),this.setValue=this.setValue.bind(this),this.handleChange=this.handleChange.bind(this),this.handleBulkChange=this.handleBulkChange.bind(this),this.setPrinstineValue=this.setPrinstineValue.bind(this),this.controlRef=this.controlRef.bind(this),this.handleBlur=this.handleBlur.bind(this),n){var C=this.model=o.registryItem(n,{id:a,type:l,required:s,unique:p,value:m,rules:h,messages:u,multiple:c,delimiter:f,valueField:v,labelField:g,joinValues:y,extractValue:b});if(this.model.unique&&o.parentStore&&o.parentStore.storeType===r.ComboStore.name){var V=o.parentStore;V.bindUniuqueItem(this.model)}this.setState({value:this.value=C.value}),this.reaction=d.reaction(function(){return C.value},function(t){return e.setState({value:e.value=t})})}},t.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.store,i=t.formStore,n=t.control,a=n.name,r=n.validate,s=t.addHook;if(a&&i!==o){var d=l.getVariable(o.data,a);"undefined"!=typeof d&&d!==this.getValue()&&this.handleChange(d,!1,!0)}this.hook3=function(){e.lazyEmitChange.flush(),e.lazyValidate.flush()},s(this.hook3,"flush");var h=this.model;if(h&&r){var u=l.promisify(r.bind(h));this.hook2=function(){return h.clearError("control:valdiate"),u(i.data,h.value,h.name).then(function(e){("string"==typeof e||Array.isArray(e))&&e&&h.addError(e,"control:valdiate")})},s(this.hook2)}},t.prototype.componentWillReceiveProps=function(e){{var t=this.props;e.formStore}this.model&&l.anyChanged(["id","validations","validationErrors","value","required","unique","multiple","delimiter","valueField","labelField","joinValues","extractValue"],t.control,e.control)&&this.model.config({required:e.control.required,id:e.control.id,unique:e.control.unique,value:e.control.value,rules:e.control.validations,multiple:e.control.multiple,delimiter:e.control.delimiter,valueField:e.control.valueField,labelField:e.control.labelField,joinValues:e.control.joinValues,extractValue:e.control.extractValue,messages:e.control.validationErrors})},t.prototype.componentDidUpdate=function(e){var t=this.props,o=t.store,i=t.formStore,n=t.data,a=t.control.name;if(a){var r;i!==o&&n!==e.data&&(r=l.getVariable(n,a))!==l.getVariable(e.data,a)&&this.handleChange(r,!1,!0)}},t.prototype.componentWillUnmount=function(){this.hook&&this.props.removeHook(this.hook),this.hook2&&this.props.removeHook(this.hook2),this.hook3&&this.props.removeHook(this.hook3,"flush"),this.lazyValidate.cancel(),this.lazyEmitChange.cancel(),this.reaction&&this.reaction(),this.disposeModel()},t.prototype.disposeModel=function(){var e=this.props.formStore;if(this.model&&this.model.unique&&e.parentStore&&e.parentStore.storeType===r.ComboStore.name){var t=e.parentStore;t.unBindUniuqueItem(this.model)}this.model&&e.unRegistryItem(this.model)},t.prototype.controlRef=function(e){for(var t=this.props,o=t.addHook,i=t.removeHook,n=t.formStore;e&&e.getWrappedInstance;)e=e.getWrappedInstance();if(e&&e.validate&&this.model){var a=this.model,r=l.promisify(e.validate.bind(e));this.hook=function(){return a.clearError("component:valdiate"),r(n.data,a.value,a.name).then(function(e){("string"==typeof e||Array.isArray(e))&&e&&a.setError(e,"component:valdiate")})},o(this.hook)}else!e&&this.hook&&(i(this.hook),this.hook=void 0);this.control=e},t.prototype.validate=function(){var e=this,t=this.props.formStore;if(this.model)if(this.model.unique&&t.parentStore&&t.parentStore.storeType===r.ComboStore.name){var o=t.parentStore,i=o.uniques.get(this.model.name);i.items.forEach(function(e){return e.validate()})}else this.model.validate(this.hook),t.getItemsByName(this.model.name).forEach(function(t){return t!==e.model&&t.validate()})},t.prototype.handleChange=function(e,t,o){void 0===t&&(t=this.props.control.submitOnChange),void 0===o&&(o=!1);var i=this.props,n=i.formStore,a=i.onChange,r=i.control,l=r.type,s=r.pipeOut,d=r.changeImmediately,h=i.formInited;if(!this.model||~["service","group","hbox","panel","grid"].indexOf(l))return void(a&&a.apply(void 0,arguments));if(s){var u=this.model.value;e=s(e,u,n.data)}this.setState({value:this.value=e}),o||d||!h?this.emitChange(t):this.lazyEmitChange(t)},t.prototype.emitChange=function(e){void 0===e&&(e=this.props.control.submitOnChange);var t=this.props,o=t.formStore,i=t.onChange,n=t.control,a=n.validateOnChange,r=n.name,l=n.onChange;if(this.model){var s=this.value,d=this.model.value;d!==s&&(this.model.changeValue(s),a===!0||a!==!1&&(o.submited||this.model.validated)?this.lazyValidate():a!==!1||this.model.valid||this.model.reset(),l&&l(s,d,this.model,o),i&&i(s,r,e===!0))}},t.prototype.handleBlur=function(e){var t=this.props,o=t.onBlur,i=t.control.validateOnBlur;i&&this.model&&this.validate(),o&&o(e)},t.prototype.handleBulkChange=function(e,t){void 0===t&&(t=this.props.control.submitOnChange);var o=this.props,i=o.formStore,n=o.onChange,a=o.control,r=a.validateOnChange,s=a.type,d=o.onBulkChange;if(l.isObject(e)){if(!this.model||~["service"].indexOf(s))return void(d&&d(e));var h,u="";Object.keys(e).forEach(function(t){var o=e[t];u=t,h=o}),u&&(i.setValues(e),r!==!1&&(i.submited||this.model.validated)&&this.lazyValidate(),n&&n(h,u,t===!0))}},t.prototype.setPrinstineValue=function(e){if(this.model){var t=this.props,o=t.formStore,i=t.control.pipeOut;if(i){var n=this.model.value;e=i(e,n,o.data)}this.model.changeValue(e,!0)}},t.prototype.getValue=function(){var e=this.props,t=e.formStore,o=e.control,i=this.state.value;return o.pipeIn&&(i=o.pipeIn(i,t.data)),i},t.prototype.setValue=function(e,t){var o,i=this.props.control.name;t&&t!==i?this.handleBulkChange((o={},o[t]=e,o)):this.handleChange(e)},t.prototype.render=function(){var e=this.props,t=e.render,i=e.control,n=(i.pipeIn,i.pipeOut,i.onChange,o.__rest(i,["pipeIn","pipeOut","onChange"])),a=e.formMode,r=e.controlWidth,l=(e.type,e.store),s=e.data,d=e.disabled,h=e.onChange,u=o.__rest(e,["render","control","formMode","controlWidth","type","store","data","disabled","onChange"]),p=this.model,m=this.getValue();return t("",n,o.__assign(o.__assign({},u),{defaultSize:r,disabled:d||n.disabled,formItem:p,formMode:n.mode||a,ref:this.controlRef,defaultValue:n.value,data:l?l.data:s,value:m,formItemValue:m,onChange:"input-group"===n.type?h:this.handleChange,onBlur:this.handleBlur,setValue:this.setValue,getValue:this.getValue,onBulkChange:this.handleBulkChange,prinstine:p?p.prinstine:void 0,setPrinstineValue:this.setPrinstineValue}))},t.propsList=["control"],t.defaultProps={},t}(i.default.PureComponent);t.default=h;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.controlRef=function(t){var o=this.control;e.prototype.controlRef.call(this,t);var i=this.context;this.control&&(t?i.registerComponent(this.control):i.unRegisterComponent(o))},t.displayName="Control",t.contextType=s.ScopedContext,t=o.__decorate([a.Renderer({test:function(e){return/(^|\/)form(?:\/.*)?\/control$/i.test(e)&&!/\/control\/control$/i.test(e)},name:"control"})],t)}(h);t.FormControlRenderer=u}); -;/*!src/renderers/Form/Hidden.tsx*/ -amis.define("dd5dcd2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),u=e("567b83c"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){return null},t}(r.default.Component);t.default=d;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([u.FormItem({type:"hidden",wrap:!1,sizeMutable:!1})],t)}(d);t.HiddenControlRenderer=i}); -;/*!src/renderers/Form/Text.tsx*/ -amis.define("a1e61d2",function(e,t){"use strict";function n(e,t,n){return void 0===n&&(n="value"),e.filter(function(e){return-1===t.indexOf(e[n||"value"])}).reduce(function(e,t,a){return e[t[n||"value"]]=a,e},{})}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),o=e("b86428a"),i=a.__importDefault(e("node_modules/classnames/index")),u=a.__importDefault(e("node_modules/downshift/dist/downshift.cjs")),s=a.__importDefault(e("node_modules/match-sorter/dist/match-sorter.cjs")),r=a.__importDefault(e("node_modules/lodash/debounce")),d=e("6a2dbb7"),p=a.__importDefault(e("node_modules/lodash/find")),c=e("b7bbd16"),h=a.__importDefault(e("4ee46ff")),f=e("9a80175"),m=e("1caead1"),v=a.__importDefault(e("acad559")),C=function(e){function t(t){{var n=e.call(this,t)||this;t.value}return n.state={isOpen:!1,inputValue:"",isFocused:!1},n.focus=n.focus.bind(n),n.clearValue=n.clearValue.bind(n),n.inputRef=n.inputRef.bind(n),n.handleClick=n.handleClick.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.handleStateChange=n.handleStateChange.bind(n),n.loadAutoComplete=r.default(n.loadAutoComplete.bind(n),250,{trailing:!0,leading:!1}),n}a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.value!==e.value){{e.value}this.setState({inputValue:""})}},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.formItem,l=t.autoComplete,o=t.addHook,i=t.formInited,u=t.data;m.isEffectiveApi(l,u)&&n&&(i?n.loadOptions(l,f.createObject(u,{term:""})):this.unHook=o(function(t){return a.__awaiter(e,void 0,void 0,function(){return a.__generator(this,function(e){switch(e.label){case 0:return[4,n.loadOptions(l,f.createObject(t,{term:""}))];case 1:return e.sent(),n.value&&f.setVariable(t,name,n.value),[2]}})})},"init"))},t.prototype.componentWillUnmount=function(){this.unHook&&this.unHook()},t.prototype.inputRef=function(e){this.input=e},t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.clearValue=function(){var e=this,t=this.props,n=t.onChange,a=t.resetValue;n(a),this.setState({inputValue:a},function(){e.focus(),e.loadAutoComplete()})},t.prototype.removeItem=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,u=t.valueField,s=n.concat();s.splice(e,1),a(l?s.map(function(e){return e[u||"value"]}).join(i||","):o?s.map(function(e){return e[u||"value"]}):s)},t.prototype.handleClick=function(){this.focus(),this.setState({isOpen:!0})},t.prototype.handleFocus=function(e){this.setState({isOpen:!0,isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,l=t.value,o=t.onChange;this.setState({isFocused:!1},function(){a&&l&&"string"==typeof l&&o(l.trim())}),n&&n(e)},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value;this.setState({inputValue:t},this.loadAutoComplete)},t.prototype.handleKeyDown=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,u=t.multiple,s=t.valueField;if(n.length&&!this.state.inputValue&&8===e.keyCode){e.preventDefault();var r=n.concat();r.pop(),a(l?r.map(function(e){return e[s||"value"]}).join(i||","):o?r.map(function(e){return e[s||"value"]}):r),this.setState({inputValue:""},this.loadAutoComplete)}else if(13===e.keyCode&&this.state.inputValue&&"number"!=typeof this.highlightedIndex){e.preventDefault();var d=this.state.inputValue;if(u){if(d&&!p.default(n,function(e){return e.value==d})){var r=n.concat();r.push({label:d,value:d}),a(l?r.map(function(e){return e[s||"value"]}).join(i||","):o?r.map(function(e){return e[s||"value"]}):r)}}else a(d);this.setState({inputValue:"",isOpen:!1},this.loadAutoComplete)}else 13===e.keyCode&&this.state.isOpen&&"number"!=typeof this.highlightedIndex&&this.setState({isOpen:!1})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple,l=t.joinValues,o=t.extractValue,i=t.delimiter,u=t.selectedOptions,s=t.valueField;if(a){var r=u.concat();r.push({label:e,value:e}),n(l?r.map(function(e){return e[s||"value"]}).join(i||","):o?r.map(function(e){return e[s||"value"]}):r)}else n(e);this.setState({inputValue:""},this.loadAutoComplete)},t.prototype.handleStateChange=function(e){var t=this.props.multiple||this.props.multi;switch(e.type){case u.default.stateChangeTypes.itemMouseEnter:this.setState({isOpen:!0});break;case u.default.stateChangeTypes.changeInput:this.setState({isOpen:!0});break;default:var n={};"undefined"!=typeof e.isOpen&&(n.isOpen=e.isOpen),"undefined"!=typeof e.highlightedIndex&&(this.highlightedIndex=e.highlightedIndex),!t&&this.state.isOpen&&e.isOpen===!1&&(n.inputValue=""),this.setState(n)}},t.prototype.handleNormalInputChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;t(n)},t.prototype.loadAutoComplete=function(){var e=this.props,t=e.formItem,n=e.autoComplete,a=e.data;m.isEffectiveApi(n,a)&&t&&t.loadOptions(n,f.createObject(a,{term:this.state.inputValue||t.lastSelectValue}))},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.renderSugestMode=function(){var e=this,t=this.props,i=t.className,r=t.inputOnly,d=t.value,p=t.type,f=t.placeholder,m=t.classnames,C=t.disabled,g=t.name,y=t.loading,b=t.clearable,_=t.options,O=t.selectedOptions,x=t.autoComplete,V=t.labelField,N=t.valueField,E=t.multiple,I=t.translate;return l.default.createElement(u.default,{isOpen:this.state.isOpen,inputValue:this.state.inputValue,onChange:this.handleChange,onStateChange:this.handleStateChange,selectedItem:O.map(function(e){return e[N||"value"]})},function(t){var u,T=t.getInputProps,S=t.getItemProps,F=t.isOpen,k=t.inputValue,w=t.selectedItem,D=t.highlightedIndex,j=k&&F&&!x?s.default(_,k,{keys:[V||"label",N||"value"]}):_,A=F?n(j,w):{};return j=j.filter(function(e){return!~w.indexOf(e.value)}),!j.length&&e.state.inputValue&&j.push((u={},u[V||"label"]=e.state.inputValue,u[N||"value"]=e.state.inputValue,u.isNew=!0,u)),l.default.createElement("div",{className:m("TextControl-input TextControl-input--withAC",r?i:"",{"is-opened":F,"TextControl-input--multiple":E}),onClick:e.handleClick},l.default.createElement("div",{className:m("TextControl-valueWrap")},!f||O.length||e.state.inputValue||e.state.isFocused?null:l.default.createElement("div",{className:m("TextControl-placeholder")},f),O.map(function(t,n){return E?l.default.createElement("div",{className:m("TextControl-value"),key:n},l.default.createElement("span",{className:m("TextControl-valueIcon"),onClick:e.removeItem.bind(e,n)},"×"),l.default.createElement("span",{className:m("TextControl-valueLabel")},t[V||"label"])):k&&F?null:l.default.createElement("div",{className:m("TextControl-value"),key:n},t.label)}),l.default.createElement(h.default,a.__assign({},T({name:g,ref:e.inputRef,disabled:C,type:p,onFocus:e.handleFocus,onBlur:e.handleBlur,onChange:e.handleInputChange,onKeyDown:e.handleKeyDown}),{autoComplete:"off",size:10}))),b&&!C&&d?l.default.createElement("a",{onClick:e.clearValue,className:m("TextControl-clear")},l.default.createElement(c.Icon,{icon:"close",className:"icon"})):null,y?l.default.createElement(v.default,{show:!0,icon:"reload",spinnerClassName:m("TextControl-spinner")}):null,F&&j.length?l.default.createElement("div",{className:m("TextControl-sugs")},j.map(function(e){return l.default.createElement("div",a.__assign({},S({item:e.value,disabled:e.disabled,className:m("TextControl-sugItem",{"is-highlight":D===A[e.value],"is-disabled":e.disabled})}),{key:e.value}),e.isNew?l.default.createElement("span",null,I("新增:{{label}}",{label:e.label}),l.default.createElement(c.Icon,{icon:"enter",className:"icon"})):l.default.createElement("span",null,e.disabled?e.label:o.highlight(e.label,k),e.tip))})):null)})},t.prototype.renderNormal=function(){var e=this.props,t=e.classPrefix,n=e.classnames,a=e.className,o=e.inputOnly,i=e.value,u=e.type,s=e.placeholder,r=(e.onChange,e.disabled),d=e.readOnly,p=e.clearable,h=e.name;return l.default.createElement("div",{className:n("TextControl-input",o?a:"")},l.default.createElement("input",{name:h,placeholder:s,ref:this.inputRef,disabled:r,readOnly:d,type:u,onFocus:this.handleFocus,onBlur:this.handleBlur,autoComplete:"off",size:10,onChange:this.handleNormalInputChange,value:"undefined"==typeof i||null===i?"":"string"==typeof i?i:JSON.stringify(i)}),p&&!r&&i?l.default.createElement("a",{onClick:this.clearValue,className:t+"TextControl-clear"},l.default.createElement(c.Icon,{icon:"close",className:"icon"})):null)},t.prototype.render=function(){var e,t=this.props,n=t.className,a=t.classPrefix,o=t.options,u=t.source,s=t.autoComplete,r=t.addOn,p=t.render,c=t.data,h=t.disabled,f=t.inputOnly,m="string"==typeof r?{label:r,type:"plain"}:r,v=s!==!1&&(u||o.length||s)?this.renderSugestMode():this.renderNormal(),C=m?m.actionType||~["button","submit","reset","action"].indexOf(m.type)?l.default.createElement("div",{className:i.default(a+"TextControl-button",m.className)},p("addOn",m,{disabled:h})):l.default.createElement("div",{className:i.default(a+"TextControl-addOn",m.className)},m.label?d.filter(m.label,c):null,m.icon&&l.default.createElement("i",{className:m.icon})):null;return f?v:l.default.createElement("div",{className:i.default(n,a+"TextControl",(e={},e[a+"TextControl--withAddOn"]=!!C,e["is-focused"]=this.state.isFocused,e["is-disabled"]=h,e))},m&&"left"===m.position?C:null,v,m&&"left"!==m.position?C:null)};var C;return t.defaultProps={resetValue:"",labelField:"label",valueField:"value",placeholder:"",allowInputText:!0},a.__decorate([f.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(C="undefined"!=typeof l.default&&l.default.ChangeEvent)?C:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleNormalInputChange",null),t}(l.default.PureComponent);t.default=C,t.mapItemIndex=n;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"text"})],t)}(C);t.TextControlRenderer=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"password"})],t)}(C);t.PasswordControlRenderer=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"email",validations:"isEmail"})],t)}(C);t.EmailControlRenderer=b;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"url",validations:"isUrl"})],t)}(C);t.UrlControlRenderer=_}); -;/*!src/components/ListMenu.tsx*/ -amis.define("10c485a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("256b65d"),r=n.__importDefault(e("node_modules/react/index")),s=e("5ab4e9d"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderItem=function(e,t,i){var s=this,a=this.props,l=a.classnames,d=a.itemRender,u=a.disabled,c=a.getItemProps,o=a.highlightIndex,m=a.selectedOptions,p=a.onSelect;if(Array.isArray(t.children)&&t.children.length){var f={items:[],index:e.index};return e.items.push(r.default.createElement("div",{className:l("ListMenu-group"),key:i},r.default.createElement("div",{className:l("ListMenu-groupLabel")},d(t)),t.children.reduce(function(e,t,n){return s.renderItem(e,t,n)},f).items)),e.index=f.index,e}var h=e.index++;return e.items.push(r.default.createElement("div",n.__assign({className:l("ListMenu-item",t.className,u||t.disabled?"is-disabled":"",h===o?"is-highlight":"",~(m||[]).indexOf(t)?"is-active":""),key:h,onClick:p?function(e){return p(e,t)}:void 0},c({item:t,index:h})),r.default.createElement("div",{className:l("ListMenu-itemLabel")},d(t)))),e},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,i=t.options,s=t.placeholder,a=t.prefix,l=t.children,d=this.props.translate;return r.default.createElement("div",{className:n("ListMenu")},a,Array.isArray(i)&&i.length?i.reduce(function(t,n,i){return e.renderItem(t,n,i)},{items:[],index:0}).items:r.default.createElement("span",{className:n("ListMenu-placeholder")},d(s)),l)},t.defaultProps={placeholder:"暂无选项",itemRender:function(e){return r.default.createElement(r.default.Fragment,null,e.label)},getItemProps:function(){return null}},t}(r.default.Component);t.ListMenu=a,t.default=i.themeable(s.localeable(a))}); -;/*!src/renderers/Form/Tag.tsx*/ -amis.define("e1b1eb7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("b86428a"),i=a.__importDefault(e("node_modules/downshift/dist/downshift.cjs")),r=a.__importDefault(e("node_modules/lodash/find")),d=e("node_modules/react-dom/index"),u=a.__importDefault(e("d14c6a1")),l=e("9a80175"),p=a.__importDefault(e("acad559")),s=a.__importDefault(e("997df41")),c=a.__importDefault(e("2b3dcdf")),m=a.__importDefault(e("10c485a")),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.input=n.default.createRef(),t.state={isOpened:!1,inputValue:"",isFocused:!1},t}a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.value!==e.value&&this.setState({inputValue:""})},t.prototype.addItem=function(e){var t=this.props,a=t.selectedOptions,n=t.onChange,o=t.joinValues,i=t.extractValue,d=t.delimiter,u=t.valueField,l=a.concat();r.default(l,function(t){return t.value==e.value})||(l.push(e),n(o?l.map(function(e){return e[u||"value"]}).join(d||","):i?l.map(function(e){return e[u||"value"]}):l))},t.prototype.handleFocus=function(e){var t,a;this.setState({isFocused:!0,isOpened:!0}),null===(a=(t=this.props).onFocus)||void 0===a?void 0:a.call(t,e)},t.prototype.handleBlur=function(e){var t,a,n=this.props,o=n.selectedOptions,i=n.onChange,d=n.joinValues,u=n.extractValue,l=n.delimiter,p=n.valueField,s=this.state.inputValue.trim();null===(a=(t=this.props).onBlur)||void 0===a?void 0:a.call(t,e),this.setState({isFocused:!1,isOpened:!1,inputValue:""},s?function(){var e=o.concat();if(!r.default(e,function(e){return e.value===s})){var t={label:s,value:s};e.push(t),i(d?e.map(function(e){return e[p||"value"]}).join(l||","):u?e.map(function(e){return e[p||"value"]}):e)}}:void 0)},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleInputChange=function(e){this.setState({inputValue:e})},t.prototype.handleChange=function(e){var t=this.props,a=t.joinValues,n=t.extractValue,o=t.delimiter,i=t.valueField,r=t.onChange,d=Array.isArray(e)?e.concat():[];(a||n)&&(d=e.map(function(e){return e[i||"value"]})),a&&(d=d.join(o||",")),r(d)},t.prototype.renderItem=function(e){var t=this.props.labelField;return e[t||"label"]},t.prototype.handleKeyDown=function(e){var t=this.props,a=t.selectedOptions,n=t.onChange,o=t.joinValues,i=t.extractValue,d=t.delimiter,u=t.valueField,l=this.state.inputValue.trim();if(a.length&&!l&&"Backspace"==e.key){var p=a.concat();p.pop(),n(o?p.map(function(e){return e[u||"value"]}).join(d||","):i?p.map(function(e){return e[u||"value"]}):p)}else if(l&&("Enter"===e.key||e.key===d)){e.preventDefault(),e.stopPropagation();var p=a.concat();r.default(p,function(e){return e.value==l})||(p.push({label:l,value:l}),n(o?p.map(function(e){return e[u||"value"]}).join(d||","):i?p.map(function(e){return e[u||"value"]}):p)),this.setState({inputValue:""})}},t.prototype.handleOptionChange=function(e){!this.state.inputValue&&e&&this.addItem(e)},t.prototype.getTarget=function(){return this.input.current},t.prototype.getParent=function(){return this.input.current&&d.findDOMNode(this.input.current).parentElement},t.prototype.reload=function(){var e,t=this.props.reloadOptions;null===(e=t)||void 0===e?void 0:e()},t.prototype.render=function(){var e=this,t=this.props,o=t.className,r=t.classnames,d=t.disabled,_=t.placeholder,f=t.name,h=t.clearable,g=t.selectedOptions,y=t.loading,v=t.popOverContainer,b=t.dropdown,O=t.options,C=t.optionsTip,F=t.translate,V=Array.isArray(O)?l.filterTree(O,function(e){return Array.isArray(e.children)&&!!e.children.length||void 0!==e.value&&!~g.indexOf(e)},0,!0):[];return n.default.createElement(i.default,{selectedItem:g,isOpen:this.state.isFocused,inputValue:this.state.inputValue,onChange:this.handleOptionChange,itemToString:this.renderItem},function(t){var i=t.isOpen,l=t.highlightedIndex,I=t.getItemProps,j=t.getInputProps;return n.default.createElement("div",{className:r(o,"TagControl")},n.default.createElement(u.default,a.__assign({},j({name:f,ref:e.input,placeholder:F(_||"暂无标签"),value:e.state.inputValue,onKeyDown:e.handleKeyDown,onFocus:e.handleFocus,onBlur:e.handleBlur,disabled:d}),{onChange:e.handleInputChange,className:r("TagControl-input"),result:g,onResultChange:e.handleChange,itemRender:e.renderItem,clearable:h,allowInput:!0}),y?n.default.createElement(p.default,{size:"sm"}):void 0),b!==!1?n.default.createElement(s.default,{container:v||e.getParent,target:e.getTarget,placement:"auto",show:i&&!!V.length},n.default.createElement(c.default,{overlay:!0,className:r("TagControl-popover"),onHide:e.close},n.default.createElement(m.default,{options:V,itemRender:e.renderItem,highlightIndex:l,getItemProps:function(e){var t=e.item,n=e.index;return a.__assign({},I({index:n,item:t,disabled:t.disabled}))}}))):n.default.createElement("div",{className:r("TagControl-sug")},C?n.default.createElement("div",{className:r("TagControl-sugTip")},F(C)):null,O.map(function(t,a){return n.default.createElement("div",{className:r("TagControl-sugItem",{"is-disabled":t.disabled||d}),key:a,onClick:e.addItem.bind(e,t)},t.label)})))})};var _,f,h,g;return t.defaultProps={resetValue:"",labelField:"label",valueField:"value",multiple:!0,placeholder:"暂无标签",optionsTip:"最近您使用的标签"},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(_="undefined"!=typeof Array&&Array)?_:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(f="undefined"!=typeof o.Option&&o.Option)?f:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"renderItem",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(h="undefined"!=typeof n.default&&n.default.KeyboardEvent)?h:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleKeyDown",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(g="undefined"!=typeof o.Option&&o.Option)?g:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleOptionChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getTarget",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getParent",null),t}(n.default.PureComponent);t.default=_;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"tag"})],t)}(_);t.TagControlRenderer=f}); -;/*!src/renderers/Form/Number.tsx*/ -amis.define("85dae7e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),a=e("567b83c"),i=n.__importDefault(e("node_modules/classnames/index")),s=e("6a2dbb7"),l=n.__importDefault(e("10d195e")),o=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=n.handleChange.bind(n),n}return n.__extends(t,e),t.prototype.handleChange=function(e){var t=this.props,n=(t.classPrefix,t.onChange),r=t.resetValue;n("undefined"==typeof e?r||"":e)},t.prototype.filterNum=function(e){return"number"!=typeof e&&(e=s.filter(e,this.props.data),e=/^[-]?\d+/.test(e)?parseInt(e,10):void 0),e},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,a=e.value,s=e.step,o=e.precision,u=e.max,d=e.min,p=e.disabled,f=e.placeholder,m={};return"number"==typeof o&&(m.precision=o),r.default.createElement("div",{className:i.default(n+"NumberControl",t)},r.default.createElement(l.default,{value:a,step:s,max:this.filterNum(u),min:this.filterNum(d),onChange:this.handleChange,disabled:p,placeholder:f,precision:o}))},t.defaultProps={step:1,resetValue:""},t}(r.default.Component);t.default=o;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps={validations:"isNumeric"},t=n.__decorate([a.FormItem({type:"number"})],t)}(o);t.NumberControlRenderer=u}); -;/*!src/renderers/Form/Textarea.tsx*/ -amis.define("eff65fe",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),o=e("567b83c"),u=n.__importDefault(e("node_modules/classnames/index")),i=n.__importDefault(e("05807e2")),r=e("node_modules/react-dom/index"),d=e("9a80175"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=function(e){return t.input=r.findDOMNode(e)},t}n.__extends(t,e),t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;t(n)},t.prototype.handleFocus=function(e){var t=this.props.onFocus;t&&t(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,o=t.value,u=t.onChange;a&&o&&"string"==typeof o&&u(o.trim()),n&&n(e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=e.value,r=e.type,d=e.placeholder,s=e.disabled,l=e.minRows,p=e.maxRows,f=e.name;return a.default.createElement(i.default,{autoComplete:"off",ref:this.inputRef,name:f,disabled:s,type:r,className:u.default(n+"TextareaControl",t),value:"undefined"==typeof o||null===o?"":"string"==typeof o?o:JSON.stringify(o),placeholder:d,minRows:l,maxRows:p,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})};var o,s,l;return t.defaultProps={minRows:3,maxRows:20},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof a.default&&a.default.ChangeEvent)?o:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof a.default&&a.default.FocusEvent)?s:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof a.default&&a.default.FocusEvent)?l:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),t}(a.default.Component);t.default=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.FormItem({type:"textarea"})],t)}(s);t.TextAreaControlRenderer=l}); -;/*!src/renderers/Form/Checkboxes.tsx*/ -amis.define("2b693f3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),l=e("b86428a"),o=n.__importDefault(e("0a43d97")),r=n.__importDefault(e("node_modules/lodash/chunk")),i=e("b7bbd16"),d=e("9a80175"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.defaultCheckAll,n=e.onToggleAll;t&&n()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.options,a=t.onToggleAll,l=t.defaultCheckAll,o=e.options;l&&o!=n&&a()},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.handleAddClick=function(){var e=this.props.onAdd;e&&e()},t.prototype.handleEditClick=function(e,t){var n=this.props.onEdit;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.handleDeleteClick=function(e,t){var n=this.props.onDelete;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.renderGroup=function(e,t){var n=this,l=this.props,o=l.classnames,r=l.labelField;return a.default.createElement("div",{key:t,className:o("CheckboxesControl-group",e.className)},a.default.createElement("label",{className:o("CheckboxesControl-groupLabel",e.labelClassName)},e[r||"label"]),e.children&&e.children.length?e.children.map(function(e,t){return n.renderItem(e,t)}):null)},t.prototype.renderItem=function(e,t){var n=this;if(e.children)return this.renderGroup(e,t);var l=this.props,r=l.itemClassName,d=l.onToggle,s=l.selectedOptions,c=l.disabled,u=l.inline,p=l.labelClassName,m=l.labelField,f=l.removable,h=l.editable;return a.default.createElement(o.default,{className:r,key:t,onChange:function(){return d(e)},checked:!!~s.indexOf(e),disabled:c||e.disabled,inline:u,labelClassName:p,description:e.description},f?a.default.createElement("a",{"data-tooltip":"移除","data-position":"left"},a.default.createElement(i.Icon,{icon:"minus",className:"icon",onClick:function(t){return n.handleDeleteClick(t,e)}})):null,h?a.default.createElement("a",{"data-tooltip":"编辑","data-position":"left"},a.default.createElement(i.Icon,{icon:"pencil",className:"icon",onClick:function(t){return n.handleEditClick(t,e)}})):null,e[m||"label"])},t.prototype.render=function(){var e=this,t=this.props,n=t.className,l=t.disabled,d=t.placeholder,s=t.options,c=t.inline,u=t.columnsCount,p=t.selectedOptions,m=(t.onToggle,t.onToggleAll),f=t.checkAll,h=t.classnames,b=t.itemClassName,_=t.labelClassName,g=t.creatable,C=t.addApi,y=t.createBtnLabel,k=t.translate,v=[];if(s&&s.length&&(v=s.map(function(t,n){return e.renderItem(t,n)})),f&&v.length&&v.unshift(a.default.createElement(o.default,{key:"checkall",className:b,onChange:m,checked:!!p.length,partial:!(!p.length||p.length===s.length),disabled:l,inline:c,labelClassName:_},"全选/不选")),!c&&u>1){var E=12/u,N="Grid-col--sm"+(E===Math.round(E)?E:"");v=r.default(v,u).map(function(e,t){return a.default.createElement("div",{className:h("Grid"),key:t},Array.from({length:u}).map(function(t,n){return a.default.createElement("div",{key:n,className:h(N)},e[n])}))})}return a.default.createElement("div",{className:h("CheckboxesControl",n)},v&&v.length?v:a.default.createElement("span",{className:"Form-placeholder"},k(d)),!g&&!C||l?null:a.default.createElement("a",{className:h("Checkboxes-addBtn"),onClick:this.handleAddClick},a.default.createElement(i.Icon,{icon:"plus",className:"icon"}),k(y)))};var l,s;return t.defaultProps={columnsCount:1,multiple:!0,placeholder:"暂无选项",creatable:!1,createBtnLabel:"新增选项"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAddClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof Event&&Event)?l:Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleEditClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof Event&&Event)?s:Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleDeleteClick",null),t}(a.default.Component);t.default=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.OptionsControl({type:"checkboxes",sizeMutable:!1})],t)}(s);t.CheckboxesControlRenderer=c}); -;/*!src/renderers/Form/Checkbox.tsx*/ -amis.define("5ade3b1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),l=e("567b83c"),u=n.__importDefault(e("node_modules/classnames/index")),r=n.__importDefault(e("0a43d97")),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.value,l=e.trueValue,o=e.falseValue,s=e.option,i=e.onChange,d=e.disabled,f=e.render,c=e.classPrefix;return a.default.createElement("div",{className:u.default(c+"CheckboxControl",t)},a.default.createElement(r.default,{inline:!0,value:n||"",trueValue:l,falseValue:o,disabled:d,onChange:function(e){return i(e)}},s?f("option",s):null))},t.defaultProps={trueValue:!0,falseValue:!1},t}(a.default.Component);t.default=o;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({type:"checkbox",sizeMutable:!1})],t)}(o);t.CheckboxControlRenderer=s}); -;/*!src/renderers/Form/CityDB.ts*/ -amis.define("4050e6a",function(i,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={11e4:"北京市",110100:"北京市市辖区",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区",12e4:"天津市",120100:"天津市市辖区",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区",13e4:"河北省",130100:"石家庄市",130101:"石家庄市市辖区",130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130183:"晋州市",130184:"新乐市",130200:"唐山市",130201:"唐山市市辖区",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130281:"遵化市",130283:"迁安市",130284:"滦州市",130300:"秦皇岛市",130301:"秦皇岛市市辖区",130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130400:"邯郸市",130401:"邯郸市市辖区",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130500:"邢台市",130501:"邢台市市辖区",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130600:"保定市",130601:"保定市市辖区",130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130700:"张家口市",130701:"张家口市市辖区",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130800:"承德市",130801:"承德市市辖区",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130881:"平泉市",130900:"沧州市",130901:"沧州市市辖区",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",131e3:"廊坊市",131001:"廊坊市市辖区",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131100:"衡水市",131101:"衡水市市辖区",131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131182:"深州市",14e4:"山西省",140100:"太原市",140101:"太原市市辖区",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140200:"大同市",140201:"大同市市辖区",140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140300:"阳泉市",140301:"阳泉市市辖区",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140400:"长治市",140401:"长治市市辖区",140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140500:"晋城市",140501:"晋城市市辖区",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140600:"朔州市",140601:"朔州市市辖区",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140681:"怀仁市",140700:"晋中市",140701:"晋中市市辖区",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140800:"运城市",140801:"运城市市辖区",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140900:"忻州市",140901:"忻州市市辖区",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",141e3:"临汾市",141001:"临汾市市辖区",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141100:"吕梁市",141101:"吕梁市市辖区",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",15e4:"内蒙古自治区",150100:"呼和浩特市",150101:"呼和浩特市市辖区",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150200:"包头市",150201:"包头市市辖区",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150300:"乌海市",150301:"乌海市市辖区",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150400:"赤峰市",150401:"赤峰市市辖区",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150500:"通辽市",150501:"通辽市市辖区",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150600:"鄂尔多斯市",150601:"鄂尔多斯市市辖区",150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150700:"呼伦贝尔市",150701:"呼伦贝尔市市辖区",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150800:"巴彦淖尔市",150801:"巴彦淖尔市市辖区",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150900:"乌兰察布市",150901:"乌兰察布市市辖区",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",21e4:"辽宁省",210100:"沈阳市",210101:"沈阳市市辖区",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市",210200:"大连市",210201:"大连市市辖区",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市",210300:"鞍山市",210301:"鞍山市市辖区",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210400:"抚顺市",210401:"抚顺市市辖区",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210500:"本溪市",210501:"本溪市市辖区",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210600:"丹东市",210601:"丹东市市辖区",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210700:"锦州市",210701:"锦州市市辖区",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210800:"营口市",210801:"营口市市辖区",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210900:"阜新市",210901:"阜新市市辖区",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",211e3:"辽阳市",211001:"辽阳市市辖区",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211100:"盘锦市",211101:"盘锦市市辖区",211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县",211200:"铁岭市",211201:"铁岭市市辖区",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211300:"朝阳市",211301:"朝阳市市辖区",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211400:"葫芦岛市",211401:"葫芦岛市市辖区",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",22e4:"吉林省",220100:"长春市",220101:"长春市市辖区",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220182:"榆树市",220183:"德惠市",220200:"吉林市",220201:"吉林市市辖区",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220300:"四平市",220301:"四平市市辖区",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220400:"辽源市",220401:"辽源市市辖区",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220500:"通化市",220501:"通化市市辖区",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220600:"白山市",220601:"白山市市辖区",220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市",220700:"松原市",220701:"松原市市辖区",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220781:"扶余市",220800:"白城市",220801:"白城市市辖区",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",23e4:"黑龙江省",230100:"哈尔滨市",230101:"哈尔滨市市辖区",230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市",230200:"齐齐哈尔市",230201:"齐齐哈尔市市辖区",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230300:"鸡西市",230301:"鸡西市市辖区",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230400:"鹤岗市",230401:"鹤岗市市辖区",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230500:"双鸭山市",230501:"双鸭山市市辖区",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230600:"大庆市",230601:"大庆市市辖区",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230700:"伊春市",230701:"伊春市市辖区",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230800:"佳木斯市",230801:"佳木斯市市辖区",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市",230900:"七台河市",230901:"七台河市市辖区",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",231e3:"牡丹江市",231001:"牡丹江市市辖区",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市",231100:"黑河市",231101:"黑河市市辖区",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231200:"绥化市",231201:"绥化市市辖区",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",232700:"大兴安岭地区",232701:"漠河市",232718:"加格达奇区",232721:"呼玛县",232722:"塔河县",31e4:"上海市",310100:"上海市市辖区",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区",32e4:"江苏省",320100:"南京市",320101:"南京市市辖区",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区",320200:"无锡市",320201:"无锡市市辖区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市",320300:"徐州市",320301:"徐州市市辖区",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320400:"常州市",320401:"常州市市辖区",320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市",320500:"苏州市",320501:"苏州市市辖区",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市",320600:"南通市",320601:"南通市市辖区",320602:"崇川区",320611:"港闸区",320612:"通州区",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320685:"海安市",320700:"连云港市",320701:"连云港市市辖区",320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320800:"淮安市",320801:"淮安市市辖区",320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320900:"盐城市",320901:"盐城市市辖区",320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",321e3:"扬州市",321001:"扬州市市辖区",321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321100:"镇江市",321101:"镇江市市辖区",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321200:"泰州市",321201:"泰州市市辖区",321202:"海陵区",321203:"高港区",321204:"姜堰区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321300:"宿迁市",321301:"宿迁市市辖区",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",33e4:"浙江省",330100:"杭州市",330101:"杭州市市辖区",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330200:"宁波市",330201:"宁波市市辖区",330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330300:"温州市",330301:"温州市市辖区",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330400:"嘉兴市",330401:"嘉兴市市辖区",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330500:"湖州市",330501:"湖州市市辖区",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330600:"绍兴市",330601:"绍兴市市辖区",330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市",330700:"金华市",330701:"金华市市辖区",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330800:"衢州市",330801:"衢州市市辖区",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330900:"舟山市",330901:"舟山市市辖区",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",331e3:"台州市",331001:"台州市市辖区",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市",331100:"丽水市",331101:"丽水市市辖区",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",34e4:"安徽省",340100:"合肥市",340101:"合肥市市辖区",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340181:"巢湖市",340200:"芜湖市",340201:"芜湖市市辖区",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340225:"无为县",340300:"蚌埠市",340301:"蚌埠市市辖区",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340400:"淮南市",340401:"淮南市市辖区",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县",340500:"马鞍山市",340501:"马鞍山市市辖区",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县",340600:"淮北市",340601:"淮北市市辖区",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340700:"铜陵市",340701:"铜陵市市辖区",340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县",340800:"安庆市",340801:"安庆市市辖区",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340824:"潜山市",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",341e3:"黄山市",341001:"黄山市市辖区",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341100:"滁州市",341101:"滁州市市辖区",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341200:"阜阳市",341201:"阜阳市市辖区",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341300:"宿州市",341301:"宿州市市辖区",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341500:"六安市",341501:"六安市市辖区",341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341600:"亳州市",341601:"亳州市市辖区",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341700:"池州市",341701:"池州市市辖区",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341800:"宣城市",341801:"宣城市市辖区",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",35e4:"福建省",350100:"福州市",350101:"福州市市辖区",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350200:"厦门市",350201:"厦门市市辖区",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350300:"莆田市",350301:"莆田市市辖区",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350400:"三明市",350401:"三明市市辖区",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350500:"泉州市",350501:"泉州市市辖区",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350600:"漳州市",350601:"漳州市市辖区",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350700:"南平市",350701:"南平市市辖区",350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350800:"龙岩市",350801:"龙岩市市辖区",350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350900:"宁德市",350901:"宁德市市辖区",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",36e4:"江西省",360100:"南昌市",360101:"南昌市市辖区",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360112:"新建区",360121:"南昌县",360123:"安义县",360124:"进贤县",360200:"景德镇市",360201:"景德镇市市辖区",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360300:"萍乡市",360301:"萍乡市市辖区",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360400:"九江市",360401:"九江市市辖区",360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市",360500:"新余市",360501:"新余市市辖区",360502:"渝水区",360521:"分宜县",360600:"鹰潭市",360601:"鹰潭市市辖区",360602:"月湖区",360603:"余江区",360681:"贵溪市",360700:"赣州市",360701:"赣州市市辖区",360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360800:"吉安市",360801:"吉安市市辖区",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360900:"宜春市",360901:"宜春市市辖区",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",361e3:"抚州市",361001:"抚州市市辖区",361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县",361100:"上饶市",361101:"上饶市市辖区",361102:"信州区",361103:"广丰区",361121:"上饶县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",37e4:"山东省",370100:"济南市",370101:"济南市市辖区",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370116:"莱芜区",370117:"钢城区",370124:"平阴县",370126:"商河县",370200:"青岛市",370201:"青岛市市辖区",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370281:"胶州市",370283:"平度市",370285:"莱西市",370300:"淄博市",370301:"淄博市市辖区",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370400:"枣庄市",370401:"枣庄市市辖区",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370500:"东营市",370501:"东营市市辖区",370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370600:"烟台市",370601:"烟台市市辖区",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370700:"潍坊市",370701:"潍坊市市辖区",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370800:"济宁市",370801:"济宁市市辖区",370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370883:"邹城市",370900:"泰安市",370901:"泰安市市辖区",370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",371e3:"威海市",371001:"威海市市辖区",371002:"环翠区",371003:"文登区",371082:"荣成市",371083:"乳山市",371100:"日照市",371101:"日照市市辖区",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371300:"临沂市",371301:"临沂市市辖区",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371400:"德州市",371401:"德州市市辖区",371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371500:"聊城市",371501:"聊城市市辖区",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371600:"滨州市",371601:"滨州市市辖区",371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市",371700:"菏泽市",371701:"菏泽市市辖区",371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",41e4:"河南省",410100:"郑州市",410101:"郑州市市辖区",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410200:"开封市",410201:"开封市市辖区",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县",410300:"洛阳市",410301:"洛阳市市辖区",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410401:"平顶山市市辖区",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410500:"安阳市",410501:"安阳市市辖区",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410600:"鹤壁市",410601:"鹤壁市市辖区",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410700:"新乡市",410701:"新乡市市辖区",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410800:"焦作市",410801:"焦作市市辖区",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410882:"沁阳市",410883:"孟州市",410900:"濮阳市",410901:"濮阳市市辖区",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",411e3:"许昌市",411001:"许昌市市辖区",411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411100:"漯河市",411101:"漯河市市辖区",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411200:"三门峡市",411201:"三门峡市市辖区",411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411300:"南阳市",411301:"南阳市市辖区",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411400:"商丘市",411401:"商丘市市辖区",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411500:"信阳市",411501:"信阳市市辖区",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411600:"周口市",411601:"周口市市辖区",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411700:"驻马店市",411701:"驻马店市市辖区",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",419001:"济源市",42e4:"湖北省",420100:"武汉市",420101:"武汉市市辖区",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420200:"黄石市",420201:"黄石市市辖区",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420300:"十堰市",420301:"十堰市市辖区",420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420500:"宜昌市",420501:"宜昌市市辖区",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420600:"襄阳市",420601:"襄阳市市辖区",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420700:"鄂州市",420701:"鄂州市市辖区",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420800:"荆门市",420801:"荆门市市辖区",420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市",420900:"孝感市",420901:"孝感市市辖区",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",421e3:"荆州市",421001:"荆州市市辖区",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421100:"黄冈市",421101:"黄冈市市辖区",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421200:"咸宁市",421201:"咸宁市市辖区",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421300:"随州市",421301:"随州市市辖区",421303:"曾都区",421321:"随县",421381:"广水市",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430101:"长沙市市辖区",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市",430200:"株洲市",430201:"株洲市市辖区",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430300:"湘潭市",430301:"湘潭市市辖区",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430400:"衡阳市",430401:"衡阳市市辖区",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430500:"邵阳市",430501:"邵阳市市辖区",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430600:"岳阳市",430601:"岳阳市市辖区",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430700:"常德市",430701:"常德市市辖区",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430800:"张家界市",430801:"张家界市市辖区",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430900:"益阳市",430901:"益阳市市辖区",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",431e3:"郴州市",431001:"郴州市市辖区",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431100:"永州市",431101:"永州市市辖区",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431200:"怀化市",431201:"怀化市市辖区",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431300:"娄底市",431301:"娄底市市辖区",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",44e4:"广东省",440100:"广州市",440101:"广州市市辖区",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区",440200:"韶关市",440201:"韶关市市辖区",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440300:"深圳市",440301:"深圳市市辖区",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区",440400:"珠海市",440401:"珠海市市辖区",440402:"香洲区",440403:"斗门区",440404:"金湾区",440500:"汕头市",440501:"汕头市市辖区",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440600:"佛山市",440601:"佛山市市辖区",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440700:"江门市",440701:"江门市市辖区",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440800:"湛江市",440801:"湛江市市辖区",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440900:"茂名市",440901:"茂名市市辖区",440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市",441200:"肇庆市",441201:"肇庆市市辖区",441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市",441300:"惠州市",441301:"惠州市市辖区",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441400:"梅州市",441401:"梅州市市辖区",441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441500:"汕尾市",441501:"汕尾市市辖区",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441600:"河源市",441601:"河源市市辖区",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441700:"阳江市",441701:"阳江市市辖区",441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市",441800:"清远市",441801:"清远市市辖区",441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445101:"潮州市市辖区",445102:"湘桥区",445103:"潮安区",445122:"饶平县",445200:"揭阳市",445201:"揭阳市市辖区",445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445300:"云浮市",445301:"云浮市市辖区",445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市",45e4:"广西壮族自治区",450100:"南宁市",450101:"南宁市市辖区",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450200:"柳州市",450201:"柳州市市辖区",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450300:"桂林市",450301:"桂林市市辖区",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市",450400:"梧州市",450401:"梧州市市辖区",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450500:"北海市",450501:"北海市市辖区",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450600:"防城港市",450601:"防城港市市辖区",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450700:"钦州市",450701:"钦州市市辖区",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450800:"贵港市",450801:"贵港市市辖区",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450900:"玉林市",450901:"玉林市市辖区",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",451e3:"百色市",451001:"百色市市辖区",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市",451100:"贺州市",451101:"贺州市市辖区",451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451200:"河池市",451201:"河池市市辖区",451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451300:"来宾市",451301:"来宾市市辖区",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451400:"崇左市",451401:"崇左市市辖区",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",46e4:"海南省",460100:"海口市",460101:"海口市市辖区",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460200:"三亚市",460201:"三亚市市辖区",460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区",460300:"三沙市",460301:"三沙市市辖区",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",460400:"儋州市",469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县",5e5:"重庆市",500100:"重庆市市辖区",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区",500200:"重庆市郊县",500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",51e4:"四川省",510100:"成都市",510101:"成都市市辖区",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市",510300:"自贡市",510301:"自贡市市辖区",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510400:"攀枝花市",510401:"攀枝花市市辖区",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510500:"泸州市",510501:"泸州市市辖区",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510600:"德阳市",510601:"德阳市市辖区",510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510700:"绵阳市",510701:"绵阳市市辖区",510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510800:"广元市",510801:"广元市市辖区",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510900:"遂宁市",510901:"遂宁市市辖区",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",511e3:"内江市",511001:"内江市市辖区",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511083:"隆昌市",511100:"乐山市",511101:"乐山市市辖区",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511300:"南充市",511301:"南充市市辖区",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511400:"眉山市",511401:"眉山市市辖区",511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511500:"宜宾市",511501:"宜宾市市辖区",511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511600:"广安市",511601:"广安市市辖区",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511700:"达州市",511701:"达州市市辖区",511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511800:"雅安市",511801:"雅安市市辖区",511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511900:"巴中市",511901:"巴中市市辖区",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",512e3:"资阳市",512001:"资阳市市辖区",512002:"雁江区",512021:"安岳县",512022:"乐至县",513200:"阿坝藏族羌族自治州",513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513300:"甘孜藏族自治州",513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",52e4:"贵州省",520100:"贵阳市",520101:"贵阳市市辖区",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520281:"盘州市",520300:"遵义市",520301:"遵义市市辖区",520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520400:"安顺市",520401:"安顺市市辖区",520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520500:"毕节市",520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县",520600:"铜仁市",520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县",522300:"黔西南布依族苗族自治州",522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",53e4:"云南省",530100:"昆明市",530101:"昆明市市辖区",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530300:"曲靖市",530301:"曲靖市市辖区",530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市",530400:"玉溪市",530401:"玉溪市市辖区",530402:"红塔区",530403:"江川区",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530500:"保山市",530501:"保山市市辖区",530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市",530600:"昭通市",530601:"昭通市市辖区",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市",530700:"丽江市",530701:"丽江市市辖区",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530800:"普洱市",530801:"普洱市市辖区",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530900:"临沧市",530901:"临沧市市辖区",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532600:"文山壮族苗族自治州",532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533300:"怒江傈僳族自治州",533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533400:"迪庆藏族自治州",533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县",54e4:"西藏自治区",540100:"拉萨市",540101:"拉萨市市辖区",540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540200:"日喀则市",540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县",540300:"昌都市",540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县",540400:"林芝市",540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县",540500:"山南市",540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县",540600:"那曲市",540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",61e4:"陕西省",610100:"西安市",610101:"西安市市辖区",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县",610200:"铜川市",610201:"铜川市市辖区",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610300:"宝鸡市",610301:"宝鸡市市辖区",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610400:"咸阳市",610401:"咸阳市市辖区",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市",610500:"渭南市",610501:"渭南市市辖区",610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610600:"延安市",610601:"延安市市辖区",610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610623:"子长县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610700:"汉中市",610701:"汉中市市辖区",610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610800:"榆林市",610801:"榆林市市辖区",610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市",610900:"安康市",610901:"安康市市辖区",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",611e3:"商洛市",611001:"商洛市市辖区",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",62e4:"甘肃省",620100:"兰州市",620101:"兰州市市辖区",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620200:"嘉峪关市",620201:"嘉峪关市市辖区",620300:"金昌市",620301:"金昌市市辖区",620302:"金川区",620321:"永昌县",620400:"白银市",620401:"白银市市辖区",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620500:"天水市",620501:"天水市市辖区",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620600:"武威市",620601:"武威市市辖区",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620700:"张掖市",620701:"张掖市市辖区",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620800:"平凉市",620801:"平凉市市辖区",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市",620900:"酒泉市",620901:"酒泉市市辖区",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",621e3:"庆阳市",621001:"庆阳市市辖区",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621100:"定西市",621101:"定西市市辖区",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621200:"陇南市",621201:"陇南市市辖区",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",63e4:"青海省",630100:"西宁市",630101:"西宁市市辖区",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630200:"海东市",630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632700:"玉树藏族自治州",632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632825:"海西蒙古族藏族自治州直辖",64e4:"宁夏回族自治区",640100:"银川市",640101:"银川市市辖区",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640200:"石嘴山市",640201:"石嘴山市市辖区",640202:"大武口区",640205:"惠农区",640221:"平罗县",640300:"吴忠市",640301:"吴忠市市辖区",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640400:"固原市",640401:"固原市市辖区",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640500:"中卫市",640501:"中卫市市辖区",640502:"沙坡头区",640521:"中宁县",640522:"海原县",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650101:"乌鲁木齐市市辖区",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650200:"克拉玛依市",650201:"克拉玛依市市辖区",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650400:"吐鲁番市",650402:"高昌区",650421:"鄯善县",650422:"托克逊县",650500:"哈密市",650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659005:"北屯市",659006:"铁门关市",659007:"双河市",659008:"可克达拉市",659009:"昆玉市",71e4:"台湾省",81e4:"香港特别行政区",810001:"中西区",810002:"湾仔区",810003:"东区",810004:"南区",810005:"油尖旺区",810006:"深水埗区",810007:"九龙城区",810008:"黄大仙区",810009:"观塘区",810010:"荃湾区",810011:"屯门区",810012:"元朗区",810013:"北区",810014:"大埔区",810015:"西贡区",810016:"沙田区",810017:"葵青区",810018:"离岛区",82e4:"澳门特别行政区",820001:"花地玛堂区",820002:"花王堂区",820003:"望德堂区",820004:"大堂区",820005:"风顺堂区",820006:"嘉模堂区",820007:"路凼填海区",820008:"圣方济各堂区"}; -t.province=[],t.city={},t.district={},Object.keys(r).forEach(function(i){var r=parseInt(i,10);if(r%1e4)if(r%100){var s=r-r%1e4,c=r-r%100;t.district[s]&&Array.isArray(t.district[s][c])?t.district[s][c].push(r):!t.district[s]||Array.isArray(t.district[s])?(t.district[s]=t.district[s]||[],t.district[s].push(r)):t.city[s].push(r)}else{var s=r-r%1e4;t.city[s].push(r),t.district[s]=t.district[s]||{},t.district[s][r]=[]}else t.province.push(r),t.city[r]=[]}),t.default=r}); -;/*!src/renderers/Form/City.tsx*/ -amis.define("99d982b",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),n=a.__importDefault(t("node_modules/react/index")),i=t("567b83c"),o=a.__importStar(t("4050e6a")),r=t("256b65d"),d=t("1953fc1"),l=t("9a80175"),s=t("b86428a"),c=t("5ab4e9d"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={code:0,province:"",provinceCode:0,city:"",cityCode:0,district:"",districtCode:0,street:""},e}a.__extends(e,t),e.prototype.componentDidMount=function(){this.syncIn()},e.prototype.componentDidUpdate=function(t){var e=this.props;e.value!==t.value&&this.syncIn(e)},e.prototype.handleProvinceChange=function(t){this.setState({province:t.label,provinceCode:t.value,city:"",cityCode:0,district:"",districtCode:0,street:"",code:t.value},this.syncOut)},e.prototype.handleCityChange=function(t){return t.value%100?this.handleDistrictChange(t,{cityCode:t.value}):void this.setState({city:t.label,cityCode:t.value,district:"",districtCode:0,street:"",code:t.value},this.syncOut)},e.prototype.handleDistrictChange=function(t,e){void 0===e&&(e={}),this.setState(a.__assign(a.__assign({},e),{district:t.label,districtCode:t.value,street:"",code:t.value}),this.syncOut)},e.prototype.handleStreetChange=function(t){this.setState({street:t.currentTarget.value})},e.prototype.handleStreetEnd=function(){this.syncOut()},e.prototype.syncIn=function(t){void 0===t&&(t=this.props);var e=t.value,a=t.delimiter,n={code:0,province:"",provinceCode:0,city:"",cityCode:0,district:"",districtCode:0,street:""},i=e&&e.code||"number"==typeof e&&e||"string"==typeof e&&/(\d{6})/.test(e)&&RegExp.$1;if(i&&o.default[i]){i=parseInt(i,10),n.code=i;var r=i-i%1e4;o.default[r]&&(n.provinceCode=r,n.province=o.default[r]);var d=i-i%100;o.default[d]&&(n.cityCode=d,n.city=o.default[d]),i%100&&(n.district=o.default[i],n.districtCode=i)}e&&e.street?n.street=e.street:"string"==typeof e&&~e.indexOf(a)&&(n.street=e.slice(e.indexOf(a)+a.length)),this.setState(n)},e.prototype.syncOut=function(){var t=this.props,e=t.onChange,a=t.allowStreet,n=t.joinValues,i=t.extractValue,o=t.delimiter,r=this.state,d=r.code,l=r.province,s=r.city,c=r.district,u=r.street;e(("undefined"==typeof i?n:i)?d?a&&u?[d,u].join(o):String(d):"":{code:d,province:l,city:s,district:c,street:u})},e.prototype.render=function(){var t=this.props,e=t.classnames,a=t.className,i=t.disabled,r=t.allowCity,l=t.allowDistrict,s=t.allowStreet,c=t.translate,u=this.state,p=u.provinceCode,y=u.cityCode,f=u.districtCode,h=u.street;return n.default.createElement("div",{className:e("CityPicker",a)},n.default.createElement(d.Select,{disabled:i,options:o.province.map(function(t){return{label:o.default[t],value:t}}),value:p,onChange:this.handleProvinceChange}),p&&l&&Array.isArray(o.district[p])?n.default.createElement(d.Select,{disabled:i,options:o.district[p].map(function(t){return{label:o.default[t],value:t}}),value:f,onChange:this.handleDistrictChange}):r&&o.city[p]&&o.city[p].length?n.default.createElement(d.Select,{disabled:i,options:o.city[p].map(function(t){return{label:o.default[t],value:t}}),value:y,onChange:this.handleCityChange}):null,y&&l&&o.district[p]&&o.district[p][y]?n.default.createElement(d.Select,{disabled:i,options:o.district[p][y].map(function(t){return{label:o.default[t],value:t}}),value:f,onChange:this.handleDistrictChange}):null,s&&p?n.default.createElement("input",{className:e("CityPicker-input"),value:h,onChange:this.handleStreetChange,onBlur:this.handleStreetEnd,placeholder:c("请输入街道信息")}):null)};var i,r,c,u,p;return e.defaultProps={joinValues:!0,extractValue:!0,delimiter:",",allowCity:!0,allowDistrict:!0,allowStreet:!1},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof s.Option&&s.Option)?i:Object]),a.__metadata("design:returntype",void 0)],e.prototype,"handleProvinceChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof s.Option&&s.Option)?r:Object]),a.__metadata("design:returntype",void 0)],e.prototype,"handleCityChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof s.Option&&s.Option)?c:Object,"function"==typeof(u="undefined"!=typeof Partial&&Partial)?u:Object]),a.__metadata("design:returntype",void 0)],e.prototype,"handleDistrictChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(p="undefined"!=typeof n.default&&n.default.ChangeEvent)?p:Object]),a.__metadata("design:returntype",void 0)],e.prototype,"handleStreetChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"handleStreetEnd",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"syncIn",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"syncOut",null),e}(n.default.Component);e.CityPicker=u;var p=r.themeable(c.localeable(u));e.default=p;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.render=function(){var t=this.props,e=t.value,a=t.onChange,i=t.allowCity,o=t.allowDistrict,r=t.extractValue,d=t.joinValues,l=t.allowStreet;return n.default.createElement(p,{value:e,onChange:a,allowCity:i,allowDistrict:o,extractValue:r,joinValues:d,allowStreet:l})},e}(n.default.Component);e.LocationControl=y;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e=a.__decorate([i.FormItem({type:"city",sizeMutable:!1})],e)}(y);e.CheckboxControlRenderer=f}); -;/*!src/renderers/Form/Rating.tsx*/ -amis.define("055a9f9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),r=e("567b83c"),l=n.__importDefault(e("1b690d8")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.value,r=e.count,u=e.half,o=e.readOnly,s=e.onChange,i=(e.size,e.classnames);return a.default.createElement("div",{className:i("RatingControl",t)},a.default.createElement(l.default,{classnames:i,value:n,count:r,half:u,readOnly:o,onChange:function(e){return s(e)}}))},t.defaultProps={value:0,count:5,half:!1,readOnly:!1},t}(a.default.Component);t.default=u;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"rating",sizeMutable:!1})],t)}(u);t.RatingControlRenderer=o}); -;/*!src/renderers/Form/Switch.tsx*/ -amis.define("0f75897",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),n=e("567b83c"),u=a.__importDefault(e("aa2413a")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.classPrefix,n=e.classnames,s=e.value,r=e.trueValue,o=e.falseValue,i=e.option,c=e.onChange,d=e.disabled,f=e.optionAtLeft;return l.default.createElement("div",{className:n("SwitchControl",t)},f?l.default.createElement("span",{className:n("Switch-option")},i):null,l.default.createElement(u.default,{classPrefix:a,value:s,trueValue:r,falseValue:o,disabled:d,onChange:c}),f?null:l.default.createElement("span",{className:n("Switch-option")},i))},t.defaultProps={trueValue:!0,falseValue:!1,optionAtLeft:!1},t}(l.default.Component);t.default=s;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.FormItem({type:"switch",sizeMutable:!1})],t)}(s);t.SwitchControlRenderer=r}); -;/*!src/renderers/Form/Button.tsx*/ -amis.define("c6f2783",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=r.__importDefault(e("node_modules/react/index")),o=e("567b83c"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.type,o=(e.children,e.data,r.__rest(e,["render","type","children","data"]));return t("action",r.__assign(r.__assign({},o),{type:n}))},t.defaultProps={},t}(n.default.Component);t.ButtonControl=u;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"button",renderLabel:!1,strictMode:!1,sizeMutable:!1})],t)}(u);t.ButtonControlRenderer=s;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"submit",renderLabel:!1,sizeMutable:!1,strictMode:!1})],t)}(u);t.SubmitControlRenderer=i;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"reset",renderLabel:!1,strictMode:!1,sizeMutable:!1})],t)}(u);t.ResetControlRenderer=a}); -;/*!src/renderers/Form/ButtonToolbar.tsx*/ -amis.define("d7f3dfa",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=e("567b83c"),u=n.__importDefault(e("node_modules/classnames/index")),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.className,o=e.classPrefix,a=e.buttons;return r.default.createElement("div",{className:u.default(o+"ButtonToolbar",n)},Array.isArray(a)?a.map(function(e,n){return t("button/"+n,e,{key:n})}):null)},t.defaultProps={},t}(r.default.Component);t.ButtonToolbarControl=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.FormItem({type:"button-toolbar",sizeMutable:!1,strictMode:!1})],t)}(a);t.ButtonToolbarRenderer=s}); -;/*!src/renderers/Form/Radios.tsx*/ -amis.define("2dfb851",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("node_modules/classnames/index")),o=a.__importDefault(e("8e37af0")),i=e("b86428a"),s=e("9a80175"),r=e("f2e345e"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.handleChange=function(e){var t=this.props,a=t.joinValues,n=t.extractValue,l=t.valueField,o=t.onChange,i=t.autoFill,u=t.onBulkChange,d=i&&!s.isEmpty(i)&&r.dataMapping(i,e);d&&u&&u(d),e&&(a||n)&&(e=e[l||"value"]),o&&o(e)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this.props,t=e.className,a=e.classPrefix,i=e.value,s=(e.onChange,e.disabled),r=e.joinValues,u=e.extractValue,d=e.delimiter,p=e.placeholder,f=e.options,m=e.inline,c=e.formMode,_=e.columnsCount,h=e.classPrefix,C=e.itemClassName,y=e.labelClassName,b=e.labelField,g=e.translate;return n.default.createElement(o.default,{inline:m||"inline"===c,className:l.default(a+"RadiosControl",t),value:"undefined"==typeof i||null===i?"":i,disabled:s,onChange:this.handleChange,joinValues:r,extractValue:u,delimiter:d,labelClassName:y,labelField:b,placeholder:g(p),options:f,columnsCount:_,classPrefix:h,itemClassName:C})};var u;return t.defaultProps={columnsCount:1},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(u="undefined"!=typeof i.Option&&i.Option)?u:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t}(n.default.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps={multiple:!1},t=a.__decorate([i.OptionsControl({type:"radios",sizeMutable:!1})],t)}(u);t.RadiosControlRenderer=d}); -;/*!src/renderers/Form/List.tsx*/ -amis.define("64723a8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),a=l.__importDefault(e("node_modules/react/index")),i=e("b86428a"),n=e("9a80175"),s=e("f2e345e"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t.prototype.handleDBClick=function(e){this.props.onToggle(e,!1,!0),this.props.onAction(null,{type:"submit"})},t.prototype.handleClick=function(e,t){if(!t.target||!t.target.closest("a,button")){var l=this.props,a=l.onToggle,i=l.multiple,o=l.autoFill,r=l.onBulkChange,d=!i&&o&&!n.isEmpty(o)&&s.dataMapping(o,e);d&&r(d),a(e)}},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this,t=this.props,l=t.render,i=t.itemClassName,s=t.classnames,o=t.className,r=t.disabled,d=t.options,u=t.placeholder,c=t.selectedOptions,m=t.imageClassName,p=t.submitOnDBClick,b=t.itemSchema,f=t.data,C=t.labelField,h=null;return d&&d.length&&(h=a.default.createElement("div",{className:s("ListControl-items")},d.map(function(t,o){return a.default.createElement("div",{key:o,className:s("ListControl-item",i,{"is-active":~c.indexOf(t),"is-disabled":t.disabled||r}),onClick:e.handleClick.bind(e,t),onDoubleClick:p?e.handleDBClick.bind(e,t):void 0},b?l(o+"/body",b,{data:n.createObject(f,t)}):t.body?l(o+"/body",t.body):[t.image?a.default.createElement("div",{key:"image",className:s("ListControl-itemImage",m)},a.default.createElement("img",{src:t.image,alt:t[C||"label"]})):null,t[C||"label"]?a.default.createElement("div",{key:"label",className:s("ListControl-itemLabel")},t[C||"label"]):null])}))),a.default.createElement("div",{className:s("ListControl",o)},h?h:a.default.createElement("span",{className:s("ListControl-placeholder")},u))},t.propsList=["itemSchema","value","renderFormItems"],t.defaultProps={clearable:!1,imageClassName:"",submitOnDBClick:!1},t}(a.default.Component);t.default=o;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t=l.__decorate([i.OptionsControl({type:"list",sizeMutable:!1})],t)}(o);t.ListControlRenderer=r}); -;/*!src/components/BaiduMapPicker.tsx*/ -amis.define("f5c1b1b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),i=e("256b65d"),o=e("9a80175"),l=a.__importDefault(e("node_modules/lodash/debounce")),r=e("b7bbd16"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputValue:"",locs:[],locIndex:-1,sugs:[]},t.id=o.uuid(),t.mapRef=n.default.createRef(),t.search=l.default(function(){var e;t.state.inputValue?null===(e=t.ac)||void 0===e?void 0:e.search(t.state.inputValue):t.setState({sugs:[]})},250,{trailing:!0,leading:!1}),t}a.__extends(t,e),t.prototype.componentDidMount=function(){window.BMap?this.initMap():o.loadScript("http://api.map.baidu.com/api?v=2.0&ak="+this.props.ak+"&callback={{callback}}").then(this.initMap)},t.prototype.componentWillUnmount=function(){var e;null===(e=this.ac)||void 0===e?void 0:e.dispose(),document.body.removeChild(this.placeholderInput),delete this.placeholderInput,delete this.map},t.prototype.initMap=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,i,o,l=this;return a.__generator(this,function(){return e=new BMap.Map(this.mapRef.current,{enableMapClick:!1}),this.map=e,t=this.props.value,n=t?new BMap.Point(t.lng,t.lat):new BMap.Point(116.404,39.915),e.centerAndZoom(n,15),i=new BMap.GeolocationControl,i.addEventListener("locationSuccess",function(e){l.getLocations(e.point)}),e.addControl(i),e.addEventListener("click",function(e){l.getLocations(e.point,!0)}),o=document.createElement("input"),o.className="invisible",this.placeholderInput=o,document.body.appendChild(o),this.ac=new BMap.Autocomplete({input:o,location:e,onSearchComplete:function(e){if(l.map){var t=[];Array.isArray(e.Ir)&&(e.Ir.forEach(function(e){t.push([e.province,e.city,e.district,e.street,e.business].filter(function(e){return e}).join(" "))}),l.setState({sugs:t}))}}}),t?this.getLocations(n):i.location(),[2]})})},t.prototype.getLocations=function(e,t){var a=this,n=this.map;n.clearOverlays();var i=new BMap.Marker(e);n.addOverlay(i),n.panTo(e);var o=new BMap.Geocoder;o.getLocation(e,function(e){if(a.map){var n=0,i=[];i.push({title:"当前位置",address:e.address,city:e.addressComponents.city,lat:e.point.lat,lng:e.point.lng}),Array.isArray(e.surroundingPois)&&e.surroundingPois.forEach(function(e){i.push({title:e.title,address:e.address,city:e.city,lat:e.point.lat,lng:e.point.lng})}),a.setState({locIndex:n,locs:i},function(){var e;t&&(null===(e=a.props)||void 0===e?void 0:e.onChange({address:i[0].address,lat:i[0].lat,lng:i[0].lng,city:i[0].city}))})}})},t.prototype.handleChange=function(e){this.setState({inputValue:e.currentTarget.value},this.search)},t.prototype.handleSelect=function(e){var t=this,a=parseInt(e.currentTarget.getAttribute("data-index"),10),n=this.state.locs[a];this.setState({locIndex:a},function(){var e,a=new BMap.Point(n.lng,n.lat);t.map.clearOverlays();var i=new BMap.Marker(a);t.map.addOverlay(i),t.map.panTo(a),null===(e=t.props)||void 0===e?void 0:e.onChange({address:n.address.trim()||n.title,lat:n.lat,lng:n.lng,city:n.city})})},t.prototype.handleSugSelect=function(e){var t=this,a=e.currentTarget.innerText;this.setState({inputValue:a});var n=new BMap.LocalSearch(this.map,{onSearchComplete:function(){var e=n.getResults(),a=e.getPoi(0);t.setState({inputValue:a.title,sugs:[]}),t.getLocations(a.point,!0)}});n.search(a)},t.prototype.render=function(){var e=this,t=this.props.classnames,a=this.state,i=a.locIndex,o=a.locs,l=a.inputValue,s=a.sugs,c=Array.isArray(s)&&s.length;return n.default.createElement("div",{className:t("MapPicker")},n.default.createElement("div",{className:t("MapPicker-search TextControl-control")},n.default.createElement("div",{className:t("TextControl-input")},n.default.createElement("input",{onChange:this.handleChange,value:l,placeholder:"搜索地点"}),n.default.createElement("span",null,n.default.createElement(r.Icon,{icon:"search",className:"icon"})))),n.default.createElement("div",{ref:this.mapRef,className:t("MapPicker-map",{invisible:c})}),n.default.createElement("div",{className:t("MapPicker-result",{invisible:c})},o.map(function(a,o){return n.default.createElement("div",{onClick:e.handleSelect,key:o,"data-index":o,className:t("MapPicker-item")},n.default.createElement("div",{className:t("MapPicker-itemTitle")},a.title),n.default.createElement("div",{className:t("MapPicker-itemDesc")},a.address),i===o?n.default.createElement(r.Icon,{icon:"success",className:"icon"}):null)})),c?n.default.createElement("div",{className:t("MapPicker-sug")},s.map(function(a){return n.default.createElement("div",{onClick:e.handleSugSelect,className:t("MapPicker-sugItem"),key:a},a)})):null)};var i,s,c;return a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",Promise)],t.prototype,"initMap",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof n.default&&n.default.ChangeEvent)?i:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof n.default&&n.default.MouseEvent)?s:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof n.default&&n.default.MouseEvent)?c:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSugSelect",null),t}(n.default.Component);t.BaiduMapPicker=s,t.default=i.themeable(s)}); -;/*!src/components/LocationPicker.tsx*/ -amis.define("0e2f942",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("256b65d"),d=a.__importDefault(e("997df41")),i=a.__importDefault(e("2b3dcdf")),r=e("b7bbd16"),s=e("9a80175"),l=a.__importDefault(e("15e4197")),p=a.__importDefault(e("f5c1b1b")),u=e("5ab4e9d"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.domRef=n.default.createRef(),t.state={isFocused:!1,isOpened:!1},t}a.__extends(t,e),t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleClick(),e.preventDefault())},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!0})},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},t.prototype.getTarget=function(){return this.domRef.current},t.prototype.getParent=function(){var e;return null===(e=this.domRef.current)||void 0===e?void 0:e.parentElement},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.clearValue=function(e){e.preventDefault(),e.stopPropagation();var t=this.props.onChange;t("")},t.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.handleChange=function(e){e&&(e=a.__assign(a.__assign({},e),{vendor:this.props.vendor})),this.props.onChange(e)},t.prototype.render=function(){var e,t=this.props,a=t.classnames,o=t.value,s=t.className,u=t.disabled,c=t.placeholder,_=t.clearable,m=t.popOverContainer,f=t.vendor,y=t.ak,h=this.props.translate,g=this.state,v=g.isFocused,b=g.isOpened;return n.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:a("LocationPicker",{"is-disabled":u,"is-focused":v,"is-active":b},s),ref:this.domRef,onClick:this.handleClick},o?n.default.createElement("span",{className:a("LocationPicker-value")},o.address):n.default.createElement("span",{className:a("LocationPicker-placeholder")},h(c)),_&&!u&&o?n.default.createElement("a",{className:a("LocationPicker-clear"),onClick:this.clearValue},n.default.createElement(r.Icon,{icon:"close",className:"icon"})):null,n.default.createElement("a",{className:a("LocationPicker-toggler")},n.default.createElement(r.Icon,{icon:"location",className:"icon"})),n.default.createElement(d.default,{target:this.getTarget,container:m||this.getParent,rootClose:!1,show:b},n.default.createElement(i.default,{className:a("LocationPicker-popover"),onHide:this.close,overlay:!0,onClick:this.handlePopOverClick,style:{width:null===(e=this.getTarget())||void 0===e?void 0:e.offsetWidth}},"baidu"===f?n.default.createElement(p.default,{ak:y,value:o,onChange:this.handleChange}):n.default.createElement(l.default,null,h("${vendor} 地图控件不支持",{vendor:f})))))};var o,u,c;return t.defaultProps={placeholder:"请选择位置",clearable:!1},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof n.default&&n.default.KeyboardEvent)?o:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleKeyPress",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getTarget",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getParent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Function]),a.__metadata("design:returntype",void 0)],t.prototype,"open",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(u="undefined"!=typeof n.default&&n.default.MouseEvent)?u:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof n.default&&n.default.MouseEvent)?c:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePopOverClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t}(n.default.Component);t.LocationPicker=c;var _=o.themeable(u.localeable(c));t.default=_}); -;/*!src/renderers/Form/Location.tsx*/ -amis.define("05b43e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),r=n.__importDefault(e("567b83c")),a=n.__importDefault(e("0e2f942")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){return o.default.createElement("div",{className:this.props.classnames("LocationControl")},o.default.createElement(a.default,n.__assign({},this.props)))},t.defaultProps={vendor:"baidu"},t}(o.default.Component);t.LocationControl=u;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.default({type:"location"})],t)}(u);t.LocationRenderer=i}); -;/*!src/renderers/Form/Select.tsx*/ -amis.define("86ddd97",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),a=n.__importDefault(e("node_modules/classnames/index")),i=e("b86428a"),r=n.__importDefault(e("d57879c")),l=n.__importDefault(e("node_modules/lodash/find")),s=n.__importDefault(e("node_modules/lodash/debounce")),u=e("1caead1"),p=e("9a80175"),d=e("f2e345e"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.changeValue=n.changeValue.bind(n),n.loadRemote=s.default(n.loadRemote.bind(n),250,{trailing:!0,leading:!1}),n.inputRef=n.inputRef.bind(n),n}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.unHook&&this.unHook()},t.prototype.inputRef=function(e){this.input=e},t.prototype.foucs=function(){this.input&&this.input.focus()},t.prototype.changeValue=function(e){var t=this.props,n=t.joinValues,o=t.extractValue,a=t.delimiter,i=t.multiple,r=(t.type,t.valueField),s=t.onChange,u=t.setOptions,c=t.options,f=t.autoFill,h=t.onBulkChange,m=e,v=[];(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t=l.default(c,function(t){return t[r||"value"]==e[r||"value"]});t||v.push(e)}),n?m=i?Array.isArray(e)?e.map(function(e){return e[r||"value"]}).join(a):e?e[r||"value"]:"":m?m[r||"value"]:"":o&&(m=i?Array.isArray(e)?e.map(function(e){return e[r||"value"]}):e?[e[r||"value"]]:[""]:m?m[r||"value"]:""),v.length&&u(c.concat(v));var _=!i&&f&&!p.isEmpty(f)&&d.dataMapping(f,e);_&&h(_),s(m)},t.prototype.loadRemote=function(e){var t=this,n=this.props,o=n.autoComplete,a=n.env,i=n.data,r=n.setOptions,l=n.setLoading,s=n.formInited,d=n.addHook;if(!a||!a.fetcher)throw new Error("fetcher is required");if(!s)return this.unHook&&this.unHook(),this.unHook=d(this.loadRemote.bind(this,e),"init");var c=p.createObject(i,{term:e,value:e});return u.isEffectiveApi(o,c)?(l(!0),a.fetcher(o,c).then(function(e){var n=e.data&&e.data.options||e.data||[],o=t.mergeOptions(n);return r(o),{options:o}}).finally(function(){return l(!1)})):Promise.resolve({options:[]})},t.prototype.mergeOptions=function(e){var t=this.props.selectedOptions,o=e.concat();return Array.isArray(t)&&t.length&&t.forEach(function(e){l.default(o,function(t){return t.value==e.value})||o.push(n.__assign(n.__assign({},e),{hidden:!0}))}),o},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this.props,t=e.autoComplete,i=e.searchable,l=e.options,s=e.className,p=e.loading,d=(e.value,e.selectedOptions),c=e.multi,f=e.multiple,h=e.placeholder,m=(e.id,e.classPrefix),v=(e.classnames,e.creatable),_=(e.inline,e.noResultsText),y=e.render,g=n.__rest(e,["autoComplete","searchable","options","className","loading","value","selectedOptions","multi","multiple","placeholder","id","classPrefix","classnames","creatable","inline","noResultsText","render"]);return _&&/<\w+/.test(_)&&(_=y("noResultText",_)),o.default.createElement("div",{className:a.default(m+"SelectControl",s)},o.default.createElement(r.default,n.__assign({},g,{placeholder:h,multiple:f||c,ref:this.inputRef,value:d,options:l,loadOptions:u.isEffectiveApi(t)?this.loadRemote:void 0,creatable:v,searchable:i||!!t,onChange:this.changeValue,loading:p,noResultsText:_})))},t.defaultProps={clearable:!1,searchable:!1},t}(o.default.Component);t.default=c;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.OptionsControl({type:"select"})],t)}(c);t.SelectControlRenderer=f;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps={multiple:!0},t=n.__decorate([i.OptionsControl({type:"multi-select"})],t)}(c);t.MultiSelectControlRenderer=h}); -;/*!src/renderers/Form/Static.tsx*/ -amis.define("d09e479",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("567b83c"),s=e("f6086a9"),r=a.__importDefault(e("bcd7efc")),i=a.__importDefault(e("b497f17")),d=e("0f9ebdf"),o=a.__importDefault(e("705a434")),u=e("9a80175"),c=function(e){function t(t){var a=e.call(this,t)||this;return a.handleQuickChange=a.handleQuickChange.bind(a),a}return a.__extends(t,e),t.prototype.handleQuickChange=function(e,t){var a=this.props,n=a.onBulkChange,l=a.onAction,s=a.data;n(e,t===!0),t&&t.api&&l(null,{actionType:"ajax",api:t.api},u.extendObject(s,e))},t.prototype.render=function(){var e=this.props,t=e.className,l=e.value,s=e.label,r=e.type,i=e.render,d=(e.children,e.data,e.classnames),o=a.__rest(e,["className","value","label","type","render","children","data","classnames"]),u=/^static/.test(r)?r.substring(7)||"tpl":r,c=a.__assign(a.__assign({label:s,name:name},o),{type:u});return n.default.createElement("div",{className:d("Form-static")},i("field",a.__assign(a.__assign({},c),{type:"static-field",field:c}),{value:l,className:t,onQuickChange:this.handleQuickChange}))},t.defaultProps={placeholder:"-"},t}(n.default.Component);t.default=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.FormItem({test:function(e,t,a){return/(^|\/)form(?:\/.+)?\/control\/static(\-[^\/]+)?$/.test(e)?!0:/(^|\/)form(?:\/.+)?\/control\/[^\/]+$/.test(e)&&t&&t.type&&(t.name||t.label)&&a&&a(e+"/static-field/"+t.type)?!0:!1},weight:-90,strictMode:!1,sizeMutable:!1,name:"static-control"})],t)}(c);t.StaticControlRenderer=p;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=(e.type,e.className),l=e.render,s=e.style,r=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,u=e.width,c=e.inputClassName,p=(e.label,e.tabIndex),_=e.onKeyUp,f=e.field,m=a.__rest(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","inputClassName","label","tabIndex","onKeyUp","field"]),h=a.__assign(a.__assign({},f),{className:c,type:f&&f.type||"plain"}),b=o?o:l("field",h,a.__assign(a.__assign({},m),{value:i,data:d}));return u&&(s=s||{},s.width=s.width||u),r?n.default.createElement(r,{style:s,className:t,tabIndex:p,onKeyUp:_},b):b},t.defaultProps=a.__assign(a.__assign({},s.TableCell.defaultProps),{wrapperComponent:"div"}),t=a.__decorate([d.Renderer({test:/(^|\/)static\-field$/}),i.default(),r.default(),o.default()],t)}(s.TableCell);t.StaticFieldRenderer=_}); -;/*!src/renderers/Form/Date.tsx*/ -amis.define("b0a035c",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),r=a.__importDefault(t("node_modules/react/index")),n=t("567b83c"),o=t("f2e345e"),s=a.__importDefault(t("node_modules/moment/moment"));t("node_modules/moment/locale/zh-cn");var i=a.__importDefault(t("dd24912")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.componentWillMount=function(){var t=this.props,e=t.minDate,a=t.maxDate,r=t.value,n=t.defaultValue,i=t.setPrinstineValue,l=t.data,m=t.format,u=t.utc;if(n&&r===n){var d=o.filterDate(n,l,m);i((u?s.default.utc(d):d).format(m))}this.setState({minDate:e?o.filterDate(e,l,m):void 0,maxDate:a?o.filterDate(a,l,m):void 0})},e.prototype.componentWillReceiveProps=function(t){var e=this.props;if(e.defaultValue!==t.defaultValue){var a=o.filterDate(t.defaultValue,t.data,t.format);t.setPrinstineValue((t.utc?s.default.utc(a):a).format(t.format))}(e.minDate!==t.minDate||e.maxDate!==t.maxDate||e.data!==t.data)&&this.setState({minDate:t.minDate?o.filterDate(t.minDate,t.data,this.props.format):void 0,maxDate:t.maxDate?o.filterDate(t.maxDate,t.data,this.props.format):void 0})},e.prototype.render=function(){var t=this.props,e=t.className,n=(t.defaultValue,t.defaultData,t.classnames),o=(t.minDate,t.maxDate,a.__rest(t,["className","defaultValue","defaultData","classnames","minDate","maxDate"]));return r.default.createElement("div",{className:n("DateControl",e)},r.default.createElement(i.default,a.__assign({},o,this.state,{classnames:n})))},e.defaultProps={format:"X",viewMode:"days",inputFormat:"YYYY-MM-DD",timeConstraints:{minutes:{step:1}},clearable:!0},e}(r.default.PureComponent);e.default=l;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.defaultProps=a.__assign(a.__assign({},l.defaultProps),{placeholder:"请选择日期",dateFormat:"YYYY-MM-DD",timeFormat:"",strictMode:!1}),e=a.__decorate([n.FormItem({type:"date",weight:-150})],e)}(l);e.DateControlRenderer=m;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.defaultProps=a.__assign(a.__assign({},l.defaultProps),{placeholder:"请选择日期以及时间",inputFormat:"YYYY-MM-DD HH:mm:ss",dateFormat:"LL",timeFormat:"HH:mm:ss",closeOnSelect:!1,strictMode:!1}),e=a.__decorate([n.FormItem({type:"datetime"})],e)}(l);e.DatetimeControlRenderer=u;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.defaultProps=a.__assign(a.__assign({},l.defaultProps),{placeholder:"请选择时间",inputFormat:"HH:mm",dateFormat:"",timeFormat:"HH:mm",viewMode:"time",closeOnSelect:!1}),e=a.__decorate([n.FormItem({type:"time"})],e)}(l);e.TimeControlRenderer=d}); -;/*!src/renderers/Form/DateRange.tsx*/ -amis.define("48cac0f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),n=e("567b83c"),i=a.__importDefault(e("node_modules/classnames/index")),o=e("f2e345e");e("node_modules/moment/locale/zh-cn");var l=a.__importStar(e("eaae631")),s=function(e){function t(t){var a=e.call(this,t)||this,r=t.minDate,n=t.maxDate,i=t.data,l=t.format;return a.state={minDate:r?o.filterDate(r,i,l):void 0,maxDate:n?o.filterDate(n,i,l):void 0},a}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.defaultValue,a=e.setPrinstineValue,r=e.delimiter,n=e.format,i=e.data,s=e.value,u=e.joinValues,d=e.utc;if(t&&s===t){var f="string"==typeof t?t.split(r):t;a(l.DateRangePicker.formatValue({startDate:o.filterDate(f[0],i,n),endDate:o.filterDate(f[1],i,n)},n,u,r,d))}},t.prototype.componentWillReceiveProps=function(e){var t=e.data,a=e.minDate,r=e.maxDate,n=e.format,i=this.props;(i.minDate!==a||i.maxDate!==r||i.data!==t)&&this.setState({minDate:a?o.filterDate(a,t,n):void 0,maxDate:r?o.filterDate(r,t,n):void 0})},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.defaultValue,r=t.delimiter,n=t.joinValues,i=t.setPrinstineValue,s=t.data,u=t.utc,d=t.format;if(e.defaultValue!==a){var f="string"==typeof a?a.split(r):a;i(f?l.DateRangePicker.formatValue({startDate:o.filterDate(f[0],s,d),endDate:o.filterDate(f[1],s,d)},d,n,r,u):void 0)}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=(e.defaultValue,e.defaultData,a.__rest(e,["className","classPrefix","defaultValue","defaultData"]));return r.default.createElement("div",{className:i.default(n+"DateRangeControl",t)},r.default.createElement(l.default,a.__assign({},o,this.state,{classPrefix:n})))},t.defaultProps={format:"X",joinValues:!0,delimiter:","},t}(r.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},s.defaultProps),{timeFormat:""}),t=a.__decorate([n.FormItem({type:"date-range"})],t)}(s);t.DateRangeControlRenderer=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},s.defaultProps),{timeFormat:"HH:mm",inputFormat:"YYYY-MM-DD HH:mm"}),t=a.__decorate([n.FormItem({type:"datetime-range",sizeMutable:!1})],t)}(s);t.DateTimeRangeControlRenderer=d}); -;/*!src/renderers/Form/Repeat.tsx*/ -amis.define("d7f8ee3",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),l=t.__importDefault(e("node_modules/classnames/index")),r=e("567b83c"),s={secondly:"秒",minutely:"分",hourly:"时",daily:"天",weekdays:"周中",weekly:"周",monthly:"月",yearly:"年"},i=t.__importDefault(e("d57879c")),d=t.__importDefault(e("736bbb6")),u=function(e){function a(a){var t=e.call(this,a)||this;return t.handleOptionChange=t.handleOptionChange.bind(t),t.handleChange=t.handleChange.bind(t),t}return t.__extends(a,e),a.prototype.handleOptionChange=function(e){this.props.onChange(e.value)},a.prototype.handleChange=function(e){var a=this.props.value,t=a?a.split(":"):[];this.props.onChange(t[0]+":"+e)},a.prototype.renderInput=function(){var e=this,a=this.props.value,t=a?a.split(":"):[],l=this.props,r=l.options,u=l.placeholder,o=l.disabled,c=l.classPrefix,p=l.translate,h=[];h=r.split(",").map(function(e){return{label:s[e]||"不支持",value:e}}),h.unshift({label:p(u),value:""});var f;switch(t[1]=parseInt(t[1],10)||1,t[0]){case"secondly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:5,max:60,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"minutely":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:5,max:60,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"hourly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:24,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"daily":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:30,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"weekly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:12,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"monthly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:12,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"yearly":f=n.default.createElement(d.default,{classPrefix:c,key:"input",className:"v-middle",value:t[1],min:1,step:1,max:20,disabled:o,onChange:function(a){return e.handleChange(a)}})}return n.default.createElement("div",{className:"repeat-control hbox"},f?n.default.createElement("div",{className:"col v-middle",style:{width:30}},n.default.createElement("span",null,p("每"))):null,f?n.default.createElement("div",{className:"col v-middle"},f):null,n.default.createElement("div",{className:"col v-middle repeat-btn"},n.default.createElement(i.default,{classPrefix:c,className:f?"pull-right":"",options:h,placeholder:p(u),onChange:this.handleOptionChange,value:t[0],clearable:!1,searchable:!1,disabled:o,joinValues:!1})))},a.prototype.render=function(){var e=this.props,a=e.className,t=e.classPrefix;return n.default.createElement("div",{className:l.default(t+"RepeatControl",a)},this.renderInput())},a.defaultProps={options:"hourly,daily,weekly,monthly",placeholder:"不重复"},a}(n.default.Component);a.default=u;var o=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([r.FormItem({type:"repeat",sizeMutable:!1})],a)}(u);a.RepeatControlRenderer=o}); -;/*!src/renderers/Form/Tree.tsx*/ -amis.define("ee37b69",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),o=t.__importDefault(e("node_modules/react/index")),a=t.__importDefault(e("node_modules/classnames/index")),i=t.__importDefault(e("d233af4")),n=e("b86428a"),r=e("1953fc1"),d=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},l.prototype.render=function(){var e=this.props,l=e.className,t=e.classPrefix,n=e.value,d=e.onChange,s=e.disabled,u=e.joinValues,p=e.extractValue,c=e.delimiter,f=e.placeholder,h=e.options,m=e.multiple,b=e.valueField,C=e.initiallyOpen,_=e.unfoldedLevel,v=e.withChildren,y=e.onlyChildren,T=e.loading,w=e.hideRoot,x=e.rootLabel,D=e.cascade,V=e.rootValue,g=e.showIcon,E=e.showRadio,L=e.onAdd,O=e.creatable,R=e.createTip,F=e.addControls,P=e.onEdit,j=e.editable,A=e.editTip,I=e.editControls,N=e.removable,k=e.removeTip,z=e.onDelete,M=e.rootCreatable,S=e.rootCreateTip,U=e.translate;return o.default.createElement("div",{className:a.default(t+"TreeControl",l)},o.default.createElement(r.Spinner,{size:"sm",key:"info",show:T}),T?null:o.default.createElement(i.default,{classPrefix:t,valueField:b,disabled:s,onChange:d,joinValues:u,extractValue:p,delimiter:c,placeholder:U(f),options:h,multiple:m,initiallyOpen:C,unfoldedLevel:_,withChildren:v,onlyChildren:y,hideRoot:w,rootLabel:U(x),rootValue:V,showIcon:g,showRadio:E,cascade:D,foldedField:"collapsed",value:n||"",labelField:"label",selfDisabledAffectChildren:!1,onAdd:L,creatable:O,createTip:R,rootCreatable:M,rootCreateTip:S,onEdit:P,editable:j,editTip:A,removable:N,removeTip:k,onDelete:z,bultinCUD:!F&&!I}))},l.defaultProps={placeholder:"选项加载中...",multiple:!1,rootLabel:"顶级",rootValue:"",showIcon:!0},l}(o.default.Component);l.default=d;var s=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l=t.__decorate([n.OptionsControl({type:"tree"})],l)}(d);l.TreeControlRenderer=s}); -;/*!src/renderers/Form/TreeSelect.tsx*/ -amis.define("90765dc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("997df41")),l=n.__importDefault(e("2b3dcdf")),o=e("b86428a"),r=n.__importDefault(e("d233af4")),s=n.__importDefault(e("node_modules/match-sorter/dist/match-sorter.cjs")),u=n.__importDefault(e("node_modules/lodash/debounce")),d=n.__importDefault(e("node_modules/lodash/find")),p=e("1caead1"),c=n.__importDefault(e("acad559")),h=n.__importDefault(e("d14c6a1")),f=e("9a80175"),m=function(e){function t(t){var n=e.call(this,t)||this;return n.container=a.default.createRef(),n.target=a.default.createRef(),n.input=a.default.createRef(),n.cache={},n.state={inputValue:"",isOpened:!1,isFocused:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.handleChange=n.handleChange.bind(n),n.clearValue=n.clearValue.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.loadRemote=u.default(n.loadRemote.bind(n),250,{trailing:!0,leading:!1}),n}n.__extends(t,e),t.prototype.componentDidMount=function(){this.loadRemote("")},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){var e=this;this.setState({isOpened:!1,inputValue:this.props.multiple?this.state.inputValue:""},function(){return e.loadRemote(e.state.inputValue)})},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleOutClick(e),e.preventDefault())},t.prototype.validate=function(){var e=this.props,t=e.value,n=e.minLength,a=e.maxLength,i=e.delimiter,l=e.translate,o=Array.isArray(t)?t:(t?String(t):"").split(i||",");return n&&o.lengtha?l("已选择数量超出设定的最大个数{{maxLength}},请取消选择超出的选项。",{maxLength:a}):void 0},t.prototype.removeItem=function(e,t){var n=this.props,a=n.selectedOptions,i=n.joinValues,l=n.extractValue,o=n.delimiter,r=n.valueField,s=n.onChange,u=n.disabled;if(t&&t.stopPropagation(),!u){var d=a.concat();d.splice(e,1);var p=d;i?p=d.map(function(e){return e[r||"value"]}).join(o||","):l&&(p=d.map(function(e){return e[r||"value"]})),s(p)}},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple;a||this.close(),a||!this.state.inputValue?n(e):this.setState({inputValue:""},function(){return n(e)})},t.prototype.handleInputChange=function(e){var t=this,n=this.props,a=n.autoComplete,i=n.data;this.setState({inputValue:e},p.isEffectiveApi(a,i)?function(){return t.loadRemote(t.state.inputValue)}:void 0)},t.prototype.handleInputKeyDown=function(e){var t=this.state.inputValue,n=this.props,a=n.multiple,i=n.selectedOptions;"Backspace"===e.key&&!t&&i.length&&a&&this.removeItem(i.length-1)},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,n=e.resetValue;t("undefined"==typeof n?"":n)},t.prototype.filterOptions=function(e,t){var a=this,i=this.props,l=i.labelField,o=i.valueField;return e.map(function(e){if(e=n.__assign({},e),e.visible=!!s.default([e],t,{keys:[l||"label",o||"value"]}).length,!e.visible&&e.children){e.children=a.filterOptions(e.children,t);var i=e.children.filter(function(e){return e.visible}).length;e.visible=!!i}return e.visible&&(e.collapsed=!1),e})},t.prototype.loadRemote=function(e){var t=this,a=this.props,i=a.autoComplete,l=a.env,o=a.data,r=a.setOptions,s=a.setLoading;if(p.isEffectiveApi(i,o)){if(!l||!l.fetcher)throw new Error("fetcher is required");if(this.cache[e]||~e.indexOf("'")){var u=this.cache[e]||[],d=this.mergeOptions(u);return r(d),Promise.resolve({options:d})}return s(!0),l.fetcher(i,n.__assign(n.__assign({},o),{term:e,value:e})).then(function(n){var a=n.data&&n.data.options||n.data||[];t.cache[e]=a;var i=t.mergeOptions(a);return r(i),Promise.resolve({options:i})}).finally(function(){return s(!1)})}},t.prototype.mergeOptions=function(e){var t=this.props.selectedOptions,a=e.concat();return Array.isArray(t)&&t.length&&t.forEach(function(e){d.default(a,function(t){return t.value==e.value})||a.push(n.__assign(n.__assign({},e),{visible:!1}))}),a},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.handleOutClick=function(e){e.defaultPrevented||this.setState({isOpened:!0})},t.prototype.handleResultChange=function(e){var t=this.props,n=t.joinValues,a=t.extractValue,i=t.delimiter,l=t.valueField,o=t.onChange,r=t.multiple,s=Array.isArray(e)?e.concat():[];return r||s.length?((n||a)&&(s=e.map(function(e){return e[l||"value"]})),n&&(s=s.join(i||",")),void o(s)):void o("")},t.prototype.renderItem=function(e){var t=this.props.labelField;return e[t||"label"]},t.prototype.renderOuter=function(){var e=this,t=this.props,n=t.value,o=t.disabled,s=t.joinValues,u=t.extractValue,d=t.delimiter,c=(t.placeholder,t.options),h=t.multiple,f=t.valueField,m=t.initiallyOpen,v=t.unfoldedLevel,y=t.withChildren,g=t.rootLabel,_=t.cascade,b=t.rootValue,C=t.showIcon,O=t.showRadio,V=t.popOverContainer,F=t.onlyChildren,x=t.classPrefix,R=t.optionsPlaceholder,I=t.searchable,P=t.autoComplete,w=t.maxLength,D=t.minLength,L=t.translate,S=!p.isEffectiveApi(P)&&I&&this.state.inputValue?this.filterOptions(c,this.state.inputValue):c;return a.default.createElement(i.default,{container:V||function(){return e.container.current},target:function(){return e.target.current},show:!0},a.default.createElement(l.default,{classPrefix:x,className:x+"TreeSelect-popover",style:{minWidth:this.target.current?this.target.current.offsetWidth:void 0},onHide:this.close,overlay:!0},a.default.createElement(r.default,{classPrefix:x,onlyChildren:F,valueField:f,disabled:o,onChange:this.handleChange,joinValues:s,extractValue:u,delimiter:d,placeholder:L(R),options:S,highlightTxt:this.state.inputValue,multiple:h,initiallyOpen:m,unfoldedLevel:v,withChildren:y,rootLabel:L(g),rootValue:b,showIcon:C,showRadio:O,cascade:_,foldedField:"collapsed",hideRoot:!0,value:n||"",labelField:"label",maxLength:w,minLength:D})))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,i=e.inline,l=e.loading,o=e.multiple,r=(e.value,e.clearable),s=(e.classPrefix,e.classnames),u=e.searchable,d=e.autoComplete,f=e.selectedOptions,m=e.placeholder,v=e.translate;return a.default.createElement("div",{ref:this.container,className:s("TreeSelectControl",t)},a.default.createElement(h.default,{disabled:n,ref:this.target,placeholder:v(m||"空"),className:s("TreeSelect",{"TreeSelect--inline":i,"TreeSelect--single":!o,"TreeSelect--multi":o,"TreeSelect--searchable":u||p.isEffectiveApi(d),"is-opened":this.state.isOpened,"is-focused":this.state.isFocused,"is-disabled":n}),result:o?f:f.length?this.renderItem(f[0]):"",onResultClick:this.handleOutClick,value:this.state.inputValue,onChange:this.handleInputChange,onResultChange:this.handleResultChange,itemRender:this.renderItem,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleInputKeyDown,clearable:r,allowInput:u||p.isEffectiveApi(d),inputPlaceholder:""},l?a.default.createElement(c.default,{size:"sm"}):void 0),this.state.isOpened?this.renderOuter():null)};var m,v,y;return t.defaultProps={placeholder:"请选择",optionsPlaceholder:"暂无数据",multiple:!1,clearable:!0,rootLabel:"顶级",rootValue:"",showIcon:!0,joinValues:!0,extractValue:!1,delimiter:",",resetValue:""},n.__decorate([f.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(m="undefined"!=typeof a.default&&a.default.MouseEvent)?m:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleOutClick",null),n.__decorate([f.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(v="undefined"!=typeof Array&&Array)?v:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleResultChange",null),n.__decorate([f.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(y="undefined"!=typeof o.Option&&o.Option)?y:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"renderItem",null),t}(a.default.Component);t.default=m;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.OptionsControl({type:"tree-select"})],t)}(m);t.TreeSelectControlRenderer=v}); -;/*!src/renderers/Form/File.tsx*/ -amis.define("162bd80",function(e,t){"use strict";function a(e){return/(?:\/|^)([^\/]+?)$/.test(e)?decodeURIComponent(RegExp.$1):e}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=n.__importDefault(e("node_modules/react/index")),l=e("567b83c"),r=n.__importDefault(e("node_modules/lodash/find")),o=n.__importDefault(e("node_modules/lodash/isPlainObject")),s=n.__importDefault(e("node_modules/async/mapLimit")),u=n.__importDefault(e("cf6ad73")),d=e("9a80175"),p=e("1caead1"),c=n.__importDefault(e("a67acca")),f=e("b7bbd16"),m=n.__importDefault(e("node_modules/react-dropzone/dist/index")),h=e("f2e345e"),g=function(e){return e.stopPropagation()};t.getNameFromUrl=a;var v=function(e){function t(a){var n=e.call(this,a)||this;n.dropzone=i.default.createRef();var l=a.value,r=(a.multiple,a.joinValues),o=a.delimiter,s=[];return l&&l instanceof Blob?s=[l]:l&&(s=(Array.isArray(l)?l:r?(l.value||l).split(o):[l.value||l]).map(function(e){return t.valueToFile(e,a)}).filter(function(e){return e})),n.state={files:s,uploading:!1},n.sendFile=n.sendFile.bind(n),n.removeFile=n.removeFile.bind(n),n.clearError=n.clearError.bind(n),n.handleDrop=n.handleDrop.bind(n),n.handleDropRejected=n.handleDropRejected.bind(n),n.startUpload=n.startUpload.bind(n),n.stopUpload=n.stopUpload.bind(n),n.retry=n.retry.bind(n),n.toggleUpload=n.toggleUpload.bind(n),n.tick=n.tick.bind(n),n.onChange=n.onChange.bind(n),n.uploadFile=n.uploadFile.bind(n),n.uploadBigFile=n.uploadBigFile.bind(n),n.handleSelect=n.handleSelect.bind(n),n}return n.__extends(t,e),t.valueToFile=function(e,t,i){var l=i&&"string"==typeof e?r.default(i,function(t){return t.value===e}):void 0;return e?e instanceof File?{state:"ready",value:e,name:e.name,url:"",id:d.guid()}:n.__assign({},"string"==typeof e?{state:l&&l.state?l.state:"init",value:e,name:l&&l.name||(/^data:/.test(e)?"base64数据":a(e)),id:d.guid(),url:"string"==typeof t.downloadUrl&&e&&!/^data:/.test(e)?""+t.downloadUrl+e:void 0}:e):void 0},t.prototype.componentWillReceiveProps=function(e){var a=this,i=this.props;if(i.value!==e.value&&this.emitValue!==e.value){var l=e.value,o=(e.multiple,e.joinValues),s=e.delimiter,u=[];l&&(u=(Array.isArray(l)?l:o&&"string"==typeof l?l.split(s):[l]).map(function(i){var l,o=t.valueToFile(i,e,a.state.files);return o&&(l=r.default(a.state.files,function(e){return e.value===o.value}))&&(o=n.__assign(n.__assign(n.__assign({},l),o),{id:o.id||l.id})),o}).filter(function(e){return e})),this.setState({files:u})}},t.prototype.handleDrop=function(e){var t=this;if(e.length){var a=this.props,n=a.maxSize,i=a.multiple,l=a.maxLength,r=a.translate,o=i&&l?l-this.state.files.length:e.length,s=[];[].slice.call(e,0,o).forEach(function(e){n&&e.size>n?(t.props.env.alert(r("您选择的文件 {{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制,请重新选择。",{filename:e.name,actualSize:u.default.formatFileSize(e.size),maxSize:u.default.formatFileSize(n)})),e.state="invalid"):e.state="pending",e.id=d.guid(),s.push(e)}),s.length&&this.setState({error:null,files:i?this.state.files.concat(s):s},function(){var e=t.props.autoUpload;e&&t.startUpload()})}},t.prototype.handleDropRejected=function(e,t){if("change"===t.type||"drop"===t.type){var a=this.props,i=a.multiple,l=a.env,r=a.accept,o=a.translate,s=e.map(function(e){return n.__assign(n.__assign({},e),{state:"invalid",id:d.guid(),name:e.name})});this.setState({files:i?this.state.files.concat(s):this.state.files.length?this.state.files:s.slice(0,1)}),l.alert(o("您添加的文件{{files}}不符合类型的`{{accept}}`的设定,请仔细检查。",{files:s.map(function(e){return"「"+e.name+"」"}).join(" "),accept:r}))}},t.prototype.handleSelect=function(){this.dropzone.current&&this.dropzone.current.open()},t.prototype.startUpload=function(e){void 0===e&&(e=!1),this.state.uploading||this.setState({uploading:!0,files:this.state.files.map(function(t){return e&&"error"===t.state&&(t.state="pending",t.progress=0),t})},this.tick)},t.prototype.toggleUpload=function(e){return e.preventDefault(),this.state.uploading?this.stopUpload():this.startUpload()},t.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},t.prototype.retry=function(){this.startUpload(!0)},t.prototype.tick=function(){var e=this;if(!this.current&&this.state.uploading){var t=this.props.translate,a=r.default(this.state.files,function(e){return"pending"===e.state});a?(this.current=a,a.state="uploading",this.setState({files:this.state.files.concat()},function(){return e.sendFile(a,function(t,a,n){var i=e.state.files.concat(),l=i.indexOf(a);if(~l){var r=a;t?(r.state="error",r.error=t):(r=n,r.name=r.name||a.name),i.splice(l,1,r),e.current=null,e.setState({error:t?t:null,files:i},e.tick)}},function(t){var n=e.state.files.concat(),i=n.indexOf(a);~i&&(a.progress=t,e.setState({files:n}))})})):this.setState({uploading:!1},function(){e.onChange(!!e.resolve),e.resolve&&(e.resolve(e.state.files.some(function(e){return"error"===e.state})?t("文件上传失败请重试"):null),e.resolve=void 0)})}},t.prototype.sendFile=function(e,t,a){var i=this.props,l=i.reciever,r=i.fileField,s=i.downloadUrl,u=i.useChunk,p=i.chunkSize,c=i.startChunkApi,f=i.chunkApi,m=i.finishChunkApi,g=i.asBase64,v=i.asBlob,_=i.data,y=i.translate,b=i.multiple,F=i.autoFill,C=i.onBulkChange;if(g){var k=new FileReader;return k.readAsDataURL(e),k.onload=function(){e.state="ready",t(null,e,{value:k.result,name:e.name,url:"",state:"ready",id:e.id})},void(k.onerror=function(e){return t(e.message)})}if(v)return e.state="ready",void setTimeout(function(){return t(null,e,{name:e.name,value:e,url:"",state:"ready",id:e.id})},4);var E="auto"===u&&p&&e.size>p||u===!0?this.uploadBigFile:this.uploadFile;E(e,l,{},{fieldName:r,chunkSize:p,startChunkApi:c,chunkApi:f,finishChunkApi:m,data:_},a).then(function(i){if(i.status||!i.data)throw new Error(i.msg||y("上传失败, 请重试"));a(1);var l=i.data.value||i.data,r=!b&&F&&!d.isEmpty(F)&&h.dataMapping(F,i.data);r&&C(r),t(null,e,n.__assign(n.__assign({},o.default(i.data)?i.data:null),{value:l,url:"string"==typeof s&&l?""+s+l:i.data?i.data.url:null,state:"uploaded",id:e.id}))}).catch(function(a){t(a.message||y("上传失败, 请重试"),e)})},t.prototype.removeFile=function(e,t){var a=this.state.files.concat();a.splice(t,1),this.setState({files:a},this.onChange)},t.prototype.clearError=function(){this.setState({error:null})},t.prototype.onChange=function(e){var t=this.props,a=t.multiple,n=t.onChange,i=t.joinValues,l=t.extractValue,r=t.valueField,o=t.delimiter,s=t.resetValue,u=t.asBlob,d=this.state.files.filter(function(e){return~["uploaded","init","ready"].indexOf(e.state)}),p=a?d:d[0];p?l||u?p=Array.isArray(p)?p.map(function(e){return e[r||"value"]}):p[r||"value"]:i&&(p=Array.isArray(p)?p.map(function(e){return e[r||"value"]}).join(o||","):p[r||"value"]):p="undefined"==typeof s?"":s,n(this.emitValue=p,void 0,e)},t.prototype.uploadFile=function(e,t,a,i,l){void 0===i&&(i={});var r=new FormData,o=p.buildApi(t,d.createObject(i.data,a),{method:"post"});return d.qsstringify(n.__assign(n.__assign({},o.data),a)).split("&").forEach(function(e){var t=e.split("=");r.append(t[0],decodeURIComponent(t[1]))}),r.append(i.fieldName||"file",e),this._send(o,r,{},l)},t.prototype.uploadBigFile=function(e,t,a,i,l){void 0===i&&(i={});var r,o=i.chunkSize||5242880,u=this,c=.2,f=.9,m=this.props.translate;return new Promise(function(t,h){function g(t){l(c);var a=b(e);if(r=a.map(function(){return 0}),!t.data)throw new Error(m("接口返回错误,请仔细检查"));F={key:t.data.key,uploadId:t.data.uploadId,loaded:0,total:a.length},s.default(a,3,y(F,i),function(e,t){e?h(e):_(t,F)})}function v(e,t){r[e-1]=t,l(c+(f-c)*(r.reduce(function(e,t){return e+t},0)/r.length))}function _(r,o){l(f);var s=p.buildApi(i.finishChunkApi,d.createObject(i.data,n.__assign(n.__assign({},a),{uploadId:o.uploadId,key:o.key,filename:e.name,partList:r})),{method:"post",autoAppend:!0});u._send(s).then(t).catch(h)}function y(t,l){return function(r,o){var s=p.buildApi(l.chunkApi,d.createObject(i.data,a),{method:"post"}),c=new FormData,f=r.file.slice(r.start,r.stop+1);return d.qsstringify(n.__assign(n.__assign({},s.data),a)).split("&").forEach(function(e){var t=e.split("=");c.append(t[0],decodeURIComponent(t[1]))}),c.append("key",t.key),c.append("uploadId",t.uploadId),c.append("partNumber",r.partNumber.toString()),c.append("partSize",r.partSize.toString()),c.append(i.fieldName||"file",f,e.name),u._send(s,c,{},function(e){return v(r.partNumber,e)}).then(function(e){t.loaded++,o(null,{partNumber:r.partNumber,eTag:e.data.eTag})}).catch(o)}}function b(e){for(var t=e.size,a=0,n=1,i=[];t>0;){var l=Math.min(t,o);i.push({file:e,partNumber:n,partSize:l,start:a,stop:a+l-1}),t-=l,a+=l,n+=1}return i}var F,C=p.buildApi(i.startChunkApi,d.createObject(i.data,n.__assign(n.__assign({},a),{filename:e.name})),{method:"post",autoAppend:!0});u._send(C).then(g).catch(h)})},t.prototype._send=function(e,t,a,i){var l=this.props.env;if(!l||!l.fetcher)throw new Error("fetcher is required");return l.fetcher(e,t,n.__assign(n.__assign({method:"post"},a),{withCredentials:!0,onUploadProgress:i?function(e){return i(e.loaded/e.total)}:void 0}))},t.prototype.validate=function(){var e=this,t=this.props.translate;return this.state.uploading||this.state.files.some(function(e){return"pending"===e.state})?new Promise(function(t){e.resolve=t,e.startUpload()}):this.state.files.some(function(e){return"error"===e.state})?t("文件上传失败请重试"):void 0},t.prototype.render=function(){var e=this,t=this.props,a=(t.btnLabel,t.accept),l=t.disabled,r=t.maxLength,o=t.multiple,s=t.autoUpload,u=t.description,d=t.hideUploadButton,p=t.className,h=t.classnames,v=t.translate,_=t.render,y=this.state,b=y.files,F=y.uploading,C=(y.error,b.some(function(e){return"pending"==e.state})),k=0,E=0;return this.state.uploading||this.state.files.forEach(function(e){"error"===e.state?E++:"uploaded"===e.state&&k++}),i.default.createElement("div",{className:h("FileControl",p)},i.default.createElement(m.default,{key:"drop-zone",ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,accept:"*"===a?"":a,multiple:o},function(t){var a=t.getRootProps,s=t.getInputProps,d=t.isDragActive;return i.default.createElement("div",n.__assign({},a({onClick:g}),{className:h("FileControl-dropzone",{disabled:l,"is-empty":!b.length,"is-active":d})}),i.default.createElement("input",n.__assign({},s())),d?i.default.createElement("div",{className:h("FileControl-acceptTip")},v("把文件拖到这,然后松完成添加!")):i.default.createElement(i.default.Fragment,null,o&&(!r||b.length1024&&t.length>1;)e/=1024,t.shift();return e.toFixed(2)+t[0]},t.valueToFile=function(e){return e?a.__assign(a.__assign({},"string"==typeof e?{value:e,url:e,id:c.guid()}:e),{state:"init"}):void 0},t.sizeInfo=function(e,t,a){return e?t?a("尺寸({{width}} x {{height}})",{width:e,height:t}):a("宽度{{width}}px",{width:e}):a("高度{{height}}px",{height:t})},t.prototype.componentWillReceiveProps=function(e){var i=this,n=this.props;if(n.value!==e.value&&this.emitValue!==e.value){var l=e.value,o=(e.multiple,e.joinValues),s=e.delimiter,d=[];l&&(d=(Array.isArray(l)?l:o&&"string"==typeof l?l.split(s):[l]).map(function(n){var l,o=t.valueToFile(n,e);return o&&(l=r.default(i.files,function(e){return e.value===o.value}))&&(o=a.__assign(a.__assign(a.__assign({},l),o),{id:l.id||o.id})),o}).filter(function(e){return e})),this.setState({files:this.files=d})}n.crop!==e.crop&&this.setState({crop:this.buildCrop(e)})},t.prototype.componentWillUnmount=function(){this.unmounted=!0},t.prototype.buildCrop=function(e){var t=e.crop,i=this.props.translate;return t&&e.multiple?(e.env&&e.env.alert&&e.env.alert(i("图片多选配置和裁剪配置冲突,目前不能二者都支持!")),null):(t===!0&&(t={}),t&&(t=a.__assign({aspectRatio:void 0,guides:!0,dragMode:"move",viewMode:1,rotatable:!1,scalable:!1},t)),t)},t.prototype.handleDropRejected=function(e,t){if("change"===t.type||"drop"===t.type){var i=this.props,n=(i.multiple,i.env),l=i.accept,o=i.translate,r=e.map(function(e){return a.__assign(a.__assign({},e),{state:"invalid",id:c.guid(),name:e.name})});n.alert(o("您添加的文件{{files}}不符合类型的`{{accept}}`的设定,请仔细检查。",{files:r.map(function(e){return"「"+e.name+"」"}).join(" "),accept:l}))}},t.prototype.startUpload=function(e){void 0===e&&(e=!1),this.state.uploading||this.setState({uploading:!0,locked:!0,files:this.files=this.files.map(function(t){return e&&"error"===t.state&&(t.state="pending",t.progress=0),t})},this.tick)},t.prototype.toggleUpload=function(){return this.state.uploading?this.stopUpload():this.startUpload()},t.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},t.prototype.tick=function(){var e=this;if(!this.current&&this.state.uploading){var t=this.props.env,i=this.props.translate,n=r.default(this.files,function(e){return"pending"===e.state});n?(this.current=n,n.state="uploading",this.setState({files:this.files=this.files.concat()},function(){return e.sendFile(n,function(n,l,o){var r=e.files.concat(),s=r.indexOf(l);if(~s){var d=l;if(n){if(d.state="uploading"!==l.state?l.state:"error",d.error=n,!e.props.multiple&&"invalid"===d.state)return r.splice(s,1),e.current=null,e.setState({files:e.files=r,error:n},e.tick);t.notify("error",n||i("图片上传失败,请重试"))}else d=a.__assign(a.__assign({},o),{preview:l.preview});r.splice(s,1,d),e.current=null,e.setState({files:e.files=r},e.tick)}},function(t){var a=e.files.concat(),i=a.indexOf(n);~i&&(n.progress=t,e.setState({files:e.files=a}))})})):this.setState({uploading:!1,locked:!1},function(){e.onChange(!!e.resolve),e.resolve&&(e.resolve(e.files.some(function(e){return"error"===e.state})?i("文件上传失败请重试"):null),e.resolve=void 0)})}},t.prototype.removeFile=function(e,t){var a=this.files.concat();a.splice(t,1),this.setState({files:this.files=a},this.onChange)},t.prototype.previewImage=function(e,t,a){var i=this.props.onImageEnlarge;if(i){var n=this.files;a.preventDefault(),i({src:e.preview||e.url,originalSrc:e.preview||e.url,index:t,list:n.map(function(e){return{src:e.preview||e.url,originalSrc:e.preview||e.url,title:e.name||m.getNameFromUrl(e.value||e.url)}})})}},t.prototype.editImage=function(e){var t=this.files;this.setState({cropFile:{preview:t[e].preview||t[e].url,state:"init"}})},t.prototype.onChange=function(e){var t=this.props,a=t.multiple,i=t.onChange,n=t.joinValues,l=t.extractValue,o=t.delimiter,r=t.valueField,s=this.files.filter(function(e){return"uploaded"==e.state||"init"==e.state}),d=s.length?n?s[0].value:s[0]:"";d=a?n?s.map(function(e){return e.value}).join(o):l?s.map(function(e){return e.value}):s:n?d.value||d:l?d[r||"value"]:d,i(this.emitValue=d||"",void 0,e)},t.prototype.handleSelect=function(){this.dropzone.current&&this.dropzone.current.open()},t.prototype.handleRetry=function(e){var t=this.files.concat(),a=t[e];("invalid"===a.state||"error"===a.state)&&(a.state="pending",a.progress=0,this.setState({files:t},this.startUpload))},t.prototype.handleDrop=function(e){var t=this.props,a=t.multiple,i=t.crop;if(i&&!a){var n=e[0];return n.preview&&n.url||(n.preview=window.URL.createObjectURL(n)),this.setState({cropFile:n})}this.addFiles(e)},t.prototype.handlePaste=function(e){var t=e.nativeEvent,a=[],i=t.clipboardData.items,n=this.props.accept;[].slice.call(i).forEach(function(e){var t;"file"===e.kind&&(t=e.getAsFile())&&f.default(t,n)&&(t.id=c.guid(),a.push(t))}),this.handleDrop(a)},t.prototype.handleCrop=function(){var e=this;this.cropper.current.getCroppedCanvas().toBlob(function(t){e.addFiles([t]),e.setState({cropFile:void 0,locked:!1,lockedReason:""})})},t.prototype.cancelCrop=function(){this.setState({cropFile:void 0,locked:!1,lockedReason:""},this.onChange)},t.prototype.addFiles=function(e){var a=this;if(e.length){var i=this.props,n=i.multiple,l=i.maxLength,o=i.maxSize,r=(i.accept,i.translate),s=this.files;!n&&s.length&&(s=[]);var d=(n?l?l:e.length+s.length:1)-s.length,p=[];[].slice.call(e,0,d).forEach(function(e){return o&&e.size>o?void alert(r("您选择的文件 {{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制,请重新选择。",{filename:e.name,actualSize:t.formatFileSize(e.size),maxSize:t.formatFileSize(o)})):(e.state="pending",e.id=c.guid(),e.preview&&e.url||(e.preview=URL.createObjectURL(e)),void p.push(e))}),p.length&&this.setState({error:void 0,files:this.files=s.concat(p),locked:!0},function(){var e=a.props.autoUpload;e&&a.startUpload()})}},t.prototype.sendFile=function(e,a,i){var n=this,l=this.props,o=l.limit,r=l.translate;if(!o)return this._upload(e,a,i);var s=new Image;s.onload=function(){var l=s.width,d=s.height,c="";o.width&&o.width!=l||o.height&&o.height!=d?c=r("您选择的图片不符合尺寸要求, 请上传{{info}}的图片",{info:t.sizeInfo(o.width,o.height,r)}):o.maxWidth&&o.maxWidthl||o.minHeight&&o.minHeight>d?c=r("您选择的图片不符合尺寸要求, 请上传不要小于{{info}}的图片",{info:t.sizeInfo(o.minWidth,o.minHeight,r)}):o.aspectRatio&&Math.abs(l/d-o.aspectRatio)>.01&&(c=r("您选择的图片不符合尺寸要求, 请上传尺寸比率为 {{ratio}} 的图片",{ratio:o.aspectRatioLabel||o.aspectRatio})),c?(e.state="invalid",a(c,e)):n._upload(e,a,i)},s.src=e.preview||e.url},t.prototype._upload=function(e,t,i){var n=this.props,l=n.translate,o=n.multiple,r=n.autoFill,s=n.onBulkChange;this._send(e,this.props.reciever,{},i).then(function(i){if(i.status)throw new Error(i.msg||l("上传失败, 请重试"));var n=a.__assign(a.__assign({},i.data),{state:"uploaded"});n.value=n.value||n.url;var d=!o&&r&&!c.isEmpty(r)&&g.dataMapping(r,n);d&&s(d),t(null,e,n)}).catch(function(a){return t(a.message||l("上传失败,请重试"),e)})},t.prototype._send=function(e,t,i,n){var l=new FormData,o=this.props.data,r=d.buildApi(t,c.createObject(o,i),{method:"post"}),p=this.props.fileField||"file";l.append(p,e,e.name);var u=r.url.indexOf("?");~u&&i?(i=a.__assign(a.__assign({},s.default.parse(r.url.substring(u+1))),i),r.url=r.url.substring(0,u)+"?"+c.qsstringify(i)):i&&(r.url+="?"+c.qsstringify(i)),r.data&&c.qsstringify(r.data).split("&").forEach(function(e){var t=e.split("=");l.append(t[0],decodeURIComponent(t[1]))});var f=this.props.env;if(!f||!f.fetcher)throw new Error("fetcher is required");return f.fetcher(r,l,{method:"post",onUploadProgress:function(e){return n(e.loaded/e.total)}})},t.prototype.handleClick=function(){this.refs.dropzone.open()},t.prototype.handleImageLoaded=function(e,t){var i=this,n=t.currentTarget,l=new Image;l.onload=function(){delete l.onload;var t=i.files.concat(),n=t[e];if(n){n.info=a.__assign(a.__assign({},n.info),{width:l.width,height:l.height}),t.splice(e,1,n);var o=!(!i.current&&!r.default(t,function(e){return"pending"===e.state}));i.unmounted||i.setState({files:i.files=t},o?void 0:i.onChange)}},l.src=n.src},t.prototype.validate=function(){var e=this,t=this.props.translate;return this.state.locked&&this.state.lockedReason?this.state.lockedReason:this.state.cropFile?new Promise(function(t){e.resolve=t,e.handleCrop()}):this.state.uploading||this.files.some(function(e){return"pending"===e.state})?new Promise(function(t){e.resolve=t,e.startUpload()}):this.files.some(function(e){return"error"===e.state})?t("文件上传失败请重试"):void 0},t.prototype.render=function(){var e=this,n=this.props,r=n.className,s=n.classnames,d=n.placeholder,c=n.disabled,f=n.multiple,g=n.accept,_=n.maxLength,b=n.autoUpload,C=n.hideUploadButton,y=n.thumbMode,E=n.thumbRatio,I=n.reCropable,k=n.translate,w=this.state,F=w.files,N=w.error,S=w.crop,R=w.uploading,U=w.cropFile,x=F.some(function(e){return"pending"==e.state});return i.default.createElement("div",{className:s("ImageControl",r)},U?i.default.createElement("div",{className:s("ImageControl-cropperWrapper")},i.default.createElement(l.default,a.__assign({},S,{ref:this.cropper,src:U.preview})),i.default.createElement("div",{className:s("ImageControl-croperToolbar")},i.default.createElement("a",{className:s("ImageControl-cropCancel"),onClick:this.cancelCrop,"data-tooltip":k("取消"),"data-position":"left"},i.default.createElement(p.Icon,{icon:"close",className:"icon"})),i.default.createElement("a",{className:s("ImageControl-cropConfirm"),onClick:this.handleCrop,"data-tooltip":k("确认"),"data-position":"left"},i.default.createElement(p.Icon,{icon:"check",className:"icon"})))):i.default.createElement(o.default,{key:"drop-zone",ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,accept:g,multiple:f},function(n){var l=n.getRootProps,o=n.getInputProps,r=n.isDragActive,g=n.isDragAccept,w=n.isDragReject,U=n.isFocused;return i.default.createElement("div",a.__assign({},l({onClick:v,onPaste:e.handlePaste,className:s("ImageControl-dropzone",{disabled:c,"is-empty":!F.length,"is-active":r})})),i.default.createElement("input",a.__assign({},o())),r||g||w?i.default.createElement("div",{className:s("ImageControl-acceptTip",{"is-accept":g,"is-reject":w})},k("把图片拖到这,然后松开完成添加!")):i.default.createElement(i.default.Fragment,null,F&&F.length?F.map(function(a,n){return i.default.createElement("div",{key:a.id||n,className:s("ImageControl-item",{"is-uploaded":"uploading"!==a.state,"is-invalid":"error"===a.state||"invalid"===a.state})},"invalid"===a.state||"error"===a.state?i.default.createElement(i.default.Fragment,null,i.default.createElement("a",{className:s("ImageControl-itemClear"),"data-tooltip":k("移除"),"data-position":"bottom",onClick:e.removeFile.bind(e,a,n)},i.default.createElement(p.Icon,{icon:"close",className:"icon"})),i.default.createElement("a",{className:s("ImageControl-retryBtn",{"is-disabled":c}),onClick:e.handleRetry.bind(e,n)},i.default.createElement(p.Icon,{icon:"retry",className:"icon"}),i.default.createElement("p",{className:"ImageControl-itemInfoError"},k("重新上传")))):"uploading"===a.state?i.default.createElement(i.default.Fragment,null,i.default.createElement("a",{onClick:e.removeFile.bind(e,a,n),key:"clear",className:s("ImageControl-itemClear"),"data-tooltip":k("移除")},i.default.createElement(p.Icon,{icon:"close",className:"icon"})),i.default.createElement("div",{key:"info",className:s("ImageControl-itemInfo")},i.default.createElement("p",null,k("文件上传中")),i.default.createElement("div",{className:s("ImageControl-progress")},i.default.createElement("span",{style:{width:Math.round(100*a.progress)+"%"},className:s("ImageControl-progressValue")})))):i.default.createElement(i.default.Fragment,null,i.default.createElement(h.default,{key:"image",className:s("ImageControl-image"),onLoad:e.handleImageLoaded.bind(e,n),src:a.preview||a.url,alt:a.name,thumbMode:y,thumbRatio:E}),i.default.createElement("div",{key:"overlay",className:s("ImageControl-itemOverlay")},a.info?[i.default.createElement("div",{key:"info"},a.info.width," x ",a.info.height),a.info.len?i.default.createElement("div",{key:"size"},t.formatFileSize(a.info.len)):null]:i.default.createElement("div",null,"..."),i.default.createElement("a",{"data-tooltip":k("查看大图"),"data-position":"bottom",target:"_blank",href:a.url||a.preview,onClick:e.previewImage.bind(e,a,n)},i.default.createElement(p.Icon,{icon:"view",className:"icon"})),S&&I!==!1&&!c?i.default.createElement("a",{"data-tooltip":k("裁剪图片"),"data-position":"bottom",onClick:e.editImage.bind(e,n)},i.default.createElement(p.Icon,{icon:"pencil",className:"icon"})):null,c?null:i.default.createElement("a",{"data-tooltip":k("移除"),"data-position":"bottom",onClick:e.removeFile.bind(e,a,n)},i.default.createElement(p.Icon,{icon:"remove",className:"icon"})),i.default.createElement("a",{"data-tooltip":a.name||m.getNameFromUrl(a.value||a.url),"data-position":"bottom",target:"_blank"},i.default.createElement(p.Icon,{icon:"info",className:"icon"})))))}):null,f&&(!_||F.length<_)||!f&&!F.length?i.default.createElement("label",{className:s("ImageControl-addBtn",{"is-disabled":c}),onClick:e.handleSelect,"data-tooltip":k(d),"data-position":"right"},i.default.createElement(p.Icon,{icon:"plus",className:"icon"}),U?i.default.createElement("span",{className:s("ImageControl-pasteTip")},k("当前状态支持从剪切板中粘贴图片文件。")):null):null,b||C||!F.length?null:i.default.createElement(u.default,{level:"default",className:s("ImageControl-uploadBtn"),disabled:!x,onClick:e.toggleUpload},k(R?"暂停上传":"开始上传")),N?i.default.createElement("div",{className:s("ImageControl-errorMsg")},N):null))}))},t.defaultProps={limit:void 0,accept:"image/jpeg, image/jpg, image/png, image/gif",reciever:"/api/upload",hideUploadButton:!1,placeholder:"点击选择图片或者将图片拖入该区域",joinValues:!0,extractValue:!1,delimiter:",",autoUpload:!0,multiple:!1},t}(i.default.Component);t.default=_;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.FormItem({type:"image",sizeMutable:!1})],t)}(_);t.ImageControlRenderer=b}); -;/*!src/renderers/Form/Matrix.tsx*/ -amis.define("690a2f4",function(e,t){"use strict";function n(e,t){return Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.map(function(e){return t.map(function(t){return a.__assign(a.__assign(a.__assign({},t),e),{checked:!1})})})}function r(e,t,n){return e.map(function(e,r){return e.map(function(e,o){return a.__assign(a.__assign(a.__assign({},t[r]),n[o]),e)})})}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),o=a.__importDefault(e("node_modules/react/index")),s=e("567b83c"),i=e("1caead1"),l=e("1953fc1"),u=e("9a80175"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.sourceInvalid=!1,n.mounted=!1,n.state={columns:t.columns||[],rows:t.rows||[],loading:!1},n.toggleItem=n.toggleItem.bind(n),n.reload=n.reload.bind(n),n.initOptions=n.initOptions.bind(n),n}return a.__extends(t,e),t.prototype.componentWillMount=function(){this.mounted=!0},t.prototype.componentDidMount=function(){var e=this.props,t=e.formInited,n=e.addHook;t?this.reload():n(this.initOptions,"init")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.columns!==e.columns||t.rows!==e.rows)this.setState({columns:e.columns||[],rows:e.rows||[]});else if(e.formInited&&(e.source!==t.source||t.data!==e.data)){var n=i.buildApi(t.source,t.data,{ignoreData:!0}),r=i.buildApi(e.source,e.data,{ignoreData:!0});n.url!==r.url&&i.isValidApi(r.url)&&(this.sourceInvalid=!0)}},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&(this.sourceInvalid=!1,this.reload())},t.prototype.componentWillUnmount=function(){this.mounted=!1;var e=this.props.removeHook;e(this.initOptions,"init")},t.prototype.initOptions=function(e){return a.__awaiter(this,void 0,void 0,function(){var t,n,r;return a.__generator(this,function(a){switch(a.label){case 0:return[4,this.reload()];case 1:return a.sent(),t=this.props,n=t.formItem,r=t.name,n?(n.value&&u.setVariable(e,r,n.value),[2]):[2]}})})},t.prototype.reload=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,o,s,l,u=this;return a.__generator(this,function(a){switch(a.label){case 0:if(e=this.props,t=e.source,n=e.data,o=e.env,s=e.onChange,l=e.translate,!i.isEffectiveApi(t,n)||this.state.loading)return[2];if(!o||!o.fetcher)throw new Error("fetcher is required");return[4,new Promise(function(e){return u.mounted?void u.setState({loading:!0},function(){return u.mounted?void o.fetcher(t,n).then(function(n){if(!n.ok)throw new Error(n.msg||l("数据请求错误"));return u.mounted?void u.setState({loading:!1,rows:n.data.rows||[],columns:n.data.columns||[]},function(){var a=(t&&t.replaceData,n.data.value);a&&(a=t.replaceData?a:r(a,u.state.columns,u.state.rows),s(a)),e()}):e()}).catch(function(t){return u.setState({error:t,loading:!1},e)}):e()}):e()})];case 1:return[2,a.sent()]}})})},t.prototype.toggleItem=function(e,t,r){var o=this.state,s=o.columns,i=o.rows,l=this.props,u=l.multiple,c=l.singleSelectMode,d=this.props.value||n(s,i);if(u)d[t][r]=a.__assign(a.__assign({},d[t][r]),{checked:e});else if("row"===c)for(var m=0,p=s.length;p>m;m++)d[m][r]=a.__assign(a.__assign({},d[m][r]),{checked:t===m?e:!e});else if("column"===c)for(var f=0,p=i.length;p>f;f++)d[t][f]=a.__assign(a.__assign({},d[t][f]),{checked:r===f?e:!e});else for(var f=0,p=i.length;p>f;f++)for(var m=0,h=s.length;h>m;m++)d[m][f]=a.__assign(a.__assign({},d[m][f]),{checked:t===m&&r===f?e:!e});this.props.onChange(d.concat())},t.prototype.renderInput=function(){var e=this,t=this.state,r=t.columns,a=t.rows,s=this.props,i=s.rowLabel,u=(s.className,s.classnames),c=s.multiple,d=this.props.value||n(r,a);return o.default.createElement("div",{className:u("Table m-b-none")},o.default.createElement("div",{className:u("Table-content")},o.default.createElement("table",{className:u("Table-table")},o.default.createElement("thead",null,o.default.createElement("tr",null,o.default.createElement("th",null,i),r.map(function(e,t){return o.default.createElement("th",{key:t,className:"text-center"},e.label)}))),o.default.createElement("tbody",null,a.map(function(t,n){return o.default.createElement("tr",{key:n},o.default.createElement("td",null,t.label,t.description||t.desc?o.default.createElement("span",{className:"m-l-xs text-muted text-xs"},t.description||t.desc):null),r.map(function(t,r){return o.default.createElement("td",{key:r,className:"text-center"},o.default.createElement(l.Checkbox,{type:c?"checkbox":"radio",checked:!!(d[r]&&d[r][n]&&d[r][n].checked),onChange:function(t){return e.toggleItem(t,r,n)}}))}))})))))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.render,e.classnames),r=this.state,a=r.error,s=r.loading;return o.default.createElement("div",{key:"input",className:n("MatrixControl",t||"")},a?o.default.createElement("div",{className:n("MatrixControl-error Alert Alert--danger")},String(a)):this.renderInput(),o.default.createElement(l.Spinner,{size:"lg",overlay:!0,key:"info",show:s}))},t.defaultProps={columns:[],rows:[],multiple:!0,singleSelectMode:"column"},t}(o.default.Component);t.default=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([s.FormItem({type:"matrix",strictMode:!1,sizeMutable:!1})],t)}(c);t.MatrixRenderer=d}); -;/*!src/renderers/Form/Range.tsx*/ -amis.define("db77605",function(e,t){"use strict";function a(e,t){if(t.multiple){if("string"==typeof e){var a=e.split(t.delimiter||",").map(function(e){return Number(e)}),n=a[0],l=a[1];return{min:t.min&&nt.max&&t.max||l||t.max}}if("object"==typeof e)return{min:t.min&&e.mint.max&&t.max||e.max||t.max}}return null!==e&&void 0!==e?e:t.min}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),l=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("node_modules/lodash/isNumber")),u=n.__importDefault(e("node_modules/lodash/isObject")),s=n.__importDefault(e("node_modules/lodash/isEqual")),r=e("567b83c"),m=n.__importDefault(e("736bbb6")),o=e("b7bbd16");t.formatValue=a;var p=function(e){function t(t){var n=e.call(this,t)||this,l=n.props,i=l.value,s=l.multiple,r=l.delimiter,m=l.min,o=l.max,p=a(i,{multiple:s,delimiter:r,min:m,max:o});return n.state={value:p,minValue:u.default(p)?p.min:m,maxValue:u.default(p)?p.max:o},n.handleChange=n.handleChange.bind(n),n.handleEnd=n.handleEnd.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.midLabelRef=n.midLabelRef.bind(n),n.clearValue=n.clearValue.bind(n),n.handleMinInputBlur=n.handleMinInputBlur.bind(n),n.handleMaxInputBlur=n.handleMaxInputBlur.bind(n),n.handleMinInputChange=n.handleMinInputChange.bind(n),n.handleMaxInputChange=n.handleMaxInputChange.bind(n),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.value,n=e.value,l=e.multiple,i=e.delimiter,s=e.min,r=e.max;if(t!==n){var m=a(n,{multiple:l,delimiter:i,min:s,max:r});this.setState({value:m,minValue:u.default(m)?m.min:s,maxValue:u.default(m)?m.max:r})}},t.prototype.componentDidMount=function(){this.updateStyle()},t.prototype.componentDidUpdate=function(e){e.showInput!==this.props.showInput&&this.updateStyle()},t.prototype.updateStyle=function(){var e=this.props,t=e.showInput,a=e.classPrefix,n=this.midLabel.offsetWidth,l="calc(50% - "+n/2+"px)";document.querySelector("."+a+"InputRange-label--value").style.left=l,t&&(l="calc(50% - "+(n/2+60)+"px)"),this.midLabel.style.left=l},t.prototype.midLabelRef=function(e){this.midLabel=e},t.prototype.handleChange=function(e){this.setState({value:e,minValue:e.min,maxValue:e.max})},t.prototype.clearValue=function(){var e=this.props,t=e.multiple,a=e.min,n=e.max;this.setState(t?{value:{min:a,max:n},minValue:a,maxValue:n}:{value:a})},t.prototype.handleEnd=function(e){var t=this.props,a=t.multiple,n=t.joinValues,l=t.delimiter,i=e;a&&n&&(i=[e.min,e.max].join(l||","));var u=this.props.onChange;this.setState({value:e},function(){return u(i)})},t.prototype.getStepPrecision=function(){var e=this.props.step;return"number"!=typeof e||e>=1||0>e?0:e.toString().split(".")[1].length},t.prototype.getValue=function(e,t){var a=this.props,n=a.max,l=a.min,s=a.step,r=this.state.value;if(""===e||"-"===e||new RegExp("^[-]?\\d+[.]{1}[0]{0,"+this.getStepPrecision()+"}$").test(e))return e;switch(e=Math.round(parseFloat(e)/s)*s,e=1>s?parseFloat(e.toFixed(this.getStepPrecision())):~~e,t){case"min":if(u.default(r)&&i.default(r.max)){if(e>=r.max&&l<=r.max-s)return r.max-s;if(en&&n||e<=r.min&&r.min+s||e:n;default:return l>e&&l||e>n&&n||e}},t.prototype.handleInputChange=function(e){this.setState({value:this.getValue(e.target.value)})},t.prototype.handleMinInputBlur=function(e){var t=this.getValue(e.target.value,"min"),a=this.state.value;u.default(a)?this.setState({value:{min:t,max:a.max},minValue:t}):null},t.prototype.handleMaxInputBlur=function(e){var t=this.getValue(e.target.value,"max"),a=this.state.value;u.default(a)?this.setState({value:{min:a.min,max:t},maxValue:t}):null},t.prototype.handleMinInputChange=function(e){this.setState({minValue:e.target.value})},t.prototype.handleMaxInputChange=function(e){this.setState({maxValue:e.target.value})},t.prototype.render=function(){var e=this,t=this.props,a=t.max,n=t.min,i=t.step,r=t.unit,p=t.clearable,d=t.name,h=t.disabled,c=t.className,f=t.showInput,x=t.multiple,v=t.classnames,g=t.classPrefix;return l.default.createElement("div",{className:v("RangeControl",{"RangeControl--withInput":f,"RangeControl--clearable":p,"is-multiple":x},c)},l.default.createElement(m.default,{classPrefix:g,value:this.state.value,disabled:h,onChange:this.handleChange,onChangeComplete:this.handleEnd,max:a,min:n,step:i,formatLabel:function(e){return e+r},multiple:x}),l.default.createElement("span",{className:v("InputRange-label InputRange-label--mid"),ref:this.midLabelRef},l.default.createElement("span",{className:v("InputRange-labelContainer")},((a+n)/2).toFixed(this.getStepPrecision())+r)),f?x&&u.default(this.state.value)?l.default.createElement("div",{className:v("InputRange-input is-multiple")},l.default.createElement("input",{className:this.state.value.min!==n?"is-active":"",type:"text",name:d,value:this.state.minValue,disabled:h,onChange:this.handleMinInputChange,onBlur:this.handleMinInputBlur}),l.default.createElement("span",{className:v("InputRange-input-separator")}," - "),l.default.createElement("input",{className:this.state.value.max!==a?"is-active":"",type:"text",name:d,value:this.state.maxValue,disabled:h,onChange:this.handleMaxInputChange,onBlur:this.handleMaxInputBlur})):l.default.createElement("div",{className:v("InputRange-input")},l.default.createElement("input",{className:this.state.value!==n?"is-active":"",type:"text",name:d,value:u.default(this.state.value)?0:this.state.value,disabled:h,onChange:this.handleInputChange})):null,p&&!h&&f?l.default.createElement("a",{onClick:function(){return e.clearValue()},className:v("InputRange-clear",{"is-active":x?s.default(this.state.value,{min:n,max:a}):this.state.value!==n})},l.default.createElement(o.Icon,{icon:"close",className:"icon"})):null)},t.defaultProps={max:100,min:0,step:1,unit:"",clearable:!0,disabled:!1,showInput:!1,multiple:!1,joinValues:!0,delimiter:","},t}(l.default.PureComponent);t.default=p;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?(slider|range)$/,name:"range-control"})],t)}(p);t.RangeControlRenderer=d}); -;/*!src/renderers/Form/Combo.tsx*/ -amis.define("3919ee5",function(e,t){"use strict";function a(e,t){return t.reduce(function(t,a){return t[a]=h.resolveVariable(a,e),t},{})}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),l=e("node_modules/react-dom/index"),r=e("567b83c"),i=e("3fbfd93"),s=n.__importStar(e("8ac7656")),d=e("9a80175"),u=n.__importDefault(e("node_modules/sortablejs/Sortable")),m=e("6a2dbb7"),c=n.__importDefault(e("node_modules/lodash/find")),p=n.__importDefault(e("d57879c")),h=e("f2e345e"),f=e("1caead1"),b=e("1953fc1"),g=n.__importDefault(e("node_modules/lodash/memoize")),v=e("b7bbd16"),y=function(e){function t(t){var o=e.call(this,t)||this;return o.subForms=[],o.subFormDefaultValues=[],o.keys=[],o.toDispose=[],o.id=d.guid(),o.refsMap={},o.makeFormRef=g.default(function(e){return function(t){return o.formRef(t,e)}}),o.memoizedFormatValue=g.default(function(e,t,o,l,r){return d.createObject(d.extendObject(r,n.__assign({index:l,__index:l},r)),n.__assign(n.__assign({},o),Array.isArray(t)?a(r,t):null))},function(e,t,n,o,l){return JSON.stringify(Array.isArray(t)?[n,o,l,a(l,t)]:e?[n,o]:[n,o,l])}),o.handleChange=o.handleChange.bind(o),o.handleSingleFormChange=o.handleSingleFormChange.bind(o),o.handleSingleFormInit=o.handleSingleFormInit.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleAction=o.handleAction.bind(o),o.addItem=o.addItem.bind(o),o.removeItem=o.removeItem.bind(o),o.dragTipRef=o.dragTipRef.bind(o),o.flush=o.flush.bind(o),o.handleComboTypeChange=o.handleComboTypeChange.bind(o),o.defaultValue=n.__assign({},t.scaffold),o}n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.store,a=(e.value,e.minLength),n=e.maxLength,o=e.formItem,l=e.addHook;t.config({minLength:a,maxLength:n,length:this.getValueAsArray().length}),o&&o.setSubStore(t),l&&this.toDispose.push(l(this.flush,"flush"))},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(d.anyChanged(["minLength","maxLength","value"],t,e)){var a=e.store,o=e.minLength,l=e.maxLength,r=this.getValueAsArray(e);a.config({minLength:o,maxLength:l,length:r.length}),a.activeKey>=r.length&&a.setActiveKey(Math.max(0,r.length-1)),e.value!==t.value&&!t.formInited&&this.subFormDefaultValues.length&&(this.subFormDefaultValues=this.subFormDefaultValues.map(function(e,t){return n.__assign(n.__assign({},e),{values:r[t]})}))}},t.prototype.componentWillUnmount=function(){var e,t,a,n,o=this.props.formItem;o&&o.setSubStore(null),this.toDispose.forEach(function(e){return e()}),this.toDispose=[],null===(t=(e=this.memoizedFormatValue.cache).clear)||void 0===t?void 0:t.call(e),null===(n=(a=this.makeFormRef.cache).clear)||void 0===n?void 0:n.call(a)},t.prototype.getValueAsArray=function(e){void 0===e&&(e=this.props);var t=e.flat,a=e.joinValues,n=e.delimiter,o=e.value;return o=a&&t&&"string"==typeof o?o.split(n||","):Array.isArray(o)?o.concat():[]},t.prototype.addItemWith=function(e){var t=this.props,a=t.flat,o=t.joinValues,l=t.delimiter,r=t.scaffold,i=t.disabled,s=t.submitOnChange;if(!i){var u=this.getValueAsArray();u.push(a?e.scaffold||r||"":n.__assign({},e.scaffold||r)),this.keys.push(d.guid()),a&&o&&(u=u.join(l||",")),this.props.onChange(u,s,!0)}},t.prototype.addItem=function(){var e=this.props,t=e.flat,a=e.joinValues,o=e.delimiter,l=e.scaffold,r=e.disabled,i=e.submitOnChange;if(!r){var s=this.getValueAsArray();s.push(t?l||"":n.__assign({},l)),this.keys.push(d.guid()),t&&a&&(s=s.join(o||",")),this.props.onChange(s,i,!0)}},t.prototype.removeItem=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,a,o,l,r,i,s,u,c,p,h,b,g,v;return n.__generator(this,function(n){switch(n.label){case 0:return t=this.props,a=t.flat,o=t.joinValues,l=t.delimiter,r=t.disabled,i=t.deleteApi,s=t.deleteConfirmText,u=t.data,c=t.env,p=t.translate,r?[2]:(h=this.getValueAsArray(),b=d.createObject(u,h[e]),f.isEffectiveApi(i,b)?[4,c.confirm(s?m.filter(s,b):p("确认要删除?"))]:[3,3]);case 1:return g=n.sent(),g?[4,c.fetcher(i,b)]:[2];case 2:if(v=n.sent(),!v.ok)return c.notify("error",p("删除失败")),[2];n.label=3;case 3:return h.splice(e,1),this.keys.splice(e,1),a&&o&&(h=h.join(l||",")),this.props.onChange(h),[2]}})})},t.prototype.handleChange=function(e,t,a){var o=a.index,l=this.props,r=l.flat,i=l.store,s=l.joinValues,d=l.delimiter,u=l.disabled,m=l.submitOnChange;if(!u){var c=this.getValueAsArray();c[o]=r?e.flat:n.__assign({},e),r&&s&&(c=c.join(d||",")),this.props.onChange(c,m,!0),i.forms.forEach(function(e){return e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}},t.prototype.handleSingleFormChange=function(e){this.props.onChange(n.__assign({},e),this.props.submitOnChange,!0)},t.prototype.handleFormInit=function(e,t){var a=t.index,o=this.props,l=o.syncDefaultValue,r=o.flat,i=o.joinValues,s=o.delimiter,u=o.formInited,m=o.onChange,c=o.submitOnChange,p=o.setPrinstineValue;if(this.subFormDefaultValues.push({index:a,values:e,setted:!1}),l!==!1&&this.subFormDefaultValues.length===this.subForms.length){var h=this.getValueAsArray(),f=!1;this.subFormDefaultValues=this.subFormDefaultValues.map(function(e){var t=e.index,a=e.values,o=e.setted,l=r?a.flat:n.__assign({},a);return!o&&d.isObjectShallowModified(h[t],l)&&(h[t]=r?a.flat:n.__assign({},a),f=!0),{index:t,values:a,setted:!0}}),f&&(r&&i&&(h=h.join(s||",")),u?m(h,c,!0):p(h))}},t.prototype.handleSingleFormInit=function(e){var t=this.props,a=t.syncDefaultValue,o=t.setPrinstineValue,l=t.value,r=t.nullable;a!==!1&&!r&&d.isObjectShallowModified(l,e)&&o&&o(n.__assign({},e))},t.prototype.handleAction=function(e){var t=this.props.onAction;return"delete"===e.actionType?void(void 0!==e.index&&this.removeItem(e.index)):void(t&&t.apply(null,arguments))},t.prototype.validate=function(){var e=this.props,t=e.value,a=e.minLength,n=e.maxLength,o=e.messages,l=e.nullable,r=e.translate;return a&&(!Array.isArray(t)||t.lengthn?r(o&&o.maxLengthValidateFailed||"组合表单成员数量超出,超出设定的最大{{maxLength}}个,请删除多余的成员。",{maxLength:n}):!this.subForms.length||l&&!t?void 0:Promise.all(this.subForms.map(function(e){return e.validate()})).then(function(e){return~e.indexOf(!1)?r(o&&o.validateFailed||"子表单验证失败,请仔细检查"):void 0})},t.prototype.flush=function(){this.subForms.forEach(function(e){return e.flush()})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this,t=this.props.classPrefix,a=this.props.submitOnChange,n=l.findDOMNode(this);this.sortable=new u.default(n.querySelector("."+t+"Combo-items"),{group:"combo-"+this.id,animation:150,handle:"."+t+"Combo-itemDrager",ghostClass:t+"Combo-item--dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex1?"is-draggable":"")},o.default.createElement("div",{className:a("Combo-items")},Array.isArray(j)&&j.length?j.map(function(t,s,y){var C=[];!B||E&&m.evalExpression(E,t)===!1||C.push(o.default.createElement("a",{onClick:e.removeItem.bind(e,s),key:"remove",className:a("Combo-toolbarBtn "+(c.removable?"":"is-disabled")),"data-tooltip":O("删除"),"data-position":"bottom"},S?o.default.createElement("i",{className:S}):o.default.createElement(v.Icon,{icon:"close",className:"icon"})));var _=e.formatValue(t,s),A=null;Array.isArray(T)&&T.length&&(A=e.pickCondition(_),w=A?A.controls:void 0);var x=h&&w?[n.__assign(n.__assign({},w&&w[0]),{name:"flat"})]:w;return o.default.createElement("div",{className:a("Combo-item"),key:e.keys[s]||(e.keys[s]=d.guid())},!u&&g&&y.length>1?o.default.createElement("div",{className:a("Combo-itemDrager")},o.default.createElement("a",{key:"drag","data-tooltip":O("拖拽排序"),"data-position":"bottom"},V?o.default.createElement("i",{className:V}):o.default.createElement(v.Icon,{icon:"drag-bar",className:"icon"}))):null,A&&I!==!1?o.default.createElement("div",{className:a("Combo-itemTag")},o.default.createElement("label",null,O("类型")),o.default.createElement(p.default,{onChange:e.handleComboTypeChange.bind(e,s),options:T.map(function(e){return{label:e.label,value:e.label}}),value:A.label,clearable:!1})):null,o.default.createElement("div",{className:a("Combo-itemInner")},x?r("multiple/"+s,{type:"form",controls:x,wrapperComponent:"div",wrapWithPanel:!1,mode:i?f:"row",className:a("Combo-form",l)},{index:s,disabled:u,data:_,onChange:e.handleChange,onInit:e.handleFormInit,onAction:e.handleAction,ref:e.makeFormRef(s),lazyChange:L?!1:!0,lazyFormChange:L?!1:!0,lazyLoad:k,canAccessSuperData:N,value:void 0,formItemValue:void 0}):o.default.createElement(b.Alert2,{level:"warning",className:"m-b-none"},O("数据非法,或者数据已失效,请移除"))),C.length?o.default.createElement("div",{className:a("Combo-itemToolbar")},C):null)}):M?o.default.createElement("div",{className:a("Combo-placeholder")},O(M)):null),u?null:o.default.createElement("div",{className:a("Combo-toolbar")},c.addable&&_!==!1?Array.isArray(T)&&T.length?r("add-button",{type:"dropdown-button",label:O(C||"新增"),level:"info",size:"sm",closeOnClick:!0},{buttons:T.map(function(t){return{label:t.label,onClick:function(){return e.addItemWith(t),!1}}})}):o.default.createElement("button",{type:"button",onClick:this.addItem,className:a("Button Combo-addBtn",s),"data-tooltip":O("新增一条数据")},F?o.default.createElement(v.Icon,{icon:"plus",className:"icon"}):null,o.default.createElement("span",null,O(C||"新增"))):null,g?o.default.createElement("span",{className:a("Combo-dragableTip"),ref:this.dragTipRef},Array.isArray(j)&&j.length>1?O(y):""):null))},t.prototype.renderSingle=function(){var e=this.props,t=e.conditions,a=e.classnames,n=e.render,l=e.value,r=e.multiLine,i=e.formClassName,s=e.canAccessSuperData,u=e.noBorder,m=e.disabled,c=e.typeSwitchable,h=e.nullable,f=e.translate,g=this.props.controls,v=d.isObject(l)?this.formatValue(l):this.defaultValue,y=null;return Array.isArray(t)&&t.length&&(y=this.pickCondition(v),g=y?y.controls:void 0),o.default.createElement("div",{className:a("Combo Combo--single",r?"Combo--ver":"Combo--hor",u?"Combo--noBorder":"",m?"is-disabled":"")},o.default.createElement("div",{className:a("Combo-item")},y&&c!==!1?o.default.createElement("div",{className:a("Combo-itemTag")},o.default.createElement("label",null,f("类型")),o.default.createElement(p.default,{onChange:this.handleComboTypeChange.bind(this,0),options:t.map(function(e){return{label:e.label,value:e.label}}),value:y.label,clearable:!1})):null,o.default.createElement("div",{className:a("Combo-itemInner")},g?n("single",{type:"form",controls:g,wrapperComponent:"div",wrapWithPanel:!1,mode:r?"normal":"row",className:a("Combo-form",i)},{disabled:m,data:v,onChange:this.handleSingleFormChange,ref:this.makeFormRef(0),onInit:this.handleSingleFormInit,canAccessSuperData:s}):o.default.createElement(b.Alert2,{level:"warning",className:"m-b-none"},f("数据非法,或者数据已失效,请移除")))),l&&h?o.default.createElement("a",{className:a("Combo-setNullBtn"),href:"#",onClick:this.setNull},f("清空数据")):null)},t.prototype.render=function(){{var e=this.props,t=e.formInited,a=e.multiple,n=e.className,l=(e.classPrefix,e.classnames);e.disabled}return t?o.default.createElement("div",{className:l("ComboControl",n)},a?this.renderMultipe():this.renderSingle()):null};var r;return t.defaultProps={minLength:0,maxLength:0,multiple:!1,multiLine:!1,addButtonClassName:"",formClassName:"",subFormMode:"normal",draggableTip:"可拖拽排序",addButtonText:"新增",canAccessSuperData:!1,addIcon:!0,dragIcon:"",deleteIcon:"",tabsMode:!1,tabsStyle:"",placeholder:"<空>"},t.propsList=["minLength","maxLength","multiple","multiLine","addButtonClassName","subFormMode","draggableTip","addButtonText","draggable","scaffold","canAccessSuperData","addIcon","dragIcon","deleteIcon","noBorder","conditions","tabsMode","tabsStyle","lazyLoad","changeImmediately","strictMode","controls","conditions","messages"],n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number]),n.__metadata("design:returntype",void 0)],t.prototype,"handleTabSelect",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof o.default&&o.default.MouseEvent)?r:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"setNull",null),t}(o.default.Component);t.default=y;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"combo",storeType:i.ComboStore.name,extendsData:!1})],t)}(y);t.ComboControlRenderer=C}); -;/*!src/renderers/Form/Array.tsx*/ -amis.define("9b389bb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),r=e("567b83c"),i=e("3fbfd93"),a=n.__importDefault(e("3919ee5")),s=function(e){function t(t){var n=e.call(this,t)||this;return n.comboRef=n.comboRef.bind(n),n}return n.__extends(t,e),t.prototype.comboRef=function(e){this.comboInstance=e},t.prototype.validate=function(e){var t;return this.comboInstance?(t=this.comboInstance).validate.apply(t,e):null},t.prototype.render=function(){var e=this.props,t=e.items,r=n.__rest(e,["items"]);return o.default.createElement(a.default,n.__assign({},r,{controls:[t],flat:!0,multiple:!0,multiLine:!1,ref:this.comboRef}))},t}(o.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"array",storeType:i.ComboStore.name})],t)}(s);t.ArrayControlRenderer=u}); -;/*!src/renderers/Container.tsx*/ -amis.define("2390f9f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderBody=function(){var e=this.props,t=e.children,n=e.body,s=e.render,a=e.classnames,o=e.bodyClassName;return r.default.createElement("div",{className:a("Container-body",o)},t?"function"==typeof t?t(this.props):t:n?s("body",n):null)},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.size,e.classnames);return r.default.createElement("div",{className:n("Container",t)},this.renderBody())},t.propsList=["body","className"],t.defaultProps={className:""},t}(r.default.Component);t.default=a;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)container$/,name:"container"})],t)}(a);t.ContainerRenderer=o}); -;/*!src/renderers/Form/Container.tsx*/ -amis.define("647fc2f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=r.__importDefault(e("node_modules/classnames/index")),a=r.__importDefault(e("2390f9f")),d=r.__importDefault(e("567b83c")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderBody=function(){var t=this.props,r=t.renderFormItems,a=t.body,d=t.bodyClassName,s=t.controls,l=t.tabs,i=t.fieldSet,u=t.mode,f=t.formMode,m=t.horizontal,c=t.$path,p=t.classPrefix,_=t.store,b=t.render;if(!a&&(s||l||i)){var y={store:_,data:_.data,render:b};return u&&(y.mode=u),m&&(y.horizontal=m),o.default.createElement("div",{className:n.default(p+"Form--"+(y.mode||f||"normal"),d)},r({controls:s,tabs:l,fieldSet:i},c.replace(/^.*form\//,""),y))}return e.prototype.renderBody.call(this)},t.propsList=["onChange"],t=r.__decorate([d.default({type:"container",strictMode:!1,sizeMutable:!1})],t)}(a.default);t.ContainerControlRenderer=s}); -;/*!src/renderers/Form/SubForm.tsx*/ -amis.define("8a88f1c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),l=e("567b83c"),s=n.__importDefault(e("node_modules/classnames/index")),i=n.__importDefault(e("node_modules/lodash/omit")),r=n.__importDefault(e("node_modules/lodash/pick")),d=e("9a80175"),u=e("b7bbd16"),p=function(e){return e?(a=a||document.createElement("div"),a.innerHTML=e,a.innerText):e},m=function(e){function t(t){var a=e.call(this,t)||this;return a.state={openedIndex:-1,optionIndex:-1},a.addItem=a.addItem.bind(a),a.removeItem=a.removeItem.bind(a),a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleDialogConfirm=a.handleDialogConfirm.bind(a),a}return n.__extends(t,e),t.prototype.addItem=function(){var e=this.props.value;e=Array.isArray(e)?e.concat():[],e.push({}),this.props.onChange(e)},t.prototype.removeItem=function(e,t){t.stopPropagation(),t.preventDefault();var a=this.props.value;Array.isArray(a)&&(a=a.concat(),a.splice(e,1),this.props.onChange(a))},t.prototype.open=function(e){void 0===e&&(e=0),this.setState({openedIndex:e})},t.prototype.close=function(){this.setState({openedIndex:-1})},t.prototype.handleDialogConfirm=function(e){var t=this.props,a=t.multiple,o=t.onChange,l=t.value;if(a){var s=Array.isArray(l)?l.concat():[];s[this.state.openedIndex]=n.__assign(n.__assign({},s[this.state.openedIndex]),e[0]),o(s)}else o(n.__assign(n.__assign({},l),e[0]));this.close()},t.prototype.buildDialogSchema=function(){var e=this.props.form,t=["title","actions","name","size","closeOnEsc","showCloseButton","bodyClassName","type"];return n.__assign(n.__assign({},r.default(e,t)),{type:"dialog",body:n.__assign({type:"form"},i.default(e,t))})},t.prototype.renderMultipe=function(){var e=this,t=this.props,a=t.classPrefix,n=t.addButtonClassName,l=t.editButtonClassName,i=t.disabled,r=t.labelField,m=t.value,c=t.btnLabel,b=t.render,f=t.data,h=t.translate;return[o.default.createElement("div",{className:a+"SubForm-values",key:"values"},Array.isArray(m)?m.map(function(t,n){return o.default.createElement("div",{className:s.default(a+"SubForm-value",{"is-disabled":i},l),key:n},o.default.createElement("span",{"data-tooltip":h("删除"),"data-position":"bottom",className:a+"Select-valueIcon",onClick:e.removeItem.bind(e,n)},"×"),o.default.createElement("span",{onClick:e.open.bind(e,n),className:a+"SubForm-valueLabel","data-tooltip":h("编辑详情"),"data-position":"bottom"},t&&r&&t[r]&&p(t[r])||b("label",{type:"tpl",tpl:h(c)},{data:d.createObject(f,t)})))}):null),o.default.createElement("button",{key:"add",type:"button",onClick:this.addItem,className:s.default(a+"Button "+a+"SubForm-addBtn",n),disabled:i,"data-tooltip":h("新增一条数据")},o.default.createElement(u.Icon,{icon:"plus",className:"icon"}),o.default.createElement("span",null,h("新增")))]},t.prototype.renderSingle=function(){var e=this.props,t=e.classPrefix,a=e.btnClassName,n=e.disabled,l=e.value,i=e.labelField,r=e.btnLabel,u=e.render,m=e.data,c=e.translate;return o.default.createElement("div",{className:t+"SubForm-values",key:"values"},o.default.createElement("div",{className:s.default(t+"SubForm-value",{"is-disabled":n},a),onClick:this.open.bind(this,0),"data-tooltip":c("编辑详情"),"data-position":"bottom"},o.default.createElement("span",{className:t+"SubForm-valueLabel"},l&&i&&l[i]&&p(l[i])||u("label",{type:"tpl",tpl:c(r)},{data:d.createObject(m,l)}))))},t.prototype.render=function(){var e=this.props,t=e.multiple,a=e.classPrefix,n=e.className,l=e.render,i=e.value,r=e.data,u=this.state.openedIndex;return o.default.createElement("div",{className:s.default(a+"SubFormControl",n)},t?this.renderMultipe():this.renderSingle(),l("dalog/"+u,this.buildDialogSchema(),{show:-1!==u,onClose:this.close,onConfirm:this.handleDialogConfirm,data:d.createObject(r,(t?Array.isArray(i)&&i[u]:i)||{})}))},t.defaultProps={minLength:0,maxLength:0,multiple:!1,btnClassName:"",addButtonClassName:"",editButtonClassName:"",labelField:"label",btnLabel:"设置"},t}(o.default.PureComponent);t.default=m;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({type:"form",sizeMutable:!1})],t)}(m);t.SubFormControlRenderer=c}); -;/*!src/renderers/Form/RichText.tsx*/ -amis.define("a57a440",function(e,t){"use strict";function o(t){return void 0===t&&(t="froala"),function(){return new Promise(function(o){return"tinymce"===t?e(["82fac39"],function(e){return o(e.default)}):e(["1e5b785"],function(e){return o(e.default)})})}}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=e("567b83c"),r=n.__importDefault(e("node_modules/classnames/index")),l=n.__importDefault(e("4783ce8")),s=e("9a80175"),u=function(e){function t(t){var o=e.call(this,t)||this;o.state={focused:!1},o.config=null;var a=t.vendor||(t.env.richTextToken?"froala":"tinymce");if(o.handleFocus=o.handleFocus.bind(o),o.handleBlur=o.handleBlur.bind(o),"froala"===a)o.config=n.__assign(n.__assign({imageAllowedTypes:["jpeg","jpg","png","gif"],imageDefaultAlign:"left",imageEditButtons:t.imageEditable?["imageReplace","imageAlign","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"]:[],key:t.env.richTextToken},t.options),{editorClass:t.editorClass,placeholderText:t.placeholder,imageUploadURL:t.reciever,imageUploadParams:{from:"rich-text"},videoUploadURL:t.videoReciever,videoUploadParams:{from:"rich-text"},events:n.__assign(n.__assign({},t.options&&t.options.events),{"froalaEditor.focus":o.handleFocus,"froalaEditor.blur":o.handleBlur}),language:o.props.locale&&"zh-cn"!==o.props.locale?"":"zh_cn"}),t.buttons&&(o.config.toolbarButtonsSM=t.buttons,o.config.toolbarButtonsMD=t.buttons,o.config.toolbarButtonsXS=t.buttons,o.config.toolbarButtons=t.buttons);else{var i=t.env.fetcher;o.config=n.__assign(n.__assign({},t.options),{images_upload_url:t.reciever,images_upload_handler:function(e,a,r){return n.__awaiter(o,void 0,void 0,function(){var o,l,s,u,d,c;return n.__generator(this,function(n){switch(n.label){case 0:o=new FormData,o.append("file",e.blob(),e.filename()),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i(t.reciever,o,{method:"post"})];case 2:return l=n.sent(),l.ok&&a((null===(u=l.data)||void 0===u?void 0:u.link)||(null===(d=l.data)||void 0===d?void 0:d.url)||(null===(c=l.data)||void 0===c?void 0:c.value)||l.link),[3,4];case 3:return s=n.sent(),r(s),[3,4];case 4:return[2]}})})}})}return o}return n.__extends(t,e),t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,i=e.value,u=e.onChange,d=e.disabled,c=(e.size,e.vendor),f=e.env,m=e.locale,g=e.translate,p=c||(f.richTextToken?"froala":"tinymce");return a.default.createElement("div",{className:r.default(n+"RichTextControl",t,{"is-focused":this.state.focused,"is-disabled":d})},a.default.createElement(l.default,{getComponent:o(p),model:i,onModelChange:d?s.noop:u,onFocus:this.handleFocus,onBlur:this.handleBlur,config:this.config,disabled:d,locale:m,translate:g}))},t.defaultProps={imageEditable:!0,reciever:"/api/upload/image",videoReciever:"/api/upload/video",placeholder:"请输入",options:{toolbarButtonsSM:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],toolbarButtonsMD:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],toolbarButtons:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"]}},t}(a.default.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.FormItem({type:"rich-text",sizeMutable:!1})],t)}(u);t.RichTextControlRenderer=d}); -;/*!src/renderers/Form/Editor.tsx*/ -amis.define("27eb5b8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),s=e("567b83c"),i=n.__importDefault(e("4783ce8")),a=n.__importDefault(e("node_modules/lodash/debounce")),r=n.__importDefault(e("997c87d")),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.toDispose=[],n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleEditorMounted=n.handleEditorMounted.bind(n),n.updateContainerSize=a.default(n.updateContainerSize.bind(n),250,{trailing:!0,leading:!1}),n.toDispose.push(n.updateContainerSize.cancel),n}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach(function(e){return e()})},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.handleEditorMounted=function(e,t){this.editor=e,this.toDispose.push(e.onDidFocusEditorWidget(this.updateContainerSize).dispose),this.toDispose.push(e.onDidChangeModelContent(this.updateContainerSize).dispose),this.props.editorDidMount&&this.props.editorDidMount(e,t)},t.prototype.updateContainerSize=function(){var e=this.editor,t=e._domElement.parentNode,n=e.getConfiguration(),o=n.lineHeight,s=e.getModel().getLineCount(),i=o*s,a=n.layoutInfo.horizontalScrollbarHeight,r=i+a;t.style.cssText="height:"+r+"px"},t.prototype.render=function(){var e,t=this.props,s=t.className,a=t.classPrefix,l=t.classnames,u=t.value,d=t.onChange,p=t.disabled,c=t.options,h=t.language,f=t.editorTheme,g=t.size,_=u;return _&&"string"!=typeof _&&(_=JSON.stringify(_,null,4)),o.default.createElement("div",{className:l("EditorControl",(e={"is-focused":this.state.focused},e["EditorControl--"+g]=g,e),s)},o.default.createElement(i.default,{classPrefix:a,component:r.default,value:_,onChange:d,disabled:p,onFocus:this.handleFocus,onBlur:this.handleBlur,language:h,editorTheme:f,editorDidMount:this.handleEditorMounted,options:n.__assign(n.__assign({},c),{readOnly:p})}))},t.defaultProps={language:"javascript",editorTheme:"vs",options:{automaticLayout:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}}},t}(o.default.Component);t.default=l,t.availableLanguages=["bat","c","coffeescript","cpp","csharp","css","dockerfile","fsharp","go","handlebars","html","ini","java","javascript","json","less","lua","markdown","msdax","objective-c","php","plaintext","postiats","powershell","pug","python","r","razor","ruby","sb","scss","sol","sql","swift","typescript","vb","xml","yaml"],t.EditorControls=t.availableLanguages.map(function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(o,t),o.lang=e,o.displayName=""+e[0].toUpperCase()+e.substring(1)+"EditorControlRenderer",o.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:e}),o=n.__decorate([s.FormItem({type:e+"-editor",sizeMutable:!1})],o)}(l);return t});var u=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:"javascript"}),t=n.__decorate([s.FormItem({type:"js-editor",sizeMutable:!1})],t)}(l),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:"typescript"}),t=n.__decorate([s.FormItem({type:"ts-editor",sizeMutable:!1})],t)}(l),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:"javascript"}),t=n.__decorate([s.FormItem({type:"editor",sizeMutable:!1})],t)}(l));t.EditorControlRenderer=u}); -;/*!src/renderers/Form/DiffEditor.tsx*/ -amis.define("138c832",function(e,t){"use strict";function i(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e,t){if(e&&"string"!=typeof e&&(e=JSON.stringify(e,null,4)),t&&"json"===t)try{e=JSON.stringify("string"==typeof e?JSON.parse(e):e,null,4)}catch(i){}return e}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),d=n.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),a=e("567b83c"),s=e("6a2dbb7"),l=n.__importDefault(e("4783ce8")),u=n.__importDefault(e("node_modules/lodash/debounce")),f=e("f2e345e"),h=function(e){function t(t){var i=e.call(this,t)||this;return i.state={focused:!1},i.toDispose=[],i.handleFocus=i.handleFocus.bind(i),i.handleBlur=i.handleBlur.bind(i),i.editorFactory=i.editorFactory.bind(i),i.handleEditorMounted=i.handleEditorMounted.bind(i),i.handleModifiedEditorChange=i.handleModifiedEditorChange.bind(i),i.updateContainerSize=u.default(i.updateContainerSize.bind(i),250,{trailing:!0,leading:!1}),i.toDispose.push(i.updateContainerSize.cancel),i}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach(function(e){return e()})},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.componentDidUpdate=function(e){var t=this.props,i=t.data,n=t.value,d=t.diffValue,r=t.language;this.originalEditor&&d&&(d!==e.diffValue||i!==e.data)&&this.originalEditor.getModel().setValue(f.isPureVariable(d)?o(s.filter(d||"",i,"| raw"),r):o(d,r)),this.modifiedEditor&&n&&n!==e.value&&!this.state.focused&&this.modifiedEditor.getModel().setValue(o(n,r))},t.prototype.editorFactory=function(e,t,i){return t.editor.createDiffEditor(e,i)},t.prototype.handleEditorMounted=function(e,t){var i=this.props,n=i.value,d=i.data,r=i.language,a=i.diffValue;this.monaco=t,this.editor=e,this.modifiedEditor=e.getModifiedEditor(),this.originalEditor=e.getOriginalEditor(),this.toDispose.push(this.modifiedEditor.onDidFocusEditorWidget(this.handleFocus).dispose),this.toDispose.push(this.modifiedEditor.onDidBlurEditorWidget(this.handleBlur).dispose),this.toDispose.push(this.modifiedEditor.onDidChangeModelContent(this.handleModifiedEditorChange).dispose),this.editor.setModel({original:this.monaco.editor.createModel(f.isPureVariable(a)?o(s.filter(a||"",d,"| raw"),r):o(a,r),r),modified:this.monaco.editor.createModel(o(n,r),r)}),this.updateContainerSize()},t.prototype.handleModifiedEditorChange=function(){var e=this.props.onChange;e&&e(this.modifiedEditor.getModel().getValue()),this.updateContainerSize()},t.prototype.updateContainerSize=function(){var e=this.modifiedEditor,t=e._domElement.parentNode.parentNode.parentNode,i=e.getConfiguration(),o=i.lineHeight,n=e.getModel().getLineCount(),d=o*n,r=i.layoutInfo.horizontalScrollbarHeight,a=d+r;t.style.cssText="height:"+a+"px"},t.prototype.render=function(){var e=this.props,t=e.className,o=e.value,r=e.onChange,a=e.disabled,s=e.size,u=e.options,f=e.language,h=e.theme,p=e.classnames;return d.default.createElement("div",{className:p("EditorControl",s?"EditorControl--"+s:"",t,{"is-focused":this.state.focused})},d.default.createElement(l.default,{getComponent:i,value:o,onChange:r,disabled:a,language:f,theme:h,editorDidMount:this.handleEditorMounted,editorFactory:this.editorFactory,options:n.__assign(n.__assign({},u),{readOnly:a})}))},t.defaultProps={language:"javascript",theme:"vs",options:{automaticLayout:!1,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}},diffValue:""},t}(d.default.Component);t.DiffEditor=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign({},h.defaultProps),t=n.__decorate([a.FormItem({type:"diff-editor",sizeMutable:!1})],t)}(h);t.DiffEditorControlRenderer=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},h.defaultProps),{disabled:!0}),t=n.__decorate([r.Renderer({test:/(^|\/)diff-editor$/,name:"diff-editor"})],t)}(h);t.DiffEditorRenderer=c}); -;/*!src/renderers/Grid.tsx*/ -amis.define("5e68c3c",function(e,r){"use strict";function n(e){return"string"==typeof e&&e?e.replace(/\bcol-(xs|sm|md|lg)-(\d+)\b/g,function(e,r,n){return"Grid-col--"+r+n}):e}function t(e){var n=[],t=r.ColProps;return t.forEach(function(r){return e&&e[r]&&n.push("Grid-col--"+r+e[r])}),n.length||n.push("Grid-col--sm"),n.join(" ")}Object.defineProperty(r,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),o=s.__importDefault(e("node_modules/react/index")),u=e("0f9ebdf"),i=s.__importDefault(e("node_modules/lodash/pick"));r.ColProps=["lg","md","sm","xs"];var l=function(e){function u(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(u,e),u.prototype.renderChild=function(e,r,n,t){var s=this.props,o=s.render,u=s.itemRender;return u?u(r,n,t,this.props):o(e,r)},u.prototype.renderColumn=function(e,u,l){var d=i.default(e,r.ColProps);d=s.__assign({},d);var a=this.props.classnames;return o.default.createElement("div",{key:u,className:a(t(d),n(e.columnClassName))},Array.isArray(e)?this.renderColumns(e):this.renderChild("column/"+u,e,u,l))},u.prototype.renderColumns=function(e){var r=this,n=this.props,t=n.className,s=n.classnames;return o.default.createElement("div",{className:s("Grid",t)},e.map(function(n,t){return r.renderColumn(n,t,e.length)}))},u.prototype.render=function(){return this.renderColumns(this.props.columns)},u.propsList=["columns"],u.defaultProps={},u}(o.default.Component);r.default=l;var d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(r,e),r=s.__decorate([u.Renderer({test:/(^|\/)grid$/,name:"grid"})],r)}(l);r.GridRenderer=d}); -;/*!src/renderers/Form/Grid.tsx*/ -amis.define("d5c9577",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("5e68c3c")),s=e("567b83c"),n=r.__importDefault(e("node_modules/react/index")),d={left:"col-sm-4",right:"col-sm-8",offset:"col-sm-offset-4"},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderChild=function(e,t,r,o){var s=this.props,a=s.render,l=s.renderFormItems,i=s.classnames,m=s.$path,c=s.itemRender,u=s.store;return t&&!t.type&&(t.controls||t.tabs||t.feildSet)?n.default.createElement("div",{className:i("Grid-form Form--"+(t.mode||"normal"))},l(t,m.replace(/^.*form\//,""),{mode:t.mode||"normal",horizontal:t.horizontal||d,store:u,data:u.data,render:a})):c?c(t,r,o,this.props):a(e,t.body||t)},t.propsList=["columns","onChange"],t.defaultProps={},t=r.__decorate([s.FormItem({type:"grid",strictMode:!1,sizeMutable:!1})],t)}(o.default);t.GridRenderer=a}); -;/*!src/renderers/Form/HBox.tsx*/ -amis.define("4be33a0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=e("567b83c"),s=r.__importDefault(e("node_modules/classnames/index")),a=e("9a80175"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderColumn=function(e,t,n){var l=this.props,i=l.itemRender,d=l.data,u=l.classPrefix;if(!a.isVisible(e,d))return null;var m=r.__assign({width:e.width,height:e.height},e.style);return o.default.createElement("div",{key:t,style:m,className:s.default(u+"Hbox-col",u+"Form--"+(e.mode||"normal"),e.columnClassName)},i?i(e,t,n,this.props):this.renderChild("column/"+t,e))},t.prototype.renderChild=function(e,t){var r=this.props,o=r.render,n=r.renderFormItems,s=(r.formMode,r.store),a=r.$path;return t&&!t.type&&(t.controls||t.tabs||t.feildSet)?n(t,a.replace(/^.*form\//,""),{mode:t.mode||"normal",horizontal:t.horizontal||{left:4,right:8,offset:4},store:s,data:s.data,render:o}):o(e,t.body||t)},t.prototype.render=function(){var e=this,t=this.props,r=t.className,n=t.columns,a=t.gap,l=t.classPrefix;return o.default.createElement("div",{className:s.default(l+"FormHbox",a?l+"Hbox--"+a:"",r)},o.default.createElement("div",{className:l+"Hbox"},n.map(function(t,r){return e.renderColumn(t,r,n.length)})))},t.propsList=["columns","onChange"],t.defaultProps={},t=r.__decorate([n.FormItem({type:"hbox",strictMode:!1,sizeMutable:!1})],t)}(o.default.Component);t.HBoxRenderer=l}); -;/*!src/renderers/Panel.tsx*/ -amis.define("244f74d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=a.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),n=e("9a80175"),o=e("node_modules/react-dom/index"),i=e("67d35e6"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affixDom=s.default.createRef(),t.footerDom=s.default.createRef(),t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=o.findDOMNode(this),t=e?n.getScrollParent(e):null;t&&t!==document.body||(t=window),this.parentNode=t,t.addEventListener("scroll",this.affixDetect),this.unSensor=i.resizeSensor(e,this.affixDetect),this.affixDetect()},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),this.unSensor&&this.unSensor(),clearTimeout(this.timer)},t.prototype.affixDetect=function(){if(this.props.affixFooter&&this.affixDom.current&&this.footerDom.current){var e=this.affixDom.current,t=this.footerDom.current,a=!1;if(!t.offsetWidth)return void(this.timer=setTimeout(this.affixDetect,250));if(e.style.cssText="width: "+t.offsetWidth+"px","always"===this.props.affixFooter)a=!0,t.classList.add("invisible2");else{var s=t.getBoundingClientRect(),r=window.innerHeight;a=s.top+s.height/2>r}a?e.classList.add("in"):e.classList.remove("in")}},t.prototype.renderBody=function(){var e=this.props,t=(e.type,e.className,e.data),s=(e.header,e.body),r=e.render,n=(e.bodyClassName,e.headerClassName,e.actionsClassName,e.footerClassName,e.children),o=(e.title,e.actions,e.footer,e.classPrefix,a.__rest(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","actions","footer","classPrefix"])),i=a.__assign({data:t},o);return n?"function"==typeof n?n(this.props):n:s?r("body",s,i):null},t.prototype.renderActions=function(){var e=this.props,t=e.actions,a=e.render;return Array.isArray(t)&&t.length?t.map(function(e,t){return a("action",e,{type:e.type||"button",key:t})}):null},t.prototype.render=function(){var e=this.props,t=(e.type,e.className),r=e.data,n=e.header,o=(e.body,e.render),i=e.bodyClassName,l=e.headerClassName,d=e.actionsClassName,f=e.footerClassName,c=(e.children,e.title),m=e.footer,u=e.affixFooter,h=e.classPrefix,p=e.classnames,y=a.__rest(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","footer","affixFooter","classPrefix","classnames"]),N=a.__assign({data:r},y),_=[],v=this.renderActions();v&&_.push(s.default.createElement("div",{key:"actions",className:p("Panel-btnToolbar",d||"Panel-footer")},v)),m&&_.push(s.default.createElement("div",{key:"footer",className:p(f||"Panel-footer")},o("footer",m,N)));var x=_.length?s.default.createElement("div",{ref:this.footerDom},_):null;return s.default.createElement("div",{className:p("Panel",t||"Panel--default")},n?s.default.createElement("div",{className:p(l||"Panel-heading")},o("header",n,N)):c?s.default.createElement("div",{className:p(l||"Panel-heading")},s.default.createElement("h3",{className:p("Panel-title")},o("title",c,N))):null,s.default.createElement("div",{className:i||h+"Panel-body"},this.renderBody()),x,u&&_.length?s.default.createElement("div",{ref:this.affixDom,className:p("Panel-fixedBottom")},_):null)},t.propsList=["header","headerClassName","footerClassName","actionsClassName","bodyClassName"],t.defaultProps={},a.__decorate([n.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"affixDetect",null),t}(s.default.Component);t.default=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([r.Renderer({test:/(^|\/)panel$/,name:"panel"})],t)}(l);t.PanelRenderer=d}); -;/*!src/renderers/Form/Panel.tsx*/ -amis.define("2406202",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),a=r.__importDefault(e("244f74d")),d=r.__importDefault(e("node_modules/classnames/index")),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderBody=function(){var t=this.props,r=(t.render,t.renderFormItems),n=t.body,a=t.bodyClassName,l=t.controls,s=t.tabs,i=t.fieldSet,m=t.mode,f=t.formMode,u=t.horizontal,c=t.$path,p=t.classPrefix;if(!n&&(l||s||i)){var _={};return m&&(_.mode=m),u&&(_.horizontal=u),o.default.createElement("div",{className:d.default(p+"Form--"+(_.mode||f||"normal"),a)},r({controls:l,tabs:s,fieldSet:i},c.replace(/^.*form\//,""),_))}return e.prototype.renderBody.call(this)},t.propsList=["onChange"],t=r.__decorate([n.Renderer({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?panel$/,weight:-100,name:"panel-control"})],t)}(a.default);t.PanelRenderer=l}); -;/*!src/renderers/Form/Color.tsx*/ -amis.define("5271012",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=r.__importDefault(e("node_modules/react/index")),a=e("567b83c"),l=r.__importDefault(e("node_modules/classnames/index")),s=r.__importDefault(e("f11d26b")),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={open:!1},t}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.classPrefix,o=r.__rest(e,["className","classPrefix"]);return n.default.createElement("div",{className:l.default(a+"ColorControl",t)},n.default.createElement(s.default,r.__assign({classPrefix:a},o)))},t.defaultProps={format:"hex",clearable:!0},t}(n.default.PureComponent);t.default=o;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([a.FormItem({type:"color"})],t)}(o);t.ColorControlRenderer=u}); -;/*!src/renderers/Form/ChainedSelect.tsx*/ -amis.define("d2efb65",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),i=a.__importDefault(e("node_modules/classnames/index")),o=e("b86428a"),s=a.__importDefault(e("d57879c")),l=e("1caead1"),r=function(e){function t(t){var a=e.call(this,t)||this;return a.state={stack:[]},a.handleChange=a.handleChange.bind(a),a.loadMore=a.loadMore.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.formInited;e?this.loadMore():this.props.addHook(this.loadMore,"init")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.options!==e.options&&this.setState({stack:[]})},t.prototype.componentDidUpdate=function(e){var t=this.props;t.formInited&&t.value!==e.value&&this.loadMore()},t.prototype.loadMore=function(){for(var e=this,t=this.props,n=t.value,i=t.delimiter,o=t.onChange,s=t.joinValues,r=t.extractValue,p=t.source,d=t.data,u=t.env,c=Array.isArray(n)?n.concat():n&&"string"==typeof n?n.split(i||","):[],h=0,f=this.state.stack.length;f>h&&c[h]&&this.state.stack[h].parentId==(s||r?c[h]:c[h].value);)h++;if(c[h]&&u&&l.isEffectiveApi(p,d)){var v=s||r?c[h]:c[h].value,m=this.state.stack.concat();m.splice(h,m.length-h),m.push({parentId:v,loading:!0,options:[]}),this.setState({stack:m},function(){u.fetcher(p,a.__assign(a.__assign({},d),{value:c,level:h+1,parentId:v,parent:c[h]})).then(function(t){var a=e.state.stack.concat(),l=t.data?t.data.value:void 0,r=t.data&&t.data.options||t.data;a.splice(h,a.length-h),"undefined"!=typeof l&&(c.splice(h+1,n.length-h-1),c.push(l),o(s?c.join(i||","):c)),a.push({options:r,parentId:v,loading:!1,visible:!!r}),e.setState({stack:a},e.loadMore)}).catch(function(e){u.notify("error",e.message)})})}},t.prototype.handleChange=function(e,t){var a=this.props,n=a.value,i=a.delimiter,o=a.onChange,s=a.joinValues,l=a.extractValue,r=Array.isArray(n)?n.concat():n&&"string"==typeof n?n.split(i||","):[];r.splice(e,r.length-e),r.push(s?t.value:t),o(s?r.join(i||","):l?r.map(function(e){return e.value||e}):r)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this,t=this.props,o=t.options,l=t.classPrefix,r=t.className,p=(t.inline,t.loading),d=t.value,u=t.delimiter,c=(t.joinValues,t.extractValue,t.multiple,a.__rest(t,["options","classPrefix","className","inline","loading","value","delimiter","joinValues","extractValue","multiple"])),h=Array.isArray(d)?d.concat():d&&"string"==typeof d?d.split(u||","):[];return n.default.createElement("div",{className:i.default(l+"ChainedSelectControl",r)},n.default.createElement(s.default,a.__assign({},c,{classPrefix:l,key:"base",options:o,value:h[0],onChange:this.handleChange.bind(this,0),loading:p,inline:!0})),this.state.stack.map(function(t,i){var o=t.options,r=t.loading,p=t.visible;return p===!1?null:n.default.createElement(s.default,a.__assign({},c,{classPrefix:l,key:"x-"+(i+1),options:o,value:h[i+1],onChange:e.handleChange.bind(e,i+1),loading:r,inline:!0}))}))},t.defaultProps={clearable:!1,searchable:!1,multiple:!0},t}(n.default.Component);t.default=r;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"chained-select",sizeMutable:!1})],t)}(r);t.ChainedSelectControlRenderer=p}); -;/*!src/renderers/Form/NestedSelect.tsx*/ -amis.define("9d9f047",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("node_modules/lodash/xorBy")),s=a.__importDefault(e("node_modules/lodash/unionBy")),i=a.__importDefault(e("997df41")),r=a.__importDefault(e("0a43d97")),o=a.__importDefault(e("2b3dcdf")),u=e("node_modules/react-overlays/lib/index"),d=e("b7bbd16"),c=e("9a80175"),p=e("f2e345e"),m=e("b86428a"),h=a.__importDefault(e("4ee46ff")),f=e("node_modules/react-dom/index"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,isFocused:!1,inputValue:"",stack:[]},t}a.__extends(t,e),t.prototype.domRef=function(e){this.target=e},t.prototype.open=function(){var e=this.props,t=e.options,a=e.disabled;a||this.setState({isOpened:!0,stack:[t]})},t.prototype.close=function(){this.setState({isOpened:!1,stack:[]})},t.prototype.removeItem=function(e,t){var a=this.props,n=a.onChange,l=a.selectedOptions,s=a.disabled,i=a.joinValues,r=a.valueField,o=a.extractValue,u=a.delimiter,d=a.value;s||(t&&t.stopPropagation(),l.splice(e,1),i?d=l.map(function(e){return e[r||"value"]}).join(u||","):o&&(d=l.map(function(e){return e[r||"value"]})),n(d))},t.prototype.renderValue=function(){var e=this,t=this.props,a=t.multiple,l=t.classnames,s=t.selectedOptions,i=t.labelField,r=t.placeholder,o=t.disabled;return s&&s.length>0?s.map(function(t,s){return a?n.default.createElement("div",{className:l("Select-value"),key:s},n.default.createElement("span",{className:l("Select-valueIcon",{"is-disabled":o||t.disabled}),onClick:e.removeItem.bind(e,s)},"×"),n.default.createElement("span",{className:l("Select-valueLabel")},t[i||"label"])):n.default.createElement("div",{className:l("Select-value"),key:s},t[i||"label"])}):n.default.createElement("div",{className:l("NestedSelect-placeholder")},r)},t.prototype.renderClear=function(){var e=this.props,t=e.clearable,a=e.value,l=e.disabled,s=e.classnames;return t&&!l&&(Array.isArray(a)?a.length:a)?n.default.createElement("a",{onClick:this.clearValue,className:s("NestedSelect-clear")},n.default.createElement(d.Icon,{icon:"close",className:"icon"})):null},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,a=e.resetValue;t("undefined"==typeof a?"":a)},t.prototype.handleOptionClick=function(e,t){var a=this.props,n=a.multiple,l=a.onChange,s=a.joinValues,i=a.extractValue,r=a.valueField,o=a.autoFill,u=a.onBulkChange;if(!n){t.stopPropagation();var d=!n&&o&&!c.isEmpty(o)&&p.dataMapping(o,e);d&&u(d),l(s?e[r||"value"]:i?e[r||"value"]:e),!n&&this.close()}},t.prototype.handleCheck=function(e,t){var n=this.props,i=n.onChange,r=n.selectedOptions,o=n.joinValues,u=n.valueField,d=n.delimiter,p=n.extractValue,m=n.withChildren,h=n.cascade,f=n.multiple,_=this.state.stack;if(!Array.isArray(e)&&e.children&&e.children.length&&"number"==typeof t){var v=r.some(function(t){return t.value==e.value}),y=h?!1:e.uncheckable||f&&!v,g=e.children.map(function(e){return a.__assign(a.__assign({},e),{uncheckable:y})});_[t]?_.splice(t+1,1,g):_.push(g)}var b,C=r.concat();if(Array.isArray(e))e=m?c.flattenTree(e):e,b=C.length===e.length?[]:e;else if(Array.isArray(e.children))if(h)b=l.default(C,[e],u||"value");else if(m){e=c.flattenTree([e]);var E=e.every(function(e){return!!~C.findIndex(function(t){return t.value===e.value})})?l.default:s.default;b=E(C,e,u||"value")}else b=C.filter(function(t){return!~c.flattenTree([e],function(e){return e.value}).indexOf(t.value)}),!~C.map(function(e){return e.value}).indexOf(e.value)&&b.push(e);else b=l.default(C,[e],u||"value");o?b=b.map(function(e){return e[u||"value"]}).join(d||","):p&&(b=b.map(function(e){return e[u||"value"]})),i(b)},t.prototype.allChecked=function(e){var t=this,a=this.props,n=a.selectedOptions,l=a.withChildren;return e.every(function(e){return l&&e.children?t.allChecked(e.children):n.some(function(t){return t.value==e.value})})},t.prototype.partialChecked=function(e){var t=this,a=this.props,n=a.selectedOptions,l=a.withChildren;return e.some(function(e){return l&&e.children?t.partialChecked(e.children):n.some(function(t){return t.value==e.value})})},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.onFocus=function(e){this.props.disabled||this.state.isOpened||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(e)},t.prototype.onBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},t.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},t.prototype.getTarget=function(){return this.target||(this.target=f.findDOMNode(this)),this.target},t.prototype.inputRef=function(e){this.input=e},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value,a=this.props,n=a.options,l=a.labelField,s=a.valueField,i=c.string2regExp(t),r=t&&this.state.isOpened?c.filterTree(n,function(e){return i.test(e[l||"label"])||i.test(e[s||"value"])||!(!e.children||!e.children.length)},1,!0):n.concat();this.setState({inputValue:t,stack:[r]})},t.prototype.renderOptions=function(){var e=this,t=this.props,a=t.multiple,l=t.selectedOptions,s=t.classnames,i=t.value,o=t.options,u=t.disabled,c=t.searchable,p=t.searchPromptText,m=t.translate,f=this.state.stack,_=c?n.default.createElement("div",{className:s("Select-input",{"is-focused":this.state.isFocused})},n.default.createElement(d.Icon,{icon:"search",className:"icon"}),n.default.createElement(h.default,{value:this.state.inputValue||"",onFocus:this.onFocus,onBlur:this.onBlur,disabled:u,placeholder:m(p),onChange:this.handleInputChange,ref:this.inputRef})):null,v=this.partialChecked(o),y=this.allChecked(o);return n.default.createElement(n.default.Fragment,null,f.map(function(t,o){return n.default.createElement("div",{key:o,className:s("NestedSelect-menu")},0===o?_:null,a&&0===o?n.default.createElement("div",{className:s("NestedSelect-option","checkall"),onMouseEnter:e.onMouseEnterAll},n.default.createElement(r.default,{onChange:e.handleCheck.bind(e,t),checked:v,partial:v&&!y},"全选")):null,t.map(function(t,c){var p=l.some(function(e){return e.value==t.value}),m=!!t.uncheckable||p,h=!!t.uncheckable||!!u;return n.default.createElement("div",{key:c,className:s("NestedSelect-option",{"is-active":i&&i===t.value}),onClick:e.handleOptionClick.bind(e,t),onMouseEnter:e.onMouseEnter.bind(e,t,o)},a?n.default.createElement(r.default,{className:s("NestedSelect-optionLabel"),onChange:e.handleCheck.bind(e,t,o),trueValue:t.value,checked:m,disabled:h},t.label):n.default.createElement("div",{className:s("NestedSelect-optionLabel")},n.default.createElement("span",null,t.label)),t.children&&t.children.length?n.default.createElement("div",{className:s("NestedSelect-optionArrowRight")},n.default.createElement(d.Icon,{icon:"right-arrow",className:"icon"})):null)}))}))},t.prototype.onMouseEnterAll=function(){this.setState({stack:[this.props.options]})},t.prototype.onMouseEnter=function(e,t){var n=this.state.stack,l=this.props,s=l.cascade,i=l.multiple,r=l.selectedOptions;if(t+=1,e.children&&e.children.length){var o=r.some(function(t){return t.value==e.value}),u=s?!1:e.uncheckable||i&&o,d=e.children.map(function(e){return a.__assign(a.__assign({},e),{uncheckable:u})});n[t]?n.splice(t,1,d):n.push(d)}else n[t]&&n.splice(t,1);this.setState({stack:n.slice(0,t+1)})},t.prototype.renderOuter=function(){var e=this.props,t=e.popOverContainer,a=e.classnames,l=n.default.createElement(u.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:this.close},n.default.createElement("div",{className:a("NestedSelect-menuOuter")},this.renderOptions()));return n.default.createElement(i.default,{container:t||this.getTarget,target:this.getTarget,show:!0},n.default.createElement(o.default,{className:a("NestedSelect-popover")},l))},t.prototype.render=function(){var e,t=this.props,a=t.className,l=t.disabled,s=t.classnames,i=t.multiple;return n.default.createElement("div",{className:s("NestedSelectControl",a)},n.default.createElement("div",{className:s("NestedSelect",(e={},e["NestedSelect--multi"]=i,e["is-opened"]=this.state.isOpened,e["is-disabled"]=l,e)),onClick:this.open,ref:this.domRef},n.default.createElement("div",{className:s("NestedSelect-valueWrap"),onClick:this.open},this.renderValue()),this.renderClear(),n.default.createElement("span",{className:s("Select-arrow")},n.default.createElement(d.Icon,{icon:"caret",className:"icon"}))),this.state.isOpened?this.renderOuter():null)};var m,_;return t.defaultProps={cascade:!1,withChildren:!1,searchPromptText:"输入内容进行检索"},a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"domRef",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"open",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"focus",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"blur",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getTarget",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(m="undefined"!=typeof HTMLInputElement&&HTMLInputElement)?m:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"inputRef",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(_="undefined"!=typeof n.default&&n.default.ChangeEvent)?_:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"onMouseEnterAll",null),t}(n.default.Component);t.default=_;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([m.OptionsControl({type:"nested-select"})],t)}(_);t.NestedSelectControlRenderer=v}); -;/*!src/renderers/Form/Transfer.tsx*/ -amis.define("399400a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("b86428a"),r=n.__importDefault(e("node_modules/react/index")),o=n.__importDefault(e("0573406")),i=e("b86428a"),s=e("9a80175"),l=n.__importDefault(e("acad559")),d=n.__importDefault(e("node_modules/lodash/find")),u=e("d57879c"),p=e("f2e345e"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.joinValues,r=t.delimiter,o=t.valueField,i=t.extractValue,l=t.options,d=t.setOptions,p=e,c=l.concat();Array.isArray(e)&&((a||i)&&(p=e.map(function(e){var t=s.findTree(l,u.optionValueCompare(e[o||"value"],o||"value"));return t||c.push(e),e[o||"value"]})),a&&(p=p.join(r||","))),c.length>l.length&&d(c,!0),n(p)},t.prototype.option2value=function(e){return e},t.prototype.handleSearch=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var a,r,o,i,l,p,c,f,_,h,m;return n.__generator(this,function(n){switch(n.label){case 0:if(a=this.props,r=a.searchApi,o=a.options,i=a.labelField,l=a.valueField,p=a.env,c=a.data,!r)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,p.fetcher(r,s.createObject(c,{term:e}),{cancelExecutor:t})];case 2:if(f=n.sent(),!f.ok)throw new Error(f.msg||"搜索请求异常");if(_=f.data.options||f.data.items||f.data,!Array.isArray(_))throw new Error("期望接口返回数组信息");return[2,_.map(function(e){var t=null;return Array.isArray(o)&&(t=d.default(o,u.optionValueCompare(e[l||"value"],l))),t||e})];case 3:return h=n.sent(),p.isCancel(h)||p.notify("error",h.message),[2,[]];case 4:return[3,6];case 5:return e?(m=s.string2regExp(e),[2,s.filterTree(o,function(e){return!!(Array.isArray(e.children)&&e.children.length||m.test(e[i||"label"])||m.test(e[l||"value"]))},0,!0)]):[2,o];case 6:return[2]}})})},t.prototype.renderCell=function(e,t,a,r){var o=this.props,i=o.render,l=o.data;return i("cell/"+a+"/"+r,n.__assign({type:"text"},e),{value:p.resolveVariable(e.name,t),data:s.createObject(l,t)})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classnames,a=e.options,i=e.selectedOptions,s=e.showArrow,d=e.sortable,u=e.selectMode,p=e.columns,c=e.loading,f=e.searchable,_=e.searchResultMode,h=e.deferLoad,m=e.leftOptions,y=e.leftMode,v=e.rightMode;return r.default.createElement("div",{className:n("TransferControl",t)},r.default.createElement(o.default,{value:i,options:a,onChange:this.handleChange,option2value:this.option2value,sortable:d,showArrow:s,selectMode:u,searchResultMode:_,columns:p,onSearch:f?this.handleSearch:void 0,onDeferLoad:h,leftOptions:m,leftMode:y,rightMode:v,cellRender:this.renderCell}),r.default.createElement(l.default,{overlay:!0,key:"info",show:c}))};var a,c,f,_;return n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof Array&&Array)?a:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof i.Option&&i.Option)?c:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"option2value",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,"function"==typeof(f="undefined"!=typeof Function&&Function)?f:Object]),n.__metadata("design:returntype",Promise)],t.prototype,"handleSearch",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,"function"==typeof(_="undefined"!=typeof i.Option&&i.Option)?_:Object,Number,Number]),n.__metadata("design:returntype",void 0)],t.prototype,"renderCell",null),t}(r.default.Component);t.BaseTransferRenderer=c;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(c);t.TransferRender=f,t.default=a.OptionsControl({type:"transfer"})(f)}); -;/*!src/renderers/Service.tsx*/ -amis.define("3a449e1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),i=e("0f9ebdf"),s=e("57d76d7"),r=e("6a2dbb7"),o=e("919cbd9"),c=e("1caead1"),d=e("1953fc1"),l=e("9a80175"),p=function(e){function t(t){var a=e.call(this,t)||this;return a.handleQuery=a.handleQuery.bind(a),a.handleAction=a.handleAction.bind(a),a.reload=a.reload.bind(a),a.silentReload=a.silentReload.bind(a),a.initInterval=a.initInterval.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.mounted=!0,this.initFetch()},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.store,n=t.messages,i=n.fetchSuccess,s=n.fetchFailed;c.isApiOutdated(e.api,t.api,e.data,t.data)&&a.fetchData(t.api,a.data,{successMessage:i,errorMessage:s}).then(this.initInterval),c.isApiOutdated(e.schemaApi,t.schemaApi,e.data,t.data)&&a.fetchSchema(t.schemaApi,a.data,{successMessage:i,errorMessage:s}).then(this.initInterval)},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.initFetch=function(){var e=this.props,t=e.schemaApi,a=e.initFetchSchema,n=e.api,i=e.initFetch,s=e.initFetchOn,r=e.store,o=e.messages,d=o.fetchSuccess,l=o.fetchFailed;c.isEffectiveApi(t,r.data,a)&&r.fetchSchema(t,r.data,{successMessage:d,errorMessage:l}),c.isEffectiveApi(n,r.data,i,s)&&r.fetchInitData(n,r.data,{successMessage:d,errorMessage:l}).then(this.initInterval)},t.prototype.initInterval=function(e){var t=this.props,a=t.interval,n=t.silentPolling,i=t.stopAutoRefreshWhen,s=t.data;return a&&this.mounted&&(!i||!r.evalExpression(i,s))&&(this.timer=setTimeout(n?this.silentReload:this.reload,Math.max(a,3e3))),e},t.prototype.reload=function(e,t,a,n){if(t)return this.receive(t);var i=this.props,s=i.schemaApi,r=(i.initFetchSchema,i.api),o=(i.initFetch,i.initFetchOn,i.store),d=i.messages,l=d.fetchSuccess,p=d.fetchFailed;clearTimeout(this.timer),c.isEffectiveApi(s,o.data)&&o.fetchSchema(s,o.data,{successMessage:l,errorMessage:p}).then(this.initInterval),c.isEffectiveApi(r,o.data)&&o.fetchData(r,o.data,{silent:n,successMessage:l,errorMessage:p}).then(this.initInterval)},t.prototype.silentReload=function(e,t){this.reload(e,t,void 0,!0)},t.prototype.receive=function(e){var t=this.props.store;t.updateData(e),this.reload()},t.prototype.handleQuery=function(e){this.receive(e)},t.prototype.reloadTarget=function(){},t.prototype.openFeedback=function(e,t){var a=this;return new Promise(function(n){var i=a.props.store,s=i.parentStore;s&&s.openDialog&&(i.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),i.openDialog(t,void 0,function(e){n(e)}))})},t.prototype.handleAction=function(e,t,n,i,s){var o=this;void 0===i&&(i=!1);var c=this.props,d=c.onAction,p=c.store,u=c.env,h=c.api,f=c.translate;h&&"ajax"===t.actionType?(p.setCurrentAction(t),p.saveRemote(t.api,n,{successMessage:f(t.messages&&t.messages.success),errorMessage:f(t.messages&&t.messages.failed)}).then(function(){return a.__awaiter(o,void 0,void 0,function(){var e;return a.__generator(this,function(a){switch(a.label){case 0:return t.feedback&&l.isVisible(t.feedback,p.data)?[4,this.openFeedback(t.feedback,p.data)]:[3,2];case 1:a.sent(),a.label=2;case 2:return e=t.redirect&&r.filter(t.redirect,p.data),e&&u.jumpTo(e,t),t.reload&&this.reloadTarget(t.reload,p.data),[2]}})})}).catch(function(){})):d(e,t,n,i,s||this.context)},t.prototype.renderBody=function(){var e=this.props,t=e.render,a=e.store,i=e.body,s=e.classnames;return n.default.createElement("div",{className:s("Service-body")},t("body",a.schema||i,{key:a.schemaKey||"body",onQuery:this.handleQuery,onAction:this.handleAction}))},t.prototype.render=function(){var e=this.props,t=e.className,a=e.store,i=(e.render,e.classPrefix),s=e.classnames;return n.default.createElement("div",{className:s(i+"Service",t)},a.error?n.default.createElement("div",{className:s("Alert Alert--danger")},n.default.createElement("button",{className:s("Alert-close"),onClick:function(){return a.updateMessage("")},type:"button"},n.default.createElement("span",null,"×")),a.msg):null,this.renderBody(),n.default.createElement(d.Spinner,{size:"lg",overlay:!0,key:"info",show:a.loading}))},t.defaultProps={messages:{fetchFailed:"初始化失败"}},t.propsList=[],a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"initFetch",null),t}(n.default.Component);t.default=p;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.prototype.reloadTarget=function(e,t){var a=this.context;a.reload(e,t)},t.contextType=o.ScopedContext,t=a.__decorate([i.Renderer({test:/(^|\/)service$/,storeType:s.ServiceStore.name,name:"service"})],t)}(p);t.ServiceRenderer=u}); -;/*!src/renderers/Form/Service.tsx*/ -amis.define("40fc403",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t("node_modules/tslib/tslib"),n=o.__importDefault(t("node_modules/react/index")),r=t("0f9ebdf"),i=o.__importDefault(t("3a449e1")),s=t("919cbd9"),p=t("57d76d7"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this)},e.prototype.componentDidMount=function(){var e=this.props,o=e.formInited,n=e.addHook;this.mounted=!0,o!==!1?t.prototype.componentDidMount.call(this):n&&n(this.initFetch,"init")},e.prototype.componentDidUpdate=function(e){var o=this.props.formInited;o!==!1&&t.prototype.componentDidUpdate.call(this,e)},e.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this);var o=this.props.removeHook;o&&o(this.initFetch,"init"),t.prototype.componentWillUnmount.call(this)},e.prototype.renderBody=function(){var e=this.props,o=e.render,r=e.store,i=e.body,s=e.controls,p=e.tabs,a=e.feildSet,d=e.renderFormItems,c=e.formMode,l=(e.$path,e.classnames),m=r.schema||i||{controls:s,tabs:p,feildSet:a};return m&&!m.type&&(m.controls||m.tabs||m.feildSet)&&d?n.default.createElement("div",{key:r.schemaKey||"forms",className:l("Form--"+(c||"normal"))},d(m,"controls",{store:r,data:r.data,render:o})):t.prototype.renderBody.call(this)},e.propsList=["onChange"],e.contextType=s.ScopedContext,e=o.__decorate([r.Renderer({test:/(^|\/)form\/(.*)\/service$/,weight:-100,storeType:p.ServiceStore.name,storeExtendsData:!1,name:"service-control"})],e)}(i.default);e.ServiceRenderer=a}); -;/*!src/renderers/Form/Table.tsx*/ -amis.define("f6d94c0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=e("567b83c"),r=n.__importDefault(e("node_modules/classnames/index")),o=n.__importDefault(e("a67acca")),l=e("9a80175"),s=e("1caead1"),d=e("6a2dbb7"),c=n.__importDefault(e("node_modules/lodash/omit")),u=e("f2e345e"),p=n.__importDefault(e("node_modules/lodash/findIndex")),f=n.__importDefault(e("node_modules/lodash/memoize")),h=e("398dbab"),m=e("b7bbd16"),v=function(e){function t(t){var n=e.call(this,t)||this;return n.entityId=1,n.subForms={},n.editting={},n.buildItems=f.default(function(e,t){return e.map(function(e,a){return a===t?n.state.editting:e})},function(){for(var e=[],t=0;ti)return r("组合表单成员数量超出,超出设定的最大{{maxLength}}个,请删除多余的成员。",{maxLength:i});var o=[];return Object.keys(this.subForms).forEach(function(t){return e.subForms[t]&&o.push(e.subForms[t])}),o.length?Promise.all(o.map(function(e){return e.validate()})).then(function(e){return~e.indexOf(!1)?r("内部表单验证失败"):void 0}):void 0},t.prototype.doAction=function(e,t){for(var a=[],i=2;i1?a.default.createElement("div",{className:u("IconPickerControl-tabs")},h.map(function(t,n){return a.default.createElement("div",{className:u("IconPickerControl-tab",{active:e.state.vendorIndex===n}),onClick:function(){return e.changeVendor(n)},key:n},t)})):null,v.length?a.default.createElement("div",{className:u("IconPickerControl-sugs",h.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},v.map(function(e,t){return a.default.createElement("div",n.__assign({},f({item:e.value,className:u("IconPickerControl-sugItem",{"is-active":p===e.value})}),{key:t}),a.default.createElement("i",{className:u(""+e.value),title:""+e.value}))})):a.default.createElement("div",{className:u(h.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},_(c))):null)})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,i=e.inputOnly,s=this.renderFontIcons();return i?s:a.default.createElement("div",{className:o.default(t,n+"IconPickerControl",{"is-focused":this.state.isFocused})},s)};var l,p,c;return t.defaultProps={resetValue:"",placeholder:"",noDataTip:"未找到匹配的图标"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number]),n.__metadata("design:returntype",void 0)],t.prototype,"changeVendor",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"formatOptions",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"getVendors",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"inputRef",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"focus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof a.default&&a.default.ChangeEvent)?l:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(p="undefined"!=typeof a.default&&a.default.KeyboardEvent)?p:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleKeyDown",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof r.StateChangeOptions&&r.StateChangeOptions)?c:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleStateChange",null),t}(a.default.PureComponent);t.default=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({type:"icon-picker"})],t)}(p);t.IconPickerControlRenderer=c}); -;/*!src/renderers/Form/Formula.tsx*/ -amis.define("33d5c8a",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/tslib/tslib"),o=n.__importDefault(t("node_modules/react/index")),a=t("567b83c"),i=t("6a2dbb7"),r=t("9a80175"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.formula,n=t.data,o=t.setPrinstineValue,a=t.initSet,r=t.condition;if(e&&a!==!1&&(!r||~r.indexOf("$")||~r.indexOf("<%")||i.evalJS(r,n))){var l=i.evalJS(e,n);null!==l&&o(l)}},e.prototype.componentWillReceiveProps=function(t){var e=this.props,n=e.formula,o=e.data,a=e.onChange,l=e.autoSet,u=e.value,d=e.condition;if(l!==!1&&n&&t.formula&&r.isObjectShallowModified(o,t.data,!1)&&u===t.value){var f=i.evalJS(t.formula,t.data);if(d&&t.condition)~d.indexOf("$")||~d.indexOf("<%")?i.filter(d,o)!==i.filter(t.condition,t.data)&&a(f):i.evalJS(t.condition,t.data)&&a(f);else{var s=i.evalJS(n,o);JSON.stringify(s)!==JSON.stringify(f)&&a(f||"")}}},e.prototype.doAction=function(){var t=this.props,e=t.formula,n=t.data,o=t.onChange,a=(t.autoSet,t.value,i.evalJS(e,n));o(a)},e.prototype.render=function(){return null},e}(o.default.Component);e.default=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e=n.__decorate([a.FormItem({type:"formula",wrap:!1,strictMode:!1,sizeMutable:!1})],e)}(l);e.FormulaControlRenderer=u}); -;/*!src/renderers/Form/FieldSet.tsx*/ -amis.define("760e4be",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),o=t.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),a=t.__importDefault(e("d221521")),d=function(e){function r(r){var t=e.call(this,r)||this;return t.renderBody=t.renderBody.bind(t),t}return t.__extends(r,e),r.prototype.renderBody=function(){var e=this.props,r=e.renderFormItems,t=e.controls,n=e.body,a=e.collapsable,d=e.horizontal,l=e.render,s=e.mode,i=e.formMode,m=e.$path,u=e.classnames,c=e.store,f=e.formClassName;if(!t)return l("body",n);var p={store:c,data:c.data,render:l};return s&&(p.mode=s),"undefined"!=typeof a&&(p.collapsable=a),d&&(p.horizontal=d),o.default.createElement("div",{className:u("Form--"+(p.mode||i||"normal"),f)},r({controls:t},m.replace(/^.*form\//,""),p))},r.prototype.render=function(){var e=this.props,r=(e.controls,e.className),n=(e.mode,t.__rest(e,["controls","className","mode"]));return o.default.createElement(a.default,t.__assign({},n,{className:r,children:this.renderBody,wrapperComponent:"fieldset",headingComponent:"legend"}))},r.defaultProps={headingClassName:"",collapsable:!1},r}(o.default.Component);r.default=d;var l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([n.Renderer({test:/(^|\/)form(?:.+)?\/control\/fieldSet$/i,weight:-100,name:"fieldset"})],r)}(d);r.FieldSetRenderer=l}); -;/*!src/renderers/Tabs.tsx*/ -amis.define("605b41a",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),n=a.__importDefault(t("node_modules/react/index")),s=t("0f9ebdf"),r=a.__importDefault(t("node_modules/lodash/find")),o=t("9a80175"),i=a.__importDefault(t("node_modules/lodash/findIndex")),u=t("8ac7656"),d=function(t){function e(e){var a=t.call(this,e)||this,n=e.location||window.location,s=e.tabs,o=0;if("undefined"!=typeof e.activeKey)o=e.activeKey;else if(n&&Array.isArray(s)){var i=n.hash.substring(1),u=r.default(s,function(t){return t.hash===i});o=u&&u.hash?u.hash:s[0]&&s[0].hash||0}return a.state={prevKey:void 0,activeKey:o},a}return a.__extends(e,t),e.prototype.componentDidMount=function(){this.autoJumpToNeighbour()},e.prototype.componentWillReceiveProps=function(t){var e=this.props;if(t.location&&t.location.hash!==e.location.hash){var a=t.location.hash.substring(1);if(!a)return;var n=r.default(t.tabs,function(t){return t.hash===a});n&&n.hash&&n.hash!==this.state.activeKey&&this.setState({activeKey:n.hash,prevKey:this.state.activeKey})}else if(e.tabs!==t.tabs){var s=this.state.activeKey,o=t.location,n=null;if(o&&Array.isArray(t.tabs)){var i=o.hash.substring(1);n=r.default(t.tabs,function(t){return t.hash===i})}n?s=n.hash:t.tabs&&t.tabs.some(function(t,e){return t.hash?t.hash===s:e===s})||(s=t.tabs&&t.tabs[0]&&t.tabs[0].hash||0),this.setState({prevKey:void 0,activeKey:s})}},e.prototype.componentDidUpdate=function(){this.autoJumpToNeighbour()},e.prototype.autoJumpToNeighbour=function(){var t=this,e=this.props,a=e.tabs,n=e.data;if(Array.isArray(a)){var s=i.default(a,function(e,a){return e.hash?e.hash===t.state.activeKey:a===t.state.activeKey});if(a[s]&&!o.isVisible(a[s],this.props.data))for(var r=a.length,u=s-1+r,d=r-1;d--;){var l=u--%r;if(o.isVisible(a[l],n)){var h=a[l].hash||l;this.setState({activeKey:h});break}}}},e.prototype.handleSelect=function(t){var e=this.props.env;"string"==typeof t&&e?e.updateLocation("#"+t):"string"==typeof this.state.activeKey&&e&&e.updateLocation("#"),this.setState({activeKey:t,prevKey:this.state.activeKey})},e.prototype.switchTo=function(t){var e=this.props.tabs;Array.isArray(e)&&e[t]&&this.setState({activeKey:e[t].hash||t})},e.prototype.currentIndex=function(){var t=this,e=this.props.tabs;return Array.isArray(e)?i.default(e,function(e,a){return e.hash?e.hash===t.state.activeKey:a===t.state.activeKey}):-1},e.prototype.renderToolbar=function(){var t=this.props,e=t.toolbar,a=t.render,s=t.classnames,r=t.toolbarClassName;return e?n.default.createElement("div",{className:s("Tabs-toolbar",r)},a("toolbar",e)):null},e.prototype.renderTabs=function(){var t=this,e=this.props,s=e.classnames,r=e.classPrefix,i=e.contentClassName,d=e.tabs,l=e.tabRender,h=e.className,p=e.render,c=e.data,y=e.mode,b=e.tabsMode,m=e.mountOnEnter,f=e.unmountOnExit;if(!Array.isArray(d))return null;var v=b||y;return n.default.createElement(u.Tabs,{classPrefix:r,classnames:s,mode:v,className:h,contentClassName:i,onSelect:this.handleSelect,activeKey:this.state.activeKey,toolbar:this.renderToolbar()},d.map(function(e,s){return o.isVisible(e,c)?n.default.createElement(u.Tab,a.__assign({},e,{disabled:o.isDisabled(e,c),key:s,eventKey:e.hash||s,mountOnEnter:m,unmountOnExit:"boolean"==typeof e.reload?e.reload:"boolean"==typeof e.unmountOnExit?e.unmountOnExit:f}),t.renderTab?t.renderTab(e,t.props,s):l?l(e,t.props,s):p("tab/"+s,e.tab||e.body||"")):null}))},e.prototype.render=function(){return this.renderTabs()},e.defaultProps={className:"",mode:"",mountOnEnter:!0,unmountOnExit:!1},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"autoJumpToNeighbour",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"handleSelect",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],e.prototype,"switchTo",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",Number)],e.prototype,"currentIndex",null),e}(n.default.Component);e.default=d;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e=a.__decorate([s.Renderer({test:/(^|\/)tabs$/,name:"tabs"})],e)}(d);e.TabsRenderer=l}); -;/*!src/renderers/Form/Tabs.tsx*/ -amis.define("3abf50d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),a=r.__importDefault(e("605b41a")),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderTab=function(e,r,n){var a=t.props,s=a.renderFormItems,d=a.formMode,l=a.formHorizontal,i=a.$path,m=a.render,u=a.classnames;return s&&!e.type&&(e.controls||e.fieldSet||e.tabs)?o.default.createElement("div",{className:u("Form--"+(e.mode||d||"normal"))},s(e,i.replace(/^.*form\//,"")+"/"+n,{mode:e.mode||d,horizontal:e.horizontal||l})):m("tab/"+n,e.body||e.tab||e)},t}return r.__extends(t,e),t.defaultProps={mountOnEnter:!1},t.propsList=["onChange","tabs"],t=r.__decorate([n.Renderer({test:/(^|\/)form(?:.+)?\/control\/tabs$/i,weight:-100,name:"tabs-control"})],t)}(a.default);t.TabsRenderer=s}); -;/*!src/renderers/Form/TabsTransfer.tsx*/ -amis.define("13e7e33",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("b86428a"),o=a.__importDefault(e("node_modules/react/index")),n=a.__importDefault(e("acad559")),s=e("399400a"),l=a.__importDefault(e("5c35784")),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.classnames,r=e.options,s=e.selectedOptions,d=e.sortable,i=e.loading,u=e.searchable,c=e.searchResultMode,f=e.showArrow,h=e.deferLoad;return o.default.createElement("div",{className:a("TabsTransferControl",t)},o.default.createElement(l.default,{value:s,options:r,onChange:this.handleChange,option2value:this.option2value,sortable:d,searchResultMode:c,onSearch:u?this.handleSearch:void 0,showArrow:f,onDeferLoad:h}),o.default.createElement(n.default,{overlay:!0,key:"info",show:i}))},t=a.__decorate([r.OptionsControl({type:"tabs-transfer"})],t)}(s.BaseTransferRenderer);t.TabsTransferRenderer=d}); -;/*!src/renderers/Form/Group.tsx*/ -amis.define("7f271f4",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),t=e("0f9ebdf"),a=e("9a80175"),i=e("567b83c"),l=o.__importDefault(e("01e2bb4")),s=function(e){function r(r){var o=e.call(this,r)||this;return o.renderInput=o.renderInput.bind(o),o}return o.__extends(r,e),r.prototype.renderControl=function(e,r,n){var t=this.props,a=t.render,i=t.disabled,s=t.data;if(!e)return null;var d=e&&"control"===e.type?e:{type:"control",control:e};if(d.control){var u=d.control;u=d.control=o.__assign(o.__assign({},u),l.default(u,s)),u.hiddenOn&&(d.hiddenOn=u.hiddenOn),u.visibleOn&&(d.visibleOn=u.visibleOn)}return a(""+r,d,o.__assign(o.__assign({},n),{disabled:i}))},r.prototype.renderVertical=function(e){var r=this;void 0===e&&(e=this.props);var o=e.controls,t=e.className,i=e.classnames,l=e.mode,s=e.formMode,d=e.data;return s=l||s,n.default.createElement("div",{className:i("Form-group Form-group--ver Form-group--"+s,t)},o.map(function(e,o){if(!a.isVisible(e,d))return null;var n=e&&e.mode||s;return r.renderControl(e,o,{key:o,formMode:n})}))},r.prototype.renderHorizontal=function(e){var r=this;void 0===e&&(e=this.props);var o=e.controls,t=e.className,i=e.classPrefix,l=e.classnames,s=e.mode,d=e.horizontal,u=e.formMode,m=e.formHorizontal,p=e.data,c=e.gap;u=s||u;var f=d||a.makeHorizontalDeeper(m,o.filter(function(e){return"inline"!==e.mode&&a.isVisible(e,p)}).length);return n.default.createElement("div",{className:l("Form-group Form-group--hor Form-group--"+u,c?"Form-group--"+c:"",t)},o.map(function(e,o){if(!a.isVisible(e,p))return null;var t=e&&e.mode||u;if("inline"===t||e&&"formula"===e.type)return r.renderControl(e,o,{formMode:"inline",key:o,className:l(e.className,e.columnClassName)});var s=e.columnRatio||a.getWidthRate(e&&e.columnClassName,!0);return n.default.createElement("div",{key:o,className:l(i+"Form-groupColumn",s?i+"Form-groupColumn--"+s:"",e&&e.columnClassName)},r.renderControl(e,o,{formHorizontal:f,formMode:t}))}))},r.prototype.renderInput=function(e){void 0===e&&(e=this.props);var r=e.direction;return"vertical"===r?this.renderVertical(e):this.renderHorizontal(e)},r.prototype.render=function(){var e=this.props,r=e.label,t=o.__rest(e,["label"]);return r?n.default.createElement(i.FormItemWrap,o.__assign({},t,{sizeMutable:!1,label:r,renderControl:this.renderInput})):this.renderInput()},r=o.__decorate([t.Renderer({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?group$/,name:"group-control"}),o.__metadata("design:paramtypes",[Object])],r)}(n.default.Component);r.ControlGroupRenderer=s}); -;/*!src/renderers/Form/InputGroup.tsx*/ -amis.define("fe6117b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=e("9a80175"),i=n.__importDefault(e("01e2bb4")),a=e("567b83c"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.state={isFocused:!1},n}return n.__extends(t,e),t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.renderControl=function(e,t,r){var o=this.props,i=o.render,a=o.onChange;if(!e)return null;var s=e&&"control"===e.type?e:{type:"control",control:e};if(s.control){var u=s.control;u.hiddenOn&&(s.hiddenOn=u.hiddenOn),u.visibleOn&&(s.visibleOn=u.visibleOn)}return i(""+t,s,n.__assign({onChange:a},r))},t.prototype.validate=function(){var e=this.props,t=e.formStore,n=e.controls,r=[];return n.forEach(function(e){var n=e.name,o=n?t.getItemByName(n):null;o&&o.errors.length&&r.push.apply(r,o.errors)}),r.length?r:""},t.prototype.render=function(){var e=this,t=this.props,n=t.controls,a=t.className,s=t.mode,u=t.horizontal,l=t.formMode,d=t.formHorizontal,c=t.data,p=t.classnames;l=s||l,n=n.filter(function(e){if(e&&(e.hidden||e.visible===!1))return!1;var t=i.default(e||{},c);return t.hidden||t.visible===!1?!1:!0});var f=u||o.makeHorizontalDeeper(d,n.length);return r.default.createElement("div",{className:p("InputGroup",a,{"is-focused":this.state.isFocused})},n.map(function(t,n){var o=~["icon","plain","tpl","button","submit","reset"].indexOf(t&&t.type),i=e.renderControl(t,n,{formHorizontal:f,formMode:"normal",inputOnly:!0,key:n,onFocus:e.handleFocus,onBlur:e.handleBlur});return o?r.default.createElement("span",{key:n,className:p(t.addOnclassName,~["button","submit","reset"].indexOf(t&&t.type)?"InputGroup-btn":"InputGroup-addOn")},i):i}))},t}(r.default.Component);t.InputGroup=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([a.FormItem({type:"input-group",strictMode:!1})],t)}(s);t.default=u}); -;/*!src/renderers/HBox.tsx*/ -amis.define("aab7b91",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),i=n.__importDefault(e("node_modules/classnames/index")),l=e("9a80175"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderChild=function(e,t){var n=this.props.render;return n(e,t)},t.prototype.renderColumn=function(e,t,s){var o=this.props,a=o.itemRender,u=o.data,d=o.classPrefix;if(!l.isVisible(e,u))return null;var c=n.__assign({width:e.width,height:e.height},e.style);return r.default.createElement("div",{key:t,className:i.default(d+"Hbox-col",e.columnClassName),style:c},a?a(e,t,s,this.props):this.renderChild("column/"+t,e))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,s=t.columns,l=t.classPrefix;return r.default.createElement("div",{className:i.default(l+"Hbox",n)},s.map(function(t,n){return e.renderColumn(t,n,s.length)}))},t.propsList=["columns"],t.defaultProps={},t}(r.default.Component);t.default=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)hbox$/,name:"hbox"})],t)}(o);t.HBoxRenderer=a}); -;/*!src/renderers/VBox.tsx*/ -amis.define("ae1a7f3",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),a=t.__importDefault(e("node_modules/classnames/index")),l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.renderChild=function(e,r){var t=this.props.render;return t(e,r)},r.prototype.renderCell=function(e,r){var t=this.props.classPrefix;return n.default.createElement("div",{className:a.default(t+"Vbox-cell",e.cellClassName)},this.renderChild("row/"+r,e))},r.prototype.render=function(){var e=this,r=this.props,t=r.className,s=r.rows,l=r.classPrefix;return n.default.createElement("div",{className:a.default(l+"Vbox",t)},Array.isArray(s)?s.map(function(r,t){return n.default.createElement("div",{className:a.default("row-row",r.rowClassName),key:t},e.renderCell(r,t))}):null)},r.propsList=["rows"],r.defaultProps={},r}(n.default.Component);r.default=l;var o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([s.Renderer({test:/(^|\/)vbox$/,name:"vbox"})],r)}(l);r.VBoxRenderer=o}); -;/*!src/renderers/Images.tsx*/ -amis.define("011f81c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),i=e("0f9ebdf"),n=e("6a2dbb7"),s=e("f2e345e"),l=a.__importStar(e("fcb3580")),o=e("9a80175"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.list=[],t}a.__extends(t,e),t.prototype.handleEnlarge=function(e){var t=this.props,r=t.onImageEnlarge,i=t.src,s=t.originalSrc;r&&r(a.__assign(a.__assign({},e),{originalSrc:e.originalSrc||e.src,list:this.list.map(function(e){return{src:i?n.filter(i,e,"| raw"):e&&e.image||e,originalSrc:s?n.filter(s,e,"| raw"):e&&e.src||e,title:e&&(e.enlargeTitle||e.title),caption:e&&(e.enlargeCaption||e.description||e.caption)}})}),this.props)},t.prototype.render=function(){var e,t=this,a=this.props,i=a.className,o=a.defaultImage,d=a.thumbMode,c=a.thumbRatio,m=a.data,u=a.name,p=a.value,f=a.placeholder,g=a.classnames,h=a.source,_=a.delimiter,b=a.enlargeAble,y=a.src,v=a.originalSrc;return"string"==typeof h&&s.isPureVariable(h)?e=s.resolveVariable(h,m)||void 0:Array.isArray(p)?e=p:u&&m[u]&&(e=m[u]),"string"==typeof e?e=e.split(_):e&&!Array.isArray(e)&&(e=[e]),this.list=e,r.default.createElement("div",{className:g("ImagesField",i)},Array.isArray(e)?r.default.createElement("div",{className:g("Images")},e.map(function(e,a){return r.default.createElement(l.default,{index:a,className:g("Images-item"),key:a,src:(y?n.filter(y,e,"| raw"):e&&e.image)||e,originalSrc:(v?n.filter(v,e,"| raw"):e&&e.src)||e,title:e&&e.title,caption:e&&(e.description||e.caption),thumbMode:d,thumbRatio:c,enlargeAble:b,onEnlarge:t.handleEnlarge})})):o?r.default.createElement(l.default,{className:g("Images-item"),src:o,thumbMode:d,thumbRatio:c}):f)};var i;return t.defaultProps={className:"",delimiter:",",defaultImage:"https://fex.bdstatic.com/n/static/amis/renderers/crud/field/placeholder_cfad9b1.png",placehoder:"-",thumbMode:"contain",thumbRatio:"1:1"},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof l.ImageThumbProps&&l.ImageThumbProps)?i:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleEnlarge",null),t}(r.default.Component);t.ImagesField=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)images$/})],t)}(d);t.ImagesFieldRenderer=c}); -;/*!src/renderers/List.tsx*/ -amis.define("20f7ce6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),r=e("node_modules/react-dom/index"),i=e("0f9ebdf"),s=e("6a2dbb7"),l=a.__importDefault(e("a67acca")),o=a.__importDefault(e("0a43d97")),d=e("4e9b495"),c=e("9a80175"),u=e("f2e345e"),p=a.__importDefault(e("b497f17")),m=a.__importDefault(e("bcd7efc")),h=a.__importDefault(e("node_modules/sortablejs/Sortable")),f=e("f6086a9"),g=a.__importDefault(e("705a434")),b=e("b7bbd16"),y=function(e){function t(t){var a=e.call(this,t)||this;return a.handleAction=a.handleAction.bind(a),a.handleCheck=a.handleCheck.bind(a),a.handleCheckAll=a.handleCheckAll.bind(a),a.handleQuickChange=a.handleQuickChange.bind(a),a.handleSave=a.handleSave.bind(a),a.handleSaveOrder=a.handleSaveOrder.bind(a),a.reset=a.reset.bind(a),a.dragTipRef=a.dragTipRef.bind(a),a.getPopOverContainer=a.getPopOverContainer.bind(a),a.affixDetect=a.affixDetect.bind(a),a.bodyRef=a.bodyRef.bind(a),a.renderToolbar=a.renderToolbar.bind(a),a}return a.__extends(t,e),t.syncItems=function(e,t,a){var n=t.source,r=t.value||t.items,i=[],s=!0;if(Array.isArray(r))i=r;else if("string"==typeof n){var l=u.resolveVariable(n,t.data),o=a?u.resolveVariable(n,a.data):null;o&&o===l?s=!1:Array.isArray(l)&&(i=l)}s&&e.initItems(i),Array.isArray(t.selected)&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,a=e.store,n=e.selectable,r=e.draggable,i=e.orderBy,s=e.orderDir,l=e.multiple,o=e.hideCheckToggler,d=e.itemCheckableOn,c=e.itemDraggableOn;a.update({multiple:l,selectable:n,draggable:r,orderBy:i,orderDir:s,hideCheckToggler:o,itemCheckableOn:d,itemDraggableOn:c}),t.syncItems(a,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=c.getScrollParent(r.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillReceiveProps=function(e){var a=this.props,n=e.store;c.anyChanged(["selectable","draggable","orderBy","orderDir","multiple","hideCheckToggler","itemCheckableOn","itemDraggableOn"],a,e)&&n.update({multiple:e.multiple,selectable:e.selectable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,hideCheckToggler:e.hideCheckToggler,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn}),c.anyChanged(["source","value","items"],a,e)||!e.value&&!e.items&&e.data!==a.data?(t.syncItems(n,e,a),this.syncSelected()):a.selected!==e.selected&&n.updateSelected(e.selected||[],e.valueField)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.bodyRef=function(e){this.body=e},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.body){var e=this.props.classPrefix,t=r.findDOMNode(this),a=t.querySelector("."+e+"List-fixedTop");if(a){var n=this.body.getBoundingClientRect(),i=this.props.env.affixOffsetTop||0,s=n.topi;this.body.offsetWidth&&(a.style.cssText="top: "+i+"px;width: "+this.body.offsetWidth+"px;"),s?a.classList.add("in"):a.classList.remove("in")}}},t.prototype.getPopOverContainer=function(){return r.findDOMNode(this)},t.prototype.handleAction=function(e,t,a){var n=this.props.onAction;n(e,t,a)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.syncSelected=function(){var e=this.props,t=e.store,a=e.onSelect;a&&a(t.selectedItems.map(function(e){return e.data}),t.unSelectedItems.map(function(e){return e.data}))},t.prototype.handleQuickChange=function(e,t,a,n){if(e.change(t,n),a&&!n){if(a&&a.api)return void this.props.onAction(null,{actionType:"ajax",api:a.api},t);var r=this.props,i=r.onSave,s=r.primaryField;i&&i(e.data,c.difference(e.data,e.pristine,["id",s]),e.index,void 0,e.pristine)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,a=e.onSave,n=e.primaryField;if(a&&t.modifiedItems.length){var r=t.modifiedItems.map(function(e){return e.data}),i=t.modifiedItems.map(function(e){return e.index}),s=t.modifiedItems.map(function(e){return c.difference(e.data,e.pristine,["id",n])}),l=t.items.filter(function(e){return!e.modified}).map(function(e){return e.data});a(r,s,i,l,t.modifiedItems.map(function(e){return e.pristine}))}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,a=e.onSaveOrder;a&&t.movedItems.length&&a(t.movedItems.map(function(e){return e.data}),t.items.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var a=this.props.store,n=a.items.filter(function(e){return~t.indexOf(e.pristine)});n.forEach(function(t){return t.change(e)})},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedItems.map(function(e){return e.data})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this.props.store,t=r.findDOMNode(this),a=this.props.classPrefix;this.sortable=new h.default(t.querySelector("."+a+"List-items"),{group:"table",animation:150,handle:"."+a+"ListItem-dragBtn",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndex'+p+"":"string"==typeof o?o:JSON.stringify(o)},t.prototype._render=function(){this.dom&&(this.dom.innerHTML=this.getContent())},t.prototype.render=function(){var e=this.props,t=e.className,n=e.wrapperComponent,l=e.inline,i=e.classnames,o=n||(l?"span":"div");return r.default.createElement(o,{children:this.getContent(),ref:this.htmlRef,className:i("TplField",t)})},t.defaultProps={inline:!0,placeholder:"",value:""},t}(r.default.Component);t.Tpl=s;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.Renderer({test:/(^|\/)(?:tpl|html)$/,name:"tpl"})],t)}(s);t.TplRenderer=p}); -;/*!src/renderers/Mapping.tsx*/ -amis.define("c2029c1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.className,l=n.placeholder,p=n.map,s=n.render,i=n.classnames,d=this.props.value,u=a.default.createElement("span",{className:"text-muted"},l);return d="string"==typeof d?d.trim():d,"undefined"!=typeof d&&p&&(e=p[d],null!==e&&void 0!==e?e:p["*"])&&(u=s("tpl",(t=p[d],null!==t&&void 0!==t?t:d===!0&&p[1]?p[1]:d===!1&&p[0]?p[0]:p["*"]))),a.default.createElement("span",{className:i("MappingField",r)},u)},t.defaultProps={placeholder:"-",map:{"*":"通配值"}},t}(a.default.Component);t.MappingField=l;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.Renderer({test:/(^|\/)(?:map|mapping)$/,name:"mapping"})],t)}(l);t.MappingFieldRenderer=p}); -;/*!src/renderers/Progress.tsx*/ -amis.define("f52f675",function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),t=r.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),l=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(s,e),s.prototype.autoClassName=function(e){var s=this.props.map,r=Math.floor(e*s.length/100);return r=Math.max(0,Math.min(s.length-1,r)),s[r]},s.prototype.render=function(){var e=this.props,s=e.className,r=e.placeholder,a=e.progressClassName,l=e.progressBarClassName,n=(e.map,e.showLabel),o=e.classnames,p=this.props.value,u=t.default.createElement("span",{className:"text-muted"},r);return/^\d*\.?\d+$/.test(p)&&(p=parseFloat(p)),"number"==typeof p&&(u=[t.default.createElement("div",{key:"progress",className:o("progress",a)},t.default.createElement("div",{className:o("progress-bar",l||this.autoClassName(p)),title:p+"%",style:{width:p+"%"}})),n?t.default.createElement("div",{key:"value"},p,"%"):null]),t.default.createElement("span",{className:o("ProgressField",s)},u)},s.defaultProps={placeholder:"-",progressClassName:"progress-xs progress-striped active m-b-none",progressBarClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],showLabel:!0},s}(t.default.Component);s.ProgressField=l;var n=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(s,e),s=r.__decorate([a.Renderer({test:/(^|\/)progress$/,name:"progress"})],s)}(l);s.ProgressFieldRenderer=n}); -;/*!src/renderers/Status.tsx*/ -amis.define("da6cdad",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=a.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),l=e("6a2dbb7"),u=e("b7bbd16"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.placeholder,n=e.map,c=e.labelMap,r=e.classnames,i=e.data,d=this.props.value,o=s.default.createElement("span",{className:"text-muted"},a),p="";if(void 0!==d&&""!==d&&n){"boolean"==typeof d?d=d?1:0:/^\d+$/.test(d)&&(d=parseInt(d,10)||0),p="StatusField--"+d;var f=n[d]||"",m="";f=f.replace(/\bsvg-([^\s|$]+)\b/g,function(e,t){return m=t,"icon"}),m?o=s.default.createElement(u.Icon,{icon:m,className:r("Status-icon icon",f),key:"icon"}):f&&(o=s.default.createElement("i",{className:r("Status-icon",f),key:"icon"})),c&&c[d]&&(o=[o,s.default.createElement("span",{className:r("StatusField-label"),key:"label"},l.filter(c[d],i))])}return s.default.createElement("span",{className:r("StatusField",p,t)},o)},t.defaultProps={placeholder:"-",map:{0:"svg-fail",1:"svg-success",success:"svg-success",pending:"rolling",fail:"svg-fail",queue:"svg-warning",schedule:"svg-schedule"},labelMap:{success:"成功",pending:"运行中",fail:"失败",queue:"排队中",schedule:"调度中"}},t}(s.default.Component);t.StatusField=c;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.Renderer({test:/(^|\/)status$/,name:"status"})],t)}(c);t.StatusFieldRenderer=r}); -;/*!src/renderers/Json.tsx*/ -amis.define("386af39",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),r=t.__importDefault(e("node_modules/react-json-tree/lib/index")),o=e("9a80175"),d={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f",tree:{border:0,padding:"0 0.625em 0.425em",marginTop:"-0.25em",marginBottom:"0",marginLeft:"0",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:"rgba(255, 255, 255, 0.4)",whiteSpace:"nowrap",display:"inline-block",width:"100%"}},i={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53",tree:{border:0,padding:"0 0.625em 0.425em",marginTop:"-0.25em",marginBottom:"0",marginLeft:"0",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:"#2D2D2D",whiteSpace:"nowrap",display:"inline-block",width:"100%"}},l={twilight:d,eighties:i},c=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.shouldExpandNode=function(e,t,n){var s=a.props.levelExpand;return s>n},a}return t.__extends(a,e),a.prototype.valueRenderer=function(e){var a=this.props.classnames;return"string"==typeof e&&/^\"?https?:\/\//.test(e)?n.default.createElement("a",{className:a("JsonField-nodeValue"),href:e.replace(/^\"(.*)\"$/,"$1"),target:"_blank"},e):n.default.createElement("span",{className:a("JsonField-nodeValue")},e)},a.prototype.render=function(){var e=this.props,a=e.className,t=e.value,s=e.jsonTheme,o=e.classnames,d=t;if("string"==typeof t)try{d=JSON.parse(t)}catch(i){d={error:i.message}}var c=l[s]?l[s]:l.twilight;return n.default.createElement("div",{className:o("JsonField",a)},n.default.createElement(r.default,{data:d,theme:c,shouldExpandNode:this.shouldExpandNode,valueRenderer:this.valueRenderer}))},a.defaultProps={placeholder:"-",levelExpand:1,jsonTheme:"twilight"},t.__decorate([o.autobind,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object]),t.__metadata("design:returntype",void 0)],a.prototype,"valueRenderer",null),a}(n.default.Component);a.JSONField=c;var b=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([s.Renderer({test:/(^|\/)json$/,name:"json"})],a)}(c);a.JSONFieldRenderer=b}); -;/*!src/renderers/Link.tsx*/ -amis.define("8f3f322",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),l=e("6a2dbb7"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.body,a=e.href,s=e.classnames,i=e.blank,d=e.htmlTarget,u=e.data,o=e.render,f=e.translate,c=this.props.value,m=a?l.filter(a,u):"";return r.default.createElement("a",{href:m||c,target:d||(i?"_blank":"_self"),className:s("Link",t)},n?o("body",n):m||c||f("链接"))},t.defaultProps={className:"",blank:!1},t}(r.default.Component);t.LinkField=s;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([a.Renderer({test:/(^|\/)link$/,name:"link"})],t)}(s);t.LinkFieldRenderer=i}); -;/*!src/renderers/Switch.tsx*/ -amis.define("94e9d59",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),l=e("0f9ebdf"),d=t.__importDefault(e("node_modules/classnames/index")),s=t.__importDefault(e("aa2413a")),i=e("f2e345e"),r=function(e){function a(a){var t=e.call(this,a)||this;return t.handleChange=t.handleChange.bind(t),t}return t.__extends(a,e),a.prototype.handleChange=function(e){var a,t=this.props,n=t.onQuickChange,l=t.name,d=t.trueValue,s=t.falseValue,i=t.saveImmediately,r=t.readOnly,u=t.disabled;n&&!r&&!u&&n((a={},a[l]=e?d:s,a),i)},a.prototype.render=function(){var e=this.props,a=e.className,t=e.classPrefix,l=e.placeholder,r=e.trueValue,u=(e.falseValue,e.onQuickChange),o=e.option,c=e.disabled,f=e.name,h=e.data,m=this.props.value,p=n.default.createElement("span",{className:"text-muted"},l),_=!1;return void 0===m&&f&&(m=i.resolveVariable(f,h)),void 0!==m&&(_=!!o,p=n.default.createElement(s.default,{inline:!0,classPrefix:t,checked:m==r,onChange:this.handleChange,disabled:c||!u})),n.default.createElement("span",{className:d.default(t+"SwitchField",a)},p,_?o:null)},a.defaultProps={placeholder:"-",trueValue:!0,falseValue:!1,readOnly:!0,saveImmediately:!1},a}(n.default.Component);a.SwitchField=r;var u=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([l.Renderer({test:/(^|\/)switch$/,name:"switch"})],a)}(r);a.SwitchFieldRenderer=u}); -;/*!src/renderers/Wizard.tsx*/ -amis.define("29937cf",function(t,e){"use strict";function a(t,e,a,n){var i=!1;return i=t&&t.hasOwnProperty("jumpable")?t.jumpable:t&&t.jumpableOn?c.evalExpression(t.jumpableOn,p.createObject(n,{currentStep:a})):a>e+1}Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/tslib/tslib"),i=n.__importDefault(t("node_modules/react/index")),o=t("919cbd9"),r=t("0f9ebdf"),s=t("57d76d7"),d=t("8f9f9e3"),c=t("6a2dbb7"),p=t("9a80175"),l=t("1caead1"),u=t("1953fc1"),f=t("node_modules/react-dom/index"),h=t("67d35e6"),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.affixDom=i.default.createRef(),e.footerDom=i.default.createRef(),e.initalValues={},e.state={currentStep:-1},e}n.__extends(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props,a=e.initApi,n=e.initFetch,i=e.initAsyncApi,o=e.initFinishedField,r=e.store,s=e.messages,d=s.fetchSuccess,c=s.fetchFailed,u=e.onInit;l.isEffectiveApi(a,r.data,n)?r.fetchInitData(a,r.data,{successMessage:d,errorMessage:c,onSuccess:function(){return l.isEffectiveApi(i,r.data)&&!r.data[o||"finished"]?p.until(function(){return r.checkRemote(i,r.data)},function(t){return t&&t[o||"finished"]},function(e){return t.asyncCancel=e}):void 0}}).then(function(e){u&&u(r.data);var a={currentStep:1};return e&&e.data&&("number"==typeof e.data.step||"string"==typeof e.data.step&&/^\d+$/.test(e.data.step))&&(a.currentStep=parseInt(e.data.step,10)),t.setState(a,function(){e&&e.data&&(e.data.submiting||e.data.submited)&&t.checkSubmit()}),e}):this.setState({currentStep:1},function(){return u&&u(r.data)});var m=f.findDOMNode(this),y=m?p.getScrollParent(m):null;y&&y!==document.body||(y=window),this.parentNode=y,y.addEventListener("scroll",this.affixDetect),this.unSensor=h.resizeSensor(m,this.affixDetect),this.affixDetect()},e.prototype.componentDidUpdate=function(t){var e=this.props,a=e.store,n=e.fetchSuccess,i=e.fetchFailed;l.isApiOutdated(t.initApi,e.initApi,t.data,e.data)&&a.fetchData(e.initApi,a.data,{successMessage:n,errorMessage:i})},e.prototype.componentWillUnmount=function(){this.asyncCancel&&this.asyncCancel();var t=this.parentNode;t&&t.removeEventListener("scroll",this.affixDetect),this.unSensor&&this.unSensor()},e.prototype.affixDetect=function(){if(this.props.affixFooter&&this.affixDom.current&&this.footerDom.current){var t=this.affixDom.current,e=this.footerDom.current,a=!1;if(e.offsetWidth&&(t.style.cssText="width: "+e.offsetWidth+"px;"),"always"===this.props.affixFooter)a=!0,e.classList.add("invisible2");else{var n=e.getBoundingClientRect(),i=window.innerHeight;a=n.top+n.height/2>i}a?t.classList.add("in"):t.classList.remove("in")}},e.prototype.gotoStep=function(t){var e=this.props.steps||[];t=Math.max(Math.min(e.length,t),1),this.setState({currentStep:t})},e.prototype.formRef=function(t){if(t){for(;t&&t.getWrappedInstance;)t=t.getWrappedInstance();this.form=t}else this.form=void 0},e.prototype.submitToTarget=function(){throw new Error("Please implements this!")},e.prototype.reloadTarget=function(){throw new Error("Please implements this!")},e.prototype.reload=function(t,e){var a=this;if(e)return this.receive(e);var n=this.props,i=n.initApi,o=n.initAsyncApi,r=n.initFinishedField,s=n.store,d=n.messages,c=d.fetchSuccess,u=d.fetchFailed;l.isEffectiveApi(i,s.data)&&1===this.state.currentStep&&s.fetchInitData(i,s.data,{successMessage:c,errorMessage:u,onSuccess:function(){return l.isEffectiveApi(o,s.data)&&!s.data[r||"finished"]?p.until(function(){return s.checkRemote(o,s.data)},function(t){return t&&t[r||"finished"]},function(t){return a.asyncCancel=t}):void 0}}).then(function(t){var e={currentStep:1};return t&&t.data&&("number"==typeof t.data.step||"string"==typeof t.data.step&&/^\d+$/.test(t.data.step))&&(e.currentStep=parseInt(t.data.step,10)),a.setState(e,function(){t&&t.data&&(t.data.submiting||t.data.submited)&&a.checkSubmit()}),t})},e.prototype.receive=function(t){var e=this.props.store;e.updateData(t),this.reload()},e.prototype.domRef=function(t){this.dom=t},e.prototype.getPopOverContainer=function(){return this.dom},e.prototype.checkSubmit=function(){var t,e=this,a=this.props,n=a.store,i=a.steps,o=a.asyncApi,r=a.finishedField,s=a.env,d=i[this.state.currentStep-1],c=d&&d.asyncApi||this.state.currentStep===i.length&&o;d&&l.isEffectiveApi(c,n.data)&&(n.markSaving(!0),n.updateData((t={},t[r||"finished"]=!1,t)),p.until(function(){return n.checkRemote(c,n.data)},function(t){return t&&t[r||"finished"]},function(t){return e.asyncCancel=t}).then(function(){n.markSaving(!1),e.gotoStep(e.state.currentStep+1)}).catch(function(t){s.notify("error",t.message),n.markSaving(!1)}))},e.prototype.handleAction=function(t,e,a,i,o){var r=this;void 0===i&&(i=!1);var s=this.props,d=s.onAction,l=s.store,u=s.env;if("next"===e.actionType||"submit"===e.type)this.form.doAction(n.__assign(n.__assign({},e),{actionType:"submit"}),a);else if("prev"===e.actionType)this.gotoStep(this.state.currentStep-1);else if("reset"===e.type)this.form.reset();else if("dialog"===e.actionType)l.openDialog(a);else{if("ajax"===e.actionType)return e.api?l.saveRemote(e.api,a,{successMessage:e.messages&&e.messages.success,errorMessage:e.messages&&e.messages.failed}).then(function(){return n.__awaiter(r,void 0,void 0,function(){var t;return n.__generator(this,function(a){switch(a.label){case 0:return this.form&&this.form.isValidated()&&this.form.validate(!0),e.feedback&&p.isVisible(e.feedback,l.data)?[4,this.openFeedback(e.feedback,l.data)]:[3,2];case 1:a.sent(),a.label=2;case 2:return t=e.redirect&&c.filter(e.redirect,l.data),t&&u.jumpTo(t,e),e.reload&&this.reloadTarget(e.reload,l.data),[2]}})})}).catch(function(){}):u.alert("当 actionType 为 ajax 时,请设置 api 属性");"reload"===e.actionType?e.target&&this.reloadTarget(e.target,a):d&&d(t,e,a,i,o||this.context)}},e.prototype.openFeedback=function(t,e){var a=this;return new Promise(function(n){var i=a.props.store;i.setCurrentAction({type:"button",actionType:"dialog",dialog:t}),i.openDialog(e,void 0,function(t){n(t)})})},e.prototype.handleChange=function(t){var e=this.props.store;e.updateData(t)},e.prototype.handleInit=function(t){var e=this.state.currentStep;this.initalValues[e]=this.initalValues[e]||t},e.prototype.handleReset=function(t){var e=this.props.store,a=this.initalValues[this.state.currentStep],n={};Object.keys(t).forEach(function(t){n[t]=a.hasOwnProperty(t)?a[t]:void 0}),e.updateData(n)},e.prototype.handleSubmit=function(t,e){var a,i,o=this,r=this.props,s=r.store,d=r.steps,u=r.api,f=r.asyncApi,h=r.finishedField,m=r.target,y=r.redirect,g=r.reload,v=r.env,_=r.onFinished,b=d[this.state.currentStep-1];if(s.updateData(t),this.state.currentStepa&&!(r[a-1]&&e.currentTime<=r[a+1]-(r[a+1]-r[a])/2)&&!(e.currentTime<=r[a]);)a++;t.currentIndex!==a&&t.moveCursorToIndex(a)}})},t.prototype.moveCursorToIndex=function(e){var t=this.props.classPrefix;if(this.frameDom&&this.cursorDom){var a=this.frameDom.querySelectorAll("."+t+"Video-frame");if(a&&a.length&&a[e]){this.currentIndex=e;var r=a[e],n=this.frameDom.getBoundingClientRect(),o=r.getBoundingClientRect();this.cursorDom.setAttribute("style","width: "+(o.width-4)+"px; height: "+(o.height-4)+"px; left: "+(o.left+2-n.left)+"px; top: "+(o.top+2-n.top)+"px;")}}},t.prototype.jumpToIndex=function(e){if(this.times&&this.player&&this.props.jumpFrame){var t=this.times,a=this.player;a.seek(t[e]-(t[e]-(t[e-1]||0))/2),a.play()}},t.prototype.onClick=function(e){e.preventDefault()},t.prototype.renderFrames=function(){var e=this,t=this.props,a=t.frames,n=t.framesClassName,i=t.columnsCount,u=t.data,d=t.jumpFrame,p=t.classPrefix;if("string"==typeof a&&"$"===a[0]&&(a=l.resolveVariable(a,u)),!a)return null;var f=[],m=this.times=[];return Object.keys(a).forEach(function(e){a[e]&&(m.push(c(e)),f.push({time:e,src:a[e]}))}),f.length?r.default.createElement("div",{className:s.default("pos-rlt "+p+"Video-frameList",n),ref:this.frameRef},o.padArr(f,i).map(function(t,a){for(var n=i-t.length,o=[];n--;)o.push("");return r.default.createElement("div",{className:"pull-in-xxs",key:a},r.default.createElement("div",{className:p+"Hbox "+p+"Video-frameItem"},t.map(function(t,n){return r.default.createElement("div",{className:p+"Hbox-col Wrapper--xxs "+p+"Video-frame",key:n,onClick:function(){return e.jumpToIndex(a*i+n)}},r.default.createElement("img",{className:"w-full",alt:"poster",src:t.src}),r.default.createElement("div",{className:p+"Text--center"},t.time))}),n?o.map(function(e,t){return r.default.createElement("div",{className:p+"Hbox-col Wrapper--xxs",key:"blank_"+t})}):null))}),d?r.default.createElement("span",{ref:this.cursorRef,className:p+"Video-cursor"}):null):null},t.prototype.renderPlayer=function(){var e,t=this.props,a=t.poster,o=t.autoPlay,s=t.muted,i=t.name,l=t.data,c=t.amisConfig,f=(t.locals,t.isLive),m=t.minVideoDuration,h=t.videoType,v=t.playerClassName,y=t.classPrefix,x=t.aspectRatio,g=t.rates,E=this.props.src||i&&l&&l[i]||c&&c.value,b=this.state.videoState,P=b.duration&&m&&b.durations.width||n.height>s.height)&&(i="Text--danger"),r.default.createElement("div",{className:"pull-in-xs"},r.default.createElement("div",{className:o("Hbox")},r.default.createElement("div",{className:o("Hbox-col")},r.default.createElement("div",{className:o("Wrapper Wrapper--xs")},r.default.createElement("img",{onLoad:this.onImageLoaded,className:"w-full",alt:"poster",src:u.filter(t,a,"| raw")}),r.default.createElement("p",{className:"m-t-xs"},"封面"," ",r.default.createElement("span",{className:i},s.width||"-"," x ",s.height||"-"),i?r.default.createElement("span",null," ","封面尺寸小于"," ",r.default.createElement("span",{className:o("Text--danger")},n.width||"-"," x"," ",n.height||"-")):null))),r.default.createElement("div",{className:o("Hbox-col")},r.default.createElement("div",{className:o("Wrapper Wrapper--xs")},this.renderPlayer()))))},t.prototype.render=function(){var e=this.props,t=e.splitPoster,a=e.className,n=e.classPrefix;return r.default.createElement("div",{className:s.default(n+"Video",a),onClick:this.onClick},this.renderFrames(),t?this.renderPosterAndPlayer():this.renderPlayer())},t.defaultProps={columnsCount:8,isLive:!1,jumpFrame:!0,aspectRatio:"auto"},t}(r.default.Component);t.default=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)video$/,name:"video"})],t)}(f);t.VideoRenderer=m}); -;/*!src/renderers/Audio.tsx*/ -amis.define("211dcc3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),o=a.__importDefault(e("node_modules/react/index")),n=a.__importDefault(e("node_modules/lodash/upperFirst")),i=e("0f9ebdf"),s=e("9a80175"),r=e("b7bbd16"),d=e("f2e345e"),u=e("6a2dbb7"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={src:t.props.value||(t.props.src?u.filter(t.props.src,t.props.data):"")||d.resolveVariable(t.props.name,t.props.data)||"",isReady:!1,muted:!1,playing:!1,played:0,seeking:!1,volume:.8,prevVolume:.8,loaded:0,playbackRate:1,showHandlePlaybackRate:!1,showHandleVolume:!1},t}return a.__extends(t,e),t.prototype.componentWillUnmount=function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationTimeout)},t.prototype.componentDidMount=function(){var e=this.props.autoPlay,t=e?!0:!1;this.setState({playing:t},this.progress)},t.prototype.componentWillReceiveProps=function(e){var t=this,a=this.props;(a.value!==e.value||u.filter(a.src,a.data)!==u.filter(e.src,e.data))&&this.setState({src:e.value||u.filter(e.src,e.data),playing:!1},function(){t.audio.load(),t.progress()})},t.prototype.progress=function(){if(clearTimeout(this.progressTimeout),this.state.src&&this.audio){var e=this.audio.currentTime||0,t=this.audio.duration,a=e/t,o=this.state.playing;o=1!=a&&o?!0:!1,this.setState({played:a,playing:o}),this.progressTimeout=setTimeout(this.progress,this.props.progressInterval/this.state.playbackRate)}},t.prototype.audioRef=function(e){this.audio=e},t.prototype.load=function(){this.setState({isReady:!0})},t.prototype.handlePlaybackRate=function(e){this.audio.playbackRate=e,this.setState({playbackRate:e,showHandlePlaybackRate:!1})},t.prototype.handleMute=function(){if(this.state.src){var e=this.state,t=e.muted,a=e.prevVolume,o=t?a:0;this.audio.muted=!t,this.setState({muted:!t,volume:o})}},t.prototype.handlePlaying=function(){if(this.state.src){var e=this.state.playing;e?this.audio.pause():this.audio.play(),this.setState({playing:!e})}},t.prototype.getCurrentTime=function(){if(!this.audio||!this.state.src||!this.state.isReady)return"0:00";var e=this.audio.duration,t=this.state.played;return this.formatTime(e*(t||0))},t.prototype.getDuration=function(){if(!this.audio||!this.state.src)return"0:00";if(!this.state.isReady)return this.onDurationCheck(),"0:00";var e=this.audio,t=e.duration,a=e.seekable;return 1/0===t&&a.length>0?a.end(a.length-1):this.formatTime(t)},t.prototype.onDurationCheck=function(){clearTimeout(this.durationTimeout);var e=this.audio&&this.audio.duration;e||(this.audio.load(),this.durationTimeout=setTimeout(this.onDurationCheck,500))},t.prototype.onSeekChange=function(e){if(this.state.src){var t=e.target.value;this.setState({played:t})}},t.prototype.onSeekMouseDown=function(){this.setState({seeking:!0})},t.prototype.onSeekMouseUp=function(e){if(this.state.seeking){var t=e.target.value,a=this.audio.duration;this.audio.currentTime=a*t;var o=this.props.loop,n=this.state.playing;n=1>t||o?n:!1,this.setState({playing:n,seeking:!1})}},t.prototype.setVolume=function(e){if(this.state.src){var t=e.target.value;this.audio.volume=t,this.setState({volume:t,prevVolume:t})}},t.prototype.formatTime=function(e){var t=new Date(1e3*e),a=t.getUTCHours(),o=t.getUTCMinutes(),n=this.pad(t.getUTCSeconds());return a?a+":"+this.pad(o)+":"+n:o+":"+n},t.prototype.pad=function(e){return("0"+e).slice(-2)},t.prototype.toggleHandlePlaybackRate=function(){this.state.src&&this.setState({showHandlePlaybackRate:!this.state.showHandlePlaybackRate})},t.prototype.toggleHandleVolume=function(e){this.state.src&&this.setState({showHandleVolume:e})},t.prototype.renderRates=function(){var e=this,t=this.props,a=t.rates,n=t.classnames,i=this.state,s=i.showHandlePlaybackRate,r=i.playbackRate;return a&&a.length?s?o.default.createElement("div",{className:n("Audio-rateControl")},a.map(function(t,a){return o.default.createElement("div",{key:a,className:n("Audio-rateControlItem"),onClick:function(){return e.handlePlaybackRate(t)}},"x",t.toFixed(1))})):o.default.createElement("div",{className:n("Audio-rates"),onClick:this.toggleHandlePlaybackRate},"x",r.toFixed(1)):null},t.prototype.renderPlay=function(){var e=this.props.classnames,t=this.state.playing;return o.default.createElement("div",{className:e("Audio-play"),onClick:this.handlePlaying},t?o.default.createElement(r.Icon,{icon:"pause",className:"icon"}):o.default.createElement(r.Icon,{icon:"play",className:"icon"}))},t.prototype.renderTime=function(){var e=this.props.classnames;return o.default.createElement("div",{className:e("Audio-times")},this.getCurrentTime()," / ",this.getDuration())},t.prototype.renderProcess=function(){var e=this.props.classnames,t=this.state.played;return o.default.createElement("div",{className:e("Audio-process")},o.default.createElement("input",{type:"range",min:0,max:1,step:"any",value:t||0,onMouseDown:this.onSeekMouseDown,onChange:this.onSeekChange,onMouseUp:this.onSeekMouseUp}))},t.prototype.renderVolume=function(){var e=this,t=this.props.classnames,a=this.state,n=a.volume,i=a.showHandleVolume;return i?o.default.createElement("div",{className:t("Audio-volumeControl"),onMouseLeave:function(){return e.toggleHandleVolume(!1)}},o.default.createElement("div",{className:t("Audio-volumeControlIcon"),onClick:this.handleMute},n>0?o.default.createElement(r.Icon,{icon:"volume",className:"icon"}):o.default.createElement(r.Icon,{icon:"mute",className:"icon"})),o.default.createElement("input",{type:"range",min:0,max:1,step:"any",value:n,onChange:this.setVolume})):o.default.createElement("div",{className:t("Audio-volume"),onMouseEnter:function(){return e.toggleHandleVolume(!0)}},n>0?o.default.createElement(r.Icon,{icon:"volume",className:"icon"}):o.default.createElement(r.Icon,{icon:"mute",className:"icon"}))},t.prototype.render=function(){var e=this,t=this.props,a=t.className,i=t.inline,s=t.autoPlay,r=t.loop,d=t.controls,u=t.classnames,l=this.state,p=l.muted,c=l.src;return o.default.createElement("div",{className:u("Audio",a,i?"Audio--inline":"")},o.default.createElement("audio",{className:u("Audio-original"),ref:this.audioRef,onCanPlay:this.load,autoPlay:s,controls:!0,muted:p,loop:r},o.default.createElement("source",{src:c})),o.default.createElement("div",{className:u("Audio-controls")},d&&d.map(function(t,a){t="render"+n.default(t);var i=t;return o.default.createElement(o.default.Fragment,{key:a},e[i]())})))},t.defaultProps={inline:!0,autoPlay:!1,playbackRate:1,loop:!1,rates:[],progressInterval:1e3,controls:["rates","play","time","process","volume"]},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"progress",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"audioRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"load",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePlaybackRate",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMute",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePlaying",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getCurrentTime",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getDuration",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"onDurationCheck",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onSeekChange",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"onSeekMouseDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onSeekMouseUp",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"setVolume",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],t.prototype,"formatTime",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],t.prototype,"pad",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleHandlePlaybackRate",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleHandleVolume",null),t}(o.default.Component);t.Audio=l;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)audio/,name:"audio"})],t)}(l);t.AudioRenderer=p}); -;/*!src/renderers/Nav.tsx*/ -amis.define("e6d92e6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=n.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),s=n.__importDefault(e("01e2bb4")),r=e("6a2dbb7"),o=e("9a80175"),l=e("f2e345e"),c=e("1caead1"),u=e("919cbd9"),d=e("256b65d"),p=e("b7bbd16"),f=function(e){function t(t){var n=e.call(this,t)||this;return n.mounted=!0,n.renderItem=n.renderItem.bind(n),n.state={links:n.syncLinks(t,t.source&&"string"==typeof t.source&&l.isPureVariable(t.source)&&l.resolveVariable(t.source,t.data)||t.links)},n}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.source;e&&!l.isPureVariable(e)&&this.reload()},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(e.source&&l.isPureVariable(e.source))if(e.source!==t.source)this.setState({links:this.syncLinks(e)});else{var n=l.resolveVariable(e.source,e.data),i=l.resolveVariable(t.source,t.data);n!==i&&this.setState({links:this.syncLinks(e,n)})}else t.links!==e.links?this.setState({links:this.syncLinks(e)}):e.location&&t.location!==e.location&&this.setState({links:this.syncLinks(e,this.state.links,!0)})},t.prototype.componentDidUpdate=function(e){var t=this.props;t.source&&!l.isPureVariable(t.source)&&c.isApiOutdated(e.source,t.source,e.data,t.data)&&this.reload()},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.reload=function(e,t,n){var i=this;if(t)return this.receive(t);var a=this.props,s=a.data,l=a.env,u=a.source,d=a.translate,p=n?o.createObject(s,n):s;c.isEffectiveApi(u,s)&&l.fetcher(u,p).then(function(e){if(i.mounted)if(e.ok){var t=Array.isArray(e.data)?e.data:e.data.links||e.data.options||e.data.items||e.data.rows;if(!Array.isArray(t))throw new Error("\bpayload.data.options is not array.");i.setState({links:i.syncLinks(i.props,t)},function(){e.data&&e.data.value&&!o.someTree(i.state.links,function(e){return e.active})&&l.jumpTo(r.filter(e.data.value,s))})}else i.setState({error:e.msg||d("获取链接错误")})}).catch(function(e){return i.mounted&&i.setState({error:e.message})})},t.prototype.receive=function(e){{var t=this.props;t.store,t.initApi}this.reload(void 0,void 0,e)},t.prototype.syncLinks=function(e,t,i){void 0===t&&(t=e.links);var a=e.data,l=e.env;return Array.isArray(t)&&t.length?o.mapTree(t,function(e){return n.__assign(n.__assign(n.__assign({},e),s.default(e,a)),{active:!i&&e.active||(e.activeOn?r.evalExpression(e.activeOn,a):!!(e.hasOwnProperty("to")&&l&&l.isCurrentUrl(r.filter(e.to,a)))),unfolded:e.unfolded||e.children&&e.children.some(function(e){return!!e.active})})},1,!0):[]},t.prototype.handleClick=function(e){var t=this.props,n=t.env,i=t.data,a=t.onSelect;if(!a||a(e)!==!1)return e.to?void(n&&n.jumpTo(r.filter(e.to,i),e)):void(e.children&&e.children.length&&this.toggleLink(e))},t.prototype.toggleLink=function(e){this.setState({links:o.mapTree(this.state.links,function(t){return e===t?n.__assign(n.__assign({},t),{unfolded:!t.unfolded}):t})})},t.prototype.renderItem=function(e,t){var n=this;if(e.hidden===!0||e.visible===!1)return null;var a=!!e.active,s=this.props,r=s.disabled,o=s.togglerClassName,l=s.classnames;return i.default.createElement("li",{key:t,className:l("Nav-item",e.className,{"is-disabled":r||e.disabled,"is-active":a,"is-unfolded":e.unfolded})},i.default.createElement("a",{onClick:this.handleClick.bind(this,e)},e.icon?i.default.createElement("i",{className:l("Nav-itemIcon",e.icon)}):null,e.label),e.children&&e.children.length?i.default.createElement("span",{onClick:function(){return n.toggleLink(e)},className:l("Nav-itemToggler",o)},i.default.createElement(p.Icon,{icon:"caret",className:"icon"})):null,e.children&&e.children.length?i.default.createElement("ul",{className:l("Nav-subItems")},e.children.map(function(e,t){return n.renderItem(e,t)})):null)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.stacked,a=e.classnames,s=this.state.links;return i.default.createElement("ul",{className:a("Nav",t,n?"Nav--stacked":"Nav--tabs")},s.map(this.renderItem))},t.defaultProps={},t}(i.default.Component);t.Navigation=f,t.default=d.themeable(f);var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.contextType=u.ScopedContext,t=n.__decorate([a.Renderer({test:/(^|\/)(?:nav|navigation)$/,name:"nav"})],t)}(f);t.NavigationRenderer=m}); -;/*!src/renderers/Tasks.tsx*/ -amis.define("59d3d63",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),s=a.__importDefault(t("node_modules/react/index")),n=t("0f9ebdf"),i=a.__importDefault(t("node_modules/classnames/index")),r=a.__importDefault(t("node_modules/react-addons-update/index")),l=t("1caead1"),o=t("919cbd9"),u=a.__importDefault(t("acad559")),d=function(t){function e(e){var a=t.call(this,e)||this;return a.state={items:e.items?e.items.concat():[]},a.handleLoaded=a.handleLoaded.bind(a),a.tick=a.tick.bind(a),a}return a.__extends(e,t),e.prototype.componentDidMount=function(){this.tick(!!this.props.checkApi)},e.prototype.componentWillReceiveProps=function(t){var e=this.props;e.items!==t.items&&this.setState({items:t.items?t.items.concat():[]})},e.prototype.componentDidUpdate=function(t){var e=this.props;l.isApiOutdated(t.checkApi,e.checkApi,t.data,e.data)&&this.tick(!0)},e.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},e.prototype.reload=function(){this.tick(!0)},e.prototype.tick=function(t){var e=this;void 0===t&&(t=!1);var a=this.props,s=a.loadingStatusCode,n=a.data,i=a.interval,r=a.checkApi,o=a.env,u=this.state.items;return clearTimeout(this.timer),t||u.some(function(t){return t.status===s})?i&&!l.isEffectiveApi(r)?alert("checkApi 没有设置, 不能及时获取任务状态"):void(l.isEffectiveApi(r,n)&&o&&o.fetcher(r,n).then(this.handleLoaded).catch(function(t){return e.setState({error:t})})):void 0},e.prototype.handleLoaded=function(t){if(!Array.isArray(t.data))return alert("返回格式不正确, 期望 response.data 为数组, 包含每个 task 的状态信息");this.setState({items:t.data});var e=this.props.interval;clearTimeout(this.timer),this.timer=setTimeout(this.tick,e)},e.prototype.submitTask=function(t,e,s){var n=this;void 0===s&&(s=!1);var i=this.props,o=i.submitApi,u=i.reSubmitApi,d=i.loadingStatusCode,c=i.errorStatusCode,m=i.data,p=i.env;if(!s&&!l.isEffectiveApi(o))return alert("submitApi 没有配置");if(s&&!l.isEffectiveApi(u))return alert("reSubmitApi 没有配置");this.setState(r.default(this.state,{items:{$splice:[[e,1,a.__assign(a.__assign({},t),{status:d})]]}}));var f=s?u:o;l.isEffectiveApi(f,m)&&p&&p.fetcher(f,a.__assign(a.__assign({},m),t)).then(function(t){if(t&&t.data)if(Array.isArray(t.data))n.handleLoaded(t);else{var e=(f&&f.replaceData,n.state.items.map(function(e){return e.key===t.data.key?a.__assign(a.__assign({},f.replaceData?{}:e),t.data):e}));n.handleLoaded(a.__assign(a.__assign({},t),{data:e}))}else clearTimeout(n.timer),n.timer=setTimeout(n.tick,4)}).catch(function(s){return n.setState(r.default(n.state,{items:{$splice:[[e,1,a.__assign(a.__assign({},t),{status:c,remark:s.message||s})]]}}))})},e.prototype.render=function(){var t=this,e=this.props,a=e.className,n=e.tableClassName,r=e.taskNameLabel,l=e.operationLabel,o=e.statusLabel,d=e.remarkLabel,c=e.btnText,m=e.retryBtnText,p=e.btnClassName,f=e.retryBtnClassName,h=e.statusLabelMap,b=e.statusTextMap,_=e.readyStatusCode,k=e.loadingStatusCode,v=e.canRetryStatusCode,y=e.render,E=this.state.items,C=this.state.error;return s.default.createElement("div",{className:a},s.default.createElement("table",{className:n},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,r),s.default.createElement("th",null,l),s.default.createElement("th",null,o),s.default.createElement("th",null,d))),s.default.createElement("tbody",null,C?s.default.createElement("tr",null,s.default.createElement("td",{colSpan:4},s.default.createElement("div",{className:"text-danger"},C))):E.map(function(e,a){return s.default.createElement("tr",{key:a},s.default.createElement("td",null,e.label),s.default.createElement("td",null,e.status==k?s.default.createElement(u.default,{show:!0,icon:"reload",spinnerClassName:i.default("Task-spinner")}):e.status==v?s.default.createElement("a",{onClick:function(){return t.submitTask(e,a,!0)},className:i.default("btn",f||p)},m||c):s.default.createElement("a",{onClick:function(){return t.submitTask(e,a)},className:i.default("btn",p,{disabled:e.status!==_})},c)),s.default.createElement("td",null,s.default.createElement("span",{className:i.default("label",h&&h[e.status||0])},b&&b[e.status||0])),s.default.createElement("td",null,e.remark?y(a+"/remark",e.remark):null))}))))},e.defaultProps={className:"b-a bg-white table-responsive",tableClassName:"table table-striped m-b-none",taskNameLabel:"任务名称",operationLabel:"操作",statusLabel:"状态",remarkLabel:"备注说明",btnText:"上线",retryBtnText:"重试",btnClassName:"btn-sm btn-default",retryBtnClassName:"btn-sm btn-danger",statusLabelMap:["label-warning","label-info","label-info","label-danger","label-success","label-danger"],statusTextMap:["未开始","就绪","进行中","出错","已完成","出错"],initialStatusCode:0,readyStatusCode:1,loadingStatusCode:2,errorStatusCode:3,finishStatusCode:4,canRetryStatusCode:5,interval:3e3},e}(s.default.Component);e.default=d;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this);var e=this.context;e.unRegisterComponent(this)},e.contextType=o.ScopedContext,e=a.__decorate([n.Renderer({test:/(^|\/)tasks$/,name:"tasks"})],e)}(d);e.TaskRenderer=c}); -;/*!src/renderers/Drawer.tsx*/ -amis.define("a1b9b52",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),r=e("919cbd9"),a=e("0f9ebdf"),i=o.__importDefault(e("01a937e")),s=o.__importDefault(e("node_modules/lodash/findLast")),l=e("9a80175"),d=e("node_modules/mobx/lib/mobx"),p=e("node_modules/react-dom/index"),c=e("4550477"),h=e("6a2dbb7"),u=e("1953fc1"),f=function(e){function t(t){var o=e.call(this,t)||this;return o.$$id=l.guid(),o.state={resizeCoord:0},o.handleSelfClose=o.handleSelfClose.bind(o),o.handleAction=o.handleAction.bind(o),o.handleDrawerConfirm=o.handleDrawerConfirm.bind(o),o.handleDrawerClose=o.handleDrawerClose.bind(o),o.handleDialogConfirm=o.handleDialogConfirm.bind(o),o.handleDialogClose=o.handleDialogClose.bind(o),o.handleChildFinished=o.handleChildFinished.bind(o),o.resizeMouseDown=o.resizeMouseDown.bind(o),o.bindResize=o.bindResize.bind(o),o.removeResize=o.removeResize.bind(o),o.handleExisted=o.handleExisted.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleFormChange=o.handleFormChange.bind(o),o.handleFormSaved=o.handleFormSaved.bind(o),o}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.store;this.reaction=d.reaction(function(){return""+t.loading+t.error},function(){return e.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.confirm,n=e.translate;if("undefined"!=typeof t)return t;var r=[];return r.push({type:"button",actionType:"close",label:n("取消")}),o&&r.push({type:"button",actionType:"confirm",label:n("确认"),primary:!0}),r},t.prototype.handleSelfClose=function(){var e=this.props,t=e.onClose,o=e.store;o.dialogOpen===!1&&o.drawerOpen===!1&&(o.updateMessage(),t())},t.prototype.handleAction=function(e,t,o){var n=this.props,r=n.onClose,a=n.onAction;"close"===t.actionType||"cancel"===t.actionType?r():a&&a(e,t,o)},t.prototype.handleDrawerConfirm=function(e,t){for(var n=[],r=2;r2953?l.default.createElement("span",{className:"text-danger"},"二维码值过长,请设置2953个字符以下的文本"):l.default.createElement(s.default,{className:t,value:_,renderAs:"svg",size:o,bgColor:n,fgColor:u,level:i||"L"}):l.default.createElement("span",{className:p+"QrCode--placeholder"},c))},r.defaultProps={codeSize:128,qrcodeClassName:"",backgroundColor:"#fff",foregroundColor:"#000",level:"L",placeholder:"-"},r}(l.default.Component);r.default=u;var c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([o.Renderer({test:/(^|\/)qr\-?code$/,name:"qrcode"})],r)}(u);r.QRCodeRenderer=c;var i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([n.FormItem({type:"qr-code",sizeMutable:!1})],r)}(u);r.QRCodeControlRenderer=i}); -;/*!src/renderers/Icon.tsx*/ -amis.define("b81abcd",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),o=e("0f9ebdf"),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.icon,t=e.vendor,o=e.classnames,i=e.className;return r.default.createElement("i",{className:o("iconfont"===t?"iconfont icon-"+n:t+" "+t+"-"+n,i)})},n.defaultProps={icon:"",vendor:"fa"},n}(r.default.Component);n.Icon=i;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([o.Renderer({test:/(^|\/)icon$/,name:"icon"})],n)}(i);n.TplRenderer=s}); -;/*!src/renderers/Carousel.tsx*/ -amis.define("f39bdac",function(e,t){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=n.__importStar(e("node_modules/react-transition-group/Transition")),i=e("0f9ebdf"),s=e("f2e345e"),d=e("9a80175"),l=e("b7bbd16"),u=(a={},a[o.ENTERING]="in",a[o.ENTERED]="in",a[o.EXITING]="out",a),p={type:"tpl",tpl:'\n <% if (data.hasOwnProperty(\'image\')) { %>\n
\n <% if (data.hasOwnProperty(\'title\')) { %>\n
<%= data.title %>
\n <% } if (data.hasOwnProperty(\'description\')) { %> \n
<%= data.description %>
\n <% } %>\n <% } else if (data.hasOwnProperty(\'html\')) { %>\n <%= data.html %>"\n <% } else if (data.hasOwnProperty(\'image\')) { %>\n
\n <% if (data.title) { %>\n
<%= data.title %>
\n <% } if (data.description) { %> \n
<%= data.description %>
\n <% } %>\n <% } else if (data.hasOwnProperty(\'html\')) { %>\n <%= data.html %>\n <% } else if (data.hasOwnProperty(\'item\')) { %>\n <%= data.item %>\n <% } else { %>\n <%= \'未找到渲染数据\' %>\n <% } %>\n '},c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrapperRef=r.default.createRef(),t.state={current:0,options:t.props.value||t.props.options||s.resolveVariable(t.props.name,t.props.data)||[],showArrows:!1,nextAnimation:""},t}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.state.options,a=e.value||e.options||s.resolveVariable(e.name,e.data)||[];d.isArrayChildrenModified(t,a)&&this.setState({options:a})},t.prototype.componentDidMount=function(){this.prepareAutoSlide()},t.prototype.componentWillUnmount=function(){this.clearAutoTimeout()},t.prototype.prepareAutoSlide=function(){this.state.options.length<2||(this.clearAutoTimeout(),this.props.auto&&(this.intervalTimeout=setTimeout(this.autoSlide,this.props.interval)))},t.prototype.autoSlide=function(e){this.clearAutoTimeout();var t=this.props.animation,a=this.state.nextAnimation;switch(e){case"prev":a="slide"===t?"slideRight":"",this.transitFramesTowards("right",a);break;case"next":default:a="",this.transitFramesTowards("left",a)}this.durationTimeout=setTimeout(this.prepareAutoSlide,this.props.duration)},t.prototype.transitFramesTowards=function(e,t){var a=this.state.current;switch(e){case"left":a=this.getFrameId("next");break;case"right":a=this.getFrameId("prev")}this.setState({current:a,nextAnimation:t})},t.prototype.getFrameId=function(e){var t=this.state,a=t.options,n=t.current,r=a.length;switch(e){case"prev":return(n-1+r)%r;case"next":return(n+1)%r;default:return n}},t.prototype.next=function(){this.autoSlide("next")},t.prototype.prev=function(){this.autoSlide("prev")},t.prototype.clearAutoTimeout=function(){clearTimeout(this.intervalTimeout),clearTimeout(this.durationTimeout)},t.prototype.renderDots=function(){var e=this.props.classnames,t=this.state,a=t.current,n=t.options;return r.default.createElement("div",{className:e("Carousel-dotsControl"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Array.from({length:n.length}).map(function(t,n){return r.default.createElement("span",{key:n,className:e("Carousel-dot",a===n?"is-active":"")})}))},t.prototype.renderArrows=function(){var e=this.props.classnames;return r.default.createElement("div",{className:e("Carousel-arrowsControl"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r.default.createElement("div",{className:e("Carousel-leftArrow"),onClick:this.prev},r.default.createElement(l.Icon,{icon:"left-arrow",className:"icon"})),r.default.createElement("div",{className:e("Carousel-rightArrow"),onClick:this.next},r.default.createElement(l.Icon,{icon:"right-arrow",className:"icon"})))},t.prototype.handleMouseEnter=function(){this.setState({showArrows:!0}),this.clearAutoTimeout()},t.prototype.handleMouseLeave=function(){this.setState({showArrows:!1}),this.prepareAutoSlide()},t.prototype.render=function(){var e=this,t=this.props,a=t.render,n=t.className,i=t.classnames,s=t.itemSchema,l=t.animation,c=t.width,m=t.height,h=t.controls,_=t.controlsTheme,f=t.placeholder,y=t.data,g=t.name,v=this.state,w=v.options,E=v.showArrows,b=v.current,A=v.nextAnimation,T=null,N={};c?N.width=c+"px":"",m?N.height=m+"px":"";var C=[h.indexOf("dots")>-1,h.indexOf("arrows")>-1],S=C[0],x=C[1],M=A||l;return Array.isArray(w)&&w.length&&(T=r.default.createElement("div",{ref:this.wrapperRef,className:i("Carousel-container"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},w.map(function(t,n){return r.default.createElement(o.default,{mountOnEnter:!0,unmountOnExit:!0,"in":n===b,timeout:500,key:n},function(n){var l;return n===o.ENTERING&&e.wrapperRef.current&&e.wrapperRef.current.childNodes.forEach(function(e){return e.offsetHeight}),r.default.createElement("div",{className:i("Carousel-item",M,u[n])},a(b+"/body",s?s:p,{data:d.createObject(y,d.isObject(t)?t:(l={item:t},l[g]=t,l))}))})}),S?this.renderDots():null,x&&E?this.renderArrows():null)),r.default.createElement("div",{className:i("Carousel Carousel--"+_,n),style:N},T?T:f)},t.defaultProps={auto:!0,interval:5e3,duration:500,controlsTheme:"light",animation:"fade",controls:["dots","arrows"],placeholder:"-"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"prepareAutoSlide",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"autoSlide",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],t.prototype,"transitFramesTowards",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"getFrameId",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"next",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"prev",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"clearAutoTimeout",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),t}(r.default.Component);t.Carousel=c;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)carousel/,name:"carousel"})],t)}(c);t.CarouselRenderer=m}); -;/*!src/compat.ts*/ -amis.define("ae4b35c",function(e,r){"use strict";function n(e){var r={},t=!1;return r.controls=Array.isArray(e.controls)?e.controls.concat():[],r.controls=r.controls.map(function(e){if(Array.isArray(e)){var r=n({type:"group",controls:e});return r!==e&&(t=!0),r}return e}),e.fieldSet&&(Array.isArray(e.fieldSet)?e.fieldSet:[e.fieldSet]).forEach(function(s){t=!0,r.controls.push(a.__assign(a.__assign({},n(s)),{type:"fieldSet",collapsable:e.collapsable}))}),e.tabs&&(t=!0)&&r.controls.push({type:"tabs",tabs:e.tabs.map(function(e){return n(e)})}),t&&(e=a.__assign(a.__assign({},e),r),delete e.fieldSet,delete e.tabs),e}function t(e){var r=!1,n=e.map(function(e){return Array.isArray(e)?(r=!0,t(e)):e});return r||(n=e),{type:"hbox",columns:n}}Object.defineProperty(r,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("0f9ebdf"),o=e("5ade3b1"),i=e("635e59b"),l=e("760e4be"),c=e("3abf50d"),d=e("8ee3b98"),u=e("20f7ce6"),f=e("aa22e57"),m=e("9a80175"),b=e("40fc403");s.addSchemaFilter(function(e,r){return r.component!==o.CheckboxControlRenderer?e:(e.label&&"undefined"==typeof e.option&&(e=a.__assign({},e),e.option=e.label,delete e.label),e)}),s.addSchemaFilter(function(e,r){if(r.component!==i.FormRenderer)return e;if(e.fieldSet||e.tabs)e=n(e);else if(Array.isArray(e.controls)){var t=!1,s=e.controls.map(function(e){if(Array.isArray(e)){var r=n({type:"group",controls:e});return r!==e&&(t=!0),r}return e});t&&(e=a.__assign(a.__assign({},e),{controls:s}))}return e}),s.addSchemaFilter(function(e,r){if(r.component!==l.FieldSetRenderer)return e;if(Array.isArray(e.controls)){var t=!1,s=e.controls.map(function(e){if(Array.isArray(e)){var r=n({type:"group",controls:e});return r!==e&&(t=!0),r}return e});t&&(e=a.__assign(a.__assign({},e),{controls:s}))}return e}),s.addSchemaFilter(function(e,r){if(r.component!==c.TabsRenderer)return e;if(Array.isArray(e.tabs)){var t=!1,s=e.tabs.map(function(e){var r=!1,s=(e.controls||[]).map(function(e){if(Array.isArray(e)){var t=n({type:"group",controls:e});return t!==e&&(r=!0),t}return e});return r&&(t=!0,e=a.__assign(a.__assign({},e),{controls:s})),e});t&&(e=a.__assign(a.__assign({},e),{tabs:s}))}return e}),s.addSchemaFilter(function(e,r){if(r.component!==d.CardRenderer&&r.component!==u.ListItemRenderer)return e;if(Array.isArray(e.body)){var n=!1,s=e.body.map(function(e){return Array.isArray(e)?(n=!0,t(e)):e});n&&(e=a.__assign(a.__assign({},e),{body:s}))}return e}),s.addSchemaFilter(function(e,r){return r.component!==f.ButtonGroupControlRenderer?e:((e.btnClassName||e.btnActiveClassName)&&(e=a.__assign(a.__assign({},e),{btnLevel:m.getLevelFromClassName(e.btnClassName),btnActiveLevel:m.getLevelFromClassName(e.btnActiveClassName)}),delete e.btnClassName,delete e.btnActiveClassName),e)}),s.addSchemaFilter(function(e,r){return r.component!==l.FieldSetRenderer?e:(e.className&&!e.size&&/\bfieldset(?:\-(xs|sm|md|lg))?\b/.test(e.className)&&(e=a.__assign(a.__assign({},e),{size:RegExp.$1||"base",className:e.className.replace(/\bfieldset(?:\-(xs|sm|md|lg))?\b/,"")}),delete e.btnClassName,delete e.btnActiveClassName),e)}),s.addSchemaFilter(function(e,r){return r.component!==b.ServiceRenderer?e:(e.body&&e.body.controls&&(e=a.__assign(a.__assign({},e),{controls:e.body.controls}),delete e.body),e)})}); -;/*!src/themes/default.ts*/ -amis.define("bbacc46",function(s,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("256b65d");e.classPrefix="a-",e.classnames=a.makeClassnames(e.classPrefix),a.theme("default",{classPrefix:e.classPrefix,classnames:e.classnames})}); -;/*!src/themes/cxd.ts*/ -amis.define("6149e0d",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("256b65d");o.theme("cxd",{classPrefix:"cxd-",components:{toast:{closeButton:!0}},renderers:{form:{horizontal:{leftFixed:!0}},pagination:{maxButtons:9,showPageInput:!1},fieldset:{collapsable:!1},remark:{icon:"iconfont icon-warning-mark",placement:"right"},tabs:{mode:"line"},"tabs-control":{mode:"line"},"range-control":{showInput:!0,clearable:!0}}})}); -;/*!src/themes/dark.ts*/ -amis.define("566aeed",function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=e("256b65d");s.classPrefix="dark-",s.classnames=a.makeClassnames(s.classPrefix),a.theme("dark",{classPrefix:s.classPrefix,classnames:s.classnames,renderers:{json:{jsonTheme:"eighties"},"editor-control":{editorTheme:"vs-dark"}}})}); -;/*!src/index.tsx*/ -amis.define("d019970",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),t=e("0f9ebdf");a.render=t.render,a.Renderer=t.Renderer,a.getRendererByName=t.getRendererByName,a.resolveRenderer=t.resolveRenderer,a.filterSchema=t.filterSchema,a.clearStoresCache=t.clearStoresCache,a.updateEnv=t.updateEnv;var d=e("1caead1");a.wrapFetcher=d.wrapFetcher,a.buildApi=d.buildApi;var s=e("6a2dbb7");a.filter=s.filter,a.reigsterTplEnginer=s.reigsterTplEnginer,a.evalExpression=s.evalExpression,a.evalJS=s.evalJS,a.setCustomEvalJs=s.setCustomEvalJs,a.setCustomEvalExpression=s.setCustomEvalExpression;var c=r.__importStar(e("9a80175"));a.utils=c;var f=e("67d35e6");a.resizeSensor=f.resizeSensor;var l=e("960de17");a.setIconVendor=l.setIconVendor;var b=e("b7bbd16");a.Icon=b.Icon,a.registerIcon=b.registerIcon;var i=e("448f42f");a.RegisterStore=i.RegisterStore;var o=e("5ab4e9d");a.setDefaultLocale=o.setDefaultLocale,a.getDefaultLocale=o.getDefaultLocale,a.makeTranslator=o.makeTranslator,a.registerLocale=o.register,e("7648928"),e("30de479"),e("4b7dfbe"),e("d539455"),e("10294a9"),e("bb5331d"),e("d221521"),e("3227a42"),e("e5683c7"),e("4fd96cf"),e("0afb30b"),e("8ee3b98"),e("29e1f6a"),e("e299c64"),e("5cdd617"),e("6c4a05a"),e("635e59b"),e("610fd77"),e("dd5dcd2"),e("a1e61d2"),e("e1b1eb7"),e("85dae7e"),e("eff65fe"),e("2b693f3"),e("5ade3b1"),e("99d982b"),e("055a9f9"),e("0f75897"),e("c6f2783"),e("aa22e57"),e("d7f3dfa"),e("2dfb851"),e("64723a8"),e("05b43e3"),e("86ddd97"),e("d09e479"),e("b0a035c"),e("48cac0f"),e("d7f8ee3"),e("ee37b69"),e("90765dc"),e("cf6ad73"),e("162bd80"),e("690a2f4"),e("db77605"),e("9b389bb"),e("3919ee5"),e("647fc2f"),e("8a88f1c"),e("a57a440"),e("27eb5b8"),e("138c832"),e("d5c9577"),e("4be33a0"),e("2406202"),e("5271012"),e("d2efb65"),e("9d9f047"),e("399400a"),e("40fc403"),e("f6d94c0"),e("06cfa10"),e("3ced9f1"),e("33d5c8a"),e("760e4be"),e("3abf50d"),e("13e7e33"),e("7f271f4"),e("fe6117b"),e("5e68c3c"),e("aab7b91"),e("ae1a7f3"),e("fcb3580"),e("011f81c"),e("20f7ce6"),e("0341968"),e("100b8cb"),e("244f74d"),e("9708de1"),e("66c3054"),e("f6086a9"),e("605b41a"),e("66d455f"),e("c2029c1"),e("f52f675"),e("da6cdad"),e("386af39"),e("8f3f322"),e("94e9d59"),e("29937cf"),e("3cbc777"),e("2390f9f"),e("3a449e1"),e("4de0bd7"),e("211dcc3"),e("e6d92e6"),e("59d3d63"),e("a1b9b52"),e("6a16931"),e("f277389"),e("06e3087"),e("b81abcd"),e("f39bdac");var n=r.__importStar(e("919cbd9"));a.Scoped=n.default,a.ScopedContext=n.ScopedContext;var v=e("567b83c");a.FormItem=v.FormItem,e("ae4b35c"),e("bbacc46"),e("6149e0d"),e("566aeed");var m=e("f2e345e");a.registerFilter=m.registerFilter,a.filterDate=m.filterDate,a.relativeValueRe=m.relativeValueRe,a.resolveVariable=m.resolveVariable,a.resolveVariableAndFilter=m.resolveVariableAndFilter;var u=e("943464a");a.addRule=u.addRule,a.str2rules=u.str2rules,a.validate=u.validate,a.validateObject=u.validateObject;var p=e("d57879c");a.normalizeOptions=p.normalizeOptions;var g=e("b86428a");a.OptionsControl=g.OptionsControl;var S=e("256b65d");a.classnames=S.classnames,a.getClassPrefix=S.getClassPrefix,a.setDefaultTheme=S.setDefaultTheme,a.theme=S.theme,a.getTheme=S.getTheme;var C=S.getClassPrefix();a.classPrefix=C,r.__exportStar(e("1953fc1"),a)}); -;/*!examples/components/SchemaRender.jsx*/ -amis.define("ec59a60",function(e,t){"use strict";function n(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e){var t;return e.$schema||(e=a.__assign({$schema:"https://houtai.baidu.com/v2/schemas/page.json"},e)),h.withRouter((t=function(t){function o(e){var n=t.call(this,e)||this;n.state={open:!1},n.toggleCode=function(){return n.setState({open:!n.state.open})},n.close=function(){return n.setState({open:!1})};var o=e.router,a=function(e){e=e||"";var t=o.getCurrentLocation();e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),a=e.indexOf("#"),r=~n?e.substring(0,n):~a?e.substring(0,a):e,i=~n?e.substring(n,~a?a:void 0):"",s=~a?e.substring(a):t.hash;if(r){if("/"!=r[0]&&!/^https?:\/\//.test(r)){var l=t.pathname,u=l.split("/");u.pop();for(var c=void 0;c=/^\.\.?\//.exec(r);)"../"===c[0]&&u.pop(),r=r.substring(c[0].length);r=u.concat(r).join("/")}}else r=t.pathname;return r+i+s};return n.env={updateLocation:function(e,t){o[t?"replace":"push"](a(e))},isCurrentUrl:function(e){var t=a(e);return o.isActive(t)},jumpTo:function(e){e=a(e),/^https?:\/\//.test(e)?window.location.replace(e):o.push(e)},fetcher:function(e){var t=e.url,n=e.method,o=e.data,a=e.config,r=e.headers;return a=a||{},a.headers=r||{},a.cancelExecutor&&(a.cancelToken=new s.default.CancelToken(a.cancelExecutor)),o&&o instanceof FormData||!o||"string"==typeof o||o instanceof Blob||o instanceof ArrayBuffer||(o=JSON.stringify(o),a.headers["Content-Type"]="application/json"),"post"!==n&&"put"!==n&&"patch"!==n?(o&&("delete"===n?a.data=o:a.params=o),s.default[n](t,a)):s.default[n](t,o,a)},isCancel:function(e){return s.default.isCancel(e)},notify:function(e,t){return l.toast[e]?l.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:u.alert,confirm:u.confirm,copy:function(e){return console.log("Copy",e)}},n.handleEditorMount=n.handleEditorMount.bind(n),n}return a.__extends(o,t),o.prototype.handleEditorMount=function(e,t){t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0})},o.prototype.renderCode=function(){return r.default.createElement(d.default,{getComponent:n,editorDidMount:this.handleEditorMount,language:"json",value:e,placeholder:"加载中,请稍后。。。",disabled:!0})},o.prototype.renderSchema=function(){var t=this.props,n=(t.router,t.location),o=t.theme,a=t.locale;return i.render(e,{location:n,theme:o,locale:a},this.env)},o.prototype.render=function(){var e=this.props.classPrefix,t=this.props.showCode;return r.default.createElement("div",{className:"schema-wrapper"},t!==!1?r.default.createElement(f.default,{classPrefix:e,size:"lg",onHide:this.close,show:this.state.open,position:"left"},this.state.open?this.renderCode():null):null,this.renderSchema(),t!==!1?r.default.createElement(p.Portal,{container:function(){return document.querySelector("#headerLeftBtns")}},r.default.createElement(c.default,{classPrefix:e,onClick:this.toggleCode,active:this.state.open,iconOnly:!0,tooltip:"查看源码",level:"link",placement:"bottom",className:"view-code"},r.default.createElement("i",{className:"fa fa-code"})),r.default.createElement("span",{className:"inline v-middle text-info"},"←点击这里查看源码")):null)},o}(r.default.Component),t.displayName="SchemaRenderer",t))}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),i=e("d019970"),s=a.__importDefault(e("node_modules/axios/index")),l=e("6ae88e0"),u=e("bfe4ee0"),c=a.__importDefault(e("a67acca")),d=a.__importDefault(e("4783ce8")),f=a.__importDefault(e("01a937e")),p=e("node_modules/react-overlays/lib/index"),h=e("node_modules/react-router/lib/index");t.default=o}); -;/*!examples/components/Page/Simple.jsx*/ -amis.define("da274e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:"内容部分. 可以使用 \\${var} 获取变量。如: `\\$date`: ${date}",aside:"边栏部分",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initData"}}); -;/*!examples/components/Page/Error.jsx*/ -amis.define("2d1fe26",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:["\n

`initApi` 拉取失败时,页面内容区会显示对应的错误信息。

\n\n

其他提示示例

\n ",{type:"alert",level:"success",body:"温馨提示:对页面功能的提示说明,绿色为正向类的消息提示"},{type:"alert",level:"warning",body:"您的私有网络已达到配额,如需更多私有网络,可以通过工单申请"}],aside:"边栏",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initDataError"}}); -;/*!examples/components/Page/Form.jsx*/ -amis.define("71fbd58",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单页面",body:{type:"form",mode:"horizontal",title:"",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{label:"Name",type:"text",name:"name"},{label:"Email",type:"email",name:"email"}]}}}); -;/*!examples/components/Form/Mode.jsx*/ -amis.define("0fa6650",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单各种展示模式汇总",remark:"展示各种模式的 Form",body:[{type:"grid",columns:[{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱",size:"full"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码",size:"full"},{type:"checkbox",name:"rememberMe",label:"记住登录"},{type:"submit",btnClassName:"btn-default",label:"登录"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式 input md 尺寸",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱",size:"md",remark:"xxxx",hint:"bla bla bla"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码",size:"md"},{type:"checkbox",name:"rememberMe",label:"记住登录"},{type:"submit",btnClassName:"btn-default",label:"登录"}]}]},{type:"grid",columns:[{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式,左右摆放 左右比率分配 ",mode:"horizontal",autoFocus:!1,horizontal:{left:"col-sm-2",right:"col-sm-10",offset:"col-sm-offset-2"},controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",required:!0,desc:"表单描述文字"},{type:"password",name:"password",label:"密码",placeholder:"输入密码"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式,左右摆放 左侧固定宽度 input md 尺寸",mode:"horizontal",autoFocus:!1,horizontal:{leftFixed:"xs"},controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",required:!0,desc:"表单描述文字",size:"md",remark:"xxxx",hint:"bla bla bla"},{type:"password",name:"password",label:"密码",placeholder:"输入密码",size:"md"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"内联模式",mode:"inline",autoFocus:!1,controls:[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"auto"},{type:"password",name:"password",placeholder:"密码",size:"auto",remark:"Bla bla bla"},{type:"checkbox",name:"rememberMe",label:"记住登录",size:"auto"},{type:"submit",label:"登录"},{type:"button",label:"导出",url:"http://www.baidu.com/",level:"success"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式下用数组包起来还能控制一行显示多个",mode:"normal",autoFocus:!1,controls:[{type:"text",name:"name",placeholder:"请输入...",label:"名字",size:"full"},{type:"divider"},{type:"group",controls:[{type:"email",name:"email",placeholder:"输入邮箱",label:"邮箱",size:"full"},{type:"password",name:"password",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email2",mode:"inline",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password2",label:"密码",mode:"inline",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email3",mode:"inline",placeholder:"请输入邮箱地址",label:"邮箱",size:"full",columnClassName:"v-bottom"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email4",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password4",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full",columnClassName:"v-bottom"}]},{type:"divider"},{type:"checkbox",name:"rememberMe",label:"记住我"},{type:"submit",btnClassName:"btn-default",label:"提交"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式用数组包起来也能控制一行显示多个",mode:"horizontal",autoFocus:!1,controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"divider"},{type:"group",controls:[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password2",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email4",placeholder:"请输入邮箱地址",label:"邮箱",size:"full",columnClassName:"col-sm-6",horizontal:{left:"col-sm-4",right:"col-sm-8"}},{type:"password",name:"password4",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"group",label:"邮箱",gap:"xs",controls:[{label:!1,type:"email",name:"email5",placeholder:"请输入邮箱地址",size:"full"},{type:"password",name:"password5",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"group",label:"邮箱",description:"bla bla",gap:"xs",controls:[{type:"email",name:"email6",placeholder:"请输入邮箱地址",mode:"inline"},{type:"password",name:"password6",placeholder:"请输入密码",labelClassName:"w-auto p-r-none",mode:"inline"}]},{type:"divider"},{type:"group",label:"邮箱",description:"bla bla",direction:"vertical",controls:[{type:"email",name:"email9",mode:"normal",placeholder:"请输入邮箱地址",inline:!0,description:"Bla blamfejkf fdjk"},{type:"password",name:"password9",mode:"normal",placeholder:"请输入密码",labelClassName:"w-auto p-r-none"}]},{type:"divider"},{type:"checkbox",name:"rememberMe",label:"记住我"},{type:"submit",btnClassName:"btn-default",label:"Submit"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"Inline form 用数组包起来还能控制一行显示多个",mode:"inline",submitText:null,autoFocus:!1,controls:[[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"full"},{type:"password",name:"password",placeholder:"Password",size:"full"}],{type:"divider"},[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"full"},{type:"checkbox",name:"rememberMe",label:"记住我",size:"full"},{type:"button-toolbar",buttons:[{type:"submit",label:"登录"},{type:"button",label:"导出",url:"http://www.baidu.com/",level:"success"}]}]]}]}}); -;/*!examples/components/Form/FieldSet.jsx*/ -amis.define("65795e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"FieldSet 示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],collapsable:!0,title:"fieldSet 可以对表单元素做个分组",controls:[{type:"fieldSet",title:"基本信息",collapsable:!0,controls:[{type:"group",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",label:!1,placeholder:"Password"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"Remember me"}]}]},{title:"其他信息",type:"fieldSet",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe",option:"记住我"}]}]},{title:"FieldSet 样式集",type:"form",controls:[{title:"超级小",type:"fieldSet",className:"fieldset-xs",controls:[{type:"plain",text:"文本 ..."}]},{title:"小尺寸",type:"fieldSet",className:"fieldset-sm",controls:[{type:"plain",text:"文本 ..."}]},{title:"正常尺寸",type:"fieldSet",className:"fieldset",controls:[{type:"plain",text:"文本 ..."}]},{title:"中大尺寸",type:"fieldSet",className:"fieldset-md",controls:[{type:"plain",text:"文本 ..."}]},{title:"超大尺寸",type:"fieldSet",className:"fieldset-lg",controls:[{type:"plain",text:"文本 ..."}]}]}]}}); -;/*!examples/components/Form/Tabs.jsx*/ -amis.define("1e9ff20",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Tabs 示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"",actions:[{type:"button",actionType:"dialog",label:"弹框中的 Tabs",level:"info",dialog:{title:"",body:{type:"form",mode:"horizontal",horizontal:{leftFixed:"xs"},api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{type:"tabs",tabs:[{title:"基本信息",controls:[[{type:"email",name:"email1",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",placeholder:"密码",label:!1}],{type:"divider"},[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"记住我"}]]},{title:"其他信息",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe2",option:"记住我"}]}]}]}}},{type:"submit",label:"提交",primary:!0}],controls:[{type:"tabs",tabs:[{title:"基本信息",hash:"tab1",controls:[[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",placeholder:"密码",label:!1}],{type:"divider"},[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"记住我"}]]},{title:"其他信息",hash:"tab2",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe4",label:"记住我"}]}]}]}]}}); -;/*!examples/components/Form/Remote.jsx*/ -amis.define("3d2e3d4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"动态拉取选项",name:"page-form-remote",body:[{type:"form",title:"动态表单元素示例",name:"demo-form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",mode:"horizontal",actions:[{type:"submit",label:"提交"}],controls:[{name:"select",type:"select",label:"动态选项",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",description:"通过接口一口气拉取选项",clearable:!0,searchable:!0},{type:"divider"},{name:"select2",type:"select",label:"选项自动补全",autoComplete:"https://houtai.baidu.com/api/mock2/options/autoComplete?term=$term",placeholder:"请输入",description:"通过接口自动补全"},{type:"divider"},{type:"text",name:"text",label:"文本提示",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",placeholder:"请选择"},{type:"divider"},{name:"text2",type:"text",label:"文本自动补全",clearable:!0,autoComplete:"https://houtai.baidu.com/api/mock2/options/autoComplete2?term=$term",description:"通过接口自动补全"},{name:"chained",type:"chained-select",label:"级联选项",source:"https://houtai.baidu.com/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4&waiSeconds=1",desc:"无限级别, 只要 api 返回数据就能继续往下选择. 当没有下级时请返回 null.",value:"a,b"},{type:"divider"},{name:"tree",type:"tree",label:"动态树",source:"https://houtai.baidu.com/api/mock2/options/tree?waitSeconds=1"},{type:"divider"},{name:"matrix",type:"matrix",label:"动态矩阵开关",source:"https://houtai.baidu.com/api/mock2/options/matrix?waitSeconds=1"}]}]}}); -;/*!examples/components/Form/Reaction.jsx*/ -amis.define("6f89d30",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"显隐切换示例",body:[{name:"hiddenOn",type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Hide On 和 disabledOn 示例",controls:[{type:"radios",name:"type",label:"类型选择",inline:!0,value:"1",options:[{label:"类型 1",value:"1"},{label:"类型 2",value:"2"},{label:"类型 3",value:"3"}],description:'请切换类型来看效果'},{type:"text",label:"所有可见",name:"text1"},{type:"text",label:"类型2 可见",hiddenOn:"data.type != 2",name:"text2"},{type:"text",label:"类型3 不可点",disabledOn:"data.type == 3",name:"text3"},{type:"text",required:!0,label:"必填字段",name:"test4"},{type:"button-toolbar",buttons:[{type:"submit",disabledOn:"data.type == 1",label:"类型1不可点"},{type:"reset",label:"类型3出现且不可点",visibleOn:"data.type == 3",disabledOn:"data.type == 3"},{type:"button",label:"Baidu",href:"http://www.baidu.com?a=1&b=$test4"},{type:"button",actionType:"ajax",label:"No Submit",action:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=5"},{type:"submit",actionType:"ajax",label:"Submit",action:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=5"}]}]}]}}); -;/*!examples/components/Form/Validation.jsx*/ -amis.define("ee53c68",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单验证示例",toolbar:"文档",body:[{type:"form",autoFocus:!1,messages:{validateFailed:"请仔细检查表单规则,部分表单项没通过验证"},title:"表单",actions:[{type:"submit",label:"提交"}],api:"https://houtai.baidu.com/api/mock2/form/saveFormFailed?waitSeconds=2",mode:"horizontal",controls:[{type:"text",name:"test",label:"必填",required:!0},{type:"divider"},{name:"test1",type:"email",label:"Email"},{type:"divider"},{name:"url",type:"url",label:"Url"},{type:"divider"},{name:"num",type:"text",label:"数字",validations:"isNumeric"},{type:"divider"},{name:"alpha",type:"text",label:"字母或数字",validations:"isAlphanumeric"},{type:"divider"},{name:"int",type:"text",label:"整形",validations:"isInt"},{type:"divider"},{name:"minLength",type:"text",label:"长度限制",validations:"minLength:2,maxLength:10"},{type:"divider"},{name:"min",type:"text",label:"数值限制",validations:"maximum:10,minimum:2"},{type:"divider"},{name:"reg",type:"text",label:"正则",validations:"matchRegexp:/^abc/",validationErrors:{matchRegexp:"请输入abc开头的好么?"}},{type:"divider"},{name:"test2",type:"text",label:"服务端验证"}]}]}}); -;/*!examples/components/Form/Full.jsx*/ -amis.define("c9cebe3",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"所有 Form 元素列举",data:{id:1},body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"表单项",mode:"horizontal",autoFocus:!0,controls:[{type:"html",html:"

html 片段, 可以用来添加说明性文字

"},{type:"divider"},{type:"text",name:"var1",label:"文本"},{type:"divider"},{type:"text",name:"withHelp",label:"带提示信息",desc:"这是一段描述文字"},{type:"divider"},{type:"password",name:"password",label:"密码",inline:!0},{type:"divider"},{type:"number",name:"number",label:"数字",placeholder:"",inline:!0,value:5,min:1,max:10},{type:"divider"},{type:"tag",name:"tag",label:"标签",placeholder:"",clearable:!0,options:[{label:"诸葛亮",value:"zhugeliang"},{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"},{label:"野核",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{type:"divider"},{type:"text",name:"placeholder",label:"Placeholder",placeholder:"Placeholder"},{type:"divider"},{type:"text",disabled:!0,name:"disabled",label:"禁用状态",placeholder:"这里禁止输入内容"},{type:"divider"},{type:"text",name:"text-sug",label:"文本提示",options:["lixiaolong","zhouxingxing","yipingpei","liyuanfang"],addOn:{type:"text",label:"$"}},{type:"divider"},{type:"text",name:"text-sug-multiple",label:"文本提示多选",multiple:!0,options:["lixiaolong","zhouxingxing","yipingpei","liyuanfang"]},{type:"divider"},{type:"static",name:"static",labelClassName:"text-muted",label:"静态展示",value:"这是静态展示的值"},{type:"divider"},{type:"static",name:"static2",label:"静态展示",value:"这是静态展示的值",copyable:{content:"blabla"}},{type:"divider"},{type:"checkboxes",name:"checkboxes",label:"多选框",options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",disabled:!0,value:3}]},{type:"divider"},{type:"checkboxes",name:"checkboxesInline",label:"多选内联",inline:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"radios",name:"radios",label:"单选",options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",disabled:!0,value:3}]},{type:"divider"},{type:"radios",name:"radiosInline",label:"单选内联",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group",label:"按钮组",description:"类似于单选效果",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group2",label:"按钮组",clearable:!0,description:"可清除",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group3",label:"按钮组",multiple:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}],desc:"可多选"},{type:"divider"},{type:"list",name:"List",label:"List",desc:"也差不多,只是展示方式不一样",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"list",name:"list2",label:"List",desc:"可多选",multiple:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"list",name:"list4",label:"List",imageClassName:"thumb-lg",desc:"支持放张图片",options:[{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:1,label:"图片1"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:2,label:"图片2"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:3,label:"图片3"}]},{type:"divider"},{type:"list",name:"list5",label:"List",desc:"支持文字排版",options:[{value:1,body:'
\n
套餐:C01
\n
CPU:22核
\n
内存:10GB
\n
SSD盘:1024GB
\n
'},{value:2,body:'
\n
套餐:C02
\n
CPU:23核
\n
内存:11GB
\n
SSD盘:1025GB
\n
'},{value:3,disabled:!0,body:'
\n
套餐:C03
\n
CPU:24核
\n
内存:12GB
\n
SSD盘:1026GB
\n
'}]},{type:"divider"},{type:"rating",count:5,value:3,label:"评分",name:"rating",readOnly:!1,half:!1},{type:"divider"},{type:"switch",name:"switch",label:"开关"},{type:"divider"},{type:"checkbox",name:"checkbox",label:"勾选框",option:""},{type:"divider"},{type:"select",name:"type",label:"单选",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2}]},{type:"divider"},{type:"select",name:"type2",label:"多选",multiple:!0,inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2}]},{type:"divider"},{type:"color",name:"color",inline:!0,label:"Color"},{type:"divider"},{type:"date",name:"date",inline:!0,label:"日期"},{type:"divider"},{type:"datetime",name:"datetime",inline:!0,label:"日期+时间"},{type:"divider"},{type:"time",name:"time",inline:!0,label:"时间"},{type:"divider"},{type:"date-range",name:"daterangee",inline:!0,label:"时间范围"},{type:"divider"},[{type:"datetime",name:"starttime",label:"开始时间",maxDate:"${endtime}"},{type:"datetime",name:"endtime",label:"结束时间",minDate:"${starttime}"}],{type:"divider"},{type:"group",label:"时间范围",required:"",gap:"xs",description:"选择自定义后,可以选择日期范围",controls:[{type:"button-group",name:"range1",value:"today",btnActiveLevel:"primary",mode:"inline",options:[{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"近三天",value:"3days"},{label:"近一周",value:"week"},{label:"自定义",value:"custom"}]},{type:"date",name:"starttime1",maxDate:"${endtime1}",visibleOn:"data.range1 == 'custom'",mode:"inline"},{type:"date",name:"endtime1",minDate:"${starttime1}",visibleOn:"data.range1 == 'custom'",mode:"inline"}]},{type:"divider"},{type:"input-group",size:"sm",inline:!0,label:"Icon 组合",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search"},{type:"text",placeholder:"搜索作业ID/名称",inputClassName:"b-l-none p-l-none",name:"jobName"}]},{type:"divider"},{type:"input-group",label:"各种组合",inline:!0,controls:[{type:"select",name:"memoryUnits",options:[{label:"Gi",value:"Gi"},{label:"Mi",value:"Mi"},{label:"Ki",value:"Ki"}],value:"Gi"},{type:"text",name:"memory"},{type:"select",name:"memoryUnits2",options:[{label:"Gi",value:"Gi"},{label:"Mi",value:"Mi"},{label:"Ki",value:"Ki"}],value:"Gi"},{type:"button",label:"Go"}]},{type:"divider"},{type:"image",name:"image",label:"图片"},{type:"divider"},{type:"image",name:"imageCrop",label:"图片带裁剪",crop:{aspectRatio:1.7777777777777777}},{type:"divider"},{type:"image",name:"imageLimit",label:"图片带限制",limit:{width:200,height:200}},{type:"divider"},{type:"textarea",name:"textarea",label:"多行文本"},{type:"divider"},{label:"穿梭器",name:"a",type:"transfer",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",searchable:!0,searchApi:"https://houtai.baidu.com/api/mock2/options/autoComplete2?term=$term",selectMode:"list",sortable:!0,inline:!0},{type:"divider"},{type:"json-editor",name:"json",value:'{\n "a": 1,\n "b": [\n 1,\n 2,\n 3\n ]\n}',label:"Json Editor"},{type:"divider"},{type:"rich-text",name:"html",label:"Rich Text",value:"

Just do IT!

"},{type:"divider"},{label:"时间频率",type:"group",controls:[{name:"repeatCount",type:"range",label:!1,visibleOn:'data.repeatUnit == "year"'},{name:"repeatCount",type:"range",label:!1,max:11,min:1,visibleOn:'data.repeatUnit == "month"'},{name:"repeatCount",type:"range",label:!1,max:29,min:1,visibleOn:'data.repeatUnit == "day"'},{type:"select",name:"repeatUnit",label:!1,value:"none",columnClassName:"v-middle w-ssm no-grow",options:[{label:"不重复",value:"none"},{label:"年",value:"year"},{label:"月",value:"month"},{label:"日",value:"day"}]}]},{type:"divider"},{type:"tree",name:"tree",label:"树",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree",name:"trees",label:"树多选",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree-select",name:"selecttree",label:"树选择器",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree-select",name:"selecttrees",label:"树多选选择器",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"nested-select",name:"nestedSelect",label:"级联选择器",size:"sm",options:[{label:"A",value:"a"},{label:"B",value:"b",children:[{label:"B-1",value:"b-1"},{label:"B-2",value:"b-2"},{label:"B-3",value:"b-3"}]},{label:"C",value:"c"}]},{type:"nested-select",name:"nestedSelectMul",label:"级联选择器多选",size:"sm",multiple:!0,options:[{label:"A",value:"a"},{label:"B",value:"b",children:[{label:"B-1",value:"b-1"},{label:"B-2",value:"b-2"},{label:"B-3",value:"b-3"}]},{label:"C",value:"c"}]},{type:"divider"},{type:"city",name:"city",label:"城市选择器"},{type:"divider"},{type:"matrix",name:"matrix",label:"矩阵开关",rowLabel:"行标题说明",columns:[{label:"列1"},{label:"列2"}],rows:[{label:"行1"},{label:"行2"}]},{type:"divider"},{type:"combo",name:"combo",label:"组合单条",controls:[{name:"a",type:"text",placeholder:"A"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo2",label:"组合多条",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"A"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"form",label:"子表单",name:"subForm",btnLabel:"点击设置",form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"divider"},{type:"form",label:"子表单多条",name:"subForm2",btnLabel:"点击设置",labelField:"a",multiple:!0,form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"divider"},{type:"file",name:"file",label:"文件上传",joinValues:!1},{type:"divider"},{type:"range",name:"range",label:"范围"},{type:"divider"},{type:"button-toolbar",buttons:[{type:"submit",label:"登录"},{type:"reset",label:"重置"},{type:"button",label:"导出",href:"http://www.baidu.com",level:"success"}]}],actions:[{type:"submit",label:"登录"},{type:"reset",label:"重置"},{type:"button",label:"导出",href:"http://www.baidu.com",level:"success"}]}]}}); -;/*!examples/components/Form/Static.jsx*/ -amis.define("d2ec869",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"所有 Form 元素列举",data:{id:1,image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",images:[{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692722/4f3cb4202335.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692722/4f3cb4202335.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692942/d8e4992057f9.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692942/d8e4992057f9.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693148/1314a2a3d3f6.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693148/1314a2a3d3f6.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693379/8f2e79f82be0.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693379/8f2e79f82be0.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693566/552b175ef11d.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693566/552b175ef11d.jpeg"}]},body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"表单项静态展示",mode:"horizontal",controls:[{type:"static",label:"文本",value:"文本"},{type:"divider"},{type:"static-tpl",label:"模板",tpl:"自己拼接 HTML 取变量 \\${id}: ${id}"},{type:"divider"},{type:"static-date",label:"日期",value:Math.round(Date.now()/1e3)},{type:"divider"},{type:"static-datetime",label:"日期时间",value:Math.round(Date.now()/1e3)},{type:"divider"},{type:"static-mapping",label:"映射",value:Math.floor(5*Math.random()),map:{"*":"-",0:"",1:"",2:"",3:"",4:""}},{type:"divider"},{type:"static-progress",label:"进度",value:66.66},{type:"divider"},{type:"static-image",label:"图片",name:"image",thumbMode:"cover",thumbRatio:"4:3",title:"233",imageCaption:"jfe fjkda fejfkda fejk fdajf dajfe jfkda",popOver:{title:"查看大图",body:'
'}},{type:"divider"},{type:"static-image",label:"图片自带放大",name:"image",thumbMode:"cover",thumbRatio:"4:3",title:"233",imageCaption:"jfe fjkda fejfkda fejk fdajf dajfe jfkda",enlargeAble:!0,originalSrc:"${image}"},{type:"static-images",label:"图片集",name:"images",thumbMode:"cover",thumbRatio:"4:3",enlargeAble:!0,originalSrc:"${src}"},{type:"divider"},{type:"static-json",label:"JSON",value:{a:1,b:2,c:{d:3}}},{type:"divider"},{type:"static",label:"可复制",value:"文本",copyable:{content:"内容,支持变量 ${id}"}},{type:"divider"},{type:"static",name:"text",label:"可快速编辑",value:"文本",quickEdit:!0}]}]}}); -;/*!examples/components/Form/Hint.jsx*/ -amis.define("435ef3d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"其他类型演示",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Hint demo",mode:"horizontal",horizontal:{leftFixed:!0},controls:[{name:"button",type:"button",label:"ID",value:"",size:"xs",hint:"比如输入 a-xxxx-xxx"},{type:"input-group",size:"md",label:"Icon 组合",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search",vendor:"iconfont"},{type:"text",placeholder:"搜索作业ID/名称",inputClassName:"b-l-none p-l-none",name:"jobName"}]},{name:"a",type:"text",label:"ID",value:"",size:"xs",hint:"比如输入 a-xxxx-xxx"},{name:"b",type:"text",label:"ID",value:"",size:"sm",hint:"比如输入 a-xxxx-xxx"},{name:"c",type:"text",label:"ID",value:"",size:"md",hint:"比如输入 a-xxxx-xxx"},{name:"d",type:"text",label:"ID",value:"",size:"lg",hint:"比如输入 a-xxxx-xxx"},{name:"tag",type:"tag",label:"Tag",size:"md",clearable:!0,placeholder:"多个标签以逗号分隔",options:["周小度","杜小度"]}]}]}}); -;/*!examples/components/Form/FieldSetInTabs.jsx*/ -amis.define("90d3d67",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"FieldSet In Tabs",remark:"",body:{type:"form",collapsable:!0,tabs:[{title:"Tab A",fieldSet:[{title:"Group A",tabs:[{title:"SubTab A",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]},{title:"SubTab B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]},{title:"Group B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]},{title:"Tab B",fieldSet:[{title:"Group A",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]},{title:"Group B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]}]}}}); -;/*!examples/components/Form/Combo.jsx*/ -amis.define("4f1646b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Combo 示例",body:[{type:"tabs",tabs:[{title:"基本用法",hash:"basic",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"text",label:"文本",name:"a"},{type:"divider"},{type:"combo",name:"combo1",label:"组合多条多行",multiple:!0,multiLine:!0,value:[{}],controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"],size:"full"}]},{type:"button",label:"独立排序",level:"dark",className:"m-t-n-xs",size:"sm",actionType:"dialog",visibleOn:"data.combo1.length > 1",dialog:{title:"对 Combo 进行 拖拽排序",body:{type:"form",controls:[{type:"combo",name:"combo1",label:!1,multiple:!0,draggable:!0,addable:!1,removable:!1,value:[{}],controls:[{name:"a",type:"static",tpl:"${a} - ${b}"}]}]},actions:[{type:"submit",mergeData:!0,label:"确认",level:"primary"},{type:"button",actionType:"close",label:"取消"}]}},{type:"combo",name:"combo2",label:"组合多条单行",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:"",columnClassName:"w-sm"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo3",label:"组合单条多行",multiLine:!0,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo4",label:"组合单条单行",controls:[{name:"a",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",type:"select",options:["a","b","c"]}]}]}]},{title:"内联样式",hash:"inline",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo11",label:"组合多条多行内联",multiple:!0,multiLine:!0,inline:!0,value:[{}],controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:""},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo22",label:"组合多条单行内联",multiple:!0,inline:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo33",label:"组合单条多行内联",multiLine:!0,inline:!0,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:""},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo44",label:"组合单条单行内联",inline:!0,controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]}]}]},{title:"唯一验证",hash:"unique",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo666",label:"组合多条唯一",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:"",unique:!0},{name:"b",type:"select",options:["a","b","c"],unique:!0}]}]}]},{title:"可拖拽排序",hash:"sortable",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo777",label:"可拖拽排序",multiple:!0,value:[{a:"1",b:"a"},{a:"2",b:"b"}],draggable:!0,controls:[{name:"a",type:"text",placeholder:"文本",unique:!0},{name:"b",type:"select",options:["a","b","c"],unique:!0}]}]}]},{title:"值打平",hash:"flat",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo888",label:"可打平只存储值",multiple:!0,flat:!0,value:["red","pink"],draggable:!0,controls:[{name:"a",type:"color",placeholder:"选取颜色"}]},{type:"static",name:"combo888",label:"当前值",tpl:"
${combo888|json}
"}]}]},{title:"条件",hash:"conditions",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:['

添加时可选择类型,比如这个栗子,可以选择是文本类型还是数字类型

',{type:"combo",name:"combo-conditions1",label:"单选",value:{type:"number"},multiLine:!0,conditions:[{label:"文本",test:'this.type === "text"',scaffold:{type:"text",label:"文本",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"}]},{label:"数字",test:'this.type === "number"',scaffold:{type:"number",label:"数字",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"},{label:"最小值",name:"min",type:"number"},{label:"最大值",name:"max",type:"number"},{label:"步长",name:"step",type:"number"}]}]},{type:"combo",name:"combo-conditions2",label:"多选",value:[{type:"text"}],multiLine:!0,multiple:!0,typeSwitchable:!1,conditions:[{label:"文本",test:'this.type === "text"',scaffold:{type:"text",label:"文本",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"}]},{label:"数字",test:'this.type === "number"',scaffold:{type:"number",label:"数字",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"},{label:"最小值",name:"min",type:"number"},{label:"最大值",name:"max",type:"number"},{label:"步长",name:"step",type:"number"}]}]}]}]},{title:"Tabs",hash:"tabs",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo101",label:"组合多条多行",multiple:!0,multiLine:!0,value:[{}],tabsMode:!0,tabsStyle:"card",maxLength:3,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"],size:"full"}]}]}]},{title:"其他",hash:"others",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"text",disabled:!0,label:"父级值",name:"a_super",value:"123"},{type:"combo",name:"combo999",label:"可获取父级数据",multiple:!0,canAccessSuperData:!0,controls:[{name:"a_super",type:"text"}]},{type:"combo",name:"combo9999",label:"显示序号",multiple:!0,controls:[{type:"tpl",tpl:"<%= data.index + 1%>",className:"p-t-xs",mode:"inline"},{name:"a",type:"text"}]}]}]}]}]}}); -;/*!examples/components/Form/SubForm.jsx*/ -amis.define("c6bae66",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"SubForm 示例",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Form elements",mode:"horizontal",controls:[{type:"form",label:"子表单单条",name:"subForm1",btnLabel:"点击设置",form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"form",label:"子表单多条",name:"subForm2",labelField:"a",btnLabel:"点击设置",multiple:!0,form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}}]}]}}); -;/*!examples/components/Form/RichText.jsx*/ -amis.define("c938c8b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"富文本编辑器",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Form elements",controls:[{name:"html",type:"rich-text",label:"富文本",value:"

Just do IT

"}]}]}}); -;/*!examples/components/Form/Editor.jsx*/ -amis.define("9b0994b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Editor",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",controls:[{name:"javascript",type:"editor",label:"Javascript",language:"javascript",value:"console.log(1, 2, 3);"},{name:"html",type:"editor",language:"html",label:"Html",value:"Hello

world

"},{name:"css",type:"editor",language:"css",label:"CSS",value:"body {color: red;}"},{name:"json",type:"editor",language:"json",label:"JSON",value:'{"a": 1, "b": 2}'}]}]}}); -;/*!examples/components/Form/Transfer.jsx*/ -amis.define("6bc539d",function(l,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Transfer 穿梭器 示例",body:[{type:"form",title:"",mode:"horizontal",actions:[{type:"submit",label:"提交"}],controls:[{label:"默认",type:"transfer",name:"transfer1",options:[{label:"诸葛亮",value:"zhugeliang"},{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"},{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]},{label:"分组",type:"transfer",name:"transfer2",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"表格形式",type:"transfer",name:"transfer3",selectMode:"table",columns:[{name:"label",label:"英雄"},{name:"position",label:"位置"}],options:[{label:"诸葛亮",value:"zhugeliang",position:"中单"},{label:"曹操",value:"caocao",position:"上单"},{label:"钟无艳",value:"zhongwuyan",position:"上单"},{label:"李白",value:"libai",position:"打野"},{label:"韩信",value:"hanxin",position:"打野"},{label:"云中君",value:"yunzhongjun",position:"打野"}]},{label:"树型展示",type:"transfer",name:"transfer4",selectMode:"tree",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"级联选择",type:"transfer",name:"transfer5",selectMode:"chained",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"带搜索",type:"transfer",name:"transfer6",selectMode:"chained",searchable:!0,sortable:!0,options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"组合穿梭器",type:"tabs-transfer",name:"a",sortable:!0,selectMode:"tree",searchable:!0,options:[{label:"成员",selectMode:"tree",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"用户",selectMode:"chained",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]}]},{label:"延时加载",type:"transfer",name:"transfer7",selectMode:"tree",deferApi:"https://houtai.baidu.com/api/mock2/form/deferOptions?label=${label}",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",defer:!0},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},,{label:"关联选择模式",type:"transfer",name:"b",sortable:!0,searchable:!0,deferApi:"https://houtai.baidu.com/api/mock2/form/deferOptions?label=${label}",selectMode:"associated",leftMode:"tree",leftOptions:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}],options:[{ref:"zhugeliang",children:[{label:"A",value:"a"}]},{ref:"caocao",children:[{label:"B",value:"b"},{label:"C",value:"c"}]},{ref:"zhongwuyan",children:[{label:"D",value:"d"},{label:"E",value:"e"}]},{ref:"libai",defer:!0},{ref:"hanxin",defer:!0},{ref:"yunzhongjun",defer:!0}]}]}]}}); -;/*!examples/components/Form/Table.jsx*/ -amis.define("4d416d7",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表格编辑",body:{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{type:"combo",name:"colors",label:"Combo",multiple:!0,draggable:!0,multiLine:!0,value:[{color:"green",name:"颜色"}],controls:[{type:"color",name:"color"},{type:"text",name:"name",placeholder:"说明文字"}]},{type:"static",label:"当前值",tpl:"
${colors|json}
"},{type:"table",name:"colors",label:"Table",draggable:!0,columns:[{label:"Color",name:"color",quickEdit:{type:"color",saveImmediately:!0}},{label:"说明文字",name:"name",quickEdit:{type:"text",mode:"inline",saveImmediately:!0}}]},{type:"button",label:"Table2新增一行",target:"table2",actionType:"add"},{type:"table",name:"table2",label:"Table2",editable:!0,addable:!0,removable:!0,draggable:!0,columns:[{name:"a",label:"A"},{name:"b",label:"B",quickEdit:{type:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}}]},{type:"table",name:"table3",label:"Table3(指定第2列只有update时能编辑)",editable:!0,addable:!0,removable:!0,draggable:!0,columns:[{name:"a",label:"A",quickEdit:!0},{name:"b",label:"B",quickEdit:!1,quickEditOnUpdate:{type:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}}]}]}}}); -;/*!examples/components/Form/Picker.jsx*/ -amis.define("48c8d88",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表格编辑",body:{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:["

常规模式

",{type:"divider"},{type:"picker",name:"type",label:"单选",value:1,inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3},{label:"选项4",value:4}]},{type:"picker",name:"type2",label:"多选",multiple:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3},{label:"选项4",value:4}]},{type:"divider"},"

Table 渲染类型

",{type:"divider"},{type:"picker",name:"type3",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"table",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},columns:[{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}},{type:"picker",name:"type4",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"table",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},columns:[{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}},{type:"divider"},"

List 渲染类型

",{type:"divider"},{type:"picker",name:"type5",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"list",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}},{type:"picker",name:"type6",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"list",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}},{type:"divider"},"

Cards 渲染类型

",{type:"divider"},{type:"picker",name:"type7",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"cards",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}},{type:"picker",name:"type8",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"cards",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}}]}}}); -;/*!examples/components/Form/Formula.jsx*/ -amis.define("b382a0f",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"公式示例",body:["

通过公式,可以动态的设置目标值。

",{type:"form",title:"自动应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"number",name:"a",label:"A"},{type:"number",name:"b",label:"B"},{type:"number",name:"sum",label:"和",disabled:!0,description:"自动计算 A + B"},{type:"formula",name:"sum",value:0,formula:"a + b"}]},{type:"form",title:"手动应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"number",name:"a",label:"A"},{type:"number",name:"b",label:"B"},{type:"group",controls:[{type:"number",name:"sum",label:"和",disabled:!0,columnClassName:"col-sm-11"},{type:"button",label:"计算",columnClassName:"col-sm-1 v-bottom",target:"theFormula"}]},{type:"formula",name:"sum",id:"theFormula",value:0,formula:"a + b",initSet:!1,autoSet:!1}]},{type:"form",title:"条件应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"radios",name:"radios",inline:!0,label:"radios",options:[{label:"a",value:"a"},{label:"b",value:"b"}],description:"radios 变化会自动清空 B"},{type:"text",name:"b",label:"B"},{type:"formula",name:"b",value:"some string",formula:"''",condition:"${radios}",initSet:!1}]}]}}); -;/*!examples/components/Form/Custom.jsx*/ -amis.define("78c2565",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});{var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),a=e("d019970");!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.onChange;return r.default.createElement("div",null,r.default.createElement("p",null,"这个是个自定义组件。通过注册渲染器的方式实现。"),r.default.createElement("p",null,"当前值:",t),r.default.createElement("a",{className:"btn btn-default",onClick:function(){return n(Math.round(1e4*Math.random()))}},"随机修改"))},t=n.__decorate([a.FormItem({type:"custom"})],t)}(r.default.Component),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.tip;return r.default.createElement("div",null,e||"非 FormItem 类型的渲染器注册, 这种不能修改 form")},t=n.__decorate([a.Renderer({test:/(^|\/)my\-renderer$/})],t)}(r.default.Component)}t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"自定义组件示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{name:"a",children:function(e){var t=e.value,n=e.onChange;return r.default.createElement("div",null,r.default.createElement("p",null,"这个是个自定义组件。最简单直接的方式,不用注册直接使用。"),r.default.createElement("p",null,"当前值:",t),r.default.createElement("a",{className:"btn btn-default",onClick:function(){return n(Math.round(1e4*Math.random()))}},"随机修改"))}},{type:"divider"},{name:"b",type:"custom",label:"自定义FormItem"},{type:"divider"},{type:"my-renderer"}]},{type:"my-renderer",tip:"他能放 controls 里面,也能放外面。"}]}}); -;/*!examples/components/Form/Definitions.jsx*/ -amis.define("efdb183",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",definitions:{options:{type:"combo",multiple:!0,multiLine:!0,controls:[{type:"group",controls:[{label:"名称",name:"label",type:"text",required:!0},{label:"值",name:"value",type:"text",required:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]},queryItem:{type:"combo",multiple:!0,multiLine:!0,typeSwitchable:!1,conditions:[{label:"条件",test:"!data.hasOwnProperty('connect')",scaffold:{},controls:[{type:"group",className:"m-b-none",controls:[{name:"key",type:"text",placeholder:"字段名",required:!0},{name:"type",type:"select",value:0,options:[{label:"int64",value:0},{label:"double64",value:1},{label:"string",value:2},{label:"version",value:3}]},{type:"formula",name:"opt",formula:'""',condition:"${type}"},{name:"opt",type:"select",placeholder:"请选择",required:!0,options:[{label:">",value:">",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"<",value:"<",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"==",value:"=="},{label:">=",value:">=",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"<=",value:"<=",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"in",value:"in"},{label:"not in",value:"not in"},{label:"!=",value:"!="}]},{name:"val",type:"text",placeholder:"值",required:!0,visibleOn:'~[">", "<", ">=", "<=", "==", "!="].indexOf(this.opt)'},{name:"val",type:"array",required:!0,minLength:1,items:{type:"text",placeholder:"值",required:!0},visibleOn:'~["in", "not in"].indexOf(this.opt)'}]}]},{label:"组合",test:"data.hasOwnProperty('connect')",scaffold:{connect:"&",exprs:[{}]},controls:[{type:"button-group",name:"connect",value:"&",clearable:!1,size:"xs",options:[{label:"AND",value:"&"},{label:"OR",value:"|"}]},{$ref:"queryItem",name:"exprs",minLength:1,value:[{}]}]}]},queryGroup:{type:"combo",multiple:!1,multiLine:!0,controls:[{type:"button-group",name:"connect",value:"&",clearable:!1,size:"sm",options:[{label:"AND",value:"&"},{label:"OR",value:"|"}]},{$ref:"queryItem",name:"exprs",minLength:1,value:[{}]}]}},type:"page",title:"引用",body:["

引用可以用来减少重复的结构定义,最主要的是可以用来实现结构的递归定义

",{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm",mode:"horizontal",controls:[{$ref:"options",name:"options",value:[{label:"选项1",value:"1"}],minLength:1,label:"选项配置"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm",controls:[{$ref:"queryGroup",name:"q",value:{},label:"Query"},{type:"static",name:"q",label:"当前值",tpl:"
${q|json}
"}]}]}}); -;/*!examples/components/MdRenderer.jsx*/ -amis.define("0c7f915",function(e,t){"use strict";function n(e,t){return!(!e.fullPath||e.fullPath!==t.hash)}function a(e){var t;return t=function(t){function a(e){var n=t.call(this,e)||this;return n.ref=null,n.doms=[],n.divRef=n.divRef.bind(n),n.handleClick=n.handleClick.bind(n),n}return r.__extends(a,t),a.prototype.componentDidMount=function(){if(this.renderSchema(),location.hash&&location.hash.length>1){window.history&&"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=document.querySelector('[name="'+location.hash.substring(1)+'"]');e&&e.scrollIntoView()}},a.prototype.componentDidUpdate=function(){this.renderSchema()},a.prototype.componentWillUnmount=function(){this.doms.forEach(function(e){return o.default.unmountComponentAtNode(e)})},a.prototype.handleClick=function(e){var t=e.target.getAttribute("href");t&&"#"!==t[0]&&!/^http/.test(t)&&(e.preventDefault(),this.props.push(t))},a.prototype.divRef=function(t){this.ref=t,t&&(t.innerHTML=e.html)},a.prototype.renderSchema=function(){var e=this,t=document.querySelectorAll('script[type="text/schema"]');if(t||t.length)for(var n=function(n){var i=t[n],s={};[].slice.apply(i.attributes).forEach(function(e){s[e.name]=e.value});var u=document.createElement("div"),c=s.height?parseInt(s.height,10):200;u.setAttribute("class","doc-play-ground"),u.setAttribute("style","height: "+c+"px;"),i.parentNode.replaceChild(u,i),a.doms.push(u),o.default.unstable_renderSubtreeIntoContainer(a,l.default.createElement(d.default,r.__assign({},a.props,{container:function(){return o.default.findDOMNode(e)},height:c,component:p,code:i.innerText,scope:s.scope,unMountOnHidden:!0,placeholder:"加载中,请稍后。。。"})),u)},a=this,i=0,s=t.length;s>i;i++)n(i,s)},a.prototype.render=function(){var t=this.props.location;return l.default.createElement("div",{className:"pos-rlt text-left"},e.title?l.default.createElement(i.default,{title:e.title}):null,l.default.createElement("div",{className:"markdown-body",ref:this.divRef},"Doc"),e.toc&&e.toc.children&&e.toc.children.length>1?l.default.createElement(f.Portal,{container:function(){return document.querySelector("#asideInner")}},l.default.createElement(c.default,{navigations:[e.toc],renderLink:function(e){var t=e.link,n=(e.active,e.toggleExpand),a=e.depth,r=e.classnames,o=[];return t.children&&o.push(l.default.createElement("span",{key:"expand-toggle",className:r("AsideNav-itemArrow")})),t.badge&&o.push(l.default.createElement("b",{key:"badge",className:r("AsideNav-itemBadge",t.badgeClassName||"bg-info")},t.badge)),1===a&&o.push(l.default.createElement("i",{key:"icon",className:r("AsideNav-itemIcon fa fa-flag")})),o.push(l.default.createElement("span",{key:"label",className:r("AsideNav-itemLabel")},t.label)),t.fragment?l.default.createElement("a",{href:"#"+t.fragment},o):l.default.createElement("a",{onClick:t.children?function(){return n(t)}:null},o)},isActive:function(e){return n(e,t)}})):null)},a}(l.default.Component),t.displayName="MarkdownRenderer",t}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),l=r.__importDefault(e("node_modules/react/index")),o=r.__importDefault(e("node_modules/react-dom/index")),i=r.__importDefault(e("06d307c")),d=r.__importDefault(e("4783ce8")),s=r.__importDefault(e("997df41")),u=r.__importDefault(e("2b3dcdf")),c=r.__importDefault(e("4e7c54b")),f=e("node_modules/react-overlays/lib/index"),p=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={PlayGround:null},e}return r.__extends(n,t),n.prototype.componentDidMount=function(){var t=this;e(["9b1667d"],function(e){return t.setState({PlayGround:e.default})})},n.prototype.render=function(){var e=this,t=this.props,n=t.container,a=t.height,o=(t.setAsideFolded,t.setHeaderVisible,r.__rest(t,["container","height","setAsideFolded","setHeaderVisible"])),i=this.state.PlayGround;return l.default.createElement("div",null,l.default.createElement("span",{style:{display:"block",height:a},ref:"span"}),i?l.default.createElement(s.default,{container:n,target:function(){return e.refs.span},placement:"bottom",show:!0},l.default.createElement(u.default,{offset:{x:0,y:-a},style:{height:a},className:"doc-shcema-preview-popover"},l.default.createElement("div",{className:"doc-schema-preview"},l.default.createElement(i,r.__assign({},o,{vertical:!0}))))):null)},n}(l.default.Component);t.default=a}); -;/*!examples/components/Doc.jsx*/ -amis.define("6a793db",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),t=r.__importDefault(e("0c7f915"));n.default={label:"文档",children:[{label:"AMIS 是什么?",icon:"fa fa-home",path:"/docs/intro",getComponent:function(n,r){return e(["docs/intro.md"],function(e){r(null,t.default(e))})}},{label:"快速开始",icon:"fa fa-flash",path:"/docs/getting-started",getComponent:function(n,r){return e(["docs/getting_started.md"],function(e){r(null,t.default(e))})}},{label:"基本用法",icon:"fa fa-file",path:"/docs/basic",getComponent:function(n,r){return e(["docs/basic.md"],function(e){r(null,t.default(e))})}},{label:"高级用法",icon:"fa fa-rocket",path:"/docs/advanced",getComponent:function(n,r){return e(["docs/advanced.md"],function(e){r(null,t.default(e))})}},{label:"渲染器手册",icon:"fa fa-diamond",path:"/docs/renderers",getComponent:function(n,r){return e(["docs/renderers.md"],function(e){r(null,t.default(e))})},children:[{label:"Action",path:"/docs/renderers/Action",getComponent:function(n,r){return e(["docs/renderers/Action.md"],function(e){r(null,t.default(e))})}},{label:"Alert",path:"/docs/renderers/Alert",getComponent:function(n,r){return e(["docs/renderers/Alert.md"],function(e){r(null,t.default(e))})}},{label:"Audio",path:"/docs/renderers/Audio",getComponent:function(n,r){return e(["docs/renderers/Audio.md"],function(e){r(null,t.default(e))})}},{label:"ButtonGroup",path:"/docs/renderers/ButtonGroup",getComponent:function(n,r){return e(["docs/renderers/ButtonGroup.md"],function(e){r(null,t.default(e))})}},{label:"CRUD-Cards",path:"/docs/renderers/CRUD-Cards",getComponent:function(n,r){return e(["docs/renderers/CRUD-Cards.md"],function(e){r(null,t.default(e))})}},{label:"CRUD-List",path:"/docs/renderers/CRUD-List",getComponent:function(n,r){return e(["docs/renderers/CRUD-List.md"],function(e){r(null,t.default(e))})}},{label:"CRUD-Table",path:"/docs/renderers/CRUD-Table",getComponent:function(n,r){return e(["docs/renderers/CRUD-Table.md"],function(e){r(null,t.default(e))})}},{label:"CRUD",path:"/docs/renderers/CRUD",getComponent:function(n,r){return e(["docs/renderers/CRUD.md"],function(e){r(null,t.default(e))})}},{label:"Card",path:"/docs/renderers/Card",getComponent:function(n,r){return e(["docs/renderers/Card.md"],function(e){r(null,t.default(e))})}},{label:"Cards",path:"/docs/renderers/Cards",getComponent:function(n,r){return e(["docs/renderers/Cards.md"],function(e){r(null,t.default(e))})}},{label:"Carousel",path:"/docs/renderers/Carousel",getComponent:function(n,r){return e(["docs/renderers/Carousel.md"],function(e){r(null,t.default(e))})}},{label:"Chart",path:"/docs/renderers/Chart",getComponent:function(n,r){return e(["docs/renderers/Chart.md"],function(e){r(null,t.default(e))})}},{label:"Collapse",path:"/docs/renderers/Collapse",getComponent:function(n,r){return e(["docs/renderers/Collapse.md"],function(e){r(null,t.default(e))})}},{label:"Column",path:"/docs/renderers/Column",getComponent:function(n,r){return e(["docs/renderers/Column.md"],function(e){r(null,t.default(e))})}},{label:"Definitions",path:"/docs/renderers/Definitions",getComponent:function(n,r){return e(["docs/renderers/Definitions.md"],function(e){r(null,t.default(e))})}},{label:"Dialog",path:"/docs/renderers/Dialog",getComponent:function(n,r){return e(["docs/renderers/Dialog.md"],function(e){r(null,t.default(e))})}},{label:"Divider",path:"/docs/renderers/Divider",getComponent:function(n,r){return e(["docs/renderers/Divider.md"],function(e){r(null,t.default(e))})}},{label:"Drawer",path:"/docs/renderers/Drawer",getComponent:function(n,r){return e(["docs/renderers/Drawer.md"],function(e){r(null,t.default(e))})}},{label:"Each",path:"/docs/renderers/Each",getComponent:function(n,r){return e(["docs/renderers/Each.md"],function(e){r(null,t.default(e))})}},{label:"Field",path:"/docs/renderers/Field",getComponent:function(n,r){return e(["docs/renderers/Field.md"],function(e){r(null,t.default(e))})}},{label:"Form",children:[{label:"Array",path:"/docs/renderers/Form/Array",getComponent:function(n,r){return e(["docs/renderers/Form/Array.md"],function(e){r(null,t.default(e))})}},{label:"Button-Group",path:"/docs/renderers/Form/Button-Group",getComponent:function(n,r){return e(["docs/renderers/Form/Button-Group.md"],function(e){r(null,t.default(e))})}},{label:"Button-Toolbar",path:"/docs/renderers/Form/Button-Toolbar",getComponent:function(n,r){return e(["docs/renderers/Form/Button-Toolbar.md"],function(e){r(null,t.default(e))})}},{label:"Button",path:"/docs/renderers/Form/Button",getComponent:function(n,r){return e(["docs/renderers/Form/Button.md"],function(e){r(null,t.default(e))})}},{label:"Chained-Select",path:"/docs/renderers/Form/Chained-Select",getComponent:function(n,r){return e(["docs/renderers/Form/Chained-Select.md"],function(e){r(null,t.default(e))})}},{label:"Checkbox",path:"/docs/renderers/Form/Checkbox",getComponent:function(n,r){return e(["docs/renderers/Form/Checkbox.md"],function(e){r(null,t.default(e))})}},{label:"Checkboxes",path:"/docs/renderers/Form/Checkboxes",getComponent:function(n,r){return e(["docs/renderers/Form/Checkboxes.md"],function(e){r(null,t.default(e))})}},{label:"City",path:"/docs/renderers/Form/City",getComponent:function(n,r){return e(["docs/renderers/Form/City.md"],function(e){r(null,t.default(e))})}},{label:"Color",path:"/docs/renderers/Form/Color",getComponent:function(n,r){return e(["docs/renderers/Form/Color.md"],function(e){r(null,t.default(e))})}},{label:"Combo",path:"/docs/renderers/Form/Combo",getComponent:function(n,r){return e(["docs/renderers/Form/Combo.md"],function(e){r(null,t.default(e))})}},{label:"Date-Range",path:"/docs/renderers/Form/Date-Range",getComponent:function(n,r){return e(["docs/renderers/Form/Date-Range.md"],function(e){r(null,t.default(e))})}},{label:"Date",path:"/docs/renderers/Form/Date",getComponent:function(n,r){return e(["docs/renderers/Form/Date.md"],function(e){r(null,t.default(e))})}},{label:"Datetime",path:"/docs/renderers/Form/Datetime",getComponent:function(n,r){return e(["docs/renderers/Form/Datetime.md"],function(e){r(null,t.default(e))})}},{label:"Editor",path:"/docs/renderers/Form/Editor",getComponent:function(n,r){return e(["docs/renderers/Form/Editor.md"],function(e){r(null,t.default(e))})}},{label:"Email",path:"/docs/renderers/Form/Email",getComponent:function(n,r){return e(["docs/renderers/Form/Email.md"],function(e){r(null,t.default(e))})}},{label:"FieldSet",path:"/docs/renderers/Form/FieldSet",getComponent:function(n,r){return e(["docs/renderers/Form/FieldSet.md"],function(e){r(null,t.default(e))})}},{label:"File",path:"/docs/renderers/Form/File",getComponent:function(n,r){return e(["docs/renderers/Form/File.md"],function(e){r(null,t.default(e))})}},{label:"Form",path:"/docs/renderers/Form/Form",getComponent:function(n,r){return e(["docs/renderers/Form/Form.md"],function(e){r(null,t.default(e))})}},{label:"FormItem",path:"/docs/renderers/Form/FormItem",getComponent:function(n,r){return e(["docs/renderers/Form/FormItem.md"],function(e){r(null,t.default(e))})}},{label:"Formula",path:"/docs/renderers/Form/Formula",getComponent:function(n,r){return e(["docs/renderers/Form/Formula.md"],function(e){r(null,t.default(e))})}},{label:"Grid",path:"/docs/renderers/Form/Grid",getComponent:function(n,r){return e(["docs/renderers/Form/Grid.md"],function(e){r(null,t.default(e))})}},{label:"Group",path:"/docs/renderers/Form/Group",getComponent:function(n,r){return e(["docs/renderers/Form/Group.md"],function(e){r(null,t.default(e))})}},{label:"HBox",path:"/docs/renderers/Form/HBox",getComponent:function(n,r){return e(["docs/renderers/Form/HBox.md"],function(e){r(null,t.default(e))})}},{label:"Hidden",path:"/docs/renderers/Form/Hidden",getComponent:function(n,r){return e(["docs/renderers/Form/Hidden.md"],function(e){r(null,t.default(e))})}},{label:"Image",path:"/docs/renderers/Form/Image",getComponent:function(n,r){return e(["docs/renderers/Form/Image.md"],function(e){r(null,t.default(e))})}},{label:"Input-Group",path:"/docs/renderers/Form/Input-Group",getComponent:function(n,r){return e(["docs/renderers/Form/Input-Group.md"],function(e){r(null,t.default(e))})}},{label:"List",path:"/docs/renderers/Form/List",getComponent:function(n,r){return e(["docs/renderers/Form/List.md"],function(e){r(null,t.default(e))})}},{label:"Matrix",path:"/docs/renderers/Form/Matrix",getComponent:function(n,r){return e(["docs/renderers/Form/Matrix.md"],function(e){r(null,t.default(e))})}},{label:"NestedSelect",path:"/docs/renderers/Form/NestedSelect",getComponent:function(n,r){return e(["docs/renderers/Form/NestedSelect.md"],function(e){r(null,t.default(e))})}},{label:"Number",path:"/docs/renderers/Form/Number",getComponent:function(n,r){return e(["docs/renderers/Form/Number.md"],function(e){r(null,t.default(e))})}},{label:"Panel",path:"/docs/renderers/Form/Panel",getComponent:function(n,r){return e(["docs/renderers/Form/Panel.md"],function(e){r(null,t.default(e))})}},{label:"Password",path:"/docs/renderers/Form/Password",getComponent:function(n,r){return e(["docs/renderers/Form/Password.md"],function(e){r(null,t.default(e))})}},{label:"Picker",path:"/docs/renderers/Form/Picker",getComponent:function(n,r){return e(["docs/renderers/Form/Picker.md"],function(e){r(null,t.default(e))})}},{label:"Radios",path:"/docs/renderers/Form/Radios",getComponent:function(n,r){return e(["docs/renderers/Form/Radios.md"],function(e){r(null,t.default(e))})}},{label:"Range",path:"/docs/renderers/Form/Range",getComponent:function(n,r){return e(["docs/renderers/Form/Range.md"],function(e){r(null,t.default(e))})}},{label:"Rating",path:"/docs/renderers/Form/Rating",getComponent:function(n,r){return e(["docs/renderers/Form/Rating.md"],function(e){r(null,t.default(e))})}},{label:"Repeat",path:"/docs/renderers/Form/Repeat",getComponent:function(n,r){return e(["docs/renderers/Form/Repeat.md"],function(e){r(null,t.default(e))})}},{label:"Rich-Text",path:"/docs/renderers/Form/Rich-Text",getComponent:function(n,r){return e(["docs/renderers/Form/Rich-Text.md"],function(e){r(null,t.default(e))})}},{label:"Select",path:"/docs/renderers/Form/Select",getComponent:function(n,r){return e(["docs/renderers/Form/Select.md"],function(e){r(null,t.default(e))})}},{label:"Service",path:"/docs/renderers/Form/Service",getComponent:function(n,r){return e(["docs/renderers/Form/Service.md"],function(e){r(null,t.default(e))})}},{label:"SubForm",path:"/docs/renderers/Form/SubForm",getComponent:function(n,r){return e(["docs/renderers/Form/SubForm.md"],function(e){r(null,t.default(e))})}},{label:"Switch",path:"/docs/renderers/Form/Switch",getComponent:function(n,r){return e(["docs/renderers/Form/Switch.md"],function(e){r(null,t.default(e))})}},{label:"Table",path:"/docs/renderers/Form/Table",getComponent:function(n,r){return e(["docs/renderers/Form/Table.md"],function(e){r(null,t.default(e))})}},{label:"Tabs",path:"/docs/renderers/Form/Tabs",getComponent:function(n,r){return e(["docs/renderers/Form/Tabs.md"],function(e){r(null,t.default(e))})}},{label:"TabsTransfer",path:"/docs/renderers/Form/TabsTransfer",getComponent:function(n,r){return e(["docs/renderers/Form/TabsTransfer.md"],function(e){r(null,t.default(e))})}},{label:"Tag",path:"/docs/renderers/Form/Tag",getComponent:function(n,r){return e(["docs/renderers/Form/Tag.md"],function(e){r(null,t.default(e))})}},{label:"Text",path:"/docs/renderers/Form/Text",getComponent:function(n,r){return e(["docs/renderers/Form/Text.md"],function(e){r(null,t.default(e))})}},{label:"Textarea",path:"/docs/renderers/Form/Textarea",getComponent:function(n,r){return e(["docs/renderers/Form/Textarea.md"],function(e){r(null,t.default(e))})}},{label:"Time",path:"/docs/renderers/Form/Time",getComponent:function(n,r){return e(["docs/renderers/Form/Time.md"],function(e){r(null,t.default(e))})}},{label:"Transfer",path:"/docs/renderers/Form/Transfer",getComponent:function(n,r){return e(["docs/renderers/Form/Transfer.md"],function(e){r(null,t.default(e))})}},{label:"Tree",path:"/docs/renderers/Form/Tree",getComponent:function(n,r){return e(["docs/renderers/Form/Tree.md"],function(e){r(null,t.default(e))})}},{label:"TreeSelect",path:"/docs/renderers/Form/TreeSelect",getComponent:function(n,r){return e(["docs/renderers/Form/TreeSelect.md"],function(e){r(null,t.default(e))})}},{label:"Url",path:"/docs/renderers/Form/Url",getComponent:function(n,r){return e(["docs/renderers/Form/Url.md"],function(e){r(null,t.default(e))})}}]},{label:"Grid",path:"/docs/renderers/Grid",getComponent:function(n,r){return e(["docs/renderers/Grid.md"],function(e){r(null,t.default(e))})}},{label:"HBox",path:"/docs/renderers/HBox",getComponent:function(n,r){return e(["docs/renderers/HBox.md"],function(e){r(null,t.default(e))})}},{label:"Html",path:"/docs/renderers/Html",getComponent:function(n,r){return e(["docs/renderers/Html.md"],function(e){r(null,t.default(e))})}},{label:"JSON",path:"/docs/renderers/JSON",getComponent:function(n,r){return e(["docs/renderers/JSON.md"],function(e){r(null,t.default(e))})}},{label:"List",path:"/docs/renderers/List",getComponent:function(n,r){return e(["docs/renderers/List.md"],function(e){r(null,t.default(e))})}},{label:"Nav",path:"/docs/renderers/Nav",getComponent:function(n,r){return e(["docs/renderers/Nav.md"],function(e){r(null,t.default(e))})}},{label:"Operation",path:"/docs/renderers/Operation",getComponent:function(n,r){return e(["docs/renderers/Operation.md"],function(e){r(null,t.default(e))})}},{label:"Page",path:"/docs/renderers/Page",getComponent:function(n,r){return e(["docs/renderers/Page.md"],function(e){r(null,t.default(e))})}},{label:"Panel",path:"/docs/renderers/Panel",getComponent:function(n,r){return e(["docs/renderers/Panel.md"],function(e){r(null,t.default(e))})}},{label:"Plain",path:"/docs/renderers/Plain",getComponent:function(n,r){return e(["docs/renderers/Plain.md"],function(e){r(null,t.default(e))})}},{label:"QRCode",path:"/docs/renderers/QRCode",getComponent:function(n,r){return e(["docs/renderers/QRCode.md"],function(e){r(null,t.default(e))})}},{label:"Service",path:"/docs/renderers/Service",getComponent:function(n,r){return e(["docs/renderers/Service.md"],function(e){r(null,t.default(e))})}},{label:"Static",path:"/docs/renderers/Static",getComponent:function(n,r){return e(["docs/renderers/Static.md"],function(e){r(null,t.default(e))})}},{label:"Table",path:"/docs/renderers/Table",getComponent:function(n,r){return e(["docs/renderers/Table.md"],function(e){r(null,t.default(e))})}},{label:"Tabs",path:"/docs/renderers/Tabs",getComponent:function(n,r){return e(["docs/renderers/Tabs.md"],function(e){r(null,t.default(e))})}},{label:"Tasks",path:"/docs/renderers/Tasks",getComponent:function(n,r){return e(["docs/renderers/Tasks.md"],function(e){r(null,t.default(e))})}},{label:"Tpl",path:"/docs/renderers/Tpl",getComponent:function(n,r){return e(["docs/renderers/Tpl.md"],function(e){r(null,t.default(e))})}},{label:"Types",path:"/docs/renderers/Types",getComponent:function(n,r){return e(["docs/renderers/Types.md"],function(e){r(null,t.default(e))})}},{label:"Video",path:"/docs/renderers/Video",getComponent:function(n,r){return e(["docs/renderers/Video.md"],function(e){r(null,t.default(e))})}},{label:"Wizard",path:"/docs/renderers/Wizard",getComponent:function(n,r){return e(["docs/renderers/Wizard.md"],function(e){r(null,t.default(e))})}},{label:"Wrapper",path:"/docs/renderers/Wrapper",getComponent:function(n,r){return e(["docs/renderers/Wrapper.md"],function(e){r(null,t.default(e))})}},{label:"iFrame",path:"/docs/renderers/iFrame",getComponent:function(n,r){return e(["docs/renderers/iFrame.md"],function(e){r(null,t.default(e))})}}]},{label:"动态数据",path:"/docs/api",icon:"fa fa-cloud",getComponent:function(n,r){return e(["docs/api.md"],function(e){r(null,t.default(e))})}},{label:"定制功能",path:"/docs/custom",icon:"fa fa-cubes",getComponent:function(n,r){return e(["docs/custom.md"],function(e){r(null,t.default(e))})}},{label:"定制样式",path:"/docs/style",icon:"fa fa-laptop",getComponent:function(n,r){return e(["docs/style.md"],function(e){r(null,t.default(e))})}}]}}); -;/*!examples/components/CRUD/Table.jsx*/ -amis.define("6f62c3a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"http://amis.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",toolbar:[{type:"button",actionType:"dialog",label:"新增",icon:"fa fa-plus pull-left",primary:!0,dialog:{title:"新增",body:{type:"form",name:"sample-edit-form",api:"post:https://houtai.baidu.com/api/sample",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample?waitSeconds=1",keepItemSelectionOnPageChange:!0,labelTpl:"${id} ${engine}",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",filterTogglable:!0,headerToolbar:["filter-toggler","bulkActions",{type:"tpl",tpl:"定制内容示例:当前有 ${count} 条数据。",className:"v-middle"},{type:"link",href:"https://www.baidu.com",body:"百度一下",htmlTarget:"_parent",className:"v-middle"},{type:"columns-toggler",align:"right"},{type:"drag-toggler",align:"right"},{type:"pagination",align:"right"}],footerToolbar:["statistics","switch-per-page","pagination"],columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",popOver:{body:"Popover 内容:${platform}"},sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0,filterable:{options:[{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}]}},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",inputClassName:"w-xs",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",tooltip:"查看",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",tooltip:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",tooltip:"删除",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); -;/*!examples/components/CRUD/ItemActions.jsx*/ -amis.define("3ef3393",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",headerToolbar:["bulkActions",{type:"columns-toggler",className:"pull-right",align:"right"},{type:"drag-toggler",className:"pull-right"},{type:"pagination",className:"pull-right"}],itemActions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}},type:"button"}],columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",type:"text",toggled:!0},{name:"grade",label:"CSS grade",type:"text",toggled:!0}]}}}); -;/*!examples/components/CRUD/Grid.jsx*/ -amis.define("638fc16",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"cards",defaultParams:{perPage:12},filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}}}); -;/*!examples/components/CRUD/List.jsx*/ -amis.define("c9850e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"list",draggable:!0,saveOrderApi:{url:"https://houtai.baidu.com/api/sample/saveOrder"},orderField:"weight",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button",level:"danger"},{label:"批量修改",actionType:"dialog",level:"info",type:"button",dialog:{title:"批量编辑",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0},[{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"}],{name:"version",label:"Engine version"}]}}}}); -;/*!examples/components/CRUD/LoadMore.jsx*/ -amis.define("660d1f0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"list",draggable:!0,saveOrderApi:{url:"https://houtai.baidu.com/api/sample/saveOrder"},orderField:"weight",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button",level:"danger"},{label:"批量修改",actionType:"dialog",level:"info",type:"button",dialog:{title:"批量编辑",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",headerToolbar:["bulkActions"],footerToolbar:["load-more"],listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm pull-left text-muted"},[{name:"browser",label:"Browser",labelClassName:"w-sm pull-left text-muted"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm pull-left text-muted"}],{name:"version",label:"Engine version",labelClassName:"w-sm pull-left text-muted"}]}}}}); -;/*!examples/components/CRUD/Fix.jsx*/ -amis.define("a9122cf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r={type:"table",data:[{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"}].map(function(e,t){return a.__assign(a.__assign({},e),{id:t+1})}),columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,fixed:"left"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0,fixed:"left"},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0,fixed:"right"},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0,fixed:"right"}]};t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"固顶和列固定示例",remark:"bla bla bla",body:[r,"
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
",r]}}); -;/*!examples/components/CRUD/Aside.jsx*/ -amis.define("97ac54d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"带边栏联动",aside:{type:"form",wrapWithPanel:!1,target:"window",controls:[{type:"tree",name:"cat",inputClassName:"no-border",submitOnChange:!0,options:[{label:"分类1",value:"cat1"},{label:"分类2",value:"cat2"},{label:"分类3",value:"cat3"},{label:"分类4",value:"cat4"}]}]},toolbar:[{type:"button",actionType:"dialog",label:"新增",primary:!0,dialog:{title:"新增",body:{type:"form",name:"sample-edit-form",api:"post:https://houtai.baidu.com/api/sample",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/$ids",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:130,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); -;/*!examples/components/CRUD/Fields.jsx*/ -amis.define("11455ca",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查列类型汇总",body:{type:"crud",api:"https://houtai.baidu.com/api/mock2/crud/list",columns:[{name:"id",label:"ID",type:"text"},{name:"audio",label:"音频",type:"audio"},{name:"carousel",label:"轮播图",type:"carousel",width:"300"},{name:"text",label:"文本",type:"text"},{type:"image",label:"图片",name:"image",enlargeAble:!0,title:"233",thumbMode:"cover"},{name:"date",type:"date",label:"日期"},{name:"progress",label:"进度",type:"progress"},{name:"boolean",label:"状态",type:"status"},{name:"boolean",label:"开关",type:"switch"},{name:"type",label:"映射",type:"mapping",map:{"*":"其他:${type}",1:"漂亮",2:"开心",3:"惊吓",4:"紧张"}},{name:"list",type:"list",label:"List",placeholder:"-",size:"sm",listItem:{title:"${title}",subTitle:"${description}"}},{name:"json",type:"json",label:"Json"}]}}}); -;/*!examples/components/CRUD/JumpNext.jsx*/ -amis.define("4e9a795",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"操作并下一个",remark:"当存在下一条时,支持直接打开下一条操作。",body:{type:"crud",title:"",api:"https://houtai.baidu.com/api/sample/list",columnsTogglable:!1,columns:[{name:"id",label:"ID",width:20,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",type:"text",toggled:!0},{name:"browser",label:"Browser",type:"text",toggled:!0},{type:"operation",label:"操作",width:130,buttons:[{type:"button",icon:"fa fa-pencil",actionType:"dialog",nextCondition:"true",_nextCondition:'可以设置条件比如: data.grade == "B"',dialog:{title:"编辑",actions:[{type:"button",actionType:"prev",level:"info",visibleOn:"data.hasPrev",label:"上一个"},{type:"button",actionType:"cancel",label:"关闭"},{type:"submit",actionType:"next",visibleOn:"data.hasNext",label:"保存并下一个",level:"primary"},{type:"submit",visibleOn:"!data.hasNext",label:"保存",level:"primary"},{type:"button",actionType:"next",level:"info",visibleOn:"data.hasNext",label:"下一个"}],body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],toggled:!0}]}}}); -;/*!examples/components/CRUD/Keyboards.jsx*/ -amis.define("ddb86b3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Table 全键盘操作示例",remark:"bla bla bla",body:[{type:"plain",className:"text-danger",text:"请通过上下左右键切换单元格,按 `Space` 键进入编辑模式,按 `Enter` 提交编辑,并最后点左上角的全部保存完成操作。"},{type:"crud",className:"m-t",api:"https://houtai.baidu.com/api/sample",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:{type:"text",required:!0,mode:"inline"},type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,quickEdit:{type:"text",required:!0},type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,quickEdit:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{type:"select",options:["A","B","C","D","X"]},type:"text",toggled:!0}]}]}}); -;/*!examples/components/CRUD/Footable.jsx*/ -amis.define("cd82b91",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"开启单条底部展示功能",body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample",footable:{expand:"first",accordion:!0},columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",breakpoint:"*",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],inputClassName:"w-xs",saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,breakpoint:"*",buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); -;/*!examples/components/CRUD/Nested.jsx*/ -amis.define("77adc0a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持多层嵌套,列数据中有 children 字段即可。(建议不超过10层)",body:{type:"crud",api:"https://houtai.baidu.com/api/mock2/crud/table2",saveOrderApi:"https://houtai.baidu.com/api/mock2/form/saveData",expandConfig:{expand:"first",accordion:!0},draggable:!0,columns:[{name:"id",label:"ID",sortable:!0,type:"text",toggled:!0,width:100},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],inputClassName:"w-xs",saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); -;/*!examples/components/CRUD/MergeCell.jsx*/ -amis.define("31055e7",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持自动合并单元格,从左到右,可配置从左侧起多少列内启动自动合并单元格,当前配置 3",body:{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:3,columns:[{name:"engine",label:"Rendering engine"},{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"},{name:"version",label:"Engine version"},{name:"grade",label:"CSS grade"}]}}}); -;/*!examples/components/CRUD/HeaderGroup.jsx*/ -amis.define("aec9e68",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持表头分组,通过在 cloumn 上设置 groupName 实现。",body:{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},columns:[{name:"engine",label:"Rendering engine",groupName:"A"},{name:"browser",label:"Browser",groupName:"A"},{name:"platform",label:"Platform(s)",groupName:"B"},{name:"version",label:"Engine version",groupName:"B"},{name:"grade",label:"CSS grade"}]}}}); -;/*!examples/components/CRUD/HeaderHide.jsx*/ -amis.define("d6f26ec",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"当 column 每一项的 label 值都为空字符时,可以隐藏表头",body:[{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},columns:[{name:"engine",label:""},{name:"browser",label:""},{name:"platform",label:""},{name:"version",label:""},{name:"grade",label:""}]},{type:"divider"},"

搭配合并单元格和列上配置 isHead 可以实现超级表头放在左侧

",{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:1,columns:[{name:"engine",label:"",isHead:!0},{name:"browser",label:""},{name:"platform",label:""},{name:"version",label:""},{name:"grade",label:""}]},{type:"divider"},"

还可以继续使用超级表头

",{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:1,columns:[{name:"engine",label:"",groupName:"A",isHead:!0},{name:"browser",label:"",groupName:"A"},{name:"platform",label:"",groupName:"B"},{name:"version",label:"",groupName:"B"},{name:"grade",label:""}]}]}}); -;/*!examples/components/CRUD/LoadOnce.jsx*/ -amis.define("8624815",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"一次性加载,前端分页,前端排序",body:{type:"crud",loadDataOnce:!0,api:"https://houtai.baidu.com/api/sample?waitSeconds=1",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}}]},columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",type:"text",toggled:!0},{name:"grade",label:"CSS grade",type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",tooltip:"查看",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",tooltip:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",tooltip:"删除",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); -;/*!examples/components/Sdk/Test.jsx*/ -amis.define("6baaf1a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("06d307c")),i=e("d019970"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:{name:"Amis Renderer",id:1,email:"xxx@xxx.com"}},t.handleClick=function(){t.setState({data:{name:"Amis Renderer",id:Math.round(1e3*Math.random()),email:"xxx@xxx.com"}})},t}return a.__extends(t,e),t.prototype.renderForm=function(){var e=this;return i.render({title:"",type:"form",controls:[{type:"text",name:"name",label:"Name"},{type:"text",name:"id",label:"Id"},{type:"email",name:"email",label:"Email"},{type:"static",label:"最后更新时间",name:"lastModified"}]},{data:this.state.data,onFailed:function(e,t){console.log("Submit Failed",t,"\n",e)},onSubmit:function(e){console.log("Submit",e)},onChange:function(t,n){e.setState({data:a.__assign(a.__assign({},t),{lastModified:new Date})}),console.log("Diff",n)}})},t.prototype.render=function(){return n.default.createElement("div",null,n.default.createElement(l.default,{title:"API 调用 集成在你的 React 应用中"}),n.default.createElement("div",{className:"wrapper"},this.renderForm(),n.default.createElement("button",{onClick:this.handleClick},"随机修改"),n.default.createElement("h3",null,"当前值"),n.default.createElement("pre",null,n.default.createElement("code",null,JSON.stringify(this.state.data,null,2)))))},t}(n.default.Component);t.default=d}); -;/*!examples/components/Form/Schem.jsx*/ -amis.define("324bb13",function(e,t){"use strict";function r(e,t,i){var l=i.required||[],u={},m={},s="text";if("integer"===e.type)s="number","number"==typeof e.minimum&&(u.min=e.minimum);else if("array"===e.type){s="combo";var o=e.items;"object"===o.type?(u.controls=n(o.properties,o),u.multiLine=!0):(s="array",u.inline=!0,u.items=r(o,"item",e))}return"number"==typeof e.minimum&&(m.minimum=e.minimum),a.__assign({name:t,type:s,required:!!~l.indexOf(t),label:e.title||e.description,desc:e.title&&e.description,value:e.default,validations:m},u)}function n(e,t){var n=Object.keys(e);return n.map(function(n){return r(e[n],n,t)})}function i(e){if("object"!==e.type)throw new Error("JSONSchme2AMisSchema 只支持 object 转换");return{title:e.title,type:"form",mode:"horizontal",controls:n(e.properties,e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),u=a.__importDefault(e("06d307c")),m=e("d019970"),s={title:"Person",type:"object",properties:{firstName:{title:"First Name",type:"string"},lastName:{type:"string"},age:{description:"Age in years",type:"integer",minimum:0},tag:{type:"array",description:"Tags","default":["IT"],items:{type:"text"}},clients:{type:"array",description:"Tags",items:{type:"object",properties:{firstName:{title:"First Name",type:"string"},lastName:{type:"string"}}}}},required:["firstName","lastName"]},o=i(s),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:{}},t}return a.__extends(t,e),t.prototype.renderForm=function(){var e=this;return m.render({type:"page",title:"",body:a.__assign(a.__assign({},o),{onChange:function(t){return e.setState({data:a.__assign({},t)})}})})},t.prototype.render=function(){return l.default.createElement("div",null,l.default.createElement(u.default,{title:"JSON Schema Form"}),l.default.createElement("div",{className:"wrapper"},l.default.createElement("div",null,l.default.createElement("h3",null,"Schema"),l.default.createElement("pre",null,l.default.createElement("code",null,JSON.stringify(s,null,2)))),l.default.createElement("div",null,l.default.createElement("h3",null,"Form"),this.renderForm()),l.default.createElement("div",null,l.default.createElement("h3",null,"Data"),l.default.createElement("pre",null,l.default.createElement("code",null,JSON.stringify(this.state.data,null,2))))))},t}(l.default.Component);t.default=d}); -;/*!examples/components/Dialog/Simple.jsx*/ -amis.define("8c8c87b",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"page",title:"Dialog",body:[{type:"button-toolbar",className:"m-b",buttons:[{type:"button",label:"打开弹框",actionType:"dialog",dialog:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框"}},{type:"button",label:"多级弹框",actionType:"dialog",dialog:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框",actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"dialog",label:"再弹一个",dialog:{title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"dialog",label:"来吧",level:"info",dialog:{title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"confirm",label:"不弹了",primary:!0}]}}]}}]}},{type:"button",label:"弹个表单",actionType:"dialog",dialog:{title:"在弹框中的表单",closeOnEsc:!0,actions:[{label:"取消",actionType:"close",type:"button"},{label:"确认",actionType:"confirm",type:"button",level:"primary"},{label:"提交不关闭",actionType:"submit",close:!1,type:"button",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",level:"primary"},{label:"保存不关闭",actionType:"ajax",type:"button",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=4",level:"info"},{type:"button",label:"Feedback",close:!0,actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"点击我后会发送一个请求,请求回来后,弹出一个框。",feedback:{title:"操作成功",body:"xxx 已操作成功"}}],body:{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]}}},{type:"button",label:"再弹个表单",actionType:"dialog",dialog:{title:"在弹框中的表单",actions:[{label:"取消",actionType:"close",type:"button"},{label:"确认",actionType:"confirm",type:"button",level:"primary",disabledOn:"!data.rememberMe"}],body:{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"checkbox",name:"rememberMe",label:"勾上我才可以确认"}]}}},{type:"button",label:"Feedback",actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"点击我后会发送一个请求,请求回来后,弹出一个框。",feedback:{title:"操作成功",closeOnEsc:!0,body:"xxx 已操作成功"}},{type:"button",label:"Feedback2",actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"可以根据条件弹出,比如这个栗子,看当前时间戳是否可以整除3",feedback:{visibleOn:"!(this.date % 3)",title:"操作成功",body:"当前时间戳: ${date}"}}]},{type:"button-toolbar",className:"m-l-none",buttons:[{type:"button",label:"sm 弹框",actionType:"dialog",dialog:{size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"标准 弹框",actionType:"dialog",dialog:{title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"lg 弹框",actionType:"dialog",dialog:{size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"xl 弹框",actionType:"dialog",dialog:{size:"xl",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"full 弹框",actionType:"dialog",dialog:{size:"full",title:"全屏弹框",body:"弹框尽可能占满,内容部分滚动。"}}]}]}}); -;/*!examples/components/Dialog/Drawer.jsx*/ -amis.define("aa693dc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"Drawer",body:[{type:"button-toolbar",className:"block",buttons:[{type:"button",label:"左侧弹出-极小框",actionType:"drawer",drawer:{position:"left",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-小框",actionType:"drawer",drawer:{position:"left",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-中框",actionType:"drawer",drawer:{position:"left",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-大框",actionType:"drawer",drawer:{position:"left",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-超大",actionType:"drawer",level:"danger",drawer:{position:"left",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"右侧弹出-极小框",level:"success",actionType:"drawer",drawer:{position:"right",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-小框",level:"success",actionType:"drawer",drawer:{position:"right",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-中框",level:"success",actionType:"drawer",drawer:{position:"right",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-大框",level:"success",actionType:"drawer",drawer:{position:"right",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-超大",level:"danger",actionType:"drawer",drawer:{size:"xl",position:"right",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"顶部弹出-极小框",actionType:"drawer",level:"info",drawer:{position:"top",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-小框",level:"info",actionType:"drawer",drawer:{position:"top",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-中框",actionType:"drawer",level:"info",drawer:{position:"top",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-大框",actionType:"drawer",level:"info",drawer:{position:"top",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出 - 超大",level:"danger",actionType:"drawer",drawer:{position:"top",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"底部弹出-极小框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-小框",level:"primary",actionType:"drawer",drawer:{position:"bottom",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-中框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-大框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-超大",level:"danger",actionType:"drawer",drawer:{position:"bottom",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"多级弹框",actionType:"drawer",level:"danger",drawer:{title:"提示",body:"这是个简单的弹框",closeOnEsc:!0,actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"drawer",label:"再弹一个",drawer:{position:"left",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"drawer",label:"来吧",level:"info",drawer:{position:"right",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"confirm",label:"可以了",primary:!0}]}}]}}]}},{type:"button",label:"交叉测试",actionType:"drawer",className:"m-l-xs",level:"danger",drawer:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框",actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"dialog",closeOnEsc:!0,label:"再弹一个",dialog:{position:"left",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"drawer",label:"来吧",level:"info",drawer:{position:"right",title:"弹框中的弹框",body:"如果你想,可以无限弹下去",closeOnEsc:!0,actions:[{type:"button",actionType:"confirm",label:"可以了",primary:!0}]}}]}}]}},{type:"button",label:"可拉拽调整大小",actionType:"drawer",level:"danger",drawer:{title:"提示",closeOnEsc:!0,resizable:!0,body:"这是个简单的弹框"}}]}]}}); -;/*!examples/components/Linkage/Page.jsx*/ -amis.define("8744105",function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",type:"page",title:"地址栏变化自动更新",initApi:"https://houtai.baidu.com/api/mock2/form/initData?id=${id}",aside:{type:"wrapper",size:"xs",className:"",body:{type:"nav",stacked:!0,links:[{label:"页面1",to:"?id=1"},{label:"页面2",children:[{label:"页面2-1",to:"?id=2-1"},{label:"页面2-2",to:"?id=2-2"},{label:"页面2-3(disabled)",disabled:!0,to:"?id=2-3"}]},{label:"页面3",to:"?id=3"}]}},body:['

注意 page 渲染器的 `initApi` 中有变量跟地址栏中变量关联,只要值发生了变化,就会重新拉取一次 initApi。

','

这些数据是通过 initApi 拉取到的数据。 `\\$infoId`: ${infoId|default:空}

']}}); -;/*!examples/components/Linkage/Form.jsx*/ -amis.define("34cc2e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单与表单之间的联动",aside:{type:"form",target:"detailForm",className:"wrapper-sm",wrapWithPanel:!1,controls:[{type:"text",placeholder:"关键字",name:"keywords",addOn:{type:"submit",label:"搜索",primary:!0}},'请在此输入内容后点击搜索']},body:{name:"detailForm",type:"form",mode:"horizontal",title:"",initApi:"https://houtai.baidu.com/api/mock2/form/initData?keywords=${keywords}",actions:[],controls:["Form 模型除了用来提交数据外,还比较适合用来做详情数据的展示",{type:"divider"},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"输入信息",type:"static",labelClassName:"text-muted",name:"info"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}}); -;/*!examples/components/Linkage/Form2.jsx*/ -amis.define("1697a1b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单初始数据自动重新拉取",body:[{type:"form",mode:"horizontal",title:"监听表单内部的修改",initApi:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",actions:[],controls:['initApi 中有变量,且变量的值发生了变化了,则该表单就会重新初始数据。',{type:"divider"},{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",inline:!0,options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}],description:'请修改这里看效果'},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]},{type:"grid",columns:[{type:"form",mode:"horizontal",title:"自动填充",actions:[],controls:[{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",inline:!0,options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}],description:'请修改这里看效果'},'
如果 initApi 已经暂用,用 service一样可以拉取值填充,同样以下 api 值发生变化时会自动填充。
',{type:"service",api:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",body:{controls:[{label:"名称",type:"text",labelClassName:"text-muted",name:"name"},{label:"作者",type:"text",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"datetime",labelClassName:"text-muted",inputFormat:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}]},{type:"form",mode:"horizontal",title:"手动填充",actions:[],controls:[{type:"group",label:"数据模板",labelClassName:"text-muted",controls:[{type:"select",name:"tpl",value:"tpl1",mode:"inline",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{mode:"inline",type:"button",label:"获取",level:"dark",actionType:"reload",target:"theService"}]},'
如果不想自动填充,自动填充,则把参数放在 data 里面,就不会监控变化自动拉取了,同时把 servcie 的初始拉取关掉,然后来个刷新目标组件的按钮。
',{type:"service",name:"theService",api:{method:"get",url:"https://houtai.baidu.com/api/mock2/form/initData",data:{tpl:"${tpl}"}},body:{controls:[{label:"名称",type:"text",labelClassName:"text-muted",name:"name"},{label:"作者",type:"text",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"datetime",labelClassName:"text-muted",inputFormat:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}]}]},{type:"divider"},{type:"form",title:"条件表单",target:"detailForm",submitOnInit:!0,mode:"inline",controls:[{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{type:"submit",label:"提交",primary:!0}]},{name:"detailForm",type:"form",mode:"horizontal",title:"响应表单",initApi:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",initFetchOn:"data.tpl",actions:[],controls:['initApi 中有变量,且变量的值发生了变化了,则该表单就会重新初始数据。',{type:"divider"},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]}]}}); -;/*!examples/components/Linkage/CRUD.jsx*/ -amis.define("84cfdf0",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单与列表之间的联动",body:[{title:"",type:"form",mode:"inline",target:"list",wrapWithPanel:!1,className:"m-b",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",clearable:!0,addOn:{type:"submit",icon:"fa fa-search",level:"primary"}}]},{type:"crud",name:"list",api:"https://houtai.baidu.com/api/sample",mode:"list",listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}]}}); -;/*!examples/components/Linkage/Options.jsx*/ -amis.define("2b09ee3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单选线之间的远程联动",body:{type:"form",mode:"horizontal",title:"",actions:[],controls:['

表单选项可以设置 source 通过 API 远程拉取,同时如果 source 中有变量的话,变量值发生变化就会重新拉取,达到联动效果。

',{type:"divider"},{label:"选项1",type:"select",labelClassName:"text-muted",name:"a",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{label:"选项2",type:"select",labelClassName:"text-muted",name:"b",inline:!0,source:"https://houtai.baidu.com/api/mock2/options/level2?a=${a}",initFetchOn:"data.a"},{label:"选项3",type:"select",labelClassName:"text-muted",name:"c",inline:!0,visibleOn:"data.b",source:"https://houtai.baidu.com/api/mock2/options/level3?b=${b}"}]}}}); -;/*!examples/components/Linkage/OptionsLocal.jsx*/ -amis.define("9aaa8bb",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"表单选线的联动",body:{type:"form",mode:"horizontal",title:"",actions:[],controls:['

表单选项内也能联动,通过配置 visibleOn、hiddenOn或者disabledOn

',{type:"divider"},{label:"选项1",type:"list",multiple:!1,labelClassName:"text-muted",name:"a",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{label:"选项2",type:"radios",labelClassName:"text-muted",name:"b",inline:!0,options:[{label:"选项1",value:1,disabledOn:"data.a == 1"},{label:"选项2",value:2,hiddenOn:"data.a == 2"},{label:"选项3",value:3,visibleOn:"data.a == 3"}]}]}}}); -;/*!examples/components/Wizard.jsx*/ -amis.define("083a456",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单向导",body:[{type:"wizard",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",initApi:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"name",label:"名称",type:"text",required:!0}]},{title:"Step 2",controls:[{name:"email2",label:"邮箱",type:"email",required:!0}]},{title:"Step 3",controls:["这是最后一步了"]}]},{type:"wizard",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",mode:"vertical",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"email",label:"邮箱",type:"email",required:!0}]},{title:"Step 2",controls:[{name:"email2",label:"邮箱",type:"email",required:!0}]},{title:"Step 3",controls:["这是最后一步了"]}]},{type:"wizard",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"email",label:"邮箱",type:"email",required:!0}],api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"},{title:"第二步",controls:[{name:"test1",type:"email",label:"Email",value:"test@test.com"},{type:"divider"},{type:"text",name:"test2",label:"必填示例",required:!0},{type:"divider"},{type:"text",name:"test3",placeholder:"可选"}],initApi:"https://houtai.baidu.com/api/mock2/form/initForm",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"},{title:"确定",controls:["最后一步了,确认要提交吗?"],api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"}]}]}}); -;/*!examples/components/Chart.jsx*/ -amis.define("91e25e6",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"图表示例",body:[{type:"grid",columns:[{type:"panel",title:"本地配置示例 支持交互",name:"chart-local",body:[{type:"chart",config:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:[[0,0],[.03487823687206265,1],[.06958655048003272,2],[.10395584540887964,3],[.13781867790849958,4],[.17101007166283433,5],[.2033683215379001,6],[.2347357813929454,7],[.26495963211660245,8],[.2938926261462365,9],[.3213938048432697,10]]}],animationDuration:2e3},clickAction:{actionType:"dialog",dialog:{title:"详情",body:[{type:"tpl",tpl:"当前选中值 ${value|json}"},{type:"chart",api:"https://houtai.baidu.com/api/mock2/chart/chart1"}]}}}]},{type:"panel",title:"远程图表示例(返回值带function)",name:"chart-remote",body:[{type:"chart",api:"https://houtai.baidu.com/api/mock2/chart/chart1"}]}]},{type:"panel",title:"Form+chart组合",body:[{type:"form",title:"过滤条件",target:"chart1,chart2",submitOnInit:!0,className:"m-b",wrapWithPanel:!1,mode:"inline",controls:[{type:"date",label:"开始日期",name:"starttime",value:"-8days",maxDate:"${endtime}"},{type:"date",label:"结束日期",name:"endtime",value:"-1days",minDate:"${starttime}"},{type:"text",label:"条件",name:"name",addOn:{type:"submit",label:"搜索",level:"primary"}}],actions:[]},{type:"divider"},{type:"grid",className:"m-t-lg",columns:[{type:"chart",name:"chart1",initFetch:!1,api:"https://houtai.baidu.com/api/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"},{type:"chart",name:"chart2",initFetch:!1,api:"https://houtai.baidu.com/api/mock2/chart/chart2?name=$name"}]}]}]}}); -;/*!examples/components/Horizontal.jsx*/ -amis.define("07c797d",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"HBox & Grid",type:"page",body:[{type:"plain",tpl:"Grid 请参考 bootstrap 的 grid 布局",inline:!1,className:"h3 m-b-xs"},{type:"grid",columns:[{type:"tpl",tpl:"sm-2",sm:2,className:"bg-info",inline:!1},{type:"tpl",tpl:"sm-4",sm:4,className:"bg-success",inline:!1},{type:"tpl",tpl:"sm-6",sm:6,className:"bg-primary",inline:!1}]},{type:"plain",tpl:"Hbox",inline:!1,className:"h3 m-t m-b-xs"},{type:"hbox",columns:[{type:"tpl",tpl:"平均分配",className:"bg-info",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-success",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-primary",inline:!1}]},{type:"plain",tpl:"Hbox 部分定宽",inline:!1,className:"h3 m-t m-b-xs"},{type:"hbox",columns:[{type:"tpl",tpl:"w-xs",className:"bg-info",inline:!1,columnClassName:"w-xs"},{type:"tpl",tpl:"w-sm",className:"bg-info lter",inline:!1,columnClassName:"w-sm"},{type:"tpl",tpl:"w",className:"bg-info dk",inline:!1,columnClassName:"w"},{type:"tpl",tpl:"平均分配",className:"bg-success",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-primary",inline:!1}]},{type:"plain",tpl:"示例",inline:!1,className:"h3 m-t m-b-xs"},{type:"grid",columns:[{type:"panel",title:"面板1",className:"Panel--danger",body:"内容",sm:4},{type:"panel",title:"面板2",className:"Panel--primary",body:"内容",sm:8}]}]}}); -;/*!examples/components/Video.jsx*/ -amis.define("9a6615a",function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"视频播放器",body:['

另外还支持直播流, flv 和 hls 格式

',{type:"video",autoPlay:!1,rates:[1,1.5,2],src:"https://amis.bj.bcebos.com/amis/2019-12/1577157317579/trailer_hd.mp4",poster:"https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png"}]}}); -;/*!examples/components/Audio.jsx*/ -amis.define("62761e6",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"音频播放器",body:[{type:"audio",autoPlay:!1,rates:[1,1.5,2],src:"https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3"},{type:"form",title:"",actions:[],className:"b v-middle inline w-lg h-xs",controls:[{type:"card",className:"v-middle w inline no-border",header:{title:"歌曲名称",subTitle:"专辑名称",description:"description",avatarClassName:"pull-left thumb-md avatar m-r no-border",avatar:"http://hiphotos.baidu.com/fex/%70%69%63/item/c9fcc3cec3fdfc03ccabb38edd3f8794a4c22630.jpg"}},{type:"audio",className:"v-middle no-border",src:"https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3",controls:["play"]}]}]}}); -;/*!examples/components/Carousel.jsx*/ -amis.define("09f8832",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"轮播图",data:{carousel0:["https://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg","https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png","https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"],carousel1:[{html:'
carousel data in form
'},{image:"https://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"}]},body:[{type:"grid",columns:[{type:"panel",title:"直接页面配置",body:{type:"carousel",controlsTheme:"light",height:"300",options:[{image:"https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png"},{html:'
carousel data
'},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"}]}},{type:"panel",title:"使用itemSchema配置",body:{type:"carousel",name:"carousel0",controlsTheme:"dark",height:"300",itemSchema:{type:"tpl",tpl:'
'}}}]},{type:"grid",columns:[{type:"form",title:"表单内展示",sm:6,controls:[{type:"carousel",controlsTheme:"dark",name:"carousel1",label:"carousel",animation:"slide",height:"300"}]}]}]}}); -;/*!examples/components/Tasks.jsx*/ -amis.define("1aa7d40",function(a,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"异步任务",body:['

',{type:"tasks",name:"tasks",items:[{label:"hive 任务",key:"hive",status:4,remark:'查看详情日志。'},{label:"小流量",key:"partial",status:4},{label:"全量",key:"full",status:4}]},{type:"tasks",name:"tasks",className:"b-a bg-white table-responsive m-t",checkApi:"https://houtai.baidu.com/api/mock2/task"}]}}); -;/*!examples/components/Services/Data.jsx*/ -amis.define("45bc56b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"动态加载数据",body:['除了用 Page、CRUD、Form 或者 Wizard 能拉取数据外,还可以通过 Service 专门拉取数据,然后丢给其他类型的渲染器渲染。',{type:"form",title:"条件输入",className:"m-t",wrapWithPanel:!1,target:"service1",mode:"inline",controls:[{type:"text",name:"keywords",placeholder:"关键字",addOn:{type:"button",icon:"fa fa-search",actionType:"submit",level:"primary"}}]},{name:"service1",type:"service",className:"m-t",api:"https://houtai.baidu.com/api/mock2/service/data?keywords=${keywords}",body:["当前关键字是 ${keywords},当前时间是: ${date|date:YYYY-MM-DD HH\\:mm}",{type:"table",className:"m-t",source:"${table1}",columns:[{name:"id",label:"ID",type:"text"},{name:"text",label:"文本",type:"text"},{type:"image",label:"图片",name:"image",popOver:{title:"查看大图",body:'
'}},{name:"date",type:"date",label:"日期"}]},{type:"table",source:"${table2}",columns:[{name:"progress",label:"进度",type:"progress"},{name:"boolean",label:"状态",type:"status"},{name:"boolean",label:"开关",type:"switch"},{name:"type",label:"映射",type:"mapping",map:{"*":"其他:${type}",1:"漂亮",2:"开心",3:"惊吓",4:"紧张"}},{name:"list",type:"list",label:"List",placeholder:"-",listItem:{title:"${title}",subTitle:"${description}"}}]}]}]}}); -;/*!examples/components/Services/Schema.jsx*/ -amis.define("65f0d23",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"动态加载页面",body:['可以通过 serviceschemaApi 动态控制内容。',{type:"form",title:"条件输入",panelClassName:"panel-info m-t",target:"service1",mode:"inline",submitOnInit:!0,controls:[{label:"加载页面类型",required:!0,type:"button-group",submitOnChange:!0,value:"crud",name:"type",options:[{label:"Crud",value:"crud"},{label:"Form",value:"form"},{label:"Tabs",value:"tabs"}]}]},{name:"service1",type:"service",className:"m-t",initFetchSchema:!1,schemaApi:"https://houtai.baidu.com/api/mock2/service/schema?type=$type"}]}}); -;/*!examples/components/Services/Form.jsx*/ -amis.define("2c4132a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"动态加载表单中的部分",body:['同样通过 serviceschemaApi 来加载部分内容,当然也可以全部由它来加载',{type:"form",panelClassName:"Panel--info m-t",target:"service1",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",fieldSet:[{title:"基本信息",controls:[{type:"text",label:"字段一",name:"filed1"},{type:"text",label:"字段二",name:"filed2"}]},{title:"其他信息",controls:[{name:"tpl",type:"select",label:"模板",inline:!0,required:!0,value:"tpl1",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{type:"service",className:"m-t",initFetchSchemaOn:"data.tpl",schemaApi:"https://houtai.baidu.com/api/mock2/service/form?tpl=$tpl"}]}]}]}}); -;/*!examples/components/IFrame.jsx*/ -amis.define("4c89be2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"IFrame 可以用来嵌入其他网站",body:[{type:"form",mode:"inline",target:"window",title:"",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"info",icon:"fa fa-search pull-left"}}]},{type:"iframe",className:"b-a",src:"https://www.baidu.com/s?wd=${keywords|raw}",height:500}]}}); -;/*!examples/components/Tabs/Normal.jsx*/ -amis.define("524d91c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"选项卡示例",subTitle:"所有选项卡都在当前页面中,包括默认、line、card以及radio模式",body:[{type:"tabs",tabs:[{title:"选项卡1",hash:"tab1",body:"选项卡内容1"},{title:"选项卡2",hash:"tab2",body:{type:"form",panelClassName:"panel-primary",controls:[{type:"text",name:"a",label:"文本"}]}},{title:"选项卡3",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",clearable:!0,addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},columns:[{name:"id",label:"ID",width:20},{name:"engine",label:"Rendering engine"},{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"},{name:"version",label:"Engine version"},{name:"grade",label:"CSS grade"},{type:"operation",label:"操作",width:100,buttons:[]}]}}]},{type:"divider"},{type:"tabs",mode:"line",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]},{type:"divider"},{type:"tabs",mode:"card",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]},{type:"divider"},{type:"tabs",mode:"radio",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]}]}}); -;/*!examples/components/Tabs/Form.jsx*/ -amis.define("46b14bf",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"page",title:"表单中选项卡分组",subTitle:"",body:["

多个 controls 可以通过 tabs 来分组展示,表单将作为一个整体提交。

",{type:"form",title:"",tabs:[{title:"选项卡1",hash:"tab1",controls:[{type:"text",label:"文本1",name:"a"}]},{title:"选项卡2",hash:"tab2",controls:[{type:"text",label:"文本2",name:"b"}]},{title:"选项卡3",hash:"tab3",controls:[{type:"text",label:"文本3",name:"c"}]}]}]}}); -;/*!examples/components/Tabs/Tab1.jsx*/ -amis.define("a5238eb",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡1页面",body:["

也可以多个页面,利用导航nav渲染期模拟 tabs 的效果。这样可以让 url 更加友好,而不是只能用 hash。

",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"./tab1"},{label:"选项卡2",to:"./tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"./tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:"选项卡1的内容"}]}}); -;/*!examples/components/Tabs/Tab2.jsx*/ -amis.define("23a8cd0",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡2页面",body:["

也可以多个页面,利用导航nav渲染期模拟 tabs 的效果。

",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"./tab1"},{label:"选项卡2",to:"./tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"./tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:"选项卡2的内容"}]}}); -;/*!examples/components/Tabs/Tab3.jsx*/ -amis.define("a8b725e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"选项卡3页面",body:["

也可以多个页面,利用导航nav渲染期模拟 tabs 的效果。

",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"./tab1"},{label:"选项卡2",to:"./tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"./tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:{type:"chart",config:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:[[0,0],[.03487823687206265,1],[.06958655048003272,2],[.10395584540887964,3],[.13781867790849958,4],[.17101007166283433,5],[.2033683215379001,6],[.2347357813929454,7],[.26495963211660245,8],[.2938926261462365,9],[.3213938048432697,10]]}],animationDuration:2e3}}}]}}); -;/*!examples/components/Test.jsx*/ -amis.define("be09c45",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),t=l.__importDefault(e("node_modules/react/index")),s=l.__importDefault(e("a67acca")),c=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(a,e),a.prototype.render=function(){return t.default.createElement("div",{className:"wrapper"},t.default.createElement("div",{className:"m-b"},t.default.createElement(s.default,{className:"m-r-xs",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"primary",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"secondary",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"success",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"info",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"warning",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"danger",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"light",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",level:"dark",classPrefix:"cxd-"},"按钮")),t.default.createElement("div",{className:"m-b"},t.default.createElement(s.default,{className:"m-r-xs",size:"xs",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",size:"sm",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",size:"md",classPrefix:"cxd-"},"按钮"),t.default.createElement(s.default,{className:"m-r-xs",size:"lg",classPrefix:"cxd-"},"按钮")),t.default.createElement("div",{className:"m-b"},t.default.createElement(s.default,{className:"m-r-xs",classPrefix:"cxd-"},t.default.createElement("i",{className:"fa fa-cloud"}),t.default.createElement("span",null,"按钮")),t.default.createElement(s.default,{className:"m-r-xs",classPrefix:"cxd-"},t.default.createElement("span",null,"按钮"),t.default.createElement("i",{className:"fa fa-cloud"})),t.default.createElement(s.default,{className:"m-r-xs",classPrefix:"cxd-",iconOnly:!0},t.default.createElement("i",{className:"fa fa-cloud"}))))},a}(t.default.Component);a.default=c}); -;/*!examples/components/DocSearch.jsx*/ -amis.define("c6757fd",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),a=n.__importDefault(e("ec59a60")),r=a.default({type:"form",mode:"inline",wrapWithPanel:!1,className:"pull-right m-t-sm m-r",controls:[{type:"input-group",size:"sm",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search",vendor:"iconfont"},{type:"text",placeholder:"搜索文档",inputClassName:"b-l-none p-l-none",name:"docsearch"}]}]}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e='input[name="docsearch"]';docsearch({appId:"3W0NHYOWPE",apiKey:"469f5cf3d54f9b86127970f913dc0725",indexName:"gh_pages",inputSelector:e,debug:!1})},t.prototype.render=function(){return o.default.createElement(r,{showCode:!1,theme:this.props.theme})},t}(o.default.Component);t.default=s}); -;/*!examples/components/App.jsx*/ -amis.define("135e0c7",function(e,t){"use strict";function a(e,t){return!(!e||e!==t.pathname)}function l(e){void 0===e&&(e=It);var t=[];return Ht.forEach(function(a){a.children&&c.mapTree(a.children,function(a){a.path&&a.component?t.push(d.default.createElement(p.Route,{key:t.length+1,path:"/"===a.path[0]?Rt+a.path:""+Rt+e+"/"+a.path,component:a.component})):a.path&&a.getComponent&&t.push(d.default.createElement(p.Route,{key:t.length+1,path:"/"===a.path[0]?Rt+a.path:""+Rt+e+"/"+a.path,getComponent:a.getComponent}))})}),t}function o(e){var t=e.pathPrefix;It=t||It;var a=p.browserHistory;return d.default.createElement(p.Router,{history:a},d.default.createElement(p.Route,{component:Ot},d.default.createElement(p.Redirect,{from:Rt+"/",to:Rt+"/docs/intro"}),d.default.createElement(p.Redirect,{from:It+"/",to:"/docs/intro"}),l(It),d.default.createElement(p.Route,{path:"*",component:f.default})))}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),d=n.__importDefault(e("node_modules/react/index")),f=n.__importDefault(e("bb0be5b")),u=n.__importDefault(e("4c26fd3")),i=n.__importDefault(e("4e7c54b")),r=e("1953fc1"),c=e("9a80175"),m=e("b7bbd16");e("ee0cecb");var p=e("node_modules/react-router/lib/index"),s=n.__importDefault(e("ec59a60")),h=n.__importDefault(e("da274e0")),b=n.__importDefault(e("2d1fe26")),_=n.__importDefault(e("71fbd58")),v=n.__importDefault(e("0fa6650")),D=n.__importDefault(e("65795e0")),g=n.__importDefault(e("1e9ff20")),E=n.__importDefault(e("3d2e3d4")),k=n.__importDefault(e("6f89d30")),y=n.__importDefault(e("ee53c68")),N=n.__importDefault(e("c9cebe3")),S=n.__importDefault(e("d2ec869")),A=n.__importDefault(e("435ef3d")),x=n.__importDefault(e("90d3d67")),F=n.__importDefault(e("4f1646b")),C=n.__importDefault(e("c6bae66")),w=n.__importDefault(e("c938c8b")),I=n.__importDefault(e("9b0994b")),R=n.__importDefault(e("6bc539d")),H=n.__importDefault(e("4d416d7")),L=n.__importDefault(e("48c8d88")),V=n.__importDefault(e("b382a0f")),O=n.__importDefault(e("78c2565")),T=n.__importDefault(e("efdb183")),j=n.__importDefault(e("6a793db")),B=n.__importDefault(e("6f62c3a")),P=n.__importDefault(e("3ef3393")),q=n.__importDefault(e("638fc16")),z=n.__importDefault(e("c9850e3")),M=n.__importDefault(e("660d1f0")),J=n.__importDefault(e("a9122cf")),G=n.__importDefault(e("97ac54d")),K=n.__importDefault(e("11455ca")),U=n.__importDefault(e("4e9a795")),Q=n.__importDefault(e("ddb86b3")),W=n.__importDefault(e("cd82b91")),X=n.__importDefault(e("77adc0a")),Y=n.__importDefault(e("31055e7")),Z=n.__importDefault(e("aec9e68")),$=n.__importDefault(e("d6f26ec")),et=n.__importDefault(e("8624815")),tt=n.__importDefault(e("6baaf1a")),at=n.__importDefault(e("324bb13")),lt=n.__importDefault(e("8c8c87b")),ot=n.__importDefault(e("aa693dc")),nt=n.__importDefault(e("8744105")),dt=n.__importDefault(e("34cc2e3")),ft=n.__importDefault(e("1697a1b")),ut=n.__importDefault(e("84cfdf0")),it=n.__importDefault(e("2b09ee3")),rt=n.__importDefault(e("9aaa8bb")),ct=n.__importDefault(e("083a456")),mt=n.__importDefault(e("91e25e6")),pt=n.__importDefault(e("07c797d")),st=n.__importDefault(e("9a6615a")),ht=n.__importDefault(e("62761e6")),bt=n.__importDefault(e("09f8832")),_t=n.__importDefault(e("1aa7d40")),vt=n.__importDefault(e("45bc56b")),Dt=n.__importDefault(e("65f0d23")),gt=n.__importDefault(e("2c4132a")),Et=n.__importDefault(e("4c89be2")),kt=n.__importDefault(e("524d91c")),yt=n.__importDefault(e("46b14bf")),Nt=n.__importDefault(e("a5238eb")),St=n.__importDefault(e("23a8cd0")),At=n.__importDefault(e("a8b725e")),xt=n.__importDefault(e("be09c45")),Ft=n.__importDefault(e("d57879c")),Ct=n.__importDefault(e("a67acca")),wt=n.__importDefault(e("c6757fd")),It="/examples",Rt="";It="",Rt="/amis";var Ht=[j.default,{prefix:function(e){var t=e.classnames;return d.default.createElement("li",{className:t("AsideNav-divider")})},label:"示例",children:[{label:"页面",icon:"glyphicon glyphicon-th",badge:3,badgeClassName:"bg-info",children:[{label:"简单页面",path:"pages/simple",component:s.default(h.default)},{label:"初始化出错",path:"pages/error",component:s.default(b.default)},{label:"表单页面",path:"pages/form",component:s.default(_.default)}]},{label:"表单",icon:"fa fa-list-alt",children:[{label:"表单展示模式",path:"form/mode",component:s.default(v.default)},{label:"所有类型汇总",path:"form/full",component:s.default(N.default)},{label:"静态展示",path:"form/static",component:s.default(S.default)},{label:"输入提示",path:"form/hint",component:s.default(A.default)},{label:"FieldSet",path:"form/fieldset",component:s.default(D.default)},{label:"Tabs",path:"form/tabs",component:s.default(g.default)},{label:"FieldSet Tabs 组合",path:"form/fields-tabs",component:s.default(x.default)},{label:"动态数据",path:"form/remote",component:s.default(E.default)},{label:"显隐状态联动",path:"form/reaction",component:s.default(k.default)},{label:"表单验证",path:"form/validation",component:s.default(y.default)},{label:"组合类型",path:"form/combo",component:s.default(F.default)},{label:"穿梭器",path:"form/transfer",component:s.default(R.default)},{label:"多功能选择器",path:"form/picker",component:s.default(L.default)},{label:"子表单",path:"form/sub-form",component:s.default(C.default)},{label:"JSon Schema表单",path:"form/json-schema",component:at.default},{label:"富文本",path:"form/rich-text",component:s.default(w.default)},{label:"代码编辑器",path:"form/ide",component:s.default(I.default)},{label:"自定义组件",path:"form/custom",component:s.default(O.default)},{label:"表格编辑",path:"form/table",component:s.default(H.default)},{label:"公式示例",path:"form/formula",component:s.default(V.default)},{label:"引用",path:"form/definitions",component:s.default(T.default)}]},{label:"增删改查",icon:"fa fa-table",children:[{label:"表格模式",path:"crud/table",component:s.default(B.default)},{label:"卡片模式",path:"crud/grid",component:s.default(q.default)},{label:"列表模式",path:"crud/list",component:s.default(z.default)},{label:"加载更多模式",path:"crud/load-more",component:s.default(M.default)},{label:"操作交互显示",path:"crud/item-actions",component:s.default(P.default)},{label:"列类型汇总",path:"crud/columns",component:s.default(K.default)},{label:"可折叠",path:"crud/footable",component:s.default(W.default)},{label:"嵌套",path:"crud/nested",component:s.default(X.default)},{label:"合并单元格",path:"crud/merge-cell",component:s.default(Y.default)},{label:"表头分组",path:"crud/header-group",component:s.default(Z.default)},{label:"表头隐藏",path:"crud/header-hide",component:s.default($.default)},{label:"带边栏",path:"crud/aside",component:s.default(G.default)},{label:"固定表头/列",path:"crud/fixed",component:s.default(J.default)},{label:"键盘操作编辑",path:"crud/keyboards",component:s.default(Q.default)},{label:"操作并下一个",path:"crud/jump-next",component:s.default(U.default)},{label:"一次性加载",path:"crud/load-once",component:s.default(et.default)}]},{label:"弹框",icon:"fa fa-bomb",children:[{label:"对话框",path:"dialog/simple",component:s.default(lt.default)},{label:"侧边弹出",path:"dialog/drawer",component:s.default(ot.default)}]},{label:"选项卡",icon:"fa fa-clone",children:[{label:"常规选项卡",path:"tabs/normal",component:s.default(kt.default)},{label:"表单中选项卡分组",path:"tabs/form",component:s.default(yt.default)},{label:"选项卡页面1",path:"tabs/tab1",component:s.default(Nt.default)},{label:"选项卡页面2",path:"tabs/tab2",component:s.default(St.default)},{label:"选项卡页面3",path:"tabs/tab3",component:s.default(At.default)}]},{label:"联动",icon:"fa fa-bolt",children:[{label:"地址栏变化自动更新",path:"linkpage/page",component:s.default(nt.default)},{label:"选项联动",path:"linkpage/options-local",component:s.default(rt.default)},{label:"选项远程联动",path:"linkpage/options",component:s.default(it.default)},{label:"表单和表单联动",path:"linkpage/form",component:s.default(dt.default)},{label:"表单自动更新",path:"linkpage/form2",component:s.default(ft.default)},{label:"表单和列表联动",path:"linkpage/crud",component:s.default(ut.default)}]},{label:"动态加载",icon:"fa fa-magic",children:[{label:"动态加载数据",path:"services/data",component:s.default(vt.default)},{label:"动态加载页面",path:"services/schema",component:s.default(Dt.default)},{label:"动态加载部分表单",path:"services/form",component:s.default(gt.default)}]},{label:"向导",icon:"fa fa-desktop",path:"wizard",component:s.default(ct.default)},{label:"排版",icon:"fa fa-columns",path:"horizontal",component:s.default(pt.default)},{label:"图表",icon:"fa fa-bar-chart",path:"chart",component:s.default(mt.default)},{label:"轮播图",icon:"fa fa-pause",path:"carousel",component:s.default(bt.default)},{label:"音频",icon:"fa fa-volume-up",path:"audio",component:s.default(ht.default)},{label:"视频",icon:"fa fa-video-camera",path:"video",component:s.default(st.default)},{label:"异步任务",icon:"fa fa-tasks",path:"task",component:s.default(_t.default)},{label:"IFrame",icon:"fa fa-cloud",path:"iframe",component:s.default(Et.default)},{label:"SDK",icon:"fa fa-rocket",path:"sdk",component:tt.default},{label:"Test",icon:"fa fa-code",path:"test",component:xt.default}]}],Lt=[{label:"默认主题",ns:"a-",value:"default"},{label:"百度云舍",ns:"cxd-",value:"cxd"},{label:"Dark",ns:"dark-",value:"dark"}],Vt=[{label:"默认",value:"zh-cn"},{label:"English",value:"en"}],Ot=function(e){function t(t){var a=e.call(this,t)||this;return a.state={asideFolded:"true"===localStorage.getItem("asideFolded"),offScreen:!1,headerVisible:!0,themeIndex:0,themes:Lt,theme:Lt[localStorage.getItem("themeIndex")||0],locale:localStorage.getItem("locale")||""},a.toggleAside=a.toggleAside.bind(a),a.setAsideFolded=a.setAsideFolded.bind(a),a.setHeaderVisible=a.setHeaderVisible.bind(a),a}return n.__extends(t,e),t.prototype.componentDidMount=function(){"default"!==this.state.theme.value&&(document.querySelectorAll("link[title]").forEach(function(e){e.disabled=!0}),document.querySelector("link[title="+this.state.theme.value+"]").disabled=!1)},t.prototype.componentDidUpdate=function(e,t){var a=this.props;if(t.theme.value!==this.state.theme.value&&(document.querySelector("link[title="+t.theme.value+"]").disabled=!0,document.querySelector("link[title="+this.state.theme.value+"]").disabled=!1),a.location.pathname!==e.location.pathname){this.setState({offScreen:!1},function(){return window.scrollTo(0,0)});var l=a.location.pathname;_hmt&&_hmt.push(["_trackPageview",l])}},t.prototype.toggleAside=function(){this.setAsideFolded(!this.state.asideFolded)},t.prototype.setAsideFolded=function(e){void 0===e&&(e=!1),localStorage.setItem("asideFolded",JSON.stringify(e)),this.setState({asideFolded:e})},t.prototype.setHeaderVisible=function(e){void 0===e&&(e=!1),this.setState({headerVisible:e})},t.prototype.renderAside=function(){var e=this.props.location;if("/edit"===e.pathname)return null;var t=this.state.theme;return d.default.createElement(i.default,{theme:t.value,navigations:Ht,renderLink:function(e){var t=e.link,a=(e.active,e.toggleExpand),l=e.classnames,o=[];return t.children&&o.push(d.default.createElement("span",{key:"expand-toggle",className:l("AsideNav-itemArrow"),onClick:function(e){return a(t,e)}},d.default.createElement(m.Icon,{icon:"right-arrow-bold",className:"icon"}))),t.badge&&o.push(d.default.createElement("b",{key:"badge",className:l("AsideNav-itemBadge",t.badgeClassName||"bg-info")},t.badge)),t.icon&&o.push(d.default.createElement("i",{key:"icon",className:l("AsideNav-itemIcon",t.icon)})),o.push(d.default.createElement("span",{className:l("AsideNav-itemLabel"),key:"label"},t.label)),t.path?d.default.createElement(p.Link,{to:"/"===t.path[0]?Rt+t.path:""+Rt+It+"/"+t.path},o):d.default.createElement("a",{onClick:t.children?function(){return a(t)}:null},o)},isActive:function(t){return a(t.path&&"/"===t.path[0]?Rt+t.path:""+Rt+It+"/"+t.path,e)}})},t.prototype.renderHeader=function(){var e=this,t=this.props.location,a=this.state.theme;return"/edit"===t.pathname?d.default.createElement("div",{id:"headerBar",className:"box-shadow bg-dark"},d.default.createElement("div",{className:a.ns+"Layout-brand"},"AMis 可视化编辑器")):d.default.createElement("div",null,d.default.createElement("div",{className:a.ns+"Layout-brandBar"},d.default.createElement("button",{onClick:function(){return e.setState({offScreen:!e.state.offScreen})},className:"pull-right visible-xs"},d.default.createElement("i",{className:"glyphicon glyphicon-align-justify"})),d.default.createElement("div",{className:a.ns+"Layout-brand"},d.default.createElement("i",{className:"fa fa-paw"}),d.default.createElement("span",{className:"hidden-folded m-l-sm"},"AMis Renderer"))),d.default.createElement("div",{className:a.ns+"Layout-headerBar"},d.default.createElement("div",{className:"nav navbar-nav hidden-xs"},d.default.createElement("div",{id:"headerLeftBtns",className:"m-t-sm"},d.default.createElement(Ct.default,{theme:this.state.theme.value,level:"link",className:"no-shadow navbar-btn",onClick:this.toggleAside,tooltip:"展开或收起侧边栏",placement:"bottom",iconOnly:!0},d.default.createElement("i",{className:this.state.asideFolded?"fa fa-indent":"fa fa-dedent"})),d.default.createElement(Ct.default,{theme:this.state.theme.value,level:"link",className:"no-shadow navbar-btn",href:"https://github.com/baidu/amis",tooltip:"前往 Github 仓库地址",placement:"bottom",iconOnly:!0},d.default.createElement("i",{className:"fa fa-github"})))),d.default.createElement("div",{className:"hidden-xs p-t-sm pull-right m-l-sm"},"语言:",d.default.createElement(Ft.default,{clearable:!1,theme:this.state.theme.value,value:this.state.locale||"zh-cn",options:Vt,onChange:function(t){e.setState({locale:t.value}),localStorage.setItem("locale",t.value)}})),d.default.createElement("div",{className:"hidden-xs p-t-sm pull-right"},"主题:",d.default.createElement(Ft.default,{clearable:!1,theme:this.state.theme.value,value:this.state.theme,options:this.state.themes,onChange:function(t){e.setState({theme:t}),localStorage.setItem("themeIndex",e.state.themes.indexOf(t))}})),d.default.createElement(wt.default,{theme:this.state.theme.value})))},t.prototype.render=function(){var e=this.state.theme;return d.default.createElement(u.default,{theme:e.value,offScreen:this.state.offScreen,header:this.state.headerVisible?this.renderHeader():null,folded:this.state.asideFolded,aside:this.renderAside()},d.default.createElement(r.ToastComponent,{theme:e.value,locale:this.state.locale}),d.default.createElement(r.AlertComponent,{theme:e.value,locale:this.state.locale}),d.default.cloneElement(this.props.children,n.__assign(n.__assign({},this.props.children.props),{setAsideFolded:this.setAsideFolded,setHeaderVisible:this.setHeaderVisible,theme:e.value,classPrefix:e.ns,locale:this.state.locale})))},t=n.__decorate([p.withRouter,n.__metadata("design:paramtypes",[Object])],t)}(d.default.PureComponent);t.App=Ot,t.default=o}); \ No newline at end of file diff --git a/gh-pages/pkg/charts_e26cdd4.js b/gh-pages/pkg/charts_1139e21.js similarity index 79% rename from gh-pages/pkg/charts_e26cdd4.js rename to gh-pages/pkg/charts_1139e21.js index c7bbf1ae8..618280f9b 100644 --- a/gh-pages/pkg/charts_e26cdd4.js +++ b/gh-pages/pkg/charts_1139e21.js @@ -7,13 +7,15 @@ amis.define("node_modules/zrender/lib/core/util",function(t,r){function n(t,r){" ;/*!node_modules/zrender/lib/core/vector.js*/ amis.define("node_modules/zrender/lib/core/vector",function(n,r){function t(n,r){var t=new x(2);return null==n&&(n=0),null==r&&(r=0),t[0]=n,t[1]=r,t}function e(n,r){return n[0]=r[0],n[1]=r[1],n}function u(n){var r=new x(2);return r[0]=n[0],r[1]=n[1],r}function i(n,r,t){return n[0]=r,n[1]=t,n}function a(n,r,t){return n[0]=r[0]+t[0],n[1]=r[1]+t[1],n}function o(n,r,t,e){return n[0]=r[0]+t[0]*e,n[1]=r[1]+t[1]*e,n}function c(n,r,t){return n[0]=r[0]-t[0],n[1]=r[1]-t[1],n}function f(n){return Math.sqrt(l(n))}function l(n){return n[0]*n[0]+n[1]*n[1]}function d(n,r,t){return n[0]=r[0]*t[0],n[1]=r[1]*t[1],n}function s(n,r,t){return n[0]=r[0]/t[0],n[1]=r[1]/t[1],n}function m(n,r){return n[0]*r[0]+n[1]*r[1]}function h(n,r,t){return n[0]=r[0]*t,n[1]=r[1]*t,n}function v(n,r){var t=f(r);return 0===t?(n[0]=0,n[1]=0):(n[0]=r[0]/t,n[1]=r[1]/t),n}function q(n,r){return Math.sqrt((n[0]-r[0])*(n[0]-r[0])+(n[1]-r[1])*(n[1]-r[1]))}function y(n,r){return(n[0]-r[0])*(n[0]-r[0])+(n[1]-r[1])*(n[1]-r[1])}function M(n,r){return n[0]=-r[0],n[1]=-r[1],n}function p(n,r,t,e){return n[0]=r[0]+e*(t[0]-r[0]),n[1]=r[1]+e*(t[1]-r[1]),n}function A(n,r,t){var e=r[0],u=r[1];return n[0]=t[0]*e+t[2]*u+t[4],n[1]=t[1]*e+t[3]*u+t[5],n}function S(n,r,t){return n[0]=Math.min(r[0],t[0]),n[1]=Math.min(r[1],t[1]),n}function g(n,r,t){return n[0]=Math.max(r[0],t[0]),n[1]=Math.max(r[1],t[1]),n}var x="undefined"==typeof Float32Array?Array:Float32Array,b=f,w=l,z=q,F=y;r.create=t,r.copy=e,r.clone=u,r.set=i,r.add=a,r.scaleAndAdd=o,r.sub=c,r.len=f,r.length=b,r.lenSquare=l,r.lengthSquare=w,r.mul=d,r.div=s,r.dot=m,r.scale=h,r.normalize=v,r.distance=q,r.dist=z,r.distanceSquare=y,r.distSquare=F,r.negate=M,r.lerp=p,r.applyTransform=A,r.min=S,r.max=g}); ;/*!node_modules/zrender/lib/mixin/Draggable.js*/ -amis.define("node_modules/zrender/lib/mixin/Draggable",function(t,e,r){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function a(t,e){return{target:t,topTarget:e&&e.topTarget}}i.prototype={constructor:i,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(a(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,i=t.offsetY,s=r-this._x,g=i-this._y;this._x=r,this._y=i,e.drift(s,g,t),this.dispatchToElement(a(e,t),"drag",t.event);var n=this.findHover(r,i,e).target,d=this._dropTarget;this._dropTarget=n,e!==n&&(d&&n!==d&&this.dispatchToElement(a(d,t),"dragleave",t.event),n&&n!==d&&this.dispatchToElement(a(n,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(a(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(a(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var s=i;r.exports=s}); +amis.define("node_modules/zrender/lib/mixin/Draggable",function(t,e,r){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function a(t,e){return{target:t,topTarget:e&&e.topTarget}}i.prototype={constructor:i,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(a(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,i=t.offsetY,s=r-this._x,n=i-this._y;this._x=r,this._y=i,e.drift(s,n,t),this.dispatchToElement(a(e,t),"drag",t.event);var g=this.findHover(r,i,e).target,o=this._dropTarget;this._dropTarget=g,e!==g&&(o&&g!==o&&this.dispatchToElement(a(o,t),"dragleave",t.event),g&&g!==o&&this.dispatchToElement(a(g,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(a(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(a(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var s=i;r.exports=s}); ;/*!node_modules/zrender/lib/mixin/Eventful.js*/ amis.define("node_modules/zrender/lib/mixin/Eventful",function(e,r,t){function n(e,r){var t=e._$eventProcessor;return null!=r&&t&&t.normalizeQuery&&(r=t.normalizeQuery(r)),r}function l(e,r,t,l,a,i){var s=e._$handlers;if("function"==typeof t&&(a=l,l=t,t=null),!l||!r)return e;t=n(e,t),s[r]||(s[r]=[]);for(var h=0;hl;l++)t[e][l].h!==r&&n.push(t[e][l]);t[e]=n}t[e]&&0===t[e].length&&delete t[e]}else delete t[e];return this},trigger:function(e){var r=this._$handlers[e],t=this._$eventProcessor;if(r){var n=arguments,l=n.length;l>3&&(n=a.call(n,1));for(var i=r.length,s=0;i>s;){var h=r[s];if(t&&t.filter&&null!=h.query&&!t.filter(e,h.query))s++;else{switch(l){case 1:h.h.call(h.ctx);break;case 2:h.h.call(h.ctx,n[1]);break;case 3:h.h.call(h.ctx,n[1],n[2]);break;default:h.h.apply(h.ctx,n)}h.one?(r.splice(s,1),i--):s++}}}return t&&t.afterTrigger&&t.afterTrigger(e),this},triggerWithContext:function(e){var r=this._$handlers[e],t=this._$eventProcessor;if(r){var n=arguments,l=n.length;l>4&&(n=a.call(n,1,n.length-1));for(var i=n[n.length-1],s=r.length,h=0;s>h;){var c=r[h];if(t&&t.filter&&null!=c.query&&!t.filter(e,c.query))h++;else{switch(l){case 1:c.h.call(i);break;case 2:c.h.call(i,n[1]);break;case 3:c.h.call(i,n[1],n[2]);break;default:c.h.apply(i,n)}c.one?(r.splice(h,1),s--):h++}}}return t&&t.afterTrigger&&t.afterTrigger(e),this}};var s=i;t.exports=s}); ;/*!node_modules/zrender/lib/core/fourPointsTransform.js*/ amis.define("node_modules/zrender/lib/core/fourPointsTransform",function(r,n){function o(r,n,a,e,t,u){var i=e+"-"+t,v=r.length;if(u.hasOwnProperty(i))return u[i];if(1===n){var l=Math.round(Math.log((1<h;h++){var g=1<u;u++)for(var i=0;8>i;i++)null==t[i]&&(t[i]=0),t[i]+=((u+i)%2?-1:1)*o(a,7,0===u?1:0,1<i;i++){var s=document.createElement("div"),d=s.style,a=i%2,u=(i>>1)%2;d.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[a]+":0",t[u]+":0",n[1-a]+":auto",t[1-u]+":auto",""].join("!important;"),r.appendChild(s),o.push(s)}return o}function i(r,e,o){for(var n=o?"invTrans":"trans",t=e[n],i=e.srcCoords,s=!0,d=[],a=[],f=0;4>f;f++){var l=r[f].getBoundingClientRect(),c=2*f,m=l.left,p=l.top;d.push(m,p),s=s&&i&&m===i[c]&&p===i[c+1],a.push(r[f].offsetLeft,r[f].offsetTop)}return s&&t?t:(e.srcCoords=d,e[n]=o?u(a,d):u(d,a))}function s(r){return"CANVAS"===r.nodeName.toUpperCase()}var d=r("node_modules/zrender/lib/core/env"),a=r("node_modules/zrender/lib/core/fourPointsTransform"),u=a.buildTransformer,f="___zrEVENTSAVED",l=[];e.transformLocalCoord=o,e.transformCoordWithViewport=n,e.isCanvasEl=s}); ;/*!node_modules/zrender/lib/core/event.js*/ -amis.define("node_modules/zrender/lib/core/event",function(e,t){function n(e,t,n,o){return n=n||{},o||!v.canvasSupported?r(e,t,n):v.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):r(e,t,n),n}function r(e,t,n){if(e.getBoundingClientRect&&v.domSupported){var r=t.clientX,u=t.clientY;if("CANVAS"===e.nodeName.toUpperCase()){var a=e.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=u-a.top)}var d=e[w]||(e[w]={}),l=i(o(e,d),d);if(l)return l(g,r,u),n.zrX=g[0],void(n.zrY=g[1])}n.zrX=n.zrY=0}function o(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],o=["top","bottom"],i=0;4>i;i++){var u=document.createElement("div"),a=u.style,d=i%2,l=(i>>1)%2;a.cssText=["position:absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","width:0","height:0",r[d]+":0",o[l]+":0",r[1-d]+":auto",o[1-l]+":auto",""].join("!important;"),e.appendChild(u),n.push(u)}return n}function i(e,t){for(var n=t.transformer,r=t.srcCoords,o=!0,i=[],u=[],a=0;4>a;a++){var d=e[a].getBoundingClientRect(),l=2*a,f=d.left,s=d.top;i.push(f,s),o&=r&&f===r[l]&&s===r[l+1],u.push(e[a].offsetLeft,e[a].offsetTop)}return o?n:(t.srcCoords=i,t.transformer=p(i,u))}function u(e){return e||window.event}function a(e,t,r){if(t=u(t),null!=t.zrX)return t;var o=t.type,i=o&&o.indexOf("touch")>=0;if(i){var a="touchend"!==o?t.targetTouches[0]:t.changedTouches[0];a&&n(e,a,t,r)}else n(e,t,t,r),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var d=t.button;return null==t.which&&void 0!==d&&z.test(t.type)&&(t.which=1&d?1:2&d?3:4&d?2:0),t}function d(e,t,n,r){m?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function l(e,t,n,r){m?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}function f(e){return 2===e.which||3===e.which}function s(e){return e.which>1}var c=e("node_modules/zrender/lib/mixin/Eventful");t.Dispatcher=c;var v=e("node_modules/zrender/lib/core/env"),h=e("node_modules/zrender/lib/core/fourPointsTransform"),p=h.buildTransformer,m="undefined"!=typeof window&&!!window.addEventListener,z=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,w="___zrEVENTSAVED",g=[],b=m?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=n,t.getNativeEvent=u,t.normalizeEvent=a,t.addEventListener=d,t.removeEventListener=l,t.stop=b,t.isMiddleOrRightButtonOnMouseUpDown=f,t.notLeftMouse=s}); +amis.define("node_modules/zrender/lib/core/event",function(e,n){function t(e,n,t,o){return t=t||{},o||!f.canvasSupported?r(e,n,t):f.browser.firefox&&null!=n.layerX&&n.layerX!==n.offsetX?(t.zrX=n.layerX,t.zrY=n.layerY):null!=n.offsetX?(t.zrX=n.offsetX,t.zrY=n.offsetY):r(e,n,t),t}function r(e,n,t){if(f.domSupported&&e.getBoundingClientRect){var r=n.clientX,o=n.clientY;if(v(e)){var i=e.getBoundingClientRect();return t.zrX=r-i.left,void(t.zrY=o-i.top)}if(h(w,e,r,o))return t.zrX=w[0],void(t.zrY=w[1])}t.zrX=t.zrY=0}function o(e){return e||window.event}function i(e,n,r){if(n=o(n),null!=n.zrX)return n;var i=n.type,u=i&&i.indexOf("touch")>=0;if(u){var l="touchend"!==i?n.targetTouches[0]:n.changedTouches[0];l&&t(e,l,n,r)}else t(e,n,n,r),n.zrDelta=n.wheelDelta?n.wheelDelta/120:-(n.detail||0)/3;var d=n.button;return null==n.which&&void 0!==d&&z.test(n.type)&&(n.which=1&d?1:2&d?3:4&d?2:0),n}function u(e,n,t,r){p?e.addEventListener(n,t,r):e.attachEvent("on"+n,t)}function l(e,n,t,r){p?e.removeEventListener(n,t,r):e.detachEvent("on"+n,t)}function d(e){return 2===e.which||3===e.which}function c(e){return e.which>1}var a=e("node_modules/zrender/lib/mixin/Eventful");n.Dispatcher=a;var f=e("node_modules/zrender/lib/core/env"),s=e("node_modules/zrender/lib/core/dom"),v=s.isCanvasEl,h=s.transformCoordWithViewport,p="undefined"!=typeof window&&!!window.addEventListener,z=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,w=[],m=p?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};n.clientToLocal=t,n.getNativeEvent=o,n.normalizeEvent=i,n.addEventListener=u,n.removeEventListener=l,n.stop=m,n.isMiddleOrRightButtonOnMouseUpDown=d,n.notLeftMouse=c}); ;/*!node_modules/zrender/lib/core/GestureMgr.js*/ amis.define("node_modules/zrender/lib/core/GestureMgr",function(t,r,n){function e(t){var r=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(r*r+n*n)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var o=t("node_modules/zrender/lib/core/event"),c=function(){this._track=[]};c.prototype={constructor:c,recognize:function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,r,n){var e=t.touches;if(e){for(var i={points:[],touches:[],target:r,event:t},c=0,a=e.length;a>c;c++){var s=e[c],h=o.clientToLocal(n,s,{});i.points.push([h.zrX,h.zrY]),i.touches.push(s)}this._track.push(i)}},_recognize:function(t){for(var r in a)if(a.hasOwnProperty(r)){var n=a[r](this._track,t);if(n)return n}}};var a={pinch:function(t,r){var n=t.length;if(n){var o=(t[n-1]||{}).points,c=(t[n-2]||{}).points||o;if(c&&c.length>1&&o&&o.length>1){var a=e(o)/e(c);!isFinite(a)&&(a=1),r.pinchScale=a;var s=i(o);return r.pinchX=s[0],r.pinchY=s[1],{type:"pinch",target:t[0].target,event:r}}}}},s=c;n.exports=s}); ;/*!node_modules/zrender/lib/Handler.js*/ @@ -75,13 +77,13 @@ amis.define("node_modules/zrender/lib/graphic/Displayable",function(t,e,i){funct ;/*!node_modules/zrender/lib/graphic/Image.js*/ amis.define("node_modules/zrender/lib/graphic/Image",function(e,i,t){function r(e){s.call(this,e)}var s=e("node_modules/zrender/lib/graphic/Displayable"),n=e("node_modules/zrender/lib/core/BoundingRect"),h=e("node_modules/zrender/lib/core/util"),a=e("node_modules/zrender/lib/graphic/helper/image");r.prototype={constructor:r,type:"image",brush:function(e,i){var t=this.style,r=t.image;t.bind(e,this,i);var s=this._image=a.createOrUpdateImage(r,this._image,this,this.onload);if(s&&a.isImageReady(s)){var n=t.x||0,h=t.y||0,l=t.width,d=t.height,o=s.width/s.height;if(null==l&&null!=d?l=d*o:null==d&&null!=l?d=l/o:null==l&&null==d&&(l=s.width,d=s.height),this.setTransform(e),t.sWidth&&t.sHeight){var g=t.sx||0,u=t.sy||0;e.drawImage(s,g,u,t.sWidth,t.sHeight,n,h,l,d)}else if(t.sx&&t.sy){var g=t.sx,u=t.sy,c=l-g,m=d-u;e.drawImage(s,g,u,c,m,n,h,l,d)}else e.drawImage(s,n,h,l,d);null!=t.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new n(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},h.inherits(r,s);var l=r;t.exports=l}); ;/*!node_modules/zrender/lib/Painter.js*/ -amis.define("node_modules/zrender/lib/Painter",function(e,t,i){function r(e){return parseInt(e,10)}function n(e){return e?e.__builtin__?!0:"function"!=typeof e.resize||"function"!=typeof e.refresh?!1:!0:!1}function s(e,t,i){return z.copy(e.getBoundingRect()),e.transform&&z.applyTransform(e.transform),b.width=t,b.height=i,!z.intersect(b)}function a(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var i=0;i=0&&i.splice(r,1),e.__hoverMir=null},clearHover:function(){for(var e=this._hoverElements,t=0;tn;){var s=e[n],a=s.__from;a&&a.__zr?(n++,a.invisible||(s.transform=a.transform,s.invTransform=a.invTransform,s.__clipPaths=a.__clipPaths,this._doPaintEl(s,i,!0,r))):(e.splice(n,1),a.__hoverMir=null,t--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(m)},_paintList:function(e,t,i){if(this._redrawId===i){t=t||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!r){var n=this;g(function(){n._paintList(e,t,i)})}}},_compositeManually:function(){var e=this.getLayer(x).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,i)})},_doPaintList:function(e,t){for(var i=[],r=0;r15)break}}s.__drawIndex=g,s.__drawIndex0&&e>r[0]){for(o=0;s-1>o&&!(r[o]e);o++);a=i[r[o]]}if(r.splice(o+1,0,e),i[e]=t,!t.virtual)if(a){var h=a.dom;h.nextSibling?l.insertBefore(t.dom,h.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)},eachLayer:function(e,t){var i,r,n=this._zlevelList;for(r=0;r0?w:0),this._needsManuallyCompositing),a.__builtin__||u("ZLevel "+o+" has been used by unkown layer "+a.id),a!==n&&(a.__used=!0,a.__startIndex!==i&&(a.__dirty=!0),a.__startIndex=i,a.__drawIndex=a.incremental?-1:i,t(i),n=a),r.__dirty&&(a.__dirty=!0,a.incremental&&a.__drawIndex<0&&(a.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var i=this._layerConfig;i[e]?d.merge(i[e],t,!0):i[e]=t;for(var r=0;r=0&&i.splice(r,1),e.__hoverMir=null},clearHover:function(){for(var e=this._hoverElements,t=0;tn;){var s=e[n],a=s.__from;a&&a.__zr?(n++,a.invisible||(s.transform=a.transform,s.invTransform=a.invTransform,s.__clipPaths=a.__clipPaths,this._doPaintEl(s,i,!0,r))):(e.splice(n,1),a.__hoverMir=null,t--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(m)},_paintList:function(e,t,i){if(this._redrawId===i){t=t||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!r){var n=this;g(function(){n._paintList(e,t,i)})}}},_compositeManually:function(){var e=this.getLayer(x).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,i)})},_doPaintList:function(e,t){for(var i=[],r=0;r15)break}}s.__drawIndex=g,s.__drawIndex0&&e>r[0]){for(o=0;s-1>o&&!(r[o]e);o++);a=i[r[o]]}if(r.splice(o+1,0,e),i[e]=t,!t.virtual)if(a){var h=a.dom;h.nextSibling?l.insertBefore(t.dom,h.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)},eachLayer:function(e,t){var i,r,n=this._zlevelList;for(r=0;r0?w:0),this._needsManuallyCompositing),o.__builtin__||u("ZLevel "+l+" has been used by unkown layer "+o.id),o!==s&&(o.__used=!0,o.__startIndex!==i&&(o.__dirty=!0),o.__startIndex=i,o.__drawIndex=o.incremental?-1:i,t(i),s=o),r.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var i=this._layerConfig;i[e]?d.merge(i[e],t,!0):i[e]=t;for(var r=0;r=0&&this._clips.splice(i,1)},removeAnimator:function(t){for(var i=t.getClips(),e=0;er;r++){var o=e[r],u=o.step(t,i);u&&(s.push(u),a.push(o))}for(var r=0;n>r;)e[r]._needsRemove?(e[r]=e[n-1],e.pop(),n--):r++;n=s.length;for(var r=0;n>r;r++)a[r].fire(s[r]);this._time=t,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){i._running&&(r(t),!i._paused&&i._update())}var i=this;this._running=!0,r(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,i){i=i||{};var e=new o(t,i.loop,i.getter,i.setter);return this.addAnimator(e),e}},n.mixin(u,a);var h=u;e.exports=h}); ;/*!node_modules/zrender/lib/dom/HandlerProxy.js*/ -amis.define("node_modules/zrender/lib/dom/HandlerProxy",function(t,e,o){function n(t){return"mousewheel"===t&&C.browser.firefox?"DOMMouseScroll":t}function i(t){var e=t.pointerType;return"pen"===e||"touch"===e}function r(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function u(t){t&&(t.zrByTouch=!0)}function s(t,e){return w(t.dom,new l(t,e),!0)}function c(t,e){var o=!1;do e=e&&e.parentNode;while(e&&9!==e.nodeType&&!(o=e===t.painterRoot));return o}function l(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}function m(t,e){var o=e.domHandlers;C.pointerEventsSupported?z.each(H.pointer,function(n){h(e,n,function(e){o[n].call(t,e)})}):(C.touchEventsSupported&&z.each(H.touch,function(n){h(e,n,function(i){o[n].call(t,i),r(e)})}),z.each(H.mouse,function(n){h(e,n,function(i){i=y(i),e.touching||o[n].call(t,i)})}))}function a(t,e){function o(o){function n(n){n=y(n),c(t,n.target)||(n=s(t,n),e.domHandlers[o].call(t,n))}h(e,o,n,{capture:!0})}C.pointerEventsSupported?z.each(P.pointer,o):C.touchEventsSupported||z.each(P.mouse,o)}function h(t,e,o,i){t.mounted[e]=o,t.listenerOpts[e]=i,_(t.domTarget,n(e),o,i)}function p(t){var e=t.mounted;for(var o in e)e.hasOwnProperty(o)&&T(t.domTarget,n(o),e[o],t.listenerOpts[o]);t.mounted={}}function d(t,e){if(t._mayPointerCapture=null,S&&t._pointerCapturing^e){t._pointerCapturing=e;var o=t._globalHandlerScope;e?a(t,o):p(o)}}function f(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function v(t,e){b.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new f(t,O),S&&(this._globalHandlerScope=new f(document,k)),this._pointerCapturing=!1,this._mayPointerCapture=null,m(this,this._localHandlerScope)}var g=t("node_modules/zrender/lib/core/event"),_=g.addEventListener,T=g.removeEventListener,w=g.normalizeEvent,y=g.getNativeEvent,z=t("node_modules/zrender/lib/core/util"),b=t("node_modules/zrender/lib/mixin/Eventful"),C=t("node_modules/zrender/lib/core/env"),E=300,S=C.domSupported,H=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],o={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z.map(t,function(t){var e=t.replace("mouse","pointer");return o.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:n}}(),P={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},x=l.prototype;x.stopPropagation=x.stopImmediatePropagation=x.preventDefault=z.noop;var O={mousedown:function(t){t=w(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=w(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||d(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=w(this.dom,t),d(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=w(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=c(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=w(this.dom,t),u(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),O.mousemove.call(this,t),O.mousedown.call(this,t)},touchmove:function(t){t=w(this.dom,t),u(t),this.handler.processGesture(t,"change"),O.mousemove.call(this,t)},touchend:function(t){t=w(this.dom,t),u(t),this.handler.processGesture(t,"end"),O.mouseup.call(this,t),+new Date-this._lastTouchMoment-S&&S>r}function a(r){return r>S||-S>r}function i(r,e,t,a,i){var n=1-i;return n*n*(n*r+3*i*e)+i*i*(i*a+3*n*t)}function n(r,e,t,a,i){var n=1-i;return 3*(((e-r)*n+2*(t-e)*i)*n+(a-t)*i*i)}function u(r,e,a,i,n,u){var c=i+3*(e-a)-r,v=3*(a-2*e+r),o=3*(e-r),f=r-n,d=v*v-3*c*o,s=v*o-9*c*f,l=o*o-3*v*f,b=0;if(t(d)&&t(s))if(t(v))u[0]=0;else{var q=-o/v;q>=0&&1>=q&&(u[b++]=q)}else{var h=s*s-4*d*l;if(t(h)){var m=s/d,q=-v/c+m,A=-m/2;q>=0&&1>=q&&(u[b++]=q),A>=0&&1>=A&&(u[b++]=A)}else if(h>0){var S=P(h),j=d*v+1.5*c*(-s+S),D=d*v+1.5*c*(-s-S);j=0>j?-M(-j,z):M(j,z),D=0>D?-M(-D,z):M(D,z);var q=(-v-(j+D))/(3*c);q>=0&&1>=q&&(u[b++]=q)}else{var E=(2*d*v-3*c*s)/(2*P(d*d*d)),R=Math.acos(E)/3,_=P(d),p=Math.cos(R),q=(-v-2*_*p)/(3*c),A=(-v+_*(p+x*Math.sin(R)))/(3*c),w=(-v+_*(p-x*Math.sin(R)))/(3*c);q>=0&&1>=q&&(u[b++]=q),A>=0&&1>=A&&(u[b++]=A),w>=0&&1>=w&&(u[b++]=w)}}return b}function c(r,e,i,n,u){var c=6*i-12*e+6*r,v=9*e+3*n-3*r-9*i,o=3*e-3*r,f=0;if(t(v)){if(a(c)){var d=-o/c;d>=0&&1>=d&&(u[f++]=d)}}else{var s=c*c-4*v*o;if(t(s))u[0]=-c/(2*v);else if(s>0){var l=P(s),d=(-c+l)/(2*v),b=(-c-l)/(2*v);d>=0&&1>=d&&(u[f++]=d),b>=0&&1>=b&&(u[f++]=b)}}return f}function v(r,e,t,a,i,n){var u=(e-r)*i+r,c=(t-e)*i+e,v=(a-t)*i+t,o=(c-u)*i+u,f=(v-c)*i+c,d=(f-o)*i+o;n[0]=r,n[1]=u,n[2]=o,n[3]=d,n[4]=d,n[5]=f,n[6]=v,n[7]=a}function o(r,e,t,a,n,u,c,v,o,f,d){var s,l,b,q,h,m=.005,M=1/0;D[0]=o,D[1]=f;for(var S=0;1>S;S+=.05)E[0]=i(r,t,n,c,S),E[1]=i(e,a,u,v,S),q=A(D,E),M>q&&(s=S,M=q);M=1/0;for(var x=0;32>x&&!(j>m);x++)l=s-m,b=s+m,E[0]=i(r,t,n,c,l),E[1]=i(e,a,u,v,l),q=A(E,D),l>=0&&M>q?(s=l,M=q):(R[0]=i(r,t,n,c,b),R[1]=i(e,a,u,v,b),h=A(R,D),1>=b&&M>h?(s=b,M=h):m*=.5);return d&&(d[0]=i(r,t,n,c,s),d[1]=i(e,a,u,v,s)),P(M)}function f(r,e,t,a){var i=1-a;return i*(i*r+2*a*e)+a*a*t}function d(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function s(r,e,i,n,u){var c=r-2*e+i,v=2*(e-r),o=r-n,f=0;if(t(c)){if(a(v)){var d=-o/v;d>=0&&1>=d&&(u[f++]=d)}}else{var s=v*v-4*c*o;if(t(s)){var d=-v/(2*c);d>=0&&1>=d&&(u[f++]=d)}else if(s>0){var l=P(s),d=(-v+l)/(2*c),b=(-v-l)/(2*c);d>=0&&1>=d&&(u[f++]=d),b>=0&&1>=b&&(u[f++]=b)}}return f}function l(r,e,t){var a=r+t-2*e;return 0===a?.5:(r-e)/a}function b(r,e,t,a,i){var n=(e-r)*a+r,u=(t-e)*a+e,c=(u-n)*a+n;i[0]=r,i[1]=n,i[2]=c,i[3]=c,i[4]=u,i[5]=t}function q(r,e,t,a,i,n,u,c,v){var o,d=.005,s=1/0;D[0]=u,D[1]=c;for(var l=0;1>l;l+=.05){E[0]=f(r,t,i,l),E[1]=f(e,a,n,l);var b=A(D,E);s>b&&(o=l,s=b)}s=1/0;for(var q=0;32>q&&!(j>d);q++){var h=o-d,m=o+d;E[0]=f(r,t,i,h),E[1]=f(e,a,n,h);var b=A(E,D);if(h>=0&&s>b)o=h,s=b;else{R[0]=f(r,t,i,m),R[1]=f(e,a,n,m);var M=A(R,D);1>=m&&s>M?(o=m,s=M):d*=.5}}return v&&(v[0]=f(r,t,i,o),v[1]=f(e,a,n,o)),P(s)}var h=r("node_modules/zrender/lib/core/vector"),m=h.create,A=h.distSquare,M=Math.pow,P=Math.sqrt,S=1e-8,j=1e-4,x=P(3),z=1/3,D=m(),E=m(),R=m();e.cubicAt=i,e.cubicDerivativeAt=n,e.cubicRootAt=u,e.cubicExtrema=c,e.cubicSubdivide=v,e.cubicProjectPoint=o,e.quadraticAt=f,e.quadraticDerivativeAt=d,e.quadraticRootAt=s,e.quadraticExtremum=l,e.quadraticSubdivide=b,e.quadraticProjectPoint=q}); ;/*!node_modules/zrender/lib/core/bbox.js*/ @@ -113,7 +115,7 @@ amis.define("node_modules/zrender/lib/graphic/Text",function(t,e,r){var i=t("nod ;/*!node_modules/zrender/lib/graphic/shape/Circle.js*/ amis.define("node_modules/zrender/lib/graphic/shape/Circle",function(e,c,r){var i=e("node_modules/zrender/lib/graphic/Path"),a=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,c,r){r&&e.moveTo(c.cx+c.r,c.cy),e.arc(c.cx,c.cy,c.r,0,2*Math.PI,!0)}});r.exports=a}); ;/*!node_modules/zrender/lib/graphic/helper/subPixelOptimize.js*/ -amis.define("node_modules/zrender/lib/graphic/helper/subPixelOptimize",function(i,e){function t(i,e,t){var n=t&&t.lineWidth;if(e&&n){var h=e.x1,r=e.x2,u=e.y1,d=e.y2;a(2*h)===a(2*r)?i.x1=i.x2=x(h,n,!0):(i.x1=h,i.x2=r),a(2*u)===a(2*d)?i.y1=i.y2=x(u,n,!0):(i.y1=u,i.y2=d)}}function n(i,e,t){var n=t&&t.lineWidth;if(e&&n){var a=e.x,h=e.y,r=e.width,u=e.height;i.x=x(a,n,!0),i.y=x(h,n,!0),i.width=Math.max(x(a+r,n,!1)-i.x,0===r?0:1),i.height=Math.max(x(h+u,n,!1)-i.y,0===u?0:1)}}function x(i,e,t){var n=a(2*i);return(n+a(e))%2===0?n/2:(n+(t?1:-1))/2}var a=Math.round;e.subPixelOptimizeLine=t,e.subPixelOptimizeRect=n,e.subPixelOptimize=x}); +amis.define("node_modules/zrender/lib/graphic/helper/subPixelOptimize",function(i,e){function t(i,e,t){if(e){var n=e.x1,r=e.x2,a=e.y1,u=e.y2;i.x1=n,i.x2=r,i.y1=a,i.y2=u;var d=t&&t.lineWidth;d&&(x(2*n)===x(2*r)&&(i.x1=i.x2=h(n,d,!0)),x(2*a)===x(2*u)&&(i.y1=i.y2=h(a,d,!0)))}}function n(i,e,t){if(e){var n=e.x,x=e.y,r=e.width,a=e.height;i.x=n,i.y=x,i.width=r,i.height=a;var u=t&&t.lineWidth;u&&(i.x=h(n,u,!0),i.y=h(x,u,!0),i.width=Math.max(h(n+r,u,!1)-i.x,0===r?0:1),i.height=Math.max(h(x+a,u,!1)-i.y,0===a?0:1))}}function h(i,e,t){if(!e)return i;var n=x(2*i);return(n+x(e))%2===0?n/2:(n+(t?1:-1))/2}var x=Math.round;e.subPixelOptimizeLine=t,e.subPixelOptimizeRect=n,e.subPixelOptimize=h}); ;/*!node_modules/zrender/lib/graphic/shape/Rect.js*/ amis.define("node_modules/zrender/lib/graphic/shape/Rect",function(e,i,t){var r=e("node_modules/zrender/lib/graphic/Path"),h=e("node_modules/zrender/lib/graphic/helper/roundRect"),d=e("node_modules/zrender/lib/graphic/helper/subPixelOptimize"),l=d.subPixelOptimizeRect,n={},s=r.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,i){var t,r,d,s;this.subPixelOptimize?(l(n,i,this.style),t=n.x,r=n.y,d=n.width,s=n.height,n.r=i.r,i=n):(t=i.x,r=i.y,d=i.width,s=i.height),i.r?h.buildPath(e,i):e.rect(t,r,d,s),e.closePath()}});t.exports=s}); ;/*!node_modules/zrender/lib/graphic/shape/Ellipse.js*/ @@ -181,7 +183,7 @@ amis.define("node_modules/zrender/lib/svg/helper/ClippathManager",function(t,e,r ;/*!node_modules/zrender/lib/svg/helper/ShadowManager.js*/ amis.define("node_modules/zrender/lib/svg/helper/ShadowManager",function(t,e,o){function s(t,e){d.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function a(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}var d=t("node_modules/zrender/lib/svg/helper/Definable"),r=t("node_modules/zrender/lib/core/util");r.inherits(s,d),s.prototype.addWithoutUpdate=function(t,e){if(e&&a(e.style)){var o;if(e._shadowDom){o=e._shadowDom;var s=this.getDefs(!0);s.contains(e._shadowDom)||this.addDom(o)}else o=this.add(e);this.markUsed(e);var d=o.getAttribute("id");t.style.filter="url(#"+d+")"}},s.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t,e){var o=e.style;if(a(o)){var s=this;d.prototype.update.call(this,e,function(){s.updateDom(e,e._shadowDom)})}else this.remove(t,e)},s.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},s.prototype.updateDom=function(t,e){var o=e.getElementsByTagName("feDropShadow");o=0===o.length?this.createElement("feDropShadow"):o[0];var s,a,d,r,i=t.style,h=t.scale?t.scale[0]||1:1,l=t.scale?t.scale[1]||1:1;if(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)s=i.shadowOffsetX||0,a=i.shadowOffsetY||0,d=i.shadowBlur,r=i.shadowColor;else{if(!i.textShadowBlur)return void this.removeDom(e,i);s=i.textShadowOffsetX||0,a=i.textShadowOffsetY||0,d=i.textShadowBlur,r=i.textShadowColor}o.setAttribute("dx",s/h),o.setAttribute("dy",a/l),o.setAttribute("flood-color",r);var f=d/2/h,n=d/2/l,u=f+" "+n;o.setAttribute("stdDeviation",u),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(d/2*200)+"%"),e.setAttribute("height",Math.ceil(d/2*200)+"%"),e.appendChild(o),t._shadowDom=e},s.prototype.markUsed=function(t){t._shadowDom&&d.prototype.markUsed.call(this,t._shadowDom)};var i=s;o.exports=i}); ;/*!node_modules/zrender/lib/svg/Painter.js*/ -amis.define("node_modules/zrender/lib/svg/Painter",function(e,t,i){function r(e){return parseInt(e,10)}function n(e){return e instanceof v?z:e instanceof _?U:e instanceof m?T:z}function a(e,t){return t&&e&&t.parentNode!==e}function s(e,t,i){if(a(e,t)&&i){var r=i.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function o(e,t){if(a(e,t)){var i=e.firstChild;i?e.insertBefore(t,i):e.appendChild(t)}}function h(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function d(e){return e.__textSvgEl}function l(e){return e.__svgEl}function u(e){return function(){c('In SVG mode painter not support method "'+e+'"')}}var g=e("node_modules/zrender/lib/svg/core"),f=g.createElement,p=e("node_modules/zrender/lib/core/util"),c=e("node_modules/zrender/lib/core/log"),v=e("node_modules/zrender/lib/graphic/Path"),_=e("node_modules/zrender/lib/graphic/Image"),m=e("node_modules/zrender/lib/graphic/Text"),w=e("node_modules/zrender/lib/core/arrayDiff2"),y=e("node_modules/zrender/lib/svg/helper/GradientManager"),b=e("node_modules/zrender/lib/svg/helper/ClippathManager"),M=e("node_modules/zrender/lib/svg/helper/ShadowManager"),L=e("node_modules/zrender/lib/svg/graphic"),z=L.path,U=L.image,T=L.text,x=function(e,t,i,r){this.root=e,this.storage=t,this._opts=i=p.extend({},i||{});var n=f("svg");n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new y(r,n),this.clipPathManager=new b(r,n),this.shadowManager=new M(r,n);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgRoot=n,this._viewport=a,e.appendChild(a),a.appendChild(n),this.resize(i.width,i.height),this._visibleList=[]};x.prototype={constructor:x,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var e=this.getViewportRoot();return e?{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}:void 0},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._viewport.style.background=e},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,i=this._svgRoot,r=this._visibleList,a=e.length,u=[];for(t=0;a>t;t++){var g=e[t],f=n(g),p=l(g)||d(g);g.invisible||(g.__dirty&&(f&&f.brush(g),this.clipPathManager.update(g),g.style&&(this.gradientManager.update(g.style.fill),this.gradientManager.update(g.style.stroke),this.shadowManager.update(p,g)),g.__dirty=!1),u.push(g))}var c,v=w(r,u);for(t=0;t=0;--r)if(t[r]===e)return!0;return!1}),i}return null}return i[0]},resize:function(e,t){var i=this._viewport;i.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var n=i.style;n.width=e+"px",n.height=t+"px";var a=this._svgRoot;a.setAttribute("width",e),a.setAttribute("height",t)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var o=this.root,h=document.defaultView.getComputedStyle(o);return(o[n]||r(h[i])||r(o.style[i]))-(r(h[a])||0)-(r(h[s])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){this.refresh();var e=this._svgRoot.outerHTML;return"data:image/svg+xml;charset=UTF-8,"+e}},p.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(e){x.prototype[e]=u(e)});var R=x;i.exports=R}); +amis.define("node_modules/zrender/lib/svg/Painter",function(t,e,i){function r(t){return parseInt(t,10)}function n(t){return t instanceof v?L:t instanceof _?z:t instanceof m?U:L}function o(t,e){return e&&t&&e.parentNode!==t}function s(t,e,i){if(o(t,e)&&i){var r=i.nextSibling;r?t.insertBefore(e,r):t.appendChild(e)}}function a(t,e){if(o(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function d(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function h(t){return t.__textSvgEl}function g(t){return t.__svgEl}function u(t){return function(){f('In SVG mode painter not support method "'+t+'"')}}var l=t("node_modules/zrender/lib/svg/core"),c=l.createElement,p=t("node_modules/zrender/lib/core/util"),f=t("node_modules/zrender/lib/core/log"),v=t("node_modules/zrender/lib/graphic/Path"),_=t("node_modules/zrender/lib/graphic/Image"),m=t("node_modules/zrender/lib/graphic/Text"),b=t("node_modules/zrender/lib/core/arrayDiff2"),w=t("node_modules/zrender/lib/svg/helper/GradientManager"),y=t("node_modules/zrender/lib/svg/helper/ClippathManager"),M=t("node_modules/zrender/lib/svg/helper/ShadowManager"),k=t("node_modules/zrender/lib/svg/graphic"),L=k.path,z=k.image,U=k.text,C=function(t,e,i,r){this.root=t,this.storage=e,this._opts=i=p.extend({},i||{});var n=c("svg");n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=c("g");n.appendChild(o);var s=c("g");n.appendChild(s),this.gradientManager=new w(r,s),this.clipPathManager=new y(r,s),this.shadowManager=new M(r,s);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgDom=n,this._svgRoot=s,this._backgroundRoot=o,this._viewport=a,t.appendChild(a),a.appendChild(n),this.resize(i.width,i.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=c("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,r=this._visibleList,o=t.length,u=[];for(e=0;o>e;e++){var l=t[e],c=n(l),p=g(l)||h(l);l.invisible||(l.__dirty&&(c&&c.brush(l),this.clipPathManager.update(l),l.style&&(this.gradientManager.update(l.style.fill),this.gradientManager.update(l.style.stroke),this.shadowManager.update(p,l)),l.__dirty=!1),u.push(l))}var f,v=b(r,u);for(e=0;e=0;--r)if(e[r]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var n=i.style;n.width=t+"px",n.height=e+"px";var o=this._svgDom;o.setAttribute("width",t),o.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,d=document.defaultView.getComputedStyle(a);return(a[n]||r(d[i])||r(a.style[i]))-(r(d[o])||0)-(r(d[s])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var t=encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+t}},p.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(t){C.prototype[t]=u(t)});var R=C;i.exports=R}); ;/*!node_modules/zrender/lib/svg/svg.js*/ amis.define("node_modules/zrender/lib/svg/svg",function(e){e("node_modules/zrender/lib/svg/graphic");var r=e("node_modules/zrender/lib/zrender"),d=r.registerPainter,n=e("node_modules/zrender/lib/svg/Painter");d("svg",n)}); ;/*!node_modules/zrender/lib/vml/core.js*/ @@ -209,7 +211,7 @@ amis.define("node_modules/echarts/lib/model/mixin/lineStyle",function(e,t,i){var ;/*!node_modules/echarts/lib/model/mixin/areaStyle.js*/ amis.define("node_modules/echarts/lib/model/mixin/areaStyle",function(e,o,a){var l=e("node_modules/echarts/lib/model/mixin/makeStyleMapper"),t=l([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),i={getAreaStyle:function(e,o){return t(this,e,o)}};a.exports=i}); ;/*!node_modules/echarts/lib/util/graphic.js*/ -amis.define("node_modules/echarts/lib/util/graphic",function(e,t){function o(e){return nt.extend(e)}function r(e,t){return tt.extendFromString(e,t)}function i(e,t){Lt[e]=t}function n(e){return Lt.hasOwnProperty(e)?Lt[e]:void 0}function l(e,t,o,r){var i=tt.createFromString(e,t);return o&&("center"===r&&(o=h(o,i.getBoundingRect())),d(i,o)),i}function a(e,t,o){var r=new at({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===o){var i={width:e.width,height:e.height};r.setStyle(h(t,i))}}});return r}function h(e,t){var o,r=t.width/t.height,i=e.height*r;i<=e.width?o=e.height:(i=e.width,o=i/r);var n=e.x+e.width/2,l=e.y+e.height/2;return{x:n-i/2,y:l-o/2,width:i,height:o}}function d(e,t){if(e.applyTransform){var o=e.getBoundingRect(),r=o.calculateTransform(t);e.applyTransform(r)}}function u(e){return zt.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function s(e){return zt.subPixelOptimizeRect(e.shape,e.shape,e.style),e}function c(e){return null!=e&&"none"!==e}function g(e){if("string"!=typeof e)return e;var t=It.get(e);return t||(t=ot.lift(e,-.1),1e4>At&&(It.set(e,t),At++)),t}function f(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(!t)return void(e.__cachedNormalStl=e.__cachedNormalZ2=null);var o=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var r=e.style;for(var i in t)null!=t[i]&&(o[i]=r[i]);o.fill=r.fill,o.stroke=r.stroke}}function x(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var o=e.__zr,r=e.useHoverLayer&&o&&"canvas"===o.painter.type;if(e.__highlighted=r?"layer":"plain",!(e.isGroup||!o&&e.useHoverLayer)){var i=e,n=e.style;r&&(i=o.addHover(e),n=i.style),A(n),r||f(i),n.extendFrom(t),S(n,t,"fill"),S(n,t,"stroke"),I(n),r||(e.dirty(!1),e.z2+=Dt)}}}function S(e,t,o){!c(t[o])&&c(e[o])&&(e[o]=g(e[o]))}function p(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var o=e.style,r=e.__cachedNormalStl;r&&(A(o),e.setStyle(r),I(o));var i=e.__cachedNormalZ2;null!=i&&e.z2-i===Dt&&(e.z2=i)}}function m(e,t,o){var r,i=Rt,n=Rt;e.__highlighted&&(i=kt,r=!0),t(e,o),e.__highlighted&&(n=kt,r=!0),e.isGroup&&e.traverse(function(e){!e.isGroup&&t(e,o)}),r&&e.__highDownOnUpdate&&e.__highDownOnUpdate(i,n)}function v(e,t){t=e.__hoverStl=t!==!1&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,p(e),x(e))}function _(e){!z(this,e)&&!this.__highByOuter&&m(this,x)}function w(e){!z(this,e)&&!this.__highByOuter&&m(this,p)}function y(e){this.__highByOuter|=1<<(e||0),m(this,x)}function b(e){!(this.__highByOuter&=~(1<<(e||0)))&&m(this,p)}function z(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function O(e,t){P(e,!0),m(e,v,t)}function P(e,t){var o=t===!1;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!o||e.__highDownDispatcher){var r=o?"off":"on";e[r]("mouseover",_)[r]("mouseout",w),e[r]("emphasis",y)[r]("normal",b),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!o}}function B(e){return!(!e||!e.__highDownDispatcher)}function D(e){var t=Ft[e];return null==t&&32>=Ct&&(t=Ft[e]=Ct++),t}function T(e,t,o,r,i,n,l){i=i||Bt;var a,h=i.labelFetcher,d=i.labelDataIndex,u=i.labelDimIndex,s=o.getShallow("show"),c=r.getShallow("show");(s||c)&&(h&&(a=h.getFormattedLabel(d,"normal",null,u)),null==a&&(a=et.isFunction(i.defaultText)?i.defaultText(d,i):i.defaultText));var g=s?a:null,f=c?et.retrieve2(h?h.getFormattedLabel(d,"emphasis",null,u):null,a):null;(null!=g||null!=f)&&(R(e,o,n,i),R(t,r,l,i,!0)),e.text=g,t.text=f}function k(e,t,o){var r=e.style;t&&(A(r),e.setStyle(t),I(r)),r=e.__hoverStl,o&&r&&(A(r),et.extend(r,o),I(r))}function R(e,t,o,r,i){return F(e,t,r,i),o&&et.extend(e,o),e}function C(e,t,o){var r,i={isRectText:!0};o===!1?r=!0:i.autoColor=o,F(e,t,i,r)}function F(e,t,o,r){if(o=o||Bt,o.isRectText){var i;o.getTextPosition?i=o.getTextPosition(t,r):(i=t.getShallow("position")||(r?null:"inside"),"outside"===i&&(i="top")),e.textPosition=i,e.textOffset=t.getShallow("offset");var n=t.getShallow("rotate");null!=n&&(n*=Math.PI/180),e.textRotation=n,e.textDistance=et.retrieve2(t.getShallow("distance"),r?null:5)}var l,a=t.ecModel,h=a&&a.option.textStyle,d=L(t);if(d){l={};for(var u in d)if(d.hasOwnProperty(u)){var s=t.getModel(["rich",u]);W(l[u]={},s,h,o,r)}}return e.rich=l,W(e,t,h,o,r,!0),o.forceRich&&!o.textStyle&&(o.textStyle={}),e}function L(e){for(var t;e&&e!==e.ecModel;){var o=(e.option||Bt).rich;if(o){t=t||{};for(var r in o)o.hasOwnProperty(r)&&(t[r]=1)}e=e.parentModel}return t}function W(e,t,o,r,i,n){o=!i&&o||Bt,e.textFill=H(t.getShallow("color"),r)||o.color,e.textStroke=H(t.getShallow("textBorderColor"),r)||o.textBorderColor,e.textStrokeWidth=et.retrieve2(t.getShallow("textBorderWidth"),o.textBorderWidth),i||(n&&(e.insideRollbackOpt=r,I(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=t.getShallow("fontStyle")||o.fontStyle,e.fontWeight=t.getShallow("fontWeight")||o.fontWeight,e.fontSize=t.getShallow("fontSize")||o.fontSize,e.fontFamily=t.getShallow("fontFamily")||o.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),n&&r.disableBox||(e.textBackgroundColor=H(t.getShallow("backgroundColor"),r),e.textPadding=t.getShallow("padding"),e.textBorderColor=H(t.getShallow("borderColor"),r),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||o.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||o.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||o.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||o.textShadowOffsetY}function H(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function I(e){var t,o=e.textPosition,r=e.insideRollbackOpt;if(r&&null==e.textFill){var i=r.autoColor,n=r.isRectText,l=r.useInsideStyle,a=l!==!1&&(l===!0||n&&o&&"string"==typeof o&&o.indexOf("inside")>=0),h=!a&&null!=i;(a||h)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),a&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=i,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),h&&(e.textFill=i)}e.insideRollback=t}function A(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function M(e,t){var o=t&&t.getModel("textStyle");return et.trim([e.fontStyle||o&&o.getShallow("fontStyle")||"",e.fontWeight||o&&o.getShallow("fontWeight")||"",(e.fontSize||o&&o.getShallow("fontSize")||12)+"px",e.fontFamily||o&&o.getShallow("fontFamily")||"sans-serif"].join(" "))}function G(e,t,o,r,i,n){"function"==typeof i&&(n=i,i=null);var l=r&&r.isAnimationEnabled();if(l){var a=e?"Update":"",h=r.getShallow("animationDuration"+a),d=r.getShallow("animationEasing"+a),u=r.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"==typeof h&&(h=h(i)),h>0?t.animateTo(o,h,u||0,d,n,!!n):(t.stopAnimation(),t.attr(o),n&&n())}else t.stopAnimation(),t.attr(o),n&&n()}function E(e,t,o,r,i){G(!0,e,t,o,r,i)}function N(e,t,o,r,i){G(!1,e,t,o,r,i)}function Y(e,t){for(var o=rt.identity([]);e&&e!==t;)rt.mul(o,e.getLocalTransform(),o),e=e.parent;return o}function U(e,t,o){return t&&!et.isArrayLike(t)&&(t=lt.getLocalTransform(t)),o&&(t=rt.invert([],t)),it.applyTransform([],e,t)}function X(e,t,o){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),n=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return n=U(n,t,o),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function Z(e,t,o){function r(e){var t={};return e.traverse(function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={position:it.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=et.extend({},e.shape)),t}if(e&&t){var n=r(e);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=n[e.anid];if(t){var r=i(e);e.attr(i(t)),E(e,r,o,e.dataIndex)}}})}}function j(e,t){return et.map(e,function(e){var o=e[0];o=Ot(o,t.x),o=Pt(o,t.x+t.width);var r=e[1];return r=Ot(r,t.y),r=Pt(r,t.y+t.height),[o,r]})}function V(e,t){var o=Ot(e.x,t.x),r=Pt(e.x+e.width,t.x+t.width),i=Ot(e.y,t.y),n=Pt(e.y+e.height,t.y+t.height);return r>=o&&n>=i?{x:o,y:i,width:r-o,height:n-i}:void 0}function q(e,t,o){t=et.extend({rectHover:!0},t);var r=t.style={strokeNoScale:!0};return o=o||{x:-1,y:-1,width:2,height:2},e?0===e.indexOf("image://")?(r.image=e.slice(8),et.defaults(r,o),new at(t)):l(e.replace("path://",""),t,o,"center"):void 0}function J(e,t,o,r,i){for(var n=0,l=i[i.length-1];nx||x>1)return!1;var S=Q(g,f,u,s)/c;return 0>S||S>1?!1:!0}function Q(e,t,o,r){return e*r-o*t}function $(e){return 1e-6>=e&&e>=-1e-6}var et=e("node_modules/zrender/lib/core/util"),tt=e("node_modules/zrender/lib/tool/path"),ot=e("node_modules/zrender/lib/tool/color"),rt=e("node_modules/zrender/lib/core/matrix"),it=e("node_modules/zrender/lib/core/vector"),nt=e("node_modules/zrender/lib/graphic/Path"),lt=e("node_modules/zrender/lib/mixin/Transformable"),at=e("node_modules/zrender/lib/graphic/Image");t.Image=at;var ht=e("node_modules/zrender/lib/container/Group");t.Group=ht;var dt=e("node_modules/zrender/lib/graphic/Text");t.Text=dt;var ut=e("node_modules/zrender/lib/graphic/shape/Circle");t.Circle=ut;var st=e("node_modules/zrender/lib/graphic/shape/Sector");t.Sector=st;var ct=e("node_modules/zrender/lib/graphic/shape/Ring");t.Ring=ct;var gt=e("node_modules/zrender/lib/graphic/shape/Polygon");t.Polygon=gt;var ft=e("node_modules/zrender/lib/graphic/shape/Polyline");t.Polyline=ft;var xt=e("node_modules/zrender/lib/graphic/shape/Rect");t.Rect=xt;var St=e("node_modules/zrender/lib/graphic/shape/Line");t.Line=St;var pt=e("node_modules/zrender/lib/graphic/shape/BezierCurve");t.BezierCurve=pt;var mt=e("node_modules/zrender/lib/graphic/shape/Arc");t.Arc=mt;var vt=e("node_modules/zrender/lib/graphic/CompoundPath");t.CompoundPath=vt;var _t=e("node_modules/zrender/lib/graphic/LinearGradient");t.LinearGradient=_t;var wt=e("node_modules/zrender/lib/graphic/RadialGradient");t.RadialGradient=wt;var yt=e("node_modules/zrender/lib/core/BoundingRect");t.BoundingRect=yt;var bt=e("node_modules/zrender/lib/graphic/IncrementalDisplayable");t.IncrementalDisplayable=bt;var zt=e("node_modules/zrender/lib/graphic/helper/subPixelOptimize"),Ot=Math.max,Pt=Math.min,Bt={},Dt=1,Tt={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},kt="emphasis",Rt="normal",Ct=1,Ft={},Lt={},Wt=tt.mergePath,Ht=zt.subPixelOptimize,It=et.createHashMap(),At=0;i("circle",ut),i("sector",st),i("ring",ct),i("polygon",gt),i("polyline",ft),i("rect",xt),i("line",St),i("bezierCurve",pt),i("arc",mt),t.Z2_EMPHASIS_LIFT=Dt,t.CACHED_LABEL_STYLE_PROPERTIES=Tt,t.extendShape=o,t.extendPath=r,t.registerShape=i,t.getShapeClass=n,t.makePath=l,t.makeImage=a,t.mergePath=Wt,t.resizePath=d,t.subPixelOptimizeLine=u,t.subPixelOptimizeRect=s,t.subPixelOptimize=Ht,t.setElementHoverStyle=v,t.setHoverStyle=O,t.setAsHighDownDispatcher=P,t.isHighDownDispatcher=B,t.getHighlightDigit=D,t.setLabelStyle=T,t.modifyLabelStyle=k,t.setTextStyle=R,t.setText=C,t.getFont=M,t.updateProps=E,t.initProps=N,t.getTransform=Y,t.applyTransform=U,t.transformDirection=X,t.groupTransition=Z,t.clipPointsByRect=j,t.clipRectByRect=V,t.createIcon=q,t.linePolygonIntersect=J,t.lineLineIntersect=K}); +amis.define("node_modules/echarts/lib/util/graphic",function(e,t){function o(e){return nt.extend(e)}function r(e,t){return tt.extendFromString(e,t)}function i(e,t){Lt[e]=t}function n(e){return Lt.hasOwnProperty(e)?Lt[e]:void 0}function l(e,t,o,r){var i=tt.createFromString(e,t);return o&&("center"===r&&(o=h(o,i.getBoundingRect())),d(i,o)),i}function a(e,t,o){var r=new at({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===o){var i={width:e.width,height:e.height};r.setStyle(h(t,i))}}});return r}function h(e,t){var o,r=t.width/t.height,i=e.height*r;i<=e.width?o=e.height:(i=e.width,o=i/r);var n=e.x+e.width/2,l=e.y+e.height/2;return{x:n-i/2,y:l-o/2,width:i,height:o}}function d(e,t){if(e.applyTransform){var o=e.getBoundingRect(),r=o.calculateTransform(t);e.applyTransform(r)}}function u(e){return zt.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function s(e){return zt.subPixelOptimizeRect(e.shape,e.shape,e.style),e}function c(e){return null!=e&&"none"!==e}function g(e){if("string"!=typeof e)return e;var t=It.get(e);return t||(t=ot.lift(e,-.1),1e4>At&&(It.set(e,t),At++)),t}function f(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(!t)return void(e.__cachedNormalStl=e.__cachedNormalZ2=null);var o=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var r=e.style;for(var i in t)null!=t[i]&&(o[i]=r[i]);o.fill=r.fill,o.stroke=r.stroke}}function x(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var o=e.__zr,r=e.useHoverLayer&&o&&"canvas"===o.painter.type;if(e.__highlighted=r?"layer":"plain",!(e.isGroup||!o&&e.useHoverLayer)){var i=e,n=e.style;r&&(i=o.addHover(e),n=i.style),A(n),r||f(i),n.extendFrom(t),S(n,t,"fill"),S(n,t,"stroke"),I(n),r||(e.dirty(!1),e.z2+=Dt)}}}function S(e,t,o){!c(t[o])&&c(e[o])&&(e[o]=g(e[o]))}function p(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var o=e.style,r=e.__cachedNormalStl;r&&(A(o),e.setStyle(r),I(o));var i=e.__cachedNormalZ2;null!=i&&e.z2-i===Dt&&(e.z2=i)}}function m(e,t,o){var r,i=Rt,n=Rt;e.__highlighted&&(i=kt,r=!0),t(e,o),e.__highlighted&&(n=kt,r=!0),e.isGroup&&e.traverse(function(e){!e.isGroup&&t(e,o)}),r&&e.__highDownOnUpdate&&e.__highDownOnUpdate(i,n)}function v(e,t){t=e.__hoverStl=t!==!1&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,p(e),x(e))}function _(e){!z(this,e)&&!this.__highByOuter&&m(this,x)}function w(e){!z(this,e)&&!this.__highByOuter&&m(this,p)}function y(e){this.__highByOuter|=1<<(e||0),m(this,x)}function b(e){!(this.__highByOuter&=~(1<<(e||0)))&&m(this,p)}function z(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function O(e,t){P(e,!0),m(e,v,t)}function P(e,t){var o=t===!1;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!o||e.__highDownDispatcher){var r=o?"off":"on";e[r]("mouseover",_)[r]("mouseout",w),e[r]("emphasis",y)[r]("normal",b),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!o}}function B(e){return!(!e||!e.__highDownDispatcher)}function D(e){var t=Ft[e];return null==t&&32>=Ct&&(t=Ft[e]=Ct++),t}function T(e,t,o,r,i,n,l){i=i||Bt;var a,h=i.labelFetcher,d=i.labelDataIndex,u=i.labelDimIndex,s=i.labelProp,c=o.getShallow("show"),g=r.getShallow("show");(c||g)&&(h&&(a=h.getFormattedLabel(d,"normal",null,u,s)),null==a&&(a=et.isFunction(i.defaultText)?i.defaultText(d,i):i.defaultText));var f=c?a:null,x=g?et.retrieve2(h?h.getFormattedLabel(d,"emphasis",null,u,s):null,a):null;(null!=f||null!=x)&&(R(e,o,n,i),R(t,r,l,i,!0)),e.text=f,t.text=x}function k(e,t,o){var r=e.style;t&&(A(r),e.setStyle(t),I(r)),r=e.__hoverStl,o&&r&&(A(r),et.extend(r,o),I(r))}function R(e,t,o,r,i){return F(e,t,r,i),o&&et.extend(e,o),e}function C(e,t,o){var r,i={isRectText:!0};o===!1?r=!0:i.autoColor=o,F(e,t,i,r)}function F(e,t,o,r){if(o=o||Bt,o.isRectText){var i;o.getTextPosition?i=o.getTextPosition(t,r):(i=t.getShallow("position")||(r?null:"inside"),"outside"===i&&(i="top")),e.textPosition=i,e.textOffset=t.getShallow("offset");var n=t.getShallow("rotate");null!=n&&(n*=Math.PI/180),e.textRotation=n,e.textDistance=et.retrieve2(t.getShallow("distance"),r?null:5)}var l,a=t.ecModel,h=a&&a.option.textStyle,d=L(t);if(d){l={};for(var u in d)if(d.hasOwnProperty(u)){var s=t.getModel(["rich",u]);W(l[u]={},s,h,o,r)}}return e.rich=l,W(e,t,h,o,r,!0),o.forceRich&&!o.textStyle&&(o.textStyle={}),e}function L(e){for(var t;e&&e!==e.ecModel;){var o=(e.option||Bt).rich;if(o){t=t||{};for(var r in o)o.hasOwnProperty(r)&&(t[r]=1)}e=e.parentModel}return t}function W(e,t,o,r,i,n){o=!i&&o||Bt,e.textFill=H(t.getShallow("color"),r)||o.color,e.textStroke=H(t.getShallow("textBorderColor"),r)||o.textBorderColor,e.textStrokeWidth=et.retrieve2(t.getShallow("textBorderWidth"),o.textBorderWidth),i||(n&&(e.insideRollbackOpt=r,I(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=t.getShallow("fontStyle")||o.fontStyle,e.fontWeight=t.getShallow("fontWeight")||o.fontWeight,e.fontSize=t.getShallow("fontSize")||o.fontSize,e.fontFamily=t.getShallow("fontFamily")||o.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),n&&r.disableBox||(e.textBackgroundColor=H(t.getShallow("backgroundColor"),r),e.textPadding=t.getShallow("padding"),e.textBorderColor=H(t.getShallow("borderColor"),r),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||o.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||o.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||o.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||o.textShadowOffsetY}function H(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function I(e){var t,o=e.textPosition,r=e.insideRollbackOpt;if(r&&null==e.textFill){var i=r.autoColor,n=r.isRectText,l=r.useInsideStyle,a=l!==!1&&(l===!0||n&&o&&"string"==typeof o&&o.indexOf("inside")>=0),h=!a&&null!=i;(a||h)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),a&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=i,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),h&&(e.textFill=i)}e.insideRollback=t}function A(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function M(e,t){var o=t&&t.getModel("textStyle");return et.trim([e.fontStyle||o&&o.getShallow("fontStyle")||"",e.fontWeight||o&&o.getShallow("fontWeight")||"",(e.fontSize||o&&o.getShallow("fontSize")||12)+"px",e.fontFamily||o&&o.getShallow("fontFamily")||"sans-serif"].join(" "))}function G(e,t,o,r,i,n){"function"==typeof i&&(n=i,i=null);var l=r&&r.isAnimationEnabled();if(l){var a=e?"Update":"",h=r.getShallow("animationDuration"+a),d=r.getShallow("animationEasing"+a),u=r.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"==typeof h&&(h=h(i)),h>0?t.animateTo(o,h,u||0,d,n,!!n):(t.stopAnimation(),t.attr(o),n&&n())}else t.stopAnimation(),t.attr(o),n&&n()}function E(e,t,o,r,i){G(!0,e,t,o,r,i)}function N(e,t,o,r,i){G(!1,e,t,o,r,i)}function Y(e,t){for(var o=rt.identity([]);e&&e!==t;)rt.mul(o,e.getLocalTransform(),o),e=e.parent;return o}function U(e,t,o){return t&&!et.isArrayLike(t)&&(t=lt.getLocalTransform(t)),o&&(t=rt.invert([],t)),it.applyTransform([],e,t)}function X(e,t,o){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),n=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return n=U(n,t,o),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function Z(e,t,o){function r(e){var t={};return e.traverse(function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={position:it.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=et.extend({},e.shape)),t}if(e&&t){var n=r(e);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=n[e.anid];if(t){var r=i(e);e.attr(i(t)),E(e,r,o,e.dataIndex)}}})}}function j(e,t){return et.map(e,function(e){var o=e[0];o=Ot(o,t.x),o=Pt(o,t.x+t.width);var r=e[1];return r=Ot(r,t.y),r=Pt(r,t.y+t.height),[o,r]})}function V(e,t){var o=Ot(e.x,t.x),r=Pt(e.x+e.width,t.x+t.width),i=Ot(e.y,t.y),n=Pt(e.y+e.height,t.y+t.height);return r>=o&&n>=i?{x:o,y:i,width:r-o,height:n-i}:void 0}function q(e,t,o){t=et.extend({rectHover:!0},t);var r=t.style={strokeNoScale:!0};return o=o||{x:-1,y:-1,width:2,height:2},e?0===e.indexOf("image://")?(r.image=e.slice(8),et.defaults(r,o),new at(t)):l(e.replace("path://",""),t,o,"center"):void 0}function J(e,t,o,r,i){for(var n=0,l=i[i.length-1];nx||x>1)return!1;var S=Q(g,f,u,s)/c;return 0>S||S>1?!1:!0}function Q(e,t,o,r){return e*r-o*t}function $(e){return 1e-6>=e&&e>=-1e-6}var et=e("node_modules/zrender/lib/core/util"),tt=e("node_modules/zrender/lib/tool/path"),ot=e("node_modules/zrender/lib/tool/color"),rt=e("node_modules/zrender/lib/core/matrix"),it=e("node_modules/zrender/lib/core/vector"),nt=e("node_modules/zrender/lib/graphic/Path"),lt=e("node_modules/zrender/lib/mixin/Transformable"),at=e("node_modules/zrender/lib/graphic/Image");t.Image=at;var ht=e("node_modules/zrender/lib/container/Group");t.Group=ht;var dt=e("node_modules/zrender/lib/graphic/Text");t.Text=dt;var ut=e("node_modules/zrender/lib/graphic/shape/Circle");t.Circle=ut;var st=e("node_modules/zrender/lib/graphic/shape/Sector");t.Sector=st;var ct=e("node_modules/zrender/lib/graphic/shape/Ring");t.Ring=ct;var gt=e("node_modules/zrender/lib/graphic/shape/Polygon");t.Polygon=gt;var ft=e("node_modules/zrender/lib/graphic/shape/Polyline");t.Polyline=ft;var xt=e("node_modules/zrender/lib/graphic/shape/Rect");t.Rect=xt;var St=e("node_modules/zrender/lib/graphic/shape/Line");t.Line=St;var pt=e("node_modules/zrender/lib/graphic/shape/BezierCurve");t.BezierCurve=pt;var mt=e("node_modules/zrender/lib/graphic/shape/Arc");t.Arc=mt;var vt=e("node_modules/zrender/lib/graphic/CompoundPath");t.CompoundPath=vt;var _t=e("node_modules/zrender/lib/graphic/LinearGradient");t.LinearGradient=_t;var wt=e("node_modules/zrender/lib/graphic/RadialGradient");t.RadialGradient=wt;var yt=e("node_modules/zrender/lib/core/BoundingRect");t.BoundingRect=yt;var bt=e("node_modules/zrender/lib/graphic/IncrementalDisplayable");t.IncrementalDisplayable=bt;var zt=e("node_modules/zrender/lib/graphic/helper/subPixelOptimize"),Ot=Math.max,Pt=Math.min,Bt={},Dt=1,Tt={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},kt="emphasis",Rt="normal",Ct=1,Ft={},Lt={},Wt=tt.mergePath,Ht=zt.subPixelOptimize,It=et.createHashMap(),At=0;i("circle",ut),i("sector",st),i("ring",ct),i("polygon",gt),i("polyline",ft),i("rect",xt),i("line",St),i("bezierCurve",pt),i("arc",mt),t.Z2_EMPHASIS_LIFT=Dt,t.CACHED_LABEL_STYLE_PROPERTIES=Tt,t.extendShape=o,t.extendPath=r,t.registerShape=i,t.getShapeClass=n,t.makePath=l,t.makeImage=a,t.mergePath=Wt,t.resizePath=d,t.subPixelOptimizeLine=u,t.subPixelOptimizeRect=s,t.subPixelOptimize=Ht,t.setElementHoverStyle=v,t.setHoverStyle=O,t.setAsHighDownDispatcher=P,t.isHighDownDispatcher=B,t.getHighlightDigit=D,t.setLabelStyle=T,t.modifyLabelStyle=k,t.setTextStyle=R,t.setText=C,t.getFont=M,t.updateProps=E,t.initProps=N,t.getTransform=Y,t.applyTransform=U,t.transformDirection=X,t.groupTransition=Z,t.clipPointsByRect=j,t.clipRectByRect=V,t.createIcon=q,t.linePolygonIntersect=J,t.lineLineIntersect=K}); ;/*!node_modules/echarts/lib/model/mixin/textStyle.js*/ amis.define("node_modules/echarts/lib/model/mixin/textStyle",function(t,e,l){var o=t("node_modules/zrender/lib/contain/text"),i=t("node_modules/echarts/lib/util/graphic"),n=["textStyle","color"],h={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(n):null)},getFont:function(){return i.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return o.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};l.exports=h}); ;/*!node_modules/echarts/lib/model/mixin/itemStyle.js*/ @@ -221,7 +223,7 @@ amis.define("node_modules/echarts/lib/util/component",function(e,n){function r(e ;/*!node_modules/echarts/lib/util/number.js*/ amis.define("node_modules/echarts/lib/util/number",function(r,n){function t(r){return r.replace(/^\s+|\s+$/g,"")}function e(r,n,t,e){var i=n[1]-n[0],a=t[1]-t[0];if(0===i)return 0===a?t[0]:(t[0]+t[1])/2;if(e)if(i>0){if(r<=n[0])return t[0];if(r>=n[1])return t[1]}else{if(r>=n[0])return t[0];if(r<=n[1])return t[1]}else{if(r===n[0])return t[0];if(r===n[1])return t[1]}return(r-n[0])/i*a+t[0]}function i(r,n){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%"}return"string"==typeof r?t(r).match(/%$/)?parseFloat(r)/100*n:parseFloat(r):null==r?0/0:+r}function a(r,n,t){return null==n&&(n=10),n=Math.min(Math.max(0,n),20),r=(+r).toFixed(n),t?r:+r}function u(r){return r.sort(function(r,n){return r-n}),r}function o(r){if(r=+r,isNaN(r))return 0;for(var n=1,t=0;Math.round(r*n)/n!==r;)n*=10,t++;return t}function f(r){var n=r.toString(),t=n.indexOf("e");if(t>0){var e=+n.slice(t+1);return 0>e?-e:0}var i=n.indexOf(".");return 0>i?0:n.length-1-i}function c(r,n){var t=Math.log,e=Math.LN10,i=Math.floor(t(r[1]-r[0])/e),a=Math.round(t(Math.abs(n[1]-n[0]))/e),u=Math.min(Math.max(-i+a,0),20);return isFinite(u)?u:20}function l(r,n,t){if(!r[n])return 0;var e=w.reduce(r,function(r,n){return r+(isNaN(n)?0:n)},0);if(0===e)return 0;for(var i=Math.pow(10,t),a=w.map(r,function(r){return(isNaN(r)?0:r)/e*i*100}),u=100*i,o=w.map(a,function(r){return Math.floor(r)}),f=w.reduce(o,function(r,n){return r+n},0),c=w.map(a,function(r,n){return r-o[n]});u>f;){for(var l=Number.NEGATIVE_INFINITY,s=null,d=0,h=c.length;h>d;++d)c[d]>l&&(l=c[d],s=d);++o[s],c[s]=0,++f}return o[n]/i}function s(r){var n=2*Math.PI;return(r%n+n)%n}function d(r){return r>-x&&x>r}function h(r){if(r instanceof Date)return r;if("string"==typeof r){var n=F.exec(r);if(!n)return new Date(0/0);if(n[8]){var t=+n[4]||0;return"Z"!==n[8].toUpperCase()&&(t-=n[8].slice(0,3)),new Date(Date.UTC(+n[1],+(n[2]||1)-1,+n[3]||1,t,+(n[5]||0),+n[6]||0,+n[7]||0))}return new Date(+n[1],+(n[2]||1)-1,+n[3]||1,+n[4]||0,+(n[5]||0),+n[6]||0,+n[7]||0)}return new Date(null==r?0/0:Math.round(r))}function v(r){return Math.pow(10,M(r))}function M(r){if(0===r)return 0;var n=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,n)>=10&&n++,n}function p(r,n){var t,e=M(r),i=Math.pow(10,e),a=r/i;return t=n?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,r=t*i,e>=-20?+r.toFixed(0>e?-e:0):r}function m(r,n){var t=(r.length-1)*n+1,e=Math.floor(t),i=+r[e-1],a=t-e;return a?i+a*(r[e]-i):i}function g(r){function n(r,t,e){return r.interval[e]o;o++)a[o]<=t&&(a[o]=t,u[o]=o?1:1-e),t=a[o],e=u[o];a[0]===a[1]&&u[0]*u[1]!==1?r.splice(i,1):i++}return r}function N(r){return r-parseFloat(r)>=0}var w=r("node_modules/zrender/lib/core/util"),x=1e-4,b=9007199254740991,F=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;n.linearMap=e,n.parsePercent=i,n.round=a,n.asc=u,n.getPrecision=o,n.getPrecisionSafe=f,n.getPixelPrecision=c,n.getPercentWithPrecision=l,n.MAX_SAFE_INTEGER=b,n.remRadian=s,n.isRadianAroundZero=d,n.parseDate=h,n.quantity=v,n.quantityExponent=M,n.nice=p,n.quantile=m,n.reformIntervals=g,n.isNumeric=N}); ;/*!node_modules/echarts/lib/util/format.js*/ -amis.define("node_modules/echarts/lib/util/format",function(e,r){function t(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function n(e,r){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,r){return r.toUpperCase()}),r&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function a(e){return null==e?"":(e+"").replace(x,function(e,r){return y[r]})}function l(e,r,t){g.isArray(r)||(r=[r]);var n=r.length;if(!n)return"";for(var l=r[0].$vars||[],o=0;oc;c++)for(var u=0;u
':'':{renderMode:l,content:"{marker"+o+"|} ",style:{color:t}}:""}function c(e,r){return e+="","0000".substr(0,r-e.length)+e}function u(e,r,t){("week"===e||"month"===e||"quarter"===e||"half-year"===e||"year"===e)&&(e="MM-dd\nyyyy");var n=f.parseDate(r),a=t?"UTC":"",l=n["get"+a+"FullYear"](),o=n["get"+a+"Month"]()+1,i=n["get"+a+"Date"](),u=n["get"+a+"Hours"](),s=n["get"+a+"Minutes"](),p=n["get"+a+"Seconds"](),d=n["get"+a+"Milliseconds"]();return e=e.replace("MM",c(o,2)).replace("M",o).replace("yyyy",l).replace("yy",l%100).replace("dd",c(i,2)).replace("d",i).replace("hh",c(u,2)).replace("h",u).replace("mm",c(s,2)).replace("m",s).replace("ss",c(p,2)).replace("s",p).replace("SSS",c(d,3))}function s(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function p(e){return m.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function d(e,r,t,n,a,l,o,i){return m.getBoundingRect(e,r,t,n,a,i,l,o)}var g=e("node_modules/zrender/lib/core/util"),m=e("node_modules/zrender/lib/contain/text"),f=e("node_modules/echarts/lib/util/number"),h=g.normalizeCssArray,x=/([&<>"'])/g,y={"&":"&","<":"<",">":">",'"':""","'":"'"},b=["a","b","c","d","e","f","g"],C=function(e,r){return"{"+e+(null==r?"":r)+"}"},M=m.truncateText;r.addCommas=t,r.toCamelCase=n,r.normalizeCssArray=h,r.encodeHTML=a,r.formatTpl=l,r.formatTplSimple=o,r.getTooltipMarker=i,r.formatTime=u,r.capitalFirst=s,r.truncateText=M,r.getTextBoundingRect=p,r.getTextRect=d}); +amis.define("node_modules/echarts/lib/util/format",function(e,r){function t(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function n(e,r){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,r){return r.toUpperCase()}),r&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function a(e){return null==e?"":(e+"").replace(y,function(e,r){return b[r]})}function l(e,r,t){f.isArray(r)||(r=[r]);var n=r.length;if(!n)return"";for(var l=r[0].$vars||[],o=0;oc;c++)for(var u=0;u
':'':{renderMode:l,content:"{marker"+o+"|} ",style:{color:t}}:""}function c(e,r){return e+="","0000".substr(0,r-e.length)+e}function u(e,r,t){("week"===e||"month"===e||"quarter"===e||"half-year"===e||"year"===e)&&(e="MM-dd\nyyyy");var n=h.parseDate(r),a=t?"UTC":"",l=n["get"+a+"FullYear"](),o=n["get"+a+"Month"]()+1,i=n["get"+a+"Date"](),u=n["get"+a+"Hours"](),s=n["get"+a+"Minutes"](),p=n["get"+a+"Seconds"](),d=n["get"+a+"Milliseconds"]();return e=e.replace("MM",c(o,2)).replace("M",o).replace("yyyy",l).replace("yy",l%100).replace("dd",c(i,2)).replace("d",i).replace("hh",c(u,2)).replace("h",u).replace("mm",c(s,2)).replace("m",s).replace("ss",c(p,2)).replace("s",p).replace("SSS",c(d,3))}function s(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function p(e){return m.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function d(e,r,t,n,a,l,o,i){return m.getBoundingRect(e,r,t,n,a,i,l,o)}function g(e,r){if("_blank"===r||"blank"===r){var t=window.open();t.opener=null,t.location=e}else window.open(e,r)}var f=e("node_modules/zrender/lib/core/util"),m=e("node_modules/zrender/lib/contain/text"),h=e("node_modules/echarts/lib/util/number"),x=f.normalizeCssArray,y=/([&<>"'])/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},v=["a","b","c","d","e","f","g"],C=function(e,r){return"{"+e+(null==r?"":r)+"}"},M=m.truncateText;r.addCommas=t,r.toCamelCase=n,r.normalizeCssArray=x,r.encodeHTML=a,r.formatTpl=l,r.formatTplSimple=o,r.getTooltipMarker=i,r.formatTime=u,r.capitalFirst=s,r.truncateText=M,r.getTextBoundingRect=p,r.getTextRect=d,r.windowOpen=g}); ;/*!node_modules/echarts/lib/util/layout.js*/ amis.define("node_modules/echarts/lib/util/layout",function(t,e){function i(t,e,i,a,n){var r=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var l=0;e.eachChild(function(h,u){var s,c,d=h.position,N=h.getBoundingRect(),f=e.childAt(u+1),g=f&&f.getBoundingRect();if("horizontal"===t){var m=N.width+(g?-g.x+N.x:0);s=r+m,s>a||h.newline?(r=0,s=m,o+=l+i,l=N.height):l=Math.max(l,N.height)}else{var v=N.height+(g?-g.y+N.y:0);c=o+v,c>n||h.newline?(r+=l+i,o=0,c=v,l=N.width):l=Math.max(l,N.width)}h.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=s+i:o=c+i)})}function a(t,e,i){var a=e.width,n=e.height,r=N(t.x,a),o=N(t.y,n),l=N(t.x2,a),h=N(t.y2,n);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.x2)))&&(l=a),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=n),i=f.normalizeCssArray(i||0),{width:Math.max(l-r-i[1]-i[3],0),height:Math.max(h-o-i[0]-i[2],0)}}function n(t,e,i){i=f.normalizeCssArray(i||0);var a=e.width,n=e.height,r=N(t.left,a),o=N(t.top,n),l=N(t.right,a),h=N(t.bottom,n),u=N(t.width,a),s=N(t.height,n),d=i[2]+i[0],g=i[1]+i[3],m=t.aspect;switch(isNaN(u)&&(u=a-l-g-r),isNaN(s)&&(s=n-h-d-o),null!=m&&(isNaN(u)&&isNaN(s)&&(m>a/n?u=.8*a:s=.8*n),isNaN(u)&&(u=m*s),isNaN(s)&&(s=u/m)),isNaN(r)&&(r=a-l-u-g),isNaN(o)&&(o=n-h-s-d),t.left||t.right){case"center":r=a/2-u/2-i[3];break;case"right":r=a-u-g}switch(t.top||t.bottom){case"middle":case"center":o=n/2-s/2-i[0];break;case"bottom":o=n-s-d}r=r||0,o=o||0,isNaN(u)&&(u=a-g-r-(l||0)),isNaN(s)&&(s=n-d-o-(h||0));var v=new c(r+i[3],o+i[0],u,s);return v.margin=i,v}function r(t,e,i,a,r){var o=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],h=r&&r.boundingMode||"all";if(o||l){var u;if("raw"===h)u="group"===t.type?new c(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();u=u.clone(),u.applyTransform(d)}e=n(s.defaults({width:u.width,height:u.height},e),i,a);var N=t.position,f=o?e.x-u.x:0,g=l?e.y-u.y:0;t.attr("position","raw"===h?[f,g]:[N[0]+f,N[1]+g])}}function o(t,e){return null!=t[v[e][0]]||null!=t[v[e][1]]&&null!=t[v[e][2]]}function l(t,e,i){function a(i,a){var o={},h=0,u={},s=0,c=2;if(g(i,function(e){u[e]=t[e]}),g(i,function(t){n(e,t)&&(o[t]=u[t]=e[t]),r(o,t)&&h++,r(u,t)&&s++}),l[a])return r(e,i[1])?u[i[2]]=null:r(e,i[2])&&(u[i[1]]=null),u;if(s!==c&&h){if(h>=c)return o;for(var d=0;d=1)&&(t=1),t}var s=this._upstream,n=t&&t.skip;if(this._dirty&&s){var u=this.context;u.data=u.outputData=s.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var d;this._plan&&!n&&(d=this._plan(this.context));var _=e(this._modBy),h=this._modDataCount||0,a=e(t&&t.modBy),p=t&&t.modDataCount||0;(_!==a||h!==p)&&(d="reset");var l;(this._dirty||"reset"===d)&&(this._dirty=!1,l=r(this,n)),this._modBy=a,this._modDataCount=p;var c=t&&t.step;if(this._dueEnd=s?s._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var m=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(l||f>m)){var y=this._progress;if(o(y))for(var E=0;En?n++:null}function e(){var t=n%u*i+Math.ceil(n/u),e=n>=s?null:r>t?t:n;return n++,e}var s,n,i,r,u,o={reset:function(d,_,h,a){n=d,s=_,i=h,r=a,u=Math.ceil(r/i),o.next=i>1&&r>0?e:t}};return o}();_.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},_.unfinished=function(){return this._progress&&this._dueIndext.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function l(e,t){h.each(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,h.curry(u,t))})}function u(e){var t=d(e);t&&t.setOutputEnd(this.count())}function d(e){var t=(e.ecModel||{}).scheduler,a=t&&t.getPipeline(e.uid);if(a){var o=a.currentTask;if(o){var i=o.agentStubMap;i&&(o=i.get(e.uid))}return o}}var c=e("node_modules/echarts/lib/config"),h=(c.__DEV__,e("node_modules/zrender/lib/core/util")),m=e("node_modules/zrender/lib/core/env"),f=e("node_modules/echarts/lib/util/format"),p=f.formatTime,g=f.encodeHTML,v=f.addCommas,D=f.getTooltipMarker,y=e("node_modules/echarts/lib/util/model"),T=e("node_modules/echarts/lib/model/Component"),b=e("node_modules/echarts/lib/model/mixin/colorPalette"),x=e("node_modules/echarts/lib/model/mixin/dataFormat"),S=e("node_modules/echarts/lib/util/layout"),_=S.getLayoutParams,k=S.mergeLayoutParam,I=e("node_modules/echarts/lib/stream/task"),P=I.createTask,w=e("node_modules/echarts/lib/data/helper/sourceHelper"),M=w.prepareSource,A=w.getSource,C=e("node_modules/echarts/lib/data/helper/dataProvider"),E=C.retrieveRawValue,N=y.makeInner(),R=T.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,a){this.seriesIndex=this.componentIndex,this.dataTask=P({count:n,reset:r}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a),M(this);var i=this.getInitialData(e,a);l(i,this),this.dataTask.context.data=i,N(this).dataBeforeProcessed=i,o(this)},mergeDefaultAndTheme:function(e,t){var a=this.layoutMode,o=a?_(e):{},i=this.subType;T.hasClass(i)&&(i+="Series"),h.merge(e,t.getTheme().get(this.subType)),h.merge(e,this.getDefaultOption()),y.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&k(e,o,a)},mergeOption:function(e,t){e=h.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var a=this.layoutMode;a&&k(this.option,e,a),M(this);var i=this.getInitialData(e,t);l(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,N(this).dataBeforeProcessed=i,o(this)},fillDataTextStyle:function(e){if(e&&!h.isTypedArray(e))for(var t=["show"],a=0;a":"",y=f+s.join(f||", ");return{renderMode:o,content:y,style:u}}function n(e){return{renderMode:o,content:g(v(e)),style:u}}var r=this;o=o||"html";var s="html"===o?"
":"\n",l="richText"===o,u={},d=0,c=this.getData(),m=c.mapDimension("defaultedTooltip",!0),f=m.length,T=this.getRawValue(e),b=h.isArray(T),x=c.getItemVisual(e,"color");h.isObject(x)&&x.colorStops&&(x=(x.colorStops[0]||{}).color),x=x||"transparent";var S=f>1||b&&!f?i(T):n(f?E(c,e,m[0]):b?T[0]:T),_=S.content,k=r.seriesIndex+"at"+d,I=D({color:x,type:"item",renderMode:o,markerId:k});u[k]=x,++d;var P=c.getName(e),w=this.name;y.isNameSpecified(this)||(w=""),w=w?g(w)+(t?": ":s):"";var M="string"==typeof I?I:I.content,A=t?M+w+_:w+M+(P?g(P)+": "+_:_);return{html:A,markers:u}},isAnimationEnabled:function(){if(m.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,a){var o=this.ecModel,i=b.getColorFromPalette.call(this,e,t,a);return i||(i=o.getColorFromPalette(e,t,a)),i},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});h.mixin(R,x),h.mixin(R,b);var B=R;a.exports=B}); +amis.define("node_modules/echarts/lib/model/Series",function(t,e,a){function o(t){var e=t.name;y.isNameSpecified(t)||(t.name=i(t)||e)}function i(t){var e=t.getRawData(),a=e.mapDimension("seriesName",!0),o=[];return h.each(a,function(t){var a=e.getDimensionInfo(t);a.displayName&&o.push(a.displayName)}),o.join(" ")}function n(t){return t.model.getRawData().count()}function r(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),s}function s(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function l(t,e){h.each(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,h.curry(u,e))})}function u(t){var e=d(t);e&&e.setOutputEnd(this.count())}function d(t){var e=(t.ecModel||{}).scheduler,a=e&&e.getPipeline(t.uid);if(a){var o=a.currentTask;if(o){var i=o.agentStubMap;i&&(o=i.get(t.uid))}return o}}var c=t("node_modules/echarts/lib/config"),h=(c.__DEV__,t("node_modules/zrender/lib/core/util")),m=t("node_modules/zrender/lib/core/env"),f=t("node_modules/echarts/lib/util/format"),p=f.formatTime,g=f.encodeHTML,v=f.addCommas,D=f.getTooltipMarker,y=t("node_modules/echarts/lib/util/model"),T=t("node_modules/echarts/lib/model/Component"),b=t("node_modules/echarts/lib/model/mixin/colorPalette"),x=t("node_modules/echarts/lib/model/mixin/dataFormat"),S=t("node_modules/echarts/lib/util/layout"),_=S.getLayoutParams,k=S.mergeLayoutParam,I=t("node_modules/echarts/lib/stream/task"),P=I.createTask,w=t("node_modules/echarts/lib/data/helper/sourceHelper"),M=w.prepareSource,A=w.getSource,C=t("node_modules/echarts/lib/data/helper/dataProvider"),E=C.retrieveRawValue,N=y.makeInner(),R=T.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,a){this.seriesIndex=this.componentIndex,this.dataTask=P({count:n,reset:r}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a),M(this);var i=this.getInitialData(t,a);l(i,this),this.dataTask.context.data=i,N(this).dataBeforeProcessed=i,o(this)},mergeDefaultAndTheme:function(t,e){var a=this.layoutMode,o=a?_(t):{},i=this.subType;T.hasClass(i)&&(i+="Series"),h.merge(t,e.getTheme().get(this.subType)),h.merge(t,this.getDefaultOption()),y.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&k(t,o,a)},mergeOption:function(t,e){t=h.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var a=this.layoutMode;a&&k(this.option,t,a),M(this);var i=this.getInitialData(t,e);l(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,N(this).dataBeforeProcessed=i,o(this)},fillDataTextStyle:function(t){if(t&&!h.isTypedArray(t))for(var e=["show"],a=0;a":"",y=f+s.join(f||", ");return{renderMode:o,content:y,style:u}}function n(t){return{renderMode:o,content:g(v(t)),style:u}}var r=this;o=o||"html";var s="html"===o?"
":"\n",l="richText"===o,u={},d=0,c=this.getData(),m=c.mapDimension("defaultedTooltip",!0),f=m.length,T=this.getRawValue(t),b=h.isArray(T),x=c.getItemVisual(t,"color");h.isObject(x)&&x.colorStops&&(x=(x.colorStops[0]||{}).color),x=x||"transparent";var S=f>1||b&&!f?i(T):n(f?E(c,t,m[0]):b?T[0]:T),_=S.content,k=r.seriesIndex+"at"+d,I=D({color:x,type:"item",renderMode:o,markerId:k});u[k]=x,++d;var P=c.getName(t),w=this.name;y.isNameSpecified(this)||(w=""),w=w?g(w)+(e?": ":s):"";var M="string"==typeof I?I:I.content,A=e?M+w+_:w+M+(P?g(P)+": "+_:_);return{html:A,markers:u}},isAnimationEnabled:function(){if(m.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,a){var o=this.ecModel,i=b.getColorFromPalette.call(this,t,e,a);return i||(i=o.getColorFromPalette(t,e,a)),i},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});h.mixin(R,x),h.mixin(R,b);var B=R;a.exports=B}); ;/*!node_modules/echarts/lib/view/Component.js*/ amis.define("node_modules/echarts/lib/view/Component",function(e,n,t){var o=e("node_modules/zrender/lib/container/Group"),i=e("node_modules/echarts/lib/util/component"),r=e("node_modules/echarts/lib/util/clazz"),u=function(){this.group=new o,this.uid=i.getUID("viewComponent")};u.prototype={constructor:u,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var s=u.prototype;s.updateView=s.updateLayout=s.updateVisual=function(){},r.enableClassExtend(u),r.enableClassManagement(u,{registerWhenExtend:!0});var a=u;t.exports=a}); ;/*!node_modules/echarts/lib/chart/helper/createRenderPlanner.js*/ -amis.define("node_modules/echarts/lib/chart/helper/createRenderPlanner",function(e,r,n){function t(){var e=i();return function(r){var n=e(r),t=r.pipelineContext,a=n.large,i=n.progressiveRender,o=n.large=t.large,s=n.progressiveRender=t.progressiveRender;return!!(a^o||i^s)&&"reset"}}var a=e("node_modules/echarts/lib/util/model"),i=a.makeInner;n.exports=t}); +amis.define("node_modules/echarts/lib/chart/helper/createRenderPlanner",function(e,r,n){function t(){var e=i();return function(r){var n=e(r),t=r.pipelineContext,a=n.large,i=n.progressiveRender,o=n.large=t&&t.large,s=n.progressiveRender=t&&t.progressiveRender;return!!(a^o||i^s)&&"reset"}}var a=e("node_modules/echarts/lib/util/model"),i=a.makeInner;n.exports=t}); ;/*!node_modules/echarts/lib/view/Chart.js*/ amis.define("node_modules/echarts/lib/view/Chart",function(e,n,r){function t(){this.group=new u,this.uid=c.getUID("viewChart"),this.renderTask=f({plan:a,reset:l}),this.renderTask.context={view:this}}function i(e,n,r){if(e&&(e.trigger(n,r),e.isGroup&&!m.isHighDownDispatcher(e)))for(var t=0,o=e.childCount();o>t;t++)i(e.childAt(t),n,r)}function o(e,n,r){var t=p.queryDataIndex(e,n),o=n&&null!=n.highlightKey?m.getHighlightDigit(n.highlightKey):null;null!=t?s(p.normalizeToArray(t),function(n){i(e.getItemGraphicEl(n),r,o)}):e.eachItemGraphicEl(function(e){i(e,r,o)})}function a(e){return b(e.model)}function l(e){var n=e.model,r=e.ecModel,t=e.api,i=e.payload,o=n.pipelineContext.progressiveRender,a=e.view,l=i&&y(i).updateMethod,d=o?"incrementalPrepareRender":l&&a[l]?l:"render";return"render"!==d&&a[d](n,r,t,i),_[d]}var d=e("node_modules/zrender/lib/core/util"),s=d.each,u=e("node_modules/zrender/lib/container/Group"),c=e("node_modules/echarts/lib/util/component"),h=e("node_modules/echarts/lib/util/clazz"),p=e("node_modules/echarts/lib/util/model"),m=e("node_modules/echarts/lib/util/graphic"),g=e("node_modules/echarts/lib/stream/task"),f=g.createTask,v=e("node_modules/echarts/lib/chart/helper/createRenderPlanner"),y=p.makeInner(),b=v();t.prototype={type:"chart",init:function(){},render:function(){},highlight:function(e,n,r,t){o(e.getData(),t,"emphasis")},downplay:function(e,n,r,t){o(e.getData(),t,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var w=t.prototype;w.updateView=w.updateLayout=w.updateVisual=function(e,n,r,t){this.render(e,n,r,t)},h.enableClassExtend(t,["dispose"]),h.enableClassManagement(t,{registerWhenExtend:!0}),t.markUpdateMethod=function(e,n){y(e).updateMethod=n};var _={incrementalPrepareRender:{progress:function(e,n){n.view.incrementalRender(e,n.model,n.ecModel,n.api,n.payload)}},render:{forceFirstProgress:!0,progress:function(e,n){n.view.render(n.model,n.ecModel,n.api,n.payload)}}},x=t;r.exports=x}); ;/*!node_modules/echarts/lib/util/throttle.js*/ @@ -275,7 +277,7 @@ amis.define("node_modules/echarts/lib/lang",function(e,a,t){var i={legend:{selec ;/*!node_modules/echarts/lib/visual/aria.js*/ amis.define("node_modules/echarts/lib/visual/aria",function(e,t,a){function i(e,t){function a(e,t){if("string"!=typeof e)return e;var a=e;return r.each(t,function(e,t){a=a.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),a}function i(e){var t=u.get(e);if(null==t){for(var a=e.split("."),i=n.aria,r=0;rd)){var c=s();p=c?a(i("general.withTitle"),{title:c}):i("general.withoutTitle");var h=[],v=d>1?"series.multiple.prefix":"series.single.prefix";p+=a(i(v),{seriesCount:d}),t.eachSeries(function(e,t){if(g>t){var r,n=e.get("name"),s="series."+(d>1?"multiple":"single")+".";r=i(n?s+"withName":s+"withoutName"),r=a(r,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:o(e.subType)});var u=e.getData();window.data=u,r+=u.count()>m?a(i("data.partialData"),{displayCnt:m}):i("data.allData");for(var p=[],f=0;ff){var c=u.getName(f),v=l(u,f);p.push(a(i(c?"data.withName":"data.withoutName"),{name:c,value:v}))}r+=p.join(i("data.separator.middle"))+i("data.separator.end"),h.push(r)}}),p+=h.join(i("series.multiple.separator.middle"))+i("series.multiple.separator.end"),e.setAttribute("aria-label",p)}}}var r=e("node_modules/zrender/lib/core/util"),n=e("node_modules/echarts/lib/lang"),s=e("node_modules/echarts/lib/data/helper/dataProvider"),l=s.retrieveRawValue;a.exports=i}); ;/*!node_modules/echarts/lib/loading/default.js*/ -amis.define("node_modules/echarts/lib/loading/default",function(e,t,l){function a(e,t){t=t||{},r.defaults(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var l=new i.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),a=new i.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),o=new i.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var d=new i.Group;return d.add(a),d.add(o),d.add(l),d.resize=function(){var t=e.getWidth()/2,r=e.getHeight()/2;a.setShape({cx:t,cy:r});var i=a.shape.r;o.setShape({x:t-i,y:r-i,width:2*i,height:2*i}),l.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},d.resize(),d}var r=e("node_modules/zrender/lib/core/util"),i=e("node_modules/echarts/lib/util/graphic"),n=Math.PI;l.exports=a}); +amis.define("node_modules/echarts/lib/loading/default",function(e,t,n){function i(e,t){t=t||{},l.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new r.Group,i=new r.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var s=t.fontSize+" sans-serif",d=new r.Rect({style:{fill:"none",text:t.text,font:s,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(d),t.showSpinner){var h=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});h.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),n.add(h)}return n.resize=function(){var n=a.getWidth(t.text,s),l=t.showSpinner?t.spinnerRadius:0,r=(e.getWidth()-2*l-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),o=e.getHeight()/2;t.showSpinner&&h.setShape({cx:r,cy:o}),d.setShape({x:r-l,y:o-l,width:2*l,height:2*l}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var l=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/util/graphic"),a=e("node_modules/zrender/lib/contain/text"),o=Math.PI;n.exports=i}); ;/*!node_modules/echarts/lib/stream/Scheduler.js*/ amis.define("node_modules/echarts/lib/stream/Scheduler",function(e,t,a){function r(e,t,a,r){this.ecInstance=e,this.api=t,this.unfinished;var a=this._dataProcessorHandlers=a.slice(),r=this._visualHandlers=r.slice();this._allHandlers=a.concat(r),this._stageTaskMap=M()}function i(e,t,a,r,i){function n(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}i=i||{};var s;_(t,function(t){if(!i.visualType||i.visualType===t.visualType){var o=e._stageTaskMap.get(t.uid),l=o.seriesTaskMap,p=o.overallTask;if(p){var c,u=p.agentStubMap;u.each(function(e){n(i,e)&&(e.dirty(),c=!0)}),c&&p.dirty(),E(p,r);var d=e.getPerformArgs(p,i.block);u.each(function(e){e.perform(d)}),s|=p.perform(d)}else l&&l.each(function(o){n(i,o)&&o.dirty();var l=e.getPerformArgs(o,i.block);l.skip=!t.performRawSeries&&a.isSeriesFiltered(o.context.model),E(o,r),s|=o.perform(l)})}}),e.unfinished|=s}function n(e,t,a,r,i){function n(a){var n=a.uid,o=s.get(n)||s.set(n,P({plan:u,reset:d,count:f}));o.context={model:a,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},g(e,a,o)}var s=a.seriesTaskMap||(a.seriesTaskMap=M()),o=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(n):o?r.eachRawSeriesByType(o,n):l&&l(r,i).each(n);var p=e._pipelineMap;s.each(function(e,t){p.get(t)||(e.dispose(),s.removeKey(t))})}function s(e,t,a,r,i){function n(t){var a=t.uid,r=p.get(a);r||(r=p.set(a,P({reset:l,onDirty:c})),s.dirty()),r.context={model:t,overallProgress:h,modifyOutputEnd:f},r.agent=s,r.__block=h,g(e,t,r)}var s=a.overallTask=a.overallTask||P({reset:o});s.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:e};var p=s.agentStubMap=s.agentStubMap||M(),u=t.seriesType,d=t.getTargetSeries,h=!0,f=t.modifyOutputEnd;u?r.eachRawSeriesByType(u,n):d?d(r,i).each(n):(h=!1,_(r.getSeries(),n));var v=e._pipelineMap;p.each(function(e,t){v.get(t)||(e.dispose(),s.dirty(),p.removeKey(t))})}function o(e){e.overallReset(e.ecModel,e.api,e.payload)}function l(e){return e.overallProgress&&p}function p(){this.agent.dirty(),this.getDownstream().dirty()}function c(){this.agent&&this.agent.dirty()}function u(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function d(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=H(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?T(t,function(e,t){return h(t)}):A}function h(e){return function(t,a){var r=a.data,i=a.resetDefines[e];if(i&&i.dataEach)for(var n=t.start;na.blockIndex,n=i?a.step:null,s=r&&r.modDataCount,o=null!=s?Math.ceil(s/n):null;return{step:n,modBy:o,modDataCount:s}}},C.getPipeline=function(e){return this._pipelineMap.get(e)},C.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),n=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=a.context={progressiveRender:n,modDataCount:o,large:s}},C.restorePipelines=function(e){var t=this,a=t._pipelineMap=M();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;a.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),g(t,e,e.dataTask)})},C.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),a=this.api;_(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,[]);r.reset&&n(this,r,i,t,a),r.overallReset&&s(this,r,i,t,a)},this)},C.prepareView=function(e,t,a,r){var i=e.renderTask,n=i.context;n.model=t,n.ecModel=a,n.api=r,i.__block=!e.incrementalPrepareRender,g(this,t,i)},C.performDataProcessorTasks=function(e,t){i(this,this._dataProcessorHandlers,e,t,{block:!0})},C.performVisualTasks=function(e,t,a){i(this,this._visualHandlers,e,t,a)},C.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t|=e.dataTask.perform()}),this.unfinished|=t},C.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})};var E=C.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},A=h(0);r.wrapStageHandler=function(e,t){return k(e)&&(e={overallReset:e,seriesType:v(e)}),e.uid=R("stageHandler"),t&&(e.visualType=t),e};var V,B={},O={};m(B,D),m(O,I),B.eachSeriesByType=B.eachRawSeriesByType=function(e){V=e},B.eachComponent=function(e){"series"===e.mainType&&e.subType&&(V=e.subType)};var z=r;a.exports=z}); ;/*!node_modules/echarts/lib/theme/light.js*/ @@ -313,15 +315,15 @@ amis.define("node_modules/echarts/lib/scale/Ordinal",function(t,e,n){var i=t("no ;/*!node_modules/echarts/lib/scale/helper.js*/ amis.define("node_modules/echarts/lib/scale/helper",function(e,i){function n(e,i,n,r){var o={},u=e[1]-e[0],s=o.interval=l.nice(u/i,!0);null!=n&&n>s&&(s=o.interval=n),null!=r&&s>r&&(s=o.interval=r);var f=o.intervalPrecision=t(s),v=o.niceTickExtent=[c(Math.ceil(e[0]/s)*s,f),c(Math.floor(e[1]/s)*s,f)];return a(v,e),o}function t(e){return l.getPrecisionSafe(e)+2}function r(e,i,n){e[i]=Math.max(Math.min(e[i],n[1]),n[0])}function a(e,i){!isFinite(e[0])&&(e[0]=i[0]),!isFinite(e[1])&&(e[1]=i[1]),r(e,0,i),r(e,1,i),e[0]>e[1]&&(e[0]=e[1])}var l=e("node_modules/echarts/lib/util/number"),c=l.round;i.intervalScaleNiceTicks=n,i.getIntervalPrecision=t,i.fixExtent=a}); ;/*!node_modules/echarts/lib/scale/Interval.js*/ -amis.define("node_modules/echarts/lib/scale/Interval",function(e,t,i){var n=e("node_modules/echarts/lib/util/number"),r=e("node_modules/echarts/lib/util/format"),s=e("node_modules/echarts/lib/scale/Scale"),a=e("node_modules/echarts/lib/scale/helper"),l=n.round,c=s.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),c.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,s=[];if(!t)return s;var a=1e4;i[0]a)return[];var o=s.length?s[s.length-1]:n[1];return i[1]>o&&s.push(e?o+t:i[1]),s},getMinorTicks:function(e){for(var t=this.getTicks(!0),i=[],r=this.getExtent(),s=1;sc;){var u=n.round(l+(c+1)*v);u>r[0]&&ur&&(r=-r,n.reverse());var s=a.intervalScaleNiceTicks(n,e,t,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var i=t[0];e.fixMax?t[0]-=i/2:(t[1]+=i/2,t[0]-=i/2)}else t[1]=1;var n=t[1]-t[0];isFinite(n)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=l(Math.ceil(t[1]/r)*r))}});c.create=function(){return new c};var o=c;i.exports=o}); +amis.define("node_modules/echarts/lib/scale/Interval",function(e,t,i){var n=e("node_modules/echarts/lib/util/number"),r=e("node_modules/echarts/lib/util/format"),s=e("node_modules/echarts/lib/scale/Scale"),a=e("node_modules/echarts/lib/scale/helper"),l=n.round,c=s.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),c.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,s=[];if(!t)return s;var a=1e4;i[0]a)return[];var o=s.length?s[s.length-1]:n[1];return i[1]>o&&s.push(e?l(o+t,r):i[1]),s},getMinorTicks:function(e){for(var t=this.getTicks(!0),i=[],r=this.getExtent(),s=1;sc;){var u=n.round(l+(c+1)*v);u>r[0]&&ur&&(r=-r,n.reverse());var s=a.intervalScaleNiceTicks(n,e,t,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var i=t[0];e.fixMax?t[0]-=i/2:(t[1]+=i/2,t[0]-=i/2)}else t[1]=1;var n=t[1]-t[0];isFinite(n)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=l(Math.ceil(t[1]/r)*r))}});c.create=function(){return new c};var o=c;i.exports=o}); ;/*!node_modules/echarts/lib/layout/barGrid.js*/ -amis.define("node_modules/echarts/lib/layout/barGrid",function(t,a){function e(t){return t.get("stack")||x+t.seriesIndex}function i(t){return t.dim+t.index}function r(t){var a=[],e=t.axis,i="axis0";if("category"===e.type){for(var r=e.getBandWidth(),n=0;nd;++d){var h=r.get(o,d);a[n]?a[n].push(h):a[n]=[h]}});var e=[];for(var i in a)if(a.hasOwnProperty(i)){var r=a[i];if(r){r.sort(function(t,a){return t-a});for(var n=null,o=1;o0&&(n=null===n?d:Math.min(n,d))}e[i]=n}}return e}function d(t){var a=o(t),r=[];return m.each(t,function(t){var n,o=t.coordinateSystem,d=o.getBaseAxis(),s=d.getExtent();if("category"===d.type)n=d.getBandWidth();else if("value"===d.type||"time"===d.type){var h=d.dim+"_"+d.index,u=a[h],c=Math.abs(s[1]-s[0]),l=d.scale.getExtent(),f=Math.abs(l[1]-l[0]);n=u?c/f*u:c}else{var m=t.getData();n=Math.abs(s[1]-s[0])/m.count()}var v=p(t.get("barWidth"),n),g=p(t.get("barMaxWidth"),n),y=p(t.get("barMinWidth")||1,n),b=t.get("barGap"),x=t.get("barCategoryGap");r.push({bandWidth:n,barWidth:v,barMaxWidth:g,barMinWidth:y,barGap:b,barCategoryGap:x,axisKey:i(d),stackId:e(t)})}),s(r)}function s(t){var a={};m.each(t,function(t){var e=t.axisKey,i=t.bandWidth,r=a[e]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},n=r.stacks;a[e]=r;var o=t.stackId;n[o]||r.autoWidthCount++,n[o]=n[o]||{width:0,maxWidth:0};var d=t.barWidth;d&&!n[o].width&&(n[o].width=d,d=Math.min(r.remainedWidth,d),r.remainedWidth-=d);var s=t.barMaxWidth;s&&(n[o].maxWidth=s);var h=t.barMinWidth;h&&(n[o].minWidth=h);var u=t.barGap;null!=u&&(r.gap=u);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var e={};return m.each(a,function(t,a){e[a]={};var i=t.stacks,r=t.bandWidth,n=p(t.categoryGap,r),o=p(t.gap,1),d=t.remainedWidth,s=t.autoWidthCount,h=(d-n)/(s+(s-1)*o);h=Math.max(h,0),m.each(i,function(t){var a=t.maxWidth,e=t.minWidth;if(t.width){var i=t.width;a&&(i=Math.min(i,a)),e&&(i=Math.max(i,e)),t.width=i,d-=i+o*i,s--}else{var i=h;a&&i>a&&(i=Math.min(a,d)),e&&e>i&&(i=e),i!==h&&(t.width=i,d-=i+o*i,s--)}}),h=(d-n)/(s+(s-1)*o),h=Math.max(h,0);var u,c=0;m.each(i,function(t){t.width||(t.width=h),u=t,c+=t.width*(1+o)}),u&&(c-=u.width*o);var l=-c/2;m.each(i,function(t,i){e[a][i]=e[a][i]||{bandWidth:r,offset:l,width:t.width},l+=t.width*(1+o)})}),e}function h(t,a,r){if(t&&a){var n=t[i(a)];return null!=n&&null!=r&&(n=n[e(r)]),n}}function u(t,a){var r=n(t,a),o=d(r),s={},h={};m.each(r,function(t){var a=t.getData(),r=t.coordinateSystem,n=r.getBaseAxis(),d=e(t),u=o[i(n)][d],c=u.offset,l=u.width,m=r.getOtherAxis(n),v=t.get("barMinHeight")||0;s[d]=s[d]||[],h[d]=h[d]||[],a.setLayout({bandWidth:u.bandWidth,offset:c,size:l});for(var p=a.mapDimension(m.dim),g=a.mapDimension(n.dim),b=y(a,p),x=m.isHorizontal(),W=f(n,m,b),w=0,M=a.count();M>w;w++){var C=a.get(p,w),A=a.get(g,w);if(!isNaN(C)&&!isNaN(A)){var k=C>=0?"p":"n",D=W;b&&(s[d][A]||(s[d][A]={p:W,n:W}),D=s[d][A][k]);var G,S,_,B;if(x){var L=r.dataToPoint([C,A]);G=D,S=L[1]+c,_=L[0]-W,B=l,Math.abs(_)_?-1:1)*v),b&&(s[d][A][k]+=_)}else{var L=r.dataToPoint([A,C]);G=L[0]+c,S=D,_=l,B=L[1]-W,Math.abs(B)=B?-1:1)*v),b&&(s[d][A][k]+=B)}a.setItemLayout(w,{x:G,y:S,width:_,height:B})}}},this)}function c(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function l(t){return t.pipelineContext&&t.pipelineContext.large}function f(t,a){return a.toGlobalCoord(a.dataToCoord("log"===a.type?1:0))}var m=t("node_modules/zrender/lib/core/util"),v=t("node_modules/echarts/lib/util/number"),p=v.parsePercent,g=t("node_modules/echarts/lib/data/helper/dataStackHelper"),y=g.isDimensionStacked,b=t("node_modules/echarts/lib/chart/helper/createRenderPlanner"),x="__ec_stack_",W=.5,w="undefined"!=typeof Float32Array?Float32Array:Array,M={seriesType:"bar",plan:b(),reset:function(t){function a(t,a){for(var e,d=t.count,h=new w(2*d),c=new w(d),l=[],p=[],g=0,y=0;null!=(e=t.next());)p[m]=a.get(o,e),p[1-m]=a.get(s,e),l=i.dataToPoint(p,null,l),h[g++]=l[0],h[g++]=l[1],c[y++]=e;a.setLayout({largePoints:h,largeDataIndices:c,barWidth:v,valueAxisStart:f(r,n,!1),valueAxisHorizontal:u})}if(c(t)&&l(t)){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),n=i.getOtherAxis(r),o=e.mapDimension(n.dim),s=e.mapDimension(r.dim),u=n.isHorizontal(),m=u?0:1,v=h(d([t]),r,t).width;return v>W||(v=W),{progress:a}}}};a.getLayoutOnAxis=r,a.prepareLayoutBarSeries=n,a.makeColumnLayout=d,a.retrieveColumnLayout=h,a.layout=u,a.largeLayout=M}); +amis.define("node_modules/echarts/lib/layout/barGrid",function(t,a){function e(t){return t.get("stack")||x+t.seriesIndex}function i(t){return t.dim+t.index}function r(t){var a=[],e=t.axis,i="axis0";if("category"===e.type){for(var r=e.getBandWidth(),n=0;nd;++d){var h=r.get(o,d);a[n]?a[n].push(h):a[n]=[h]}});var e=[];for(var i in a)if(a.hasOwnProperty(i)){var r=a[i];if(r){r.sort(function(t,a){return t-a});for(var n=null,o=1;o0&&(n=null===n?d:Math.min(n,d))}e[i]=n}}return e}function d(t){var a=o(t),r=[];return m.each(t,function(t){var n,o=t.coordinateSystem,d=o.getBaseAxis(),s=d.getExtent();if("category"===d.type)n=d.getBandWidth();else if("value"===d.type||"time"===d.type){var h=d.dim+"_"+d.index,u=a[h],c=Math.abs(s[1]-s[0]),l=d.scale.getExtent(),f=Math.abs(l[1]-l[0]);n=u?c/f*u:c}else{var m=t.getData();n=Math.abs(s[1]-s[0])/m.count()}var g=v(t.get("barWidth"),n),p=v(t.get("barMaxWidth"),n),y=v(t.get("barMinWidth")||1,n),b=t.get("barGap"),x=t.get("barCategoryGap");r.push({bandWidth:n,barWidth:g,barMaxWidth:p,barMinWidth:y,barGap:b,barCategoryGap:x,axisKey:i(d),stackId:e(t)})}),s(r)}function s(t){var a={};m.each(t,function(t){var e=t.axisKey,i=t.bandWidth,r=a[e]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},n=r.stacks;a[e]=r;var o=t.stackId;n[o]||r.autoWidthCount++,n[o]=n[o]||{width:0,maxWidth:0};var d=t.barWidth;d&&!n[o].width&&(n[o].width=d,d=Math.min(r.remainedWidth,d),r.remainedWidth-=d);var s=t.barMaxWidth;s&&(n[o].maxWidth=s);var h=t.barMinWidth;h&&(n[o].minWidth=h);var u=t.barGap;null!=u&&(r.gap=u);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var e={};return m.each(a,function(t,a){e[a]={};var i=t.stacks,r=t.bandWidth,n=v(t.categoryGap,r),o=v(t.gap,1),d=t.remainedWidth,s=t.autoWidthCount,h=(d-n)/(s+(s-1)*o);h=Math.max(h,0),m.each(i,function(t){var a=t.maxWidth,e=t.minWidth;if(t.width){var i=t.width;a&&(i=Math.min(i,a)),e&&(i=Math.max(i,e)),t.width=i,d-=i+o*i,s--}else{var i=h;a&&i>a&&(i=Math.min(a,d)),e&&e>i&&(i=e),i!==h&&(t.width=i,d-=i+o*i,s--)}}),h=(d-n)/(s+(s-1)*o),h=Math.max(h,0);var u,c=0;m.each(i,function(t){t.width||(t.width=h),u=t,c+=t.width*(1+o)}),u&&(c-=u.width*o);var l=-c/2;m.each(i,function(t,i){e[a][i]=e[a][i]||{bandWidth:r,offset:l,width:t.width},l+=t.width*(1+o)})}),e}function h(t,a,r){if(t&&a){var n=t[i(a)];return null!=n&&null!=r&&(n=n[e(r)]),n}}function u(t,a){var r=n(t,a),o=d(r),s={},h={};m.each(r,function(t){var a=t.getData(),r=t.coordinateSystem,n=r.getBaseAxis(),d=e(t),u=o[i(n)][d],c=u.offset,l=u.width,m=r.getOtherAxis(n),g=t.get("barMinHeight")||0;s[d]=s[d]||[],h[d]=h[d]||[],a.setLayout({bandWidth:u.bandWidth,offset:c,size:l});for(var v=a.mapDimension(m.dim),p=a.mapDimension(n.dim),b=y(a,v),x=m.isHorizontal(),W=f(n,m,b),w=0,M=a.count();M>w;w++){var k=a.get(v,w),C=a.get(p,w),A=k>=0?"p":"n",S=W;b&&(s[d][C]||(s[d][C]={p:W,n:W}),S=s[d][C][A]);var D,G,_,B;if(x){var L=r.dataToPoint([k,C]);D=S,G=L[1]+c,_=L[0]-W,B=l,Math.abs(_)_?-1:1)*g),isNaN(_)||b&&(s[d][C][A]+=_)}else{var L=r.dataToPoint([C,k]);D=L[0]+c,G=S,_=l,B=L[1]-W,Math.abs(B)=B?-1:1)*g),isNaN(B)||b&&(s[d][C][A]+=B)}a.setItemLayout(w,{x:D,y:G,width:_,height:B})}},this)}function c(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function l(t){return t.pipelineContext&&t.pipelineContext.large}function f(t,a){return a.toGlobalCoord(a.dataToCoord("log"===a.type?1:0))}var m=t("node_modules/zrender/lib/core/util"),g=t("node_modules/echarts/lib/util/number"),v=g.parsePercent,p=t("node_modules/echarts/lib/data/helper/dataStackHelper"),y=p.isDimensionStacked,b=t("node_modules/echarts/lib/chart/helper/createRenderPlanner"),x="__ec_stack_",W=.5,w="undefined"!=typeof Float32Array?Float32Array:Array,M={seriesType:"bar",plan:b(),reset:function(t){function a(t,a){for(var e,d=t.count,h=new w(2*d),c=new w(2*d),l=new w(d),p=[],y=[],b=0,x=0;null!=(e=t.next());)y[g]=a.get(s,e),y[1-g]=a.get(u,e),p=i.dataToPoint(y,null,p),c[b]=m?r.x+r.width:p[0],h[b++]=p[0],c[b]=m?p[1]:r.y+r.height,h[b++]=p[1],l[x++]=e;a.setLayout({largePoints:h,largeDataIndices:l,largeBackgroundPoints:c,barWidth:v,valueAxisStart:f(n,o,!1),backgroundStart:m?r.x:r.y,valueAxisHorizontal:m})}if(c(t)&&l(t)){var e=t.getData(),i=t.coordinateSystem,r=i.grid.getRect(),n=i.getBaseAxis(),o=i.getOtherAxis(n),s=e.mapDimension(o.dim),u=e.mapDimension(n.dim),m=o.isHorizontal(),g=m?0:1,v=h(d([t]),n,t).width;return v>W||(v=W),{progress:a}}}};a.getLayoutOnAxis=r,a.prepareLayoutBarSeries=n,a.makeColumnLayout=d,a.retrieveColumnLayout=h,a.layout=u,a.largeLayout=M}); ;/*!node_modules/echarts/lib/scale/Time.js*/ amis.define("node_modules/echarts/lib/scale/Time",function(e,t,n){var h=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/util/number"),i=e("node_modules/echarts/lib/util/format"),a=e("node_modules/echarts/lib/scale/helper"),m=e("node_modules/echarts/lib/scale/Interval"),d=m.prototype,s=Math.ceil,o=Math.floor,l=1e3,M=60*l,u=60*M,y=24*u,c=function(e,t,n,h){for(;h>n;){var r=n+h>>>1;e[r][1]m&&(m=t),null!=n&&m>n&&(m=n);var d=v.length,l=c(v,m,0,d),M=v[Math.min(l,d-1)],u=M[1];if("year"===M[0]){var y=i/u,f=r.nice(y/e,!0);u*=f}var p=this.getSetting("useUTC")?0:60*new Date(+h[0]||+h[1]).getTimezoneOffset()*1e3,_=[Math.round(s((h[0]-p)/u)*u+p),Math.round(o((h[1]-p)/u)*u+p)];a.fixExtent(_,h),this._stepLvl=M,this._interval=u,this._niceExtent=_},parse:function(e){return+r.parseDate(e)}});h.each(["contain","normalize"],function(e){f.prototype[e]=function(t){return d[e].call(this,this.parse(t))}});var v=[["hh:mm:ss",l],["hh:mm:ss",5*l],["hh:mm:ss",10*l],["hh:mm:ss",15*l],["hh:mm:ss",30*l],["hh:mm\nMM-dd",M],["hh:mm\nMM-dd",5*M],["hh:mm\nMM-dd",10*M],["hh:mm\nMM-dd",15*M],["hh:mm\nMM-dd",30*M],["hh:mm\nMM-dd",u],["hh:mm\nMM-dd",2*u],["hh:mm\nMM-dd",6*u],["hh:mm\nMM-dd",12*u],["MM-dd\nyyyy",y],["MM-dd\nyyyy",2*y],["MM-dd\nyyyy",3*y],["MM-dd\nyyyy",4*y],["MM-dd\nyyyy",5*y],["MM-dd\nyyyy",6*y],["week",7*y],["MM-dd\nyyyy",10*y],["week",14*y],["week",21*y],["month",31*y],["week",42*y],["month",62*y],["week",70*y],["quarter",95*y],["month",31*y*4],["month",31*y*5],["half-year",380*y/2],["month",31*y*8],["month",31*y*10],["year",380*y]];f.create=function(e){return new f({useUTC:e.ecModel.get("useUTC")})};var p=f;n.exports=p}); ;/*!node_modules/echarts/lib/scale/Log.js*/ amis.define("node_modules/echarts/lib/scale/Log",function(t,e,n){function i(t,e){return h(t,u(e))}var a=t("node_modules/zrender/lib/core/util"),o=t("node_modules/echarts/lib/scale/Scale"),r=t("node_modules/echarts/lib/util/number"),s=t("node_modules/echarts/lib/scale/Interval"),c=o.prototype,l=s.prototype,u=r.getPrecisionSafe,h=r.round,x=Math.floor,f=Math.ceil,_=Math.pow,g=Math.log,b=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new s},getTicks:function(t){var e=this._originalScale,n=this._extent,o=e.getExtent();return a.map(l.getTicks.call(this,t),function(t){var a=r.round(_(this.base,t));return a=t===n[0]&&e.__fixMin?i(a,o[0]):a,a=t===n[1]&&e.__fixMax?i(a,o[1]):a},this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=c.scale.call(this,t),_(this.base,t)},setExtent:function(t,e){var n=this.base;t=g(t)/g(n),e=g(e)/g(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=c.getExtent.call(this);e[0]=_(t,e[0]),e[1]=_(t,e[1]);var n=this._originalScale,a=n.getExtent();return n.__fixMin&&(e[0]=i(e[0],a[0])),n.__fixMax&&(e[1]=i(e[1],a[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),c.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=r.quantity(n),a=t/n*i;for(.5>=a&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[r.round(f(e[0]/i)*i),r.round(x(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});a.each(["contain","normalize"],function(t){b.prototype[t]=function(e){return e=g(e)/g(this.base),c[t].call(this,e)}}),b.create=function(){return new b};var d=b;n.exports=d}); ;/*!node_modules/echarts/lib/coord/axisHelper.js*/ -amis.define("node_modules/echarts/lib/coord/axisHelper",function(e,t){function a(e,t){var a,r,l,i=e.type,o=t.getMin(),u=t.getMax(),s=null!=o,c=null!=u,g=e.getExtent();"ordinal"===i?a=t.getCategories().length:(r=t.get("boundaryGap"),m.isArray(r)||(r=[r||0,r||0]),"boolean"==typeof r[0]&&(r=[0,0]),r[0]=b.parsePercent(r[0],1),r[1]=b.parsePercent(r[1],1),l=g[1]-g[0]||Math.abs(g[0])),null==o&&(o="ordinal"===i?a?0:0/0:g[0]-r[0]*l),null==u&&(u="ordinal"===i?a?a-1:0/0:g[1]+r[1]*l),"dataMin"===o?o=g[0]:"function"==typeof o&&(o=o({min:g[0],max:g[1]})),"dataMax"===u?u=g[1]:"function"==typeof u&&(u=u({min:g[0],max:g[1]})),(null==o||!isFinite(o))&&(o=0/0),(null==u||!isFinite(u))&&(u=0/0),e.setBlank(m.eqNaN(o)||m.eqNaN(u)||"ordinal"===i&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(o>0&&u>0&&!s&&(o=0),0>o&&0>u&&!c&&(u=0));var d=t.ecModel;if(d&&"time"===i){var f,v=M("bar",d);if(m.each(v,function(e){f|=e.getBaseAxis()===t.axis}),f){var h=p(v),x=n(o,u,t,h);o=x.min,u=x.max}}return[o,u]}function n(e,t,a,n){var r=a.axis.getExtent(),l=r[1]-r[0],i=_(n,a.axis);if(void 0===i)return{min:e,max:t};var o=1/0;m.each(i,function(e){o=Math.min(e.offset,o)});var u=-1/0;m.each(i,function(e){u=Math.max(e.offset+e.width,u)}),o=Math.abs(o),u=Math.abs(u);var s=o+u,c=t-e,g=1-(o+u)/l,d=c/g-c;return t+=d*(u/s),e-=d*(o/s),{min:e,max:t}}function r(e,t){var n=a(e,t),r=null!=t.getMin(),l=null!=t.getMax(),i=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(n[0],n[1]),e.niceExtent({splitNumber:i,fixMin:r,fixMax:l,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var u=t.get("interval");null!=u&&e.setInterval&&e.setInterval(u)}function l(e,t){if(t=t||e.get("type"))switch(t){case"category":return new v(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new h;default:return(x.getClass(t)||h).create(e)}}function i(e){var t=e.scale.getExtent(),a=t[0],n=t[1];return!(a>0&&n>0||0>a&&0>n)}function o(e){var t=e.getLabelModel().get("formatter"),a="category"===e.type?e.scale.getExtent()[0]:null;return"string"==typeof t?t=function(t){return function(a){return a=e.scale.getLabel(a),t.replace("{value}",null!=a?a:"")}}(t):"function"==typeof t?function(n,r){return null!=a&&(r=n-a),t(u(e,n),r)}:function(t){return e.scale.getLabel(t)}}function u(e,t){return"category"===e.type?e.scale.getLabel(t):t}function s(e){var t=e.model,a=e.scale;if(t.get("axisLabel.show")&&!a.isBlank()){var n,r,l="category"===e.type,i=a.getExtent();l?r=a.count():(n=a.getTicks(),r=n.length);var u,s=e.getLabelModel(),g=o(e),d=1;r>40&&(d=Math.ceil(r/40));for(var f=0;r>f;f+=d){var m=n?n[f]:i[0]+f,v=g(m),h=s.getTextRect(v),x=c(h,s.get("rotate")||0);u?u.union(x):u=x}return u}}function c(e,t){var a=t*Math.PI/180,n=e.plain(),r=n.width,l=n.height,i=r*Math.cos(a)+l*Math.sin(a),o=r*Math.sin(a)+l*Math.cos(a),u=new L(n.x,n.y,i,o);return u}function g(e){var t=e.get("interval");return null==t?"auto":t}function d(e){return"category"===e.type&&0===g(e.getLabelModel())}var f=e("node_modules/echarts/lib/config"),m=(f.__DEV__,e("node_modules/zrender/lib/core/util")),v=e("node_modules/echarts/lib/scale/Ordinal"),h=e("node_modules/echarts/lib/scale/Interval"),x=e("node_modules/echarts/lib/scale/Scale"),b=e("node_modules/echarts/lib/util/number"),y=e("node_modules/echarts/lib/layout/barGrid"),M=y.prepareLayoutBarSeries,p=y.makeColumnLayout,_=y.retrieveColumnLayout,L=e("node_modules/zrender/lib/core/BoundingRect");e("node_modules/echarts/lib/scale/Time"),e("node_modules/echarts/lib/scale/Log"),t.getScaleExtent=a,t.niceScaleExtent=r,t.createScaleByModel=l,t.ifAxisCrossZero=i,t.makeLabelFormatter=o,t.getAxisRawValue=u,t.estimateLabelUnionRect=s,t.getOptionCategoryInterval=g,t.shouldShowAllLabels=d}); +amis.define("node_modules/echarts/lib/coord/axisHelper",function(e,t){function a(e,t){var a,r,l,i=e.type,o=t.getMin(),u=t.getMax(),s=e.getExtent();"ordinal"===i?a=t.getCategories().length:(r=t.get("boundaryGap"),m.isArray(r)||(r=[r||0,r||0]),"boolean"==typeof r[0]&&(r=[0,0]),r[0]=b.parsePercent(r[0],1),r[1]=b.parsePercent(r[1],1),l=s[1]-s[0]||Math.abs(s[0])),"dataMin"===o?o=s[0]:"function"==typeof o&&(o=o({min:s[0],max:s[1]})),"dataMax"===u?u=s[1]:"function"==typeof u&&(u=u({min:s[0],max:s[1]}));var c=null!=o,g=null!=u;null==o&&(o="ordinal"===i?a?0:0/0:s[0]-r[0]*l),null==u&&(u="ordinal"===i?a?a-1:0/0:s[1]+r[1]*l),(null==o||!isFinite(o))&&(o=0/0),(null==u||!isFinite(u))&&(u=0/0),e.setBlank(m.eqNaN(o)||m.eqNaN(u)||"ordinal"===i&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(o>0&&u>0&&!c&&(o=0),0>o&&0>u&&!g&&(u=0));var d=t.ecModel;if(d&&"time"===i){var f,x=y("bar",d);if(m.each(x,function(e){f|=e.getBaseAxis()===t.axis}),f){var v=p(x),h=n(o,u,t,v);o=h.min,u=h.max}}return{extent:[o,u],fixMin:c,fixMax:g}}function n(e,t,a,n){var r=a.axis.getExtent(),l=r[1]-r[0],i=_(n,a.axis);if(void 0===i)return{min:e,max:t};var o=1/0;m.each(i,function(e){o=Math.min(e.offset,o)});var u=-1/0;m.each(i,function(e){u=Math.max(e.offset+e.width,u)}),o=Math.abs(o),u=Math.abs(u);var s=o+u,c=t-e,g=1-(o+u)/l,d=c/g-c;return t+=d*(u/s),e-=d*(o/s),{min:e,max:t}}function r(e,t){var n=a(e,t),r=n.extent,l=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var i=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:l,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===i||"time"===i?t.get("minInterval"):null,maxInterval:"interval"===i||"time"===i?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function l(e,t){if(t=t||e.get("type"))switch(t){case"category":return new x(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new v;default:return(h.getClass(t)||v).create(e)}}function i(e){var t=e.scale.getExtent(),a=t[0],n=t[1];return!(a>0&&n>0||0>a&&0>n)}function o(e){var t=e.getLabelModel().get("formatter"),a="category"===e.type?e.scale.getExtent()[0]:null;return"string"==typeof t?t=function(t){return function(a){return a=e.scale.getLabel(a),t.replace("{value}",null!=a?a:"")}}(t):"function"==typeof t?function(n,r){return null!=a&&(r=n-a),t(u(e,n),r)}:function(t){return e.scale.getLabel(t)}}function u(e,t){return"category"===e.type?e.scale.getLabel(t):t}function s(e){var t=e.model,a=e.scale;if(t.get("axisLabel.show")&&!a.isBlank()){var n,r,l="category"===e.type,i=a.getExtent();l?r=a.count():(n=a.getTicks(),r=n.length);var u,s=e.getLabelModel(),g=o(e),d=1;r>40&&(d=Math.ceil(r/40));for(var f=0;r>f;f+=d){var m=n?n[f]:i[0]+f,x=g(m),v=s.getTextRect(x),h=c(v,s.get("rotate")||0);u?u.union(h):u=h}return u}}function c(e,t){var a=t*Math.PI/180,n=e.plain(),r=n.width,l=n.height,i=r*Math.cos(a)+l*Math.sin(a),o=r*Math.sin(a)+l*Math.cos(a),u=new L(n.x,n.y,i,o);return u}function g(e){var t=e.get("interval");return null==t?"auto":t}function d(e){return"category"===e.type&&0===g(e.getLabelModel())}var f=e("node_modules/echarts/lib/config"),m=(f.__DEV__,e("node_modules/zrender/lib/core/util")),x=e("node_modules/echarts/lib/scale/Ordinal"),v=e("node_modules/echarts/lib/scale/Interval"),h=e("node_modules/echarts/lib/scale/Scale"),b=e("node_modules/echarts/lib/util/number"),M=e("node_modules/echarts/lib/layout/barGrid"),y=M.prepareLayoutBarSeries,p=M.makeColumnLayout,_=M.retrieveColumnLayout,L=e("node_modules/zrender/lib/core/BoundingRect");e("node_modules/echarts/lib/scale/Time"),e("node_modules/echarts/lib/scale/Log"),t.getScaleExtent=a,t.niceScaleExtent=r,t.createScaleByModel=l,t.ifAxisCrossZero=i,t.makeLabelFormatter=o,t.getAxisRawValue=u,t.estimateLabelUnionRect=s,t.getOptionCategoryInterval=g,t.shouldShowAllLabels=d}); ;/*!node_modules/echarts/lib/coord/axisModelCommonMixin.js*/ amis.define("node_modules/echarts/lib/coord/axisModelCommonMixin",function(n,t,e){var a=n("node_modules/zrender/lib/core/util"),o={getMin:function(n){var t=this.option,e=n||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=e&&"dataMin"!==e&&"function"!=typeof e&&!a.eqNaN(e)&&(e=this.axis.scale.parse(e)),e},getMax:function(n){var t=this.option,e=n||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=e&&"dataMax"!==e&&"function"!=typeof e&&!a.eqNaN(e)&&(e=this.axis.scale.parse(e)),e},getNeedCrossZero:function(){var n=this.option;return null!=n.rangeStart||null!=n.rangeEnd?!1:!n.scale},getCoordSysModel:a.noop,setRange:function(n,t){this.option.rangeStart=n,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=o}); ;/*!node_modules/echarts/lib/util/symbol.js*/ @@ -331,7 +333,7 @@ amis.define("node_modules/echarts/lib/helper",function(e,t){function a(e){return ;/*!node_modules/echarts/lib/coord/geo/Region.js*/ amis.define("node_modules/echarts/lib/coord/geo/Region",function(e,r,t){function n(e,r,t){if(this.name=e,this.geometries=r,t)t=[t[0],t[1]];else{var n=this.getBoundingRect();t=[n.x+n.width/2,n.y+n.height/2]}this.center=t}var o=e("node_modules/zrender/lib/core/BoundingRect"),i=e("node_modules/zrender/lib/core/bbox"),s=e("node_modules/zrender/lib/core/vector"),c=e("node_modules/zrender/lib/contain/polygon");n.prototype={constructor:n,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var r=Number.MAX_VALUE,t=[r,r],n=[-r,-r],c=[],a=[],h=this.geometries,l=0;ln;n++)if("polygon"===t[n].type){var i=t[n].exterior,s=t[n].interiors;if(c.contain(i,e[0],e[1])){for(var a=0;a<(s?s.length:0);a++)if(c.contain(s[a]))continue e;return!0}}return!1},transformTo:function(e,r,t,n){var i=this.getBoundingRect(),c=i.width/i.height;t?n||(n=t/c):t=c*n;for(var a=new o(e,r,t,n),h=i.calculateTransform(a),l=this.geometries,g=0;g>1^-(1&s),a=a>>1^-(1&a),s+=t,a+=i,t=s,i=a,n.push([s/r,a/r])}return n}function i(e){return n(e),l.map(l.filter(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var o=e.properties,r=e.geometry,n=r.coordinates,t=[];"Polygon"===r.type&&t.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===r.type&&l.each(n,function(e){e[0]&&t.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var i=new s(o.name,t,o.cp);return i.properties=o,i})}var l=e("node_modules/zrender/lib/core/util"),s=e("node_modules/echarts/lib/coord/geo/Region");r.exports=i}); +amis.define("node_modules/echarts/lib/coord/geo/parseGeoJson",function(e,o,r){function n(e){if(!e.UTF8Encoding)return e;var o=e.UTF8Scale;null==o&&(o=1024);for(var r=e.features,n=0;n>1^-(1&s),a=a>>1^-(1&a),s+=t,a+=i,t=s,i=a,n.push([s/r,a/r])}return n}function i(e,o){return n(e),l.map(l.filter(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var r=e.properties,n=e.geometry,t=n.coordinates,i=[];"Polygon"===n.type&&i.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),"MultiPolygon"===n.type&&l.each(t,function(e){e[0]&&i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var a=new s(r[o||"name"],i,r.cp);return a.properties=r,a})}var l=e("node_modules/zrender/lib/core/util"),s=e("node_modules/echarts/lib/coord/geo/Region");r.exports=i}); ;/*!node_modules/echarts/lib/coord/axisTickLabelBuilder.js*/ amis.define("node_modules/echarts/lib/coord/axisTickLabelBuilder",function(t,e){function a(t){return"category"===t.type?n(t):i(t)}function r(t,e){return"category"===t.type?o(t,e):{ticks:t.scale.getTicks()}}function n(t){var e=t.getLabelModel(),a=l(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:a.labelCategoryInterval}:a}function l(t,e){var a=u(t,"labels"),r=y(e),n=s(a,r);if(n)return n;var l,o;return h.isFunction(r)?l=v(t,r):(o="auto"===r?b(t):r,l=g(t,o)),c(a,r,{labels:l,labelCategoryInterval:o})}function o(t,e){var a=u(t,"ticks"),r=y(e),n=s(a,r);if(n)return n;var o,i;if((!e.get("show")||t.scale.isBlank())&&(o=[]),h.isFunction(r))o=v(t,r,!0);else if("auto"===r){var b=l(t,t.getLabelModel());i=b.labelCategoryInterval,o=h.map(b.labels,function(t){return t.tickValue})}else i=r,o=g(t,i,!0);return c(a,r,{ticks:o,tickCategoryInterval:i})}function i(t){var e=t.scale.getTicks(),a=L(t);return{labels:h.map(e,function(e,r){return{formattedLabel:a(e,r),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function u(t,e){return C(t)[e]||(C(t)[e]=[])}function s(t,e){for(var a=0;a40&&(i=Math.max(1,Math.floor(o/40)));for(var u=l[0],s=t.dataToCoord(u+1)-t.dataToCoord(u),c=Math.abs(s*Math.cos(r)),b=Math.abs(s*Math.sin(r)),d=0,g=0;u<=l[1];u+=i){var v=0,h=0,M=x.getBoundingRect(a(u),e.font,"center","top");v=1.3*M.width,h=1.3*M.height,d=Math.max(d,v,7),g=Math.max(g,h,7)}var m=d/c,k=g/b;isNaN(m)&&(m=1/0),isNaN(k)&&(k=1/0);var y=Math.max(0,Math.floor(Math.min(m,k))),I=C(t.model),p=t.getExtent(),w=I.lastAutoInterval,T=I.lastTickCount;return null!=w&&null!=T&&Math.abs(w-y)<=1&&Math.abs(T-o)<=1&&w>y&&I.axisExtend0===p[0]&&I.axisExtend1===p[1]?y=w:(I.lastTickCount=o,I.lastAutoInterval=y,I.axisExtend0=p[0],I.axisExtend1=p[1]),y}function f(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function g(t,e,a){function r(t){u.push(a?t:{formattedLabel:n(t),rawLabel:l.getLabel(t),tickValue:t})}var n=L(t),l=t.scale,o=l.getExtent(),i=t.getLabelModel(),u=[],s=Math.max((e||0)+1,1),c=o[0],b=l.count();0!==c&&s>1&&b/s>2&&(c=Math.round(Math.ceil(c/s)*s));var d=I(t),f=i.get("showMinLabel")||d,g=i.get("showMaxLabel")||d;f&&c!==o[0]&&r(o[0]);for(var v=c;v<=o[1];v+=s)r(v);return g&&v-s!==o[1]&&r(o[1]),u}function v(t,e,a){var r=t.scale,n=L(t),l=[];return h.each(r.getTicks(),function(t){var o=r.getLabel(t);e(t,o)&&l.push(a?t:{formattedLabel:n(t),rawLabel:o,tickValue:t})}),l}var h=t("node_modules/zrender/lib/core/util"),x=t("node_modules/zrender/lib/contain/text"),M=t("node_modules/echarts/lib/util/model"),m=M.makeInner,k=t("node_modules/echarts/lib/coord/axisHelper"),L=k.makeLabelFormatter,y=k.getOptionCategoryInterval,I=k.shouldShowAllLabels,C=m();e.createAxisLabels=a,e.createAxisTicks=r,e.calculateCategoryInterval=d}); ;/*!node_modules/echarts/lib/coord/Axis.js*/ @@ -339,13 +341,13 @@ amis.define("node_modules/echarts/lib/coord/Axis",function(t,e,o){function n(t,e ;/*!node_modules/echarts/lib/export.js*/ amis.define("node_modules/echarts/lib/export",function(e,r){var t=e("node_modules/zrender/lib/zrender");r.zrender=t;var o=e("node_modules/zrender/lib/core/matrix");r.matrix=o;var l=e("node_modules/zrender/lib/core/vector");r.vector=l;var a=e("node_modules/zrender/lib/core/util"),i=e("node_modules/zrender/lib/tool/color");r.color=i;var n=e("node_modules/echarts/lib/util/graphic"),d=e("node_modules/echarts/lib/util/number");r.number=d;var s=e("node_modules/echarts/lib/util/format");r.format=s;{var c=e("node_modules/echarts/lib/util/throttle");c.throttle}r.throttle=c.throttle;var u=e("node_modules/echarts/lib/helper");r.helper=u;var m=e("node_modules/echarts/lib/coord/geo/parseGeoJson");r.parseGeoJSON=m;var h=e("node_modules/echarts/lib/data/List");r.List=h;var b=e("node_modules/echarts/lib/model/Model");r.Model=b;var v=e("node_modules/echarts/lib/coord/Axis");r.Axis=v;var p=e("node_modules/zrender/lib/core/env");r.env=p;var _=m,g={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(e){g[e]=a[e]});var x={};a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(e){x[e]=n[e]}),r.parseGeoJson=_,r.util=g,r.graphic=x}); ;/*!node_modules/echarts/lib/echarts.js*/ -amis.define("node_modules/echarts/lib/echarts",function(e,t){function i(e,t){return function(i,n,o){return!t&&this._disposed?void y(this.id):(i=i&&i.toLowerCase(),void it.prototype[e].call(this,i,n,o))}}function n(){it.call(this)}function o(e,t,i){function o(e,t){return e.__prio-t.__prio}i=i||{},"string"==typeof t&&(t=ii[t]),this.id,this.group,this._dom=e;var r="canvas",s=this._zr=j.init(e,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=vt(q.bind(s.flush,s),17);var t=q.clone(t);t&&at(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new rt;var a=this._api=I(this);tt(ti,o),tt(qt,o),this._scheduler=new wt(this,a,qt,ti),it.call(this,this._ecEventProcessor=new x),this._messageCenter=new n,this._initEvents(),this.resize=q.bind(this.resize,this),this._pendingActions=[],s.animation.on("frame",this._onframe,this),c(s,this),q.setAsPrimitive(this)}function r(e,t,i){if(this._disposed)return void y(this.id);var n,o=this._model,r=this._coordSysMgr.getCoordinateSystems();t=ft.parseFinder(o,t);for(var s=0;st.get("hoverLayerThreshold")&&!et.node&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var i=e._chartsMap[t.__viewId];i.__alive&&i.group.traverse(function(e){e.useHoverLayer=!0})}})}function C(e,t){var i=e.get("blendMode")||null;t.group.traverse(function(e){e.isGroup||e.style.blend!==i&&e.setStyle("blend",i),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.setStyle("blend",i)})})}function b(e,t){var i=e.get("z"),n=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=n&&(e.zlevel=n))})}function I(e){var t=e._coordSysMgr;return q.extend(new ot(e),{getCoordinateSystems:q.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){for(;t;){var i=t.__ecComponentInfo;if(null!=i)return e._model.getComponent(i.mainType,i.index);t=t.parent}}})}function x(){this.eventInfo}function T(e){function t(e,t){for(var i=0;i0&&e.unfinished);e.unfinished||this._zr.flush()}}},Zt.getDom=function(){return this._dom},Zt.getZr=function(){return this._zr},Zt.setOption=function(e,t,i){if(this._disposed)return void y(this.id);var n;if(Mt(t)&&(i=t.lazyUpdate,n=t.silent,t=t.notMerge),this[Xt]=!0,!this._model||t){var o=new st(this._api),r=this._theme,a=this._model=new nt;a.scheduler=this._scheduler,a.init(null,null,r,o)}this._model.setOption(e,Kt),i?(this[Gt]={silent:n},this[Xt]=!1):(s(this),Jt.update.call(this),this._zr.flush(),this[Gt]=!1,this[Xt]=!1,l.call(this,n),h.call(this,n))},Zt.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Zt.getModel=function(){return this._model},Zt.getOption=function(){return this._model&&this._model.getOption()},Zt.getWidth=function(){return this._zr.getWidth()},Zt.getHeight=function(){return this._zr.getHeight()},Zt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Zt.getRenderedCanvas=function(e){if(et.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},Zt.getSvgDataUrl=function(){if(et.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return q.each(t,function(e){e.stopAnimation(!0)}),e.painter.pathToDataUrl()}},Zt.getDataURL=function(e){if(this._disposed)return void y(this.id);e=e||{};var t=e.excludeComponents,i=this._model,n=[],o=this;Tt(t,function(e){i.eachComponent({mainType:e},function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Tt(n,function(e){e.group.ignore=!1}),r},Zt.getConnectedDataURL=function(e){if(this._disposed)return void y(this.id);if(et.canvasSupported){var t=this.group,i=Math.min,n=Math.max,o=1/0;if(ri[t]){var r=o,s=o,a=-o,d=-o,u=[],l=e&&e.pixelRatio||1;q.each(oi,function(o){if(o.group===t){var l=o.getRenderedCanvas(q.clone(e)),h=o.getDom().getBoundingClientRect();r=i(h.left,r),s=i(h.top,s),a=n(h.right,a),d=n(h.bottom,d),u.push({dom:l,left:h.left,top:h.top})}}),r*=l,s*=l,a*=l,d*=l;var h=a-r,c=d-s,p=q.createCanvas();p.width=h,p.height=c;var f=j.init(p);return e.connectedBackgroundColor&&f.add(new pt.Rect({shape:{x:0,y:0,width:h,height:c},style:{fill:e.connectedBackgroundColor}})),Tt(u,function(e){var t=new pt.Image({style:{x:e.left*l-r,y:e.top*l-s,image:e.dom}});f.add(t)}),f.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},Zt.convertToPixel=q.curry(r,"convertToPixel"),Zt.convertFromPixel=q.curry(r,"convertFromPixel"),Zt.containPixel=function(e,t){if(this._disposed)return void y(this.id);var i,n=this._model;return e=ft.parseFinder(n,e),q.each(e,function(e,n){n.indexOf("Models")>=0&&q.each(e,function(e){var o=e.coordinateSystem;if(o&&o.containPoint)i|=!!o.containPoint(t);else if("seriesModels"===n){var r=this._chartsMap[e.__viewId];r&&r.containPoint&&(i|=r.containPoint(t,e))}},this)},this),!!i},Zt.getVisual=function(e,t){var i=this._model;e=ft.parseFinder(i,e,{defaultMainType:"series"});var n=e.seriesModel,o=n.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?o.indexOfRawIndex(e.dataIndex):null;return null!=r?o.getItemVisual(r,t):o.getVisual(t)},Zt.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},Zt.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var Jt={prepareAndUpdate:function(e){s(this),Jt.update.call(this,e)},update:function(e){var t=this._model,i=this._api,n=this._zr,o=this._coordSysMgr,r=this._scheduler;if(t){r.restoreData(t,e),r.performSeriesTasks(t),o.create(t,i),r.performDataProcessorTasks(t,e),d(this,t),o.update(t,i),f(t),r.performVisualTasks(t,e),_(this,t,i,e);var s=t.get("backgroundColor")||"transparent";if(et.canvasSupported)n.setBackgroundColor(s);else{var a=K.parse(s);s=K.stringify(a,"rgb"),0===a[3]&&(s="transparent")}g(t,i)}},updateTransform:function(e){var t=this._model,i=this,n=this._api;if(t){var o=[];t.eachComponent(function(r,s){var a=i.getViewOfComponentModel(s);if(a&&a.__alive)if(a.updateTransform){var d=a.updateTransform(s,t,n,e);d&&d.update&&o.push(a)}else o.push(a)});var r=q.createHashMap();t.eachSeries(function(o){var s=i._chartsMap[o.__viewId];if(s.updateTransform){var a=s.updateTransform(o,t,n,e);a&&a.update&&r.set(o.uid,1)}else r.set(o.uid,1)}),f(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:r}),m(i,t,n,e,r),g(t,this._api)}},updateView:function(e){var t=this._model;t&&(ct.markUpdateMethod(e,"updateView"),f(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),_(this,this._model,this._api,e),g(t,this._api))},updateVisual:function(e){Jt.update.call(this,e)},updateLayout:function(e){Jt.update.call(this,e)}};Zt.resize=function(e){if(this._disposed)return void y(this.id);this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var i=t.resetOption("media"),n=e&&e.silent;this[Xt]=!0,i&&s(this),Jt.update.call(this),this[Xt]=!1,l.call(this,n),h.call(this,n)}},Zt.showLoading=function(e,t){if(this._disposed)return void y(this.id);if(Mt(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ni[e]){var i=ni[e](this._api,t),n=this._zr;this._loadingFX=i,n.add(i)}},Zt.hideLoading=function(){return this._disposed?void y(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),void(this._loadingFX=null))},Zt.makeActionFromEvent=function(e){var t=q.extend({},e);return t.type=jt[e.type],t},Zt.dispatchAction=function(e,t){if(this._disposed)return void y(this.id);if(Mt(t)||(t={silent:!!t}),$t[e.type]&&this._model){if(this[Xt])return void this._pendingActions.push(e);u.call(this,e,t.silent),t.flush?this._zr.flush(!0):t.flush!==!1&&et.browser.weChat&&this._throttledZrFlush(),l.call(this,t.silent),h.call(this,t.silent)}},Zt.appendData=function(e){if(this._disposed)return void y(this.id);var t=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(t);n.appendData(e),this._scheduler.unfinished=!0},Zt.on=i("on",!1),Zt.off=i("off",!1),Zt.one=i("one",!1);var Wt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Zt._initEvents=function(){Tt(Wt,function(e){var t=function(t){var i,n=this.getModel(),o=t.target,r="globalout"===e;if(r)i={};else if(o&&null!=o.dataIndex){var s=o.dataModel||n.getSeriesByIndex(o.seriesIndex);i=s&&s.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(i=q.extend({},o.eventData));if(i){var a=i.componentType,d=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",d=i.seriesIndex);var u=a&&null!=d&&n.getComponent(a,d),l=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=t,i.type=e,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:l},this.trigger(e,i)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)},this),Tt(jt,function(e,t){this._messageCenter.on(t,function(e){this.trigger(t,e)},this)},this)},Zt.isDisposed=function(){return this._disposed},Zt.clear=function(){return this._disposed?void y(this.id):void this.setOption({series:[]},!0)},Zt.dispose=function(){if(this._disposed)return void y(this.id);this._disposed=!0,ft.setAttribute(this.getDom(),di,"");var e=this._api,t=this._model;Tt(this._componentsViews,function(i){i.dispose(t,e)}),Tt(this._chartsViews,function(i){i.dispose(t,e)}),this._zr.dispose(),delete oi[this.id]},q.mixin(o,it),x.prototype={constructor:x,normalizeQuery:function(e){var t={},i={},n={};if(q.isString(e)){var o=zt(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var r=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};q.each(e,function(e,o){for(var a=!1,d=0;d0&&l===o.length-u.length){var h=o.slice(0,l);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,a=!0)}}s.hasOwnProperty(o)&&(i[o]=e,a=!0),a||(n[o]=e)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},filter:function(e,t){function i(e,t,i,n){return null==e[i]||t[n||i]===e[i]}var n=this.eventInfo;if(!n)return!0;var o=n.targetEl,r=n.packedEvent,s=n.model,a=n.view;if(!s||!a)return!0;var d=t.cptQuery,u=t.dataQuery;return i(d,s,"mainType")&&i(d,s,"subType")&&i(d,s,"index","componentIndex")&&i(d,s,"name")&&i(d,s,"id")&&i(u,r,"name")&&i(u,r,"dataIndex")&&i(u,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,o,r))},afterTrigger:function(){this.eventInfo=null}};var $t={},jt={},qt=[],Kt=[],ei=[],ti=[],ii={},ni={},oi={},ri={},si=new Date-0,ai=new Date-0,di="_echarts_instance_",ui=z;B(Ft,mt),E(at),R(Rt,dt),Q("default",yt),O({type:"highlight",event:"highlight",update:"highlight"},q.noop),O({type:"downplay",event:"downplay",update:"downplay"},q.noop),k("light",Ct),k("dark",bt);var li={};t.version=Pt,t.dependencies=Dt,t.PRIORITY=Nt,t.init=S,t.connect=M,t.disConnect=z,t.disconnect=ui,t.dispose=P,t.getInstanceByDom=D,t.getInstanceById=A,t.registerTheme=k,t.registerPreprocessor=E,t.registerProcessor=R,t.registerPostUpdate=V,t.registerAction=O,t.registerCoordinateSystem=L,t.getCoordinateSystemDimensions=F,t.registerLayout=U,t.registerVisual=B,t.registerLoading=Q,t.extendComponentModel=N,t.extendComponentView=X,t.extendSeriesModel=G,t.extendChartView=Y,t.setCanvasCreator=Z,t.registerMap=J,t.getMap=W,t.dataTool=li;var hi=e("node_modules/echarts/lib/export");!function(){for(var e in hi)hi.hasOwnProperty(e)&&(t[e]=hi[e])}()}); +amis.define("node_modules/echarts/lib/echarts",function(e,t){function i(e,t){return function(i,n,o){return!t&&this._disposed?void y(this.id):(i=i&&i.toLowerCase(),void it.prototype[e].call(this,i,n,o))}}function n(){it.call(this)}function o(e,t,i){function o(e,t){return e.__prio-t.__prio}i=i||{},"string"==typeof t&&(t=ii[t]),this.id,this.group,this._dom=e;var r="canvas",s=this._zr=j.init(e,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=vt(q.bind(s.flush,s),17);var t=q.clone(t);t&&at(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new rt;var a=this._api=b(this);tt(ti,o),tt(qt,o),this._scheduler=new wt(this,a,qt,ti),it.call(this,this._ecEventProcessor=new x),this._messageCenter=new n,this._initEvents(),this.resize=q.bind(this.resize,this),this._pendingActions=[],s.animation.on("frame",this._onframe,this),h(s,this),q.setAsPrimitive(this)}function r(e,t,i){if(this._disposed)return void y(this.id);var n,o=this._model,r=this._coordSysMgr.getCoordinateSystems();t=ft.parseFinder(o,t);for(var s=0;st.get("hoverLayerThreshold")&&!et.node&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var i=e._chartsMap[t.__viewId];i.__alive&&i.group.traverse(function(e){e.useHoverLayer=!0})}})}function C(e,t){var i=e.get("blendMode")||null;t.group.traverse(function(e){e.isGroup||e.style.blend!==i&&e.setStyle("blend",i),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.setStyle("blend",i)})})}function I(e,t){var i=e.get("z"),n=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=n&&(e.zlevel=n))})}function b(e){var t=e._coordSysMgr;return q.extend(new ot(e),{getCoordinateSystems:q.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){for(;t;){var i=t.__ecComponentInfo;if(null!=i)return e._model.getComponent(i.mainType,i.index);t=t.parent}}})}function x(){this.eventInfo}function T(e){function t(e,t){for(var i=0;i0&&e.unfinished);e.unfinished||this._zr.flush()}}},Yt.getDom=function(){return this._dom},Yt.getZr=function(){return this._zr},Yt.setOption=function(e,t,i){if(this._disposed)return void y(this.id);var n;if(Mt(t)&&(i=t.lazyUpdate,n=t.silent,t=t.notMerge),this[Xt]=!0,!this._model||t){var o=new st(this._api),r=this._theme,a=this._model=new nt;a.scheduler=this._scheduler,a.init(null,null,r,o)}this._model.setOption(e,Kt),i?(this[Zt]={silent:n},this[Xt]=!1):(s(this),Jt.update.call(this),this._zr.flush(),this[Zt]=!1,this[Xt]=!1,l.call(this,n),c.call(this,n))},Yt.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Yt.getModel=function(){return this._model},Yt.getOption=function(){return this._model&&this._model.getOption()},Yt.getWidth=function(){return this._zr.getWidth()},Yt.getHeight=function(){return this._zr.getHeight()},Yt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Yt.getRenderedCanvas=function(e){if(et.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},Yt.getSvgDataURL=function(){if(et.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return q.each(t,function(e){e.stopAnimation(!0)}),e.painter.toDataURL()}},Yt.getDataURL=function(e){if(this._disposed)return void y(this.id);e=e||{};var t=e.excludeComponents,i=this._model,n=[],o=this;Tt(t,function(e){i.eachComponent({mainType:e},function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Tt(n,function(e){e.group.ignore=!1}),r},Yt.getConnectedDataURL=function(e){if(this._disposed)return void y(this.id);if(et.canvasSupported){var t="svg"===e.type,i=this.group,n=Math.min,o=Math.max,r=1/0;if(ri[i]){var s=r,a=r,d=-r,u=-r,l=[],c=e&&e.pixelRatio||1;q.each(oi,function(r){if(r.group===i){var c=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(q.clone(e)),h=r.getDom().getBoundingClientRect();s=n(h.left,s),a=n(h.top,a),d=o(h.right,d),u=o(h.bottom,u),l.push({dom:c,left:h.left,top:h.top})}}),s*=c,a*=c,d*=c,u*=c;var h=d-s,p=u-a,f=q.createCanvas(),_=j.init(f,{renderer:t?"svg":"canvas"});if(_.resize({width:h,height:p}),t){var v="";return Tt(l,function(e){var t=e.left-s,i=e.top-a;v+=''+e.dom+""}),_.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&_.painter.setBackgroundColor(e.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}return e.connectedBackgroundColor&&_.add(new pt.Rect({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),Tt(l,function(e){var t=new pt.Image({style:{x:e.left*c-s,y:e.top*c-a,image:e.dom}});_.add(t)}),_.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},Yt.convertToPixel=q.curry(r,"convertToPixel"),Yt.convertFromPixel=q.curry(r,"convertFromPixel"),Yt.containPixel=function(e,t){if(this._disposed)return void y(this.id);var i,n=this._model;return e=ft.parseFinder(n,e),q.each(e,function(e,n){n.indexOf("Models")>=0&&q.each(e,function(e){var o=e.coordinateSystem;if(o&&o.containPoint)i|=!!o.containPoint(t);else if("seriesModels"===n){var r=this._chartsMap[e.__viewId];r&&r.containPoint&&(i|=r.containPoint(t,e))}},this)},this),!!i},Yt.getVisual=function(e,t){var i=this._model;e=ft.parseFinder(i,e,{defaultMainType:"series"});var n=e.seriesModel,o=n.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?o.indexOfRawIndex(e.dataIndex):null;return null!=r?o.getItemVisual(r,t):o.getVisual(t)},Yt.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},Yt.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var Jt={prepareAndUpdate:function(e){s(this),Jt.update.call(this,e)},update:function(e){var t=this._model,i=this._api,n=this._zr,o=this._coordSysMgr,r=this._scheduler;if(t){r.restoreData(t,e),r.performSeriesTasks(t),o.create(t,i),r.performDataProcessorTasks(t,e),d(this,t),o.update(t,i),f(t),r.performVisualTasks(t,e),_(this,t,i,e);var s=t.get("backgroundColor")||"transparent";if(et.canvasSupported)n.setBackgroundColor(s);else{var a=K.parse(s);s=K.stringify(a,"rgb"),0===a[3]&&(s="transparent")}g(t,i)}},updateTransform:function(e){var t=this._model,i=this,n=this._api;if(t){var o=[];t.eachComponent(function(r,s){var a=i.getViewOfComponentModel(s);if(a&&a.__alive)if(a.updateTransform){var d=a.updateTransform(s,t,n,e);d&&d.update&&o.push(a)}else o.push(a)});var r=q.createHashMap();t.eachSeries(function(o){var s=i._chartsMap[o.__viewId];if(s.updateTransform){var a=s.updateTransform(o,t,n,e);a&&a.update&&r.set(o.uid,1)}else r.set(o.uid,1)}),f(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:r}),m(i,t,n,e,r),g(t,this._api)}},updateView:function(e){var t=this._model;t&&(ht.markUpdateMethod(e,"updateView"),f(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),_(this,this._model,this._api,e),g(t,this._api))},updateVisual:function(e){Jt.update.call(this,e)},updateLayout:function(e){Jt.update.call(this,e)}};Yt.resize=function(e){if(this._disposed)return void y(this.id);this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var i=t.resetOption("media"),n=e&&e.silent;this[Xt]=!0,i&&s(this),Jt.update.call(this),this[Xt]=!1,l.call(this,n),c.call(this,n)}},Yt.showLoading=function(e,t){if(this._disposed)return void y(this.id);if(Mt(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ni[e]){var i=ni[e](this._api,t),n=this._zr;this._loadingFX=i,n.add(i)}},Yt.hideLoading=function(){return this._disposed?void y(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),void(this._loadingFX=null))},Yt.makeActionFromEvent=function(e){var t=q.extend({},e);return t.type=jt[e.type],t},Yt.dispatchAction=function(e,t){if(this._disposed)return void y(this.id);if(Mt(t)||(t={silent:!!t}),$t[e.type]&&this._model){if(this[Xt])return void this._pendingActions.push(e);u.call(this,e,t.silent),t.flush?this._zr.flush(!0):t.flush!==!1&&et.browser.weChat&&this._throttledZrFlush(),l.call(this,t.silent),c.call(this,t.silent)}},Yt.appendData=function(e){if(this._disposed)return void y(this.id);var t=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(t);n.appendData(e),this._scheduler.unfinished=!0},Yt.on=i("on",!1),Yt.off=i("off",!1),Yt.one=i("one",!1);var Wt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Yt._initEvents=function(){Tt(Wt,function(e){var t=function(t){var i,n=this.getModel(),o=t.target,r="globalout"===e;if(r)i={};else if(o&&null!=o.dataIndex){var s=o.dataModel||n.getSeriesByIndex(o.seriesIndex);i=s&&s.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(i=q.extend({},o.eventData));if(i){var a=i.componentType,d=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",d=i.seriesIndex);var u=a&&null!=d&&n.getComponent(a,d),l=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=t,i.type=e,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:l},this.trigger(e,i)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)},this),Tt(jt,function(e,t){this._messageCenter.on(t,function(e){this.trigger(t,e)},this)},this)},Yt.isDisposed=function(){return this._disposed},Yt.clear=function(){return this._disposed?void y(this.id):void this.setOption({series:[]},!0)},Yt.dispose=function(){if(this._disposed)return void y(this.id);this._disposed=!0,ft.setAttribute(this.getDom(),di,"");var e=this._api,t=this._model;Tt(this._componentsViews,function(i){i.dispose(t,e)}),Tt(this._chartsViews,function(i){i.dispose(t,e)}),this._zr.dispose(),delete oi[this.id]},q.mixin(o,it),x.prototype={constructor:x,normalizeQuery:function(e){var t={},i={},n={};if(q.isString(e)){var o=zt(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var r=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};q.each(e,function(e,o){for(var a=!1,d=0;d0&&l===o.length-u.length){var c=o.slice(0,l);"data"!==c&&(t.mainType=c,t[u.toLowerCase()]=e,a=!0)}}s.hasOwnProperty(o)&&(i[o]=e,a=!0),a||(n[o]=e)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},filter:function(e,t){function i(e,t,i,n){return null==e[i]||t[n||i]===e[i]}var n=this.eventInfo;if(!n)return!0;var o=n.targetEl,r=n.packedEvent,s=n.model,a=n.view;if(!s||!a)return!0;var d=t.cptQuery,u=t.dataQuery;return i(d,s,"mainType")&&i(d,s,"subType")&&i(d,s,"index","componentIndex")&&i(d,s,"name")&&i(d,s,"id")&&i(u,r,"name")&&i(u,r,"dataIndex")&&i(u,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,o,r))},afterTrigger:function(){this.eventInfo=null}};var $t={},jt={},qt=[],Kt=[],ei=[],ti=[],ii={},ni={},oi={},ri={},si=new Date-0,ai=new Date-0,di="_echarts_instance_",ui=z;B(Ft,mt),L(at),A(At,dt),Q("default",yt),V({type:"highlight",event:"highlight",update:"highlight"},q.noop),V({type:"downplay",event:"downplay",update:"downplay"},q.noop),k("light",Ct),k("dark",It);var li={};t.version=Dt,t.dependencies=Pt,t.PRIORITY=Nt,t.init=S,t.connect=M,t.disConnect=z,t.disconnect=ui,t.dispose=D,t.getInstanceByDom=P,t.getInstanceById=R,t.registerTheme=k,t.registerPreprocessor=L,t.registerProcessor=A,t.registerPostUpdate=E,t.registerAction=V,t.registerCoordinateSystem=O,t.getCoordinateSystemDimensions=F,t.registerLayout=U,t.registerVisual=B,t.registerLoading=Q,t.extendComponentModel=N,t.extendComponentView=X,t.extendSeriesModel=Z,t.extendChartView=G,t.setCanvasCreator=Y,t.registerMap=J,t.getMap=W,t.dataTool=li;var ci=e("node_modules/echarts/lib/export");!function(){for(var e in ci)ci.hasOwnProperty(e)&&(t[e]=ci[e])}()}); ;/*!node_modules/echarts/lib/chart/line/LineSeries.js*/ amis.define("node_modules/echarts/lib/chart/line/LineSeries",function(e,o,i){var l=e("node_modules/echarts/lib/config"),t=(l.__DEV__,e("node_modules/echarts/lib/chart/helper/createListFromArray")),n=e("node_modules/echarts/lib/model/Series"),s=n.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});i.exports=s}); ;/*!node_modules/echarts/lib/chart/helper/labelHelper.js*/ amis.define("node_modules/echarts/lib/chart/helper/labelHelper",function(e,a){function r(e,a){var r=e.mapDimension("defaultedLabel",!0),l=r.length;if(1===l)return t(e,a,r[0]);if(l){for(var n=[],i=0;ib;b++){var y=n[d];if(d>=r||0>d)break;if(e(y)){if(h){d+=s;continue}break}if(d===t)o[s>0?"moveTo":"lineTo"](y[0],y[1]);else if(u>0){var N=n[f],x="y"===c?1:0,g=(y[x]-N[x])*u;m(p,N),p[x]=N[x]+g,m(v,y),v[x]=y[x]-g,o.bezierCurveTo(p[0],p[1],v[0],v[1],y[0],y[1])}else o.lineTo(y[0],y[1]);f=d,d+=s}return b}function r(o,n,t,i,r,s,l,u,b,y,N){for(var x=0,g=t,k=0;i>k;k++){var C=n[g];if(g>=r||0>g)break;if(e(C)){if(N){g+=s;continue}break}if(g===t)o[s>0?"moveTo":"lineTo"](C[0],C[1]),m(p,C);else if(b>0){var P=g+s,T=n[P];if(N)for(;T&&e(n[P]);)P+=s,T=n[P];var M=.5,z=n[x],T=n[P];if(!T||e(T))m(v,C);else{e(T)&&!N&&(T=C),a.sub(d,T,z);var O,_;if("x"===y||"y"===y){var S="x"===y?0:1;O=Math.abs(C[S]-z[S]),_=Math.abs(C[S]-T[S])}else O=a.dist(C,z),_=a.dist(C,T);M=_/(_+O),f(v,C,d,-b*(1-M))}c(p,p,u),h(p,p,l),c(v,v,u),h(v,v,l),o.bezierCurveTo(p[0],p[1],v[0],v[1],C[0],C[1]),f(p,C,d,b*M)}else o.lineTo(C[0],C[1]);x=g,g+=s}return k}function s(o,n){var e=[1/0,1/0],t=[-1/0,-1/0];if(n)for(var i=0;it[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}return{min:n?e:t,max:n?t:e}}var l=o("node_modules/zrender/lib/graphic/Path"),a=o("node_modules/zrender/lib/core/vector"),u=o("node_modules/zrender/lib/graphic/helper/fixClipWithShadow"),c=a.min,h=a.max,f=a.scaleAndAdd,m=a.copy,d=[],p=[],v=[],b=l.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:u(l.prototype.brush),buildPath:function(o,n){var i=n.points,r=0,l=i.length,a=s(i,n.smoothConstraint);if(n.connectNulls){for(;l>0&&e(i[l-1]);l--);for(;l>r&&e(i[r]);r++);}for(;l>r;)r+=t(o,i,r,l,l,1,a.min,a.max,n.smooth,n.smoothMonotone,n.connectNulls)+1}}),y=l.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:u(l.prototype.brush),buildPath:function(o,n){var i=n.points,r=n.stackedOnPoints,l=0,a=i.length,u=n.smoothMonotone,c=s(i,n.smoothConstraint),h=s(r,n.smoothConstraint);if(n.connectNulls){for(;a>0&&e(i[a-1]);a--);for(;a>l&&e(i[l]);l++);}for(;a>l;){var f=t(o,i,l,a,a,1,c.min,c.max,n.smooth,u,n.connectNulls);t(o,r,l+f-1,f,a,-1,h.min,h.max,n.stackedOnSmooth,u,n.connectNulls),l+=f+1,o.closePath()}}});n.Polyline=b,n.Polygon=y}); ;/*!node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js*/ -amis.define("node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys",function(e,t){function r(e,t,r){var n=e.getArea(),i=e.getBaseAxis().isHorizontal(),l=n.x,h=n.y,s=n.width,c=n.height,o=r.get("lineStyle.width")||2;l-=o/2,h-=o/2,s+=o,c+=o;var d=new a.Rect({shape:{x:l,y:h,width:s,height:c}});return t&&(d.shape[i?"width":"height"]=0,a.initProps(d,{shape:{width:s,height:c}},r)),d}function n(e,t,r){var n=e.getArea(),i=new a.Sector({shape:{cx:h(e.cx,1),cy:h(e.cy,1),r0:h(n.r0,1),r:h(n.r,1),startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return t&&(i.shape.endAngle=n.startAngle,a.initProps(i,{shape:{endAngle:n.endAngle}},r)),i}function i(e,t,i){return e?"polar"===e.type?n(e,t,i):"cartesian2d"===e.type?r(e,t,i):null:null}var a=e("node_modules/echarts/lib/util/graphic"),l=e("node_modules/echarts/lib/util/number"),h=l.round;t.createGridClipPath=r,t.createPolarClipPath=n,t.createClipPath=i}); +amis.define("node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys",function(e,t){function r(e,t,r){var n=e.getArea(),a=e.getBaseAxis().isHorizontal(),l=n.x,h=n.y,o=n.width,s=n.height,c=r.get("lineStyle.width")||2;l-=c/2,h-=c/2,o+=c,s+=c,l=Math.floor(l),o=Math.round(o);var d=new i.Rect({shape:{x:l,y:h,width:o,height:s}});return t&&(d.shape[a?"width":"height"]=0,i.initProps(d,{shape:{width:o,height:s}},r)),d}function n(e,t,r){var n=e.getArea(),a=new i.Sector({shape:{cx:h(e.cx,1),cy:h(e.cy,1),r0:h(n.r0,1),r:h(n.r,1),startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return t&&(a.shape.endAngle=n.startAngle,i.initProps(a,{shape:{endAngle:n.endAngle}},r)),a}function a(e,t,a){return e?"polar"===e.type?n(e,t,a):"cartesian2d"===e.type?r(e,t,a):null:null}var i=e("node_modules/echarts/lib/util/graphic"),l=e("node_modules/echarts/lib/util/number"),h=l.round;t.createGridClipPath=r,t.createPolarClipPath=n,t.createClipPath=a}); ;/*!node_modules/echarts/lib/chart/line/LineView.js*/ -amis.define("node_modules/echarts/lib/chart/line/LineView",function(t,e,o){function i(t,e){if(t.length===e.length){for(var o=0;on;n++)i.push(x(o,t,e,n));return i}function a(t,e,o){for(var i=e.getBaseAxis(),n="x"===i.dim||"radius"===i.dim?0:1,r=[],a=0;a=0;r--){var a=o[r].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(i=l&&l.coordDim,"x"===i||"y"===i){n=o[r];break}}if(n){var h=e.getAxis(i),p=c.map(n.stops,function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}}),u=p.length,d=n.outerColors.slice();u&&p[0].coord>p[u-1].coord&&(p.reverse(),d.reverse());var m=10,g=p[0].coord-m,f=p[u-1].coord+m,y=f-g;if(.001>y)return"transparent";c.each(p,function(t){t.offset=(t.coord-g)/y}),p.push({offset:u?p[u-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:u?p[0].offset:.5,color:d[0]||"transparent"});var v=new _.LinearGradient(0,0,0,0,p,!0);return v[i]=g,v[i+"2"]=f,v}}}function l(t,e,o){var i=t.get("showAllSymbol"),n="auto"===i;if(!i||n){var r=o.getAxesByScale("ordinal")[0];if(r&&(!n||!h(r,e))){var a=e.mapDimension(r.dim),s={};return c.each(r.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function h(t,e){var o=t.getExtent(),i=Math.abs(o[1]-o[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),r=Math.max(1,Math.round(n/5)),a=0;n>a;a+=r)if(1.5*m.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function p(t,e,o){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),n=I(t,e,o);if(!o.get("clip",!0)){var r=n.shape,a=Math.max(r.width,r.height);i?(r.y-=a,r.height+=2*a):(r.x-=a,r.width+=2*a)}return n}return k(t,e,o)}var u=t("node_modules/echarts/lib/config"),c=(u.__DEV__,t("node_modules/zrender/lib/core/util")),d=t("node_modules/echarts/lib/chart/helper/SymbolDraw"),m=t("node_modules/echarts/lib/chart/helper/Symbol"),g=t("node_modules/echarts/lib/chart/line/lineAnimationDiff"),_=t("node_modules/echarts/lib/util/graphic"),f=t("node_modules/echarts/lib/util/model"),y=t("node_modules/echarts/lib/chart/line/poly"),v=y.Polyline,S=y.Polygon,b=t("node_modules/echarts/lib/view/Chart"),w=t("node_modules/echarts/lib/chart/line/helper"),P=w.prepareDataCoordInfo,x=w.getStackedOnPoint,G=t("node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys"),I=G.createGridClipPath,k=G.createPolarClipPath,D=b.extend({type:"line",init:function(){var t=new _.Group,e=new d;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,o){var h=t.coordinateSystem,u=this.group,d=t.getData(),m=t.getModel("lineStyle"),g=t.getModel("areaStyle"),_=d.mapArray(d.getItemLayout),f="polar"===h.type,y=this._coordSys,v=this._symbolDraw,S=this._polyline,b=this._polygon,w=this._lineGroup,x=t.get("animation"),G=!g.isEmpty(),I=g.get("origin"),k=P(h,d,I),D=r(h,d,k),O=t.get("showSymbol"),A=O&&!f&&l(t,d,h),C=this._data;C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(u.remove(t),C.setItemGraphicEl(e,null))}),O||v.remove(),u.add(w);var E,M=!f&&t.get("step");h&&h.getArea&&t.get("clip",!0)&&(E=h.getArea(),null!=E.width?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r1+=.5)),this._clipShapeForSymbol=E,S&&y.type===h.type&&M===this._step?(G&&!b?b=this._newPolygon(_,D,h,x):b&&!G&&(w.remove(b),b=this._polygon=null),w.setClipPath(p(h,!1,t)),O&&v.updateData(d,{isIgnore:A,clipShape:E}),d.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),i(this._stackedOnPoints,D)&&i(this._points,_)||(x?this._updateAnimation(d,D,h,o,M,I):(M&&(_=a(_,h,M),D=a(D,h,M)),S.setShape({points:_}),b&&b.setShape({points:_,stackedOnPoints:D})))):(O&&v.updateData(d,{isIgnore:A,clipShape:E}),M&&(_=a(_,h,M),D=a(D,h,M)),S=this._newPolyline(_,h,x),G&&(b=this._newPolygon(_,D,h,x)),w.setClipPath(p(h,!0,t)));var N=s(d,h)||d.getVisual("color");S.useStyle(c.defaults(m.getLineStyle(),{fill:"none",stroke:N,lineJoin:"bevel"}));var z=t.get("smooth");if(z=n(t.get("smooth")),S.setShape({smooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),b){var L=d.getCalculationInfo("stackedOnSeries"),V=0;b.useStyle(c.defaults(g.getAreaStyle(),{fill:N,opacity:.7,lineJoin:"bevel"})),L&&(V=n(L.get("smooth"))),b.setShape({smooth:z,stackedOnSmooth:V,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=d,this._coordSys=h,this._stackedOnPoints=D,this._points=_,this._step=M,this._valueOrigin=I},dispose:function(){},highlight:function(t,e,o,i){var n=t.getData(),r=f.queryDataIndex(n,i);if(!(r instanceof Array)&&null!=r&&r>=0){var a=n.getItemGraphicEl(r);if(!a){var s=n.getItemLayout(r);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new m(n,r),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,n.setItemGraphicEl(r,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else b.prototype.highlight.call(this,t,e,o,i)},downplay:function(t,e,o,i){var n=t.getData(),r=f.queryDataIndex(n,i);if(null!=r&&r>=0){var a=n.getItemGraphicEl(r);a&&(a.__temp?(n.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else b.prototype.downplay.call(this,t,e,o,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new v({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new S({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(o),this._polygon=o,o},_updateAnimation:function(t,e,o,i,n,r){var s=this._polyline,l=this._polygon,h=t.hostModel,p=g(this._data,t,this._stackedOnPoints,e,this._coordSys,o,this._valueOrigin,r),u=p.current,c=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;n&&(u=a(p.current,o,n),c=a(p.stackedOnCurrent,o,n),d=a(p.next,o,n),m=a(p.stackedOnNext,o,n)),s.shape.__points=p.current,s.shape.points=u,_.updateProps(s,{shape:{points:d}},h),l&&(l.setShape({points:u,stackedOnPoints:c}),_.updateProps(l,{shape:{points:d,stackedOnPoints:m}},h));for(var f=[],y=p.status,v=0;vi;i++)n.push(I(o,t,e,i));return n}function s(t,e,o){for(var n=e.getBaseAxis(),i="x"===n.dim||"radius"===n.dim?0:1,a=[],r=0;r=0;a--){var r=o[a].dimension,s=t.dimensions[r],l=t.getDimensionInfo(s);if(n=l&&l.coordDim,"x"===n||"y"===n){i=o[a];break}}if(i){var h=e.getAxis(n),p=d.map(i.stops,function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}}),u=p.length,c=i.outerColors.slice();u&&p[0].coord>p[u-1].coord&&(p.reverse(),c.reverse());var m=10,g=p[0].coord-m,f=p[u-1].coord+m,_=f-g;if(.001>_)return"transparent";d.each(p,function(t){t.offset=(t.coord-g)/_}),p.push({offset:u?p[u-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:u?p[0].offset:.5,color:c[0]||"transparent"});var y=new v.LinearGradient(0,0,0,0,p,!0);return y[n]=g,y[n+"2"]=f,y}}}function h(t,e,o){var n=t.get("showAllSymbol"),i="auto"===n;if(!n||i){var a=o.getAxesByScale("ordinal")[0];if(a&&(!i||!p(a,e))){var r=e.mapDimension(a.dim),s={};return d.each(a.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function p(t,e){var o=t.getExtent(),n=Math.abs(o[1]-o[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),r=0;i>r;r+=a)if(1.5*_.getSymbolSize(e,r)[t.isHorizontal()?1:0]>n)return!1;return!0}function u(t,e,o){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),i=D(t,e,o);if(!o.get("clip",!0)){var a=i.shape,r=Math.max(a.width,a.height);n?(a.y-=r,a.height+=2*r):(a.x-=r,a.width+=2*r)}return i}return M(t,e,o)}var c=t("node_modules/echarts/lib/config"),d=(c.__DEV__,t("node_modules/zrender/lib/core/util")),m=t("node_modules/zrender/lib/core/bbox"),g=m.fromPoints,f=t("node_modules/echarts/lib/chart/helper/SymbolDraw"),_=t("node_modules/echarts/lib/chart/helper/Symbol"),y=t("node_modules/echarts/lib/chart/line/lineAnimationDiff"),v=t("node_modules/echarts/lib/util/graphic"),b=t("node_modules/echarts/lib/util/model"),S=t("node_modules/echarts/lib/chart/line/poly"),w=S.Polyline,P=S.Polygon,x=t("node_modules/echarts/lib/view/Chart"),k=t("node_modules/echarts/lib/chart/line/helper"),G=k.prepareDataCoordInfo,I=k.getStackedOnPoint,O=t("node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys"),D=O.createGridClipPath,M=O.createPolarClipPath,A=x.extend({type:"line",init:function(){var t=new v.Group,e=new f;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,o){var i=t.coordinateSystem,p=this.group,c=t.getData(),m=t.getModel("lineStyle"),g=t.getModel("areaStyle"),f=c.mapArray(c.getItemLayout),_="polar"===i.type,y=this._coordSys,v=this._symbolDraw,b=this._polyline,S=this._polygon,w=this._lineGroup,P=t.get("animation"),x=!g.isEmpty(),k=g.get("origin"),I=G(i,c,k),O=r(i,c,I),D=t.get("showSymbol"),M=D&&!_&&h(t,c,i),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(p.remove(t),A.setItemGraphicEl(e,null))}),D||v.remove(),p.add(w);var C,E=!_&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(C=i.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r1+=.5)),this._clipShapeForSymbol=C,b&&y.type===i.type&&E===this._step?(x&&!S?S=this._newPolygon(f,O,i,P):S&&!x&&(w.remove(S),S=this._polygon=null),w.setClipPath(u(i,!1,t)),D&&v.updateData(c,{isIgnore:M,clipShape:C}),c.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),n(this._stackedOnPoints,O)&&n(this._points,f)||(P?this._updateAnimation(c,O,i,o,E,k):(E&&(f=s(f,i,E),O=s(O,i,E)),b.setShape({points:f}),S&&S.setShape({points:f,stackedOnPoints:O})))):(D&&v.updateData(c,{isIgnore:M,clipShape:C}),E&&(f=s(f,i,E),O=s(O,i,E)),b=this._newPolyline(f,i,P),x&&(S=this._newPolygon(f,O,i,P)),w.setClipPath(u(i,!0,t)));var N=l(c,i)||c.getVisual("color");b.useStyle(d.defaults(m.getLineStyle(),{fill:"none",stroke:N,lineJoin:"bevel"}));var z=t.get("smooth");if(z=a(t.get("smooth")),b.setShape({smooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),S){var L=c.getCalculationInfo("stackedOnSeries"),V=0;S.useStyle(d.defaults(g.getAreaStyle(),{fill:N,opacity:.7,lineJoin:"bevel"})),L&&(V=a(L.get("smooth"))),S.setShape({smooth:z,stackedOnSmooth:V,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=c,this._coordSys=i,this._stackedOnPoints=O,this._points=f,this._step=E,this._valueOrigin=k},dispose:function(){},highlight:function(t,e,o,n){var i=t.getData(),a=b.queryDataIndex(i,n);if(!(a instanceof Array)&&null!=a&&a>=0){var r=i.getItemGraphicEl(a);if(!r){var s=i.getItemLayout(a);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;r=new _(i,a),r.position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,i.setItemGraphicEl(a,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else x.prototype.highlight.call(this,t,e,o,n)},downplay:function(t,e,o,n){var i=t.getData(),a=b.queryDataIndex(i,n);if(null!=a&&a>=0){var r=i.getItemGraphicEl(a);r&&(r.__temp?(i.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else x.prototype.downplay.call(this,t,e,o,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new w({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new P({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(o),this._polygon=o,o},_updateAnimation:function(t,e,o,n,a,r){var l=this._polyline,h=this._polygon,p=t.hostModel,u=y(this._data,t,this._stackedOnPoints,e,this._coordSys,o,this._valueOrigin,r),c=u.current,d=u.stackedOnCurrent,m=u.next,g=u.stackedOnNext;if(a&&(c=s(u.current,o,a),d=s(u.stackedOnCurrent,o,a),m=s(u.next,o,a),g=s(u.stackedOnNext,o,a)),i(c,m)>3e3||h&&i(d,g)>3e3)return l.setShape({points:m}),void(h&&h.setShape({points:m,stackedOnPoints:g}));l.shape.__points=u.current,l.shape.points=c,v.updateProps(l,{shape:{points:m}},p),h&&(h.setShape({points:c,stackedOnPoints:d}),v.updateProps(h,{shape:{points:m,stackedOnPoints:g}},p));for(var f=[],_=u.status,b=0;b<_.length;b++){var S=_[b].cmd;if("="===S){var w=t.getItemGraphicEl(_[b].idx1);w&&f.push({el:w,ptIdx:b})}}l.animators&&l.animators.length&&l.animators[0].during(function(){for(var t=0;ti[1],s="start"===e&&!l||"start"!==e&&l;return T(r-z/2)?(a=s?"bottom":"top",o="center"):T(r-1.5*z)?(a=s?"top":"bottom",o="center"):(a="middle",o=1.5*z>r&&r>z/2?s?"left":"right":s?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function o(t,e,n){if(!D(t.axis)){var i=t.get("axisLabel.showMinLabel"),o=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var l=e[0],s=e[1],g=e[e.length-1],c=e[e.length-2],d=n[0],u=n[1],m=n[n.length-1],x=n[n.length-2];i===!1?(a(l),a(d)):r(l,s)&&(i?(a(s),a(u)):(a(l),a(d))),o===!1?(a(g),a(m)):r(c,g)&&(o?(a(c),a(x)):(a(g),a(m)))}}function a(t){t&&(t.ignore=!0)}function r(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=_.identity([]);return _.rotate(o,o,-t.rotation),n.applyTransform(_.mul([],o,t.getLocalTransform())),i.applyTransform(_.mul([],o,e.getLocalTransform())),n.intersect(i)}}function l(t){return"middle"===t||"center"===t}function s(t,e,n,i,o){for(var a=[],r=[],l=[],s=0;sc[1]?-1:1,u=["start"===a?c[0]-d*g:"end"===a?c[1]+d*g:(c[0]+c[1])/2,l(a)?t.labelOffset+r*g:0],x=e.get("nameRotate");null!=x&&(x=x*z/180);var f;l(a)?o=B(t.rotation,null!=x?x:t.rotation,r):(o=i(t,a,x||0,c),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(o.rotation)),!isFinite(f)&&(f=null)));var b=s.getFont(),y=e.get("nameTruncate",!0)||{},T=y.ellipsis,L=m(t.nameTruncateMaxWidth,y.maxWidth,f),M=null!=T&&null!=L?p.truncateText(n,L,b,T,{minChar:2,placeholder:y.placeholder}):n,S=e.get("tooltip",!0),_=e.mainType,k={componentType:_,name:n,$vars:["name"]};k[_+"Index"]=e.componentIndex;var w=new v.Text({anid:"name",__fullText:n,__truncatedText:M,position:u,rotation:o.rotation,silent:G(e),z2:1,tooltip:S&&S.show?h({content:n,formatter:function(){return n},formatterParams:k},S):null});v.setTextStyle(w.style,s,{text:M,textFont:b,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:s.get("align")||o.textAlign,textVerticalAlign:s.get("verticalAlign")||o.textVerticalAlign}),e.get("triggerEvent")&&(w.eventData=V(e),w.eventData.targetType="axisName",w.eventData.name=n),this._dumbGroup.add(w),w.updateTransform(),this.group.add(w),w.decomposeTransform()}}},V=C.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},B=C.innerTextLayout=function(t,e,n){var i,o,a=L(e-t);return T(a)?(o=n>0?"top":"bottom",i="center"):T(a-z)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&z>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},G=C.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},E=C;n.exports=E}); +amis.define("node_modules/echarts/lib/component/axis/AxisBuilder",function(t,e,n){function i(t,e,n,i){var o,a,r=L(n-t.rotation),l=i[0]>i[1],s="start"===e&&!l||"start"!==e&&l;return T(r-z/2)?(a=s?"bottom":"top",o="center"):T(r-1.5*z)?(a=s?"top":"bottom",o="center"):(a="middle",o=1.5*z>r&&r>z/2?s?"left":"right":s?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function o(t,e,n){if(!D(t.axis)){var i=t.get("axisLabel.showMinLabel"),o=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var l=e[0],s=e[1],g=e[e.length-1],c=e[e.length-2],d=n[0],u=n[1],m=n[n.length-1],x=n[n.length-2];i===!1?(a(l),a(d)):r(l,s)&&(i?(a(s),a(u)):(a(l),a(d))),o===!1?(a(g),a(m)):r(c,g)&&(o?(a(c),a(x)):(a(g),a(m)))}}function a(t){t&&(t.ignore=!0)}function r(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=_.identity([]);return _.rotate(o,o,-t.rotation),n.applyTransform(_.mul([],o,t.getLocalTransform())),i.applyTransform(_.mul([],o,e.getLocalTransform())),n.intersect(i)}}function l(t){return"middle"===t||"center"===t}function s(t,e,n,i,o){for(var a=[],r=[],l=[],s=0;sc[1]?-1:1,u=["start"===a?c[0]-d*g:"end"===a?c[1]+d*g:(c[0]+c[1])/2,l(a)?t.labelOffset+r*g:0],x=e.get("nameRotate");null!=x&&(x=x*z/180);var f;l(a)?o=B(t.rotation,null!=x?x:t.rotation,r):(o=i(t,a,x||0,c),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(o.rotation)),!isFinite(f)&&(f=null)));var b=s.getFont(),y=e.get("nameTruncate",!0)||{},T=y.ellipsis,L=m(t.nameTruncateMaxWidth,y.maxWidth,f),M=null!=T&&null!=L?p.truncateText(n,L,b,T,{minChar:2,placeholder:y.placeholder}):n,S=e.get("tooltip",!0),_=e.mainType,k={componentType:_,name:n,$vars:["name"]};k[_+"Index"]=e.componentIndex;var w=new v.Text({anid:"name",__fullText:n,__truncatedText:M,position:u,rotation:o.rotation,silent:G(e),z2:1,tooltip:S&&S.show?h({content:n,formatter:function(){return n},formatterParams:k},S):null});v.setTextStyle(w.style,s,{text:M,textFont:b,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:s.get("align")||o.textAlign,textVerticalAlign:s.get("verticalAlign")||o.textVerticalAlign}),e.get("triggerEvent")&&(w.eventData=V(e),w.eventData.targetType="axisName",w.eventData.name=n),this._dumbGroup.add(w),w.updateTransform(),this.group.add(w),w.decomposeTransform()}}},V=C.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},B=C.innerTextLayout=function(t,e,n){var i,o,a=L(e-t);return T(a)?(o=n>0?"top":"bottom",i="center"):T(a-z)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&z>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},G=C.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},E=C;n.exports=E}); ;/*!node_modules/echarts/lib/component/axisPointer/modelHelper.js*/ amis.define("node_modules/echarts/lib/component/axisPointer/modelHelper",function(e,o){function t(e,o){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n(t,e,o),t.seriesInvolved&&s(t,e),t}function n(e,o,t){var n=o.getComponent("tooltip"),s=o.getComponent("axisPointer"),r=s.get("link",!0)||[],l=[];p(t.getCoordinateSystems(),function(t){function d(n,d,u){var f=u.model.getModel("axisPointer",s),p=f.get("show");if(p&&("auto"!==p||n||c(f))){null==d&&(d=f.get("triggerTooltip")),f=n?i(u,m,s,o,n,d):f;var v=f.get("snap"),y=g(u.model),h=d||v||"category"===u.type,A=e.axesInfo[y]={key:y,axis:u,coordSys:t,axisPointerModel:f,triggerTooltip:d,involveSeries:h,snap:v,useHandle:c(f),seriesModels:[]};x[y]=A,e.seriesInvolved|=h;var I=a(r,u);if(null!=I){var S=l[I]||(l[I]={axesInfo:{}});S.axesInfo[y]=A,S.mapper=r[I].mapper,A.linkGroup=S}}}if(t.axisPointerEnabled){var u=g(t.model),x=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=t;var f=t.model,m=f.getModel("tooltip",n);if(p(t.getAxes(),v(d,!1,null)),t.getTooltipAxes&&n&&m.get("show")){var y="axis"===m.get("trigger"),h="cross"===m.get("axisPointer.type"),A=t.getTooltipAxes(m.get("axisPointer.axis"));(y||h)&&p(A.baseAxes,v(d,h?"cross":!0,y)),h&&p(A.otherAxes,v(d,"cross",!1))}}})}function i(e,o,t,n,i,s){var a=o.getModel("axisPointer"),r={};p(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){r[e]=x.clone(a.get(e))}),r.snap="category"!==e.type&&!!s,"cross"===a.get("type")&&(r.type="line");var l=r.label||(r.label={});if(null==l.show&&(l.show=!1),"cross"===i){var d=a.get("label.show");if(l.show=null!=d?d:!0,!s){var u=r.lineStyle=a.get("crossStyle");u&&x.defaults(l,u.textStyle)}}return e.model.getModel("axisPointer",new f(r,t,n))}function s(e,o){o.eachSeries(function(o){var t=o.coordinateSystem,n=o.get("tooltip.trigger",!0),i=o.get("tooltip.show",!0);t&&"none"!==n&&n!==!1&&"item"!==n&&i!==!1&&o.get("axisPointer.show",!0)!==!1&&p(e.coordSysAxesInfo[g(t.model)],function(e){var n=e.axis;t.getAxis(n.dim)===n&&(e.seriesModels.push(o),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=o.getData().count())})},this)}function a(e,o){for(var t=o.model,n=o.dim,i=0;i=0||e===o}function l(e){var o=d(e);if(o){var t=o.axisPointerModel,n=o.axis.scale,i=t.option,s=t.get("status"),a=t.get("value");null!=a&&(a=n.parse(a));var r=c(t);null==s&&(i.status=r?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),ae&&(e=r),e},defaultOption:{clip:!0,roundCap:!1}});s.exports=i}); +amis.define("node_modules/echarts/lib/chart/bar/BarSeries",function(e,r,o){var s=e("node_modules/echarts/lib/chart/bar/BaseBarSeries"),t=s.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>e&&(e=r),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});o.exports=t}); ;/*!node_modules/echarts/lib/chart/bar/helper.js*/ amis.define("node_modules/echarts/lib/chart/bar/helper",function(e,t){function l(e,t,l,i,r,n){var b=l.getModel("label"),d=l.getModel("emphasis.label");o.setLabelStyle(e,t,b,d,{labelFetcher:r,labelDataIndex:n,defaultText:s(r.getData(),n),isRectText:!0,autoColor:i}),a(e),a(t)}function a(e,t){"outside"===e.textPosition&&(e.textPosition=t)}var o=e("node_modules/echarts/lib/util/graphic"),i=e("node_modules/echarts/lib/chart/helper/labelHelper"),s=i.getDefaultLabel;t.setLabel=l}); ;/*!node_modules/echarts/lib/chart/bar/barItemStyle.js*/ @@ -407,7 +411,7 @@ amis.define("node_modules/echarts/lib/chart/bar/barItemStyle",function(e,r,o){va ;/*!node_modules/echarts/lib/util/shape/sausage.js*/ amis.define("node_modules/echarts/lib/util/shape/sausage",function(a,e,t){var s=a("node_modules/echarts/lib/util/graphic"),c=s.extendShape,h=c({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(a,e){var t=e.cx,s=e.cy,c=Math.max(e.r0||0,0),h=Math.max(e.r,0),o=.5*(h-c),n=c+o,r=e.startAngle,i=e.endAngle,l=e.clockwise,M=Math.cos(r),d=Math.sin(r),u=Math.cos(i),m=Math.sin(i),P=l?i-r<2*Math.PI:r-i<2*Math.PI;P&&(a.moveTo(M*c+t,d*c+s),a.arc(M*n+t,d*n+s,o,-Math.PI+r,r,!l)),a.arc(t,s,h,r,i,!l),a.moveTo(u*h+t,m*h+s),a.arc(u*n+t,m*n+s,o,i-2*Math.PI,i-Math.PI,!l),0!==c&&(a.arc(t,s,c,i,r,l),a.moveTo(M*c+t,m*c+s)),a.closePath()}});t.exports=h}); ;/*!node_modules/echarts/lib/chart/bar/BarView.js*/ -amis.define("node_modules/echarts/lib/chart/bar/BarView",function(e,t,r){function a(e,t){var r=e.getArea&&e.getArea();if("cartesian2d"===e.type){var a=e.getBaseAxis();if("category"!==a.type||!a.onBand){var i=t.getLayout("bandWidth");a.isHorizontal()?(r.x-=i,r.width+=2*i):(r.y-=i,r.height+=2*i)}}return r}function i(e,t,r){r.style.text=null,m.updateProps(r,{shape:{width:0}},t,e,function(){r.parent&&r.parent.remove(r)})}function n(e,t,r){r.style.text=null,m.updateProps(r,{shape:{r:r.shape.r0}},t,e,function(){r.parent&&r.parent.remove(r)})}function o(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function s(e,t,r,a,i,n,s,l){var h=t.getItemVisual(r,"color"),d=t.getItemVisual(r,"opacity"),u=t.getVisual("borderColor"),c=a.getModel("itemStyle"),g=a.getModel("emphasis.itemStyle").getBarItemStyle();l||e.setShape("r",c.get("barBorderRadius")||0),e.useStyle(p.defaults({stroke:o(i)?"none":u,fill:o(i)?"none":h,opacity:d},c.getBarItemStyle()));var y=a.getShallow("cursor");y&&e.attr("cursor",y);var _=s?i.height>0?"bottom":"top":i.width>0?"left":"right";l||f(e.style,g,a,h,n,r,_),o(i)&&(g.fill=g.stroke="none"),m.setHoverStyle(e,g)}function l(e,t){var r=e.get(P)||0;return Math.min(r,Math.abs(t.width),Math.abs(t.height))}function h(e,t,r){var a=e.getData(),i=[],n=a.getLayout("valueAxisHorizontal")?1:0;i[1-n]=a.getLayout("valueAxisStart");var o=new W({shape:{points:a.getLayout("largePoints")},incremental:!!r,__startPoint:i,__baseDimIdx:n,__largeDataIndices:a.getLayout("largeDataIndices"),__barWidth:a.getLayout("barWidth")});t.add(o),u(o,e,a),o.seriesIndex=e.seriesIndex,e.get("silent")||(o.on("mousedown",R),o.on("mousemove",R))}function d(e,t,r){var a=e.__baseDimIdx,i=1-a,n=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];S[0]=t,S[1]=r;for(var h=S[a],d=S[1-a],u=h-s,c=h+s,g=0,p=n.length/2;p>g;g++){var m=2*g,y=n[m+a],f=n[m+i];if(y>=u&&c>=y&&(f>=l?d>=l&&f>=d:d>=f&&l>=d))return o[g]}return-1}function u(e,t,r){var a=r.getVisual("borderColor")||r.getVisual("color"),i=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=a,e.style.lineWidth=r.getLayout("barWidth")}var c=e("node_modules/echarts/lib/config"),g=(c.__DEV__,e("node_modules/echarts/lib/echarts")),p=e("node_modules/zrender/lib/core/util"),m=e("node_modules/echarts/lib/util/graphic"),y=e("node_modules/echarts/lib/chart/bar/helper"),f=y.setLabel,_=e("node_modules/echarts/lib/model/Model"),v=e("node_modules/echarts/lib/chart/bar/barItemStyle"),b=e("node_modules/zrender/lib/graphic/Path"),w=e("node_modules/echarts/lib/util/throttle"),x=w.throttle,I=e("node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys"),A=I.createClipPath,L=e("node_modules/echarts/lib/util/shape/sausage"),P=["itemStyle","barBorderWidth"],S=[0,0];p.extend(_.prototype,v);var D=g.extendChartView({type:"bar",render:function(e,t,r){this._updateDrawMode(e);var a=e.get("coordinateSystem");return("cartesian2d"===a||"polar"===a)&&(this._isLargeDraw?this._renderLarge(e,t,r):this._renderNormal(e,t,r)),this.group},incrementalPrepareRender:function(e){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t,r=this.group,o=e.getData(),l=this._data,h=e.coordinateSystem,d=h.getBaseAxis();"cartesian2d"===h.type?t=d.isHorizontal():"polar"===h.type&&(t="angle"===d.dim);var u=e.isAnimationEnabled()?e:null,c=e.get("clip",!0),g=a(h,o);r.removeClipPath();var p=e.get("roundCap",!0);o.diff(l).add(function(a){if(o.hasValue(a)){var i=o.getItemModel(a),n=E[h.type](o,a,i);if(c){var l=V[h.type](g,n);if(l)return void r.remove(d)}var d=B[h.type](a,n,t,u,!1,p);o.setItemGraphicEl(a,d),r.add(d),s(d,o,a,i,n,e,t,"polar"===h.type)}}).update(function(a,i){var n=l.getItemGraphicEl(i);if(!o.hasValue(a))return void r.remove(n);var d=o.getItemModel(a),y=E[h.type](o,a,d);if(c){var f=V[h.type](g,y);if(f)return void r.remove(n)}n?m.updateProps(n,{shape:y},u,a):n=B[h.type](a,y,t,u,!0,p),o.setItemGraphicEl(a,n),r.add(n),s(n,o,a,d,y,e,t,"polar"===h.type)}).remove(function(e){var t=l.getItemGraphicEl(e);"cartesian2d"===h.type?t&&i(e,u,t):t&&n(e,u,t)}).execute(),this._data=o},_renderLarge:function(e){this._clear(),h(e,this.group);var t=e.get("clip",!0)?A(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){h(t,this.group,!0)},dispose:p.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,r=this._data;e&&e.get("animation")&&r&&!this._isLargeDraw?r.eachItemGraphicEl(function(t){"sector"===t.type?n(t.dataIndex,e,t):i(t.dataIndex,e,t)}):t.removeAll(),this._data=null}}),M=Math.max,C=Math.min,V={cartesian2d:function(e,t){var r=t.width<0?-1:1,a=t.height<0?-1:1;0>r&&(t.x+=t.width,t.width=-t.width),0>a&&(t.y+=t.height,t.height=-t.height);var i=M(t.x,e.x),n=C(t.x+t.width,e.x+e.width),o=M(t.y,e.y),s=C(t.y+t.height,e.y+e.height);t.x=i,t.y=o,t.width=n-i,t.height=s-o;var l=t.width<0||t.height<0;return 0>r&&(t.x+=t.width,t.width=-t.width),0>a&&(t.y+=t.height,t.height=-t.height),l},polar:function(){return!1}},B={cartesian2d:function(e,t,r,a,i){var n=new m.Rect({shape:p.extend({},t)});if(a){var o=n.shape,s=r?"height":"width",l={};o[s]=0,l[s]=t[s],m[i?"updateProps":"initProps"](n,{shape:l},a,e)}return n},polar:function(e,t,r,a,i,n){var o=t.startAngle0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(e,t){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}},W=b.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var r=t.points,a=this.__startPoint,i=this.__baseDimIdx,n=0;n=0?r:null},30,!1);r.exports=D}); +amis.define("node_modules/echarts/lib/chart/bar/BarView",function(e,t,r){function a(e,t){var r=e.getArea&&e.getArea();if("cartesian2d"===e.type){var a=e.getBaseAxis();if("category"!==a.type||!a.onBand){var i=t.getLayout("bandWidth");a.isHorizontal()?(r.x-=i,r.width+=2*i):(r.y-=i,r.height+=2*i)}}return r}function i(e,t,r){r.style.text=null,v.updateProps(r,{shape:{width:0}},t,e,function(){r.parent&&r.parent.remove(r)})}function n(e,t,r){r.style.text=null,v.updateProps(r,{shape:{r:r.shape.r0}},t,e,function(){r.parent&&r.parent.remove(r)})}function o(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function s(e,t,r,a,i,n,s,l){var d=t.getItemVisual(r,"color"),h=t.getItemVisual(r,"opacity"),u=t.getVisual("borderColor"),g=a.getModel("itemStyle"),c=a.getModel("emphasis.itemStyle").getBarItemStyle();l||e.setShape("r",g.get("barBorderRadius")||0),e.useStyle(_.defaults({stroke:o(i)?"none":u,fill:o(i)?"none":d,opacity:h},g.getBarItemStyle()));var p=a.getShallow("cursor");p&&e.attr("cursor",p);var y=s?i.height>0?"bottom":"top":i.width>0?"left":"right";l||b(e.style,c,a,d,n,r,y),o(i)&&(c.fill=c.stroke="none"),v.setHoverStyle(e,c)}function l(e,t){var r=e.get(D)||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}function d(e,t,r){var a=e.getData(),i=[],n=a.getLayout("valueAxisHorizontal")?1:0;i[1-n]=a.getLayout("valueAxisStart");var o=a.getLayout("largeDataIndices"),s=a.getLayout("barWidth"),l=e.getModel("backgroundStyle"),d=e.get("showBackground",!0);if(d){var h=a.getLayout("largeBackgroundPoints"),c=[];c[1-n]=a.getLayout("backgroundStart");var p=new R({shape:{points:h},incremental:!!r,__startPoint:c,__baseDimIdx:n,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});g(p,l,a),t.add(p)}var y=new R({shape:{points:a.getLayout("largePoints")},incremental:!!r,__startPoint:i,__baseDimIdx:n,__largeDataIndices:o,__barWidth:s});t.add(y),u(y,e,a),y.seriesIndex=e.seriesIndex,e.get("silent")||(y.on("mousedown",N),y.on("mousemove",N))}function h(e,t,r){var a=e.__baseDimIdx,i=1-a,n=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];B[0]=t,B[1]=r;for(var d=B[a],h=B[1-a],u=d-s,g=d+s,c=0,p=n.length/2;p>c;c++){var y=2*c,m=n[y+a],_=n[y+i];if(m>=u&&g>=m&&(_>=l?h>=l&&_>=h:h>=_&&l>=h))return o[c]}return-1}function u(e,t,r){var a=r.getVisual("borderColor")||r.getVisual("color"),i=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=a,e.style.lineWidth=r.getLayout("barWidth")}function g(e,t,r){var a=t.get("borderColor")||t.get("color"),i=t.getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=a,e.style.lineWidth=r.getLayout("barWidth")}function c(e,t,r){var a,i="polar"===r.type;return a=i?r.getArea():r.grid.getRect(),i?{cx:a.cx,cy:a.cy,r0:e?a.r0:t.r0,r:e?a.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:a.x,y:e?a.y:t.y,width:e?t.width:a.width,height:e?a.height:t.height}}function p(e,t,r){var a="polar"===e.type?v.Sector:v.Rect;return new a({shape:c(t,r,e),silent:!0,z2:0})}var y=e("node_modules/echarts/lib/config"),m=(y.__DEV__,e("node_modules/echarts/lib/echarts")),_=e("node_modules/zrender/lib/core/util"),v=e("node_modules/echarts/lib/util/graphic"),f=e("node_modules/echarts/lib/chart/bar/helper"),b=f.setLabel,w=e("node_modules/echarts/lib/model/Model"),x=e("node_modules/echarts/lib/chart/bar/barItemStyle"),I=e("node_modules/zrender/lib/graphic/Path"),S=e("node_modules/zrender/lib/container/Group"),A=e("node_modules/echarts/lib/util/throttle"),L=A.throttle,P=e("node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys"),k=P.createClipPath,M=e("node_modules/echarts/lib/util/shape/sausage"),D=["itemStyle","barBorderWidth"],B=[0,0];_.extend(w.prototype,x);var C=m.extendChartView({type:"bar",render:function(e,t,r){this._updateDrawMode(e);var a=e.get("coordinateSystem");return("cartesian2d"===a||"polar"===a)&&(this._isLargeDraw?this._renderLarge(e,t,r):this._renderNormal(e,t,r)),this.group},incrementalPrepareRender:function(e){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t,r=this.group,o=e.getData(),l=this._data,d=e.coordinateSystem,h=d.getBaseAxis();"cartesian2d"===d.type?t=h.isHorizontal():"polar"===d.type&&(t="angle"===h.dim);var u=e.isAnimationEnabled()?e:null,g=e.get("clip",!0),y=a(d,o);r.removeClipPath();var m=e.get("roundCap",!0),_=e.get("showBackground",!0),f=e.getModel("backgroundStyle"),b=f.get("barBorderRadius")||0,w=[],x=this._backgroundEls||[];o.diff(l).add(function(a){var i=o.getItemModel(a),n=W[d.type](o,a,i);if(_){var l=W[d.type](o,a),h=p(d,t,l);h.useStyle(f.getBarItemStyle()),"cartesian2d"===d.type&&h.setShape("r",b),w[a]=h}if(o.hasValue(a)){if(g){var c=z[d.type](y,n);if(c)return void r.remove(v)}var v=G[d.type](a,n,t,u,!1,m);o.setItemGraphicEl(a,v),r.add(v),s(v,o,a,i,n,e,t,"polar"===d.type)}}).update(function(a,i){var n=o.getItemModel(a),h=W[d.type](o,a,n);if(_){var p=x[i];p.useStyle(f.getBarItemStyle()),"cartesian2d"===d.type&&p.setShape("r",b),w[a]=p;var I=W[d.type](o,a),S=c(t,I,d);v.updateProps(p,{shape:S},u,a)}var A=l.getItemGraphicEl(i);if(!o.hasValue(a))return void r.remove(A);if(g){var L=z[d.type](y,h);if(L)return void r.remove(A)}A?v.updateProps(A,{shape:h},u,a):A=G[d.type](a,h,t,u,!0,m),o.setItemGraphicEl(a,A),r.add(A),s(A,o,a,n,h,e,t,"polar"===d.type)}).remove(function(e){var t=l.getItemGraphicEl(e);"cartesian2d"===d.type?t&&i(e,u,t):t&&n(e,u,t)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new S);I.removeAll();for(var A=0;Ar&&(t.x+=t.width,t.width=-t.width),0>a&&(t.y+=t.height,t.height=-t.height);var i=E(t.x,e.x),n=V(t.x+t.width,e.x+e.width),o=E(t.y,e.y),s=V(t.y+t.height,e.y+e.height);t.x=i,t.y=o,t.width=n-i,t.height=s-o;var l=t.width<0||t.height<0;return 0>r&&(t.x+=t.width,t.width=-t.width),0>a&&(t.y+=t.height,t.height=-t.height),l},polar:function(){return!1}},G={cartesian2d:function(e,t,r,a,i){var n=new v.Rect({shape:_.extend({},t),z2:1});if(n.name="item",a){var o=n.shape,s=r?"height":"width",l={};o[s]=0,l[s]=t[s],v[i?"updateProps":"initProps"](n,{shape:l},a,e)}return n},polar:function(e,t,r,a,i,n){var o=t.startAngle0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(e,t){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}},R=I.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var r=t.points,a=this.__startPoint,i=this.__baseDimIdx,n=0;n=0?r:null},30,!1);r.exports=C}); ;/*!node_modules/echarts/lib/chart/bar.js*/ amis.define("node_modules/echarts/lib/chart/bar",function(e){var r=e("node_modules/echarts/lib/echarts"),a=e("node_modules/zrender/lib/core/util"),o=e("node_modules/echarts/lib/layout/barGrid"),t=o.layout,s=o.largeLayout;e("node_modules/echarts/lib/coord/cartesian/Grid"),e("node_modules/echarts/lib/chart/bar/BarSeries"),e("node_modules/echarts/lib/chart/bar/BarView"),e("node_modules/echarts/lib/component/gridSimple"),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,a.curry(t,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),r.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})}); ;/*!node_modules/echarts/lib/chart/helper/createListSimply.js*/ @@ -419,7 +423,7 @@ amis.define("node_modules/echarts/lib/visual/LegendVisualProvider",function(e,n, ;/*!node_modules/echarts/lib/chart/pie/PieSeries.js*/ amis.define("node_modules/echarts/lib/chart/pie/PieSeries",function(e,t,i){var a=e("node_modules/echarts/lib/echarts"),n=e("node_modules/echarts/lib/chart/helper/createListSimply"),l=e("node_modules/zrender/lib/core/util"),s=e("node_modules/echarts/lib/util/model"),o=e("node_modules/echarts/lib/util/number"),r=o.getPercentWithPrecision,h=e("node_modules/echarts/lib/component/helper/selectableMixin"),d=e("node_modules/echarts/lib/data/helper/dataProvider"),c=d.retrieveRawAttr,u=e("node_modules/echarts/lib/data/helper/sourceHelper"),m=u.makeSeriesEncodeForNameBased,p=e("node_modules/echarts/lib/visual/LegendVisualProvider"),b=a.extendSeriesModel({type:"series.pie",init:function(e){b.superApply(this,"init",arguments),this.legendVisualProvider=new p(l.bind(this.getData,this),l.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){b.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(){return n(this,{coordDimensions:["value"],encodeDefaulter:l.curry(m,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),i=[],a=0,n=e.count();n>a;a++)i.push({name:e.getName(a),value:e.get(t,a),selected:c(e,a,"selected")});return i},getDataParams:function(e){var t=this.getData(),i=b.superCall(this,"getDataParams",e),a=[];return t.each(t.mapDimension("value"),function(e){a.push(e)}),i.percent=r(a,e,t.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(e){s.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});l.mixin(b,h);var g=b;i.exports=g}); ;/*!node_modules/echarts/lib/chart/pie/PieView.js*/ -amis.define("node_modules/echarts/lib/chart/pie/PieView",function(e,t,a){function i(e,t,a,i){var n=t.getData(),r=this.dataIndex,l=n.getName(r),s=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:l,seriesId:t.id}),n.each(function(e){o(n.getItemGraphicEl(e),n.getItemLayout(e),t.isSelected(n.getName(e)),s,a)})}function o(e,t,a,i,o){var n=(t.startAngle+t.endAngle)/2,r=Math.cos(n),l=Math.sin(n),s=a?i:0,h=[r*s,l*s];o?e.animate().when(200,{position:h}).start("bounceOut"):e.attr("position",h)}function n(e,t){l.Group.call(this);var a=new l.Sector({z2:2}),i=new l.Polyline,o=new l.Text;this.add(a),this.add(i),this.add(o),this.updateData(e,t,!0)}var r=e("node_modules/zrender/lib/core/util"),l=e("node_modules/echarts/lib/util/graphic"),s=e("node_modules/echarts/lib/view/Chart"),h=n.prototype;h.updateData=function(e,t,a){var i=this.childAt(0),n=this.childAt(1),s=this.childAt(2),h=e.hostModel,g=e.getItemModel(t),c=e.getItemLayout(t),d=r.extend({},c);d.label=null;var p=h.getShallow("animationTypeUpdate");if(a){i.setShape(d);var u=h.getShallow("animationType");"scale"===u?(i.shape.r=c.r0,l.initProps(i,{shape:{r:c.r}},h,t)):(i.shape.endAngle=c.startAngle,l.updateProps(i,{shape:{endAngle:c.endAngle}},h,t))}else"expansion"===p?i.setShape(d):l.updateProps(i,{shape:d},h,t);var m=e.getItemVisual(t,"color");i.useStyle(r.defaults({lineJoin:"bevel",fill:m},g.getModel("itemStyle").getItemStyle())),i.hoverStyle=g.getModel("emphasis.itemStyle").getItemStyle();var y=g.getShallow("cursor");y&&i.attr("cursor",y),o(this,e.getItemLayout(t),h.isSelected(null,t),h.get("selectedOffset"),h.get("animation"));var v=!a&&"transition"===p;this._updateLabel(e,t,v),this.highDownOnUpdate=g.get("hoverAnimation")&&h.isAnimationEnabled()?function(e,t){"emphasis"===t?(n.ignore=n.hoverIgnore,s.ignore=s.hoverIgnore,i.stopAnimation(!0),i.animateTo({shape:{r:c.r+h.get("hoverOffset")}},300,"elasticOut")):(n.ignore=n.normalIgnore,s.ignore=s.normalIgnore,i.stopAnimation(!0),i.animateTo({shape:{r:c.r}},300,"elasticOut"))}:null,l.setHoverStyle(this)},h._updateLabel=function(e,t,a){var i=this.childAt(1),o=this.childAt(2),n=e.hostModel,r=e.getItemModel(t),s=e.getItemLayout(t),h=s.label,g=e.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y))return void(o.ignore=o.normalIgnore=o.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0);var c={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},d={x:h.x,y:h.y};a?(l.updateProps(i,{shape:c},n,t),l.updateProps(o,{style:d},n,t)):(i.attr({shape:c}),o.attr({style:d})),o.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var p=r.getModel("label"),u=r.getModel("emphasis.label"),m=r.getModel("labelLine"),y=r.getModel("emphasis.labelLine"),g=e.getItemVisual(t,"color");l.setLabelStyle(o.style,o.hoverStyle={},p,u,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!p.get("show"),o.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!m.get("show"),i.hoverIgnore=!y.get("show"),i.setStyle({stroke:g,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(m.getModel("lineStyle").getLineStyle()),i.hoverStyle=y.getModel("lineStyle").getLineStyle();var v=m.get("smooth");v&&v===!0&&(v=.4),i.setShape({smooth:v})},r.inherits(n,l.Group);var g=s.extend({type:"pie",init:function(){var e=new l.Group;this._sectorGroup=e},render:function(e,t,a,o){if(!o||o.from!==this.uid){var l=e.getData(),s=this._data,h=this.group,g=t.get("animation"),c=!s,d=e.get("animationType"),p=e.get("animationTypeUpdate"),u=r.curry(i,this.uid,e,g,a),m=e.get("selectedMode");if(l.diff(s).add(function(e){var t=new n(l,e);c&&"scale"!==d&&t.eachChild(function(e){e.stopAnimation(!0)}),m&&t.on("click",u),l.setItemGraphicEl(e,t),h.add(t)}).update(function(e,t){var a=s.getItemGraphicEl(t);c||"transition"===p||a.eachChild(function(e){e.stopAnimation(!0)}),a.updateData(l,e),a.off("click"),m&&a.on("click",u),h.add(a),l.setItemGraphicEl(e,a)}).remove(function(e){var t=s.getItemGraphicEl(e);h.remove(t)}).execute(),g&&l.count()>0&&(c?"scale"!==d:"transition"!==p)){for(var y=l.getItemLayout(0),v=1;isNaN(y.startAngle)&&v=i.r0}}}),c=g;a.exports=c}); +amis.define("node_modules/echarts/lib/chart/pie/PieView",function(e,t,a){function i(e,t,a,i){var n=t.getData(),r=this.dataIndex,l=n.getName(r),s=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:l,seriesId:t.id}),n.each(function(e){o(n.getItemGraphicEl(e),n.getItemLayout(e),t.isSelected(n.getName(e)),s,a)})}function o(e,t,a,i,o){var n=(t.startAngle+t.endAngle)/2,r=Math.cos(n),l=Math.sin(n),s=a?i:0,h=[r*s,l*s];o?e.animate().when(200,{position:h}).start("bounceOut"):e.attr("position",h)}function n(e,t){l.Group.call(this);var a=new l.Sector({z2:2}),i=new l.Polyline,o=new l.Text;this.add(a),this.add(i),this.add(o),this.updateData(e,t,!0)}var r=e("node_modules/zrender/lib/core/util"),l=e("node_modules/echarts/lib/util/graphic"),s=e("node_modules/echarts/lib/view/Chart"),h=n.prototype;h.updateData=function(e,t,a){var i=this.childAt(0),n=this.childAt(1),s=this.childAt(2),h=e.hostModel,g=e.getItemModel(t),c=e.getItemLayout(t),d=r.extend({},c);d.label=null;var p=h.getShallow("animationTypeUpdate");if(a){i.setShape(d);var u=h.getShallow("animationType");"scale"===u?(i.shape.r=c.r0,l.initProps(i,{shape:{r:c.r}},h,t)):(i.shape.endAngle=c.startAngle,l.updateProps(i,{shape:{endAngle:c.endAngle}},h,t))}else"expansion"===p?i.setShape(d):l.updateProps(i,{shape:d},h,t);var m=e.getItemVisual(t,"color");i.useStyle(r.defaults({lineJoin:"bevel",fill:m},g.getModel("itemStyle").getItemStyle())),i.hoverStyle=g.getModel("emphasis.itemStyle").getItemStyle();var y=g.getShallow("cursor");y&&i.attr("cursor",y),o(this,e.getItemLayout(t),h.isSelected(e.getName(t)),h.get("selectedOffset"),h.get("animation"));var v=!a&&"transition"===p;this._updateLabel(e,t,v),this.highDownOnUpdate=h.get("silent")?null:function(e,t){var a=h.isAnimationEnabled()&&g.get("hoverAnimation");"emphasis"===t?(n.ignore=n.hoverIgnore,s.ignore=s.hoverIgnore,a&&(i.stopAnimation(!0),i.animateTo({shape:{r:c.r+h.get("hoverOffset")}},300,"elasticOut"))):(n.ignore=n.normalIgnore,s.ignore=s.normalIgnore,a&&(i.stopAnimation(!0),i.animateTo({shape:{r:c.r}},300,"elasticOut")))},l.setHoverStyle(this)},h._updateLabel=function(e,t,a){var i=this.childAt(1),o=this.childAt(2),n=e.hostModel,r=e.getItemModel(t),s=e.getItemLayout(t),h=s.label,g=e.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y))return void(o.ignore=o.normalIgnore=o.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0);var c={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},d={x:h.x,y:h.y};a?(l.updateProps(i,{shape:c},n,t),l.updateProps(o,{style:d},n,t)):(i.attr({shape:c}),o.attr({style:d})),o.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var p=r.getModel("label"),u=r.getModel("emphasis.label"),m=r.getModel("labelLine"),y=r.getModel("emphasis.labelLine"),g=e.getItemVisual(t,"color");l.setLabelStyle(o.style,o.hoverStyle={},p,u,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!p.get("show"),o.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!m.get("show"),i.hoverIgnore=!y.get("show"),i.setStyle({stroke:g,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(m.getModel("lineStyle").getLineStyle()),i.hoverStyle=y.getModel("lineStyle").getLineStyle();var v=m.get("smooth");v&&v===!0&&(v=.4),i.setShape({smooth:v})},r.inherits(n,l.Group);var g=s.extend({type:"pie",init:function(){var e=new l.Group;this._sectorGroup=e},render:function(e,t,a,o){if(!o||o.from!==this.uid){var l=e.getData(),s=this._data,h=this.group,g=t.get("animation"),c=!s,d=e.get("animationType"),p=e.get("animationTypeUpdate"),u=r.curry(i,this.uid,e,g,a),m=e.get("selectedMode");if(l.diff(s).add(function(e){var t=new n(l,e);c&&"scale"!==d&&t.eachChild(function(e){e.stopAnimation(!0)}),m&&t.on("click",u),l.setItemGraphicEl(e,t),h.add(t)}).update(function(e,t){var a=s.getItemGraphicEl(t);c||"transition"===p||a.eachChild(function(e){e.stopAnimation(!0)}),a.updateData(l,e),a.off("click"),m&&a.on("click",u),h.add(a),l.setItemGraphicEl(e,a)}).remove(function(e){var t=s.getItemGraphicEl(e);h.remove(t)}).execute(),g&&l.count()>0&&(c?"scale"!==d:"transition"!==p)){for(var y=l.getItemLayout(0),v=1;isNaN(y.startAngle)&&v=i.r0}}}),c=g;a.exports=c}); ;/*!node_modules/echarts/lib/action/createDataSelectAction.js*/ amis.define("node_modules/echarts/lib/action/createDataSelectAction",function(e,t,n){function a(e,t){o.each(t,function(t){t.update="updateView",i.registerAction(t,function(n,a){var i={};return a.eachComponent({mainType:"series",subType:e,query:n},function(e){e[t.method]&&e[t.method](n.name,n.dataIndex);var a=e.getData();a.each(function(t){var n=a.getName(t);i[n]=e.isSelected(n)||!1})}),{name:n.name,selected:i,seriesId:n.seriesId}})})}var i=e("node_modules/echarts/lib/echarts"),o=e("node_modules/zrender/lib/core/util");n.exports=a}); ;/*!node_modules/echarts/lib/visual/dataColor.js*/ @@ -443,7 +447,7 @@ amis.define("node_modules/echarts/lib/chart/scatter",function(e){var t=e("node_m ;/*!node_modules/echarts/lib/coord/radar/IndicatorAxis.js*/ amis.define("node_modules/echarts/lib/coord/radar/IndicatorAxis",function(e,i,o){function s(e,i,o){t.call(this,e,i,o),this.type="value",this.angle=0,this.name="",this.model}var r=e("node_modules/zrender/lib/core/util"),t=e("node_modules/echarts/lib/coord/Axis");r.inherits(s,t);var d=s;o.exports=d}); ;/*!node_modules/echarts/lib/coord/radar/Radar.js*/ -amis.define("node_modules/echarts/lib/coord/radar/Radar",function(t,e,a){function n(t,e,a){this._model=t,this.dimensions=[],this._indicatorAxes=r.map(t.getIndicatorModels(),function(t,e){var a="indicator_"+e,n=new i(a,"log"===t.get("axisType")?new u:new o);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(a),n},this),this.resize(t,a),this.cx,this.cy,this.r,this.r0,this.startAngle}var r=t("node_modules/zrender/lib/core/util"),i=t("node_modules/echarts/lib/coord/radar/IndicatorAxis"),o=t("node_modules/echarts/lib/scale/Interval"),s=t("node_modules/echarts/lib/util/number"),c=t("node_modules/echarts/lib/coord/axisHelper"),d=c.getScaleExtent,h=c.niceScaleExtent,l=t("node_modules/echarts/lib/CoordinateSystem"),u=t("node_modules/echarts/lib/scale/Log");n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,r=this.cx+t*Math.cos(n),i=this.cy-t*Math.sin(n);return[r,i]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var r,i=Math.atan2(-a,e),o=1/0,s=-1,c=0;ch&&(r=d,s=c,o=h)}return[s,+(r&&r.coordToData(n))]},n.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=s.parsePercent(a[0],n),this.cy=s.parsePercent(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var c=t.get("radius");("string"==typeof c||"number"==typeof c)&&(c=[0,c]),this.r0=s.parsePercent(c[0],o),this.r=s.parsePercent(c[1],o),r.each(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var a=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;a=Math.atan2(Math.sin(a),Math.cos(a)),t.angle=a},this)},n.prototype.update=function(t){function e(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),a=t/e;return 2===a?a=5:a*=2,a*e}var a=this._indicatorAxes,n=this._model;r.each(a,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===n){var i=e.getData();r.each(a,function(t){t.scale.unionExtentFromData(i,i.mapDimension(t.dim))})}},this);var i=n.get("splitNumber");r.each(a,function(t){var a=d(t.scale,t.model);h(t.scale,t.model);var n=t.model,r=t.scale,o=n.getMin(),c=n.getMax(),l=r.getInterval();if(null!=o&&null!=c)r.setExtent(+o,+c),r.setInterval((c-o)/i);else if(null!=o){var u;do u=o+l*i,r.setExtent(+o,u),r.setInterval(l),l=e(l);while(ua[0]&&isFinite(g)&&isFinite(a[0]))}else{var m=r.getTicks().length-1;m>i&&(l=e(l));var p=Math.round((a[0]+a[1])/2/l)*l,x=Math.round(i/2);r.setExtent(s.round(p-x*l),s.round(p+(i-x)*l)),r.setInterval(l)}})},n.dimensions=[],n.create=function(t,e){var a=[];return t.eachComponent("radar",function(r){var i=new n(r,t,e);a.push(i),r.coordinateSystem=i}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=a[t.get("radarIndex")||0])}),a},l.register("radar",n);var g=n;a.exports=g}); +amis.define("node_modules/echarts/lib/coord/radar/Radar",function(t,e,a){function n(t,e,a){this._model=t,this.dimensions=[],this._indicatorAxes=i.map(t.getIndicatorModels(),function(t,e){var a="indicator_"+e,n=new r(a,"log"===t.get("axisType")?new u:new s);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(a),n},this),this.resize(t,a),this.cx,this.cy,this.r,this.r0,this.startAngle}var i=t("node_modules/zrender/lib/core/util"),r=t("node_modules/echarts/lib/coord/radar/IndicatorAxis"),s=t("node_modules/echarts/lib/scale/Interval"),o=t("node_modules/echarts/lib/util/number"),c=t("node_modules/echarts/lib/coord/axisHelper"),d=c.getScaleExtent,h=c.niceScaleExtent,l=t("node_modules/echarts/lib/CoordinateSystem"),u=t("node_modules/echarts/lib/scale/Log");n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),r=this.cy-t*Math.sin(n);return[i,r]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i,r=Math.atan2(-a,e),s=1/0,o=-1,c=0;ch&&(i=d,o=c,s=h)}return[o,+(i&&i.coordToData(n))]},n.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),r=e.getHeight(),s=Math.min(n,r)/2;this.cx=o.parsePercent(a[0],n),this.cy=o.parsePercent(a[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var c=t.get("radius");("string"==typeof c||"number"==typeof c)&&(c=[0,c]),this.r0=o.parsePercent(c[0],s),this.r=o.parsePercent(c[1],s),i.each(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var a=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;a=Math.atan2(Math.sin(a),Math.cos(a)),t.angle=a},this)},n.prototype.update=function(t){function e(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),a=t/e;return 2===a?a=5:a*=2,a*e}var a=this._indicatorAxes,n=this._model;i.each(a,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===n){var r=e.getData();i.each(a,function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))})}},this);var r=n.get("splitNumber");i.each(a,function(t){var a=d(t.scale,t.model).extent;h(t.scale,t.model);var n=t.model,i=t.scale,s=n.getMin(),c=n.getMax(),l=i.getInterval();if(null!=s&&null!=c)i.setExtent(+s,+c),i.setInterval((c-s)/r);else if(null!=s){var u;do u=s+l*r,i.setExtent(+s,u),i.setInterval(l),l=e(l);while(ua[0]&&isFinite(g)&&isFinite(a[0]))}else{var m=i.getTicks().length-1;m>r&&(l=e(l));var u=Math.ceil(a[1]/l)*l,g=o.round(u-l*r);i.setExtent(g,u),i.setInterval(l)}})},n.dimensions=[],n.create=function(t,e){var a=[];return t.eachComponent("radar",function(i){var r=new n(i,t,e);a.push(r),i.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=a[t.get("radarIndex")||0])}),a},l.register("radar",n);var g=n;a.exports=g}); ;/*!node_modules/echarts/lib/coord/radar/RadarModel.js*/ amis.define("node_modules/echarts/lib/coord/radar/RadarModel",function(e,a,t){function i(e,a){return s.defaults({show:a},e)}var n=e("node_modules/echarts/lib/echarts"),s=e("node_modules/zrender/lib/core/util"),o=e("node_modules/echarts/lib/coord/axisDefault"),l=e("node_modules/echarts/lib/model/Model"),r=e("node_modules/echarts/lib/coord/axisModelCommonMixin"),d=o.valueAxis,m=n.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),t=this.get("scale"),i=this.get("axisLine"),n=this.get("axisTick"),o=this.get("axisType"),d=this.get("axisLabel"),m=this.get("name"),c=this.get("name.show"),u=this.get("name.formatter"),p=this.get("nameGap"),x=this.get("triggerEvent"),h=s.map(this.get("indicator")||[],function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var g=m;if(null!=h.color&&(g=s.defaults({color:h.color},m)),h=s.merge(s.clone(h),{boundaryGap:e,splitNumber:a,scale:t,axisLine:i,axisTick:n,axisType:o,axisLabel:d,name:h.text,nameLocation:"end",nameGap:p,nameTextStyle:g,triggerEvent:x},!1),c||(h.name=""),"string"==typeof u){var b=h.name;h.name=u.replace("{value}",null!=b?b:"")}else"function"==typeof u&&(h.name=u(h.name,h));var f=s.extend(new l(h,null,this.ecModel),r);return f.mainType="radar",f.componentIndex=this.componentIndex,f},this);this.getIndicatorModels=function(){return h}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:s.merge({lineStyle:{color:"#bbb"}},d.axisLine),axisLabel:i(d.axisLabel,!1),axisTick:i(d.axisTick,!1),axisType:"interval",splitLine:i(d.splitLine,!0),splitArea:i(d.splitArea,!0),indicator:[]}}),c=m;t.exports=c}); ;/*!node_modules/echarts/lib/component/radar/RadarView.js*/ @@ -451,7 +455,7 @@ amis.define("node_modules/echarts/lib/component/radar/RadarView",function(e,t,i) ;/*!node_modules/echarts/lib/component/radar.js*/ amis.define("node_modules/echarts/lib/component/radar",function(a){a("node_modules/echarts/lib/coord/radar/Radar"),a("node_modules/echarts/lib/coord/radar/RadarModel"),a("node_modules/echarts/lib/component/radar/RadarView")}); ;/*!node_modules/echarts/lib/chart/radar/RadarSeries.js*/ -amis.define("node_modules/echarts/lib/chart/radar/RadarSeries",function(e,t,i){var r=e("node_modules/echarts/lib/model/Series"),a=e("node_modules/echarts/lib/chart/helper/createListSimply"),n=e("node_modules/zrender/lib/core/util"),o=e("node_modules/echarts/lib/util/format"),d=o.encodeHTML,s=e("node_modules/echarts/lib/visual/LegendVisualProvider"),l=r.extend({type:"series.radar",dependencies:["radar"],init:function(){l.superApply(this,"init",arguments),this.legendVisualProvider=new s(n.bind(this.getData,this),n.bind(this.getRawData,this))},getInitialData:function(){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e){var t=this.getData(),i=this.coordinateSystem,r=i.getIndicatorAxes(),a=this.getData().getName(e);return d(""===a?this.name:a)+"
"+n.map(r,function(i){var r=t.get(t.mapDimension(i.dim),e);return d(i.name+" : "+r)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),m=l;i.exports=m}); +amis.define("node_modules/echarts/lib/chart/radar/RadarSeries",function(e,t,i){var n=e("node_modules/echarts/lib/model/Series"),a=e("node_modules/echarts/lib/chart/helper/createListSimply"),o=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/util/format"),s=r.encodeHTML,d=e("node_modules/echarts/lib/visual/LegendVisualProvider"),l=n.extend({type:"series.radar",dependencies:["radar"],init:function(){l.superApply(this,"init",arguments),this.legendVisualProvider=new d(o.bind(this.getData,this),o.bind(this.getRawData,this))},getInitialData:function(){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e){var t=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),a=this.getData().getName(e);return s(""===a?this.name:a)+"
"+o.map(n,function(i){var n=t.get(t.mapDimension(i.dim),e);return s(i.name+" : "+n)}).join("
")},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),i=this.coordinateSystem,n=t.getValues(o.map(i.dimensions,function(e){return t.mapDimension(e)}),e,!0),a=0,r=n.length;r>a;a++)if(!isNaN(n[a])){var s=i.getIndicatorAxes();return i.coordToPoint(s[a].dataToCoord(n[a]),a)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),m=l;i.exports=m}); ;/*!node_modules/echarts/lib/chart/radar/RadarView.js*/ amis.define("node_modules/echarts/lib/chart/radar/RadarView",function(e,t,l){function i(e){return r.isArray(e)||(e=[+e,+e]),e}var o=e("node_modules/echarts/lib/echarts"),a=e("node_modules/echarts/lib/util/graphic"),r=e("node_modules/zrender/lib/core/util"),n=e("node_modules/echarts/lib/util/symbol"),s=o.extendChartView({type:"radar",render:function(e){function t(e,t){var l=e.getItemVisual(t,"symbol")||"circle",o=e.getItemVisual(t,"color");if("none"!==l){var a=i(e.getItemVisual(t,"symbolSize")),r=n.createSymbol(l,-1,-1,2,2,o);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),r}}function l(l,i,o,r,n,s){o.removeAll();for(var d=0;ds;s++){var d=e.getName(s);o.set(d,!0),r.push({name:d,value:e.get(t,s),selected:c(e,s,"selected")})}var u=m.load(this.getMapType(),this.option.nameMap);return a.each(u.regions,function(e){var t=e.name;o.get(t)||(r.push({name:t}),i.push(t))}),this.updateSelectedMap(r),e.appendValues([],i),e},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e){for(var t=this.getData(),o=l(this.getRawValue(e)),a=t.getName(e),n=this.seriesGroup,r=[],i=0;i"+s(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),o=this.coordinateSystem,a=o.getRegion(t);return a&&o.dataToPoint(a.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});a.mixin(g,d);var f=g;o.exports=f}); +amis.define("node_modules/echarts/lib/chart/map/MapSeries",function(e,t,o){var a=e("node_modules/zrender/lib/core/util"),n=e("node_modules/echarts/lib/chart/helper/createListSimply"),r=e("node_modules/echarts/lib/model/Series"),i=e("node_modules/echarts/lib/util/format"),s=i.encodeHTML,l=i.addCommas,d=e("node_modules/echarts/lib/component/helper/selectableMixin"),u=e("node_modules/echarts/lib/data/helper/dataProvider"),m=u.retrieveRawAttr,c=e("node_modules/echarts/lib/coord/geo/geoSourceManager"),p=e("node_modules/echarts/lib/data/helper/sourceHelper"),h=p.makeSeriesEncodeForNameBased,g=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(){for(var e=n(this,{coordDimensions:["value"],encodeDefaulter:a.curry(h,this)}),t=e.mapDimension("value"),o=a.createHashMap(),r=[],i=[],s=0,l=e.count();l>s;s++){var d=e.getName(s);o.set(d,!0),r.push({name:d,value:e.get(t,s),selected:m(e,s,"selected")})}var u=c.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return a.each(u.regions,function(e){var t=e.name;o.get(t)||(r.push({name:t}),i.push(t))}),this.updateSelectedMap(r),e.appendValues([],i),e},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e){for(var t=this.getData(),o=l(this.getRawValue(e)),a=t.getName(e),n=this.seriesGroup,r=[],i=0;i"+s(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),o=this.coordinateSystem,a=o.getRegion(t);return a&&o.dataToPoint(a.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});a.mixin(g,d);var f=g;o.exports=f}); ;/*!node_modules/echarts/lib/component/helper/interactionMutex.js*/ amis.define("node_modules/echarts/lib/component/helper/interactionMutex",function(e,n){function t(e,n,t){var r=a(e);r[n]=t}function r(e,n,t){var r=a(e),o=r[n];o===t&&(r[n]=null)}function o(e,n){return!!a(e)[n]}function a(e){return e[u]||(e[u]={})}var i=e("node_modules/echarts/lib/echarts"),u="\x00_ec_interaction_mutex";i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),n.take=t,n.release=r,n.isTaken=o}); ;/*!node_modules/echarts/lib/component/helper/RoamController.js*/ @@ -485,7 +489,7 @@ amis.define("node_modules/echarts/lib/component/helper/roamHelper",function(o,i) ;/*!node_modules/echarts/lib/component/helper/cursorHelper.js*/ amis.define("node_modules/echarts/lib/component/helper/cursorHelper",function(e,n){function o(e,n,o){var r=n.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==o&&!t[r.mainType]&&i&&i.model!==o}var t={axisPointer:1,tooltip:1,brush:1};n.onIrrelevantElement=o}); ;/*!node_modules/echarts/lib/component/helper/MapDraw.js*/ -amis.define("node_modules/echarts/lib/component/helper/MapDraw",function(e,o,t){function n(e){var o=e.getItemStyle(),t=e.get("areaColor");return null!=t&&(o.fill=t),o}function r(e,o,t,n,r){t.off("click"),t.off("mousedown"),o.get("selectedMode")&&(t.on("mousedown",function(){e._mouseDownFlag=!0}),t.on("click",function(i){if(e._mouseDownFlag){e._mouseDownFlag=!1;for(var l=i.target;!l.__regions;)l=l.parent;if(l){var m={type:("geo"===o.mainType?"geo":"map")+"ToggleSelect",batch:s.map(l.__regions,function(e){return{name:e.name,from:r.uid}})};m[o.mainType+"Id"]=o.id,n.dispatchAction(m),a(o,t)}}}))}function a(e,o){o.eachChild(function(o){s.each(o.__regions,function(t){o.trigger(e.isSelected(t.name)?"emphasis":"normal")})})}function i(e,o){var t=new u.Group;this.uid=g("ec_map_draw"),this._controller=new l(e.getZr()),this._controllerHost={target:o?t:null},this.group=t,this._updateGroup=o,this._mouseDownFlag,this._mapName,this._initialized,t.add(this._regionsGroup=new u.Group),t.add(this._backgroundGroup=new u.Group)}var s=e("node_modules/zrender/lib/core/util"),l=e("node_modules/echarts/lib/component/helper/RoamController"),m=e("node_modules/echarts/lib/component/helper/roamHelper"),c=e("node_modules/echarts/lib/component/helper/cursorHelper"),p=c.onIrrelevantElement,u=e("node_modules/echarts/lib/util/graphic"),d=e("node_modules/echarts/lib/coord/geo/geoSourceManager"),h=e("node_modules/echarts/lib/util/component"),g=h.getUID;i.prototype={constructor:i,draw:function(e,o,t,i){var l="geo"===e.mainType,m=e.getData&&e.getData();l&&o.eachComponent({mainType:"series",subType:"map"},function(o){m||o.getHostGeoModel()!==e||(m=o.getData())});var c=e.coordinateSystem;this._updateBackground(c);var p=this._regionsGroup,d=this.group;c._roamTransformable.transform&&(d.transform=c._roamTransformable.transform.slice(),d.decomposeTransform());var h=c._rawTransformable.scale,g=c._rawTransformable.position;p.removeAll();var f=["itemStyle"],_=["emphasis","itemStyle"],v=["label"],y=["emphasis","label"],w=s.createHashMap();s.each(c.regions,function(o){var t=w.get(o.name)||w.set(o.name,new u.Group),r=new u.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});t.add(r);var a,i=e.getRegionModel(o.name)||e,c=i.getModel(f),b=i.getModel(_),T=n(c),x=n(b),G=i.getModel(v),I=i.getModel(y);if(m){a=m.indexOfName(o.name);var D=m.getItemVisual(a,"color",!0);D&&(T.fill=D)}var S=function(e){return[e[0]*h[0]+g[0],e[1]*h[1]+g[1]]};s.each(o.geometries,function(e){if("polygon"===e.type){for(var o=[],t=0;t=0)&&(z=e);var H=new u.Text({position:S(o.center.slice()),scale:[1/d.scale[0],1/d.scale[1]],z2:10,silent:!0});u.setLabelStyle(H.style,H.hoverStyle={},G,I,{labelFetcher:z,labelDataIndex:C,defaultText:o.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),t.add(H)}if(m)m.setItemGraphicEl(a,t);else{var i=e.getRegionModel(o.name);r.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:o.name,region:i&&i.option||{}}}var F=t.__regions||(t.__regions=[]);F.push(o),t.highDownSilentOnTouch=!!e.get("selectedMode"),u.setHoverStyle(t,x),p.add(t)}),this._updateController(e,o,t),r(this,e,p,t,i),a(e,p)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&d.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var o=e.map;this._mapName!==o&&s.each(d.makeGraphic(o,this.uid),function(e){this._backgroundGroup.add(e)},this),this._mapName=o},_updateController:function(e,o,t){function n(){var o={type:"geoRoam",componentType:l};return o[l+"Id"]=e.id,o}var r=e.coordinateSystem,a=this._controller,i=this._controllerHost;i.zoomLimit=e.get("scaleLimit"),i.zoom=r.getZoom(),a.enable(e.get("roam")||!1);var l=e.mainType;a.off("pan").on("pan",function(e){this._mouseDownFlag=!1,m.updateViewOnPan(i,e.dx,e.dy),t.dispatchAction(s.extend(n(),{dx:e.dx,dy:e.dy}))},this),a.off("zoom").on("zoom",function(e){if(this._mouseDownFlag=!1,m.updateViewOnZoom(i,e.scale,e.originX,e.originY),t.dispatchAction(s.extend(n(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var o=this.group.scale;this._regionsGroup.traverse(function(e){"text"===e.type&&e.attr("scale",[1/o[0],1/o[1]])})}},this),a.setPointerChecker(function(o,n,a){return r.getViewRectAfterRoam().contain(n,a)&&!p(o,t,e)})}};var f=i;t.exports=f}); +amis.define("node_modules/echarts/lib/component/helper/MapDraw",function(e,o,t){function n(e){var o=e.getItemStyle(),t=e.get("areaColor");return null!=t&&(o.fill=t),o}function r(e,o,t,n,r){t.off("click"),t.off("mousedown"),o.get("selectedMode")&&(t.on("mousedown",function(){e._mouseDownFlag=!0}),t.on("click",function(i){if(e._mouseDownFlag){e._mouseDownFlag=!1;for(var l=i.target;!l.__regions;)l=l.parent;if(l){var m={type:("geo"===o.mainType?"geo":"map")+"ToggleSelect",batch:s.map(l.__regions,function(e){return{name:e.name,from:r.uid}})};m[o.mainType+"Id"]=o.id,n.dispatchAction(m),a(o,t)}}}))}function a(e,o){o.eachChild(function(o){s.each(o.__regions,function(t){o.trigger(e.isSelected(t.name)?"emphasis":"normal")})})}function i(e,o){var t=new d.Group;this.uid=g("ec_map_draw"),this._controller=new l(e.getZr()),this._controllerHost={target:o?t:null},this.group=t,this._updateGroup=o,this._mouseDownFlag,this._mapName,this._initialized,t.add(this._regionsGroup=new d.Group),t.add(this._backgroundGroup=new d.Group)}var s=e("node_modules/zrender/lib/core/util"),l=e("node_modules/echarts/lib/component/helper/RoamController"),m=e("node_modules/echarts/lib/component/helper/roamHelper"),c=e("node_modules/echarts/lib/component/helper/cursorHelper"),p=c.onIrrelevantElement,d=e("node_modules/echarts/lib/util/graphic"),u=e("node_modules/echarts/lib/coord/geo/geoSourceManager"),h=e("node_modules/echarts/lib/util/component"),g=h.getUID,f=e("node_modules/zrender/lib/mixin/Transformable");i.prototype={constructor:i,draw:function(e,o,t,i,l){var m="geo"===e.mainType,c=e.getData&&e.getData();m&&o.eachComponent({mainType:"series",subType:"map"},function(o){c||o.getHostGeoModel()!==e||(c=o.getData())});var p=e.coordinateSystem;this._updateBackground(p);var u,h=this._regionsGroup,g=this.group,_=p.getTransformInfo(),v=!h.childAt(0)||l;if(v)g.transform=_.roamTransform,g.decomposeTransform(),g.dirty();else{var y=new f;y.transform=_.roamTransform,y.decomposeTransform();var w={scale:y.scale,position:y.position};u=y.scale,d.updateProps(g,w,e)}var b=_.rawScale,T=_.rawPosition;h.removeAll();var x=["itemStyle"],I=["emphasis","itemStyle"],G=["label"],S=["emphasis","label"],D=s.createHashMap();s.each(p.regions,function(o){var t=D.get(o.name)||D.set(o.name,new d.Group),r=new d.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});t.add(r);var a,i=e.getRegionModel(o.name)||e,l=i.getModel(x),p=i.getModel(I),f=n(l),_=n(p),y=i.getModel(G),w=i.getModel(S);if(c){a=c.indexOfName(o.name);var M=c.getItemVisual(a,"color",!0);M&&(f.fill=M)}var k=function(e){return[e[0]*b[0]+T[0],e[1]*b[1]+T[1]]};s.each(o.geometries,function(e){if("polygon"===e.type){for(var o=[],t=0;t=0)&&(H=e);var F=new d.Text({position:k(o.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(d.setLabelStyle(F.style,F.hoverStyle={},y,w,{labelFetcher:H,labelDataIndex:P,defaultText:o.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!v){var R=[1/u[0],1/u[1]];d.updateProps(F,{scale:R},e)}t.add(F)}if(c)c.setItemGraphicEl(a,t);else{var i=e.getRegionModel(o.name);r.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:o.name,region:i&&i.option||{}}}var L=t.__regions||(t.__regions=[]);L.push(o),t.highDownSilentOnTouch=!!e.get("selectedMode"),d.setHoverStyle(t,_),h.add(t)}),this._updateController(e,o,t),r(this,e,h,t,i),a(e,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&u.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var o=e.map;this._mapName!==o&&s.each(u.makeGraphic(o,this.uid),function(e){this._backgroundGroup.add(e)},this),this._mapName=o},_updateController:function(e,o,t){function n(){var o={type:"geoRoam",componentType:l};return o[l+"Id"]=e.id,o}var r=e.coordinateSystem,a=this._controller,i=this._controllerHost;i.zoomLimit=e.get("scaleLimit"),i.zoom=r.getZoom(),a.enable(e.get("roam")||!1);var l=e.mainType;a.off("pan").on("pan",function(e){this._mouseDownFlag=!1,m.updateViewOnPan(i,e.dx,e.dy),t.dispatchAction(s.extend(n(),{dx:e.dx,dy:e.dy}))},this),a.off("zoom").on("zoom",function(e){if(this._mouseDownFlag=!1,m.updateViewOnZoom(i,e.scale,e.originX,e.originY),t.dispatchAction(s.extend(n(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var o=this.group.scale;this._regionsGroup.traverse(function(e){"text"===e.type&&e.attr("scale",[1/o[0],1/o[1]])})}},this),a.setPointerChecker(function(o,n,a){return r.getViewRectAfterRoam().contain(n,a)&&!p(o,t,e)})}};var _=i;t.exports=_}); ;/*!node_modules/echarts/lib/chart/map/MapView.js*/ amis.define("node_modules/echarts/lib/chart/map/MapView",function(e,t,a){function i(e){var t=this[m];t&&t.recordVersion===this[p]&&r(t,e)}function r(e,t){var a=e.circle,i=e.labelModel,r=e.hoverLabelModel,o=e.emphasisText,l=e.normalText;t?(a.style.extendFrom(s.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=s.Z2_EMPHASIS_LIFT):(s.setTextStyle(a.style,i,{text:i.get("show")?l:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),null!=a.__mapOriginalZ2&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}var o=e("node_modules/echarts/lib/echarts"),l=e("node_modules/zrender/lib/core/util"),s=e("node_modules/echarts/lib/util/graphic"),n=e("node_modules/echarts/lib/component/helper/MapDraw"),m="__seriesMapHighDown",p="__seriesMapCallKey",d=o.extendChartView({type:"map",render:function(e,t,a,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){var o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new n(a,!0);r.add(o.group),o.draw(e,t,a,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,a)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e){var t=e.originalData,a=this.group;t.each(t.mapDimension("value"),function(o,n){if(!isNaN(o)){var d=t.getItemLayout(n);if(d&&d.point){var h=d.point,u=d.offset,c=new s.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:h[0]+9*u,cy:h[1],r:3},silent:!0,z2:8+(u?0:s.Z2_EMPHASIS_LIFT+1)});if(!u){var _=e.mainSeries.getData(),g=t.getName(n),w=_.indexOfName(g),v=t.getItemModel(n),f=v.getModel("label"),y=v.getModel("emphasis.label"),D=_.getItemGraphicEl(w),b=l.retrieve2(e.getFormattedLabel(w,"normal"),g),x=l.retrieve2(e.getFormattedLabel(w,"emphasis"),b),M=D[m],S=Math.random();if(!M){M=D[m]={};var T=l.curry(i,!0),I=l.curry(i,!1);D.on("mouseover",T).on("mouseout",I).on("emphasis",T).on("normal",I)}D[p]=S,l.extend(M,{recordVersion:S,circle:c,labelModel:f,hoverLabelModel:y,emphasisText:x,normalText:b}),r(M,!1)}a.add(c)}}})}});a.exports=d}); ;/*!node_modules/echarts/lib/action/roamHelper.js*/ @@ -493,7 +497,7 @@ amis.define("node_modules/echarts/lib/action/roamHelper",function(e,o){function ;/*!node_modules/echarts/lib/action/geoRoam.js*/ amis.define("node_modules/echarts/lib/action/geoRoam",function(e){var o=e("node_modules/echarts/lib/echarts"),t=e("node_modules/zrender/lib/core/util"),n=e("node_modules/echarts/lib/action/roamHelper"),r=n.updateCenterAndZoom;o.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,o){var n=e.componentType||"series";o.eachComponent({mainType:n,query:e},function(o){var s=o.coordinateSystem;if("geo"===s.type){var a=r(s,e,o.get("scaleLimit"));o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom),"series"===n&&t.each(o.seriesGroup,function(e){e.setCenter(a.center),e.setZoom(a.zoom)})}})})}); ;/*!node_modules/echarts/lib/coord/View.js*/ -amis.define("node_modules/echarts/lib/coord/View",function(t,r,n){function e(){f.call(this)}function o(t){this.name=t,this.zoomLimit,f.call(this),this._roamTransformable=new e,this._rawTransformable=new e,this._center,this._zoom}function i(t,r,n,e){var o=n.seriesModel,i=o?o.coordinateSystem:null;return i===this?i[t](e):null}var a=t("node_modules/zrender/lib/core/util"),s=t("node_modules/zrender/lib/core/vector"),m=t("node_modules/zrender/lib/core/matrix"),c=t("node_modules/zrender/lib/core/BoundingRect"),f=t("node_modules/zrender/lib/mixin/Transformable"),u=s.applyTransform;a.mixin(e,f),o.prototype={constructor:o,type:"view",dimensions:["x","y"],setBoundingRect:function(t,r,n,e){return this._rect=new c(t,r,n,e),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,r,n,e){this.transformTo(t,r,n,e),this._viewRect=new c(t,r,n,e)},transformTo:function(t,r,n,e){var o=this.getBoundingRect(),i=this._rawTransformable;i.transform=o.calculateTransform(new c(t,r,n,e)),i.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var r=this.zoomLimit;r&&(null!=r.max&&(t=Math.min(r.max,t)),null!=r.min&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),r=t.x+t.width/2,n=t.y+t.height/2;return[r,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,n=this.getDefaultCenter(),e=this.getCenter(),o=this.getZoom();e=s.applyTransform([],e,t),n=s.applyTransform([],n,t),r.origin=e,r.position=[n[0]-e[0],n[1]-e[1]],r.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),m.copy(this.transform||(this.transform=[]),r.transform||m.create()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],m.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,r,n){var e=r?this._rawTransform:this.transform;return n=n||[],e?u(n,t,e):s.copy(n,t)},pointToData:function(t){var r=this.invTransform;return r?u([],t,r):[t[0],t[1]]},convertToPixel:a.curry(i,"dataToPoint"),convertFromPixel:a.curry(i,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},a.mixin(o,f);var h=o;n.exports=h}); +amis.define("node_modules/echarts/lib/coord/View",function(t,r,n){function e(){f.call(this)}function o(t){this.name=t,this.zoomLimit,f.call(this),this._roamTransformable=new e,this._rawTransformable=new e,this._center,this._zoom}function i(t,r,n,e){var o=n.seriesModel,i=o?o.coordinateSystem:null;return i===this?i[t](e):null}var a=t("node_modules/zrender/lib/core/util"),s=t("node_modules/zrender/lib/core/vector"),m=t("node_modules/zrender/lib/core/matrix"),c=t("node_modules/zrender/lib/core/BoundingRect"),f=t("node_modules/zrender/lib/mixin/Transformable"),u=s.applyTransform;a.mixin(e,f),o.prototype={constructor:o,type:"view",dimensions:["x","y"],setBoundingRect:function(t,r,n,e){return this._rect=new c(t,r,n,e),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,r,n,e){this.transformTo(t,r,n,e),this._viewRect=new c(t,r,n,e)},transformTo:function(t,r,n,e){var o=this.getBoundingRect(),i=this._rawTransformable;i.transform=o.calculateTransform(new c(t,r,n,e)),i.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var r=this.zoomLimit;r&&(null!=r.max&&(t=Math.min(r.max,t)),null!=r.min&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),r=t.x+t.width/2,n=t.y+t.height/2;return[r,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,n=this.getDefaultCenter(),e=this.getCenter(),o=this.getZoom();e=s.applyTransform([],e,t),n=s.applyTransform([],n,t),r.origin=e,r.position=[n[0]-e[0],n[1]-e[1]],r.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),m.copy(this.transform||(this.transform=[]),r.transform||m.create()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],m.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,r=this._rawTransformable;return{roamTransform:t?a.slice(t):m.create(),rawScale:a.slice(r.scale),rawPosition:a.slice(r.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,r,n){var e=r?this._rawTransform:this.transform;return n=n||[],e?u(n,t,e):s.copy(n,t)},pointToData:function(t){var r=this.invTransform;return r?u([],t,r):[t[0],t[1]]},convertToPixel:a.curry(i,"dataToPoint"),convertFromPixel:a.curry(i,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},a.mixin(o,f);var h=o;n.exports=h}); ;/*!node_modules/echarts/lib/coord/geo/Geo.js*/ amis.define("node_modules/echarts/lib/coord/geo/Geo",function(o,e,t){function n(o,e,t,n){s.call(this,o),this.map=e;var r=c.load(e,t);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==n?!0:n,this.regions=r.regions,this._rect=r.boundingRect}function r(o,e,t,n){var r=t.geoModel,i=t.seriesModel,a=r?r.coordinateSystem:i?i.coordinateSystem||(i.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[o](n):null}var i=o("node_modules/zrender/lib/core/util"),a=o("node_modules/zrender/lib/core/BoundingRect"),s=o("node_modules/echarts/lib/coord/View"),c=o("node_modules/echarts/lib/coord/geo/geoSourceManager");n.prototype={constructor:n,type:"geo",dimensions:["lng","lat"],containCoord:function(o){for(var e=this.regions,t=0;te&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;i>e;e++){var r=n[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;i>e;e++){var r=n[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,n=this.hostTree,i=n.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||this.isExpand!==!1)||(e=this.getLeavesModel()),i.getModel(t,(r||e||n.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},i.prototype={constructor:i,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;i>n;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();i>n;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},i.createTree=function(t,e,n,o){function l(t,e){var n=t.value;g=Math.max(g,a.isArray(n)?n.length:1),f.push(t);var i=new u(t.name,c);e?r(i,e):c.root=i,c._nodes.push(i);var o=t.children;if(o)for(var s=0;se&&(e=r.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;r>e;e++){var a=n[e].getNodeById(t);if(a)return a}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;r>e;e++){var a=n[e].contains(t);if(a)return a}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r?n.getModel(t,r.getModel(t)):n.getModel(t)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},r.prototype={constructor:r,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;r>n;n++)e[n].dataIndex=-1;for(var n=0,r=t.count();r>n;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},r.createTree=function(t,e,n,o){function l(t,e){var n=t.value;g=Math.max(g,i.isArray(n)?n.length:1),f.push(t);var r=new u(t.name,c);e?a(r,e):c.root=r,c._nodes.push(r);var o=t.children;if(o)for(var s=0;sl&&(l=e.depth)});var d=e.expandAndCollapse,s=d&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return i.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=s}),i.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){for(var t=this.getData().tree,o=t.root.children[0],a=t.getNodeByDataIndex(e),n=a.getValue(),r=a.name;a&&a!==o;)r=a.parentNode.name+"."+r,a=a.parentNode;return i(r+(isNaN(n)||null==n?"":" : "+n))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});o.exports=l}); +amis.define("node_modules/echarts/lib/chart/tree/TreeSeries",function(e,t,o){var a=e("node_modules/echarts/lib/model/Series"),n=e("node_modules/echarts/lib/data/Tree"),r=e("node_modules/echarts/lib/util/format"),i=r.encodeHTML,l=e("node_modules/echarts/lib/model/Model"),d=a.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){function t(e){e.wrapMethod("getItemModel",function(e,t){var o=i.getNodeByDataIndex(t);return o.children.length&&o.isExpand||(e.parentModel=r),e})}var o={name:e.name,children:e.data},a=e.leaves||{},r=new l(a,this,this.ecModel),i=n.createTree(o,this,{},t),d=0;i.eachNode("preorder",function(e){e.depth>d&&(d=e.depth)});var s=e.expandAndCollapse,c=s&&e.initialTreeDepth>=0?e.initialTreeDepth:d;return i.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=c}),i.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){for(var t=this.getData().tree,o=t.root.children[0],a=t.getNodeByDataIndex(e),n=a.getValue(),r=a.name;a&&a!==o;)r=a.parentNode.name+"."+r,a=a.parentNode;return i(r+(isNaN(n)||null==n?"":" : "+n))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});o.exports=d}); ;/*!node_modules/echarts/lib/chart/tree/layoutHelper.js*/ amis.define("node_modules/echarts/lib/chart/tree/layoutHelper",function(e,r){function i(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r,i,o=[e];r=o.pop();)if(i=r.children,r.isExpand&&i.length)for(var d=i.length,n=d-1;n>=0;n--){var t=i[n];t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:n,thread:null},o.push(t)}}function o(e,r){var i=e.isExpand?e.children:[],o=e.parentNode.children,d=e.hierNode.i?o[e.hierNode.i-1]:null;if(i.length){a(e);var n=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;d?(e.hierNode.prelim=d.hierNode.prelim+r(e,d),e.hierNode.modifier=e.hierNode.prelim-n):e.hierNode.prelim=n}else d&&(e.hierNode.prelim=d.hierNode.prelim+r(e,d));e.parentNode.hierNode.defaultAncestor=N(e,d,e.parentNode.hierNode.defaultAncestor||o[0],r)}function d(e){var r=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:r},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function n(e){return arguments.length?e:m}function t(e,r){var i={};return e-=Math.PI/2,i.x=r*Math.cos(e),i.y=r*Math.sin(e),i}function h(e,r){return p.getLayoutRect(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function a(e){for(var r=e.children,i=r.length,o=0,d=0;--i>=0;){var n=r[i];n.hierNode.prelim+=o,n.hierNode.modifier+=o,d+=n.hierNode.change,o+=n.hierNode.shift+d}}function N(e,r,i,o){if(r){for(var d=e,n=e,t=n.parentNode.children[0],h=r,a=d.hierNode.modifier,N=n.hierNode.modifier,m=t.hierNode.modifier,p=h.hierNode.modifier;h=l(h),n=f(n),h&&n;){d=l(d),t=f(t),d.hierNode.ancestor=e;var s=h.hierNode.prelim+p-n.hierNode.prelim-N+o(h,n);s>0&&(u(c(h,e,i),e,s),N+=s,a+=s),p+=h.hierNode.modifier,N+=n.hierNode.modifier,a+=d.hierNode.modifier,m+=t.hierNode.modifier}h&&!l(d)&&(d.hierNode.thread=h,d.hierNode.modifier+=p-a),n&&!f(t)&&(t.hierNode.thread=n,t.hierNode.modifier+=N-m,i=e)}return i}function l(e){var r=e.children;return r.length&&e.isExpand?r[r.length-1]:e.hierNode.thread}function f(e){var r=e.children;return r.length&&e.isExpand?r[0]:e.hierNode.thread}function c(e,r,i){return e.hierNode.ancestor.parentNode===r.parentNode?e.hierNode.ancestor:i}function u(e,r,i){var o=i/(r.hierNode.i-e.hierNode.i);r.hierNode.change-=o,r.hierNode.shift+=i,r.hierNode.modifier+=i,r.hierNode.prelim+=i,e.hierNode.change+=o}function m(e,r){return e.parentNode===r.parentNode?1:2}var p=e("node_modules/echarts/lib/util/layout");r.init=i,r.firstWalk=o,r.secondWalk=d,r.separation=n,r.radialCoordinate=t,r.getViewRect=h}); ;/*!node_modules/echarts/lib/chart/tree/TreeView.js*/ -amis.define("node_modules/echarts/lib/chart/tree/TreeView",function(e,t,o){function a(e,t){var o=e.getItemLayout(t);return o&&!isNaN(o.x)&&!isNaN(o.y)&&"none"!==e.getItemVisual(t,"symbol")}function i(e,t,o){return o.itemModel=t,o.itemStyle=t.getModel("itemStyle").getItemStyle(),o.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),o.lineStyle=t.getModel("lineStyle").getLineStyle(),o.labelModel=t.getModel("label"),o.hoverLabelModel=t.getModel("emphasis.label"),o.symbolInnerColor=e.isExpand===!1&&0!==e.children.length?o.itemStyle.fill:"#fff",o}function r(e,t,o,a,r,n){var u=!o,p=e.tree.getNodeByDataIndex(t),h=p.getModel(),n=i(p,h,n),y=e.tree.root,m=p.parentNode===y?p:p.parentNode||p,g=e.getItemGraphicEl(m.dataIndex),_=m.getLayout(),x=g?{x:g.position[0],y:g.position[1],rawX:g.__radialOldRawX,rawY:g.__radialOldRawY}:_,f=p.getLayout();u?(o=new c(e,t,n),o.attr("position",[x.x,x.y])):o.updateData(e,t,n),o.__radialOldRawX=o.__radialRawX,o.__radialOldRawY=o.__radialRawY,o.__radialRawX=f.rawX,o.__radialRawY=f.rawY,a.add(o),e.setItemGraphicEl(t,o),s.updateProps(o,{position:[f.x,f.y]},r);var v=o.getSymbolPath();if("radial"===n.layout){var b,w,I=y.children[0],S=I.getLayout(),N=I.children.length;if(f.x===S.x&&p.isExpand===!0){var L={};L.x=(I.children[0].getLayout().x+I.children[N-1].getLayout().x)/2,L.y=(I.children[0].getLayout().y+I.children[N-1].getLayout().y)/2,b=Math.atan2(L.y-S.y,L.x-S.x),0>b&&(b=2*Math.PI+b),w=L.xb&&(b=2*Math.PI+b),0===p.children.length||0!==p.children.length&&p.isExpand===!1?(w=f.xS.x,w||(b-=Math.PI));var R=w?"left":"right",M=n.labelModel.get("rotate"),C=M*(Math.PI/180);v.setStyle({textPosition:n.labelModel.get("position")||R,textRotation:null==M?-b:C,textOrigin:"center",verticalAlign:"middle"})}if(p.parentNode&&p.parentNode!==y){var P=o.__edge;P||(P=o.__edge=new s.BezierCurve({shape:l(n,x,x),style:d.defaults({opacity:0,strokeNoScale:!0},n.lineStyle)})),s.updateProps(P,{shape:l(n,_,f),style:{opacity:1}},r),a.add(P)}}function n(e,t,o,a,r,n){for(var d,c=e.tree.getNodeByDataIndex(t),u=e.tree.root,p=c.getModel(),n=i(c,p,n),h=c.parentNode===u?c:c.parentNode||c;d=h.getLayout(),null==d;)h=h.parentNode===u?h:h.parentNode||h;s.updateProps(o,{position:[d.x+1,d.y+1]},r,function(){a.remove(o),e.setItemGraphicEl(t,null)}),o.fadeOut(null,{keepLabel:!0});var y=o.__edge;y&&s.updateProps(y,{shape:l(n,d,d),style:{opacity:0}},r,function(){a.remove(y)})}function l(e,t,o){var a,i,r,n,l,d,s,c,u=e.orient;if("radial"===e.layout){l=t.rawX,s=t.rawY,d=o.rawX,c=o.rawY;var h=p(l,s),y=p(l,s+(c-s)*e.curvature),m=p(d,c+(s-c)*e.curvature),g=p(d,c);return{x1:h.x,y1:h.y,x2:g.x,y2:g.y,cpx1:y.x,cpy1:y.y,cpx2:m.x,cpy2:m.y}}return l=t.x,s=t.y,d=o.x,c=o.y,("LR"===u||"RL"===u)&&(a=l+(d-l)*e.curvature,i=s,r=d+(l-d)*e.curvature,n=c),("TB"===u||"BT"===u)&&(a=l,i=s+(c-s)*e.curvature,r=d,n=c+(s-c)*e.curvature),{x1:l,y1:s,x2:d,y2:c,cpx1:a,cpy1:i,cpx2:r,cpy2:n}}var d=e("node_modules/zrender/lib/core/util"),s=e("node_modules/echarts/lib/util/graphic"),c=e("node_modules/echarts/lib/chart/helper/Symbol"),u=e("node_modules/echarts/lib/chart/tree/layoutHelper"),p=u.radialCoordinate,h=e("node_modules/echarts/lib/echarts"),y=e("node_modules/zrender/lib/core/bbox"),m=e("node_modules/echarts/lib/coord/View"),g=e("node_modules/echarts/lib/component/helper/roamHelper"),_=e("node_modules/echarts/lib/component/helper/RoamController"),x=e("node_modules/echarts/lib/component/helper/cursorHelper"),f=x.onIrrelevantElement,v=h.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new s.Group,this._controller=new _(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,o){var i=e.getData(),l=e.layoutInfo,d=this._mainGroup,s=e.get("layout");"radial"===s?d.attr("position",[l.x+l.width/2,l.y+l.height/2]):d.attr("position",[l.x,l.y]),this._updateViewCoordSys(e,l,s),this._updateController(e,t,o);var c=this._data,u={expandAndCollapse:e.get("expandAndCollapse"),layout:s,orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};i.diff(c).add(function(t){a(i,t)&&r(i,t,null,d,e,u)}).update(function(t,o){var l=c.getItemGraphicEl(o);return a(i,t)?void r(i,t,l,d,e,u):void(l&&n(c,o,l,d,e,u))}).remove(function(t){var o=c.getItemGraphicEl(t);o&&n(c,t,o,d,e,u)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),u.expandAndCollapse===!0&&i.eachItemGraphicEl(function(t,a){t.off("click").on("click",function(){o.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:a})})}),this._data=i},_updateViewCoordSys:function(e){var t=e.getData(),o=[];t.each(function(e){var a=t.getItemLayout(e);!a||isNaN(a.x)||isNaN(a.y)||o.push([+a.x,+a.y])});var a=[],i=[];y.fromPoints(o,a,i);var r=this._min,n=this._max;i[0]-a[0]===0&&(a[0]=r?r[0]:a[0]-1,i[0]=n?n[0]:i[0]+1),i[1]-a[1]===0&&(a[1]=r?r[1]:a[1]-1,i[1]=n?n[1]:i[1]+1);var l=e.coordinateSystem=new m;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(a[0],a[1],i[0]-a[0],i[1]-a[1]),l.setCenter(e.get("center")),l.setZoom(e.get("zoom")),this.group.attr({position:l.position,scale:l.scale}),this._viewCoordSys=l,this._min=a,this._max=i},_updateController:function(e,t,o){var a=this._controller,i=this._controllerHost,r=this.group;a.setPointerChecker(function(t,a,i){var n=r.getBoundingRect();return n.applyTransform(r.transform),n.contain(a,i)&&!f(t,o,e)}),a.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(t){g.updateViewOnPan(i,t.dx,t.dy),o.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})},this).on("zoom",function(t){g.updateViewOnZoom(i,t.scale,t.originX,t.originY),o.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)},this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),o=this._getNodeGlobalScale(e),a=[o,o];t.eachItemGraphicEl(function(e){e.attr("scale",a)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var o=this._nodeScaleRatio,a=t.scale,i=a&&a[0]||1,r=t.getZoom(),n=(r-1)*o+1;return n/i},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});o.exports=v}); +amis.define("node_modules/echarts/lib/chart/tree/TreeView",function(e,t,o){function a(e,t){var o=e.getItemLayout(t);return o&&!isNaN(o.x)&&!isNaN(o.y)&&"none"!==e.getItemVisual(t,"symbol")}function i(e,t,o){return o.itemModel=t,o.itemStyle=t.getModel("itemStyle").getItemStyle(),o.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),o.lineStyle=t.getModel("lineStyle").getLineStyle(),o.labelModel=t.getModel("label"),o.hoverLabelModel=t.getModel("emphasis.label"),o.symbolInnerColor=e.isExpand===!1&&0!==e.children.length?o.itemStyle.fill:"#fff",o}function n(e,t,o,a,n,l){var d=!o,s=e.tree.getNodeByDataIndex(t),u=s.getModel(),l=i(s,u,l),h=e.tree.root,y=s.parentNode===h?s:s.parentNode||s,g=e.getItemGraphicEl(y.dataIndex),m=y.getLayout(),_=g?{x:g.position[0],y:g.position[1],rawX:g.__radialOldRawX,rawY:g.__radialOldRawY}:m,x=s.getLayout();d?(o=new p(e,t,l),o.attr("position",[_.x,_.y])):o.updateData(e,t,l),o.__radialOldRawX=o.__radialRawX,o.__radialOldRawY=o.__radialRawY,o.__radialRawX=x.rawX,o.__radialRawY=x.rawY,a.add(o),e.setItemGraphicEl(t,o),c.updateProps(o,{position:[x.x,x.y]},n);var f=o.getSymbolPath();if("radial"===l.layout){var v,S,b=h.children[0],P=b.getLayout(),w=b.children.length;if(x.x===P.x&&s.isExpand===!0){var I={};I.x=(b.children[0].getLayout().x+b.children[w-1].getLayout().x)/2,I.y=(b.children[0].getLayout().y+b.children[w-1].getLayout().y)/2,v=Math.atan2(I.y-P.y,I.x-P.x),0>v&&(v=2*Math.PI+v),S=I.xv&&(v=2*Math.PI+v),0===s.children.length||0!==s.children.length&&s.isExpand===!1?(S=x.xP.x,S||(v-=Math.PI));var N=S?"left":"right",L=l.labelModel.get("rotate"),R=L*(Math.PI/180);f.setStyle({textPosition:l.labelModel.get("position")||N,textRotation:null==L?-v:R,textOrigin:"center",verticalAlign:"middle"})}r(n,s,h,o,_,m,x,a,l)}function r(e,t,o,a,i,n,r,l,p){var u=p.edgeShape,h=a.__edge;if("curve"===u)t.parentNode&&t.parentNode!==o&&(h||(h=a.__edge=new c.BezierCurve({shape:d(p,i,i),style:s.defaults({opacity:0,strokeNoScale:!0},p.lineStyle)})),c.updateProps(h,{shape:d(p,n,r),style:{opacity:1}},e));else if("polyline"===u&&"orthogonal"===p.layout&&t!==o&&t.children&&0!==t.children.length&&t.isExpand===!0){for(var y=t.children,g=[],m=0;mu;u++){var h=o[u];e.moveTo(h[0],h[1]),p[d]=h[d],e.lineTo(p[0],p[1])}}}),I=y.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new c.Group,this._controller=new x(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,o){var i=e.getData(),r=e.layoutInfo,d=this._mainGroup,s=e.get("layout");"radial"===s?d.attr("position",[r.x+r.width/2,r.y+r.height/2]):d.attr("position",[r.x,r.y]),this._updateViewCoordSys(e,r,s),this._updateController(e,t,o);var c=this._data,p={expandAndCollapse:e.get("expandAndCollapse"),layout:s,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};i.diff(c).add(function(t){a(i,t)&&n(i,t,null,d,e,p)}).update(function(t,o){var r=c.getItemGraphicEl(o);return a(i,t)?void n(i,t,r,d,e,p):void(r&&l(c,o,r,d,e,p))}).remove(function(t){var o=c.getItemGraphicEl(t);o&&l(c,t,o,d,e,p)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),p.expandAndCollapse===!0&&i.eachItemGraphicEl(function(t,a){t.off("click").on("click",function(){o.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:a})})}),this._data=i},_updateViewCoordSys:function(e){var t=e.getData(),o=[];t.each(function(e){var a=t.getItemLayout(e);!a||isNaN(a.x)||isNaN(a.y)||o.push([+a.x,+a.y])});var a=[],i=[];g.fromPoints(o,a,i);var n=this._min,r=this._max;i[0]-a[0]===0&&(a[0]=n?n[0]:a[0]-1,i[0]=r?r[0]:i[0]+1),i[1]-a[1]===0&&(a[1]=n?n[1]:a[1]-1,i[1]=r?r[1]:i[1]+1);var l=e.coordinateSystem=new m;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(a[0],a[1],i[0]-a[0],i[1]-a[1]),l.setCenter(e.get("center")),l.setZoom(e.get("zoom")),this.group.attr({position:l.position,scale:l.scale}),this._viewCoordSys=l,this._min=a,this._max=i},_updateController:function(e,t,o){var a=this._controller,i=this._controllerHost,n=this.group;a.setPointerChecker(function(t,a,i){var r=n.getBoundingRect();return r.applyTransform(n.transform),r.contain(a,i)&&!v(t,o,e)}),a.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(t){_.updateViewOnPan(i,t.dx,t.dy),o.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})},this).on("zoom",function(t){_.updateViewOnZoom(i,t.scale,t.originX,t.originY),o.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)},this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),o=this._getNodeGlobalScale(e),a=[o,o];t.eachItemGraphicEl(function(e){e.attr("scale",a)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var o=this._nodeScaleRatio,a=t.scale,i=a&&a[0]||1,n=t.getZoom(),r=(n-1)*o+1;return r/i},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});o.exports=I}); ;/*!node_modules/echarts/lib/chart/tree/treeAction.js*/ amis.define("node_modules/echarts/lib/chart/tree/treeAction",function(e){var t=e("node_modules/echarts/lib/echarts"),n=e("node_modules/echarts/lib/action/roamHelper"),o=n.updateCenterAndZoom;t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=e.dataIndex,o=t.getData().tree,a=o.getNodeByDataIndex(n);a.isExpand=!a.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=t.coordinateSystem,a=o(n,e);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})}); ;/*!node_modules/echarts/lib/chart/tree/traversalHelper.js*/ @@ -529,13 +533,13 @@ amis.define("node_modules/echarts/lib/chart/tree",function(e){var r=e("node_modu ;/*!node_modules/echarts/lib/chart/helper/treeHelper.js*/ amis.define("node_modules/echarts/lib/chart/helper/treeHelper",function(e,r){function t(e,r,t){if(e&&d.indexOf(r,e.type)>=0){var n=t.getData().tree.root,o=e.targetNode;if("string"==typeof o&&(o=n.getNodeById(o)),o&&n.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=n.getNodeById(a)))return{node:o}}}function n(e){for(var r=[];e;)e=e.parentNode,e&&r.push(e);return r.reverse()}function o(e,r){var t=n(e);return d.indexOf(t,r)>=0}function a(e,r){for(var t=[];e;){var n=e.dataIndex;t.push({name:e.name,dataIndex:n,value:r.getRawValue(n)}),e=e.parentNode}return t.reverse(),t}var d=e("node_modules/zrender/lib/core/util");r.retrieveTargetInfo=t,r.getPathToRoot=n,r.aboveViewRoot=o,r.wrapTreePathInfo=a}); ;/*!node_modules/echarts/lib/chart/treemap/TreemapSeries.js*/ -amis.define("node_modules/echarts/lib/chart/treemap/TreemapSeries",function(e,t,o){function i(e){var t=0;r.each(e.children,function(e){i(e);var o=e.value;r.isArray(o)&&(o=o[0]),t+=o});var o=e.value;r.isArray(o)&&(o=o[0]),(null==o||isNaN(o))&&(o=t),0>o&&(o=0),r.isArray(e.value)?e.value[0]=o:e.value=o}function a(e,t){var o=t.get("color");if(o){e=e||[];var i;if(r.each(e,function(e){var t=new s(e),o=t.get("color");(t.get("itemStyle.color")||o&&"none"!==o)&&(i=!0)}),!i){var a=e[0]||(e[0]={});a.color=o.slice()}return e}}var r=e("node_modules/zrender/lib/core/util"),l=e("node_modules/echarts/lib/model/Series"),n=e("node_modules/echarts/lib/data/Tree"),s=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/util/format"),u=d.encodeHTML,h=d.addCommas,c=e("node_modules/echarts/lib/chart/helper/treeHelper"),p=c.wrapTreePathInfo,f=l.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var o={name:e.name,children:e.data};i(o);var r=e.levels||[];r=e.levels=a(r,t);var l={};return l.levels=r,n.createTree(o,this,l).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),o=this.getRawValue(e),i=h(r.isArray(o)?o[0]:o),a=t.getName(e);return u(a+": "+i)},getDataParams:function(e){var t=l.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=p(o,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var o=t.get(e);return null==o&&t.set(e,o=this._idIndexMapCount++),o},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)}});o.exports=f}); +amis.define("node_modules/echarts/lib/chart/treemap/TreemapSeries",function(e,t,o){function i(e){var t=0;r.each(e.children,function(e){i(e);var o=e.value;r.isArray(o)&&(o=o[0]),t+=o});var o=e.value;r.isArray(o)&&(o=o[0]),(null==o||isNaN(o))&&(o=t),0>o&&(o=0),r.isArray(e.value)?e.value[0]=o:e.value=o}function a(e,t){var o=t.get("color");if(o){e=e||[];var i;if(r.each(e,function(e){var t=new s(e),o=t.get("color");(t.get("itemStyle.color")||o&&"none"!==o)&&(i=!0)}),!i){var a=e[0]||(e[0]={});a.color=o.slice()}return e}}var r=e("node_modules/zrender/lib/core/util"),n=e("node_modules/echarts/lib/model/Series"),l=e("node_modules/echarts/lib/data/Tree"),s=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/util/format"),u=d.encodeHTML,h=d.addCommas,c=e("node_modules/echarts/lib/chart/helper/treeHelper"),p=c.wrapTreePathInfo,f=n.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){function o(e){e.wrapMethod("getItemModel",function(e,t){var o=h.getNodeByDataIndex(t),i=u[o.depth];return i&&(e.parentModel=i),e})}var n={name:e.name,children:e.data};i(n);var d=e.levels||[];d=e.levels=a(d,t);var u=r.map(d||[],function(e){return new s(e,this,t)},this),h=l.createTree(n,this,null,o);return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),o=this.getRawValue(e),i=h(r.isArray(o)?o[0]:o),a=t.getName(e);return u(a+": "+i)},getDataParams:function(e){var t=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=p(o,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var o=t.get(e);return null==o&&t.set(e,o=this._idIndexMapCount++),o},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)}});o.exports=f}); ;/*!node_modules/echarts/lib/chart/treemap/Breadcrumb.js*/ amis.define("node_modules/echarts/lib/chart/treemap/Breadcrumb",function(e,t,o){function r(e){this.group=new a.Group,e.add(this.group)}function n(e,t,o,r,n,i){var a=[[n?e:e-u,t],[e+o,t],[e+o,t+r],[n?e:e-u,t+r]];return!i&&a.splice(2,0,[e+o+u,t+r/2]),!n&&a.push([e,t+r/2]),a}function i(e,t,o){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:o&&o.dataIndex,name:o&&o.name},treePathInfo:o&&h(o,t)}}var a=e("node_modules/echarts/lib/util/graphic"),d=e("node_modules/echarts/lib/util/layout"),l=e("node_modules/zrender/lib/core/util"),p=e("node_modules/echarts/lib/chart/helper/treeHelper"),h=p.wrapTreePathInfo,s=8,m=8,u=5;r.prototype={constructor:r,render:function(e,t,o,r){var n=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),n.get("show")&&o){var a=n.getModel("itemStyle"),l=a.getModel("textStyle"),p={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,p,l),this._renderContent(e,p,a,l,r),d.positionElement(i,p.pos,p.box)}},_prepare:function(e,t,o){for(var r=e;r;r=r.parentNode){var n=r.getModel().get("name"),i=o.getTextRect(n),a=Math.max(i.width+2*s,t.emptyItemWidth);t.totalWidth+=a+m,t.renderList.push({node:r,text:n,width:a})}},_renderContent:function(e,t,o,r,p){for(var h=0,s=t.emptyItemWidth,u=e.get("breadcrumb.height"),g=d.getAvailableSize(t.pos,t.box),c=t.totalWidth,b=t.renderList,x=b.length-1;x>=0;x--){var f=b[x],v=f.node,y=f.width,I=f.text;c>g.width&&(c-=y-s,y=s,I=null);var w=new a.Polygon({shape:{points:n(h,0,y,u,x===b.length-1,0===x)},style:l.defaults(o.getItemStyle(),{lineJoin:"bevel",text:I,textFill:r.getTextColor(),textFont:r.getFont()}),z:10,onclick:l.curry(p,v)});this.group.add(w),i(w,e,v),h+=y+m}},remove:function(){this.group.removeAll()}};var g=r;o.exports=g}); ;/*!node_modules/echarts/lib/util/animation.js*/ amis.define("node_modules/echarts/lib/util/animation",function(e,n){function t(){var e,n=[],t={};return{add:function(e,r,a,o,u){return i.isString(o)&&(u=o,o=0),t[e.id]?!1:(t[e.id]=1,n.push({el:e,target:r,time:a,delay:o,easing:u}),!0)},done:function(n){return e=n,this},start:function(){function i(){r--,r||(n.length=0,t={},e&&e())}for(var r=n.length,a=0,o=n.length;o>a;a++){var u=n[a];u.el.animateTo(u.target,u.time,u.delay,u.easing,i)}return this}}}var i=e("node_modules/zrender/lib/core/util");n.createWrap=t}); ;/*!node_modules/echarts/lib/chart/treemap/TreemapView.js*/ -amis.define("node_modules/echarts/lib/chart/treemap/TreemapView",function(e,t,o){function i(){return{nodeGroup:[],background:[],content:[]}}function r(e,t,o,i,r,a,l,h,u,c){function f(t,o,i){o.dataIndex=l.dataIndex,o.seriesIndex=e.seriesIndex,o.setShape({x:0,y:0,width:k,height:S});var r=l.getVisual("borderColor",!0),n=B.get("borderColor");m(o,function(){var e=D(Z);e.fill=r;var t=G(B);if(t.fill=n,i){var a=k-2*W;g(e,t,r,a,z,{x:W,y:0,width:a,height:z})}else e.text=t.text=null;o.setStyle(e),d.setHoverStyle(o,t)}),t.add(o)}function p(t,o){o.dataIndex=l.dataIndex,o.seriesIndex=e.seriesIndex;var i=Math.max(k-2*W,0),r=Math.max(S-2*W,0);o.culling=!0,o.setShape({x:W,y:W,width:i,height:r});var n=l.getVisual("color",!0);m(o,function(){var e=D(Z);e.fill=n;var t=G(B);g(e,t,n,i,r),o.setStyle(e),d.setHoverStyle(o,t)}),t.add(o)}function m(e,t){L?!e.invisible&&a.push(e):(t(),e.__tmWillVisible||(e.invisible=!1))}function g(t,o,i,r,n,a){var h=l.getModel(),u=s.retrieve(e.getFormattedLabel(l.dataIndex,"normal",null,null,a?"upperLabel":"label"),h.get("name"));if(!a&&I.isLeafRoot){var c=e.get("drillDownIcon",!0);u=c?c+" "+u:u}var f=h.getModel(a?N:x),p=h.getModel(a?R:T),m=f.getShallow("show");d.setLabelStyle(t,o,f,p,{defaultText:m?u:null,autoColor:i,isRectText:!0}),a&&(t.textRect=s.clone(a)),t.truncate=m&&f.get("ellipsis")?{outerWidth:r,outerHeight:n,minChar:2}:null}function _(e,i,a,s){var d=null!=V&&o[e][V],l=r[e];return d?(o[e][V]=null,b(l,d,e)):L||(d=new i({z:n(a,s)}),d.__tmDepth=a,d.__tmStorageName=e,w(l,d,e)),t[e][H]=d}function b(e,t,o){var i=e[H]={};i.old="nodeGroup"===o?t.position.slice():s.extend({},t.shape)}function w(e,t,o){var n=e[H]={},a=l.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,d=0,h=r.background[a.getRawIndex()];!i&&h&&h.old&&(s=h.old.width,d=h.old.height),n.old="nodeGroup"===o?[0,d]:{x:s,y:d,width:0,height:0}}n.fadein="nodeGroup"!==o}if(l){var I=l.getLayout();if(I&&I.isInView){var k=I.width,S=I.height,W=I.borderWidth,L=I.invisible,H=l.getRawIndex(),V=h&&h.getRawIndex(),A=l.viewChildren,z=I.upperHeight,F=A&&A.length,Z=l.getModel("itemStyle"),B=l.getModel("emphasis.itemStyle"),E=_("nodeGroup",v);if(E){if(u.add(E),E.attr("position",[I.x||0,I.y||0]),E.__tmNodeWidth=k,E.__tmNodeHeight=S,I.isAboveViewRoot)return E;var X=_("background",y,c,M);if(X&&f(E,X,F&&I.upperHeight),!F){var Y=_("content",y,c,C);Y&&p(E,Y)}return E}}}}function n(e,t){var o=e*I+t;return(o-1)/o}var a=e("node_modules/echarts/lib/echarts"),s=e("node_modules/zrender/lib/core/util"),d=e("node_modules/echarts/lib/util/graphic"),l=e("node_modules/echarts/lib/data/DataDiffer"),h=e("node_modules/echarts/lib/chart/helper/treeHelper"),u=e("node_modules/echarts/lib/chart/treemap/Breadcrumb"),c=e("node_modules/echarts/lib/component/helper/RoamController"),f=e("node_modules/zrender/lib/core/BoundingRect"),p=e("node_modules/zrender/lib/core/matrix"),m=e("node_modules/echarts/lib/util/animation"),g=e("node_modules/echarts/lib/model/mixin/makeStyleMapper"),_=s.bind,v=d.Group,y=d.Rect,b=s.each,w=3,x=["label"],T=["emphasis","label"],N=["upperLabel"],R=["emphasis","upperLabel"],I=10,M=1,C=2,G=g([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),D=function(e){var t=G(e);return t.stroke=t.fill=t.lineWidth=null,t},k=a.extendChartView({type:"treemap",init:function(){this._containerGroup,this._storage=i(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,o,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(s.indexOf(r,e)<0)){this.seriesModel=e,this.api=o,this.ecModel=t;var n=["treemapZoomToNode","treemapRootToNode"],a=h.retrieveTargetInfo(i,n,e),d=i&&i.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,f="treemapRootToNode"===d&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(l),m=this._doRender(p,e,f);u||d&&"treemapZoomToNode"!==d&&"treemapRootToNode"!==d?m.renderFinally():this._doAnimation(p,m,e,f),this._resetController(o),this._renderBreadcrumb(e,o,a)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new v,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,o){function n(e,t,o,i,r){function a(e){return e.getId()}function d(a,s){var d=null!=a?e[a]:null,l=null!=s?t[s]:null,h=g(d,l,o,r);h&&n(d&&d.viewChildren||[],l&&l.viewChildren||[],h,i,r+1)}i?(t=e,b(e,function(e,t){!e.isRemoved()&&d(t,t)})):new l(t,e,a,a).add(d).update(d).remove(s.curry(d,null)).execute()}function a(e){var t=i();return e&&b(e,function(e,o){var i=t[o];b(e,function(e){e&&(i.push(e),e.__tmWillDelete=1)})}),t}function d(){b(_,function(e){b(e,function(e){e.parent&&e.parent.remove(e)})}),b(m,function(e){e.invisible=!0,e.dirty()})}var h=t.getData().tree,u=this._oldTree,c=i(),f=i(),p=this._storage,m=[],g=s.curry(r,t,f,p,o,c,m);n(h.root?[h.root]:[],u&&u.root?[u.root]:[],e,h===u||!u,0);var _=a(p);return this._oldTree=h,this._storage=f,{lastsForAnimation:c,willDeleteEls:_,renderFinally:d}},_doAnimation:function(e,t,o,i){if(o.get("animation")){var r=o.get("animationDurationUpdate"),n=o.get("animationEasing"),a=m.createWrap();b(t.willDeleteEls,function(e,t){b(e,function(e){if(!e.invisible){var o,s=e.parent;if(i&&"drillDown"===i.direction)o=s===i.rootNodeGroup?{shape:{x:0,y:0,width:s.__tmNodeWidth,height:s.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var d=0,l=0;s.__tmWillDelete||(d=s.__tmNodeWidth/2,l=s.__tmNodeHeight/2),o="nodeGroup"===t?{position:[d,l],style:{opacity:0}}:{shape:{x:d,y:l,width:0,height:0},style:{opacity:0}}}o&&a.add(e,o,r,n)}})}),b(this._storage,function(e,o){b(e,function(e,i){var d=t.lastsForAnimation[o][i],l={};d&&("nodeGroup"===o?d.old&&(l.position=e.position.slice(),e.attr("position",d.old)):(d.old&&(l.shape=s.extend({},e.shape),e.setShape(d.old)),d.fadein?(e.setStyle("opacity",0),l.style={opacity:1}):1!==e.style.opacity&&(l.style={opacity:1})),a.add(e,l,r,n))})},this),this._state="animating",a.done(_(function(){this._state="ready",t.renderFinally()},this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new c(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",_(this._onPan,this)),t.on("zoom",_(this._onZoom,this)));var o=new f(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,i){return o.contain(t,i)})},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>w||Math.abs(e.dy)>w)){var t=this.seriesModel.getData().tree.root;if(!t)return;var o=t.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+e.dx,y:o.y+e.dy,width:o.width,height:o.height}})}},_onZoom:function(e){var t=e.originX,o=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var n=new f(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,o-=a.y;var s=p.create();p.translate(s,s,[-t,-o]),p.scale(s,s,[e.scale,e.scale]),p.translate(s,s,[t,o]),n.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x,y:n.y,width:n.width,height:n.height}})}},_initEvents:function(e){e.on("click",function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var o=this.findTarget(e.offsetX,e.offsetY);if(o){var i=o.node;if(i.getLayout().isLeafRoot)this._rootToNode(o);else if("zoomToNode"===t)this._zoomToNode(o);else if("link"===t){var r=i.hostTree.data.getItemModel(i.dataIndex),n=r.get("link",!0),a=r.get("target",!0)||"blank";n&&window.open(n,a)}}}}},this)},_renderBreadcrumb:function(e,t,o){function i(t){"animating"!==this._state&&(h.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}o||(o=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),o||(o={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new u(this.group))).render(e,t,o.node,_(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=i(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var o,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var n=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=n[0]&&n[0]<=a.x+a.width&&a.y<=n[1]&&n[1]<=a.y+a.height))return!1;o={node:i,offsetX:n[0],offsetY:n[1]}}},this),o}});o.exports=k}); +amis.define("node_modules/echarts/lib/chart/treemap/TreemapView",function(e,t,i){function o(){return{nodeGroup:[],background:[],content:[]}}function r(e,t,i,o,r,a,l,h,u,c){function p(t,i,o){if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,i.setShape({x:0,y:0,width:A,height:S}),L)g(i);else{i.invisible=!1;var r=l.getVisual("borderColor",!0),n=O.get("borderColor"),a=k(B);a.fill=r;var s=H(O);if(s.fill=n,o){var h=A-2*W;m(a,s,r,h,F,{x:W,y:0,width:h,height:F})}else a.text=s.text=null;i.setStyle(a),d.setElementHoverStyle(i,s)}t.add(i)}function f(t,i){i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex;var o=Math.max(A-2*W,0),r=Math.max(S-2*W,0);if(i.culling=!0,i.setShape({x:W,y:W,width:o,height:r}),L)g(i);else{i.invisible=!1;var n=l.getVisual("color",!0),a=k(B);a.fill=n;var s=H(O);m(a,s,n,o,r),i.setStyle(a),d.setElementHoverStyle(i,s)}t.add(i)}function g(e){!e.invisible&&a.push(e)}function m(t,i,o,r,n,a){var h=X.get("name"),u=X.getModel(a?N:D),c=X.getModel(a?R:T),p=u.getShallow("show");d.setLabelStyle(t,i,u,c,{defaultText:p?h:null,autoColor:o,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:a?"upperLabel":"label"}),_(t,a,I),_(i,a,I),a&&(t.textRect=s.clone(a)),t.truncate=p&&u.get("ellipsis")?{outerWidth:r,outerHeight:n,minChar:2}:null}function _(t,i,o){var r=t.text;if(!i&&o.isLeafRoot&&null!=r){var n=e.get("drillDownIcon",!0);t.text=n?n+" "+r:r}}function v(e,o,a,s){var d=null!=V&&i[e][V],l=r[e];return d?(i[e][V]=null,y(l,d,e)):L||(d=new o({z:n(a,s)}),d.__tmDepth=a,d.__tmStorageName=e,x(l,d,e)),t[e][E]=d}function y(e,t,i){var o=e[E]={};o.old="nodeGroup"===i?t.position.slice():s.extend({},t.shape)}function x(e,t,i){var n=e[E]={},a=l.parentNode;if(a&&(!o||"drillDown"===o.direction)){var s=0,d=0,h=r.background[a.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,d=h.old.height),n.old="nodeGroup"===i?[0,d]:{x:s,y:d,width:0,height:0}}n.fadein="nodeGroup"!==i}if(l){var I=l.getLayout(),M=e.getData();if(M.setItemGraphicEl(l.dataIndex,null),I&&I.isInView){var A=I.width,S=I.height,W=I.borderWidth,L=I.invisible,E=l.getRawIndex(),V=h&&h.getRawIndex(),z=l.viewChildren,F=I.upperHeight,Z=z&&z.length,B=l.getModel("itemStyle"),O=l.getModel("emphasis.itemStyle"),P=v("nodeGroup",b);if(P){if(u.add(P),P.attr("position",[I.x||0,I.y||0]),P.__tmNodeWidth=A,P.__tmNodeHeight=S,I.isAboveViewRoot)return P;var X=l.getModel(),Y=v("background",w,c,C);if(Y&&p(P,Y,Z&&I.upperLabelHeight),Z)d.isHighDownDispatcher(P)&&d.setAsHighDownDispatcher(P,!1),Y&&(d.setAsHighDownDispatcher(Y,!0),M.setItemGraphicEl(l.dataIndex,Y));else{var q=v("content",w,c,G);q&&f(P,q),Y&&d.isHighDownDispatcher(Y)&&d.setAsHighDownDispatcher(Y,!1),d.setAsHighDownDispatcher(P,!0),M.setItemGraphicEl(l.dataIndex,P)}return P}}}}function n(e,t){var i=e*M+t;return(i-1)/i}var a=e("node_modules/echarts/lib/echarts"),s=e("node_modules/zrender/lib/core/util"),d=e("node_modules/echarts/lib/util/graphic"),l=e("node_modules/echarts/lib/data/DataDiffer"),h=e("node_modules/echarts/lib/chart/helper/treeHelper"),u=e("node_modules/echarts/lib/chart/treemap/Breadcrumb"),c=e("node_modules/echarts/lib/component/helper/RoamController"),p=e("node_modules/zrender/lib/core/BoundingRect"),f=e("node_modules/zrender/lib/core/matrix"),g=e("node_modules/echarts/lib/util/animation"),m=e("node_modules/echarts/lib/model/mixin/makeStyleMapper"),_=e("node_modules/echarts/lib/util/format"),v=_.windowOpen,y=s.bind,b=d.Group,w=d.Rect,x=s.each,I=3,D=["label"],T=["emphasis","label"],N=["upperLabel"],R=["emphasis","upperLabel"],M=10,C=1,G=2,H=m([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),k=function(e){var t=H(e);return t.stroke=t.fill=t.lineWidth=null,t},A=a.extendChartView({type:"treemap",init:function(){this._containerGroup,this._storage=o(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,i,o){var r=t.findComponents({mainType:"series",subType:"treemap",query:o});if(!(s.indexOf(r,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=t;var n=["treemapZoomToNode","treemapRootToNode"],a=h.retrieveTargetInfo(o,n,e),d=o&&o.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,p="treemapRootToNode"===d&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:o.direction}:null,f=this._giveContainerGroup(l),g=this._doRender(f,e,p);u||d&&"treemapZoomToNode"!==d&&"treemapRootToNode"!==d?g.renderFinally():this._doAnimation(f,g,e,p),this._resetController(i),this._renderBreadcrumb(e,i,a)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new b,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,i){function n(e,t,i,o,r){function a(e){return e.getId()}function d(a,s){var d=null!=a?e[a]:null,l=null!=s?t[s]:null,h=m(d,l,i,r);h&&n(d&&d.viewChildren||[],l&&l.viewChildren||[],h,o,r+1)}o?(t=e,x(e,function(e,t){!e.isRemoved()&&d(t,t)})):new l(t,e,a,a).add(d).update(d).remove(s.curry(d,null)).execute()}function a(e){var t=o();return e&&x(e,function(e,i){var o=t[i];x(e,function(e){e&&(o.push(e),e.__tmWillDelete=1)})}),t}function d(){x(_,function(e){x(e,function(e){e.parent&&e.parent.remove(e)})}),x(g,function(e){e.invisible=!0,e.dirty()})}var h=t.getData().tree,u=this._oldTree,c=o(),p=o(),f=this._storage,g=[],m=s.curry(r,t,p,f,i,c,g);n(h.root?[h.root]:[],u&&u.root?[u.root]:[],e,h===u||!u,0);var _=a(f);return this._oldTree=h,this._storage=p,{lastsForAnimation:c,willDeleteEls:_,renderFinally:d}},_doAnimation:function(e,t,i,o){if(i.get("animation")){var r=i.get("animationDurationUpdate"),n=i.get("animationEasing"),a=g.createWrap();x(t.willDeleteEls,function(e,t){x(e,function(e){if(!e.invisible){var i,s=e.parent;if(o&&"drillDown"===o.direction)i=s===o.rootNodeGroup?{shape:{x:0,y:0,width:s.__tmNodeWidth,height:s.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var d=0,l=0;s.__tmWillDelete||(d=s.__tmNodeWidth/2,l=s.__tmNodeHeight/2),i="nodeGroup"===t?{position:[d,l],style:{opacity:0}}:{shape:{x:d,y:l,width:0,height:0},style:{opacity:0}}}i&&a.add(e,i,r,n)}})}),x(this._storage,function(e,i){x(e,function(e,o){var d=t.lastsForAnimation[i][o],l={};d&&("nodeGroup"===i?d.old&&(l.position=e.position.slice(),e.attr("position",d.old)):(d.old&&(l.shape=s.extend({},e.shape),e.setShape(d.old)),d.fadein?(e.setStyle("opacity",0),l.style={opacity:1}):1!==e.style.opacity&&(l.style={opacity:1})),a.add(e,l,r,n))})},this),this._state="animating",a.done(y(function(){this._state="ready",t.renderFinally()},this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new c(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",y(this._onPan,this)),t.on("zoom",y(this._onZoom,this)));var i=new p(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,o){return i.contain(t,o)})},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>I||Math.abs(e.dy)>I)){var t=this.seriesModel.getData().tree.root;if(!t)return;var i=t.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},_onZoom:function(e){var t=e.originX,i=e.originY;if("animating"!==this._state){var o=this.seriesModel.getData().tree.root;if(!o)return;var r=o.getLayout();if(!r)return;var n=new p(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,i-=a.y;var s=f.create();f.translate(s,s,[-t,-i]),f.scale(s,s,[e.scale,e.scale]),f.translate(s,s,[t,i]),n.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x,y:n.y,width:n.width,height:n.height}})}},_initEvents:function(e){e.on("click",function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var i=this.findTarget(e.offsetX,e.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===t)this._zoomToNode(i);else if("link"===t){var r=o.hostTree.data.getItemModel(o.dataIndex),n=r.get("link",!0),a=r.get("target",!0)||"blank";n&&v(n,a)}}}}},this)},_renderBreadcrumb:function(e,t,i){function o(t){"animating"!==this._state&&(h.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}i||(i=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new u(this.group))).render(e,t,i.node,y(o,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=o(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(o){var r=this._storage.background[o.getRawIndex()];if(r){var n=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=n[0]&&n[0]<=a.x+a.width&&a.y<=n[1]&&n[1]<=a.y+a.height))return!1;i={node:o,offsetX:n[0],offsetY:n[1]}}},this),i}});i.exports=A}); ;/*!node_modules/echarts/lib/chart/treemap/treemapAction.js*/ amis.define("node_modules/echarts/lib/chart/treemap/treemapAction",function(e){for(var o=e("node_modules/echarts/lib/echarts"),t=e("node_modules/echarts/lib/chart/helper/treeHelper"),r=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],i=0;i "+f)),g++)}var D,w=t.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)D=c(e,t);else{var y=l.get(w),A=y&&"view"!==y.type?y.dimensions||[]:[];d.indexOf(A,"value")<0&&A.concat(["value"]);var L=s(e,{coordDimensions:A});D=new o(L,t),D.initData(e)}var x=new o(["value"],t);return x.initData(p,v),u&&u(D,x),n({mainData:D,struct:h,structAttr:"graph",datas:{node:D,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),h.update(),h}var d=e("node_modules/zrender/lib/core/util"),o=e("node_modules/echarts/lib/data/List"),i=e("node_modules/echarts/lib/data/Graph"),n=e("node_modules/echarts/lib/data/helper/linkList"),s=e("node_modules/echarts/lib/data/helper/createDimensions"),l=e("node_modules/echarts/lib/CoordinateSystem"),c=e("node_modules/echarts/lib/chart/helper/createListFromArray");t.exports=r}); ;/*!node_modules/echarts/lib/chart/graph/GraphSeries.js*/ -amis.define("node_modules/echarts/lib/chart/graph/GraphSeries",function(e,t,a){var o=e("node_modules/echarts/lib/echarts"),n=e("node_modules/echarts/lib/data/List"),i=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/util/model"),l=r.defaultEmphasis,s=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/util/format"),u=d.encodeHTML,h=e("node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge"),g=e("node_modules/echarts/lib/visual/LegendVisualProvider"),c=o.extendSeriesModel({type:"series.graph",init:function(e){function t(){return a._categoriesData}c.superApply(this,"init",arguments);var a=this;this.legendVisualProvider=new g(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){c.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){c.superApply(this,"mergeDefaultAndTheme",arguments),l(e,["edgeLabel"],["show"])},getInitialData:function(e,t){function a(e,a){function o(e){return e=this.parsePath(e),e&&"label"===e[0]?r:e&&"emphasis"===e[0]&&"label"===e[1]?d:this.parentModel}e.wrapMethod("getItemModel",function(e){var t=i._categoriesModels,a=e.getShallow("category"),o=t[a];return o&&(o.parentModel=e.parentModel,e.parentModel=o),e});var n=i.getModel("edgeLabel"),r=new s({label:n.option},n.parentModel,t),l=i.getModel("emphasis.edgeLabel"),d=new s({emphasis:{label:l.option}},l.parentModel,t);a.wrapMethod("getItemModel",function(e){return e.customizeGetParent(o),e})}var o=e.edges||e.links||[],n=e.data||e.nodes||[],i=this;return n&&o?h(n,o,this,!0,a).data:void 0},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,a){if("edge"===a){var o=this.getData(),n=this.getDataParams(e,a),i=o.graph.getEdgeByIndex(e),r=o.getName(i.node1.dataIndex),l=o.getName(i.node2.dataIndex),s=[];return null!=r&&s.push(r),null!=l&&s.push(l),s=u(s.join(" > ")),n.value&&(s+=" : "+u(n.value)),s}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=i.map(this.option.categories||[],function(e){return null!=e.value?e:i.extend({value:0},e)}),t=new n(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),p=c;a.exports=p}); +amis.define("node_modules/echarts/lib/chart/graph/GraphSeries",function(e,t,a){var o=e("node_modules/echarts/lib/echarts"),n=e("node_modules/echarts/lib/data/List"),i=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/util/model"),l=r.defaultEmphasis,s=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/util/format"),u=d.encodeHTML,h=e("node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge"),g=e("node_modules/echarts/lib/visual/LegendVisualProvider"),c=o.extendSeriesModel({type:"series.graph",init:function(e){function t(){return a._categoriesData}c.superApply(this,"init",arguments);var a=this;this.legendVisualProvider=new g(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){c.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){c.superApply(this,"mergeDefaultAndTheme",arguments),l(e,["edgeLabel"],["show"])},getInitialData:function(e,t){function a(e,a){function o(e){return e=this.parsePath(e),e&&"label"===e[0]?r:e&&"emphasis"===e[0]&&"label"===e[1]?d:this.parentModel}e.wrapMethod("getItemModel",function(e){var t=i._categoriesModels,a=e.getShallow("category"),o=t[a];return o&&(o.parentModel=e.parentModel,e.parentModel=o),e});var n=i.getModel("edgeLabel"),r=new s({label:n.option},n.parentModel,t),l=i.getModel("emphasis.edgeLabel"),d=new s({emphasis:{label:l.option}},l.parentModel,t);a.wrapMethod("getItemModel",function(e){return e.customizeGetParent(o),e})}var o=e.edges||e.links||[],n=e.data||e.nodes||[],i=this;return n&&o?h(n,o,this,!0,a).data:void 0},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,a){if("edge"===a){var o=this.getData(),n=this.getDataParams(e,a),i=o.graph.getEdgeByIndex(e),r=o.getName(i.node1.dataIndex),l=o.getName(i.node2.dataIndex),s=[];return null!=r&&s.push(r),null!=l&&s.push(l),s=u(s.join(" > ")),n.value&&(s+=" : "+u(n.value)),s}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=i.map(this.option.categories||[],function(e){return null!=e.value?e:i.extend({value:0},e)}),t=new n(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),p=c;a.exports=p}); ;/*!node_modules/echarts/lib/chart/helper/LinePath.js*/ amis.define("node_modules/echarts/lib/chart/helper/LinePath",function(t,e,n){function i(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var r=t("node_modules/echarts/lib/util/graphic"),u=t("node_modules/zrender/lib/core/vector"),o=r.Line.prototype,a=r.BezierCurve.prototype,l=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[i(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:o.buildPath,_buildPathCurve:a.buildPath,pointAt:function(t){return this[i(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:o.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(t){var e=this.shape,n=i(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return u.normalize(n,n)},_tangentAtCurve:a.tangentAt});n.exports=l}); ;/*!node_modules/echarts/lib/chart/helper/Line.js*/ -amis.define("node_modules/echarts/lib/chart/helper/Line",function(t,e,i){function a(t){return"_"+t+"Type"}function l(t,e,i){var a=e.getItemVisual(i,"color"),l=e.getItemVisual(i,t),o=e.getItemVisual(i,t+"Size");if(l&&"none"!==l){h.isArray(o)||(o=[o,o]);var n=d.createSymbol(l,-o[0]/2,-o[1]/2,o[0],o[1],a);return n.name=t,n}}function o(t){var e=new m({name:"line",subPixelOptimize:!0});return n(e.shape,t),e}function n(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=0/0,t.cpy1=0/0)}function r(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),a=t.childOfName("label");if(e||i||!a.ignore){for(var l=1,o=this.parent;o;)o.scale&&(l/=o.scale[0]),o=o.parent;var n=t.childOfName("line");if(this.__dirty||n.__dirty){var r=n.shape.percent,s=n.pointAt(0),h=n.pointAt(r),d=c.sub([],h,s);if(c.normalize(d,d),e){e.attr("position",s);var m=n.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(m[1],m[0])),e.attr("scale",[l*r,l*r])}if(i){i.attr("position",h);var m=n.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(m[1],m[0])),i.attr("scale",[l*r,l*r])}if(!a.ignore){a.attr("position",h);var u,p,f,g=5*l;if("end"===a.__position)u=[d[0]*g+h[0],d[1]*g+h[1]],p=d[0]>.8?"left":d[0]<-.8?"right":"center",f=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";else if("middle"===a.__position){var y=r/2,m=n.tangentAt(y),v=[m[1],-m[0]],S=n.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),u=[S[0]+v[0]*g,S[1]+v[1]*g],p="center",f="bottom";var _=-Math.atan2(m[1],m[0]);h[0].8?"right":d[0]<-.8?"left":"center",f=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";a.attr({style:{textVerticalAlign:a.__verticalAlign||f,textAlign:a.__textAlign||p},position:u,scale:[l,l]})}}}}function s(t,e,i){u.Group.call(this),this._createLine(t,e,i)}var h=t("node_modules/zrender/lib/core/util"),c=t("node_modules/zrender/lib/core/vector"),d=t("node_modules/echarts/lib/util/symbol"),m=t("node_modules/echarts/lib/chart/helper/LinePath"),u=t("node_modules/echarts/lib/util/graphic"),p=t("node_modules/echarts/lib/util/number"),f=p.round,g=["fromSymbol","toSymbol"],y=s.prototype;y.beforeUpdate=r,y._createLine=function(t,e,i){var n=t.hostModel,r=t.getItemLayout(e),s=o(r);s.shape.percent=0,u.initProps(s,{shape:{percent:1}},n,e),this.add(s);var c=new u.Text({name:"label",lineLabelOriginalOpacity:1});this.add(c),h.each(g,function(i){var o=l(i,t,e);this.add(o),this[a(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},y.updateData=function(t,e,i){var o=t.hostModel,r=this.childOfName("line"),s=t.getItemLayout(e),c={shape:{}};n(c.shape,s),u.updateProps(r,c,o,e),h.each(g,function(i){var o=t.getItemVisual(e,i),n=a(i);if(this[n]!==o){this.remove(this.childOfName(i));var r=l(i,t,e);this.add(r)}this[n]=o},this),this._updateCommonStl(t,e,i)},y._updateCommonStl=function(t,e,i){var a=t.hostModel,l=this.childOfName("line"),o=i&&i.lineStyle,n=i&&i.hoverLineStyle,r=i&&i.labelModel,s=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var c=t.getItemModel(e);o=c.getModel("lineStyle").getLineStyle(),n=c.getModel("emphasis.lineStyle").getLineStyle(),r=c.getModel("label"),s=c.getModel("emphasis.label")}var d=t.getItemVisual(e,"color"),m=h.retrieve3(t.getItemVisual(e,"opacity"),o.opacity,1);l.useStyle(h.defaults({strokeNoScale:!0,fill:"none",stroke:d,opacity:m},o)),l.hoverStyle=n,h.each(g,function(t){var e=this.childOfName(t);e&&(e.setColor(d),e.setStyle({opacity:m}))},this);var p,y,v=r.getShallow("show"),S=s.getShallow("show"),_=this.childOfName("label");if((v||S)&&(p=d||"#000",y=a.getFormattedLabel(e,"normal",t.dataType),null==y)){var b=a.getRawValue(e);y=null==b?t.getName(e):isFinite(b)?f(b):b}var x=v?y:null,L=S?h.retrieve2(a.getFormattedLabel(e,"emphasis",t.dataType),y):null,M=_.style;(null!=x||null!=L)&&(u.setTextStyle(_.style,r,{text:x},{autoColor:p}),_.__textAlign=M.textAlign,_.__verticalAlign=M.textVerticalAlign,_.__position=r.get("position")||"middle"),_.hoverStyle=null!=L?{text:L,textFill:s.getTextColor(!0),fontStyle:s.getShallow("fontStyle"),fontWeight:s.getShallow("fontWeight"),fontSize:s.getShallow("fontSize"),fontFamily:s.getShallow("fontFamily")}:{text:null},_.ignore=!v&&!S,u.setHoverStyle(this)},y.highlight=function(){this.trigger("emphasis")},y.downplay=function(){this.trigger("normal")},y.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},y.setLinePoints=function(t){var e=this.childOfName("line");n(e.shape,t),e.dirty()},h.inherits(s,u.Group);var v=s;i.exports=v}); +amis.define("node_modules/echarts/lib/chart/helper/Line",function(t,e,i){function a(t){return"_"+t+"Type"}function o(t,e,i){var a=e.getItemVisual(i,"color"),o=e.getItemVisual(i,t),l=e.getItemVisual(i,t+"Size");if(o&&"none"!==o){d.isArray(l)||(l=[l,l]);var n=h.createSymbol(o,-l[0]/2,-l[1]/2,l[0],l[1],a);return n.name=t,n}}function l(t){var e=new m({name:"line",subPixelOptimize:!0});return n(e.shape,t),e}function n(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=0/0,t.cpy1=0/0)}function r(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),a=t.childOfName("label");if(e||i||!a.ignore){for(var o=1,l=this.parent;l;)l.scale&&(o/=l.scale[0]),l=l.parent;var n=t.childOfName("line");if(this.__dirty||n.__dirty){var r=n.shape.percent,s=n.pointAt(0),d=n.pointAt(r),h=c.sub([],d,s);if(c.normalize(h,h),e){e.attr("position",s);var m=n.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(m[1],m[0])),e.attr("scale",[o*r,o*r])}if(i){i.attr("position",d);var m=n.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(m[1],m[0])),i.attr("scale",[o*r,o*r])}if(!a.ignore){a.attr("position",d);var p,u,g,f,y=a.__labelDistance,v=y[0]*o,_=y[1]*o,b=r/2,m=n.tangentAt(b),S=[m[1],-m[0]],M=n.pointAt(b);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var x=m[0]<0?-1:1;if("start"!==a.__position&&"end"!==a.__position){var L=-Math.atan2(m[1],m[0]);d[0].8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":p=[-h[0]*v+s[0],-h[1]*_+s[1]],u=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[v*x+s[0],s[1]+A],u=m[0]<0?"right":"left",f=[-v*x,-A];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[M[0],M[1]+A],u="center",f=[0,-A];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-v*x+d[0],d[1]+A],u=m[0]>=0?"right":"left",f=[v*x,-A]}a.attr({style:{textVerticalAlign:a.__verticalAlign||g,textAlign:a.__textAlign||u},position:p,scale:[o,o],origin:f})}}}}function s(t,e,i){p.Group.call(this),this._createLine(t,e,i)}var d=t("node_modules/zrender/lib/core/util"),c=t("node_modules/zrender/lib/core/vector"),h=t("node_modules/echarts/lib/util/symbol"),m=t("node_modules/echarts/lib/chart/helper/LinePath"),p=t("node_modules/echarts/lib/util/graphic"),u=t("node_modules/echarts/lib/util/number"),g=u.round,f=["fromSymbol","toSymbol"],y=s.prototype;y.beforeUpdate=r,y._createLine=function(t,e,i){var n=t.hostModel,r=t.getItemLayout(e),s=l(r);s.shape.percent=0,p.initProps(s,{shape:{percent:1}},n,e),this.add(s);var c=new p.Text({name:"label",lineLabelOriginalOpacity:1});this.add(c),d.each(f,function(i){var l=o(i,t,e);this.add(l),this[a(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},y.updateData=function(t,e,i){var l=t.hostModel,r=this.childOfName("line"),s=t.getItemLayout(e),c={shape:{}};n(c.shape,s),p.updateProps(r,c,l,e),d.each(f,function(i){var l=t.getItemVisual(e,i),n=a(i);if(this[n]!==l){this.remove(this.childOfName(i));var r=o(i,t,e);this.add(r)}this[n]=l},this),this._updateCommonStl(t,e,i)},y._updateCommonStl=function(t,e,i){var a=t.hostModel,o=this.childOfName("line"),l=i&&i.lineStyle,n=i&&i.hoverLineStyle,r=i&&i.labelModel,s=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var c=t.getItemModel(e);l=c.getModel("lineStyle").getLineStyle(),n=c.getModel("emphasis.lineStyle").getLineStyle(),r=c.getModel("label"),s=c.getModel("emphasis.label")}var h=t.getItemVisual(e,"color"),m=d.retrieve3(t.getItemVisual(e,"opacity"),l.opacity,1);o.useStyle(d.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:m},l)),o.hoverStyle=n,d.each(f,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:m}))},this);var u,y,v=r.getShallow("show"),_=s.getShallow("show"),b=this.childOfName("label");if((v||_)&&(u=h||"#000",y=a.getFormattedLabel(e,"normal",t.dataType),null==y)){var S=a.getRawValue(e);y=null==S?t.getName(e):isFinite(S)?g(S):S}var M=v?y:null,x=_?d.retrieve2(a.getFormattedLabel(e,"emphasis",t.dataType),y):null,L=b.style;if(null!=M||null!=x){p.setTextStyle(b.style,r,{text:M},{autoColor:u}),b.__textAlign=L.textAlign,b.__verticalAlign=L.textVerticalAlign,b.__position=r.get("position")||"middle";var A=r.get("distance");d.isArray(A)||(A=[A,A]),b.__labelDistance=A}b.hoverStyle=null!=x?{text:x,textFill:s.getTextColor(!0),fontStyle:s.getShallow("fontStyle"),fontWeight:s.getShallow("fontWeight"),fontSize:s.getShallow("fontSize"),fontFamily:s.getShallow("fontFamily")}:{text:null},b.ignore=!v&&!_,p.setHoverStyle(this)},y.highlight=function(){this.trigger("emphasis")},y.downplay=function(){this.trigger("normal")},y.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},y.setLinePoints=function(t){var e=this.childOfName("line");n(e.shape,t),e.dirty()},d.inherits(s,p.Group);var v=s;i.exports=v}); ;/*!node_modules/echarts/lib/chart/helper/LineDraw.js*/ -amis.define("node_modules/echarts/lib/chart/helper/LineDraw",function(e,t,r){function n(e){this._ctor=e||s,this.group=new c.Group}function a(e,t,r,n){var a=t.getItemLayout(r);if(u(a)){var i=new e._ctor(t,r,n);t.setItemGraphicEl(r,i),e.group.add(i)}}function i(e,t,r,n,a,i){var o=t.getItemGraphicEl(n);return u(r.getItemLayout(a))?(o?o.updateData(r,a,i):o=new e._ctor(r,a,i),r.setItemGraphicEl(a,o),void e.group.add(o)):void e.group.remove(o)}function o(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function l(e){return isNaN(e[0])||isNaN(e[1])}function u(e){return!l(e[0])&&!l(e[1])}var c=e("node_modules/echarts/lib/util/graphic"),s=e("node_modules/echarts/lib/chart/helper/Line"),h=n.prototype;h.isPersistent=function(){return!0},h.updateData=function(e){var t=this,r=t.group,n=t._lineData;t._lineData=e,n||r.removeAll();var l=o(e);e.diff(n).add(function(r){a(t,e,r,l)}).update(function(r,a){i(t,n,e,a,r,l)}).remove(function(e){r.remove(n.getItemGraphicEl(e))}).execute()},h.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},h.incrementalPrepareUpdate=function(e){this._seriesScope=o(e),this._lineData=null,this.group.removeAll()},h.incrementalUpdate=function(e,t){function r(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}for(var n=e.start;n0}function l(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function u(e){return isNaN(e[0])||isNaN(e[1])}function c(e){return!u(e[0])&&!u(e[1])}var s=e("node_modules/echarts/lib/util/graphic"),h=e("node_modules/echarts/lib/chart/helper/Line"),p=n.prototype;p.isPersistent=function(){return!0},p.updateData=function(e){var t=this,r=t.group,n=t._lineData;t._lineData=e,n||r.removeAll();var o=l(e);e.diff(n).add(function(r){a(t,e,r,o)}).update(function(r,a){i(t,n,e,a,r,o)}).remove(function(e){r.remove(n.getItemGraphicEl(e))}).execute()},p.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},p.incrementalPrepareUpdate=function(e){this._seriesScope=l(e),this._lineData=null,this.group.removeAll()},p.incrementalUpdate=function(e,t){function r(e){e.isGroup||o(e)||(e.incremental=e.useHoverLayer=!0)}for(var n=e.start;n=g;g+=.1){t[0]=v(n[0],i[0],c[0],g),t[1]=v(n[1],i[1],c[1],g);var _=f(p(t,o)-l);d>_&&(d=_,a=g)}for(var b=0;32>b;b++){var h=a+y;u[0]=v(n[0],i[0],c[0],a),u[1]=v(n[1],i[1],c[1],a),s[0]=v(n[0],i[0],c[0],h),s[1]=v(n[1],i[1],c[1],h);var _=p(u,o)-l;if(f(_)<.01)break;var m=p(s,o)-l;y/=2,0>_?m>=0?a+=y:a-=y:m>=0?a-=y:a+=y}return a}function n(e,o){var r=[],n=i.quadraticSubdivide,d=[[],[],[]],t=[[],[]],u=[];o/=2,e.eachEdge(function(e){var i=e.getLayout(),s=e.getVisual("fromSymbol"),v=e.getVisual("toSymbol");i.__original||(i.__original=[c.clone(i[0]),c.clone(i[1])],i[2]&&i.__original.push(c.clone(i[2])));var p=i.__original;if(null!=i[2]){if(c.copy(d[0],p[0]),c.copy(d[1],p[2]),c.copy(d[2],p[1]),s&&"none"!==s){var f=l(e.node1),y=a(d,p[0],f*o);n(d[0][0],d[1][0],d[2][0],y,r),d[0][0]=r[3],d[1][0]=r[4],n(d[0][1],d[1][1],d[2][1],y,r),d[0][1]=r[3],d[1][1]=r[4]}if(v&&"none"!==v){var f=l(e.node2),y=a(d,p[1],f*o);n(d[0][0],d[1][0],d[2][0],y,r),d[1][0]=r[1],d[2][0]=r[2],n(d[0][1],d[1][1],d[2][1],y,r),d[1][1]=r[1],d[2][1]=r[2]}c.copy(i[0],d[0]),c.copy(i[1],d[2]),c.copy(i[2],d[1])}else{if(c.copy(t[0],p[0]),c.copy(t[1],p[1]),c.sub(u,t[1],t[0]),c.normalize(u,u),s&&"none"!==s){var f=l(e.node1);c.scaleAndAdd(t[0],t[0],u,f*o)}if(v&&"none"!==v){var f=l(e.node2);c.scaleAndAdd(t[1],t[1],u,-f*o)}c.copy(i[0],t[0]),c.copy(i[1],t[1])}})}var i=e("node_modules/zrender/lib/core/curve"),c=e("node_modules/zrender/lib/core/vector"),d=e("node_modules/echarts/lib/chart/graph/graphHelper"),l=d.getSymbolSize,t=[],u=[],s=[],v=i.quadraticAt,p=c.distSquare,f=Math.abs;r.exports=n}); ;/*!node_modules/echarts/lib/chart/graph/GraphView.js*/ -amis.define("node_modules/echarts/lib/chart/graph/GraphView",function(e,t,o){function a(e,t){var o=e.getVisual("opacity");return null!=o?o:e.getModel().get(t)}function i(e,t,o){var i=e.getGraphicEl(),n=a(e,t);null!=o&&(null==n&&(n=1),n*=o),i.downplay&&i.downplay(),i.traverse(function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;(null==t||null!=o)&&(t=n),e.setStyle("opacity",t)}})}function n(e,t){var o=a(e,t),i=e.getGraphicEl();i.traverse(function(e){!e.isGroup&&e.setStyle("opacity",o)}),i.highlight&&i.highlight()}var r=e("node_modules/echarts/lib/echarts"),c=e("node_modules/zrender/lib/core/util"),s=e("node_modules/echarts/lib/chart/helper/SymbolDraw"),d=e("node_modules/echarts/lib/chart/helper/LineDraw"),l=e("node_modules/echarts/lib/component/helper/RoamController"),u=e("node_modules/echarts/lib/component/helper/roamHelper"),h=e("node_modules/echarts/lib/component/helper/cursorHelper"),p=h.onIrrelevantElement,f=e("node_modules/echarts/lib/util/graphic"),m=e("node_modules/echarts/lib/chart/graph/adjustEdge"),g=e("node_modules/echarts/lib/chart/graph/graphHelper"),y=g.getNodeGlobalScale,_="__focusNodeAdjacency",v="__unfocusNodeAdjacency",b=["itemStyle","opacity"],D=["lineStyle","opacity"],I=r.extendChartView({type:"graph",init:function(e,t){var o=new s,a=new d,i=this.group;this._controller=new l(t.getZr()),this._controllerHost={target:i},i.add(o.group),i.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},render:function(e,t,o){var a=this,i=e.coordinateSystem;this._model=e;var n=this._symbolDraw,r=this._lineDraw,c=this.group;if("view"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?c.attr(s):f.updateProps(c,s,e)}m(e.getGraph(),y(e));var d=e.getData();n.updateData(d);var l=e.getEdgeData();r.updateData(l),this._updateNodeAndLinkScale(),this._updateController(e,t,o),clearTimeout(this._layoutTimeout);var u=e.forceLayout,h=e.get("force.layoutAnimation");u&&this._startForceLayoutIteration(u,h),d.eachItemGraphicEl(function(t,i){var n=d.getItemModel(i);t.off("drag").off("dragend");var r=n.get("draggable");r&&t.on("drag",function(){u&&(u.warmUp(),!this._layouting&&this._startForceLayoutIteration(u,h),u.setFixed(i),d.setItemLayout(i,t.position))},this).on("dragend",function(){u&&u.setUnfixed(i)},this),t.setDraggable(r&&u),t[_]&&t.off("mouseover",t[_]),t[v]&&t.off("mouseout",t[v]),n.get("focusNodeAdjacency")&&(t.on("mouseover",t[_]=function(){a._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[v]=function(){a._dispatchUnfocus(o)}))},this),d.graph.eachEdge(function(t){var i=t.getGraphicEl();i[_]&&i.off("mouseover",i[_]),i[v]&&i.off("mouseout",i[v]),t.getModel().get("focusNodeAdjacency")&&(i.on("mouseover",i[_]=function(){a._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),i.on("mouseout",i[v]=function(){a._dispatchUnfocus(o)}))});var p="circular"===e.get("layout")&&e.get("circular.rotateLabel"),g=d.getLayout("cx"),b=d.getLayout("cy");d.eachItemGraphicEl(function(e,t){var o=d.getItemModel(t),a=o.get("label.rotate")||0,i=e.getSymbolPath();if(p){var n=d.getItemLayout(t),r=Math.atan2(n[1]-b,n[0]-g);0>r&&(r=2*Math.PI+r);var c=n[0]r&&(r=2*Math.PI+r);var c=n[0]=0&&(d[r[s].depth]=new i(r[s],this,t));if(l&&a){var u=n(l,a,this,!0,o);return u.data}},setNodePosition:function(e,t){var o=this.option.data[e];o.localX=t[0],o.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,o){if("edge"===o){var a=this.getDataParams(e,o),n=a.data,l=n.source+" -- "+n.target;return a.value&&(l+=" : "+a.value),r(l)}if("node"===o){var i=this.getGraph().getNodeByIndex(e),d=i.getLayout().value,u=this.getDataParams(e,o).data.name;if(d)var l=u+" : "+d;return r(l)}return s.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;e.focusNodeAdjacency===!0&&(e.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}})),u=s;o.exports=u}); +amis.define("node_modules/echarts/lib/chart/sankey/SankeySeries",function(e,t,a){var o=e("node_modules/echarts/lib/model/Series"),n=e("node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge"),l=e("node_modules/echarts/lib/util/format"),r=l.encodeHTML,i=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/config"),s=(d.__DEV__,o.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){function a(e,t){e.wrapMethod("getItemModel",function(e,t){return e.customizeGetParent(function(){var e=this.parentModel,a=e.getData().getItemLayout(t).depth,o=e.levelModels[a];return o||this.parentModel}),e}),t.wrapMethod("getItemModel",function(e,t){return e.customizeGetParent(function(){var e=this.parentModel,a=e.getGraph().getEdgeByIndex(t),o=a.node1.getLayout().depth,n=e.levelModels[o];return n||this.parentModel}),e})}for(var o=e.edges||e.links,l=e.data||e.nodes,r=e.levels,d=this.levelModels={},s=0;s=0&&(d[r[s].depth]=new i(r[s],this,t));if(l&&o){var u=n(l,o,this,!0,a);return u.data}},setNodePosition:function(e,t){var a=this.option.data[e];a.localX=t[0],a.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,a){if("edge"===a){var o=this.getDataParams(e,a),n=o.data,l=n.source+" -- "+n.target;return o.value&&(l+=" : "+o.value),r(l)}if("node"===a){var i=this.getGraph().getNodeByIndex(e),d=i.getLayout().value,u=this.getDataParams(e,a).data.name;if(d)var l=u+" : "+d;return r(l)}return s.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;e.focusNodeAdjacency===!0&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var a=s.superCall(this,"getDataParams",e,t);if(null==a.value&&"node"===t){var o=this.getGraph().getNodeByIndex(e),n=o.getLayout().value;a.value=n}return a},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=s;a.exports=u}); ;/*!node_modules/echarts/lib/chart/sankey/SankeyView.js*/ -amis.define("node_modules/echarts/lib/chart/sankey/SankeyView",function(e,t,a){function o(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function n(e,t,a){var n=e.getGraphicEl(),c=o(e,t);null!=a&&(null==c&&(c=1),c*=a),n.downplay&&n.downplay(),n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",c)})}function c(e,t){var a=o(e,t),n=e.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",a)})}function i(e,t,a){var o=new d.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return d.initProps(o,{shape:{width:e.width+20,height:e.height+20}},t,a),o}var d=e("node_modules/echarts/lib/util/graphic"),l=e("node_modules/echarts/lib/echarts"),s=e("node_modules/zrender/lib/core/util"),u=["itemStyle","opacity"],r=["lineStyle","opacity"],y=d.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var a=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+a,t.y2),e.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(e.lineTo(t.x2,t.y2+a),e.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),e.closePath()}}),h=l.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,a){var o=this,n=e.getGraph(),c=this.group,l=e.layoutInfo,s=l.width,u=l.height,r=e.getData(),h=e.getData("edge"),g=e.get("orient");this._model=e,c.removeAll(),c.attr("position",[l.x,l.y]),n.eachEdge(function(t){var a=new y;a.dataIndex=t.dataIndex,a.seriesIndex=e.seriesIndex,a.dataType="edge";var o,n,i,l,r,p,f,x,m=t.getModel("lineStyle"),I=m.get("curveness"),v=t.node1.getLayout(),_=t.node1.getModel(),b=_.get("localX"),T=_.get("localY"),A=t.node2.getLayout(),S=t.node2.getModel(),D=S.get("localX"),j=S.get("localY"),E=t.getLayout();switch(a.shape.extent=Math.max(1,E.dy),a.shape.orient=g,"vertical"===g?(o=(null!=b?b*s:v.x)+E.sy,n=(null!=T?T*u:v.y)+v.dy,i=(null!=D?D*s:A.x)+E.ty,l=null!=j?j*u:A.y,r=o,p=n*(1-I)+l*I,f=i,x=n*I+l*(1-I)):(o=(null!=b?b*s:v.x)+v.dx,n=(null!=T?T*u:v.y)+E.sy,i=null!=D?D*s:A.x,l=(null!=j?j*u:A.y)+E.ty,r=o*(1-I)+i*I,p=n,f=o*I+i*(1-I),x=l),a.setShape({x1:o,y1:n,x2:i,y2:l,cpx1:r,cpy1:p,cpx2:f,cpy2:x}),a.setStyle(m.getItemStyle()),a.style.fill){case"source":a.style.fill=t.node1.getVisual("color");break;case"target":a.style.fill=t.node2.getVisual("color")}d.setHoverStyle(a,t.getModel("emphasis.lineStyle").getItemStyle()),c.add(a),h.setItemGraphicEl(t.dataIndex,a)}),n.eachNode(function(t){var a=t.getLayout(),o=t.getModel(),n=o.get("localX"),i=o.get("localY"),l=o.getModel("label"),y=o.getModel("emphasis.label"),h=new d.Rect({shape:{x:null!=n?n*s:a.x,y:null!=i?i*u:a.y,width:a.dx,height:a.dy},style:o.getModel("itemStyle").getItemStyle()}),g=t.getModel("emphasis.itemStyle").getItemStyle();d.setLabelStyle(h.style,g,l,y,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),h.setStyle("fill",t.getVisual("color")),d.setHoverStyle(h,g),c.add(h),r.setItemGraphicEl(t.dataIndex,h),h.dataType="node"}),r.eachItemGraphicEl(function(t,n){var c=r.getItemModel(n);c.get("draggable")&&(t.drift=function(t,c){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=c,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:r.getRawIndex(n),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),c.get("focusNodeAdjacency")&&(t.off("mouseover").on("mouseover",function(){o._focusAdjacencyDisabled||(o._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.off("mouseout").on("mouseout",function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(a)}))}),h.eachItemGraphicEl(function(t,n){var c=h.getItemModel(n);c.get("focusNodeAdjacency")&&(t.off("mouseover").on("mouseover",function(){o._focusAdjacencyDisabled||(o._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.off("mouseout").on("mouseout",function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(a)}))}),!this._data&&e.get("animation")&&c.setClipPath(i(c.getBoundingRect(),e,function(){c.removeClipPath()})),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,a,o){var i=this._model.getData(),d=i.graph,l=o.dataIndex,y=i.getItemModel(l),h=o.edgeDataIndex;if(null!=l||null!=h){var g=d.getNodeByIndex(l),p=d.getEdgeByIndex(h);if(d.eachNode(function(e){n(e,u,.1)}),d.eachEdge(function(e){n(e,r,.1)}),g){c(g,u);var f=y.get("focusNodeAdjacency");"outEdges"===f?s.each(g.outEdges,function(e){e.dataIndex<0||(c(e,r),c(e.node2,u))}):"inEdges"===f?s.each(g.inEdges,function(e){e.dataIndex<0||(c(e,r),c(e.node1,u))}):"allEdges"===f&&s.each(g.edges,function(e){e.dataIndex<0||(c(e,r),c(e.node1,u),c(e.node2,u))})}p&&(c(p,r),c(p.node1,u),c(p.node2,u))}},unfocusNodeAdjacency:function(){var e=this._model.getGraph();e.eachNode(function(e){n(e,u)}),e.eachEdge(function(e){n(e,r)})}});a.exports=h}); +amis.define("node_modules/echarts/lib/chart/sankey/SankeyView",function(e,t,o){function a(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function n(e,t,o){var n=e.getGraphicEl(),d=a(e,t);null!=o&&(null==d&&(d=1),d*=o),n.downplay&&n.downplay(),n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",d)})}function d(e,t){var o=a(e,t),n=e.getGraphicEl();n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",o)}),n.highlight&&n.highlight()}function i(e,t,o){var a=new c.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return c.initProps(a,{shape:{width:e.width+20}},t,o),a}var c=e("node_modules/echarts/lib/util/graphic"),l=e("node_modules/echarts/lib/echarts"),s=e("node_modules/zrender/lib/core/util"),u=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],y=["lineStyle","opacity"],h=["emphasis","lineStyle","opacity"],g=c.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var o=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+o,t.y2),e.bezierCurveTo(t.cpx2+o,t.cpy2,t.cpx1+o,t.cpy1,t.x1+o,t.y1)):(e.lineTo(t.x2,t.y2+o),e.bezierCurveTo(t.cpx2,t.cpy2+o,t.cpx1,t.cpy1+o,t.x1,t.y1+o)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),f=l.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,o){var a=this,n=e.getGraph(),d=this.group,l=e.layoutInfo,s=l.width,u=l.height,r=e.getData(),y=e.getData("edge"),h=e.get("orient");this._model=e,d.removeAll(),d.attr("position",[l.x,l.y]),n.eachEdge(function(t){var o=new g;o.dataIndex=t.dataIndex,o.seriesIndex=e.seriesIndex,o.dataType="edge";var a,n,i,l,r,f,p,x,m=t.getModel("lineStyle"),I=m.get("curveness"),v=t.node1.getLayout(),A=t.node1.getModel(),_=A.get("localX"),j=A.get("localY"),N=t.node2.getLayout(),b=t.node2.getModel(),S=b.get("localX"),T=b.get("localY"),D=t.getLayout();switch(o.shape.extent=Math.max(1,D.dy),o.shape.orient=h,"vertical"===h?(a=(null!=_?_*s:v.x)+D.sy,n=(null!=j?j*u:v.y)+v.dy,i=(null!=S?S*s:N.x)+D.ty,l=null!=T?T*u:N.y,r=a,f=n*(1-I)+l*I,p=i,x=n*I+l*(1-I)):(a=(null!=_?_*s:v.x)+v.dx,n=(null!=j?j*u:v.y)+D.sy,i=null!=S?S*s:N.x,l=(null!=T?T*u:N.y)+D.ty,r=a*(1-I)+i*I,f=n,p=a*I+i*(1-I),x=l),o.setShape({x1:a,y1:n,x2:i,y2:l,cpx1:r,cpy1:f,cpx2:p,cpy2:x}),o.setStyle(m.getItemStyle()),o.style.fill){case"source":o.style.fill=t.node1.getVisual("color");break;case"target":o.style.fill=t.node2.getVisual("color")}c.setHoverStyle(o,t.getModel("emphasis.lineStyle").getItemStyle()),d.add(o),y.setItemGraphicEl(t.dataIndex,o)}),n.eachNode(function(t){var o=t.getLayout(),a=t.getModel(),n=a.get("localX"),i=a.get("localY"),l=a.getModel("label"),y=a.getModel("emphasis.label"),h=new c.Rect({shape:{x:null!=n?n*s:o.x,y:null!=i?i*u:o.y,width:o.dx,height:o.dy},style:a.getModel("itemStyle").getItemStyle()}),g=t.getModel("emphasis.itemStyle").getItemStyle();c.setLabelStyle(h.style,g,l,y,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),h.setStyle("fill",t.getVisual("color")),c.setHoverStyle(h,g),d.add(h),r.setItemGraphicEl(t.dataIndex,h),h.dataType="node"}),r.eachItemGraphicEl(function(t,n){var d=r.getItemModel(n);d.get("draggable")&&(t.drift=function(t,d){a._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=d,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:r.getRawIndex(n),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){a._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),d.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(o)}))}),y.eachItemGraphicEl(function(t,n){var d=y.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),d.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(o)}))}),!this._data&&e.get("animation")&&d.setClipPath(i(d.getBoundingRect(),e,function(){d.removeClipPath()})),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,o,a){var i=e.getData(),c=i.graph,l=a.dataIndex,g=i.getItemModel(l),f=a.edgeDataIndex;if(null!=l||null!=f){var p=c.getNodeByIndex(l),x=c.getEdgeByIndex(f);if(c.eachNode(function(e){n(e,u,.1)}),c.eachEdge(function(e){n(e,y,.1)}),p){d(p,r);var m=g.get("focusNodeAdjacency");"outEdges"===m?s.each(p.outEdges,function(e){e.dataIndex<0||(d(e,h),d(e.node2,r))}):"inEdges"===m?s.each(p.inEdges,function(e){e.dataIndex<0||(d(e,h),d(e.node1,r))}):"allEdges"===m&&s.each(p.edges,function(e){e.dataIndex<0||(d(e,h),e.node1!==p&&d(e.node1,r),e.node2!==p&&d(e.node2,r))})}x&&(d(x,h),d(x.node1,r),d(x.node2,r))}},unfocusNodeAdjacency:function(e){var t=e.getGraph();t.eachNode(function(e){n(e,u)}),t.eachEdge(function(e){n(e,y)})}});o.exports=f}); ;/*!node_modules/echarts/lib/chart/sankey/sankeyAction.js*/ amis.define("node_modules/echarts/lib/chart/sankey/sankeyAction",function(e){var n=e("node_modules/echarts/lib/echarts");e("node_modules/echarts/lib/chart/helper/focusNodeAdjacencyAction"),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}); ;/*!node_modules/echarts/lib/chart/sankey/sankeyLayout.js*/ -amis.define("node_modules/echarts/lib/chart/sankey/sankeyLayout",function(t,e,a){function n(t,e){t.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=o(t,e);t.layoutInfo=i;var c=i.width,y=i.height,g=t.getGraph(),s=g.nodes,d=g.edges;r(s);var h=b.filter(s,function(t){return 0===t.getLayout().value}),f=0!==h.length?0:t.get("layoutIterations"),l=t.get("orient"),v=t.get("nodeAlign");u(s,d,a,n,c,y,f,l,v)})}function o(t,e){return I.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e,a,n,o,u,r,c,y){i(t,e,a,o,u,c,y),d(t,e,u,o,n,r,c),w(t,c)}function r(t){b.each(t,function(t){var e=m(t.outEdges,E),a=m(t.inEdges,E),n=Math.max(e,a);t.setLayout({value:n},!0)})}function i(t,e,a,n,o,u,r){for(var i=[],c=[],g=[],d=[],h=0,f=0,l=0;l=0;E&&p.depth>v&&(v=p.depth),x.setLayout({depth:E?p.depth:h},!0),"vertical"===u?x.setLayout({dy:a},!0):x.setLayout({dx:a},!0);for(var m=0;mh-1?v:h-1;r&&"left"!==r&&y(t,r,u,G);var f="vertical"===u?(o-a)/G:(n-a)/G;s(t,f,u)}function c(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function y(t,e,a,n){if("right"===e){for(var o=[],u=t,r=0;u.length;){for(var i=0;i0;u--)c*=.99,v(i,c,r),l(i,o,a,n,r),k(i,c,r),l(i,o,a,n,r)}function h(t,e){var a=[],n="vertical"===e?"y":"x",o=D(t,function(t){return t.getLayout()[n]});return o.keys.sort(function(t,e){return t-e}),b.each(o.keys,function(t){a.push(o.buckets.get(t))}),a}function f(t,e,a,n,o,u){var r=1/0;b.each(t,function(t){var e=t.length,i=0;b.each(t,function(t){i+=t.getLayout().value});var c="vertical"===u?(n-(e-1)*o)/i:(a-(e-1)*o)/i;r>c&&(r=c)}),b.each(t,function(t){b.each(t,function(t,e){var a=t.getLayout().value*r;"vertical"===u?(t.setLayout({x:e},!0),t.setLayout({dx:a},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:a},!0))})}),b.each(e,function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)})}function l(t,e,a,n,o){var u="vertical"===o?"x":"y";b.each(t,function(t){t.sort(function(t,e){return t.getLayout()[u]-e.getLayout()[u]});for(var r,i,c,y=0,g=t.length,s="vertical"===o?"dx":"dy",d=0;g>d;d++)i=t[d],c=y-i.getLayout()[u],c>0&&(r=i.getLayout()[u]+c,"vertical"===o?i.setLayout({x:r},!0):i.setLayout({y:r},!0)),y=i.getLayout()[u]+i.getLayout()[s]+e;var h="vertical"===o?n:a;if(c=y-e-h,c>0)for(r=i.getLayout()[u]-c,"vertical"===o?i.setLayout({x:r},!0):i.setLayout({y:r},!0),y=r,d=g-2;d>=0;--d)i=t[d],c=i.getLayout()[u]+i.getLayout()[s]+e-y,c>0&&(r=i.getLayout()[u]-c,"vertical"===o?i.setLayout({x:r},!0):i.setLayout({y:r},!0)),y=i.getLayout()[u]})}function v(t,e,a){b.each(t.slice().reverse(),function(t){b.each(t,function(t){if(t.outEdges.length){var n=m(t.outEdges,L,a)/m(t.outEdges,E,a);if("vertical"===a){var o=t.getLayout().x+(n-p(t,a))*e;t.setLayout({x:o},!0)}else{var u=t.getLayout().y+(n-p(t,a))*e;t.setLayout({y:u},!0)}}})})}function L(t,e){return p(t.node2,e)*t.getValue()}function x(t,e){return p(t.node1,e)*t.getValue()}function p(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function E(t){return t.getValue()}function m(t,e,a){for(var n=0,o=t.length,u=-1;++u=0;p&&E.depth>v&&(v=E.depth),x.setLayout({depth:p?E.depth:f},!0),"vertical"===u?x.setLayout({dy:a},!0):x.setLayout({dx:a},!0);for(var m=0;mf-1?v:f-1;r&&"left"!==r&&c(t,r,u,b);var h="vertical"===u?(o-a)/b:(n-a)/b;s(t,h,u)}function g(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function c(t,e,a,n){if("right"===e){for(var o=[],u=t,r=0;u.length;){for(var i=0;i0;u--)g*=.99,v(i,g,r),l(i,o,a,n,r),w(i,g,r),l(i,o,a,n,r)}function f(t,e){var a=[],n="vertical"===e?"y":"x",o=D(t,function(t){return t.getLayout()[n]});return o.keys.sort(function(t,e){return t-e}),G.each(o.keys,function(t){a.push(o.buckets.get(t))}),a}function h(t,e,a,n,o,u){var r=1/0;G.each(t,function(t){var e=t.length,i=0;G.each(t,function(t){i+=t.getLayout().value});var g="vertical"===u?(n-(e-1)*o)/i:(a-(e-1)*o)/i;r>g&&(r=g)}),G.each(t,function(t){G.each(t,function(t,e){var a=t.getLayout().value*r;"vertical"===u?(t.setLayout({x:e},!0),t.setLayout({dx:a},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:a},!0))})}),G.each(e,function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)})}function l(t,e,a,n,o){var u="vertical"===o?"x":"y";G.each(t,function(t){t.sort(function(t,e){return t.getLayout()[u]-e.getLayout()[u]});for(var r,i,g,c=0,y=t.length,s="vertical"===o?"dx":"dy",d=0;y>d;d++)i=t[d],g=c-i.getLayout()[u],g>0&&(r=i.getLayout()[u]+g,"vertical"===o?i.setLayout({x:r},!0):i.setLayout({y:r},!0)),c=i.getLayout()[u]+i.getLayout()[s]+e;var f="vertical"===o?n:a;if(g=c-e-f,g>0)for(r=i.getLayout()[u]-g,"vertical"===o?i.setLayout({x:r},!0):i.setLayout({y:r},!0),c=r,d=y-2;d>=0;--d)i=t[d],g=i.getLayout()[u]+i.getLayout()[s]+e-c,g>0&&(r=i.getLayout()[u]-g,"vertical"===o?i.setLayout({x:r},!0):i.setLayout({y:r},!0)),c=i.getLayout()[u]})}function v(t,e,a){G.each(t.slice().reverse(),function(t){G.each(t,function(t){if(t.outEdges.length){var n=N(t.outEdges,L,a)/N(t.outEdges,k,a);if(isNaN(n)){var o=t.outEdges.length;n=o?N(t.outEdges,x,a)/o:0}if("vertical"===a){var u=t.getLayout().x+(n-m(t,a))*e;t.setLayout({x:u},!0)}else{var r=t.getLayout().y+(n-m(t,a))*e;t.setLayout({y:r},!0)}}})})}function L(t,e){return m(t.node2,e)*t.getValue()}function x(t,e){return m(t.node2,e)}function E(t,e){return m(t.node1,e)*t.getValue()}function p(t,e){return m(t.node1,e)}function m(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function k(t){return t.getValue()}function N(t,e,a){for(var n=0,o=t.length,u=-1;++ua&&(l=a),a>i&&(i=a)}),n.each(o,function(a){var o=new t({type:"color",mappingMethod:"linear",dataExtent:[l,i],visual:e.get("color")}),n=o.mapValueToVisual(a.getLayout().value),u=a.getModel().get("itemStyle.color");null!=u?a.setVisual("color",u):a.setVisual("color",n)})}})}var t=e("node_modules/echarts/lib/visual/VisualMapping"),n=e("node_modules/zrender/lib/core/util");o.exports=l}); ;/*!node_modules/echarts/lib/chart/sankey.js*/ @@ -671,7 +675,7 @@ amis.define("node_modules/echarts/lib/chart/candlestick/CandlestickView",functio ;/*!node_modules/echarts/lib/chart/candlestick/preprocessor.js*/ amis.define("node_modules/echarts/lib/chart/candlestick/preprocessor",function(e,s,i){function r(e){e&&c.isArray(e.series)&&c.each(e.series,function(e){c.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}var c=e("node_modules/zrender/lib/core/util");i.exports=r}); ;/*!node_modules/echarts/lib/chart/candlestick/candlestickVisual.js*/ -amis.define("node_modules/echarts/lib/chart/candlestick/candlestickVisual",function(e,r,o){var t=e("node_modules/echarts/lib/chart/helper/createRenderPlanner"),l=["itemStyle","borderColor"],n=["itemStyle","borderColor0"],i=["itemStyle","color"],a=["itemStyle","color0"],s={seriesType:"candlestick",plan:t(),performRawSeries:!0,reset:function(e,r){function o(e,r){for(var o;null!=(o=e.next());){var l=r.getItemModel(o),n=r.getItemLayout(o).sign;r.setItemVisual(o,{color:t(n,l),borderColor:s(n,l)})}}function t(e,r){return r.get(e>0?i:a)}function s(e,r){return r.get(e>0?l:n)}var c=e.getData(),d=e.pipelineContext.large;return c.setVisual({legendSymbol:"roundRect",colorP:t(1,e),colorN:t(-1,e),borderColorP:s(1,e),borderColorN:s(-1,e)}),r.isSeriesFiltered(e)?void 0:!d&&{progress:o}}};o.exports=s}); +amis.define("node_modules/echarts/lib/chart/candlestick/candlestickVisual",function(e,r,o){var t=e("node_modules/echarts/lib/chart/helper/createRenderPlanner"),l=["itemStyle","borderColor"],n=["itemStyle","borderColor0"],i=["itemStyle","color"],a=["itemStyle","color0"],s={seriesType:"candlestick",plan:t(),performRawSeries:!0,reset:function(e,r){function o(e,r){for(var o;null!=(o=e.next());){var l=r.getItemModel(o),n=r.getItemLayout(o).sign;r.setItemVisual(o,{color:t(n,l),borderColor:s(n,l)})}}function t(e,r){return r.get(e>0?i:a)}function s(e,r){return r.get(e>0?l:n)}var c=e.getData();if(c.setVisual({legendSymbol:"roundRect",colorP:t(1,e),colorN:t(-1,e),borderColorP:s(1,e),borderColorN:s(-1,e)}),!r.isSeriesFiltered(e)){var d=e.pipelineContext.large;return!d&&{progress:o}}}};o.exports=s}); ;/*!node_modules/echarts/lib/chart/candlestick/candlestickLayout.js*/ amis.define("node_modules/echarts/lib/chart/candlestick/candlestickLayout",function(e,t,n){function a(e,t,n,a,i){var r;return r=n>a?-1:a>n?1:t>0?e.get(i,t-1)<=a?1:-1:1}function i(e,t){var n,a=e.getBaseAxis(),i="category"===a.type?a.getBandWidth():(n=a.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=u(d(e.get("barMaxWidth"),i),i),o=u(d(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?u(s,i):Math.max(Math.min(i/2,r),o)}var r=e("node_modules/echarts/lib/util/graphic"),o=r.subPixelOptimize,s=e("node_modules/echarts/lib/chart/helper/createRenderPlanner"),l=e("node_modules/echarts/lib/util/number"),u=l.parsePercent,c=e("node_modules/zrender/lib/core/util"),d=c.retrieve2,g="undefined"!=typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:s(),reset:function(e){function t(e,t){function n(e,t){var n=[];return n[u]=t,n[c]=e,isNaN(t)||isNaN(e)?[0/0,0/0]:r.dataToPoint(n)}function i(e,t,n){var a=t.slice(),i=t.slice();a[u]=o(a[u]+l/2,1,!1),i[u]=o(i[u]-l/2,1,!0),n?e.push(a,i):e.push(i,a)}function s(e,t,a){var i=n(e,a),r=n(t,a);return i[u]-=l/2,r[u]-=l/2,{x:i[0],y:i[1],width:c?l:r[0]-i[0],height:c?r[1]-i[1]:l}}function d(e){return e[u]=o(e[u],1),e}for(var g;null!=(g=e.next());){var m=t.get(h,g),x=t.get(p,g),b=t.get(f,g),N=t.get(y,g),M=t.get(v,g),P=Math.min(x,b),W=Math.max(x,b),_=n(P,m),A=n(W,m),B=n(N,m),L=n(M,m),T=[];i(T,A,0),i(T,_,1),T.push(d(L),d(A),d(B),d(_)),t.setItemLayout(g,{sign:a(t,g,x,b,f),initBaseline:x>b?A[c]:_[c],ends:T,brushRect:s(N,M,m)})}}function n(e,t){for(var n,i,o=new g(4*e.count),s=0,l=[],d=[];null!=(i=e.next());){var m=t.get(h,i),x=t.get(p,i),b=t.get(f,i),N=t.get(y,i),M=t.get(v,i);isNaN(m)||isNaN(N)||isNaN(M)?(o[s++]=0/0,s+=3):(o[s++]=a(t,i,x,b,f),l[u]=m,l[c]=N,n=r.dataToPoint(l,null,d),o[s++]=n?n[0]:0/0,o[s++]=n?n[1]:0/0,l[c]=M,n=r.dataToPoint(l,null,d),o[s++]=n?n[1]:0/0)}t.setLayout("largePoints",o)}var r=e.coordinateSystem,s=e.getData(),l=i(e,s),u=0,c=1,d=["x","y"],h=s.mapDimension(d[u]),m=s.mapDimension(d[c],!0),p=m[0],f=m[1],y=m[2],v=m[3];return s.setLayout({candleWidth:l,isSimpleBox:1.3>=l}),null==h||m.length<4?void 0:{progress:e.pipelineContext.large?n:t}}};n.exports=h}); ;/*!node_modules/echarts/lib/chart/candlestick.js*/ @@ -679,7 +683,7 @@ amis.define("node_modules/echarts/lib/chart/candlestick",function(e){var s=e("no ;/*!node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js*/ amis.define("node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries",function(e,t,r){var i=e("node_modules/echarts/lib/chart/helper/createListFromArray"),s=e("node_modules/echarts/lib/model/Series"),c=s.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});r.exports=c}); ;/*!node_modules/echarts/lib/chart/helper/EffectSymbol.js*/ -amis.define("node_modules/echarts/lib/chart/helper/EffectSymbol",function(t,e,o){function i(t){return s.isArray(t)||(t=[+t,+t]),t}function l(t,e){var o=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?o:null,fill:"fill"===e.brushType?o:null}})})}function f(t,e){c.call(this);var o=new u(t,e),i=new c;this.add(o),this.add(i),i.beforeUpdate=function(){this.attr(o.getScale())},this.updateData(t,e)}var s=t("node_modules/zrender/lib/core/util"),r=t("node_modules/echarts/lib/util/symbol"),a=r.createSymbol,n=t("node_modules/echarts/lib/util/graphic"),c=n.Group,h=t("node_modules/echarts/lib/util/number"),p=h.parsePercent,u=t("node_modules/echarts/lib/chart/helper/Symbol"),d=3,m=f.prototype;m.stopEffectAnimation=function(){this.childAt(1).removeAll()},m.startEffectAnimation=function(t){for(var e=t.symbolType,o=t.color,i=this.childAt(1),f=0;d>f;f++){var s=a(e,-1,-1,2,2,o);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var r=-f/d*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(r).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(r).start(),i.add(s)}l(i,t)},m.updateEffectAnimation=function(t){for(var e=this._effectCfg,o=this.childAt(1),i=["symbolType","period","rippleScale"],f=0;ff;f++){var s=a(e,-1,-1,2,2,i);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var r=-f/m*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(r).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(r).start(),o.add(s)}l(o,t)},d.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),o=["symbolType","period","rippleScale"],f=0;fa;a++)o[a]=o[a]||[],o[a][0]=this._flatCoords[e+2*a],o[a][1]=this._flatCoords[e+2*a+1];return r}for(var s=this._getCoordsFromItemModel(t),a=0;al;){i++;var d=t[l++];r[n++]=s+o,r[n++]=d;for(var f=0;d>f;f++){var h=t[l++],u=t[l++];a[s++]=h,a[s++]=u}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,n),flatCoords:a,count:i}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t){var o=new n(["value"],this);return o.hasItemOption=!1,o.initData(t.data,[],function(t,e,r,a){if(t instanceof Array)return 0/0;o.hasItemOption=!0;var s=t.value;return null!=s?s instanceof Array?s[a]:s:void 0}),o},formatTooltip:function(t){var o=this.getData(),e=o.getItemModel(t),r=e.get("name");if(r)return r;var a=e.get("fromName"),s=e.get("toName"),n=[];return null!=a&&n.push(a),null!=s&&n.push(s),u(n.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;e.exports=m}); ;/*!node_modules/echarts/lib/chart/helper/EffectLine.js*/ -amis.define("node_modules/echarts/lib/chart/helper/EffectLine",function(t,e,i){function o(t,e,i){n.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var n=t("node_modules/echarts/lib/util/graphic"),a=t("node_modules/echarts/lib/chart/helper/Line"),r=t("node_modules/zrender/lib/core/util"),s=t("node_modules/echarts/lib/util/symbol"),l=s.createSymbol,c=t("node_modules/zrender/lib/core/vector"),d=t("node_modules/zrender/lib/core/curve"),u=o.prototype;u.createLine=function(t,e,i){return new a(t,e,i)},u._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),o=i.getModel("effect"),n=o.get("symbolSize"),a=o.get("symbol");r.isArray(n)||(n=[n,n]);var s=o.get("color")||t.getItemVisual(e,"color"),c=this.childAt(1);this._symbolType!==a&&(this.remove(c),c=l(a,-.5,-.5,1,1,s),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",s),c.setStyle(o.getItemStyle(["color"])),c.attr("scale",n),c.setColor(s),c.attr("scale",n),this._symbolType=a,this._updateEffectAnimation(t,o,e))},u._updateEffectAnimation=function(t,e,i){var o=this.childAt(1);if(o){var n=this,a=t.getItemLayout(i),s=1e3*e.get("period"),l=e.get("loop"),c=e.get("constantSpeed"),d=r.retrieve(e.get("delay"),function(e){return e/t.count()*s/3}),u="function"==typeof d;if(o.ignore=!0,this.updateAnimationPoints(o,a),c>0&&(s=this.getLineLength(o)/c*1e3),s!==this._period||l!==this._loop){o.stopAnimation();var _=d;u&&(_=d(i)),o.__t>0&&(_=-s*o.__t),o.__t=0;var p=o.animate("",l).when(s,{__t:1}).delay(_).during(function(){n.updateSymbolPosition(o)});l||p.done(function(){n.remove(o)}),p.start()}this._period=s,this._loop=l}},u.getLineLength=function(t){return c.dist(t.__p1,t.__cp1)+c.dist(t.__cp1,t.__p2)},u.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},u.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},u.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,o=t.__cp1,n=t.__t,a=t.position,r=d.quadraticAt,s=d.quadraticDerivativeAt;a[0]=r(e[0],o[0],i[0],n),a[1]=r(e[1],o[1],i[1],n);var l=s(e[0],o[0],i[0],n),c=s(e[1],o[1],i[1],n);t.rotation=-Math.atan2(c,l)-Math.PI/2,t.ignore=!1},u.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},r.inherits(o,n.Group);var _=o;i.exports=_}); +amis.define("node_modules/echarts/lib/chart/helper/EffectLine",function(t,e,i){function o(t,e,i){a.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var a=t("node_modules/echarts/lib/util/graphic"),n=t("node_modules/echarts/lib/chart/helper/Line"),s=t("node_modules/zrender/lib/core/util"),l=t("node_modules/echarts/lib/util/symbol"),r=l.createSymbol,c=t("node_modules/zrender/lib/core/vector"),_=t("node_modules/zrender/lib/core/curve"),d=o.prototype;d.createLine=function(t,e,i){return new n(t,e,i)},d._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),o=i.getModel("effect"),a=o.get("symbolSize"),n=o.get("symbol");s.isArray(a)||(a=[a,a]);var l=o.get("color")||t.getItemVisual(e,"color"),c=this.childAt(1);this._symbolType!==n&&(this.remove(c),c=r(n,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(o.getItemStyle(["color"])),c.attr("scale",a),c.setColor(l),c.attr("scale",a),this._symbolType=n,this._symbolScale=a,this._updateEffectAnimation(t,o,e))},d._updateEffectAnimation=function(t,e,i){var o=this.childAt(1);if(o){var a=this,n=t.getItemLayout(i),l=1e3*e.get("period"),r=e.get("loop"),c=e.get("constantSpeed"),_=s.retrieve(e.get("delay"),function(e){return e/t.count()*l/3}),d="function"==typeof _;if(o.ignore=!0,this.updateAnimationPoints(o,n),c>0&&(l=this.getLineLength(o)/c*1e3),l!==this._period||r!==this._loop){o.stopAnimation();var u=_;d&&(u=_(i)),o.__t>0&&(u=-l*o.__t),o.__t=0;var h=o.animate("",r).when(l,{__t:1}).delay(u).during(function(){a.updateSymbolPosition(o)});r||h.done(function(){a.remove(o)}),h.start()}this._period=l,this._loop=r}},d.getLineLength=function(t){return c.dist(t.__p1,t.__cp1)+c.dist(t.__cp1,t.__p2)},d.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},d.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},d.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,o=t.__cp1,a=t.__t,n=t.position,s=[n[0],n[1]],l=_.quadraticAt,r=_.quadraticDerivativeAt;n[0]=l(e[0],o[0],i[0],a),n[1]=l(e[1],o[1],i[1],a);var d=r(e[0],o[0],i[0],a),u=r(e[1],o[1],i[1],a);if(t.rotation=-Math.atan2(u,d)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastTv;++v){var p=t[v],f=p[0],m=p[1],_=p[2],b=e(_);g.globalAlpha=b,g.drawImage(s,f-d,m-d)}if(!u.width||!u.height)return u;for(var w=g.getImageData(0,0,u.width,u.height),z=w.data,C=0,S=z.length,x=this.minOpacity,y=this.maxOpacity,O=y-x;S>C;){var b=z[C+3]/256,P=4*Math.floor(b*(h-1));if(b>0){var I=n(b)?o:l;b>0&&(b=b*O+x),z[C++]=I[P],z[C++]=I[P+1],z[C++]=I[P+2],z[C++]=I[P+3]*b*256}else C+=4}return g.putImageData(w,0,0),u},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=r.createCanvas()),a=this.pointSize+this.blurSize,i=2*a;t.width=i,t.height=i;var e=t.getContext("2d");return e.clearRect(0,0,i,i),e.shadowOffsetX=i,e.shadowBlur=this.blurSize,e.shadowColor="#000",e.beginPath(),e.arc(-a,a,this.pointSize,0,2*Math.PI,!0),e.closePath(),e.fill(),t},_getGradient:function(t,a,i){for(var e=this._gradientPixels,r=e[i]||(e[i]=new Uint8ClampedArray(1024)),h=[0,0,0,0],n=0,s=0;256>s;s++)a[i](s/255,!0,h),r[n++]=h[0],r[n++]=h[1],r[n++]=h[2],r[n++]=h[3];return r}};var n=e;i.exports=n}); ;/*!node_modules/echarts/lib/chart/heatmap/HeatmapView.js*/ -amis.define("node_modules/echarts/lib/chart/heatmap/HeatmapView",function(e,t,a){function n(e,t,a){var n=e[1]-e[0];t=m.map(t,function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}});var i=t.length,r=0;return function(e){for(var n=r;i>n;n++){var o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}if(n===i)for(var n=r-1;n>=0;n--){var o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}return n>=0&&i>n&&a[n]}}function i(e,t){var a=e[1]-e[0];return t=[(t[0]-e[0])/a,(t[1]-e[0])/a],function(e){return e>=t[0]&&e<=t[1]}}function r(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var o=e("node_modules/echarts/lib/config"),l=(o.__DEV__,e("node_modules/echarts/lib/echarts")),s=e("node_modules/echarts/lib/util/graphic"),c=e("node_modules/echarts/lib/chart/heatmap/HeatmapLayer"),m=e("node_modules/zrender/lib/core/util"),d=l.extendChartView({type:"heatmap",render:function(e,t,a){var n;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(a){a===e&&(n=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):r(i)&&this._renderOnGeo(i,e,n,a)},incrementalPrepareRender:function(){this.group.removeAll()},incrementalRender:function(e,t,a,n){var i=t.coordinateSystem;i&&this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,a,n,i){var r,o,l=e.coordinateSystem;if("cartesian2d"===l.type){var c=l.getAxis("x"),d=l.getAxis("y");r=c.getBandWidth(),o=d.getBandWidth()}for(var g=this.group,u=e.getData(),p="itemStyle",h="emphasis.itemStyle",y="label",v="emphasis.label",f=e.getModel(p).getItemStyle(["color"]),M=e.getModel(h).getItemStyle(),x=e.getModel(y),S=e.getModel(v),_=l.type,b="cartesian2d"===_?[u.mapDimension("x"),u.mapDimension("y"),u.mapDimension("value")]:[u.mapDimension("time"),u.mapDimension("value")],D=a;n>D;D++){var I;if("cartesian2d"===_){if(isNaN(u.get(b[2],D)))continue;var O=l.dataToPoint([u.get(b[0],D),u.get(b[1],D)]);I=new s.Rect({shape:{x:Math.floor(O[0]-r/2),y:Math.floor(O[1]-o/2),width:Math.ceil(r),height:Math.ceil(o)},style:{fill:u.getItemVisual(D,"color"),opacity:u.getItemVisual(D,"opacity")}})}else{if(isNaN(u.get(b[1],D)))continue;I=new s.Rect({z2:1,shape:l.dataToRect([u.get(b[0],D)]).contentShape,style:{fill:u.getItemVisual(D,"color"),opacity:u.getItemVisual(D,"opacity")}})}var R=u.getItemModel(D);u.hasItemOption&&(f=R.getModel(p).getItemStyle(["color"]),M=R.getModel(h).getItemStyle(),x=R.getModel(y),S=R.getModel(v));var w=e.getRawValue(D),V="-";w&&null!=w[2]&&(V=w[2]),s.setLabelStyle(f,M,x,S,{labelFetcher:e,labelDataIndex:D,defaultText:V,isRectText:!0}),I.setStyle(f),s.setHoverStyle(I,u.hasItemOption?M:m.extend({},M)),I.incremental=i,i&&(I.useHoverLayer=!0),g.add(I),u.setItemGraphicEl(D,I)}},_renderOnGeo:function(e,t,a,r){var o=a.targetVisuals.inRange,l=a.targetVisuals.outOfRange,m=t.getData(),d=this._hmLayer||this._hmLayer||new c;d.blurSize=t.get("blurSize"),d.pointSize=t.get("pointSize"),d.minOpacity=t.get("minOpacity"),d.maxOpacity=t.get("maxOpacity");var g=e.getViewRect().clone(),u=e.getRoamTransform();g.applyTransform(u);var p=Math.max(g.x,0),h=Math.max(g.y,0),y=Math.min(g.width+g.x,r.getWidth()),v=Math.min(g.height+g.y,r.getHeight()),f=y-p,M=v-h,x=[m.mapDimension("lng"),m.mapDimension("lat"),m.mapDimension("value")],S=m.mapArray(x,function(t,a,n){var i=e.dataToPoint([t,a]);return i[0]-=p,i[1]-=h,i.push(n),i}),_=a.getExtent(),b="visualMap.continuous"===a.type?i(_,a.option.range):n(_,a.getPieceList(),a.option.selected);d.update(S,f,M,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},b);var D=new s.Image({style:{width:f,height:M,x:p,y:h,image:d.canvas},silent:!0});this.group.add(D)},dispose:function(){}});a.exports=d}); +amis.define("node_modules/echarts/lib/chart/heatmap/HeatmapView",function(e,t,a){function n(e,t,a){var n=e[1]-e[0];t=m.map(t,function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}});var i=t.length,r=0;return function(e){for(var n=r;i>n;n++){var o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}if(n===i)for(var n=r-1;n>=0;n--){var o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}return n>=0&&i>n&&a[n]}}function i(e,t){var a=e[1]-e[0];return t=[(t[0]-e[0])/a,(t[1]-e[0])/a],function(e){return e>=t[0]&&e<=t[1]}}function r(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var o=e("node_modules/echarts/lib/config"),l=(o.__DEV__,e("node_modules/echarts/lib/echarts")),s=e("node_modules/echarts/lib/util/graphic"),c=e("node_modules/echarts/lib/chart/heatmap/HeatmapLayer"),m=e("node_modules/zrender/lib/core/util"),d=l.extendChartView({type:"heatmap",render:function(e,t,a){var n;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(a){a===e&&(n=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):r(i)&&this._renderOnGeo(i,e,n,a)},incrementalPrepareRender:function(){this.group.removeAll()},incrementalRender:function(e,t,a,n){var i=t.coordinateSystem;i&&this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,a,n,i){var r,o,l=e.coordinateSystem;if("cartesian2d"===l.type){var c=l.getAxis("x"),d=l.getAxis("y");r=c.getBandWidth(),o=d.getBandWidth()}for(var g=this.group,u=e.getData(),h="itemStyle",p="emphasis.itemStyle",y="label",v="emphasis.label",f=e.getModel(h).getItemStyle(["color"]),M=e.getModel(p).getItemStyle(),x=e.getModel(y),S=e.getModel(v),_=l.type,b="cartesian2d"===_?[u.mapDimension("x"),u.mapDimension("y"),u.mapDimension("value")]:[u.mapDimension("time"),u.mapDimension("value")],D=a;n>D;D++){var I;if("cartesian2d"===_){if(isNaN(u.get(b[2],D)))continue;var O=l.dataToPoint([u.get(b[0],D),u.get(b[1],D)]);I=new s.Rect({shape:{x:Math.floor(Math.round(O[0])-r/2),y:Math.floor(Math.round(O[1])-o/2),width:Math.ceil(r),height:Math.ceil(o)},style:{fill:u.getItemVisual(D,"color"),opacity:u.getItemVisual(D,"opacity")}})}else{if(isNaN(u.get(b[1],D)))continue;I=new s.Rect({z2:1,shape:l.dataToRect([u.get(b[0],D)]).contentShape,style:{fill:u.getItemVisual(D,"color"),opacity:u.getItemVisual(D,"opacity")}})}var R=u.getItemModel(D);u.hasItemOption&&(f=R.getModel(h).getItemStyle(["color"]),M=R.getModel(p).getItemStyle(),x=R.getModel(y),S=R.getModel(v));var w=e.getRawValue(D),V="-";w&&null!=w[2]&&(V=w[2]),s.setLabelStyle(f,M,x,S,{labelFetcher:e,labelDataIndex:D,defaultText:V,isRectText:!0}),I.setStyle(f),s.setHoverStyle(I,u.hasItemOption?M:m.extend({},M)),I.incremental=i,i&&(I.useHoverLayer=!0),g.add(I),u.setItemGraphicEl(D,I)}},_renderOnGeo:function(e,t,a,r){var o=a.targetVisuals.inRange,l=a.targetVisuals.outOfRange,m=t.getData(),d=this._hmLayer||this._hmLayer||new c;d.blurSize=t.get("blurSize"),d.pointSize=t.get("pointSize"),d.minOpacity=t.get("minOpacity"),d.maxOpacity=t.get("maxOpacity");var g=e.getViewRect().clone(),u=e.getRoamTransform();g.applyTransform(u);var h=Math.max(g.x,0),p=Math.max(g.y,0),y=Math.min(g.width+g.x,r.getWidth()),v=Math.min(g.height+g.y,r.getHeight()),f=y-h,M=v-p,x=[m.mapDimension("lng"),m.mapDimension("lat"),m.mapDimension("value")],S=m.mapArray(x,function(t,a,n){var i=e.dataToPoint([t,a]);return i[0]-=h,i[1]-=p,i.push(n),i}),_=a.getExtent(),b="visualMap.continuous"===a.type?i(_,a.option.range):n(_,a.getPieceList(),a.option.selected);d.update(S,f,M,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},b);var D=new s.Image({style:{width:f,height:M,x:h,y:p,image:d.canvas},silent:!0});this.group.add(D)},dispose:function(){}});a.exports=d}); ;/*!node_modules/echarts/lib/chart/heatmap.js*/ amis.define("node_modules/echarts/lib/chart/heatmap",function(e){e("node_modules/echarts/lib/chart/heatmap/HeatmapSeries"),e("node_modules/echarts/lib/chart/heatmap/HeatmapView")}); ;/*!node_modules/echarts/lib/chart/bar/PictorialBarSeries.js*/ @@ -725,7 +729,7 @@ amis.define("node_modules/echarts/lib/coord/single/singleCreator",function(e){fu ;/*!node_modules/echarts/lib/coord/single/singleAxisHelper.js*/ amis.define("node_modules/echarts/lib/coord/single/singleAxisHelper",function(i,t){function e(i,t){t=t||{};var e=i.coordinateSystem,r=i.axis,a={},l=r.position,n=r.orient,c=e.getRect(),s=[c.x,c.x+c.width,c.y,c.y+c.height],d={horizontal:{top:s[2],bottom:s[3]},vertical:{left:s[0],right:s[1]}};a.position=["vertical"===n?d.vertical[l]:s[0],"horizontal"===n?d.horizontal[l]:s[3]];var b={horizontal:0,vertical:1};a.rotation=Math.PI/2*b[n];var h={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=h[l],i.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),o.retrieve(t.labelInside,i.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var v=t.rotate;return null==v&&(v=i.get("axisLabel.rotate")),a.labelRotation="top"===l?-v:v,a.z2=1,a}var o=i("node_modules/zrender/lib/core/util");t.layout=e}); ;/*!node_modules/echarts/lib/component/axis/SingleAxisView.js*/ -amis.define("node_modules/echarts/lib/component/axis/SingleAxisView",function(e,i,t){var s=e("node_modules/zrender/lib/core/util"),l=e("node_modules/echarts/lib/component/axis/AxisBuilder"),o=e("node_modules/echarts/lib/util/graphic"),n=e("node_modules/echarts/lib/coord/single/singleAxisHelper"),r=e("node_modules/echarts/lib/component/axis/AxisView"),a=["axisLine","axisTickLabel","axisName"],d="splitLine",h=r.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,i,t,o){var r=this.group;r.removeAll();var c=n.layout(e),g=new l(e,c);s.each(a,g.add,g),r.add(g.getGroup()),e.get(d+".show")&&this["_"+d](e),h.superCall(this,"render",e,i,t,o)},_splitLine:function(e){var i=e.axis;if(!i.scale.isBlank()){var t=e.getModel("splitLine"),s=t.getModel("lineStyle"),l=s.get("width"),n=s.get("color");n=n instanceof Array?n:[n];for(var r=e.coordinateSystem.getRect(),a=i.isHorizontal(),d=[],h=0,c=i.getTicksCoords({tickModel:t}),g=[],x=[],u=0;ua&&(a=0),o.isArray(e.value)?e.value[0]=a:e.value=a}var o=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/model/Series"),n=e("node_modules/echarts/lib/data/Tree"),s=e("node_modules/echarts/lib/chart/helper/treeHelper"),l=s.wrapTreePathInfo,d=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e){var t={name:e.name,children:e.data};i(t);var a=e.levels||[],o={};return o.levels=a,n.createTree(t,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(a,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)}});a.exports=d}); +amis.define("node_modules/echarts/lib/chart/sunburst/SunburstSeries",function(e,t,a){function i(e){var t=0;o.each(e.children,function(e){i(e);var a=e.value;o.isArray(a)&&(a=a[0]),t+=a});var a=e.value;o.isArray(a)&&(a=a[0]),(null==a||isNaN(a))&&(a=t),0>a&&(a=0),o.isArray(e.value)?e.value[0]=a:e.value=a}var o=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/model/Series"),n=e("node_modules/echarts/lib/data/Tree"),s=e("node_modules/echarts/lib/chart/helper/treeHelper"),l=s.wrapTreePathInfo,d=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e){var t={name:e.name,children:e.data};i(t);var a=e.levels||[],o={};return o.levels=a,n.createTree(t,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(a,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)}});a.exports=d}); ;/*!node_modules/echarts/lib/chart/sunburst/SunburstPiece.js*/ -amis.define("node_modules/echarts/lib/chart/sunburst/SunburstPiece",function(e,t,o){function n(e,t,o){function n(){l.ignore=l.hoverIgnore}function a(){l.ignore=l.normalIgnore}h.Group.call(this);var i=new h.Sector({z2:u});i.seriesIndex=t.seriesIndex;var l=new h.Text({z2:c,silent:e.getModel("label").get("silent")});this.add(i),this.add(l),this.updateData(!0,e,"normal",t,o),this.on("emphasis",n).on("normal",a).on("mouseover",n).on("mouseout",a)}function a(e,t,o){var n=e.getVisual("color"),a=e.getVisual("visualMeta");a&&0!==a.length||(n=null);var l=e.getModel("itemStyle").get("color");if(l)return l;if(n)return n;if(0===e.depth)return o.option.color[0];var r=o.option.color.length;return l=o.option.color[i(e)%r]}function i(e){for(var t=e;t.depth>1;)t=t.parentNode;var o=e.getAncestors()[0];return s.indexOf(o.children,t)}function l(e,t,o){return o===d.NONE?!1:o===d.SELF?e===t:o===d.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t)}function r(e,t,o){var n=t.getData();n.setItemVisual(e.dataIndex,"color",o)}var s=e("node_modules/zrender/lib/core/util"),h=e("node_modules/echarts/lib/util/graphic"),d={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},u=2,c=4,g=n.prototype;g.updateData=function(e,t,o,n,i){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var l=this.childAt(0);l.dataIndex=t.dataIndex;var d=t.getModel(),u=t.getLayout(),c=s.extend({},u);c.label=null;var g=a(t,n,i);r(t,n,g);var p,f=d.getModel("itemStyle").getItemStyle();if("normal"===o)p=f;else{var m=d.getModel(o+".itemStyle").getItemStyle();p=s.merge(m,f)}p=s.defaults({lineJoin:"bevel",fill:p.fill||g},p),e?(l.setShape(c),l.shape.r=u.r0,h.updateProps(l,{shape:{r:u.r}},n,t.dataIndex),l.useStyle(p)):"object"==typeof p.fill&&p.fill.type||"object"==typeof l.style.fill&&l.style.fill.type?(h.updateProps(l,{shape:c},n),l.useStyle(p)):h.updateProps(l,{shape:c,style:p},n),this._updateLabel(n,g,o);var v=d.getShallow("cursor");if(v&&l.attr("cursor",v),e){var y=n.getShallow("highlightPolicy");this._initEvents(l,t,n,y)}this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel},g.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode(function(o){o.piece&&(t.node===o?o.piece.updateData(!1,o,"emphasis"):l(o,t.node,e)?o.piece.childAt(0).trigger("highlight"):e!==d.NONE&&o.piece.childAt(0).trigger("downplay"))})},g.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},g.onHighlight=function(){this.updateData(!1,this.node,"highlight")},g.onDownplay=function(){this.updateData(!1,this.node,"downplay")},g._updateLabel=function(e,t,o){function n(e){var t=l.get(e);return null==t?i.get(e):t}var a=this.node.getModel(),i=a.getModel("label"),l="normal"===o||"emphasis"===o?i:a.getModel(o+".label"),r=a.getModel("emphasis.label"),d=s.retrieve(e.getFormattedLabel(this.node.dataIndex,o,null,null,"label"),this.node.name);n("show")===!1&&(d="");var u=this.node.getLayout(),c=l.get("minAngle");null==c&&(c=i.get("minAngle")),c=c/180*Math.PI;var g=u.endAngle-u.startAngle;null!=c&&Math.abs(g)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(f=u.r0+I,m>Math.PI/2&&(b="right")):"right"===b&&(f=u.r-I,m>Math.PI/2&&(b="left")):(f=(u.r+u.r0)/2,b="center"),p.attr("style",{text:d,textAlign:b,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var S=f*v+u.cx,A=f*y+u.cy;p.attr("position",[S,A]);var P=n("rotate"),x=0;"radial"===P?(x=-m,x<-Math.PI/2&&(x+=Math.PI)):"tangential"===P?(x=Math.PI/2-m,x>Math.PI/2?x-=Math.PI:x<-Math.PI/2&&(x+=Math.PI)):"number"==typeof P&&(x=P*Math.PI/180),p.attr("rotation",x)},g._initEvents=function(e,t,o,n){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,i=function(){a.onEmphasis(n)},l=function(){a.onNormal()},r=function(){a.onDownplay()},s=function(){a.onHighlight()};o.isAnimationEnabled()&&e.on("mouseover",i).on("mouseout",l).on("emphasis",i).on("normal",l).on("downplay",r).on("highlight",s)},s.inherits(n,h.Group);var p=n;o.exports=p}); +amis.define("node_modules/echarts/lib/chart/sunburst/SunburstPiece",function(e,t,o){function n(e,t,o){function n(){l.ignore=l.hoverIgnore}function i(){l.ignore=l.normalIgnore}h.Group.call(this);var a=new h.Sector({z2:u});a.seriesIndex=t.seriesIndex;var l=new h.Text({z2:c,silent:e.getModel("label").get("silent")});this.add(a),this.add(l),this.updateData(!0,e,"normal",t,o),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function i(e,t,o){var n=e.getVisual("color"),i=e.getVisual("visualMeta");i&&0!==i.length||(n=null);var l=e.getModel("itemStyle").get("color");if(l)return l;if(n)return n;if(0===e.depth)return o.option.color[0];var r=o.option.color.length;return l=o.option.color[a(e)%r]}function a(e){for(var t=e;t.depth>1;)t=t.parentNode;var o=e.getAncestors()[0];return s.indexOf(o.children,t)}function l(e,t,o){return o===d.NONE?!1:o===d.SELF?e===t:o===d.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t)}function r(e,t,o){var n=t.getData();n.setItemVisual(e.dataIndex,"color",o)}var s=e("node_modules/zrender/lib/core/util"),h=e("node_modules/echarts/lib/util/graphic"),d={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},u=2,c=4,g=n.prototype;g.updateData=function(e,t,o,n,a){this.node=t,t.piece=this,n=n||this._seriesModel,a=a||this._ecModel;var l=this.childAt(0);l.dataIndex=t.dataIndex;var d=t.getModel(),u=t.getLayout(),c=s.extend({},u);c.label=null;var g=i(t,n,a);r(t,n,g);var p,f=d.getModel("itemStyle").getItemStyle();if("normal"===o)p=f;else{var m=d.getModel(o+".itemStyle").getItemStyle();p=s.merge(m,f)}p=s.defaults({lineJoin:"bevel",fill:p.fill||g},p),e?(l.setShape(c),l.shape.r=u.r0,h.updateProps(l,{shape:{r:u.r}},n,t.dataIndex),l.useStyle(p)):"object"==typeof p.fill&&p.fill.type||"object"==typeof l.style.fill&&l.style.fill.type?(h.updateProps(l,{shape:c},n),l.useStyle(p)):h.updateProps(l,{shape:c,style:p},n),this._updateLabel(n,g,o);var v=d.getShallow("cursor");if(v&&l.attr("cursor",v),e){var y=n.getShallow("highlightPolicy");this._initEvents(l,t,n,y)}this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel,h.setHoverStyle(this)},g.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode(function(o){o.piece&&(t.node===o?o.piece.updateData(!1,o,"emphasis"):l(o,t.node,e)?o.piece.childAt(0).trigger("highlight"):e!==d.NONE&&o.piece.childAt(0).trigger("downplay"))})},g.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},g.onHighlight=function(){this.updateData(!1,this.node,"highlight")},g.onDownplay=function(){this.updateData(!1,this.node,"downplay")},g._updateLabel=function(e,t,o){function n(e){var t=l.get(e);return null==t?a.get(e):t}var i=this.node.getModel(),a=i.getModel("label"),l="normal"===o||"emphasis"===o?a:i.getModel(o+".label"),r=i.getModel("emphasis.label"),d=s.retrieve(e.getFormattedLabel(this.node.dataIndex,o,null,null,"label"),this.node.name);n("show")===!1&&(d="");var u=this.node.getLayout(),c=l.get("minAngle");null==c&&(c=a.get("minAngle")),c=c/180*Math.PI;var g=u.endAngle-u.startAngle;null!=c&&Math.abs(g)Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(f=u.r0+I,m>Math.PI/2&&(S="right")):"right"===S&&(f=u.r-I,m>Math.PI/2&&(S="left")):(f=(u.r+u.r0)/2,S="center"),p.attr("style",{text:d,textAlign:S,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var b=f*v+u.cx,A=f*y+u.cy;p.attr("position",[b,A]);var P=n("rotate"),x=0;"radial"===P?(x=-m,x<-Math.PI/2&&(x+=Math.PI)):"tangential"===P?(x=Math.PI/2-m,x>Math.PI/2?x-=Math.PI:x<-Math.PI/2&&(x+=Math.PI)):"number"==typeof P&&(x=P*Math.PI/180),p.attr("rotation",x)},g._initEvents=function(e,t,o,n){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var i=this,a=function(){i.onEmphasis(n)},l=function(){i.onNormal()},r=function(){i.onDownplay()},s=function(){i.onHighlight()};o.isAnimationEnabled()&&e.on("mouseover",a).on("mouseout",l).on("emphasis",a).on("normal",l).on("downplay",r).on("highlight",s)},s.inherits(n,h.Group);var p=n;o.exports=p}); ;/*!node_modules/echarts/lib/chart/sunburst/SunburstView.js*/ -amis.define("node_modules/echarts/lib/chart/sunburst/SunburstView",function(e,i,t){var n=e("node_modules/zrender/lib/core/util"),o=e("node_modules/echarts/lib/view/Chart"),r=e("node_modules/echarts/lib/chart/sunburst/SunburstPiece"),c=e("node_modules/echarts/lib/data/DataDiffer"),l="sunburstRootToNode",a=o.extend({type:"sunburst",init:function(){},render:function(e,i,t,o){function l(e,i){function t(e){return e.getId()}function o(t,n){var o=null==t?null:e[t],r=null==n?null:i[n];a(o,r)}(0!==e.length||0!==i.length)&&new c(i,e,t,t).add(o).update(o).remove(n.curry(o,null)).execute()}function a(t,n){if(f||!t||t.getValue()||(t=null),t!==p&&n!==p)if(n&&n.piece)t?(n.piece.updateData(!1,t,"normal",e,i),h.setItemGraphicEl(t.dataIndex,n.piece)):u(n);else if(t){var o=new r(t,e,i);v.add(o),h.setItemGraphicEl(t.dataIndex,o)}}function u(e){e&&e.piece&&(v.remove(e.piece),e.piece=null)}function s(t,n){if(n.depth>0){d.virtualPiece?d.virtualPiece.updateData(!1,t,"normal",e,i):(d.virtualPiece=new r(t,e,i),v.add(d.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var o=function(){d._rootToNode(n.parentNode)};n.piece._onclickEvent=o,d.virtualPiece.on("click",o)}else d.virtualPiece&&(v.remove(d.virtualPiece),d.virtualPiece=null)}var d=this;this.seriesModel=e,this.api=t,this.ecModel=i;var h=e.getData(),p=h.tree.root,g=e.getViewRoot(),v=this.group,f=e.get("renderLabelForZeroData"),_=[];g.eachNode(function(e){_.push(e)});var m=this._oldChildren||[];if(l(_,m),s(p,g),o&&o.highlight&&o.highlight.piece){var k=e.getShallow("highlightPolicy");o.highlight.piece.onEmphasis(k)}else if(o&&o.unhighlight){var b=this.virtualPiece;!b&&p.children.length&&(b=p.children[0].piece),b&&b.onNormal()}this._initEvents(),this._oldChildren=_},dispose:function(){},_initEvents:function(){var e=this,i=function(i){var t=!1,n=e.seriesModel.getViewRoot();n.eachNode(function(n){if(!t&&n.piece&&n.piece.childAt(0)===i.target){var o=n.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(n);else if("link"===o){var r=n.getModel(),c=r.get("link");if(c){var l=r.get("target",!0)||"_blank";window.open(c,l)}}t=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",i),this.group._onclickEvent=i},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:l,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,i){var t=i.getData(),n=t.getItemLayout(0);if(n){var o=e[0]-n.cx,r=e[1]-n.cy,c=Math.sqrt(o*o+r*r);return c<=n.r&&c>=n.r0}}}),u=a;t.exports=u}); +amis.define("node_modules/echarts/lib/chart/sunburst/SunburstView",function(e,i,t){var o=e("node_modules/zrender/lib/core/util"),n=e("node_modules/echarts/lib/view/Chart"),r=e("node_modules/echarts/lib/chart/sunburst/SunburstPiece"),l=e("node_modules/echarts/lib/data/DataDiffer"),c=e("node_modules/echarts/lib/util/format"),a=c.windowOpen,u="sunburstRootToNode",s=n.extend({type:"sunburst",init:function(){},render:function(e,i,t,n){function c(e,i){function t(e){return e.getId()}function n(t,o){var n=null==t?null:e[t],r=null==o?null:i[o];a(n,r)}(0!==e.length||0!==i.length)&&new l(i,e,t,t).add(n).update(n).remove(o.curry(n,null)).execute()}function a(t,o){if(v||!t||t.getValue()||(t=null),t!==p&&o!==p)if(o&&o.piece)t?(o.piece.updateData(!1,t,"normal",e,i),h.setItemGraphicEl(t.dataIndex,o.piece)):u(o);else if(t){var n=new r(t,e,i);g.add(n),h.setItemGraphicEl(t.dataIndex,n)}}function u(e){e&&e.piece&&(g.remove(e.piece),e.piece=null)}function s(t,o){if(o.depth>0){d.virtualPiece?d.virtualPiece.updateData(!1,t,"normal",e,i):(d.virtualPiece=new r(t,e,i),g.add(d.virtualPiece)),o.piece._onclickEvent&&o.piece.off("click",o.piece._onclickEvent);var n=function(){d._rootToNode(o.parentNode)};o.piece._onclickEvent=n,d.virtualPiece.on("click",n)}else d.virtualPiece&&(g.remove(d.virtualPiece),d.virtualPiece=null)}var d=this;this.seriesModel=e,this.api=t,this.ecModel=i;var h=e.getData(),p=h.tree.root,f=e.getViewRoot(),g=this.group,v=e.get("renderLabelForZeroData"),_=[];f.eachNode(function(e){_.push(e)});var m=this._oldChildren||[];if(c(_,m),s(p,f),n&&n.highlight&&n.highlight.piece){var b=e.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(b)}else if(n&&n.unhighlight){var k=this.virtualPiece;!k&&p.children.length&&(k=p.children[0].piece),k&&k.onNormal()}this._initEvents(),this._oldChildren=_},dispose:function(){},_initEvents:function(){var e=this,i=function(i){var t=!1,o=e.seriesModel.getViewRoot();o.eachNode(function(o){if(!t&&o.piece&&o.piece.childAt(0)===i.target){var n=o.getModel().get("nodeClick");if("rootToNode"===n)e._rootToNode(o);else if("link"===n){var r=o.getModel(),l=r.get("link");if(l){var c=r.get("target",!0)||"_blank";a(l,c)}}t=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",i),this.group._onclickEvent=i},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:u,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,i){var t=i.getData(),o=t.getItemLayout(0);if(o){var n=e[0]-o.cx,r=e[1]-o.cy,l=Math.sqrt(n*n+r*r);return l<=o.r&&l>=o.r0}}}),d=s;t.exports=d}); ;/*!node_modules/echarts/lib/chart/sunburst/sunburstAction.js*/ amis.define("node_modules/echarts/lib/chart/sunburst/sunburstAction",function(e){var t=e("node_modules/echarts/lib/echarts"),n=e("node_modules/echarts/lib/chart/helper/treeHelper"),i="sunburstRootToNode";t.registerAction({type:i,update:"updateView"},function(e,t){function r(t){var r=n.retrieveTargetInfo(e,[i],t);if(r){var o=t.getViewRoot();o&&(e.direction=n.aboveViewRoot(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},r)});var r="sunburstHighlight";t.registerAction({type:r,update:"updateView"},function(e,t){function i(t){var i=n.retrieveTargetInfo(e,[r],t);i&&(e.highlight=i.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)});var o="sunburstUnhighlight";t.registerAction({type:o,update:"updateView"},function(e,t){function n(){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})}); ;/*!node_modules/echarts/lib/chart/sunburst/sunburstLayout.js*/ @@ -787,7 +791,7 @@ amis.define("node_modules/echarts/lib/chart/custom",function(e){function t(e){va ;/*!node_modules/echarts/lib/component/grid.js*/ amis.define("node_modules/echarts/lib/component/grid",function(e){e("node_modules/echarts/lib/component/gridSimple"),e("node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer"),e("node_modules/echarts/lib/component/axisPointer")}); ;/*!node_modules/echarts/lib/layout/barPolar.js*/ -amis.define("node_modules/echarts/lib/layout/barPolar",function(t,a,e){function i(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function n(t,a){return a.dim+t.model.componentIndex}function r(t,a){var e={},r=d(o.filter(a.getSeriesByType(t),function(t){return!a.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));a.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var a=t.getData(),d=t.coordinateSystem,o=d.getBaseAxis(),s=n(d,o),h=i(t),c=r[s][h],m=c.offset,g=c.width,l=d.getOtherAxis(o),p=t.coordinateSystem.cx,y=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,v=t.get("barMinAngle")||0;e[h]=e[h]||[];for(var b=a.mapDimension(l.dim),x=a.mapDimension(o.dim),W=u(a,b),w="radius"!==o.dim||!t.get("roundCap",!0),M=l.getExtent()[0],S=0,A=a.count();A>S;S++){var _=a.get(b,S),k=a.get(x,S);if(!isNaN(_)){var T=_>=0?"p":"n",B=M;W&&(e[h][k]||(e[h][k]={p:M,n:M}),B=e[h][k][T]);var C,D,G,I;if("radius"===l.dim){var P=l.dataToRadius(_)-M,E=o.dataToAngle(k);Math.abs(P)P?-1:1)*f),C=B,D=B+P,G=E-m,I=G-g,W&&(e[h][k][T]=D)}else{var H=l.dataToAngle(_,w)-M,N=o.dataToRadius(k);Math.abs(H)H?-1:1)*v),C=N+m,D=C+g,G=B,I=B+H,W&&(e[h][k][T]=I)}a.setItemLayout(S,{cx:p,cy:y,r0:C,r:D,startAngle:-G*Math.PI/180,endAngle:-I*Math.PI/180})}}}},this)}function d(t){var a={};o.each(t,function(t){var e=t.getData(),r=t.coordinateSystem,d=r.getBaseAxis(),o=n(r,d),s=d.getExtent(),c="category"===d.type?d.getBandWidth():Math.abs(s[1]-s[0])/e.count(),u=a[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},m=u.stacks;a[o]=u;var g=i(t);m[g]||u.autoWidthCount++,m[g]=m[g]||{width:0,maxWidth:0};var l=h(t.get("barWidth"),c),p=h(t.get("barMaxWidth"),c),y=t.get("barGap"),f=t.get("barCategoryGap");l&&!m[g].width&&(l=Math.min(u.remainedWidth,l),m[g].width=l,u.remainedWidth-=l),p&&(m[g].maxWidth=p),null!=y&&(u.gap=y),null!=f&&(u.categoryGap=f)});var e={};return o.each(a,function(t,a){e[a]={};var i=t.stacks,n=t.bandWidth,r=h(t.categoryGap,n),d=h(t.gap,1),s=t.remainedWidth,c=t.autoWidthCount,u=(s-r)/(c+(c-1)*d);u=Math.max(u,0),o.each(i,function(t){var a=t.maxWidth;a&&u>a&&(a=Math.min(a,s),t.width&&(a=Math.min(a,t.width)),s-=a,t.width=a,c--)}),u=(s-r)/(c+(c-1)*d),u=Math.max(u,0);var m,g=0;o.each(i,function(t){t.width||(t.width=u),m=t,g+=t.width*(1+d)}),m&&(g-=m.width*d);var l=-g/2;o.each(i,function(t,i){e[a][i]=e[a][i]||{offset:l,width:t.width},l+=t.width*(1+d)})}),e}var o=t("node_modules/zrender/lib/core/util"),s=t("node_modules/echarts/lib/util/number"),h=s.parsePercent,c=t("node_modules/echarts/lib/data/helper/dataStackHelper"),u=c.isDimensionStacked,m=r;e.exports=m}); +amis.define("node_modules/echarts/lib/layout/barPolar",function(t,e,a){function i(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function n(t,e){return e.dim+t.model.componentIndex}function r(t,e){var a={},r=d(o.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),d=t.coordinateSystem,o=d.getBaseAxis(),s=n(d,o),h=i(t),c=r[s][h],m=c.offset,g=c.width,l=d.getOtherAxis(o),p=t.coordinateSystem.cx,y=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,b=t.get("barMinAngle")||0;a[h]=a[h]||[];for(var v=e.mapDimension(l.dim),x=e.mapDimension(o.dim),W=u(e,v),w="radius"!==o.dim||!t.get("roundCap",!0),M=l.getExtent()[0],S=0,A=e.count();A>S;S++){var _=e.get(v,S),k=e.get(x,S),T=_>=0?"p":"n",B=M;W&&(a[h][k]||(a[h][k]={p:M,n:M}),B=a[h][k][T]);var C,D,G,I;if("radius"===l.dim){var P=l.dataToRadius(_)-M,E=o.dataToAngle(k);Math.abs(P)P?-1:1)*f),C=B,D=B+P,G=E-m,I=G-g,W&&(a[h][k][T]=D)}else{var H=l.dataToAngle(_,w)-M,R=o.dataToRadius(k);Math.abs(H)H?-1:1)*b),C=R+m,D=C+g,G=B,I=B+H,W&&(a[h][k][T]=I)}e.setItemLayout(S,{cx:p,cy:y,r0:C,r:D,startAngle:-G*Math.PI/180,endAngle:-I*Math.PI/180})}}},this)}function d(t){var e={};o.each(t,function(t){var a=t.getData(),r=t.coordinateSystem,d=r.getBaseAxis(),o=n(r,d),s=d.getExtent(),c="category"===d.type?d.getBandWidth():Math.abs(s[1]-s[0])/a.count(),u=e[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},m=u.stacks;e[o]=u;var g=i(t);m[g]||u.autoWidthCount++,m[g]=m[g]||{width:0,maxWidth:0};var l=h(t.get("barWidth"),c),p=h(t.get("barMaxWidth"),c),y=t.get("barGap"),f=t.get("barCategoryGap");l&&!m[g].width&&(l=Math.min(u.remainedWidth,l),m[g].width=l,u.remainedWidth-=l),p&&(m[g].maxWidth=p),null!=y&&(u.gap=y),null!=f&&(u.categoryGap=f)});var a={};return o.each(e,function(t,e){a[e]={};var i=t.stacks,n=t.bandWidth,r=h(t.categoryGap,n),d=h(t.gap,1),s=t.remainedWidth,c=t.autoWidthCount,u=(s-r)/(c+(c-1)*d);u=Math.max(u,0),o.each(i,function(t){var e=t.maxWidth;e&&u>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,c--)}),u=(s-r)/(c+(c-1)*d),u=Math.max(u,0);var m,g=0;o.each(i,function(t){t.width||(t.width=u),m=t,g+=t.width*(1+d)}),m&&(g-=m.width*d);var l=-g/2;o.each(i,function(t,i){a[e][i]=a[e][i]||{offset:l,width:t.width},l+=t.width*(1+d)})}),a}var o=t("node_modules/zrender/lib/core/util"),s=t("node_modules/echarts/lib/util/number"),h=s.parsePercent,c=t("node_modules/echarts/lib/data/helper/dataStackHelper"),u=c.isDimensionStacked,m=r;a.exports=m}); ;/*!node_modules/echarts/lib/coord/polar/RadiusAxis.js*/ amis.define("node_modules/echarts/lib/coord/polar/RadiusAxis",function(o,t,a){function r(o,t){e.call(this,"radius",o,t),this.type="category"}var i=o("node_modules/zrender/lib/core/util"),e=o("node_modules/echarts/lib/coord/Axis");r.prototype={constructor:r,pointToData:function(o,t){return this.polar.pointToData(o,t)["radius"===this.dim?0:1]},dataToRadius:e.prototype.dataToCoord,radiusToData:e.prototype.coordToData},i.inherits(r,e);var d=r;a.exports=d}); ;/*!node_modules/echarts/lib/coord/polar/AngleAxis.js*/ @@ -819,7 +823,7 @@ amis.define("node_modules/echarts/lib/component/geo/GeoView",function(e,o,t){var ;/*!node_modules/echarts/lib/component/geo.js*/ amis.define("node_modules/echarts/lib/component/geo",function(e){function o(e,o){o.update="updateView",n.registerAction(o,function(o,n){var c={};return n.eachComponent({mainType:"geo",query:o},function(n){n[e](o.name);var l=n.coordinateSystem;t.each(l.regions,function(e){c[e.name]=n.isSelected(e.name)||!1})}),{selected:c,name:o.name}})}var n=e("node_modules/echarts/lib/echarts"),t=e("node_modules/zrender/lib/core/util");e("node_modules/echarts/lib/coord/geo/GeoModel"),e("node_modules/echarts/lib/coord/geo/geoCreator"),e("node_modules/echarts/lib/component/geo/GeoView"),e("node_modules/echarts/lib/action/geoRoam"),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})}); ;/*!node_modules/echarts/lib/coord/calendar/Calendar.js*/ -amis.define("node_modules/echarts/lib/coord/calendar/Calendar",function(t,e,i){function n(t){this._model=t}function a(t,e,i,n){var a=i.calendarModel,r=i.seriesModel,s=a?a.coordinateSystem:r?r.coordinateSystem:null;return s===this?s[t](n):null}var r=t("node_modules/zrender/lib/core/util"),s=t("node_modules/echarts/lib/util/layout"),o=t("node_modules/echarts/lib/util/number"),h=t("node_modules/echarts/lib/CoordinateSystem"),d=864e5;n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=o.parseDate(t);var e=t.getFullYear(),i=t.getMonth()+1;i=10>i?"0"+i:i;var n=t.getDate();n=10>n?"0"+n:n;var a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),h=this._model.getBoxLayoutParams(),d="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],function(t){i(o,t)&&(h[a[t]]=o[t]*d[t])});var l={width:e.getWidth(),height:e.getHeight()},g=this._rect=s.getLayoutRect(h,l);r.each([0,1],function(t){i(o,t)||(o[t]=g[a[t]]/d[t])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){r.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.times.end.time&&t.reverse(),t},_getRangeInfo:function(t){t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];var e;t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/d)-Math.floor(t[0].time/d)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==r)for(var s=n.getTime()-t[1].time>0?1:-1;n.getDate()!==r&&(n.getTime()-t[1].time)*s>0;)i-=s,n.setDate(a+i-1);var o=Math.floor((i+t[0].day+6)/7),h=e?-o+1:o-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:o,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},n.dimensions=n.prototype.dimensions,n.getDimensionsInfo=n.prototype.getDimensionsInfo,n.create=function(t,e){var i=[];return t.eachComponent("calendar",function(a){var r=new n(a,t,e);i.push(r),a.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},h.register("calendar",n);var l=n;i.exports=l}); +amis.define("node_modules/echarts/lib/coord/calendar/Calendar",function(t,e,i){function n(t){this._model=t}function a(t,e,i,n){var a=i.calendarModel,r=i.seriesModel,s=a?a.coordinateSystem:r?r.coordinateSystem:null;return s===this?s[t](n):null}var r=t("node_modules/zrender/lib/core/util"),s=t("node_modules/echarts/lib/util/layout"),o=t("node_modules/echarts/lib/util/number"),h=t("node_modules/echarts/lib/CoordinateSystem"),d=864e5;n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=o.parseDate(t);var e=t.getFullYear(),i=t.getMonth()+1;i=10>i?"0"+i:i;var n=t.getDate();n=10>n?"0"+n:n;var a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),h=this._model.getBoxLayoutParams(),d="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],function(t){i(o,t)&&(h[a[t]]=o[t]*d[t])});var l={width:e.getWidth(),height:e.getHeight()},g=this._rect=s.getLayoutRect(h,l);r.each([0,1],function(t){i(o,t)||(o[t]=g[a[t]]/d[t])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){r.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.times.end.time&&t.reverse(),t},_getRangeInfo:function(t){t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];var e;t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/d)-Math.floor(t[0].time/d)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();n.setDate(a+i-1);var s=n.getDate();if(s!==r)for(var o=n.getTime()-t[1].time>0?1:-1;(s=n.getDate())!==r&&(n.getTime()-t[1].time)*o>0;)i-=o,n.setDate(s-o);var h=Math.floor((i+t[0].day+6)/7),l=e?-h+1:h-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:h,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},n.dimensions=n.prototype.dimensions,n.getDimensionsInfo=n.prototype.getDimensionsInfo,n.create=function(t,e){var i=[];return t.eachComponent("calendar",function(a){var r=new n(a,t,e);i.push(r),a.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},h.register("calendar",n);var l=n;i.exports=l}); ;/*!node_modules/echarts/lib/coord/calendar/CalendarModel.js*/ amis.define("node_modules/echarts/lib/coord/calendar/CalendarModel",function(e,o,t){function l(e,o){var t=e.cellSize;n.isArray(t)?1===t.length&&(t[1]=t[0]):t=e.cellSize=[t,t];var l=n.map([0,1],function(e){return s(o,e)&&(t[e]="auto"),null!=t[e]&&"auto"!==t[e]});c(e,o,{type:"box",ignoreSize:l})}var n=e("node_modules/zrender/lib/core/util"),i=e("node_modules/echarts/lib/model/Component"),r=e("node_modules/echarts/lib/util/layout"),a=r.getLayoutParams,s=r.sizeCalculable,c=r.mergeLayoutParam,u=i.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e){var o=a(e);u.superApply(this,"init",arguments),l(e,o)},mergeOption:function(e){u.superApply(this,"mergeOption",arguments),l(this.option,e)}}),d=u;t.exports=d}); ;/*!node_modules/echarts/lib/component/calendar/CalendarView.js*/ @@ -835,11 +839,11 @@ amis.define("node_modules/echarts/lib/component/toolbox/ToolboxModel",function(o ;/*!node_modules/echarts/lib/component/helper/listComponent.js*/ amis.define("node_modules/echarts/lib/component/helper/listComponent",function(t,e){function i(t,e,i){var o=e.getBoxLayoutParams(),a=e.get("padding"),d={width:i.getWidth(),height:i.getHeight()},g=n(o,d,a);r(e.get("orient"),t,e.get("itemGap"),g.width,g.height),l(t,o,d,a)}function o(t,e){var i=d.normalizeCssArray(e.get("padding")),o=e.getItemStyle(["color","opacity"]);o.fill=e.get("backgroundColor");var t=new g.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:o,silent:!0,z2:-1});return t}var a=t("node_modules/echarts/lib/util/layout"),n=a.getLayoutRect,r=a.box,l=a.positionElement,d=t("node_modules/echarts/lib/util/format"),g=t("node_modules/echarts/lib/util/graphic");e.layout=i,e.makeBackground=o}); ;/*!node_modules/echarts/lib/component/toolbox/ToolboxView.js*/ -amis.define("node_modules/echarts/lib/component/toolbox/ToolboxView",function(e,t,o){function i(e){return 0===e.indexOf("my")}var n=e("node_modules/echarts/lib/echarts"),l=e("node_modules/zrender/lib/core/util"),r=e("node_modules/zrender/lib/contain/text"),s=e("node_modules/echarts/lib/component/toolbox/featureManager"),a=e("node_modules/echarts/lib/util/graphic"),u=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/data/DataDiffer"),c=e("node_modules/echarts/lib/component/helper/listComponent"),g=n.extendComponentView({type:"toolbox",render:function(e,t,o,n){function g(l,r){var a,d=v[l],c=v[r],g=p[d],m=new u(g,e,e.ecModel);if(n&&null!=n.newTitle&&(g.title=n.newTitle),d&&!c){if(i(d))a={model:m,onclick:m.option.onclick,featureName:d};else{var f=s.get(d);if(!f)return;a=new f(m,t,o)}x[d]=a}else{if(a=x[c],!a)return;a.model=m,a.ecModel=t,a.api=o}return!d&&c?void(a.dispose&&a.dispose(t,o)):!m.get("show")||a.unusable?void(a.remove&&a.remove(t,o)):(h(m,a,d),m.setIconStatus=function(e,t){var o=this.option,i=this.iconPaths;o.iconStatus=o.iconStatus||{},o.iconStatus[e]=t,i[e]&&i[e].trigger(t)},void(a.render&&a.render(m,t,o,n)))}function h(i,n,r){var s=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),d=n.getIcons?n.getIcons():i.get("icon"),c=i.get("title")||{};if("string"==typeof d){var g=d,h=c;d={},c={},d[r]=g,c[r]=h}var p=i.iconPaths={};l.each(d,function(r,d){var g=a.createIcon(r,{},{x:-f/2,y:-f/2,width:f,height:f});g.setStyle(s.getItemStyle()),g.hoverStyle=u.getItemStyle(),g.setStyle({text:c[d],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var h=e.getModel("tooltip");h&&h.get("show")&&g.attr("tooltip",l.extend({content:c[d],formatter:h.get("formatter",!0)||function(){return c[d]},formatterParams:{componentType:"toolbox",name:d,title:c[d],$vars:["name","title"]},position:h.get("position",!0)||"bottom"},h.option)),a.setHoverStyle(g),e.get("showTitle")&&(g.__title=c[d],g.on("mouseover",function(){var t=u.getItemStyle(),o="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";g.setStyle({textFill:u.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||o})}).on("mouseout",function(){g.setStyle({textFill:null,textBackgroundColor:null})})),g.trigger(i.get("iconStatus."+d)||"normal"),m.add(g),g.on("click",l.bind(n.onclick,n,t,o,d)),p[d]=g})}var m=this.group;if(m.removeAll(),e.get("show")){var f=+e.get("itemSize"),p=e.get("feature")||{},x=this._features||(this._features={}),v=[];l.each(p,function(e,t){v.push(t)}),new d(this._featureNames||[],v).add(g).update(g).remove(l.curry(g,null)).execute(),this._featureNames=v,c.layout(m,e,o),m.add(c.makeBackground(m.getBoundingRect(),e)),m.eachChild(function(e){var t=e.__title,i=e.hoverStyle;if(i&&t){var n=r.getBoundingRect(t,r.makeFont(i)),l=e.position[0]+m.position[0],s=e.position[1]+m.position[1]+f,a=!1;s+n.height>o.getHeight()&&(i.textPosition="top",a=!0);var u=a?-5-n.height:f+8;l+n.width/2>o.getWidth()?(i.textPosition=["100%",u],i.textAlign="right"):l-n.width/2<0&&(i.textPosition=[0,u],i.textAlign="left")}})}},updateView:function(e,t,o,i){l.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,o,i)})},remove:function(e,t){l.each(this._features,function(o){o.remove&&o.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){l.each(this._features,function(o){o.dispose&&o.dispose(e,t)})}});o.exports=g}); +amis.define("node_modules/echarts/lib/component/toolbox/ToolboxView",function(e,t,o){function i(e){return 0===e.indexOf("my")}var n=e("node_modules/echarts/lib/echarts"),r=e("node_modules/zrender/lib/core/util"),l=e("node_modules/zrender/lib/contain/text"),a=e("node_modules/echarts/lib/component/toolbox/featureManager"),s=e("node_modules/echarts/lib/util/graphic"),u=e("node_modules/echarts/lib/model/Model"),d=e("node_modules/echarts/lib/data/DataDiffer"),c=e("node_modules/echarts/lib/component/helper/listComponent"),g=n.extendComponentView({type:"toolbox",render:function(e,t,o,n){function g(r,l){var s,d=v[r],c=v[l],g=p[d],m=new u(g,e,e.ecModel);if(n&&null!=n.newTitle&&n.featureName===d&&(g.title=n.newTitle),d&&!c){if(i(d))s={model:m,onclick:m.option.onclick,featureName:d};else{var f=a.get(d);if(!f)return;s=new f(m,t,o)}x[d]=s}else{if(s=x[c],!s)return;s.model=m,s.ecModel=t,s.api=o}return!d&&c?void(s.dispose&&s.dispose(t,o)):!m.get("show")||s.unusable?void(s.remove&&s.remove(t,o)):(h(m,s,d),m.setIconStatus=function(e,t){var o=this.option,i=this.iconPaths;o.iconStatus=o.iconStatus||{},o.iconStatus[e]=t,i[e]&&i[e].trigger(t)},void(s.render&&s.render(m,t,o,n)))}function h(i,n,l){var a=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),d=n.getIcons?n.getIcons():i.get("icon"),c=i.get("title")||{};if("string"==typeof d){var g=d,h=c;d={},c={},d[l]=g,c[l]=h}var p=i.iconPaths={};r.each(d,function(l,d){var g=s.createIcon(l,{},{x:-f/2,y:-f/2,width:f,height:f});g.setStyle(a.getItemStyle()),g.hoverStyle=u.getItemStyle(),g.setStyle({text:c[d],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var h=e.getModel("tooltip");h&&h.get("show")&&g.attr("tooltip",r.extend({content:c[d],formatter:h.get("formatter",!0)||function(){return c[d]},formatterParams:{componentType:"toolbox",name:d,title:c[d],$vars:["name","title"]},position:h.get("position",!0)||"bottom"},h.option)),s.setHoverStyle(g),e.get("showTitle")&&(g.__title=c[d],g.on("mouseover",function(){var t=u.getItemStyle(),o="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";g.setStyle({textFill:u.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||o})}).on("mouseout",function(){g.setStyle({textFill:null,textBackgroundColor:null})})),g.trigger(i.get("iconStatus."+d)||"normal"),m.add(g),g.on("click",r.bind(n.onclick,n,t,o,d)),p[d]=g})}var m=this.group;if(m.removeAll(),e.get("show")){var f=+e.get("itemSize"),p=e.get("feature")||{},x=this._features||(this._features={}),v=[];r.each(p,function(e,t){v.push(t)}),new d(this._featureNames||[],v).add(g).update(g).remove(r.curry(g,null)).execute(),this._featureNames=v,c.layout(m,e,o),m.add(c.makeBackground(m.getBoundingRect(),e)),m.eachChild(function(e){var t=e.__title,i=e.hoverStyle;if(i&&t){var n=l.getBoundingRect(t,l.makeFont(i)),r=e.position[0]+m.position[0],a=e.position[1]+m.position[1]+f,s=!1;a+n.height>o.getHeight()&&(i.textPosition="top",s=!0);var u=s?-5-n.height:f+8;r+n.width/2>o.getWidth()?(i.textPosition=["100%",u],i.textAlign="right"):r-n.width/2<0&&(i.textPosition=[0,u],i.textAlign="left")}})}},updateView:function(e,t,o,i){r.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,o,i)})},remove:function(e,t){r.each(this._features,function(o){o.remove&&o.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){r.each(this._features,function(o){o.dispose&&o.dispose(e,t)})}});o.exports=g}); ;/*!node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js*/ -amis.define("node_modules/echarts/lib/component/toolbox/feature/SaveAsImage",function(e,o,t){function n(e){this.model=e}var a=e("node_modules/zrender/lib/core/env"),r=e("node_modules/echarts/lib/lang"),l=e("node_modules/echarts/lib/component/toolbox/featureManager"),i=r.toolbox.saveAsImage;n.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},n.prototype.unusable=!a.canvasSupported;var c=n.prototype;c.onclick=function(e,o){var t=this.model,n=t.get("name")||e.get("title.0.text")||"echarts",r=t.get("type",!0)||"png",l=o.getConnectedDataURL({type:r,backgroundColor:t.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:t.get("connectedBackgroundColor"),excludeComponents:t.get("excludeComponents"),pixelRatio:t.get("pixelRatio")});if("function"!=typeof MouseEvent||a.browser.ie||a.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var i=atob(l.split(",")[1]),c=i.length,d=new Uint8Array(c);c--;)d[c]=i.charCodeAt(c);var s=new Blob([d]);window.navigator.msSaveOrOpenBlob(s,n+"."+r)}else{var g=t.get("lang"),u='',p=window.open();p.document.write(u)}else{var b=document.createElement("a");b.download=n+"."+r,b.target="_blank",b.href=l;var m=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});b.dispatchEvent(m)}},l.register("saveAsImage",n);var d=n;t.exports=d}); +amis.define("node_modules/echarts/lib/component/toolbox/feature/SaveAsImage",function(e,o,t){function n(e){this.model=e}var a=e("node_modules/zrender/lib/core/env"),r=e("node_modules/echarts/lib/lang"),l=e("node_modules/echarts/lib/component/toolbox/featureManager"),i=r.toolbox.saveAsImage;n.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},n.prototype.unusable=!a.canvasSupported;var c=n.prototype;c.onclick=function(e,o){var t=this.model,n=t.get("name")||e.get("title.0.text")||"echarts",r="svg"===o.getZr().painter.getType(),l=r?"svg":t.get("type",!0)||"png",i=o.getConnectedDataURL({type:l,backgroundColor:t.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:t.get("connectedBackgroundColor"),excludeComponents:t.get("excludeComponents"),pixelRatio:t.get("pixelRatio")});if("function"!=typeof MouseEvent||a.browser.ie||a.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var c=atob(i.split(",")[1]),d=c.length,s=new Uint8Array(d);d--;)s[d]=c.charCodeAt(d);var g=new Blob([s]);window.navigator.msSaveOrOpenBlob(g,n+"."+l)}else{var p=t.get("lang"),u='',b=window.open();b.document.write(u)}else{var m=document.createElement("a");m.download=n+"."+l,m.target="_blank",m.href=i;var v=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});m.dispatchEvent(v)}},l.register("saveAsImage",n);var d=n;t.exports=d}); ;/*!node_modules/echarts/lib/component/toolbox/feature/MagicType.js*/ -amis.define("node_modules/echarts/lib/component/toolbox/feature/MagicType",function(e,t,n){function a(e){this.model=e}var i=e("node_modules/echarts/lib/echarts"),o=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/lang"),l=e("node_modules/echarts/lib/component/toolbox/featureManager"),s=r.toolbox.magicType,c="__ec_magicType_stack__";a.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:o.clone(s.title),option:{},seriesIndex:{}};var d=a.prototype;d.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return o.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n};var p={line:function(e,t,n,a){return"bar"===e?o.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},a.get("option.line")||{},!0):void 0},bar:function(e,t,n,a){return"line"===e?o.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},a.get("option.bar")||{},!0):void 0},stack:function(e,t,n,a){var i=n.get("stack")===c;return"line"===e||"bar"===e?(a.setIconStatus("stack",i?"normal":"emphasis"),o.merge({id:t,stack:i?"":c},a.get("option.stack")||{},!0)):void 0}},m=[["line","bar"],["stack"]];d.onclick=function(e,t,n){var a=this.model,i=a.get("seriesIndex."+n);if(p[n]){var r={series:[]},l=function(t){var i=t.subType,l=t.id,s=p[n](i,l,t,a);s&&(o.defaults(s,t.option),r.series.push(s));var c=t.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var d=c.getAxesByScale("ordinal")[0];if(d){var m=d.dim,g=m+"Axis",u=e.queryComponents({mainType:g,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],h=u.componentIndex;r[g]=r[g]||[];for(var k=0;h>=k;k++)r[g][h]=r[g][h]||{};r[g][h].boundaryGap="bar"===n}}};o.each(m,function(e){o.indexOf(e,n)>=0&&o.each(e,function(e){a.setIconStatus(e,"normal")})}),a.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},l);var d;if("stack"===n){var g=r.series&&r.series[0]&&r.series[0].stack===c;d=g?o.merge({stack:s.title.tiled},s.title):o.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:n,newOption:r,newTitle:d})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),l.register("magicType",a);var g=a;n.exports=g}); +amis.define("node_modules/echarts/lib/component/toolbox/feature/MagicType",function(e,t,n){function a(e){this.model=e}var i=e("node_modules/echarts/lib/echarts"),o=e("node_modules/zrender/lib/core/util"),r=e("node_modules/echarts/lib/lang"),l=e("node_modules/echarts/lib/component/toolbox/featureManager"),s=r.toolbox.magicType,c="__ec_magicType_stack__";a.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:o.clone(s.title),option:{},seriesIndex:{}};var d=a.prototype;d.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return o.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n};var p={line:function(e,t,n,a){return"bar"===e?o.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},a.get("option.line")||{},!0):void 0},bar:function(e,t,n,a){return"line"===e?o.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},a.get("option.bar")||{},!0):void 0},stack:function(e,t,n,a){var i=n.get("stack")===c;return"line"===e||"bar"===e?(a.setIconStatus("stack",i?"normal":"emphasis"),o.merge({id:t,stack:i?"":c},a.get("option.stack")||{},!0)):void 0}},m=[["line","bar"],["stack"]];d.onclick=function(e,t,n){var a=this.model,i=a.get("seriesIndex."+n);if(p[n]){var r={series:[]},l=function(t){var i=t.subType,l=t.id,s=p[n](i,l,t,a);s&&(o.defaults(s,t.option),r.series.push(s));var c=t.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var d=c.getAxesByScale("ordinal")[0];if(d){var m=d.dim,g=m+"Axis",u=e.queryComponents({mainType:g,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],h=u.componentIndex;r[g]=r[g]||[];for(var y=0;h>=y;y++)r[g][h]=r[g][h]||{};r[g][h].boundaryGap="bar"===n}}};o.each(m,function(e){o.indexOf(e,n)>=0&&o.each(e,function(e){a.setIconStatus(e,"normal")})}),a.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},l);var d;if("stack"===n){var g=r.series&&r.series[0]&&r.series[0].stack===c;d=g?o.merge({stack:s.title.tiled},s.title):o.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:n,newOption:r,newTitle:d,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),l.register("magicType",a);var g=a;n.exports=g}); ;/*!node_modules/echarts/lib/component/toolbox/feature/DataView.js*/ amis.define("node_modules/echarts/lib/component/toolbox/feature/DataView",function(e,t,n){function o(e){var t={},n=[],o=[];return e.eachRawSeries(function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var a=r.getBaseAxis();if("category"===a.type){var i=a.dim+"_"+a.index;t[i]||(t[i]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},o.push({axisDim:a.dim,axisIndex:a.index})),t[i].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:o}}function r(e){var t=[];return g.each(e,function(e){var n=e.categoryAxis,o=e.valueAxis,r=o.dim,a=[" "].concat(g.map(e.series,function(e){return e.name})),i=[n.model.getCategories()];g.each(e.series,function(e){i.push(e.getRawData().mapArray(r,function(e){return e}))});for(var s=[a.join(b)],l=0;li;i++)o[i]=arguments[i];n.push((a?a+b:"")+o.join(b))}),n.join("\n")}).join("\n\n"+C+"\n\n")}function i(e){var t=o(e);return{value:g.filter([r(t.seriesGroupByCategoryAxis),a(t.other)],function(e){return e.replace(/[\n\t\s]/g,"")}).join("\n\n"+C+"\n\n"),meta:t.meta}}function s(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(e){var t=e.slice(0,e.indexOf("\n"));return t.indexOf(b)>=0?!0:void 0}function c(e){for(var t=e.split(/\n+/g),n=s(t.shift()).split(w),o=[],r=g.map(n,function(e){return{name:e,data:[]}}),a=0;a=0;){var u=n.indexOf(s),l=n.substr(d+r.length,u-d-r.length);o["marker"+l]=l.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[l],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[l]},n=n.substr(u+1),d=n.indexOf("{marker")}this.el=new h({style:{rich:o,text:t,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var r=o;i.exports=r}); ;/*!node_modules/echarts/lib/component/tooltip/TooltipView.js*/ -amis.define("node_modules/echarts/lib/component/tooltip/TooltipView",function(t,e,i){function o(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(x.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new x(i,e,e.ecModel))}return e}function n(t,e){return t.dispatchAction||d.bind(e.dispatchAction,e)}function s(t,e,i,o,n,s,a){var l=i.getOuterSize(),r=l.width,h=l.height;return null!=s&&(t+r+s>o?t-=r+s:t+=s),null!=a&&(e+h+a>n?e-=h+a:e+=a),[t,e]}function a(t,e,i,o,n){var s=i.getOuterSize(),a=s.width,l=s.height;return t=Math.min(t+a,o)-a,e=Math.min(e+l,n)-l,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function l(t,e,i){var o=i[0],n=i[1],s=5,a=0,l=0,r=e.width,h=e.height;switch(t){case"inside":a=e.x+r/2-o/2,l=e.y+h/2-n/2;break;case"top":a=e.x+r/2-o/2,l=e.y-n-s;break;case"bottom":a=e.x+r/2-o/2,l=e.y+h+s;break;case"left":a=e.x-o-s,l=e.y+h/2-n/2;break;case"right":a=e.x+r+s,l=e.y+h/2-n/2}return[a,l]}function r(t){return"center"===t||"middle"===t}var h=t("node_modules/echarts/lib/echarts"),d=t("node_modules/zrender/lib/core/util"),p=t("node_modules/zrender/lib/core/env"),u=t("node_modules/echarts/lib/component/tooltip/TooltipContent"),f=t("node_modules/echarts/lib/component/tooltip/TooltipRichContent"),c=t("node_modules/echarts/lib/util/format"),_=t("node_modules/echarts/lib/util/number"),m=t("node_modules/echarts/lib/util/graphic"),g=t("node_modules/echarts/lib/component/axisPointer/findPointFromSeries"),y=t("node_modules/echarts/lib/util/layout"),x=t("node_modules/echarts/lib/model/Model"),v=t("node_modules/echarts/lib/component/axisPointer/globalListener"),w=t("node_modules/echarts/lib/coord/axisHelper"),T=t("node_modules/echarts/lib/component/axisPointer/viewHelper"),I=t("node_modules/echarts/lib/util/model"),S=I.getTooltipRenderMode,C=d.bind,b=d.each,M=_.parsePercent,D=new m.Rect({shape:{x:-1,y:-1,width:2,height:2}}),A=h.extendComponentView({type:"tooltip",init:function(t,e){if(!p.node){var i=t.getComponent("tooltip"),o=i.get("renderMode");this._renderMode=S(o);var n;"html"===this._renderMode?(n=new u(e.getDom(),e),this._newLine="
"):(n=new f(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,i){if(!p.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var o=this._tooltipContent;o.update(),o.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");v.register("itemTooltip",this._api,C(function(t,i,o){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,o):"leave"===t&&this._hide(o))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,e,i,{x:o._lastX,y:o._lastY})})}},manuallyShowTip:function(t,e,i,o){if(o.from!==this.uid&&!p.node){var s=n(o,i);this._ticket="";var a=o.dataByCoordSys;if(o.tooltip&&null!=o.x&&null!=o.y){var l=D;l.position=[o.x,o.y],l.update(),l.tooltip=o.tooltip,this._tryShow({offsetX:o.x,offsetY:o.y,target:l},s)}else if(a)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,event:{},dataByCoordSys:o.dataByCoordSys,tooltipOption:o.tooltipOption},s);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,o))return;var r=g(o,e),h=r.point[0],d=r.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,position:o.position,target:r.el,event:{}},s)}else null!=o.x&&null!=o.y&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target,event:{}},s))}},manuallyHideTip:function(t,e,i,o){var s=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,o.from!==this.uid&&this._hide(n(o,i))},_manuallyAxisShowTip:function(t,e,i,n){var s=n.seriesIndex,a=n.dataIndex,l=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=s&&null!=a&&null!=l){var r=e.getSeriesByIndex(s);if(r){var h=r.getData(),t=o([h.getItemModel(a),r,(r.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:a,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target,o=this._tooltipModel;if(o){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=d.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,s=[e.offsetX,e.offsetY],a=[],l=[],r=o([e.tooltipOption,n]),h=this._renderMode,p=this._newLine,u={};b(t,function(t){b(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value,n=[];if(e&&null!=o){var s=T.getValueLabel(o,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);d.each(t.seriesDataIndices,function(a){var r=i.getSeriesByIndex(a.seriesIndex),p=a.dataIndexInside,f=r&&r.getDataParams(p);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=w.getAxisRawValue(e.axis,o),f.axisValueLabel=s,f){l.push(f);var c,_=r.formatTooltip(p,!0,null,h);if(d.isObject(_)){c=_.html;var m=_.markers;d.merge(u,m)}else c=_;n.push(c)}});var r=s;a.push("html"!==h?n.join(p):(r?c.encodeHTML(r)+p:"")+n.join(p))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(r,f,s[0],s[1],this._tooltipContent,l):this._showTooltipContent(r,a,l,Math.random(),s[0],s[1],f,void 0,u)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,s=e.seriesIndex,a=n.getSeriesByIndex(s),l=e.dataModel||a,r=e.dataIndex,h=e.dataType,p=l.getData(),u=o([p.getItemModel(r),l,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),f=u.get("trigger");if(null==f||"item"===f){var c,_,m=l.getDataParams(r,h),g=l.formatTooltip(r,!1,h,this._renderMode);d.isObject(g)?(c=g.html,_=g.markers):(c=g,_=null);var y="item_"+l.name+"_"+r;this._showOrMove(u,function(){this._showTooltipContent(u,c,m,y,t.offsetX,t.offsetY,t.position,t.target,_)}),i({type:"showTip",dataIndexInside:r,dataIndex:p.getRawIndex(r),seriesIndex:s,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var o=e.tooltip;if("string"==typeof o){var n=o;o={content:n,formatter:n}}var s=new x(o,this._tooltipModel,this._ecModel),a=s.get("content"),l=Math.random();this._showOrMove(s,function(){this._showTooltipContent(s,a,s.get("formatterParams")||{},l,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,o,n,s,a,l,r){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,d=t.get("formatter");a=a||t.get("position");var p=e;if(d&&"string"==typeof d)p=c.formatTpl(d,i,!0);else if("function"==typeof d){var u=C(function(e,o){e===this._ticket&&(h.setContent(o,r,t),this._updatePosition(t,a,n,s,h,i,l))},this);this._ticket=o,p=d(i,o,u)}h.setContent(p,r,t),h.show(t),this._updatePosition(t,a,n,s,h,i,l)}},_updatePosition:function(t,e,i,o,n,h,p){var u=this._api.getWidth(),f=this._api.getHeight();e=e||t.get("position");var c=n.getSize(),_=t.get("align"),m=t.get("verticalAlign"),g=p&&p.getBoundingRect().clone();if(p&&g.applyTransform(p.transform),"function"==typeof e&&(e=e([i,o],h,n.el,g,{viewSize:[u,f],contentSize:c.slice()})),d.isArray(e))i=M(e[0],u),o=M(e[1],f);else if(d.isObject(e)){e.width=c[0],e.height=c[1];var x=y.getLayoutRect(e,{width:u,height:f});i=x.x,o=x.y,_=null,m=null}else if("string"==typeof e&&p){var v=l(e,g,c);i=v[0],o=v[1]}else{var v=s(i,o,n,u,f,_?null:20,m?null:20);i=v[0],o=v[1]}if(_&&(i-=r(_)?c[0]/2:"right"===_?c[0]:0),m&&(o-=r(m)?c[1]/2:"bottom"===m?c[1]:0),t.get("confine")){var v=a(i,o,n,u,f);i=v[0],o=v[1]}n.moveTo(i,o)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&b(e,function(e,o){var n=e.dataByAxis||{},s=t[o]||{},a=s.dataByAxis||[];i&=n.length===a.length,i&&b(n,function(t,e){var o=a[e]||{},n=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i&=t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&n.length===s.length,i&&b(n,function(t,e){var o=s[e];i&=t.seriesIndex===o.seriesIndex&&t.dataIndex===o.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){p.node||(this._tooltipContent.hide(),v.unregister("itemTooltip",e))}});i.exports=A}); +amis.define("node_modules/echarts/lib/component/tooltip/TooltipView",function(t,e,i){function o(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(x.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new x(i,e,e.ecModel))}return e}function n(t,e){return t.dispatchAction||d.bind(e.dispatchAction,e)}function s(t,e,i,o,n,s,a){var l=i.getOuterSize(),r=l.width,h=l.height;return null!=s&&(t+r+s>o?t-=r+s:t+=s),null!=a&&(e+h+a>n?e-=h+a:e+=a),[t,e]}function a(t,e,i,o,n){var s=i.getOuterSize(),a=s.width,l=s.height;return t=Math.min(t+a,o)-a,e=Math.min(e+l,n)-l,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function l(t,e,i){var o=i[0],n=i[1],s=5,a=0,l=0,r=e.width,h=e.height;switch(t){case"inside":a=e.x+r/2-o/2,l=e.y+h/2-n/2;break;case"top":a=e.x+r/2-o/2,l=e.y-n-s;break;case"bottom":a=e.x+r/2-o/2,l=e.y+h+s;break;case"left":a=e.x-o-s,l=e.y+h/2-n/2;break;case"right":a=e.x+r+s,l=e.y+h/2-n/2}return[a,l]}function r(t){return"center"===t||"middle"===t}var h=t("node_modules/echarts/lib/echarts"),d=t("node_modules/zrender/lib/core/util"),p=t("node_modules/zrender/lib/core/env"),u=t("node_modules/echarts/lib/component/tooltip/TooltipContent"),f=t("node_modules/echarts/lib/component/tooltip/TooltipRichContent"),c=t("node_modules/echarts/lib/util/format"),_=t("node_modules/echarts/lib/util/number"),m=t("node_modules/echarts/lib/util/graphic"),g=t("node_modules/echarts/lib/component/axisPointer/findPointFromSeries"),y=t("node_modules/echarts/lib/util/layout"),x=t("node_modules/echarts/lib/model/Model"),v=t("node_modules/echarts/lib/component/axisPointer/globalListener"),w=t("node_modules/echarts/lib/coord/axisHelper"),T=t("node_modules/echarts/lib/component/axisPointer/viewHelper"),I=t("node_modules/echarts/lib/util/model"),S=I.getTooltipRenderMode,C=d.bind,b=d.each,M=_.parsePercent,D=new m.Rect({shape:{x:-1,y:-1,width:2,height:2}}),A=h.extendComponentView({type:"tooltip",init:function(t,e){if(!p.node){var i=t.getComponent("tooltip"),o=i.get("renderMode");this._renderMode=S(o);var n;"html"===this._renderMode?(n=new u(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="
"):(n=new f(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,i){if(!p.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var o=this._tooltipContent;o.update(),o.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");v.register("itemTooltip",this._api,C(function(t,i,o){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,o):"leave"===t&&this._hide(o))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,e,i,{x:o._lastX,y:o._lastY})})}},manuallyShowTip:function(t,e,i,o){if(o.from!==this.uid&&!p.node){var s=n(o,i);this._ticket="";var a=o.dataByCoordSys;if(o.tooltip&&null!=o.x&&null!=o.y){var l=D;l.position=[o.x,o.y],l.update(),l.tooltip=o.tooltip,this._tryShow({offsetX:o.x,offsetY:o.y,target:l},s)}else if(a)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:o.dataByCoordSys,tooltipOption:o.tooltipOption},s);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,o))return;var r=g(o,e),h=r.point[0],d=r.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,position:o.position,target:r.el},s)}else null!=o.x&&null!=o.y&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},s))}},manuallyHideTip:function(t,e,i,o){var s=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,o.from!==this.uid&&this._hide(n(o,i))},_manuallyAxisShowTip:function(t,e,i,n){var s=n.seriesIndex,a=n.dataIndex,l=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=s&&null!=a&&null!=l){var r=e.getSeriesByIndex(s);if(r){var h=r.getData(),t=o([h.getItemModel(a),r,(r.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:a,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target,o=this._tooltipModel;if(o){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=d.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,s=[e.offsetX,e.offsetY],a=[],l=[],r=o([e.tooltipOption,n]),h=this._renderMode,p=this._newLine,u={};b(t,function(t){b(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value,n=[];if(e&&null!=o){var s=T.getValueLabel(o,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);d.each(t.seriesDataIndices,function(a){var r=i.getSeriesByIndex(a.seriesIndex),p=a.dataIndexInside,f=r&&r.getDataParams(p);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=w.getAxisRawValue(e.axis,o),f.axisValueLabel=s,f){l.push(f);var c,_=r.formatTooltip(p,!0,null,h);if(d.isObject(_)){c=_.html;var m=_.markers;d.merge(u,m)}else c=_;n.push(c)}});var r=s;a.push("html"!==h?n.join(p):(r?c.encodeHTML(r)+p:"")+n.join(p))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(r,f,s[0],s[1],this._tooltipContent,l):this._showTooltipContent(r,a,l,Math.random(),s[0],s[1],f,void 0,u)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,s=e.seriesIndex,a=n.getSeriesByIndex(s),l=e.dataModel||a,r=e.dataIndex,h=e.dataType,p=l.getData(h),u=o([p.getItemModel(r),l,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),f=u.get("trigger");if(null==f||"item"===f){var c,_,m=l.getDataParams(r,h),g=l.formatTooltip(r,!1,h,this._renderMode);d.isObject(g)?(c=g.html,_=g.markers):(c=g,_=null);var y="item_"+l.name+"_"+r;this._showOrMove(u,function(){this._showTooltipContent(u,c,m,y,t.offsetX,t.offsetY,t.position,t.target,_)}),i({type:"showTip",dataIndexInside:r,dataIndex:p.getRawIndex(r),seriesIndex:s,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var o=e.tooltip;if("string"==typeof o){var n=o;o={content:n,formatter:n}}var s=new x(o,this._tooltipModel,this._ecModel),a=s.get("content"),l=Math.random();this._showOrMove(s,function(){this._showTooltipContent(s,a,s.get("formatterParams")||{},l,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,o,n,s,a,l,r){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,d=t.get("formatter");a=a||t.get("position");var p=e;if(d&&"string"==typeof d)p=c.formatTpl(d,i,!0);else if("function"==typeof d){var u=C(function(e,o){e===this._ticket&&(h.setContent(o,r,t),this._updatePosition(t,a,n,s,h,i,l))},this);this._ticket=o,p=d(i,o,u)}h.setContent(p,r,t),h.show(t),this._updatePosition(t,a,n,s,h,i,l)}},_updatePosition:function(t,e,i,o,n,h,p){var u=this._api.getWidth(),f=this._api.getHeight();e=e||t.get("position");var c=n.getSize(),_=t.get("align"),m=t.get("verticalAlign"),g=p&&p.getBoundingRect().clone();if(p&&g.applyTransform(p.transform),"function"==typeof e&&(e=e([i,o],h,n.el,g,{viewSize:[u,f],contentSize:c.slice()})),d.isArray(e))i=M(e[0],u),o=M(e[1],f);else if(d.isObject(e)){e.width=c[0],e.height=c[1];var x=y.getLayoutRect(e,{width:u,height:f});i=x.x,o=x.y,_=null,m=null}else if("string"==typeof e&&p){var v=l(e,g,c);i=v[0],o=v[1]}else{var v=s(i,o,n,u,f,_?null:20,m?null:20);i=v[0],o=v[1]}if(_&&(i-=r(_)?c[0]/2:"right"===_?c[0]:0),m&&(o-=r(m)?c[1]/2:"bottom"===m?c[1]:0),t.get("confine")){var v=a(i,o,n,u,f);i=v[0],o=v[1]}n.moveTo(i,o)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&b(e,function(e,o){var n=e.dataByAxis||{},s=t[o]||{},a=s.dataByAxis||[];i&=n.length===a.length,i&&b(n,function(t,e){var o=a[e]||{},n=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i&=t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&n.length===s.length,i&&b(n,function(t,e){var o=s[e];i&=t.seriesIndex===o.seriesIndex&&t.dataIndex===o.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){p.node||(this._tooltipContent.dispose(),v.unregister("itemTooltip",e))}});i.exports=A}); ;/*!node_modules/echarts/lib/component/tooltip.js*/ amis.define("node_modules/echarts/lib/component/tooltip",function(o){var e=o("node_modules/echarts/lib/echarts");o("node_modules/echarts/lib/component/axisPointer"),o("node_modules/echarts/lib/component/tooltip/TooltipModel"),o("node_modules/echarts/lib/component/tooltip/TooltipView"),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}); ;/*!node_modules/echarts/lib/component/brush/preprocessor.js*/ @@ -889,11 +893,11 @@ amis.define("node_modules/echarts/lib/visual/visualSolution",function(n,a){funct ;/*!node_modules/echarts/lib/component/brush/selector.js*/ amis.define("node_modules/echarts/lib/component/brush/selector",function(n,e,t){function r(n){var e=["x","y"],t=["width","height"];return{point:function(e,t,r){if(e){var o=r.range,c=e[n];return i(c,o)}},rect:function(r,o,c){if(r){var u=c.range,a=[r[e[n]],r[e[n]]+r[t[n]]];return a[1]a;a++){var o=n[a];if(e[o.brushType](t,r,o.selectors,o))return!0}}function a(e){var n=e.brushSelector;if(c.isString(n)){var r=[];return c.each(f,function(e,t){r[t]=function(r,t,a,u){var o=t.getItemLayout(r);return e[n](o,a,u)}}),r}if(c.isFunction(n)){var t={};return c.each(f,function(e,r){t[r]=n}),t}return n}function u(e,n){var r=e.option.seriesIndex;return null!=r&&"all"!==r&&(c.isArray(r)?c.indexOf(r,n)<0:n!==r)}function o(e){var n=e.selectors={};return c.each(f[e.brushType],function(r,t){n[t]=function(t){return r(t,n,e)}}),e}function i(e){return new h(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var s=e("node_modules/echarts/lib/echarts"),c=e("node_modules/zrender/lib/core/util"),h=e("node_modules/zrender/lib/core/BoundingRect"),l=e("node_modules/echarts/lib/visual/visualSolution"),f=e("node_modules/echarts/lib/component/brush/selector"),d=e("node_modules/echarts/lib/util/throttle"),p=e("node_modules/echarts/lib/component/helper/BrushTargetManager"),v=["inBrush","outOfBrush"],b="__ecBrushSelect",g="__ecInBrushSelectEvent",m=s.PRIORITY.VISUAL.BRUSH;s.registerLayout(m,function(e,n,r){e.eachComponent({mainType:"brush"},function(n){r&&"takeGlobalCursor"===r.type&&n.setBrushOption("brush"===r.key?r.brushOption:{brushType:!1});var t=n.brushTargetManager=new p(n.option,e);t.setInputRanges(n.areas,e)})}),s.registerVisual(m,function(e,r,i){var s,h,f=[];e.eachComponent({mainType:"brush"},function(n,r){function i(e){return"all"===I||B[e]}function d(e){return!!e.length}function p(e,n){var r=e.coordinateSystem;_|=r.hasAxisBrushed(),i(n)&&r.eachActiveState(e.getData(),function(e,n){"active"===e&&(S[n]=1)})}function b(r,o,s){var h=a(r);if(h&&!u(n,o)&&(c.each(x,function(t){h[t.brushType]&&n.brushTargetManager.controlSeries(t,r,e)&&s.push(t),_|=d(s)}),i(o)&&d(s))){var l=r.getData();l.each(function(e){t(h,s,l,e)&&(S[e]=1)})}}var g={brushId:n.id,brushIndex:r,brushName:n.name,areas:c.clone(n.areas),selected:[]};f.push(g);var m=n.option,I=m.brushLink,B=[],S=[],T=[],_=0;r||(s=m.throttleType,h=m.throttleDelay);var x=c.map(n.areas,function(e){return o(c.defaults({boundingRect:y[e.brushType](e)},e))}),O=l.createVisualMappings(n.option,v,function(e){e.mappingMethod="fixed"});c.isArray(I)&&c.each(I,function(e){B[e]=1}),e.eachSeries(function(e,n){var r=T[n]=[];"parallel"===e.subType?p(e,n,r):b(e,n,r)}),e.eachSeries(function(e,n){var r={seriesId:e.id,seriesIndex:n,seriesName:e.name,dataIndex:[]};g.selected.push(r);var u=a(e),o=T[n],s=e.getData(),c=i(n)?function(e){return S[e]?(r.dataIndex.push(s.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return t(u,o,s,e)?(r.dataIndex.push(s.getRawIndex(e)),"inBrush"):"outOfBrush"};(i(n)?_:d(o))&&l.applyVisual(v,O,s,c)})}),n(r,s,h,f,i)});var y={lineX:c.noop,lineY:c.noop,rect:function(e){return i(e.range)},polygon:function(e){for(var n,r=e.range,t=0,a=r.length;a>t;t++){n=n||[[1/0,-1/0],[1/0,-1/0]];var u=r[t];u[0]n[0][1]&&(n[0][1]=u[0]),u[1]n[1][1]&&(n[1][1]=u[1])}return n&&i(n)}}}); +amis.define("node_modules/echarts/lib/component/brush/visualEncoding",function(e,n){function r(e){e.eachComponent({mainType:"brush"},function(n){var r=n.brushTargetManager=new b(n.option,e);r.setInputRanges(n.areas,e)})}function t(e,n,r,t,u){if(u){var o=e.getZr();if(!o[y]){o[m]||(o[m]=a);var i=v.createOrUpdate(o,m,r,n);i(e,t)}}}function a(e,n){if(!e.isDisposed()){var r=e.getZr();r[y]=!0,e.dispatchAction({type:"brushSelect",batch:n}),r[y]=!1}}function u(e,n,r,t){for(var a=0,u=n.length;u>a;a++){var o=n[a];if(e[o.brushType](t,r,o.selectors,o))return!0}}function o(e){var n=e.brushSelector;if(l.isString(n)){var r=[];return l.each(p,function(e,t){r[t]=function(r,t,a,u){var o=t.getItemLayout(r);return e[n](o,a,u)}}),r}if(l.isFunction(n)){var t={};return l.each(p,function(e,r){t[r]=n}),t}return n}function i(e,n){var r=e.option.seriesIndex;return null!=r&&"all"!==r&&(l.isArray(r)?l.indexOf(r,n)<0:n!==r)}function s(e){var n=e.selectors={};return l.each(p[e.brushType],function(r,t){n[t]=function(t){return r(t,n,e)}}),e}function c(e){return new f(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var h=e("node_modules/echarts/lib/echarts"),l=e("node_modules/zrender/lib/core/util"),f=e("node_modules/zrender/lib/core/BoundingRect"),d=e("node_modules/echarts/lib/visual/visualSolution"),p=e("node_modules/echarts/lib/component/brush/selector"),v=e("node_modules/echarts/lib/util/throttle"),b=e("node_modules/echarts/lib/component/helper/BrushTargetManager"),g=["inBrush","outOfBrush"],m="__ecBrushSelect",y="__ecInBrushSelectEvent",I=h.PRIORITY.VISUAL.BRUSH;h.registerLayout(I,function(e,n,t){e.eachComponent({mainType:"brush"},function(e){t&&"takeGlobalCursor"===t.type&&e.setBrushOption("brush"===t.key?t.brushOption:{brushType:!1})}),r(e)}),h.registerVisual(I,function(e,n,r){var a,c,h=[];e.eachComponent({mainType:"brush"},function(n,r){function t(e){return"all"===y||I[e]}function f(e){return!!e.length}function p(e,n){var r=e.coordinateSystem;_|=r.hasAxisBrushed(),t(n)&&r.eachActiveState(e.getData(),function(e,n){"active"===e&&(B[n]=1)})}function v(r,a,s){var c=o(r);if(c&&!i(n,a)&&(l.each(x,function(t){c[t.brushType]&&n.brushTargetManager.controlSeries(t,r,e)&&s.push(t),_|=f(s)}),t(a)&&f(s))){var h=r.getData();h.each(function(e){u(c,s,h,e)&&(B[e]=1)})}}var b={brushId:n.id,brushIndex:r,brushName:n.name,areas:l.clone(n.areas),selected:[]};h.push(b);var m=n.option,y=m.brushLink,I=[],B=[],S=[],_=0;r||(a=m.throttleType,c=m.throttleDelay);var x=l.map(n.areas,function(e){return s(l.defaults({boundingRect:T[e.brushType](e)},e))}),O=d.createVisualMappings(n.option,g,function(e){e.mappingMethod="fixed"});l.isArray(y)&&l.each(y,function(e){I[e]=1}),e.eachSeries(function(e,n){var r=S[n]=[];"parallel"===e.subType?p(e,n,r):v(e,n,r)}),e.eachSeries(function(e,n){var r={seriesId:e.id,seriesIndex:n,seriesName:e.name,dataIndex:[]};b.selected.push(r);var a=o(e),i=S[n],s=e.getData(),c=t(n)?function(e){return B[e]?(r.dataIndex.push(s.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return u(a,i,s,e)?(r.dataIndex.push(s.getRawIndex(e)),"inBrush"):"outOfBrush"};(t(n)?_:f(i))&&d.applyVisual(g,O,s,c)})}),t(n,a,c,h,r)});var T={lineX:l.noop,lineY:l.noop,rect:function(e){return c(e.range)},polygon:function(e){for(var n,r=e.range,t=0,a=r.length;a>t;t++){n=n||[[1/0,-1/0],[1/0,-1/0]];var u=r[t];u[0]n[0][1]&&(n[0][1]=u[0]),u[1]n[1][1]&&(n[1][1]=u[1])}return n&&c(n)}};n.layoutCovers=r}); ;/*!node_modules/echarts/lib/component/brush/BrushModel.js*/ amis.define("node_modules/echarts/lib/component/brush/BrushModel",function(e,o,r){function s(e,o){return l.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new u(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},o,!0)}var t=e("node_modules/echarts/lib/config"),n=(t.__DEV__,e("node_modules/echarts/lib/echarts")),l=e("node_modules/zrender/lib/core/util"),i=e("node_modules/echarts/lib/visual/visualSolution"),u=e("node_modules/echarts/lib/model/Model"),h=["#ddd"],d=n.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,o){var r=this.option;!o&&i.replaceVisualOption(r,e,["inBrush","outOfBrush"]);var s=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:h},s.hasOwnProperty("liftZ")||(s.liftZ=5)},setAreas:function(e){e&&(this.areas=l.map(e,function(e){return s(this.option,e)},this))},setBrushOption:function(e){this.brushOption=s(this.option,e),this.brushType=this.brushOption.brushType}}),a=d;r.exports=a}); ;/*!node_modules/echarts/lib/component/brush/BrushView.js*/ -amis.define("node_modules/echarts/lib/component/brush/BrushView",function(e,s,t){function r(e,s,t,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(t)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}var n=e("node_modules/echarts/lib/echarts"),o=e("node_modules/zrender/lib/core/util"),i=e("node_modules/echarts/lib/component/helper/BrushController"),h=n.extendComponentView({type:"brush",init:function(e,s){this.ecModel=e,this.api=s,this.model,(this._brushController=new i(s.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,r.apply(this,arguments)},updateTransform:r,updateView:r,dispose:function(){this._brushController.dispose()},_onBrush:function(e,s){var t=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:o.clone(e),$from:t}),s.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:o.clone(e),$from:t})}});t.exports=h}); +amis.define("node_modules/echarts/lib/component/brush/BrushView",function(e,s,t){function n(e,s,t,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(t)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}var r=e("node_modules/echarts/lib/echarts"),o=e("node_modules/zrender/lib/core/util"),i=e("node_modules/echarts/lib/component/helper/BrushController"),u=e("node_modules/echarts/lib/component/brush/visualEncoding"),h=u.layoutCovers,a=r.extendComponentView({type:"brush",init:function(e,s){this.ecModel=e,this.api=s,this.model,(this._brushController=new i(s.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,n.apply(this,arguments)},updateTransform:function(e,s){return h(s),n.apply(this,arguments)},updateView:n,dispose:function(){this._brushController.dispose()},_onBrush:function(e,s){var t=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:o.clone(e),$from:t}),s.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:o.clone(e),$from:t})}});t.exports=a}); ;/*!node_modules/echarts/lib/component/brush/brushAction.js*/ amis.define("node_modules/echarts/lib/component/brush/brushAction",function(e){var n=e("node_modules/echarts/lib/echarts");n.registerAction({type:"brush",event:"brush"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})}); ;/*!node_modules/echarts/lib/component/toolbox/feature/Brush.js*/ @@ -901,7 +905,7 @@ amis.define("node_modules/echarts/lib/component/toolbox/feature/Brush",function( ;/*!node_modules/echarts/lib/component/brush.js*/ amis.define("node_modules/echarts/lib/component/brush",function(e){var o=e("node_modules/echarts/lib/echarts"),s=e("node_modules/echarts/lib/component/brush/preprocessor");e("node_modules/echarts/lib/component/brush/visualEncoding"),e("node_modules/echarts/lib/component/brush/BrushModel"),e("node_modules/echarts/lib/component/brush/BrushView"),e("node_modules/echarts/lib/component/brush/brushAction"),e("node_modules/echarts/lib/component/toolbox/feature/Brush"),o.registerPreprocessor(s)}); ;/*!node_modules/echarts/lib/component/title.js*/ -amis.define("node_modules/echarts/lib/component/title",function(t){var e=t("node_modules/zrender/lib/core/util"),i=t("node_modules/echarts/lib/echarts"),o=t("node_modules/echarts/lib/util/graphic"),l=t("node_modules/echarts/lib/util/layout"),n=l.getLayoutRect;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(t,i,l){if(this.group.removeAll(),t.get("show")){var g=this.group,d=t.getModel("textStyle"),r=t.getModel("subtextStyle"),a=t.get("textAlign"),h=e.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),s=new o.Text({style:o.setTextStyle({},d,{text:t.get("text"),textFill:d.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),x=t.get("subtext"),u=new o.Text({style:o.setTextStyle({},r,{text:x,textFill:r.getTextColor(),y:c.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),b=t.get("sublink"),y=t.get("triggerEvent",!0);s.silent=!p&&!y,u.silent=!b&&!y,p&&s.on("click",function(){window.open(p,"_"+t.get("target"))}),b&&u.on("click",function(){window.open(b,"_"+t.get("subtarget"))}),s.eventData=u.eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,g.add(s),x&&g.add(u);var m=g.getBoundingRect(),w=t.getBoxLayoutParams();w.width=m.width,w.height=m.height;var v=n(w,{width:l.getWidth(),height:l.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),h||(h=t.get("top")||t.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?v.y+=v.height:"middle"===h&&(v.y+=v.height/2),h=h||"top"),g.attr("position",[v.x,v.y]);var f={textAlign:a,textVerticalAlign:h};s.setStyle(f),u.setStyle(f),m=g.getBoundingRect();var S=v.margin,k=t.getItemStyle(["color","opacity"]);k.fill=t.get("backgroundColor");var z=new o.Rect({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:t.get("borderRadius")},style:k,subPixelOptimize:!0,silent:!0});g.add(z)}}})}); +amis.define("node_modules/echarts/lib/component/title",function(t){var e=t("node_modules/zrender/lib/core/util"),i=t("node_modules/echarts/lib/echarts"),o=t("node_modules/echarts/lib/util/graphic"),l=t("node_modules/echarts/lib/util/layout"),n=l.getLayoutRect,g=t("node_modules/echarts/lib/util/format"),d=g.windowOpen;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(t,i,l){if(this.group.removeAll(),t.get("show")){var g=this.group,r=t.getModel("textStyle"),a=t.getModel("subtextStyle"),s=t.get("textAlign"),h=e.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),c=new o.Text({style:o.setTextStyle({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),x=c.getBoundingRect(),u=t.get("subtext"),b=new o.Text({style:o.setTextStyle({},a,{text:u,textFill:a.getTextColor(),y:x.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),y=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,b.silent=!y&&!m,p&&c.on("click",function(){d(p,"_"+t.get("target"))}),y&&b.on("click",function(){d(p,"_"+t.get("subtarget"))}),c.eventData=b.eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,g.add(c),u&&g.add(b);var w=g.getBoundingRect(),f=t.getBoxLayoutParams();f.width=w.width,f.height=w.height;var v=n(f,{width:l.getWidth(),height:l.getHeight()},t.get("padding"));s||(s=t.get("left")||t.get("right"),"middle"===s&&(s="center"),"right"===s?v.x+=v.width:"center"===s&&(v.x+=v.width/2)),h||(h=t.get("top")||t.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?v.y+=v.height:"middle"===h&&(v.y+=v.height/2),h=h||"top"),g.attr("position",[v.x,v.y]);var S={textAlign:s,textVerticalAlign:h};c.setStyle(S),b.setStyle(S),w=g.getBoundingRect();var k=v.margin,z=t.getItemStyle(["color","opacity"]);z.fill=t.get("backgroundColor");var _=new o.Rect({shape:{x:w.x-k[3],y:w.y-k[0],width:w.width+k[1]+k[3],height:w.height+k[0]+k[2],r:t.get("borderRadius")},style:z,subPixelOptimize:!0,silent:!0});g.add(_)}}})}); ;/*!node_modules/echarts/lib/component/timeline/preprocessor.js*/ amis.define("node_modules/echarts/lib/component/timeline/preprocessor",function(e,o,n){function i(e){var o=e&&e.timeline;s.isArray(o)||(o=o?[o]:[]),s.each(o,function(e){e&&t(e)})}function t(e){var o=e.type,n={number:"value",time:"time"};if(n[o]&&(e.axisType=n[o],delete e.type),l(e),a(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});a(i,"position")||(i.position=e.controlPosition),"none"!==i.position||a(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}s.each(e.data||[],function(e){s.isObject(e)&&!s.isArray(e)&&(!a(e,"value")&&a(e,"name")&&(e.value=e.name),l(e))})}function l(e){var o=e.itemStyle||(e.itemStyle={}),n=o.emphasis||(o.emphasis={}),i=e.label||e.label||{},t=i.normal||(i.normal={}),l={normal:1,emphasis:1};s.each(i,function(e,o){l[o]||a(t,o)||(t[o]=e)}),n.label&&!a(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function a(e,o){return e.hasOwnProperty(o)}var s=e("node_modules/zrender/lib/core/util");n.exports=i}); ;/*!node_modules/echarts/lib/component/timeline/typeDefaulter.js*/ @@ -925,7 +929,7 @@ amis.define("node_modules/echarts/lib/component/marker/MarkerModel",function(e,n ;/*!node_modules/echarts/lib/component/marker/MarkPointModel.js*/ amis.define("node_modules/echarts/lib/component/marker/MarkPointModel",function(e,o,i){var t=e("node_modules/echarts/lib/component/marker/MarkerModel"),l=t.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});i.exports=l}); ;/*!node_modules/echarts/lib/component/marker/markerHelper.js*/ -amis.define("node_modules/echarts/lib/component/marker/markerHelper",function(e,a){function i(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function n(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function t(e,a,i,n,t,r){var s=[],o=v(a,n),u=o?a.getCalculationInfo("stackResultDimension"):n,l=m(a,u,e),d=a.indicesOfNearest(u,l)[0];s[t]=a.get(i,d),s[r]=a.get(n,d);var x=c.getPrecision(a.get(n,d));return x=Math.min(x,20),x>=0&&(s[r]=+s[r].toFixed(x)),s}function r(e,a){var i=e.getData(),t=e.coordinateSystem;if(a&&!n(a)&&!d.isArray(a.coord)&&t){var r=t.dimensions,o=s(a,i,t,e);if(a=d.clone(a),a.type&&f[a.type]&&o.baseAxis&&o.valueAxis){var u=D(r,o.baseAxis.dim),l=D(r,o.valueAxis.dim);a.coord=f[a.type](i,o.baseDataDim,o.valueDataDim,u,l),a.value=a.coord[l]}else{for(var c=[null!=a.xAxis?a.xAxis:a.radiusAxis,null!=a.yAxis?a.yAxis:a.angleAxis],x=0;2>x;x++)f[c[x]]&&(c[x]=m(i,i.mapDimension(r[x]),c[x]));a.coord=c}}return a}function s(e,a,i,n){var t={};return null!=e.valueIndex||null!=e.valueDim?(t.valueDataDim=null!=e.valueIndex?a.getDimension(e.valueIndex):e.valueDim,t.valueAxis=i.getAxis(o(n,t.valueDataDim)),t.baseAxis=i.getOtherAxis(t.valueAxis),t.baseDataDim=a.mapDimension(t.baseAxis.dim)):(t.baseAxis=n.getBaseAxis(),t.valueAxis=i.getOtherAxis(t.baseAxis),t.baseDataDim=a.mapDimension(t.baseAxis.dim),t.valueDataDim=a.mapDimension(t.valueAxis.dim)),t}function o(e,a){var i=e.getData(),n=i.dimensions;a=i.getDimension(a);for(var t=0;tn?e.coord&&e.coord[n]:e.value}function m(e,a,i){if("average"===i){var n=0,t=0;return e.each(a,function(e){isNaN(e)||(n+=e,t++)}),n/t}return"median"===i?e.getMedian(a):e.getDataExtent(a,!0)["max"===i?1:0]}var d=e("node_modules/zrender/lib/core/util"),c=e("node_modules/echarts/lib/util/number"),x=e("node_modules/echarts/lib/data/helper/dataStackHelper"),v=x.isDimensionStacked,D=d.indexOf,A=d.curry,f={min:A(t,"min"),max:A(t,"max"),average:A(t,"average")};a.dataTransform=r,a.getAxisInfo=s,a.dataFilter=u,a.dimValueGetter=l,a.numCalculate=m}); +amis.define("node_modules/echarts/lib/component/marker/markerHelper",function(e,a){function i(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function n(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function t(e,a,i,n,t,r){var s=[],o=v(a,n),u=o?a.getCalculationInfo("stackResultDimension"):n,l=m(a,u,e),d=a.indicesOfNearest(u,l)[0];s[t]=a.get(i,d),s[r]=a.get(u,d);var x=a.get(n,d),D=c.getPrecision(a.get(n,d));return D=Math.min(D,20),D>=0&&(s[r]=+s[r].toFixed(D)),[s,x]}function r(e,a){var i=e.getData(),t=e.coordinateSystem;if(a&&!n(a)&&!d.isArray(a.coord)&&t){var r=t.dimensions,o=s(a,i,t,e);if(a=d.clone(a),a.type&&f[a.type]&&o.baseAxis&&o.valueAxis){var u=D(r,o.baseAxis.dim),l=D(r,o.valueAxis.dim),c=f[a.type](i,o.baseDataDim,o.valueDataDim,u,l);a.coord=c[0],a.value=c[1]}else{for(var x=[null!=a.xAxis?a.xAxis:a.radiusAxis,null!=a.yAxis?a.yAxis:a.angleAxis],v=0;2>v;v++)f[x[v]]&&(x[v]=m(i,i.mapDimension(r[v]),x[v]));a.coord=x}}return a}function s(e,a,i,n){var t={};return null!=e.valueIndex||null!=e.valueDim?(t.valueDataDim=null!=e.valueIndex?a.getDimension(e.valueIndex):e.valueDim,t.valueAxis=i.getAxis(o(n,t.valueDataDim)),t.baseAxis=i.getOtherAxis(t.valueAxis),t.baseDataDim=a.mapDimension(t.baseAxis.dim)):(t.baseAxis=n.getBaseAxis(),t.valueAxis=i.getOtherAxis(t.baseAxis),t.baseDataDim=a.mapDimension(t.baseAxis.dim),t.valueDataDim=a.mapDimension(t.valueAxis.dim)),t}function o(e,a){var i=e.getData(),n=i.dimensions;a=i.getDimension(a);for(var t=0;tn?e.coord&&e.coord[n]:e.value}function m(e,a,i){if("average"===i){var n=0,t=0;return e.each(a,function(e){isNaN(e)||(n+=e,t++)}),n/t}return"median"===i?e.getMedian(a):e.getDataExtent(a,!0)["max"===i?1:0]}var d=e("node_modules/zrender/lib/core/util"),c=e("node_modules/echarts/lib/util/number"),x=e("node_modules/echarts/lib/data/helper/dataStackHelper"),v=x.isDimensionStacked,D=d.indexOf,A=d.curry,f={min:A(t,"min"),max:A(t,"max"),average:A(t,"average")};a.dataTransform=r,a.getAxisInfo=s,a.dataFilter=u,a.dimValueGetter=l,a.numCalculate=m}); ;/*!node_modules/echarts/lib/component/marker/MarkerView.js*/ amis.define("node_modules/echarts/lib/component/marker/MarkerView",function(e,r,n){var i=e("node_modules/echarts/lib/echarts"),t=e("node_modules/zrender/lib/core/util"),o=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=t.createHashMap()},render:function(e,r,n){var i=this.markerGroupMap;i.each(function(e){e.__keep=!1});var t=this.type+"Model";r.eachSeries(function(e){var i=e[t];i&&this.renderSeries(e,i,r,n)},this),i.each(function(e){!e.__keep&&this.group.remove(e.group)},this)},renderSeries:function(){}});n.exports=o}); ;/*!node_modules/echarts/lib/component/marker/MarkPointView.js*/ @@ -933,7 +937,7 @@ amis.define("node_modules/echarts/lib/component/marker/MarkPointView",function(e ;/*!node_modules/echarts/lib/component/markPoint.js*/ amis.define("node_modules/echarts/lib/component/markPoint",function(e){var o=e("node_modules/echarts/lib/echarts");e("node_modules/echarts/lib/component/marker/MarkPointModel"),e("node_modules/echarts/lib/component/marker/MarkPointView"),o.registerPreprocessor(function(e){e.markPoint=e.markPoint||{}})}); ;/*!node_modules/echarts/lib/component/marker/MarkLineModel.js*/ -amis.define("node_modules/echarts/lib/component/marker/MarkLineModel",function(e,i,o){var l=e("node_modules/echarts/lib/component/marker/MarkerModel"),n=l.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});o.exports=n}); +amis.define("node_modules/echarts/lib/component/marker/MarkLineModel",function(e,i,o){var n=e("node_modules/echarts/lib/component/marker/MarkerModel"),l=n.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});o.exports=l}); ;/*!node_modules/echarts/lib/component/marker/MarkLineView.js*/ amis.define("node_modules/echarts/lib/component/marker/MarkLineView",function(e,t,a){function o(e){return!isNaN(e)&&!isFinite(e)}function i(e,t,a,i){var r=1-e,n=i.dimensions[e];return o(t[r])&&o(a[r])&&t[e]===a[e]&&i.getAxis(n).containData(t[e])}function r(e,t){if("cartesian2d"===e.type){var a=t[0].coord,o=t[1].coord;if(a&&o&&(i(1,a,o,e)||i(0,a,o,e)))return!0}return d.dataFilter(e,t[0])&&d.dataFilter(e,t[1])}function n(e,t,a,i,r){var n,s=i.coordinateSystem,l=e.getItemModel(t),m=u.parsePercent(l.get("x"),r.getWidth()),d=u.parsePercent(l.get("y"),r.getHeight());if(isNaN(m)||isNaN(d)){if(i.getMarkerPosition)n=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=s.dimensions,g=e.get(c[0],t),f=e.get(c[1],t);n=s.dataToPoint([g,f])}if("cartesian2d"===s.type){var y=s.getAxis("x"),p=s.getAxis("y"),c=s.dimensions;o(e.get(c[0],t))?n[0]=y.toGlobalCoord(y.getExtent()[a?0:1]):o(e.get(c[1],t))&&(n[1]=p.toGlobalCoord(p.getExtent()[a?0:1]))}isNaN(m)||(n[0]=m),isNaN(d)||(n[1]=d)}else n=[m,d];e.setItemLayout(t,n)}function s(e,t,a){var o;o=e?l.map(e&&e.dimensions,function(e){var a=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return l.defaults({name:e},a)}):[{name:"value",type:"float"}];var i=new m(o,a),n=new m(o,a),s=new m([],a),u=l.map(a.get("data"),l.curry(p,t,e,a));e&&(u=l.filter(u,l.curry(r,e)));var c=e?d.dimValueGetter:function(e){return e.value};return i.initData(l.map(u,function(e){return e[0]}),null,c),n.initData(l.map(u,function(e){return e[1]}),null,c),s.initData(l.map(u,function(e){return e[2]})),s.hasItemOption=!0,{from:i,to:n,line:s}}var l=e("node_modules/zrender/lib/core/util"),m=e("node_modules/echarts/lib/data/List"),u=e("node_modules/echarts/lib/util/number"),d=e("node_modules/echarts/lib/component/marker/markerHelper"),c=e("node_modules/echarts/lib/chart/helper/LineDraw"),g=e("node_modules/echarts/lib/component/marker/MarkerView"),f=e("node_modules/echarts/lib/data/helper/dataStackHelper"),y=f.getStackedDimension,p=function(e,t,a,o){var i=e.getData(),r=o.type;if(!l.isArray(o)&&("min"===r||"max"===r||"average"===r||"median"===r||null!=o.xAxis||null!=o.yAxis)){var n,s;if(null!=o.yAxis||null!=o.xAxis)n=t.getAxis(null!=o.yAxis?"y":"x"),s=l.retrieve(o.yAxis,o.xAxis);else{var m=d.getAxisInfo(o,i,t,e);n=m.valueAxis;var u=y(i,m.valueDataDim);s=d.numCalculate(i,u,r)}var c="x"===n.dim?0:1,g=1-c,f=l.clone(o),p={};f.type=null,f.coord=[],p.coord=[],f.coord[g]=-1/0,p.coord[g]=1/0;var v=a.get("precision");v>=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(v,20))),f.coord[c]=p.coord[c]=s,o=[f,p,{type:r,valueIndex:o.valueIndex,value:s}]}return o=[d.dataTransform(e,o[0]),d.dataTransform(e,o[1]),l.extend({},o[2])],o[2].type=o[2].type||"",l.merge(o[2],o[0]),l.merge(o[2],o[1]),o},v=g.extend({type:"markLine",updateTransform:function(e,t,a){t.eachSeries(function(e){var t=e.markLineModel;if(t){var o=t.getData(),i=t.__from,r=t.__to;i.each(function(t){n(i,t,!0,e,a),n(r,t,!1,e,a)}),o.each(function(e){o.setItemLayout(e,[i.getItemLayout(e),r.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},renderSeries:function(e,t,a,o){function i(t,a,i){var r=t.getItemModel(a);n(t,a,i,e,o),t.setItemVisual(a,{symbolSize:r.get("symbolSize")||b[i?0:1],symbol:r.get("symbol",!0)||x[i?0:1],color:r.get("itemStyle.color")||u.getVisual("color")})}var r=e.coordinateSystem,m=e.id,u=e.getData(),d=this.markerGroupMap,g=d.get(m)||d.set(m,new c);this.group.add(g.group);var f=s(r,e,t),y=f.from,p=f.to,v=f.line;t.__from=y,t.__to=p,t.setData(v);var x=t.get("symbol"),b=t.get("symbolSize");l.isArray(x)||(x=[x,x]),"number"==typeof b&&(b=[b,b]),f.from.each(function(e){i(y,e,!0),i(p,e,!1)}),v.each(function(e){var t=v.getItemModel(e).get("lineStyle.color");v.setItemVisual(e,{color:t||y.getItemVisual(e,"color")}),v.setItemLayout(e,[y.getItemLayout(e),p.getItemLayout(e)]),v.setItemVisual(e,{fromSymbolSize:y.getItemVisual(e,"symbolSize"),fromSymbol:y.getItemVisual(e,"symbol"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol")})}),g.updateData(v),f.line.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=t})}),g.__keep=!0,g.group.silent=t.get("silent")||e.get("silent")}});a.exports=v}); ;/*!node_modules/echarts/lib/component/markLine.js*/ @@ -957,7 +961,7 @@ amis.define("node_modules/echarts/lib/component/legend",function(e){var n=e("nod ;/*!node_modules/echarts/lib/component/legend/ScrollableLegendModel.js*/ amis.define("node_modules/echarts/lib/component/legend/ScrollableLegendModel",function(e,t,o){function n(e,t,o){var n=e.getOrient(),a=[1,1];a[n.index]=0,l(t,o,{type:"box",ignoreSize:a})}var a=e("node_modules/echarts/lib/component/legend/LegendModel"),i=e("node_modules/echarts/lib/util/layout"),l=i.mergeLayoutParam,r=i.getLayoutParams,p=a.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,o,a){var i=r(e);p.superCall(this,"init",e,t,o,a),n(this,e,i)},mergeOption:function(e,t){p.superCall(this,"mergeOption",e,t),n(this,this.option,e)}}),c=p;o.exports=c}); ;/*!node_modules/echarts/lib/component/legend/ScrollableLegendView.js*/ -amis.define("node_modules/echarts/lib/component/legend/ScrollableLegendView",function(e,t,n){var o=e("node_modules/zrender/lib/core/util"),i=e("node_modules/echarts/lib/util/graphic"),r=e("node_modules/echarts/lib/util/layout"),a=e("node_modules/echarts/lib/component/legend/LegendView"),l=i.Group,g=["width","height"],u=["x","y"],s=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new l),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new l),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,r,a,l,g){function u(e,n){var a=e+"DataIndex",l=i.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:o.bind(d._pageGo,d,a,t,r)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});l.name=e,p.add(l)}var d=this;s.superCall(this,"renderInner",e,t,n,r,a,l,g);var p=this._controllerGroup,c=t.get("pageIconSize",!0);o.isArray(c)||(c=[c,c]),u("pagePrev",0);var h=t.getModel("pageTextStyle");p.add(new i.Text({name:"pageText",style:{textFill:h.getTextColor(),font:h.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),u("pageNext",1)},layoutInner:function(e,t,n,i,a,l){var s=this.getSelectorGroup(),d=e.getOrient().index,p=g[d],c=u[d],h=g[1-d],x=u[1-d];a&&r.box("horizontal",s,e.get("selectorItemGap",!0));var _=e.get("selectorButtonGap",!0),I=s.getBoundingRect(),f=[-I.x,-I.y],v=o.clone(n);a&&(v[p]=n[p]-I[p]-_);var m=this._layoutContentAndController(e,i,v,d,p,h,x);if(a){if("end"===l)f[d]+=m[p]+_;else{var C=I[p]+_;f[d]-=C,m[c]-=C}m[p]+=I[p]+_,f[1-d]+=m[x]+m[h]/2-I[h]/2,m[h]=Math.max(m[h],I[h]),m[x]=Math.min(m[x],I[x]+f[1-d]),s.attr("position",f)}return m},_layoutContentAndController:function(e,t,n,a,l,g,u){var s=this.getContentGroup(),d=this._containerGroup,p=this._controllerGroup;r.box(e.get("orient"),s,e.get("itemGap"),a?n.width:null,a?null:n.height),r.box("horizontal",p,e.get("pageButtonItemGap",!0));var c=s.getBoundingRect(),h=p.getBoundingRect(),x=this._showController=c[l]>n[l],_=[-c.x,-c.y];t||(_[a]=s.position[a]);var I=[0,0],f=[-h.x,-h.y],v=o.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(x){var m=e.get("pageButtonPosition",!0);"end"===m?f[a]+=n[l]-h[l]:I[a]+=h[l]+v}f[1-a]+=c[g]/2-h[g]/2,s.attr("position",_),d.attr("position",I),p.attr("position",f);var C={x:0,y:0};if(C[l]=x?n[l]:c[l],C[g]=Math.max(c[g],h[g]),C[u]=Math.min(0,h[u]+f[1-a]),d.__rectSize=n[l],x){var G={x:0,y:0};G[l]=Math.max(n[l]-h[l]-v,0),G[g]=C[g],d.setClipPath(new i.Rect({shape:G})),d.__rectSize=G[l]}else p.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var y=this._getPageInfo(e);return null!=y.pageIndex&&i.updateProps(s,{position:y.contentPosition},x?e:!1),this._updatePageInfoView(e,y),C},_pageGo:function(e,t,n){var o=this._getPageInfo(t)[e];null!=o&&n.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;o.each(["pagePrev","pageNext"],function(o){var i=null!=t[o+"DataIndex"],r=n.childOfName(o);r&&(r.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")});var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,l=null!=a?a+1:0,g=t.pageCount;i&&r&&i.setStyle("text",o.isString(r)?r.replace("{current}",l).replace("{total}",g):r({current:l,total:g}))},_getPageInfo:function(e){function t(e){if(e){var t=e.getBoundingRect(),n=t[s]+e.position[a];return{s:n,e:n+t[l],i:e.__legendDataIndex}}}function n(e,t){return e.e>=t&&e.s<=t+r}var o=e.get("scrollDataIndex",!0),i=this.getContentGroup(),r=this._containerGroup.__rectSize,a=e.getOrient().index,l=g[a],s=u[a],d=this._findTargetItemIndex(o),p=i.children(),c=p[d],h=p.length,x=h?1:0,_={contentPosition:i.position.slice(),pageCount:x,pageIndex:x-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return _;var I=t(c);_.contentPosition[a]=-I.s;for(var f=d+1,v=I,m=I,C=null;h>=f;++f)C=t(p[f]),(!C&&m.e>v.s+r||C&&!n(C,v.s))&&(v=m.i>v.i?m:C,v&&(null==_.pageNextDataIndex&&(_.pageNextDataIndex=v.i),++_.pageCount)),m=C;for(var f=d-1,v=I,m=I,C=null;f>=-1;--f)C=t(p[f]),C&&n(m,C.s)||!(v.in[l],_=[-c.x,-c.y];t||(_[a]=s.position[a]);var I=[0,0],f=[-h.x,-h.y],v=o.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(x){var m=e.get("pageButtonPosition",!0);"end"===m?f[a]+=n[l]-h[l]:I[a]+=h[l]+v}f[1-a]+=c[u]/2-h[u]/2,s.attr("position",_),d.attr("position",I),p.attr("position",f);var C={x:0,y:0};if(C[l]=x?n[l]:c[l],C[u]=Math.max(c[u],h[u]),C[g]=Math.min(0,h[g]+f[1-a]),d.__rectSize=n[l],x){var G={x:0,y:0};G[l]=Math.max(n[l]-h[l]-v,0),G[u]=C[u],d.setClipPath(new i.Rect({shape:G})),d.__rectSize=G[l]}else p.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var y=this._getPageInfo(e);return null!=y.pageIndex&&i.updateProps(s,{position:y.contentPosition},x?e:!1),this._updatePageInfoView(e,y),C},_pageGo:function(e,t,n){var o=this._getPageInfo(t)[e];null!=o&&n.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;o.each(["pagePrev","pageNext"],function(o){var i=null!=t[o+"DataIndex"],r=n.childOfName(o);r&&(r.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")});var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,l=null!=a?a+1:0,u=t.pageCount;i&&r&&i.setStyle("text",o.isString(r)?r.replace("{current}",l).replace("{total}",u):r({current:l,total:u}))},_getPageInfo:function(e){function t(e){if(e){var t=e.getBoundingRect(),n=t[s]+e.position[a];return{s:n,e:n+t[l],i:e.__legendDataIndex}}}function n(e,t){return e.e>=t&&e.s<=t+r}var o=e.get("scrollDataIndex",!0),i=this.getContentGroup(),r=this._containerGroup.__rectSize,a=e.getOrient().index,l=u[a],s=g[a],d=this._findTargetItemIndex(o),p=i.children(),c=p[d],h=p.length,x=h?1:0,_={contentPosition:i.position.slice(),pageCount:x,pageIndex:x-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return _;var I=t(c);_.contentPosition[a]=-I.s;for(var f=d+1,v=I,m=I,C=null;h>=f;++f)C=t(p[f]),(!C&&m.e>v.s+r||C&&!n(C,v.s))&&(v=m.i>v.i?m:C,v&&(null==_.pageNextDataIndex&&(_.pageNextDataIndex=v.i),++_.pageCount)),m=C;for(var f=d-1,v=I,m=I,C=null;f>=-1;--f)C=t(p[f]),C&&n(m,C.s)||!(v.i0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=a.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(i){var s=[],n=i.getData();n.each(this.getDataDimension(n),function(t,i){var n=o.findPieceIndex(t,this._pieceList);n===e&&s.push(i)},this),t.push({seriesId:i.id,dataIndex:s})},this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&1/0===i[1]?0:(i[0]+i[1])/2}return t},getVisualMeta:function(e){function t(t,a){var l=n.getRepresentValue({interval:t});a||(a=n.getValueState(l));var o=e(l,a);t[0]===-1/0?s[0]=o:1/0===t[1]?s[1]=o:i.push({value:t[0],color:o},{value:t[1],color:o})}if(!this.isCategory()){var i=[],s=[],n=this,l=this._pieceList.slice();if(l.length){var o=l[0].interval[0];o!==-1/0&&l.unshift({interval:[-1/0,o]}),o=l[l.length-1].interval[1],1/0!==o&&l.push({interval:[o,1/0]})}else l.push({interval:[-1/0,1/0]});var r=-1/0;return a.each(l,function(e){var i=e.interval;i&&(i[0]>r&&t([r,i[0]],"outOfRange"),t(i.slice()),r=i[1])},this),{stops:i,outerColors:s}}}}),p={splitNumber:function(){var e=this.option,t=this._pieceList,i=Math.min(e.precision,20),s=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var l=(s[1]-s[0])/n;+l.toFixed(i)!==l&&5>i;)i++;e.precision=i,l=+l.toFixed(i);var o=0;e.minOpen&&t.push({index:o++,interval:[-1/0,s[0]],close:[0,0]});for(var r=s[0],c=o+n;c>o;r+=l){var h=o===n-1?s[1]:r+l;t.push({index:o++,interval:[r,h],close:[1,1]})}e.maxOpen&&t.push({index:o++,interval:[s[1],1/0],close:[0,0]}),u(t),a.each(t,function(e){e.text=this.formatValueText(e.interval)},this)},categories:function(){var e=this.option;a.each(e.categories,function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})},this),s(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;a.each(e.pieces,function(e,i){a.isObject(e)||(e={value:e});var s={text:"",index:i};if(null!=e.label&&(s.text=e.label),e.hasOwnProperty("value")){var n=s.value=e.value;s.interval=[n,n],s.close=[1,1]}else{for(var l=s.interval=[],r=s.close=[0,0],c=[1,0,1],u=[-1/0,1/0],h=[],p=0;2>p;p++){for(var v=[["gte","gt","min"],["lte","lt","max"]][p],d=0;3>d&&null==l[p];d++)l[p]=e[v[d]],r[p]=c[d],h[p]=2===d;null==l[p]&&(l[p]=u[p])}h[0]&&1/0===l[1]&&(r[0]=0),h[1]&&l[0]===-1/0&&(r[1]=0),l[0]===l[1]&&r[0]&&r[1]&&(s.value=l[0])}s.visual=o.retrieveVisuals(e),t.push(s)},this),s(e,t),u(t),a.each(t,function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)},this)}},v=h;i.exports=v}); +amis.define("node_modules/echarts/lib/component/visualMap/PiecewiseModel",function(e,t,i){function s(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var n=e("node_modules/echarts/lib/config"),a=(n.__DEV__,e("node_modules/zrender/lib/core/util")),l=e("node_modules/echarts/lib/component/visualMap/VisualMapModel"),o=e("node_modules/echarts/lib/visual/VisualMapping"),r=e("node_modules/echarts/lib/visual/visualDefault"),c=e("node_modules/echarts/lib/util/number"),u=c.reformIntervals,h=l.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){h.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();p[this._mode].call(this),this._resetSelected(e,t);var s=this.option.categories;this.resetVisual(function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=a.clone(s)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=a.map(this._pieceList,function(e){var e=a.clone(e);return"inRange"!==t&&(e.visual=null),e}))})},completeVisualOption:function(){function e(e,t,i){return e&&e[t]&&(a.isObject(e[t])?e[t].hasOwnProperty(i):e[t]===i)}var t=this.option,i={},s=o.listVisualTypes(),n=this.isCategory();a.each(t.pieces,function(e){a.each(s,function(t){e.hasOwnProperty(t)&&(i[t]=1)})}),a.each(i,function(i,s){var l=0;a.each(this.stateList,function(i){l|=e(t,i,s)||e(t.target,i,s)},this),!l&&a.each(this.stateList,function(e){(t[e]||(t[e]={}))[s]=r.get(s,"inRange"===e?"active":"inactive",n)})},this),l.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var i=this.option,s=this._pieceList,n=(t?i:e).selected||{};if(i.selected=n,a.each(s,function(e){var t=this.getSelectedMapKey(e);n.hasOwnProperty(t)||(n[t]=!0)},this),"single"===i.selectedMode){var l=!1;a.each(s,function(e){var t=this.getSelectedMapKey(e);n[t]&&(l?n[t]=!1:l=!0)},this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=a.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(i){var s=[],n=i.getData();n.each(this.getDataDimension(n),function(t,i){var n=o.findPieceIndex(t,this._pieceList);n===e&&s.push(i)},this),t.push({seriesId:i.id,dataIndex:s})},this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&1/0===i[1]?0:(i[0]+i[1])/2}return t},getVisualMeta:function(e){function t(t,a){var l=n.getRepresentValue({interval:t});a||(a=n.getValueState(l));var o=e(l,a);t[0]===-1/0?s[0]=o:1/0===t[1]?s[1]=o:i.push({value:t[0],color:o},{value:t[1],color:o})}if(!this.isCategory()){var i=[],s=[],n=this,l=this._pieceList.slice();if(l.length){var o=l[0].interval[0];o!==-1/0&&l.unshift({interval:[-1/0,o]}),o=l[l.length-1].interval[1],1/0!==o&&l.push({interval:[o,1/0]})}else l.push({interval:[-1/0,1/0]});var r=-1/0;return a.each(l,function(e){var i=e.interval;i&&(i[0]>r&&t([r,i[0]],"outOfRange"),t(i.slice()),r=i[1])},this),{stops:i,outerColors:s}}}}),p={splitNumber:function(){var e=this.option,t=this._pieceList,i=Math.min(e.precision,20),s=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var l=(s[1]-s[0])/n;+l.toFixed(i)!==l&&5>i;)i++;e.precision=i,l=+l.toFixed(i),e.minOpen&&t.push({interval:[-1/0,s[0]],close:[0,0]});for(var o=0,r=s[0];n>o;r+=l,o++){var c=o===n-1?s[1]:r+l;t.push({interval:[r,c],close:[1,1]})}e.maxOpen&&t.push({interval:[s[1],1/0],close:[0,0]}),u(t),a.each(t,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(){var e=this.option;a.each(e.categories,function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})},this),s(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;a.each(e.pieces,function(e,i){a.isObject(e)||(e={value:e});var s={text:"",index:i};if(null!=e.label&&(s.text=e.label),e.hasOwnProperty("value")){var n=s.value=e.value;s.interval=[n,n],s.close=[1,1]}else{for(var l=s.interval=[],r=s.close=[0,0],c=[1,0,1],u=[-1/0,1/0],h=[],p=0;2>p;p++){for(var v=[["gte","gt","min"],["lte","lt","max"]][p],d=0;3>d&&null==l[p];d++)l[p]=e[v[d]],r[p]=c[d],h[p]=2===d;null==l[p]&&(l[p]=u[p])}h[0]&&1/0===l[1]&&(r[0]=0),h[1]&&l[0]===-1/0&&(r[1]=0),l[0]===l[1]&&r[0]&&r[1]&&(s.value=l[0])}s.visual=o.retrieveVisuals(e),t.push(s)},this),s(e,t),u(t),a.each(t,function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)},this)}},v=h;i.exports=v}); ;/*!node_modules/echarts/lib/component/visualMap/PiecewiseView.js*/ amis.define("node_modules/echarts/lib/component/visualMap/PiecewiseView",function(e,t,i){var n=e("node_modules/zrender/lib/core/util"),o=e("node_modules/echarts/lib/component/visualMap/VisualMapView"),l=e("node_modules/echarts/lib/util/graphic"),a=e("node_modules/echarts/lib/util/symbol"),s=a.createSymbol,r=e("node_modules/echarts/lib/util/layout"),d=e("node_modules/echarts/lib/component/visualMap/helper"),c=o.extend({type:"visualMap.piecewise",doRender:function(){function e(e){var a=e.piece,r=new l.Group;r.onclick=n.bind(this._onItemClick,this,a),this._enableHoverLink(r,e.indexInModelPieceList);var h=i.getRepresentValue(a);if(this._createItemSymbol(r,h,[0,0,u[0],u[1]]),g){var p=this.visualMapModel.getValueState(h);r.add(new l.Text({style:{x:"right"===c?-o:u[0]+o,y:u[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:c,textFont:s,textFill:d,opacity:"outOfRange"===p?.5:1}}))}t.add(r)}var t=this.group;t.removeAll();var i=this.visualMapModel,o=i.get("textGap"),a=i.textStyleModel,s=a.getFont(),d=a.getTextColor(),c=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),p=h.endsText,g=n.retrieve(i.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],u,g,c),n.each(h.viewPieceList,e,this),p&&this._renderEndsText(t,p[1],u,g,c),r.box(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(e,t){function i(e){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(i.findTargetDataIndices(t),i)})}e.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return d.getItemAlign(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(e,t,i,n,o){if(t){var a=new l.Group,s=this.visualMapModel.textStyleModel;a.add(new l.Text({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?o:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=n.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),i=e.get("text"),o=e.get("orient"),l=e.get("inverse");return("horizontal"===o?l:!l)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},_createItemSymbol:function(e,t,i){e.add(s(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,i=t.option,o=n.clone(i.selected),l=t.getSelectedMapKey(e);"single"===i.selectedMode?(o[l]=!0,n.each(o,function(e,t){o[t]=t===l})):o[l]=!o[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}}),u=c;i.exports=u}); ;/*!node_modules/echarts/lib/component/visualMapPiecewise.js*/ @@ -1021,11 +1025,11 @@ amis.define("node_modules/echarts/extension/bmap/BMapCoordSys",function(t,e,o){f ;/*!node_modules/echarts/extension/bmap/BMapModel.js*/ amis.define("node_modules/echarts/extension/bmap/BMapModel",function(e,n,o){function t(e,n){return e&&n&&e[0]===n[0]&&e[1]===n[1]}var r=e("node_modules/echarts/index"),i=r.extendComponentModel({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(e,n){this.option.center=e,this.option.zoom=n},centerOrZoomChanged:function(e,n){var o=this.option;return!(t(e,o.center)&&n===o.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},roam:!1}});o.exports=i}); ;/*!node_modules/echarts/extension/bmap/BMapView.js*/ -amis.define("node_modules/echarts/extension/bmap/BMapView",function(e,t,o){var n=e("node_modules/echarts/index"),a=n.extendComponentView({type:"bmap",render:function(e,t,o){function n(){a||o.dispatchAction({type:"bmapRoam"})}var a=!0,i=e.getBMap(),l=o.getZr().painter.getViewportRoot(),s=e.coordinateSystem,r=function(){if(!a){var t=l.parentNode.parentNode.parentNode,n=[-parseInt(t.style.left,10)||0,-parseInt(t.style.top,10)||0];l.style.left=n[0]+"px",l.style.top=n[1]+"px",s.setMapOffset(n),e.__mapOffset=n,o.dispatchAction({type:"bmapRoam"})}};i.removeEventListener("moving",this._oldMoveHandler),i.removeEventListener("zoomend",this._oldZoomEndHandler),i.addEventListener("moving",r),i.addEventListener("zoomend",n),this._oldMoveHandler=r,this._oldZoomEndHandler=n;var p=e.get("roam");p&&"scale"!==p?i.enableDragging():i.disableDragging(),p&&"move"!==p?(i.enableScrollWheelZoom(),i.enableDoubleClickZoom(),i.enablePinchToZoom()):(i.disableScrollWheelZoom(),i.disableDoubleClickZoom(),i.disablePinchToZoom());var d=e.__mapStyle,m=e.get("mapStyle")||{},y=JSON.stringify(m);JSON.stringify(d)!==y&&(Object.keys(m).length&&i.setMapStyle(m),e.__mapStyle=JSON.parse(y));var c=e.__mapStyle2,g=e.get("mapStyleV2")||{},v=JSON.stringify(g);JSON.stringify(c)!==v&&(Object.keys(g).length&&i.setMapStyleV2(g),e.__mapStyle2=JSON.parse(v)),a=!1}});o.exports=a}); +amis.define("node_modules/echarts/extension/bmap/BMapView",function(e,t,o){var n=e("node_modules/echarts/index"),a=e("node_modules/zrender/lib/core/util"),l=a.clone,i=n.extendComponentView({type:"bmap",render:function(e,t,o){function n(){a||o.dispatchAction({type:"bmapRoam"})}var a=!0,i=e.getBMap(),r=o.getZr().painter.getViewportRoot(),s=e.coordinateSystem,d=function(){if(!a){var t=r.parentNode.parentNode.parentNode,n=[-parseInt(t.style.left,10)||0,-parseInt(t.style.top,10)||0];r.style.left=n[0]+"px",r.style.top=n[1]+"px",s.setMapOffset(n),e.__mapOffset=n,o.dispatchAction({type:"bmapRoam"})}};i.removeEventListener("moving",this._oldMoveHandler),i.removeEventListener("zoomend",this._oldZoomEndHandler),i.addEventListener("moving",d),i.addEventListener("zoomend",n),this._oldMoveHandler=d,this._oldZoomEndHandler=n;var p=e.get("roam");p&&"scale"!==p?i.enableDragging():i.disableDragging(),p&&"move"!==p?(i.enableScrollWheelZoom(),i.enableDoubleClickZoom(),i.enablePinchToZoom()):(i.disableScrollWheelZoom(),i.disableDoubleClickZoom(),i.disablePinchToZoom());var m=e.__mapStyle,c=e.get("mapStyle")||{},y=JSON.stringify(c);JSON.stringify(m)!==y&&(Object.keys(c).length&&i.setMapStyle(l(c)),e.__mapStyle=JSON.parse(y));var g=e.__mapStyle2,b=e.get("mapStyleV2")||{},v=JSON.stringify(b);JSON.stringify(g)!==v&&(Object.keys(b).length&&i.setMapStyleV2(l(b)),e.__mapStyle2=JSON.parse(v)),a=!1}});o.exports=i}); ;/*!node_modules/echarts/extension/bmap/bmap.js*/ amis.define("node_modules/echarts/extension/bmap/bmap",function(e,o){var n=e("node_modules/echarts/index"),a=e("node_modules/echarts/extension/bmap/BMapCoordSys");e("node_modules/echarts/extension/bmap/BMapModel"),e("node_modules/echarts/extension/bmap/BMapView"),n.registerCoordinateSystem("bmap",a),n.registerAction({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},function(e,o){o.eachComponent("bmap",function(e){var o=e.getBMap(),n=o.getCenter();e.setCenterAndZoom([n.lng,n.lat],o.getZoom())})});var t="1.0.0";o.version=t}); ;/*!node_modules/echarts/map/js/china.js*/ -amis.define("node_modules/echarts/map/js/china",function(e,t,o,s){!function(o,r){"function"==typeof s&&s.amd?s(["exports","echarts"],r):"object"==typeof t&&"string"!=typeof t.nodeName?r(t,e("node_modules/echarts/index")):r({},o.echarts)}(this,function(e,t){var o=function(e){"undefined"!=typeof console&&console&&console.error&&console.error(e)};return t?t.registerMap?void t.registerMap("china",{type:"FeatureCollection",features:[{id:"710000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@°Ü¯Û"],["@@ƛĴÕƊÉɼģºðʀ\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ"],["@@\\p|WoYG¿¥I†j@¢"],["@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I"],["@@ÆEE—„kWqë @œ"],["@@fced"]],encodeOffsets:[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]]]},properties:{cp:[121.509062,24.044332],name:"台湾",childNum:6}},{id:"130000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e"],["@@U`Ts¿m‚"],["@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧĖ¸fŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgʊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|Ç°…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃĶš¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\tŽa\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\mĆJfl@cĢ¬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®VŠ¹d^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qᵧš™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚"]],encodeOffsets:[[[119712,40641]],[[121616,39981]],[[116462,37237]]]},properties:{cp:[114.502461,38.045474],name:"河北",childNum:3}},{id:"140000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz"],encodeOffsets:[[116874,41716]]},properties:{cp:[111.849248,36.857014],name:"山西",childNum:1}},{id:"150000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@Č^â£Ăh–šĖMÈÄw‚\\fŦ°W ¢¾luŸD„wŠ\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ–›¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu¦ö"],["@@sKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚĒ¸ĞGȖƴƀj`ĢçĶāàŃºēĢƒĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTЪŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFĒœƌXƲąo½Ę‘\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ż؛Ç@Vu»A—ylßí¹ĵê…ÝlISò³C¹Ìâ„²i¶’Ìoú^H“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot׶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ȈÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µ"]],encodeOffsets:[[[127444,52594]],[[113793,40312]]]},properties:{cp:[111.670801,41.818311],name:"内蒙古",childNum:2}},{id:"210000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@L–Ž@@s™a"],["@@MnNm"],["@@d‚c"],["@@eÀ‚C@b‚“‰"],["@@f‡…Xwkbr–Ä`qg"],["@@^jtW‘Q"],["@@~ Y]c"],["@@G`ĔN^_¿Z‚ÃM"],["@@iX¶B‹Y"],["@@„YƒZ"],["@@L_{Epf"],["@@^WqCT\\"],["@@\\[“‹§t|”¤_"],["@@m`n_"],["@@Ïxnj{q_×^Giip"],["@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\ÀøíDm¦ÎbŨab‰œaĘ\\ľã‚¸a˜tÎSƐ´©v\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA"]],encodeOffsets:[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]},properties:{cp:[123.429096,41.796767],name:"辽宁",childNum:16}},{id:"220000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG"],encodeOffsets:[[130196,42528]]},properties:{cp:[125.3245,43.886841],name:"吉林",childNum:1}},{id:"230000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUvÈ@"],["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tŽ¸ĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\kzţ¦šnņäÔVĂîĪ¬|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]"]],encodeOffsets:[[[127123,51780]],[[134456,44547]]]},properties:{cp:[128.642464,46.756967],name:"黑龙江",childNum:2}},{id:"320000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@cþÅPiŠ`ZŸRu¥É\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@Ę¹hågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ"],encodeOffsets:[[121740,32276]]},properties:{cp:[119.767413,33.041544],name:"江苏",childNum:1}},{id:"330000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@E^dQ]K"],["@@jX^j‡"],["@@sfŠbU‡"],["@@qP\\xz[ck"],["@@‘Rƒ¢‚FX}°[s_"],["@@Cbœ\\—}"],["@@e|v\\la{u"],["@@v~u}"],["@@QxÂF¯}"],["@@¹nŒvÞs¯o"],["@@rSkUEj"],["@@bi­ZŒP"],["@@p[}INf"],["@@À¿€"],["@@¹dnbŒ…"],["@@rSŸBnR"],["@@g~h}"],["@@FlEk"],["@@OdPc"],["@@v[u\\"],["@@FjâL~wyoo~›sµL–\\"],["@@¬e¹aNˆ"],["@@\\nÔ¡q]L³ë\\ÿ®ŒQ֎"],["@@ÊA­©[¬"],["@@KxŒv­"],["@@@hlIk]"],["@@pW{o||j"],["@@Md|_mC"],["@@¢…X£ÏylD¼XˆtH"],["@@hlÜ[LykAvyfw^Ež›¤"],["@@fp¤Mus“R"],["@@®_ma~•LÁ¬šZ"],["@@iM„xZ"],["@@ZcYd"],["@@Z~dOSo|A¿qZv"],["@@@`”EN¡v"],["@@|–TY{"],["@@@n@m"],["@@XWkCT\\"],["@@ºwšZRkĕWO¢"],["@@™X®±Grƪ\\ÔáXq{‹"],["@@ůTG°ĄLHm°UC‹"],["@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВjē¢·ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈڜĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst"],["@@o\\V’zRZ}y"],["@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™"]],encodeOffsets:[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125e3,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]},properties:{cp:[120.153576,29.287459],name:"浙江",childNum:45}},{id:"340000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@^iuLX^"],["@@‚e©Ehl"],["@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜƶĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆߎF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴĖ¶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´"]],encodeOffsets:[[[121722,32278]],[[119475,30423]],[[119168,35472]]]},properties:{cp:[117.283042,31.26119],name:"安徽",childNum:3}},{id:"350000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@“zht´‡]"],["@@aj^~ĆG—©O"],["@@ed¨„C}}i"],["@@@vˆPGsQ"],["@@‰sBz‚ddW]Q"],["@@SŽ¨Q“{"],["@@NŽVucW"],["@@qptBAq"],["@@‰’¸[mu"],["@@Q\\pD]_"],["@@jSwUadpF"],["@@eXª~ƒ•"],["@@AjvFso"],["@@fT–›_Çí\\Ÿ™—v|ba¦jZÆy€°"],["@@IjJi"],["@@wJI€ˆxš«¼AoNe{M­"],["@@K‰±¡Óˆ”ČäeZ"],["@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\_"]],encodeOffsets:[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]},properties:{cp:[118.306239,26.075302],name:"福建",childNum:18}},{id:"360000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ĢĨƐgļˆ¼ÂMD~ņªe^\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗā¼‹mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\˜„L‚‘²"],encodeOffsets:[[116689,26234]]},properties:{cp:[115.592151,27.676493],name:"江西",childNum:1}},{id:"370000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@Xjd]{K"],["@@itbFHy"],["@@HlGk"],["@@T‚ŒGŸy"],["@@K¬˜•‹U"],["@@WdXc"],["@@PtOs"],["@@•LnXhc"],["@@ppVƒu]Or"],["@@cdzAUa"],["@@udRhnCI‡"],["@@ˆoIƒpR„"],["@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞƄLĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌĒœbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐĖ¹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~Ż¸Y’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuŁŒg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ"]],encodeOffsets:[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]},properties:{cp:[118.000923,36.275807],name:"山东",childNum:13}},{id:"410000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\d\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\ÀœEhŽİgÞē X¼Pk–„|m"],encodeOffsets:[[118256,37017]]},properties:{cp:[113.665412,33.757975],name:"河南",childNum:1}},{id:"420000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@AB‚"],["@@lskt"],["@@¾«}{ra®pîÃ\\™›{øCŠËyyB±„b\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙ抚ŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYŠ§HK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆĢ¶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],encodeOffsets:[[[113712,34e3]],[[115612,30507]],[[113649,34054]]]},properties:{cp:[113.298572,30.684355],name:"湖北",childNum:3}},{id:"430000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@—n„FTs"],["@@ßÅÆችÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–Ģ¾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M"],["@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJĪ²SÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUŠ¾Å‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPĪ±œ£EXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈĀ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\Ĕ[N¥ˀmĎă’J\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎŪƒƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ"]],encodeOffsets:[[[115640,30489]],[[112543,27312]],[[116690,26230]]]},properties:{cp:[111.782279,28.09409],name:"湖南",childNum:3}},{id:"440000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@QdˆAua"],["@@ƒlxDLo"],["@@sbhNLo"],["@@Ă āŸ"],["@@WltO[["],["@@Krœ]S"],["@@e„„I]y"],["@@I|„Mym"],["@@ƒÛ³LSŒž¼Y"],["@@nvºB–ëui©`¾"],["@@zdšÛ›Jw®"],["@@†°…¯"],["@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o"],["@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh"],["@@‹¶Ý’Ì‚vmĞh­ı‡Q"],["@@HœŠdSjĒ¢D}war…“u«ZqadYM"],["@@elŒ\\LqqU"],["@@~rMo\\"],["@@f„^ƒC"],["@@øPªoj÷ÍÝħXČx”°Q¨ıXNv"],["@@gÇƳˆŽˆ”oˆŠˆ[~tly"],["@@E–ÆC¿‘"],["@@OŽP"],["@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéʌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i"]],encodeOffsets:[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]},properties:{cp:[113.280637,23.125178],name:"广东",childNum:24}},{id:"450000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@H– TQ§•A"],["@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloŽ¤™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆƌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FĻ¼Ĺ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•Eģ‰•E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢J"]],encodeOffsets:[[[111707,21520]],[[107619,25527]]]},properties:{cp:[108.320004,22.82402],name:"广西",childNum:2}},{id:"460000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ "],encodeOffsets:[[112750,20508]]},properties:{cp:[109.83119,19.031971],name:"海南",childNum:1}},{id:"510000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@LqKr"],["@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iÇ°ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZŽ°Iä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºTĀ£ŚæœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`ĀŠz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\Z{åû^›"]],encodeOffsets:[[[108815,30935]],[[110617,31811]]]},properties:{cp:[104.065735,30.659462],name:"四川",childNum:2}},{id:"520000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@†G\\†lY£‘in"],["@@q‚|ˆ‚mc¯tχVSÎ"],["@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\}—ƒG®u\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒhŽ¶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KŠ³ŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}Ž±žGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝƀ‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½"]],encodeOffsets:[[[112158,27383]],[[112105,27474]],[[112095,27476]]]},properties:{cp:[106.713478,26.578343],name:"贵州",childNum:3}},{id:"530000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèƶStǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyŽ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSį¯‘³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\Ī¼Ä£UsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`"],encodeOffsets:[[104636,22969]]},properties:{cp:[101.512251,24.740609],name:"云南",childNum:1}},{id:"540000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@hžľxŽŖ‰xƒÒVŽ†ºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|Ł˜¦AvŽ¦w`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdŠ‰ªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀŻ¦¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVŠµ‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£àč²‹ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæńhnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„Ē°¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûĀŠìÖT¬¸^}Ìsòd´_Ž‡KgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxŠ¶F”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\†qR›Ą©"],encodeOffsets:[[90849,37210]]},properties:{cp:[89.132212,30.860361],name:"西藏",childNum:1}},{id:"610000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OĻ¹S|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cĎ°Â[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~Š¦UbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj"],encodeOffsets:[[110234,38774]]},properties:{cp:[108.948024,34.263161],name:"陕西",childNum:1}},{id:"620000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@VuUv"],["@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBŠ°aZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\a­‹Q\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aŠ¹cčecÇN•ĊãÁ\\č¯—dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]Aģ±¯‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\h¹¶v†·À|\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮŽ°Ɲ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK"]],encodeOffsets:[[[108619,36299]],[[108589,36341]]]},properties:{cp:[103.823557,36.058039],name:"甘肃",childNum:2}},{id:"630000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@InJm"],["@@CƒÆ½OŃĦsΰ~Ē³¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNĪŒĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kĀŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoį£ŸÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Óļ©•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSòėš£˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\ijŬű”YÂÿ¬jĖqŽßbŠ¸•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňbĚ°ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\ªÚŒU\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\oäõ–F礻Ŷ×h¹]Clـ\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌĪ¶ƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg"]],encodeOffsets:[[[105308,37219]],[[95370,40081]]]},properties:{cp:[96.778916,35.623178],name:"青海",childNum:2}},{id:"640000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\âÙH\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßRĶŒX¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀĖ¾iİbjÕ"],["@@mfwěwMrŢªv@G‰"]],encodeOffsets:[[[109366,40242]],[[108600,36303]]]},properties:{cp:[106.278179,37.26637],name:"宁夏",childNum:2}},{id:"650000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@QØĔ²X¨”~ǘBºjʐßØvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZĶƒèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYwē¨ƒ{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~ź¯šf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\ªÑò˜Üìc\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆšońéŒGš\\”¼C°ÌƁn´nxšÊOĨ’Ūƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FŽ‡Rěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ"],encodeOffsets:[[88824,50096]]},properties:{cp:[85.617733,40.792818],name:"新疆",childNum:1}},{id:"110000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`Š¹­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwŚ¨Ud®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\‡¥A¨Ï‘Ѩj¯ŠX\\¯œMK‘pA³[H…īu}}"],encodeOffsets:[[120023,41045]]},properties:{cp:[116.405285,39.904989],name:"北京",childNum:1}},{id:"120000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],encodeOffsets:[[120237,41215]]},properties:{cp:[117.190182,39.125596],name:"天津",childNum:1}},{id:"310000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@ɧư¬EpƸÁxc‡"],["@@©„ªƒ"],["@@”MA‹‘š"],["@@Qp݁E§ÉC¾"],["@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó"],["@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį"]],encodeOffsets:[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]},properties:{cp:[121.472644,31.231706],name:"上海",childNum:6}},{id:"500000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\ÂoVnŽÓØ͙²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\¨\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBŠ¦zG¸rHe‚„N\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN"],["@@ifjN@s"]],encodeOffsets:[[[109628,30765]],[[111725,31320]]]},properties:{cp:[107.304962,29.533155],name:"重庆",childNum:2}},{id:"810000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@AlBk"],["@@mŽn"],["@@EpFo"],["@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKŽ°ä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc"],["@@rMUw‡AS®€e"]],encodeOffsets:[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]},properties:{cp:[114.173355,22.320048],name:"香港",childNum:5}},{id:"820000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@kÊd°å§s"],encodeOffsets:[[116279,22639]]},properties:{cp:[113.54909,22.198951],name:"澳门",childNum:1}}],UTF8Encoding:!0}):void o("ECharts Map is not loaded"):void o("ECharts is not Loaded") +amis.define("node_modules/echarts/map/js/china",function(e,t,o,s){!function(o,d){"function"==typeof s&&s.amd?s(["exports","echarts"],d):"object"==typeof t&&"string"!=typeof t.nodeName?d(t,e("node_modules/echarts/index")):d({},o.echarts)}(this,function(e,t){var o=function(e){"undefined"!=typeof console&&console&&console.error&&console.error(e)};return t?t.registerMap?void t.registerMap("china",{type:"FeatureCollection",features:[{type:"Feature",id:"710000",properties:{id:"710000",cp:[121.509062,24.044332],name:"台湾",childNum:6},geometry:{type:"MultiPolygon",coordinates:[["@@°Ü¯Û"],["@@ƛĴÕƊÉɼģºðʀ\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ"],["@@\\p|WoYG¿¥I†j@¢"],["@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I"],["@@ÆEE—„kWqë @œ"],["@@fced"],["@@„¯ɜÄèaì¯ØǓIġĽ"],["@@çûĖ롖hòř "]],encodeOffsets:[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]],[[126259,26318]],[[127671,26683]]]}},{type:"Feature",id:"130000",properties:{id:"130000",cp:[114.502461,38.045474],name:"河北",childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e"],["@@U`Ts¿m‚"],["@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧĖ¸fŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgʊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|Ç°…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃĶš¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\tŽa\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\mĆJfl@cĢ¬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®VŠ¹d^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qᵧš™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚"]],encodeOffsets:[[[119712,40641]],[[121616,39981]],[[116462,37237]]]}},{type:"Feature",id:"140000",properties:{id:"140000",cp:[111.849248,36.857014],name:"山西",childNum:1},geometry:{type:"Polygon",coordinates:["@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz"],encodeOffsets:[[116874,41716]]}},{type:"Feature",id:"150000",properties:{id:"150000",cp:[111.670801,41.818311],name:"内蒙古",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–Rë¥_ŽsgÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉv¦wĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot׶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ȈÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µsKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚĒ¸ĞGȖƴƀj`ĢçĶāàŃºēĢƒĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTЪŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFĒœƌXƲąo½Ę‘\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ġu¦öČ^â£Ăh–šĖMÈÄw‚\\fŦ°W ¢¾luŸD„wŠ\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ"]],encodeOffsets:[[[129102,52189]]]}},{type:"Feature",id:"210000",properties:{id:"210000",cp:[123.429096,41.796767],name:"辽宁",childNum:16},geometry:{type:"MultiPolygon",coordinates:[["@@L–Ž@@s™a"],["@@MnNm"],["@@d‚c"],["@@eÀ‚C@b‚“‰"],["@@f‡…Xwkbr–Ä`qg"],["@@^jtW‘Q"],["@@~ Y]c"],["@@G`ĔN^_¿Z‚ÃM"],["@@iX¶B‹Y"],["@@„YƒZ"],["@@L_{Epf"],["@@^WqCT\\"],["@@\\[“‹§t|”¤_"],["@@m`n_"],["@@Ïxnj{q_×^Giip"],["@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\ÀøíDm¦ÎbŨab‰œaĘ\\ľã‚¸a˜tÎSƐ´©v\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA"]],encodeOffsets:[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]}},{type:"Feature",id:"220000",properties:{id:"220000",cp:[125.3245,43.886841],name:"吉林",childNum:1},geometry:{type:"Polygon",coordinates:["@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG"],encodeOffsets:[[130196,42528]]}},{type:"Feature",id:"230000",properties:{id:"230000",cp:[128.642464,46.756967],name:"黑龙江",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tŽ¸ĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\kzţ¦šnņäÔVĂîĪ¬|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]"]],encodeOffsets:[[[134456,44547]]]}},{type:"Feature",id:"320000",properties:{id:"320000",cp:[119.767413,33.041544],name:"江苏",childNum:1},geometry:{type:"Polygon",coordinates:["@@cþÅPiŠ`ZŸRu¥É\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@Ę¹hågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ"],encodeOffsets:[[121740,32276]]}},{type:"Feature",id:"330000",properties:{id:"330000",cp:[120.153576,29.287459],name:"浙江",childNum:45},geometry:{type:"MultiPolygon",coordinates:[["@@E^dQ]K"],["@@jX^j‡"],["@@sfŠbU‡"],["@@qP\\xz[ck"],["@@‘Rƒ¢‚FX}°[s_"],["@@Cbœ\\—}"],["@@e|v\\la{u"],["@@v~u}"],["@@QxÂF¯}"],["@@¹nŒvÞs¯o"],["@@rSkUEj"],["@@bi­ZŒP"],["@@p[}INf"],["@@À¿€"],["@@¹dnbŒ…"],["@@rSŸBnR"],["@@g~h}"],["@@FlEk"],["@@OdPc"],["@@v[u\\"],["@@FjâL~wyoo~›sµL–\\"],["@@¬e¹aNˆ"],["@@\\nÔ¡q]L³ë\\ÿ®ŒQ֎"],["@@ÊA­©[¬"],["@@KxŒv­"],["@@@hlIk]"],["@@pW{o||j"],["@@Md|_mC"],["@@¢…X£ÏylD¼XˆtH"],["@@hlÜ[LykAvyfw^Ež›¤"],["@@fp¤Mus“R"],["@@®_ma~•LÁ¬šZ"],["@@iM„xZ"],["@@ZcYd"],["@@Z~dOSo|A¿qZv"],["@@@`”EN¡v"],["@@|–TY{"],["@@@n@m"],["@@XWkCT\\"],["@@ºwšZRkĕWO¢"],["@@™X®±Grƪ\\ÔáXq{‹"],["@@ůTG°ĄLHm°UC‹"],["@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВjē¢·ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈڜĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst"],["@@o\\V’zRZ}y"],["@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™"]],encodeOffsets:[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125e3,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]}},{type:"Feature",id:"340000",properties:{id:"340000",cp:[117.283042,31.26119],name:"安徽",childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@^iuLX^"],["@@‚e©Ehl"],["@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜƶĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆߎF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴĖ¶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´"]],encodeOffsets:[[[121722,32278]],[[119475,30423]],[[119168,35472]]]}},{type:"Feature",id:"350000",properties:{id:"350000",cp:[118.306239,26.075302],name:"福建",childNum:18},geometry:{type:"MultiPolygon",coordinates:[["@@“zht´‡]"],["@@aj^~ĆG—©O"],["@@ed¨„C}}i"],["@@@vˆPGsQ"],["@@‰sBz‚ddW]Q"],["@@SŽ¨Q“{"],["@@NŽVucW"],["@@qptBAq"],["@@‰’¸[mu"],["@@Q\\pD]_"],["@@jSwUadpF"],["@@eXª~ƒ•"],["@@AjvFso"],["@@fT–›_Çí\\Ÿ™—v|ba¦jZÆy€°"],["@@IjJi"],["@@wJI€ˆxš«¼AoNe{M­"],["@@K‰±¡Óˆ”ČäeZ"],["@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\_"]],encodeOffsets:[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]}},{type:"Feature",id:"360000",properties:{id:"360000",cp:[115.592151,27.676493],name:"江西",childNum:1},geometry:{type:"Polygon",coordinates:["@@ĢĨƐgļˆ¼ÂMD~ņªe^\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗā¼‹mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\˜„L‚‘²"],encodeOffsets:[[116689,26234]]}},{type:"Feature",id:"370000",properties:{id:"370000",cp:[118.000923,36.275807],name:"山东",childNum:13},geometry:{type:"MultiPolygon",coordinates:[["@@Xjd]{K"],["@@itbFHy"],["@@HlGk"],["@@T‚ŒGŸy"],["@@K¬˜•‹U"],["@@WdXc"],["@@PtOs"],["@@•LnXhc"],["@@ppVƒu]Or"],["@@cdzAUa"],["@@udRhnCI‡"],["@@ˆoIƒpR„"],["@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞƄLĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌĒœbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐĖ¹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~Ż¸Y’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuŁŒg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ"]],encodeOffsets:[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]}},{type:"Feature",id:"410000",properties:{id:"410000",cp:[113.665412,33.757975],name:"河南",childNum:1},geometry:{type:"Polygon",coordinates:["@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\d\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\ÀœEhŽİgÞē X¼Pk–„|m"],encodeOffsets:[[118256,37017]]}},{type:"Feature",id:"420000",properties:{id:"420000",cp:[113.298572,30.684355],name:"湖北",childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@AB‚"],["@@lskt"],["@@¾«}{ra®pîÃ\\™›{øCŠËyyB±„b\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙ抚ŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYŠ§HK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆĢ¶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],encodeOffsets:[[[113712,34e3]],[[115612,30507]],[[113649,34054]]]}},{type:"Feature",id:"430000",properties:{id:"430000",cp:[111.782279,28.09409],name:"湖南",childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@—n„FTs"],["@@ßÅÆችÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–Ģ¾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M"],["@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJĪ²SÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUŠ¾Å‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPĪ±œ£EXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈĀ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\Ĕ[N¥ˀmĎă’J\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎŪƒƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ"]],encodeOffsets:[[[115640,30489]],[[112543,27312]],[[116690,26230]]]}},{type:"Feature",id:"440000",properties:{id:"440000",cp:[113.280637,23.125178],name:"广东",childNum:24},geometry:{type:"MultiPolygon",coordinates:[["@@QdˆAua"],["@@ƒlxDLo"],["@@sbhNLo"],["@@Ă āŸ"],["@@WltO[["],["@@Krœ]S"],["@@e„„I]y"],["@@I|„Mym"],["@@ƒÛ³LSŒž¼Y"],["@@nvºB–ëui©`¾"],["@@zdšÛ›Jw®"],["@@†°…¯"],["@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o"],["@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh"],["@@‹¶Ý’Ì‚vmĞh­ı‡Q"],["@@HœŠdSjĒ¢D}war…“u«ZqadYM"],["@@elŒ\\LqqU"],["@@~rMo\\"],["@@f„^ƒC"],["@@øPªoj÷ÍÝħXČx”°Q¨ıXNv"],["@@gÇƳˆŽˆ”oˆŠˆ[~tly"],["@@E–ÆC¿‘"],["@@OŽP"],["@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéʌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i"]],encodeOffsets:[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]}},{type:"Feature",id:"450000",properties:{id:"450000",cp:[108.320004,22.82402],name:"广西",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@H– TQ§•A"],["@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloŽ¤™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆƌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FĻ¼Ĺ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•Eģ‰•E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢J"]],encodeOffsets:[[[111707,21520]],[[107619,25527]]]}},{type:"Feature",id:"460000",properties:{id:"460000",cp:[109.83119,19.031971],name:"海南",childNum:1},geometry:{type:"Polygon",coordinates:["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ "],encodeOffsets:[[112750,20508]]}},{type:"Feature",id:"510000",properties:{id:"510000",cp:[104.065735,30.659462],name:"四川",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@LqKr"],["@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iÇ°ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZŽ°Iä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºTĀ£ŚæœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`ĀŠz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\Z{åû^›"]],encodeOffsets:[[[108815,30935]],[[110617,31811]]]}},{type:"Feature",id:"520000",properties:{id:"520000",cp:[106.713478,26.578343],name:"贵州",childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@†G\\†lY£‘in"],["@@q‚|ˆ‚mc¯tχVSÎ"],["@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\}—ƒG®u\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒhŽ¶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KŠ³ŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}Ž±žGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝƀ‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½"]],encodeOffsets:[[[112158,27383]],[[112105,27474]],[[112095,27476]]]}},{type:"Feature",id:"530000",properties:{id:"530000",cp:[101.512251,24.740609],name:"云南",childNum:1},geometry:{type:"Polygon",coordinates:["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèƶStǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyŽ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSį¯‘³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\Ī¼Ä£UsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`"],encodeOffsets:[[104636,22969]]}},{type:"Feature",id:"540000",properties:{id:"540000",cp:[89.132212,30.860361],name:"西藏",childNum:1},geometry:{type:"Polygon",coordinates:["@@hžľxŽŖ‰xƒÒVŽ†ºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|Ł˜¦AvŽ¦w`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdŠ‰ªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀŻ¦¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVŠµ‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£àč²‹ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæńhnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„Ē°¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûĀŠìÖT¬¸^}Ìsòd´_Ž‡KgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxŠ¶F”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\†qR›Ą©"],encodeOffsets:[[90849,37210]]}},{type:"Feature",id:"610000",properties:{id:"610000",cp:[108.948024,34.263161],name:"陕西",childNum:1},geometry:{type:"Polygon",coordinates:["@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OĻ¹S|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cĎ°Â[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~Š¦UbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj"],encodeOffsets:[[110234,38774]]}},{type:"Feature",id:"620000",properties:{id:"620000",cp:[103.823557,36.058039],name:"甘肃",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@VuUv"],["@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBŠ°aZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\a­‹Q\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aŠ¹cčecÇN•ĊãÁ\\č¯—dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]Aģ±¯‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\h¹¶v†·À|\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮŽ°Ɲ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK"]],encodeOffsets:[[[108619,36299]],[[108589,36341]]]}},{type:"Feature",id:"630000",properties:{id:"630000",cp:[96.778916,35.623178],name:"青海",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@InJm"],["@@CƒÆ½OŃĦsΰ~Ē³¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNĪŒĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kĀŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoį£ŸÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Óļ©•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSòėš£˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\ijŬű”YÂÿ¬jĖqŽßbŠ¸•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňbĚ°ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\ªÚŒU\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\oäõ–F礻Ŷ×h¹]Clـ\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌĪ¶ƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg"]],encodeOffsets:[[[105308,37219]],[[95370,40081]]]}},{type:"Feature",id:"640000",properties:{id:"640000",cp:[106.278179,37.26637],name:"宁夏",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\âÙH\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßRĶŒX¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀĖ¾iİbjÕ"],["@@mfwěwMrŢªv@G‰"]],encodeOffsets:[[[109366,40242]],[[108600,36303]]]}},{type:"Feature",id:"650000",properties:{id:"650000",cp:[85.617733,40.792818],name:"新疆",childNum:1},geometry:{type:"Polygon",coordinates:["@@QØĔ²X¨”~ǘBºjʐßØvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZĶƒèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYwē¨ƒ{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~ź¯šf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\ªÑò˜Üìc\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆšońéŒGš\\”¼C°ÌƁn´nxšÊOĨ’Ūƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FŽ‡Rěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ"],encodeOffsets:[[88824,50096]]}},{type:"Feature",id:"110000",properties:{id:"110000",cp:[116.405285,39.904989],name:"北京",childNum:1},geometry:{type:"Polygon",coordinates:["@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`Š¹­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwŚ¨Ud®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\‡¥A¨Ï‘Ѩj¯ŠX\\¯œMK‘pA³[H…īu}}"],encodeOffsets:[[120023,41045]]}},{type:"Feature",id:"120000",properties:{id:"120000",cp:[117.190182,39.125596],name:"天津",childNum:1},geometry:{type:"Polygon",coordinates:["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],encodeOffsets:[[120237,41215]]}},{type:"Feature",id:"310000",properties:{id:"310000",cp:[121.472644,31.231706],name:"上海",childNum:6},geometry:{type:"MultiPolygon",coordinates:[["@@ɧư¬EpƸÁxc‡"],["@@©„ªƒ"],["@@”MA‹‘š"],["@@Qp݁E§ÉC¾"],["@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó"],["@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį"]],encodeOffsets:[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]}},{type:"Feature",id:"500000",properties:{id:"500000",cp:[107.304962,29.533155],name:"重庆",childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\ÂoVnŽÓØ͙²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\¨\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBŠ¦zG¸rHe‚„N\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN"],["@@ifjN@s"]],encodeOffsets:[[[109628,30765]],[[111725,31320]]]}},{type:"Feature",id:"810000",properties:{id:"810000",cp:[114.173355,22.320048],name:"香港",childNum:5},geometry:{type:"MultiPolygon",coordinates:[["@@AlBk"],["@@mŽn"],["@@EpFo"],["@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKŽ°ä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc"],["@@rMUw‡AS®€e"]],encodeOffsets:[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]}},{type:"Feature",id:"820000",properties:{id:"820000",cp:[113.54909,22.198951],name:"澳门",childNum:1},geometry:{type:"Polygon",coordinates:["@@kÊd°å§s"],encodeOffsets:[[116279,22639]]}}],UTF8Encoding:!0}):void o("ECharts Map is not loaded"):void o("ECharts is not Loaded") })}); ;/*!node_modules/echarts/map/js/world.js*/ amis.define("node_modules/echarts/map/js/world",function(e,o,t,n){!function(t,r){"function"==typeof n&&n.amd?n(["exports","echarts"],r):"object"==typeof o&&"string"!=typeof o.nodeName?r(o,e("node_modules/echarts/index")):r({},t.echarts)}(this,function(e,o){var t=function(e){"undefined"!=typeof console&&console&&console.error&&console.error(e)};return o?o.registerMap?void o.registerMap("world",{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}},features:[{geometry:{type:"Polygon",coordinates:["@@࠿@ᠳ࡚с̶ʩт˷˔ƹͮɠͲ˖рԜ׷҄̕ҴNܾͰؼ÷۸ήԪ‡Үƴ̮¿ঞɪֶϤϲŹƛе²֭ĝDZƊĠǔōϭñėށ؅ਓɁȥԯ঻ƻԓࣗඩअ৯۝ڻो֑য়ߝล໥ϓ؇UļāļƫȖɩ̌]ᶼ̈́͘ɮ͜ɪ͚€®ĞĚ۪ƼɦːϪǰ;Ąߞᢌᣮ"],encodeOffsets:[[49130,8189]]},properties:{name:"Somalia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ƛ¬Ð@ĞÆÒªDZ"],encodeOffsets:[[9810,48188]]},properties:{name:"Liechtenstein",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@⌗†øĒ୬ͪࣆيʊˆ҄ؔ^˶ȇɪÈצϲ֌ĐФ؜ְദ׼ҢڴήࡔլİtʍԾ΃ʤ›՘IJʢË΢ǒŎɽĠPĀmǶVǢgΤ̑Įவňȵ’Ǒ¼ýĈå²yĞÇÞ³œëąÍĥʹ೵]Ɂ³Ɨ{‘ΡʼnƑcăZÉSÍƫH˃ǨǓѭLJƣġǥÕȿÕǃñÿśıƇħěŽđұĿЍU“ƉÝå‹Sĵ^čfʉdʇǍ·ƒণ֣oۋ@Ĺ"],encodeOffsets:[[-8891,28445]]},properties:{name:"Morocco",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@⌘…@ķœ@@@Ŕ@@̷@̩@ǕBȍ@ȋ@ƍ@ĩ᫫@@ɋ@΃@ɭ@ŕ@қ@΃Oх̉űƽw½gΉɩķƯtįQJ–dz˜՟TšRšPėRŏᇷCฝCċα`ý§¨Ƙ࢘Ӕ׎ŰшΞ׎LJĹèƤ࠴݂Ģָ͌܌۴КͲޞŚƀ","@@i˷@@j˸"],encodeOffsets:[[-13351,28480],[-8984,28120]]},properties:{name:"W. Sahara",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@A@ƟwđĵȏÒʁč«Ǔƅ@ã̌Ο˘SǴʒÊÆ`Å_֡˰ϟʊkˆIŠDZʪĠɁ˔˶àϷˈȘѬ˻W²ɤ˲ÚͩǀºĬȋːÈĆѠŎNJĘȘoø`Ȓg¤_€cº·¶ÙȈėÒ÷´›fFfV\\T^Qhɿ՘ɳ†kĝƱƨ÷YißMµGuOD‡Ǝ‰Ĩãɰ™İŸÈßĜhŴĬŬ~Ũ±â›Z‰ƒ]ãNÇk¹ėnjƽɣȭkƒěHãƺ˝Ǵ謭’¡İÃƩǝÿďȫ•Ẹ̀Q‘ßço}ß]ĕUΥ@Ʌ±@@"],encodeOffsets:[[22080,43262]]},properties:{name:"Serbia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@хǑޟ˜ܯőࡡԧ¡á͘з¤̧սշŊƉ™ˏͭąٝ°̺׿ٓɥɓӱŒз·ʫɫƚν@ӧʟƆƋʇğԻzЛϭĭ޿ॕʳכ]ʛŷѿĘࣻõЍĺٵȀ͋ĠШъȒȢȌȜxèFƆ·ǴăĆˁȡ|ɍ‚ƒZ{ƒZØaŤDĠŽƲDèij̎őͨaŦ̰̚˽êóļ@͒ƂDzȸZíĊ•´ubSv\\vÀT˜„ΠŠhňǞjΔö’´ƌ„’FgÈèTɶǓЀ«Ȁǫ͊î̲džzĺîĢƘ؜Ɣ˒Ř˞Lj°òŠńƲъ„ÖŖ¾ŚšǶRɄJǮˊרȋ¦HʲpȮ‹ńċľsĺ¤ÚR|¼[þJ¬wNwNÌÛļûĢmnjÂpp^ªô¤ʂĸ®T¸S–Z^‚b\\~VvL¤QȂƓR¦„¼¶^ê}ĞlôÒÈŒ”ǐ`Ɛ™ǢbÀèHϱĸ^ŽǠŶˌ̆ѨīÞŗ­Ƀ”aÎJĊtÄB~oűځĈʁŔů࠰˨ȦȨˈŢƠ®ĈRľsª_ÂW\\—a÷ËvkĄOΘĈŠ˜²˜ʹkҋČѼ­§MÕryŠWJ·oğ}ƽáHiĸã|u^Q"],encodeOffsets:[[76331,37911]]},properties:{name:"Afghanistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÂR̮cҮƠ͎Åǖ@ǔˆ|ɔDªĞƶHNJšŖ̈ƄĺTNJ|ʖ€ĞGR_¿ƽA½n½¦ƒʬGɼEҾi°oČ଩ýٵ͔ӑĠճēśnʕ¬ÓŠIàþÖÚ~ɈqɘM͚IJ̴™ŐŢdܓ×މoěG±ðƁIĵY൑@ȗ@@ڟ@ˑ@ˑBౝǶ֡া࡙ࢳǑ೟Ƶҧƀ਩¼ҹͺሹTᅍeғ̴ʟÌՋȭǃN‘OėFǗ–ģµƇoŒ͆ƖËܼɠˌ҆ლζ֌θɌƴȞǀЊ¢ݐс޴˫ߚ̢̤hˊүஒґۤݴɦƌOՎNዲQĮ…ĘÇƈǕžϡÐŻĚƉÆ˕Ԃۻ"],["@@̆Ƅ„_øęÞËr___ğ™ı•ͅ˭DeÌ·‹ӏɫ‰θƅːОΖ"]],encodeOffsets:[[[18002,-8293]],[[12802,-4697]]]},properties:{name:"Angola",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Π˗ä̋ÝԍȄ́ɊßQÙÚŷűŻȉ̍ǝ©¡aq›uwW@yÐğBƧůÙPь‹XkAűˬѽ̨ŚAĹɐȨࠐDŮȡæ½ʮ̾ϦŒŷɴÒ"],encodeOffsets:[[20546,43569]]},properties:{name:"Albania",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ł•^ĊĤ³"],["@@ɨ÷ϫƯħƾƊ¡sƜƖ"]],encodeOffsets:[[[20135,61632]],[[20470,61800]]]},properties:{name:"Aland",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ɵ½íIir[ò\\¢Ö ÈOŢ~y@esQm"],encodeOffsets:[[1747,43524]]},properties:{name:"Andorra",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʙOǘøĂç"],["@@š‚ȆĶãŷ"],["@@ø֟˗ȫÁǸǣï…ԿƖw´ŷѡĹÂĹ˧څ[˥ççᒣʾ߳४oǪǘÚȱɴ‘ѼƸॺí̆ĐȾĚ̌҂ৎࠠŞɦò_m̙ź‘"]],encodeOffsets:[[[55223,24758]],[[54613,24841]],[[57650,26267]]]},properties:{name:"United Arab Emirates",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ؠQۓƫĵÜǪĢ"],["@@nᇜ͠έLJvµǥˠ›Ÿɏ׶УࢸНࢴŧʕȣ࢑įԭņ౳¦"],["@@ȴǛߖȡפϿବӗɒ˳͉ӡȧɇ“˽ͫЛoÁŒıξ”บɿɮȜǴGƌùÚD涐ÌE悶̆ž rºʒàǞȔɌͦžʮbΰƠ¥ʐĒɜũȈԵƛ۩ЧʩхŃɫˇԽ˳ŽƩǟXࢣ਍ʉƽƯɃƅę›¡•ě½õijģ“ă¾ɣÙßdƕqùşȅiߜ‘l•gĝ‡ëĿēk©z¿HÃiÉZǜÁEÕáųeû¤ͩɅŷĻҩžѻőēȰ͗آ˯͆˿Ʒ̛fʳɔɧ˜¥ÞщܿਟՍ̍൱ͷઃŻأ€УƊϋȰʼnŁMĒå¯̩ŽÍīʩžБůǻӃǿ֋¥਻ΤɛŧŬਅϘŷƒƋŴcˎ’ňƗ¢θĖƒƙZ΍Εƻϟ̲ЛŹ³ýתǭѫȁ΋͏Yש͏͍R̅ҧšكʗցڛþؖ͟ӁٺóɖɁÛʗΉǁʔ@ľĩൿࡕǿʛş֡γƻ·̒LƷˋÉ͎KƨůԹ˻˃ѹƄ†ƒеίăрýѬ֯ౡ̊࿩fЩϘÊܞƛØգŋ̉Ԩ«֊þŴ˜\\Đʊ͐ƢÌ̮ȒĠvɌǃȞƠ͒ψʔ‡̶ȬưƧЮȴǨī̀ͮȺȹ̒ϏÚmŎڬRĐǠ«Ĵԛ¶ŞϢȋӨżĢͩȺŽب̜ǤƉͬiߪȊʼğǤƄž»͖Ʋ„Ś֖Ҙˤʷ۾qޚŘˎմϲUҐŝɶƌČ˺܆ǚ܂߆ɝèÀˊ˻ڨĠł˥͚ÆΞǰłƀ֌ǒFĦƶīĆÉيǘȄƞׄМЪˠ٪Ɉ\\ɰƖɭцƪˈƫ؞Ǫˠƫ̂ʾ̘ݨ̞̈ࢂƽưǢʾɼʚ̆Ē–¼”ʆİxzžEÜ}™ǘşöãîSƖ`Ѷ_͘ijèţžħ‚čÔƧ¢Çd‚–NJʒѾ°š࣠€Ǽʗî·ƚ÷ƄƣΔӍ׶Ћ"]],encodeOffsets:[[[-66098,-56029]],[[-70300,-56170]],[[-62550,-24224]]]},properties:{name:"Argentina",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@́{ř̮ǯŔfƖ˟§ʭôķƶɛ½Г˲Իðą̘ŸȦʁ͚՚Ú؞Þdž€ǀťıÑѢȓǫƣÜşєʣßǫʳ¡Ժ͏ɼīŷȀƭƹúʇ"],encodeOffsets:[[47607,39841]]},properties:{name:"Armenia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@āɆœƃë"],encodeOffsets:[[-174823,-14695]]},properties:{name:"American Samoa",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@īƨǜMïƙ"],["@@΂ŜªūȩÃŚÕٸǔȢťƙțȃúͽñȐŵɖ¨ĻƣࠅƦƇƥƫJÌ҈ħĊȜͼŒǗëȃŐy"],["@@ƥÈè þħ"]],encodeOffsets:[[[70946,-50236]],[[70846,-50288]],[[53079,-47554]]]},properties:{name:"Fr. S. Antarctic Lands",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@ťowîÐÒĎŏ"],encodeOffsets:[[-63197,17446]]},properties:{name:"Antigua and Barb.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŸēǡÎƮŸÔı"],["@@Ȫb࢈ͥ;ðŀùŢƨϸQƖƂɂyĄþȺÙńଡŇȶʏԑlԟƇñĈ§ĐŸþȏêķǁŻȲ­ΧȻºæijǡ˱˙Ĕщ£ƞǴ¼˫p͕̮ʏאɨɗ¢ŚƹǪą¥FƪЅՊĵΆÔʸ˚ĩ"],["@@£ÝÏÒĴL"],["@@‹éŠżBÑ"],["@@ÞƯ͑êʴĆ"],["@@ʠȓbƿǩõ˵͢ȞĨ"],["@@÷Dzƌ˖Š̻dzƋ"],["@@’Çȏ|ƾŒ"],["@@˪ZǎŁϟȅƩȩüϡ¥ǷŤĈŢגƀɀyXı"],["@@ĥɩRʨĔ}"],["@@ǿɪcɂȤѫ"],["@@čǘ¾̞ǂǀédžĨðþ˫ɭֿ"],["@@þCȷǡȸĨ"],["@@ŅÁĮƶXij"],["@@ĕP–ŊÀř"],["@@jɇǗȞƮj"],["@@„ľàēģi"],["@@̉ƙŒɲʚÔĢĵǃµ"],["@@ųÈÈĮìƵ"],["@@ÕgIżàœ"],["@@ěWÌŖĽ"],["@@ƪdũʉǤģ³ğҷèö̆Țǂ¸Ņ"],["@@īPþŸnƇ"],["@@ƃ×ʤǮşŕ"],["@@Ŭřҿ|żň›ƴŢŠƒ˽"],["@@ͼ–ȶŨɪȹӳЩρʸŅΨȠƹ"],["@@Ñ»ɆΪƳ̭"],["@@ğɠĂÌ^˫"],["@@Í̉ʖ˱ƺڭʟǪԝǤĩјȚƦɕ՞ϙŜ௳ˠЉƂƒǶ؇ÿՙʪɽ¦ΣٌΓɼ^˘͡ࡢѧŀLJŻZĥѪқȾϟɀܥĴ¨ŶƇȰŔŦϸͧxƦĔ…ƞ࢑ʼ˙֬˵ʤЋ˜ǣǔͱɔȗÒ͑ưů¡ਗϬ࢝”εӯཝñܹ͓ԡõͥ˫ȩzá̏ťѩ֯W̃ſáĜq̡ЁÉћԟۏɗාϝȯകƍࡧؕ՝ÁĴƕŊ®Çʱȭɾȉ‰ŧȢͥŌŪŢÇŴƷL˩əȯƈǎGǪɆȓLjеȥɨÕृԡࣩκؗĬŋįƛr΍ʌԷưԗնÔӪŅʔٓڔǬ¶ĤóMȢٕɡ˳|˞ӶkɖͳԀͭࠉڷąŌ˘̈́DĒلςӨã͈ŠĚǫѠNȳ̷̉ǡλڵͳҏՋàˑƩĴŧÝѳ̖ĀĊȞÿȗԸˣ˪ĉʢƵŜʳtŅƼÕȘńdNƶӋ˺ϟpϣȒҗ§࣏ј̣ĝഁ±༱ԕ୷ƒঃӭџŏإݵଗÙ÷İտ¢ಧů͹ͥұģٓэҭģࣃĢѽNJΟ̴ұƞ_ج̬Ŀ˘ϔ`఼Է॔ȃ஖ׇࣀř؞۽঒Ś½„ƎȎБŸ‹ĒĂbƘϩԴ´ĪɘșVʣŊĬŚʵĊÓŀĖAπڟஔÔӈɤϜŽшĥɶ˸َϬfջȢŢ˨Ѥغ˨Ұϰא̈́טÉښ̄ҪĨ̒ɢМ—ஊκ˸ʆи۾ј̬ǕӀĪΎϬ̊ɀ̎Ӿ࣫~ЬȨ÷˜Ǟ͑άŔØeNJĺ€ŊǃƼİɌĻІ]̯ĔXƔƈhÔȲŧďĻǶ¸ɞĺEŌȈ̶ƗTŔƍEÏŲǘƀˊīƫ;ͶȚ¢Ȑއ—ȧƄ¼ÐůŌļ„ѤŊsØƉŨŨƖšǰǤIƖńœҰʍ؈֯ġԱðĖĊÕáɊʹɦМğƂɵ¬ʐ̮ɥFʐDznȳƴþøˍƒ˦Όň΂ΠɪĿƂ„ǀȚɨǾ”JǺȶŃLdžΘʦŬǫՂGDŽĂƂğČƈǞXçöš͖ǗƂͷbȿƢŜĸǎʼnƬô̌ʁɺĈȊʡ؀ŁќȅˀÌʦǫǂwעͪǽ͑ʮdÖȗƮWÌňáŎnjȆɶɱƬc¨ęΉι¶ǿŏȅƕò̯ƓxՋҥە¤ƑلЗðƓΎīäǫǾ`ל̕ҔС٠ƱȨίڌ̽ЎàˎǮϰߜˬ஀đӲÒˊĹ̘ƢҎˆˈǢɃȼVŠƴ̀úßǨजʎȪۓ©ŁȐȭþץʴŏ"],["@@ëµ¹ĸȤÞĥ"]],encodeOffsets:[[[150893,-44438]],[[148525,-41765]],[[151795,-41487]],[[148260,-41478]],[[151887,-41274]],[[151553,-40711]],[[147383,-41078]],[[148803,-39414]],[[140899,-36596]],[[157224,-28094]],[[115900,-26678]],[[156752,-26368]],[[154775,-24054]],[[118217,-21286]],[[152621,-20778]],[[149789,-18668]],[[142807,-17525]],[[142857,-16970]],[[140384,-16156]],[[127588,-15771]],[[128204,-14929]],[[139996,-14135]],[[139508,-14156]],[[139611,-11880]],[[133591,-11959]],[[133754,-11649]],[[139877,-11651]],[[135776,-11574]],[[146616,-12241]],[[145690,-10961]]]},properties:{name:"Australia",childNum:30}},{geometry:{type:"Polygon",coordinates:["@@ñDZʀ͋ãʣթƒɊśȝŕV̡ͥťŕƻࣃÑ˿ǥ܋ĶǭˆśFƵ^׃Čù~·¶½ÚĩČo¦ˆ˜Š„I\\wPͥąȻXā]ǁMġ‘Ñݍ½iÇOĉLÍfϬğPčBuTD†‘ÆÅjǹőҫǦ«ǶĈǒď´ȌªúoŎŸÀvqL±Ŕ{cíƼòˆ¨ˆŔšSƨLêoŌGƚŃ२ȐdxMÀZR¸_ð@Ŝcnj_î}t_aDuvkΉø}žDd~bÒLÚſʲƘNjǼϤǐĜ|òÀ¦ƞXN`TŲAŲNZ†JłXhȠƑբE͂ͰࠬȱФ–ΆǓ"],encodeOffsets:[[17360,49766]]},properties:{name:"Austria",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Փň֍ը£¬ɜ¾ĸƵʮóˠ¨eƕǰœŚ̭"],["@@ݒ࢙ˎǻ΀áƸȋϓŒ̯ĻȏӯŽɑǓˋŷĔƃʝ\\͹ɵqԃόʞƒǁȆǾƄ˛ʈ౉ٷùʈƺ‚ǿƮĬŸɻԹ͐ʴ¢àǬѓʤÛŠǬƤѡȔIJÒƿŦǺŐÂvڲɟ̂ěĔXüҊðT”­´ˁƐķǎȸDŽˎßӌѽЈéڂը"]],encodeOffsets:[[[47222,39811]],[[49739,42849]]]},properties:{name:"Azerbaijan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@guûƿcy¤«£ŇR§è—öcʕÐO€ōiƃ͇͟ϟչȕů˃LLJԮZپǭ˪ôľʎdzʶ^ƜàÀ̈́ǀÝʔĔŨñ"],encodeOffsets:[[31287,-2457]]},properties:{name:"Burundi",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʦq̈ʣȋ˥w†…Aá\\ğí£Í}©™•ž͋ʁw՝ɸ£̪ɯljͫVtɴСºÿƞ˓°Ɠȼ̇{ȟ̆ۚɾèōЂ˘ƮڰêƸDžӨŁđͅ"],encodeOffsets:[[5831,51994]]},properties:{name:"Belgium",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@“ÁÁŏEĕŶǽbm…l“’ʻàƋ¿ǃĿQ›ͻɷȍɽ׏ɧ‡Ó֩aл„ɍ€Ù†ÃAƒck_wL˝‡óVŃjån»k¥cÇ{ȍ࣫ŹžàȹזĀJqႬǷʾ±ՔӇ͞ŚԜѴϠҮyΆДo˚τƌڒׁ"],encodeOffsets:[[3682,11977]]},properties:{name:"Benin",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@­ΏȀɃ ɯǂɥӪ̃DZNC˕ӠͿҒÈĸȡŹƁˈ΋΅Гҭzѳϟ΃ҽƊȗ¨˟ȩΑê຋WíͿļƇVֽ^óºĽV«ko¥ƒ¥D·Øs†ŸÜ“Ü­†­€ÃĆ¿žÇYʕ–ǫM͟ŕïÅćÕDķÚĉSą˜ґӂɗ̄ԮȬ˪ϞӶȼɪɘ©ˮɈĸď˚ƬǀǠĄΜǿȎĈ®͆ʢUÞʬʌɸЊ¹Şʎޤ̨ʐȒѲXϠŭ"],encodeOffsets:[[223,15270]]},properties:{name:"Burkina Faso",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@÷r¢dž–Ƿ"],["@@‰ç\\ƪnā"],["@@ęψΒÒ́"],["@@ũĀšŠĐȟ"],["@@əqƒɚƫѐĀzɮ͇ùͩ"],["@@|JeƊÊAɪ̻ɖnńĊæŶɫD͍oȉZ¬WɆÕв«ாDΚȍéāőžo[Aġğɷ­ijǽǗij|̓ŧǃͱǖӻÞŌİǩÈWŎÖFȠˆÖŰŦQĀ@ô¦LÆ[ǞLòχzˁĒǍx¥Î՗\\ÏPVЇŽƉʧŒŵūŨуɣ͐ljনÇ«ˉӴɛȱɩ›ʑή©ӆ£ƛʉ†˔ǃſѝƲ͓͝ҁƇ¶Ŝɨɉő‰þÈ̎ơЛȱǻïђḍūNjɓŶ™͸ʼn̜iǰ¥ǔàŬǡÌuȦ¿¶ËľŐˠ\\Ê\\ĮNœUšå¨ťjƉĜĥNátÉįÞLŒ`¤ĖǜLú„AºäìȐİ@̚ˆ\\Êõ˜ïƂɡž̗ɲ‘~šȸƶƜĚĦ­Đ‡Xfæ۝ƒȏɐ"]],encodeOffsets:[[[94157,22025]],[[94079,22357]],[[93339,22708]],[[93755,22920]],[[92957,22620]],[[91076,26876]]]},properties:{name:"Bangladesh",childNum:6}},{geometry:{type:"Polygon",coordinates:["@@ĵ̓˧Nǡǭ‘νͻɿѼнҏmƱŐ¥\\ȝ…—é‡ɧuÇˍÏŵsySyFyĵxÿckkgÞŵXñg¥Í…ţśfɏŧ‡ŋiБĦƫòwr§î}FγyoµkQ́ÕċAđZ½SōGëÁȫ^ôͺƕɈЯːà^p~àèR’Qnół~ǴˬŦƪǞįđ¢«®dzĎƹ˞Gä„ĜlŽ‚šĄÀŠŠ˸ƩƇʼn¨ħᓞƏ؀˲ܸƈ˶ŭϬ˴Ƿ̨}"],encodeOffsets:[[29272,44793]]},properties:{name:"Bulgaria",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ÛĝƄHɜĬXl̛"],encodeOffsets:[[51822,26505]]},properties:{name:"Bahrain",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@řǵѡGBņƂôʎ‰ƪƄ€ĵ"],["@@ʚďΏ¬Ķ¤"],["@@Ï{̶̀¡ǀĖ`\\lj̵˙"],["@@ǽWņɀĭ"],["@@͏ɬþĒƻʹЎٱ"],["@@̻źxÌ̄ȅ"],["@@ĹĉrŖĈ‹"],["@@ćïŞ¬®áWͯǓ\\ȓϾ˼|"],["@@Ǐ»Ăńˋ΢ΚЩ"],["@@Ƿ`ʊvѕ"],["@@CȳʣƧďǦȃ¨ËêNJv€ҌȤęȚ̓"],["@@ʰſǾLJ—ЭųƚĚJ¬ʠǫnjɁĴƇIÐŚ¾Ý"],["@@ӐۑDžȯDŽǀěǜǺĖÍ"],["@@ƩĸƀŎPͼɫʈη¶Έ@Ͼ̽xǑŇý·˱"]],encodeOffsets:[[[-74779,21702]],[[-74794,22968]],[[-75987,22747]],[[-75834,23269]],[[-76636,23444]],[[-77480,24013]],[[-76215,24646]],[[-79521,24832]],[[-77115,24781]],[[-79203,25615]],[[-79609,25301]],[[-78488,26100]],[[-80376,27371]],[[-79079,26526]]]},properties:{name:"Bahamas",childNum:14}},{geometry:{type:"Polygon",coordinates:["@@˼Xȗѫϸˇ˵ßɂ˓ʩğ{D©OS«^­To_ðƛSáM™®ëNď¿Ù«§ǟœ_›™nLJäŕġå٥˲ç”ÆÌ̓τࠉ֮Ṷ̌ͬȶªΎȬVɞƱȦǨ͚¼ݨǗ܌@ƤǍƞ["],encodeOffsets:[[19464,45947]]},properties:{name:"Bosnia and Herz.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ŘñࣸįkŻº¹Î“ŰÊ®fº@ät¶Œ²ZĘQLjR͢ƭʀąKơãÇUoHy±æïh¥@‹ůŕs­[¯PmƼóŚŸ~oÝőĢĪƉĖăȌíƎ¯†sX}Wŗãy›ÈeƞJǬ_ɀŅɈˇ»OÇaĝ•˝ƭʕ^ƳĂɁI{Uo½ß›™Œw¶³øÑüÁ~jȏOȃpw¤m”•ÊāJqǃNȑEŅ¯ȥGŕÿ÷µóåëĿ§ýzÔ»TÃj©ƵåʏǢۃăȳȶ“C¡u‡w§Sßkıě“L•d£ðÉh֡~ƅĩSĂͥrubŅŜËRķMƯbࠥŸண±çýŹġůÕwKñŽÓ\\íHýĭQM¢ѮБȸجОαজØiƦMϨŽž}æwʬòŮIlpŠĶšvƪWÆlʺʂàšwl¥{‘Ú‡NJ’¿Ħïd¹BSjjž¬êÄڒzNvSņŘǜĘxň`è”Úĸ”^ʺQ ØņÌ_jáZƻXrX|¦Ü¢ĊpÜFœϬƎѲӒ̂"],encodeOffsets:[[28824,57491]]},properties:{name:"Belarus",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÝŝĔɜuĽ"],["@@˵CÒྪzƀ˞KʄИȒv­ħȀOœĿƽԭÌÿğݑӥد"]],encodeOffsets:[[[-89961,17841]],[[-91027,16272]]]},properties:{name:"Belize",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ŏgǎнõ"],encodeOffsets:[[-66283,33069]]},properties:{name:"Bermuda",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĭއҀޕU฿̇ѥޗAх̽গljȤࣟ¯™ʑѽ•ljc¡ÈÓƨČĪçŤ͗Ĵѵ`ƕ_íTõäǗŠšÛ|Hwy…į“ė•»̅đɻʙǡʽƕƒǽ‹ǷZí´Cˢʯ݀Uˌ̣ͰØɰɗƜ[˾ǖŰDÄgžįĮEhļƊĦńMpkx̭ʐġŀUž¡ƀÅ̾«Ŝ¨Āǁî}nǕξ@B@œUÒĽŠl¢ԔҸWƔDŽŚ̽DŽǡѐȾͼǝɰ^ƘЪՂǟФĂڬʚ͆ݥನ̌G͌±ƜďɾĀ˜ˆä|ƀXĨiʲʘۺЬরǀĈι]ę綕³S·Ħ͕VōÇȅǢх͸ʹؚ̨͋˼ǝɼVʬ˟ծƋnçŴƑÐÁî±ǶBÄaĂ^ʌz¬RӐʥŒՇČ֛ŇIƳI¬›ŴƥŚƋŠΟhȗXŗ൚¹”DÖf¢r~AIǥĵƅO§fǭ–ƛlŹ¢¡̜șðgÔjš»RĉIJɵÚƥúûßÅŵϟµƳÆʼnΏיɪȡu‘Õi»]ÕăÅ["],encodeOffsets:[[-59555,-20648]]},properties:{name:"Bolivia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@˛XȦņƦÑ̯"],["@@åĦłĴ›ș"],["@@LJMŲƘ–Ɖ"],["@@ȗ}İĊĨË"],["@@ק™àĬœFÓ"],["@@ÚǼÊĥţĕ"],["@@ĉćĮːcȇ"],["@@ř¯–ĘĄ§"],["@@ėeɐ̮ŒξʖĞĀĿī̗ҳ΋"],["@@јÆ؊őυࣽǣĽőĐ½ƽɭôçǛǻßɕòχëɅҢ€ĨŸpŏtñƞŴՒͮƀԶĥ"],["@@ɯǑģĐǐƨDŽå"],["@@͕f˜ƬŌçÑĩ"],["@@ƯʓΟÈÈǂ҈Š"],["@@cūƯ¾ɂҌ’˧ÿĵ"],["@@ĝ…iƂȈĺÿȵ"],["@@Ɓy…ǾŰ\\˜ǟ"],["@@ŁIJǡÀ¿Nwʫ̃şݭĘ˝ŒõXŷOƅI½øŻŌŸʰ˕Άƥ†N¶œ„ƢHLżĢ˜`¢’¶ʲɪňĠfà‚ǜH¤nȒȦ–Gðn҂vQ°ÍÌgФtϴċ´^†~PøLÀŸ²µÀ­âÁnP’–––ptzvĖdffHȐĩ̄ˆ”¢¸VĈ¢ØOšRĜvJV¥–§¦ŸżQr犁œArY–iˆ¡èʬñ̦ȠܪťːˊɌպ֦݈Ęɀ˞ǽь࿫Ɍʯтƛ¸йͩ˝ϯԧѷʵוઁȻJλǃ׼…ࢬհǤەʌɇͺƸɾā;ǎ˓ޥƮŸȸӴȂòʀ˼ȺŁĨŎıôfȾˮ΂ҶÌŜąjŞ࿄ؕṇ̌Ɇɂ̘ɣµÅņ®ĨʳǿdzĀĝȒǤ®Ǔś‘ÍƗőՋʈɔǬЊļmñ˅ɔȎВæÚłόõ׀˝̼žͬƛࡌĸєÇనܗΪн΢́˚ķńǗӬƹ࢔ƂķҸ๱Aߑэ੓ΡЅŃ`LƉљՕ̵ƿΑͭơ˭EŶˣ܇ˣЭ͏̿ʏ˾ƉƕôįÑȩǏǽ·ȉĎu¹ίĚ\\įԽƮ৫˓ૃ¤ѳйңŏ્ǽƛͧ۟ͥ˯Ƒ˧ýɣ гףʻɱɩ¿̭ޓiǑȰÍɡ֥ğٚʢ¢ǃĊ٫ŧ‰ŵĔÉً˛śǝяNݩχषڣºŏɯȻbĚǻŽÕƝɋؒĻʔėɝȹöù—ȳŇ÷ǎީÇ݉ƭпЅʝЋЭҭࣁԹۧऱܙoʆ͐²΄ʢĢ̞ƴrdžɄǘwɺŔYdƼϯīɯˬŠˣĿ͗ÛÞŭαϹɹȅуÈʁѱࠃ׿ԕwJÅzË®@РhÀ|’ô¸îêĄĚö쁴ύɸƇ̄ƃĖʥĈ̶̯ϕǦ±‡ç†͑ͺtqMo…]ƒţģŃßU«B[ôhż΅͞Υ˺ʍ‹ÿŝ˳n³Öœ¢ƆĚưɄʊƾࢤ਎ǠWƪԾ˴ɬˈцńШʪƜ۪ȇԶɛŪʏđƟ¦JŤŚǴŒĊžۆ‹Ƭ¨ÀtfǕŪƻơ̈ƉĉoħgûZã\\£wð@Ö_Ę¹ºi áކŇƆMĐăĒţxǕ@±bűƠ«`˝ƹ঱ŸZʼĦڨíʶÁ‚oNJm¦ƒ|ƒ¬ƒ’[²kÖÆ\\ÖĄ¼^Öjv’ƙŮďôΒך]ń©F¶ƴŶϠàÆùüÙƦıɶQĊ™¼ÓiïhǷŴţæ¡¢kź•ƜeǮP¨ĶƆJǦ}B¡qÕe“C൙ºWŘgȘ‰ΠřƌųƦ«œʼTċ֜őՈӏʦ«Qʋyā]ɹ`í²ÏÂųƒmèխƌȿNJ«ŖɹU˽ǞؙŽ̧͌ͷʺǡц²̔ĥ͖T¸–´èŜ^Ěćκযƿ۹ЫʱʗħjſWã{˛˅ɽÿƛĐ͋²ȝPĭGăEƑlķFė«ŻÃÏa©E¥R·„éà¿}ƒ˜୞¶ƶÇs{]ͻ˹׃ȉŗۻ]ǕвۣĊĴŪĶŪGńąĢŏƐĉÆ·Ʀ‹jŵĦƵЄXþŸ|¯^Õ쩚‡ti|jjp|KńǸš|vŘ‡ŒˆȖԸτĉ̲vΠĄƶʢþњ²zŐxú¶ŜĞĮĬƌΊȴܸżĞĶÈ´à^džQłd¾™v«à¯Ģ^ڟ¤L‚vLÆfˆɺ಄ɨఈȟּν̶b׾ӨŶˎÑƅ͢ґRHղචXãŀÀŢɐȧ҈̲ʀ΍ŒѥǦŽѼϥʌf͈ǖƄşƒŽêF̴ΖݲΠǒͶӜȌ˜Ɍցúƥ࣮ϕΦijɜDzŕ͒[ƞǓָ^К̍ŨΦʪŜɐ·˨ĊҔːɸfͰΐËǸ‘x{TøhNJƒ¨nÖUĀ¸ČgŶſƃңϘƱ"]],encodeOffsets:[[[-49649,-28433]],[[-49750,-27035]],[[-46346,-24462]],[[-45188,-23697]],[[-39837,-13796]],[[-39673,-13411]],[[-45567,-3010]],[[-45960,-1349]],[[-53076,-1468]],[[-50819,-234]],[[-51868,-134]],[[-50630,-115]],[[-50931,275]],[[-51636,143]],[[-51356,403]],[[-51506,1986]],[[-61132,4458]]]},properties:{name:"Brazil",childNum:17}},{geometry:{type:"Polygon",coordinates:["@@ıj‡ǜȂųÇÑ"],encodeOffsets:[[-60921,13396]]},properties:{name:"Barbados",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ĩ@ŴҟƷŒãє"],["@@ɽƳĀ˙ƽ̗ӷҰ̢ÌӒ̤€Ĺ"]],encodeOffsets:[[[117788,5018]],[[117788,5018]]]},properties:{name:"Brunei",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ǝŰīĞGČh’Q®í×«ÛyÉSŸLi‚ŒÅL»q‘§gſCƝ§ŻJ½º{@ŝÝҟcͥIJş—éýƯ}ƭmŻdoºɇÎƹě¤ƵĆijǶl˜ĸâTf´Ű҄Ԅ² ĮªĆ|ÊÌæŽêb̰É^w{Ĺh[ľSźPîMʲď´HŰĆ P†]¼•ɲĉSƍ"],encodeOffsets:[[93832,28427]]},properties:{name:"Bhutan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@_ƧגࠁȖԋࡔҿĒͅͰqSһ̂Ыࡘȱbȃǎ½àߦ‰ȡgĭÅÉĭęïՇdzͭΏ›“ֵέȿ֍ǽŽƓƽ¯ɡµĉĵ›ͥޑʯÿݏ\\řĠȉNÙtщʺȫFɩƙɿ֥£Ý“ɇƛŁLJã±ȇקą—…ߣOĉĚŸ۞̧٦ϙ̶EᙶࡄŽIᵦሶˎ͌ϯզξʌ{͆Ț̌z"],encodeOffsets:[[25865,-18220]]},properties:{name:"Botswana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ڊअoЛŻȍÎʣԠųŨ̽ҾŻ̈ˡgɁĈʼn࣪ڕ­ƯǦ͗Պ̃ɒԩ˥úȿřટɀϭ́صvݷˣҫ¼ωӵ༩˞˧̰ΛɔʱŽγȣЋқ`ܱŕŨˁĻ֙ǀ݋Ƴţ֣ʇҽĵ՜޹ޘÃϪ˩ˊƗ֬®ӮƻƤʶȮϾުɰˊВaΞƨƖƶȪ˃ܪζޒ¾ҜԢȇƲÐĒୖǂβɺވݒô̔؈̮̔Ý"],encodeOffsets:[[23409,11182]]},properties:{name:"Central African Rep.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ˣ\\͠¤»¿"],["@@œ­Ăƪ’Ļ"],["@@ĵÌƚR£Ý"],["@@ƍWʈĸĹğ"],["@@ͥyɰĶǰŦùȡ"],["@@ȬǍɽ˒¢ɸǼɭWκ̖Ôī̤‰nǽۥ̍ԡcƓŤ”ϢҎՂϲǨÜɡƋϻԡ˙"],["@@ŊĀҪŝघAуǿKȍЫøń´ƉĎàüȡſΫÐįƘ̑xsƦɃ”ͨΞÿʉɶʵ"],["@@ŢqȡuìLjѺDzѥ̑"],["@@ĉƒǔȪĉǥ"],["@@ॴΠͰӮࢨҔ܈Ǥذɶࢢ޺ਞֆႺӲૼkԶˋʡɦųēɣއͷ֕Ƙٹƕ̂іųȰȫԘƪʢĹǫ̙ͿɣЦ‘§ȧ˺ӧՂÙì·ȋï̔ƍࡄį¥ýɤuѸȸƮDZʆ€ŤħÌŏƯ×ΰÙቱկʡ’Kǟ͝ƒďƁÇĊı‰Tǹ৥ۇɋ˜űȠȧfÉˤ˚Φɹŏ²Î൤ۨˀ˃–ǎ؎ŮోSҸИƕ{ųŠūʷगΑȍĀêĎ΍ˑε{ɃĒȯHÇΰ̳ľIଘέɜכœħǸljŒٝىʏګӋՓϳhǃʃᥫE›A"],["@@zùƓ‚Ś¸"],["@@țûÝâʺZ"],["@@ĦéʯÇPĮƺ„"],["@@ʡĦZĴǂLĆȥ"],["@@ਫŌோ֌̔°੮ȣ࢖Οĸŧė›"],["@@įˈȒNjġĻ"],["@@෺˕նڋۮʱоաĚôâɓɗó˿Âৡ̀ɪɢŒƺĩǕҿã˵ƄƺĀʵÀbźӫImnj΂è͟ ͇ȌǯÃœɒċïıĤͫ‰•ˊΚ‘jƮӻíʍȸάĮ؄ȃ"],["@@Ŀůϓ¹Șʛ޳ࡵ÷ͥդтdƥֆ˜ՙ̧ɪ¨ǽǿײŽ€įĪŖĻέ܎ϔ°ǓЬĦ˴ĵžƱӳ̓ʸpħĕɔ§΃ɗࣲȬĝțЉǍ’ijʥËȚIȍȓLjś̌͞ΖĬʭԍȌ”ƌǺňȁϯݥǩÀɡáOю΋ʳƏ”˘ҺŝˈǟĔʝϥ\\Ŧ͏ƋϫЕЇŋŲάŦרшӧGǫǏҩŒɖøRȐޓɇಿƔٽƇǡƔ¤ɒ߈Ѷ۱Š˚ǂÃądž©ˀФΎąĝøĴŸǯzmņǔƀȌ«œǰвڰɈĠijìɚˀ̔˒րȤˮćrĜǪ•"],["@@ȋŸİèĜȟ"],["@@ɓ¸̼Üħœ"],["@@ÑʞNJôķ͑"],["@@વʬNJŖײhͺϩ"],["@@Ĵɯ˳—ѢƫœĻ˦ƍ»ĥƪWßřߍՊlǺͷŚژ¸"],["@@–ΝƙȕÉЊŹõɵʔŤ˄Ͷƕäơ"],["@@ſrðǂÐdz"],["@@֛̈́ÈòюǏdžLJÿÝ"],["@@ůĩˍ¢ɌǔDzŋ"],["@@̒yŘṯ̌ʭ̈„¬̌ϼĚʑۧ͝ĵͳĸ˔xΛƜȟˤ€˒ͤ"],["@@jŸŰcƙœ"],["@@̤Ɍœǯȏ›"],["@@áäВƮͯɑ"],["@@ȩ͋M˞ˁ˳ɧÉȄ˒ϋȣѼծß̟ɞΜ˰˫"],["@@Ěř̽ŎɤL"],["@@ûÓƃvý"],["@@Njã¦ƺŦĕ"],["@@‡Íʝàĉłΰœ"],["@@őØɾɮɦřΑǫ"],["@@ŗWΪĐʑ÷"],["@@ԋʆդZ—ʟ"],["@@Œū˳ƒǢe"],["@@ɒƏ‹ȅЯγϗȊJʔ˪ʆ͎f"],["@@̞oYıΡHÞŚ"],["@@έ¤ϡɶٸŝĘƻ"],["@@sȋҕ˝ϕNjֵ£DZʚ҆Ϛୂ¦"],["@@̀ȣ·ijӿʸֈ "],["@@ֿǎȚĀИƭqğ"],["@@ΘǔΖȫႆӗ̾γǯǑࢸØѶ˟سʧ૧ȶõȄ۱Ǽૡۭٓǃ́Ӧ୏īȂˈְȢĹήʦ߾Ѩ͔͈ƟÁȣːȽ"],["@@Οƴ­ɒͤſêʅ"],["@@аåĉëډŠʍ̠ԶƓ¼ƙ"],["@@ʌMśşůŮ"],["@@DžNϤłɝŏ"],["@@§ëǛĤĒȢŲə"],["@@ߝœŏȨ৴ÇòǧǷS"],["@@ʟĎÉɜɐǤɾĹƣϓ"],["@@ԈűĻ׵ӟƧএƒ̡κƮɘѼ˨ޜš"],["@@LJÒȆö}Ƈ"],["@@ѕźϘD¾Ž"],["@@ѥƪĦƌʮ‘Ēʣ"],["@@ϱĄʜŦɾÓħƕ"],["@@͇“~ɖ̊ȁ"],["@@Ǜk˜ŚƄĭ"],["@@Ǣވ˲ϑλγė"],["@@ŋƕƉİʖ¦"],["@@͑ŊLjƔѨ×˝ȅ"],["@@šƮˀĩƝÃ"],["@@ÜǏʗÛǴñǩdɈ̦"],["@@ʳÜˀÆKš"],["@@UěڷĿێȜ"],["@@ĹſгFÎĿۇư̶Ğ࠲S"],["@@फ़ʣҤϑОÓ࣏॑̕Ô܉ʤ͏Ǜň̋ÍȫƐƠࡀǠùȨъĭƅ˺ΈÄ̎ǿ"],["@@̖įٟîΊ‚"],["@@­Gȟ{ͻǕΗʭ̯ȍՑԩٵ@ܥFɗMĿ“˝įöœr­MƟ’õœ‰ÆÓɏƇࣗ͏ٽıЕŧϻǵϷǵɁ@ϝʨ‚ɲӄ̘̾܌ªĆ̅ౚÇɜ̱ƞ֡ʤļƬūĺ̥ũΘˉGȋœǭ̚ǍäӧȬࡩΔ҇Dz҉ǴՓȰࣝʳૻŔȷÀ˿ŕԱȴ˽sÇ@ïƄ˯ŐΟ¼ijWˣùŧæ٥ŖûĸùŜµɌNžʧÆMͅȣBܑ@Ω@ܑ@੻@⿿@、@、@ᅍ@Χ@Ω@੻@ີ@Šćž@čąƓʂ̌Ŝͭ¯ö˰˽ʃлǦŠŐƨűȠĂʕ²¤΂ĵ’ʷʟēсȼɱͰǔϢǗ̝ΕaÁŶďƵϟ€̓øҚİԡsŞƄŭzJLjĩšΧ¡յʄʐϨؒĄիHˣȕƳǐ°Ѥ̜ƒǐѺ˫ЕͬȰʚÉúŸǃ؍̧ʻсɋ̶ːƆĈȒ˧ƵȀҢʽíƇˆұȐùƔˈƞ§ų̃śΈEǢţɻǪϽÒõNJȜĤΫaʣΡʱƕ٫ЈʖΆΖĆϩ£̃Ȭܴ࢔ȟĈɅх†ݦëƄ˅\\ÁĞƟ„ەʘ̑„“ǞȧĔĆɳł¸Æ¢®ÍÞšŌěþϛϘɯɲɫɾ֟̆ģøÁÎʅdžɡöěʒˇƒ˭]ԳĽšĿǁiĥʵȟCˁğŵ«ƉíçZÓʼ؋͔ҧˮˇŚ¢ö¶Ĝ@ÂŽGχUʟũЕĮÕåȥ”ȩ”@Ӭ@݄@௰@݄@௰@݄@௰@݂@݄໒ŕྞҧग़çܨǕ֯ʒ̨¬˭îȀǘͲEŶƈֺT¢ǢѼƥʛɉࡖƴȼǐј|íâ˚ƒࡸǞЄȄ؄‰ɨĐxǏহ̃गį݉ˡԍ̣ɾćǕöْZšȚ޲̒϶Ñɘøþȭܒі਀ȸɑƓĔċǜ¨চђУƄưžٞɷࠎف؎Nj̒ÜƹǖӶ̨ȇŒμľŰ͑ʂÝǵ˙ںrцΞߦLजŽ۔ɽណϻঘÛƹŘڪƒےǏր̅ōō֙F̥řʳȕʨëᕊŗ౜ĞޔǞόɓӾ•ƼɥȨƨՀ˻EƉчEਤ׋ϛ˺]ȴӌđک߀ƈǾାƐ֤͢שÛųƅࡕuĩƁӵgͩŦ;˂ᅰʸДùʸΑ،ƷƔƕ࡚ªॺ͇٠—ૼŪઘĥђæȁɠপϥȼȨҁļϡ¯ϩφζΤÎŋŘўwθȭҠ²ʕɭلǰͯةȒȧΜµō̦{EţࡇŽՔιȽː՘ZŢˀͣЎdžʄ׺¦ઞҢ͹͎dzǹ҇fѢːƝdžՔĔŇLJǺɊاşǎǁÓॣȎӯ΂ɈʨʎOŨ̹©ʓƖĒβ͔ƤмÝƂžϹæग़ΈΪǽҾmڢЗ·஖ٍ֣´LJŋ҈Åމ̵ӜJʹţ׮ĪȧijࡲÍЏǃ́fِͻāͿ̴ǽަ࠼ࢴ˹ΆӍáąϡ’„˳ߢٯڤʰޘ৾ٴÖȩÒȶȖѳƄĵԨ᝜ŻȔ÷̩ęώíêƉ܌¿ӣʫӜƒČljՏǗՙWˤʩǮ¤Š˧ִ̩ơΫ࿃ו्Ԑʵ²ɣĹ͂xўɃ̖ϿΥà˭ëࠍ̢क›pƋؐȯళٻѣT๻ӲşÉಋâ͖ı¶øࢺśߚε࿒ųࣟ࡝ױDž͏ĸÎũПÀǏŲȗƼƹʿn\\ʏցğছȰ̙‡ଝ̠ŘɿʒqĝĜਆɍʷŗԼŤܺɉɬ͇ؿɓދ`ΦȑԫǷǑȨƳ֫ǒʦűΫʁȻRɨƥԍʇԅ݃ɃęwਗƙǗ֞̑ΙǬτߎUظ୿ུ̫ͭˮ࿘Ϳܾ͑ӾϑྡྷЗ˺LJŭɧʰǦॴ|౤ȹƤɉǣӋʄΩųڋ׊ԇȓǫ̤g݆ҋŪɻ΃ɛ̼ƶ̾qٌѩ͝ΤͲϊʢƑŚəƠʠɁɸ҆Фʝ̙ͨࡂĖ̄ȷĆĂÐӅф࿀Զঞބà׊ʅ٠̤̅ଝ֎يז†ʞ̈́ćŕĚǐ˲ʝÈŐ¶ȓʀƬĬʋĈǜƚӻT֖ئэɶĥϚٖʒಲɍxŗϖŐ׬Ǒ[Ą߈ɘࡤ̉íʅɢèɼùƾŵƩý̎ĐȒÓǹƩδɿ०÷ʊDZЪƸĊNj̕΁ð̩࠙¥ޞěªӝ˴ƿηĭ£ŕŔ̷Ǐ̬ÑѦǐӖjˈƉŸɑŅˑַɕՄŰͤθŐǃƧſʶɠàΏĞȈ܈ɸ̠ʨ̢̡“͞˔Ǡ˴ŠˇźʎĐÁžξç̳ŶsȦ;KťŘ̖΢ˊ¿äą̉ƅРª¶˓ƜæʲʻǏōƜēȤ²ľřұş؈\\ƒǙȚVƪǥ֍˽˞ŚԬNǽɯϗƻٴŜƲƳ̆»SʥѷĻӘ˱ơզȥˡुĶٔɳǝđў¿ʍʼn̊]Âƙů©̢Ň̄ÚƴǷȄ¶ÉœǼƙΥΝܞȾÎĥɂiͱ̥Ӡ͖ɘ¥Ǿʽ͎ÃμĐҶʅʛǣءƃǕƭৃǷ˓ȧȿ¶ʜƕȕȃඬײ׺Ĩ͍płĨٴÅʀ̷͛ƯNJţЬɪ͂tоʙƘɑIӍѫĉӠÏ}ġȟ~ˈɋ੿ֱಅƋୁࠓ໵dzǍňڝÌṽ÷Ϗǽαթއŵୣ࠻૿Ɏॸʃú×ȁ̝ׯԋҿ˿ԣğएБзЅһȣɷ|˺ƻ؟˻"],["@@ʻºȘNJäɃ"],["@@ߎ¸ʈʢҐŠఞɭԿ̛Ȃ±ం̤ϣ̆ոq੆εӊ۝̀ćюɦ޳੊ǬǘಠŹࣈ΁ࡼৱŇљ޲εюĹzŪ଼̓ĪţѨq¼αуƜƏŵ҅ŮΏŅqƕ܁þΔƟÑɣ֤ɬʹWDŽυࢍǙඩ¤҅¢ðƊਿĨ͛ȶٿοޥÉछɑᵽƳЩ̀Ý̚ྣôݩŢֵՊᔔɐ࿢ñࡌìᄿ͎ምĕഅ˜֩ɒIŬ៺ϬᕏďʑÚОNJ۹UͻĬ˜ȆؚɸɣƐ̈ǦᰶتδÙžȏЃБ"],["@@൏ҼʶǺઞÒؘǃ…ɡ֕͡"],["@@ੂVࣤƓࡰտ൹®ఝŝсÎ̥ͰӿĠÓ͘ાÇ"],["@@ߐŢҤAɬĻľԒ՝ÈӓʐӸȸࢎǁҷɜȀÌ׽œʷʨ͚ȚࡌƁ৕ʺࢎ̎Ք‘ªƆຆżҒăैܩߝϩ԰ŜˁҗزʨʢȋžɸĪۦƥOȕ΢ƋɷȄƎɀসơ߽ʖؘɊႤŹո̃ܵёࡨ͐׌ķęŗݛŏш…ʝϧђΰ֤ļ̯͑ТƸ҂ʯćɊ͂Š੖ƋΌƫɟȝϋU׍ɛݞǺ̺ÑҜŒź³õɓे̣ԪÎŹ̻ϘϠࡾɞ௢ȡŎŇ෍ρ੾Ɗȗȋɞֺ͂אʁŤʭڣਗɏئÆ੶įѪůRť෗ÂՑőՀØӪę§ʁ஻ÖञŻɬƭ৒ÇʑōĠɓǎÂÈā€ƨΚÐșϓтȦàů̘žĞʗ]ǢвŸĉȳ͐¬ڎɱƃǿׇFܨïȶĨҨţ։΋تńӪ™ɌŠ٪̛ƥŋԃîҬɩ͕ÁԅĈhƯҖLJՏgȰƵɵNjѓdʑǐŽŧȗ¡˂™u͗ȱʩةȴÜȔʇʅ܅ծߦҬҷȩۑåƚǪ΁Óޡж÷ďȗšèɓփƂךεƕĕБˆՍʆʏ¥Ҁķ~ǩːąÏǫ̰àϞǟǿÿ՜ѿÀƼΞɹɴƐ֐ɉɉŃϤÉśő̯SΊɟЮ@ĵĥ͚ǫɇϯѷѦļсͬ˹ЫV®ʳफИIĭƻŠȫȨ—Ǐ৏֐ƞʽ٫ʬΕk٨ѿϸá»ë๎ڧť˅ᎋ̦ӷƚЀՋIӅŮʯüƈIJ͵¯թ̎ԤƐޅŮĮƒ˗ÍߥӚƸƸ՝IŻŹÅƸ˥ŒȁƼȧÅȌɥࡩx©ōࣵŻݻĺʇŞ¥τؠɐ†Ɍ఼ȍ͕̈́ĂƖχʐՎ[ࡺȂӲeܫֶ୐ҼȶʬӌȊࣃऒ҉LA˖ʝ^ņŷɽMԻɢƪȦ༳̅zʼԔlʲƴۉɎȚnjё÷̇ÀȚŞ؛ÐƵͦёSڃ̀˵ǟҖƅwɝԿ÷ᅗĶؘ̌եDzؓėܙƠ׫ŸೕŲ̇ÙҕĞÙːேǿߍȼ֡ӊഢįפÈᖑϜ³ߘঀ࠮ࠢː๨ńࡈŇࢭ΃տӵςۙ৐ҝೇ˻"],["@@܀ǵదƀрÁƚƃԽƏ̒ī९ϑڈòѐͳҊêŬƃ̗ȕǀЩ߿ǡԉ„šDŽľΉϵśһîଷ٠ԩƐџCࠟϘъ˂޲̙ڎªöǢɤÏ΃ʔײ`ғŪѯëՑDzҠĨϢųχ˼ࠈHUŴ"],["@@ס³ϋêขǶӓȫ"],["@@ߔǁഄiȸŃร࣑ჿHφõǺȹЛͣࠃ_ӿܸھ޼νǾƊƈຬĴ"],["@@ѾîôƵӖȖࡼY၊ԧÂƯᱝىҩ͍֕÷σקܑĭɷ²ଃ̍ދӪએʞңLႢຐݯӤᧈǔ࿈ʿơĵ"],["@@ͧ_ˬĮ¼č"],["@@ҙÞ˺°Ǡō"],["@@٣ĤҔʂנȱЏų"],["@@}̟߱ჃͪըΌࣜƾࠂǩ̮ͧ"],["@@۱ŋÉŌԬŨʐŧ"],["@@̽ƴ̨ÆVȹ"],["@@ЧµӟĄ๘к׏҇"],["@@ӛéՊʬ­ȁ"],["@@ȀÛӑƅء_ɰżߋ^ƺĔωVĝŔ഼ŀтʕ"],["@@ࠆőɓđ࢟Yȑɮіºªé"],["@@ǃץМóÒɅˇôȍùǢʏ̷ÖÙƗᄩsȽƲ˴¸Ӈƈ౤ʖ᭣ƹǭðոɴঠÝχ¢ϩȦ̀ŒӛĪׄĀದсȹnjӒzܻĆξÎ܏DzࡠĞޤƕưȔࡔȑ"],["@@͗t଀ňߧŻ"],["@@ӎ½ʡDžڰðʬDZȤ̂࢜ßĨˁӕҗࢽƋ૑h̙IJᶿկॷŠաɚఐɔ঒šӠȦᔱƿšdž͖ƂңdŷǍ̃ŠÀǁӋģͥŜ˅ūعǠࣵ¾ʶȐল„޺Ƽઃýاº̤ńຼľඡ¾ϤȦலmࢗĈۖȒڰ̶ȵूI൪չᄘMDƂާȘ͒Ǻ۟ȌৼϊՌ×Ʀֱ"],["@@ۣȒΜĒφą}ȝ"],["@@ੱ¨ߌĎ˦ŵ"],["@@ࣆţʯ˓ҐƢෆ¼ٚƻܻ‘ᅌŻĹĥ၁€ᅊΥ̱ȗؖģɬǤόūІÂdžùʂŐલȇkŒ႔ʒאË࣪æ໨ǝۀ̳ܻȍ࠘įҗë͹Îîˋඩģڝ´ډ̺SˇݥÝՕĊÓ÷ʷḙ̂ďᔫIģ˴ࡱɵ࠳¶˝ǤɇƗΑL۷ԜǢӪݿѐᆵ÷ٟȈ͜ĈਕżД¸̙ƦކĀಮŹ"],["@@ٹȍѨǕω‹ʲDžࢫƯȟȿّľĦͲމʕʏ͛пǞ°ˡ͗śзƒσ̜̫Ǘ્ƒ¹ǰʻw͒ȀߪĎᐄܐሺ†ǑłѺè߮ƹ"],["@@ͧ±ٟİs˄রŷLȉ"],["@@ց’ۏҶϖG࢜ͯ_Ǐ"],["@@ᆸ«ȯɯᏋdǩǼ׮ü"],["@@ַ€ÏŸ੊§džāׇ"],["@@ϣƒ׉ǎղƌм˕"],["@@۰y਱ȫ״ѝȧᆣƉڕƔ§̾ᙎǘ"],["@@˦˭ඹÐ̇ģԩúࣻḚ́ƚနɤࢾë"],["@@ઐšΏƑͪűႱɧ֗ʆ״¾कƤʃϖߚRবɁ"],["@@܎νܺǘӚɷ׌fۚȣό؏झqڣ̤ಃ°Ľĺ৹ġۇüūǚ૶YϙĄղĐہœ„ǪرƳŰȀڏLlǮńæ࿰O"],["@@ŹɍथƤHǐݴ€̤ť"],["@@ਰґஂé͈˿ւ¯˙ʴ܌ȹɱߐǡˋˁߪ°ˤſ̠ŐԘ˝ྑʹևʣΡˎ¶ϫّ¢åͯ৷Ξјϓ٫ƘˉƫรƎйŮࠚèୱÆ̱ŤЌtߣźೊ̔਺ø౫ÞणƅƩĤ࠱ĥҹȦ੖Ǭ૳Ù܋ɌƷȂᅄó͒Ŭॣ¹ࠩư܂ª̔ͅှƉೱɼ҆ǰ෎¨޷Ș়`ॲdz"],["@@ᣈ÷႟ɯᦜŪˆĒЖĻܨ†̧ͨ٬Ð࣪ßȉɏᛏχᇃŁჁ˕ᾆǘ♩टঋƀϔʱຓġద}ۍ˥ࢣÉ࿧ưޠıĢɃᅡ÷୩ĈઞɭऺSƇǍ῅טŏൂÄ๨ɋ͡ǥ಍ƒਈƷ֟ˉᅫÃÃΩՍƩ༩w࣯ǰ̜Ƴً¡ʨýቒOѦʫ׆îʲȇʩƹᑝͭƥʠرrڿȔʠɍ൷[˵Ȉ§ˋܭ«િɾȏǩ֣ÒŕŚOǗݯhċ̰¥̏ۗ¬ʼn̒ऐɸ೰æܳɂ˯̊੘âখͷ܌čࡤ®ࡖκĬŤহϫ౓vɏ̲޴ɦͤgֿÂņʎڭΗՍyʢɘ࠱ǻ՛¦شԈະŜผţ౪ǦׁÓဇþzĺڶÅᜁږßΎᙲ{ႊҗ৲ã̐ÂݕpဏՊㄾҖ༓ò໦ДℹٳགྷÝ֌ǎᇏȵ໩̑Ĉ߶ɖጎȊᐯħಣ̫֣L঍ɠᗄĂಊɂያǥጉ¡˗ŞتàϷàნǔݍ྿ƅԂȖఃÃ̗ĨᳮΌ࢜ř͢þ೨Ë೑Ȣ฀Țቜ̹ĆƜᣒͫ᠛Қ٢ľλĠੈ³ŭǨቘċ୿Ȝᒌ_ഞ̣όØಷͲᗮJ์ʕڃƸՊƪۢh࢘ǗŧƲप„Кĉ"]],encodeOffsets:[[[-61222,44995]],[[-68364,45755]],[[-62424,46582]],[[-75463,46680]],[[-75332,46561]],[[-62571,47048]],[[-65342,47584]],[[-63400,48420]],[[-55528,48580]],[[-76501,46084]],[[-129118,50539]],[[-55863,50779]],[[-55391,50939]],[[-129680,50797]],[[-63284,50273]],[[-128188,51300]],[[-130250,51856]],[[-56789,52774]],[[-130994,52710]],[[-81289,53199]],[[-131449,53659]],[[-82669,54014]],[[-134915,54473]],[[-131637,54211]],[[-132267,54393]],[[-132964,54444]],[[-133361,55254]],[[-135839,55427]],[[-134069,55787]],[[-133709,56085]],[[-81897,57557]],[[-80830,57617]],[[-63225,58936]],[[-81629,58896]],[[-70819,60458]],[[-65952,61816]],[[-69871,61687]],[[-80416,62187]],[[-66388,62839]],[[-66591,63365]],[[-81454,63910]],[[-66379,64061]],[[-72025,64050]],[[-83968,64466]],[[-79745,64994]],[[-78517,64916]],[[-86957,66828]],[[-86706,67149]],[[-85735,67376]],[[-110686,68614]],[[-64185,68666]],[[-110489,69020]],[[-75388,69411]],[[-88673,69362]],[[-77492,69963]],[[-80878,69830]],[[-107049,70048]],[[-76678,69990]],[[-104290,70233]],[[-102622,70459]],[[-102394,70670]],[[-81111,70498]],[[-92364,71086]],[[-78843,70804]],[[-103599,71063]],[[-97805,71244]],[[-69544,71210]],[[-79901,71389]],[[-81337,71463]],[[-99778,71315]],[[-88998,71796]],[[-76501,46084]],[[-99105,74688]],[[-117270,74336]],[[-107815,74670]],[[-81446,75423]],[[-88667,72716]],[[-102401,75721]],[[-100628,75642]],[[-95406,75941]],[[-122609,75892]],[[-99692,76315]],[[-97594,76294]],[[-106618,76838]],[[-95787,76829]],[[-98384,77323]],[[-96795,77568]],[[-121168,77394]],[[-80960,77749]],[[-104680,77840]],[[-106519,78422]],[[-100045,78302]],[[-103655,78418]],[[-110891,77883]],[[-91879,78344]],[[-116286,78586]],[[-96558,78759]],[[-118324,79220]],[[-91989,79123]],[[-107067,78994]],[[-97776,79660]],[[-104134,79562]],[[-116564,79621]],[[-113109,79978]],[[-112451,80539]],[[-98513,80417]],[[-105908,81220]],[[-101162,81901]],[[-94090,83081]],[[-71156,85010]]]},properties:{name:"Canada",childNum:110}},{geometry:{type:"Polygon",coordinates:["@@ÅÑ@ĝ«ÏƜŽBAҬǥǺŒÆi’ÅC…ŸʼnOςĩȟзK¥]u­mÁN‡ŠwzµfĿ¡S‘Tďľ¯Ląků§¹B§TďƨyAā^čɵíǡťǕȍǦή̡ƚóǘӓǿųíõȫ֑ēǕÕp‡lÉü³†ĿĪ[ɀƯlűMě‰ñ½‡ŝħãI‡RAÂÆp¼–„ʌɾǂhÞxĮƘ²–nl€ŐĘŌĔvˆnj@bč°ÌºƘŠǨ³ɮƆ۴HĘxX^G\\]NčMVSt‚˜ŘœߜɃĐ³ćǑ@A"],encodeOffsets:[[9757,48405]]},properties:{name:"Switzerland",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɫªƎŞĞLJ"],["@@ɓśŽĬә™șȬࢲFƔƧ"],["@@ڪĉό¸ŽǑˤċȠ͙ۋNJoǬʫÎƓŅƬƥȗ€ӋʠĄɞƴ‹"],["@@ƾċ͚¸ĶǣƫÁ߱ʎϐl"],["@@̲áķɗˣŤЍÏɗɈǶƌԚŭ"],["@@”ąʹSɶǿǟǑϱĻĚɘɳ‚“ƑʼnXēɎѿƸͰŖѰÓ"],["@@ؚŭѦʅγ ʥǮ͹`ω˪˞ƣ"],["@@mᇛ۩IȥŬٱą૫ƶąĈņĂ؄SʂĮĆƃ͞—ҩΘIȐ˰ɎŸ̟ȿeĀŋ̮ȱάÖШɁǬŴߋʢƍȄºƔآʲɿè׉—ħʖˀŤȿdžϐËѬˮȸƳ͆úƆÛ"],["@@ʊ˭ƃˁƁPɅМʂƄ"],["@@½ijΩCȯȑŖ̆ΖÒƬÍ"],["@@ğë_ʄʾ{ƽƛ"],["@@ͥŸĺ˦Ϛćƭƽ"],["@@ʃ˕Ɂ‰źĨăȊАn"],["@@ıܝƙIįʈƀʪȣĝėˍН¼ȲʢƉŔ͌öĽĺɖǀ®Ȓ̌…Ð͋"],["@@şƪâЬƲÜȜԑ̏ş"],["@@̙…ʏР\\ƖʬŖˢم"],["@@űÖˮ”ƻĩ"],["@@ŷÅȋĂ͈ЬCѧ"],["@@ƽƜĂĜüɷ"],["@@ȯãƙð¡ŐȦʴβƣǫɫ"],["@@ɣǑɲԕʍűԏהĮƦͼìĒȾʔőķ"],["@@ŧāƿ¦˨œ"],["@@˻Wɭł̎ாђčĖʟ¡ɯˋij̔̏ˁȅoƿ"],["@@ƻ_ĦðÖÏ"],["@@ŻšĒĢÑ"],["@@ƾƯ̇ࢁݧ̝ʽ̗Ƭ́ǩ˟Ƭ؝Ʃˇɮхɯƕɇ[˟٩ЛЩƝ׃ǗȃÊىĬąĥƵǑEſ֋ǯŁÅΝ˦͙ğŁ˼ڧ¿ˉɞç߅ǙÛ˹܅ƋċŞɵVҏճϱŗˍrޙʸ۽җˣř֕Ʊƒ¼͕ƃŽĠǣȉʻjߩƊ̛ͫǣاͪȹŻġȌӧŝϡԜµ¬ijďǟګQnōϐÙȺ̑ͭȹĬ̿ȳǧƨЭȫƯˆ̵χʓƟ͑DŽȝuɋȑğḘ̈͏ơďʉ˛[ýų¬։̊ԧդŌƜ×ÉܝЪϗ࿪eౢ̉ڟŶ͉ɑথʯǙࡓʩĕ݃ɂȧʂЄĮ¦ʑϐ¨ɄϞǘ¾ȈƉ ݝ̱ɫ˟хǼ˘Кɲ©˰ƐԚœ׷ìDZĕɱø·ҍѭȤͼŊİȂĵŕ˻¿έ Ɂ҆βŇŴƀΤãϸǪȌȿęƹżňďʸŔƶɫLj΁Ĵӌ̃ޗȭȟȶύĬɢÀS̐ܿǠɻ͎΄h÷LjŎĠɺŃȐˣ˪ĵŶϐ˕˫ǩ˺Ȣq֭ˈʞȂ̀i̫ǰ„ưϢKɏƲƆ΄ʉЕũČtڲ˨ĶϷVġϸৌūǿŸę˴ȋɯʉ‘ΫɢĸŔʔģĞö̉ƈ˘ȼŽͦşlµıгŨnȔҳƽĢȡɵȔڂҞţʈކĜˆɪƒüՕǏԟ̻ƉΨÂöʴŦˆvɑȫϱĔƒɆ֖śΚϸŒ˨ęѕǸèɔԾȴ¸ŞbƄԏɤ”ɪžŠÔȘáʶˊʆ÷̶ØƐŢGşɄ޶Ȁǁñ΂˗Ôϴɔ˜Ŵȋlj·ƨʏɟ͏Nġ€ĤƊƿÄŽͰʜॾɖƤƺӆʙ׸²ЀǓ˼A̜¼Ÿ͖nĊДѾޮ‰ƤͲЪȆ޲˴њßҶʒμɋႀʢɨǀìвǟ؊DzɈȄܞƈȎɼ੒ÇҞɤԤŅѺƴ࣠Ǜʼ~ǖȚǪɄరįՎࡨɕଢаŜľǺ¥ʌƖ®ĊÞÚÈǖν~mǂí§ÿ¬śÆ̽¢ſVŽĢĿȦǟ֛²“lwPoħŃĻƉFgİĭhCÃǕů\\˽ɘƛ×ɯ̤ͯVˋʰܿDˡʦÍǾŒƖ„"]],encodeOffsets:[[[-68903,-57115]],[[-68689,-56477]],[[-71375,-56237]],[[-72695,-56184]],[[-73103,-55329]],[[-74673,-54765]],[[-76170,-54192]],[[-70277,-53916]],[[-76618,-52869]],[[-76348,-52507]],[[-77109,-51896]],[[-76856,-51503]],[[-76909,-50008]],[[-76263,-50327]],[[-77322,-49933]],[[-76356,-49758]],[[-76914,-48985]],[[-76096,-46788]],[[-75399,-45897]],[[-74737,-45854]],[[-75504,-45460]],[[-75582,-44879]],[[-75543,-44386]],[[-80695,-34453]],[[-111902,-27791]],[[-68807,-23369]]]},properties:{name:"Chile",childNum:26}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŀ˯̻̩ǃҙ͓ʥҡȕۉˊ‰٦ԤϨċNðĪބƠΖßÂƌȦū"],["@@ŘScĭȉ†Ėü"],["@@ijaļòGÏ"],["@@QƜægÓų"],["@@ý§\\Ěâ±"],["@@ĵolǦĮ¡cœ"],["@@ĵoØޞı"],["@@ɭ¦¯ŊˆÙXĕ"],["@@˽´ʷɌնʿ"],["@@ɽǬKŮ˽ĚǙҧ͑…̿݅͟§ȴ͉şȁ߿ŦȍȦDZ™هۏऋϏѷϣɋƍϣ’ڻɽܝҡʯ¥wśУŏ³ǂӖǂ«ĤLjƔҗAQƆɀĂ@ǦʆĘЊӺυζėŅү°׏֛ࣳГΏӏ֯īɍƈƥ‰Ƚ˳·ȑǬˁȼŇަşŲ˻ŗ̳ˮNjЈbҪϾ¯´аżݠ̻ΖÌԢŁȃ˭Öķƭĩ΃ń݇̇ȱjîǁƹ}ÕʃȵÛÅƤŧsõëdžőܗַɛϝˆčࣈЋԔ੏c̕ШȣÀǿϞ͝VħƻRˡŬ͇VϟȤПƛְ¢ÔƏܼпǾͷϭŅԅι̹„ɉūʦ¾ŜƛՀƞΜ˙ͼĝӛ͕κĸoЃǙĸȗÁNJȫśiĺåƿǭŔ̉˳ÏŁĖƿʑǯuîijȵʻjƗˡ˅ljΧǡ»·ȢħįĹ²ʘϙΗɻ˗ÈNJơʌ°á΋êǙω¸ĘǽʷmËɽɫÿhǵӍLåũƏOǶȓΫ΅ƋHĉɃÝłǩŕƟÌ¥ǍșĉÎÛƇĉËȝǿˆͱƯDZªšőʫĈ˻ǙǝŜćȏʍXɁyͩ̌BɠčsǃDžȈˉG̳ͳų»ŐœʥũŒȅƗȏǜ¯ȣ̣Ğ˹ʓӯ¡ϙʟſľɍͥDzě«ƓǖŹƕȉϱÎðìʱЀfǸɀ̌ȳšķƔkŹͩĥŸƒˣ’ƭɪħHnɫƫ¼ßŕɱ¥dzŬ΃͉ˆʵ°ħѮȖɸȧŊə§ŋĦʯ¡Ӊ΢Ήǫƫ˃˅ıȓĆǛɓˑȮŅNjƓƴ́˓ѕʬ×ƛȭ»©£‡ʇRçĒkJQ‰qs³uß©©—mDzΩN£HƟqʓÞđaO±¡oMƋìɕ¥…\\ovY®RěÆlĪµž¹ǀЋʃϧRǧɸoɨ؋Ĉ˄۬õĠүĺθŽɾƄǼԻUխǙŦˌƩɚªʄżĂè͎dž”Őɺdž`˔ɸûǬĸĮ®ԆóڌǕìŻęȣՖϳ˦½MęſÙċ…‹gʼn–ėʛȅë»٫˼ϧÜԽ̳࢓ƇϫɝʱҍӁ¢׍”r”KºÄ’MlVžzʬ܍دî‘RćgğHůĪŒǠTƎɻĎ÷°ŸOůą³GʱĐíNŹOĽTg\\|ĺ]xцįrĻRéaåÉËą{ĭ©±Ÿӷس· ÉÊaüæȶhЛŜȏðŵçŵ•ői_B¿Ƚ`ȧÑ˧Nűbķøï’û€ûn¤yrÛP»c‹Ĺĝ‡ã€ġÀåþ·]ůÍq“d¾åŪåîå¶ɣCǕb÷p…´„ĤŽôAjVµNǵ³·NӉ̐­ŀ¡ĶuÂá„ïv̑ăΫή޹ϜƫɚǁŠdzrȋ¥Ƌȳß­LJǔĥ®ֵɺbĬʃǤɓÜɵĊɿ˶̧áXȐ½dž‚ȲȗȚ‘îƔy®̈Žb·ƒšɄŞqш—¨‚Ķm®ƏĶëîå͆³ǢȲǸ…ľÑŽҍǺƗ˺éǂƒ̂ȱ`̑gŷ‚ǡšǯ¾ĥ¢bą¨ËšWĪ£Qĭ“œuÕA}fÝżƃȾ˪mÜeÂýņ˜ĕ ÿdħ…‰Z¡Ū}~ʕÖėe¹_ǓêûB·]]R{vķäGjƾâĢ~¶pXIz‰Öq¨NȒźȋǺçܠ҅ǘɃĵȋÊėȺĠĪǕɖ|ƘIªLj’ìøPzĜ—¤GŒjzz¦°Ď¬Ä۶ʈ{Ȇ°~VŜ™ĚHŊvɾنCĺˍǎE͘ņ¼áގìºĈņœîdäjŒ¢ŽĬƐì–â`ԂŸŚ€Ą€ŢIƖtȈǦbøäžʦŤҨȈЈĮØĆÎhʴdfVXb‹ŊMҜ˰ŜůƜͪIJα޼ń԰ԡƚǀļ൐˾Ɇǁ˒¸Ɍÿøʤʟƞ׸೺ࠤǹմDĴšטȞƠdžŋ֊ȊЂڦŦɒѪўŠĀQȞȸ˜ªE¸ƋŇijô÷ǒ±‚yãŷˤéĔËĔg¦ÇRćĚ¥ƀËâYŊñδvèqǼƫ®Eâj¢–ÎQÚōô™ĺsdkĂųÒȁŬƹÔąìeÐ}”ÑÚœ×БŠÿ¤ÓJÍ˷ѕǺˡƢl҆ş۶ÉžDǬrؔù৒ӿ՚Õqȧǚïˬ֫ѴұېÎቚȅѠĠĒMζ­ӖÅͺYê]æo˂ʅƸ·ΘÅмï՜ɉʊžʶ¤nj€@ǿ̦]ĸ£ÌjÆ¢æØİ„ҮȈݸʜ୶ƆѠոlĔdߨˌԜӊܸ˶®ŔѽҬиגŔdäeʤIôŸĈÿĠ…˾ÕɄeǨ{âaÆdȌŐŸ ¨z˶ȚŠǀƮ|Ʋ“ȲXѦÌѢʀ˜´W¦_”̌͸ʞĊЌup|AžŠĎ\\„‚`ĞDǎÏˤŰðXŸĄ[ƨWÌTØSĸÌĨsǢąƜqŤZŬmðD”lĶœ~ƼƽʖՉшÁ€ř’ĵ‚ÍÄĻĸ͔ؗHΕ˯Å^ǹŞı~§bşbĝIśsœJ½`ïCſËåßăqɿǀûɌĪ²ŬÀVĈIĠ|ĺܦਸ৆ʻӠ˦ڸȈðDzƵńݺ৐ֶжÿЄӳÈvżݢкᔺɘৢ΋ɚÎӘƉ׊ֱӪ੗͐ͣ~̛Ɇş‘΁Ϙȝע€̤ȍθ^הй̜AɑɄɕÑ˓Ȕʹ౞LȚȜξƄ˘Qۚɶ̺ĵċȗƾʵӭ΍ʱࢯΧգȿġÓ̩ƫč࣫ʠͽ˽Ϸŝɰ٭D׋ǁЏէƥĒLJ"],["@@ƅ€ǦüŸĻ"],["@@ɂzDȵ˥ÎàŮ"],[],["@@těřlĦð"],["@@Ɨ׏ԛژƇδºцބ୊ҬȰ˰ʧѿຩ͝ҩ"]],encodeOffsets:[[[113551,20472]],[[113035,21600]],[[115348,22160]],[[115498,22121]],[[121020,25085]],[[122697,26068]],[[124162,28761]],[[125232,30683]],[[124788,32249]],[[133660,43557]],[[116734,22744]],[[116752,23053]],[],[[121250,25111]],[[123913,23164]]]},properties:{name:"China",childNum:15}},{geometry:{type:"Polygon",coordinates:["@@ҒӁƗĊTĸÙÖCŶŖ͠ŖǬNʖ•ÈZÀÄą®°…òŷt…¸×¨C¤„lpT£gå“ʱ´i”ˤſĀӻ‹ÕoOwfY‰¯qķ÷ƛБɣףȔࢍǤģŽƗ»ɻ̑¦ŶŭȉٯưЧ×ӒKܥû͏Ôí¹ʲi܏ij്և{ȆÙƼՒ¯ʔƳÈÿXÑĴŽmցîÿ¨ʱ„ʧƠɜΰëЮkdžàWĶƒv„øƞUĚĮǰúýXێ†ZżN¢ʄnŊUîû˜@oɤșŦZnjŠŒľÂk†‘ŒáŒnȐȭäcВƐDŽˢɞɶñ̲ǓÈǘɐNp˜mĶLÆT´nnƞăȜƂºˋC}£ùFcĺ¹èMńĦX¢ª†ŴšŚNƤŁĶL"],encodeOffsets:[[-5388,10568]]},properties:{name:"Côte d'Ivoire",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ɯˉϽީʵȭƼƣ­ӭƘ֫˪ˉÄϩ޺ޗĶ՛ĽӿˉȨ۵Ĉ˗ƾઇ‹ÕĂඉžǯEgōț@ʱ@ڻ@ġžƒ|K„IlsNlȢńҐɵϬĀðĽWïƾƸ°ċĦ¤úǣT·ťΥƚçϴɏİIŽĭ²ƨЌʂܸатʒ˼”p®hƐIJĖÚr‹dŸjkô]ĶBNJƼ̊ʉàáÖȫ gìZƒêŲƎzNJàÀǢƒāž–ÖǨȴǼ׌ƞˀƮ|ΘŊŴrÌÎΖ®ļɨŚÒЈŨŔĸθƐɦNJɢöÒ܄ðHºh̜ȌºքčŮȷ¸óøķՎƲAǼ±͖ѧȠց©ؙĒϷŦʕ͈̋உwɡʍ̘Чڄիθ٧Íɛ"],encodeOffsets:[[15852,7705]]},properties:{name:"Cameroon",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@͔ϵͼʛȢuʦƴмħȴȂǪsѤԕ˂ūàǯƞ@æőÌçŷ̯üǍį͡ϔƻÜȍહ਍Qˏǻͳşణ͉˧ÅЋɉǣdȡĶíǮ˩YٽLjԭBŸß˵CÁfëǚѡªŵZÓU«ėǃU¹vŭ†š¦ãĴȇöÙƎģŨĥĚĹĎƓĀɍ̂؝༓ʕyʥϿσǠϡ”ܷɗࡡČȵӦҋΠÍndžʌÔiઁȃDŽ̑űƿ|ʅόƭöśˌ۵ʔΑծ˭͕ڡÚ֩ɢ»ΊމǣWʌͱɒÅģÉ̳œ͙ijɗPɇrÙ}ýÕߏ‰J«ÔmʖĔŜğմ͓Ӓþٴċବ¯pҽjɻFʫH¥„m¾B¾ÀƾQ^ĝJʕlj{ĹU̇Ɓ™ŕGljĝƵC©{ɓǓ‡Ǖ@͍ÆүƟ̫dÁQԁۼÅ˖ęƊÏżϢƇǖėÈĭ†ዱRՍMƋPؙŧȩȰɬƒծ¨ˆÒ’nfȞȮIJ”Ġœ``^„¤CɺȝȶĮ¶ɢȊ}ΖƼüųëŕœȷʠ¥ંबȒآCܒ˚˴˶Ԫܼ֪ˎᓀΚފĴҮ_ܲЌҜδȤʲΜɓ˨̯༪˝ϊӶҬ»ݸˤضuϮ̂ઠȿɀŚ˦ù"],encodeOffsets:[[28061,5232]]},properties:{name:"Dem. Rep. Congo",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ijҭΙމˍᒿܻ֩˵ԩ˙˳Dܑȑءઁफʟ¦›ȸìŖûŴΕƻȉ~µɡȵĭɹȞ£D]ƒq`ÝÊ÷Ĝƒ`̅ƃНΕȫςխղĖȎɨƞƴƋnjb°̆ǿޜǎȇŬÊдϬÏ͐ê]ʹƄĒǠėǖ͋ЊçɦɎź˝ĚsǦ؋ŘȆ˞øૈԩ̶øҶ̾ɪĚɸȽЀˣ¢Փƛ™Ғĸ̼ઈŒ˘ƽ۶ćˊȧľԀʈҾŤ֤݌ƴ֚ƿ˂ļŖŧ"],encodeOffsets:[[19057,3562]]},properties:{name:"Congo",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@՛ǏʑЁχ̣Ư˿ŗם̟ԃʶÆɘųŌЙɴ˹çٙɞŹǜ˳݆͢ĔԜŗמۣߤ„ԨŐ̈́ğPȿ̍և}ٙnjե̎ϕҡԹȬ@΄͹ˬকǥ‹ѦɿΎ̱҇ɏȨ¿šäĿඟWGձҒQƆ͡ˍÒӧŵa׽ξ̵Ƞֻɧఇɹಃe‡ǛƼÕƘµŽ“~ͩ‚՜़Ëfㄥ°ɿŒÓZµÂǫľ­X·gñgéÉǙkƋĢNjÒ¥[Žû©ȟ×؇N£°Ƒ¾•ϔʥŚƗώǕªÃÒ¹xÉÎрÅx‹–§Þéɪ¡À£¢“’½¼Ù†ÁŒs®iœ˱Ųū³Яǒг̌ȉǟݵƄÑȰȡǜГŌ֭ЦƓƘȞȎǺÙ]ӪƦń̌tɆǨئ৔ƽi]ƒãħ§ʬĥ‡ƘƼÈ˘ñԐƉǴʈȲȁͮĎͰҁպŜЂȊŏ˾΀ʁѶĔƈѮӋÓįŚ•^͊ůɚզΒɀ͚̈́î“ɼŢЎƛ¿ɚϾԐоќħƻőĬćɐҲۤsࢎԀŞʦΞȚϞíŀʏƵƹ"],encodeOffsets:[[-73031,12147]]},properties:{name:"Colombia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@нǏtĆƂ»"],["@@|ɳʇƼɌø"],["@@ȧŲÔ̈́Ā…ÔЯ"]],encodeOffsets:[[[44840,-12602]],[[45544,-12371]],[[44509,-12186]]]},properties:{name:"Comoros",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŏk±ŪƖlƍ"],["@@yƾú±¿ŋ"],["@@»ûǛœ—̰ʰˏ"],["@@ȌÉcŁȽD–Lj"],["@@°§ǭxãęÙłʼH"],["@@ý–¢ŠœƵ"],["@@ǥ^Ƃø¤ĕ"],["@@śU{žʬî°åǃů"]],encodeOffsets:[[[-24891,15213]],[[-23738,15501]],[[-24006,15369]],[[-23467,16627]],[[-24665,17022]],[[-23437,17059]],[[-25484,17222]],[[-25773,17354]]]},properties:{name:"Cape Verde",childNum:8}},{geometry:{type:"Polygon",coordinates:["@@ʜԑӌթǸýIecgµƒƁð—i_¹{}‰W]i@͛¸GĊŖZ‡ǃƧ¾ėVũa‰ƓĭŰɡȳʂȢʵIJƮʧɃ’DžƚĶDŽĻ̄܁Θő˦ѩ˾Aœ̎ʉDžǿȧǬʹüȍ͞ƶϞȫźƎƐƈń֦ȳɴĎ׸ʻǦ¨ÒŎ"],encodeOffsets:[[-85649,11180]]},properties:{name:"Costa Rica",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ͭŋȋŸǰAğǘúŶɸ«Ÿˋ"],["@@ȽŘʈ…‰đ"],["@@ƋؖĆĶƝ"],["@@ӚKİďж¢ʈƅҜ³ҚЕӸ“ࢤӍŞQïĎðc̔ȑȅĨŇźĘȚɑ२ȁńĭŅɽۼÁ̴ɡ̄û\\Ľ߳ɡ‡ĚśīܱĆಳœԤҬŁȤݗIJ̽ʖȥҎՉMܻʌɉɂҥ¥űǎċƃӃĔȓƤ̰ĠŅƨݱbաϹѫ«ʼnȑЅƕBż͕ÕҼǾ…ʮˆʎڎʨஜǐ"]],encodeOffsets:[[[-84543,22090]],[[-79533,22479]],[[-79748,22659]],[[-83801,23719]]]},properties:{name:"Cuba",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ȳèƍȨ΂ˏ"],encodeOffsets:[[-70401,12350]]},properties:{name:"Curaçao",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɚ™ʡuˆÐ"],["@@çSƎ°å›"]],encodeOffsets:[[[-83322,19814]],[[-81739,20186]]]},properties:{name:"Cayman Is.",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ѹÃýƌϵÙǧìƖRÀǮ֔‰ߖʶԩ̳Àȑ"],encodeOffsets:[[34821,35907]]},properties:{name:"N. Cyprus",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ǩë϶ÚþƋѺĞÛ̍eׇͳҹƆōȌ_ňΊö"],encodeOffsets:[[33498,36016]]},properties:{name:"Cyprus",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@òFòrVņ࡜ͷɲšŚçǫųήˑ̎Ŕğdž҈ơʌ¬ÙDžȺŧźÂ҆ſɪ̱֟ɇÙlj˝ƩԻŸƵȯ΅ǔУ•ࠫȲ́ͯաFȟƒ›¤í¼řêęG‘nП̒ȡìʓ˚ĺŚ΍θŠ@m´™žÁzrȴǀϼĈƒhী͜£ŜȎ™^ˆ‰zGS·šoÆc˜F€rXb"],encodeOffsets:[[15165,52080]]},properties:{name:"Czech Rep.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɭ‘ćȼ̶ǩ"],["@@CďѣœŬ̸˒řªƩ"],["@@ʂŵŹǝܨſʀÂIǕǓęĚáМ§װȊϸʤϠ³ΚɧɶXŢʥͦĻƣĮɭCÉCc•ýÙáŻÿU¯ŀăɖŗĘį¥ć_Ñh–‰ÄyÔƗųȽŘǣyé^iƲ»~yx˷ñēŗIYWaq—EÅd™pT¸yH‡Š]ȍš¤śি͛ƑgϻćȳƿyqÂ±š‘n‰@SQ@…ǤōǾɑĹřʔ˙ȢëР̑’mĚHŚé£WgIŁY…ʣK]SYM¥Ɲñ¿ě{ϣǏnjǻ±ƗƀÉKÙaÑc}Cõ~ϊulCv`bs‚í~Џ¤YQN¿cw॥ȏ½JñÔo~DhŋHépƧK—T‰ő‡©ƻñdîœ|A~Itur¿‚ō ùpȋ©ߛɄŗ›—TsŽUĎN^MH[W[åWqa۳GBӄѦۈֹƮ׷R͡ʖŤ̄ʁİǸy¼NðȌ˦̇ʤ°żDžŀɮİÌʬȿ̒ܐƒÛĨʾʦʋìź˔„ƒՎĻǐǰǠ؊TČȉŘmôƊƌDZļИӲeӠʩЅʰ͡Ě[ʞɿþ˜Ĩɿξ࣎ß"],["@@ŦɦÓŽɀOˑė"]],encodeOffsets:[[[14539,55214]],[[14039,55688]],[[9974,56142]],[[8508,56102]]]},properties:{name:"Germany",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@˕п̩æٓčKצӰپ~z”v|OȌŏ–¸Ŭ’®dAĺ”ĤžȤ˻xɳثѿıX¾ÙϬüǠõ"],encodeOffsets:[[44284,11776]]},properties:{name:"Djibouti",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ÿké΀ƴęIɹ"],encodeOffsets:[[-62752,15615]]},properties:{name:"Dominica",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@͆ívŅʷ§ΟŨpƘʬ£"],["@@α§žŲɴĉ"],["@@ɉhsƎɾƵ"],["@@ĥĎˢʰǻͽ"],["@@͹äæǎ̰ŵ›Ļ"],["@@ŠЏ˽íϡĬŅ̐چĂ"],["@@ĩ‘¢ľÈë"],["@@̓ˋǖƯ˕ĉ‘̻ǁ•ǩΐ̯dʵѢ̀€ʰǢNJɑ ɪ̒Ŵ̠¯Sɻ"],["@@ƭTʨ¼ĹÏ"],["@@࣍à¯ўНƴ€ࡎѐģǼȪƮ¸Ŋû¶ʼɗHȃʓʭ»ƹǀˮɒۄÂѼ΀ծƀ˝भզƫơǛι{ŕ̇ɻkĶçεɣäȑǽȏɺÑPţ"]],encodeOffsets:[[[11635,56210]],[[12851,56285]],[[10303,56204]],[[10992,56065]],[[15450,56343]],[[10901,56945]],[[12970,56931]],[[12871,57124]],[[11318,58627]],[[9974,56142]]]},properties:{name:"Denmark",childNum:10,cp:[10.2768332,56.1773879]}},{geometry:{type:"Polygon",coordinates:["@@ċøˆǜǜk~ĤŊ״ÆٖɳȦ„Ǽ̹юw̻Åcõ߂dz̄ʗ̇ͫȻNJ˷‚зH׫ȏƑĴ͏ÁΉՙljŜŗɠHƐxÊsÐġÚÉĄ»ð\\XĶHļĴbÐM¬ÕŌƈǬ"],encodeOffsets:[[-73366,19657]]},properties:{name:"Dominican Rep.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ţŵ׳CɃšē†ăçij‡ėȵؙչj̥˾ҝȢįȄїװЃĮϛÂȻʜ१ǫĩж޿ĢୡƗϣŖי͡ʟ™ɡҬ؟ɊحŠėʒÆےȥϰڝ␣ᕧ൩୧ഝ˯ܹſȣĮŖʶĿτ௏Ѻ×ƪϏɚiʆ᣽ၮ᜿༸ἡኒ@̸@Ȳpیত֤¸„ʈǎʊcĎeĶ]ŒTÞæ”ƊЎVҲŀžĒĨĜDzʤDŽòɀÖǦÖƤĢѮLjǧǔG˄ÎƬÊTĄYƒd΢Ŋ|’´Ƙʂ೶^ĦʺªźÝ´ĝȱzćæ»þ‘ǒŇȶĭஶ˯Ȃ¹¸yØҞâ਺֮͆{̢ˤֆʀഺƂ͊ƸڲĤࠖ@ҌȻৈπφƓʾ¤…ľצȣ֔ærēͥ˃"],encodeOffsets:[[8405,37396]]},properties:{name:"Algeria",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@šm¤ȰŦîƠ³ȇȻ"],["@@ā”–à¬ij"],["@@Džn˒ǖŋȃ"],["@@ǩĄVĂɚĆÜƣšħ"],["@@ƹb‰Ɔƾ|†ǣ"],["@@ʙÂòĢǨƣ"],["@@ЈٷęǁȍáʍpÛŖ̀ʪȽɬ¹ɞƗtȢļøč"],["@@ç”üÈSě"],["@@˻_K‡Ò•Ð£ÈƇƒƳṬĉ]vw`YųӍѥԏӷί঳Ι͉ЫĕÚʫ܏ˁƧđ¥e³X¡I±_i…½—kġ‚åB¿|Ëô³ØĄ]Ō½»žÕYïQ¡~ı²čÀـ·]ăė÷Ÿ“D¯€SŠœ¸úńčF‡’Iža¦jº¬€ŒuŠ´ŠrŒf¥ˢåǂ̤ȘȞӢĥіéЗĕQpǠɹ̑խπƠˬţܚ̊ȘĊɚƢ‡ǗɄμѲ•ՈূΠ’Ⱦ֮ХДŋȢǛÒȯݶƃȊǠд̋аǑ"]],encodeOffsets:[[[-82054,-3044]],[[-92594,-1372]],[[-91564,-932]],[[-92502,-790]],[[-93620,-471]],[[-92747,-342]],[[-93462,26]],[[-80803,1283]],[[-77091,-109]]]},properties:{name:"Ecuador",childNum:9}},{geometry:{type:"Polygon",coordinates:["@@քนƕǥ˱੉ƯɃϭʄљѪֳ஀ǥ˿Ҏࣅղ֕DʓʦΟĢ҉ਠᆣӸҋȱc‰šnj۩҂ˉբՍ⮿AªŸï°ŝǙƗOᢱBᢳ@@᳾@ᴀɵࡦɐВĝրʢːȚšіĜଖȱʖƑࠎƋҴȁܞͬʖ€ƢǘѺĠ̡ųςžæŠψŧ̬êȺǙȳŢķDž˦ǗưĜÅþ͘ȋࣂ¾ҀNJ¢ĩ"],encodeOffsets:[[35068,31958]]},properties:{name:"Egypt",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɐĭΣ„wêļgŋÌbŨƺNj"],["@@„ąħ´ä’"],["@@ijňԉˎ׃Ę˫µ¿Ē½ ¥@y•ƷĕʵµÕHǭȆǿò·Ö¹–ÁťĥɁ¹œßƣqIZȿʠțƳdz˜ŏOŗ£eCʎkNJoǠkNJŞȖ̈޺sˠúƨEÈhż\\ŽªDĞgȮj– ¶ưŒˆȢŔЄł\\‚nj¶žv†¤ĚǀƴΦޛɞএФڟà̄˺ϥࠆͥКՙӲͩż̿ľRɰ̙Ƣ³~üêنĭģĹ“cB‘«·ūÁ—ȋŐ{P“u}yõĔÃüùĠƵĤûŦāƄͷˆΣО"]],encodeOffsets:[[[41105,16073]],[[41039,16469]],[[41922,14319]]]},properties:{name:"Eritrea",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ąƏƧĬɮ¤"],["@@‰˯ɯwĉǰłƆʂM"],["@@ŝĄÈðżýåõ"],["@@ëȓȩŧȻ˨ڂȤǯǏ"],["@@ŕħƅœɔĬȔЬŬ€ÑПɥë"],["@@ƓɞÒðǞĵěȗ"],["@@ť—ŠŨ̢Ȋ]ȗȧā"],["@@ǁA~ĆƄă"],["@@ȅ]ŀƪǺ’ºçƭĵ"],["@@ˈý͛ͫɭìċƂǛÃʼnĀڐͰ[Ư"],["@@ΩĮ[Ė̼}ÊDž"],["@@͒Ɨ¥ƿƈ¤׶ʩ৾ğÆžؚȽ[¡†ģîJƠ¾żÌĖÕমàŠХȱƩޟЕࢥȍˋȩƪčʛěޡँĺϧ΀ʭ؇ωʙҟĀśԙÏˁƣЃԡ቉·ʵDZйéǃʍɝğΑƌ˿ϘƖɶƭçϽϔҕċҤФϮůMȥɶ̄ԊҍԘΘjŤĮâȊŗŪȈƨı֔׺ѮˣŠÛɨѹɍŭؽkħ˚ѕǑġƐǒƚĿXðłçȔȃĘǢʵƮ´ǔްɞOŠɄĬтœϊƻ৸ú૖ȕޘĔҺŭƜêҎŃҘä"]],encodeOffsets:[[[-18317,28478]],[[-15770,28823]],[[-17597,28695]],[[-16726,29062]],[[-14537,28846]],[[-18262,29178]],[[-14045,29606]],[[1633,39601]],[[1480,39853]],[[3221,40746]],[[4397,40799]],[[-1837,44450]]]},properties:{name:"Spain",childNum:12,cp:[-2.9366964,40.3438963]}},{geometry:{type:"MultiPolygon",coordinates:[["@@צƝӿȁ̝[̿ʉLjȊʱĜgȢيľ"],["@@ȟĠȊUVĉ"],["@@͋ŗōƤ̕äӾŦɖą\\Ə"],["@@Ŝğ׻ӱÌӇɶ̍ȣÑţŏ¡ś͕æηßȟÐ՛ˎ͗öƋ®շŽă•‘JǦОΏó̅ĂɑʢƠňȽŐÀɴӶĄʠƲࣂ¤ÆIJ௺ǁࢌ„"]],encodeOffsets:[[[23161,60029]],[[23904,59956]],[[23474,60239]],[[28685,60912]]]},properties:{name:"Estonia",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ÖGʶ¶ƸĖz–¦@¾ŸÀđˬ¶ׄėԊˍĴŇΤН͸˅ĂƃüťƶģúğÄûöēӯٽLץٔĎ̪åɟͱƺͭ˸˓ʪст̵ᠴ࡙ࡀ@ᢋᣭߝͽăϩǯɥˏ۩ƻĝę­ūBɋ_ğcŵCǙĨɋǺޡΟ©ąŏƩƍķݗŦſJȏ\\ś~޳ԘȽƂݑ´ɑ˸MŤnžl¨±ǀΙj½ @žHˆʅ̬ɯڬիӆƉʄݻ͠ʂҌ֢NĴĐJޔȞؖ„ϾȒȆǘőƈIJƲߞҸڴϤŒͰాfDؤŐPǴ—ȜƴɀʟYrJÞƤ¼ŔĤɂÄŦº•¸ÕȀñǮȅ"],encodeOffsets:[[39354,14775]]},properties:{name:"Ethiopia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȬɯřʃĸĈì"],["@@ų¥ÙŠȎù"],["@@ǖ™ƋƛłŒ‰"],["@@ɫªͦZĹÃ"],["@@ҩı̞Áʩ̏ǶʣֆŅզͥޟٵࢌও͗ďĝ́ȀēȇƩЀǟ˓ЈȱSƭљʉৄѵ̒˕̅ͻహ޹ལࡓਖ਼ĽˆDzljǙΟ¦äŏɷ×ďÈ৯ʿࠛ‡ωƛƬǦʋǀƋŷʋyĺ̐९ǺƜ࠶̋ͰĥـюʦėƒٲĘǴ˴ࣈؘٖͤ߬¸ºԴ֡LjŸǂЇ­ϣϔʎҸ̇ˌþʚɻŒƺдڇΎܙźିѠόJ@ƢѸºۊҭގÑѾƂࣴdzڴͬ˘מϠȊԐQԶƄ୨ͥLjǕХʝĶŽ"]],encodeOffsets:[[[22708,61820]],[[21966,61983]],[[21727,64760]],[[25445,66551]],[[29662,70679]]]},properties:{name:"Finland",childNum:5}},{geometry:{type:"MultiPolygon",coordinates:[["@@ѻŭ͂ǀź‘"],["@@ăÒ¬ò˜ƃ"],["@@ʾɽÜέױƷՑƾµǶȬ˘˂Ŷϲb"],["@@đAĒƮ@ƫ"],["@@s@²@ê@ŞĈĩȥ"],["@@ϋĊĞyÑ"],["@@λϿHġ̦ȔCȍё½ǻĀǏƿʧÛǫǂðƔȆSغ͎ϔĆ@_"]],encodeOffsets:[[[182772,-19429]],[[183654,-18536]],[[182559,-17788]],[[184320,-17370]],[[-184294,-17331]],[[-184247,-16898]],[[184320,-16556]]]},properties:{name:"Fiji",childNum:7}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŤQÑŷǓĜł®"],["@@ݲĒĴÉչҕ˙cęŹ˩¡ɳŌ؈ʈ˿º˲Ö˕ʀʂĕ"],["@@ƍĬǤw•ó"],["@@Τ¯éƅȦùZƂʄ„ƘőŷÅƚ«ݡʥ~ƍҗæņŽɯm¯ĥɅƤàǬјȬ‹njȸȆ"]],encodeOffsets:[[[-62483,-53028]],[[-61733,-52697]],[[-61554,-52629]],[[-60262,-52500]]]},properties:{name:"Falkland Is.",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ιÆʼnǺàż̎EƬș•Ǜ"],["@@ġænȲŌċ—ȋ"],["@@֥݇ɋչˏˉܩŦ̥ȟʫò率¢•jqZXRŠN„B¦ÖìœŪɄ¼ĖtƨƒŨ`”ŀƤ®ĄsƲˇΦŇڂҼ޶ࡪ˿ԞН…ƝĖüƌũ²̫ƦʄƦӗ"],["@@ȥw¬ŔǝȸʊýĎɕ"],["@@ãJ¼Ĥhĭ"],["@@ƛ°Xʘǐë‹ɛ"],["@@ǍC¨ɺʤȿŽu"],["@@Ð֧̩س͇ǠäĦɟȘâƐœɚȾɀмʦʮİDZ"],["@@‡ñƥȞǮū"],["@@†ƒÞ_zY~mªQÀRž~¾\\Ǝ͢ʕ׸QֺƭѥۇAӃɭƅǧ´Ɨ‰É¹Č¯@akiw‡ŋēŏėk•mƗ±cƣʹǩWijkƗŁÅBÁˆQäJĨžˆŞò¾ĜŠŲNưk\\ȿŀĩ´…¦·dƒȗƹ̘̟ÉšϋƟ̜ȫýЯΚǓˌvŧͭޡӋϡŁ׫ž̅Ǽ̇ÑکDŽյ̵ǧɷƆПভßĕÖˀŻžHĎš€ÇP՟ؙȾÅŽ৽Ġ׵ʪƇ£¦ǀ͑ƘʺƀȪ࠸ƚŊÛØýćƒܮ҂ҁȯϾͽȸƐvĩӐ՟Ǣɭʜ’ȒƫŀƚĤʈµțĂѹBÜƆ˽˜cĤ౱ǔ̯Ǽ̌ŌȹĴˮ\\Бº—ôȚƚદȆҐʯȸĤϊÅĈĪѼ™ǃŸcͮɭКԈGĶʕࠌûӤŸʋº¶ǎࢸʞ̆ɈäՐܒDzȠ̅̈|ƔȻ˔¯ĀƝТ¹sɳͬUɰNJ¤̩՞ɷʂx"]],encodeOffsets:[[[57137,-21851]],[[46265,-13288]],[[-52892,4159]],[[-62286,14843]],[[-62700,16272]],[[-63067,16392]],[[-62799,16620]],[[9708,43833]],[[-1206,47006]],[[5929,50728]]]},properties:{name:"France",childNum:10,cp:[2.8719426,46.8222422]}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÐýəzNJÄ"],["@@qœƹvĬƗϓˬҔµ"],["@@ś«SŴŰć"]],encodeOffsets:[[[-7359,63631]],[[-6790,63722]],[[-6559,63753]]]},properties:{name:"Faeroe Is.",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ōY£ŦƈLjŗ"],["@@ÛåĴƤ—ý"]],encodeOffsets:[[[162115,6978]],[[141459,9729]]]},properties:{name:"Micronesia",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ķ̻šґՔƜˤ¡ȾϿęɷ̽ɩ÷ҵԪ̵÷ેȅ˝ŒŗǥŗętŹ˞ɥɍЉèǕ͌ǟĘƃđ^ͳ͏éϫÐÉгȈū›ǍȀš¯̅NjaƳƌɧƝĕȍڃݺԿҞ˸éοƸ˙϶ƸPǽÐȓѠʂ˕ƶÞǥ’¨džţµśì̥רȴć̌˴¸׎ĨƷˠīǤŴϣĐȅɌƞĦĺówϤž^’zzJ²Iz£`wĒமEѼG՜hŎǰFඊÖā"],encodeOffsets:[[13613,2214]]},properties:{name:"Gabon",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƻďʽàɀĜȺë"],["@@Ů_˗ƟǍɄɆ€IJă"],["@@γ{̛̈ˉɯʁVїɪ̪ƲſĔ̢Î˨˘زŰτăˌ˝ƉƩʞnĦƍǛ¤Äɵ΋ȅǗŒ"],["@@ȏ‚\\ȔǴɕ"],["@@ÖȡȿófƔǣÙ|Ģˬĺ"],["@@ďà̆Ȏȵʭ"],["@@҇§ƤǔŭĸƸ†˼Žaū"],["@@ƉɠŦSdɋ"],["@@TLJϴ½ɵǧïƀʍBρȪϤȘƊƕ"],["@@pű˩Ìʺæ"],["@@̗ɩňÓҵɫčÄȐĠȓɒ̠N§ĦҐǜś"],["@@đǍٷ̣ěƮƒɷȭؚŌૢKʘȓڽދ׽ǕΦ†ǰŧֿȍΩÊجťϘÚϞĽЮ˧Τܯ८ӯķă˒΍͕ņ͝Y̮ӄ̙îƧʻɇȠąɼƄиOԐǥøʅŽ̝̋ů™ƗνÕŜƃϻęࠬđaƱοɋ։ų࣭UՋŎèÛƵÕћmIĹߵĨͽëɳͣѝź҃đ͟ɃчX஺ड़ࢪ`נҊܡ̍ԇǜ˿mŦúʛæџĩɡĪ]ǬߺˠȦɜķ̾ӧğΒ˴ۺǒˤã‚Ɩˆį˅ǠȀԺˍMͻ˶ĘʲάưћI΁ƕܡÆÿſķÒŝȌиѠǏ̺ʌÆɓĦšĜΫɭŦʾ˛ǝũԙƥ¯ȐϾėɆΠנϷȏЗƦ͸Ŭŋ¦ʦˤțŪǴƘƍĺŘǴϜ@ɍǂÚƚˤpQʰӬ­তŘǦ]³ĵ"],["@@ɜĻҍÄlƆɆč"],["@@ɌýȹӇRɴ̻ňʐ¦ǓƌǪĬ²Ó"]],encodeOffsets:[[[-1091,51907]],[[-4297,54602]],[[-6367,55387]],[[-5227,56780]],[[-6275,57273]],[[-6113,57155]],[[-5916,57697]],[[-7423,58487]],[[-6292,58886]],[[-7378,59068]],[[-6347,59765]],[[-3184,59920]],[[-3130,60447]],[[-1339,61991]]]},properties:{name:"United Kingdom",childNum:14,cp:[-2.5830348,54.4598409]}},{geometry:{type:"Polygon",coordinates:["@@˂Ə®³S“‰ïûÑēẂĜڱɠÁuǹŏsYƑe؝Ýէuȑ˜«ŽWz~nmhûžųĪít…Òƒ^ÓNÙMaOoWčijғ²ďÁ™Rß~ĿvÇhLjǂ¾ɞɱׄշͺ̽êПɰžÆ¼Ìӂgʚīޙɲ“ĒµĶ³র¥ȚßR•ö»Ѐŧĉƈ½`eEs›U“lmÆmŎI zĊlȐòƨœɠōâŊjTÔuň‰öeƶũȂLŤ‹loýȫH}ӘǷǾĉȷǃĸǍ"],encodeOffsets:[[47417,42504]]},properties:{name:"Georgia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@àāă̇ϼ͍ĭիà“ğşʘËҡĭû˂ͻƽڷŔljĝхǰͯϚ̧ȥɻׅ«ቕ࠵थ˜ʢļɼƘǣĤȓࢎɤפƜВĸø°rZŠeŽPxÖp‚ŒÿӼ£ƀ“̳j”ʲTŊU¬¹ľ]ôU־Ļƈî΀ຌXΒéˠȪȘ§"],encodeOffsets:[[-70,11383]]},properties:{name:"Ghana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ħǥǔƷ̺džȊʳκ˂ѪƵͬȎ‹Ǭ̐¿ȎЕGȽ΢ʳɣ̛ˢeÐщɔƏbƅƏǃdБȮãmȏ⋐‹n…ĽÁ‰‹YNjȚťpɣŅüʼnVʃmO¡WŻ…܍þWŽùĭǯVě÷ƛuƒǕœ³™ơŊȗΧȑ̃ǘĀʎůդɛLjʁěéøï§GÛV…]đij½ŇLs\\ˆÆƪʌī̸ģng\\Ex¾ŜJzÙĄʏͶőŜq¬Ëf՗GșįʉnʼnNjǕ˥ǝġijNjǷiť̸ɉĬBͤʼn“ȍɈ͍ĜƵʪbǼëßĉȰģŒóƑۀPʚª°äƒˬºÜŒvàFŸœŀÖÀ~ŤOƚZȄÒDȊM¦ßœŏľ¾Ìń`òǺ¹ĬHæլ“lťŊ˜҂ljࡔÄ"],encodeOffsets:[[-11662,12703]]},properties:{name:"Guinea",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@½ɸžŒɌǣࠤǖשiǻĕǭȴࢬAèŠˎîמʷή’ŴŕΛƟݻːŕƇѷÑiƗۃEĩ÷"],encodeOffsets:[[-17165,13378]]},properties:{name:"Gambia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ËovŒ–ġ"],["@@Ĺ°Ɯê¡ř"],["@@ķX¸ĸÀŏ"],["@@©ĻĩİƔL"],["@@Ń_½ËǰƙN¥CȉȃÑʽI¿}ĿÕŷ›ßE‹u·ÛƓ˫­á›«§Ò’ŌƗģLŀƩ¾ŽƮĽ^΀ǀƁöƵÓõĠ†Ĵ͜łܧƵlŶǽiǃŒêƼljɱŴ°TŖaĖhƦÚĈ^ʰgɞ¬͈DŽ܆GʆA˰AGåºīñǹ"]],encodeOffsets:[[[-16277,11349]],[[-16501,11325]],[[-16283,11741]],[[-16370,12168]],[[-14090,12557]]]},properties:{name:"Guinea-Bissau",childNum:5}},{geometry:{type:"MultiPolygon",coordinates:[["@@Fѻ஭đŽ_xy¤±JyI‘y›]Pnõ¼ĽrΞڎwŠlȤtMT¯†{Ġڼ@ʲ@Ȝ@H՛"],["@@Ƥ@Šŋȯ͹ȓ”UƼɬʶ"]],encodeOffsets:[[[11605,1566]],[[8946,3849]]]},properties:{name:"Eq. Guinea",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@˄ºµċȶŕୂW¾ȍѺNJŻʝଫíûžȵÒܷĆmɸĒiÄŢĬĵ"],["@@ėŐŸȈŸ̗"],["@@ť€’ƎĔǍ"],["@@ŅzBǶѠɚŧ̳ȳŕ"],["@@ĥ…ŽĬØå"],["@@DžČúú«"],["@@ɠƠŘ}ͷš"],["@@īA˒Ĩǥĥ"],["@@ċ]ŤŎŅ"],["@@ơ…ňĪšã"],["@@õāŢƎłjȕ"],["@@ĉN¸à’í"],["@@÷ÐŴe»©"],["@@´Ęɞˑŧ"],["@@ċ¯ƇŎɔÝ"],["@@É£úžoę"],["@@ȘďǭÃɛâȲò"],["@@Ęąƥ™ǗdžÔØǒĽ"],["@@{ÇəɦɎ³ˆũ"],["@@ŰʿȥŠÓńĉ­Ǯʜ¦û"],["@@ǝtČĠũȄ˄ƒÇ˓"],["@@ŏuŞɘMȡ"],["@@ői¯LjǂƝ"],["@@ĠũԒƏŰέˀą©ť˗ŚƟɮ͝¬̞͍ͯÎ͚ƊƂÕ"],["@@ƺɿęviď̡ĜƒİǙđȓĖ˒Ƥȶ™"],["@@NjzȧʲɾNãėȚȡ"],["@@åƥěðƿ•GŮ͊a"],["@@ɑ‚ĞŪŴƫ"],["@@޷ɤʽŗˇøͧȉˍpĔˡ̄ùŌƯίǰƻ{ȪǷiűʁɒȧ’ǜ˷ؗЎtLjʗă‹ϫآܣơ×Nƀȫ¤‡ŕƲŏлƛֺǥβʹʄݶœIϳѥ̜ϷſϠρ˟ęνǬμँϋ̆ʏˋ̇ҬĿÁɅʹ̀ĆʴүъɼʰɊkƔŸ࡬̡˲Ɣٗʲďç̕²бùšƒwħDžV˿Ь˾lNŒͽL΋ʔġȀûĄćÌlBŒWҋÚOƨŰA’ÏĞ@zxXœvr‚¢bǞªȊ̎ŲżÙŸRÚԤfªxŸ°ǶƲdžxʺ‘ĢlĸŽ¸ź̺SìÂŐH¼TĒYČB͂ÖlRp¶ˤEЀ~EɌǑȂRŞ£IJÓ֠ÌŦÌ†h¦Uò·ƶllĀdĶwɖī˜ǗʙƍBʅʗȑ"]],encodeOffsets:[[[24425,36389]],[[27829,36317]],[[23608,37059]],[[28512,36792]],[[26095,37267]],[[27096,37464]],[[27597,37609]],[[26480,37674]],[[27669,37847]],[[25886,37959]],[[26159,37855]],[[25113,38017]],[[26013,38318]],[[26655,38431]],[[25863,38503]],[[24941,38479]],[[27469,38719]],[[21390,38713]],[[25592,38666]],[[21108,39305]],[[26721,39136]],[[21184,39536]],[[25267,39741]],[[23978,39894]],[[27045,40274]],[[20560,40380]],[[26049,40943]],[[25369,41590]],[[26664,41705]]]},properties:{name:"Greece",childNum:29}},{geometry:{type:"Polygon",coordinates:["@@@ƢЎĝǯ"],encodeOffsets:[[-63196,12301]]},properties:{name:"Grenada",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĩķ΁ĈӪƼ½Ƌ"],["@@ǧàLjĦ`Dž"],["@@ǁwŗǨȴNJΒÛ˫ʝ"],["@@ּřŪǝත̉ԕŮѲ¾ƓÚँƢŎȤϸOяLjϬƸࣚģӆɕ"],["@@ύ`ZĈδħ"],["@@~ɥۇǗ͗ČறÇΘΪ࠸ڬƘ͘Ĺ"],["@@Οò̼Ɯ¤ɍ"],["@@ҥȑխž৔Ô"],["@@Ԟ̷੹‡ƻˊܘö"],["@@х͚Ǡɰʦ։"],["@@ۓĘࢴ‹ȟË"],["@@ࢣėЏŎॾǠјušǟ"],["@@བྷɞѩʸܼˆచǯ¬ͭ"],["@@ↂʭ㇓Ƨ‘ď㞆ƨպʁ᝚ȱಇʹ㏱ƍʵę̀ī෢Ġᗆ¡ܘʧৄʾ๠´ĜϽབྷەᰦܦᆦȯ૮͈཈Œຶōࡈȍෑ̳૛ā§ȕቍǃۖūҩƧ೧áଝî؃ȷ঄۩ᅡѧԅߙܰǠ଺ljpŹ׍ľѧÑϘȿ޴ūܜŒÉЙဏŤॅțӏĚΣ÷ؚŋ͞ʩ୒«ԂϱcӝߩŒএʓӫĆҎŽ׬Ģľρώ˶ζ@זέçəݙAͫũ઩ĜX˒͇ɛƾʽ๤ţš̗໳ȉݕňޥ̮ѧƋۿɀؖ˹੩ɏ৩ƶؔƿࡩġǶÏኔˠަ\\ᄄЭɍڣ๳͈ҽҐၷ˓༂ƾƎˍϽȡϜøᗨ׉ѩ̣ÀœIJƸҠžȖߝܣÁ«ͮɇΡ՗\\եǘӹӖ૕̊ঢ়°gÿਫ਼«Čʟࠍțද–΀ćßǑࡃɇᏚfœęࠟțƪŏ̚Ǯ఼Ŷ༦ǵ୐[Cûعŏ_ĝۇ±łůҳEBūݥƭĆāԗɳڇǵᙡͅԳ\\ϗijͷ¸Ġő̱³ଉ͂Ǝϑ࠯̩࢕ࠅࠫͻ֭džȦʧؽʹŭƪśǻͭæ̅Ƿқo֨֞݅æͼĽ̛͙͉ĘˈʡခŽԄǹ̟ǕˇýۥªIJțʼ ЊλԋɏڣÜҦƫΎVÊͿȋLJɯg˷ϝϥPˣŜҒȣɱȡࢃaڐŵƙΓDzʝЍŝȨċ̵܍˝ȱ݅Ò׬ǡúˣǓŏՓĈʠƕȽ—ǭ`¨Ā̅Eǂ̐͛ɍ١ƼXƜͤîȀǨԽȁ֓ƞăƊɬψࡇ͵ળ¡ΊȔԭN•ƶгṷ́ˀûʦҪDŽڛåÐȠٟȬjȾъ˔ԅȇ࣡ېß̪ઌǪȏK¦Ė७ǭĻĐʮɒތȖМȷĥɎͩÀϋκȪ͹нƙ‡Ŋ֕ґ˱޾ɹƤޘ͔ѸÀՋ«۟ɗǭňοHþ͐ʉÒᆖ۪ົ֯х¿Ķє͊Ƭն°ࢳ˜υǰðʄॎ˦ႬȅҵƔǞĨڝÍӣĊଢ଼ʋӪք଺ų˖¸ȸʮࠧǕহǛ˂κĈࠚƣ֬ŰŚŒχ݃͜ڌ–ٻڈڰ࿳œ٥Ȳ࠭Ĵѡɺ̬ĶନÍྰ͕Ǭ¬օƞÈɞѣƂيQ̛İോ¾ĬɸऺǶඛýʜȔэҲɳ™ϘϿҕlj´Ǘ؍ùݽƼɺҶЎȶحƩ¯ĸ˺®ʳČ֪IJǀʨ˭Ťǹç͉Ú͊ˌۅȚɠǜ̶͗ࡋGѲĀUǮϲĈኻۜˈźɡƶᖟЀᄓǎҩœϵČࢿƽыĞӷċѷØˊȣఉø૭˨଴ɄಷîiɈޙƗѹǨɺŬཔj۾Ƹุĉʩʹ࠹Ɓ޷àؕœহȜΞŢঁyಝ͌̄ʎےŢᖂȞԮƲᒪŖࢄ۞ԨĊᖏmǧʶᒈԬژ¶׌Ɨŀˢ௾íӾ؆ಾ|ᖖѫᕭզ◴݆̂ƿĬѕ֚҄ᅈΩ଒p୧ϸݲö⪴׉ЮӴૉ͈ᶰÇюÎ♣ĠǤي፾ȸ෬ƍߌȚᇚ˫ӽ̺ࡶń㹪Ê"]],encodeOffsets:[[[-47377,62241]],[[-37920,67105]],[[-52237,71222]],[[-53996,71624]],[[-52915,72556]],[[-26042,72624]],[[-54820,72746]],[[-56337,74539]],[[-18432,77218]],[[-19028,77868]],[[-73387,79182]],[[-18035,81742]],[[-45941,84054]],[[-30671,85571]]]},properties:{name:"Greenland",childNum:14}},{geometry:{type:"Polygon",coordinates:["@@˶DʔŁRƾ̮ȅ—…ÿáˍɉɷǩƳãáǧºǑQ¿īÝÛĩǯsvůс˳ŸƕїNJ٩¼ܛҲÜΘ^Žœtr ĥȺĖƦŀǪȄ̮ʬBϢ@ɶ@ƴ@ÚDYøTĊ‚ø@’­¤ĕz·–@°sȧÞɟƆη͚ǶAǠCHӂໞAÑྩ"],encodeOffsets:[[-91374,16270]]},properties:{name:"Guatemala",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ýƚȐƾƛǗʻ"],encodeOffsets:[[148216,13578]]},properties:{name:"Guam",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĽdzĠŝķƧ͋{ǥƛÒŷǩӇ΂ש̀aĘѱвۇȆāУsËh¯ÎuRǗ§ā¯óœ›¡£mǛG߁ğg©Ņʱʑµ_¡ġ—KŻơG›ƒµ…M΅Ʀʯ˖ŋ CĄÓ‚_vB̼œöĕ˞Šݮʬ̄Mx¿ÀıǢłϗƲƄҤŵƀċhÿ·ĽWlj„÷gՓפ]‚ôĢàäƜ€’oƞB¾}ÈmÚ¶ĚάÖ̮Ƞ~øG–g`ĵbµm»X¥²í˘ǤɸИȬ–Ğt~Į´d¶ƻȲۈЋׄ֩~̟ljխɒϮδÅϊϡˀŹ„Չ"],encodeOffsets:[[-58567,5682]]},properties:{name:"Guyana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ȯŸǵǪӰŗʼnq"],encodeOffsets:[[75477,-54412]]},properties:{name:"Heard I. and McDonald Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ݷȱĝxǷŲĽµ×ƛűɩѳϟgMƒOǓĸ³îʓɽ]țhĽWsaW¡PÁ„ȓhÿeyÁIå[›—ùǹ¥_ɹYŵ̾˙ž‚ĺÈʖazϤ÷Jĉ_ƇĞʡŗ…F]¨MºO^ԝ͢ȯœLjLjRÀ¹ǒâǨƴäɸǪˎɊĀ☆ĆyɎƮ౤ąΞƞ¥ÐфĽєøΐƿʤjиΕǩĪřw`ûƘMƖƣɚDůŬɶŇâƉĉ̥ɍ`Ĺĉč"],encodeOffsets:[[-85642,15234]]},properties:{name:"Honduras",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŘËͳøɜk"],["@@Ҍá˱mǙĐ"],["@@٦˱æŃ׋̪ٹǾԺı"],["@@ʛ`•ĎϊÓė™"],["@@Æ×ƕĤЋ"],["@@ƧȬhɞƀщ"],["@@̟ĒĶŪȪȻ"],["@@ÇąȌˏ¹īͪƿ˱Ù±ɣƝ\\ƣǎ܋@ݧǘ͙»ȥǧɝƲȫU©΍̮ȵǔͫࠊ֭̈́σÅËֵϢёŶ΃oڥոÁì̊`Ы˦ŁВʯǼȥ’ϝп˿ը̤­Ю®¶pŢŶpK¶áŦÿƊlƀ£ŌSĈvYˆ‡OŽÐäÝÖ̀ňpĺQÄͼI€b‚кǮǸŸĚUöq®]ƮËļÝτ˽иǥҨ‹ƨ˜€bĎĂȬr"]],encodeOffsets:[[[18031,43796]],[[17051,44029]],[[18092,43927]],[[17189,44310]],[[15741,45030]],[[14836,45732]],[[15166,46057]],[[19360,47035]]]},properties:{name:"Croatia",childNum:8}},{geometry:{type:"MultiPolygon",coordinates:[["@@cÏɋêǗƎЈƧ"],["@@ƇǫÖŋN«aÏĻijĵG[W¼ïÊăĢÙtÏșíâýÊĩ˜ۇÝёČ̥½řůӽ΄úƦƆŽூȑΎŞ|ĎϵͬĜ̴؟ʀȂƊӦdΖſ͖¡²ll}žǛ‡ǛČ÷"]],encodeOffsets:[[[-74551,19229]],[[-73366,19657]]]},properties:{name:"Haiti",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ĺDˢɯƾqĜƍ݃χ݅ਇ̣‰ūħė„ȑƒqd£`ȑh÷_ȗpljėًſčāaƧ—ҧŒзǦσ˾ĽÞƫÌ­^ț̜DžL̢ŦUͦȞŖɉŜժ„äʤԬȣ߲dÊǴ۬Ȉ˚Û͐ŰƀȚ߲tˆǵ̪Ê"],encodeOffsets:[[22663,49568]]},properties:{name:"Hungary",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĹVhŘѴʌ ƧЁɑ"],["@@ƭ†ʚĠīť"],["@@ùŽŐľ•Ƌ"],["@@ٮө¢ãœƙɑóʙĂҙΨџÊŃǀ˲ŶլÈÐÕ"],["@@՟՗֯ǕţÞĤLjŃĤĶ̒˞ɰȸñƌȨВȺ^ġDzV£ŭŝoĜʣ"],["@@Ұ䞤č"],["@@õ•ĺŜŤwƧÍ"],["@@áJ¾ʴĢ÷ýȅ"],["@@ʗ“NJƈĴƒeï"],["@@ŃǧÔÅ̅u͏ŀȂ˜_ʶ˺Ȝˊōßɷ"],["@@ŝǝǿêʾȶ Ł"],["@@̹ʙ˕ŠȸǪí–͔úŲé"],["@@˧âȞŖĊǷ"],["@@ÅƺƤˆĝȁ"],["@@Ќæŭفõ¦ȜŪ–"],["@@ʞÑăíǟÆFú"],["@@्ʋȣìïďʗeСŐ՟±ďƈÈɺآƮۮ˱Ѭĺ̚ơѸ˘ÎèƉŠƄäøȇȉʃ"],["@@ñȶɒƀ˃ǁ"],["@@̴ŒĐőǴİǠ̷͑Éòć̓mċƴǃƓेɑɭþ Њˢƒ͸·ȪʇƎaɠŖΛɀ¹NJ̦xŀǏ"],["@@ɎɃҹω÷ɶωǎũDzЄiǺĸʚõ"],["@@ĿïĕȦǢatœ"],["@@ˡʃγÄȯĉƪ˒Ȩ—ͬŔLjă"],["@@£ĢĖc±ý"],["@@ȩŋիfδېǶńЌ¤Ȁʱϟӟ"],["@@DZDrˀъӔþëûÏg̟ʣ̻"],["@@șîƠZºć"],["@@ş¤ĈƘĩ"],["@@őFOĈŢč"],["@@׽ijͳŶŢƢǚhނNĊñȕŧ"],["@@Ɓfjüʲßƙ"],["@@ŋtŜúOĭ"],["@@ǵ΁ț`b̦ôXãɦΠɁ"],["@@ʘǩ֐Ï̈щ฼Ɓ΄ѰŚWǬɁ̠ҠȵϞƒĠʛŪé@ȻȀėРÇӖú˶ƅmԥǒ̫ૣОӗĹঙĔݹƀ૙ώғŒʏʼn҅ÖՏɄۡĔĈ˓ŀ߉þĬƞĨįƞˀŎZè˸ǦǞـƷȆǎ˞ē"],["@@“ƓSׄ¨ѯ"],["@@ŏPĔÞ|í"],["@@Ł½§ʲƪȳ"],["@@ӵɯʉɬŮ®”ƪřŀŖIȖʈƨɻ"],["@@åïʘ֜eɏNj˛"],["@@ɍƀɖ™Gĥ"],["@@™ă‘ĆìA"],["@@ȟƴĘƺņñBɻ"],["@@åıɿÊĨɀwʬ˪۸˅ūǡ€ŋ"],["@@`ɫşØé͝ǸǍǿÕſɟƕP·ƦưɺòӼȆȚĘƏ"],["@@¨­ʧǂɀœ"],["@@ƕĩęǔȲ‚~ī"],["@@Ɲ«ºļĤÏ"],["@@ʡą«ÒͺƸ«ƃ"],["@@‰Ɵ½ĈĈØ"],["@@ȳŝJҦǦǦ„ԭ"],["@@̮ʭFȯҙDžЅȀƃƸ‚ˆٮf"],["@@ťÔƘAqÑ"],["@@ՀĽdžšʒσ¯ʋ߯Ҁ˧C›ĿԕȀ̅ǵ͑ʔȗ˵qɲ˒̚ږŒƸĕʺŮɪã"],["@@’ũɕ˼KǜɌǹ{Ƴ"],["@@ŷȕǓŠȱĻ§ʐĒ̖ƞŠ͆ƕÚŏéƗ"],["@@ǁáwʜǺǹ"],["@@ȣð‡Țɬˉ"],["@@lj̀ºĐŐЏ"],["@@ʶƒܑįûĆ՘®"],["@@ÆɽƛÛѕƲԬƨ"],["@@ȀMłƑݫŅóŬôǘҪ"],["@@சǧ֑āهʪ"],["@@ī•ƒĀŰ©"],["@@ːڛϠğǧˑ²Ʃ֙ȺdzզշŜ˜Ͼł¢ĬǡhǔDŽzŖƏ"],["@@ĩpžƮÌǝ"],["@@ӹÉƕŜɄɎь˟"],["@@tǽǔŸĦč‡ġȥVďƭmʾɕʃážĆɀʰV"],["@@ȹąZʖɤ­ƒš"],["@@ēD…Ŕƚ¯ç"],["@@˯ƘȍΌØȒɎbˬ֣ēų"],["@@ǿ¼ğʞ̠–ͯ"],["@@є×М̱ǯĵȽŠƙ̘č¹əȘ"],["@@ťh¬ŢúƉ"],["@@Ɖ–ŴÎVģ"],["@@băȏoǮĴ"],["@@@NjDᲗħͥĨƓBᇳࠉޢĪɮƳƫҥóŗǨ̝ɋǖմ˹˰ΰ¼˥°ȵǚɜàΧўţͨàĘƥŠŞŎɃ…uȴٿѨ։ń՛ʎڅäѡ̺xľưbԵOijŲơkʝ˴ƎΦş¡ɷœŸįХŷƍ˫JƇ̔ĬŸıɎٽьɔĞдğϺ̐ђƽ®ƤŶºħĈŊLj߫Ɲս~ʅɄýβ՗ƖʡǐɒÈʺҠŸӸ̈ϴ½ԬʷфeŚđ‘Żǀ̣Ź̝öӳɞѯpɀŨžØͫŢršʧ̪ƅȢp̺̌Ҁ؈ִƘČâ¡ƺֶ̞သܫ۪ćŀƉȎE"],["@@ĮōȑljėǐǼň"],["@@ĬűÝšɴǗij×řİƉ‘LƎƗŤrƒŌÑĤô"],["@@ʼnqNȮƐK“ǯ"],["@@ɳSôŌǀķ"],["@@϶ũÀş˫Ï͏ɲɶɏůċ½ŮśÏˁƂłŘϚÌ"],["@@űAİʲĕȎȆɍíɯ"],["@@ȐęҷĀĄǨȤǍ"],["@@ũP¢ŴĈƃ"],["@@ҋĢ`Țиȕtĥ"],["@@ĝpľší"],["@@ϷƶpĘɲùƖǓ"],["@@Ĭ]×ƧőèþĞ"],["@@ÞƕñǽŗȀƿ‡ĢƔȊˆ"],["@@ŭðo˒ƾƍ_ȳ"],["@@ϚЭģ·ŗ‚ãȦǕĨ˛ДɶĪł×"],["@@PŇЍɸϾů"],["@@ϱѳ֣ƑЧlɥƖဝ©ιð͗ɓƭϵ¦̟ƬˁɶƝŴˣК~ΪіͦĕʼƨԠD¹Ć˼ôǪß°Ň³ȏЋĔշջ͡řǩǝʝb޾ࡻĜʗūΛπϵƄhr˝ŷªԗǙÝʕϗÖďƮŌШ؍Ӓƌ̔CΔơĘȍkͣʁƨُaއšѹŶϏГ\\ȟĭƇêǓʠȠڔ|ШſѬЇqŃŞë֪ʸȨȖҬYѬǘфǠȎŐƱĹٰŦň³ǖĖǦ̚Ѷ˨įɠͰǶÚ˔ëǀƧ܄¥ͶơȔĆܪûԒ͌ΎψƐ\\ļƷ́э"],["@@Vʏǿ³ùʐʤ´"],["@@Ű_ðǮnjĬ¾ȲϺƠ^ϻ͹ȕţ̎Ʒʐ˫ޕɌăƣúҟϔէ͇ǀ̕϶bѼƝ˖ÐȦƯʖǠנ;̘ṷ̋ľŋ@̵̝ˉäƓ"],["@@ȏŢƸa˜Ŀ"],["@@ƃcÝɚ͒ʦòĻÅȿƛƟ"],["@@սʞùƜƮÂѬ̽žŽ"],["@@čiČĨBý"],["@@ËǘŨïÛħ"],["@@CËéĮî¡"],["@@ġŶŐqmŃ"],["@@ūt•ɬǂʟ"],["@@ōƽ¥óƒȢb"],["@@ǹ^ŦĘȭƢȸȠŨșÝʝ"],["@@ğāʾ͗؃ÇʒǑLțɒʼn•œň•·½άяɷʓ৐࢛ϙƗ˵¼ʅȌ¬ǭȁƅȇг·ҹĊϓկϝƣƮ\\ʃБϧŰ@xśřǻɂƅ‰ǯDZ•\\̋ƏƒúLJʧϿਖ਼ӗƗژãėďŒ@Ǯ죯èͅƩāɔɡ§ʹ˂¿ɇdzœƃá˅äΩș‡жŅƘٝƳčÚÎòǑĥŇŊˉÙƇ߸ŗŜpӴǏɜѹǢĨƚɁȺŖΠʿ˚yҴ–ȆƢĴķ[ÆɌʬΪɂĘùōĬɿܐمԄǂתɨŎĜʞʒĶϼPÂŏԮǕɾǖԠdˌѺ™ɪͤɮĉĤŒɖňŌǪRȌ঄ƴžռnӰƒЊƕ"],["@@ĥŒĠǀûðˆǢƐɏĕɍ"],["@@ࢰoלړ¸ˑ஦އږ࠳̪ȭ¹ʜǾ^βӃҘɁ̶ԋբɛqƍϧǗڐʢ˪ȍĪȭ̝ȩoƛĖēÏġʂʻ՞ŷžٿˢɯǍуːȌΨSծ؍Ǜяòǿĉˣ²܅śڷͱɦɣǑωȎœ̻éW٧ۚઙެ·Ҭңδ׃ޚ…˄ҟज՛ܺѕʴӁౚݧдġЦǗňΟԌѱȮܭ܄̹ԺlʀͶšш˃̠Å"]],encodeOffsets:[[[125900,-11171]],[[124809,-10844]],[[126379,-10549]],[[122893,-9599]],[[128070,-9740]],[[118385,-8980]],[[125929,-8750]],[[122332,-8950]],[[126278,-8555]],[[119441,-8820]],[[127270,-8529]],[[126900,-8471]],[[142229,-8589]],[[120378,-8568]],[[127566,-8336]],[[130892,-8293]],[[125730,-8818]],[[134003,-8518]],[[121081,-8517]],[[118219,-8350]],[[132955,-8145]],[[129845,-7851]],[[130478,-7806]],[[141861,-8472]],[[134478,-8191]],[[135150,-7374]],[[131759,-7355]],[[123674,-7289]],[[116577,-7275]],[[118147,-7138]],[[107779,-6799]],[[137766,-6596]],[[109951,-6151]],[[123421,-6449]],[[115425,-5950]],[[135995,-5991]],[[137981,-5843]],[[136117,-6043]],[[104825,-5610]],[[126594,-5398]],[[124972,-5568]],[[125589,-5395]],[[126137,-4660]],[[136777,-4347]],[[126201,-4211]],[[131649,-3671]],[[131355,-3762]],[[119219,-3547]],[[119095,-3960]],[[129906,-3161]],[[109452,-3077]],[[132869,-2934]],[[102836,-3259]],[[110805,-3069]],[[102609,-2806]],[[102240,-2399]],[[129081,-2510]],[[129049,-1832]],[[133482,-1731]],[[127969,-1746]],[[138726,-1630]],[[111568,-1658]],[[108591,-1709]],[[126564,-1745]],[[131229,-1700]],[[126170,-1199]],[[112344,-1209]],[[138205,-1142]],[[101544,-1820]],[[134146,-1347]],[[138633,-667]],[[130356,-799]],[[133762,-541]],[[124790,-416]],[[144357,-2672]],[[106982,-342]],[[130629,-326]],[[130304,-507]],[[106227,-356]],[[133953,-4]],[[100823,-543]],[[107294,-180]],[[105764,555]],[[105501,765]],[[105907,1074]],[[105643,892]],[[106522,1209]],[[107096,1246]],[[104886,1014]],[[99822,1501]],[[104952,1495]],[[127887,1020]],[[104150,2129]],[[130799,869]],[[99671,2126]],[[131537,2102]],[[98779,2417]],[[111501,2976]],[[108299,2932]],[[108837,3233]],[[120483,3360]],[[128674,3519]],[[120714,4287]],[[110916,3779]],[[120397,4271]],[[129861,4131]],[[98809,5355]]]},properties:{name:"Indonesia",childNum:107}},{geometry:{type:"Polygon",coordinates:["@@̽ĥ̤ˬZȅ"],encodeOffsets:[[-4517,55486]]},properties:{name:"Isle of Man",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʬ@ĤмӼþʜόώeլԟ͚ƺ̃͠đUz­ŽƓ’íȘșKąuū¾DžWǫ̑âʀ˵ɶĉɔÛʄǣaīֶɹĦ­rә`·O¹yiŕĿœāŭƛíƃ½ůBėoĻÁϏqėƒĽh‘ƀěĈ³Ā¯¼Mb€n|Î_Ө˃ָϿšP¢r˜^¤YډƨĝƐíƬ`¢[„ÛpßҲůä’^†ÀjĖQǐ»èeɚĪŜÁɂãň¥€£\\Aĥ€¥юɳĐsɴČâWªŸŽš´‰Ǵœ׎ǵ˄ĶɬǏłÂμ\\Ŭ¯€Zzˆ´ƀ¦ŜGèŸĸįƄS¢ƎԬFĀ‘xAÀ‚`ŒjŶ–ŶèȐï±СbûÊɸŸSeķák—Ĵǵʒũƺ„ɈÏp¹ĐI¬YƮnư~êþŠ˜ͦıҠdŞÞ|@À¹źIƞ¨ĐP°K¨hֶ“Ӡ£ʨҎϬɢࢎƈՎ̰Ϧ×٢˿áƷfÙǞɵC¡ůdſƎԙ‡ࠩԵšƕRʃ’ċjiF{şɫ˗ʽĩȱŴįǭϯĭƍëŷǿϙ͡ŔȗeŁÜ޳aŸũ£Ŀˋê̝ùųęǥ¯]±léĂçv·ĵ±ƒ[ÐÍ՘w¦đǎy˂ñφǝIÅ\\¥K@óRÿƷǻEȟǕ½įǪÝŋǕӼDŽͲ̈́ŨĴ{Ǿǘ®ĴĠɸBĢp\\ŒêĂΙȎ஽Cб¬ɅÖ«XY€pȊC͎ŵɬĉåmŃɕ‚ɩ̼ÉBfƉ{IɏžƑȐůžeåˆW®ďęĥƵƛ™ȷ’}̘ɱɢðƁö—[É̙‡į@ëȏ¹ãƒBùŽKĕǛ]£M‹²ÝÈÃâsĦMƊěŦiæ§V™M›[ĭ[Éō˟ÊĽÀµvȥƢ›€oy˿jǯŊ̛m˳ßBĐʅNjúħƇGΞĉĮµϱś›ƃŦ…ŕǑÒŜϐɇȢǾɅ˯ͧԻƵȷƭĥɓŐͿȋ͗̽ʳŋ †őףȏßHPLjɋŋÉƋɖ€֝с֕۩ำ৑č҉йȗЏPʳӡ˧Ř̓ƹȫ՗łԃÉɟǎؑųȔÿěɾȳħ̵֟כƓ֧Ět¦šUܽѯÇׅ̿äț͢şγÜҷƏȓǵŏэҕʱϝȦљӲȓҤçЎŐ͙êEĥ͖ųƐЅੴٹৠӁྰεӤů˔Ō@Ƈƨ¼òŷ¤ǡ̄ԍᓶĆіřƫĔRȂƦkǗîĵϾȐۼãϐDžɈĤČķSоʐӍ­ƂɴƭH€ƸɌÖՁŒļåċȥɡƢāšǓȩ̿ࠫΕʱDӻ̔ঁ৒æŬȎŵݴʌˀѢųű֥Ʊέöԁ˼ȉ͎̠ɾҕɉÍɔİÒĊnĜbĈAŚCHʨXxh^lNhIz›ˆDŒvìgÈ\\ÌcĬAǬPĬEȸěʘĺLjÌɎÀfQ¯p«äƒ´O¨PŽbææ–h°C¾B~ÙŢL vˆž†wÎÏŔÕƞȍ̢EȲáÁiµGƷtƑǠ¤π…ǜէɌĈ̶ˠʦżȄĂż¤ž¨ƆúîCŠïÀƗĚ¹ÜJʼİ̞Ž˞þfî¸ŊƲƚƐ̎¦°ҾɸВݾάƆÞÌ ¼Qº•ÐbêĢîˤ̼”@ŊÈļÚO†]šýÖbÚºǢY¸ÑDŽ`ª|®æÒĔ¸˨ŠÊ`ĬˆâŜWN"]],encodeOffsets:[[[77130,33061]]]},properties:{name:"India",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@¿µáƠĆŏAƨžƁ"],encodeOffsets:[[74232,-7554]]},properties:{name:"Br. Indian Ocean Ter.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ˋÄɨt¤÷"],["@@Ňŭˎ࡛λӧŜĉӅñÙøࣽΣ̏¼űϵŽޣġDzǨԃãѬɰدÙδ˖ЗZ„ÒӮšőźɰŦ܊ŎǧÜƹĵحÅϜɆƔɲ̴Ģӫ~ӝƦsŖͬ²Ƴļ˖à@Ø˯_¸Țȣ¼ŠĒౖaßĘЬʚՋ’͘ǪĒɎԜĢRʇ̌ͨ̈Ņɍũ˧˗̡Íƀē̩ƱјɩʂUˊɰ̜̇δ|"]],encodeOffsets:[[[-10186,55208]],[[-6367,55387]]]},properties:{name:"Ireland",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȝȃեĝϜȂIŖѮHû}"],["@@͂|ొٸ˜ʇǽƃǂȅʝƑԄϋɶrüқǰʑ߬Nj͸ͣӰɫ࣒ķೠʸŮ@ȣÝʔ‡±ѴڈńǚʶКɰݠ|ƚƚنƒƈȱނʵҰdТơźɏԞʑɺ˙ٺLþϝ¹ǵČğTȻhÇEƒ‘³Ƌõ‘iΓŇǝ‰gĥã¿S[uTuvańŽȷYƁDZ@͑ôĻ˾é̙̯bťŒͧĴ̍CçƱCğHǻ|Ƒ„YɎȢ{˄Ăą¸dzEƅwçȋțȑȡЧщLjǏİķب࠷ܺ́j͵}҇ΐY|Q¼‰œ±HwÁŸRǕQ]±wcƟܙƥÓőĩXʃţ»{ƛuŷamÍ©McT·ĝqʡyë¯MĵÿؽƲŹżġĿߍƜ΅ÃȽŘ௳Ȧʣࡒʵ˞ԡ`ଝՙїLjҕ|࡛ԈǹʘϏǪχʻɤǻԂǏŨRNJǙìsɰЗтćɸѡƛѷʰǒŜȅ†é͕̻ƃ˔™†ēȼ˅ưIѲ˥Z@ͰØǚÜnjīŢĻŸáÀƵʰ™fƏOҩ̰ljĄálƻNgfYª@¸¼ôJ²ŁƼԻҲŪȴéɊ”ĤŘO”ȌȲȘĶªü lΗŀşǞÈŲŦŽæ„Vzė¢͡BΏnjķ˺…”©V•D¹¾ʍ֞|ŰȃŨbɴ͇ǔȨΪŵªuϚȽҔ̮œǖ̆Ȗı֎էՔŇ"]],encodeOffsets:[[[57537,27568]],[[47222,39811]]]},properties:{name:"Iran",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ŗP“ģêɉũȳԼұłƻI±»ó@·Z©heɞyNJăҪ̯ƎPœeƶʯâ¿ļŷĬšÛNj×Ǚ@ͯ˦YJѱˆƯǺ˕ûqċfdzìƅ{Gy˭ĪзąȯϳŗDžÙóƋƍƧ൝Ŋ߉վ෗ਚഃۀğž˻²˗¢ҷèŮĴ›Ĝǥɣ࣊ᇴࢴǪ˸ƆܸµزĶŌ̺êӐјĆhưĸĘĦ†TĀ‹ÌSž˜ӪşƊGƪúĐW”gŠƒbŸMųäך‚Ü¢ǢIJÂE¾O†oʎ֝º½–CªU†“ĸ˹ΐNj͢AĘ¡U{åťÇűŠǝ˜ĿkÍûŸķ©ȯȗ“ȋ"],encodeOffsets:[[46733,35404]]},properties:{name:"Iraq",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ߔźѫɋΜėŇɋκpåDZʴÈҤĻƿƏǦˍϏʙ˹H÷ɃϝƣݽťڵʻধŷŋƫקŇಙŲʝŌäIJȥÉуǨఽį¥ɌLjû˔¢،˸ӷÅĒǜ̢Ĥџỵ̈ɚଏ³ǧŀਦƶݬDĦŞؕR֒ɂࢷŐ࠹ơӛİȒø͢ÛȡȨАćˤÐҟČʶ€ɅŘ̀NeƂθǗ̠ššƃƤ”GƊуŤϴ®ՍÔƠúѦBࡨͻ‚ʅʅeѼϧ˚̶̌ÅȺѼ׾˧ĚʶҌĞעϙŽΤ͠]̚ƭͮȨ˄Ý̔бɂʔÜɜQϊʉ"],encodeOffsets:[[-15916,67818]]},properties:{name:"Iceland",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǷÿGkcȋÉNå¤a–çjģlŅ×¯Ĺ¯ƫ†ȹWŸqsPclMÐlØkÜÉɅŭÏȟӐĤБྣÍßփบĒìDÐƨƎ£¸NPǎʮβীʬOϨ̚œЛŁǷ"],encodeOffsets:[[36647,33521]]},properties:{name:"Israel",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Бٗǒ͹Ƶ̯ԣĢ̝ʲȥEء͆ѽĬǣȎʤ̨ƚů͜Ƃкǯ૤Ơ͊ŚàÏ"],["@@µċ¯ŮĦ¡"],["@@ã•Īľ…ç"],["@@Ƣ͏ƋșåएыÔ÷ɳˉ‹ȗɼňՒŝàẦɿ̠†ɘ̈Áր΂͚ȫbœ"],["@@rŧʍzɜĮ"],["@@ǰ‡Fgeq˙½¥M}PmlYúLÂǁƘģģýûƸΟ@޵˙¡ǡʢɯɳȷŮлঘշϒݍѾϏՆʻ࠸ɛ͑ႮܛьηįͱɟĬdz˾Ͽ¼ǹƌɃ™ͿׯӾ̯º͍ҵǕÑ͡Чϻ˩EߥȜӢˌŪ\\ƴѣࢤدȾEȘƳǘΧÍĶŊΓêʻΤթPϩȎ࠱یзĒvŪϫʹNj€˝࠘டЌٕҝљğŨͮˋuΙǔþа̛ȬόƠÊŢ̗̠ȘƺˆkÖoǖ‚֒ĔöȬŴîÈÀԔôǗ̢ƙP_£ÃƨƕÐ`ư̾ĎɶĂ]zBĐƧ¨SºAۨĆl°KĒĽS¢Teŀy¶‰xMˆnÂv®¦^¸LȠÏi¸W´PΠŊvSĎAĠOЫÎeĊKÈP€j¾ÐÞĢ’ǂNĂ^ȼWͦĆxOJ[‰ƒ‡—p¥Īċ¾Ù¸µú}ׄċƶ]ŜEǮ‡gµ—[׃ƍćlė"]],encodeOffsets:[[[15951,39138]],[[8683,40006]],[[8485,42025]],[[9864,41864]],[[10645,43887]],[[13744,47322]]]},properties:{name:"Italy",childNum:6}},{geometry:{type:"Polygon",coordinates:["@@ފʱŞȧ˃¡˟ĞùĿƧ€íƑƁIJͿšɵʞʛĪļƈ˾ØԦÃ"],encodeOffsets:[[-79115,18901]]},properties:{name:"Jamaica",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǻ¯`øǜ‡"],encodeOffsets:[[-2067,50413]]},properties:{name:"Jersey",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ůį…YӱŭɛÇԱŽɹÍɍÃ࡬࠯į³NjāgcacãƗ¿őka׵Ň©…ĥƑīƟNjŝǵŻऱŸnǞВྤĸْiƂdȌHlǸĀӬ̇ϒÏ࿦ࢲɤࣉǦžœěŭij"],encodeOffsets:[[40085,32896]]},properties:{name:"Jordan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ǩŽúĆƐ«Ÿç"],["@@Ɓƙ©öǾŶQÑ"],["@@ƥS^ŜƈŇ"],["@@͡ǭÁʑų·ɊԌDŽuƂǸHȕ"],["@@ĉNPƜúƩ"],["@@ïåǝĺѴɤȥʷ"],["@@ƩDµļĠÞŪÛiŁ"],["@@õ DŽ͔čγ"],["@@ŝȂ®ãý"],["@@Ĺ\\¤ɺƄh‚Ǜįġ"],["@@ȔōǛŸwƮ"],["@@áĤĦƲÔŝėŷ"],["@@ķŸǘƺßř"],["@@ķQ˜IJàğ"],["@@Ѯ@ƅˡ̠g£ŗżȡ˻Ε˕ࢻɡ‚xƱ΋ȭø׈ķXĉŽ‚͓͙Ĩ­İٖxŴőƘN˒ϐѼţŒ¦Ʀʹ̄ģÓ¤ɇŶD\\ŵʉÎʉǙ¸żŭˮˀǫΉ͔|ĜȠkeĬҐǔĴǚȚĀȦ³Ȇɥ"],["@@Ʈȣ“¶Ô"],["@@ÿlzƨļ‰µƉ"],["@@ɼ{ĐͿ̣dzǏ̡ȉǜ˛À̅ŵʷѣơ÷ƋTÊŠǷ\\çќ͉÷Ԣ̌ʖ;ɐƋ͜ìlȐ̄ĖΆû"],["@@č»ÍĄƜ‡"],["@@ĝïƁü˲ɀÑɋ"],["@@ıbƸˈÅ˩"],["@@ōqĪö Úŗ"],["@@ijPrȾɈȦ¥ȫĸSȗȳ"],["@@Ȑ‚sֳ̰γưܥÛˋ̇̕á̟̝ÅūǃࢅΫݑʦыΓǷđˡѕɡc͎ɪʐəÔƹȽtɓǛŲȋiƍρȽȁ‡̘ЦƹČѽѹթÌЙçǴdžʽ¾ûďtʬý^ɫ̹̈ȳuġѱū΍ԫȃÙȱÈ˙Ϣwʀˆˢ֧Ůб§ɹƿۛȋС±˿àƕУͽǶۓÛ{ʊĬŌ̌j೎ईࢶGৌȬŸȅ̔mȈĔNJƊẘՊՀŪՠЖŞΡͻİɽȖëɤǖڲɢӆՂДɊςڂɚزÏȘɅÆɨ˸ó˴̜ȼÂ̜ʄOĸ̫ǀĢƶ·ł˖ύÇDĪŔɄʖŏ"],["@@¥ĴńˆÝŻ"],["@@ų†¤ĀĐŅ"],["@@Á¿ǒĐŏ"],["@@ݠǁռͲȕ֑ǚ̡аìމ͕ߝijґϳljΗ୕ӠύΝǣɵǴȓHŻɟۘЧŵÉ˷àɱʟʥí÷ŤĦ˰ɭ̬rʮӔ̼‘̊ظĻȤČ͘ৠƫ֢ìȶɪĞߒ۵߆ҭ"]],encodeOffsets:[[[126862,24863]],[[127277,25105]],[[128455,25337]],[[131337,27293]],[[132095,28387]],[[132560,28886]],[[133758,30990]],[[134103,31127]],[[133511,33202]],[[133205,33004]],[[131754,33571]],[[132175,33629]],[[132600,34021]],[[132911,34559]],[[134323,34410]],[[135441,34760]],[[132383,34943]],[[137583,35079]],[[137577,35312]],[[138172,35112]],[[132491,35179]],[[136572,37073]],[[141665,38730]],[[144619,42366]],[[142829,43091]],[[144687,46203]],[[144459,46421]],[[147277,45176]]]},properties:{name:"Japan",childNum:28}},{geometry:{type:"Polygon",coordinates:["@@ķȤ›øÍŖøĤ£Dz»Ǣ™ŸƒłEŶRÚ^́Njɉŋĵ½"],encodeOffsets:[[78898,35953]]},properties:{name:"Siachen Glacier",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ǁèĪŨÑŏŪÿ"],["@@ѝ‰ɑѩڥťȉЁŌ։ƟDžחȝijŢճCࠣǺ׷೹ʠƝ÷ʣɋĀˑ·Ʌǂ൏˽ƿĻԢƙŃԯβ޻ͩıŰƛ˯śNқśĨűĢ㚽vȍƴĀbᅛǔ˹™řUӝTûR§GěđՓØ۳˰˕ĝˣʼnęʥyğÒƹåVă¢ƒŒΫ´ďÞǭ’ɣâџÄȷ¯û`Ɠ£̧ͥ®ûທەӍңWɇɿ„ȳźÆȂƩƘਏcǯۆЩVúࠢʟħʳζӹͼϳƍਡÞ৻ŗࠛݸᏟঊᓡһBᶡҗsӣ֚؝̶ࣃƿҿ̯ĒࠖוĠʁʐˏ`LʶЃװнŐáŖƂƌ॒ý҅͠΀ξຈuΩȮ̤ԴÅ֐ӱŔ́Ƌ߭ʀકѝҏÛīƳׅɦbŶͶdڕ޸ֻĄǃÁȑаͻư–ͤˢ̂ȕǼòˤҒ֊ɶjՊѩΤÐőֺזȪƦȚؼǦҠτ̶çƲƟ݀Ƞ̐ȑ٤@ڪχΒщòЎ࢚έڲξѨžβƧͮǞѨwѲ̳ӎ×ÐŅʐöȸɦ̮ƝѤbϔƒƔ϶ࣹ˜ιʂ߸ͺȃ˶ɰʠ࢈„ΡȈϯº~ƄʲÞұĊɄͮזÓᒂπՄ™͜ʄᖮ̔¨Ƹ٪Ȕ৤ȏҲŤϖץý͗ފMƴĶɖ͑ƨNJԜƩМîͿ˭ĎɓϞƠвōČƆ٦ȺǼǐ୴̒ƵʟȝNÂŇୀهᅂᐳπƞrȦʌĢͤđ±ȇˈWàǻࡸWɤƒԄĐӴȁ͆҉֖ƫȲϏߖĭдɸ£ǵגБ"]],encodeOffsets:[[[51389,45932]],[[89419,50264]]]},properties:{name:"Kazakhstan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Κi²ƿk§mŽNţɒ˷ݒ³ȾƁڒяŢćŜ}Ȑ[ƀIݘťƎĸŐƪªĆޢΠɌǹǚħŶDĠdɌ`ŬAɩ͙ɭ͛̓͗^ᶻɪ̋ƬȕĂĻVĹɟȿ̓áPȷɇɧΟůęҿɉ˛̵ݵɥǷഩ৐ŠϞḭ႘’নǾδɀɚÒƦˈǞƬЌBŤYǚå̘nÀϩָ“ǎO°˜njGœ›”Ł”ďäj´­hſ˦ǜǘǠǜɔɊȨȠǦǞƸƲ¶Ņ"],encodeOffsets:[[36174,5494]]},properties:{name:"Kenya",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@·ƭ鬿¨•”ɛןŪȓ²\\Ú[zƒl֝ǫʡNJৡ¿«ʪ†úz¨¸kȋšTIÒE~мƴՐȓ͢ɾ˂‚͜œςʌɐWZŴǞ©ѺʬЉ”ʛƤÍGåsuXKþa°£\\ÁmÿnãPiĮÅĒ‡^³t‰ôwO‡}Hŕ»¹AáˆWǥ_Yʁ|ȿÔŃƨҫƞ֨ϬƦ ǒîHpgjç˜āˆ³ec­ų̈ͦƔ¤ü_ȸ°Ͷ½ĪEɤãǬĒÝά³„‹Ą¡æUÑƺzĠĚʦˤŊ˖Ğ۴˯Ք×ĜĒ¨HüQӞSŘV˼šᅜǓÜġþ»Ôµ¼ÁвÏŲġŜħŒʼnWaeUʳcÍg׹࡯˵Ǘčč•ãa÷ȇǥƕsšJăřԁ á_ë•īƏ¡i‹cã›íćŅë¹Ý»â͗ŅǍFĹˎ…DɽŭʼnuęGśšÃÅ|ċΙLJƙ›Ɓcÿ«Ã¯ďy£iyH‹˜£‚ěOy…›¥›ěuë[ƉXéc§}YϿr","@@ćXÍ`]@LgÐÓ¬Gø‹|","@@nƀů€³ÎeF›ÁìăAaå¬SüC¨R"],encodeOffsets:[[74384,40332],[72361,40812],[72916,40850]]},properties:{name:"Kyrgyzstan",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@ұȲʃđŸĮƴȆǃɎƭȍǛOwҠƩ˂]ÉǓ͐f˲ɋȴƍݞǮt̨ҪʒǐೢĄʜǛ¬®˜²\\TFwl¹Ž·ĖùƴžǪÏüĝÖ«ƌE¶ņyàûŖsä|\\Ƃ`t`†ô˜SòWü¼°Â|{„™ˆuȍԫž«ŠiĀ^rC°ÂŒ†‚S BƸƨô‹†PĖŢƿӟɰׁʼn΁€֓ħĕƱšљ˙ʉ}]ɗͣÒŽĻJ˹ʰɍFȱʻÎćł̋ùęɧÈBǭǑƕΣĻ"],encodeOffsets:[[106933,10662]]},properties:{name:"Cambodia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƔĭͷƌŤ¯ÒĊÝâĶ³iĥ"],["@@ÄŃőÞΦ"]],encodeOffsets:[[[-161118,1901]],[[-163163,4018]]]},properties:{name:"Kiribati",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƉöƠŰӂ°yƣҝı"],["@@ģÖȆĎġƣ"],["@@ƑŘÒ ĀƷ"],["@@UćƳv“ŞȞË"],["@@ÿ½ƁňƮŤÔǭ"],["@@IōýfWǘĠï"],["@@࢚ೃ]ࡍƚCŹҫ˽̿ӅkÉȗ΁Ŷ˓ÉBȝʽĐÚǓŻƋŵêÖǬ̋ˇţÖȇǕɣ̠ɖrÌńơAŇˤ˔ΖĿÜɞȌdzʜ«ѸʳCiä˜Ȣʢ·òĽĘĪȗɊĥӴϦфߖr˰ˆ"]],encodeOffsets:[[[129359,34021]],[[129264,35196]],[[129201,35565]],[[131140,35642]],[[131831,35634]],[[129558,38643]],[[131456,39551]]]},properties:{name:"Korea",childNum:7}},{geometry:{type:"MultiPolygon",coordinates:[["@@āYĉǀĔưƎǑÕƃ"],["@@٫SȧϨݵĚƌƎÚôŘdžȰϴиĆĠiȎÿvŭŚəƣšȹȉˢ͢ڿ"]],encodeOffsets:[[[49434,30336]],[[49606,29228]]]},properties:{name:"Kuwait",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ϤЋâȓÞD‚€xödRŒŁĉΑ‚ÁȄʻĚ©Ɇ»ƠéϺȾĀżýȠƣ§û­sљ‘™rcĖU収J‘`ÁlgŲE”ƒ’ñAÃħĩYÉ·çŽŕ•OʉØǓMEe{ŽçXå‡¿ă¯‰sI‡੊ջA…µĵxù̀Ɂ¼ÝÎÿĒȷˆ˓ɚǕÄÕþšÜ£pÝP±ZƛĢƃꑪŽ”ˆfU–ıŽ™ϸʹGû}Ɵéo‰ĪƷ¸·Ȏƙ¶å€¯gřх½ÙÝrÃj™U­Jĥ­“§ď…OóŒƷƧŸAT…­ÁqDÿ]‰j¬Ó¬ÇŽ‡vƒš{|ɵđ…ós_Ɓ_{[tãþŕxßµŅƋFÕ¬ûĞǩÐƳĕú¸mºCx¼lĊ¤ä°®¸l¼tɆpöYĠ—ð@ňŀȚpĈDÒe˜ȉŊNƄÙ¦Ƴ²ďÊȓʲËƴMȤ`NJ´ȊÛƊʽȦėİŃƢŭȒĉĒ§oęlƍÆšŠķJß]‹‡E…€…auÁg§‹µë‘ğȳé÷­•‘JygK™`eĀŽÿhę¾ǡƂŸNǓñóӇ³f™óŧĻËQQšÿȷȁ¿eǑĔȢҺMŦñĶEˆȪ҈õ̎pƆQ¾חJīǠĺΠǝǪċŸßÿsXPºN²°ǼÆŠÜÆèzƂB¶ˆIhËJwŽ^ÐƔɒ͆Ǽ¸Č¶kĩœÅQÃZ­pu†[ƌ ĊFƌëpN²¢bPÝĒrʔGƠM¤DZژnªªªŔŠr€RlIæđƸ¨ÈuŠƒ"],encodeOffsets:[[104579,22917]]},properties:{name:"Lao PDR",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ϧ̙ʫPҐ঒ˠ͌΄z¯ƃƦÉäǯʳʝòï͇ñ¤ƕƓŹ"],encodeOffsets:[[36730,34235]]},properties:{name:"Lebanon",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@àūìЭɛίʨƟʲƒĀ§òǑÒijĀWƴÇ°ʓƻՑV˿|ȅ׵Ȫܻ϶१ࡰ࡝ԢǹȀȪ˜͞ʲȘȄÞʾ®°ƂÀÜʠ¨Hð€ê÷ʂĜɜLJŰգÿʍ̄ǗȒžȘΨƢʼn"],encodeOffsets:[[-8690,7740]]},properties:{name:"Liberia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʡˏĞտɏБɶࡥ@᳿@᳽Aေ࠽M@нủཤ↏Ⴒࡉϕٛ̓؟Ҽౙ˴ϯڞۑȦʑÅşĘɉخҫؠšɢ͢ʠŕךƘϤġୢе߀ǬĪ͂ƄŒŽņżƀǠďֲƈȆǜ¨ŐnjǾŶƮüƎìDŽöŮÌ~ºCªãİ@ŞLĬP̌ǼŸÁƀsϼȟЊµѾĨཤѯѼ߷ᅀн۶їϢűӸȈͰЌƻܖǐʹо̦ࡠ̚Ҩeݺʥ`ʋƲı۾ǡؾsɮˡ"],encodeOffsets:[[25755,32415]]},properties:{name:"Libya",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@³ĕķŰƒȒZɫ"],encodeOffsets:[[-62356,14154]]},properties:{name:"Saint Lucia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@|ÙſŊń¯"],["@@ɪaϬίѠܣŪצʃϞܟY͙ȋЍލϑϧ~ƟŦȣ֪ũ଒ŠĦ†ɵŪ݌ƜʾY̰˼ą͏ƚÁƎ"]],encodeOffsets:[[[81792,9268]],[[81902,10049]]]},properties:{name:"Sri Lanka",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ɉkɛ̓Ñęʭ€͝˒ƛ˴ŗˆȦĚψӢȊÈŀĀŰàȪðĤl–Z֨ёîȕ‹Ĺ±Ŀŵő™ǿϛǧ"],encodeOffsets:[[29335,-30849]]},properties:{name:"Lesotho",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@µPǸˤƁ˳"],["@@و~’m¦™xʁßɹÅkƩX™u‰ĵkoϙçåx~Ս×jǠë¶ñ’ĥ”éd›JwšfépÏLµïŖHЊʸɏǀгJ۱ǚDdžƧ̞OǮO ɦIJ˶ńβüڔUþ_Ú³ÜN܊ަđڂŒƖǓԀăްοC›qÛ¡ĉ¥ÛW{ŽqƼWâY`iƥţʹR“]Ùķç“Ň_ėwŗǛTŅMu‘yÃÙ«éiTiŪeÀĥlj‘"]],encodeOffsets:[[[21461,56606]],[[26187,55440]]]},properties:{name:"Lithuania",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ţ̃ƍž½[}¿Q©R}nyZÝ`…„YЃɼš–|¨¦ÐĠîĨYjNEMïz»È·ÊyǸõ"],encodeOffsets:[[6643,50994]]},properties:{name:"Luxembourg",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ӑ́ѱ‚ϫƍޯπӿĄƕǔځőʵÆԯŒÛ‰ÝMƕÔړV̓åÝU˵Ńɥırوքغۚź؞Փ̢ıؠɼ¹Զ’IĄ–ոžƌ­͘õ՜ˍȠÏθàȄÏŞYŤCÎÿɐħ‚oTO«LJ̋Ɩl–[šĥĬşĄ¯P‡¸ĻnÑT±­į"],encodeOffsets:[[28824,57491]]},properties:{name:"Latvia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@řŰƒ࢖Ɨ˲ϩ̦Տۄ̥Ęl†Ǩþ®_˞@˒Ěڔ˫êFמƵTЋːǓĮ˟ŮåƄ¯ÆĕOċUïǨī±Ǔc“S͇ĔŹZå÷gFGł]f‘FƿË…F¿\\ÕÀĥ…£qÝĉÑġ•Sí½·ėµÏÏNŭǁg›]«ƒ"],encodeOffsets:[[28890,46542]]},properties:{name:"Moldova",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĥƷǘ͠ñǧ"],["@@ʼnkkŀIJÀ„Ɠ"],["@@Ͱ՝ʢඇȼչɱәǁƄŃ̂ȓÃƦ߷Ó˟ˉΧzփīο஭₵́గ͋ލϗ̥Ӎãճ˩ʫOছӚ̫אª٪ϧ६tϜǰӜʤƪԖ੎šдǭ̔KˬNjϞ»ݬϊׄ°Тζ˜˄ȊĴïɌšĐƮϪÜȰƽËǰŦǚϼʚƂǷMʆɔ͒Ħ¬\\ʝʞ̺dž‡LJʬȈΆĥź¶ŨĊÈǺĻҔϞļάŏ̲Ū‚ɲ̠˨̑"]],encodeOffsets:[[[51135,-17308]],[[49503,-13684]],[[50728,-12730]]]},properties:{name:"Madagascar",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ōAɼìŭé"],["@@ƾǸöƩɳ"],["@@ĕ¥ŘŘñ"],["@@zĥƉdžŐß"],["@@ȩȴŘи‡ύŚʝ"],["@@Ŀƻ–Ǥêg"],["@@Ƶ†ĴɞÂʣ"],["@@Ûȣȡàú̚ŜŒèȡ"],["@@˹Ɋùɠ͖ɩžȿ"],["@@ѫ೑ƥཉâͻϖҕÿʓtʚ̵Ϯӊહؘ܇Ɣѵјҍţ^ʚŇÿÞҎÉ͒ƽ˶̇ނɜ֘ŽόǨϼ”¼ƿ͊ÓɒƘËɶÿUזϲž͆ǜǼŜࣀ҄ɠଔʜϬ†َƁÀČƱxˬfǰƝªɩŻ̩еұi̳ȷȋ˜éȄ|ȟșFÿż|ɕۻĵƟƣɂr˄ɛ̯ȑuʃЗ˝LyſໝBGӁǟDǵBθ͙ɠƅ¨ÝtÇ@¯¸•Ėy®£@‘÷SĉZ÷ÙCƳ@ɵ@ϡ@ʫAȃ̭ĿǩĕƥĦȹqŸ›s]ÛΗඳ౐ϩȚ©·ΦǧևƶØĪǟyËŎƋšȆË˭࣡Пԁ„̓ƸӍ¶ٟ˴ȯȖޭƺঁКْ࣏ٿĔدɚЃцࡵИҗ֖ƿΆΆnjÇƦƹ²ɲʼz̸ȇņǽ̴H˶ūʨ॥ੈۣӺȨĥ^ňρłˣϼȖ]թˈùżȭ³ŤɆʻšǁŔ‘ʲȎɮê«ƅʀǧƪɫOǃ̈́ηźǷʾÀˎӻĔ࢑ࢪݫൎXѺӝƖŕDzǁÒǛĹڅͦŦɇýЫ˨॓ڜջɌχʚŅĦʉȈóŘԉͼʩϼ܃ƎćăʤȎƟɺޗԖޟxѵʖȭÂȪʀƑ̆љɌƳÙˏѕɟ̙װ૏ߜij[ɩʢF؜ʵբե̴œ̦ĭŽ˛ÍȱȶԓɄāǴϡʰ—Ěϼ·ɨöCąȜčõȴě^Ǿаݛިإͼ͙ࢢȟƔ‹Ȝˡ̦¹ƜĐĮȑŬɽҊ፺ƴġǧẘষᛠJFϚ๠WʢˉচگЌ߿ͦʓߊ͙ɶǾɸҊ̄ĴۢāּԁϪܕڔٻ¤Э̊ԡผәȖø"]],encodeOffsets:[[[-93884,19126]],[[-89026,20791]],[[-109058,22130]],[[-113220,25604]],[[-114746,25135]],[[-113766,26646]],[[-117934,28744]],[[-114895,29702]],[[-115871,29750]],[[-99477,26585]]]},properties:{name:"Mexico",childNum:10}},{geometry:{type:"Polygon",coordinates:["@@аˏƖɇó͹ōI·Źķġkʹ’DžwǵƱŷ¯©wԣeɉàȃ̂ÞԎƆ@¬ǔʂĎȐÑĒĶƠxB@Ɇ²ѼV"],encodeOffsets:[[22881,43330]]},properties:{name:"Macedonia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Nᅫħ՛ɹտ˕ǿ_ŃύÒ·ïෛÍ̑ʑؗÏϟŮѱWʏȑޣ̧ŝʍЉºʋɷÝʫʡV­ͅȍćΛȀǟăƫƿĐ˙ɇķª˭ɩɗӵȻŽϝȫ˩ƒԭ\\řMų™©…W¡ŃĥéNķºEd¤úD~¹ˌțƁçtõÐmoS±KÅnĵo—ɏMÇǗ̱ǔɵòˡɝaƆɓƐÏъˡfɤ̜ΡʴHȾȍЖ̏ÀŒǫͫȍѩƶιˁȉʴ̹DžǓƸĨǦAҌȵάǑ­ȇˊĀȰ·˦ǫɄ«̎ƨÁpjºɘԶìòƤŀ WюЋɄɬي£жîAĮl¢Ú°`ŵ–oẀKŸڊűƆijńyȬyȾyȾyȼíظǙฮ̵᨜íظ³к{ȾuȒʴ@ˠ@ˌBی@ᝀ༷᣾ၭjʅϐəØƩௐѹŀσŕʵȤĭܺƀ"],encodeOffsets:[[4330,19603]]},properties:{name:"Mali",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʼníƀǸĿ"],encodeOffsets:[[14916,36714]]},properties:{name:"Malta",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ñƤƤğı"],["@@¾dzDžŬňÈ"],["@@sǥÿz·ȌƬŸ"],["@@¥ưŦŅÿ©"],["@@ÁģÁÊńš"],["@@žĽũřC˼Đã"],["@@KƏ™ɤ¦ē"],["@@ÑHĀĢmĩ"],["@@ÅćoŪǴDzĽɓ"],["@@ā¬¾ǘ„Ƀ"],["@@ǟƸɎC­Ƴ"],["@@Țʼn™ąũKĥƚÐÂ"],["@@lřčǒâ·"],["@@ZăĝɐĄƋ"],["@@·ċͅǻõljŸi}]ÏxÌIJgµ‡ƁAçyÛÅÅş¯ǻM±ijÀ£ŠÃRƛĉɗŒxdzΉ§ƃ˛қë̙¼ǕʏÑܹ̹ÏɒȑØб؜ۑȆթƦò¬ÅÏƝȍŋ‡ֵ̭ƏVȑ̲ԭӊե[ֻʀЛǮ٣Υ֧εύ¯ЃŝŽćբǮʼÈԖŔňȫf¼ФąjàĒđۂ̿ی§˧ÆUϖDžЮĠ@ǧǦďࡢŁŨŢҤ̍ƧӔ̉ʲ¶̵ťˏ˫ǣȯɚŖ˕ҽɳ̽ϑó„ž˺ƛɫȟO¥̬șɹ–ԜɗΗǽß̬ಬΙ঎ÚRƧŸqͨĭ͙ȉńdz˾˨ŋƤǞ͗ˮĄŘϩƂĵDZŅǼÆʬȧǙÀƎŽȈYɣͱиŧфŶŬʨőƊUЈOŽĪź‚B¦wnjďĚǦúŴé̞ŀˌŪ¤b ޴łÛȘf͢œȀϚìŸĮƎǮϰųİĪȲ˘ʾpŤàؐ°E|kjČQʄŢƖࠪԶԚˆƀƍŰcD¢ǝɶeÚâƸò¾ʚȆ“ĖjŎ„ŠÚČĚƀ¾Nϴ˥ȤՕżĚǖëôڋ­ԅķĭüǫ˓ɷDž_ŏɹDž“ç͍Żā©ʃƪəťˋծǚԼVƃǻžɽ€ηҰĹöğ˃۫،ćpɧǨɷϨQЌʄºƿ"]],encodeOffsets:[[[100539,10172]],[[100567,11216]],[[100920,12027]],[[100881,12191]],[[100420,12688]],[[100776,12901]],[[100675,13414]],[[97081,16199]],[[96745,16329]],[[99917,16644]],[[95940,19133]],[[95964,20028]],[[95736,20370]],[[95243,20403]],[[103567,22086]]]},properties:{name:"Myanmar",childNum:15}},{geometry:{type:"Polygon",coordinates:["@@Ϡʉ֢˯ʑÉTdzɳÑőŸ̽ϥ¾ʭݿ׈ĠæáŖmLjb|z^Ŕ`CƬĚÚ¬ĐÀìMš­¢NTÄąŞV~p`®Sª]„TªP|Crë"],encodeOffsets:[[19680,44493]]},properties:{name:"Montenegro",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ܷ˵ԛӉߧˋēcշkџ€୵ƅݷʛҭȇįƒå×Å¡ËiНÂ@ȀNjʵ£ʉ՛ɊлðΗÆƷ¸ˁʆåpé^͹ZӕÆε®đNџğ቙ȆۏÍѳҲ˫֬ǙðrȨՙÖ৑ԀؓúǫqŽCɁvţ„ϏP҅Šơkǹˢ˸іIΣԉĀØВÙŔ“ÒÏ~ëfǿʀÑȂßþa¶clĹtóšÙŎÍR¡•ái­FǻƬçrγuÛ¢­áZſÌę¦QĈ¥ÈēhēÌˣêäŸȓìõøŊĴ³äRŠUžĸD¬n”„òŠÞǐφ†ǖ‹‚âŠXžroŽUĐzÐ~n”‚Ÿ_â¤ĖØdSƼΆdžԐňºŒž ɘĠDzŒÈV’NØC‚®̜ƠʦCôRƎƎÒ»ǚī°I¶x’ÌÞVîWƌƣ॰¡Ĕ˫ɔǕ¼H˜`Dz@ƴĝΊoҘòȾć֞eȈŵŶVȖƜΐĒȺʎ|ȚœˆÇˆ£”ǡ˸ɸоҌˊɆˈࡺ̥ĨeǐMȪGÊY܂ɕDŽ^ɀʔ˚H«c›Tĝ˜µjȃĐģyŏࡠ͓ˢ¿ø`ânɶmરːۮƛŴ\\ǦVŘ_ȖĭČġĒ­ø—ĪEʆGʈ‡¤ʙψɏĬ¯üeԼXǼÚu֞ċȔ¦ʀÝIJp̈́ŚŎªþ[մèΒĞǠsĞbĞœŠ¢ŒÜÔĖżÞńÊņÆ؊ɢϐ‘ɖăɬǃø‹Ä_ƆSňKàtŌžǪºèCŔǚµŎąܥ਷{ĹJğUćū¿ĩ±üɋʀƿĄræàƀÌðD¾_ŔIŜtĞJŠa¨aIJ}ǺŝÆ]Ζ˰ؘGΓļķÎÃĶŘ‘ÄՊчƾʕƻij›“kïCūnţYƛrǡĆħt­[ɯ×TËSƧXă\\ŷïWˣůǍÐĝC_[ƒ‰čBo{Ћvʝĉ̋ͷ`“X¥—³ѡɿѥËȱWƱ”ƭ{şƿɃŷñáǟÙȋŏÅcҍÄ˽Öğ†ćĀó ʣJãfœcзבѾҫ­œ"],encodeOffsets:[[114564,44729]]},properties:{name:"Mongolia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@èЦÏō"],encodeOffsets:[[149250,15497]]},properties:{name:"N. Mariana Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@MˎÃȨfɜĥ¼Ž఺ƽӌɇΈɏࣤŢĒࡂࡄÛƊŜАр֦ǷԄÔʈųƎʘӦĭఐÒƞࡏʄס;ڡz•̒Əո᠂ࠒκүبŤŌơˆחʛҁʂЩ;χƮśŸƯº£ÞGÒZdlSʐ§ƚ©ÆU\\ÚƺĮǸȬˆĠ| ŽŠČĐࣈuzgNJƁǦǛɞħŢŅƌȝɈͷǤÇȆEĜƹߎȼЌ®ĐƖZŐEȈHȤQðkºFÊhżŊłCƞéþÑ`½Ī‰֤ŞͦťƚˆƸĂǐʊӒijиȸۢɊƠüЌ̚ŰǓĿēĢÅǍуň֟›ЧĀţť̇ŎCvख़ĶûÍ˗ňİÎʟȏͭ„ũ֕ߵNjÍ®šٓҋ߃ɧݳйʱɇ҇ٵş¨wţ͍ōݿۍʣĤĚĵ§յɸ˩ʊ܁¢طʵÖ˶Öŏž׷ǣۭƞu©ȭлӭၽ۷̷ћɒɛĘƺkƙ™ӟEe҃YŹzñK"],encodeOffsets:[[32884,-27483]]},properties:{name:"Mozambique",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÃćĐŒƀ}Ƈ"],["@@ŷډṿL³Ʀ‡S“™k£Bĭгíً¤ɃɫэЌʯǙËƱ™ȽűDž¹oiʭŦ˛Ȱ̵φʯЦ̅ĨĥqγζׅĆٷljЃ ǝ˝ěmƯƒá@ϖÔ˄ζઌƵबʧ̞ǬŴŝȠيȁΦljeɇϞş¥ȝ_þČβพD६BϪBȖ@Ȗ@Ŷ@QŐOĘQŢSޗՠ·˚ĸưŖöƀĔĴà¾hƾx̌ŲNц@΄@Ҝ@Ŗ@ɮ@΄@Ɍ൞@޴@̼@ƾ@Ǡ@@Ī@Ǝ@ȌAȎ@ǖ@̪ἢኑۋ@ˋA˟@ʳ@ǔก̶ᨛǚอîطzȻzȽ´ЩĴŃŲƅ"]],encodeOffsets:[[[-16766,20180]],[[-5488,16674]]]},properties:{name:"Mauritania",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ӓ~Ė–Á"],encodeOffsets:[[-63640,17143]]},properties:{name:"Montserrat",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@˩¶ĈȲȮǎŔȇşɭ"],encodeOffsets:[[59035,-20976]]},properties:{name:"Mauritius",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ŏFƕY“YÍȻЋƺߍFěÈȅ͸ǣȞɇņƋĨšǜɝƂǥžȃďࣇ‰ċŸğ{ȫ‡ĭǷÙƹV[ªÅ¨ƙTʏckÑYÝH¹¤ ưƭŜͽψʁЪʜ҂‡טŋƢاţЧՄƕËƷːŃĊʠ̬PѰҌ̔Ɵ’óǐªΠÑɰˆ\\Ĥȸñʲ̴ʤĝƌ_’QĮǻǔtì\\üďĒďžŷeÙǸࠀəĚƦ˚ȣȾёĈҩ¹ʍƔɕĮ« Ínī"],encodeOffsets:[[35799,-11856]]},properties:{name:"Malawi",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ßnnˤ²̑"],["@@ûˆ²ĖŠŝ"],["@@ȡa¸þƪÛ"],["@@ćW°ƺþµ¥ī"],["@@ÐęƥăćžǞ "],["@@ȪÏǎʹӀϡˌҷpྕ̼̑΀ܛ‚˭ŕrŏǰTƙʟIǷĵĻǼՉʺளࡼJ̲ӭ״ä´Ʊ̎ɫഢȋϪŤȮìŏΆ÷ĴǷưEÑЅŎőϊɪĺŇǐ ȒΖ"],["@@ЉƖӯ„ջmƳŽȋঃǩQŇŋ‹ɕĊģͣɭšɩˋѹԟcɽǕԭǖÁŐϻOʑĵěʝɧōשԃǁ܏نīʀúŎȢɛР›ܾ˕ǍƌȪӨ¹ȪȢDÌ̤ఎΚ޾ࣨŞ̊Ӹүƾ̘ÿ˚ɾƴäѓƸ‹ųҠȠ„ưƈœːƺDŽŘÏŘæܺନĎų¿ȃ˺̨Đ{ÄəˆƑìƋ¥̉ţįфƚĦDžƱَå͊ČȰǵՆƯ˜ĕŸůʳŗշ…ÙƇ̈́˛[ĻґŇʽþĹơ"],["@@½«aŨǚüFŋĿ«"]],encodeOffsets:[[[114063,2474]],[[106723,2798]],[[120714,4287]],[[102696,5422]],[[102245,6621]],[[104552,6393]],[[120397,4271]],[[119954,7341]]]},properties:{name:"Malaysia",childNum:8}},{geometry:{type:"Polygon",coordinates:["@@ݨƈϪ‹ɦ§Ɏȋ̋yͅșʋ|եν͋ϰስˍJᵥࡃFᙵ@ᲃ@šυĻȏƃÉƙë‹܍¬ܧǂċǒVȜƝŘōĐĻµ·…ù›mŋµŇ‡ŝ폛ؓնͅӤǝ݆Ɵdžʼnઆ˯ۨๆࡗಂʁؚ׭੐ֵި•ɀRфƈnĤ¸ǘ•ĘE’PDŽMՌȬʠËҔ̱ᅌfሼSҺ͹ਨ»Ҫſೠƶࢴǒ"],encodeOffsets:[[23942,-18064]]},properties:{name:"Namibia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@č_@ĈĎç"],["@@ņ]eƝŹsŷȼƤ²ný"],["@@˟Ǝ‘ÚƂĴőêȰYĒΫ"],["@@Ȟ‰ٌХЄл੾ەxțǑ­ʱĶಓ߼ُںğ˶Ťĕ"]],encodeOffsets:[[[171566,-23166]],[[172044,-21944]],[[171419,-21668]],[[168144,-20731]]]},properties:{name:"New Caledonia",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ǠఉΦӋgȅ͂͗ȓωɕᠵङঃޛଵ¶ȷĎίƭEēϝȅǻĹLJȝ౉ɺЛ“ȷ¥›UӍϫΏVϛðʛŸ̡Țŝ€ƕ^ؙ˱ɅĜщҨīJ̃Đ̅ĜÛ[­mĵáӝqѡɳǙֵʧȵ©۫ڑׂσƋp˙ˇΌźƂķȢґÇӟ΀D˖DzMө̄ǁɦŸɰǿɄ®ΐؘÐ̒ʒොθðώÑ`ń˖ȀɺրĨ՜Mᅬഞ˰൪୨␤ᕨౚ˳ؠһٜ̈́"],encodeOffsets:[[15339,23549]]},properties:{name:"Niger",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƇoòŎÖĝ"],["@@Ɇěؚ˲Ɩ]Şվ͑ϜïΐUӎϬœVȸ¦М”ొɹLjȞٮ̀ƮF˜ϑŎƯĄϹtƓô÷ȸ·Ďŭ¹փ̛ȋ¹gïGك÷ÑljɡƏɥķηŧœÑЇɧř­ĻÍΕqËʼnųȻÓýƧßŗǻ׋ǧȳ•ÕĂŽǡƑÝ¿{ljͭɑ¡hÕȬßẩʊljƻĵAó^ilc oŒėÙƏı­g“o¯ġÅıƛħЯсʁܷǙˑɿƶº̋ձƒħŊȷěǩƚàǝșĻŽˬþ̏ȑƒ­ŖsœʓPļćŻǟ¼͏ʸŝʤÃƸþrę”CŤƴŘƍÓƽŎɎàŇĄǷÇɃ͔ί˔ࠗâɢƞʋÕāŅՇw|ȎdÈl¦k¼kæUńˆôK˞`xdlB„çݨÔ֪ɨˆɾאɸȎœͼŀRÀDŽßƌ‘ʼk”±´ŵǾFĖÂՔÄÎÆc٤ʨȶǚֶѢɴӞrĶâ®nÜ\\ڶǵъҧ"]],encodeOffsets:[[[7476,4525]],[[6968,13423]]]},properties:{name:"Nigeria",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ñōǥ§׷ʼɳč֥ȴƇŃྦྷེîàƊĹò¶ɺZ¦`úǺœ˜æ\\ÂJfz«˔OÂX¢tbľXȜgž^ĀŊòĂ¾˜¤Z´íǔķ„PhNLdE²¤¨ЊˢŲɪǖȒǸűĞwݸȲĊĎĸ€ɐ_w‰qÁijÃöÍÛĪÝĤ΃ȋ˿Ż֩²ރĭ¢†ɈƉDZØБñˆ½Ǖľ‰¬Ƶǹ˻Ȏ͏"],encodeOffsets:[[-85649,11180]]},properties:{name:"Nicaragua",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ũVĪ̀į"],encodeOffsets:[[-173878,-19541]]},properties:{name:"Niue",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@£ħīɪƐƁ"],["@@˗ƭЁŽçŎ݂R"],["@@łù́¼ɀ~"],["@@Ʃ‡ƪŮ@ĥ"],["@@ٷżʜ²ѾĿɧŀƮ\\ȣǚҊоʊՎʖhЄʸѾŚو†͎ƃƑՍ˓ƒŽŹʌëʽʥÜħ܏Ƒɀ̑ËʫɭįdžĿ¯ŻʥrĒ͆ӧłƷdžگé"],["@@ŕLͤžɍ©"]],encodeOffsets:[[[-69842,12437]],[[4328,52620]],[[4044,52982]],[[5004,54345]],[[4328,52620]],[[5454,54668]]]},properties:{name:"Netherlands",childNum:6,cp:[5.0752777,52.358465]}},{geometry:{type:"MultiPolygon",coordinates:[["@@Hıōɒņş"],["@@ƅCÀĤĆğ"],["@@ʣÜɨ¶|ő"],["@@ƷhВİlč˅‰"],["@@ЭJʀĞǮħ"],["@@ů­ȴɂăǓ"],["@@ȌŸܱȇÒƒӔĖ"],["@@^˛ۉ Ր˲Ɯµ"],["@@ӌˆdžȱҙȗ෽DZॾΦÐάӆɒʍح"],["@@тù­ʵϳAͽƷɭ¶Ljʔ̠hŤǸ"],["@@Dž{ÎŜĸğ"],["@@˃Yzńʘ`Mʼn"],["@@̒¡ɯǗҥȭջiȀǮ˚\\Ϫϴļƫ"],["@@Ȫŝ΁DŽƘ¥"],["@@ϥɡǿƌԘƠÎÉ"],["@@ʩIÀƼȪƱ"],["@@ԥɱЁu̩Ţ௒Ɔ"],["@@QȵֱĈýǟחœΟɵĵžЦʞLJǖ୧ͦԵƃԏRϟȉ˗םڳͫࣳǴѽƁލÒۉҮѷ¹@ơϋIы_ȚƟͅбඕǘ͗ӷӻŜғǫտϿɶ̷ࠗӅ¼Ʒ߅ƩÁۣ۟؁άįÂʓƱƅٍ¼ΉÙԯ͹ƧʯʮࡋŭӃ،̳ƣʕ΋µʚҩđ˿گѝİʫŽ̧ƟaéńҭŮȩӤΓى˱§ʇżČšఫۛঋķŃńʋ­ÎƔߟɖŵϜҚĕɞŊɝ£ǭŬÀǜ϶ȼਯ͓ÌͶȘŲʦ«ώƂУœԴЬȌPŸǩЀ̠۽ƓࡍקºϘОˆ͹èůȬіȰͻıŅÈě͸๨ĔɖǃDŜӄĴɑøĆŔɧɧӕľǻŽ޳́ðĕȶ˰¬·ȌDƘࣰù׸è௵ÈĽȊ٠ɎƦÉк¸Ħ¼ҳ»ǼǠદŸĩĞюĊ઻¥ǦǬՌƚѼOѮȵϹˆВƲɱƀǺĒҺOhőҔƒ˘ȝتЇƎժƲǏĀʂĖųžͣŅjŵ݉ɏЧǎ࠾ײߪ˜ĠÎ˱¹njȆ֜Ǡ̊ã΂ȬлŽʃĂҰԼ̀°ȽŦੂǔޓÇþΈؼźʵĦϨǴ઴êࠉÌѪʮՎȏĈƢϋæ²Ǝϗď±ŪˮƐЦqʱĶ׊ƈʮ̇ĝμଌĠ࢏ĚೲԾƄ˂րœʧžӪɎѲ†åָ̛ѪɩԥζǮɆkįͤҔqɨľҖƭԳͰߺ€̨Ģ֚͟sȊࣼдƁŀͨƦԜƃцT؋سലۦÛѽͼĐǎȜ̦¼ʽȚ̌Ũڜĭгʟ̾SáΛ՜Ԭހǻ˞²݈έֱű௫ڠīLjȽʞUŲŨdžŝψ¾"],["@@Ңūҩ‡ɣÖɬĞ"],["@@ߞ˴Aŕߛǝ"],["@@̝ļ˔HŠŃ"],["@@μeɌ̉ॸß˭ƃຈȡጇЩŌʊํÿ،϶஥Ұ୊İ"],["@@ܮͅ࠵ȘӁτ׊ʕ"],["@@ղMີ«ԺĬҊ±"],["@@ࢢęƓΏؔȀʀ˽৺ǥ׼¨ٺ̭෱ŋ᠏ၽይվ̵ɰטbȎƐᄨĞijĎᛗŃ·ɎՄmఐ˒ਂ˜үŒˬƈଫDžƒʢ̱ş˝ú§ʳѷť߯ƒ຅״ߪ‰ȩ̒щb̷ŻЃ͠Èɺ̄åҬĔӮěOĒஎœîũਇũٺJגȗӂϢเۓѷצΰ̰Ҕţ"],["@@࢙UᅮĠओĉ"],["@@ୢǙƊ̒ҶÔĚʋশƤᓂǛ˴Ʌವч෋ǫ࢙ŒƲ၉[؛üϡĐठƂႷXЁƚԎĜ߃Ěபṳ͞঒ȓ"]],encodeOffsets:[[[5208,61755]],[[5078,62551]],[[8298,64858]],[[8675,65196]],[[11501,66423]],[[13284,69504]],[[14206,69904]],[[15573,70598]],[[16139,70207]],[[17924,71267]],[[30676,71472]],[[21278,71772]],[[19718,71749]],[[20242,71902]],[[24183,72243]],[[24595,72261]],[[24004,72516]],[[31611,71459]],[[26201,72850]],[[-9168,72540]],[[19681,76177]],[[22127,80482]],[[11521,80498]],[[29745,80806]],[[17190,81825]],[[33307,82042]],[[21400,82176]]]},properties:{name:"Norway",childNum:27}},{geometry:{type:"Polygon",coordinates:["@@R¡IJƃžķJç¥ś³ſy‡Yקmɫǐ˃ĵ׍Ƕdz›µŠõǂáVɵĉčtэɲ¨BĦ[ž¤Ň¦ɁäśÂəĩçfǏ¼ĕR¿i]…ã‘ҳŰmރޡ\\ƫ_ƏîƧĞي£Z—]¡q™OֹЀӥ˄Í`m{a»Nÿ°ĉ´ŽĜg’„ľžĘrÂÐpļCĘÀŰîƄŮƜɪȂzjº‚¸Pǰşà®ƌȴȌ¦Ǵqǂ‰ƪə޼ϛάί̒ĆðuâƒvÁ¢ĵ®Ŀӊ̏¸MǶ´¶M‚UBióƒģ†³øoǖaɤDæµæíæũ‚½”cÎr^۸€æýĢ¿äЈŒĺ¼dÜOzq€£Ƹ­ð‘ĸ÷Ųa˨MȨÒȾ_Łأ"],encodeOffsets:[[90096,27786]]},properties:{name:"Nepal",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@§ÓėØƀC"],["@@lë̓ŒDzɨƔiǝ"],["@@ďÑǔŗ׿ǁɼ̐cǨƠJDŽƕ"],["@@šijʼn¸ð¼"],["@@ǡŁuĘĝoƶȫƳûĩäØƺʗzʂĚ͜o"],["@@őµƸǪ¥ų"],["@@ۦ̖ů̇ǜɺʬsɛȇ˨Śʧ˙\\ȭǘÏࢽਡԇʝĤéǩğƖjĨƩɢ±OǕӁ€mĮƷşɕƔŨǍ߃̱āկūBĪŅ΍էÚƽ̙Ï؛ԡ́Í߭`NjȲ̅GʫǼƝý՗šƺȬɡëÌŸȍÙIŐѠĴǥÈnjĪɍWRÚƪ¼¥ĆʊċØĶǡƖȞ”ÃĴǺŖ²ŋfǀʪƨĺÍ©ƐԎЂ؆İSŘ֐Ȭ΀̼ƀeýØʸ`óêŢ¢ÎËȢʾ–ƕ`DŽʈȢƢ֔ϲɌLjӺтΰʮAǯqyĽʆƱńα"],["@@Ǔ¾˜ŞżǛ"],["@@ƮútđՌǑƁƬ®ɔҏƹW΀їãҁӞŷðdzƂJç؎ʾɑ˰އঔ̉آςѸŗɥܟʕƝÉѣ͕Ɣϑůř˩ƞıɣПܟࢱ֡ͭŧnjʅM_ǜȗÇѸ֘ü˨ĉƦūƎࣙϊƝdžæưҮƪǘƬǢݜńü˽צŰįǐŌŭŠʱDʋϘǴğQ̦ĿÜ]ïǻńĹǶFğȾʹĥաۊǶȊȿƳ¿¶ǓȦØDŽСҼ˴vãęʲͱ"]],encodeOffsets:[[[173239,-53757]],[[170211,-51979]],[[172181,-47986]],[[170987,-46264]],[[-180405,-44790]],[[178089,-41844]],[[177271,-42269]],[[179757,-37149]],[[177428,-35773]]]},properties:{name:"New Zealand",childNum:9}},{geometry:{type:"MultiPolygon",coordinates:[["@@åO@ńȲ˾ÈƏȓʡ"],["@@ɄёОЩ൲ϵրܙͦŵmʏέ؅Ѝ͕ΟץɝdˆƦÙSʵ́ŭӇĈ։ࠣɛωٟݻŧȉɏhɝǯʁ࠷ƒϩȵѱĥछጊᠾ࠾֐၌ϣמ\\˦˨چÁĺѢĺ³Ÿƕx†ՀǤðÂǷ˘Ȭ"],["@@Ź’n̚ñ`˨ʎĩי"]],encodeOffsets:[[[60132,20704]],[[57742,25579]],[[57650,26267]]]},properties:{name:"Oman",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@MΥ٫֕ۖߕÄ޽ںՓe˂ȕDƳ¦“Ȟ_šd€[iű˜ĩĒ‰ǖJ̆Ʒáśī‡É_˧şĕ·ãÑ{­_©ÒǃZ·¹ǡaÙüÕ`™N…ĻÙŇǓ@ˣ̻ġíaé–ÏR¹Ÿ»ÝËΫƅГݽһɷ§¯ƍ̍Ʊƙ·ʼneí˟ý̛ʻįÛIęº¿Ƙȍôƅù§¥āŻŹȅ˟ʣć̵ըɋ†Ǜ£οƐǟ¼iľI´HÄjàHȱȎ̡ÖƟÐőv͛…u‡KŸÚšA}½¯D•gååa§O³Pã„o¬R°e‚ɏ¿DžËʗĹõNç¬Ù¢īDǫMīBËdÇ[ëh‹u‡C¡¦kMg_WuGʧȡFěaĉmıÑ£ēɋŲLJų̟̂řӨϿĖG̬̿͂ljĝ˰£ළřıĻԋȀх¥Ãţྥqjbzêrʤ€ĜSºNdΪbnvŸ|Ɯ‚¼ʄŤĪWÔŒܚƦdƠ²xR^Qǖ Gx›²»Š{RΏZ~҈iͶܹ̂ا࠸ıĸDžǐ͌ğٶǿЎĹࣼöҀėʜŸל^ॖʴĮ߀МϮԼyʈĠƅƌӨʠξ@ɬƙΈʬ‹иɔӲٔɦ̹؀ٞ¯ͮƚːʼnƊվո£̨͗и¢âࡢԨ۸Ŋ"],encodeOffsets:[[74844,37750]]},properties:{name:"Pakistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ƚĸ’Ŝê|łʏ"],["@@¿ƌÞr]ƽ"],["@@ēƇʂѵ˽ͿȉŐśЁѩۨŒ~Ūʜ͎Ʌ˵̨ĽċƧĞUųĕɰӓ̴ΝwƯijŇDZƙ׫͍Bŗϔӛսɱȟ¨ƍԼǡɱȣĄȉΔγ¶ÛĮϋVƽÙ[ƧůɢƔĮbŠUŪ½ĘˆÄżĤ¯ØĉÆ·H@͜^jŠX|~`º˜lƂïäЭŊā€ǿŶc³ƇƖąʢnĩƶҐ̟ѢĚװ˔Ҧ͜శ̥תӝ"]],encodeOffsets:[[[-83561,7509]],[[-80791,8473]],[[-79231,8867]]]},properties:{name:"Panama",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@Էσ‡ȕˆ‹ŽŗȳÏLŃo{iij{ˆsª™Öë°] {WýƶЃŶħŒgR‡I«°ñĊÅŐƏĆġHŃĵũijũۤĉǖбۼ^ȊŘ؄ͼ˺|^Èty©m­Mݗଢ଼ž„À~ê߸…¦OªFÐbżÄʬĸEƒkĄFݦಧʙͅāګǠУЩՁ]ƗǞɯȽͻǢя̾ǃǃřXƓԓҷk¡ľşVÑ@›@AÙÉĉÛƕ­¦ʋĽǹЯśޙ֎Ǐ͚޹Ӱ੕юୁڒίњͳɠω٪ݺˆδԝ࡮ˏʐÉͬ΍͂đϜϙغӛఈԫڀԯࣈ७ײmƴȞ†¤Ǧϡߺ¬̆پۜƮĞæǁ¦ˡ‹e‰q‰³őv«i¹b¥Jˆ‘ĎEùћ·T‰°”Cø ĄĘ¸^ÚĎ¿IJ±¢}ðRÖZ¼¾^ŋžă²×ÎóÀ{æAĢ˜lŽ¾j†²^Môf´ž¤ƨĔŽ˂ʬܐĖÙ͊Ь঴ΚӸΰѦԐŴӎZŽƄwS̤ƑƴÇƈϤіLˆʊgǞü˰űl›t­Â‹Ú…¾»”‘¤¡¢¿êɩ¨ÝŒ•NJ·ÊͺwÄÑǖ©Ƙύʦř–ϓƒ½¤¯؈MȠتŽÄ¼Ä¾¨\\njÑƌġǚlêÊòh¸hɚŕ¶ÁÔYʀő¦¯äƒÌe՛ऻǤíšEÄh–€’J”}¶ÖƗŴģ¨×KŁu£KÙ ġ]ß°u¬½šŁcDžRß]ƥƩܷŻΉȳą‹ĭīśĝùµŏw±yýљƵʡŸăuÍĊ̱"],encodeOffsets:[[-74892,-6621]]},properties:{name:"Peru",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@έƽ̀ɚîÛ"],["@@ɂŕĭÏΗêʄļ"],["@@őYŃȼȎÞɠśȗƣ"],["@@ōýbĦĬg"],["@@©Û·ôržêfFƻ"],["@@ËoKľØč"],["@@šUWĀźé"],["@@éœķöǢž"],["@@ƾ™Ĥ˙Ƒ̙Ȑģþɿo̵ŔŽXίͧ͝Eҗ̩ࡰŕÏʷӕǪȋâУˑ͉ĩЄʯǍ׷̜œƠýӶȆ͸ғΠơSďͳʛʘɅƝ©NJƧ”Љہƫf‘Țˎض֘DzŜɸ͒ɨΒɩ¥͑ͰƲǨ̶˜‹ŚΆɮēÌƄʐWwخ҈λ"],["@@ÉÔèȄĊɑħ…"],["@@Ѕǁƽrijnj̚ˌƌrȮŏdȩ"],["@@ǏǢƠ˒pѳ"],["@@Ļ}¸ƺƀÏûë"],["@@ģ¡AƶƐŐ©ɣ"],["@@ŗIŅɖʯƎƋ˸ÒŜ͔ŀΖƔ͐ɰĜɈ϶ţͿޓWɑƞ˩ǃǫ"],["@@`Ѥո઴ƒܽʯɫˣ֭"],["@@¸ŏáBjŎ"],["@@ýÓŎ̄༾๜èиȺ˺u̡ƈϟˉơƫɡ·ŧ̅ևऽۇ"],["@@űč´Ŏþ"],["@@̘|ĆƉ[ΧɊБŁıŻƬ˭ȷŖLԨĽƲǻīԦȴlj"],["@@ĿMĻưŴlĈǍ"],["@@˼g´ŻɜÏȽˇʟƒƓۇ͇Ų৖ƿǰĨ”Ͼɽ"],["@@ÿYëɚƦ‰Fǵ"],["@@ņ¬òǩʯGĿʖǸŏ"],["@@șŪƲŒ¨Ƶ"],["@@äǥǺʼn™ԇè̙ƌǁхĄǕǒįǼÞǨң͚ŵΖߐ•"],["@@˘ˑJǵӑ϶ˇʓâքЖʝ"],["@@ãȽùȎàɢŦ°§ʡ"],["@@HñƁʸźȅ"],["@@ðŷ·΀˘ɇ"],["@@мŸːʧdбū˳Ɓå˃ʖɫքʿȲÀĖʮ"],["@@ǚÝġɑƥľîDz"],["@@ƭčŗŎƾΐNJǧÁȧ"],["@@č̋ÿ͐ǎƒ"],["@@شˏnj‚ĞƆIJyħڙ̰ґ͑߃ґɃXɛǷ́ʮӳËŽŜ΍ϐȧÜÈóŶάƜʴʼnƘοǐðnȎиȋSīɍÛɨ̓ƒƃ̜ÙéϿƵļÒȐՙņŭͮӋϺŃkǘЭÉǛȉ˞ԉΖɵăƁNjȽ~ɉǤǟãi͒ʲʰfŸ̛ȤJͯű{ǁ˸Ɨ¶ʹ୼¶ÒˢɻǬÀU౺ȰܶтĜ"],["@@ă«IJƘmī"],["@@TùſîŬL"]],encodeOffsets:[[[123137,5383]],[[124068,6222]],[[125024,6583]],[[125888,7587]],[[119890,8073]],[[120172,8412]],[[127803,9363]],[[126667,9460]],[[129031,9545]],[[129085,10001]],[[127585,10023]],[[128707,10153]],[[122795,10738]],[[125594,10725]],[[126087,9282]],[[126332,9677]],[[126728,11555]],[[120127,8643]],[[122739,11802]],[[127565,11616]],[[127600,11769]],[[125437,11894]],[[122920,11985]],[[122983,12460]],[[125599,12605]],[[128246,12829]],[[126686,12583]],[[125025,12652]],[[126746,12753]],[[126241,13162]],[[123602,13803]],[[124841,13866]],[[127339,13960]],[[124963,15366]],[[124008,19063]],[[124848,19349]],[[124438,19827]]]},properties:{name:"Philippines",childNum:37}},{geometry:{type:"Polygon",coordinates:["@@áŦŔƾ±ˣ"],encodeOffsets:[[137826,7560]]},properties:{name:"Palau",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ȍġǧ™ɡĨénj˨ŷ"],["@@ƅÁćÞɎ["],["@@]ßĉ’ĨŽ"],["@@ǺÂÅȧɫĒƷ͐ʰʻ"],["@@ɔÑĘȿϩ˜ÔöÑƨü\\"],["@@ȡŎĊžĤµtȕ"],["@@˒ġ^ŝϝǘĮ¨"],["@@dÑijʀĦĘU˅"],["@@ɝĪɔoJù"],["@@ȵǘ\\Ŕɖij{Ƿ"],["@@ȧƧ̿ŢšΎϋ̈́}Ф̬Ƨ̼ѱ̘ȡŔʳ"],["@@ƝŀłĮœȭ"],["@@ę˔üĆĂǡãǷ"],["@@ŕ¸Ħņpƽ"],["@@ǜìʐŅ¯Й̯ɅƆʁÇďǯę̍Zʉً̯˿ۏwɩDzʃٗϔĂǔުĥЈ¼ŌÜņμä·ćȧĢǷ׼ÞΪФ̂Þßֶ˔ă"],["@@qó𳥬€ù"],["@@AᇴħƔĨͦCᲘ@njྴׯԖġҶ̽ΊiԠѯȺ‰ζοkӣ໒ջȢɏ˜̇؏·ƑħȤҙ޾؍ĶϙǢşŐ̙ԬhÄϹؼDžȿıĨǧࠌȇ͹Ñǜǯ˝ŗʫÞəȌအʄكִ­ˢ˩Ğԇܾࢷɲġƞ̓Ä̯DžЧʠʌНĝí˅zĄǙࣷķƩżşyɦƣ˖r˂ŇɠʍUǗ؁̭ΕƄअ©ƁĒ"],["@@ÕÛŷǒÑш͛Ҧ৳وˑøäƔ২֭ࠠܕĬȷƕͻ"],["@@ɫBǡƾɠøǞïPLJ"],["@@̶ĉșĻևuĠȠΌ\\"],["@@ȁèˆIJƺǙ"]],encodeOffsets:[[[157221,-11751]],[[157984,-11634]],[[154521,-10818]],[[154707,-10260]],[[154142,-9570]],[[153954,-9721]],[[156295,-9174]],[[154734,-8943]],[[147033,-8685]],[[151579,-5966]],[[159701,-6847]],[[150709,-5562]],[[158359,-5563]],[[149524,-4839]],[[155562,-4399]],[[156335,-3208]],[[144360,-9337]],[[156637,-4870]],[[154048,-2725]],[[150598,-2007]],[[153360,-1590]]]},properties:{name:"Papua New Guinea",childNum:21}},{geometry:{type:"Polygon",coordinates:["@@βছثНВȷ¡ѭºǩδοċÁĀɹıķɕ֥ГˣʗµÉX¯ºʼnX·uĽŢ÷ʷQÅRϟņ͋ǞҹNǯēыÐʱǡʧpdƘ˧ȎʗǕˇĤɩ̲҅ƀŹÁȹŨÚdžʋ«҇ƢĠDž̍œέ˒ǬŴřèɱ™࡛͸UŅñqñEJZĔ؞òy˸{zƱ¼]jzêŗǤŴȾÓƘÃz•Šgž`Ò¦ĈėİɕŘĿĄV°żĀÚâ–þDdDÊŽϒ˘ùsƸ̅ņဌ˸̾ɜ๜ʆμŻ˕¼ʹ̿٤øԖ࿮»ӂS†N¶ÐKêoŽex™œIêcĦ“ò‘ìµ€ǟ"],encodeOffsets:[[24049,55235]]},properties:{name:"Poland",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ū€ɸGŋw"],["@@тÁPś̍ɥ਍jÉ̶ĘŔࡼ¯"]],encodeOffsets:[[[-66995,18541]],[[-67716,18888]]]},properties:{name:"Puerto Rico",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ƈȝϛijЕЃ¡ܗ̯ŋۣԃߋ̉ơӗ͢ĻӴϯ˯˅ߕqϥуɝĆɅŕ̇ȲΉɕŸIJ˓ôǾŴџ¢̈́άФň͕ĴȮО£ȨӯȚŗťɵ͞ѸϤऌϐوېDzšȎȥࠀťŠȂȳ݆͊῭͒͠†ǚҨ˾ęLŭɾǫ"],encodeOffsets:[[133660,43557]]},properties:{name:"Dem. Rep. Korea",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@мġ˙ăǩĖˆĐ"],["@@ϼGQÕҙAģŌǔ«"],["@@è‘͝GÿĢͶÇ"],["@@ǛÖŨ’´ħ"],["@@ʻļɒpªū"],["@@ũYlĒľ÷"],["@@έƣٙĮͳõƸͰÉࡠǴmŋĀΏÏ‹ǬȖøȖ˨́˯ȃ›ĻĎĘҒҌٸŸ՘ÏߒōÆĢƪіǒĨ˙ؾlɎŮѺÜɧˤş׹ѭIJ֓ȇƧŘũáȉţĭΗiҎԗ̃ԉȦɵŰNУϭŽң"]],encodeOffsets:[[[-17603,33658]],[[-26264,38750]],[[-28822,39376]],[[-29328,39450]],[[-27725,39571]],[[-31884,40353]],[[-7583,38072]]]},properties:{name:"Portugal",childNum:7,cp:[-8.7440694,39.9251454]}},{geometry:{type:"Polygon",coordinates:["@@lÕ\\±„‘„«‚{p¥pljîʵĥڧYʻলŷ˞ƺ¬_˜ïĚñ²_ǖ@ŤwĄđNđňƃâޅjŸº¹`ė@Õx羅ä[üYĨhĊp̜ƊƼõÎÍňۏɑŽۅ‹ĉřdzIţaߝʭɋͥǝȓʑßq¹ŸË…µFåËåµÙCƋúdzHɭțนɾν‘‹IJpÂͬМ”˾ȨɈ͊Ӣɑ˴ଫӘףЀߕȢȳǜ׵ЌΓӎƃƤƙöíºB|sx̾ঘBцѦޘเ̈ޖVވѿj̅"],encodeOffsets:[[-59555,-20648]]},properties:{name:"Paraguay",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@đëƒì]~ɼɘ —D_ƫȝ"],["@@ÐȠɆŮÛÊ×lÏkkNOdŠÔ…Ⱥ°Ƭ°ĺņØĤkêi`•æ£ÊKjƃķّӏģ"]],encodeOffsets:[[[35173,32044]],[[35718,32121]]]},properties:{name:"Palestine",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŨŸIĿƅŊȥE³ƞɌ–¶Ɨ"],["@@°£Ə¢ĠB"],["@@ǒŸʳóĢŔ"],["@@ËÈրIć"],["@@ŧemŎƴG]ğ"]],encodeOffsets:[[[-152905,-18114]],[[-146883,-17018]],[[-142360,-9927]],[[-143437,-9652]],[[-143434,-9124]]]},properties:{name:"Fr. Polynesia",childNum:5}},{geometry:{type:"Polygon",coordinates:["@@÷iíkÏ@³RlÓì©Ģ€¼XŽýіȾӨɒƠʀȿ·ͅľЅƱ͓Ƈ½"],encodeOffsets:[[52499,25198]]},properties:{name:"Qatar",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĘēŒ¯˲©MÎĦiˢĨƲbƐ£ŚġůΕёï Ǿǡ³ʱধ̧~˳Ǹϫ‚˵ŮܷƇ׿˱ᓝƐ§ĨƈŊ˗ƈaVNjƾºĘÆlæM„^YŠáœŧ²ū}ųīěgƷŀɯšħäƍŠCˆvP¶HàNZjƧøĞƲ…l՗ɴgʀ]R[SeUeE³œÑøȇĘįŒrȒ„ĘƒŬĨ̤Š݆ਈ݄ψƮºìæÂEǤāȄLߚÃʹǧТƾȌlȂˆɈtÖҔ¤zúŘvƪ~̦ėՐۃϪ̥Ƙ˱Ƒ࢕Śů"],encodeOffsets:[[28890,46542]]},properties:{name:"Romania",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ýÎɚbƛï"],["@@̢µջ˯˝ɑ}ƱāǦظՄ"],["@@ֻ˝ɋ[ٓӕ̊Ϟ՜̶ƂŎķɤjШȒtŭȧ›"],["@@ȭ£ѠήӺƾܫӇ"],["@@ɻËӆ˂ʉȵ"],["@@ǗcǶ̒]˭"],["@@ѱɕŻ¬qǢϲĒΖ̸ƧЁ"],["@@ȥØǬŊĤeéƻ"],["@@ӂறƙ݉ŦϛѢଋݮൣ֑ԠˇÀՃħѿृa˫ֈߋɦ•Ă͡ů˧űѾףŢсڃȷ҄Ǫׄ×ϔǾΨ˅ئɴیÛࢾŠӼПќ½ҌǐѪҞˌƀ͒¡ưϖ̷͔ΪĨ"],["@@Ļƣ˹~϶Ŧ"],["@@ɠ·С̵ɑǮȕé̂΀̨ĕ"],["@@۲ǙдIɐƿşʷGÏðŕԇFࡹ‚ಉÊ̶ϲҞÖ͊ʖ¶O̥ʟʹánj‚ ˢ"],["@@IũݥԎѲdyū͸˛"],["@@ĵˆǒĚÛš"],["@@ƏÿʒьھǦ˜˯ࠗʁ"],["@@‹ǣȿƤʌ€"],["@@̳ÀűƾӘ±±Nj"],["@@ަƻƲǩԄŔƅɔÖӝȒ܆ɫ¿Ïሴҝ{ˑ̺äŸóÙ؍ΠïĠNjʺňhȱʔǤϩǔŪʼϵŮܶ°ѮÛƓĩÄĩÈź֢“ХĦ৲ŏઊӵāāʬž¶ĿϺu­ŧ׫ŏŁȳىǂˆʣڧ_݃ƼҨȍÛƯ̑w͂—ÔƁܹșʆuċƋоǷ˱AƏĨµǕ˅©ɀͷƥ۹̒ۗîϫǬȩϮ߳ŤεġޣOѵҌNJeȂ͚˹Ƿɳǂƹdz̗lęʃπ͑կϙ@ȶ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶBȶǜ™"],["@@՛˛׹įЅÀij϶ѴȎ͊b࢒˙"],["@@͓ъ΢Ȟا"],["@@ܑìНȤвĬࡢőƣʩ"],["@@UǫګIœŪҥvεΦѺŤ୸ѳ"],["@@ʐűƛȹٯˈռä"],["@@ƫɼ૆δ@қख़Ɠ"],["@@ȻëխĚن¸Ťå"],["@@ذģԢʣཡȹӫÖ@Ҝ़"],["@@ٗt݆˄Ԯů؛LJ"],["@@ܱňҀȲ˲̹"],["@@ЕĐdŒٚŸʧǁ"],["@@Ͽ™ŷâԸ‡"],["@@ठěʵͧ׿ɍėԩং۟ঞͅЕŝٕŨĪƕڿŀ࣯W৽njʌǶТŽطǸDDŽఉ¯ΩƢÒ΢֜¸ΆǨɊ˨˱ļڒŀıɢಬǢѠá"],["@@Ցµ›˒ߎž־˷ߝá"],["@@঄˝Ğ˳༕ä޹Š݃ąતіऎ~"],["@@ؙh˨¼Ͳã"],["@@ԍßǹˆ܂Lyȱ"],["@@ԕʱ੻ɐ͂VǤƼબů"],["@@ͲDĿŷ֙Àͨô"],["@@ǍƟ˕”¶ƎϠÂNă"],["@@൘˜ƄƩሜãƩDZࢣƟધxᅭͰ͐͜ɐǯ"],["@@йiȺϦЂȩȁǑ"],["@@٤Ǖ֜юসɯࡢ@ඤ˩૷У܋ÔχȄǴ͂ՑkğʣޮΡջűСƞกŧӱİӧʵࡍŠ१Ѻ˼niͶπTūǒծƆײèै̱"],["@@țſࠩþÎØॸU"],["@@®ƝҿƪђK"],["@@فWࡐŒɍĹ"],["@@㎅ޡ࣡ʵȌđ۝ʛιêǗǧыZêɫ܍dzUȵϋÎȖƯӟʕ҅Í஡ƀקđҋΒ݊njזϮڞÞүŌޔˤׁƖȎÎ҈ăɰɆٚSϜ˒ۖNJ୮Ȯ֎qɔǮ๨›రŢᧂՐ۬ÝϦȏ঩Ё"],["@@࡟O੒ƾȱƭ"],["@@̹ŽЊìďĹ"],["@@ƇȞđLjըƦǂАC׌ɯٮϸŞ;˾࣬ʟƬĎÔ̪ɀĢΨդʲࢰӮΎƽʶČȘ̹Ķۙɵ˗RνƃșțౝKȓʺÒ˔ɃɖBɒ̛€דкη]̣ȎסϗȞ’΂ɅŠ}̜͏ͤө੘׉ֲӗƊəÍৡΌᔹɗݡйuŻӴÇĀЃֵеݹ৏ƶŃïDZڷȇӟ˥৅ʼōĆǙ¶ő€éDǩ·ŋŸÝsʼnLƅTÃ`÷ŒɫDŽɕĄϏ”؉ɣŅÅŃÉŻÝÓĕ‹Ûş¡ĝ›ĝaǟtΑĝճçý\\ō©̓řıoɿÞęGŝ֝ČÙvǻŽԻWùfĭ°χɐ£ʚʇˆʅHĩF÷˜đ®ċĢȕĮŗ`ǥUų[ۭƜયˏϏ_ŗvÙnį\\࡟͔zŐďĤiȄ—¶SĞdœG¬™ŏ|ƃȿžǃ]܁ɖÉZȩHǏNħfǝĮۛȸɅˇҋˉɷнńʼnÞǭ¤“ȇÚWºo{șȷʍէɭŵUȇŸ֝dȽĈҗñΉpƳĞijJýI—_»G¥ÄǭŒēˬ९¢ƋƤëXÝU“˵w¯J¡ŒŷàѼ¹[ēű͙M̛Ɵ­×D‘MÇUDZ‹ƷûßcŸ¹‹ԍŇ·DžTƻ×cĕá£ŷ`“mÁÏ}ďyVqp‚‰WáǕŒυ…µÏgĿñ‰“ƒ«mķC©Fȷ—ċÿRבВ¤ǶгɷߕĮȱϐ֕ƬͅҊӳȂԃďɣƑࡷXßǼˇX²ȈͣĒʋġqȥοƝᅁᐴିوÁňȞMƶʠ୳̑ǻǏ٥ȹċƅбŎϝƟčɔ΀ˮЛíԛƪƧljɕ͒ƳĵމNþ͘ϕצұţৣȐ٩ȓ§Ʒᖭ̓͛ʃՃšᒁοוÔɃͭҲĉʱÝ}ƃϰ¹΢ȇࢇƒɯʟȄ˵߷͹κʁࣺ˛ƓϵϓƑѣa̭ƞȷɥʏõÏņӍØѱ̴ѧxͭǝαƨѧڱν࢙ήñЍΑъکψ٣@̏ȒܿȟƱƠ̵èҟσػǥƥșוȩŒֹΣÏՉѪɵiґ։ñˣȖǻˡ́•ͣͼƯȒЯDŽÂּăږ޷͵caŵ׆ɥҡɁžǃȱŽܓ̍ƛĄÈųƭʿե׵ԌͳžҡƺˢƷ܋ठ৅ځէЇêӋѾˍàǽĊӗǺG|þȬkpţŒȁKƵŪõfҊÓviSáʼnáþ¡tř\\Ʃ›ȏñĉkŸyōJÅnknV”žœYšƅ¾ÅŠϿŨõ¼Q–șàয¦ĵ´đ¶ɱ”ššş¾Ź®Ӂh»ËųWॿۆ҉Ōˣɼ̗GʓɸӝƮ˂ŜȃèŪ²̈ŽθʅǀːξæžÆĥĔƈʺIӡˈŭȖؠx½ŲܖʘćƎƟFăą́sǮĤҡƛżѦҀȶ݈‚Ʈ͎ĹɰDž¤ŮǼǰ\\ˉƾ΢Ȳy˚ʥIԗʆɍևȒDZōԽЮګǝхǘѳ‘ɻ֦Ȼƈ܋ªýΤɶĐ֍ӄથʿɍ̟¨IrÉӖ¡nqxPȄiȐ}ûÂ÷Òµ´‹xĚĺpž|Vζ÷ʖ]˞ƮĞ–Èb¼Pɇˈȿņǩ`ƟIÇfÒŀXÆW~…tƍ°ȋîĕĄĩƊġäĴE^}př ƻôOn\\°t®ŰŖ@Œg¦åðÁ²GzVpäÈLƢɿĆ͡ƮLJQėR±Yµ‹ãsħeůÉ͔¹ºlżࣷİŗò®İS²mÒ·ļOˆǯǐUê|—\\ƕkLǰP¬SžpɏĨwà“`ıH¢ŜŤŐȤÒɵ̎Ëӈ׼ӲśĠžʢɶõƸƀΰiǘƞࠎŁ¦ìϛȦշEΧƸʼnʪ׹şཤࡔ఺޺̆ͼ̑˖ৃѶњʊTƮЇȲ€˔ϿǠȈƪǿĔĞ͂͘Đࢋঔޠٶեͦօņǵʤʪ̝̐ÂҪIJΠɶטŔþǠֲćRȶ֬ñϚĨYŦ࡮șýĵإÔǚǏԺQiđЎ¼ˁ̟ҘȮᆤı༼пט˯ड़ʅɊ[]þӒˍӰıͤчƛ͏࣯ѵௗșᥟ˞ׁǸ˻»Ď઩njȁȰࢇÚ๖׿ʛħلĕӢɯîƷ̵̹Ոߥ٢ĕӀ˩ࣞǃѶŖĀŤĝȔ٧öҹ˼÷ǂ̈Ȟᝂԃʦǎ͘PիӒfȼආѴؠͬ࡮ĕΜƑģŃʪfɖő˚ްիˈΠ࠾ܷΜ׸ĿༀËڤՋঋûՃ˿ֈȑ˖ʛԜù঎ƨȀԞ߬ĆáǸͶsᛶ֘͸ƽ˚Ŏͅľ௪͚ׄE׍íŒЇ֝Ɨ৺x͖ýҴ̮Հæ࣪āࢠ˰ݒĮ˂ɣɫʛՄûƜ̖ӾnώɐٙԖبɌ᪂ʿפʋᄚ̽଴ҹ٦՘ԇbҋњ͋ĖҹĠƗŝ͚঺šĊυeÁɚൊԐ૾તłą๚zાȇȧ֭ץү۲гŅဵ࡞УϝʧÓΏਁٓЙƤɹۃƏ˽êʸŦ΁¹ͿƆևaǡ‘Ʋǭ४ȣࡦdҸħ;ðĄȔୀκʂΚ׎̐ͅռǂ˦౺Ȍ̐DټёÃׅԈǫॴh૫ƌÜςˤÎ˿զ൳˨ӣHԗůࠓ¬ɑֈ٠ٴ੍ܮӮʹૐʦǣ֖̮”ӶҳϽ˳¸ԯആǵֈ’ؚȥԸHŢÌзQ̿ɮ๻ʊͳ̞۶ĺހǑϤĮǻŞѯikĶوƼ৔F૸ʓݲ̻आ¢Ўăމ΃ƅ֋¶ǝծҸƊ̧̽̇ͰĽMƸ֌ɨӭҶ͒Ӥ˫džұ¨ҩ˸੡Ȉ^ϰΕʂƆ˴┰Ÿ්Ɣऍϗݔ˥ا̌঴ƄϚǒ࠿ζӍÔͨŒфĽ˨Ž௃ʀΊƞϚő͞ĆΨȠѹ°ÊĐ֒‘ᑜϲ὞˒হE̴DŽዎŽк±ΟǃܖĨWĩᆒ̐ञǵȕȗʼŎsǦࡧ̂ႌšيï֛IJ¾θശѤ୼Ȇႜ˷༙ʍᘪÉШĝࡡΏસTϮǺ᧮§מǧŵċ֪FŠˣ԰ǖʔ̟ʘ|ʏ̑फɘцɑʌ’ОƉڧλᣭ׋}ŷഡЍޭÕӻʑЫm࢛ѿӄº٨ʬ੮†೤˄Ѳ_࡚ɒউZҰɰڜßÚĪΚq˓»ƢşظijհŒ”Ǽǒ£͒ɟɓǁˬħ̧џҌǑϗƠ֞Ғ́ƆໞǔᲄƑΏÕuǽૐɣᑔĉаvřĸҞÕϲȨōЊࢨîࢴʭրĎʢǵЖǴ׬Åଢ̳уǽΘmȞƕۧƛܨćňɫЍñ्̖ŽŁ࣐ҫʤƊɀƩԯÛޚҙٴȑȂÐɞǻ࡜мԲֶ࢈Я࡜ŸܚȈҀT༌УăĀЂĊͩ¸ˆDzҞ„ΰƹٲ ɕ̩ͦÈۢȪࡗw‡ƔϮƔఔúɫʰ੆ƛ⇈ɻcû௫‚ԙĻŀÇᒌĒ׽̍ĮNJЅöCʇ׉]ŀȗݒĦৄѨሪƍѠɥ߿čãĕൎƝхʙܶżԬÿєɛˣ‘غů↨ɒଐ­ૄȽվЗɷσ঴ɝŀяɲĭϡϋ׮̮{ЌՈȜࢊĒᴴǷࢊȔϒϥࡐljʤʙެ’ϪȂ΍ҎϘ˜КᚔʅƊļᐜ©ᬐՕؐɳ@ᾕకϵ٫Īܱ̪ҏ…ג¡ƼřŻÙࡏƤ౗ɵ౎ȄʜǗǭĵઊƬLˋɈŝ̜ïƺŪŸē̎ӿʓ½ʬǯ¤ŪԄͥŇśʾˑϙ̭ໟɺ ƶ˅IŖǹᕩإݟěЯʹɱÀ¨ƁїŧEėງՃɍЁ̱ĐًѼࣷmއƕߡҧŗļǺь੣͗ŋɉέǾΉƍlð͡š͇ȷûЕ्ܕƱ̷β̟ɚȚӔƃϑεXЛŌŷˬ‡âϣʍǁǧlDZƔΈʒ̯ťȕϋƝ̡ӽ͎سЙȣ܏tו̑șͽƴջρĞ۹ˡɯľŘƅĭЫ͛ӕ੍ڭċ‹ȏΊſैɇ̚ЫှÅОάଆܮԄņƨŭ˂ԸhǺȄԞU޼є՘Ԟྀࡲ˄˄ൢϚſĠϞˌǛİͺۦ͠ƬԢąǬÖ࠽ɐࣱŹˁևȪLJƟŇȕŒϳ—ൃރӽīǦ͚ӵÍѦ߀ٍƥ̧ǮळƧԍž͓Ľ଱࠱صʱ֫җťʯےáDŽɓםvϓşˇŲ˫UҗʍлĖțĵٕ‡ǣǨड़Šދ˴ܩÇƸ¾ࡳǶӝŝŞţ΁œ­ƅȄIȥġЁƀرūࠏǂЧʉеȲጥ™ԣʼnຑ޽˿Щ຅܉ࠃۛᎯ৑IǯԀůߒŒßۇξd]̢ѴĐ˝ƷжŹӥͳה¶Ӟ̘”şˍʛǜZȾ˪—ή֎ė͚ìֱּ࠘ʭljɷ˻ÔΔȹĻͻ̒ɏıɏηʧ΋ۍĔ׽ƋƝ°˅࣓̅೫௻Ƚћշ؋ಗૣɣīر܇षӟ܍ɁϙƮͽPJβωǿÔǨٽ֧ϗ~ŀőŭȃ"],["@@ǵÕࣇè੾Q"],["@@ЅΙ୚˂նɥ׎½ƖˍӑƇ࿏ŵ೽Hෟǹჸା֊ÿźƪЖƭ"],["@@ૺű߃O͵Ƃ"],["@@ળŴŭǐᓘŁवȁ"],["@@ોŒ܂ĨЊų"],["@@٧|ՀŒŨƍ"],["@@mͯߎʖ௸ɳ͉ϟ՝}ݚ˧ౣƣᝋʼѕک̌७ĀྔԐʜÇ፤ņ"],["@@зì˞ÒƚŽ"],["@@ûɻথ`ǴɈࢮT"],["@@ফzіDŽ࠼œ˥é"],["@@Խ†ɏ˰ᆲųܛqχǏ"],["@@ԓFÆňҎō"],["@@ࡈ¡ȨơࠓŎೃˋƟļࣃ”ᒌȲ"],["@@ûǽࡱǕٯÜՅÁµ͖ᓚd"],["@@நȩᝣ˫ƖLJਭåƀƂݷ±̅İ੄ȔৈYƂʲࢄĘ"],["@@ޭ‰ĴŰࣀUɅď"],["@@ࢿ¤ୈĖˇŹ"],["@@ๆįञȱීŃ৷ĢԻŐ֤ȴ"],["@@ʶǭէÇࣙɄ۶ĐӖÝ"],["@@ٿźᇮ̀ՔɟჁș"],["@@˿Ý૓Ěඔ{"],["@@૾ʿ܁ȑɰəᵥɛᅋ̌ศζ֛UIJüᏘͰՠTؐǣ"],["@@وŅף§õǕႭfȿļጀȢ"],["@@ಛÐഔP·ß"],["@@ƉĦॆvĂāࢽ™"]],encodeOffsets:[[[150236,44794]],[[149717,45566]],[[152166,46406]],[[153281,46738]],[[155651,48023]],[[158526,50496]],[[159664,51510]],[[160159,51874]],[[146188,55700]],[[140471,56423]],[[141252,56415]],[[21746,56591]],[[170650,56156]],[[154205,60436]],[[167563,60010]],[[36676,66747]],[[71702,68099]],[[-184113,70595]],[[51472,70847]],[[165343,70555]],[[173262,71251]],[[61902,71614]],[[54174,73078]],[[183155,72527]],[[141271,73224]],[[-183169,73295]],[[79496,74027]],[[81410,74468]],[[76453,74623]],[[123148,74844]],[[56648,75068]],[[72371,74850]],[[145598,75670]],[[85555,75850]],[[144395,75776]],[[116109,76187]],[[88733,76781]],[[84145,77230]],[[150319,77180]],[[139212,77220]],[[143410,77649]],[[98850,78109]],[[115178,78460]],[[152730,78500]],[[69392,78068]],[[98597,78876]],[[91663,79042]],[[133824,43318]],[[110281,80007]],[[105354,81157]],[[78079,81563]],[[94908,81598]],[[52644,81863]],[[61122,81875]],[[100019,82083]],[[51254,81997]],[[58449,82280]],[[54806,82110]],[[59348,82047]],[[55722,82405]],[[48581,82795]],[[63660,82775]],[[51485,82870]],[[81948,82789]],[[62609,82894]],[[56033,83063]],[[60030,82987]],[[64895,82637]],[[93765,83089]],[[98844,83022]],[[59198,83504]],[[65179,83568]],[[59695,83677]]]},properties:{name:"Russia",childNum:73}},{geometry:{type:"Polygon",coordinates:["@@ƒaM¡ŽÝľƅà{ª½¨ĕÂӣkĹuÕǃ¡PµSÁo‘EŧòʓēƿÞ¿̓ƛßʵ]ʍǴóĽĵîcȢɊǤÆЌ͊˨Ⱦ¬Ėœΰͪ¬X¶E’A"],encodeOffsets:[[31243,-1092]]},properties:{name:"Rwanda",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÔôĈț̙ǪºȊńʋ"],["@@ݶęȨϧ٬T̮իWƟφș¿¯Ȗɍضѥš`Ǧ̵·ǩĽVѶࡱĞĻ¸ÿâãľǍŽk´QÐ@îløjЗÖNďȗɒ­pǩߴ३ᒤʽèèϤם֏။ᠽ࠽ុΑܵΥӽשř˱ʣƑƕNȻʾ৉Œ͙ŀਙđлLjȑƁu֛̫ˉыࣂҙϚѧژЃ֭ࣞі̑ľϝӬƵ˰®Ǭƅ̦ØװԇऴқЊ́Ě̥ѺîŠį˦࿿ᘲϩĄćŘ઎लŷǶżnjŞĮƠĤƒª†׶ňlbÀŒäƘbdhdnjĂİ´сѐ̽̈ūŘɎÄɺÎԲžɜÈӲنZŰİȊƒ˰£˖¡˼±ĠഄڿෘਙߊսൠʼnƦ‚"]],encodeOffsets:[[[42996,17117]],[[47649,29795]]]},properties:{name:"Saudi Arabia",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@²·˦БAÍęÄSĹªܣɺધड़ۃƿƳs›WwW…u…µmi[ЃŃȡő‹‡µƯ•ŸƋIá_ĝh©C[gŻFÇùƧt˟̇޹ŝȕlljpǟ¬ЗͯఽϣőҷڳƱߝƇıǗŒȑȅƒϽȝؕǥœü̘³ˎٵӄ³ܢłԤБL^ǵ֑EɢʝèԷ৏ઑЁËكҠͯdzōʝбƥŕɥڛFƙɰڳXΑʼnةּ½ȦիÝŧ‰ɿѥɇݙ͓ȅԟŴÍʤżȎpМډआÀΨ˥ȠUΈĝàĵӾΣdđĦ͸ҐĹЂζ̦Ɓ͜ʐƠɘτD̸ƞƜܮfRṴ@о࠾NBဲᢴ@ᢲAƘPŞǚð¯©ŷ⯀B"],encodeOffsets:[[37757,22525]]},properties:{name:"Sudan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Iޓijď֡Mʁҋݼ͟ƊʃլӅɰګʆ̫ƷƱǥǝȧȟɓɉǟǛǛǗȟȡơơá³Яŀ֋ƣǗƽ˳ʂɁĿͩĞˁʛåŒƝ@ßǰˁŬѣԖǩtȳȁлĨʥƳȡvͻʜ͓϶ɑԪՉ̄ǥ͘®ưࣩږćŊhɂ̇ˢҽżŧ͔̾ȆɈݚʀѦŨŠլÞ¾ȥتֻΒŊڴWƚɯڜEŖɦвƦŎʞͰǴلҟЂÌ৐઒çԸɡʞ֒F]ǶВKŁԣ´ܡٶӃ´ˍû̗Ǧ›"],encodeOffsets:[[34896,9689]]},properties:{name:"S. Sudan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@¬̍ǬɃ¸˥ÿȯȈˉǒ®ȶΫBҋࡓÃҁNJʼn—kŦի”˯BʅB܅HƵùǑĉɝ«ʯhć]ƥÙĕgŕb¯S£ƞˊìŽĘũʼngДĪøۄFjƘѸÒŖƈݼˏΜƠųŖέ‘םʸˍíçşࢫBǣˊŲŖƣ‰̓ՖƫöĉÝùĔ͜Ɩʮ̺ɮφˆĔ„ânưĜǞ˞ЄŸٸNJ׆ąδεĦr̆ħʰХ̶υ˜ȯņã"],encodeOffsets:[[-12575,15165]]},properties:{name:"Senegal",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ˍKƘĸŶī"],encodeOffsets:[[106465,1364]]},properties:{name:"Singapore",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ͳ•´ŻːVѺїʋēڧѸصƠZŀͯ†ސµ"],encodeOffsets:[[-37993,-55363]]},properties:{name:"S. Geo. and S. Sandw. Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ùMÚĊ`û"],encodeOffsets:[[-5828,-16381]]},properties:{name:"Saint Helena",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@őaϧːӺʭ"],["@@ȕÿĥÈȜļĠă"],["@@͞Çɦ̳ӱĘȽŶ§ǢljˆVĺΈƵ"],["@@NŧŧôˢƸɭ"],["@@ȂƇ͔X϶χƛÅ܅ƒDžʘ\\ƆŀŽ"],["@@ȪŧʫºÂî"],["@@ŷ¤þèĊ‹ÿ"],["@@ƛ«yƞǐ|Fŭ"],["@@ƩŰƖŨTʗ"],["@@ȼʡ«ƿǶƋǬձԃծµΤĽƖƆ¸"],["@@ŔɝßėșƔ}ƨɋÁíÐɰʢɮɵ"],["@@dzĀÆŬƌÕ]ƕ"],["@@ƩǺ¦ŒȼűķǙ"],["@@޻дУиɶ¹הΥΌʡŠǩ"],["@@ƋP¾ĮĎĽ"],["@@ā˷ĐկּӠɇƌɥʚƛ"]],encodeOffsets:[[[164431,-12081]],[[170121,-11015]],[[165597,-10636]],[[165425,-9856]],[[163585,-9495]],[[164013,-9211]],[[163010,-9342]],[[161903,-8892]],[[161167,-8922]],[[164608,-8513]],[[161550,-8439]],[[160944,-8302]],[[160449,-8113]],[[163717,-8739]],[[159580,-7267]],[[161267,-7506]]]},properties:{name:"Solomon Is.",childNum:16}},{geometry:{type:"MultiPolygon",coordinates:[["@@ΧŔ˲ÈĒ¯[ū"],["@@ÚăIy½śFwh[ĤmĬ̷Ʃʋ‡Åt[†R¤UžG¾žĒĴ†^ÞUE{ţ›ĻǯįÝʽȗȃ͝ʱȩ˛ࠓЖL̰ǽ‹ŹĒė˜ljÎĽǺǀKLjǤʍ«qɢَȝƘǸjĴnjǠĢǔ˦ŊnjʊmȚİ՘HÌer«Œśʐ͵"]],encodeOffsets:[[[-12826,7615]],[[-11016,9611]]]},properties:{name:"Sierra Leone",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ȱ›Ԟ͡P]N¹^§†E’rŐÊŀœƈĝĊ`øIУbyÇʕű˹ىĐƤćક͂ʓƪ Ɩт˴uŰǰt"],encodeOffsets:[[-91507,14762]]},properties:{name:"El Salvador",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@įehɼĈɕ"],encodeOffsets:[[-57617,47963]]},properties:{name:"St. Pierre and Miquelon",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŝ¯©ƊȀƬÀƉ÷Ļ"],["@@ýˆìĄRŋ"]],encodeOffsets:[[[6820,124]],[[7602,1606]]]},properties:{name:"São Tomé and Principe",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@tƱ­ăĿƣ_“„ŧcijO³»ĕũɃőıƒA‰MWQ›B‰‚qèŻR¥ •¨U¤uGś—Q×Pć¡·U“¡̃‡ȏĪ‰muĕsy•o••Q‘Äm®á¶¿ ±K¿O÷ù›ϳČȅĂбۈėѲ˿b΁תǪӈÑŸǦƜ͌|ĸƨğŞľǴȌώؠě˴ƻWnjɘþۄFټƱuʱͱ֓ňځˈΥ"],encodeOffsets:[[-55331,3717]]},properties:{name:"Suriname",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@]“œƃÿƿŷįWƍ̩É˅Ƕ߱sſș͏ů˙Ü۫ȇÉdz߱cԫȤɿ͌òDzƶȰԼ ˞ƪÚNJ֠Ɉˈģʘǖ˨ȍcƗʨoʲǢьÏǰĔҺM͌ǝϠŅÆQ"],encodeOffsets:[[23080,50251]]},properties:{name:"Slovakia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@õręVǷŷйǭaJàĿoĹ̿ŇÞÕÏãPˆZ‡ćuŋTſ¤ƉkťĀ·âmLiy“ãíµqЭ«ʧöɢÜYòƗĤÁǂùKkZOnN~¾¦ÌšfrEhǯˆkĘƎĈ؄–\\j¶܌ĵ̀ǦࣄÒŖƼdžKȜ̛"],encodeOffsets:[[16913,47616]]},properties:{name:"Slovenia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ćŸe˚Ԧٶзࢯ"],["@@əŇĀʷٗБŞƎűЊͶɰ̨îƨã"],["@@ϵ¤Įǒeƥ‘"],["@@ࢭÍכłūɝׁǃ˜ūǕ´Ǝljλˇٍ͎̃ԃᅿ׃ʙƳŴčʗęɛĈŌʋǟćΣLȈɳɑ̭úƵɥ’ÇůĸܿΆƑʜ®ݮӁİɥࡋͯԄˆɱʇવϣٛc׬ťɫ·@޷ʫړѭӭ࢛ŒwŇ̑±ƽŧłʯƗŋઋ^ô˲хҖˤuŧƪǜXtƒϱʐࠅ৲eȆƵzďԶ¤øNJ•êŃƠbž̨įʬڰўḔʙҪΌ¶Ƥʖ؋̴Ůӄʭࡌƨʰ԰ͺΊÚَ»ƲƆÁʔΫİۤ؂Â۠߆ƪ»Ƹ࠘ӆɵ̸րЀҔǬӼś͘ӸඖǗ͆вșƠь`ୀџܚŹڈ΍ƹгɼ‹ýʙ̈ˋʍҷϤϓ"]],encodeOffsets:[[[16926,57642]],[[19535,59224]],[[19617,59313]],[[24736,67385]]]},properties:{name:"Sweden",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@Ħ»eɛÄȧNˍóz}MwţkdzZŏǹGɯ^Ǐ´ǯłĿǔ¯ļÛNYlR̎ʈζĴŚņô Z„GьȇvX"],encodeOffsets:[[32715,-26580]]},properties:{name:"Swaziland",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@DýƅƪÔ¦îő"],encodeOffsets:[[56874,-4805]]},properties:{name:"Seychelles",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ӏї̹éĵŋ¶رƅܷǩ˷ᇳࢳ࿥ࢱϑÐӫ̈łǸ›МƔź£Ɩ͈òñðʴʞãǰƥÊ°Ƅ΃yÕڔśŶÚɸ®ÊØMƈßvDnjƜzƘɖÀJ|ēǎR¤¨ǐ€Ü~rIJSƒ…˜±æ¥̶SôˆǒÆƾ¨ʈĜӘǫŠDǜ]ȾBŨlƺŠˤòׄɮ঴¸Ƣ¤ĜêˆRœ_jIœŸžķ"],encodeOffsets:[[43376,38e3]]},properties:{name:"Syria",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǂ·LJ…Fþ"],encodeOffsets:[[-74068,22376]]},properties:{name:"Turks and Caicos Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@QṳܭeƝƛC̷ɗσʏƟƂ͛ε̥ĺЁͷҏĒĥΤcĶӽĞßV·˦ȟ¿Χ̭Þ؇̓ó̓އݑαɹ୕ǁÏđȈƱқԡޑ½ܩεȩ˄ƕƵΝƧБbÎɜη٨ڃլ̗Шɢʎஊx͇̌ťʖđϸªؚȟւ͕Ѩǻ²ƱBōư˛ϒčΰµȸޜଶच঄ɖᠶȔΐ͘hȆΥӌǟఊࡊϖ←ႱỨལ"],encodeOffsets:[[24556,19965]]},properties:{name:"Chad",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@řԛӈ͝²ՓǸʽrႫÿIȺוŽßλŃϙ̨ǯͰĞцœNJƾڸˁͼĮüŒҢʗÄĠŠß”Įլϻ͎Ą̈ßĂҾƉ΄"],encodeOffsets:[[923,11258]]},properties:{name:"Togo",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĥŁt͠ĨåuƷ"],["@@ĝƑmŜŌv"],["@@ĿOqƞŲƍ"],["@@O¹tWƬŠǞǩĹΟĬǟזIT½oƅö̍ȩ҇F‡òĵNťȡҹ •Ų½ÀfȸȂŢĀRRļÌôŨš€´eԈòôȔ MǢƁĚ½ĀgÄōš_hL̸Ǥ’Ġ¶ì¨ŒÂhbv†F†Œˆà^ĸIމƎÅĚk¨pĊđŮȑńơĘįʾȥÜƉ³ȉ_ljNȣÎƳȒʱĐÉƴ±Ú¥MƃȊʼnf—CÏoćĿț@ҘïZğoõsɅk»­·ã¯ĉ£»k[S—±«­ʛǜೡăʑǏ̧ҩǭsƎݝɌȳe˱ǔ͏˷и­ÿףҀ޿\\Äٺ̟Ŗ̯éȵȭČǕŁ̗rѧە།öࢯӦpżחŞƉ†äĮȫɠ࢓ę®·ɖąTwȊăƧɚΉԂ˝ЖJԔԻȑΕǏŸĹňωɩōŒÒІƯFijǸ΅øëŐţȭΡκrȖƕĨšŘȧbăȸƻČuƜəƠíǒĽôƃƓĭ¢ÁҖϰ஠°ЄζώΦ֨ǭ٤ɿМ\\ּӉզ̱ԮUȒ̮ƐˆֶȎŌÐƞ«Æƥñȅժ؛ے×вɑȒ̺ÐÒܺǖʐ̚»ҜìƄ˜Ί¨wǴɘ‹ƜĊÄQ¤‰Ĵ¿"]],encodeOffsets:[[[100771,8092]],[[102473,9817]],[[104886,12277]],[[102526,20805]]]},properties:{name:"Thailand",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĕÃÏÔMh^@Î_ĈW"],["@@̟ɝՏȔлƳF}ånj·ly§…ù¬ʩৢÀʢlj֞Ǭ„k\\yW‹CȔ± ũɜؖ“À§ê«ΈƮЀqłZЎ¨~êdƊWJ©{ƗǖɕğĩĘȹȌÉɄĶ҆ǗèܟȌǹȑŹ_T›šċÒьʻr÷E±—‰—ΗćăPuløÌbž[˜ÁX©`ĽtćQƟ­˅šȧȧ࠯˧œŰćʂŲڂ}pÃAćsÏI“b®ɄÝŘѧĬˋ̅ǟŵ]²ķGč¿ç͏œnƏšǏ_ő“ÑÇkó~ĝ]黵¥ƒQí¨ȁƔ£RuK}Ua[]•Y·T­Sʁķó£]©oo£RŧÓġnĻüÙАÔ`ȰҊ،əɘœϢοʟŘʑîÌȾʘƀشíƨʪȖÎÁŤƖ’˻Þը~Ë̴Ŵǚ̚ġׂ͆̌ʿ͉˳ʀƷʲŽ"]],encodeOffsets:[[[72361,40812]],[[72662,41205]]]},properties:{name:"Tajikistan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@¥GקȌǭˉɃIǵQř™ŕ½ƒÕƯщ‹Ń¯ñ˝LJˑŗ؛ƓƗĥțÝ‰Ĺ¹ƛā͉íǿǬϿ¬ɵǔçSSȼċĠºǶýϞٹKɹ˚ԝʒŹɐСƢүcށʶƇȲم„ƙƙݟ{ЙɯǙʵڇѝചƏɔ̱ŎƯÛầ̰½ŋĸ^Ȯнà¢ǵșɾÏ̂Ǯ՞ǜǵЄKɈƛѐšµŢ̬ŽfǖԝϖʓԊ՝oǍıŽɝˆѕ̙ӤӀ̰ࣄǀ؞̵Ӥ֙Ҙt࢔·ĎòŻю˜ɢѰÈǸʢϐǁ˓ˢ˚†ĦĮٞϣՌĥ—ȧɒƛĿ™\\̟̬ƭڎɈò΀ƵӤय઀ۅҞƷબا̞LՔɏãǛ]ƽAşXġ"],encodeOffsets:[[68119,38245]]},properties:{name:"Turkmenistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@΄ŶƋȧȷò"],["@@ěʤŞp¤ŮDZU]ĢɌʜǠÔਨĮ̆Ŧˤĝ͋ʓ౏һ˷ȣ"],["@@ÇƟӌŜŔ"]],encodeOffsets:[[[127014,-9565]],[[128070,-9740]],[[128662,-8335]]]},properties:{name:"Timor-Leste",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ê’ßőǥƀǜ¿"],["@@īAĎÚ^×"]],encodeOffsets:[[[-179365,-21677]],[[-178128,-19086]]]},properties:{name:"Tonga",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ݥÅ΀ǘlˮơĬ؞ĺĭƝl҇"],encodeOffsets:[[-62476,10378]]},properties:{name:"Trinidad and Tobago",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȡbpŴɮÅ»ď"],["@@ŻÑŎŜnÉ"],["@@ƇȅĐ֯ſǟŅŽ‹́ƃʛ२ÁȼĭϜׯЄȃјȡİ˽Ҟiؚ̦պ€ȶˆĘèĴÛϜ€״šŶͦ˄qĔतͺŴOƣœĴ˒£ĆΣĴ¥բ˺ÔǕձחĪʍΎɅĮͥίҿӓͯÍȉɌ˟΄TƥȢĦʤˉ¯¹ʪÉCu‡DžOËKɇäıD©}¹ŭËǃõƍëƭû¯¹ƍûŏNjǛ§"]],encodeOffsets:[[[11221,34532]],[[11549,35588]],[[10522,32446]]]},properties:{name:"Tunisia",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʩ@ɀĐªď"],["@@N£ʂ͙ŷȥĆ̗ԼïД˱¤«ȕIJṶ̈̄̅›ȾғvϙŶ©ȧΩ͈ǓaɳȄŧ{ů…p½PÁFǡıÛ¡™‰J™ÎNŴa ‰„“hďXƩùƇHӫŠŽ—Ƌ …SėĥƯķągĸ› iL›^‡Qěéơ£঳·ɉõιƷˣñƹ‰ŧkȽAǛ^şCӗǬʇěƽ§ǑÅó‡ğHŝRķE㦙²Ƒ†ıT}qÛ§ǏQ£Ċȉɕ¿yƗũÅ¡ĕuCƇà×Nçͦ͆̊ŝɄտ˯׃ȰࡑՓݳūΕŰ̗֛̐ɠשÄǕԃٍħϹƘɇ֑͠ĆʇƫÆİՋҪĴȦǔࠕ©ŒŲȠŒϻдƀÊRɈ߉ʢŴ̪ȞʱЂĮȥ~ťȒɂƬǗؐżƟƪǼɎډçWĐäΞҴΈҠ²džŕɆRĶ¬ĭĎŤ€Ĭowĵ࢜jȁŦƞĆݠŊءƬ†ʄᄚħǠDz܊Έࣚʎ଴½ɌĚۇŗƦƋɖāв¢̖΁̺öʎƯ૆ɓ࢜ƶ۶ũیʦ˦ƌĄĀLjà}šQĒÂҒ±ĎĴpXbPÚNÔM„]†ÑîsŴĩüng}mXy¬Ȓ—"],["@@ҐnƸΑܠ˗čȅڅÔ֡ěȭʉУǃӍΟ¨ȪҐʾֽ_ÉĮʘȒAʆʚƎ—ǘɕĬîŶtŽÐ~¨Šdɨvꈘ‚ƶd¨b¨[ưŏ"]],encodeOffsets:[[[26594,41100]],[[44476,42144]],[[28135,42954]]]},properties:{name:"Turkey",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĝ”ʮʌǏ˟"],["@@ÜdzûÇʣʀńϚǀϝ"],["@@īҍđÚvψLjl"],["@@Ḯ႗‰ϝപ৏ΕୃÎɗ֠׉ɏгCɧŢsZǕŗεŮнDŽȿìڵبϵЋ̙ƟûۡɉзȷӑĴǏʉƷāƙ‡ͥŦ֡ŝīŠ_¾ýÒƝêŁDŻʼnÉgũfȡRȉGmĬŸÎĭ¬ƓɖºʎćҪȽђ˙Ȥęƥ߿ɚƏîہɦqĦhËjŧMįĔěŶć ɱIĝ¼ÛÞ½öğʀ˃զÿɎčƔęĺŧĦƍĤõÚijȈ¥ä…ŢuŮVºĘDŽV¬YÔ©ŶǙѢeìDÂà˶A ˆKȔŰϠպ͈͠jƄ}ŎÑPė–õd¹rmfQ¨¤ň£¬dzüǀhv’FÂp¸T OȄvÖlĺWĊÞKͼ§Ė©¾ß|ĽƆÞN¢„bTHŸXΚÊZ^GlG౶@ಀ@"]],encodeOffsets:[[[40665,-8168]],[[40445,-6322]],[[40822,-5023]],[[34717,-1026]]]},properties:{name:"Tanzania",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@‘BµF«WίͩĕŔȽ«ŠతǼʹRː઺਎ÛȎϓƼİ͢ûǎŸ̰Ëè˂ʜͪĝɂŀ˴ʁǘƾ֌ƤаĿâ´ƢƢȠȢƀ˥®gk³Ēãł“œ“H›—NjP¯”ǍϪַm¿æ̗ZǙAţƫЋˇǝÑƥȿəǽγ‘ধ౿@౷@iF]JÉY͙ÕeáNSG"],encodeOffsets:[[31243,-1092]]},properties:{name:"Uganda",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ś£ӯĒ¯Įцƛ"],["@@֝aؽ̡ȡ¤؛śڿѥɠƤ¥Ɗ͉ɁƢЩκ͓״Řͼ¹Ƴ˟ѭ¹ͯþ͓ʝԯåһ˫ϫƔĖҜ࢟ʲঀҘÏŲƏȑİ؍ûթǖƪŰϟľڲáǼŠ҃vʇӐĨҿ˹^€ĦƇůԙÛӝֻӹŧÞϱřĢƏ¤Ʊaˡħĥj]ol˱ªő°ėĔ¬„œ^DŽh^°mþÐÐʶ¾¸TîĢ–ĊÒrކ¤¿Ħ[ÖEÀ€†ǀ̒E^eHŁhEȠÞ͈ē”Tǔd²žǧĬVðPČq¸“žʱŖĭˠˏǔSЌםƶéEړˬˏę˟@­`ǧýk…Ʃ}ɻȥɇsȁ‡ȋkСƽͳǨߙÄȁKǥĂÁFəŝěƌƽrˡɰķCVƎŸİĀǀŔƄ^”ʸRšø³̰¶Êˤʘ֦Дɖ‚IJĸHðćNJČÂγπ§ǸþĮîGÖ[ðxLŰÖźĢèþத²ࠨŷƮaĸNÌQżŽͦqTāƆĪ֢}Êg¤ï–c”KIJĜàl¨Tˆx¢v”DȴȵۄĄʐǡƶæiªSē¼yĨþìŀôæú¶ŔĀȦHņ°ȒFDŽM̠§ˀɎદŽ֎ӃɵďþΣ܌©ȼƇɼ֥Ѵ’цǗڬǞԾЭDzŎֈȑɎ€ԘʅʦJz˙Ρȱˊƽǯ[ŭǻdž£ĺɯƭ͍݇ѿȵŻѥ"]],encodeOffsets:[[[32781,47313]],[[39132,48222]]]},properties:{name:"Ukraine",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@½ɤ”ĄĴĤ¾öJ̌´Õ˴mxfÈĸʎŒΦ˹Ά͝gŻ\\óŌTȸDzrNžs͒͹腲ˆϖǥ̵̰Ϫǝƈ̃А˫õëăęíéó·{‘g¿@ПƊñ£‰«Ï¿Ɨǩț—ŋ͏ʑ؝ə٫ƂӛĿޝϖօqӏӄŠؘʀʎŸŘƒdžĂàŴH֛ÂYÈjÊGÄyÀlªŀĔˆìŸdžjàŠȄrücƖÚà"],encodeOffsets:[[-59198,-31599]]},properties:{name:"Uruguay",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʥ¸ƕ֮ȔɞWɘՐɿͨЁٷљ"],["@@Ľ_ÝžƜO€ō"],["@@ǬhʎǍΙŷÑǒǽŮĦðĊđ"],["@@т»ŭĉα´ÞĒ"],["@@ƐűЋXƍɢʼĮƎȵ"],["@@ȣmƱŎǮƴȒGiʋ"],["@@ýMǨ¤ĩ•"],["@@Ǖƿ˖ͤĿǣ"],["@@ș֊`͂Ǻࢋ"],["@@b×ɡժɀӑ"],["@@dzĠŌ€èş"],["@@ǫU͊ČƝõ"],["@@ıkƂʏë"],["@@¨ÕůJĽŮȆá"],["@@ǩĄưZzĝ"],["@@˪©ɓ»ÕĦ"],["@@ũeź¶„Ьˏãǫ"],["@@įŵŦǼuÅ"],["@@ÏÃ֬Şઓ΁ۑÓŖǮʲņߖÔ̐Ɗȣƕ"],["@@ɉlLjĢÂō"],["@@ˍcǶĊĘå"],["@@ĕmĪƺSƋ"],["@@ȋĦƌĦĽ"],["@@ĭ‹pŌþÿ"],["@@DŽȝ̝ʪĨƆð÷ŻÅľÓ"],["@@úśüķ٦ŕŨåˤúĴXΠ»˰ŏðƃÈ@˾tԲȳ̀ŖǠN˜ÍૼœࣞʴՔȯҊdz҈DZࡪΓӨȫǎãǮ̙Ȍ›ˊHŪΗ̦‚ŬĹĻƫ֢ʣ̲ƝÈɛ̆ౙ©ą̗܋Ӄ̽ɱϞʧɂ@ϸǶϼǶЖŨپIJࣘ͐ɐƈÅԛŠ‘öę̢Ɯ¼Ƃ´ŀ”ɘNܦEٶ@ՒԪ̰ȎΘʮͼǖȠ|ĊJᥬFDŽʄϴgӌՔʐڬٞيNJ‹ĨǷלŔήɛJଗ̴ĽÈίȰGŚ˻ǡŷկĉǽljāIJʣJçȽɻæ¦Țϵӫʛ÷‰ðÇđ{ĨŽȅƁêǵõҭבăȳǺǝηʕʶđˀЅΦÎȩɞŎYŌį|ʅשţ™ưϽȋhɌĹÃijĪŏΓ୵ÿࢿ҅Ĭʮĉǎ˜˭˱͕ʖŇěԣ^Ǣؕ࠭Ƈ©¶ǐՃ̂Đʦ̊ǎ˝ŷƽDžǐҡʮ˅ĉƽŰƑݩੱ“ȸˆҲLJdO͠ljçǵƀBƐȺtǑŐŅ£ƢŦƉČǎŊčĠêļɸ¼ŅˆŌĎïØˋə­æ÷ƭųšŦţŋ½ƐבʃȲR×˞ϙѵʬmćģŸș‹ǞКȕʏYȻȐJڂϵãǽůNԱОҾзȴć–Ƿř|«ĥʭȚЊϟį»ȗȘԳĜӠſƺɵШ`Ϻࣿ΍۸ƹƢ̣˟ƔCŏķšš×˧čƥǶPɫրZ[ɻȖɨĂį]Ǒͱʗˇ˜óŖƏďʡĆѶɏɟɻʓƐĂʼnȘëʎ¤Ă­ßýܙȫĭņ„ǡ̷ȯƫ́sȖ¹ɏͣLλNj̑Еƈ¥ɧѻ̇ŅnOţΟƕɫXƈ÷ėœȇƈĞțΙ˱ ùNjȽìMǥƭþõŹÃ×ͭɢࡑ؎વ½ǵň̷ŹɶF̄ñƫJȞűƮǿזೕÛࠋ̝ԓՁûsƠǐơĔɁ϶̍ŶȱюŊǔǯœvΆȕĥǕǰɯτʸ̨ɧĎÄƽōÉčŘLj࢔ࢗ࢐̋ƬɟÕƁ޻ȑāò@ÚĊëİ˓ȸÔƒŵĵחȜ˦NőòߍŹǺüWŜơġǗǏ›xČƣŇ͑…Ǻ¼ȃ͸Ľ˝٧¤ΓÏɣƯҋǠǥùåřȦģπŦÖ±ųğƸēȘŤ ȏ̯ǙפΕŝƻãÄşčÇǴ׹̀ĘǛƅșƕdž̹ƏҏƂŞ|ćȸɟQ͇ʀȯŗ¨ęƩ‰ޏȆյ­]Ɋ£ʓܳʯȞƐɃAŠǞɿŸŔ˧͕Ϳ߯ЍȊŦοLJĪȀɁɉĭćäÅȏˉ§`é̄ĝ̝ůŤƕų˻ˡňÚƛǪ¥ÍɩĴЙʐѱȕ÷ปӚ̉Ԣ£ЮړټϩܖֻԂۡẴijɷ҉ɵǽ߉͚ͥʔЋࠀঙڰʡˊ๟XEϙᛟIẗসĢǨ፹Ƴ˵٘ԧΪˣlăɰՙĂϱʴܿ¬ƏĞ[ҘǕò—Ǻ͑ɂӿռÐѪӳ̚ĕˮ®Ɍ̀ˏ˃МÒ ڐ¤ܱöŅˋΉȔÇÇúǪڗװōܲѱԂʈࣶϽଔ݈͠Ȃཔ»դ٨ÅȵİԛRz˚Ċơ´ȒȉǠɨĎɥÔwåȥעʉˆ¡΀ؠDZࡄāǐÂĺɋĹţ—°ˉ΁ǼlŧOfâѠφţʳĈˍDžÙ»IJǗǓ˜ÿɖ¡ΎƈȐɳŰĞŒɕƠƢ’aƐ£ĞĽb‰¸ÇŞ୎@෤@Ϊ@Ψ@ܒ@੼@。@。@ @੼@ܒ@Ϊ@ܒ@ȤAN͆ʨÅM¶ɋ"],["@@Á¹ÁĜń¡"],["@@ƯnÔüƳŜѲÛȡƩ"],["@@ѭ_ҼȔdz"],["@@Šŋёōɚ͎Ęij"],["@@ȉØļ¨ĎĿ"],["@@ƑjΚǚɇȃ"],["@@Ѿ³ڿƁÚτZ"],["@@ŽBŲĬƀ·ųµ"],["@@ԱYࠪǎŇĎɢĔļ«Ùțҳč"],["@@ˏœ̼ú«ŕ"],["@@ԾƉсċυƼˊÚ"],["@@िћͲͪʺ´þǼϮPŗƍ"],["@@ȲĈŢÅ˃ǧdž«зȃޯŷըȐĶƠǨ«ÊÊ̩ČÌň̪Ķė"],["@@ǹa}ĬǎŒǚęů{"],["@@VŰŤóŹ»"],["@@ŕìƜ¬…ŗ"],["@@ĆƑʞūɱÈ௹ˇÁǂ΄ʤ֠Ť˦Ë"],["@@đāÔƚ~×"],["@@TLJəŚvȨȐƹ"],["@@̕ǥ°ǚʈŴ^ŧ"],["@@ȴCóǩ؉Զ˨ùȢˍ"],["@@[ßƣØǀH"],["@@ŎÆÆǏʵ‘Òɔ÷"],["@@́ɱñȒδ "],["@@ƟRŦĂzē"],["@@ǫʁɓǞ˃ȱëɂȆΒ̘ľɬȑfȩ"],["@@̨gĚȕоǏΦΏ˵ĨĵķǶTǰɑȘ_õеࢭԪƈÌÙnjիǐςŖʼnĬ̷ÑDzƴ‡nj"],["@@ɉĀŐĦɮ•ųƏ"],["@@iƓŻ[̹ŲɾΜˀɇŕ"],["@@ħ²ǰ‚ćó"],["@@ʀ“ƃ£Ļø"],["@@Ǜ”ĘȒɲǿƭ¥"],["@@ɂǍǯѯȫ§Ę͊ʏ͎ȘĀźñ"],["@@̶ՌɅÙ³ʙǬƞ˫˛™еҶԦK"],["@@̯ÓöŐ̈́ĉy"],["@@̌Տ½уʣʬĈƈϓŤŌǤɉȈ̛ȫUɬ̾ɈДƷ"],["@@ЀD­ĹɢŃǑĹѹšɘŹԁijϫƣøû͓ƵȠDzϙźăȇ˫ѴҶǤά̃ŹҶ̔ōɪÄ´ƪʼÙ¡Õ"],["@@İɅɢŐ͢ğ_Ǖ̱¡̠›¢ȱՏƼŅȷǿvփѴȺȺƬķ¦Č̪ "],["@@φcΖџЁΔ͌׉ԕʹ|τνܼȲNj"],["@@ϊ¥āōǗ֓įʏzˣƙϟĀ;ǮǢeÍŚΦ³"],["@@ų´Ȭà÷œ"],["@@DZüΔńǡǿ"],["@@ȿWNJĊ¶ñ"],["@@ŌӲΐƊs׹ѧ"],["@@;ÍŚͳҳűࠫȴʟǖԌV̢ƒ˺B"],["@@ʖѡřëŔʸ”"],["@@ŇɭēĸȜŶ"],["@@іƃͻ|ΉȪʰġ"],["@@ή¯آĂضʳ۴¿›ćԓ•ʽǷţƔࡻ˔ڃÿī̐ʄ¿"],["@@@݁@௯@݃@௯@݃@௯@݃@ӫȪ“Ȧ“ÖæЖĭʠŪψVžH@Áµě¡õˈřҨ˭،͓ÔʻèYƊîŶ¬˂ĠȠDĦʶǂj™ŀԴľˮ^ˈƑĜʑɢõʆDžÂÍĤ÷֠̅ɬɽɰɱϜϗĜýŢŋÎÝ¡­·ÅƴŀkՓąȨÔǝ̒ƒۖʗƠƒÂĝˆ[ìƃǙޥ̣ɋɱŽǓ̌ʤƈ͇դĂņفDZǗ˻ơÄ©ż̨΀ʘ ˱ˆʙƮգՖաĮƵЂ҂ÛΙɢ˺œ̩ ƍãʷȒżϒ˧ʇӉȄӳߺśǻΌߧЙƔ˛WũΠǼÜDžqŏƦÛʃٙɨÏƉϐÃŊLJɒ_Ɛűҟǫ޽˴ࠃӬ੏̤ɔƞBɌȎ˽ÆǬȞ`ϋƪࠧʩࠩNJ@Ǹɗŭੳń৛åŔ׹ƺǮˬҵʏճĈȊƢݩàƮèȷðƀ˄ºങȇĩàɈɂӹƅCǥDZwʦŵ͑ƻѪîž÷ϻзۯTŅĜǟ˯ĭŲñƳǡ ljǽ΅G˝ˁȽ¨үģDZÜÆĸРŊ̔Ɍ͹Ĺ͹ŎϨв’ϖޒʨମŭࠓʜԶˢҗȃՕl࠙ˑߓ׷П~̬ʡҩŽIJŏҹ¿ѳЭٔǑgǣ܍ϙ–ŧٕť٩ϕփǩNj̋ງӗřĻɶįȓőñĺǕǓ؝ƩŗƹģǺؓʭݏƓ½ŢȰ~˅ÚҳЕʿñȳǎ™ȿDž•ɉĢWůǡÝ´ʂ̺Ø৬װМĪˈwęęǞŏĆĮΒÅȻǜȦʶ୒ӌȲó^ȶ˸ɒЌȖ͒kȟƢð̺ΖŤʛº‡ƘҤ˄ƔͰ˩ɍࢣɛʿȤàŲ̂m˻ĦɋƇŋœj҃Ƌ‰؁ьȿùωȚݑɃĩʼnڅsΞŴäˆ˱ŠŸϊӽאϬΌ؇ΩĪɻटǁϳĄݑԔ˝”Ҥ̎Фķ­ƭ̼ƤɨƧʸƖСĆː¤ƍÈȵĕवÌȸƮΉ¶LĘʕơʡȞfǜʵT_Ė̠œɧĜϺÈāȘњ̼ξpƚǴǟïMʜΒĦqƺϺ‚˜ĹķğȞøǼ¹֔Ȃ˶ɚʸÛܾĘ˒ɖǫζхƶҸŨÜƪɱƜՇğࢡχͫɸºȓӍƒ੟œএň˳ŪÆǖљȘ٬ňਹŘֹȢහФ٦Yũǀ૆ɨ۔[ɋBŝ̡˴ō๘“ДȪΞýïŪڝÞՃͦƴŤ٪ЧଠŇNJх¶҅ıϫŰŘːຽèӿшᖉن΀ÆƞϮঔEনżဤજljƛࣞŤ݊ʌɂʿ¨Ȁάx׍ĢʹŶ̮üÂʼnૼĤ௄Ң@ĭݠƝӉljƤïڴɎࠆʡ߲Ōذ§ɐÑƓǃՊ»Ƨĝᖨ¤ೂʃཐµՀŵဖĞіéદ͉;E@݃"]],encodeOffsets:[[[-159315,19469]],[[-160613,21272]],[[-160242,21435]],[[-160986,21725]],[[-161586,21972]],[[-163197,22459]],[[-82989,25311]],[[-82311,25746]],[[-99502,26788]],[[-82111,27934]],[[-93996,30209]],[[-86945,30355]],[[-91365,30807]],[[-121188,34187]],[[-122924,34733]],[[-122759,34898]],[[-77357,36086]],[[-75912,40634]],[[-74250,41970]],[[-71657,42256]],[[-72202,42370]],[[-72951,42488]],[[-69823,45397]],[[-125331,48533]],[[-125514,49313]],[[-97078,50179]],[[-180517,53036]],[[-182148,52890]],[[-181399,52958]],[[-180831,53112]],[[184042,53152]],[[181674,53128]],[[-177718,53388]],[[-176603,53527]],[[-178869,53284]],[[177893,53617]],[[176960,54286]],[[-171995,54626]],[[-170614,55195]],[[-169821,55369]],[[-169534,55436]],[[-166193,56164]],[[-167399,56301]],[[-163343,56476]],[[-134491,56402]],[[-163709,56452]],[[-136050,56212]],[[-164177,56666]],[[-164541,56643]],[[-136504,56877]],[[-159299,57161]],[[-134122,56821]],[[-136771,57692]],[[-135966,57598]],[[-135283,57456]],[[-157909,57872]],[[-173829,57995]],[[-135932,57883]],[[-137205,58210]],[[-136567,58372]],[[-156679,58496]],[[-138209,58728]],[[-156567,59212]],[[-138987,59643]],[[-137912,59558]],[[-156074,59761]],[[-156145,59889]],[[-164781,59983]],[[-151574,61507]],[[-151281,61249]],[[-170122,61833]],[[-149907,61901]],[[-151202,61902]],[[-176888,61909]],[[-175578,65168]],[[-144386,70425]]]},properties:{name:"United States",childNum:76}},{geometry:{type:"MultiPolygon",coordinates:[["@@§QûD«T‚æBb로ÂfE´ÍŰmſ"],["@@‚d´fÇè—hiGo࢟ӹҬƝńƧɀÓǂ@Ā{`ZZǦƺt¸ƤŠó´sˆ]ÆđjĭäOĀmÂn¤[b¯LývWŴ|ʜƣЊ“ѹʫǝªYųɏXρʋ͛Ŕˁ_ʱɿƸ͊˴̋ˀׁ̙ͅĢųǙÌ̳է}˼Ýƕ‘ÂţȕÍƧʩسîʗſËȽʒí ŗπɛϡɚɗ҉؋_ȯÓMx«xýI÷œÙQĹ£ĽtŃČȭŒʱoWĢBŠ^ƾäǜՓɐ̝KફبҝƸ੿ۆӣरͿƶɇñڍ‚̫Ʈ[̠ŀšɑƜ˜ȨՋĦٝϤĥĭ˙…˔ˡϏǂǷʡѯDzɡżэčñ࢓¸AᶢᓢҼᏠউࠜݷৼŘਢÝϴƎӺͻʴεʠĨùࠡЪUǰۅਐdƪƗÅȁȴŹʀƒXɈӎҤຘۖ"]],encodeOffsets:[[[72916,40850]],[[72650,43263]]]},properties:{name:"Uzbekistan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ÿŊň҇Ǜ"],encodeOffsets:[[-62642,13474]]},properties:{name:"St. Vin. and Gren.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ñäźļ®ķŕç"],["@@ķǦĈíÅ"],["@@ËȳСĂDŽĖƺíưŊ"],["@@|S’wÌǷͯΏɷeғˏ˧ĉɏ¸ʩśŧΥЙַ̎]Ɲǔ͑\\DZŖĴɛϖΥƦ࣭ւù—ɋӛȋǑ͵ݱΟ̳ΕéE„žƃŠ͇ǕʋeѻϦ˫খ΃ͺȫ@ҢԺ̍ϖNjզ~ٚ̎ֈOɀ̓ĠԧŏߣƒםۤԛŘ͡ē݅žǛ˴ɝźèٚɳ˺ŋКɗŴʵÅ̠ԄŘמừψ̤ʒЂ՜ǐ՗ʕĸ͉njƩõeŘ˱ѥۻв٣͆Ħƀǀ„̜ω۞tδਤ΄ŖŮʖWǖ́¡ÿɘìDzǖä̼וڮ¡ήɫĒЅƀǑཤŞͪ̿؈ƿɼz֌̠Ϧžџ§þ᎚ĘсǍ҃]Ȓȯ¯ȝdžŨȖΗČČÊ»CƂâG˺˿}ƶƬäڞ҃ȗǥȋү̷E˄ƽцƴՒrŴÉƼȱcµĭ³s}•ĝЗȫǣɷĤǷu𦱼W¶nÖC ]h_H•}÷—³˕ƫΫÕµęnÙ~ÇA½pƝ‘Å›ßãóġ^ǬțǶȥDzȡ"]],encodeOffsets:[[[-62461,9081]],[[-62280,9358]],[[-65381,11399]],[[-62199,5327]]]},properties:{name:"Venezuela",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@Ƽ™ʷ£ļþ"],encodeOffsets:[[-66320,18222]]},properties:{name:"U.S. Virgin Is.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@̥ƙ˼Ǹj"],["@@ĹmŸŊ}ě"],["@@ǗĽÔƨń©"],["@@ҿȉ±ȕǃęЙªÐɟǟǩnœӵϟ̥ࠇɢϵԢұgȑĝx௴ணǒRڔߟМ౫ӝŸ˗j̗ğŶĭėðɉĉrOׅƅŏ«ɋݡσÿƩث˓ɉɚ·ɕȃŖķÏŖi`űʗF˒ƳDžɍϫ̦άэãſչψˠͿTǓ֗ʭ͕ϵ́łŲݲvڮȪ͞ʁǨśȥȮΤļǒƖAǮɨÇúĚ̌ŽĈŁʼÍEȲʯɎI˺žļͤÑ^ɘʊ~њ˚Ʋ™ĨĖ֔Ŋ΂ɯׂǀӠIĨV®išqÄÚކ¾šÒhÆ°µæĕØķĂ·¸ĩƸpŠƠê€~HüϹʺ‹š•IJeV“‡©é’ġƄYƜO²oÞțɜɛǖ˃˔ēȸÏĀ¹Ü˿Ʉwú¶ĶD†੉ռHˆŠtĄ°ˆÀWæêfz€FǔNʊזPžŖ¶è\\ÊĨĪBđò“„űFkh_ÂI’žĹĕVqb’œÒš®t¨üȟƤŻþÿ‚ϹȽƟêɅ¼ęªȁʼƒÂĊΒĕ®{ÔcQwõÝCáȔϣЌ¤ˆ¼ªƜȮĘіʫ̂˔ƔƳņnj˒ȭǜɔȔąˆIJƬ˄ΊǬӊΡʰ¢Ōĥɚ¨ȨʼnȕɷĨѭʶ¯͊˅΄žǴū"]],encodeOffsets:[[[106562,10641]],[[110102,21429]],[[110186,21727]],[[110564,22025]]]},properties:{name:"Vietnam",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŧéʼnŮ~ŌȴǏ"],["@@̇Ì|ȒņZdžʷ"],["@@ŞŹ»đ̭ôĪƄƢT"],["@@ɟsƖʾš"],["@@̯ĜȠŮŐɉ"],["@@Τ̓͗ėčʹǓØ¢ǐŖÞƯ"],["@@ȥ_ˠƚùŹ"],["@@Ä˥ɠȆŀэęř˯§ŃȎÁٜƬƹ"],["@@Ż…gĈĄ²àij"],["@@ąIJöâPǓ"]],encodeOffsets:[[[173560,-20009]],[[173399,-19394]],[[172489,-17963]],[[172490,-17181]],[[172336,-16728]],[[171431,-16482]],[[171942,-15806]],[[170748,-15182]],[[171607,-14603]],[[171509,-14240]]]},properties:{name:"Vanuatu",childNum:10}},{geometry:{type:"MultiPolygon",coordinates:[["@@ϧœœŨϊmŲƕ"],["@@ƀȁ¡ijʻZȱɲϐª"]],encodeOffsets:[[[-175569,-14383]],[[-176469,-13788]]]},properties:{name:"Samoa",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@Τv˘ġ͍lj·•͹ǶȀƶȔß"],["@@ÇĖþ½"],["@@ÿŒÌºtą"],["@@ُ̕Ź˱˜ʧݧίဇӳֳӳ֭Cӧ͗ԳǑोŃԳѭΝBԥǫ̷Řūɋӌ¨ΨNjˌŹެãǎǕČŢĀçˠĺ̈́‘˸̬ˊv֜ȒƂмLJਚĒ͚Ŀ৊‹ȼʽƖMʤƒŚ˲ӾתܶΦូΒजጉ"]],encodeOffsets:[[[55054,12941]],[[43783,14034]],[[43815,14307]],[[54360,17048]]]},properties:{name:"Yemen",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɡŠǘÐÊę"],["@@ƾӋÃ౑ӯǶŅóijřʇεH̹ÜM°ĻŀǓǰŁǐ³ɰ]ǺHYŐlǴxŤ~NôyòLźyΤVĠD̏଍ȽΟߙٍ଩࿋౫ફହݫկȧԻnșʣӑ¾ƩǏșIݭƴίõ׵Òʷ·ϧʭੑùё˓؇ƞ‚ĺțŤɡ[áʀɃuȧğƄæІӧݞĪĴƆ“ǜȴīٚܧઢͭ࢔ǭͨʕ͢ʶƒ‚¶nŌ€œ†ü¶¶ļŎďƞŗöέܨǁ܎«ìŒÊƚȐƄφļ@Ţ@ᲄϜ̵̦٥ŷ۝ĊęߤP˜†¨ĆȈØä²łLjɈƜޔ¦žɾ֦ɪƚȬEъʹÚsȊMŚğݐ[ʰĀͦޒĶœČ€ɠ¶°€͒˼ɀ֎ֶޜ”ͮΐՊǴĘðÊĮİÆȠhZBʈ Ȭʎěɨ‹ɂ€̦Uļ‹ú³ɐࣣɈ·","@@Ɯ˳͞ˑʮÒĚɜ̈́ɊlϜǨšȀŶŒ²ŀŒĺíȖ֧ђ•YģkȩïůßĿÿȉÇχӡȥęŘ˅"]],encodeOffsets:[[[38766,-48070]],[[32563,-24465],[27847,-30659]]]},properties:{name:"South Africa",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ĐŽĐđ[ûuëǾǓRį`ĞƋ̳ʣòʱģȷ‡[Mįàſ©ΟôǏƠ‘ҋ̓Oѯʟ̫ńĉƸˏƖÌ®Ó᠁ࠑƐշޅ­ӗʓŷҙ̩۟މࢿȭéϑĦ˳“إƪɍȌɥ¨ϩŒݧƇঽ࡚ǵ֢A౞@˒@˒@ڠȘ@൒@ĶZåDŽH²pĜØފcܔͲɑXʋފǤ¼Ή֪ɡڢÙˮ͖Βխ۶ʓŜˋƮõʆϋǀ{̒ŲȄǃjંʋÓmDžΟÎӥҌċȶɘࡢ“ܸǟϢЀτzʦ༔ʖâLJ¾õÜÝĞ»ɰJĊŸð¹lûİēȶƒFÝl‡ۂɥƎíÜǷŸf"],encodeOffsets:[[33944,-9834]]},properties:{name:"Zambia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǵḀ̄TɁ}ɩŒʍĜȩŽʇŸYA¥ŠßàǍ¾aȄࡗȲ́ЬTҼͯrđ͆ࡓӀȕԌבࠂ`ƨئƩ˴”ϒĥȮêފࣀ̪۠ŸҚӘʔކ®–̑ڢyעͽࡐʃÑƝĮఏʗӥŴƍÓʇǸԃп֥śЏÜƉࡁࡃšđ"],encodeOffsets:[[32039,-22939]]},properties:{name:"Zimbabwe",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ڽը¿ުەߖ٬֖NΦxHޠ—цǒŴ\\ǔéº`Ęfú[ǜ¹~}¢ũŠYĨ†ĀcĖŸÌ›œ£¢áfÁnÛ½˩ƄÇÞŻ~eÖBŒvİ”¤RXĩ̙Ą§’až÷Îŕœ÷ĸȣ¡ıǽûsmQ}«»ď§řjʅõōDđ³Û«ŷ³அɘŅ™ĭ“āuƕɳ`«Ī¢§NÙéžõʠ{ɩɥƤǵšɇ"],encodeOffsets:[[75785,34052]]},properties:{name:"",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@͙̄͟ƹիԠύfʛϋӻýģлʫ@˭ƪǕIđŠmɜ\\™cȝ`¥”CƴˁȖƈʊƣǶɪɦʟ|öÜêOž¡¨ĩŽ_¬ƖɴĂxĮ’ņšஆɗŸ´Ü¬Ĕ´ŌCʆöŚiШ®¼P~tnǾü~Ðd¢̀NJŰÜŀÄĒ¬Ȳ_„́êǁƘ˹Ҏǹҍ†ĽȱǷ´ǡæͅìíƐĵn­ĵ˜§rчɃŝƑŢa¸ȵw"]],encodeOffsets:[[[80376,33312]]]},properties:{name:"",childNum:1}}],UTF8Encoding:!0}):void t("ECharts Map is not loaded"):void t("ECharts is not Loaded") diff --git a/gh-pages/pkg/examples/index.html_map_de89256.js b/gh-pages/pkg/examples/index.html_map_60551c6.js similarity index 91% rename from gh-pages/pkg/examples/index.html_map_de89256.js rename to gh-pages/pkg/examples/index.html_map_60551c6.js index acf1600f6..4ff6622ad 100644 --- a/gh-pages/pkg/examples/index.html_map_de89256.js +++ b/gh-pages/pkg/examples/index.html_map_60551c6.js @@ -376,12 +376,20 @@ amis.require.resourceMap({ "type": "js", "pkg": "p3" }, + "node_modules/zrender/lib/core/dom": { + "type": "js", + "deps": [ + "node_modules/zrender/lib/core/env", + "node_modules/zrender/lib/core/fourPointsTransform" + ], + "pkg": "p3" + }, "node_modules/zrender/lib/core/event": { "type": "js", "deps": [ "node_modules/zrender/lib/mixin/Eventful", "node_modules/zrender/lib/core/env", - "node_modules/zrender/lib/core/fourPointsTransform" + "node_modules/zrender/lib/core/dom" ], "pkg": "p3" }, @@ -1511,7 +1519,8 @@ amis.require.resourceMap({ "type": "js", "deps": [ "node_modules/zrender/lib/core/util", - "node_modules/echarts/lib/util/graphic" + "node_modules/echarts/lib/util/graphic", + "node_modules/zrender/lib/contain/text" ], "pkg": "p3" }, @@ -1924,6 +1933,7 @@ amis.require.resourceMap({ "deps": [ "node_modules/echarts/lib/config", "node_modules/zrender/lib/core/util", + "node_modules/zrender/lib/core/bbox", "node_modules/echarts/lib/chart/helper/SymbolDraw", "node_modules/echarts/lib/chart/helper/Symbol", "node_modules/echarts/lib/chart/line/lineAnimationDiff", @@ -2070,6 +2080,14 @@ amis.require.resourceMap({ ], "pkg": "p3" }, + "node_modules/echarts/lib/component/axis/axisSplitHelper": { + "type": "js", + "deps": [ + "node_modules/zrender/lib/core/util", + "node_modules/echarts/lib/util/graphic" + ], + "pkg": "p3" + }, "node_modules/echarts/lib/component/axis/CartesianAxisView": { "type": "js", "deps": [ @@ -2077,7 +2095,8 @@ amis.require.resourceMap({ "node_modules/echarts/lib/util/graphic", "node_modules/echarts/lib/component/axis/AxisBuilder", "node_modules/echarts/lib/component/axis/AxisView", - "node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper" + "node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper", + "node_modules/echarts/lib/component/axis/axisSplitHelper" ], "pkg": "p3" }, @@ -2161,6 +2180,7 @@ amis.require.resourceMap({ "node_modules/echarts/lib/model/Model", "node_modules/echarts/lib/chart/bar/barItemStyle", "node_modules/zrender/lib/graphic/Path", + "node_modules/zrender/lib/container/Group", "node_modules/echarts/lib/util/throttle", "node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys", "node_modules/echarts/lib/util/shape/sausage" @@ -2521,7 +2541,8 @@ amis.require.resourceMap({ "node_modules/echarts/lib/component/helper/cursorHelper", "node_modules/echarts/lib/util/graphic", "node_modules/echarts/lib/coord/geo/geoSourceManager", - "node_modules/echarts/lib/util/component" + "node_modules/echarts/lib/util/component", + "node_modules/zrender/lib/mixin/Transformable" ], "pkg": "p3" }, @@ -2647,7 +2668,8 @@ amis.require.resourceMap({ "deps": [ "node_modules/echarts/lib/model/Series", "node_modules/echarts/lib/data/Tree", - "node_modules/echarts/lib/util/format" + "node_modules/echarts/lib/util/format", + "node_modules/echarts/lib/model/Model" ], "pkg": "p3" }, @@ -2670,7 +2692,9 @@ amis.require.resourceMap({ "node_modules/echarts/lib/coord/View", "node_modules/echarts/lib/component/helper/roamHelper", "node_modules/echarts/lib/component/helper/RoamController", - "node_modules/echarts/lib/component/helper/cursorHelper" + "node_modules/echarts/lib/component/helper/cursorHelper", + "node_modules/echarts/lib/config", + "node_modules/echarts/lib/util/number" ], "pkg": "p3" }, @@ -2755,7 +2779,8 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/BoundingRect", "node_modules/zrender/lib/core/matrix", "node_modules/echarts/lib/util/animation", - "node_modules/echarts/lib/model/mixin/makeStyleMapper" + "node_modules/echarts/lib/model/mixin/makeStyleMapper", + "node_modules/echarts/lib/util/format" ], "pkg": "p3" }, @@ -3640,7 +3665,8 @@ amis.require.resourceMap({ "node_modules/echarts/lib/component/axis/AxisBuilder", "node_modules/echarts/lib/util/graphic", "node_modules/echarts/lib/coord/single/singleAxisHelper", - "node_modules/echarts/lib/component/axis/AxisView" + "node_modules/echarts/lib/component/axis/AxisView", + "node_modules/echarts/lib/component/axis/axisSplitHelper" ], "pkg": "p3" }, @@ -3844,7 +3870,8 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/util", "node_modules/echarts/lib/view/Chart", "node_modules/echarts/lib/chart/sunburst/SunburstPiece", - "node_modules/echarts/lib/data/DataDiffer" + "node_modules/echarts/lib/data/DataDiffer", + "node_modules/echarts/lib/util/format" ], "pkg": "p3" }, @@ -4380,6 +4407,7 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/util", "node_modules/zrender/lib/tool/color", "node_modules/zrender/lib/core/event", + "node_modules/zrender/lib/core/dom", "node_modules/zrender/lib/core/env", "node_modules/echarts/lib/util/format" ], @@ -4477,7 +4505,8 @@ amis.require.resourceMap({ "deps": [ "node_modules/echarts/lib/echarts", "node_modules/zrender/lib/core/util", - "node_modules/echarts/lib/component/helper/BrushController" + "node_modules/echarts/lib/component/helper/BrushController", + "node_modules/echarts/lib/component/brush/visualEncoding" ], "pkg": "p3" }, @@ -4516,7 +4545,8 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/util", "node_modules/echarts/lib/echarts", "node_modules/echarts/lib/util/graphic", - "node_modules/echarts/lib/util/layout" + "node_modules/echarts/lib/util/layout", + "node_modules/echarts/lib/util/format" ], "pkg": "p3" }, @@ -5136,7 +5166,8 @@ amis.require.resourceMap({ "node_modules/echarts/extension/bmap/BMapView": { "type": "js", "deps": [ - "node_modules/echarts/index" + "node_modules/echarts/index", + "node_modules/zrender/lib/core/util" ], "pkg": "p3" }, @@ -5172,422 +5203,458 @@ amis.require.resourceMap({ "url": "https://bce.bdstatic.com/fex/amis-gh-pages/n/hls.js/dist/hls_a1c9175.js", "type": "js" }, - "docs/intro.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/intro_ac33587.js", + "docs/index.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/index_aa0b5b1.js", "type": "js" }, - "docs/getting_started.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/getting_started_bd3ac9e.js", + "docs/start/getting-started.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/start/getting-started_904df92.js", "type": "js" }, - "docs/basic.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/basic_1bfad5f.js", + "docs/start/custom.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/start/custom_a165cb2.js", "type": "js" }, - "docs/advanced.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/advanced_19de30a.js", + "docs/concepts/schema.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/schema_990f7b2.js", "type": "js" }, - "docs/renderers.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers_b49067c.js", + "docs/concepts/datascope-and-datachain.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/datascope-and-datachain_9b7aaf7.js", "type": "js" }, - "docs/renderers/Action.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Action_083821d.js", + "docs/concepts/template.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/template_6fdf01a.js", "type": "js" }, - "docs/renderers/Alert.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Alert_54cb1d4.js", + "docs/concepts/data-mapping.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/data-mapping_a378ea6.js", "type": "js" }, - "docs/renderers/Audio.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Audio_5aebb11.js", + "docs/concepts/expression.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/expression_ad06709.js", "type": "js" }, - "docs/renderers/ButtonGroup.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/ButtonGroup_0227900.js", + "docs/concepts/linkage.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/linkage_cf54698.js", "type": "js" }, - "docs/renderers/CRUD-Cards.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/CRUD-Cards_62597ee.js", + "docs/concepts/action.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/action_1571cc0.js", "type": "js" }, - "docs/renderers/CRUD-List.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/CRUD-List_ec4d0a4.js", + "docs/concepts/style.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/concepts/style_a38cafb.js", "type": "js" }, - "docs/renderers/CRUD-Table.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/CRUD-Table_be9310a.js", + "docs/types/schemanode.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/types/schemanode_d42b346.js", "type": "js" }, - "docs/renderers/CRUD.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/CRUD_4a3a17a.js", + "docs/types/api.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/types/api_102dfdc.js", "type": "js" }, - "docs/renderers/Card.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Card_54b1c58.js", + "docs/components/component.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/component_0427056.js", "type": "js" }, - "docs/renderers/Cards.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Cards_85d81ab.js", + "docs/components/page.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/page_caa5013.js", "type": "js" }, - "docs/renderers/Carousel.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Carousel_8641cdc.js", + "docs/components/form/index.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/index_3cbf377.js", "type": "js" }, - "docs/renderers/Chart.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Chart_4cb7078.js", + "docs/components/form/formitem.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/formitem_290452c.js", "type": "js" }, - "docs/renderers/Collapse.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Collapse_e5c7144.js", + "docs/components/form/options.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/options_767ada8.js", "type": "js" }, - "docs/renderers/Column.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Column_a83876e.js", + "docs/components/form/array.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/array_281ba79.js", "type": "js" }, - "docs/renderers/Definitions.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Definitions_c19e5b0.js", + "docs/components/form/button.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/button_59dbe73.js", "type": "js" }, - "docs/renderers/Dialog.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Dialog_58adbe7.js", + "docs/components/form/button-toolbar.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/button-toolbar_ecc5c9a.js", "type": "js" }, - "docs/renderers/Divider.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Divider_f9eecf6.js", + "docs/components/form/button-group.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/button-group_302a6cd.js", "type": "js" }, - "docs/renderers/Drawer.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Drawer_f1f7b47.js", + "docs/components/form/chain-select.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/chain-select_7440083.js", "type": "js" }, - "docs/renderers/Each.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Each_bd014bf.js", + "docs/components/form/checkbox.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/checkbox_0f3c4a4.js", "type": "js" }, - "docs/renderers/Field.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Field_502c51b.js", + "docs/components/form/checkboxes.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/checkboxes_b3f66f0.js", "type": "js" }, - "docs/renderers/Form/Array.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Array_5f97598.js", + "docs/components/form/city.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/city_b2ae470.js", "type": "js" }, - "docs/renderers/Form/Button-Group.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Button-Group_3a1b588.js", + "docs/components/form/color.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/color_2e3cfe6.js", "type": "js" }, - "docs/renderers/Form/Button-Toolbar.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Button-Toolbar_21e0c6f.js", + "docs/components/form/combo.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/combo_d115739.js", "type": "js" }, - "docs/renderers/Form/Button.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Button_c0048e7.js", + "docs/components/form/date.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/date_2b84501.js", "type": "js" }, - "docs/renderers/Form/Chained-Select.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Chained-Select_e75f010.js", + "docs/components/form/datetime.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/datetime_fff2baa.js", "type": "js" }, - "docs/renderers/Form/Checkbox.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Checkbox_5016029.js", + "docs/components/form/date-range.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/date-range_cf725ad.js", "type": "js" }, - "docs/renderers/Form/Checkboxes.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Checkboxes_c3f6f17.js", + "docs/components/form/datetime-range.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/datetime-range_1aa262b.js", "type": "js" }, - "docs/renderers/Form/City.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/City_95447f6.js", + "docs/components/form/diff-editor.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/diff-editor_2cdb917.js", "type": "js" }, - "docs/renderers/Form/Color.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Color_e64e8ba.js", + "docs/components/form/editor.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/editor_66729c0.js", "type": "js" }, - "docs/renderers/Form/Combo.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Combo_c0b4570.js", + "docs/components/form/fieldset.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/fieldset_a7c8a60.js", "type": "js" }, - "docs/renderers/Form/Date-Range.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Date-Range_8008f2f.js", + "docs/components/form/file.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/file_d0f0212.js", "type": "js" }, - "docs/renderers/Form/Date.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Date_54e0829.js", + "docs/components/form/formula.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/formula_92cc019.js", "type": "js" }, - "docs/renderers/Form/Datetime.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Datetime_86f7f28.js", + "docs/components/form/grid.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/grid_9ac0207.js", "type": "js" }, - "docs/renderers/Form/Editor.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Editor_69dbb63.js", + "docs/components/form/group.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/group_c2a9f65.js", "type": "js" }, - "docs/renderers/Form/Email.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Email_e595ffa.js", + "docs/components/form/hbox.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/hbox_70c4e2a.js", "type": "js" }, - "docs/renderers/Form/FieldSet.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/FieldSet_8208aaf.js", + "docs/components/form/hidden.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/hidden_66404f8.js", "type": "js" }, - "docs/renderers/Form/File.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/File_35b737e.js", + "docs/components/form/image.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/image_c6fe3b6.js", "type": "js" }, - "docs/renderers/Form/Form.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Form_e88ad2b.js", + "docs/components/form/input-group.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/input-group_0207619.js", "type": "js" }, - "docs/renderers/Form/FormItem.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/FormItem_0c8c7ce.js", + "docs/components/form/list.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/list_8445f10.js", "type": "js" }, - "docs/renderers/Form/Formula.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Formula_1d1634b.js", + "docs/components/form/matrix.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/matrix_b19da5c.js", "type": "js" }, - "docs/renderers/Form/Grid.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Grid_6f16bfb.js", + "docs/components/form/nestedselect.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/nestedselect_5cb111c.js", "type": "js" }, - "docs/renderers/Form/Group.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Group_15ccdf1.js", + "docs/components/form/number.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/number_25ae740.js", "type": "js" }, - "docs/renderers/Form/HBox.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/HBox_1e4c680.js", + "docs/components/form/panel.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/panel_a25fc7f.js", "type": "js" }, - "docs/renderers/Form/Hidden.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Hidden_bc6ba42.js", + "docs/components/form/picker.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/picker_5475b7b.js", "type": "js" }, - "docs/renderers/Form/Image.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Image_ff1c98b.js", + "docs/components/form/radios.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/radios_150cedb.js", "type": "js" }, - "docs/renderers/Form/Input-Group.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Input-Group_604428f.js", + "docs/components/form/rating.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/rating_d8a03f7.js", "type": "js" }, - "docs/renderers/Form/List.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/List_9183181.js", + "docs/components/form/range.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/range_03f7f4d.js", "type": "js" }, - "docs/renderers/Form/Matrix.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Matrix_b0ea40c.js", + "docs/components/form/repeat.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/repeat_0dd0d65.js", "type": "js" }, - "docs/renderers/Form/NestedSelect.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/NestedSelect_b4158ce.js", + "docs/components/form/rich-text.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/rich-text_834e56f.js", "type": "js" }, - "docs/renderers/Form/Number.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Number_6024fc2.js", + "docs/components/form/select.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/select_ea3976f.js", "type": "js" }, - "docs/renderers/Form/Panel.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Panel_7f777c5.js", + "docs/components/form/service.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/service_272f05f.js", "type": "js" }, - "docs/renderers/Form/Password.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Password_3d90706.js", + "docs/components/form/subform.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/subform_0d92a4d.js", "type": "js" }, - "docs/renderers/Form/Picker.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Picker_a9dd52c.js", + "docs/components/form/switch.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/switch_d67faa6.js", "type": "js" }, - "docs/renderers/Form/Radios.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Radios_26e5b40.js", + "docs/components/form/static.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/static_99a4237.js", "type": "js" }, - "docs/renderers/Form/Range.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Range_5c3c86f.js", + "docs/components/form/tabs.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/tabs_58991e8.js", "type": "js" }, - "docs/renderers/Form/Rating.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Rating_e39b192.js", + "docs/components/form/table.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/table_f742e94.js", "type": "js" }, - "docs/renderers/Form/Repeat.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Repeat_546f78e.js", + "docs/components/form/tag.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/tag_66c7895.js", "type": "js" }, - "docs/renderers/Form/Rich-Text.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Rich-Text_55fff00.js", + "docs/components/form/text.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/text_8c0b817.js", "type": "js" }, - "docs/renderers/Form/Select.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Select_4350284.js", + "docs/components/form/textarea.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/textarea_1e5d429.js", "type": "js" }, - "docs/renderers/Form/Service.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Service_573d6fd.js", + "docs/components/form/time.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/time_ddec400.js", "type": "js" }, - "docs/renderers/Form/SubForm.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/SubForm_d246ec9.js", + "docs/components/form/tree.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/tree_471c535.js", "type": "js" }, - "docs/renderers/Form/Switch.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Switch_5e518bc.js", + "docs/components/form/treeselect.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/form/treeselect_45dddc3.js", "type": "js" }, - "docs/renderers/Form/Table.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Table_4ae6d2e.js", + "docs/components/crud.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/crud_3c02c38.js", "type": "js" }, - "docs/renderers/Form/Tabs.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Tabs_f7d0349.js", + "docs/components/action.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/action_d8e6841.js", "type": "js" }, - "docs/renderers/Form/TabsTransfer.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/TabsTransfer_c8d136a.js", + "docs/components/alert.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/alert_01e045b.js", "type": "js" }, - "docs/renderers/Form/Tag.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Tag_a3aaf96.js", + "docs/components/audio.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/audio_1f5c5a9.js", "type": "js" }, - "docs/renderers/Form/Text.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Text_0fa050d.js", + "docs/components/button.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/button_b10165a.js", "type": "js" }, - "docs/renderers/Form/Textarea.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Textarea_2f46130.js", + "docs/components/card.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/card_5089ddc.js", "type": "js" }, - "docs/renderers/Form/Time.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Time_a87409c.js", + "docs/components/cards.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/cards_25ddea3.js", "type": "js" }, - "docs/renderers/Form/Transfer.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Transfer_1a1e52b.js", + "docs/components/carousel.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/carousel_306f7cd.js", "type": "js" }, - "docs/renderers/Form/Tree.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Tree_f0b622f.js", + "docs/components/chart.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/chart_02cb848.js", "type": "js" }, - "docs/renderers/Form/TreeSelect.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/TreeSelect_a2839ac.js", + "docs/components/collapse.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/collapse_cc8d533.js", "type": "js" }, - "docs/renderers/Form/Url.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Form/Url_6893cc6.js", + "docs/components/color.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/color_4f5b643.js", "type": "js" }, - "docs/renderers/Grid.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Grid_2df5b62.js", + "docs/components/container.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/container_32c292f.js", "type": "js" }, - "docs/renderers/HBox.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/HBox_79a17cd.js", + "docs/components/date.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/date_4d93d99.js", "type": "js" }, - "docs/renderers/Html.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Html_1ee09ea.js", + "docs/components/dialog.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/dialog_470fe73.js", "type": "js" }, - "docs/renderers/JSON.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/JSON_da34db9.js", + "docs/components/divider.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/divider_efe5635.js", "type": "js" }, - "docs/renderers/List.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/List_cb69bf8.js", + "docs/components/drawer.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/drawer_3ee7135.js", "type": "js" }, - "docs/renderers/Nav.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Nav_2fcdf44.js", + "docs/components/dropdown-button.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/dropdown-button_9d8957d.js", "type": "js" }, - "docs/renderers/Operation.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Operation_de3557f.js", + "docs/components/each.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/each_dbf646e.js", "type": "js" }, - "docs/renderers/Page.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Page_6c0b253.js", + "docs/components/grid.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/grid_ea077bf.js", "type": "js" }, - "docs/renderers/Panel.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Panel_10aa4f4.js", + "docs/components/hbox.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/hbox_03de3cd.js", "type": "js" }, - "docs/renderers/Plain.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Plain_ba4ec78.js", + "docs/components/html.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/html_503cc79.js", "type": "js" }, - "docs/renderers/QRCode.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/QRCode_234ed43.js", + "docs/components/icon.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/icon_7e31078.js", "type": "js" }, - "docs/renderers/Service.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Service_93518c2.js", + "docs/components/iframe.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/iframe_9c5dffc.js", "type": "js" }, - "docs/renderers/Static.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Static_483ca85.js", + "docs/components/image.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/image_88e9d67.js", "type": "js" }, - "docs/renderers/Table.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Table_01faf1c.js", + "docs/components/images.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/images_4ebab74.js", "type": "js" }, - "docs/renderers/Tabs.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Tabs_01ea13a.js", + "docs/components/json.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/json_66a54da.js", "type": "js" }, - "docs/renderers/Tasks.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Tasks_e7740fb.js", + "docs/components/link.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/link_cda4d11.js", "type": "js" }, - "docs/renderers/Tpl.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Tpl_75b23ac.js", + "docs/components/list.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/list_2d73202.js", "type": "js" }, - "docs/renderers/Types.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Types_8aa1add.js", + "docs/components/mapping.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/mapping_a299efb.js", "type": "js" }, - "docs/renderers/Video.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Video_34ce435.js", + "docs/components/nav.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/nav_81426ec.js", "type": "js" }, - "docs/renderers/Wizard.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Wizard_fc89a19.js", + "docs/components/panel.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/panel_707cc10.js", "type": "js" }, - "docs/renderers/Wrapper.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/Wrapper_489c930.js", + "docs/components/progress.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/progress_28f96a5.js", "type": "js" }, - "docs/renderers/iFrame.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/renderers/iFrame_fd4f4c8.js", + "docs/components/qrcode.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/qrcode_22fc31a.js", "type": "js" }, - "docs/api.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/api_c4c26b6.js", + "docs/components/remark.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/remark_4b0dc53.js", "type": "js" }, - "docs/custom.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/custom_eb35831.js", + "docs/components/service.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/service_0d0dc92.js", "type": "js" }, - "docs/style.md": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/style_3996404.js", + "docs/components/spinner.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/spinner_9b73f11.js", + "type": "js" + }, + "docs/components/status.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/status_f2af3fb.js", + "type": "js" + }, + "docs/components/switch.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/switch_5b27078.js", + "type": "js" + }, + "docs/components/table.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/table_f351105.js", + "type": "js" + }, + "docs/components/tabs.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/tabs_7fe91d3.js", + "type": "js" + }, + "docs/components/tasks.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/tasks_52f543f.js", + "type": "js" + }, + "docs/components/tpl.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/tpl_9288c7b.js", + "type": "js" + }, + "docs/components/video.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/video_aa75752.js", + "type": "js" + }, + "docs/components/wrapper.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/wrapper_d26aaaf.js", + "type": "js" + }, + "docs/components/wizard.md": { + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/wizard_29a668b.js", "type": "js" } }, "pkg": { "p6": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js", + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_d6dda30.js", "type": "js" }, "p2": { @@ -5595,7 +5662,7 @@ amis.require.resourceMap({ "type": "js" }, "p3": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/charts_e26cdd4.js", + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/charts_1139e21.js", "type": "js" } } diff --git a/gh-pages/pkg/examples/sdk-placeholder.html_map_8bc3a56.js b/gh-pages/pkg/examples/sdk-placeholder.html_map_b004e91.js similarity index 99% rename from gh-pages/pkg/examples/sdk-placeholder.html_map_8bc3a56.js rename to gh-pages/pkg/examples/sdk-placeholder.html_map_b004e91.js index 59c9426bc..cecb32c2e 100644 --- a/gh-pages/pkg/examples/sdk-placeholder.html_map_8bc3a56.js +++ b/gh-pages/pkg/examples/sdk-placeholder.html_map_b004e91.js @@ -376,12 +376,20 @@ amis.require.resourceMap({ "type": "js", "pkg": "p3" }, + "node_modules/zrender/lib/core/dom": { + "type": "js", + "deps": [ + "node_modules/zrender/lib/core/env", + "node_modules/zrender/lib/core/fourPointsTransform" + ], + "pkg": "p3" + }, "node_modules/zrender/lib/core/event": { "type": "js", "deps": [ "node_modules/zrender/lib/mixin/Eventful", "node_modules/zrender/lib/core/env", - "node_modules/zrender/lib/core/fourPointsTransform" + "node_modules/zrender/lib/core/dom" ], "pkg": "p3" }, @@ -1511,7 +1519,8 @@ amis.require.resourceMap({ "type": "js", "deps": [ "node_modules/zrender/lib/core/util", - "node_modules/echarts/lib/util/graphic" + "node_modules/echarts/lib/util/graphic", + "node_modules/zrender/lib/contain/text" ], "pkg": "p3" }, @@ -1924,6 +1933,7 @@ amis.require.resourceMap({ "deps": [ "node_modules/echarts/lib/config", "node_modules/zrender/lib/core/util", + "node_modules/zrender/lib/core/bbox", "node_modules/echarts/lib/chart/helper/SymbolDraw", "node_modules/echarts/lib/chart/helper/Symbol", "node_modules/echarts/lib/chart/line/lineAnimationDiff", @@ -2070,6 +2080,14 @@ amis.require.resourceMap({ ], "pkg": "p3" }, + "node_modules/echarts/lib/component/axis/axisSplitHelper": { + "type": "js", + "deps": [ + "node_modules/zrender/lib/core/util", + "node_modules/echarts/lib/util/graphic" + ], + "pkg": "p3" + }, "node_modules/echarts/lib/component/axis/CartesianAxisView": { "type": "js", "deps": [ @@ -2077,7 +2095,8 @@ amis.require.resourceMap({ "node_modules/echarts/lib/util/graphic", "node_modules/echarts/lib/component/axis/AxisBuilder", "node_modules/echarts/lib/component/axis/AxisView", - "node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper" + "node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper", + "node_modules/echarts/lib/component/axis/axisSplitHelper" ], "pkg": "p3" }, @@ -2161,6 +2180,7 @@ amis.require.resourceMap({ "node_modules/echarts/lib/model/Model", "node_modules/echarts/lib/chart/bar/barItemStyle", "node_modules/zrender/lib/graphic/Path", + "node_modules/zrender/lib/container/Group", "node_modules/echarts/lib/util/throttle", "node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys", "node_modules/echarts/lib/util/shape/sausage" @@ -2521,7 +2541,8 @@ amis.require.resourceMap({ "node_modules/echarts/lib/component/helper/cursorHelper", "node_modules/echarts/lib/util/graphic", "node_modules/echarts/lib/coord/geo/geoSourceManager", - "node_modules/echarts/lib/util/component" + "node_modules/echarts/lib/util/component", + "node_modules/zrender/lib/mixin/Transformable" ], "pkg": "p3" }, @@ -2647,7 +2668,8 @@ amis.require.resourceMap({ "deps": [ "node_modules/echarts/lib/model/Series", "node_modules/echarts/lib/data/Tree", - "node_modules/echarts/lib/util/format" + "node_modules/echarts/lib/util/format", + "node_modules/echarts/lib/model/Model" ], "pkg": "p3" }, @@ -2670,7 +2692,9 @@ amis.require.resourceMap({ "node_modules/echarts/lib/coord/View", "node_modules/echarts/lib/component/helper/roamHelper", "node_modules/echarts/lib/component/helper/RoamController", - "node_modules/echarts/lib/component/helper/cursorHelper" + "node_modules/echarts/lib/component/helper/cursorHelper", + "node_modules/echarts/lib/config", + "node_modules/echarts/lib/util/number" ], "pkg": "p3" }, @@ -2755,7 +2779,8 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/BoundingRect", "node_modules/zrender/lib/core/matrix", "node_modules/echarts/lib/util/animation", - "node_modules/echarts/lib/model/mixin/makeStyleMapper" + "node_modules/echarts/lib/model/mixin/makeStyleMapper", + "node_modules/echarts/lib/util/format" ], "pkg": "p3" }, @@ -3640,7 +3665,8 @@ amis.require.resourceMap({ "node_modules/echarts/lib/component/axis/AxisBuilder", "node_modules/echarts/lib/util/graphic", "node_modules/echarts/lib/coord/single/singleAxisHelper", - "node_modules/echarts/lib/component/axis/AxisView" + "node_modules/echarts/lib/component/axis/AxisView", + "node_modules/echarts/lib/component/axis/axisSplitHelper" ], "pkg": "p3" }, @@ -3844,7 +3870,8 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/util", "node_modules/echarts/lib/view/Chart", "node_modules/echarts/lib/chart/sunburst/SunburstPiece", - "node_modules/echarts/lib/data/DataDiffer" + "node_modules/echarts/lib/data/DataDiffer", + "node_modules/echarts/lib/util/format" ], "pkg": "p3" }, @@ -4380,6 +4407,7 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/util", "node_modules/zrender/lib/tool/color", "node_modules/zrender/lib/core/event", + "node_modules/zrender/lib/core/dom", "node_modules/zrender/lib/core/env", "node_modules/echarts/lib/util/format" ], @@ -4477,7 +4505,8 @@ amis.require.resourceMap({ "deps": [ "node_modules/echarts/lib/echarts", "node_modules/zrender/lib/core/util", - "node_modules/echarts/lib/component/helper/BrushController" + "node_modules/echarts/lib/component/helper/BrushController", + "node_modules/echarts/lib/component/brush/visualEncoding" ], "pkg": "p3" }, @@ -4516,7 +4545,8 @@ amis.require.resourceMap({ "node_modules/zrender/lib/core/util", "node_modules/echarts/lib/echarts", "node_modules/echarts/lib/util/graphic", - "node_modules/echarts/lib/util/layout" + "node_modules/echarts/lib/util/layout", + "node_modules/echarts/lib/util/format" ], "pkg": "p3" }, @@ -5136,7 +5166,8 @@ amis.require.resourceMap({ "node_modules/echarts/extension/bmap/BMapView": { "type": "js", "deps": [ - "node_modules/echarts/index" + "node_modules/echarts/index", + "node_modules/zrender/lib/core/util" ], "pkg": "p3" }, @@ -5175,7 +5206,7 @@ amis.require.resourceMap({ }, "pkg": { "p6": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js", + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_d6dda30.js", "type": "js" }, "p2": { @@ -5183,7 +5214,7 @@ amis.require.resourceMap({ "type": "js" }, "p3": { - "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/charts_e26cdd4.js", + "url": "https://bce.bdstatic.com/fex/amis-gh-pages/pkg/charts_1139e21.js", "type": "js" } } diff --git a/gh-pages/pkg/npm_3938ec9.js b/gh-pages/pkg/npm_a0ccfd5.js similarity index 73% rename from gh-pages/pkg/npm_3938ec9.js rename to gh-pages/pkg/npm_a0ccfd5.js index e51c3d8bc..071b7c1d6 100644 --- a/gh-pages/pkg/npm_3938ec9.js +++ b/gh-pages/pkg/npm_a0ccfd5.js @@ -308,13 +308,13 @@ })(this); ;/*!node_modules/tslib/tslib.js*/ -amis.define("node_modules/tslib/tslib",function(t,e,n,r){var o,a,u,c,i,f,l,s,y,p,b,_,h,v,d,m,w,g,O,j;!function(t){function e(t,e){return t!==o&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,r){return t[n]=e?e(n,r):r}}var o="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};"function"==typeof r&&r.amd?r("tslib",["exports"],function(n){t(e(o,e(n)))}):t("object"==typeof n&&"object"==typeof n.exports?e(o,e(n.exports)):e(o))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};o=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},a=Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);oa?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(u=(3>a?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u},i=function(t,e){return function(n,r){e(n,r,t)}},f=function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},l=function(t,e,n,r){return new(n||(n=Promise))(function(o,a){function u(t){try{i(r.next(t))}catch(e){a(e)}}function c(t){try{i(r["throw"](t))}catch(e){a(e)}}function i(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(u,c)}i((r=r.apply(t,e||[])).next())})},s=function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=2&n[0]?a["return"]:n[0]?a["throw"]||((u=a["return"])&&u.call(a),0):a.next)&&!(u=u.call(a,n[1])).done)return u;switch(a=0,u&&(n=[2&n[0],u.value]),n[0]){case 0:case 1:u=n;break;case 4:return i.label++,{value:n[1],done:!1};case 5:i.label++,a=n[1],n=[0];continue;case 7:n=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(6===n[0]||2===n[0])){i=0;continue}if(3===n[0]&&(!u||n[1]>u[0]&&n[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},b=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),u=[];try{for(;(void 0===e||e-->0)&&!(r=a.next()).done;)u.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=a["return"])&&n.call(a)}finally{if(o)throw o.error}}return u},_=function(){for(var t=[],e=0;ee;e++)t+=arguments[e].length;for(var r=Array(t),o=0,e=0;n>e;e++)for(var a=arguments[e],u=0,c=a.length;c>u;u++,o++)r[o]=a[u];return r},v=function(t){return this instanceof v?(this.v=t,this):new v(t)},d=function(t,e,n){function r(t){l[t]&&(f[t]=function(e){return new Promise(function(n,r){s.push([t,e,n,r])>1||o(t,e)})})}function o(t,e){try{a(l[t](e))}catch(n){i(s[0][3],n)}}function a(t){t.value instanceof v?Promise.resolve(t.value.v).then(u,c):i(s[0][2],t)}function u(t){o("next",t)}function c(t){o("throw",t)}function i(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f,l=n.apply(t,e||[]),s=[];return f={},r("next"),r("throw"),r("return"),f[Symbol.asyncIterator]=function(){return this},f},m=function(t){function e(e,o){n[e]=t[e]?function(n){return(r=!r)?{value:v(t[e](n)),done:"return"===e}:o?o(n):n}:o}var n,r;return n={},e("next"),e("throw",function(t){throw t}),e("return"),n[Symbol.iterator]=function(){return this},n},w=function(t){function e(e){r[e]=t[e]&&function(r){return new Promise(function(o,a){r=t[e](r),n(o,a,r.done,r.value)})}}function n(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=t[Symbol.asyncIterator];return o?o.call(t):(t="function"==typeof p?p(t):t[Symbol.iterator](),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r)},g=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},O=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e},j=function(t){return t&&t.__esModule?t:{"default":t}},t("__extends",o),t("__assign",a),t("__rest",u),t("__decorate",c),t("__param",i),t("__metadata",f),t("__awaiter",l),t("__generator",s),t("__exportStar",y),t("__values",p),t("__read",b),t("__spread",_),t("__spreadArrays",h),t("__await",v),t("__asyncGenerator",d),t("__asyncDelegator",m),t("__asyncValues",w),t("__makeTemplateObject",g),t("__importStar",O),t("__importDefault",j)})}); +amis.define("node_modules/tslib/tslib",function(t,e,n,r){var o,a,i,u,c,f,l,s,y,p,_,b,h,d,v,m,w,g,O,j,S,P,x;!function(t){function e(t,e){return t!==o&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,r){return t[n]=e?e(n,r):r}}var o="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};"function"==typeof r&&r.amd?r("tslib",["exports"],function(n){t(e(o,e(n)))}):t("object"==typeof n&&"object"==typeof n.exports?e(o,e(n.exports)):e(o))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};o=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},a=Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);oa?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(i=(3>a?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},c=function(t,e){return function(n,r){e(n,r,t)}},f=function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},l=function(t,e,n,r){function o(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,a){function i(t){try{c(r.next(t))}catch(e){a(e)}}function u(t){try{c(r["throw"](t))}catch(e){a(e)}}function c(t){t.done?n(t.value):o(t.value).then(i,u)}c((r=r.apply(t,e||[])).next())})},s=function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,a&&(i=2&n[0]?a["return"]:n[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,n[1])).done)return i;switch(a=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return c.label++,{value:n[1],done:!1};case 5:c.label++,a=n[1],n=[0];continue;case 7:n=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){c=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e-->0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a["return"])&&n.call(a)}finally{if(o)throw o.error}}return i},b=function(){for(var t=[],e=0;ee;e++)t+=arguments[e].length;for(var r=Array(t),o=0,e=0;n>e;e++)for(var a=arguments[e],i=0,u=a.length;u>i;i++,o++)r[o]=a[i];return r},d=function(t){return this instanceof d?(this.v=t,this):new d(t)},v=function(t,e,n){function r(t){l[t]&&(f[t]=function(e){return new Promise(function(n,r){s.push([t,e,n,r])>1||o(t,e)})})}function o(t,e){try{a(l[t](e))}catch(n){c(s[0][3],n)}}function a(t){t.value instanceof d?Promise.resolve(t.value.v).then(i,u):c(s[0][2],t)}function i(t){o("next",t)}function u(t){o("throw",t)}function c(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f,l=n.apply(t,e||[]),s=[];return f={},r("next"),r("throw"),r("return"),f[Symbol.asyncIterator]=function(){return this},f},m=function(t){function e(e,o){n[e]=t[e]?function(n){return(r=!r)?{value:d(t[e](n)),done:"return"===e}:o?o(n):n}:o}var n,r;return n={},e("next"),e("throw",function(t){throw t}),e("return"),n[Symbol.iterator]=function(){return this},n},w=function(t){function e(e){r[e]=t[e]&&function(r){return new Promise(function(o,a){r=t[e](r),n(o,a,r.done,r.value)})}}function n(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=t[Symbol.asyncIterator];return o?o.call(t):(t="function"==typeof p?p(t):t[Symbol.iterator](),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r)},g=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},O=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e},j=function(t){return t&&t.__esModule?t:{"default":t}},S=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},P=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},t("__extends",o),t("__assign",a),t("__rest",i),t("__decorate",u),t("__param",c),t("__metadata",f),t("__awaiter",l),t("__generator",s),t("__exportStar",y),t("__createBinding",x),t("__values",p),t("__read",_),t("__spread",b),t("__spreadArrays",h),t("__await",d),t("__asyncGenerator",v),t("__asyncDelegator",m),t("__asyncValues",w),t("__makeTemplateObject",g),t("__importStar",O),t("__importDefault",j),t("__classPrivateFieldGet",S),t("__classPrivateFieldSet",P)})}); ;/*!node_modules/object-assign/index.js*/ amis.define("node_modules/object-assign/index",function(e,r,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;10>t;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(e){return r[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join("")?!1:!0}catch(a){return!1}}var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e){for(var r,t,o=n(e),s=1;sP.length&&P.push(a)} - function S(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;lQ.length&&Q.push(a)} + function T(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k=G};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>K(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1; function V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else if(b.startTime<=a)M(O),b.sortIndex=b.expirationTime,J(N,b);else break;b=L(O)}}function W(a){U=!1;V(a);if(!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}} function X(a,b){T=!1;U&&(U=!1,h());S=!0;var c=R;try{V(b);for(Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null;R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?Q.callback=e:Q===L(N)&&M(N);V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b);m=!1}return m}finally{Q=null,R=c,S=!1}} - function Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var Z=l;exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}}; - exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}}; - exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};exports.unstable_cancelCallback=function(a){a.callback=null}; - exports.unstable_wrapCallback=function(a){var b=R;return function(){var c=R;R=b;try{return a.apply(this,arguments)}finally{R=c}}};exports.unstable_getCurrentPriorityLevel=function(){return R};exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTimed?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a}; + exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTimeb}return!1}function B(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var D={}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){D[a]=new B(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];D[b]=new B(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){D[a]=new B(a,2,!1,a.toLowerCase(),null,!1)}); - ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){D[a]=new B(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){D[a]=new B(a,3,!1,a.toLowerCase(),null,!1)}); - ["checked","multiple","muted","selected"].forEach(function(a){D[a]=new B(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){D[a]=new B(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){D[a]=new B(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){D[a]=new B(a,5,!1,a.toLowerCase(),null,!1)});var sb=/[\-:]([a-z])/g;function tb(a){return a[1].toUpperCase()} - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(sb, - tb);D[b]=new B(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!1)}); - D.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!0)});function ub(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;default:return""}} - function vb(a,b,c,d){var e=D.hasOwnProperty(b)?D[b]:null;var f=null!==e?0===e.type:d?!1:!(2=b.length))throw Error(u(93));b=b[0]}c=b}null==c&&(c="")}a._wrapperState={initialValue:ub(c)}} - function Mb(a,b){var c=ub(b.value),d=ub(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Nb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Ob={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}; - function Pb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Pb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a} - var Rb,Sb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Ob.svg||"innerHTML"in a)a.innerHTML=b;else{Rb=Rb||document.createElement("div");Rb.innerHTML=""+b.valueOf().toString()+"";for(b=Rb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}); - function Tb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Ub(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Vb={animationend:Ub("Animation","AnimationEnd"),animationiteration:Ub("Animation","AnimationIteration"),animationstart:Ub("Animation","AnimationStart"),transitionend:Ub("Transition","TransitionEnd")},Wb={},Xb={}; - Ya&&(Xb=document.createElement("div").style,"AnimationEvent"in window||(delete Vb.animationend.animation,delete Vb.animationiteration.animation,delete Vb.animationstart.animation),"TransitionEvent"in window||delete Vb.transitionend.transition);function Yb(a){if(Wb[a])return Wb[a];if(!Vb[a])return a;var b=Vb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Xb)return Wb[a]=b[c];return a}var Zb=Yb("animationend"),$b=Yb("animationiteration"),ac=Yb("animationstart"),bc=Yb("transitionend"),cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "); - function ec(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function fc(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function gc(a){if(ec(a)!==a)throw Error(u(188));} - function hc(a){var b=a.alternate;if(!b){b=ec(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return gc(e),a;if(f===d)return gc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h=== - c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function ic(a){a=hc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null} - var jc,kc,lc,mc=!1,nc=[],oc=null,pc=null,qc=null,rc=new Map,sc=new Map,tc=[],uc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),vc="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" "); - function wc(a){var b=xc(a);uc.forEach(function(c){yc(c,a,b)});vc.forEach(function(c){yc(c,a,b)})}function zc(a,b,c,d){return{blockedOn:a,topLevelType:b,eventSystemFlags:c|32,nativeEvent:d}}function Ac(a,b){switch(a){case "focus":case "blur":oc=null;break;case "dragenter":case "dragleave":pc=null;break;case "mouseover":case "mouseout":qc=null;break;case "pointerover":case "pointerout":rc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":sc.delete(b.pointerId)}} - function Bc(a,b,c,d,e){if(null===a||a.nativeEvent!==e)return a=zc(b,c,d,e),null!==b&&(b=Cc(b),null!==b&&kc(b)),a;a.eventSystemFlags|=d;return a}function Dc(a,b,c,d){switch(b){case "focus":return oc=Bc(oc,a,b,c,d),!0;case "dragenter":return pc=Bc(pc,a,b,c,d),!0;case "mouseover":return qc=Bc(qc,a,b,c,d),!0;case "pointerover":var e=d.pointerId;rc.set(e,Bc(rc.get(e)||null,a,b,c,d));return!0;case "gotpointercapture":return e=d.pointerId,sc.set(e,Bc(sc.get(e)||null,a,b,c,d)),!0}return!1} - function Ec(a){var b=Fc(a.target);if(null!==b){var c=ec(b);if(null!==c)if(b=c.tag,13===b){if(b=fc(c),null!==b){a.blockedOn=b;q.unstable_runWithPriority(a.priority,function(){lc(c)});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}function Gc(a){if(null!==a.blockedOn)return!1;var b=Hc(a.topLevelType,a.eventSystemFlags,a.nativeEvent);if(null!==b){var c=Cc(b);null!==c&&kc(c);a.blockedOn=b;return!1}return!0} - function Ic(a,b,c){Gc(a)&&c.delete(b)}function Jc(){for(mc=!1;0this.eventPool.length&&this.eventPool.push(a)}function Vc(a){a.eventPool=[];a.getPooled=Wc;a.release=Xc}var Yc=E.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zc=E.extend({clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$c=E.extend({view:null,detail:null}),ad=$c.extend({relatedTarget:null}); - function bd(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0} - var cd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4", - 116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ed={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=ed[a])?!!b[a]:!1}function hd(){return gd} - var id=$c.extend({key:function(a){if(a.key){var b=cd[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=bd(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?dd[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:hd,charCode:function(a){return"keypress"===a.type?bd(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"=== - a.type?bd(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),jd=0,kd=0,ld=!1,md=!1,nd=$c.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:hd,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},movementX:function(a){if("movementX"in a)return a.movementX;var b=jd;jd=a.screenX;return ld?"mousemove"===a.type?a.screenX- - b:0:(ld=!0,0)},movementY:function(a){if("movementY"in a)return a.movementY;var b=kd;kd=a.screenY;return md?"mousemove"===a.type?a.screenY-b:0:(md=!0,0)}}),od=nd.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),pd=nd.extend({dataTransfer:null}),qd=$c.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:hd}),rd=E.extend({propertyName:null, - elapsedTime:null,pseudoElement:null}),sd=nd.extend({deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),td=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd", - 0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel", - 0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort", - 2],[Zb,"animationEnd",2],[$b,"animationIteration",2],[ac,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress", - "progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[bc,"transitionEnd",2],["waiting","waiting",2]],ud={},vd={},wd=0;for(;wd=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ce(c)}} - function ee(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?ee(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function fe(){for(var a=window,b=be();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=be(a.document)}return b} - function ge(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var he="$",ie="/$",je="$?",ke="$!",le=null,me=null;function ne(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1} - function oe(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var pe="function"===typeof setTimeout?setTimeout:void 0,qe="function"===typeof clearTimeout?clearTimeout:void 0;function re(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a} - function se(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===he||c===ke||c===je){if(0===b)return a;b--}else c===ie&&b++}a=a.previousSibling}return null}var te=Math.random().toString(36).slice(2),ue="__reactInternalInstance$"+te,ve="__reactEventHandlers$"+te,we="__reactContainere$"+te; - function Fc(a){var b=a[ue];if(b)return b;for(var c=a.parentNode;c;){if(b=c[we]||c[ue]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=se(a);null!==a;){if(c=a[ue])return c;a=se(a)}return b}a=c;c=a.parentNode}return null}function Cc(a){a=a[ue]||a[we];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function xe(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function ye(a){return a[ve]||null}var ze=null,Ae=null,Be=null; - function Ce(){if(Be)return Be;var a,b=Ae,c=b.length,d,e="value"in ze?ze.value:ze.textContent,f=e.length;for(a=0;a=He),Ke=String.fromCharCode(32),Le={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart", - captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Me=!1; - function Ne(a,b){switch(a){case "keyup":return-1!==Fe.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function Oe(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var Pe=!1;function Qe(a,b){switch(a){case "compositionend":return Oe(b);case "keypress":if(32!==b.which)return null;Me=!0;return Ke;case "textInput":return a=b.data,a===Ke&&Me?null:a;default:return null}} - function Re(a,b){if(Pe)return"compositionend"===a||!Ge&&Ne(a,b)?(a=Ce(),Be=Ae=ze=null,Pe=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,sf={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},tf=null,uf=null,vf=null,wf=!1; - function xf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(wf||null==tf||tf!==be(c))return null;c=tf;"selectionStart"in c&&ge(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return vf&&qf(vf,c)?null:(vf=c,a=E.getPooled(sf.select,uf,a,b),a.type="select",a.target=tf,Sc(a),a)} - var yf={eventTypes:sf,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=xc(e);f=ja.onSelect;for(var g=0;gBf||(a.current=Af[Bf],Af[Bf]=null,Bf--)} - function I(a,b){Bf++;Af[Bf]=a.current;a.current=b}var Cf={},J={current:Cf},K={current:!1},Df=Cf;function Ef(a,b){var c=a.type.contextTypes;if(!c)return Cf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a} - function Ff(a){G(K,a);G(J,a)}function Gf(a){G(K,a);G(J,a)}function Hf(a,b,c){if(J.current!==Cf)throw Error(u(168));I(J,b,a);I(K,c,a)}function If(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,Wa(b)||"Unknown",e));return n({},c,{},d)}function Jf(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||Cf;Df=J.current;I(J,b,a);I(K,K.current,a);return!0} - function Kf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(b=If(a,b,Df),d.__reactInternalMemoizedMergedChildContext=b,G(K,a),G(J,a),I(J,b,a)):G(K,a);I(K,c,a)} - var Lf=q.unstable_runWithPriority,Mf=q.unstable_scheduleCallback,Nf=q.unstable_cancelCallback,Of=q.unstable_shouldYield,Pf=q.unstable_requestPaint,Qf=q.unstable_now,Rf=q.unstable_getCurrentPriorityLevel,Sf=q.unstable_ImmediatePriority,Tf=q.unstable_UserBlockingPriority,Uf=q.unstable_NormalPriority,Vf=q.unstable_LowPriority,Wf=q.unstable_IdlePriority,Xf={},Yf=void 0!==Pf?Pf:function(){},Zf=null,$f=null,ag=!1,bg=Qf(),cg=1E4>bg?Qf:function(){return Qf()-bg}; - function dg(){switch(Rf()){case Sf:return 99;case Tf:return 98;case Uf:return 97;case Vf:return 96;case Wf:return 95;default:throw Error(u(332));}}function eg(a){switch(a){case 99:return Sf;case 98:return Tf;case 97:return Uf;case 96:return Vf;case 95:return Wf;default:throw Error(u(332));}}function fg(a,b){a=eg(a);return Lf(a,b)}function gg(a,b,c){a=eg(a);return Mf(a,b,c)}function hg(a){null===Zf?(Zf=[a],$f=Mf(Sf,ig)):Zf.push(a);return Xf}function jg(){if(null!==$f){var a=$f;$f=null;Nf(a)}ig()} - function ig(){if(!ag&&null!==Zf){ag=!0;var a=0;try{var b=Zf;fg(99,function(){for(;a=b&&(wg=!0),a.firstContext=null)}function xg(a,b){if(qg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)qg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===pg){if(null===og)throw Error(u(308));pg=b;og.dependencies={expirationTime:0,firstContext:b,responders:null}}else pg=pg.next=b}return a._currentValue}var yg=!1; - function zg(a){return{baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ag(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}} - function Bg(a,b){return{expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Cg(a,b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b)} - function Dg(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=zg(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=zg(a.memoizedState),e=c.updateQueue=zg(c.memoizedState)):d=a.updateQueue=Ag(e):null===e&&(e=c.updateQueue=Ag(d));null===e||d===e?Cg(d,b):null===d.lastUpdate||null===e.lastUpdate?(Cg(d,b),Cg(e,b)):(Cg(d,b),e.lastUpdate=b)} - function Eg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=zg(a.memoizedState):Fg(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function Fg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=Ag(b));return b} - function Gg(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-4097|64;case 0:a=c.payload;e="function"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return n({},d,e);case 2:yg=!0}return d} - function Hg(a,b,c,d,e){yg=!1;b=Fg(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,l=f;null!==k;){var m=k.expirationTime;mx?(A=r,r=null):A=r.sibling;var p=y(e,r,h[x],k);if(null===p){null===r&&(r=A);break}a&& - r&&null===p.alternate&&b(e,r);g=f(p,g,x);null===m?l=p:m.sibling=p;m=p;r=A}if(x===h.length)return c(e,r),l;if(null===r){for(;xx?(A=r,r=null):A=r.sibling;var z=y(e,r,p.value,k);if(null===z){null===r&&(r=A);break}a&&r&&null===z.alternate&&b(e,r);g=f(z,g,x);null===m?l=z:m.sibling=z;m=z;r=A}if(p.done)return c(e,r),l;if(null===r){for(;!p.done;x++,p=h.next())p=C(e,p.value,k),null!==p&&(g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);return l}for(r=d(e,r);!p.done;x++,p=h.next())p=H(r,e,x,p.value,k),null!==p&&(a&&null!== - p.alternate&&r.delete(null===p.key?x:p.key),g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);a&&r.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===Ia&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Ga:a:{l=f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===Ia:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===Ia?f.props.children:f.props,h);d.ref=Yg(a,k,f);d.return=a;a=d;break a}else{c(a, - k);break}else b(a,k);k=k.sibling}f.type===Ia?(d=eh(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=ch(f.type,f.key,f.props,null,a.mode,h),h.ref=Yg(a,d,f),h.return=a,a=h)}return g(a);case Ha:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=dh(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"=== - typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=bh(f,a.mode,h),d.return=a,a=d),g(a);if(Xg(f))return z(a,d,f,h);if(Ua(f))return ta(a,d,f,h);l&&Zg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var fh=$g(!0),gh=$g(!1),hh={},ih={current:hh},jh={current:hh},kh={current:hh};function lh(a){if(a===hh)throw Error(u(174));return a} - function mh(a,b){I(kh,b,a);I(jh,a,a);I(ih,hh,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Qb(null,"");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Qb(b,c)}G(ih,a);I(ih,b,a)}function nh(a){G(ih,a);G(jh,a);G(kh,a)}function oh(a){lh(kh.current);var b=lh(ih.current);var c=Qb(b,a.type);b!==c&&(I(jh,a,a),I(ih,c,a))}function ph(a){jh.current===a&&(G(ih,a),G(jh,a))}var M={current:0}; - function qh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===je||c.data===ke))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function rh(a,b){return{responder:a,props:b}} - var sh=Ea.ReactCurrentDispatcher,N=Ea.ReactCurrentBatchConfig,th=0,uh=null,O=null,vh=null,wh=null,P=null,xh=null,yh=0,zh=null,Ah=0,Bh=!1,Ch=null,Gh=0;function Q(){throw Error(u(321));}function Hh(a,b){if(null===b)return!1;for(var c=0;cyh&&(yh=m,Jg(yh))):(Ig(m,k.suspenseConfig),f=k.eagerReducer===a?k.eagerState:a(f,k.action));g=k;k=k.next}while(null!==k&&k!==d);l||(h=g,e=f);of(f,b.memoizedState)||(wg=!0);b.memoizedState=f;b.baseUpdate=h;b.baseState=e;c.lastRenderedState=f}return[b.memoizedState,c.dispatch]} - function Rh(a){var b=Nh();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={last:null,dispatch:null,lastRenderedReducer:Ph,lastRenderedState:a};a=a.dispatch=Sh.bind(null,uh,a);return[b.memoizedState,a]}function Th(a){return Qh(Ph,a)}function Uh(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null===zh?(zh={lastEffect:null},zh.lastEffect=a.next=a):(b=zh.lastEffect,null===b?zh.lastEffect=a.next=a:(c=b.next,b.next=a,a.next=c,zh.lastEffect=a));return a} - function Vh(a,b,c,d){var e=Nh();Ah|=a;e.memoizedState=Uh(b,c,void 0,void 0===d?null:d)}function Wh(a,b,c,d){var e=Oh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&Hh(d,g.deps)){Uh(0,c,f,d);return}}Ah|=a;e.memoizedState=Uh(b,c,f,d)}function Xh(a,b){return Vh(516,192,a,b)}function Yh(a,b){return Wh(516,192,a,b)} - function Zh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function $h(){}function ai(a,b){Nh().memoizedState=[a,void 0===b?null:b];return a}function bi(a,b){var c=Oh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];c.memoizedState=[a,b];return a} - function Sh(a,b,c){if(!(25>Gh))throw Error(u(301));var d=a.alternate;if(a===uh||null!==d&&d===uh)if(Bh=!0,a={expirationTime:th,suspenseConfig:null,action:c,eagerReducer:null,eagerState:null,next:null},null===Ch&&(Ch=new Map),c=Ch.get(b),void 0===c)Ch.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}else{var e=Pg(),f=Mg.suspense;e=Qg(e,a,f);f={expirationTime:e,suspenseConfig:f,action:c,eagerReducer:null,eagerState:null,next:null};var g=b.last;if(null===g)f.next=f;else{var h=g.next;null!==h&& - (f.next=h);g.next=f}b.last=f;if(0===a.expirationTime&&(null===d||0===d.expirationTime)&&(d=b.lastRenderedReducer,null!==d))try{var k=b.lastRenderedState,l=d(k,c);f.eagerReducer=d;f.eagerState=l;if(of(l,k))return}catch(m){}finally{}Rg(a,e)}} - var Lh={readContext:xg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useResponder:Q,useDeferredValue:Q,useTransition:Q},Jh={readContext:xg,useCallback:ai,useContext:xg,useEffect:Xh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Vh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Vh(4,36,a,b)},useMemo:function(a,b){var c=Nh();b=void 0===b?null:b;a=a();c.memoizedState= - [a,b];return a},useReducer:function(a,b,c){var d=Nh();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={last:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Sh.bind(null,uh,a);return[d.memoizedState,a]},useRef:function(a){var b=Nh();a={current:a};return b.memoizedState=a},useState:Rh,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Rh(a),d=c[0],e=c[1];Xh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense= - c}})},[a,b]);return d},useTransition:function(a){var b=Rh(!1),c=b[0],d=b[1];return[ai(function(b){d(!0);q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},Kh={readContext:xg,useCallback:bi,useContext:xg,useEffect:Yh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Wh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Wh(4,36,a,b)},useMemo:function(a,b){var c=Oh();b=void 0===b? - null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a},useReducer:Qh,useRef:function(){return Oh().memoizedState},useState:Th,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Th(a),d=c[0],e=c[1];Yh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense=c}})},[a,b]);return d},useTransition:function(a){var b=Th(!1),c=b[0],d=b[1];return[bi(function(b){d(!0);q.unstable_next(function(){var c= - N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},ci=null,di=null,ei=!1;function fi(a,b){var c=gi(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c} - function hi(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}} - function ii(a){if(ei){var b=di;if(b){var c=b;if(!hi(a,b)){b=re(c.nextSibling);if(!b||!hi(a,b)){a.effectTag=a.effectTag&-1025|2;ei=!1;ci=a;return}fi(ci,c)}ci=a;di=re(b.firstChild)}else a.effectTag=a.effectTag&-1025|2,ei=!1,ci=a}}function ji(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;ci=a} - function ki(a){if(a!==ci)return!1;if(!ei)return ji(a),ei=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!oe(b,a.memoizedProps))for(b=di;b;)fi(a,b),b=re(b.nextSibling);ji(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(u(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(c===ie){if(0===b){di=re(a.nextSibling);break a}b--}else c!==he&&c!==ke&&c!==je||b++}a=a.nextSibling}di=null}}else di=ci?re(a.stateNode.nextSibling):null;return!0} - function li(){di=ci=null;ei=!1}var mi=Ea.ReactCurrentOwner,wg=!1;function R(a,b,c,d){b.child=null===a?gh(b,null,c,d):fh(b,a.child,c,d)}function ni(a,b,c,d,e){c=c.render;var f=b.ref;vg(b,e);d=Ih(a,b,c,d,f,e);if(null!==a&&!wg)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),oi(a,b,e);b.effectTag|=1;R(a,b,d,e);return b.child} - function pi(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!qi(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,ri(a,b,g,d,e,f);a=ch(c.type,null,d,null,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(eb)&&Gj.set(a,b)))}} - function Kj(a,b){a.expirationTimea?b:a} - function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=hg(Lj.bind(null,a));else{var b=Oj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Pg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Xf&&Nf(c)}a.callbackExpirationTime= - b;a.callbackPriority=d;b=1073741823===b?hg(Lj.bind(null,a)):gg(d,Qj.bind(null,a),{timeout:10*(1073741821-b)-cg()});a.callbackNode=b}}} - function Qj(a,b){Jj=0;if(b)return b=Pg(),Rj(a,b),Z(a),null;var c=Oj(a);if(0!==c){b=a.callbackNode;if((T&(oj|pj))!==S)throw Error(u(327));Sj();a===U&&c===W||Tj(a,c);if(null!==V){var d=T;T|=oj;var e=Uj(a);do try{Vj();break}catch(h){Wj(a,h)}while(1);rg();T=d;lj.current=e;if(X===rj)throw b=wj,Tj(a,c),Mj(a,c),Z(a),b;if(null===V)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=X,U=null,d){case qj:case rj:throw Error(u(345));case sj:Rj(a,2=c){a.lastPingedTime=c;Tj(a,c);break}}f=Oj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=pe(Yj.bind(null,a),e);break}Yj(a);break;case uj:Mj(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Xj(e));if(Bj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Tj(a,c);break}e=Oj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime= - d;break}1073741823!==yj?d=10*(1073741821-yj)-cg():1073741823===xj?d=0:(d=10*(1073741821-xj)-5E3,e=cg(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*kj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=cg()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+Xa(e))}X!==vj&&(X=sj);f=Ni(f,e);k=d;do{switch(k.tag){case 3:g=f;k.effectTag|=4096;k.expirationTime=b;var x=fj(k,g,b);Eg(k,x);break a;case 1:g=f;var A=k.type,p=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof A.getDerivedStateFromError||null!==p&&"function"===typeof p.componentDidCatch&& - (null===jj||!jj.has(p)))){k.effectTag|=4096;k.expirationTime=b;var t=ij(k,g,b);Eg(k,t);break a}}k=k.return}while(null!==k)}V=ek(V)}catch(v){b=v;continue}break}while(1)}function Uj(){var a=lj.current;lj.current=Lh;return null===a?Lh:a}function Ig(a,b){aAj&&(Aj=a)}function Zj(){for(;null!==V;)V=fk(V)}function Vj(){for(;null!==V&&!Of();)V=fk(V)} - function fk(a){var b=gk(a.alternate,a,W);a.memoizedProps=a.pendingProps;null===b&&(b=ek(a));mj.current=null;return b} - function ek(a){V=a;do{var b=V.alternate;a=V.return;if(0===(V.effectTag&2048)){a:{var c=b;b=V;var d=W;var e=b.pendingProps;switch(b.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:L(b.type)&&Ff(b);break;case 3:nh(b);Gf(b);e=b.stateNode;e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null);(null===c||null===c.child)&&ki(b)&&Ci(b);Ii(b);break;case 5:ph(b);d=lh(kh.current);var f=b.type;if(null!==c&&null!=b.stateNode)Ji(c,b,f,e,d),c.ref!==b.ref&&(b.effectTag|=128);else if(e){var g= - lh(ih.current);if(ki(b)){e=b;var h=e.stateNode;c=e.type;var k=e.memoizedProps,l=d;h[ue]=e;h[ve]=k;f=void 0;d=h;switch(c){case "iframe":case "object":case "embed":F("load",d);break;case "video":case "audio":for(h=0;h\x3c/script>",h=k.removeChild(k.firstChild)):"string"===typeof k.is?h=h.createElement(l,{is:k.is}):(h=h.createElement(l),"select"===l&&(l=h,k.multiple?l.multiple=!0:k.size&&(l.size=k.size))):h=h.createElementNS(g,l);k=h;k[ue]=c;k[ve]=e;Hi(k,b,!1,!1);b.stateNode=k;l=f;c=e;var m=d,C=Zd(l,c);switch(l){case "iframe":case "object":case "embed":F("load", - k);d=c;break;case "video":case "audio":for(d=0;de.tailExpiration&&1f&&(f=c),k>f&&(f=k),d=d.sibling;e.childExpirationTime=f}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=V.firstEffect),null!==V.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect= - V.firstEffect),a.lastEffect=V.lastEffect),1a?b:a}function Yj(a){var b=dg();fg(99,ik.bind(null,a,b));return null} - function ik(a,b){do Sj();while(null!==Ej);if((T&(oj|pj))!==S)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Xj(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime= - d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===U&&(V=U=null,W=0);1h&&(l=h,h=g,g=l),l=de(p,g),m=de(p,h),l&&m&&(1!==v.rangeCount||v.anchorNode!==l.node||v.anchorOffset!==l.offset||v.focusNode!==m.node||v.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),v.removeAllRanges(),g>h?(v.addRange(t),v.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),v.addRange(t))))));t=[];for(v=p;v=v.parentNode;)1===v.nodeType&&t.push({element:v,left:v.scrollLeft,top:v.scrollTop}); - "function"===typeof p.focus&&p.focus();for(p=0;p=c)return yi(a,b,c);I(M,M.current& - 1,b);b=oi(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1,b);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Bi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current,b);if(!d)return null}return oi(a,b,c)}wg=!1}}else wg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ef(b,J.current);vg(b,c);e=Ih(null,b,d,a,e,c);b.effectTag|=1;if("object"=== - typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;Mh();if(L(d)){var f=!0;Jf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&Og(b,d,g,a);e.updater=Sg;b.stateNode=e;e._reactInternalFiber=b;Wg(b,d,a,c);b=vi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Va(e);if(1!==e._status)throw e._result; - e=e._result;b.type=e;f=b.tag=nk(e);a=mg(e,a);switch(f){case 0:b=si(null,b,e,a,c);break;case 1:b=ui(null,b,e,a,c);break;case 11:b=ni(null,b,e,a,c);break;case 14:b=pi(null,b,e,mg(e.type,a),d,c);break;default:throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),si(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ui(a,b,d,e,c);case 3:wi(b);d=b.updateQueue;if(null===d)throw Error(u(282));e=b.memoizedState;e=null!==e?e.element: - null;Hg(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)li(),b=oi(a,b,c);else{if(e=b.stateNode.hydrate)di=re(b.stateNode.containerInfo.firstChild),ci=b,e=ei=!0;if(e)for(c=gh(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),li();b=b.child}return b;case 5:return oh(b),null===a&&ii(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,oe(d,e)?g=null:null!==f&&oe(d,f)&&(b.effectTag|=16),ti(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime= - b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&ii(b),null;case 13:return yi(a,b,c);case 4:return mh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=fh(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ni(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context; - e=b.pendingProps;g=b.memoizedProps;f=e.value;sg(b,f);if(null!==g){var h=g.value;f=of(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!K.current){b=oi(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=Bg(c,null),l.tag=2,Dg(h,l));h.expirationTimeb}return!1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var C={}; + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)}); + ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)}); + ["checked","multiple","muted","selected"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()} + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(Ua, + Va);C[b]=new v(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)}); + C.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null}); + function Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:rb(c)}} + function Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Mb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}; + function Nb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ob(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Nb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a} + var Pb,Qb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Mb.svg||"innerHTML"in a)a.innerHTML=b;else{Pb=Pb||document.createElement("div");Pb.innerHTML=""+b.valueOf().toString()+"";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}); + function Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Tb={animationend:Sb("Animation","AnimationEnd"),animationiteration:Sb("Animation","AnimationIteration"),animationstart:Sb("Animation","AnimationStart"),transitionend:Sb("Transition","TransitionEnd")},Ub={},Vb={}; + ya&&(Vb=document.createElement("div").style,"AnimationEvent"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),"TransitionEvent"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a} + var Xb=Wb("animationend"),Yb=Wb("animationiteration"),Zb=Wb("animationstart"),$b=Wb("transitionend"),ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bc=new ("function"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b} + function dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188));} + function gc(a){var b=a.alternate;if(!b){b=dc(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h=== + c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function hc(a){a=gc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null} + function ic(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null; + function lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;dpc.length&&pc.push(a)} + function rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}} + function sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=tc(d)}while(c);for(c=0;c=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}} + function wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=td(a.document)}return b} + function yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var zd="$",Ad="/$",Bd="$?",Cd="$!",Dd=null,Ed=null;function Fd(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1} + function Gd(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd="function"===typeof setTimeout?setTimeout:void 0,Id="function"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a} + function Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md="__reactInternalInstance$"+Ld,Nd="__reactEventHandlers$"+Ld,Od="__reactContainere$"+Ld; + function tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null} + function Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null} + function Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(u(231, + b,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&"CompositionEvent"in window,ke=null;ya&&"documentMode"in document&&(ke=document.documentMode); + var le=ya&&"TextEvent"in window&&!ke,me=ya&&(!je||ke&&8=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart", + captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},pe=!1; + function qe(a,b){switch(a){case "keyup":return-1!==ie.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function re(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var se=!1;function te(a,b){switch(a){case "compositionend":return re(b);case "keypress":if(32!==b.which)return null;pe=!0;return ne;case "textInput":return a=b.data,a===ne&&pe?null:a;default:return null}} + function ue(a,b){if(se)return"compositionend"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ef=null,ff=null,gf=null,hf=!1; + function jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;"selectionStart"in c&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type="select",a.target=ef,Xd(a),a)} + var kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.onSelect;for(var g=0;gzf||(a.current=yf[zf],yf[zf]=null,zf--)} + function I(a,b){zf++;yf[zf]=a.current;a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a} + function Df(){H(K);H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b);I(K,c)}function Ff(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,pb(b)||"Unknown",e));return n({},c,{},d)}function Gf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af;Bf=J.current;I(J,a);I(K,K.current);return!0} + function Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K);I(K,c)} + var If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1E4>Zf?Mf:function(){return Mf()-Zf}; + function ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332));}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332));}}function cg(a,b){a=bg(a);return If(a,b)}function dg(a,b,c){a=bg(a);return Jf(a,b,c)}function eg(a){null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a);return Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null;Kf(a)}fg()} + function fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,function(){for(;a=b&&(rg=!0),a.firstContext=null)} + function sg(a,b){if(mg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)mg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===lg){if(null===kg)throw Error(u(308));lg=b;kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b}return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}} + function vg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null};return a.next=a}function xg(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}} + function yg(a,b){var c=a.alternate;null!==c&&vg(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)} + function zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h){var z=h;do{g=z.expirationTime;if(gl&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null});Ag(g,z.suspenseConfig);a:{var D=a,t=z;g=b;ca=c;switch(t.tag){case 1:D=t.payload;if("function"===typeof D){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=D.effectTag&-4097|64;case 0:D=t.payload;g="function"===typeof D?D.call(ca,k,g):D;if(null===g||void 0===g)break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&& + (a.effectTag|=32,g=e.effects,null===g?e.effects=[z]:g.push(z))}z=z.next;if(null===z||z===h)if(g=e.shared.pending,null===g)break;else z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===x?m=k:x.next=p;e.baseState=m;e.baseQueue=x;Bg(l);a.expirationTime=l;a.memoizedState=k}} + function Cg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;by?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&& + m&&null===q.alternate&&b(e,m);g=f(q,g,y);null===t?l=q:t.sibling=q;t=q;m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;yy?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t);g=f(D,g,y);null===m?k=D:m.sibling=D;m=D;t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())q=p(e,q.value,l),null!==q&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())q=z(t,e,y,q.value,l),null!==q&&(a&&null!== + q.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);a&&t.forEach(function(a){return b(e,a)});return k}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a, + k.sibling);d=e(k,f.props);d.ref=Pg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ab?(d=Wg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Ug(f.type,f.key,f.props,null,a.mode,h),h.ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d= + d.sibling}d=Vg(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Tg(f,a.mode,h),d.return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);l&&Qg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg}; + function ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){I(bh,b);I(ah,a);I($g,Zg);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Ob(b,a)}H($g);I($g,b)}function eh(){H($g);H(ah);H(bh)}function fh(a){ch(bh.current);var b=ch($g.current);var c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0}; + function hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===Bd||c.data===Cd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}} + var jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321));}function nh(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(u(301));f+=1;P=O=null;b.updateQueue=null;jh.current=rh;a=c(d,e)}while(b.expirationTime===lh)}jh.current=sh;b=null!==O&&null!==O.next;lh=0;P=O=N=null;mh=!1;if(b)throw Error(u(300));return a} + function th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P} + function vh(a,b){return"function"===typeof b?b(a):b} + function wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(lN.expirationTime&& + (N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;$e(d,b.memoizedState)||(rg=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]} + function xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);$e(f,b.memoizedState)||(rg=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]} + function yh(a){var b=th();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a};a=a.dispatch=zh.bind(null,N,a);return[b.memoizedState,a]}function Ah(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a} + function Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a;e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&nh(d,g.deps)){Ah(b,c,f,d);return}}N.effectTag|=a;e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)} + function Hh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Ih(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){th().memoizedState=[a,void 0===b?null:b];return a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];c.memoizedState=[a,b];return a} + function Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Nh(a,b,c){var d=ag();cg(98>d?98:d,function(){a(!0)});cg(97\x3c/script>",a=a.removeChild(a.firstChild)):"string"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),"select"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Md]=b;a[Nd]=d;ni(a,b,!1,!1);b.stateNode=a;g=pd(e,d);switch(e){case "iframe":case "object":case "embed":F("load", + a);h=d;break;case "video":case "audio":for(h=0;hd.tailExpiration&&1b)&&tj.set(a,b)))}} + function xj(a,b){a.expirationTimea?c:a;return 2>=a&&b!==a?0:a} + function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime= + b;a.callbackPriority=d;b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()});a.callbackNode=b}}} + function Bj(a,b){wj=0;if(b)return b=Gg(),Cj(a,b),Z(a),null;var c=zj(a);if(0!==c){b=a.callbackNode;if((W&(fj|gj))!==V)throw Error(u(327));Dj();a===T&&c===U||Ej(a,c);if(null!==X){var d=W;W|=fj;var e=Fj();do try{Gj();break}catch(h){Hj(a,h)}while(1);ng();W=d;cj.current=e;if(S===hj)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case hj:throw Error(u(345));case ij:Cj(a,2=c){a.lastPingedTime=c;Ej(a,c);break}}f=zj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:xi(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ij(e));if(oj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Ej(a,c);break}e=zj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime= + d;break}1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5E3,e=$f(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*bj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=$f()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+qb(g))}S!== + jj&&(S=ij);h=Ai(h,g);p=f;do{switch(p.tag){case 3:k=h;p.effectTag|=4096;p.expirationTime=b;var B=Xi(p,k,b);yg(p,B);break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0===(p.effectTag&64)&&("function"===typeof w.getDerivedStateFromError||null!==ub&&"function"===typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096;p.expirationTime=b;var vb=$i(p,k,b);yg(p,vb);break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}while(1)} + function Fj(){var a=cj.current;cj.current=sh;return null===a?sh:a}function Ag(a,b){awi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Pj(a));dj.current=null;return b} + function Pj(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=si(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Jj(a){var b=ag();cg(99,Sj.bind(null,a,b));return null} + function Sj(a,b){do Dj();while(null!==rj);if((W&(fj|gj))!==V)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ij(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime= + d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===T&&(X=T=null,U=0);1h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&(B=B.createRange(),B.setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))));B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft, + top:w.scrollTop});"function"===typeof q.focus&&q.focus();for(q=0;q=c)return ji(a,b,c);I(M,M.current&1);b=$h(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return mi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current);if(!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Cf(b,J.current);qg(b,c);e=oh(null, + b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;ug(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&Fg(b,d,g,a);e.updater=Jg;b.stateNode=e;e._reactInternalFiber=b;Ng(b,d,a,c);b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate= + null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;ob(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=Xj(e);a=ig(e,a);switch(f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),di(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),fi(a,b,d,e,c); + case 3:hi(b);d=b.updateQueue;if(null===a||null===d)throw Error(u(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;vg(a,b);zg(b,d,null,c);d=b.memoizedState.element;if(d===e)Xh(),b=$h(a,b,c);else{if(e=b.stateNode.hydrate)Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0;if(e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps: + null,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),Zh(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a, + b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(jg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=$e(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!== + k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=wg(c,null),l.tag=2,xg(h,l));h.expirationTime=b&&a<=b}function Mj(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)} - function Nj(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Rj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b} - function rk(a,b,c,d){var e=b.current,f=Pg(),g=Mg.suspense;f=Qg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(ec(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=If(c,k,h);break a}}c=h}else c=Cf;null===b.context?b.context=c:b.pendingContext=c;b=Bg(f,g);b.payload={element:a};d=void 0=== - d?null:d;null!==d&&(b.callback=d);Dg(e,b);Rg(e,f);return f}function sk(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function tk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)} + function yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b} + function bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(dc(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;null===b.context?b.context=c:b.pendingContext=c;b=wg(f,g);b.payload={element:a};d=void 0=== + d?null:d;null!==d&&(b.callback=d);xg(e,b);Ig(e,f);return f}function ck(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function dk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime0)for(n=0;ne?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=M(t)),n}function S(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;i>s;s++)(n&&e[s]!==t[s]||!n&&k(e[s])!==k(t[s]))&&a++;return a+r}function D(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function Y(e,n){var s=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),s){for(var i,r=[],a=0;a0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function L(e,t){var n=e.toLowerCase();Zi[n]=Zi[n+"s"]=Zi[t]=e}function G(e){return"string"==typeof e?Zi[e]||Zi[e.toLowerCase()]:void 0}function V(e){var t,n,s={};for(n in e)d(e,n)&&(t=G(n),t&&(s[t]=e[n]));return s}function E(e,t){zi[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:zi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function A(e,t,n){var s=""+Math.abs(e),i=t-s.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}function j(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(Bi[e]=i),t&&(Bi[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),n&&(Bi[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t,n,s=e.match($i);for(t=0,n=s.length;n>t;t++)s[t]=Bi[s[t]]?Bi[s[t]]:N(s[t]);return function(t){var i,r="";for(i=0;n>i;i++)r+=T(s[i])?s[i].call(t,e):s[i];return r}}function z(e,t){return e.isValid()?(t=$(t,e.localeData()),Ji[t]=Ji[t]||Z(t),Ji[t](e)):e.localeData().invalidDate()}function $(e,t){function n(e){return t.longDateFormat(e)||e}var s=5;for(qi.lastIndex=0;s>=0&&qi.test(e);)e=e.replace(qi,n),qi.lastIndex=0,s-=1;return e}function q(e,t,n){mr[e]=T(t)?t:function(e){return e&&n?n:t}}function J(e,t){return d(mr,e)?mr[e](t._strict,t._locale):new RegExp(B(e))}function B(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),u(t)&&(s=function(e,n){n[t]=k(e)}),n=0;ns;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=Yr.call(this._shortMonthsParse,a),-1!==i?i:null):(i=Yr.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?(i=Yr.call(this._shortMonthsParse,a),-1!==i?i:(i=Yr.call(this._longMonthsParse,a),-1!==i?i:null)):(i=Yr.call(this._longMonthsParse,a),-1!==i?i:(i=Yr.call(this._shortMonthsParse,a),-1!==i?i:null))}function mt(e,t,n){var s,i,r;if(this._monthsParseExact)return ft.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;12>s;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}}function _t(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(t=e.localeData().monthsParse(t),!u(t))return e;return n=Math.min(e.date(),ht(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function yt(e){return null!=e?(_t(this,e),t.updateOffset(this,!0),this):rt(this,"Month")}function gt(){return ht(this.year(),this.month())}function pt(e){return this._monthsParseExact?(d(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Pr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function wt(e){return this._monthsParseExact?(d(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Wr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;12>t;t++)n=f([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;12>t;t++)s[t]=Q(s[t]),i[t]=Q(i[t]);for(t=0;24>t;t++)r[t]=Q(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Mt(e,t,n,s,i,r,a){var o;return 100>e&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function kt(e){var t;if(100>e&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function St(e,t,n){var s=7+t-n,i=(7+kt(e,0,s).getUTCDay()-t)%7;return-i+s-1}function Dt(e,t,n,s,i){var r,a,o=(7+n-s)%7,u=St(e,s,i),l=1+7*(t-1)+o+u;return 0>=l?(r=e-1,a=tt(r)+l):l>tt(e)?(r=e+1,a=l-tt(e)):(r=e,a=l),{year:r,dayOfYear:a}}function Yt(e,t,n){var s,i,r=St(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>a?(i=e.year()-1,s=a+Ot(i,t,n)):a>Ot(e.year(),t,n)?(s=a-Ot(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ot(e,t,n){var s=St(e,t,n),i=St(e+1,t,n);return(tt(e)-s+i)/7}function Tt(e){return Yt(e,this._week.dow,this._week.doy).week}function bt(){return this._week.dow}function xt(){return this._week.doy}function Pt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Wt(e){var t=Yt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ct(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ht(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Rt(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Ut(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Rt(n,this._week.dow):e?n[e.day()]:n}function Ft(e){return e===!0?Rt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Lt(e){return e===!0?Rt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;7>s;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=Yr.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=Yr.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=Yr.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?(i=Yr.call(this._weekdaysParse,a),-1!==i?i:(i=Yr.call(this._shortWeekdaysParse,a),-1!==i?i:(i=Yr.call(this._minWeekdaysParse,a),-1!==i?i:null))):"ddd"===t?(i=Yr.call(this._shortWeekdaysParse,a),-1!==i?i:(i=Yr.call(this._weekdaysParse,a),-1!==i?i:(i=Yr.call(this._minWeekdaysParse,a),-1!==i?i:null))):(i=Yr.call(this._minWeekdaysParse,a),-1!==i?i:(i=Yr.call(this._weekdaysParse,a),-1!==i?i:(i=Yr.call(this._shortWeekdaysParse,a),-1!==i?i:null)))}function Vt(e,t,n){var s,i,r;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;7>s;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}}function Et(e){if(!this.isValid())return null!=e?this:0/0;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ct(e,this.localeData()),this.add(e-t,"d")):t}function It(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function At(e){if(!this.isValid())return null!=e?this:0/0;if(null!=e){var t=Ht(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function jt(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Fr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nt(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zt(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zt(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;7>t;t++)n=f([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;7>t;t++)o[t]=Q(o[t]),u[t]=Q(u[t]),l[t]=Q(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $t(){return this.hours()%12||12}function qt(){return this.hours()||24}function Jt(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Bt(e,t){return t._meridiemParse}function Qt(e){return"p"===(e+"").toLowerCase().charAt(0)}function Xt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Kt(e){return e?e.toLowerCase().replace("_","-"):e}function en(e){for(var t,n,s,i,r=0;r0;){if(s=tn(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&S(i,n,!0)>=t-1)break;t--}r++}return Vr}function tn(t){var s=null;if(!jr[t]&&"undefined"!=typeof n&&n&&n.exports)try{s=Vr._abbr;var i=e;i("./locale/"+t),nn(s)}catch(r){}return jr[t]}function nn(e,t){var n;return e&&(n=o(t)?an(e):sn(e,t),n?Vr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Vr._abbr}function sn(e,t){if(null!==t){var n,s=Ar;if(t.abbr=e,null!=jr[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=jr[e]._config;else if(null!=t.parentLocale)if(null!=jr[t.parentLocale])s=jr[t.parentLocale]._config;else{if(n=tn(t.parentLocale),null==n)return Nr[t.parentLocale]||(Nr[t.parentLocale]=[]),Nr[t.parentLocale].push({name:e,config:t}),null;s=n._config}return jr[e]=new P(x(s,t)),Nr[e]&&Nr[e].forEach(function(e){sn(e.name,e.config)}),nn(e),jr[e]}return delete jr[e],null}function rn(e,t){if(null!=t){var n,s,i=Ar;s=tn(e),null!=s&&(i=s._config),t=x(i,t),n=new P(t),n.parentLocale=jr[e],jr[e]=n,nn(e)}else null!=jr[e]&&(null!=jr[e].parentLocale?jr[e]=jr[e].parentLocale:null!=jr[e]&&delete jr[e]);return jr[e]}function an(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Vr;if(!i(e)){if(t=tn(e))return t;e=[e]}return en(e)}function on(){return Gi(jr)}function un(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[gr]<0||n[gr]>11?gr:n[pr]<1||n[pr]>ht(n[yr],n[gr])?pr:n[wr]<0||n[wr]>24||24===n[wr]&&(0!==n[vr]||0!==n[Mr]||0!==n[kr])?wr:n[vr]<0||n[vr]>59?vr:n[Mr]<0||n[Mr]>59?Mr:n[kr]<0||n[kr]>999?kr:-1,_(e)._overflowDayOfYear&&(yr>t||t>pr)&&(t=pr),_(e)._overflowWeeks&&-1===t&&(t=Sr),_(e)._overflowWeekday&&-1===t&&(t=Dr),_(e).overflow=t),e}function ln(e,t,n){return null!=e?e:null!=t?t:n}function hn(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function dn(e){var t,n,s,i,r,a=[];if(!e._d){for(s=hn(e),e._w&&null==e._a[pr]&&null==e._a[gr]&&cn(e),null!=e._dayOfYear&&(r=ln(e._a[yr],s[yr]),(e._dayOfYear>tt(r)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=kt(r,0,e._dayOfYear),e._a[gr]=n.getUTCMonth(),e._a[pr]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[wr]&&0===e._a[vr]&&0===e._a[Mr]&&0===e._a[kr]&&(e._nextDay=!0,e._a[wr]=0),e._d=(e._useUTC?kt:Mt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[wr]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==i&&(_(e).weekdayMismatch=!0)}}function cn(e){var t,n,s,i,r,a,o,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,a=4,n=ln(t.GG,e._a[yr],Yt(xn(),1,4).year),s=ln(t.W,1),i=ln(t.E,1),(1>i||i>7)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Yt(xn(),r,a);n=ln(t.gg,e._a[yr],l.year),s=ln(t.w,l.week),null!=t.d?(i=t.d,(0>i||i>6)&&(u=!0)):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r}1>s||s>Ot(n,r,a)?_(e)._overflowWeeks=!0:null!=u?_(e)._overflowWeekday=!0:(o=Dt(n,s,i,r,a),e._a[yr]=o.year,e._dayOfYear=o.dayOfYear)}function fn(e){var t,n,s,i,r,a,o=e._i,u=Zr.exec(o)||zr.exec(o);if(u){for(_(e).iso=!0,t=0,n=qr.length;n>t;t++)if(qr[t][1].exec(u[1])){i=qr[t][0],s=qr[t][2]!==!1;break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Jr.length;n>t;t++)if(Jr[t][1].exec(u[3])){r=(u[2]||" ")+Jr[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!$r.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Mn(e)}else e._isValid=!1}function mn(e,t,n,s,i,r){var a=[_n(e),xr.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function _n(e){var t=parseInt(e,10);return 49>=t?2e3+t:999>=t?1900+t:t}function yn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gn(e,t,n){if(e){var s=Rr.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(s!==i)return _(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pn(e,t,n){if(e)return Xr[e];if(t)return 0;var s=parseInt(n,10),i=s%100,r=(s-i)/100;return 60*r+i}function wn(e){var t=Qr.exec(yn(e._i));if(t){var n=mn(t[4],t[3],t[2],t[5],t[6],t[7]);if(!gn(t[1],n,e))return;e._a=n,e._tzm=pn(t[8],t[9],t[10]),e._d=kt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function vn(e){var n=Br.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(fn(e),void(e._isValid===!1&&(delete e._isValid,wn(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function Mn(e){if(e._f===t.ISO_8601)return void fn(e);if(e._f===t.RFC_2822)return void wn(e);e._a=[],_(e).empty=!0;var n,s,i,r,a,o=""+e._i,u=o.length,l=0;for(i=$(e._f,e._locale).match($i)||[],n=0;n0&&_(e).unusedInput.push(a),o=o.slice(o.indexOf(s)+s.length),l+=s.length),Bi[r]?(s?_(e).empty=!1:_(e).unusedTokens.push(r),et(r,s,e)):e._strict&&!s&&_(e).unusedTokens.push(r);_(e).charsLeftOver=u-l,o.length>0&&_(e).unusedInput.push(o),e._a[wr]<=12&&_(e).bigHour===!0&&e._a[wr]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[wr]=kn(e._locale,e._a[wr],e._meridiem),dn(e),un(e)}function kn(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(s=e.isPM(n),s&&12>t&&(t+=12),s||12!==t||(t=0),t):t}function Sn(e){var t,n,s,i,r;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(0/0));for(i=0;ir)&&(s=r,n=t));c(e,n||t)}function Dn(e){if(!e._d){var t=V(e._i);e._a=h([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),dn(e)}}function Yn(e){var t=new w(un(On(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function On(e){var t=e._i,n=e._f;return e._locale=e._locale||an(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new w(un(t)):(l(t)?e._d=t:i(n)?Sn(e):n?Mn(e):Tn(e),y(e)||(e._d=null),e))}function Tn(e){var n=e._i;o(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?vn(e):i(n)?(e._a=h(n.slice(0),function(e){return parseInt(e,10)}),dn(e)):r(n)?Dn(e):u(n)?e._d=new Date(n):t.createFromInputFallback(e)}function bn(e,t,n,s,o){var u={};return(n===!0||n===!1)&&(s=n,n=void 0),(r(e)&&a(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=s,Yn(u)}function xn(e,t,n,s){return bn(e,t,n,s,!1)}function Pn(e,t){var n,s;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return xn();for(n=t[0],s=1;se?-1*Math.round(-1*e):Math.round(e)}function Vn(e,t){j(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)})}function En(e,t){var n=(t||"").match(e);if(null===n)return null;var s=n[n.length-1]||[],i=(s+"").match(sa)||["-",0,0],r=+(60*i[1])+k(i[2]);return 0===r?0:"+"===i[0]?r:-r}function In(e,n){var s,i;return n._isUTC?(s=n.clone(),i=(v(e)||l(e)?e.valueOf():xn(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+i),t.updateOffset(s,!1),s):xn(e).local()}function An(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function jn(e,n,s){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null!=e){if("string"==typeof e){if(e=En(dr,e),null===e)return this}else Math.abs(e)<16&&!s&&(e=60*e);return!this._isUTC&&n&&(i=An(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?rs(this,es(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:An(this)}function Nn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Zn(e){return this.utcOffset(0,e)}function zn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(An(this),"m")),this}function $n(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=En(hr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qn(e){return this.isValid()?(e=e?xn(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Jn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bn(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(p(e,this),e=On(e),e._a){var t=e._isUTC?f(e._a):xn(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Qn(){return this.isValid()?!this._isUTC:!1}function Xn(){return this.isValid()?this._isUTC:!1}function Kn(){return this.isValid()?this._isUTC&&0===this._offset:!1}function es(e,t){var n,s,i,r=e,a=null;return Ln(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=ia.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:k(a[pr])*n,h:k(a[wr])*n,m:k(a[vr])*n,s:k(a[Mr])*n,ms:k(Gn(1e3*a[kr]))*n}):(a=ra.exec(e))?(n="-"===a[1]?-1:1,r={y:ts(a[2],n),M:ts(a[3],n),w:ts(a[4],n),d:ts(a[5],n),h:ts(a[6],n),m:ts(a[7],n),s:ts(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=ss(xn(r.from),xn(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),s=new Fn(r),Ln(e)&&d(e,"_locale")&&(s._locale=e._locale),s}function ts(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ns(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ss(e,t){var n;return e.isValid()&&t.isValid()?(t=In(t,e),e.isBefore(t)?n=ns(e,t):(n=ns(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function is(e,t){return function(n,s){var i,r;return null===s||isNaN(+s)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),n="string"==typeof n?+n:n,i=es(n,s),rs(this,i,e),this}}function rs(e,n,s,i){var r=n._milliseconds,a=Gn(n._days),o=Gn(n._months);e.isValid()&&(i=null==i?!0:i,o&&_t(e,rt(e,"Month")+o*s),a&&at(e,"Date",rt(e,"Date")+a*s),r&&e._d.setTime(e._d.valueOf()+r*s),i&&t.updateOffset(e,a||o))}function as(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function os(e,n){var s=e||xn(),i=In(s,this).startOf("day"),r=t.calendarFormat(this,i)||"sameElse",a=n&&(T(n[r])?n[r].call(this,s):n[r]);return this.format(a||this.localeData().calendar(r,this,xn(s)))}function us(){return new w(this)}function ls(e,t){var n=v(e)?e:xn(e);return this.isValid()&&n.isValid()?(t=G(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()t-r?(n=e.clone().add(i-1,"months"),s=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),s=(t-r)/(n-r)),-(i+s)||0}function gs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ps(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ws(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]';return this.format(n+s+i+r)}function vs(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=z(this,e);return this.localeData().postformat(n)}function Ms(e,t){return this.isValid()&&(v(e)&&e.isValid()||xn(e).isValid())?es({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ks(e){return this.from(xn(),e)}function Ss(e,t){return this.isValid()&&(v(e)&&e.isValid()||xn(e).isValid())?es({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ds(e){return this.to(xn(),e)}function Ys(e){var t; -return void 0===e?this._locale._abbr:(t=an(e),null!=t&&(this._locale=t),this)}function Os(){return this._locale}function Ts(e,t){return(e%t+t)%t}function bs(e,t,n){return 100>e&&e>=0?new Date(e+400,t,n)-ca:new Date(e,t,n).valueOf()}function xs(e,t,n){return 100>e&&e>=0?Date.UTC(e+400,t,n)-ca:Date.UTC(e,t,n)}function Ps(e){var n;if(e=G(e),void 0===e||"millisecond"===e||!this.isValid())return this;var s=this._isUTC?xs:bs;switch(e){case"year":n=s(this.year(),0,1);break;case"quarter":n=s(this.year(),this.month()-this.month()%3,1);break;case"month":n=s(this.year(),this.month(),1);break;case"week":n=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=s(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Ts(n+(this._isUTC?0:this.utcOffset()*ha),da);break;case"minute":n=this._d.valueOf(),n-=Ts(n,ha);break;case"second":n=this._d.valueOf(),n-=Ts(n,la)}return this._d.setTime(n),t.updateOffset(this,!0),this}function Ws(e){var n;if(e=G(e),void 0===e||"millisecond"===e||!this.isValid())return this;var s=this._isUTC?xs:bs;switch(e){case"year":n=s(this.year()+1,0,1)-1;break;case"quarter":n=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=s(this.year(),this.month()+1,1)-1;break;case"week":n=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=da-Ts(n+(this._isUTC?0:this.utcOffset()*ha),da)-1;break;case"minute":n=this._d.valueOf(),n+=ha-Ts(n,ha)-1;break;case"second":n=this._d.valueOf(),n+=la-Ts(n,la)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function Cs(){return this._d.valueOf()-6e4*(this._offset||0)}function Hs(){return Math.floor(this.valueOf()/1e3)}function Rs(){return new Date(this.valueOf())}function Us(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Fs(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ls(){return this.isValid()?this.toISOString():null}function Gs(){return y(this)}function Vs(){return c({},_(this))}function Es(){return _(this).overflow}function Is(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function As(e,t){j(0,[e,e.length],0,t)}function js(e){return $s.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ns(e){return $s.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Zs(){return Ot(this.year(),1,4)}function zs(){var e=this.localeData()._week;return Ot(this.year(),e.dow,e.doy)}function $s(e,t,n,s,i){var r;return null==e?Yt(this,s,i).year:(r=Ot(e,s,i),t>r&&(t=r),qs.call(this,e,t,n,s,i))}function qs(e,t,n,s,i){var r=Dt(e,t,n,s,i),a=kt(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Js(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Bs(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Qs(e,t){t[kr]=k(1e3*("0."+e))}function Xs(){return this._isUTC?"UTC":""}function Ks(){return this._isUTC?"Coordinated Universal Time":""}function ei(e){return xn(1e3*e)}function ti(){return xn.apply(null,arguments).parseZone()}function ni(e){return e}function si(e,t,n,s){var i=an(),r=f().set(s,t);return i[n](r,e)}function ii(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return si(e,t,n,"month");var s,i=[];for(s=0;12>s;s++)i[s]=si(e,s,n,"month");return i}function ri(e,t,n,s){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i=an(),r=e?i._week.dow:0;if(null!=n)return si(t,(n+r)%7,s,"day");var a,o=[];for(a=0;7>a;a++)o[a]=si(t,(a+r)%7,s,"day");return o}function ai(e,t){return ii(e,t,"months")}function oi(e,t){return ii(e,t,"monthsShort")}function ui(e,t,n){return ri(e,t,n,"weekdays")}function li(e,t,n){return ri(e,t,n,"weekdaysShort")}function hi(e,t,n){return ri(e,t,n,"weekdaysMin")}function di(){var e=this._data;return this._milliseconds=va(this._milliseconds),this._days=va(this._days),this._months=va(this._months),e.milliseconds=va(e.milliseconds),e.seconds=va(e.seconds),e.minutes=va(e.minutes),e.hours=va(e.hours),e.months=va(e.months),e.years=va(e.years),this}function ci(e,t,n,s){var i=es(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function fi(e,t){return ci(this,e,t,1)}function mi(e,t){return ci(this,e,t,-1)}function _i(e){return 0>e?Math.floor(e):Math.ceil(e)}function yi(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||0>=r&&0>=a&&0>=o||(r+=864e5*_i(pi(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=M(r/1e3),u.seconds=e%60,t=M(e/60),u.minutes=t%60,n=M(t/60),u.hours=n%24,a+=M(n/24),i=M(gi(a)),o+=i,a-=_i(pi(i)),s=M(o/12),o%=12,u.days=a,u.months=o,u.years=s,this}function gi(e){return 4800*e/146097}function pi(e){return 146097*e/4800}function wi(e){if(!this.isValid())return 0/0;var t,n,s=this._milliseconds;if(e=G(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+gi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pi(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}}function vi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):0/0}function Mi(e){return function(){return this.as(e)}}function ki(){return es(this)}function Si(e){return e=G(e),this.isValid()?this[e+"s"]():0/0}function Di(e){return function(){return this.isValid()?this._data[e]:0/0}}function Yi(){return M(this.days()/7)}function Oi(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function Ti(e,t,n){var s=es(e).abs(),i=La(s.as("s")),r=La(s.as("m")),a=La(s.as("h")),o=La(s.as("d")),u=La(s.as("M")),l=La(s.as("y")),h=i<=Ga.ss&&["s",i]||i=r&&["m"]||r=a&&["h"]||a=o&&["d"]||o=u&&["M"]||u=l&&["y"]||["yy",l];return h[2]=t,h[3]=+e>0,h[4]=n,Oi.apply(null,h)}function bi(e){return void 0===e?La:"function"==typeof e?(La=e,!0):!1}function xi(e,t){return void 0===Ga[e]?!1:void 0===t?Ga[e]:(Ga[e]=t,"s"===e&&(Ga.ss=t-1),!0)}function Pi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Ti(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Wi(e){return(e>0)-(0>e)||+e}function Ci(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s=Va(this._milliseconds)/1e3,i=Va(this._days),r=Va(this._months);e=M(s/60),t=M(e/60),s%=60,e%=60,n=M(r/12),r%=12;var a=n,o=r,u=i,l=t,h=e,d=s?s.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var f=0>c?"-":"",m=Wi(this._months)!==Wi(c)?"-":"",_=Wi(this._days)!==Wi(c)?"-":"",y=Wi(this._milliseconds)!==Wi(c)?"-":"";return f+"P"+(a?m+a+"Y":"")+(o?m+o+"M":"")+(u?_+u+"D":"")+(l||h||d?"T":"")+(l?y+l+"H":"")+(h?y+h+"M":"")+(d?y+d+"S":"")}var Hi,Ri;Ri=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;n>s;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var Ui=t.momentProperties=[],Fi=!1,Li={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Gi;Gi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var Vi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ei={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ii="Invalid date",Ai="%d",ji=/\d{1,2}/,Ni={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Zi={},zi={},$i=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,qi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ji={},Bi={},Qi=/\d/,Xi=/\d\d/,Ki=/\d{3}/,er=/\d{4}/,tr=/[+-]?\d{6}/,nr=/\d\d?/,sr=/\d\d\d\d?/,ir=/\d\d\d\d\d\d?/,rr=/\d{1,3}/,ar=/\d{1,4}/,or=/[+-]?\d{1,6}/,ur=/\d+/,lr=/[+-]?\d+/,hr=/Z|[+-]\d\d:?\d\d/gi,dr=/Z|[+-]\d\d(?::?\d\d)?/gi,cr=/[+-]?\d+(\.\d{1,3})?/,fr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,mr={},_r={},yr=0,gr=1,pr=2,wr=3,vr=4,Mr=5,kr=6,Sr=7,Dr=8;j("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),L("year","y"),E("year",1),q("Y",lr),q("YY",nr,Xi),q("YYYY",ar,er),q("YYYYY",or,tr),q("YYYYYY",or,tr),X(["YYYYY","YYYYYY"],yr),X("YYYY",function(e,n){n[yr]=2===e.length?t.parseTwoDigitYear(e):k(e)}),X("YY",function(e,n){n[yr]=t.parseTwoDigitYear(e)}),X("Y",function(e,t){t[yr]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Yr,Or=it("FullYear",!0);Yr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;te?this:e:g()}),ea=Y("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),ta=function(){return Date.now?Date.now():+new Date},na=["year","quarter","month","week","day","hour","minute","second","millisecond"];Vn("Z",":"),Vn("ZZ",""),q("Z",dr),q("ZZ",dr),X(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=En(dr,e)});var sa=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ia=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ra=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;es.fn=Fn.prototype,es.invalid=Un;var aa=is(1,"add"),oa=is(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ua=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),la=1e3,ha=60*la,da=60*ha,ca=3506328*da;j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),As("gggg","weekYear"),As("ggggg","weekYear"),As("GGGG","isoWeekYear"),As("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),E("weekYear",1),E("isoWeekYear",1),q("G",lr),q("g",lr),q("GG",nr,Xi),q("gg",nr,Xi),q("GGGG",ar,er),q("gggg",ar,er),q("GGGGG",or,tr),q("ggggg",or,tr),K(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=k(e)}),K(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),j("Q",0,"Qo","quarter"),L("quarter","Q"),E("quarter",7),q("Q",Qi),X("Q",function(e,t){t[gr]=3*(k(e)-1)}),j("D",["DD",2],"Do","date"),L("date","D"),E("date",9),q("D",nr),q("DD",nr,Xi),q("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),X(["D","DD"],pr),X("Do",function(e,t){t[pr]=k(e.match(nr)[0])});var fa=it("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),E("dayOfYear",4),q("DDD",rr),q("DDDD",Ki),X(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),j("m",["mm",2],0,"minute"),L("minute","m"),E("minute",14),q("m",nr),q("mm",nr,Xi),X(["m","mm"],vr);var ma=it("Minutes",!1);j("s",["ss",2],0,"second"),L("second","s"),E("second",15),q("s",nr),q("ss",nr,Xi),X(["s","ss"],Mr);var _a=it("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),E("millisecond",16),q("S",rr,Qi),q("SS",rr,Xi),q("SSS",rr,Ki);var ya;for(ya="SSSS";ya.length<=9;ya+="S")q(ya,ur);for(ya="S";ya.length<=9;ya+="S")X(ya,Qs);var ga=it("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var pa=w.prototype;pa.add=aa,pa.calendar=os,pa.clone=us,pa.diff=_s,pa.endOf=Ws,pa.format=vs,pa.from=Ms,pa.fromNow=ks,pa.to=Ss,pa.toNow=Ds,pa.get=ot,pa.invalidAt=Es,pa.isAfter=ls,pa.isBefore=hs,pa.isBetween=ds,pa.isSame=cs,pa.isSameOrAfter=fs,pa.isSameOrBefore=ms,pa.isValid=Gs,pa.lang=ua,pa.locale=Ys,pa.localeData=Os,pa.max=ea,pa.min=Kr,pa.parsingFlags=Vs,pa.set=ut,pa.startOf=Ps,pa.subtract=oa,pa.toArray=Us,pa.toObject=Fs,pa.toDate=Rs,pa.toISOString=ps,pa.inspect=ws,pa.toJSON=Ls,pa.toString=gs,pa.unix=Hs,pa.valueOf=Cs,pa.creationData=Is,pa.year=Or,pa.isLeapYear=st,pa.weekYear=js,pa.isoWeekYear=Ns,pa.quarter=pa.quarters=Js,pa.month=yt,pa.daysInMonth=gt,pa.week=pa.weeks=Pt,pa.isoWeek=pa.isoWeeks=Wt,pa.weeksInYear=zs,pa.isoWeeksInYear=Zs,pa.date=fa,pa.day=pa.days=Et,pa.weekday=It,pa.isoWeekday=At,pa.dayOfYear=Bs,pa.hour=pa.hours=Ir,pa.minute=pa.minutes=ma,pa.second=pa.seconds=_a,pa.millisecond=pa.milliseconds=ga,pa.utcOffset=jn,pa.utc=Zn,pa.local=zn,pa.parseZone=$n,pa.hasAlignedHourOffset=qn,pa.isDST=Jn,pa.isLocal=Qn,pa.isUtcOffset=Xn,pa.isUtc=Kn,pa.isUTC=Kn,pa.zoneAbbr=Xs,pa.zoneName=Ks,pa.dates=Y("dates accessor is deprecated. Use date instead.",fa),pa.months=Y("months accessor is deprecated. Use month instead",yt),pa.years=Y("years accessor is deprecated. Use year instead",Or),pa.zone=Y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Nn),pa.isDSTShifted=Y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bn);var wa=P.prototype;wa.calendar=W,wa.longDateFormat=C,wa.invalidDate=H,wa.ordinal=R,wa.preparse=ni,wa.postformat=ni,wa.relativeTime=U,wa.pastFuture=F,wa.set=b,wa.months=dt,wa.monthsShort=ct,wa.monthsParse=mt,wa.monthsRegex=wt,wa.monthsShortRegex=pt,wa.week=Tt,wa.firstDayOfYear=xt,wa.firstDayOfWeek=bt,wa.weekdays=Ut,wa.weekdaysMin=Lt,wa.weekdaysShort=Ft,wa.weekdaysParse=Vt,wa.weekdaysRegex=jt,wa.weekdaysShortRegex=Nt,wa.weekdaysMinRegex=Zt,wa.isPM=Qt,wa.meridiem=Xt,nn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=Y("moment.lang is deprecated. Use moment.locale instead.",nn),t.langData=Y("moment.langData is deprecated. Use moment.localeData instead.",an);var va=Math.abs,Ma=Mi("ms"),ka=Mi("s"),Sa=Mi("m"),Da=Mi("h"),Ya=Mi("d"),Oa=Mi("w"),Ta=Mi("M"),ba=Mi("Q"),xa=Mi("y"),Pa=Di("milliseconds"),Wa=Di("seconds"),Ca=Di("minutes"),Ha=Di("hours"),Ra=Di("days"),Ua=Di("months"),Fa=Di("years"),La=Math.round,Ga={ss:44,s:45,m:45,h:22,d:26,M:11},Va=Math.abs,Ea=Fn.prototype;return Ea.isValid=Rn,Ea.abs=di,Ea.add=fi,Ea.subtract=mi,Ea.as=wi,Ea.asMilliseconds=Ma,Ea.asSeconds=ka,Ea.asMinutes=Sa,Ea.asHours=Da,Ea.asDays=Ya,Ea.asWeeks=Oa,Ea.asMonths=Ta,Ea.asQuarters=ba,Ea.asYears=xa,Ea.valueOf=vi,Ea._bubble=yi,Ea.clone=ki,Ea.get=Si,Ea.milliseconds=Pa,Ea.seconds=Wa,Ea.minutes=Ca,Ea.hours=Ha,Ea.days=Ra,Ea.weeks=Yi,Ea.months=Ua,Ea.years=Fa,Ea.humanize=Pi,Ea.toISOString=Ci,Ea.toString=Ci,Ea.toJSON=Ci,Ea.locale=Ys,Ea.localeData=Os,Ea.toIsoString=Y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ci),Ea.lang=ua,j("X",0,0,"unix"),j("x",0,0,"valueOf"),q("x",lr),q("X",cr),X("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),X("x",function(e,t,n){n._d=new Date(k(e))}),t.version="2.24.0",s(xn),t.fn=pa,t.min=Wn,t.max=Cn,t.now=ta,t.utc=f,t.unix=ei,t.months=ai,t.isDate=l,t.locale=nn,t.invalid=g,t.duration=es,t.isMoment=v,t.weekdays=ui,t.parseZone=ti,t.localeData=an,t.isDuration=Ln,t.monthsShort=oi,t.weekdaysMin=hi,t.defineLocale=sn,t.updateLocale=rn,t.locales=on,t.weekdaysShort=li,t.normalizeUnits=G,t.relativeTimeRounding=bi,t.relativeTimeThreshold=xi,t.calendarFormat=as,t.prototype=pa,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})}); -;/*!node_modules/mobx/lib/mobx.js*/ -amis.define("node_modules/mobx/lib/mobx",function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}wr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-->0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}function i(){for(var e=[],t=0;ta;a++){var s=o[a];if(Yr(s)){if(to.disableErrorBoundaries)s.get();else try{s.get()}catch(u){return ut(r),lt(n),!0}if(e.dependenciesState===t.IDerivationState.STALE)return ut(r),lt(n),!0}}return ft(e),ut(r),lt(n),!1}}function Z(){return null!==to.trackingDerivation}function et(e){var t=e.observers.length>0;to.computationDepth>0&&t&&u(!1),to.allowStateChanges||!t&&"strict"!==to.enforceActions||u(!1)}function tt(e){}function nt(e,t,n){var r=ct(!0);ft(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++to.runId;var o=to.trackingDerivation;to.trackingDerivation=e;var i;if(to.disableErrorBoundaries===!0)i=t.call(n);else try{i=t.call(n)}catch(a){i=new Hr(a)}return to.trackingDerivation=o,ot(e),0===e.observing.length&&rt(e),lt(r),i}function rt(e){}function ot(e){for(var n=e.observing,r=e.observing=e.newObserving,o=t.IDerivationState.UP_TO_DATE,i=0,a=e.unboundDepsCount,s=0;a>s;s++){var u=r[s];0===u.diffValue&&(u.diffValue=1,i!==s&&(r[i]=u),i++),u.dependenciesState>o&&(o=u.dependenciesState)}for(r.length=i,e.newObserving=null,a=n.length;a--;){var u=n[a];0===u.diffValue&&Et(u,e),u.diffValue=0}for(;i--;){var u=r[i];1===u.diffValue&&(u.diffValue=0,xt(u,e))}o!==t.IDerivationState.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}function it(e){var n=e.observing;e.observing=[];for(var r=n.length;r--;)Et(n[r],e);e.dependenciesState=t.IDerivationState.NOT_TRACKING}function at(e){var t=st(),n=e();return ut(t),n}function st(){var e=to.trackingDerivation;return to.trackingDerivation=null,e}function ut(e){to.trackingDerivation=e}function ct(e){var t=to.allowStateReads;return to.allowStateReads=e,t}function lt(e){to.allowStateReads=e}function ft(e){if(e.dependenciesState!==t.IDerivationState.UP_TO_DATE){e.dependenciesState=t.IDerivationState.UP_TO_DATE;for(var n=e.observing,r=n.length;r--;)n[r].lowestObserverState=t.IDerivationState.UP_TO_DATE}}function pt(e,t){var n=function(){return ht(e,t,this,arguments)};return n.isMobxAction=!0,n}function ht(e,t,n,r){var o=vt(e,n,r);try{return t.apply(n,r)}catch(i){throw o.error=i,i}finally{dt(o)}}function vt(e,t,n){var r=Mt()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var s=0;i>s;s++)a[s]=n[s];Gt({type:"action",name:e,object:t,arguments:a})}var u=st();jt();var c=bt(!0),l=ct(!0),f={prevDerivation:u,prevAllowStateChanges:c,prevAllowStateReads:l,notifySpy:r,startTime:o,actionId:Kr++,parentActionId:zr};return zr=f.actionId,f}function dt(e){zr!==e.actionId&&u("invalid action stack. did you forget to finish an action?"),zr=e.parentActionId,void 0!==e.error&&(to.suppressReactionErrors=!0),mt(e.prevAllowStateChanges),lt(e.prevAllowStateReads),It(),ut(e.prevDerivation),e.notifySpy&&qt({time:Date.now()-e.startTime}),to.suppressReactionErrors=!1}function yt(e,t){var n,r=bt(e);try{n=t()}finally{mt(r)}return n}function bt(e){var t=to.allowStateChanges;return to.allowStateChanges=e,t}function mt(e){to.allowStateChanges=e}function gt(e){var t=to.computationDepth;to.computationDepth=0;var n;try{n=e()}finally{to.computationDepth=t}return n}function wt(){(to.pendingReactions.length||to.inBatch||to.isRunningReactions)&&u("isolateGlobalState should be called before MobX is running any reactions"),eo=!0,Zr&&(0===--a().__mobxInstanceCount&&(a().__mobxGlobals=void 0),to=new Qr)}function _t(){return to}function Ot(){var e=new Qr;for(var t in e)-1===Fr.indexOf(t)&&(to[t]=e[t]);to.allowStateChanges=!to.enforceActions}function St(e){return e.observers&&e.observers.length>0}function At(e){return e.observers}function xt(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Et(e,t){if(1===e.observers.length)e.observers.length=0,Dt(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Dt(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,to.pendingUnobservations.push(e))}function jt(){to.inBatch++}function It(){if(0===--to.inBatch){Lt();for(var e=to.pendingUnobservations,t=0;t0&&Dt(e),!1)}function Rt(e){if(e.lowestObserverState!==t.IDerivationState.STALE){e.lowestObserverState=t.IDerivationState.STALE;for(var n=e.observers,r=n.length;r--;){var o=n[r];o.dependenciesState===t.IDerivationState.UP_TO_DATE&&(o.isTracing!==qr.NONE&&Vt(o,e),o.onBecomeStale()),o.dependenciesState=t.IDerivationState.STALE}}}function Tt(e){if(e.lowestObserverState!==t.IDerivationState.STALE){e.lowestObserverState=t.IDerivationState.STALE;for(var n=e.observers,r=n.length;r--;){var o=n[r];o.dependenciesState===t.IDerivationState.POSSIBLY_STALE?o.dependenciesState=t.IDerivationState.STALE:o.dependenciesState===t.IDerivationState.UP_TO_DATE&&(e.lowestObserverState=t.IDerivationState.UP_TO_DATE)}}}function Ct(e){if(e.lowestObserverState===t.IDerivationState.UP_TO_DATE){e.lowestObserverState=t.IDerivationState.POSSIBLY_STALE;for(var n=e.observers,r=n.length;r--;){var o=n[r];o.dependenciesState===t.IDerivationState.UP_TO_DATE&&(o.dependenciesState=t.IDerivationState.POSSIBLY_STALE,o.isTracing!==qr.NONE&&Vt(o,e),o.onBecomeStale())}}}function Vt(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===qr.BREAK){var n=[];Nt(ln(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Xr?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Nt(e,t,n){return t.length>=1e3?void t.push("(and many more)"):(t.push(""+new Array(n).join(" ")+e.name),void(e.dependencies&&e.dependencies.forEach(function(e){return Nt(e,t,n+1)})))}function Pt(e){return to.globalReactionErrorHandlers.push(e),function(){var t=to.globalReactionErrorHandlers.indexOf(e);t>=0&&to.globalReactionErrorHandlers.splice(t,1)}}function Lt(){to.inBatch>0||to.isRunningReactions||oo(Bt)}function Bt(){to.isRunningReactions=!0;for(var e=to.pendingReactions,t=0;e.length>0;){++t===ro&&(console.error("Reaction doesn't converge to a stable state after "+ro+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;o>r;r++)n[r].runReaction()}to.isRunningReactions=!1}function $t(e){var t=oo;oo=function(n){return e(function(){return t(n)})}}function Mt(){return!!to.spyListeners.length}function Ut(e){if(to.spyListeners.length)for(var t=to.spyListeners,n=0,r=t.length;r>n;n++)t[n](e)}function Gt(e){var t=_r(_r({},e),{spyReportStart:!0});Ut(t)}function qt(e){Ut(e?_r(_r({},e),{spyReportEnd:!0}):ao)}function Ht(e){return to.spyListeners.push(e),f(function(){to.spyListeners=to.spyListeners.filter(function(t){return t!==e})})}function zt(){u(!1)}function Kt(e){return function(t,n,r){if(r){if(r.value)return{value:pt(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return pt(e,o.call(this))}}}return Wt(e).apply(this,arguments)}}function Wt(e){return function(t,n){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){return void 0},set:function(t){b(this,n,so(e,t))}})}}function Jt(e,t,n,r){return r===!0?(Ft(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Ft(this,t,n.value||n.initializer.call(this)),this[t]},set:zt}:{enumerable:!1,configurable:!0,set:function(e){Ft(this,t,e)},get:function(){return void 0}}}function Xt(e,t){var n="string"==typeof e?e:e.name||"",r="function"==typeof e?e:t;return ht(n,r,this,void 0)}function Yt(e){return"function"==typeof e&&e.isMobxAction===!0}function Ft(e,t,n){b(e,t,pt(t,n.bind(e)))}function Qt(e,t){function n(){e(r)}void 0===t&&(t=Ar);var r,o=t&&t.name||e.name||"Autorun@"+s(),i=!t.scheduler&&!t.delay;if(i)r=new no(o,function(){this.track(n)},t.onError,t.requiresObservable);else{var a=Zt(t),u=!1;r=new no(o,function(){u||(u=!0,a(function(){u=!1,r.isDisposed||r.track(n)}))},t.onError,t.requiresObservable)}return r.schedule(),r.getDisposer()}function Zt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:uo}function en(e,t,n){function r(){if(p=!1,!v.isDisposed){var t=!1;v.track(function(){var n=e(v);t=f||!h(o,n),o=n}),f&&n.fireImmediately&&a(o,v),f||t!==!0||a(o,v),f&&(f=!1)}}void 0===n&&(n=Ar),"boolean"==typeof n&&(n={fireImmediately:n},l("Using fireImmediately as argument is deprecated. Use '{ fireImmediately: true }' instead"));var o,i=n.name||"Reaction@"+s(),a=so(i,n.onError?tn(n.onError,t):t),u=!n.scheduler&&!n.delay,c=Zt(n),f=!0,p=!1,h=n.compareStructural?Ir.structural:n.equals||Ir.default,v=new no(i,function(){f||u?r():p||(p=!0,c(r))},n.onError,n.requiresObservable);return v.schedule(),v.getDisposer()}function tn(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}function nn(e,t,n){return on("onBecomeObserved",e,t,n)}function rn(e,t,n){return on("onBecomeUnobserved",e,t,n)}function on(e,t,n,r){var o="function"==typeof r?hr(t,n):hr(t),i="function"==typeof r?r:n,a=o[e];return"function"!=typeof a?u(!1):(o[e]=function(){a.call(this),i.call(this)},function(){o[e]=a})}function an(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.arrayBuffer,a=e.reactionScheduler,s=e.reactionRequiresObservable,c=e.observableRequiresReaction;if(e.isolateGlobalState===!0&&wt(),void 0!==t){("boolean"==typeof t||"strict"===t)&&l("Deprecated value for 'enforceActions', use 'false' => '\"never\"', 'true' => '\"observed\"', '\"strict\"' => \"'always'\" instead");var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:u("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}to.enforceActions=f,to.allowStateChanges=f===!0||"strict"===f?!1:!0}void 0!==n&&(to.computedRequiresReaction=!!n),void 0!==s&&(to.reactionRequiresObservable=!!s),void 0!==c&&(to.observableRequiresReaction=!!c,to.allowStateReads=!to.observableRequiresReaction),void 0!==r&&(to.computedConfigurable=!!r),void 0!==o&&(o===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),to.disableErrorBoundaries=!!o),"number"==typeof i&&nr(i),a&&$t(a)}function sn(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var o=Object.getOwnPropertyDescriptor(n,e),i=r.reduce(function(t,r){return r(n,e,t)},o);i&&Object.defineProperty(n,e,i)};for(var o in t)r(o);return e}function un(e,t,n){return l("'extendShallowObservable' is deprecated, use 'extendObservable(target, props, { deep: false })' instead"),cn(e,t,n,Cr)}function cn(e,t,n,r){var o;r=W(r);var i=r.defaultDecorator||(r.deep===!1?Pr:Vr);$(e),ir(e,r.name,i.enhancer),jt();try{for(var o in t){var a=Object.getOwnPropertyDescriptor(t,o),s=n&&o in n?n[o]:a.get?Mr:i,u=s(e,o,a,!0);u&&Object.defineProperty(e,o,u)}}finally{It()}return e}function ln(e,t){return fn(hr(e,t))}function fn(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=p(e.observing).map(fn)),t}function pn(e,t){return hn(hr(e,t))}function hn(e){var t={name:e.name};return St(e)&&(t.observers=At(e).map(hn)),t}function vn(){this.message="FLOW_CANCELLED"}function dn(e){return e instanceof vn}function yn(e){1!==arguments.length&&u("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"";return function(){var n,r=this,o=arguments,i=++co,a=so(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,u=new Promise(function(e,r){function o(e){s=void 0;var n;try{n=so(t+" - runid: "+i+" - yield "+l++,a.next).call(a,e)}catch(o){return r(o)}c(n)}function u(e){s=void 0;var n;try{n=so(t+" - runid: "+i+" - yield "+l++,a.throw).call(a,e)}catch(o){return r(o)}c(n)}function c(t){return t&&"function"==typeof t.then?void t.then(c,r):t.done?e(t.value):(s=Promise.resolve(t.value),s.then(o,u))}var l=0;n=r,o(void 0)});return u.cancel=so(t+" - runid: "+i+" - cancel",function(){try{s&&bn(s);var e=a.return(),t=Promise.resolve(e.value);t.then(Er,Er),bn(t),n(new vn)}catch(r){n(r)}}),u}}function bn(e){"function"==typeof e.cancel&&e.cancel()}function mn(e,t,n){var r;if(Oo(e)||rr(e)||Jr(e))r=vr(e);else{if(!pr(e))return u(!1);if("string"!=typeof t)return u(!1);r=vr(e,t)}return void 0!==r.dehancer?u(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}function gn(e,t,n){return"function"==typeof n?_n(e,t,n):wn(e,t)}function wn(e,t){return vr(e).intercept(t)}function _n(e,t,n){return vr(e,t).intercept(n)}function On(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(pr(e)===!1)return!1;if(!e.$mobx.values[t])return!1;var n=hr(e,t);return Yr(n)}return Yr(e)}function Sn(e){return arguments.length>1?u(!1):On(e)}function An(e,t){return"string"!=typeof t?u(!1):On(e,t)}function xn(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(pr(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return pr(e)||!!e.$mobx||jr(e)||io(e)||Yr(e)}function En(e){return 1!==arguments.length&&u(!1),xn(e)}function Dn(e,t){return"string"!=typeof t?u(!1):xn(e,t)}function jn(e){return pr(e)?e.$mobx.getKeys():Oo(e)?e._keys.slice():xo(e)?x(e.keys()):rr(e)?e.map(function(e,t){return t}):u(!1)}function In(e){return pr(e)?jn(e).map(function(t){return e[t]}):Oo(e)?jn(e).map(function(t){return e.get(t)}):xo(e)?x(e.values()):rr(e)?e.slice():u(!1)}function kn(e){return pr(e)?jn(e).map(function(t){return[t,e[t]]}):Oo(e)?jn(e).map(function(t){return[t,e.get(t)]}):xo(e)?x(e.entries()):rr(e)?e.map(function(e,t){return[t,e]}):u(!1)}function Rn(e,t,n){if(2!==arguments.length||xo(e))if(pr(e)){var r=e.$mobx,o=r.values[t];o?r.write(e,t,n):ar(e,t,n,r.defaultEnhancer)}else if(Oo(e))e.set(t,n);else if(xo(e))e.add(t);else{if(!rr(e))return u(!1);"number"!=typeof t&&(t=parseInt(t,10)),c(t>=0,"Not a valid index: '"+t+"'"),jt(),t>=e.length&&(e.length=t+1),e[t]=n,It()}else{jt();var i=t;try{for(var a in i)Rn(e,a,i[a])}finally{It()}}}function Tn(e,t){if(pr(e))e.$mobx.remove(t);else if(Oo(e))e.delete(t);else if(xo(e))e.delete(t);else{if(!rr(e))return u(!1);"number"!=typeof t&&(t=parseInt(t,10)),c(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function Cn(e,t){if(pr(e)){var n=vr(e);return n.getKeys(),!!n.values[t]}return Oo(e)?e.has(t):xo(e)?e.has(t):rr(e)?t>=0&&ta;a++)o[a]=i[a];return o}if(xo(e)||Object.getPrototypeOf(e)===Set.prototype){if(t.exportMapsAsObjects===!1){var u=Bn(n,e,new Set,t);return e.forEach(function(e){u.add($n(e,t,n))}),u}var c=Bn(n,e,[],t);return e.forEach(function(e){c.push($n(e,t,n))}),c}if(Oo(e)||Object.getPrototypeOf(e)===Map.prototype){if(t.exportMapsAsObjects===!1){var l=Bn(n,e,new Map,t);return e.forEach(function(e,r){l.set(r,$n(e,t,n))}),l}var f=Bn(n,e,{},t);return e.forEach(function(e,r){f[r]=$n(e,t,n)}),f}var p=Bn(n,e,{},t);for(var h in e)p[h]=$n(e[h],t,n);return p}function Mn(e,t){"boolean"==typeof t&&(t={detectCycles:t}),t||(t=lo),t.detectCycles=void 0===t.detectCycles?t.recurseEverything===!0:t.detectCycles===!0;var n;return t.detectCycles&&(n=new Map),$n(e,t,n)}function Un(){for(var e=[],t=0;t0}function Jn(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),f(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Xn(e,t){var n=st();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;i>o&&(t=r[o](t),c(!t||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{ut(n)}}function Yn(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Fn(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),f(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Qn(e,t){var n=st(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;i>o;o++)r[o](t);ut(n)}}function Zn(e,t){"undefined"!=typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):"undefined"!=typeof e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}function er(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function tr(e){Object.defineProperty(bo.prototype,""+e,er(e))}function nr(e){for(var t=ho;e>t;t++)tr(t);ho=e}function rr(e){return h(e)&&go(e.$mobx)}function or(e){return e&&e.toString?e.toString():new String(e).toString()}function ir(e,t,n){void 0===t&&(t=""),void 0===n&&(n=G);var r=e.$mobx;return r?r:(v(e)||(t=(e.constructor.name||"ObservableObject")+"@"+s()),t||(t="ObservableObject@"+s()),r=new Eo(e,t,n),m(e,"$mobx",r),r)}function ar(e,t,n,r){var o=ir(e);if(g(e,t),Wn(o)){var i=Xn(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}var a=o.values[t]=new Wr(n,r,o.name+"."+t,!1);n=a.value,Object.defineProperty(e,t,ur(t)),o.keys&&o.keys.push(t),fr(o,e,t,n)}function sr(e,t,n){var r=ir(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Xr(n),Object.defineProperty(e,t,lr(t))}function ur(e){return Do[e]||(Do[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}function cr(e){var t=e.$mobx;return t?t:($(e),e.$mobx)}function lr(e){return jo[e]||(jo[e]={configurable:to.computedConfigurable,enumerable:!1,get:function(){return cr(this).read(this,e)},set:function(t){cr(this).write(this,e,t)}})}function fr(e,t,n,r){var o=Yn(e),i=Mt(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&Gt(_r(_r({},a),{name:e.name,key:n})),o&&Qn(e,a),i&&qt()}function pr(e){return h(e)?($(e),Io(e.$mobx)):!1}function hr(e,t){if("object"==typeof e&&null!==e){if(rr(e))return void 0!==t&&u(!1),e.$mobx.atom;if(xo(e))return e.$mobx;if(Oo(e)){var n=e;if(void 0===t)return hr(n._keys);var r=n._data.get(t)||n._hasMap.get(t);return r||u(!1),r}if($(e),t&&!e.$mobx&&e[t],pr(e)){if(!t)return u(!1);var r=e.$mobx.values[t];return r||u(!1),r}if(jr(e)||Yr(e)||io(e))return e}else if("function"==typeof e&&io(e.$mobx))return e.$mobx;return u(!1)}function vr(e,t){return e||u("Expecting some object"),void 0!==t?vr(hr(e,t)):jr(e)||Yr(e)||io(e)?e:Oo(e)||xo(e)?e:($(e),e.$mobx?e.$mobx:void u(!1))}function dr(e,t){var n;return n=void 0!==t?hr(e,t):pr(e)||Oo(e)||xo(e)?vr(e):hr(e),n.name}function yr(e,t,n){return void 0===n&&(n=-1),br(e,t,n)}function br(e,t,n,r,o){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;e=mr(e),t=mr(t);var a=ko.call(e);if(a!==ko.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!("function"==typeof u&&u instanceof u&&"function"==typeof c&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;0>n&&(n=-1),r=r||[],o=o||[];for(var l=r.length;l--;)if(r[l]===e)return o[l]===t;if(r.push(e),o.push(t),s){if(l=e.length,l!==t.length)return!1;for(;l--;)if(!br(e[l],t[l],n-1,r,o))return!1}else{var f=Object.keys(e),p=void 0;if(l=f.length,Object.keys(t).length!==l)return!1;for(;l--;)if(p=f[l],!gr(t,p)||!br(e[p],t[p],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function mr(e){return rr(e)?e.peek():S(e)||Oo(e)?x(e.entries()):A(e)||xo(e)?x(e.entries()):e}function gr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var wr=function(e,t){return(wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},_r=function(){return _r=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_r.apply(this,arguments)},Or="An invariant failed, however the error is obfuscated because this is an production build.",Sr=[];Object.freeze(Sr);var Ar={};Object.freeze(Ar);var xr={},Er=function(){},Dr=function(){function e(e){void 0===e&&(e="Atom@"+s()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=t.IDerivationState.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return kt(this)},e.prototype.reportChanged=function(){jt(),Rt(this),It()},e.prototype.toString=function(){return this.name},e}(),jr=w("Atom",Dr),Ir={identity:V,structural:N,"default":L,shallow:P},kr={},Rr={},Tr={deep:!0,name:void 0,defaultDecorator:void 0},Cr={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(Tr),Object.freeze(Cr);var Vr=K(G),Nr=K(q),Pr=K(H),Lr=K(z),Br={box:function(e,t){arguments.length>2&&Y("box");var n=W(t);return new Wr(e,J(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&Y("shallowBox"),l("observable.shallowBox","observable.box(value, { deep: false })"),$r.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&Y("array");var n=W(t);return new bo(e,J(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&Y("shallowArray"),l("observable.shallowArray","observable.array(values, { deep: false })"),$r.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&Y("map");var n=W(t);return new _o(e,J(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&Y("shallowMap"),l("observable.shallowMap","observable.map(values, { deep: false })"),$r.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&Y("set");var n=W(t);return new Ao(e,J(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&Y("object");var r=W(n);return cn({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&Y("shallowObject"),l("observable.shallowObject","observable.object(values, {}, { deep: false })"),$r.object(e,{},{name:t,deep:!1})},ref:Pr,shallow:Nr,deep:Vr,struct:Lr},$r=X;Object.keys(Br).forEach(function(e){return $r[e]=Br[e]});var Mr=M(!1,function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};sr(e,t,_r({get:i,set:a},s))}),Ur=Mr({equals:Ir.structural}),Gr=function(e,t){if("string"==typeof t)return Mr.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return Mr.apply(null,arguments);var n="object"==typeof t?t:{};return n.get=e,n.set="function"==typeof t?t:n.set,n.name=n.name||e.name||"",new Xr(n)};Gr.struct=Ur,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(t.IDerivationState||(t.IDerivationState={}));var qr;!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(qr||(qr={}));var Hr=function(){function e(e){this.cause=e}return e}(),zr=0,Kr=1,Wr=function(e){function t(t,n,r,o,i){void 0===r&&(r="ObservableValue@"+s()),void 0===o&&(o=!0),void 0===i&&(i=Ir.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),o&&Mt()&&Ut({type:"create",name:a.name,newValue:""+a.value}),a}return r(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if(e=this.prepareNewValue(e),e!==to.UNCHANGED){var n=Mt();n&&Gt({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&qt()}},t.prototype.prepareNewValue=function(e){if(et(this),Wn(this)){var t=Xn(this,{object:this,type:"update",newValue:e});if(!t)return to.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?to.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Yn(this)&&Qn(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return Jn(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Fn(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return D(this.get())},t}(Dr);Wr.prototype[E()]=Wr.prototype.valueOf;var Jr=w("ObservableValue",Wr),Xr=function(){function e(e){this.dependenciesState=t.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=t.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+s(),this.value=new Hr(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=qr.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+s(),e.set&&(this.setter=pt(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?Ir.structural:Ir.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive -}return e.prototype.onBecomeStale=function(){Ct(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&u("Cycle detected in computation "+this.name+": "+this.derivation),0!==to.inBatch||0!==this.observers.length||this.keepAlive?(kt(this),Q(this)&&this.trackAndCompute()&&Tt(this)):Q(this)&&(this.warnAboutUntrackedRead(),jt(),this.value=this.computeValue(!1),It());var e=this.value;if(F(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(F(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){c(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else c(!1,!1)},e.prototype.trackAndCompute=function(){Mt()&&Ut({object:this.scope,type:"compute",name:this.name});var e=this.value,n=this.dependenciesState===t.IDerivationState.NOT_TRACKING,r=this.computeValue(!0),o=n||F(e)||F(r)||!this.equals(e,r);return o&&(this.value=r),o},e.prototype.computeValue=function(e){this.isComputing=!0,to.computationDepth++;var t;if(e)t=nt(this,this.derivation,this.scope);else if(to.disableErrorBoundaries===!0)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new Hr(n)}return to.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(it(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return Qt(function(){var i=n.get();if(!r||t){var a=st();e({type:"update",object:n,newValue:i,oldValue:o}),ut(a)}r=!1,o=i})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return D(this.get())},e}();Xr.prototype[E()]=Xr.prototype.valueOf;var Yr=w("ComputedValue",Xr),Fr=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Qr=function(){function e(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return e}(),Zr=!0,eo=!1,to=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Zr=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Qr).version&&(Zr=!1),Zr?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Qr):(setTimeout(function(){eo||u("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Qr)}(),no=function(){function e(e,n,r,o){void 0===e&&(e="Reaction@"+s()),void 0===o&&(o=!1),this.name=e,this.onInvalidate=n,this.errorHandler=r,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=t.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+s(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=qr.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,to.pendingReactions.push(this),Lt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(jt(),this._isScheduled=!1,Q(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Mt()&&Ut({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}It()}},e.prototype.track=function(e){jt();var t,n=Mt();n&&(t=Date.now(),Gt({name:this.name,type:"reaction"})),this._isRunning=!0;var r=nt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&it(this),F(r)&&this.reportExceptionInDerivation(r.cause),n&&qt({time:Date.now()-t}),It()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);if(to.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";to.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Mt()&&Ut({type:"error",name:this.name,message:n,error:""+e}),to.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(jt(),it(this),It()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),Un(this,e)},e}(),ro=100,oo=function(e){return e()},io=w("Reaction",no),ao={spyReportEnd:!0},so=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?pt(e.name||"",e):2===arguments.length&&"function"==typeof t?pt(e,t):1===arguments.length&&"string"==typeof e?Kt(e):r!==!0?Kt(t).apply(null,arguments):void(e[t]=pt(e.name||t,n.value))};so.bound=Jt;var uo=function(e){return e()},co=0;vn.prototype=Object.create(Error.prototype);var lo={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1},fo=1e4,po=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),ho=0,vo=function(){function e(){}return e}();Zn(vo,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(vo.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var yo=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new Dr(e||"ObservableArray@"+s()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Jn(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Fn(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||0>e)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;e-t>r;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>ho&&nr(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;et(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:0>e&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=Sr),Wn(this)){var i=Xn(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return Sr;t=i.removedCount,n=i.added}n=0===n.length?n:n.map(function(e){return r.enhancer(e,void 0)});var a=n.length-t;this.updateArrayLength(o,a);var s=this.spliceItemsIntoValues(e,t,n);return(0!==t||0!==n.length)&&this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.lengthi;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r-1?(this.splice(t,1),!0):!1},t.prototype.move=function(e,t){function n(e){if(0>e)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(l("observableArray.move is deprecated, use .slice() & .replace() instead"),n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=t>e?i(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):i(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e0)for(n=0;n=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}function N(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(fr[e]=i),t&&(fr[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(fr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function P(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function R(e){var t,n,s=e.match(hr);for(t=0,n=s.length;n>t;t++)s[t]=fr[s[t]]?fr[s[t]]:P(s[t]);return function(t){var i,r="";for(i=0;n>i;i++)r+=S(s[i])?s[i].call(t,e):s[i];return r}}function W(e,t){return e.isValid()?(t=C(t,e.localeData()),cr[t]=cr[t]||R(t),cr[t](e)):e.localeData().invalidDate()}function C(e,t){function n(e){return t.longDateFormat(e)||e}var s=5;for(dr.lastIndex=0;s>=0&&dr.test(e);)e=e.replace(dr,n),dr.lastIndex=0,s-=1;return e}function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(hr).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}function H(){return this._invalidDate}function F(e){return this._ordinal.replace("%d",e)}function L(e,t,n,s){var i=this._relativeTime[n];return S(i)?i(e,t,n,s):i.replace(/%d/i,e)}function V(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function G(e,t){var n=e.toLowerCase();pr[n]=pr[n+"s"]=pr[t]=e}function E(e){return"string"==typeof e?pr[e]||pr[e.toLowerCase()]:void 0}function A(e){var t,n,s={};for(n in e)a(e,n)&&(t=E(n),t&&(s[t]=e[n]));return s}function j(e,t){vr[e]=t}function I(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:vr[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function Z(e){return e%4===0&&e%100!==0||e%400===0}function z(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=z(t)),n}function q(e,n){return function(s){return null!=s?(J(this,e,s),t.updateOffset(this,n),this):B(this,e)}}function B(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():0/0}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Z(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ot(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Q(e){return e=E(e),S(this[e])?this[e]():this}function X(e,t){if("object"==typeof e){e=A(e);var n,s=I(e);for(n=0;ns;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=Lr.call(this._shortMonthsParse,a),-1!==i?i:null):(i=Lr.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?(i=Lr.call(this._shortMonthsParse,a),-1!==i?i:(i=Lr.call(this._longMonthsParse,a),-1!==i?i:null)):(i=Lr.call(this._longMonthsParse,a),-1!==i?i:(i=Lr.call(this._shortMonthsParse,a),-1!==i?i:null))}function dt(e,t,n){var s,i,r;if(this._monthsParseExact)return ht.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;12>s;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}}function ct(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(t=e.localeData().monthsParse(t),!l(t))return e;return n=Math.min(e.date(),ot(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ft(e){return null!=e?(ct(this,e),t.updateOffset(this,!0),this):B(this,"Month")}function mt(){return ot(this.year(),this.month())}function _t(e){return this._monthsParseExact?(a(this,"_monthsRegex")||gt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Xr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||gt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Kr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gt(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;12>t;t++)n=f([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;12>t;t++)s[t]=nt(s[t]),i[t]=nt(i[t]);for(t=0;24>t;t++)r[t]=nt(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function wt(e){return Z(e)?366:365}function pt(){return Z(this.year())}function vt(e,t,n,s,i,r,a){var o;return 100>e&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function kt(e){var t,n;return 100>e&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mt(e,t,n){var s=7+t-n,i=(7+kt(e,0,s).getUTCDay()-t)%7;return-i+s-1}function Dt(e,t,n,s,i){var r,a,o=(7+n-s)%7,u=Mt(e,s,i),l=1+7*(t-1)+o+u;return 0>=l?(r=e-1,a=wt(r)+l):l>wt(e)?(r=e+1,a=l-wt(e)):(r=e,a=l),{year:r,dayOfYear:a}}function St(e,t,n){var s,i,r=Mt(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>a?(i=e.year()-1,s=a+Yt(i,t,n)):a>Yt(e.year(),t,n)?(s=a-Yt(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Yt(e,t,n){var s=Mt(e,t,n),i=Mt(e+1,t,n);return(wt(e)-s+i)/7}function Ot(e){return St(e,this._week.dow,this._week.doy).week}function bt(){return this._week.dow}function xt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Nt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Rt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wt(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Ct(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wt(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return e===!0?Wt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return e===!0?Wt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ft(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;7>s;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=Lr.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=Lr.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=Lr.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?(i=Lr.call(this._weekdaysParse,a),-1!==i?i:(i=Lr.call(this._shortWeekdaysParse,a),-1!==i?i:(i=Lr.call(this._minWeekdaysParse,a),-1!==i?i:null))):"ddd"===t?(i=Lr.call(this._shortWeekdaysParse,a),-1!==i?i:(i=Lr.call(this._weekdaysParse,a),-1!==i?i:(i=Lr.call(this._minWeekdaysParse,a),-1!==i?i:null))):(i=Lr.call(this._minWeekdaysParse,a),-1!==i?i:(i=Lr.call(this._weekdaysParse,a),-1!==i?i:(i=Lr.call(this._shortWeekdaysParse,a),-1!==i?i:null)))}function Lt(e,t,n){var s,i,r;if(this._weekdaysParseExact)return Ft.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;7>s;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}}function Vt(e){if(!this.isValid())return null!=e?this:0/0;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Et(e){if(!this.isValid())return null!=e?this:0/0;if(null!=e){var t=Rt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function At(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=ra),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function jt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=aa),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function It(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;7>t;t++)n=f([2e3,1]).day(t),s=nt(this.weekdaysMin(n,"")),i=nt(this.weekdaysShort(n,"")),r=nt(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function zt(){return this.hours()%12||12}function $t(){return this.hours()||24}function qt(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Bt(e,t){return t._meridiemParse}function Jt(e){return"p"===(e+"").toLowerCase().charAt(0)}function Qt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xt(e,t){var n,s=Math.min(e.length,t.length);for(n=0;s>n;n+=1)if(e[n]!==t[n])return n;return s}function Kt(e){return e?e.toLowerCase().replace("_","-"):e}function en(e){for(var t,n,s,i,r=0;r0;){if(s=tn(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&Xt(i,n)>=t-1)break;t--}r++}return ua}function tn(t){var s,i=null;if(void 0===ca[t]&&"undefined"!=typeof n&&n&&n.exports)try{i=ua._abbr,s=e,s("./locale/"+t),nn(i)}catch(r){ca[t]=null}return ca[t]}function nn(e,t){var n;return e&&(n=u(t)?an(e):sn(e,t),n?ua=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ua._abbr}function sn(e,t){if(null!==t){var n,s=da;if(t.abbr=e,null!=ca[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ca[e]._config;else if(null!=t.parentLocale)if(null!=ca[t.parentLocale])s=ca[t.parentLocale]._config;else{if(n=tn(t.parentLocale),null==n)return fa[t.parentLocale]||(fa[t.parentLocale]=[]),fa[t.parentLocale].push({name:e,config:t}),null;s=n._config}return ca[e]=new b(O(s,t)),fa[e]&&fa[e].forEach(function(e){sn(e.name,e.config)}),nn(e),ca[e]}return delete ca[e],null}function rn(e,t){if(null!=t){var n,s,i=da;null!=ca[e]&&null!=ca[e].parentLocale?ca[e].set(O(ca[e]._config,t)):(s=tn(e),null!=s&&(i=s._config),t=O(i,t),null==s&&(t.abbr=e),n=new b(t),n.parentLocale=ca[e],ca[e]=n),nn(e)}else null!=ca[e]&&(null!=ca[e].parentLocale?(ca[e]=ca[e].parentLocale,e===nn()&&nn(e)):null!=ca[e]&&delete ca[e]);return ca[e]}function an(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ua;if(!i(e)){if(t=tn(e))return t;e=[e]}return en(e)}function on(){return or(ca)}function un(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[Er]<0||n[Er]>11?Er:n[Ar]<1||n[Ar]>ot(n[Gr],n[Er])?Ar:n[jr]<0||n[jr]>24||24===n[jr]&&(0!==n[Ir]||0!==n[Zr]||0!==n[zr])?jr:n[Ir]<0||n[Ir]>59?Ir:n[Zr]<0||n[Zr]>59?Zr:n[zr]<0||n[zr]>999?zr:-1,_(e)._overflowDayOfYear&&(Gr>t||t>Ar)&&(t=Ar),_(e)._overflowWeeks&&-1===t&&(t=$r),_(e)._overflowWeekday&&-1===t&&(t=qr),_(e).overflow=t),e}function ln(e){var t,n,s,i,r,a,o=e._i,u=ma.exec(o)||_a.exec(o);if(u){for(_(e).iso=!0,t=0,n=ga.length;n>t;t++)if(ga[t][1].exec(u[1])){i=ga[t][0],s=ga[t][2]!==!1;break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=wa.length;n>t;t++)if(wa[t][1].exec(u[3])){r=(u[2]||" ")+wa[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!ya.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),kn(e)}else e._isValid=!1}function hn(e,t,n,s,i,r){var a=[dn(e),Jr.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function dn(e){var t=parseInt(e,10);return 49>=t?2e3+t:999>=t?1900+t:t}function cn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fn(e,t,n){if(e){var s=sa.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(s!==i)return _(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mn(e,t,n){if(e)return ka[e];if(t)return 0;var s=parseInt(n,10),i=s%100,r=(s-i)/100;return 60*r+i}function _n(e){var t,n=va.exec(cn(e._i));if(n){if(t=hn(n[4],n[3],n[2],n[5],n[6],n[7]),!fn(n[1],t,e))return;e._a=t,e._tzm=mn(n[8],n[9],n[10]),e._d=kt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function yn(e){var n=pa.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ln(e),void(e._isValid===!1&&(delete e._isValid,_n(e),e._isValid===!1&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))))}function gn(e,t,n){return null!=e?e:null!=t?t:n}function wn(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function pn(e){var t,n,s,i,r,a=[];if(!e._d){for(s=wn(e),e._w&&null==e._a[Ar]&&null==e._a[Er]&&vn(e),null!=e._dayOfYear&&(r=gn(e._a[Gr],s[Gr]),(e._dayOfYear>wt(r)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=kt(r,0,e._dayOfYear),e._a[Er]=n.getUTCMonth(),e._a[Ar]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[jr]&&0===e._a[Ir]&&0===e._a[Zr]&&0===e._a[zr]&&(e._nextDay=!0,e._a[jr]=0),e._d=(e._useUTC?kt:vt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[jr]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==i&&(_(e).weekdayMismatch=!0)}}function vn(e){var t,n,s,i,r,a,o,u,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,a=4,n=gn(t.GG,e._a[Gr],St(Tn(),1,4).year),s=gn(t.W,1),i=gn(t.E,1),(1>i||i>7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=St(Tn(),r,a),n=gn(t.gg,e._a[Gr],l.year),s=gn(t.w,l.week),null!=t.d?(i=t.d,(0>i||i>6)&&(u=!0)):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r),1>s||s>Yt(n,r,a)?_(e)._overflowWeeks=!0:null!=u?_(e)._overflowWeekday=!0:(o=Dt(n,s,i,r,a),e._a[Gr]=o.year,e._dayOfYear=o.dayOfYear)}function kn(e){if(e._f===t.ISO_8601)return void ln(e);if(e._f===t.RFC_2822)return void _n(e);e._a=[],_(e).empty=!0;var n,s,i,r,a,o,u=""+e._i,l=u.length,h=0;for(i=C(e._f,e._locale).match(hr)||[],n=0;n0&&_(e).unusedInput.push(a),u=u.slice(u.indexOf(s)+s.length),h+=s.length),fr[r]?(s?_(e).empty=!1:_(e).unusedTokens.push(r),rt(r,s,e)):e._strict&&!s&&_(e).unusedTokens.push(r);_(e).charsLeftOver=l-h,u.length>0&&_(e).unusedInput.push(u),e._a[jr]<=12&&_(e).bigHour===!0&&e._a[jr]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[jr]=Mn(e._locale,e._a[jr],e._meridiem),o=_(e).era,null!==o&&(e._a[Gr]=e._locale.erasConvertYear(o,e._a[Gr])),pn(e),un(e)}function Mn(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(s=e.isPM(n),s&&12>t&&(t+=12),s||12!==t||(t=0),t):t}function Dn(e){var t,n,s,i,r,a,o=!1;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(0/0));for(i=0;ir&&(s=r,n=t):(null==s||s>r||a)&&(s=r,n=t,a&&(o=!0));c(e,n||t)}function Sn(e){if(!e._d){var t=A(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),pn(e)}}function Yn(e){var t=new p(un(On(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function On(e){var t=e._i,n=e._f;return e._locale=e._locale||an(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new p(un(t)):(h(t)?e._d=t:i(n)?Dn(e):n?kn(e):bn(e),y(e)||(e._d=null),e))}function bn(e){var n=e._i;u(n)?e._d=new Date(t.now()):h(n)?e._d=new Date(n.valueOf()):"string"==typeof n?yn(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),pn(e)):r(n)?Sn(e):l(n)?e._d=new Date(n):t.createFromInputFallback(e)}function xn(e,t,n,s,a){var u={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(r(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=s,Yn(u)}function Tn(e,t,n,s){return xn(e,t,n,s,!1)}function Nn(e,t){var n,s;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Tn();for(n=t[0],s=1;se?-1*Math.round(-1*e):Math.round(e)}function Vn(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;i>s;s++)(n&&e[s]!==t[s]||!n&&$(e[s])!==$(t[s]))&&a++;return a+r}function Gn(e,t){N(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)})}function En(e,t){var n,s,i,r=(t||"").match(e);return null===r?null:(n=r[r.length-1]||[],s=(n+"").match(Oa)||["-",0,0],i=+(60*s[1])+$(s[2]),0===i?0:"+"===s[0]?i:-i)}function An(e,n){var s,i;return n._isUTC?(s=n.clone(),i=(v(e)||h(e)?e.valueOf():Tn(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+i),t.updateOffset(s,!1),s):Tn(e).local()}function jn(e){return-Math.round(e._d.getTimezoneOffset())}function In(e,n,s){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null!=e){if("string"==typeof e){if(e=En(Ur,e),null===e)return this}else Math.abs(e)<16&&!s&&(e=60*e);return!this._isUTC&&n&&(i=jn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?as(this,ts(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:jn(this)}function Zn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function zn(e){return this.utcOffset(0,e)}function $n(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jn(this),"m")),this}function qn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=En(Cr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Bn(e){return this.isValid()?(e=e?Tn(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Jn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qn(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),t=On(t),t._a?(e=t._isUTC?f(t._a):Tn(t._a),this._isDSTShifted=this.isValid()&&Vn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Xn(){return this.isValid()?!this._isUTC:!1}function Kn(){return this.isValid()?this._isUTC:!1}function es(){return this.isValid()?this._isUTC&&0===this._offset:!1}function ts(e,t){var n,s,i,r=e,o=null;return Fn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(o=ba.exec(e))?(n="-"===o[1]?-1:1,r={y:0,d:$(o[Ar])*n,h:$(o[jr])*n,m:$(o[Ir])*n,s:$(o[Zr])*n,ms:$(Ln(1e3*o[zr]))*n}):(o=xa.exec(e))?(n="-"===o[1]?-1:1,r={y:ns(o[2],n),M:ns(o[3],n),w:ns(o[4],n),d:ns(o[5],n),h:ns(o[6],n),m:ns(o[7],n),s:ns(o[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=is(Tn(r.from),Tn(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),s=new Hn(r),Fn(e)&&a(e,"_locale")&&(s._locale=e._locale),Fn(e)&&a(e,"_isValid")&&(s._isValid=e._isValid),s}function ns(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ss(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function is(e,t){var n;return e.isValid()&&t.isValid()?(t=An(t,e),e.isBefore(t)?n=ss(e,t):(n=ss(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rs(e,t){return function(n,s){var i,r;return null===s||isNaN(+s)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),i=ts(n,s),as(this,i,e),this}}function as(e,n,s,i){var r=n._milliseconds,a=Ln(n._days),o=Ln(n._months);e.isValid()&&(i=null==i?!0:i,o&&ct(e,B(e,"Month")+o*s),a&&J(e,"Date",B(e,"Date")+a*s),r&&e._d.setTime(e._d.valueOf()+r*s),i&&t.updateOffset(e,a||o))}function os(e){return"string"==typeof e||e instanceof String}function us(e){return v(e)||h(e)||os(e)||l(e)||hs(e)||ls(e)||null===e||void 0===e}function ls(e){var t,n,s=r(e)&&!o(e),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function fs(e,n){1===arguments.length&&(us(arguments[0])?(e=arguments[0],n=void 0):ds(arguments[0])&&(n=arguments[0],e=void 0));var s=e||Tn(),i=An(s,this).startOf("day"),r=t.calendarFormat(this,i)||"sameElse",a=n&&(S(n[r])?n[r].call(this,s):n[r]);return this.format(a||this.localeData().calendar(r,this,Tn(s)))}function ms(){return new p(this)}function _s(e,t){var n=v(e)?e:Tn(e);return this.isValid()&&n.isValid()?(t=E(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()t-r?(n=e.clone().add(i-1,"months"),s=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),s=(t-r)/(n-r)),-(i+s)||0 +}function Ds(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ss(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ys(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=r+'[")]',this.format(e+t+n+s)}function Os(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=W(this,e);return this.localeData().postformat(n)}function bs(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tn(e).isValid())?ts({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xs(e){return this.from(Tn(),e)}function Ts(e,t){return this.isValid()&&(v(e)&&e.isValid()||Tn(e).isValid())?ts({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ns(e){return this.to(Tn(),e)}function Ps(e){var t;return void 0===e?this._locale._abbr:(t=an(e),null!=t&&(this._locale=t),this)}function Rs(){return this._locale}function Ws(e,t){return(e%t+t)%t}function Cs(e,t,n){return 100>e&&e>=0?new Date(e+400,t,n)-Ua:new Date(e,t,n).valueOf()}function Us(e,t,n){return 100>e&&e>=0?Date.UTC(e+400,t,n)-Ua:Date.UTC(e,t,n)}function Hs(e){var n,s;if(e=E(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?Us:Cs,e){case"year":n=s(this.year(),0,1);break;case"quarter":n=s(this.year(),this.month()-this.month()%3,1);break;case"month":n=s(this.year(),this.month(),1);break;case"week":n=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=s(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Ws(n+(this._isUTC?0:this.utcOffset()*Wa),Ca);break;case"minute":n=this._d.valueOf(),n-=Ws(n,Wa);break;case"second":n=this._d.valueOf(),n-=Ws(n,Ra)}return this._d.setTime(n),t.updateOffset(this,!0),this}function Fs(e){var n,s;if(e=E(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?Us:Cs,e){case"year":n=s(this.year()+1,0,1)-1;break;case"quarter":n=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=s(this.year(),this.month()+1,1)-1;break;case"week":n=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=Ca-Ws(n+(this._isUTC?0:this.utcOffset()*Wa),Ca)-1;break;case"minute":n=this._d.valueOf(),n+=Wa-Ws(n,Wa)-1;break;case"second":n=this._d.valueOf(),n+=Ra-Ws(n,Ra)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function Ls(){return this._d.valueOf()-6e4*(this._offset||0)}function Vs(){return Math.floor(this.valueOf()/1e3)}function Gs(){return new Date(this.valueOf())}function Es(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function As(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function js(){return this.isValid()?this.toISOString():null}function Is(){return y(this)}function Zs(){return c({},_(this))}function zs(){return _(this).overflow}function $s(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function qs(){var e,n,s,i=this._eras||an("en")._eras;for(e=0,n=i.length;n>e;++e){switch(typeof i[e].since){case"string":s=t(i[e].since).startOf("day"),i[e].since=s.valueOf()}switch(typeof i[e].until){case"undefined":i[e].until=+1/0;break;case"string":s=t(i[e].until).startOf("day").valueOf(),i[e].until=s.valueOf()}}return i}function Bs(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;i>s;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s]}else if([r,a,o].indexOf(e)>=0)return u[s]}function Js(e,n){var s=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*s}function Qs(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;t>e;++e){if(n=this.startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].name;if(s[e].until<=n&&n<=s[e].since)return s[e].name}return""}function Xs(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;t>e;++e){if(n=this.startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].narrow;if(s[e].until<=n&&n<=s[e].since)return s[e].narrow}return""}function Ks(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;t>e;++e){if(n=this.startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].abbr;if(s[e].until<=n&&n<=s[e].since)return s[e].abbr}return""}function ei(){var e,n,s,i,r=this.localeData().eras();for(e=0,n=r.length;n>e;++e)if(s=r[e].since<=r[e].until?1:-1,i=this.startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-t(r[e].since).year())*s+r[e].offset;return this.year()}function ti(e){return a(this,"_erasNameRegex")||ui.call(this),e?this._erasNameRegex:this._erasRegex}function ni(e){return a(this,"_erasAbbrRegex")||ui.call(this),e?this._erasAbbrRegex:this._erasRegex}function si(e){return a(this,"_erasNarrowRegex")||ui.call(this),e?this._erasNarrowRegex:this._erasRegex}function ii(e,t){return t.erasAbbrRegex(e)}function ri(e,t){return t.erasNameRegex(e)}function ai(e,t){return t.erasNarrowRegex(e)}function oi(e,t){return t._eraYearOrdinalRegex||Rr}function ui(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;t>e;++e)s.push(nt(a[e].name)),n.push(nt(a[e].abbr)),i.push(nt(a[e].narrow)),r.push(nt(a[e].name)),r.push(nt(a[e].abbr)),r.push(nt(a[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function li(e,t){N(0,[e,e.length],0,t)}function hi(e){return yi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function di(e){return yi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ci(){return Yt(this.year(),1,4)}function fi(){return Yt(this.isoWeekYear(),1,4)}function mi(){var e=this.localeData()._week;return Yt(this.year(),e.dow,e.doy)}function _i(){var e=this.localeData()._week;return Yt(this.weekYear(),e.dow,e.doy)}function yi(e,t,n,s,i){var r;return null==e?St(this,s,i).year:(r=Yt(e,s,i),t>r&&(t=r),gi.call(this,e,t,n,s,i))}function gi(e,t,n,s,i){var r=Dt(e,t,n,s,i),a=kt(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function wi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function pi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function vi(e,t){t[zr]=$(1e3*("0."+e))}function ki(){return this._isUTC?"UTC":""}function Mi(){return this._isUTC?"Coordinated Universal Time":""}function Di(e){return Tn(1e3*e)}function Si(){return Tn.apply(null,arguments).parseZone()}function Yi(e){return e}function Oi(e,t,n,s){var i=an(),r=f().set(s,t);return i[n](r,e)}function bi(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Oi(e,t,n,"month");var s,i=[];for(s=0;12>s;s++)i[s]=Oi(e,s,n,"month");return i}function xi(e,t,n,s){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,r=an(),a=e?r._week.dow:0,o=[];if(null!=n)return Oi(t,(n+a)%7,s,"day");for(i=0;7>i;i++)o[i]=Oi(t,(i+a)%7,s,"day");return o}function Ti(e,t){return bi(e,t,"months")}function Ni(e,t){return bi(e,t,"monthsShort")}function Pi(e,t,n){return xi(e,t,n,"weekdays")}function Ri(e,t,n){return xi(e,t,n,"weekdaysShort")}function Wi(e,t,n){return xi(e,t,n,"weekdaysMin")}function Ci(){var e=this._data;return this._milliseconds=ja(this._milliseconds),this._days=ja(this._days),this._months=ja(this._months),e.milliseconds=ja(e.milliseconds),e.seconds=ja(e.seconds),e.minutes=ja(e.minutes),e.hours=ja(e.hours),e.months=ja(e.months),e.years=ja(e.years),this}function Ui(e,t,n,s){var i=ts(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Hi(e,t){return Ui(this,e,t,1)}function Fi(e,t){return Ui(this,e,t,-1)}function Li(e){return 0>e?Math.floor(e):Math.ceil(e)}function Vi(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||0>=r&&0>=a&&0>=o||(r+=864e5*Li(Ei(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=z(r/1e3),u.seconds=e%60,t=z(e/60),u.minutes=t%60,n=z(t/60),u.hours=n%24,a+=z(n/24),i=z(Gi(a)),o+=i,a-=Li(Ei(i)),s=z(o/12),o%=12,u.days=a,u.months=o,u.years=s,this}function Gi(e){return 4800*e/146097}function Ei(e){return 146097*e/4800}function Ai(e){if(!this.isValid())return 0/0;var t,n,s=this._milliseconds;if(e=E(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Gi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ei(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}}function ji(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):0/0}function Ii(e){return function(){return this.as(e)}}function Zi(){return ts(this)}function zi(e){return e=E(e),this.isValid()?this[e+"s"]():0/0}function $i(e){return function(){return this.isValid()?this._data[e]:0/0}}function qi(){return z(this.days()/7)}function Bi(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function Ji(e,t,n,s){var i=ts(e).abs(),r=ao(i.as("s")),a=ao(i.as("m")),o=ao(i.as("h")),u=ao(i.as("d")),l=ao(i.as("M")),h=ao(i.as("w")),d=ao(i.as("y")),c=r<=n.ss&&["s",r]||r=a&&["m"]||a=o&&["h"]||o=u&&["d"]||u=h&&["w"]||h=l&&["M"]||l=d&&["y"]||["yy",d],c[2]=t,c[3]=+e>0,c[4]=s,Bi.apply(null,c)}function Qi(e){return void 0===e?ao:"function"==typeof e?(ao=e,!0):!1}function Xi(e,t){return void 0===oo[e]?!1:void 0===t?oo[e]:(oo[e]=t,"s"===e&&(oo.ss=t-1),!0)}function Ki(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=oo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},oo,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=this.localeData(),s=Ji(this,!i,r,n),i&&(s=n.pastFuture(+this,s)),n.postformat(s)}function er(e){return(e>0)-(0>e)||+e}function tr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=uo(this._milliseconds)/1e3,l=uo(this._days),h=uo(this._months),d=this.asSeconds();return d?(e=z(u/60),t=z(e/60),u%=60,e%=60,n=z(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=0>d?"-":"",r=er(this._months)!==er(d)?"-":"",a=er(this._days)!==er(d)?"-":"",o=er(this._milliseconds)!==er(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var nr,sr;sr=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),s=n.length>>>0;for(t=0;s>t;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var ir=t.momentProperties=[],rr=!1,ar={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var or;or=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var ur,lr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},hr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,dr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cr={},fr={},mr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},_r="Invalid date",yr="%d",gr=/\d{1,2}/,wr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},pr={},vr={},kr=/\d/,Mr=/\d\d/,Dr=/\d{3}/,Sr=/\d{4}/,Yr=/[+-]?\d{6}/,Or=/\d\d?/,br=/\d\d\d\d?/,xr=/\d\d\d\d\d\d?/,Tr=/\d{1,3}/,Nr=/\d{1,4}/,Pr=/[+-]?\d{1,6}/,Rr=/\d+/,Wr=/[+-]?\d+/,Cr=/Z|[+-]\d\d:?\d\d/gi,Ur=/Z|[+-]\d\d(?::?\d\d)?/gi,Hr=/[+-]?\d+(\.\d{1,3})?/,Fr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;ur={};var Lr,Vr={},Gr=0,Er=1,Ar=2,jr=3,Ir=4,Zr=5,zr=6,$r=7,qr=8;Lr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=e?T(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),G("year","y"),j("year",1),K("Y",Wr),K("YY",Or,Mr),K("YYYY",Nr,Sr),K("YYYYY",Pr,Yr),K("YYYYYY",Pr,Yr),st(["YYYYY","YYYYYY"],Gr),st("YYYY",function(e,n){n[Gr]=2===e.length?t.parseTwoDigitYear(e):$(e)}),st("YY",function(e,n){n[Gr]=t.parseTwoDigitYear(e)}),st("Y",function(e,t){t[Gr]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var ea=q("FullYear",!0);N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),j("week",5),j("isoWeek",5),K("w",Or),K("ww",Or,Mr),K("W",Or),K("WW",Or,Mr),it(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=$(e)});var ta={dow:0,doy:6};N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),K("d",Or),K("e",Or),K("E",Or),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),it(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:_(n).invalidWeekday=e}),it(["d","e","E"],function(e,t,n,s){t[s]=$(e)});var na="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ia="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ra=Fr,aa=Fr,oa=Fr;N("H",["HH",2],0,"hour"),N("h",["hh",2],0,zt),N("k",["kk",2],0,$t),N("hmm",0,0,function(){return""+zt.apply(this)+T(this.minutes(),2)}),N("hmmss",0,0,function(){return""+zt.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),qt("a",!0),qt("A",!1),G("hour","h"),j("hour",13),K("a",Bt),K("A",Bt),K("H",Or),K("h",Or),K("k",Or),K("HH",Or,Mr),K("hh",Or,Mr),K("kk",Or,Mr),K("hmm",br),K("hmmss",xr),K("Hmm",br),K("Hmmss",xr),st(["H","HH"],jr),st(["k","kk"],function(e,t){var n=$(e);t[jr]=24===n?0:n}),st(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),st(["h","hh"],function(e,t,n){t[jr]=$(e),_(n).bigHour=!0}),st("hmm",function(e,t,n){var s=e.length-2;t[jr]=$(e.substr(0,s)),t[Ir]=$(e.substr(s)),_(n).bigHour=!0}),st("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[jr]=$(e.substr(0,s)),t[Ir]=$(e.substr(s,2)),t[Zr]=$(e.substr(i)),_(n).bigHour=!0}),st("Hmm",function(e,t){var n=e.length-2;t[jr]=$(e.substr(0,n)),t[Ir]=$(e.substr(n))}),st("Hmmss",function(e,t){var n=e.length-4,s=e.length-2;t[jr]=$(e.substr(0,n)),t[Ir]=$(e.substr(n,2)),t[Zr]=$(e.substr(s))});var ua,la=/[ap]\.?m?\.?/i,ha=q("Hours",!0),da={calendar:lr,longDateFormat:mr,invalidDate:_r,ordinal:yr,dayOfMonthOrdinalParse:gr,relativeTime:wr,months:Br,monthsShort:Jr,week:ta,weekdays:na,weekdaysMin:ia,weekdaysShort:sa,meridiemParse:la},ca={},fa={},ma=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_a=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ya=/Z|[+-]\d\d(?::?\d\d)?/,ga=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pa=/^\/?Date\((-?\d+)/i,va=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ka={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Ma=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tn.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:g()}),Da=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),Sa=function(){return Date.now?Date.now():+new Date},Ya=["year","quarter","month","week","day","hour","minute","second","millisecond"];Gn("Z",":"),Gn("ZZ",""),K("Z",Ur),K("ZZ",Ur),st(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=En(Ur,e)});var Oa=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ba=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,xa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;ts.fn=Hn.prototype,ts.invalid=Un;var Ta=rs(1,"add"),Na=rs(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Pa=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),Ra=1e3,Wa=60*Ra,Ca=60*Wa,Ua=3506328*Ca;N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),K("N",ii),K("NN",ii),K("NNN",ii),K("NNNN",ri),K("NNNNN",ai),st(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?_(n).era=i:_(n).invalidEra=e}),K("y",Rr),K("yy",Rr),K("yyy",Rr),K("yyyy",Rr),K("yo",oi),st(["y","yy","yyy","yyyy"],Gr),st(["yo"],function(e,t,n){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),t[Gr]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,s):parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),li("gggg","weekYear"),li("ggggg","weekYear"),li("GGGG","isoWeekYear"),li("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),K("G",Wr),K("g",Wr),K("GG",Or,Mr),K("gg",Or,Mr),K("GGGG",Nr,Sr),K("gggg",Nr,Sr),K("GGGGG",Pr,Yr),K("ggggg",Pr,Yr),it(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=$(e)}),it(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),G("quarter","Q"),j("quarter",7),K("Q",kr),st("Q",function(e,t){t[Er]=3*($(e)-1)}),N("D",["DD",2],"Do","date"),G("date","D"),j("date",9),K("D",Or),K("DD",Or,Mr),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),st(["D","DD"],Ar),st("Do",function(e,t){t[Ar]=$(e.match(Or)[0])});var Ha=q("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),j("dayOfYear",4),K("DDD",Tr),K("DDDD",Dr),st(["DDD","DDDD"],function(e,t,n){n._dayOfYear=$(e)}),N("m",["mm",2],0,"minute"),G("minute","m"),j("minute",14),K("m",Or),K("mm",Or,Mr),st(["m","mm"],Ir);var Fa=q("Minutes",!1);N("s",["ss",2],0,"second"),G("second","s"),j("second",15),K("s",Or),K("ss",Or,Mr),st(["s","ss"],Zr);var La=q("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),G("millisecond","ms"),j("millisecond",16),K("S",Tr,kr),K("SS",Tr,Mr),K("SSS",Tr,Dr);var Va,Ga;for(Va="SSSS";Va.length<=9;Va+="S")K(Va,Rr);for(Va="S";Va.length<=9;Va+="S")st(Va,vi);Ga=q("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Ea=p.prototype;Ea.add=Ta,Ea.calendar=fs,Ea.clone=ms,Ea.diff=ks,Ea.endOf=Fs,Ea.format=Os,Ea.from=bs,Ea.fromNow=xs,Ea.to=Ts,Ea.toNow=Ns,Ea.get=Q,Ea.invalidAt=zs,Ea.isAfter=_s,Ea.isBefore=ys,Ea.isBetween=gs,Ea.isSame=ws,Ea.isSameOrAfter=ps,Ea.isSameOrBefore=vs,Ea.isValid=Is,Ea.lang=Pa,Ea.locale=Ps,Ea.localeData=Rs,Ea.max=Da,Ea.min=Ma,Ea.parsingFlags=Zs,Ea.set=X,Ea.startOf=Hs,Ea.subtract=Na,Ea.toArray=Es,Ea.toObject=As,Ea.toDate=Gs,Ea.toISOString=Ss,Ea.inspect=Ys,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ea[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ea.toJSON=js,Ea.toString=Ds,Ea.unix=Vs,Ea.valueOf=Ls,Ea.creationData=$s,Ea.eraName=Qs,Ea.eraNarrow=Xs,Ea.eraAbbr=Ks,Ea.eraYear=ei,Ea.year=ea,Ea.isLeapYear=pt,Ea.weekYear=hi,Ea.isoWeekYear=di,Ea.quarter=Ea.quarters=wi,Ea.month=ft,Ea.daysInMonth=mt,Ea.week=Ea.weeks=Tt,Ea.isoWeek=Ea.isoWeeks=Nt,Ea.weeksInYear=mi,Ea.weeksInWeekYear=_i,Ea.isoWeeksInYear=ci,Ea.isoWeeksInISOWeekYear=fi,Ea.date=Ha,Ea.day=Ea.days=Vt,Ea.weekday=Gt,Ea.isoWeekday=Et,Ea.dayOfYear=pi,Ea.hour=Ea.hours=ha,Ea.minute=Ea.minutes=Fa,Ea.second=Ea.seconds=La,Ea.millisecond=Ea.milliseconds=Ga,Ea.utcOffset=In,Ea.utc=zn,Ea.local=$n,Ea.parseZone=qn,Ea.hasAlignedHourOffset=Bn,Ea.isDST=Jn,Ea.isLocal=Xn,Ea.isUtcOffset=Kn,Ea.isUtc=es,Ea.isUTC=es,Ea.zoneAbbr=ki,Ea.zoneName=Mi,Ea.dates=M("dates accessor is deprecated. Use date instead.",Ha),Ea.months=M("months accessor is deprecated. Use month instead",ft),Ea.years=M("years accessor is deprecated. Use year instead",ea),Ea.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Zn),Ea.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qn);var Aa=b.prototype;Aa.calendar=x,Aa.longDateFormat=U,Aa.invalidDate=H,Aa.ordinal=F,Aa.preparse=Yi,Aa.postformat=Yi,Aa.relativeTime=L,Aa.pastFuture=V,Aa.set=Y,Aa.eras=qs,Aa.erasParse=Bs,Aa.erasConvertYear=Js,Aa.erasAbbrRegex=ni,Aa.erasNameRegex=ti,Aa.erasNarrowRegex=si,Aa.months=ut,Aa.monthsShort=lt,Aa.monthsParse=dt,Aa.monthsRegex=yt,Aa.monthsShortRegex=_t,Aa.week=Ot,Aa.firstDayOfYear=xt,Aa.firstDayOfWeek=bt,Aa.weekdays=Ct,Aa.weekdaysMin=Ht,Aa.weekdaysShort=Ut,Aa.weekdaysParse=Lt,Aa.weekdaysRegex=At,Aa.weekdaysShortRegex=jt,Aa.weekdaysMinRegex=It,Aa.isPM=Jt,Aa.meridiem=Qt,nn("en",{eras:[{since:"0001-01-01",until:+1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=M("moment.lang is deprecated. Use moment.locale instead.",nn),t.langData=M("moment.langData is deprecated. Use moment.localeData instead.",an);var ja=Math.abs,Ia=Ii("ms"),Za=Ii("s"),za=Ii("m"),$a=Ii("h"),qa=Ii("d"),Ba=Ii("w"),Ja=Ii("M"),Qa=Ii("Q"),Xa=Ii("y"),Ka=$i("milliseconds"),eo=$i("seconds"),to=$i("minutes"),no=$i("hours"),so=$i("days"),io=$i("months"),ro=$i("years"),ao=Math.round,oo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},uo=Math.abs,lo=Hn.prototype;return lo.isValid=Cn,lo.abs=Ci,lo.add=Hi,lo.subtract=Fi,lo.as=Ai,lo.asMilliseconds=Ia,lo.asSeconds=Za,lo.asMinutes=za,lo.asHours=$a,lo.asDays=qa,lo.asWeeks=Ba,lo.asMonths=Ja,lo.asQuarters=Qa,lo.asYears=Xa,lo.valueOf=ji,lo._bubble=Vi,lo.clone=Zi,lo.get=zi,lo.milliseconds=Ka,lo.seconds=eo,lo.minutes=to,lo.hours=no,lo.days=so,lo.weeks=qi,lo.months=io,lo.years=ro,lo.humanize=Ki,lo.toISOString=tr,lo.toString=tr,lo.toJSON=tr,lo.locale=Ps,lo.localeData=Rs,lo.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tr),lo.lang=Pa,N("X",0,0,"unix"),N("x",0,0,"valueOf"),K("x",Wr),K("X",Hr),st("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),st("x",function(e,t,n){n._d=new Date($(e))}),t.version="2.27.0",s(Tn),t.fn=Ea,t.min=Pn,t.max=Rn,t.now=Sa,t.utc=f,t.unix=Di,t.months=Ti,t.isDate=h,t.locale=nn,t.invalid=g,t.duration=ts,t.isMoment=v,t.weekdays=Pi,t.parseZone=Si,t.localeData=an,t.isDuration=Fn,t.monthsShort=Ni,t.weekdaysMin=Wi,t.defineLocale=sn,t.updateLocale=rn,t.locales=on,t.weekdaysShort=Ri,t.normalizeUnits=E,t.relativeTimeRounding=Qi,t.relativeTimeThreshold=Xi,t.calendarFormat=cs,t.prototype=Ea,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})}); +;/*!node_modules/mobx/lib/mobx.min.js*/ +amis.define('node_modules/mobx/lib/mobx.min', function(require, exports, module, define) { + + "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function __spread(){for(var e=[],t=0;t2&&incorrectlyUsedAsDecorator("box");var r=asCreateObservableOptions(t);return new ObservableValue(e,getEnhancerFromOptions(r),r.name,!0,r.equals)},shallowBox:function(e,t){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowBox"),deprecated("observable.shallowBox","observable.box(value, { deep: false })"),observable.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&incorrectlyUsedAsDecorator("array");var r=asCreateObservableOptions(t);return new ObservableArray(e,getEnhancerFromOptions(r),r.name)},shallowArray:function(e,t){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowArray"),deprecated("observable.shallowArray","observable.array(values, { deep: false })"),observable.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&incorrectlyUsedAsDecorator("map");var r=asCreateObservableOptions(t);return new ObservableMap(e,getEnhancerFromOptions(r),r.name)},shallowMap:function(e,t){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowMap"),deprecated("observable.shallowMap","observable.map(values, { deep: false })"),observable.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&incorrectlyUsedAsDecorator("set");var r=asCreateObservableOptions(t);return new ObservableSet(e,getEnhancerFromOptions(r),r.name)},object:function(e,t,r){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("object"),extendObservable({},e,t,asCreateObservableOptions(r))},shallowObject:function(e,t){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("shallowObject"),deprecated("observable.shallowObject","observable.object(values, {}, { deep: false })"),observable.object(e,{},{name:t,deep:!1})},ref:refDecorator,shallow:shallowDecorator,deep:deepDecorator,struct:refStructDecorator},observable=createObservable;function incorrectlyUsedAsDecorator(e){fail("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(observableFactories).forEach(function(e){return observable[e]=observableFactories[e]});var TraceMode,computedDecorator=createPropDecorator(!1,function(e,t,r,n,o){var a=r.get,i=r.set,s=o[0]||{};defineComputedProperty(e,t,__assign({get:a,set:i},s))}),computedStructDecorator=computedDecorator({equals:comparer.structural}),computed=function(e,t,r){if("string"==typeof t)return computedDecorator.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return computedDecorator.apply(null,arguments);var n="object"==typeof t?t:{};return n.get=e,n.set="function"==typeof t?t:n.set,n.name=n.name||e.name||"",new ComputedValue(n)};computed.struct=computedStructDecorator,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(exports.IDerivationState||(exports.IDerivationState={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(TraceMode||(TraceMode={}));var CaughtException=function(){return function(e){this.cause=e}}();function isCaughtException(e){return e instanceof CaughtException}function shouldCompute(e){switch(e.dependenciesState){case exports.IDerivationState.UP_TO_DATE:return!1;case exports.IDerivationState.NOT_TRACKING:case exports.IDerivationState.STALE:return!0;case exports.IDerivationState.POSSIBLY_STALE:for(var t=allowStateReadsStart(!0),r=untrackedStart(),n=e.observing,o=n.length,a=0;a0;globalState.computationDepth>0&&t&&fail(!1),globalState.allowStateChanges||!t&&"strict"!==globalState.enforceActions||fail(!1)}function trackDerivedFunction(e,t,r){var n=allowStateReadsStart(!0);changeDependenciesStateTo0(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++globalState.runId;var o,a=globalState.trackingDerivation;if(globalState.trackingDerivation=e,!0===globalState.disableErrorBoundaries)o=t.call(r);else try{o=t.call(r)}catch(e){o=new CaughtException(e)}return globalState.trackingDerivation=a,bindDependencies(e),0===e.observing.length&&warnAboutDerivationWithoutDependencies(e),allowStateReadsEnd(n),o}function warnAboutDerivationWithoutDependencies(e){}function bindDependencies(e){for(var t=e.observing,r=e.observing=e.newObserving,n=exports.IDerivationState.UP_TO_DATE,o=0,a=e.unboundDepsCount,i=0;in&&(n=s.dependenciesState)}for(r.length=o,e.newObserving=null,a=t.length;a--;){0===(s=t[a]).diffValue&&removeObserver(s,e),s.diffValue=0}for(;o--;){var s;1===(s=r[o]).diffValue&&(s.diffValue=0,addObserver(s,e))}n!==exports.IDerivationState.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}function clearObserving(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)removeObserver(t[r],e);e.dependenciesState=exports.IDerivationState.NOT_TRACKING}function untracked(e){var t=untrackedStart(),r=e();return untrackedEnd(t),r}function untrackedStart(){var e=globalState.trackingDerivation;return globalState.trackingDerivation=null,e}function untrackedEnd(e){globalState.trackingDerivation=e}function allowStateReadsStart(e){var t=globalState.allowStateReads;return globalState.allowStateReads=e,t}function allowStateReadsEnd(e){globalState.allowStateReads=e}function changeDependenciesStateTo0(e){if(e.dependenciesState!==exports.IDerivationState.UP_TO_DATE){e.dependenciesState=exports.IDerivationState.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=exports.IDerivationState.UP_TO_DATE}}var currentActionId=0,nextActionId=1,functionNameDescriptor=Object.getOwnPropertyDescriptor(function(){},"name"),isFunctionNameConfigurable=functionNameDescriptor&&functionNameDescriptor.configurable;function createAction(e,t){var r=function(){return executeAction(e,t,this,arguments)};return r.isMobxAction=!0,r}function executeAction(e,t,r,n){var o=_startAction(e,r,n);try{return t.apply(r,n)}catch(e){throw o.error=e,e}finally{_endAction(o)}}function _startAction(e,t,r){var n=isSpyEnabled()&&!!e,o=0;if(n){o=Date.now();var a=r&&r.length||0,i=new Array(a);if(a>0)for(var s=0;s0&&!e.__mobxGlobals&&(canMergeGlobalState=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new MobXGlobals).version&&(canMergeGlobalState=!1),canMergeGlobalState?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new MobXGlobals):(setTimeout(function(){isolateCalled||fail("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new MobXGlobals)}();function isolateGlobalState(){(globalState.pendingReactions.length||globalState.inBatch||globalState.isRunningReactions)&&fail("isolateGlobalState should be called before MobX is running any reactions"),isolateCalled=!0,canMergeGlobalState&&(0==--getGlobal().__mobxInstanceCount&&(getGlobal().__mobxGlobals=void 0),globalState=new MobXGlobals)}function getGlobalState(){return globalState}function resetGlobalState(){var e=new MobXGlobals;for(var t in e)-1===persistentKeys.indexOf(t)&&(globalState[t]=e[t]);globalState.allowStateChanges=!globalState.enforceActions}function hasObservers(e){return e.observers&&e.observers.length>0}function getObservers(e){return e.observers}function addObserver(e,t){var r=e.observers.length;r&&(e.observersIndexes[t.__mapid]=r),e.observers[r]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function removeObserver(e,t){if(1===e.observers.length)e.observers.length=0,queueForUnobservation(e);else{var r=e.observers,n=e.observersIndexes,o=r.pop();if(o!==t){var a=n[t.__mapid]||0;a?n[o.__mapid]=a:delete n[o.__mapid],r[a]=o}delete n[t.__mapid]}}function queueForUnobservation(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,globalState.pendingUnobservations.push(e))}function startBatch(){globalState.inBatch++}function endBatch(){if(0==--globalState.inBatch){runReactions();for(var e=globalState.pendingUnobservations,t=0;t0&&queueForUnobservation(e),!1)}function propagateChanged(e){if(e.lowestObserverState!==exports.IDerivationState.STALE){e.lowestObserverState=exports.IDerivationState.STALE;for(var t=e.observers,r=t.length;r--;){var n=t[r];n.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(n.isTracing!==TraceMode.NONE&&logTraceInfo(n,e),n.onBecomeStale()),n.dependenciesState=exports.IDerivationState.STALE}}}function propagateChangeConfirmed(e){if(e.lowestObserverState!==exports.IDerivationState.STALE){e.lowestObserverState=exports.IDerivationState.STALE;for(var t=e.observers,r=t.length;r--;){var n=t[r];n.dependenciesState===exports.IDerivationState.POSSIBLY_STALE?n.dependenciesState=exports.IDerivationState.STALE:n.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(e.lowestObserverState=exports.IDerivationState.UP_TO_DATE)}}}function propagateMaybeChanged(e){if(e.lowestObserverState===exports.IDerivationState.UP_TO_DATE){e.lowestObserverState=exports.IDerivationState.POSSIBLY_STALE;for(var t=e.observers,r=t.length;r--;){var n=t[r];n.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(n.dependenciesState=exports.IDerivationState.POSSIBLY_STALE,n.isTracing!==TraceMode.NONE&&logTraceInfo(n,e),n.onBecomeStale())}}}function logTraceInfo(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===TraceMode.BREAK){var r=[];printDepTree(getDependencyTree(e),r,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ComputedValue?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+r.join("\n")+"\n*/\n ")()}}function printDepTree(e,t,r){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(r).join("\t")+e.name),e.dependencies&&e.dependencies.forEach(function(e){return printDepTree(e,t,r+1)}))}var Reaction=function(){function e(e,t,r,n){void 0===e&&(e="Reaction@"+getNextId()),void 0===n&&(n=!1),this.name=e,this.onInvalidate=t,this.errorHandler=r,this.requiresObservable=n,this.observing=[],this.newObserving=[],this.dependenciesState=exports.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=TraceMode.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,globalState.pendingReactions.push(this),runReactions())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(startBatch(),this._isScheduled=!1,shouldCompute(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&isSpyEnabled()&&spyReport({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}endBatch()}},e.prototype.track=function(e){startBatch();var t,r=isSpyEnabled();r&&(t=Date.now(),spyReportStart({name:this.name,type:"reaction"})),this._isRunning=!0;var n=trackDerivedFunction(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(n)&&this.reportExceptionInDerivation(n.cause),r&&spyReportEnd({time:Date.now()-t}),endBatch()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(globalState.disableErrorBoundaries)throw e;var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";globalState.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(r,e),isSpyEnabled()&&spyReport({type:"error",name:this.name,message:r,error:""+e}),globalState.globalReactionErrorHandlers.forEach(function(r){return r(e,t)})}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(startBatch(),clearObserving(this),endBatch()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),trace(this,e)},e}();function onReactionError(e){return globalState.globalReactionErrorHandlers.push(e),function(){var t=globalState.globalReactionErrorHandlers.indexOf(e);t>=0&&globalState.globalReactionErrorHandlers.splice(t,1)}}var MAX_REACTION_ITERATIONS=100,reactionScheduler=function(e){return e()};function runReactions(){globalState.inBatch>0||globalState.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){globalState.isRunningReactions=!0;for(var e=globalState.pendingReactions,t=0;e.length>0;){++t===MAX_REACTION_ITERATIONS&&(console.error("Reaction doesn't converge to a stable state after "+MAX_REACTION_ITERATIONS+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,o=r.length;n",e):2===arguments.length&&"function"==typeof t?createAction(e,t):1===arguments.length&&"string"==typeof e?namedActionDecorator(e):!0!==n?namedActionDecorator(t).apply(null,arguments):void(e[t]=createAction(e.name||t,r.value))};function runInAction(e,t){return executeAction("string"==typeof e?e:e.name||"","function"==typeof e?e:t,this,void 0)}function isAction(e){return"function"==typeof e&&!0===e.isMobxAction}function defineBoundAction(e,t,r){addHiddenProp(e,t,createAction(t,r.bind(e)))}function autorun(e,t){void 0===t&&(t=EMPTY_OBJECT);var r,n=t&&t.name||e.name||"Autorun@"+getNextId();if(!t.scheduler&&!t.delay)r=new Reaction(n,function(){this.track(i)},t.onError,t.requiresObservable);else{var o=createSchedulerFromOptions(t),a=!1;r=new Reaction(n,function(){a||(a=!0,o(function(){a=!1,r.isDisposed||r.track(i)}))},t.onError,t.requiresObservable)}function i(){e(r)}return r.schedule(),r.getDisposer()}action.bound=boundActionDecorator;var run=function(e){return e()};function createSchedulerFromOptions(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:run}function reaction(e,t,r){void 0===r&&(r=EMPTY_OBJECT),"boolean"==typeof r&&(r={fireImmediately:r},deprecated("Using fireImmediately as argument is deprecated. Use '{ fireImmediately: true }' instead"));var n,o=r.name||"Reaction@"+getNextId(),a=action(o,r.onError?wrapErrorHandler(r.onError,t):t),i=!r.scheduler&&!r.delay,s=createSchedulerFromOptions(r),c=!0,l=!1,u=r.compareStructural?comparer.structural:r.equals||comparer.default,p=new Reaction(o,function(){c||i?d():l||(l=!0,s(d))},r.onError,r.requiresObservable);function d(){if(l=!1,!p.isDisposed){var t=!1;p.track(function(){var r=e(p);t=c||!u(n,r),n=r}),c&&r.fireImmediately&&a(n,p),c||!0!==t||a(n,p),c&&(c=!1)}}return p.schedule(),p.getDisposer()}function wrapErrorHandler(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}function onBecomeObserved(e,t,r){return interceptHook("onBecomeObserved",e,t,r)}function onBecomeUnobserved(e,t,r){return interceptHook("onBecomeUnobserved",e,t,r)}function interceptHook(e,t,r,n){var o="function"==typeof n?getAtom(t,r):getAtom(t),a="function"==typeof n?n:r,i=o[e];return"function"!=typeof i?fail(!1):(o[e]=function(){i.call(this),a.call(this)},function(){o[e]=i})}function configure(e){var t=e.enforceActions,r=e.computedRequiresReaction,n=e.computedConfigurable,o=e.disableErrorBoundaries,a=e.arrayBuffer,i=e.reactionScheduler,s=e.reactionRequiresObservable,c=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&isolateGlobalState(),void 0!==t){"boolean"!=typeof t&&"strict"!==t||deprecated("Deprecated value for 'enforceActions', use 'false' => '\"never\"', 'true' => '\"observed\"', '\"strict\"' => \"'always'\" instead");var l=void 0;switch(t){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:fail("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}globalState.enforceActions=l,globalState.allowStateChanges=!0!==l&&"strict"!==l}void 0!==r&&(globalState.computedRequiresReaction=!!r),void 0!==s&&(globalState.reactionRequiresObservable=!!s),void 0!==c&&(globalState.observableRequiresReaction=!!c,globalState.allowStateReads=!globalState.observableRequiresReaction),void 0!==n&&(globalState.computedConfigurable=!!n),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),globalState.disableErrorBoundaries=!!o),"number"==typeof a&&reserveArrayBuffer(a),i&&setReactionScheduler(i)}function decorate(e,t){var r="function"==typeof e?e.prototype:e,n=function(e){var n=t[e];Array.isArray(n)||(n=[n]);var o=Object.getOwnPropertyDescriptor(r,e),a=n.reduce(function(t,n){return n(r,e,t)},o);a&&Object.defineProperty(r,e,a)};for(var o in t)n(o);return e}function extendShallowObservable(e,t,r){return deprecated("'extendShallowObservable' is deprecated, use 'extendObservable(target, props, { deep: false })' instead"),extendObservable(e,t,r,shallowCreateObservableOptions)}function extendObservable(e,t,r,n){var o=(n=asCreateObservableOptions(n)).defaultDecorator||(!1===n.deep?refDecorator:deepDecorator);initializeInstance(e),asObservableObject(e,n.name,o.enhancer),startBatch();try{for(var a in t){var i=Object.getOwnPropertyDescriptor(t,a),s=(r&&a in r?r[a]:i.get?computedDecorator:o)(e,a,i,!0);s&&Object.defineProperty(e,a,s)}}finally{endBatch()}return e}function getDependencyTree(e,t){return nodeToDependencyTree(getAtom(e,t))}function nodeToDependencyTree(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=unique(e.observing).map(nodeToDependencyTree)),t}function getObserverTree(e,t){return nodeToObserverTree(getAtom(e,t))}function nodeToObserverTree(e){var t={name:e.name};return hasObservers(e)&&(t.observers=getObservers(e).map(nodeToObserverTree)),t}var generatorId=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}function isFlowCancellationError(e){return e instanceof FlowCancellationError}function flow(e){1!==arguments.length&&fail("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"";return function(){var r,n=arguments,o=++generatorId,a=action(t+" - runid: "+o+" - init",e).apply(this,n),i=void 0,s=new Promise(function(e,n){var s=0;function c(e){var r;i=void 0;try{r=action(t+" - runid: "+o+" - yield "+s++,a.next).call(a,e)}catch(e){return n(e)}u(r)}function l(e){var r;i=void 0;try{r=action(t+" - runid: "+o+" - yield "+s++,a.throw).call(a,e)}catch(e){return n(e)}u(r)}function u(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(i=Promise.resolve(t.value)).then(c,l);t.then(u,n)}r=n,c(void 0)});return s.cancel=action(t+" - runid: "+o+" - cancel",function(){try{i&&cancelPromise(i);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(noop,noop),cancelPromise(t),r(new FlowCancellationError)}catch(e){r(e)}}),s}}function cancelPromise(e){"function"==typeof e.cancel&&e.cancel()}function interceptReads(e,t,r){var n;if(isObservableMap(e)||isObservableArray(e)||isObservableValue(e))n=getAdministration(e);else{if(!isObservableObject(e))return fail(!1);if("string"!=typeof t)return fail(!1);n=getAdministration(e,t)}return void 0!==n.dehancer?fail(!1):(n.dehancer="function"==typeof t?t:r,function(){n.dehancer=void 0})}function intercept(e,t,r){return"function"==typeof r?interceptProperty(e,t,r):interceptInterceptable(e,t)}function interceptInterceptable(e,t){return getAdministration(e).intercept(t)}function interceptProperty(e,t,r){return getAdministration(e,t).intercept(r)}function _isComputed(e,t){if(null==e)return!1;if(void 0!==t){if(!1===isObservableObject(e))return!1;if(!e.$mobx.values[t])return!1;var r=getAtom(e,t);return isComputedValue(r)}return isComputedValue(e)}function isComputed(e){return arguments.length>1?fail(!1):_isComputed(e)}function isComputedProp(e,t){return"string"!=typeof t?fail(!1):_isComputed(e,t)}function _isObservable(e,t){if(null==e)return!1;if(void 0!==t){if(isObservableObject(e)){var r=e.$mobx;return r.values&&!!r.values[t]}return!1}return isObservableObject(e)||!!e.$mobx||isAtom(e)||isReaction(e)||isComputedValue(e)}function isObservable(e){return 1!==arguments.length&&fail(!1),_isObservable(e)}function isObservableProp(e,t){return"string"!=typeof t?fail(!1):_isObservable(e,t)}function keys(e){return isObservableObject(e)?e.$mobx.getKeys():isObservableMap(e)?e._keys.slice():isObservableSet(e)?iteratorToArray(e.keys()):isObservableArray(e)?e.map(function(e,t){return t}):fail(!1)}function values(e){return isObservableObject(e)?keys(e).map(function(t){return e[t]}):isObservableMap(e)?keys(e).map(function(t){return e.get(t)}):isObservableSet(e)?iteratorToArray(e.values()):isObservableArray(e)?e.slice():fail(!1)}function entries(e){return isObservableObject(e)?keys(e).map(function(t){return[t,e[t]]}):isObservableMap(e)?keys(e).map(function(t){return[t,e.get(t)]}):isObservableSet(e)?iteratorToArray(e.entries()):isObservableArray(e)?e.map(function(e,t){return[t,e]}):fail(!1)}function set(e,t,r){if(2!==arguments.length||isObservableSet(e))if(isObservableObject(e)){var n=e.$mobx;n.values[t]?n.write(e,t,r):defineObservableProperty(e,t,r,n.defaultEnhancer)}else if(isObservableMap(e))e.set(t,r);else if(isObservableSet(e))e.add(t);else{if(!isObservableArray(e))return fail(!1);"number"!=typeof t&&(t=parseInt(t,10)),invariant(t>=0,"Not a valid index: '"+t+"'"),startBatch(),t>=e.length&&(e.length=t+1),e[t]=r,endBatch()}else{startBatch();var o=t;try{for(var a in o)set(e,a,o[a])}finally{endBatch()}}}function remove(e,t){if(isObservableObject(e))e.$mobx.remove(t);else if(isObservableMap(e))e.delete(t);else if(isObservableSet(e))e.delete(t);else{if(!isObservableArray(e))return fail(!1);"number"!=typeof t&&(t=parseInt(t,10)),invariant(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function has(e,t){if(isObservableObject(e)){var r=getAdministration(e);return r.getKeys(),!!r.values[t]}return isObservableMap(e)?e.has(t):isObservableSet(e)?e.has(t):isObservableArray(e)?t>=0&&t0}function registerInterceptor(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),once(function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})}function interceptChange(e,t){var r=untrackedStart();try{var n=e.interceptors;if(n)for(var o=0,a=n.length;o0}function registerListener(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),once(function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})}function notifyListeners(e,t){var r=untrackedStart(),n=e.changeListeners;if(n){for(var o=0,a=(n=n.slice()).length;o0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return registerInterceptor(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),registerListener(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var r=new Array(e-t),n=0;n0&&e+t+1>OBSERVABLE_ARRAY_BUFFER_SIZE&&reserveArrayBuffer(e+t+1)},e.prototype.spliceWithArray=function(e,t,r){var n=this;checkIfStateModificationsAreAllowed(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===r&&(r=EMPTY_ARRAY),hasInterceptors(this)){var a=interceptChange(this,{object:this.array,type:"splice",index:e,removedCount:t,added:r});if(!a)return EMPTY_ARRAY;t=a.removedCount,r=a.added}var i=(r=0===r.length?r:r.map(function(e){return n.enhancer(e,void 0)})).length-t;this.updateArrayLength(o,i);var s=this.spliceItemsIntoValues(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice(e,r,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,r){var n;if(r.length-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function r(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(deprecated("observableArray.move is deprecated, use .slice() & .replace() instead"),r.call(this,e),r.call(this,t),e!==t){var n,o=this.$mobx.values;n=eo?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(3>o?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var t=[],e=0;e"}}function we(t){return"function"==typeof t?"":xe(t)?"<"+t+">":"`"+me(t)+"`"}function _e(t){return t.length<280?t:t.substring(0,272)+"......"+t.substring(t.length-8)}function Pe(t){var e=t.value,n=t.context[t.context.length-1].type,r=t.context.map(function(t){var e=t.path;return e}).filter(function(t){return t.length>0}).join("/"),i=r.length>0?'at path "/'+r+'" ':"",o=xe(e)?"value of type "+ke(e).type.name+":":Ke(e)?"value":"snapshot",a=n&&xe(e)&&n.is(ke(e).snapshot);return""+i+o+" "+we(e)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(t.message?" ("+t.message+")":"")+(n?Hn(n)||Ke(e)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(a?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function Se(t,e,n){return t.concat([{path:e,type:n}])}function Ae(){return zr}function Ie(t,e,n){return[{context:t,value:e,message:n}]}function Te(t){return t.reduce(function(t,e){return t.concat(e)},[])}function Ce(t,e){sn()&&Oe(t,e)}function Oe(t,e){var n=t.validate(e,[{path:"",type:t}]);if(n.length>0)throw $e(Ee(t,e,n))}function Ee(t,e,n){return 0===n.length?void 0:"Error while converting "+_e(we(e))+" to `"+t.name+"`:\n\n "+n.map(Pe).join("\n ")}function je(t,e,n,r,i){var o=Re(i);if(o){if(o.parent)throw $e("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(e?e.path:"")+"/"+n+"', but it lives already at '"+o.path+"'");return e&&o.setParent(e,n),o}return new Pr(t,e,n,r,i)}function Ve(t,e,n,r,i){return new mr(t,e,n,r,i)}function Ne(t){return t instanceof mr||t instanceof Pr}function xe(t){return!(!t||!t.$treenode)}function De(t,e){cn(t,xe,"mobx-state-tree node",e)}function ke(t){if(!xe(t))throw $e("Value "+t+" is no MST Node");return t.$treenode}function Re(t){return t&&t.$treenode||null}function ze(){return ke(this).snapshot}function Fe(t,e){if(t.root!==e.root)throw $e("Cannot calculate relative path: objects '"+t+"' and '"+e+"' are not part of the same object tree");for(var n=Sn(t.path),r=Sn(e.path),i=0;i=n},"number greater than "+n,e),void 0!==r&&cn(t,function(t){return r>=t},"number lesser than "+r,e)}function fn(t,e,n){void 0===n&&(n=!0),cn(t,function(t){return"string"==typeof t},"string",e),n||cn(t,function(t){return""!==t},"not empty string",e)}function ln(t){return yn(t.name,t)}function dn(t){return t}function yn(t,e){var n=function(){function r(t,e,r){t.$mst_middleware=n.$mst_middleware,ce(br(br({},s),{type:e,args:[r]}),t)}var i=ue(),o=se();if(!o)throw $e("a mst flow must always have a parent context");var a=pe(o);if(!a)throw $e("a mst flow must always have a parent action context");var s={name:t,id:i,tree:o.tree,context:o.context,parentId:o.id,allParentIds:p(o.allParentIds,[o.id]),rootId:o.rootId,parentEvent:o,parentActionEvent:a},u=arguments;return new Promise(function(t,i){function o(t){var e;try{r(function(t){e=p.next(t)},"flow_resume",t)}catch(n){return void setImmediate(function(){r(function(){i(n)},"flow_throw",n)})}c(e)}function a(t){var e;try{r(function(t){e=p.throw(t)},"flow_resume_error",t)}catch(n){return void setImmediate(function(){r(function(){i(n)},"flow_throw",n)})}c(e)}function c(e){if(e.done)return void setImmediate(function(){r(function(e){t(e)},"flow_return",e.value)});if(!e.value||"function"!=typeof e.value.then)throw $e("Only promises can be yielded to `async`, got: "+e);return e.value.then(o,a)}var p,h=function(){p=e.apply(null,arguments),o(void 0)};h.$mst_middleware=n.$mst_middleware,ce(br(br({},s),{type:"flow_spawn",args:nn(u)}),h)})};return n}function vn(t){if(!("oldValue"in t))throw $e("Patches without `oldValue` field cannot be inversed");return[bn(t),gn(t)]}function bn(t){switch(t.op){case"add":return{op:"add",path:t.path,value:t.value};case"remove":return{op:"remove",path:t.path};case"replace":return{op:"replace",path:t.path,value:t.value}}}function gn(t){switch(t.op){case"add":return{op:"remove",path:t.path};case"remove":return{op:"add",path:t.path,value:t.oldValue};case"replace":return{op:"replace",path:t.path,value:t.oldValue}}}function mn(t){return"number"==typeof t}function wn(t){return mn(t)===!0?""+t:-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function _n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Pn(t){if(0===t.length)return"";var e=function(t){return t.map(wn).join("/")};return"."===t[0]||".."===t[0]?e(t):"/"+e(t)}function Sn(t){var e=t.split("/").map(_n),n=""===t||"."===t||".."===t||on(t,"/")||on(t,"./")||on(t,"../");if(!n)throw $e("a json path must be either rooted, empty or relative, but got '"+t+"'");return""===e[0]&&e.shift(),e}function An(t,e){for(var n,r,i=[],o=2;o",t)}function On(t){return K(t)&&(t.flags&yr.Map)>0}function En(t){return q(t,1),new Br(t.name+"[]",t)}function jn(t,e,n,r,i){for(var o=!0,a=0;;a++){var s=a<=r.length-1,u=n[a],c=s?r[a]:void 0,p=""+i[a];if(Ne(c)&&(c=c.storedValue),!u&&!s)break;if(s)if(u)if(Nn(u,c))n[a]=Vn(e,t,p,c,u);else{for(var h=void 0,f=a;f0}function Dn(){return ke(this).toString()}function kn(t){return Object.keys(t).reduce(function(t,e){var n,r,i;if(e in fr)throw $e("Hook '"+e+"' was defined as property. Hooks should be defined as part of the actions");var o=Object.getOwnPropertyDescriptor(t,e);if("get"in o)throw $e("Getters are not supported as properties. Please use views instead");var a=o.value;if(null===a||void 0===a)throw $e("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(Ke(a))return Object.assign({},t,(n={},n[e]=Bn(Mn(a),a),n));if(a instanceof Zr)return Object.assign({},t,(r={},r[e]=Bn(a,{}),r));if(a instanceof Br)return Object.assign({},t,(i={},i[e]=Bn(a,[]),i));if(K(a))return t;throw $e(un()&&"function"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed a function. Did you forget to invoke it, or did you intend to declare a view / action?":un()&&"object"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed an object. Try passing another model type or a types.frozen.":"Invalid type definition for property '"+e+"', cannot infer a type from a value like '"+a+"' ("+typeof a+")")},t)}function Rn(){for(var t=[],e=0;e0}function Mn(t){switch(typeof t){case"string":return ei;case"number":return ni;case"boolean":return ii;case"object":if(t instanceof Date)return ui}throw $e("Cannot determine primitive type from value "+t)}function Hn(t){return K(t)&&(t.flags&(yr.String|yr.Number|yr.Integer|yr.Boolean|yr.Date))>0}function Ln(t){return cn(t,Ke,"primitive",1),new ci(t)}function Un(t){return K(t)&&(t.flags&yr.Literal)>0}function $n(){for(var t=[],e=0;e0}function Gn(t,e){var n="string"==typeof t?e:t;un()&&n.forEach(function(t,e){fn(t,e+1)});var r=Jn.apply(void 0,p(n.map(function(t){return Ln(""+t)})));return"string"==typeof t&&(r.name=t),r}function Jn(t){for(var e=[],n=1;n0}function Zn(t,e){if("function"!=typeof e&&xe(e))throw $e("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");q(t,1),un()&&"function"!=typeof e&&Ce(t,e)}function Bn(t,e,n){return Zn(t,e),new fi(t,e,n?n:li)}function Kn(t){return K(t)&&(t.flags&yr.Optional)>0}function qn(t){return q(t,1),Jn(t,di)}function Qn(t){return q(t,1),Jn(t,yi)}function Xn(t,e){var n="string"==typeof t?t:"late("+t.toString()+")",r="string"==typeof t?e:t;if(un()&&("function"!=typeof r||0!==r.length))throw $e("Invalid late type, expected a function with zero arguments that returns a type, got: "+r);return new vi(n,r)}function tr(t){return K(t)&&(t.flags&yr.Late)>0}function er(t){return 0===arguments.length?gi:K(t)?new bi(t):Bn(gi,t)}function nr(t){return K(t)&&(t.flags&yr.Frozen)>0}function rr(t){switch(t){case fr.beforeDestroy:return"destroy";case fr.beforeDetach:return"detach";default:return void 0}}function ir(t,e){if(q(t,1),un()&&2===arguments.length&&"string"==typeof arguments[1])throw $e("References with base path are no longer supported. Please remove the base path.");var n=e?e:void 0,r=e?e.onInvalidated:void 0;if(n&&(n.get||n.set)){if(un()&&(!n.get||!n.set))throw $e("reference options must either contain both a 'get' and a 'set' method or none of them");return new Si(t,{get:n.get,set:n.set},r)}return new Pi(t,r)}function or(t){return(t.flags&yr.Reference)>0}function ar(t,e){var n=ir(t,br(br({},e),{onInvalidated:function(t){t.removeRef()}}));return e&&e.acceptsUndefined===!1?n:qn(n)}function sr(t){return K(t)&&(t.flags&yr.Identifier)>0}function ur(t){return""+t}function cr(t){return"string"==typeof t||"number"==typeof t}function pr(t,e){cn(t,cr,"string or number (identifier)",e)}function hr(t){return new Ei(t)}Object.defineProperty(e,"__esModule",{value:!0});var fr,lr=t("node_modules/mobx/lib/mobx"),dr="warn";!function(t){t.afterCreate="afterCreate",t.afterAttach="afterAttach",t.afterCreationFinalization="afterCreationFinalization",t.beforeDetach="beforeDetach",t.beforeDestroy="beforeDestroy"}(fr||(fr={}));var yr,vr=function(t,e){return(vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},br=function(){return br=Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},br.apply(this,arguments)},gr=function(){function t(t,e,n,r){this.type=t,this.environment=r,this._state=Ar.INITIALIZING,this.environment=r,this.baseSetParent(e,n)}return Object.defineProperty(t.prototype,"subpath",{get:function(){return this._subpath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(t){var e=this.isAlive;this._state=t;var n=this.isAlive;this.aliveAtom&&e!==n&&this.aliveAtom.reportChanged()},enumerable:!0,configurable:!0}),t.prototype.fireInternalHook=function(t){this._hookSubscribers&&this._hookSubscribers.emit(t,this,t)},t.prototype.registerHook=function(t,e){return this._hookSubscribers||(this._hookSubscribers=new Ur),this._hookSubscribers.register(t,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.baseSetParent=function(t,e){this._parent=t,this._subpath=e,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()},Object.defineProperty(t.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!0,configurable:!0}),t.prototype.getEscapedPath=function(t){return t&&(this.pathAtom||(this.pathAtom=lr.createAtom("path")),this.pathAtom.reportObserved()),this.parent?(void 0===this._escapedSubpath&&(this._escapedSubpath=this._subpath?wn(this._subpath):""),this.parent.getEscapedPath(t)+"/"+this._escapedSubpath):""},Object.defineProperty(t.prototype,"isRoot",{get:function(){return null===this.parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAlive",{get:function(){return this.state!==Ar.DEAD},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDetaching",{get:function(){return this.state===Ar.DETACHING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=lr.createAtom("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!0,configurable:!0}),t.prototype.baseFinalizeCreation=function(t){if(un()&&!this.isAlive)throw fail("assertion failed: cannot finalize the creation of a node that is already dead");if(this.state===Ar.CREATED){if(this.parent){if(this.parent.state!==Ar.FINALIZED)return;this.fireHook(fr.afterAttach)}this.state=Ar.FINALIZED,t&&t()}},t.prototype.baseFinalizeDeath=function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=Ar.DEAD},t.prototype.baseAboutToDie=function(){this.fireHook(fr.beforeDestroy)},t}(),mr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;try{a.storedValue=e.createNewInstance(o)}catch(s){throw a.state=Ar.DEAD,s}return a.state=Ar.CREATED,a.finalizeCreation(),a}return o(e,t),Object.defineProperty(e.prototype,"root",{get:function(){if(!this.parent)throw $e("This scalar node is not part of a tree");return this.parent.root},enumerable:!0,configurable:!0}),e.prototype.setParent=function(t,e){var n=this.parent!==t,r=this.subpath!==e;if(n||r){if(un()){if(!e)throw $e("assertion failed: subpath expected");if(!t)throw $e("assertion failed: parent expected");if(n)throw $e("assertion failed: scalar nodes cannot change their parent")}this.environment=void 0,this.baseSetParent(this.parent,e)}},Object.defineProperty(e.prototype,"snapshot",{get:function(){return qe(this.getSnapshot())},enumerable:!0,configurable:!0}),e.prototype.getSnapshot=function(){return this.type.getSnapshot(this)},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"";return this.type.name+"@"+t+(this.isAlive?"":" [dead]")},e.prototype.die=function(){this.isAlive&&this.state!==Ar.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},e.prototype.aboutToDie=function(){this.baseAboutToDie()},e.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},e.prototype.fireHook=function(t){this.fireInternalHook(t)},s([lr.action],e.prototype,"die",null),e}(gr),wr=1,_r={onError:function(t){throw t}},Pr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;if(a.nodeId=++wr,a.isProtectionEnabled=!0,a._autoUnbox=!0,a._isRunningAction=!1,a._hasSnapshotReaction=!1,a._observableInstanceState=0,a._cachedInitialSnapshotCreated=!1,a.unbox=a.unbox.bind(a),a._initialSnapshot=qe(o),a.identifierAttribute=e.identifierAttribute,n||(a.identifierCache=new Dr),a._childNodes=e.initializeChildNodes(a,a._initialSnapshot),a.identifier=null,a.unnormalizedIdentifier=null,a.identifierAttribute&&a._initialSnapshot){var s=a._initialSnapshot[a.identifierAttribute];if(void 0===s){var u=a._childNodes[a.identifierAttribute]; -u&&(s=u.value)}if("string"!=typeof s&&"number"!=typeof s)throw $e("Instance identifier '"+a.identifierAttribute+"' for type '"+a.type.name+"' must be a string or a number");a.identifier=ur(s),a.unnormalizedIdentifier=s}return n?n.root.identifierCache.addNodeToCache(a):a.identifierCache.addNodeToCache(a),a}return o(e,t),e.prototype.applyPatches=function(t){this.createObservableInstanceIfNeeded(),this._applyPatches(t)},e.prototype.applySnapshot=function(t){this.createObservableInstanceIfNeeded(),this._applySnapshot(t)},e.prototype.createObservableInstanceIfNeeded=function(){var t,e;if(0===this._observableInstanceState){if(un()&&this.state!==Ar.INITIALIZING)throw $e("assertion failed: the creation of the observable instance must be done on the initializing phase");this._observableInstanceState=1;for(var n=[],r=this.parent;r&&0===r._observableInstanceState;)n.unshift(r),r=r.parent;try{for(var i=u(n),o=i.next();!o.done;o=i.next()){var a=o.value;a.createObservableInstanceIfNeeded()}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}var c=this.type;try{this.storedValue=c.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,c.finalizeNewInstance(this,this.storedValue)}catch(p){throw this.state=Ar.DEAD,p}finally{this._isRunningAction=!1}this._observableInstanceState=2,rn(this,"snapshot"),this.isRoot&&this._addSnapshotReaction(),this._childNodes=Fr,this.state=Ar.CREATED,this.fireHook(fr.afterCreate),this.finalizeCreation()}},Object.defineProperty(e.prototype,"root",{get:function(){var t=this.parent;return t?t.root:this},enumerable:!0,configurable:!0}),e.prototype.clearParent=function(){if(this.parent){this.fireHook(fr.beforeDetach);var t=this.state;this.state=Ar.DETACHING;var e=this.root,n=e.environment,r=e.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=r}finally{this.state=t}}},e.prototype.setParent=function(t,e){var n=t!==this.parent,r=e!==this.subpath;if(n||r){if(un()){if(!e)throw $e("assertion failed: subpath expected");if(!t)throw $e("assertion failed: new parent expected");if(this.parent&&n)throw $e("A node cannot exists twice in the state tree. Failed to add "+this+" to path '"+t.path+"/"+e+"'.");if(!this.parent&&t.root===this)throw $e("A state tree is not allowed to contain itself. Cannot assign "+this+" to path '"+t.path+"/"+e+"'");if(!this.parent&&this.environment&&this.environment!==t.root.environment)throw $e("A state tree cannot be made part of another state tree as long as their environments are different.")}n?(this.environment=void 0,t.root.identifierCache.mergeCache(this),this.baseSetParent(t,e),this.fireHook(fr.afterAttach)):r&&this.baseSetParent(this.parent,e)}},e.prototype.fireHook=function(t){var e=this;this.fireInternalHook(t);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[t];"function"==typeof n&&(lr._allowStateChangesInsideComputed?lr._allowStateChangesInsideComputed(function(){n.apply(e.storedValue)}):n.apply(this.storedValue))},Object.defineProperty(e.prototype,"snapshot",{get:function(){return qe(this.getSnapshot())},enumerable:!0,configurable:!0}),e.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},e.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},e.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var t=this.type,e=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=t.processInitialSnapshot(e,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},e.prototype.isRunningAction=function(){return this._isRunningAction?!0:this.isRoot?!1:this.parent.isRunningAction()},e.prototype.assertAlive=function(t){var e=r();if(!this.isAlive&&"ignore"!==e){var n=this._getAssertAliveError(t);switch(e){case"error":throw $e(n);case"warn":an(n)}}},e.prototype._getAssertAliveError=function(t){var e=this.getEscapedPath(!1)||this.pathUponDeath||"",n=t.subpath&&wn(t.subpath)||"",r=t.actionContext||se();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var i="";if(r&&null!=r.name){var o=r&&r.context&&C(r.context)||e;i=o+"."+r.name+"()"}return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+e+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},e.prototype.getChildNode=function(t){this.assertAlive({subpath:t}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,t):this._childNodes[t]}finally{this._autoUnbox=!0}},e.prototype.getChildren=function(){this.assertAlive(Fr),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):Le(this._childNodes)}finally{this._autoUnbox=!0}},e.prototype.getChildType=function(t){return this.type.getChildType(t)},Object.defineProperty(e.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!0,configurable:!0}),e.prototype.assertWritable=function(t){if(this.assertAlive(t),!this.isRunningAction()&&this.isProtected)throw $e("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},e.prototype.removeChild=function(t){this.type.removeChild(this,t)},e.prototype.unbox=function(t){return t?(this.assertAlive({subpath:t.subpath||t.subpathUponDeath}),this._autoUnbox?t.value:t):t},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"",e=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+t+e+(this.isAlive?"":" [dead]")},e.prototype.finalizeCreation=function(){var t=this;this.baseFinalizeCreation(function(){var e,n;try{for(var r=u(t.getChildren()),i=r.next();!i.done;i=r.next()){var o=i.value;o.finalizeCreation()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.fireInternalHook(fr.afterCreationFinalization)})},e.prototype.detach=function(){if(!this.isAlive)throw $e("Error while detaching, node is not alive.");this.clearParent()},e.prototype.preboot=function(){var t=this;this._applyPatches=he(this.storedValue,"@APPLY_PATCHES",function(e){e.forEach(function(e){var n=Sn(e.path),r=He(t,n.slice(0,-1));r.applyPatchLocally(n[n.length-1],e)})}),this._applySnapshot=he(this.storedValue,"@APPLY_SNAPSHOT",function(e){return e!==t.snapshot?t.type.applySnapshot(t,e):void 0}),tn(this.storedValue,"$treenode",this),tn(this.storedValue,"toJSON",ze)},e.prototype.die=function(){this.isAlive&&this.state!==Ar.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach(function(t){t.aboutToDie()}),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},e.prototype.finalizeDeath=function(){this.getChildren().forEach(function(t){t.finalizeDeath()}),this.root.identifierCache.notifyDied(this);var t=this.snapshot;this._snapshotUponDeath=t,this._internalEventsClearAll(),this.baseFinalizeDeath()},e.prototype.onSnapshot=function(t){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",t)},e.prototype.emitSnapshot=function(t){this._internalEventsEmit("snapshot",t)},e.prototype.onPatch=function(t){return this._internalEventsRegister("patch",t)},e.prototype.emitPatch=function(t,e){if(this._internalEventsHasSubscribers("patch")){var n=Ye({},t,{path:e.path.substr(this.path.length)+"/"+t.path}),r=c(vn(n),2),i=r[0],o=r[1];this._internalEventsEmit("patch",i,o)}this.parent&&this.parent.emitPatch(t,e)},e.prototype.hasDisposer=function(t){return this._internalEventsHas("dispose",t)},e.prototype.addDisposer=function(t){if(!this.hasDisposer(t))return void this._internalEventsRegister("dispose",t,!0);throw $e("cannot add a disposer when it is already registered for execution")},e.prototype.removeDisposer=function(t){if(!this._internalEventsHas("dispose",t))throw $e("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",t)},e.prototype.removeMiddleware=function(t){if(this.middlewares){var e=this.middlewares.indexOf(t);e>=0&&this.middlewares.splice(e,1)}},e.prototype.addMiddleWare=function(t,e){var n=this;void 0===e&&(e=!0);var r={handler:t,includeHooks:e};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}},e.prototype.applyPatchLocally=function(t,e){this.assertWritable({subpath:t}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,t,e)},e.prototype._addSnapshotReaction=function(){var t=this;if(!this._hasSnapshotReaction){var e=lr.reaction(function(){return t.snapshot},function(e){return t.emitSnapshot(e)},_r);this.addDisposer(e),this._hasSnapshotReaction=!0}},e.prototype._internalEventsHasSubscribers=function(t){return!!this._internalEvents&&this._internalEvents.hasSubscribers(t)},e.prototype._internalEventsRegister=function(t,e,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new Ur),this._internalEvents.register(t,e,n)},e.prototype._internalEventsHas=function(t,e){return!!this._internalEvents&&this._internalEvents.has(t,e)},e.prototype._internalEventsUnregister=function(t,e){this._internalEvents&&this._internalEvents.unregister(t,e)},e.prototype._internalEventsEmit=function(t){for(var e,n=[],r=1;r0},enumerable:!0,configurable:!0}),t}(),Vr=1,Nr=function(){function t(t,e){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],e.$mst_middleware&&this.middlewares.push(e.$mst_middleware);for(var n=t;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!0,configurable:!0}),t.prototype.getNextMiddleware=function(){var t=this.middlewares[this.arrayIndex];if(!t)return void 0;var e=t[this.inArrayIndex++];return e?e:(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())},t}(),xr=0,Dr=function(){function t(){this.cacheId=xr++,this.cache=lr.observable.map(),this.lastCacheModificationPerId=lr.observable.map()}return t.prototype.updateLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t);this.lastCacheModificationPerId.set(t,void 0===e?1:e+1)},t.prototype.getLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t)||0;return this.cacheId+"-"+e},t.prototype.addNodeToCache=function(t,e){if(void 0===e&&(e=!0),t.identifierAttribute){var n=t.identifier;this.cache.has(n)||this.cache.set(n,lr.observable.array([],Mr));var r=this.cache.get(n);if(-1!==r.indexOf(t))throw $e("Already registered");r.push(t),e&&this.updateLastCacheModificationPerId(n)}},t.prototype.mergeCache=function(t){var e=this;lr.values(t.identifierCache.cache).forEach(function(t){return t.forEach(function(t){e.addNodeToCache(t)})})},t.prototype.notifyDied=function(t){if(t.identifierAttribute){var e=t.identifier,n=this.cache.get(e);n&&(n.remove(t),n.length||this.cache.delete(e),this.updateLastCacheModificationPerId(t.identifier))}},t.prototype.splitCache=function(e){var n=this,r=new t,i=e.path;return lr.entries(this.cache).forEach(function(t){for(var e=c(t,2),o=e[0],a=e[1],s=!1,u=a.length-1;u>=0;u--)0===a[u].path.indexOf(i)&&(r.addNodeToCache(a[u],!1),a.splice(u,1),s=!0);s&&n.updateLastCacheModificationPerId(o)}),r},t.prototype.has=function(t,e){var n=this.cache.get(e);return n?n.some(function(e){return t.isAssignableFrom(e.type)}):!1},t.prototype.resolve=function(t,e){var n=this.cache.get(e);if(!n)return null;var r=n.filter(function(e){return t.isAssignableFrom(e.type)});switch(r.length){case 0:return null;case 1:return r[0];default:throw $e("Cannot resolve a reference to type '"+t.name+"' with id: '"+e+"' unambigously, there are multiple candidates: "+r.map(function(t){return t.path}).join(", "))}},t}();!function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CREATED=1]="CREATED",t[t.FINALIZED=2]="FINALIZED",t[t.DETACHING=3]="DETACHING",t[t.DEAD=4]="DEAD"}(Ar||(Ar={}));var kr=function(){return".."},Rr="See https://github.com/mobxjs/mobx-state-tree/issues/399 for more information. Note that the middleware event types starting with `process` now start with `flow`.",zr=Object.freeze([]),Fr=Object.freeze({}),Mr="string"==typeof lr.$mobx?{deep:!1}:{deep:!1,proxy:!1};Object.freeze(Mr);var Hr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Lr=function(){function t(){this.handlers=[]}return Object.defineProperty(t.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!0,configurable:!0}),t.prototype.register=function(t,e){var n=this;return void 0===e&&(e=!1),e?this.handlers.unshift(t):this.handlers.push(t),function(){n.unregister(t)}},t.prototype.has=function(t){return this.handlers.indexOf(t)>=0},t.prototype.unregister=function(t){var e=this.handlers.indexOf(t);e>=0&&this.handlers.splice(e,1)},t.prototype.clear=function(){this.handlers.length=0},t.prototype.emit=function(){for(var t=[],e=0;e0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return this._determineIdentifierMode(),je(this,t,e,n,r)},e.prototype._determineIdentifierMode=function(){if(this.identifierMode===Wr.UNKNOWN){var t=[];if(Tn(this._subType,t)){var e=void 0;t.forEach(function(t){if(t.identifierAttribute){if(e&&e!==t.identifierAttribute)throw $e("The objects in a map should all have the same identifier attribute, expected '"+e+"', but child of type '"+t.name+"' declared attribute '"+t.identifierAttribute+"' as identifier");e=t.identifierAttribute}}),e?(this.identifierMode=Wr.YES,this.mapIdentifierAttribute=e):this.identifierMode=Wr.NO}}},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e={});var n=t.type._subType,r={};return Object.keys(e).forEach(function(i){r[i]=n.instantiate(t,i,void 0,e[i])}),r},e.prototype.createNewInstance=function(t){return new Yr(t)},e.prototype.finalizeNewInstance=function(t,e){lr._interceptReads(e,t.unbox);var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(un()?en:tn)(e,t,i)})}),lr.intercept(e,this.willChange),lr.observe(e,this.didChange)},e.prototype.describe=function(){return"Map"},e.prototype.getChildren=function(t){return lr.values(t.storedValue)},e.prototype.getChildNode=function(t,e){var n=t.storedValue.get(""+e);if(!n)throw $e("Not a child "+e);return n},e.prototype.willChange=function(t){var e=ke(t.object),n=t.name;e.assertWritable({subpath:n});var r=e.type,i=r._subType;switch(t.type){case"update":var o=t.newValue,a=t.object.get(n);if(o===a)return null;Ce(i,o),t.newValue=i.reconcile(e.getChildNode(n),t.newValue,e,n),r.processIdentifier(n,t.newValue);break;case"add":Ce(i,t.newValue),t.newValue=i.instantiate(e,n,void 0,t.newValue),r.processIdentifier(n,t.newValue)}return t},e.prototype.processIdentifier=function(t,e){if(this.identifierMode===Wr.YES&&e instanceof Pr){var n=e.identifier;if(n!==t)throw $e("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+t+"'")}},e.prototype.getSnapshot=function(t){var e={};return t.getChildren().forEach(function(t){e[t.subpath]=t.snapshot}),e},e.prototype.processInitialSnapshot=function(t){var e={};return Object.keys(t).forEach(function(n){e[n]=t[n].getSnapshot()}),e},e.prototype.didChange=function(t){var e=ke(t.object);switch(t.type){case"update":return void e.emitPatch({op:"replace",path:wn(t.name),value:t.newValue.snapshot,oldValue:t.oldValue?t.oldValue.snapshot:void 0},e);case"add":return void e.emitPatch({op:"add",path:wn(t.name),value:t.newValue.snapshot,oldValue:void 0},e);case"delete":var n=t.oldValue.snapshot;return t.oldValue.die(),void e.emitPatch({op:"remove",path:wn(t.name),oldValue:n},e)}},e.prototype.applyPatchLocally=function(t,e,n){var r=t.storedValue;switch(n.op){case"add":case"replace":r.set(e,n.value);break;case"remove":r.delete(e)}},e.prototype.applySnapshot=function(t,e){Ce(this,e);var n=t.storedValue,r={};if(Array.from(n.keys()).forEach(function(t){r[t]=!1}),e)for(var i in e)n.set(i,e[i]),r[""+i]=!0;Object.keys(r).forEach(function(t){r[t]===!1&&n.delete(t)})},e.prototype.getChildType=function(){return this._subType},e.prototype.isValidSnapshot=function(t,e){var n=this;return Ze(t)?Te(Object.keys(t).map(function(r){return n._subType.validate(t[r],Se(e,r,n._subType))})):Ie(e,t,"Value is not a plain object")},e.prototype.getDefaultSnapshot=function(){return Fr},e.prototype.removeChild=function(t,e){t.storedValue.delete(e)},s([lr.action],e.prototype,"applySnapshot",null),e}(Cr),Br=function(t){function e(e,n,r){void 0===r&&(r=[]);var i=t.call(this,e)||this;return i._subType=n,i.flags=yr.Array,i.hookInitializers=[],i.hookInitializers=r,i}return o(e,t),e.prototype.hooks=function(t){var n=this.hookInitializers.length>0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return je(this,t,e,n,r)},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e=[]);var n=t.type._subType,r={};return e.forEach(function(e,i){var o=""+i;r[o]=n.instantiate(t,o,void 0,e)}),r},e.prototype.createNewInstance=function(t){return lr.observable.array(Le(t),Mr)},e.prototype.finalizeNewInstance=function(t,e){lr._getAdministration(e).dehancer=t.unbox;var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(un()?en:tn)(e,t,i)})}),lr.intercept(e,this.willChange),lr.observe(e,this.didChange)},e.prototype.describe=function(){return this._subType.describe()+"[]"},e.prototype.getChildren=function(t){return t.storedValue.slice()},e.prototype.getChildNode=function(t,e){var n=Number(e);if(n=0;n--)e.emitPatch({op:"remove",path:""+(t.index+n),oldValue:t.removed[n].snapshot},e);for(var n=0;n0)return n;var r=xe(t)?ke(t).snapshot:t;return this._predicate(r)?Ae():Ie(e,t,this._message(t))},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,e,n,r)},e.prototype.getSubTypes=function(){return this._subtype},e}(Tr),hi=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._types=n,i._eager=!0,r=br({eager:!0,dispatcher:void 0},r),i._dispatcher=r.dispatcher,r.eager||(i._eager=!1),i}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){var t=yr.Union;return this._types.forEach(function(e){t|=e.flags}),t},enumerable:!0,configurable:!0}),e.prototype.isAssignableFrom=function(t){return this._types.some(function(e){return e.isAssignableFrom(t)})},e.prototype.describe=function(){return"("+this._types.map(function(t){return t.describe()}).join(" | ")+")"},e.prototype.instantiate=function(t,e,n,r){var i=this.determineType(r,void 0);if(!i)throw $e("No matching type for union "+this.describe());return i.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){var i=this.determineType(e,t.type);if(!i)throw $e("No matching type for union "+this.describe());return i.reconcile(t,e,n,r)},e.prototype.determineType=function(t,e){return this._dispatcher?this._dispatcher(t):e?e.is(t)?e:this._types.filter(function(t){return t!==e}).find(function(e){return e.is(t)}):this._types.find(function(e){return e.is(t)})},e.prototype.isValidSnapshot=function(t,e){if(this._dispatcher)return this._dispatcher(t).validate(t,e);for(var n=[],r=0,i=0;i=0){var i=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(t,e,n,i)}return this._subtype.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,this.optionalValues.indexOf(e)<0&&this._subtype.is(e)?e:this.getDefaultInstanceOrSnapshot(),n,r)},e.prototype.getDefaultInstanceOrSnapshot=function(){var t="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&Ce(this,t),t},e.prototype.isValidSnapshot=function(t,e){return this.optionalValues.indexOf(t)>=0?Ae():this._subtype.validate(t,e)},e.prototype.isAssignableFrom=function(t){return this._subtype.isAssignableFrom(t)},e.prototype.getSubTypes=function(){return this._subtype},e}(Tr),li=[void 0],di=Bn(ai,void 0),yi=Bn(oi,null),vi=function(t){function e(e,n){var r=t.call(this,e)||this;return r._definition=n,r}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|yr.Late},enumerable:!0,configurable:!0}),e.prototype.getSubType=function(t){if(!this._subType){var e=void 0;try{e=this._definition()}catch(n){if(!(n instanceof ReferenceError))throw n;e=void 0}if(t&&void 0===e)throw $e("Late type seems to be used too early, the definition (still) returns undefined");if(e){if(un()&&!K(e))throw $e("Failed to determine subtype, make sure types.late returns a type definition.");this._subType=e}}return this._subType},e.prototype.instantiate=function(t,e,n,r){return this.getSubType(!0).instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this.getSubType(!0).reconcile(t,e,n,r)},e.prototype.describe=function(){var t=this.getSubType(!1);return t?t.name:""},e.prototype.isValidSnapshot=function(t,e){var n=this.getSubType(!1);return n?n.validate(t,e):Ae()},e.prototype.isAssignableFrom=function(t){var e=this.getSubType(!1);return e?e.isAssignableFrom(t):!1},e.prototype.getSubTypes=function(){var t=this.getSubType(!1);return t?t:Ir},e}(Tr),bi=function(t){function e(e){var n=t.call(this,e?"frozen("+e.name+")":"frozen")||this;return n.subType=e,n.flags=yr.Frozen,n}return o(e,t),e.prototype.describe=function(){return""},e.prototype.instantiate=function(t,e,n,r){return Ve(this,t,e,n,Qe(r))},e.prototype.isValidSnapshot=function(t,e){return Xe(t)?this.subType?this.subType.validate(t,e):Ae():Ie(e,t,"Value is not serializable and cannot be frozen")},e}(Or),gi=new bi,mi=function(){function t(t,e){if(this.targetType=e,cr(t))this.identifier=t;else{if(!xe(t))throw $e("Can only store references to tree nodes or identifiers, got: '"+t+"'");var n=ke(t);if(!n.identifierAttribute)throw $e("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null===r||void 0===r)throw $e("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return t.prototype.updateResolvedReference=function(t){var e=ur(this.identifier),n=t.root,r=n.identifierCache.getLastCacheModificationPerId(e);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var i=this.targetType,o=n.identifierCache.resolve(i,e);if(!o)throw new wi("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+t.path+")");this.resolvedReference={node:o,lastCacheModification:r}}},Object.defineProperty(t.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!0,configurable:!0}),t}(),wi=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return o(e,t),e}(Error),_i=function(t){function e(e,n){var r=t.call(this,"reference("+e.name+")")||this;return r.targetType=e,r.onInvalidated=n,r.flags=yr.Reference,r}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isAssignableFrom=function(t){return this.targetType.isAssignableFrom(t)},e.prototype.isValidSnapshot=function(t,e){return cr(t)?Ae():Ie(e,t,"Value is not a valid identifier, which is a string or a number")},e.prototype.fireInvalidated=function(t,e,n,r){var i=e.parent;if(i&&i.isAlive){var o=i.storedValue;o&&this.onInvalidated({cause:t,parent:o,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(t){y(e.root.storedValue,{op:"replace",value:t,path:e.path})},removeRef:function(){Fn(i.type)?this.replaceRef(void 0):y(e.root.storedValue,{op:"remove",path:e.path})}})}},e.prototype.addTargetNodeWatcher=function(t,e){var n=this,r=this.getValue(t);if(!r)return void 0;var i=ke(r),o=function(r,o){var a=rr(o);a&&n.fireInvalidated(a,t,e,i)},a=i.registerHook(fr.beforeDetach,o),s=i.registerHook(fr.beforeDestroy,o);return function(){a(),s()}},e.prototype.watchTargetNodeForInvalidations=function(t,e,n){var r=this;if(this.onInvalidated){var i;t.registerHook(fr.beforeDestroy,function(){i&&i()});var o=function(o){i&&i();var a=t.parent,s=a&&a.storedValue;if(a&&a.isAlive&&s){var u=void 0;u=n?!!n.get(e,s):t.root.identifierCache.has(r.targetType,ur(e)),u?i=r.addTargetNodeWatcher(t,e):o||r.fireInvalidated("invalidSnapshotReference",t,e,null)}};t.state===Ar.FINALIZED?o(!0):(t.isRoot||t.root.registerHook(fr.afterCreationFinalization,function(){t.parent&&t.parent.createObservableInstanceIfNeeded()}),t.registerHook(fr.afterAttach,function(){o(!1)}))}},e}(Or),Pi=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=t.storedValue;return e.resolvedValue},e.prototype.getSnapshot=function(t){var e=t.storedValue;return e.identifier},e.prototype.instantiate=function(t,e,n,r){var i=xe(r)?N(r):r,o=new mi(r,this.targetType),a=Ve(this,t,e,n,o);return o.node=a,this.watchTargetNodeForInvalidations(a,i,void 0),a},e.prototype.reconcile=function(t,e,n,r){if(!t.isDetaching&&t.type===this){var i=xe(e),o=t.storedValue;if(!i&&o.identifier===e||i&&o.resolvedValue===e)return t.setParent(n,r),t}var a=this.instantiate(n,r,void 0,e);return t.die(),a},e}(_i),Si=function(t){function e(e,n,r){var i=t.call(this,e,r)||this;return i.options=n,i}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=this.options.get(t.storedValue,t.parent?t.parent.storedValue:null);return e},e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.instantiate=function(t,e,n,r){var i=xe(r)?this.options.set(r,t?t.storedValue:null):r,o=Ve(this,t,e,n,i);return this.watchTargetNodeForInvalidations(o,i,this.options),o},e.prototype.reconcile=function(t,e,n,r){var i=xe(e)?this.options.set(e,t?t.storedValue:null):e;if(!t.isDetaching&&t.type===this&&t.storedValue===i)return t.setParent(n,r),t;var o=this.instantiate(n,r,void 0,i);return t.die(),o},e}(_i),Ai=function(t){function e(e,n){var r=t.call(this,e)||this;return r.validType=n,r.flags=yr.Identifier,r}return o(e,t),e.prototype.instantiate=function(t,e,n,r){if(!(t&&t.type instanceof Xr))throw $e("Identifier types can only be instantiated as direct child of a model type");return Ve(this,t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){if(t.storedValue!==e)throw $e("Tried to change identifier from '"+t.storedValue+"' to '"+e+"'. Changing identifiers is not allowed.");return t.setParent(n,r),t},e.prototype.isValidSnapshot=function(t,e){return typeof t!==this.validType?Ie(e,t,"Value is not a valid "+this.describe()+", expected a "+this.validType):Ae()},e}(Or),Ii=function(t){function e(){var e=t.call(this,"identifier","string")||this;return e.flags=yr.Identifier,e}return o(e,t),e.prototype.describe=function(){return"identifier"},e}(Ai),Ti=function(t){function e(){return t.call(this,"identifierNumber","number")||this}return o(e,t),e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.describe=function(){return"identifierNumber"},e}(Ai),Ci=new Ii,Oi=new Ti,Ei=function(t){function e(e){var n=t.call(this,e.name)||this;return n.options=e,n.flags=yr.Custom,n}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isValidSnapshot=function(t,e){if(this.options.isTargetType(t))return Ae();var n=this.options.getValidationMessage(t);return n?Ie(e,t,"Invalid value for type '"+this.name+"': "+n):Ae()},e.prototype.getSnapshot=function(t){return this.options.toSnapshot(t.storedValue)},e.prototype.instantiate=function(t,e,n,r){var i=this.options.isTargetType(r)?r:this.options.fromSnapshot(r);return Ve(this,t,e,n,i)},e.prototype.reconcile=function(t,e,n,r){var i=!this.options.isTargetType(e);if(!t.isDetaching){var o=t.type===this&&(i?e===t.snapshot:e===t.storedValue);if(o)return t.setParent(n,r),t}var a=i?this.options.fromSnapshot(e):e,s=this.instantiate(n,r,void 0,a);return t.die(),s},e}(Or),ji={enumeration:Gn,model:Rn,compose:zn,custom:hr,reference:ir,safeReference:ar,union:Jn,optional:Bn,literal:Ln,maybe:qn,maybeNull:Qn,refinement:$n,string:ei,"boolean":ii,number:ni,integer:ri,Date:ui,map:Cn,array:En,frozen:er,identifier:Ci,identifierNumber:Oi,late:Xn,undefined:ai,"null":oi,snapshotProcessor:In};e.addDisposer=L,e.addMiddleware=fe,e.applyAction=re,e.applyPatch=y,e.applySnapshot=w,e.cast=J,e.castFlowReturn=dn,e.castToReferenceSnapshot=Z,e.castToSnapshot=Y,e.clone=z,e.createActionTrackingMiddleware=Q,e.createActionTrackingMiddleware2=X,e.decorate=le,e.destroy=M,e.detach=F,e.escapeJsonPath=wn,e.flow=ln,e.getChildType=f,e.getEnv=U,e.getIdentifier=N,e.getLivelinessChecking=r,e.getMembers=G,e.getNodeId=B,e.getParent=S,e.getParentOfType=I,e.getPath=C,e.getPathParts=O,e.getPropertyMembers=W,e.getRelativePath=R,e.getRoot=T,e.getRunningActionContext=ye,e.getSnapshot=_,e.getType=h,e.hasParent=P,e.hasParentOfType=A,e.isActionContextChildOf=be,e.isActionContextThisOrChildOf=ge,e.isAlive=H,e.isArrayType=xn,e.isFrozenType=nr,e.isIdentifierType=sr,e.isLateType=tr,e.isLiteralType=Un,e.isMapType=On,e.isModelType=Fn,e.isOptionalType=Kn,e.isPrimitiveType=Hn,e.isProtected=m,e.isReferenceType=or,e.isRefinementType=Wn,e.isRoot=E,e.isStateTreeNode=xe,e.isType=K,e.isUnionType=Yn,e.isValidReference=D,e.joinJsonPath=Pn,e.onAction=ae,e.onPatch=l,e.onSnapshot=d,e.process=Ue,e.protect=b,e.recordActions=oe,e.recordPatches=v,e.resolveIdentifier=V,e.resolvePath=j,e.setLivelinessChecking=n,e.setLivelynessChecking=i,e.splitJsonPath=Sn,e.tryReference=x,e.tryResolve=k,e.typecheck=Oe,e.types=ji,e.unescapeJsonPath=_n,e.unprotect=g,e.walk=$}); +amis.define("node_modules/mobx-state-tree/dist/mobx-state-tree",function(t,e){"use strict";function n(t){yr=t}function r(){return yr}function i(t){n(t)}function o(t,e){function n(){this.constructor=t}br(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);io?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(3>o?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var t=[],e=0;e"}}function we(t){return"function"==typeof t?"":xe(t)?"<"+t+">":"`"+me(t)+"`"}function _e(t){return t.length<280?t:t.substring(0,272)+"......"+t.substring(t.length-8)}function Pe(t){var e=t.value,n=t.context[t.context.length-1].type,r=t.context.map(function(t){var e=t.path;return e}).filter(function(t){return t.length>0}).join("/"),i=r.length>0?'at path "/'+r+'" ':"",o=xe(e)?"value of type "+ke(e).type.name+":":Ke(e)?"value":"snapshot",a=n&&xe(e)&&n.is(ke(e).snapshot);return""+i+o+" "+we(e)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(t.message?" ("+t.message+")":"")+(n?Ln(n)||Ke(e)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(a?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function Se(t,e,n){return t.concat([{path:e,type:n}])}function Ae(){return Fr}function Ie(t,e,n){return[{context:t,value:e,message:n}]}function Te(t){return t.reduce(function(t,e){return t.concat(e)},[])}function Ce(t,e){sn()&&Oe(t,e)}function Oe(t,e){var n=t.validate(e,[{path:"",type:t}]);if(n.length>0)throw $e(Ee(t,e,n))}function Ee(t,e,n){return 0===n.length?void 0:"Error while converting "+_e(we(e))+" to `"+t.name+"`:\n\n "+n.map(Pe).join("\n ")}function je(t,e,n,r,i){var o=Re(i);if(o){if(o.parent)throw $e("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(e?e.path:"")+"/"+n+"', but it lives already at '"+o.path+"'");return e&&o.setParent(e,n),o}return new Sr(t,e,n,r,i)}function Ve(t,e,n,r,i){return new wr(t,e,n,r,i)}function Ne(t){return t instanceof wr||t instanceof Sr}function xe(t){return!(!t||!t.$treenode)}function De(t,e){cn(t,xe,"mobx-state-tree node",e)}function ke(t){if(!xe(t))throw $e("Value "+t+" is no MST Node");return t.$treenode}function Re(t){return t&&t.$treenode||null}function ze(){return ke(this).snapshot}function Fe(t,e){if(t.root!==e.root)throw $e("Cannot calculate relative path: objects '"+t+"' and '"+e+"' are not part of the same object tree");for(var n=An(t.path),r=An(e.path),i=0;i=n},"number greater than "+n,e),void 0!==r&&cn(t,function(t){return r>=t},"number lesser than "+r,e)}function fn(t,e,n){void 0===n&&(n=!0),cn(t,function(t){return"string"==typeof t},"string",e),n||cn(t,function(t){return""!==t},"not empty string",e)}function ln(t){"function"==typeof queueMicrotask?queueMicrotask(t):"function"==typeof setImmediate?setImmediate(t):setTimeout(t,1)}function dn(t){return vn(t.name,t)}function yn(t){return t}function vn(t,e){var n=function(){function r(t,e,r){t.$mst_middleware=n.$mst_middleware,ce(gr(gr({},s),{type:e,args:[r]}),t)}var i=ue(),o=se();if(!o)throw $e("a mst flow must always have a parent context");var a=pe(o);if(!a)throw $e("a mst flow must always have a parent action context");var s={name:t,id:i,tree:o.tree,context:o.context,parentId:o.id,allParentIds:p(o.allParentIds,[o.id]),rootId:o.rootId,parentEvent:o,parentActionEvent:a},u=arguments;return new Promise(function(t,i){function o(t){var e;try{r(function(t){e=p.next(t)},"flow_resume",t)}catch(n){return void ln(function(){r(function(){i(n)},"flow_throw",n)})}c(e)}function a(t){var e;try{r(function(t){e=p.throw(t)},"flow_resume_error",t)}catch(n){return void ln(function(){r(function(){i(n)},"flow_throw",n)})}c(e)}function c(e){if(e.done)return void ln(function(){r(function(e){t(e)},"flow_return",e.value)});if(!e.value||"function"!=typeof e.value.then)throw $e("Only promises can be yielded to `async`, got: "+e);return e.value.then(o,a)}var p,h=function(){p=e.apply(null,arguments),o(void 0)};h.$mst_middleware=n.$mst_middleware,ce(gr(gr({},s),{type:"flow_spawn",args:nn(u)}),h)})};return n}function bn(t){if(!("oldValue"in t))throw $e("Patches without `oldValue` field cannot be inversed");return[gn(t),mn(t)]}function gn(t){switch(t.op){case"add":return{op:"add",path:t.path,value:t.value};case"remove":return{op:"remove",path:t.path};case"replace":return{op:"replace",path:t.path,value:t.value}}}function mn(t){switch(t.op){case"add":return{op:"remove",path:t.path};case"remove":return{op:"add",path:t.path,value:t.oldValue};case"replace":return{op:"replace",path:t.path,value:t.oldValue}}}function wn(t){return"number"==typeof t}function _n(t){return wn(t)===!0?""+t:-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Pn(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Sn(t){if(0===t.length)return"";var e=function(t){return t.map(_n).join("/")};return"."===t[0]||".."===t[0]?e(t):"/"+e(t)}function An(t){var e=t.split("/").map(Pn),n=""===t||"."===t||".."===t||on(t,"/")||on(t,"./")||on(t,"../");if(!n)throw $e("a json path must be either rooted, empty or relative, but got '"+t+"'");return""===e[0]&&e.shift(),e}function In(t,e){for(var n,r,i=[],o=2;o",t)}function En(t){return K(t)&&(t.flags&vr.Map)>0}function jn(t){return q(t,1),new Kr(t.name+"[]",t)}function Vn(t,e,n,r,i){for(var o=!0,a=0;;a++){var s=a<=r.length-1,u=n[a],c=s?r[a]:void 0,p=""+i[a];if(Ne(c)&&(c=c.storedValue),!u&&!s)break;if(s)if(u)if(xn(u,c))n[a]=Nn(e,t,p,c,u);else{for(var h=void 0,f=a;f0}function kn(){return ke(this).toString()}function Rn(t){return Object.keys(t).reduce(function(t,e){var n,r,i;if(e in lr)throw $e("Hook '"+e+"' was defined as property. Hooks should be defined as part of the actions");var o=Object.getOwnPropertyDescriptor(t,e);if("get"in o)throw $e("Getters are not supported as properties. Please use views instead");var a=o.value;if(null===a||void 0===a)throw $e("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(Ke(a))return Object.assign({},t,(n={},n[e]=Kn(Hn(a),a),n));if(a instanceof Br)return Object.assign({},t,(r={},r[e]=Kn(a,{}),r));if(a instanceof Kr)return Object.assign({},t,(i={},i[e]=Kn(a,[]),i));if(K(a))return t;throw $e(un()&&"function"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed a function. Did you forget to invoke it, or did you intend to declare a view / action?":un()&&"object"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed an object. Try passing another model type or a types.frozen.":"Invalid type definition for property '"+e+"', cannot infer a type from a value like '"+a+"' ("+typeof a+")")},t)}function zn(){for(var t=[],e=0;e0}function Hn(t){switch(typeof t){case"string":return ni;case"number":return ri;case"boolean":return oi;case"object":if(t instanceof Date)return ci}throw $e("Cannot determine primitive type from value "+t)}function Ln(t){return K(t)&&(t.flags&(vr.String|vr.Number|vr.Integer|vr.Boolean|vr.Date))>0}function Un(t){return cn(t,Ke,"primitive",1),new pi(t)}function $n(t){return K(t)&&(t.flags&vr.Literal)>0}function Wn(){for(var t=[],e=0;e0}function Jn(t,e){var n="string"==typeof t?e:t;un()&&n.forEach(function(t,e){fn(t,e+1)});var r=Yn.apply(void 0,p(n.map(function(t){return Un(""+t)})));return"string"==typeof t&&(r.name=t),r}function Yn(t){for(var e=[],n=1;n0}function Bn(t,e){if("function"!=typeof e&&xe(e))throw $e("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");q(t,1),un()&&"function"!=typeof e&&Ce(t,e)}function Kn(t,e,n){return Bn(t,e),new li(t,e,n?n:di)}function qn(t){return K(t)&&(t.flags&vr.Optional)>0}function Qn(t){return q(t,1),Yn(t,yi)}function Xn(t){return q(t,1),Yn(t,vi)}function tr(t,e){var n="string"==typeof t?t:"late("+t.toString()+")",r="string"==typeof t?e:t;if(un()&&("function"!=typeof r||0!==r.length))throw $e("Invalid late type, expected a function with zero arguments that returns a type, got: "+r);return new bi(n,r)}function er(t){return K(t)&&(t.flags&vr.Late)>0}function nr(t){return 0===arguments.length?mi:K(t)?new gi(t):Kn(mi,t)}function rr(t){return K(t)&&(t.flags&vr.Frozen)>0}function ir(t){switch(t){case lr.beforeDestroy:return"destroy";case lr.beforeDetach:return"detach";default:return void 0}}function or(t,e){if(q(t,1),un()&&2===arguments.length&&"string"==typeof arguments[1])throw $e("References with base path are no longer supported. Please remove the base path.");var n=e?e:void 0,r=e?e.onInvalidated:void 0;if(n&&(n.get||n.set)){if(un()&&(!n.get||!n.set))throw $e("reference options must either contain both a 'get' and a 'set' method or none of them");return new Ai(t,{get:n.get,set:n.set},r)}return new Si(t,r)}function ar(t){return(t.flags&vr.Reference)>0}function sr(t,e){var n=or(t,gr(gr({},e),{onInvalidated:function(t){t.removeRef()}}));return e&&e.acceptsUndefined===!1?n:Qn(n)}function ur(t){return K(t)&&(t.flags&vr.Identifier)>0}function cr(t){return""+t}function pr(t){return"string"==typeof t||"number"==typeof t}function hr(t,e){cn(t,pr,"string or number (identifier)",e)}function fr(t){return new ji(t)}Object.defineProperty(e,"__esModule",{value:!0});var lr,dr=t("node_modules/mobx/lib/index"),yr="warn";!function(t){t.afterCreate="afterCreate",t.afterAttach="afterAttach",t.afterCreationFinalization="afterCreationFinalization",t.beforeDetach="beforeDetach",t.beforeDestroy="beforeDestroy"}(lr||(lr={}));var vr,br=function(t,e){return(br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},gr=function(){return gr=Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gr.apply(this,arguments)},mr=function(){function t(t,e,n,r){this.type=t,this.environment=r,this._state=Ir.INITIALIZING,this.environment=r,this.baseSetParent(e,n)}return Object.defineProperty(t.prototype,"subpath",{get:function(){return this._subpath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(t){var e=this.isAlive;this._state=t;var n=this.isAlive;this.aliveAtom&&e!==n&&this.aliveAtom.reportChanged()},enumerable:!0,configurable:!0}),t.prototype.fireInternalHook=function(t){this._hookSubscribers&&this._hookSubscribers.emit(t,this,t)},t.prototype.registerHook=function(t,e){return this._hookSubscribers||(this._hookSubscribers=new $r),this._hookSubscribers.register(t,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.baseSetParent=function(t,e){this._parent=t,this._subpath=e,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()},Object.defineProperty(t.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!0,configurable:!0}),t.prototype.getEscapedPath=function(t){return t&&(this.pathAtom||(this.pathAtom=dr.createAtom("path")),this.pathAtom.reportObserved()),this.parent?(void 0===this._escapedSubpath&&(this._escapedSubpath=this._subpath?_n(this._subpath):""),this.parent.getEscapedPath(t)+"/"+this._escapedSubpath):""},Object.defineProperty(t.prototype,"isRoot",{get:function(){return null===this.parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAlive",{get:function(){return this.state!==Ir.DEAD},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDetaching",{get:function(){return this.state===Ir.DETACHING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=dr.createAtom("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!0,configurable:!0}),t.prototype.baseFinalizeCreation=function(t){if(un()&&!this.isAlive)throw fail("assertion failed: cannot finalize the creation of a node that is already dead");if(this.state===Ir.CREATED){if(this.parent){if(this.parent.state!==Ir.FINALIZED)return;this.fireHook(lr.afterAttach)}this.state=Ir.FINALIZED,t&&t()}},t.prototype.baseFinalizeDeath=function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=Ir.DEAD},t.prototype.baseAboutToDie=function(){this.fireHook(lr.beforeDestroy)},t}(),wr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;try{a.storedValue=e.createNewInstance(o)}catch(s){throw a.state=Ir.DEAD,s}return a.state=Ir.CREATED,a.finalizeCreation(),a}return o(e,t),Object.defineProperty(e.prototype,"root",{get:function(){if(!this.parent)throw $e("This scalar node is not part of a tree");return this.parent.root},enumerable:!0,configurable:!0}),e.prototype.setParent=function(t,e){var n=this.parent!==t,r=this.subpath!==e;if(n||r){if(un()){if(!e)throw $e("assertion failed: subpath expected");if(!t)throw $e("assertion failed: parent expected");if(n)throw $e("assertion failed: scalar nodes cannot change their parent")}this.environment=void 0,this.baseSetParent(this.parent,e)}},Object.defineProperty(e.prototype,"snapshot",{get:function(){return qe(this.getSnapshot())},enumerable:!0,configurable:!0}),e.prototype.getSnapshot=function(){return this.type.getSnapshot(this)},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"";return this.type.name+"@"+t+(this.isAlive?"":" [dead]")},e.prototype.die=function(){this.isAlive&&this.state!==Ir.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},e.prototype.aboutToDie=function(){this.baseAboutToDie()},e.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},e.prototype.fireHook=function(t){this.fireInternalHook(t)},s([dr.action],e.prototype,"die",null),e}(mr),_r=1,Pr={onError:function(t){throw t}},Sr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;if(a.nodeId=++_r,a.isProtectionEnabled=!0,a._autoUnbox=!0,a._isRunningAction=!1,a._hasSnapshotReaction=!1,a._observableInstanceState=0,a._cachedInitialSnapshotCreated=!1,a.unbox=a.unbox.bind(a),a._initialSnapshot=qe(o),a.identifierAttribute=e.identifierAttribute,n||(a.identifierCache=new kr),a._childNodes=e.initializeChildNodes(a,a._initialSnapshot),a.identifier=null,a.unnormalizedIdentifier=null,a.identifierAttribute&&a._initialSnapshot){var s=a._initialSnapshot[a.identifierAttribute]; +if(void 0===s){var u=a._childNodes[a.identifierAttribute];u&&(s=u.value)}if("string"!=typeof s&&"number"!=typeof s)throw $e("Instance identifier '"+a.identifierAttribute+"' for type '"+a.type.name+"' must be a string or a number");a.identifier=cr(s),a.unnormalizedIdentifier=s}return n?n.root.identifierCache.addNodeToCache(a):a.identifierCache.addNodeToCache(a),a}return o(e,t),e.prototype.applyPatches=function(t){this.createObservableInstanceIfNeeded(),this._applyPatches(t)},e.prototype.applySnapshot=function(t){this.createObservableInstanceIfNeeded(),this._applySnapshot(t)},e.prototype.createObservableInstanceIfNeeded=function(){0===this._observableInstanceState&&this.createObservableInstance()},e.prototype.createObservableInstance=function(){var t,e;if(un()&&this.state!==Ir.INITIALIZING)throw $e("assertion failed: the creation of the observable instance must be done on the initializing phase");this._observableInstanceState=1;for(var n=[],r=this.parent;r&&0===r._observableInstanceState;)n.unshift(r),r=r.parent;try{for(var i=u(n),o=i.next();!o.done;o=i.next()){var a=o.value;a.createObservableInstanceIfNeeded()}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}var c=this.type;try{this.storedValue=c.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,c.finalizeNewInstance(this,this.storedValue)}catch(p){throw this.state=Ir.DEAD,p}finally{this._isRunningAction=!1}this._observableInstanceState=2,rn(this,"snapshot"),this.isRoot&&this._addSnapshotReaction(),this._childNodes=Mr,this.state=Ir.CREATED,this.fireHook(lr.afterCreate),this.finalizeCreation()},Object.defineProperty(e.prototype,"root",{get:function(){var t=this.parent;return t?t.root:this},enumerable:!0,configurable:!0}),e.prototype.clearParent=function(){if(this.parent){this.fireHook(lr.beforeDetach);var t=this.state;this.state=Ir.DETACHING;var e=this.root,n=e.environment,r=e.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=r}finally{this.state=t}}},e.prototype.setParent=function(t,e){var n=t!==this.parent,r=e!==this.subpath;if(n||r){if(un()){if(!e)throw $e("assertion failed: subpath expected");if(!t)throw $e("assertion failed: new parent expected");if(this.parent&&n)throw $e("A node cannot exists twice in the state tree. Failed to add "+this+" to path '"+t.path+"/"+e+"'.");if(!this.parent&&t.root===this)throw $e("A state tree is not allowed to contain itself. Cannot assign "+this+" to path '"+t.path+"/"+e+"'");if(!this.parent&&this.environment&&this.environment!==t.root.environment)throw $e("A state tree cannot be made part of another state tree as long as their environments are different.")}n?(this.environment=void 0,t.root.identifierCache.mergeCache(this),this.baseSetParent(t,e),this.fireHook(lr.afterAttach)):r&&this.baseSetParent(this.parent,e)}},e.prototype.fireHook=function(t){var e=this;this.fireInternalHook(t);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[t];"function"==typeof n&&(dr._allowStateChangesInsideComputed?dr._allowStateChangesInsideComputed(function(){n.apply(e.storedValue)}):n.apply(this.storedValue))},Object.defineProperty(e.prototype,"snapshot",{get:function(){return qe(this.getSnapshot())},enumerable:!0,configurable:!0}),e.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},e.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},e.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var t=this.type,e=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=t.processInitialSnapshot(e,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},e.prototype.isRunningAction=function(){return this._isRunningAction?!0:this.isRoot?!1:this.parent.isRunningAction()},e.prototype.assertAlive=function(t){var e=r();if(!this.isAlive&&"ignore"!==e){var n=this._getAssertAliveError(t);switch(e){case"error":throw $e(n);case"warn":an(n)}}},e.prototype._getAssertAliveError=function(t){var e=this.getEscapedPath(!1)||this.pathUponDeath||"",n=t.subpath&&_n(t.subpath)||"",r=t.actionContext||se();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var i="";if(r&&null!=r.name){var o=r&&r.context&&C(r.context)||e;i=o+"."+r.name+"()"}return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+e+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},e.prototype.getChildNode=function(t){this.assertAlive({subpath:t}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,t):this._childNodes[t]}finally{this._autoUnbox=!0}},e.prototype.getChildren=function(){this.assertAlive(Mr),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):Le(this._childNodes)}finally{this._autoUnbox=!0}},e.prototype.getChildType=function(t){return this.type.getChildType(t)},Object.defineProperty(e.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!0,configurable:!0}),e.prototype.assertWritable=function(t){if(this.assertAlive(t),!this.isRunningAction()&&this.isProtected)throw $e("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},e.prototype.removeChild=function(t){this.type.removeChild(this,t)},e.prototype.unbox=function(t){return t?(this.assertAlive({subpath:t.subpath||t.subpathUponDeath}),this._autoUnbox?t.value:t):t},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"",e=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+t+e+(this.isAlive?"":" [dead]")},e.prototype.finalizeCreation=function(){var t=this;this.baseFinalizeCreation(function(){var e,n;try{for(var r=u(t.getChildren()),i=r.next();!i.done;i=r.next()){var o=i.value;o.finalizeCreation()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.fireInternalHook(lr.afterCreationFinalization)})},e.prototype.detach=function(){if(!this.isAlive)throw $e("Error while detaching, node is not alive.");this.clearParent()},e.prototype.preboot=function(){var t=this;this._applyPatches=he(this.storedValue,"@APPLY_PATCHES",function(e){e.forEach(function(e){var n=An(e.path),r=He(t,n.slice(0,-1));r.applyPatchLocally(n[n.length-1],e)})}),this._applySnapshot=he(this.storedValue,"@APPLY_SNAPSHOT",function(e){return e!==t.snapshot?t.type.applySnapshot(t,e):void 0}),tn(this.storedValue,"$treenode",this),tn(this.storedValue,"toJSON",ze)},e.prototype.die=function(){this.isAlive&&this.state!==Ir.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach(function(t){t.aboutToDie()}),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},e.prototype.finalizeDeath=function(){this.getChildren().forEach(function(t){t.finalizeDeath()}),this.root.identifierCache.notifyDied(this);var t=this.snapshot;this._snapshotUponDeath=t,this._internalEventsClearAll(),this.baseFinalizeDeath()},e.prototype.onSnapshot=function(t){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",t)},e.prototype.emitSnapshot=function(t){this._internalEventsEmit("snapshot",t)},e.prototype.onPatch=function(t){return this._internalEventsRegister("patch",t)},e.prototype.emitPatch=function(t,e){if(this._internalEventsHasSubscribers("patch")){var n=Ye({},t,{path:e.path.substr(this.path.length)+"/"+t.path}),r=c(bn(n),2),i=r[0],o=r[1];this._internalEventsEmit("patch",i,o)}this.parent&&this.parent.emitPatch(t,e)},e.prototype.hasDisposer=function(t){return this._internalEventsHas("dispose",t)},e.prototype.addDisposer=function(t){if(!this.hasDisposer(t))return void this._internalEventsRegister("dispose",t,!0);throw $e("cannot add a disposer when it is already registered for execution")},e.prototype.removeDisposer=function(t){if(!this._internalEventsHas("dispose",t))throw $e("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",t)},e.prototype.removeMiddleware=function(t){if(this.middlewares){var e=this.middlewares.indexOf(t);e>=0&&this.middlewares.splice(e,1)}},e.prototype.addMiddleWare=function(t,e){var n=this;void 0===e&&(e=!0);var r={handler:t,includeHooks:e};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}},e.prototype.applyPatchLocally=function(t,e){this.assertWritable({subpath:t}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,t,e)},e.prototype._addSnapshotReaction=function(){var t=this;if(!this._hasSnapshotReaction){var e=dr.reaction(function(){return t.snapshot},function(e){return t.emitSnapshot(e)},Pr);this.addDisposer(e),this._hasSnapshotReaction=!0}},e.prototype._internalEventsHasSubscribers=function(t){return!!this._internalEvents&&this._internalEvents.hasSubscribers(t)},e.prototype._internalEventsRegister=function(t,e,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new $r),this._internalEvents.register(t,e,n)},e.prototype._internalEventsHas=function(t,e){return!!this._internalEvents&&this._internalEvents.has(t,e)},e.prototype._internalEventsUnregister=function(t,e){this._internalEvents&&this._internalEvents.unregister(t,e)},e.prototype._internalEventsEmit=function(t){for(var e,n=[],r=1;r0},enumerable:!0,configurable:!0}),t}(),Nr=1,xr=function(){function t(t,e){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],e.$mst_middleware&&this.middlewares.push(e.$mst_middleware);for(var n=t;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!0,configurable:!0}),t.prototype.getNextMiddleware=function(){var t=this.middlewares[this.arrayIndex];if(!t)return void 0;var e=t[this.inArrayIndex++];return e?e:(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())},t}(),Dr=0,kr=function(){function t(){this.cacheId=Dr++,this.cache=dr.observable.map(),this.lastCacheModificationPerId=dr.observable.map()}return t.prototype.updateLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t);this.lastCacheModificationPerId.set(t,void 0===e?1:e+1)},t.prototype.getLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t)||0;return this.cacheId+"-"+e},t.prototype.addNodeToCache=function(t,e){if(void 0===e&&(e=!0),t.identifierAttribute){var n=t.identifier;this.cache.has(n)||this.cache.set(n,dr.observable.array([],Hr));var r=this.cache.get(n);if(-1!==r.indexOf(t))throw $e("Already registered");r.push(t),e&&this.updateLastCacheModificationPerId(n)}},t.prototype.mergeCache=function(t){var e=this;dr.values(t.identifierCache.cache).forEach(function(t){return t.forEach(function(t){e.addNodeToCache(t)})})},t.prototype.notifyDied=function(t){if(t.identifierAttribute){var e=t.identifier,n=this.cache.get(e);n&&(n.remove(t),n.length||this.cache.delete(e),this.updateLastCacheModificationPerId(t.identifier))}},t.prototype.splitCache=function(e){var n=this,r=new t,i=e.path;return dr.entries(this.cache).forEach(function(t){for(var e=c(t,2),o=e[0],a=e[1],s=!1,u=a.length-1;u>=0;u--)0===a[u].path.indexOf(i)&&(r.addNodeToCache(a[u],!1),a.splice(u,1),s=!0);s&&n.updateLastCacheModificationPerId(o)}),r},t.prototype.has=function(t,e){var n=this.cache.get(e);return n?n.some(function(e){return t.isAssignableFrom(e.type)}):!1},t.prototype.resolve=function(t,e){var n=this.cache.get(e);if(!n)return null;var r=n.filter(function(e){return t.isAssignableFrom(e.type)});switch(r.length){case 0:return null;case 1:return r[0];default:throw $e("Cannot resolve a reference to type '"+t.name+"' with id: '"+e+"' unambigously, there are multiple candidates: "+r.map(function(t){return t.path}).join(", "))}},t}();!function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CREATED=1]="CREATED",t[t.FINALIZED=2]="FINALIZED",t[t.DETACHING=3]="DETACHING",t[t.DEAD=4]="DEAD"}(Ir||(Ir={}));var Rr=function(){return".."},zr="See https://github.com/mobxjs/mobx-state-tree/issues/399 for more information. Note that the middleware event types starting with `process` now start with `flow`.",Fr=Object.freeze([]),Mr=Object.freeze({}),Hr="string"==typeof dr.$mobx?{deep:!1}:{deep:!1,proxy:!1};Object.freeze(Hr);var Lr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Ur=function(){function t(){this.handlers=[]}return Object.defineProperty(t.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!0,configurable:!0}),t.prototype.register=function(t,e){var n=this;return void 0===e&&(e=!1),e?this.handlers.unshift(t):this.handlers.push(t),function(){n.unregister(t)}},t.prototype.has=function(t){return this.handlers.indexOf(t)>=0},t.prototype.unregister=function(t){var e=this.handlers.indexOf(t);e>=0&&this.handlers.splice(e,1)},t.prototype.clear=function(){this.handlers.length=0},t.prototype.emit=function(){for(var t=[],e=0;e0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return this._determineIdentifierMode(),je(this,t,e,n,r)},e.prototype._determineIdentifierMode=function(){if(this.identifierMode===Gr.UNKNOWN){var t=[];if(Cn(this._subType,t)){var e=void 0;t.forEach(function(t){if(t.identifierAttribute){if(e&&e!==t.identifierAttribute)throw $e("The objects in a map should all have the same identifier attribute, expected '"+e+"', but child of type '"+t.name+"' declared attribute '"+t.identifierAttribute+"' as identifier");e=t.identifierAttribute}}),e?(this.identifierMode=Gr.YES,this.mapIdentifierAttribute=e):this.identifierMode=Gr.NO}}},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e={});var n=t.type._subType,r={};return Object.keys(e).forEach(function(i){r[i]=n.instantiate(t,i,void 0,e[i])}),r},e.prototype.createNewInstance=function(t){return new Zr(t)},e.prototype.finalizeNewInstance=function(t,e){dr._interceptReads(e,t.unbox);var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(un()?en:tn)(e,t,i)})}),dr.intercept(e,this.willChange),dr.observe(e,this.didChange)},e.prototype.describe=function(){return"Map"},e.prototype.getChildren=function(t){return dr.values(t.storedValue)},e.prototype.getChildNode=function(t,e){var n=t.storedValue.get(""+e);if(!n)throw $e("Not a child "+e);return n},e.prototype.willChange=function(t){var e=ke(t.object),n=t.name;e.assertWritable({subpath:n});var r=e.type,i=r._subType;switch(t.type){case"update":var o=t.newValue,a=t.object.get(n);if(o===a)return null;Ce(i,o),t.newValue=i.reconcile(e.getChildNode(n),t.newValue,e,n),r.processIdentifier(n,t.newValue);break;case"add":Ce(i,t.newValue),t.newValue=i.instantiate(e,n,void 0,t.newValue),r.processIdentifier(n,t.newValue)}return t},e.prototype.processIdentifier=function(t,e){if(this.identifierMode===Gr.YES&&e instanceof Sr){var n=e.identifier;if(n!==t)throw $e("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+t+"'")}},e.prototype.getSnapshot=function(t){var e={};return t.getChildren().forEach(function(t){e[t.subpath]=t.snapshot}),e},e.prototype.processInitialSnapshot=function(t){var e={};return Object.keys(t).forEach(function(n){e[n]=t[n].getSnapshot()}),e},e.prototype.didChange=function(t){var e=ke(t.object);switch(t.type){case"update":return void e.emitPatch({op:"replace",path:_n(t.name),value:t.newValue.snapshot,oldValue:t.oldValue?t.oldValue.snapshot:void 0},e);case"add":return void e.emitPatch({op:"add",path:_n(t.name),value:t.newValue.snapshot,oldValue:void 0},e);case"delete":var n=t.oldValue.snapshot;return t.oldValue.die(),void e.emitPatch({op:"remove",path:_n(t.name),oldValue:n},e)}},e.prototype.applyPatchLocally=function(t,e,n){var r=t.storedValue;switch(n.op){case"add":case"replace":r.set(e,n.value);break;case"remove":r.delete(e)}},e.prototype.applySnapshot=function(t,e){Ce(this,e);var n=t.storedValue,r={};if(Array.from(n.keys()).forEach(function(t){r[t]=!1}),e)for(var i in e)n.set(i,e[i]),r[""+i]=!0;Object.keys(r).forEach(function(t){r[t]===!1&&n.delete(t)})},e.prototype.getChildType=function(){return this._subType},e.prototype.isValidSnapshot=function(t,e){var n=this;return Ze(t)?Te(Object.keys(t).map(function(r){return n._subType.validate(t[r],Se(e,r,n._subType))})):Ie(e,t,"Value is not a plain object")},e.prototype.getDefaultSnapshot=function(){return Mr},e.prototype.removeChild=function(t,e){t.storedValue.delete(e)},s([dr.action],e.prototype,"applySnapshot",null),e}(Or),Kr=function(t){function e(e,n,r){void 0===r&&(r=[]);var i=t.call(this,e)||this;return i._subType=n,i.flags=vr.Array,i.hookInitializers=[],i.hookInitializers=r,i}return o(e,t),e.prototype.hooks=function(t){var n=this.hookInitializers.length>0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return je(this,t,e,n,r)},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e=[]);var n=t.type._subType,r={};return e.forEach(function(e,i){var o=""+i;r[o]=n.instantiate(t,o,void 0,e)}),r},e.prototype.createNewInstance=function(t){return dr.observable.array(Le(t),Hr)},e.prototype.finalizeNewInstance=function(t,e){dr._getAdministration(e).dehancer=t.unbox;var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(un()?en:tn)(e,t,i)})}),dr.intercept(e,this.willChange),dr.observe(e,this.didChange)},e.prototype.describe=function(){return this._subType.describe()+"[]"},e.prototype.getChildren=function(t){return t.storedValue.slice()},e.prototype.getChildNode=function(t,e){var n=Number(e);if(n=0;n--)e.emitPatch({op:"remove",path:""+(t.index+n),oldValue:t.removed[n].snapshot},e);for(var n=0;n0)return n;var r=xe(t)?ke(t).snapshot:t;return this._predicate(r)?Ae():Ie(e,t,this._message(t))},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,e,n,r)},e.prototype.getSubTypes=function(){return this._subtype},e}(Cr),fi=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._types=n,i._eager=!0,r=gr({eager:!0,dispatcher:void 0},r),i._dispatcher=r.dispatcher,r.eager||(i._eager=!1),i}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){var t=vr.Union;return this._types.forEach(function(e){t|=e.flags}),t},enumerable:!0,configurable:!0}),e.prototype.isAssignableFrom=function(t){return this._types.some(function(e){return e.isAssignableFrom(t)})},e.prototype.describe=function(){return"("+this._types.map(function(t){return t.describe()}).join(" | ")+")"},e.prototype.instantiate=function(t,e,n,r){var i=this.determineType(r,void 0);if(!i)throw $e("No matching type for union "+this.describe());return i.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){var i=this.determineType(e,t.type);if(!i)throw $e("No matching type for union "+this.describe());return i.reconcile(t,e,n,r)},e.prototype.determineType=function(t,e){return this._dispatcher?this._dispatcher(t):e?e.is(t)?e:this._types.filter(function(t){return t!==e}).find(function(e){return e.is(t)}):this._types.find(function(e){return e.is(t)})},e.prototype.isValidSnapshot=function(t,e){if(this._dispatcher)return this._dispatcher(t).validate(t,e);for(var n=[],r=0,i=0;i=0){var i=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(t,e,n,i)}return this._subtype.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,this.optionalValues.indexOf(e)<0&&this._subtype.is(e)?e:this.getDefaultInstanceOrSnapshot(),n,r)},e.prototype.getDefaultInstanceOrSnapshot=function(){var t="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&Ce(this,t),t},e.prototype.isValidSnapshot=function(t,e){return this.optionalValues.indexOf(t)>=0?Ae():this._subtype.validate(t,e)},e.prototype.isAssignableFrom=function(t){return this._subtype.isAssignableFrom(t)},e.prototype.getSubTypes=function(){return this._subtype},e}(Cr),di=[void 0],yi=Kn(si,void 0),vi=Kn(ai,null),bi=function(t){function e(e,n){var r=t.call(this,e)||this;return r._definition=n,r}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|vr.Late},enumerable:!0,configurable:!0}),e.prototype.getSubType=function(t){if(!this._subType){var e=void 0;try{e=this._definition()}catch(n){if(!(n instanceof ReferenceError))throw n;e=void 0}if(t&&void 0===e)throw $e("Late type seems to be used too early, the definition (still) returns undefined");if(e){if(un()&&!K(e))throw $e("Failed to determine subtype, make sure types.late returns a type definition.");this._subType=e}}return this._subType},e.prototype.instantiate=function(t,e,n,r){return this.getSubType(!0).instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this.getSubType(!0).reconcile(t,e,n,r)},e.prototype.describe=function(){var t=this.getSubType(!1);return t?t.name:""},e.prototype.isValidSnapshot=function(t,e){var n=this.getSubType(!1);return n?n.validate(t,e):Ae()},e.prototype.isAssignableFrom=function(t){var e=this.getSubType(!1);return e?e.isAssignableFrom(t):!1},e.prototype.getSubTypes=function(){var t=this.getSubType(!1);return t?t:Tr},e}(Cr),gi=function(t){function e(e){var n=t.call(this,e?"frozen("+e.name+")":"frozen")||this;return n.subType=e,n.flags=vr.Frozen,n}return o(e,t),e.prototype.describe=function(){return""},e.prototype.instantiate=function(t,e,n,r){return Ve(this,t,e,n,Qe(r))},e.prototype.isValidSnapshot=function(t,e){return Xe(t)?this.subType?this.subType.validate(t,e):Ae():Ie(e,t,"Value is not serializable and cannot be frozen")},e}(Er),mi=new gi,wi=function(){function t(t,e){if(this.targetType=e,pr(t))this.identifier=t;else{if(!xe(t))throw $e("Can only store references to tree nodes or identifiers, got: '"+t+"'");var n=ke(t);if(!n.identifierAttribute)throw $e("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null===r||void 0===r)throw $e("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return t.prototype.updateResolvedReference=function(t){var e=cr(this.identifier),n=t.root,r=n.identifierCache.getLastCacheModificationPerId(e);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var i=this.targetType,o=n.identifierCache.resolve(i,e);if(!o)throw new _i("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+t.path+")");this.resolvedReference={node:o,lastCacheModification:r}}},Object.defineProperty(t.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!0,configurable:!0}),t}(),_i=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return o(e,t),e}(Error),Pi=function(t){function e(e,n){var r=t.call(this,"reference("+e.name+")")||this;return r.targetType=e,r.onInvalidated=n,r.flags=vr.Reference,r}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isAssignableFrom=function(t){return this.targetType.isAssignableFrom(t)},e.prototype.isValidSnapshot=function(t,e){return pr(t)?Ae():Ie(e,t,"Value is not a valid identifier, which is a string or a number")},e.prototype.fireInvalidated=function(t,e,n,r){var i=e.parent;if(i&&i.isAlive){var o=i.storedValue;o&&this.onInvalidated({cause:t,parent:o,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(t){y(e.root.storedValue,{op:"replace",value:t,path:e.path})},removeRef:function(){Mn(i.type)?this.replaceRef(void 0):y(e.root.storedValue,{op:"remove",path:e.path})}})}},e.prototype.addTargetNodeWatcher=function(t,e){var n=this,r=this.getValue(t);if(!r)return void 0;var i=ke(r),o=function(r,o){var a=ir(o);a&&n.fireInvalidated(a,t,e,i)},a=i.registerHook(lr.beforeDetach,o),s=i.registerHook(lr.beforeDestroy,o);return function(){a(),s()}},e.prototype.watchTargetNodeForInvalidations=function(t,e,n){var r=this;if(this.onInvalidated){var i;t.registerHook(lr.beforeDestroy,function(){i&&i()});var o=function(o){i&&i();var a=t.parent,s=a&&a.storedValue;if(a&&a.isAlive&&s){var u=void 0;u=n?!!n.get(e,s):t.root.identifierCache.has(r.targetType,cr(e)),u?i=r.addTargetNodeWatcher(t,e):o||r.fireInvalidated("invalidSnapshotReference",t,e,null)}};t.state===Ir.FINALIZED?o(!0):(t.isRoot||t.root.registerHook(lr.afterCreationFinalization,function(){t.parent&&t.parent.createObservableInstanceIfNeeded()}),t.registerHook(lr.afterAttach,function(){o(!1)}))}},e}(Er),Si=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=t.storedValue;return e.resolvedValue},e.prototype.getSnapshot=function(t){var e=t.storedValue;return e.identifier},e.prototype.instantiate=function(t,e,n,r){var i=xe(r)?N(r):r,o=new wi(r,this.targetType),a=Ve(this,t,e,n,o);return o.node=a,this.watchTargetNodeForInvalidations(a,i,void 0),a},e.prototype.reconcile=function(t,e,n,r){if(!t.isDetaching&&t.type===this){var i=xe(e),o=t.storedValue;if(!i&&o.identifier===e||i&&o.resolvedValue===e)return t.setParent(n,r),t}var a=this.instantiate(n,r,void 0,e);return t.die(),a},e}(Pi),Ai=function(t){function e(e,n,r){var i=t.call(this,e,r)||this;return i.options=n,i}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=this.options.get(t.storedValue,t.parent?t.parent.storedValue:null);return e},e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.instantiate=function(t,e,n,r){var i=xe(r)?this.options.set(r,t?t.storedValue:null):r,o=Ve(this,t,e,n,i);return this.watchTargetNodeForInvalidations(o,i,this.options),o},e.prototype.reconcile=function(t,e,n,r){var i=xe(e)?this.options.set(e,t?t.storedValue:null):e;if(!t.isDetaching&&t.type===this&&t.storedValue===i)return t.setParent(n,r),t;var o=this.instantiate(n,r,void 0,i);return t.die(),o},e}(Pi),Ii=function(t){function e(e,n){var r=t.call(this,e)||this;return r.validType=n,r.flags=vr.Identifier,r}return o(e,t),e.prototype.instantiate=function(t,e,n,r){if(!(t&&t.type instanceof ti))throw $e("Identifier types can only be instantiated as direct child of a model type");return Ve(this,t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){if(t.storedValue!==e)throw $e("Tried to change identifier from '"+t.storedValue+"' to '"+e+"'. Changing identifiers is not allowed.");return t.setParent(n,r),t},e.prototype.isValidSnapshot=function(t,e){return typeof t!==this.validType?Ie(e,t,"Value is not a valid "+this.describe()+", expected a "+this.validType):Ae()},e}(Er),Ti=function(t){function e(){var e=t.call(this,"identifier","string")||this;return e.flags=vr.Identifier,e}return o(e,t),e.prototype.describe=function(){return"identifier"},e}(Ii),Ci=function(t){function e(){return t.call(this,"identifierNumber","number")||this}return o(e,t),e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.describe=function(){return"identifierNumber"},e}(Ii),Oi=new Ti,Ei=new Ci,ji=function(t){function e(e){var n=t.call(this,e.name)||this;return n.options=e,n.flags=vr.Custom,n}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isValidSnapshot=function(t,e){if(this.options.isTargetType(t))return Ae();var n=this.options.getValidationMessage(t);return n?Ie(e,t,"Invalid value for type '"+this.name+"': "+n):Ae()},e.prototype.getSnapshot=function(t){return this.options.toSnapshot(t.storedValue)},e.prototype.instantiate=function(t,e,n,r){var i=this.options.isTargetType(r)?r:this.options.fromSnapshot(r,t&&t.root.environment);return Ve(this,t,e,n,i)},e.prototype.reconcile=function(t,e,n,r){var i=!this.options.isTargetType(e);if(!t.isDetaching){var o=t.type===this&&(i?e===t.snapshot:e===t.storedValue);if(o)return t.setParent(n,r),t}var a=i?this.options.fromSnapshot(e,n.root.environment):e,s=this.instantiate(n,r,void 0,a);return t.die(),s},e}(Er),Vi={enumeration:Jn,model:zn,compose:Fn,custom:fr,reference:or,safeReference:sr,union:Yn,optional:Kn,literal:Un,maybe:Qn,maybeNull:Xn,refinement:Wn,string:ni,"boolean":oi,number:ri,integer:ii,Date:ci,map:On,array:jn,frozen:nr,identifier:Oi,identifierNumber:Ei,late:tr,undefined:si,"null":ai,snapshotProcessor:Tn};e.addDisposer=L,e.addMiddleware=fe,e.applyAction=re,e.applyPatch=y,e.applySnapshot=w,e.cast=J,e.castFlowReturn=yn,e.castToReferenceSnapshot=Z,e.castToSnapshot=Y,e.clone=z,e.createActionTrackingMiddleware=Q,e.createActionTrackingMiddleware2=X,e.decorate=le,e.destroy=M,e.detach=F,e.escapeJsonPath=_n,e.flow=dn,e.getChildType=f,e.getEnv=U,e.getIdentifier=N,e.getLivelinessChecking=r,e.getMembers=G,e.getNodeId=B,e.getParent=S,e.getParentOfType=I,e.getPath=C,e.getPathParts=O,e.getPropertyMembers=W,e.getRelativePath=R,e.getRoot=T,e.getRunningActionContext=ye,e.getSnapshot=_,e.getType=h,e.hasParent=P,e.hasParentOfType=A,e.isActionContextChildOf=be,e.isActionContextThisOrChildOf=ge,e.isAlive=H,e.isArrayType=Dn,e.isFrozenType=rr,e.isIdentifierType=ur,e.isLateType=er,e.isLiteralType=$n,e.isMapType=En,e.isModelType=Mn,e.isOptionalType=qn,e.isPrimitiveType=Ln,e.isProtected=m,e.isReferenceType=ar,e.isRefinementType=Gn,e.isRoot=E,e.isStateTreeNode=xe,e.isType=K,e.isUnionType=Zn,e.isValidReference=D,e.joinJsonPath=Sn,e.onAction=ae,e.onPatch=l,e.onSnapshot=d,e.process=Ue,e.protect=b,e.recordActions=oe,e.recordPatches=v,e.resolveIdentifier=V,e.resolvePath=j,e.setLivelinessChecking=n,e.setLivelynessChecking=i,e.splitJsonPath=An,e.tryReference=x,e.tryResolve=k,e.typecheck=Oe,e.types=Vi,e.unescapeJsonPath=Pn,e.unprotect=g,e.walk=$}); ;/*!node_modules/@babel/runtime/helpers/interopRequireDefault.js*/ amis.define("node_modules/@babel/runtime/helpers/interopRequireDefault",function(e,n,u){function t(e){return e&&e.__esModule?e:{"default":e}}u.exports=t}); ;/*!node_modules/dom-helpers/class/hasClass.js*/ @@ -833,18 +841,22 @@ amis.define("node_modules/dom-helpers/class/hasClass",function(s,e,a){"use stric amis.define("node_modules/dom-helpers/class/addClass",function(s,e,a){"use strict";function l(s,e){s.classList?s.classList.add(e):d.default(s,e)||("string"==typeof s.className?s.className=s.className+" "+e:s.setAttribute("class",(s.className&&s.className.baseVal||"")+" "+e))}var t=s("node_modules/@babel/runtime/helpers/interopRequireDefault");e.__esModule=!0,e.default=l;var d=t(s("node_modules/dom-helpers/class/hasClass"));a.exports=e["default"]}); ;/*!node_modules/dom-helpers/class/removeClass.js*/ amis.define("node_modules/dom-helpers/class/removeClass",function(s,e,a){"use strict";function c(s,e){return s.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}a.exports=function(s,e){s.classList?s.classList.remove(e):"string"==typeof s.className?s.className=c(s.className,e):s.setAttribute("class",c(s.className&&s.className.baseVal||"",e))}}); +;/*!node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs.js*/ +amis.define("node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs",function(t,e){"use strict";function n(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function o(t){function e(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}this.setState(e.bind(this))}function i(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function l(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var l=null,p=null,r=null;if("function"==typeof e.componentWillMount?l="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(l="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?p="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(p="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?r="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==l||null!==p||null!==r){var s=t.displayName||t.name,a="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==l?"\n "+l:"")+(null!==p?"\n "+p:"")+(null!==r?"\n "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=n,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}Object.defineProperty(e,"__esModule",{value:!0}),n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,e.polyfill=l}); ;/*!node_modules/react-transition-group/utils/PropTypes.js*/ -amis.define("node_modules/react-transition-group/utils/PropTypes",function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=i;{var r=e("node_modules/prop-types/index"),u=n(r);t.timeoutsShape=u.default.oneOfType([u.default.number,u.default.shape({enter:u.default.number,exit:u.default.number}).isRequired]),t.classNamesShape=u.default.oneOfType([u.default.string,u.default.shape({enter:u.default.string,exit:u.default.string,active:u.default.string}),u.default.shape({enter:u.default.string,enterActive:u.default.string,exit:u.default.string,exitActive:u.default.string})])}}); +amis.define("node_modules/react-transition-group/utils/PropTypes",function(e,s){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}s.__esModule=!0,s.classNamesShape=s.timeoutsShape=void 0;var t=(o(e("node_modules/prop-types/index")),null);s.timeoutsShape=t;var u=null;s.classNamesShape=u}); ;/*!node_modules/react-transition-group/Transition.js*/ -amis.define("node_modules/react-transition-group/Transition",function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(){}e.__esModule=!0,e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var l=t("node_modules/prop-types/index"),p=o(l),c=t("node_modules/react/index"),d=n(c),f=t("node_modules/react-dom/index"),h=n(f),E=(t("node_modules/react-transition-group/utils/PropTypes"),e.UNMOUNTED="unmounted"),x=e.EXITED="exited",m=e.ENTERING="entering",y=e.ENTERED="entered",b=e.EXITING="exiting",S=function(t){function e(n,o){r(this,e);var i=s(this,t.call(this,n,o)),a=o.transitionGroup,u=a&&!a.isMounting?n.enter:n.appear,l=void 0;return i.nextStatus=null,n.in?u?(l=x,i.nextStatus=m):l=y:l=n.unmountOnExit||n.mountOnEnter?E:x,i.state={status:l},i.nextCallback=null,i}return a(e,t),e.prototype.getChildContext=function(){return{transitionGroup:null}},e.prototype.componentDidMount=function(){this.updateStatus(!0)},e.prototype.componentWillReceiveProps=function(t){var e=this.pendingState||this.state,n=e.status;t.in?(n===E&&this.setState({status:x}),n!==m&&n!==y&&(this.nextStatus=m)):(n===m||n===y)&&(this.nextStatus=b)},e.prototype.componentDidUpdate=function(){this.updateStatus()},e.prototype.componentWillUnmount=function(){this.cancelNextCallback()},e.prototype.getTimeouts=function(){var t=this.props.timeout,e=void 0,n=void 0,o=void 0;return e=n=o=t,null!=t&&"number"!=typeof t&&(e=t.exit,n=t.enter,o=t.appear),{exit:e,enter:n,appear:o}},e.prototype.updateStatus=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1,e=this.nextStatus;if(null!==e){this.nextStatus=null,this.cancelNextCallback();var n=h.default.findDOMNode(this);e===m?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===x&&this.setState({status:E})},e.prototype.performEnter=function(t,e){var n=this,o=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,r=this.getTimeouts();return e||o?(this.props.onEnter(t,i),void this.safeSetState({status:m},function(){n.props.onEntering(t,i),n.onTransitionEnd(t,r.enter,function(){n.safeSetState({status:y},function(){n.props.onEntered(t,i)})})})):void this.safeSetState({status:y},function(){n.props.onEntered(t)})},e.prototype.performExit=function(t){var e=this,n=this.props.exit,o=this.getTimeouts();return n?(this.props.onExit(t),void this.safeSetState({status:b},function(){e.props.onExiting(t),e.onTransitionEnd(t,o.exit,function(){e.safeSetState({status:x},function(){e.props.onExited(t)})})})):void this.safeSetState({status:x},function(){e.props.onExited(t)})},e.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.prototype.safeSetState=function(t,e){var n=this;this.pendingState=t,e=this.setNextCallback(e),this.setState(t,function(){n.pendingState=null,e()})},e.prototype.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,e.nextCallback=null,t(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},e.prototype.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},e.prototype.render=function(){var t=this.state.status;if(t===E)return null;var e=this.props,n=e.children,o=i(e,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(t,o);var r=d.default.Children.only(n);return d.default.cloneElement(r,o)},e}(d.default.Component);S.contextTypes={transitionGroup:p.object},S.childContextTypes={transitionGroup:function(){}},S.propTypes={},S.defaultProps={"in":!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},S.UNMOUNTED=0,S.EXITED=1,S.ENTERING=2,S.ENTERED=3,S.EXITING=4,e.default=S}); +amis.define("node_modules/react-transition-group/Transition",function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};i.get||i.set?Object.defineProperty(e,n,i):e[n]=t[n]}return e.default=t,e}function o(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i=0||(o[n]=t[n]);return o}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function s(){}e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var a=i(t("node_modules/prop-types/index")),u=n(t("node_modules/react/index")),l=n(t("node_modules/react-dom/index")),p=t("node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs"),c=(t("node_modules/react-transition-group/utils/PropTypes"),"unmounted");e.UNMOUNTED=c;var d="exited";e.EXITED=d;var f="entering";e.ENTERING=f;var E="entered";e.ENTERED=E;var h="exiting";e.EXITING=h;var x=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var o,r=n.transitionGroup,s=r&&!r.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?s?(o=d,i.appearStatus=f):o=E:o=e.unmountOnExit||e.mountOnEnter?c:d,i.state={status:o},i.nextCallback=null,i}r(e,t);var n=e.prototype;return n.getChildContext=function(){return{transitionGroup:null}},e.getDerivedStateFromProps=function(t,e){var n=t.in;return n&&e.status===c?{status:d}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==E&&(e=f):(n===f||n===E)&&(e=h)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=l.default.findDOMNode(this);e===f?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},n.performEnter=function(t,e){var n=this,i=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,r=this.getTimeouts(),s=o?r.appear:r.enter;return e||i?(this.props.onEnter(t,o),void this.safeSetState({status:f},function(){n.props.onEntering(t,o),n.onTransitionEnd(t,s,function(){n.safeSetState({status:E},function(){n.props.onEntered(t,o)})})})):void this.safeSetState({status:E},function(){n.props.onEntered(t)})},n.performExit=function(t){var e=this,n=this.props.exit,i=this.getTimeouts();return n?(this.props.onExit(t),void this.safeSetState({status:h},function(){e.props.onExiting(t),e.onTransitionEnd(t,i.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(t)})})})):void this.safeSetState({status:d},function(){e.props.onExited(t)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var i=null==e&&!this.props.addEndListener;return!t||i?void setTimeout(this.nextCallback,0):(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),void(null!=e&&setTimeout(this.nextCallback,e)))},n.render=function(){var t=this.state.status;if(t===c)return null;var e=this.props,n=e.children,i=o(e,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,"function"==typeof n)return n(t,i);var r=u.default.Children.only(n);return u.default.cloneElement(r,i)},e}(u.default.Component);x.contextTypes={transitionGroup:a.object},x.childContextTypes={transitionGroup:function(){}},x.propTypes={},x.defaultProps={"in":!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},x.UNMOUNTED=0,x.EXITED=1,x.ENTERING=2,x.ENTERED=3,x.EXITING=4;var m=p.polyfill(x);e.default=m}); ;/*!node_modules/react-transition-group/CSSTransition.js*/ -amis.define("node_modules/react-transition-group/CSSTransition",function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}n.__esModule=!0;var p=Object.assign||function(e){for(var n=1;nl;l++)p[l]=arguments[l];return t=o=a(this,e.call.apply(e,[this].concat(p))),o.onEnter=function(e,n){var t=o.getClassNames(n?"appear":"enter"),r=t.className;o.removeClasses(e,"exit"),y(e,r),o.props.onEnter&&o.props.onEnter(e)},o.onEntering=function(e,n){var t=o.getClassNames(n?"appear":"enter"),r=t.activeClassName;o.reflowAndAddClass(e,r),o.props.onEntering&&o.props.onEntering(e)},o.onEntered=function(e,n){o.removeClasses(e,n?"appear":"enter"),o.props.onEntered&&o.props.onEntered(e)},o.onExit=function(e){var n=o.getClassNames("exit"),t=n.className;o.removeClasses(e,"appear"),o.removeClasses(e,"enter"),y(e,t),o.props.onExit&&o.props.onExit(e)},o.onExiting=function(e){var n=o.getClassNames("exit"),t=n.activeClassName;o.reflowAndAddClass(e,t),o.props.onExiting&&o.props.onExiting(e)},o.onExited=function(e){o.removeClasses(e,"exit"),o.props.onExited&&o.props.onExited(e)},o.getClassNames=function(e){var n=o.props.classNames,t="string"!=typeof n?n[e]:n+"-"+e,r="string"!=typeof n?n[e+"Active"]:t+"-active";return{className:t,activeClassName:r}},r=t,a(o,r)}return i(n,e),n.prototype.removeClasses=function(e,n){var t=this.getClassNames(n),o=t.className,r=t.activeClassName;o&&C(e,o),r&&C(e,r)},n.prototype.reflowAndAddClass=function(e,n){e.scrollTop,y(e,n)},n.prototype.render=function(){var e=p({},this.props);return delete e.classNames,g.default.createElement(h.default,p({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(g.default.Component));N.propTypes={},n.default=N,t.exports=n["default"]}); +amis.define("node_modules/react-transition-group/CSSTransition",function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};s.get||s.set?Object.defineProperty(t,n,s):t[n]=e[n]}return t.default=e,t}function o(){return o=Object.assign||function(e){for(var t=1;tr;r++)s[r]=arguments[r];return t=e.call.apply(e,[this].concat(s))||this,t.onEnter=function(e,n){var s=t.getClassNames(n?"appear":"enter"),r=s.className;t.removeClasses(e,"exit"),d(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var s=t.getClassNames(n?"appear":"enter"),r=s.activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var s=t.getClassNames("appear").doneClassName,r=t.getClassNames("enter").doneClassName,o=n?s+" "+r:r;t.removeClasses(e,n?"appear":"enter"),d(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit"),s=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),d(e,s),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),s=n.activeClassName;t.reflowAndAddClass(e,s),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),s=n.doneClassName;t.removeClasses(e,"exit"),d(e,s),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,s="string"==typeof n,r=s&&n?n+"-":"",o=s?r+e:n[e],a=s?o+"-active":n[e+"Active"],i=s?o+"-done":n[e+"Done"];return{className:o,activeClassName:a,doneClassName:i}},t}a(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),s=n.className,r=n.activeClassName,o=n.doneClassName;s&&c(e,s),r&&c(e,r),o&&c(e,o)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,d(e,t))},n.render=function(){var e=o({},this.props);return delete e.classNames,p.default.createElement(u.default,o({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(p.default.Component);f.defaultProps={classNames:""},f.propTypes={};var m=f;t.default=m,n.exports=t["default"]}); ;/*!node_modules/react-transition-group/utils/ChildMapping.js*/ -amis.define("node_modules/react-transition-group/utils/ChildMapping",function(n,e){"use strict";function r(n,e){var r=function(n){return e&&t.isValidElement(n)?e(n):n},i=Object.create(null);return n&&t.Children.map(n,function(n){return n}).forEach(function(n){i[n.key]=r(n)}),i}function i(n,e){function r(r){return r in e?e[r]:n[r]}n=n||{},e=e||{};var i=Object.create(null),t=[];for(var u in n)u in e?t.length&&(i[u]=t,t=[]):t.push(u);var o=void 0,a={};for(var l in e){if(i[l])for(o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:this.props;return null!=n[t]?n[t]:e.props[t]},t.prototype.componentDidMount=function(){this.appeared=!0},t.prototype.componentWillReceiveProps=function(e){var t=this,n=this.state.children,r=f.getChildMapping(e.children),o=f.mergeChildMappings(n,r);Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var p=function(e){t.handleExited(a.key,e,a.props.onExited)},l=i in n,c=i in r,u=n[i],d=s.isValidElement(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&s.isValidElement(u)&&(o[i]=s.cloneElement(a,{onExited:p,"in":u.props.in,exit:t.getProp(a,"exit",e),enter:t.getProp(a,"enter",e)})):o[i]=s.cloneElement(a,{"in":!1}):o[i]=s.cloneElement(a,{onExited:p,"in":!0,exit:t.getProp(a,"exit",e),enter:t.getProp(a,"enter",e)})}}),this.setState({children:o})},t.prototype.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=o(e,["component","childFactory"]),i=this.state.children;return delete r.appear,delete r.enter,delete r.exit,d.default.createElement(t,r,h(i).map(n))},t}(d.default.Component);g.childContextTypes={transitionGroup:u.default.object.isRequired},g.propTypes={},g.defaultProps=y,t.default=g,n.exports=t["default"]}); +amis.define("node_modules/react-transition-group/TransitionGroup",function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function o(){return o=Object.assign||function(e){for(var t=1;t=0||(o[t]=e[t]);return o}function a(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}n.__esModule=!0,n.default=void 0;var i=(r(e("node_modules/prop-types/index")),r(e("node_modules/react/index"))),l=e("node_modules/react-dom/index"),d=r(e("node_modules/react-transition-group/TransitionGroup")),u=function(e){function n(){for(var n,t=arguments.length,r=new Array(t),o=0;t>o;o++)r[o]=arguments[o];return n=e.call.apply(e,[this].concat(r))||this,n.handleEnter=function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.handleLifecycle("onEnter",0,t)},n.handleEntering=function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.handleLifecycle("onEntering",0,t)},n.handleEntered=function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.handleLifecycle("onEntered",0,t)},n.handleExit=function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.handleLifecycle("onExit",1,t)},n.handleExiting=function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.handleLifecycle("onExiting",1,t)},n.handleExited=function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return n.handleLifecycle("onExited",1,t)},n}a(n,e);var t=n.prototype;return t.handleLifecycle=function(e,n,t){var r,o=this.props.children,a=i.default.Children.toArray(o)[n];a.props[e]&&(r=a.props)[e].apply(r,t),this.props[e]&&this.props[e](l.findDOMNode(this))},t.render=function(){var e=this.props,n=e.children,t=e.in,r=o(e,["children","in"]),a=i.default.Children.toArray(n),l=a[0],u=a[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.default.createElement(d.default,r,t?i.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},n}(i.default.Component);u.propTypes={};var s=u;n.default=s,t.exports=n["default"]}); ;/*!node_modules/react-transition-group/index.js*/ -amis.define("node_modules/react-transition-group/index",function(n,o,t){"use strict";function i(n){return n&&n.__esModule?n:{"default":n}}var r=n("node_modules/react-transition-group/CSSTransition"),e=i(r),a=n("node_modules/react-transition-group/TransitionGroup"),s=i(a),u=n("node_modules/react-transition-group/Transition"),d=i(u);t.exports={Transition:d.default,TransitionGroup:s.default,CSSTransition:e.default}}); +amis.define("node_modules/react-transition-group/index",function(n,o,t){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}var i=e(n("node_modules/react-transition-group/CSSTransition")),r=e(n("node_modules/react-transition-group/ReplaceTransition")),a=e(n("node_modules/react-transition-group/TransitionGroup")),s=e(n("node_modules/react-transition-group/Transition"));t.exports={Transition:s.default,TransitionGroup:a.default,ReplaceTransition:r.default,CSSTransition:i.default}}); ;/*!node_modules/sortablejs/Sortable.js*/ amis.define("node_modules/sortablejs/Sortable",function(t,e,n,o){!function(t,i){"object"==typeof e&&"undefined"!=typeof n?n.exports=i():"function"==typeof o&&o.amd?o(i):(t=t||self,t.Sortable=i())}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(){return n=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}function r(t,e){if(null==t)return{};var n,o,r=i(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t){return l(t)||s(t)||c()}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function p(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function g(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&f(t,e):f(t,e))||o&&t===n)return t;if(t===n)break}while(t=p(t))}return null}function v(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(we," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(we," ")}}function m(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function b(t,e){var n="";if("string"==typeof t)n=t;else do{var o=m(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return i&&new i(n)}function y(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;r>i;i++)n(o[i],i);return o}return[]}function w(){return fe?document.documentElement:document.scrollingElement}function E(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d;if(t!==window&&t!==w()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!fe))do if(i&&i.getBoundingClientRect&&("none"!==m(i,"transform")||n&&"static"!==m(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(m(i,"border-top-width")),l-=h.left+parseInt(m(i,"border-left-width")),s=a+r.height,c=l+r.width;break}while(i=i.parentNode);if(o&&t!==window){var f=b(i||t),p=f&&f.a,g=f&&f.d;f&&(a/=g,l/=p,d/=p,u/=g,s=a+u,c=l+d)}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function D(t,e,n){for(var o=M(t,!0),i=E(t)[e];o;){var r=E(o)[n],a=void 0;if(a="top"===n||"left"===n?i>=r:r>=i,!a)return o;if(o===w())break;o=M(o,!1)}return!1}function _(t,e,n){for(var o=0,i=0,r=t.children;ili":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return un(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:L.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Se.initializePlugins(this,t,o);for(var i in o)!(i in e)&&(e[i]=o[i]);fn(e);for(var r in this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:sn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?d(t,"pointerdown",this._onTapStart):(d(t,"mousedown",this._onTapStart),d(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(d(t,"dragover",this),d(t,"dragenter",this)),Je.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),n(this,Y())}function K(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function W(t,e,n,o,i,r,a,l){var s,c,u=t[Ee],d=u.options.onMove;return!window.CustomEvent||fe||pe?(s=document.createEvent("Event"),s.initEvent("move",!0,!0)):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||E(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function z(t){t.draggable=!1}function G(){on=!1}function U(t,e,n){var o=E(S(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function q(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&c*i>Ve){if(!tn&&(1===qe?s>u+c*r/2:d-c*r/2>s)&&(tn=!0),tn)h=!0;else if(1===qe?u+Ve>s:s>d-Ve)return-qe}else if(s>u+c*(1-i)/2&&d-c*(1-i)/2>s)return V(e);return h=h||a,h&&(u+c*r/2>s||s>d-c*r/2)?s>u+c/2?1:-1:0}function V(t){return C(Te)n&&o++,i.insertBefore(e,i.children[n]),r.insertBefore(t,r.children[o]))}function le(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?d(document,"pointerup",this._deselectMultiDrag):(d(document,"mouseup",this._deselectMultiDrag),d(document,"touchend",this._deselectMultiDrag)),d(document,"keydown",this._checkKeyDown),d(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var o="";kn.length&&An===t?kn.forEach(function(t,e){o+=(e?", ":"")+t.textContent}):o=n.textContent,e.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Nn=e},delayEnded:function(){this.isMultiDrag=~kn.indexOf(Nn)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var o=0;o1&&(kn.forEach(function(t){o.addAnimationState({target:t,rect:Yn?E(t):i}),X(t),t.fromRect=i,e.removeAnimationState(t)}),Yn=!1,se(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,o=t.insertion,i=t.activeSortable,r=t.parentEl,a=t.putSortable,l=this.options;if(o){if(n&&i._hideClone(),Xn=!1,l.animation&&kn.length>1&&(Yn||!n&&!i.options.sort&&!a)){var s=E(Nn,!1,!0,!0);kn.forEach(function(t){t!==Nn&&(R(t,s),r.appendChild(t))}),Yn=!0}if(!n)if(Yn||ue(),kn.length>1){var c=Pn;i._showClone(e),i.options.animation&&!Pn&&c&&Rn.forEach(function(t){i.addAnimationState({target:t,rect:In}),t.fromRect=In,t.thisAnimationDuration=null})}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,o=t.isOwner,i=t.activeSortable;if(kn.forEach(function(t){t.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){In=n({},e);var r=b(Nn,!0);In.top-=r.f,In.left-=r.e}},dragOverAnimationComplete:function(){Yn&&(Yn=!1,ue())},drop:function(t){var e=t.originalEvent,n=t.rootEl,o=t.parentEl,i=t.sortable,r=t.dispatchSortableEvent,a=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c=this.options,u=o.children;if(!Bn)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),v(Nn,c.selectedClass,!~kn.indexOf(Nn)),~kn.indexOf(Nn))kn.splice(kn.indexOf(Nn),1),On=null,H({sortable:i,rootEl:n,name:"deselect",targetEl:Nn,originalEvt:e});else{if(kn.push(Nn),H({sortable:i,rootEl:n,name:"select",targetEl:Nn,originalEvt:e}),e.shiftKey&&On&&i.el.contains(On)){var d=C(On),h=C(Nn);if(~d&&~h&&d!==h){var f,p;for(h>d?(p=d,f=h):(p=h,f=d+1);f>p;p++)~kn.indexOf(u[p])||(v(u[p],c.selectedClass,!0),kn.push(u[p]),H({sortable:i,rootEl:n,name:"select",targetEl:u[p],originalEvt:e}))}}else On=Nn;An=s}if(Bn&&this.isMultiDrag){if((o[Ee].options.sort||o!==n)&&kn.length>1){var g=E(Nn),m=C(Nn,":not(."+this.options.selectedClass+")");if(!Xn&&c.animation&&(Nn.thisAnimationDuration=null),s.captureAnimationState(),!Xn&&(c.animation&&(Nn.fromRect=g,kn.forEach(function(t){if(t.thisAnimationDuration=null,t!==Nn){var e=Yn?E(t):g;t.fromRect=e,s.addAnimationState({target:t,rect:e})}})),ue(),kn.forEach(function(t){u[m]?o.insertBefore(t,u[m]):o.appendChild(t),m++}),a===C(Nn))){var b=!1;kn.forEach(function(t){return t.sortableIndex!==C(t)?void(b=!0):void 0}),b&&r("update")}kn.forEach(function(t){X(t)}),s.animateAll()}An=s}(n===o||l&&"clone"!==l.lastPutMode)&&Rn.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=Bn=!1,Rn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),h(document,"pointerup",this._deselectMultiDrag),h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!Bn&&An===this.sortable&&!(t&&g(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;kn.length;){var e=kn[0];v(e,this.options.selectedClass,!1),kn.shift(),H({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},n(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Ee];e&&e.options.multiDrag&&!~kn.indexOf(t)&&(An&&An!==e&&(An.multiDrag._deselectMultiDrag(),An=e),v(t,e.options.selectedClass,!0),kn.push(t))},deselect:function(t){var e=t.parentNode[Ee],n=kn.indexOf(t);e&&e.options.multiDrag&&~n&&(v(t,e.options.selectedClass,!1),kn.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return kn.forEach(function(o){e.push({multiDragElement:o,index:o.sortableIndex});var i;i=Yn&&o!==Nn?-1:Yn?C(o,":not(."+t.options.selectedClass+")"):C(o),n.push({multiDragElement:o,index:i})}),{items:a(kn),clones:[].concat(Rn),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function se(t,e){kn.forEach(function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function ce(t,e){Rn.forEach(function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function ue(){kn.forEach(function(t){t!==Nn&&t.parentNode&&t.parentNode.removeChild(t)})}var de,he="1.10.0",fe=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),pe=u(/Edge/i),ge=u(/firefox/i),ve=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i),me=u(/iP(ad|od|hone)/i),be=u(/chrome/i)&&u(/android/i),ye={capture:!1,passive:!1},we=/\s+/g,Ee="Sortable"+(new Date).getTime(),De=[],_e={initializeByDefault:!0},Se={mount:function(t){for(var e in _e)!_e.hasOwnProperty(e)||e in t||(t[e]=_e[e]);De.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";De.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](o({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](o({sortable:e},n)))})},initializePlugins:function(t,e,o){De.forEach(function(i){var r=i.pluginName;if(t.options[r]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[r]=a,n(o,a.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);"undefined"!=typeof r&&(t.options[i]=r)}},getEventProperties:function(t,e){var o={};return De.forEach(function(i){"function"==typeof i.eventProperties&&n(o,i.eventProperties.call(e[i.pluginName],t))}),o},modifyOption:function(t,e,n){var o;return De.forEach(function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))}),o}},Ce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,a=r(n,["evt"]);Se.pluginEvent.bind(L)(t,e,o({dragEl:Te,parentEl:xe,ghostEl:Me,rootEl:Oe,nextEl:Ae,lastDownEl:Ne,cloneEl:Ie,cloneHidden:Pe,dragStarted:Ge,putSortable:Fe,activeSortable:L.active,originalEvent:i,oldIndex:ke,oldDraggableIndex:Xe,newIndex:Re,newDraggableIndex:Ye,hideGhostForTarget:pn,unhideGhostForTarget:gn,cloneNowHidden:function(){Pe=!0},cloneNowShown:function(){Pe=!1},dispatchSortableEvent:function(t){j({sortable:e,name:t,originalEvent:i})}},a))};if("undefined"==typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var Te,xe,Me,Oe,Ae,Ne,Ie,Pe,ke,Re,Xe,Ye,Be,Fe,He,je,Le,Ke,We,ze,Ge,Ue,qe,Ve,Ze,Qe=!1,$e=!1,Je=[],tn=!1,en=!1,nn=[],on=!1,rn=[],an=me,ln=pe||fe?"cssFloat":"float",sn=!be&&!me&&"draggable"in document.createElement("div"),cn=function(){if(fe)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),un=function(t,e){var n=m(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=_(t,0,e),r=_(t,1,e),a=i&&m(i),l=r&&m(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+E(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[ln]||r&&"none"===n[ln]&&s+c>o)?"vertical":"horizontal"},dn=function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2},hn=function(t,e){var n;return Je.some(function(o){if(!S(o)){var i=E(o),r=o[Ee].options.emptyInsertThreshold,a=t>=i.left-r&&t<=i.right+r,l=e>=i.top-r&&e<=i.bottom+r;return r&&a&&l?n=o:void 0}}),n},fn=function(e){function n(t,e){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(e||l))return!0;if(null==t||t===!1)return!1;if(e&&"clone"===t)return t;if("function"==typeof t)return n(t(o,i,r,a),e)(o,i,r,a);var s=(e?o:i).options.group.name;return t===!0||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var o={},i=e.group;i&&"object"==t(i)||(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,e.group=o},pn=function(){!cn&&Me&&m(Me,"display","none")},gn=function(){!cn&&Me&&m(Me,"display","")};document.addEventListener("click",function(t){return $e?(t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),$e=!1,!1):void 0},!0);var vn=function(t){if(Te){t=t.touches?t.touches[0]:t;var e=hn(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Ee]._onDragOver(n)}}},mn=function(t){Te&&Te.parentNode[Ee]._isOutsideThisEl(t.target)};L.prototype={constructor:L,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Ue=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Te):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(Q(n),!Te&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled||s.isContentEditable||(l=g(l,o.draggable,n,!1),l&&l.animated||Ne===l))){if(ke=C(l),Xe=C(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return j({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Ce("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(o){return o=g(s,o.trim(),n,!1),o?(j({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),Ce("filter",e,{evt:t}),!0):void 0})))return void(i&&t.cancelable&&t.preventDefault());(!o.handle||g(s,o.handle,n,!1))&&this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;if(n&&!Te&&n.parentNode===r){var s=E(n);if(Oe=r,Te=n,xe=Te.parentNode,Ae=Te.nextSibling,Ne=n,Be=a.group,L.dragged=Te,He={target:Te,clientX:(e||t).clientX,clientY:(e||t).clientY},We=He.clientX-s.left,ze=He.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Te.style["will-change"]="all",o=function(){return Ce("delayEnded",i,{evt:t}),L.eventCanceled?void i._onDrop():(i._disableDelayedDragEvents(),!ge&&i.nativeDraggable&&(Te.draggable=!0),i._triggerDragStart(t,e),j({sortable:i,name:"choose",originalEvent:t}),void v(Te,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){y(Te,t.trim(),z)}),d(l,"dragover",vn),d(l,"mousemove",vn),d(l,"touchmove",vn),d(l,"mouseup",i._onDrop),d(l,"touchend",i._onDrop),d(l,"touchcancel",i._onDrop),ge&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Te.draggable=!0),Ce("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(pe||fe))o();else{if(L.eventCanceled)return void this._onDrop();d(l,"mouseup",i._disableDelayedDrag),d(l,"touchend",i._disableDelayedDrag),d(l,"touchcancel",i._disableDelayedDrag),d(l,"mousemove",i._delayedDragTouchMoveHandler),d(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&d(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Te&&z(Te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;h(t,"mouseup",this._disableDelayedDrag),h(t,"touchend",this._disableDelayedDrag),h(t,"touchcancel",this._disableDelayedDrag),h(t,"mousemove",this._delayedDragTouchMoveHandler),h(t,"touchmove",this._delayedDragTouchMoveHandler),h(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?d(document,"pointermove",this._onTouchMove):e?d(document,"touchmove",this._onTouchMove):d(document,"mousemove",this._onTouchMove):(d(Te,"dragend",this),d(Oe,"dragstart",this._onDragStart));try{document.selection?$(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Qe=!1,Oe&&Te){Ce("dragStarted",this,{evt:e}),this.nativeDraggable&&d(document,"dragover",mn);var n=this.options;!t&&v(Te,n.dragClass,!1),v(Te,n.ghostClass,!0),L.active=this,t&&this._appendGhost(),j({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(je){this._lastX=je.clientX,this._lastY=je.clientY,pn();for(var t=document.elementFromPoint(je.clientX,je.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(je.clientX,je.clientY),t!==e);)e=t;if(Te.parentNode[Ee]._isOutsideThisEl(t),e)do{if(e[Ee]){var n=void 0;if(n=e[Ee]._onDragOver({clientX:je.clientX,clientY:je.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);gn()}},_onTouchMove:function(t){if(He){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=Me&&b(Me),a=Me&&r&&r.a,l=Me&&r&&r.d,s=an&&Ze&&T(Ze),c=(i.clientX-He.clientX+o.x)/(a||1)+(s?s[0]-nn[0]:0)/(a||1),u=(i.clientY-He.clientY+o.y)/(l||1)+(s?s[1]-nn[1]:0)/(l||1);if(!L.active&&!Qe){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(j({rootEl:xe,name:"add",toEl:xe,fromEl:Oe,originalEvent:t}),j({sortable:this,name:"remove",toEl:xe,originalEvent:t}),j({rootEl:xe,name:"sort",toEl:xe,fromEl:Oe,originalEvent:t}),j({sortable:this,name:"sort",toEl:xe,originalEvent:t})),Fe&&Fe.save()):Re!==ke&&Re>=0&&(j({sortable:this,name:"update",toEl:xe,originalEvent:t}),j({sortable:this,name:"sort",toEl:xe,originalEvent:t})),L.active&&((null==Re||-1===Re)&&(Re=ke,Ye=Xe),j({sortable:this,name:"end",toEl:xe,originalEvent:t}),this.save()))),void this._nulling())},_nulling:function(){Ce("nulling",this),Oe=Te=xe=Me=Ae=Ie=Ne=Pe=He=je=Ge=Re=Ye=ke=Xe=Ue=qe=Fe=Be=L.dragged=L.ghost=L.clone=L.active=null,rn.forEach(function(t){t.checked=!0}),rn.length=Le=Ke=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Te&&(this._onDragOver(t),K(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;i>o;o++)t=n[o],g(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||Z(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,o){var i=n.children[o];g(i,this.options.draggable,n,!1)&&(e[t]=i)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return g(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=Se.modifyOption(this,t,e);n[t]="undefined"!=typeof o?o:e,"group"===t&&fn(n)},destroy:function(){Ce("destroy",this);var t=this.el;t[Ee]=null,h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart),h(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),Je.splice(Je.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Pe){if(Ce("hideClone",this),L.eventCanceled)return;m(Ie,"display","none"),this.options.removeCloneOnHide&&Ie.parentNode&&Ie.parentNode.removeChild(Ie),Pe=!0}},_showClone:function(t){if("clone"!==t.lastPutMode)return void this._hideClone();if(Pe){if(Ce("showClone",this),L.eventCanceled)return;Oe.contains(Te)&&!this.options.group.revertClone?Oe.insertBefore(Ie,Te):Ae?Oe.insertBefore(Ie,Ae):Oe.appendChild(Ie),this.options.group.revertClone&&this.animate(Te,Ie),m(Ie,"display",""),Pe=!1}}},d(document,"touchmove",function(t){(L.active||Qe)&&t.cancelable&&t.preventDefault()}),L.utils={on:d,off:h,css:m,find:y,is:function(t,e){return!!g(t,e,t,!1)},extend:O,throttle:N,closest:g,toggleClass:v,clone:k,index:C,nextTick:$,cancelNextTick:J,detectDirection:un,getChild:_},L.get=function(t){return t[Ee]},L.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;t>n;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(L.utils=o({},L.utils,t.utils)),Se.mount(t)})},L.create=function(t,e){return new L(t,e)},L.version=he;var bn,yn,wn,En,Dn,_n,Sn=[],Cn=!1,Tn=N(function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=w(),u=!1;yn!==n&&(yn=n,ee(),bn=e.scroll,i=e.scrollFn,bn===!0&&(bn=M(n,!0)));var d=0,h=bn;do{var f=h,p=E(f),g=p.top,v=p.bottom,b=p.left,y=p.right,D=p.width,_=p.height,S=void 0,C=void 0,T=f.scrollWidth,x=f.scrollHeight,O=m(f),A=f.scrollLeft,N=f.scrollTop;f===c?(S=T>D&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),C=x>_&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(S=T>D&&("auto"===O.overflowX||"scroll"===O.overflowX),C=x>_&&("auto"===O.overflowY||"scroll"===O.overflowY));var I=S&&(Math.abs(y-r)<=l&&T>A+D)-(Math.abs(b-r)<=l&&!!A),k=C&&(Math.abs(v-a)<=l&&x>N+_)-(Math.abs(g-a)<=l&&!!N);if(!Sn[d])for(var R=0;d>=R;R++)Sn[R]||(Sn[R]={});(Sn[d].vx!=I||Sn[d].vy!=k||Sn[d].el!==f)&&(Sn[d].el=f,Sn[d].vx=I,Sn[d].vy=k,clearInterval(Sn[d].pid),(0!=I||0!=k)&&(u=!0,Sn[d].pid=setInterval(function(){o&&0===this.layer&&L.active._onTouchMove(Dn);var e=Sn[this.layer].vy?Sn[this.layer].vy*s:0,n=Sn[this.layer].vx?Sn[this.layer].vx*s:0;("function"!=typeof i||"continue"===i.call(L.dragged.parentNode[Ee],n,e,t,Dn,Sn[this.layer].el))&&P(Sn[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=M(h,!1)));Cn=u}},30),xn=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget,s=n||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))};oe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=_(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:xn},n(oe,{pluginName:"revertOnSpill"}),ie.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:xn},n(ie,{pluginName:"removeOnSpill"});var Mn,On,An,Nn,In,Pn,kn=[],Rn=[],Xn=!1,Yn=!1,Bn=!1;return L.mount(new te),L.mount(ie,oe),L.mount(new re),L.mount(new le),L})}); @@ -1578,6 +1590,88 @@ amis.define("node_modules/lodash/_baseUniq",function(e,o,s){function d(e,o,s){va amis.define("node_modules/lodash/uniq",function(n,e,o){function d(n){return n&&n.length?s(n):[]}var s=n("node_modules/lodash/_baseUniq");o.exports=d}); ;/*!node_modules/autobind-decorator/lib/cjs/index.js*/ amis.define("node_modules/autobind-decorator/lib/cjs/index",function(t,e){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e,n){var r=n.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(r)));var u=!1;return{configurable:!0,get:function(){if(u||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var o=r.bind(this);return u=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return o},set:function(t){r=t,delete this[e]}}),u=!1,o},set:function(t){r=t}}}function r(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach(function(e){if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,n(t,e,o))}}),t}function u(){return 1===arguments.length?r.apply(void 0,arguments):n.apply(void 0,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.boundMethod=n,e.boundClass=r,e.default=u}); +;/*!node_modules/@babel/runtime/helpers/typeof.js*/ +amis.define("node_modules/@babel/runtime/helpers/typeof",function(o,e,t){function n(o){"@babel/helpers - typeof";return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(o)}t.exports=n}); +;/*!node_modules/@babel/runtime/helpers/interopRequireWildcard.js*/ +amis.define("node_modules/@babel/runtime/helpers/interopRequireWildcard",function(e,r,t){function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{"default":e};var r=n();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var f=o?Object.getOwnPropertyDescriptor(e,i):null;f&&(f.get||f.set)?Object.defineProperty(t,i,f):t[i]=e[i]}return t["default"]=e,r&&r.set(e,t),t}var u=e("node_modules/@babel/runtime/helpers/typeof");t.exports=o}); +;/*!node_modules/@babel/runtime/helpers/extends.js*/ +amis.define("node_modules/@babel/runtime/helpers/extends",function(e,n,r){function t(){return r.exports=t=Object.assign||function(e){for(var n=1;n=0||(r[t]=e[t]);return r}t.exports=o}); +;/*!node_modules/uncontrollable/cjs/utils.js*/ +amis.define("node_modules/uncontrollable/cjs/utils",function(e,n){"use strict";function t(e,n){var t={};return Object.keys(e).forEach(function(e){t[r(e)]=c}),t}function o(e,n){return void 0!==e[n]}function r(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function u(e){return!!e&&("function"!=typeof e||e.prototype&&e.prototype.isReactComponent)}var i=e("node_modules/@babel/runtime/helpers/interopRequireDefault");n.__esModule=!0,n.uncontrolledPropTypes=t,n.isProp=o,n.defaultKey=r,n.canAcceptRef=u;var c=(i(e("node_modules/invariant/browser")),function(){})}); +;/*!node_modules/uncontrollable/cjs/hook.js*/ +amis.define("node_modules/uncontrollable/cjs/hook",function(e,r,t){"use strict";function n(e){var r=o(e,"string");return"symbol"==typeof r?r:String(r)}function o(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function u(e,r){return Object.keys(r).reduce(function(t,o){var u,l=t[c.defaultKey(o)],i=t[o],f=s.default(t,[c.defaultKey(o),o].map(n)),m=r[o],b=d.useRef({}),p=d.useState(l),v=p[0],y=p[1],_=c.isProp(e,o),h=c.isProp(b.current,o);b.current=e,!_&&h&&y(l);var g=e[m],j=d.useCallback(function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;r>n;n++)t[n-1]=arguments[n];g&&g.apply(void 0,[e].concat(t)),y(e)},[y,g]);return a.default({},f,(u={},u[o]=_?i:v,u[m]=j,u))},e)}var l=e("node_modules/@babel/runtime/helpers/interopRequireWildcard"),i=e("node_modules/@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.default=u;var a=i(e("node_modules/@babel/runtime/helpers/extends")),s=i(e("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose")),d=e("node_modules/react/index"),c=l(e("node_modules/uncontrollable/cjs/utils"));t.exports=r["default"]}); +;/*!node_modules/@babel/runtime/helpers/inheritsLoose.js*/ +amis.define("node_modules/@babel/runtime/helpers/inheritsLoose",function(e,o,t){function r(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}t.exports=r}); +;/*!node_modules/uncontrollable/cjs/uncontrollable.js*/ +amis.define("node_modules/uncontrollable/cjs/uncontrollable",function(e,n,t){"use strict";function r(e,n,t){void 0===t&&(t=[]);var o=e.displayName||e.name||"Component",a=f.canAcceptRef(e),d=Object.keys(n),p=d.map(f.defaultKey);!a&&t.length?invariant(!1):void 0;var m=function(r){function o(){for(var e,o=arguments.length,a=new Array(o),l=0;o>l;l++)a[l]=arguments[l];e=r.call.apply(r,[this].concat(a))||this,e.handlers=Object.create(null),d.forEach(function(t){var r=n[t],o=function(n){if(e.props[r]){var o;e._notifying=!0;for(var a=arguments.length,l=new Array(a>1?a-1:0),i=1;a>i;i++)l[i-1]=arguments[i];(o=e.props)[r].apply(o,[n].concat(l)),e._notifying=!1}e.unmounted||e.setState(function(e){var r,o=e.values;return{values:u.default(Object.create(null),o,(r={},r[t]=n,r))}})};e.handlers[r]=o}),t.length&&(e.attachRef=function(n){e.inner=n});var i=Object.create(null);return d.forEach(function(n){i[n]=e.props[f.defaultKey(n)]}),e.state={values:i,prevProps:{}},e}i.default(o,r);var a=o.prototype;return a.shouldComponentUpdate=function(){return!this._notifying},o.getDerivedStateFromProps=function(e,n){var t=n.values,r=n.prevProps,o={values:u.default(Object.create(null),t),prevProps:{}};return d.forEach(function(n){o.prevProps[n]=e[n],!f.isProp(e,n)&&f.isProp(r,n)&&(o.values[n]=e[f.defaultKey(n)])}),o},a.componentWillUnmount=function(){this.unmounted=!0},a.render=function(){var n=this,t=this.props,r=t.innerRef,o=l.default(t,["innerRef"]);p.forEach(function(e){delete o[e]});var a={};return d.forEach(function(e){var t=n.props[e];a[e]=void 0!==t?t:n.state.values[e]}),s.default.createElement(e,u.default({},o,a,this.handlers,{ref:r||this.attachRef}))},o}(s.default.Component);c.polyfill(m),m.displayName="Uncontrolled("+o+")",m.propTypes=u.default({innerRef:function(){}},f.uncontrolledPropTypes(n,o)),t.forEach(function(e){m.prototype[e]=function(){var n;return(n=this.inner)[e].apply(n,arguments)}});var v=m;return s.default.forwardRef&&(v=s.default.forwardRef(function(e,n){return s.default.createElement(m,u.default({},e,{innerRef:n}))}),v.propTypes=m.propTypes),v.ControlledComponent=e,v.deferControlTo=function(e,t,o){return void 0===t&&(t={}),r(e,u.default({},n,t),o)},v}var o=e("node_modules/@babel/runtime/helpers/interopRequireWildcard"),a=e("node_modules/@babel/runtime/helpers/interopRequireDefault");n.__esModule=!0,n.default=r;var l=a(e("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose")),u=a(e("node_modules/@babel/runtime/helpers/extends")),i=a(e("node_modules/@babel/runtime/helpers/inheritsLoose")),s=a(e("node_modules/react/index")),c=e("node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs"),f=(a(e("node_modules/invariant/browser")),o(e("node_modules/uncontrollable/cjs/utils")));t.exports=n["default"]}); +;/*!node_modules/uncontrollable/cjs/index.js*/ +amis.define("node_modules/uncontrollable/cjs/index",function(e,l){"use strict";var o=e("node_modules/@babel/runtime/helpers/interopRequireDefault");l.__esModule=!0,l.uncontrollable=l.useUncontrolled=void 0;var n=o(e("node_modules/uncontrollable/cjs/hook"));l.useUncontrolled=n.default;var u=o(e("node_modules/uncontrollable/cjs/uncontrollable"));l.uncontrollable=u.default}); +;/*!node_modules/compute-scroll-into-view/index.js*/ +amis.define("node_modules/compute-scroll-into-view/index",function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t&&1===t.nodeType}function i(t,e){return e&&"hidden"===t?!1:"visible"!==t&&"clip"!==t}function o(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(e){return null}}function l(t){var e=o(t);return e?e.clientHeighto&&l>e||o>t&&e>l?0:t>=o&&n>=d||l>=e&&d>=n?o-t-r:l>e&&n>d||t>o&&d>n?l-e+i:0}e.__esModule=!0,e["default"]=void 0;var a=function(t,e){var n=e.scrollMode,i=e.block,o=e.inline,l=e.boundary,a=e.skipOverflowHiddenElements,c="function"==typeof l?l:function(t){return t!==l};if(!r(t))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],h=t;r(h)&&c(h);){if(h=h.parentNode,h===f){s.push(h);break}(h!==document.body||!d(h)||d(document.documentElement))&&d(h,a)&&s.push(h)}for(var m=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),W=v.height,b=v.width,H=v.top,y=v.right,M=v.bottom,x=v.left,E="start"===i||"nearest"===i?H:"end"===i?M:H+W/2,V="center"===o?x+b/2:"end"===o?y:x,I=[],C=0;C=0&&x>=0&&p>=M&&m>=y&&H>=O&&X>=M&&x>=Y&&R>=y)return I;var _=getComputedStyle(T),L=parseInt(_.borderLeftWidth,10),S=parseInt(_.borderTopWidth,10),j=parseInt(_.borderRightWidth,10),N=parseInt(_.borderBottomWidth,10),q=0,z=0,A="offsetWidth"in T?T.offsetWidth-T.clientWidth-L-j:0,F="offsetHeight"in T?T.offsetHeight-T.clientHeight-S-N:0;if(f===T)q="start"===i?E:"end"===i?E-p:"nearest"===i?u(w,w+p,p,S,N,w+E,w+E+W,W):E-p/2,z="start"===o?V:"center"===o?V-m/2:"end"===o?V-m:u(g,g+m,m,L,j,g+V,g+V+b,b),q=Math.max(0,q+w),z=Math.max(0,z+g);else{q="start"===i?E-O-S:"end"===i?E-X+N+F:"nearest"===i?u(O,X,B,S,N+F,E,E+W,W):E-(O+B/2)+F/2,z="start"===o?V-Y-L:"center"===o?V-(Y+D/2)+A/2:"end"===o?V-R+j+A:u(Y,R,D,L,j+A,V,V+b,b);var G=T.scrollLeft,J=T.scrollTop;q=Math.max(0,Math.min(J+q,T.scrollHeight-B+F)),z=Math.max(0,Math.min(G+z,T.scrollWidth-D+A)),E+=J-q,V+=G-z}I.push({el:T,top:q,left:z})}return I};e["default"]=a,n.exports=e.default}); +;/*!node_modules/@babel/runtime/helpers/assertThisInitialized.js*/ +amis.define("node_modules/@babel/runtime/helpers/assertThisInitialized",function(e,i,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.exports=r}); +;/*!node_modules/downshift/dist/downshift.cjs.js*/ +amis.define("node_modules/downshift/dist/downshift.cjs",function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}function o(e){var t=M[M.length-1]===e;M=t?M.concat([e]):[e];for(var n=r();n.lastChild;)n.removeChild(n.firstChild);M.filter(Boolean).forEach(function(e,t){n.appendChild(i(e,t))})}function i(e,t){var n=t===M.length-1?"block":"none",o=document.createElement("div");return o.style.display=n,o.textContent=e,o}function r(){return H?H:(H=document.createElement("div"),H.setAttribute("id","a11y-status-message"),H.setAttribute("role","status"),H.setAttribute("aria-live","assertive"),H.setAttribute("aria-relevant","additions text"),Object.assign(H.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),document.body.appendChild(H),H)}function s(e){return"function"==typeof e?e:u}function u(){}function l(e,t){if(null!==e){var n=b(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o})}}function a(e,t){return e===t||e.contains&&e.contains(t)}function d(e,t){function n(){i&&clearTimeout(i)}function o(){for(var o=arguments.length,r=new Array(o),s=0;o>s;s++)r[s]=arguments[s];n(),i=setTimeout(function(){i=null,e.apply(void 0,r)},t)}var i;return o.cancel=n,o}function p(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;n>i;i++)o[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(o)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function c(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),o=0;e>o;o++)n[o]=arguments[o];t.forEach(function(e){e&&e.apply(void 0,n)})}}function h(){return String(q++)}function g(){q=0}function m(e){var t=e.isOpen,n=e.highlightedItem,o=e.selectedItem,i=e.resultCount,r=e.previousResultCount,s=e.itemToString;return t?i?n&&i===r?s(n):i+" "+(1===i?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":o?s(o):""}function f(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function v(e){return"string"==typeof e.type}function I(e){return e.props}function y(e){void 0===e&&(e={});var t={};return G.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function S(e){var t=e.key,n=e.keyCode;return n>=37&&40>=n&&0!==t.indexOf("Arrow")?"Arrow"+t:t}Object.defineProperty(t,"__esModule",{value:!0});var b=n(e("node_modules/compute-scroll-into-view/index")),w=n(e("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose")),C=n(e("node_modules/@babel/runtime/helpers/extends")),x=n(e("node_modules/@babel/runtime/helpers/inheritsLoose")),P=n(e("node_modules/@babel/runtime/helpers/assertThisInitialized")),D=e("node_modules/react/index"),O=n(D),H=(n(e("node_modules/prop-types/index")),e("node_modules/react-is/index"),"undefined"==typeof document?null:document.getElementById("a11y-status-message")),M=[],E=0,A=1,_=2,k=3,R=4,T=5,K=6,V=7,B=8,L=9,U=10,N=11,j=12,F=13,z=14,W=Object.freeze({unknown:E,mouseUp:A,itemMouseEnter:_,keyDownArrowUp:k,keyDownArrowDown:R,keyDownEscape:T,keyDownEnter:K,clickItem:V,blurInput:B,changeInput:L,keyDownSpaceButton:U,clickButton:N,blurButton:j,controlledPropUpdatedSelectedItem:F,touchStart:z}),q=0,G=["highlightedIndex","inputValue","isOpen","selectedItem","type"],J=function(e){function t(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+h(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==o}),e()},t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=y(t),n.internalSetState(C({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=y(t),n.internalSetState(C({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,i,r={},u="function"==typeof e;return!u&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,C({},n.getStateAndHelpers(),e)),n.setState(function(t){t=n.getState(t);var s=u?e(t):e;s=n.props.stateReducer(t,s),o=s.hasOwnProperty("selectedItem");var l={},a={};return o&&s.selectedItem!==t.selectedItem&&(i=s.selectedItem),s.type=s.type||E,Object.keys(s).forEach(function(e){t[e]!==s[e]&&(r[e]=s[e]),"type"!==e&&(a[e]=s[e],n.isControlledProp(e)||(l[e]=s[e]))}),u&&s.hasOwnProperty("inputValue")&&n.props.onInputValueChange(s.inputValue,C({},n.getStateAndHelpers(),s)),l},function(){s(t)();var u=Object.keys(r).length>1;u&&n.props.onStateChange(r,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(r,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,i=void 0===e?{}:e,r=i.refKey,s=void 0===r?"ref":r,u=w(i,["refKey"]),l=void 0===t?{}:t,a=l.suppressRefError,d=void 0===a?!1:a;n.getRootProps.called=!0,n.getRootProps.refKey=s,n.getRootProps.suppressRefError=d;var p=n.getState(),c=p.isOpen;return C((o={},o[s]=n.rootRef,o.role="combobox",o["aria-expanded"]=c,o["aria-haspopup"]="listbox",o["aria-owns"]=c?n.menuId:null,o["aria-labelledby"]=n.labelId,o),u)},n.keyDownHandlers={ArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:R})},ArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:k})},Enter:function(e){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:K})}},Escape:function(e){e.preventDefault(),this.reset({type:T})}},n.buttonKeyDownHandlers=C({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:U})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick,i=(t.onPress,t.onKeyDown),r=t.onKeyUp,s=t.onBlur,u=w(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),l=n.getState(),a=l.isOpen,d={onClick:p(o,n.button_handleClick),onKeyDown:p(i,n.button_handleKeyDown),onKeyUp:p(r,n.button_handleKeyUp),onBlur:p(s,n.button_handleBlur)},c=u.disabled?{}:d;return C({type:"button",role:"button","aria-label":a?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},c,u)},n.button_handleKeyUp=function(e){e.preventDefault()},n.button_handleKeyDown=function(e){var t=S(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(P(P(n)),e)},n.button_handleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout(function(){return n.toggleMenu({type:N})})},n.button_handleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:j})})},n.getLabelProps=function(e){return C({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t,o=void 0===e?{}:e,i=o.onKeyDown,r=o.onBlur,s=o.onChange,u=o.onInput,l=(o.onChangeText,w(o,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),a={};t="onChange";var d=n.getState(),c=d.inputValue,h=d.isOpen,g=d.highlightedIndex;if(!l.disabled){var m;m={},m[t]=p(s,u,n.input_handleChange),m.onKeyDown=p(i,n.input_handleKeyDown),m.onBlur=p(r,n.input_handleBlur),a=m}return C({"aria-autocomplete":"list","aria-activedescendant":h&&"number"==typeof g&&g>=0?n.getItemId(g):null,"aria-controls":h?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:c,id:n.inputId},a,l)},n.input_handleKeyDown=function(e){var t=S(e);t&&n.keyDownHandlers[t]&&n.keyDownHandlers[t].call(P(P(n)),e)},n.input_handleChange=function(e){n.internalSetState({type:L,isOpen:!0,inputValue:e.target.value})},n.input_handleTextChange=function(e){n.internalSetState({type:L,isOpen:!0,inputValue:e})},n.input_handleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:B})})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var o,i=void 0===e?{}:e,r=i.refKey,s=void 0===r?"ref":r,u=i.ref,l=w(i,["refKey","ref"]),a=void 0===t?{}:t,d=a.suppressRefError,p=void 0===d?!1:d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=s,n.getMenuProps.suppressRefError=p,C((o={},o[s]=c(u,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,i=o.onMouseMove,r=o.onMouseDown,s=o.onClick,u=(o.onPress,o.index),l=o.item,a=void 0===l?void 0:l,d=w(o,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===u?(n.items.push(a),u=n.items.indexOf(a)):n.items[u]=a;var c="onClick",h=s,g=(t={onMouseMove:p(i,function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:_}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:p(r,function(e){e.preventDefault()})},t[c]=p(h,function(){n.selectItemAtIndex(u,{type:V})}),t),m=d.disabled?{onMouseDown:g.onMouseDown}:g;return C({id:n.getItemId(u),role:"option","aria-selected":n.getState().selectedItem===a},m,d)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=y(e),n.internalSetState(function(t){var o=t.selectedItem;return C({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)},t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=y(e),n.internalSetState(function(t){var n=t.isOpen;return C({isOpen:!n},e)},function(){var o=n.getState(),i=o.isOpen;i&&n.setHighlightedIndex(void 0,e),s(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=d(function(){var e=n.getState(),t=n.items[e.highlightedIndex],i=n.getItemCount(),r=n.props.getA11yStatusMessage(C({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:i,highlightedItem:t},e));n.previousResultCount=i,o(r)},200);var i=n.props,r=i.defaultHighlightedIndex,u=i.initialHighlightedIndex,l=void 0===u?r:u,a=i.defaultIsOpen,g=i.initialIsOpen,m=void 0===g?a:g,f=i.initialInputValue,v=void 0===f?"":f,I=i.initialSelectedItem,b=void 0===I?null:I,x=n.getState({highlightedIndex:l,isOpen:m,inputValue:v,selectedItem:b});return null!=x.selectedItem&&void 0===n.props.initialInputValue&&(x.inputValue=n.props.itemToString(x.selectedItem)),n.state=x,n}x(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},n.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce(function(n,o){return n[o]=t.isControlledProp(o)?t.props[o]:e[o],n},{})},n.isControlledProp=function(e){return void 0!==this.props[e]},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._rootNode)},n.moveHighlightedIndex=function(e,t){var n=this;this.getState().isOpen?this.changeHighlightedIndex(e,t):this.openMenu(function(){var e,o=t.type,i=n.getItemCount();i&&o&&(o===R&&(e=0),o===k&&(e=i-1)),n.setHighlightedIndex(e,C({},t))})},n.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(0>n)){var o=this.getState(),i=o.highlightedIndex,r=i;null===r&&(r=e>0?-1:n+1);var s=r+e;0>s?s=n:s>n&&(s=0),this.setHighlightedIndex(s,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,s=this.id,u=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,d=this.getMenuProps,p=this.getInputProps,c=this.getItemProps,h=this.openMenu,g=this.closeMenu,m=this.toggleMenu,f=this.selectItem,v=this.selectItemAtIndex,I=this.selectHighlightedItem,y=this.setHighlightedIndex,S=this.clearSelection,b=this.clearItems,w=this.reset,C=this.setItemCount,x=this.unsetItemCount,P=this.internalSetState;return{getRootProps:u,getToggleButtonProps:l,getLabelProps:a,getMenuProps:d,getInputProps:p,getItemProps:c,reset:w,openMenu:h,closeMenu:g,toggleMenu:m,selectItem:f,selectItemAtIndex:v,selectHighlightedItem:I,setHighlightedIndex:y,clearSelection:S,clearItems:b,setItemCount:C,unsetItemCount:x,setState:P,itemToString:r,id:s,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},n.componentDidMount=function(){var e=this,t=function(t,n){void 0===n&&(n=!0);var o=e.props.environment.document;return[e._rootNode,e._menuNode].some(function(e){return e&&(a(e,t)||n&&a(e,o.activeElement))})},n=function(){e.isMouseDown=!0},o=function(n){e.isMouseDown=!1;var o=t(n.target);!o&&e.getState().isOpen&&e.reset({type:A},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},i=function(n){var o=t(n.target,!1);!o&&e.getState().isOpen&&e.reset({type:z},function(){return e.props.onOuterClick(e.getStateAndHelpers())})};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",o),this.props.environment.addEventListener("touchstart",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",o),e.props.environment.removeEventListener("touchstart",i)}},n.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:F,inputValue:this.props.itemToString(this.props.selectedItem)});var n=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?t:e;n.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=f(this.props.children,u);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=f(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:v(t)?O.cloneElement(t,this.getRootProps(I(t))):void 0:null},t}(D.Component);J.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:m,itemToString:function(e){return null==e?"":String(e)},onStateChange:u,onInputValueChange:u,onUserAction:u,onChange:u,onSelect:u,onOuterClick:u,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:l},J.stateChangeTypes=W,t.default=J,t.resetIdCounter=g}); +;/*!node_modules/match-sorter/dist/match-sorter.cjs.js*/ +amis.define("node_modules/match-sorter/dist/match-sorter.cjs",function(e,t,r){"use strict";function s(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return e;var s=r.keys,a=r.threshold,l=void 0===a?O.MATCHES:a,b=e.reduce(function(e,a,b){var u=n(a,s,t,r),o=u.rank,i=u.keyIndex;return o>=l&&e.push({item:a,rank:o,index:b,keyIndex:i}),e},[]);return b.sort(c).map(function(e){var t=e.item;return t})}function n(e,t,r,s){if(!t)return{rank:l(e,r,s),keyIndex:-1};var a=d(e,t);return a.reduce(function(e,t,a){var n=e.rank,b=e.keyIndex,u=t.itemValue,o=t.attributes,i=l(u,r,s),f=o.minRanking,c=o.maxRanking;return f>i&&i>=O.MATCHES?i=f:i>c&&(i=c),i>n&&(n=i,b=a),{rank:n,keyIndex:b}},{rank:O.NO_MATCH,keyIndex:-1})}function l(e,t,r){if(e=A(e,r),t=A(t,r),t.length>e.length)return O.NO_MATCH;if(e===t)return O.CASE_SENSITIVE_EQUAL;var s=u(e),a=o(e,t,s),n=i(e,t,s);return e=e.toLowerCase(),t=t.toLowerCase(),e===t?O.EQUAL+s:0===e.indexOf(t)?O.STARTS_WITH+s:-1!==e.indexOf(" "+t)?O.WORD_STARTS_WITH+s:a?O.STRING_CASE+s:s>0&&n?O.STRING_CASE_ACRONYM+s:-1!==e.indexOf(t)?O.CONTAINS+s:1===t.length?O.NO_MATCH:-1!==b(e).indexOf(t)?O.ACRONYM+s:f(e,t)}function b(e){var t="",r=e.split(" ");return r.forEach(function(e){var r=e.split("-");r.forEach(function(e){t+=e.substr(0,1)})}),t}function u(e){var t=e.toLowerCase()!==e,r=e.includes("-"),s=e.includes("_");if(!t&&!s&&r)return y.KEBAB;if(!t&&s&&!r)return y.SNAKE;if(t&&!r&&!s){var a=e[0].toUpperCase()===e[0];return a?y.PASCAL:y.CAMEL}return y.NO_CASE}function o(e,t,r){var s=e.toLowerCase().indexOf(t.toLowerCase());switch(r){case y.SNAKE:return"_"===e[s-1];case y.KEBAB:return"-"===e[s-1];case y.PASCAL:case y.CAMEL:return-1!==s&&e[s]===e[s].toUpperCase();default:return!1}}function i(e,t,r){var s=null;switch(r){case y.SNAKE:s="_";break;case y.KEBAB:s="-";break;case y.PASCAL:case y.CAMEL:s=/(?=[A-Z])/;break;default:s=null}var a=e.split(s);return t.toLowerCase().split("").reduce(function(e,t,r){var s=a[r];return e&&s&&s[0].toLowerCase()===t},!0)}function f(e,t){function r(e,t,r){for(var s=r;sa)return O.NO_MATCH;s=a;for(var n=1;n-1;if(!b)return O.NO_MATCH}var u=s-a;return function(e){var r=e-t.length+1,s=O.MATCHES+1/r;return s}(u)}function c(e,t){var r=-1,s=1,a=e.rank,n=e.index,l=e.keyIndex,b=t.rank,u=t.index,o=t.keyIndex;return a===b?l===o?u>n?r:s:o>l?r:s:a>b?r:s}function A(e,t){var r=t.keepDiacritics;return e=""+e,r||(e=C.clean(e)),e}function S(e,t){"object"===("undefined"==typeof t?"undefined":p(t))&&(t=t.key);var r=void 0;return r="function"==typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce(function(e,t){return e?e[t]:null},e):e[t],r?[].concat(r):null}function d(e,t){return t.reduce(function(t,r){var s=S(e,r);return s&&s.forEach(function(e){t.push({itemValue:e,attributes:v(r)})}),t},[])}function v(e){return"string"==typeof e&&(e={key:e}),E({maxRanking:1/0,minRanking:-1/0},e)}var C=s(function(e){!function(t,r){e.exports?e.exports=r():this[t]=r()}("Diacritics",function(){for(var e={map:{}},t=[{base:" ",letters:" "},{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",letters:"Þ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"ff",letters:"ff"},{base:"fi",letters:"fi"},{base:"fl",letters:"fl"},{base:"ffi",letters:"ffi"},{base:"ffl",letters:"ffl"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nñnⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",letters:"nj"},{base:"o",letters:"߀oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oe",letters:"Œœ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"ss",letters:"ß"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",letters:"þ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r=0,s=t.length;s>r;r++)for(var a=t[r].letters.split(""),n=0,l=a.length;l>n;n++)e.map[a[n]]=t[r].base;return e.clean=function(t){if(!t||!t.length||t.length<1)return"";for(var r,s="",a=t.split(""),n=0,l=a.length;l>n;n++)r=a[n],s+=r in e.map?e.map[r]:r;return s},e})}),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t=n.cleanAt&&(n.reaction.dispose(),r.current=null,v.delete(r))})),v.size>0&&b()}var h={};function w(e){return"observer"+e}function O(e,n,o){if(void 0===n&&(n="observed"),void 0===o&&(o=h),u())return e();var i=(o.useForceUpdate||c)(),a=t.useRef(null);if(!a.current){var f=new r.Reaction(w(n),(function(){s.mounted?i():(f.dispose(),a.current=null)})),s=function(e){return{cleanAt:Date.now()+1e4,reaction:e}}(f);a.current=s,v.add(a),b()}var p,d,y=a.current.reaction;if(t.useDebugValue(y,l),t.useEffect((function(){return v.delete(a),a.current?a.current.mounted=!0:(a.current={reaction:new r.Reaction(w(n),(function(){i()})),cleanAt:Infinity},i()),function(){a.current.reaction.dispose(),a.current=null}}),[]),y.track((function(){try{p=e()}catch(e){d=e}})),d)throw d;return p}var m={$$typeof:!0,render:!0,compare:!0,type:!0};function g(e){var r=e.children||e.render;return"function"!=typeof r?null:O(r)}function x(e,r,n,t,o){var u="function"==typeof e[r],i="function"==typeof e["children"===r?"render":"children"];return u&&i?new Error("MobX Observer: Do not use children and render in the same time in`"+n):u||i?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[r]+"` supplied to `"+n+"`, expected `function`.")}function S(e,n){if(!n||void 0!==e){var o=t.useState((function(){return r.observable(e,{},{deep:!1})}))[0];return r.runInAction((function(){Object.assign(o,e)})),o}}g.propTypes={children:x,render:x},g.displayName="Observer",exports.Observer=g,exports.isObserverBatched=function(){return s()[p]},exports.isUsingStaticRendering=u,exports.observer=function(e,r){if(u())return e;var t,o,c,a=i({forwardRef:!1},r),f=e.displayName||e.name,s=function(r,n){return O((function(){return e(r,n)}),f)};return s.displayName=f,t=n.memo(a.forwardRef?n.forwardRef(s):s),o=e,c=t,Object.keys(o).forEach((function(e){m[e]||Object.defineProperty(c,e,Object.getOwnPropertyDescriptor(o,e))})),t.displayName=f,t},exports.observerBatching=function(e){"function"==typeof e&&r.configure({reactionScheduler:e}),s()[p]=!0},exports.observerBatchingOptOut=function(){r.configure({reactionScheduler:void 0}),s()[p]=!0},exports.useAsObservableSource=function(e){return S(e,!1)},exports.useForceUpdate=c,exports.useLocalStore=function(e,n){var o=S(n,!0);return t.useState((function(){var n=r.observable(e(o));return function(e){if(!e||"object"!=typeof e)return!1;var r=Object.getPrototypeOf(e);return!r||r===Object.prototype}(n)&&r.runInAction((function(){Object.keys(n).forEach((function(e){var t,o,u=n[e];"function"==typeof u&&(n[e]=(t=u,o=n,function(){for(var e=arguments.length,n=new Array(e),u=0;u=r.cleanAt&&(r.reaction.dispose(),n.current=null,$.delete(n))}),$.size>0&&l()}function h(e){return"observer"+e}function m(e,n,r){if(void 0===n&&(n="observed"),void 0===r&&(r=q),o())return e();F||M()||(console.warn("[MobX] You haven't configured observer batching which might result in unexpected behavior in some cases. See more at https://github.com/mobxjs/mobx-react-lite/#observer-batching"),F=!0);var t=r.useForceUpdate||i,u=t(),c=k.useRef(null);if(!c.current){var a=new R.Reaction(h(n),function(){f.mounted?u():(a.dispose(),c.current=null)}),f=d(a);c.current=f,b(c)}var l=c.current.reaction;k.useDebugValue(l,s),k.useEffect(function(){return p(c),c.current?c.current.mounted=!0:(c.current={reaction:new R.Reaction(h(n),function(){u()}),cleanAt:1/0},u()),function(){c.current.reaction.dispose(),c.current=null}},[]);var v,m;if(l.track(function(){try{v=e()}catch(n){m=n}}),m)throw m;return v}function y(e,n){if(o())return e;var r=u({forwardRef:!1},n),t=e.displayName||e.name,i=function(n,r){return m(function(){return e(n,r)},t)};i.displayName=t;var c;return c=_.memo(r.forwardRef?_.forwardRef(i):i),g(e,c),c.displayName=t,c}function g(e,n){Object.keys(e).forEach(function(r){L[r]||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}function w(e){var n=e.children,r=e.render,t=n||r;return"function"!=typeof t?null:m(t)}function O(e,n,r,t,o){var u="children"===n?"render":"children",i="function"==typeof e[n],c="function"==typeof e[u];return i&&c?new Error("MobX Observer: Do not use children and render in the same time in`"+r):i||c?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[n]+"` supplied to `"+r+"`, expected `function`.")}function j(e,n){var r=n?"useLocalStore":"useAsObservableSource";if(n){var t=k.useState(e),o=t[0];if(void 0!==o&&void 0===e||void 0===o&&void 0!==e)throw new Error("make sure you never pass `undefined` to "+r)}if(n&&void 0===e)return void 0;if(!c(e))throw new Error(r+" expects a plain object as "+(n?"second":"first")+" argument");var u=k.useState(function(){return R.observable(e,{},{deep:!1})}),i=u[0];if(Object.keys(i).length!==Object.keys(e).length)throw new Error("the shape of objects passed to "+r+" should be stable");return R.runInAction(function(){Object.assign(i,e)}),i}function S(e){return j(e,!1)}function x(e,n){var r=j(n,!0);return k.useState(function(){var n=R.observable(e(r));return c(n)&&R.runInAction(function(){Object.keys(n).forEach(function(e){var r=n[e];"function"==typeof r&&(n[e]=E(r,n))})}),n})[0]}function E(e,n){return function(){for(var r=arguments.length,t=new Array(r),o=0;r>o;o++)t[o]=arguments[o];return R.transaction(function(){return e.apply(n,t)})}}Object.defineProperty(n,"__esModule",{value:!0});var R=e("node_modules/mobx/lib/index"),_=e("node_modules/react/index"),k=r(_);if(!_.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!R.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var A,D=!1,P={},B=a("observerBatching"),N=function(e){"function"==typeof e&&R.configure({reactionScheduler:e}),f()[B]=!0},I=function(){R.configure({reactionScheduler:void 0}),f()[B]=!0},M=function(){return f()[B]},T=1e4,U=1e4,$=new Set,q={},F=!1,L={$$typeof:!0,render:!0,compare:!0,type:!0};w.propTypes={children:O,render:O},w.displayName="Observer",n.Observer=w,n.isObserverBatched=M,n.isUsingStaticRendering=o,n.observer=y,n.observerBatching=N,n.observerBatchingOptOut=I,n.useAsObservableSource=S,n.useForceUpdate=i,n.useLocalStore=x,n.useObserver=m,n.useStaticRendering=t}); +;/*!node_modules/mobx-react-lite/dist/index.js*/ +amis.define("node_modules/mobx-react-lite/dist/index",function(e,t,i){"use strict";i.exports=e("node_modules/mobx-react-lite/dist/mobxreactlite.cjs.production.min")}); +;/*!node_modules/mobx-react/dist/mobxreact.cjs.production.min.js*/ +amis.define('node_modules/mobx-react/dist/mobxreact.cjs.production.min', function(require, exports, module, define) { + + "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("node_modules/mobx/lib/index"),t=require("node_modules/react/index"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,o=require("node_modules/mobx-react-lite/dist/index"),i=0,a={};function s(e){return a[e]||(a[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var r="__$mobx-react "+e+" ("+i+")";return i++,r}(e)),a[e]}function c(e,r){if(u(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o2?n-2:0),i=2;i",a=e.bind(this),s=!1,c=new r.Reaction(i+".render()",(function(){if(!s&&(s=!0,!0!==n[h])){var e=!0;try{l(n,g,!0),n[O]||t.Component.prototype.forceUpdate.call(n),e=!1}finally{l(n,g,!1),e&&c.dispose()}}}));function u(){s=!1;var e=void 0,t=void 0;if(c.track((function(){try{t=r._allowStateChanges(!1,a)}catch(r){e=r}})),e)throw e;return t}return c.reactComponent=this,u[m]=c,this.render=u,u.call(this)}function x(e,r){return o.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!c(this.props,e)}function P(e,t){var n=s("reactProp_"+t+"_valueHolder"),o=s("reactProp_"+t+"_atomHolder");function i(){return this[o]||l(this,o,r.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r._allowStateReadsStart&&r._allowStateReadsEnd&&(e=r._allowStateReadsStart(!0)),i.call(this).reportObserved(),r._allowStateReadsStart&&r._allowStateReadsEnd&&r._allowStateReadsEnd(e),this[n]},set:function(e){this[g]||c(this[n],e)?l(this,n,e):(l(this,n,e),l(this,O,!0),i.call(this).reportChanged(),l(this,O,!1))}})}var S="function"==typeof Symbol&&Symbol.for,R=S?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,E=S?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;function C(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),E&&e.$$typeof===E)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(R&&e.$$typeof===R){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(o.Observer,null,(function(){return r.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?w(e):o.observer(e)}function A(){return(A=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,["children"]),o=n.useContext(k),i=n.useRef(A({},o,{},t));return n.createElement(k.Provider,{value:i.current},r)}function _(e,r,t,o){var i,a,s,c=n.forwardRef((function(t,o){var i=A({},t),a=n.useContext(k);return Object.assign(i,e(a||{},i)||{}),o&&(i.ref=o),n.createElement(r,i)}));return o&&(c=C(c)),c.isMobxInjector=!0,i=r,a=c,s=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach((function(e){f[e]||-1!==s.indexOf(e)||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(i,e))})),c.wrappedComponent=r,c.displayName=function(e,r){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r?"inject-with-"+r+"("+t+")":"inject("+t+")"}(r,t),c}function M(e){return function(r,t){return e.forEach((function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}})),t}}U.displayName="MobXProvider";var $=s("disposeOnUnmountProto"),T=s("disposeOnUnmountInst");function q(){var e=this;[].concat(this[$]||[],this[T]||[]).forEach((function(r){var t="string"==typeof r?e[r]:r;null!=t&&(Array.isArray(t)?t.map((function(e){return e()})):t())}))}function D(e){function t(t,n,o,i,a,s){for(var c=arguments.length,u=new Array(c>6?c-6:0),f=6;f>",s=s||o,null==n[o]?t?new Error("The "+a+" `"+s+"` is marked as required in `"+i+"`, but its value is `"+(null===n[o]?"null":"undefined")+"`."):null:e.apply(void 0,[n,o,i,a,s].concat(u))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function N(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function B(e,t){return D((function(n,o,i,a,s){return r.untracked((function(){if(e&&N(n[o])===t.toLowerCase())return null;var a;switch(t){case"Array":a=r.isObservableArray;break;case"Object":a=r.isObservableObject;break;case"Map":a=r.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=n[o];if(!a(c)){var u=function(e){var r=N(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(c),f=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+u+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+f+".")}return null}))}))}function I(e,t){return D((function(n,o,i,a,s){for(var c=arguments.length,u=new Array(c>5?c-5:0),f=5;f2?n-2:0),i=2;n>i;i++)o[i-2]=arguments[i];r.locks++;try{var a;return void 0!==e&&null!==e&&(a=e.apply(this,o)),a}finally{r.locks--,0===r.locks&&r.methods.forEach(function(e){e.apply(t,o)})}}function l(e,r){var t=function(){for(var t=arguments.length,n=new Array(t),o=0;t>o;o++)n[o]=arguments[o];f.call.apply(f,[this,e,r].concat(n))};return t}function p(e,r,t){var n=c(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!o||!o[L]){var i=e[r],a=d(e,r,o?o.enumerable:void 0,n,i);Object.defineProperty(e,r,a)}}function d(e,r,t,n,o){var i,a=l(o,n);return i={},i[L]=!0,i.get=function(){return a},i.set=function(o){if(this===e)a=l(o,n);else{var i=d(this,r,t,n,o);Object.defineProperty(this,r,i)}},i.configurable=!0,i.enumerable=t,i}function b(e){var r=e.prototype;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==D.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==v)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=v;h(r,"props"),h(r,"state");var t=r.render;return r.render=function(){return y.call(this,t)},p(r,"componentWillUnmount",function(){if(B.isUsingStaticRendering()!==!0){if(this.render[W])this.render[W].dispose();else{var e=m(this);console.warn("The render function for an observer component ("+e+") was modified after MobX attached. This is not supported, since the new function can't be triggered by MobX.")}this[H]=!0}}),e}function m(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function y(e){function r(){i=!1;var e=void 0,r=void 0;if(a.track(function(){try{r=$._allowStateChanges(!1,o)}catch(t){e=t}}),e)throw e;return r}var t=this;if(B.isUsingStaticRendering()===!0)return e.call(this);u(this,Y,!1),u(this,z,!1);var n=m(this),o=e.bind(this),i=!1,a=new $.Reaction(n+".render()",function(){if(!i&&(i=!0,t[H]!==!0)){var e=!0;try{u(t,z,!0),t[Y]||D.Component.prototype.forceUpdate.call(t),e=!1}finally{u(t,z,!1),e&&a.dispose()}}});return a.reactComponent=this,r[W]=a,this.render=r,r.call(this)}function v(e,r){return B.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r?!0:!i(this.props,e)}function h(e,r){function t(){return this[a]||u(this,a,$.createAtom("reactive "+r)),this[a]}var n=o("reactProp_"+r+"_valueHolder"),a=o("reactProp_"+r+"_atomHolder");Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){var e=!1;return $._allowStateReadsStart&&$._allowStateReadsEnd&&(e=$._allowStateReadsStart(!0)),t.call(this).reportObserved(),$._allowStateReadsStart&&$._allowStateReadsEnd&&$._allowStateReadsEnd(e),this[n]},set:function(e){this[z]||i(this[n],e)?u(this,n,e):(u(this,n,e),u(this,Y,!0),t.call(this).reportChanged(),u(this,Y,!1))}})}function g(e){if(e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),K&&e.$$typeof===K)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(J&&e.$$typeof===J){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return D.forwardRef(function(){var e=arguments;return D.createElement(B.Observer,null,function(){return r.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(D.Component,e)?b(e):B.observer(e)}function O(){return O=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function j(e){var r=e.children,t=w(e,["children"]),n=N.useContext(Q),o=N.useRef(O({},n,{},t)),a=o.current,s=O({},a,{},t);if(!i(a,s))throw new Error("MobX Provider: The set of provided stores has changed. See: https://github.com/mobxjs/mobx-react#the-set-of-provided-stores-has-changed-error.");return N.createElement(Q.Provider,{value:a},r)}function P(e,r,t,n){var o=N.forwardRef(function(t,n){var o=O({},t),i=N.useContext(Q);return Object.assign(o,e(i||{},o)||{}),n&&(o.ref=n),N.createElement(r,o)});return n&&(o=g(o)),o.isMobxInjector=!0,s(r,o),o.wrappedComponent=r,o.displayName=x(r,t),o}function x(e,r){var t,n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t=r?"inject-with-"+r+"("+n+")":"inject("+n+")"}function S(e){return function(r,t){return e.forEach(function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}}),t}}function R(){for(var e=arguments.length,r=new Array(e),t=0;e>t;t++)r[t]=arguments[t];if("function"==typeof arguments[0]){var n=arguments[0];return function(e){return P(n,e,n.name,!0)}}return function(e){return P(S(r),e,r.join("-"),!1)}}function E(){var e=this;[].concat(this[V]||[],this[Z]||[]).forEach(function(r){var t="string"==typeof r?e[r]:r;void 0!==t&&null!==t&&(Array.isArray(t)?t.map(function(e){return e()}):t())})}function C(e,r){if(Array.isArray(r))return r.map(function(r){return C(e,r)});var t=Object.getPrototypeOf(e).constructor||Object.getPrototypeOf(e.constructor),n=Object.getPrototypeOf(e.constructor);if(t!==N.Component&&t!==N.PureComponent&&n!==N.Component&&n!==N.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if("string"!=typeof r&&"function"!=typeof r&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var o="string"==typeof r,i=!!e[V]||!!e[Z],a=o?e[V]||(e[V]=[]):e[Z]||(e[Z]=[]);return a.push(r),i||p(e,"componentWillUnmount",E),"string"!=typeof r?r:void 0}function A(e){function r(r,t,n,o,i,a){for(var s=arguments.length,u=new Array(s>6?s-6:0),c=6;s>c;c++)u[c-6]=arguments[c];return $.untracked(function(){if(o=o||"<>",a=a||n,null==t[n]){if(r){var s=null===t[n]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[t,n,o,i,a].concat(u))})}var t=r.bind(null,!1);return t.isRequired=r.bind(null,!0),t}function _(e,r){return"symbol"===e?!0:"Symbol"===r["@@toStringTag"]?!0:"function"==typeof Symbol&&r instanceof Symbol?!0:!1}function k(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(r,e)?"symbol":r}function U(e){var r=k(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}function M(e,r){return A(function(t,n,o,i,a){return $.untracked(function(){if(e&&k(t[n])===r.toLowerCase())return null;var i;switch(r){case"Array":i=$.isObservableArray;break;case"Object":i=$.isObservableObject;break;case"Map":i=$.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+r)}var s=t[n];if(!i(s)){var u=U(s),c=e?" or javascript `"+r.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `mobx.Observable"+r+"`"+c+".")}return null})})}function T(e,r){return A(function(t,n,o,i,a){for(var s=arguments.length,u=new Array(s>5?s-5:0),c=5;s>c;c++)u[c-5]=arguments[c];return $.untracked(function(){if("function"!=typeof r)return new Error("Property `"+a+"` of component `"+o+"` has invalid PropType notation.");var s=M(e,"Array")(t,n,o,i,a);if(s instanceof Error)return s;for(var c=t[n],f=0;f1),e}),t(o,r(o),d),_&&(d=s(d,m|h|i,u));for(var c=e.length;c--;)n(d,e[c]);return d});d.exports=c}); +;/*!node_modules/lodash/_baseDifference.js*/ +amis.define("node_modules/lodash/_baseDifference",function(e,o,a){function n(e,o,a,n){var t=-1,f=s,i=!0,c=e.length,m=[],p=o.length;if(!c)return m;a&&(o=r(o,u(a))),n?(f=l,i=!1):o.length>=_&&(f=h,i=!1,o=new d(o));e:for(;++t-1?t[i?o[u]:u]:void 0}}var r=e("node_modules/lodash/_baseIteratee"),a=e("node_modules/lodash/isArrayLike"),s=e("node_modules/lodash/keys");n.exports=d}); +;/*!node_modules/lodash/findIndex.js*/ +amis.define("node_modules/lodash/findIndex",function(e,n,d){function o(e,n,d){var o=null==e?0:e.length;if(!o)return-1;var r=null==d?0:s(d);return 0>r&&(r=t(o+r,0)),a(e,l(n,3),r)}var a=e("node_modules/lodash/_baseFindIndex"),l=e("node_modules/lodash/_baseIteratee"),s=e("node_modules/lodash/toInteger"),t=Math.max;d.exports=o}); +;/*!node_modules/lodash/find.js*/ +amis.define("node_modules/lodash/find",function(d,e,o){var n=d("node_modules/lodash/_createFind"),s=d("node_modules/lodash/findIndex"),a=n(s);o.exports=a}); +;/*!node_modules/setimmediate/setImmediate.js*/ +amis.define("node_modules/setimmediate/setImmediate",function(){!function(e,t){"use strict";function n(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e1?e-1:0);for(var a=1;e>a;a++)n[a-1]=arguments[a];var o=0,t="Warning: "+r.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(i){}};o=function(r,n,e){var a=arguments.length;e=new Array(a>2?a-2:0);for(var o=2;a>o;o++)e[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||t.apply(null,[n].concat(e))}}e.exports=o}); ;/*!node_modules/prop-types-extra/lib/deprecated.js*/ -amis.define("node_modules/prop-types-extra/lib/deprecated",function(e,r,n){"use strict";function t(e){return e&&e.__esModule?e:{"default":e}}function u(e,r){return function(n,t,u,a,o){var f=u||"<>",i=o||t;if(null!=n[t]){var l=u+"."+t;d.default(s[l],"The "+a+" `"+i+"` of "+("`"+f+"` is deprecated. "+r+".")),s[l]=!0}for(var c=arguments.length,p=Array(c>5?c-5:0),_=5;c>_;_++)p[_-5]=arguments[_];return e.apply(void 0,[n,t,u,a,o].concat(p))}}function a(){s={}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var o=e("node_modules/warning/browser"),d=t(o),s={};u._resetWarned=a,n.exports=r["default"]}); +amis.define("node_modules/prop-types-extra/lib/deprecated",function(e,n,r){"use strict";function t(e){return e&&e.__esModule?e:{"default":e}}function a(e,n){return function(r,t,a,o,u){var i=a||"<>",l=u||t;if(null!=r[t]){var f=a+"."+t;d.default(s[f],"The "+o+" `"+l+"` of "+("`"+i+"` is deprecated. "+n+".")),s[f]=!0}for(var p=arguments.length,c=Array(p>5?p-5:0),_=5;p>_;_++)c[_-5]=arguments[_];return e.apply(void 0,[r,t,a,o,u].concat(c))}}function o(){s={}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var u=e("node_modules/prop-types-extra/node_modules/warning/warning"),d=t(u),s={};a._resetWarned=o,r.exports=n["default"]}); ;/*!node_modules/prop-types-extra/lib/elementType.js*/ amis.define("node_modules/prop-types-extra/lib/elementType",function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function l(e,t,n,o,l){var a=e[t];return r.default.isValidElement(a)?new Error("Invalid "+o+" `"+l+"` of type ReactElement "+("supplied to `"+n+"`,expected an element type (a string ")+", component class, or function component)."):d.isValidElementType(a)?null:new Error("Invalid "+o+" `"+l+"` of value `"+a+"` "+("supplied to `"+n+"`, expected an element type (a string ")+", component class, or function component).")}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/react/index"),r=o(a),d=e("node_modules/react-is/index"),i=e("node_modules/prop-types-extra/lib/utils/createChainableTypeChecker"),u=o(i);t.default=u.default(l),n.exports=t["default"]}); ;/*!node_modules/dom-helpers/class/index.js*/ @@ -1664,8 +1760,6 @@ amis.define("node_modules/react-overlays/lib/RefHolder",function(e,t,n){"use str amis.define("node_modules/react-overlays/lib/utils/addFocusListener",function(e,n,t){"use strict";function o(e){var n=!document.addEventListener,t=void 0;return n?(document.attachEvent("onfocusin",e),t=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),t=function(){return document.removeEventListener("focus",e,!0)}),{remove:t}}n.__esModule=!0,n.default=o,t.exports=n["default"]}); ;/*!node_modules/react-overlays/lib/Modal.js*/ amis.define("node_modules/react-overlays/lib/Modal",function(e,o,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function s(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}function a(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}o.__esModule=!0;var i=Object.assign||function(e){for(var o=1;ou;u++)d[u]=arguments[u];return t=n=s(this,e.call.apply(e,[this].concat(d))),q.call(n),a=t,s(n,a)}return a(o,e),o.prototype.omitProps=function(e,o){var t=Object.keys(e),n={};return t.map(function(t){Object.prototype.hasOwnProperty.call(o,t)||(n[t]=e[t])}),n},o.prototype.render=function(){var e=this.props,t=e.show,n=e.container,r=e.children,s=e.transition,a=e.backdrop,d=e.className,u=e.style,l=e.onExit,c=e.onExiting,p=e.onEnter,f=e.onEntering,h=e.onEntered,m=_.default.Children.only(r),y=this.omitProps(this.props,o.propTypes),b=t||s&&!this.state.exited;if(!b)return null;var E=m.props,g=E.role,w=E.tabIndex;return(void 0===g||void 0===w)&&(m=k.cloneElement(m,{role:void 0===g?"document":g,tabIndex:null==w?"-1":w})),s&&(m=_.default.createElement(s,{appear:!0,unmountOnExit:!0,"in":t,onExit:l,onExiting:c,onExited:this.handleHidden,onEnter:p,onEntering:f,onEntered:h},m)),_.default.createElement(K.default,{ref:this.setMountNode,container:n,onRendered:this.onPortalRendered},_.default.createElement("div",i({ref:this.setModalNodeRef,role:g||"dialog"},y,{style:u,className:d}),a&&this.renderBackdrop(),_.default.createElement(P.default,{ref:this.setDialogRef},m)))},o.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},o.prototype.componentWillUpdate=function(e){!this.props.show&&e.show&&this.checkForFocus()},o.prototype.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},o.prototype.componentDidUpdate=function(e){var o=this.props.transition;!e.show||this.props.show||o?!e.show&&this.props.show&&this.onShow():this.onHide()},o.prototype.componentWillUnmount=function(){var e=this.props,o=e.show,t=e.transition;this._isMounted=!1,(o||t&&!this.state.exited)&&this.onHide()},o.prototype.autoFocus=function(){if(this.props.autoFocus){var e=this.getDialogElement(),o=u.default(I.default(this));e&&!c.default(e,o)&&(this.lastFocus=o,e.hasAttribute("tabIndex")||(M.default(!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'),e.setAttribute("tabIndex",-1)),e.focus())}},o.prototype.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},o.prototype.getDialogElement=function(){return F.default.findDOMNode(this.dialog)},o.prototype.isTopModal=function(){return this.props.manager.isTopModal(this)},o}(_.default.Component);W.propTypes=i({},K.default.propTypes,{show:m.default.bool,container:m.default.oneOfType([b.default,m.default.func]),onShow:m.default.func,onHide:m.default.func,backdrop:m.default.oneOfType([m.default.bool,m.default.oneOf(["static"])]),renderBackdrop:m.default.func,onEscapeKeyDown:m.default.func,onEscapeKeyUp:g.default(m.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:m.default.func,backdropStyle:m.default.object,backdropClassName:m.default.string,containerClassName:m.default.string,keyboard:m.default.bool,transition:v.default,backdropTransition:v.default,autoFocus:m.default.bool,enforceFocus:m.default.bool,restoreFocus:m.default.bool,onEnter:m.default.func,onEntering:m.default.func,onEntered:m.default.func,onExit:m.default.func,onExiting:m.default.func,onExited:m.default.func,manager:m.default.object.isRequired}),W.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:A,renderBackdrop:function(e){return _.default.createElement("div",e)}};var q=function(){var e=this;this.state={exited:!this.props.show},this.renderBackdrop=function(){var o=e.props,t=o.backdropStyle,n=o.backdropClassName,r=o.renderBackdrop,s=o.backdropTransition,a=function(o){return e.backdrop=o},i=r({ref:a,style:t,className:n,onClick:e.handleBackdropClick});return s&&(i=_.default.createElement(s,{appear:!0,"in":e.props.show},i)),i},this.onPortalRendered=function(){e.autoFocus(),e.props.onShow&&e.props.onShow()},this.onShow=function(){var o=I.default(e),t=L.default(e.props.container,o.body);e.props.manager.add(e,t,e.props.containerClassName),e._onDocumentKeydownListener=H.default(o,"keydown",e.handleDocumentKeyDown),e._onDocumentKeyupListener=H.default(o,"keyup",e.handleDocumentKeyUp),e._onFocusinListener=j.default(e.enforceFocus)},this.onHide=function(){e.props.manager.remove(e),e._onDocumentKeydownListener.remove(),e._onDocumentKeyupListener.remove(),e._onFocusinListener.remove(),e.props.restoreFocus&&e.restoreLastFocus()},this.setMountNode=function(o){e.mountNode=o?o.getMountNode():o},this.setModalNodeRef=function(o){e.modalNode=o},this.setDialogRef=function(o){e.dialog=o},this.handleHidden=function(){if(e.setState({exited:!0}),e.onHide(),e.props.onExited){var o;(o=e.props).onExited.apply(o,arguments)}},this.handleBackdropClick=function(o){o.target===o.currentTarget&&(e.props.onBackdropClick&&e.props.onBackdropClick(o),e.props.backdrop===!0&&e.props.onHide())},this.handleDocumentKeyDown=function(o){e.props.keyboard&&27===o.keyCode&&e.isTopModal()&&(e.props.onEscapeKeyDown&&e.props.onEscapeKeyDown(o),e.props.onHide())},this.handleDocumentKeyUp=function(o){e.props.keyboard&&27===o.keyCode&&e.isTopModal()&&e.props.onEscapeKeyUp&&e.props.onEscapeKeyUp(o)},this.checkForFocus=function(){f.default&&(e.lastFocus=u.default())},this.enforceFocus=function(){if(e.props.enforceFocus&&e._isMounted&&e.isTopModal()){var o=e.getDialogElement(),t=u.default(I.default(e));o&&!c.default(o,t)&&o.focus()}}};W.Manager=T.default,o.default=W,t.exports=o["default"]}); -;/*!node_modules/@babel/runtime/helpers/extends.js*/ -amis.define("node_modules/@babel/runtime/helpers/extends",function(e,n,r){function t(){return r.exports=t=Object.assign||function(e){for(var n=1;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t1?n-1:0),r=1;n>r;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},transition:f.default,onEnter:u.default.func,onEntering:u.default.func,onEntered:u.default.func,onExit:u.default.func,onExiting:u.default.func,onExited:u.default.func}),t.default=x,n.exports=t["default"]}); ;/*!node_modules/react-overlays/lib/index.js*/ amis.define("node_modules/react-overlays/lib/index",function(e,o){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}o.__esModule=!0,o.RootCloseWrapper=o.Position=o.Portal=o.Overlay=o.Modal=o.AutoAffix=o.Affix=void 0;var a=e("node_modules/react-overlays/lib/Affix"),t=l(a),d=e("node_modules/react-overlays/lib/AutoAffix"),r=l(d),i=e("node_modules/react-overlays/lib/Modal"),s=l(i),u=e("node_modules/react-overlays/lib/Overlay"),f=l(u),n=e("node_modules/react-overlays/lib/Portal"),v=l(n),_=e("node_modules/react-overlays/lib/Position"),c=l(_),y=e("node_modules/react-overlays/lib/RootCloseWrapper"),m=l(y);o.Affix=t.default,o.AutoAffix=r.default,o.Modal=s.default,o.Overlay=f.default,o.Portal=v.default,o.Position=c.default,o.RootCloseWrapper=m.default}); -;/*!node_modules/@babel/runtime/helpers/typeof.js*/ -amis.define("node_modules/@babel/runtime/helpers/typeof",function(o,t,e){function n(o){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(o)}e.exports=n}); -;/*!node_modules/@babel/runtime/helpers/interopRequireWildcard.js*/ -amis.define("node_modules/@babel/runtime/helpers/interopRequireWildcard",function(e,r,t){function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{"default":e};var r=n();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var f=o?Object.getOwnPropertyDescriptor(e,i):null;f&&(f.get||f.set)?Object.defineProperty(t,i,f):t[i]=e[i]}return t["default"]=e,r&&r.set(e,t),t}var u=e("node_modules/@babel/runtime/helpers/typeof");t.exports=o}); -;/*!node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js*/ -amis.define("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose",function(e,n,t){function o(e,n){if(null==e)return{};var t,o,r={},i=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}t.exports=o}); -;/*!node_modules/uncontrollable/cjs/utils.js*/ -amis.define("node_modules/uncontrollable/cjs/utils",function(e,n){"use strict";function t(e,n){var t={};return Object.keys(e).forEach(function(e){t[r(e)]=c}),t}function o(e,n){return void 0!==e[n]}function r(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function u(e){return!!e&&("function"!=typeof e||e.prototype&&e.prototype.isReactComponent)}var i=e("node_modules/@babel/runtime/helpers/interopRequireDefault");n.__esModule=!0,n.uncontrolledPropTypes=t,n.isProp=o,n.defaultKey=r,n.canAcceptRef=u;var c=(i(e("node_modules/invariant/browser")),function(){})}); -;/*!node_modules/uncontrollable/cjs/hook.js*/ -amis.define("node_modules/uncontrollable/cjs/hook",function(e,r,t){"use strict";function n(e){var r=o(e,"string");return"symbol"==typeof r?r:String(r)}function o(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function u(e,r){return Object.keys(r).reduce(function(t,o){var u,l=t[c.defaultKey(o)],i=t[o],f=s.default(t,[c.defaultKey(o),o].map(n)),m=r[o],b=d.useRef({}),p=d.useState(l),v=p[0],y=p[1],_=c.isProp(e,o),h=c.isProp(b.current,o);b.current=e,!_&&h&&y(l);var g=e[m],j=d.useCallback(function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;r>n;n++)t[n-1]=arguments[n];g&&g.apply(void 0,[e].concat(t)),y(e)},[y,g]);return a.default({},f,(u={},u[o]=_?i:v,u[m]=j,u))},e)}var l=e("node_modules/@babel/runtime/helpers/interopRequireWildcard"),i=e("node_modules/@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.default=u;var a=i(e("node_modules/@babel/runtime/helpers/extends")),s=i(e("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose")),d=e("node_modules/react/index"),c=l(e("node_modules/uncontrollable/cjs/utils"));t.exports=r["default"]}); -;/*!node_modules/@babel/runtime/helpers/inheritsLoose.js*/ -amis.define("node_modules/@babel/runtime/helpers/inheritsLoose",function(e,o,t){function r(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}t.exports=r}); -;/*!node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs.js*/ -amis.define("node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs",function(t,e){"use strict";function n(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function o(t){function e(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}this.setState(e.bind(this))}function i(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function l(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var l=null,p=null,r=null;if("function"==typeof e.componentWillMount?l="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(l="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?p="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(p="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?r="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==l||null!==p||null!==r){var s=t.displayName||t.name,a="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==l?"\n "+l:"")+(null!==p?"\n "+p:"")+(null!==r?"\n "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=n,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}Object.defineProperty(e,"__esModule",{value:!0}),n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,e.polyfill=l}); -;/*!node_modules/uncontrollable/cjs/uncontrollable.js*/ -amis.define("node_modules/uncontrollable/cjs/uncontrollable",function(e,n,t){"use strict";function r(e,n,t){void 0===t&&(t=[]);var o=e.displayName||e.name||"Component",a=f.canAcceptRef(e),d=Object.keys(n),p=d.map(f.defaultKey);!a&&t.length?invariant(!1):void 0;var m=function(r){function o(){for(var e,o=arguments.length,a=new Array(o),l=0;o>l;l++)a[l]=arguments[l];e=r.call.apply(r,[this].concat(a))||this,e.handlers=Object.create(null),d.forEach(function(t){var r=n[t],o=function(n){if(e.props[r]){var o;e._notifying=!0;for(var a=arguments.length,l=new Array(a>1?a-1:0),i=1;a>i;i++)l[i-1]=arguments[i];(o=e.props)[r].apply(o,[n].concat(l)),e._notifying=!1}e.unmounted||e.setState(function(e){var r,o=e.values;return{values:u.default(Object.create(null),o,(r={},r[t]=n,r))}})};e.handlers[r]=o}),t.length&&(e.attachRef=function(n){e.inner=n});var i=Object.create(null);return d.forEach(function(n){i[n]=e.props[f.defaultKey(n)]}),e.state={values:i,prevProps:{}},e}i.default(o,r);var a=o.prototype;return a.shouldComponentUpdate=function(){return!this._notifying},o.getDerivedStateFromProps=function(e,n){var t=n.values,r=n.prevProps,o={values:u.default(Object.create(null),t),prevProps:{}};return d.forEach(function(n){o.prevProps[n]=e[n],!f.isProp(e,n)&&f.isProp(r,n)&&(o.values[n]=e[f.defaultKey(n)])}),o},a.componentWillUnmount=function(){this.unmounted=!0},a.render=function(){var n=this,t=this.props,r=t.innerRef,o=l.default(t,["innerRef"]);p.forEach(function(e){delete o[e]});var a={};return d.forEach(function(e){var t=n.props[e];a[e]=void 0!==t?t:n.state.values[e]}),s.default.createElement(e,u.default({},o,a,this.handlers,{ref:r||this.attachRef}))},o}(s.default.Component);c.polyfill(m),m.displayName="Uncontrolled("+o+")",m.propTypes=u.default({innerRef:function(){}},f.uncontrolledPropTypes(n,o)),t.forEach(function(e){m.prototype[e]=function(){var n;return(n=this.inner)[e].apply(n,arguments)}});var v=m;return s.default.forwardRef&&(v=s.default.forwardRef(function(e,n){return s.default.createElement(m,u.default({},e,{innerRef:n}))}),v.propTypes=m.propTypes),v.ControlledComponent=e,v.deferControlTo=function(e,t,o){return void 0===t&&(t={}),r(e,u.default({},n,t),o)},v}var o=e("node_modules/@babel/runtime/helpers/interopRequireWildcard"),a=e("node_modules/@babel/runtime/helpers/interopRequireDefault");n.__esModule=!0,n.default=r;var l=a(e("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose")),u=a(e("node_modules/@babel/runtime/helpers/extends")),i=a(e("node_modules/@babel/runtime/helpers/inheritsLoose")),s=a(e("node_modules/react/index")),c=e("node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs"),f=(a(e("node_modules/invariant/browser")),o(e("node_modules/uncontrollable/cjs/utils")));t.exports=n["default"]}); -;/*!node_modules/uncontrollable/cjs/index.js*/ -amis.define("node_modules/uncontrollable/cjs/index",function(e,l){"use strict";var o=e("node_modules/@babel/runtime/helpers/interopRequireDefault");l.__esModule=!0,l.uncontrollable=l.useUncontrolled=void 0;var n=o(e("node_modules/uncontrollable/cjs/hook"));l.useUncontrolled=n.default;var u=o(e("node_modules/uncontrollable/cjs/uncontrollable"));l.uncontrollable=u.default}); -;/*!node_modules/compute-scroll-into-view/index.js*/ -amis.define("node_modules/compute-scroll-into-view/index",function(t,e,n){"use strict";function i(t){return null!=t&&"object"==typeof t&&1===t.nodeType}function o(t,e){return e&&"hidden"===t?!1:"visible"!==t&&"clip"!==t}function r(t,e){if(t.clientHeightr&&l>e||r>t&&e>l?0:t>=r&&n>=d||l>=e&&d>=n?r-t-i:l>e&&n>d||t>r&&d>n?l-e+o:0}e.__esModule=!0,e.default=void 0;var d=function(t,e){var n=e.scrollMode,o=e.block,d=e.inline,s=e.boundary,a=e.skipOverflowHiddenElements,u="function"==typeof s?s:function(t){return t!==s};if(!i(t))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,h=[],c=t;i(c)&&u(c);){if(c=c.parentNode,c===f){h.push(c);break}(c!==document.body||!r(c)||r(document.documentElement))&&r(c,a)&&h.push(c)}for(var p=window.visualViewport?visualViewport.width:innerWidth,g=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),b=v.height,W=v.width,y=v.top,H=v.right,M=v.bottom,x=v.left,E="start"===o||"nearest"===o?y:"end"===o?M:y+b/2,I="center"===d?x+W/2:"end"===d?H:x,C=[],T=0;T=0&&x>=0&&g>=M&&p>=H&&y>=R&&Y>=M&&x>=_&&X>=H)return C;var L=getComputedStyle(V),S=parseInt(L.borderLeftWidth,10),j=parseInt(L.borderTopWidth,10),N=parseInt(L.borderRightWidth,10),q=parseInt(L.borderBottomWidth,10),z=0,A=0,D="offsetWidth"in V?V.offsetWidth-V.clientWidth-S-N:0,F="offsetHeight"in V?V.offsetHeight-V.clientHeight-j-q:0;if(f===V)z="start"===o?E:"end"===o?E-g:"nearest"===o?l(w,w+g,g,j,q,w+E,w+E+b,b):E-g/2,A="start"===d?I:"center"===d?I-p/2:"end"===d?I-p:l(m,m+p,p,S,N,m+I,m+I+W,W),z=Math.max(0,z+w),A=Math.max(0,A+m);else{z="start"===o?E-R-j:"end"===o?E-Y+q+F:"nearest"===o?l(R,Y,B,j,q+F,E,E+b,b):E-(R+B/2)+F/2,A="start"===d?I-_-S:"center"===d?I-(_+O/2)+D/2:"end"===d?I-X+N+D:l(_,X,O,S,N+D,I,I+W,W);var G=V.scrollLeft,J=V.scrollTop;z=Math.max(0,Math.min(J+z,V.scrollHeight-B+F)),A=Math.max(0,Math.min(G+A,V.scrollWidth-O+D)),E+=J-z,I+=G-A}C.push({el:V,top:z,left:A})}return C};e.default=d,n.exports=e.default}); -;/*!node_modules/@babel/runtime/helpers/assertThisInitialized.js*/ -amis.define("node_modules/@babel/runtime/helpers/assertThisInitialized",function(e,i,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.exports=r}); -;/*!node_modules/downshift/dist/downshift.cjs.js*/ -amis.define("node_modules/downshift/dist/downshift.cjs",function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}function o(e){var t=M[M.length-1]===e;M=t?M.concat([e]):[e];for(var n=r();n.lastChild;)n.removeChild(n.firstChild);M.filter(Boolean).forEach(function(e,t){n.appendChild(i(e,t))})}function i(e,t){var n=t===M.length-1?"block":"none",o=document.createElement("div");return o.style.display=n,o.textContent=e,o}function r(){return H?H:(H=document.createElement("div"),H.setAttribute("id","a11y-status-message"),H.setAttribute("role","status"),H.setAttribute("aria-live","assertive"),H.setAttribute("aria-relevant","additions text"),Object.assign(H.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),document.body.appendChild(H),H)}function s(e){return"function"==typeof e?e:u}function u(){}function l(e,t){if(null!==e){var n=b(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o})}}function a(e,t){return e===t||e.contains&&e.contains(t)}function d(e,t){function n(){i&&clearTimeout(i)}function o(){for(var o=arguments.length,r=new Array(o),s=0;o>s;s++)r[s]=arguments[s];n(),i=setTimeout(function(){i=null,e.apply(void 0,r)},t)}var i;return o.cancel=n,o}function p(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;n>i;i++)o[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(o)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function c(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),o=0;e>o;o++)n[o]=arguments[o];t.forEach(function(e){e&&e.apply(void 0,n)})}}function h(){return String(q++)}function g(){q=0}function m(e){var t=e.isOpen,n=e.highlightedItem,o=e.selectedItem,i=e.resultCount,r=e.previousResultCount,s=e.itemToString;return t?i?n&&i===r?s(n):i+" "+(1===i?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":o?s(o):""}function f(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function v(e){return"string"==typeof e.type}function I(e){return e.props}function y(e){void 0===e&&(e={});var t={};return G.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function S(e){var t=e.key,n=e.keyCode;return n>=37&&40>=n&&0!==t.indexOf("Arrow")?"Arrow"+t:t}Object.defineProperty(t,"__esModule",{value:!0});var b=n(e("node_modules/compute-scroll-into-view/index")),w=n(e("node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose")),C=n(e("node_modules/@babel/runtime/helpers/extends")),x=n(e("node_modules/@babel/runtime/helpers/inheritsLoose")),P=n(e("node_modules/@babel/runtime/helpers/assertThisInitialized")),D=e("node_modules/react/index"),O=n(D),H=(n(e("node_modules/prop-types/index")),e("node_modules/react-is/index"),"undefined"==typeof document?null:document.getElementById("a11y-status-message")),M=[],E=0,A=1,_=2,k=3,R=4,T=5,K=6,V=7,B=8,L=9,U=10,N=11,j=12,F=13,z=14,W=Object.freeze({unknown:E,mouseUp:A,itemMouseEnter:_,keyDownArrowUp:k,keyDownArrowDown:R,keyDownEscape:T,keyDownEnter:K,clickItem:V,blurInput:B,changeInput:L,keyDownSpaceButton:U,clickButton:N,blurButton:j,controlledPropUpdatedSelectedItem:F,touchStart:z}),q=0,G=["highlightedIndex","inputValue","isOpen","selectedItem","type"],J=function(e){function t(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+h(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==o}),e()},t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=y(t),n.internalSetState(C({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=y(t),n.internalSetState(C({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,i,r={},u="function"==typeof e;return!u&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,C({},n.getStateAndHelpers(),e)),n.setState(function(t){t=n.getState(t);var s=u?e(t):e;s=n.props.stateReducer(t,s),o=s.hasOwnProperty("selectedItem");var l={},a={};return o&&s.selectedItem!==t.selectedItem&&(i=s.selectedItem),s.type=s.type||E,Object.keys(s).forEach(function(e){t[e]!==s[e]&&(r[e]=s[e]),"type"!==e&&(a[e]=s[e],n.isControlledProp(e)||(l[e]=s[e]))}),u&&s.hasOwnProperty("inputValue")&&n.props.onInputValueChange(s.inputValue,C({},n.getStateAndHelpers(),s)),l},function(){s(t)();var u=Object.keys(r).length>1;u&&n.props.onStateChange(r,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(r,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,i=void 0===e?{}:e,r=i.refKey,s=void 0===r?"ref":r,u=w(i,["refKey"]),l=void 0===t?{}:t,a=l.suppressRefError,d=void 0===a?!1:a;n.getRootProps.called=!0,n.getRootProps.refKey=s,n.getRootProps.suppressRefError=d;var p=n.getState(),c=p.isOpen;return C((o={},o[s]=n.rootRef,o.role="combobox",o["aria-expanded"]=c,o["aria-haspopup"]="listbox",o["aria-owns"]=c?n.menuId:null,o["aria-labelledby"]=n.labelId,o),u)},n.keyDownHandlers={ArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:R})},ArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:k})},Enter:function(e){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:K})}},Escape:function(e){e.preventDefault(),this.reset({type:T})}},n.buttonKeyDownHandlers=C({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:U})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick,i=(t.onPress,t.onKeyDown),r=t.onKeyUp,s=t.onBlur,u=w(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),l=n.getState(),a=l.isOpen,d={onClick:p(o,n.button_handleClick),onKeyDown:p(i,n.button_handleKeyDown),onKeyUp:p(r,n.button_handleKeyUp),onBlur:p(s,n.button_handleBlur)},c=u.disabled?{}:d;return C({type:"button",role:"button","aria-label":a?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},c,u)},n.button_handleKeyUp=function(e){e.preventDefault()},n.button_handleKeyDown=function(e){var t=S(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(P(P(n)),e)},n.button_handleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout(function(){return n.toggleMenu({type:N})})},n.button_handleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:j})})},n.getLabelProps=function(e){return C({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t,o=void 0===e?{}:e,i=o.onKeyDown,r=o.onBlur,s=o.onChange,u=o.onInput,l=(o.onChangeText,w(o,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),a={};t="onChange";var d=n.getState(),c=d.inputValue,h=d.isOpen,g=d.highlightedIndex;if(!l.disabled){var m;m={},m[t]=p(s,u,n.input_handleChange),m.onKeyDown=p(i,n.input_handleKeyDown),m.onBlur=p(r,n.input_handleBlur),a=m}return C({"aria-autocomplete":"list","aria-activedescendant":h&&"number"==typeof g&&g>=0?n.getItemId(g):null,"aria-controls":h?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:c,id:n.inputId},a,l)},n.input_handleKeyDown=function(e){var t=S(e);t&&n.keyDownHandlers[t]&&n.keyDownHandlers[t].call(P(P(n)),e)},n.input_handleChange=function(e){n.internalSetState({type:L,isOpen:!0,inputValue:e.target.value})},n.input_handleTextChange=function(e){n.internalSetState({type:L,isOpen:!0,inputValue:e})},n.input_handleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:B})})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var o,i=void 0===e?{}:e,r=i.refKey,s=void 0===r?"ref":r,u=i.ref,l=w(i,["refKey","ref"]),a=void 0===t?{}:t,d=a.suppressRefError,p=void 0===d?!1:d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=s,n.getMenuProps.suppressRefError=p,C((o={},o[s]=c(u,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,i=o.onMouseMove,r=o.onMouseDown,s=o.onClick,u=(o.onPress,o.index),l=o.item,a=void 0===l?void 0:l,d=w(o,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===u?(n.items.push(a),u=n.items.indexOf(a)):n.items[u]=a;var c="onClick",h=s,g=(t={onMouseMove:p(i,function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:_}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:p(r,function(e){e.preventDefault()})},t[c]=p(h,function(){n.selectItemAtIndex(u,{type:V})}),t),m=d.disabled?{onMouseDown:g.onMouseDown}:g;return C({id:n.getItemId(u),role:"option","aria-selected":n.getState().selectedItem===a},m,d)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=y(e),n.internalSetState(function(t){var o=t.selectedItem;return C({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)},t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=y(e),n.internalSetState(function(t){var n=t.isOpen;return C({isOpen:!n},e)},function(){var o=n.getState(),i=o.isOpen;i&&n.setHighlightedIndex(void 0,e),s(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=d(function(){var e=n.getState(),t=n.items[e.highlightedIndex],i=n.getItemCount(),r=n.props.getA11yStatusMessage(C({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:i,highlightedItem:t},e));n.previousResultCount=i,o(r)},200);var i=n.props,r=i.defaultHighlightedIndex,u=i.initialHighlightedIndex,l=void 0===u?r:u,a=i.defaultIsOpen,g=i.initialIsOpen,m=void 0===g?a:g,f=i.initialInputValue,v=void 0===f?"":f,I=i.initialSelectedItem,b=void 0===I?null:I,x=n.getState({highlightedIndex:l,isOpen:m,inputValue:v,selectedItem:b});return null!=x.selectedItem&&void 0===n.props.initialInputValue&&(x.inputValue=n.props.itemToString(x.selectedItem)),n.state=x,n}x(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},n.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce(function(n,o){return n[o]=t.isControlledProp(o)?t.props[o]:e[o],n},{})},n.isControlledProp=function(e){return void 0!==this.props[e]},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._rootNode)},n.moveHighlightedIndex=function(e,t){var n=this;this.getState().isOpen?this.changeHighlightedIndex(e,t):this.openMenu(function(){var e,o=t.type,i=n.getItemCount();i&&o&&(o===R&&(e=0),o===k&&(e=i-1)),n.setHighlightedIndex(e,C({},t))})},n.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(0>n)){var o=this.getState(),i=o.highlightedIndex,r=i;null===r&&(r=e>0?-1:n+1);var s=r+e;0>s?s=n:s>n&&(s=0),this.setHighlightedIndex(s,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,s=this.id,u=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,d=this.getMenuProps,p=this.getInputProps,c=this.getItemProps,h=this.openMenu,g=this.closeMenu,m=this.toggleMenu,f=this.selectItem,v=this.selectItemAtIndex,I=this.selectHighlightedItem,y=this.setHighlightedIndex,S=this.clearSelection,b=this.clearItems,w=this.reset,C=this.setItemCount,x=this.unsetItemCount,P=this.internalSetState;return{getRootProps:u,getToggleButtonProps:l,getLabelProps:a,getMenuProps:d,getInputProps:p,getItemProps:c,reset:w,openMenu:h,closeMenu:g,toggleMenu:m,selectItem:f,selectItemAtIndex:v,selectHighlightedItem:I,setHighlightedIndex:y,clearSelection:S,clearItems:b,setItemCount:C,unsetItemCount:x,setState:P,itemToString:r,id:s,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},n.componentDidMount=function(){var e=this,t=function(t,n){void 0===n&&(n=!0);var o=e.props.environment.document;return[e._rootNode,e._menuNode].some(function(e){return e&&(a(e,t)||n&&a(e,o.activeElement))})},n=function(){e.isMouseDown=!0},o=function(n){e.isMouseDown=!1;var o=t(n.target);!o&&e.getState().isOpen&&e.reset({type:A},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},i=function(n){var o=t(n.target,!1);!o&&e.getState().isOpen&&e.reset({type:z},function(){return e.props.onOuterClick(e.getStateAndHelpers())})};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",o),this.props.environment.addEventListener("touchstart",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",o),e.props.environment.removeEventListener("touchstart",i)}},n.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:F,inputValue:this.props.itemToString(this.props.selectedItem)});var n=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?t:e;n.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=f(this.props.children,u);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=f(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:v(t)?O.cloneElement(t,this.getRootProps(I(t))):void 0:null},t}(D.Component);J.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:m,itemToString:function(e){return null==e?"":String(e)},onStateChange:u,onInputValueChange:u,onUserAction:u,onChange:u,onSelect:u,onOuterClick:u,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:l},J.stateChangeTypes=W,t.default=J,t.resetIdCounter=g}); -;/*!node_modules/match-sorter/dist/match-sorter.cjs.js*/ -amis.define("node_modules/match-sorter/dist/match-sorter.cjs",function(e,t,r){"use strict";function s(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return e;var s=r.keys,a=r.threshold,l=void 0===a?O.MATCHES:a,b=e.reduce(function(e,a,b){var u=n(a,s,t,r),o=u.rank,i=u.keyIndex;return o>=l&&e.push({item:a,rank:o,index:b,keyIndex:i}),e},[]);return b.sort(c).map(function(e){var t=e.item;return t})}function n(e,t,r,s){if(!t)return{rank:l(e,r,s),keyIndex:-1};var a=d(e,t);return a.reduce(function(e,t,a){var n=e.rank,b=e.keyIndex,u=t.itemValue,o=t.attributes,i=l(u,r,s),f=o.minRanking,c=o.maxRanking;return f>i&&i>=O.MATCHES?i=f:i>c&&(i=c),i>n&&(n=i,b=a),{rank:n,keyIndex:b}},{rank:O.NO_MATCH,keyIndex:-1})}function l(e,t,r){if(e=A(e,r),t=A(t,r),t.length>e.length)return O.NO_MATCH;if(e===t)return O.CASE_SENSITIVE_EQUAL;var s=u(e),a=o(e,t,s),n=i(e,t,s);return e=e.toLowerCase(),t=t.toLowerCase(),e===t?O.EQUAL+s:0===e.indexOf(t)?O.STARTS_WITH+s:-1!==e.indexOf(" "+t)?O.WORD_STARTS_WITH+s:a?O.STRING_CASE+s:s>0&&n?O.STRING_CASE_ACRONYM+s:-1!==e.indexOf(t)?O.CONTAINS+s:1===t.length?O.NO_MATCH:-1!==b(e).indexOf(t)?O.ACRONYM+s:f(e,t)}function b(e){var t="",r=e.split(" ");return r.forEach(function(e){var r=e.split("-");r.forEach(function(e){t+=e.substr(0,1)})}),t}function u(e){var t=e.toLowerCase()!==e,r=e.includes("-"),s=e.includes("_");if(!t&&!s&&r)return y.KEBAB;if(!t&&s&&!r)return y.SNAKE;if(t&&!r&&!s){var a=e[0].toUpperCase()===e[0];return a?y.PASCAL:y.CAMEL}return y.NO_CASE}function o(e,t,r){var s=e.toLowerCase().indexOf(t.toLowerCase());switch(r){case y.SNAKE:return"_"===e[s-1];case y.KEBAB:return"-"===e[s-1];case y.PASCAL:case y.CAMEL:return-1!==s&&e[s]===e[s].toUpperCase();default:return!1}}function i(e,t,r){var s=null;switch(r){case y.SNAKE:s="_";break;case y.KEBAB:s="-";break;case y.PASCAL:case y.CAMEL:s=/(?=[A-Z])/;break;default:s=null}var a=e.split(s);return t.toLowerCase().split("").reduce(function(e,t,r){var s=a[r];return e&&s&&s[0].toLowerCase()===t},!0)}function f(e,t){function r(e,t,r){for(var s=r;sa)return O.NO_MATCH;s=a;for(var n=1;n-1;if(!b)return O.NO_MATCH}var u=s-a;return function(e){var r=e-t.length+1,s=O.MATCHES+1/r;return s}(u)}function c(e,t){var r=-1,s=1,a=e.rank,n=e.index,l=e.keyIndex,b=t.rank,u=t.index,o=t.keyIndex;return a===b?l===o?u>n?r:s:o>l?r:s:a>b?r:s}function A(e,t){var r=t.keepDiacritics;return e=""+e,r||(e=C.clean(e)),e}function S(e,t){"object"===("undefined"==typeof t?"undefined":p(t))&&(t=t.key);var r=void 0;return r="function"==typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce(function(e,t){return e?e[t]:null},e):e[t],r?[].concat(r):null}function d(e,t){return t.reduce(function(t,r){var s=S(e,r);return s&&s.forEach(function(e){t.push({itemValue:e,attributes:v(r)})}),t},[])}function v(e){return"string"==typeof e&&(e={key:e}),E({maxRanking:1/0,minRanking:-1/0},e)}var C=s(function(e){!function(t,r){e.exports?e.exports=r():this[t]=r()}("Diacritics",function(){for(var e={map:{}},t=[{base:" ",letters:" "},{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",letters:"Þ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"ff",letters:"ff"},{base:"fi",letters:"fi"},{base:"fl",letters:"fl"},{base:"ffi",letters:"ffi"},{base:"ffl",letters:"ffl"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nñnⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",letters:"nj"},{base:"o",letters:"߀oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oe",letters:"Œœ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"ss",letters:"ß"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",letters:"þ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r=0,s=t.length;s>r;r++)for(var a=t[r].letters.split(""),n=0,l=a.length;l>n;n++)e.map[a[n]]=t[r].base;return e.clean=function(t){if(!t||!t.length||t.length<1)return"";for(var r,s="",a=t.split(""),n=0,l=a.length;l>n;n++)r=a[n],s+=r in e.map?e.map[r]:r;return s},e})}),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=Object.assign||function(e){for(var t=1;t0)&&!(t=u.next()).done;)i.push(t.value)}catch(c){o={error:c}}finally{try{t&&!t.done&&(n=u["return"])&&n.call(u)}finally{if(o)throw o.error}}return i}function a(e){return e.current?r.getDependencyTree(e.current):""}function s(e){n.useEffect(function(){return e},E)}function l(){var e=f(n.useState(0),2),r=e[1],t=n.useCallback(function(){r(function(e){return e+1})},[]);return t}function d(e){if(!e||"object"!=typeof e)return!1;var r=Object.getPrototypeOf(e);return!r||r===Object.prototype}function p(e,t,o){if(void 0===t&&(t="observed"),void 0===o&&(o=k),c())return e();var u=o.useForceUpdate||l,i=u(),f=n.useRef(null);f.current||(f.current=new r.Reaction("observer("+t+")",function(){i()}));var d=function(){f.current&&!f.current.isDisposed&&(f.current.dispose(),f.current=null)};n.useDebugValue(f,a),s(function(){d()});var p,v;if(f.current.track(function(){try{p=e()}catch(r){v=r}}),v)throw d(),v;return p}function v(e,r){if(c())return e;var t=S({forwardRef:!1},r),o=e.displayName||e.name,u=function(r,n){return p(function(){return e(r,n)},o)};u.displayName=o;var i;return i=n.memo(t.forwardRef?n.forwardRef(u):u),b(e,i),i.displayName=o,i}function b(e,r){Object.keys(e).forEach(function(n){e.hasOwnProperty(n)&&!D[n]&&Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}function y(e){var r=e.children,n=e.render,t=r||n;return"function"!=typeof t?null:p(t)}function m(e,r,n,t,o){var u="children"===r?"render":"children",i="function"==typeof e[r],c="function"==typeof e[u];return i&&c?new Error("MobX Observer: Do not use children and render in the same time in`"+n):i||c?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[r]+"` supplied to `"+n+"`, expected `function`.")}function h(e,n){if(n&&void 0===e)return void 0;var t=f(x.useState(function(){return r.observable(e,{},{deep:!1})}),1),o=t[0];return r.runInAction(function(){Object.assign(o,e)}),o}function O(e){return h(e,!1)}function g(e,n){var t=h(n,!0);return x.useState(function(){var n=r.observable(e(t));return d(n)&&r.runInAction(function(){Object.keys(n).forEach(function(e){var r=n[e];"function"==typeof r&&(n[e]=w(r,n))})}),n})[0]}function w(e,n){return function(){for(var t=[],o=0;on;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},S.apply(this,arguments)},E=[],k={},D={$$typeof:!0,render:!0,compare:!0,type:!0};y.propTypes={children:m,render:m},y.displayName="Observer";var P=function(e){"function"==typeof e&&r.configure({reactionScheduler:e})};e.Observer=y,e.isUsingStaticRendering=c,e.observer=v,e.optimizeScheduler=P,e.useAsObservableSource=O,e.useComputed=o,e.useDisposable=u,e.useForceUpdate=l,e.useLocalStore=g,e.useObservable=t,e.useObserver=p,e.useStaticRendering=i,Object.defineProperty(e,"__esModule",{value:!0})})}); -;/*!node_modules/mobx-react/dist/mobx-react.js*/ -amis.define("node_modules/mobx-react/dist/mobx-react",function(e,r){function t(e){return R[e]||(R[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var r="__$mobx-react "+e+" ("+C+")";return C++,r}(e)),R[e]}function n(e,r){if(o(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var i=0;i0;)n[o]=arguments[o+2];r.locks++;try{var i;return null!=e&&(i=e.apply(this,n)),i}finally{r.locks--,0===r.locks&&r.methods.forEach(function(e){e.apply(t,n)})}}function s(e,r){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];a.call.apply(a,[this,e,r].concat(t))}}function c(e,r,t){var n=function(e,r){var t=e[E]=e[E]||{},n=t[r]=t[r]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!o||!o[U]){var i=function a(e,r,t,n,o){var i,c=s(o,n);return(i={})[U]=!0,i.get=function(){return c},i.set=function(o){if(this===e)c=s(o,n);else{var i=a(this,r,t,n,o);Object.defineProperty(this,r,i)}},i.configurable=!0,i.enumerable=t,i}(e,r,o?o.enumerable:void 0,n,e[r]);Object.defineProperty(e,r,i)}}function u(e,r){return w.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!n(this.props,e)}function f(e,r){function o(){return this[s]||i(this,s,P.createAtom("reactive "+r)),this[s]}var a=t("reactProp_"+r+"_valueHolder"),s=t("reactProp_"+r+"_atomHolder");Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){return o.call(this).reportObserved(),this[a]},set:function(e){this[M]||n(this[a],e)?i(this,a,e):(i(this,a,e),i(this,_,!0),o.call(this).reportChanged(),i(this,_,!1))}})}function l(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),D&&e.$$typeof===D)throw new Error("Mobx observer: You are trying to use 'observer' on function component wrapped to either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(T&&e.$$typeof===T){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return j.forwardRef(function(){var e=arguments;return x.createElement(w.Observer,null,function(){return r.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(j.Component,e)?function(e){var r=e.prototype;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==j.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==u)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=u;f(r,"props"),f(r,"state");var t=r.render;return r.render=function(){return function(e){function r(){a=!1;var e=void 0,r=void 0;if(s.track(function(){try{r=P._allowStateChanges(!1,o)}catch(r){e=r}}),e)throw e;return r}var t=this;if(!0===w.isUsingStaticRendering())return e.call(this);i(this,_,!1),i(this,M,!1);var n=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",o=e.bind(this),a=!1,s=new P.Reaction(n+".render()",function(){if(!a&&(a=!0,!0!==t[A])){var e=!0;try{i(t,M,!0),t[_]||j.Component.prototype.forceUpdate.call(t),e=!1}finally{i(t,M,!1),e&&s.dispose()}}});return s.reactComponent=this,r[k]=s,this.render=r,r.call(this)}.call(this,t)},c(r,"componentWillUnmount",function(){!0!==w.isUsingStaticRendering()&&(this.render[k]&&this.render[k].dispose(),this[A]=!0)}),e}(e):w.observer(e)}function p(e){var r=e.children,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===r.indexOf(n)&&(t[n]=e[n]);return t}(e,["children"]),n=x.useContext(N),o=x.useRef(Object.assign({},n,t)).current;return x.createElement(N.Provider,{value:o},r)}function d(e,r,t,n){var o,i,a,s=x.forwardRef(function(t,n){var o=Object.assign({},t),i=x.useContext(N);return Object.assign(o,e(i||{},o)||{}),n&&(o.ref=n),j.createElement(r,o)});return n&&(s=l(s)),s.isMobxInjector=!0,o=r,i=s,a=Object.getOwnPropertyNames(Object.getPrototypeOf(o)),Object.getOwnPropertyNames(o).forEach(function(e){S[e]||-1!==a.indexOf(e)||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),s.wrappedComponent=r,s.displayName=function(e,r){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r?"inject-with-"+r+"("+t+")":"inject("+t+")"}(r,t),s}function b(){var e=this;(this[I]||[]).concat(this[q]||[]).forEach(function(r){var t="string"==typeof r?e[r]:r;null!=t&&(Array.isArray(t)?t.map(function(e){return e()}):t())})}function m(e){function r(r,t,n,o,i,a){for(var s=[],c=arguments.length-6;c-->0;)s[c]=arguments[c+6];return P.untracked(function(){return o=o||"<>",a=a||n,null==t[n]?r?new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+(null===t[n]?"null":"undefined")+"`."):null:e.apply(void 0,[t,n,o,i,a].concat(s))})}var t=r.bind(null,!1);return t.isRequired=r.bind(null,!0),t}function y(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function h(e,r){return m(function(t,n,o,i,a){return P.untracked(function(){if(e&&y(t[n])===r.toLowerCase())return null;var i;switch(r){case"Array":i=P.isObservableArray;break;case"Object":i=P.isObservableObject;break;case"Map":i=P.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+r)}var s=t[n];if(!i(s)){var c=function(e){var r=y(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(s),u=e?" or javascript `"+r.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `mobx.Observable"+r+"`"+u+".")}return null})})}function v(e,r){return m(function(t,n,o,i,a){for(var s=[],c=arguments.length-5;c-->0;)s[c]=arguments[c+5];return P.untracked(function(){if("function"!=typeof r)return new Error("Property `"+a+"` of component `"+o+"` has invalid PropType notation.");var c=h(e,"Array")(t,n,o);if(c instanceof Error)return c;for(var u=t[n],f=0;f1),e}),t(o,r(o),d),_&&(d=s(d,m|h|i,u));for(var c=e.length;c--;)n(d,e[c]);return d});d.exports=c}); -;/*!node_modules/lodash/_baseDifference.js*/ -amis.define("node_modules/lodash/_baseDifference",function(e,o,a){function n(e,o,a,n){var t=-1,f=s,i=!0,c=e.length,m=[],p=o.length;if(!c)return m;a&&(o=r(o,u(a))),n?(f=l,i=!1):o.length>=_&&(f=h,i=!1,o=new d(o));e:for(;++t-1?t[i?o[u]:u]:void 0}}var r=e("node_modules/lodash/_baseIteratee"),a=e("node_modules/lodash/isArrayLike"),s=e("node_modules/lodash/keys");n.exports=d}); -;/*!node_modules/lodash/findIndex.js*/ -amis.define("node_modules/lodash/findIndex",function(e,n,d){function o(e,n,d){var o=null==e?0:e.length;if(!o)return-1;var r=null==d?0:s(d);return 0>r&&(r=t(o+r,0)),a(e,l(n,3),r)}var a=e("node_modules/lodash/_baseFindIndex"),l=e("node_modules/lodash/_baseIteratee"),s=e("node_modules/lodash/toInteger"),t=Math.max;d.exports=o}); -;/*!node_modules/lodash/find.js*/ -amis.define("node_modules/lodash/find",function(d,e,o){var n=d("node_modules/lodash/_createFind"),s=d("node_modules/lodash/findIndex"),a=n(s);o.exports=a}); -;/*!node_modules/setimmediate/setImmediate.js*/ -amis.define("node_modules/setimmediate/setImmediate",function(){!function(e,t){"use strict";function n(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;nd?l(o+i,0):r(i,o-1)),a(e,s(n,3),i,!0)}var a=e("node_modules/lodash/_baseFindIndex"),s=e("node_modules/lodash/_baseIteratee"),t=e("node_modules/lodash/toInteger"),l=Math.max,r=Math.min;d.exports=o}); ;/*!node_modules/lodash/findLast.js*/ @@ -1753,7 +1785,7 @@ amis.define("node_modules/lodash/debounce",function(n,o,t){function i(n,o,t){fun ;/*!node_modules/lodash/chunk.js*/ amis.define("node_modules/lodash/chunk",function(e,o,a){function l(e,o,a){o=(a?d(e,o,a):void 0===o)?1:t(r(o),0);var l=null==e?0:e.length;if(!l||1>o)return[];for(var u=0,i=0,h=Array(s(l/o));l>u;)h[i++]=n(e,u,u+=o);return h}var n=e("node_modules/lodash/_baseSlice"),d=e("node_modules/lodash/_isIterateeCall"),r=e("node_modules/lodash/toInteger"),s=Math.ceil,t=Math.max;a.exports=l}); ;/*!node_modules/moment/locale/zh-cn.js*/ -amis.define("node_modules/moment/locale/zh-cn",function(e,d,t,_){!function(n,m){"object"==typeof d&&"undefined"!=typeof t&&"function"==typeof e?m(e("node_modules/moment/moment")):"function"==typeof _&&_.amd?_(["../moment"],m):m(n.moment)}(this,function(e){"use strict";var d=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,d){return 12===e&&(e=0),"凌晨"===d||"早上"===d||"上午"===d?e:"下午"===d||"晚上"===d?e+12:e>=11?e:e+12},meridiem:function(e,d){var t=100*e+d;return 600>t?"凌晨":900>t?"早上":1130>t?"上午":1230>t?"中午":1800>t?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,d){switch(d){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return d})}); +amis.define("node_modules/moment/locale/zh-cn",function(e,t,d,n){!function(_,m){"object"==typeof t&&"undefined"!=typeof d&&"function"==typeof e?m(e("node_modules/moment/moment")):"function"==typeof n&&n.amd?n(["../moment"],m):m(_.moment)}(this,function(e){"use strict";var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var d=100*e+t;return 600>d?"凌晨":900>d?"早上":1130>d?"上午":1230>d?"中午":1800>d?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t})}); ;/*!node_modules/blueimp-canvastoblob/js/canvas-to-blob.js*/ amis.define("node_modules/blueimp-canvastoblob/js/canvas-to-blob",function(t,n,o,e){!function(t){"use strict";var n=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,o=t.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),a=o&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),r=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,i=(o||r)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(t){var n,e,i,l,b,u;for(n=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):decodeURIComponent(t.split(",")[1]),e=new ArrayBuffer(n.length),i=new Uint8Array(e),l=0;l=r[n]?(i.push(Math.floor(e/r[n])+t[n]),e%=r[n]):0===n&&e&&i.push((e.toFixed?e.toFixed(2):"0")+t[0]);return i.join("")}function n(e,r){return/^('|")(.*)\1$/.test(e)?RegExp.$2:/^-?\d+$/.test(e)?parseInt(e,10):/^(-?\d+)\.\d+?$/.test(e)?parseFloat(e):/,/.test(e)?e.split(/\s*,\s*/):t.resolveVariable(e,r)}function i(e,t,r,i,u){return t||!t&&i?n(t?r:i,u):e}function u(e,r){t.filters[e]=r}function a(){return t.filters}function s(e,r){var n,i;if(!e||(i=e.split(","))&&i.length<2){var u=e.indexOf("~");if(~u){var a=e.substring(0,u),s=e.substring(u+1);return n={},n[a]=t.resolveVariable(s,r),n}return t.resolveVariable(e,r)}var o={};return i.forEach(function(e){var n=e.indexOf("~"),i=e;~n&&(i=e.substring(n+1),e=e.substring(0,n)),v.setVariable(o,e,t.resolveVariable(i,r))}),o}function o(e,r,n){return void 0===n&&(n="| raw"),"string"==typeof e&&t.isPureVariable(e)?t.resolveVariableAndFilter(e,r,n):"string"==typeof e&&~e.indexOf("$")?t.tokenize(e,r,n):e}function f(e,t){var r={};return Array.isArray(e)?e.map(function(e){return f(e,t)}):e?(Object.keys(e).forEach(function(n){var i,u=e[n];if("&"===n&&"$$"===u)r=c.__assign(c.__assign({},r),t);else if("&"===n){var a=g.default(u)&&(i=Object.keys(u))&&1===i.length&&t[i[0].substring(1)]&&Array.isArray(t[i[0].substring(1)])?t[i[0].substring(1)].map(function(e){return f(u[i[0]],v.createObject(t,e))}):o(u,t);r=Array.isArray(a)||"string"==typeof a?a:"function"==typeof a?c.__assign(c.__assign({},r),a(t)):c.__assign(c.__assign({},r),a)}else if("$$"===u)r[n]=t;else if(u&&"$"===u[0]){var a=o(u,t);r[n]=a,"__undefined"===a&&delete r[n]}else if(g.default(u)&&(i=Object.keys(u))&&1===i.length&&t[i[0].substring(1)]&&Array.isArray(t[i[0].substring(1)])){var s=t[i[0].substring(1)],l=u[i[0]];r[n]=s.map(function(e){return f(l,v.createObject(t,e))})}else g.default(u)?r[n]=f(u,t):Array.isArray(u)?r[n]=u.map(function(e){return g.default(e)?f(e,t):o(e,t)}):"string"==typeof u&&~u.indexOf("$")?r[n]=o(u,t):"function"==typeof u?r[n]=u(t):(r[n]=u,"__undefined"===u&&delete r[n])}),r):r}function l(){d.reigsterTplEnginer("builtin",{test:function(e){return!!~e.indexOf("$")},compile:function(e,r,n){return void 0===n&&(n="| html"),t.tokenize(e,r,n)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.register=t.dataMapping=t.tokenize=t.resolveVariableAndFilter=t.isPureVariable=t.resolveVariable=t.pickValues=t.getFilters=t.registerFilter=t.filters=t.filterDate=t.relativeValueRe=t.formatDuration=t.escapeHtml=t.prettyBytes=void 0;var c=e("node_modules/tslib/tslib"),d=e("6a2dbb7"),p=c.__importDefault(e("node_modules/moment/moment")),g=c.__importDefault(e("node_modules/lodash/isPlainObject")),v=e("9a80175"),y=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];t.prettyBytes=function(e){if(!Number.isFinite(e))throw new TypeError("Expected a finite number, got "+typeof e+": "+e);var t=0>e;if(t&&(e=-e),1>e)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),y.length-1),n=Number((e/Math.pow(1e3,r)).toPrecision(3)),i=y[r];return(t?"-":"")+n+" "+i};var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};t.escapeHtml=function(e){return String(e).replace(/[&<>"'\/]/g,function(e){return h[e]})},t.formatDuration=r;var m={year:"Y",month:"M",week:"w",weekday:"W",day:"d",hour:"h",minute:"m",min:"m",second:"s",millisecond:"ms"};t.relativeValueRe=/^(.+)?(\+|-)(\d+)(minute|min|hour|day|week|month|year|weekday|second|millisecond)s?$/i,t.filterDate=function(e,r,n,i){void 0===r&&(r={}),void 0===n&&(n="X"),void 0===i&&(i=!1);var u,a=i?p.default.utc:p.default;if("string"==typeof e&&(e=e.trim()),e=d.filter(e,r),e&&"string"==typeof e&&(u=t.relativeValueRe.exec(e))){var s=new Date,o=parseInt(u[3],10),f=u[1]?t.filterDate(u[1],r,n,i):a(/(minute|min|hour|second)s?/.test(u[4])?[s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds()]:[s.getFullYear(),s.getMonth(),s.getDate()]);return"-"===u[2]?f.subtract(o,m[u[4]]):f.add(o,m[u[4]])}if("now"===e)return a();if("today"===e){var s=new Date;return a([s.getFullYear(),s.getMonth(),s.getDate()])}return a(e,n)},t.filters={html:function(e){return t.escapeHtml(e)},json:function(e,t){return void 0===t&&(t=2),t?JSON.stringify(e,null,parseInt(t,10)):JSON.stringify(e)},toJson:function(e){var t;try{t=JSON.parse(e)}catch(r){t=null}return t},raw:function(e){return e},date:function(e,t,r){return void 0===t&&(t="LLL"),void 0===r&&(r="X"),p.default(e,r).format(t)},number:function(e){var t=String(e).split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},trim:function(e){return e.trim()},percent:function(e,t){void 0===t&&(t=0),e=parseFloat(e)||0,t=parseInt(t,10)||0;var r=100*e,n=Math.pow(10,t);return(Math.round(r*n)/n).toFixed(t)+"%"},duration:function(e){return e?r(e):e},bytes:function(e){return e?t.prettyBytes(parseFloat(e)):e},round:function(e,t){var r;if(void 0===t&&(t=2),isNaN(e))return 0;t=null!==(r=parseInt(t,10))&&void 0!==r?r:2;var n=Math.pow(10,t);return(Math.round(e*n)/n).toFixed(t)},truncate:function(e,t,r){return r=r||"...",null==t?e:(t=parseInt(t,10)||200,e.substring(0,t)+(e.length>t?r:""))},url_encode:function(e){return encodeURIComponent(e)},url_decode:function(e){return decodeURIComponent(e)},"default":function(e,t){return e||function(){try{return"undefined"===t?void 0:JSON.parse(t)}catch(e){return t}}()},join:function(e,t){return e&&e.join?e.join(t):e},split:function(e,t){return void 0===t&&(t=","),"string"==typeof e?e.split(t):e},first:function(e){return e&&e[0]},nth:function(e,t){return void 0===t&&(t=0),e&&e[t]},last:function(e){return e&&(e.length?e[e.length-1]:null)},minus:function(e,t){return void 0===t&&(t=1),(parseInt(e,10)||0)-parseInt(t,10)},plus:function(e,t){return void 0===t&&(t=1),(parseInt(e,10)||0)+parseInt(t,10)},pick:function(e,t){return void 0===t&&(t="&"),Array.isArray(e)&&!/^\d+$/.test(t)?e.map(function(e){return s(t,e)}):s(t,e)},pick_if_exist:function(e,r){return void 0===r&&(r="&"),Array.isArray(e)?e.map(function(e){return t.resolveVariable(r,e)||e}):t.resolveVariable(r,e)||e},str2date:function(e,r,n){return void 0===r&&(r="X"),void 0===n&&(n="X"),e?t.filterDate(e,this,r).format(n):""},asArray:function(e){return Array.isArray(e)?e:e?[e]:e},filter:function(e,r,i,u){if(!Array.isArray(e)||!r||!i)return e;var a=i,s=function(){return!0};if("isTrue"===a)s=function(e){return!!e};else if("isFalse"===a)s=function(e){return!e};else if("isExists"===a)s=function(e){return"undefined"!=typeof e};else if("equals"===a||"equal"===a)u=u?n(u,this):"",s=function(e){return u==e};else if("isIn"===a){var o=u?n(u,this):[];o=Array.isArray(o)?o:[o],s=function(e){return!!~o.indexOf(e)}}else if("notIn"===a){var f=u?n(u,this):[];f=Array.isArray(f)?f:[f],s=function(e){return!~f.indexOf(e)}}else{if("match"!==a&&(a="match",u=i),u=u?n(u,this):"",!u)return e;s=function(e){return new RegExp(u,"i").test(String(e))}}return r=r.split(/\s*,\s*/),e.filter(function(e){return r.some(function(r){return s(t.resolveVariable(r,e),r,e)})})},base64Encode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},base64Decode:function(e){return decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))},lowerCase:function(e){return e&&"string"==typeof e?e.toLowerCase():e},upperCase:function(e){return e&&"string"==typeof e?e.toUpperCase():e},isTrue:function(e,t,r){return i(e,!!e,t,r,this)},isFalse:function(e,t,r){return i(e,!e,t,r,this)},isMatch:function(e,t,r,u){return t=n(t,this),i(e,t&&new RegExp(t,"i").test(String(e)),r,u,this)},notMatch:function(e,t,r,u){return t=n(t,this),i(e,t&&!new RegExp(t,"i").test(String(e)),r,u,this)},isEquals:function(e,t,r,u){return t=/^\d+$/.test(t)?parseInt(t,10):n(t,this),i(e,e===t,r,u,this)},notEquals:function(e,t,r,u){return t=/^\d+$/.test(t)?parseInt(t,10):n(t,this),i(e,e!==t,r,u,this)}},t.registerFilter=u,t.getFilters=a,t.pickValues=s,t.resolveVariable=function(e,t){if(void 0===t&&(t={}),!e)return void 0;if("$$"===e)return t;if("$"===e[0])e=e.substring(1);else if("&"===e)return t;if("undefined"!=typeof t[e])return t[e];var r=e.replace(/^{|}$/g,"").split(".");return r.reduce(function(e,t){return(v.isObject(e)||Array.isArray(e))&&t in e?e[t]:void 0},t)},t.isPureVariable=function(e){return"string"==typeof e?/^\$(?:([a-z0-9_.]+)|{[^}{]+})$/.test(e):!1},t.resolveVariableAndFilter=function(e,r,n){if(void 0===r&&(r={}),void 0===n&&(n="| html"),!e)return void 0;var i=/^(\\)?\$(?:([a-z0-9_.]+)|{([\s\S]+)})$/i.exec(e);if(!i)return void 0;var u=i[0],a=i[1],s=i[2],o=i[3];if(a)return u.substring(1);var f=s||o;f=f.replace(/(\\|\\\$)?\$(?:([a-z0-9_.]+)|{([^}{]+)})/g,function(e,i){return i?e.substring(1):t.resolveVariableAndFilter(e,r,n)}),~f.indexOf("|")||(f+=n);var l=f.split(/\s*\|\s*/g),d=f;f=l.shift();var p=t.resolveVariable(f,r),g=!1;return null!=p||~d.indexOf("default")?l.reduce(function(e,n){var i,u,a=n.replace(/([^\\])\\([\:\\])/g,function(e,t,r){return t+"__"+(":"===r?"colon":"slash")+"__"}).split(":").map(function(e){return e.replace(/__(slash|colon)__/g,function(e,t){return"colon"===t?":":"\\"})}),s=a.shift();if(~["isTrue","isFalse","isMatch","isEquals","notMatch","notEquals"].indexOf(s)){if(g)return e;var o=(i=t.filters[s]).call.apply(i,c.__spreadArrays([r,e],a));return g=o!==e,o}return g=!1,(u=t.filters[s]||t.filters.raw).call.apply(u,c.__spreadArrays([r,e],a))},p):""},t.tokenize=function(e,r,n){return void 0===n&&(n="| html"),e&&"string"==typeof e?e.replace(/(\\)?\$(?:([a-z0-9_\.]+|&|\$)|{([^}{]+?)})/gi,function(e,i,u,a,s,o){if(!i&&"$"===u){var f=o[s-1];return"="===f?encodeURIComponent(JSON.stringify(r)):v.qsstringify(r)}return i?e.substring(1):t.resolveVariableAndFilter(e,r,n)}):e},t.dataMapping=f,t.register=l}); +;/*!src/utils/tpl-lodash.ts*/ +amis.define("1267928",function(e,t){"use strict";function a(e,t){try{var a=u.getFilters(),n=r.__assign(r.__assign(r.__assign({},a),{formatTimeStamp:a.date,formatNumber:a.number,defaultValue:a.defaut}),d);delete n.default;var i=o.default(e,{imports:n,variable:"data"});return i(t)}catch(s){return''+s.message+""}}function n(){i.reigsterTplEnginer("lodash",{test:function(e){return!!~e.indexOf("<%")},compile:function(e,t){return a(e,t)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.register=void 0;var r=e("node_modules/tslib/tslib"),i=e("6a2dbb7"),o=r.__importDefault(e("node_modules/lodash/template")),u=e("f2e345e"),s=r.__importDefault(e("node_modules/moment/moment")),d={"default":void 0,moment:s.default,countDown:function(e){if(!e)return"--";var t=new Date(1e3*parseInt(e,10)),a=Date.now();return t.getTime()s;s++){var a=c[i[s]];if(a.test(e))return a.compile.apply(a,o.__spreadArrays([e,t],r))}return e}function i(e){g=e}function s(e,t){if("function"==typeof g)return g(e,t);if(!e||"string"!=typeof e)return!1;try{var r=!1,n=e.indexOf("debugger");~n&&(r=!0,e=e.replace(/debugger;?/,""));var i=new Function("data","utils","with(data) {"+(r?"debugger;":"")+"return !!("+e+");}");return t=t||{},i.call(t,t,l.getFilters())}catch(s){return console.warn(s),!1}}function u(e){v=e}function a(e,t){if("function"==typeof v)return v(e,t);try{var r=new Function("data","utils","with(data) {"+(/^\s*return\b/.test(e)?"":"return ")+e+";}");return t=t||{},r.call(t,t,l.getFilters())}catch(n){return console.warn(n),null}}Object.defineProperty(t,"__esModule",{value:!0}),t.evalJS=t.setCustomEvalJs=t.evalExpression=t.setCustomEvalExpression=t.filter=t.reigsterTplEnginer=void 0;var o=e("node_modules/tslib/tslib"),l=e("f2e345e"),f=e("1267928"),c={};t.reigsterTplEnginer=r,[l.register,f.register].forEach(function(e){return e()}),t.filter=n;var g;t.setCustomEvalExpression=i,t.evalExpression=s;var v;t.setCustomEvalJs=u,t.evalJS=a}); +;/*!src/utils/helper.ts*/ +amis.define("9a80175",function(e,n){"use strict";function r(e,n,r){e&&Object.isFrozen(e)&&(e=t(e));var i=e?Object.create(e,on.__assign(on.__assign({},r),{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,r);return n&&A(n)&&Object.keys(n).forEach(function(e){return i[e]=n[e]}),i}function t(e,n){void 0===n&&(n=!0);var r=e&&e.__super?Object.create(e.__super,{__super:{value:e.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return n&&e&&Object.keys(e).forEach(function(n){return r[n]=e[n]}),r}function i(e,n,r){void 0===r&&(r=!0);var i=t(e,r);return n&&Object.keys(n).forEach(function(e){return i[e]=n[e]}),i}function o(e,n,r,t,i){var o=on.__assign({},e),a=[];return t&&"FormStore"===t.storeType?a=sn.default(t.items.map(function(e){return(""+e.name).replace(/\..*$/,"")}).concat(Object.keys(o))):i&&(a=Object.keys(o)),(n||r)&&a.forEach(function(e){e&&(n&&"undefined"!=typeof n[e]||r&&"undefined"!=typeof r[e])&&(r&&!n||!r&&n||r[e]!==n[e])&&(o[e]=n[e])}),o}function a(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()}function u(e,n){for(var r=0,t=e.length;t>r;r++)if(n(e[r],r))return r;return-1}function c(e,n,r){return void 0===r&&(r=!0),e&&n?(r?n in e:e.hasOwnProperty(n))?e[n]:n.split(".").reduce(function(e,n){return e&&"object"==typeof e&&(r?n in e:e.hasOwnProperty(n))?e[n]:void 0},e):void 0}function s(e,n,r){if(e=e||{},n in e)return void(e[n]=r);for(var t=n.split("."),i=t.pop();t.length;){var o=t.shift();an.default(e[o])?e=e[o]=on.__assign({},e[o]):e[o]?(e[o]={},e=e[o]):(e[o]={},e=e[o])}e[i]=r}function l(e,n){if(e){if(e.hasOwnProperty(n))return void delete e[n];for(var r=n.split("."),t=r.pop();r.length;){var i=r.shift();if(!an.default(e[i])){if(e[i])throw new Error("目标路径不是纯对象,不能修改");break}e=e[i]=on.__assign({},e[i])}e&&e.hasOwnProperty&&e.hasOwnProperty(t)&&delete e[t]}}function f(e,n){for(var r=n.split(".");r.length;){var t=r.shift();if(!A(e)||!e.hasOwnProperty(t))return!1;e=e[t]}return!0}function d(){}function p(e,n,r,t){return void 0===t&&(t=!0),("string"==typeof e?e.split(/\s*,\s*/):e).some(function(e){return t?n[e]!==r[e]:n[e]!=r[e]})}function h(e){var n={};if("object"!=typeof e)return e;var r=Object.keys(e);return r.forEach(function(r){void 0!==e[r]&&(n[r]=e[r])}),n}function v(e,n,r,t){if(void 0===r&&(r=!0),void 0===t&&(t=!1),null==e||null==n||!A(e)||!A(n))return r?e!==n:e!=n;t&&(e=h(e),n=h(n));var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length||i.join(",")!==o.join(","))return!0;for(var a=i.length-1;a>=0;a--){var u=i[a];if(r?n[u]!==e[u]:v(n[u],e[u],!1,t))return!0}return!1}function m(e,n,r){if(void 0===r&&(r=!0),!Array.isArray(e)||!Array.isArray(n))return r?e!==n:e!=n;if(e.length!==n.length)return!0;for(var t=e.length-1;t>=0;t--)if(r?e[t]!==n[t]:e[t]!=n[t])return!0;return!1}function y(e,n,r){if(void 0===r&&(r=!1),!A(e)||!A(n))return e;var t=e;return Object.keys(n).forEach(function(r){var i=e[r],o=n[r];i!==o&&(t=t!==e?t:on.__assign({},e),t[r]=o)}),t}function b(e,n){void 0===n&&(n="col-sm-$value");var r=12,t=Math.floor(r/e);return function(i){if(i.columnClassName&&/\bcol-(?:xs|sm|md|lg)-(\d+)\b/.test(i.columnClassName)){var o=parseInt(RegExp.$1,10);return r-=o,e--,t=Math.floor(r/e),i.columnClassName}return i.columnClassName?(r-=t,e--,i.columnClassName):(r-=t,e--,n.replace("$value",""+t))}}function g(e,n){return!(e.hidden||e.visible===!1||e.hiddenOn&&ln.evalExpression(e.hiddenOn,n)===!0||e.visibleOn&&ln.evalExpression(e.visibleOn,n)===!1)}function _(e,n){return e.disabled||e.disabledOn&&ln.evalExpression(e.disabledOn,n)}function O(e,n,r,t){return void 0===t&&(t=!0),e.hasOwnProperty(n)?e[n]:e.hasOwnProperty(n+"On")?ln.evalExpression(e[n+"On"],r||e):t}function j(e,n){if(n>1&&/\bcol-(xs|sm|md|lg)-(\d+)\b/.test(e.left)){var r=parseInt(RegExp.$2,10)*n;return{leftFixed:e.leftFixed,left:r,right:12-r,offset:r}}if(n>1&&"number"==typeof e.left){var r=e.left*n;return{leftFixed:e.leftFixed,left:r,right:12-r,offset:r}}return e}function w(e){var n=function(){try{var n=e.apply(null,arguments);return n&&n.then?n:"function"==typeof n?new Promise(function(e,r){return n(function(n,t){return n?r(n):e(t)})}):Promise.resolve(n)}catch(r){Promise.reject(r)}};return n.raw=e,n}function x(e){if(null==e)return null;var n=getComputedStyle(e);if(!n)return null;var r=n.getPropertyValue("overflow")+n.getPropertyValue("overflow-x")+n.getPropertyValue("overflow-y");return/auto|scroll/.test(r)||"BODY"===e.nodeName?e:x(e.parentNode)}function E(e,n,r){function t(e,n){var i=sn.default(Object.keys(e).concat(Object.keys(n))),o={};return i.forEach(function(i){var a=e[i],u=n[i];r&&~r.indexOf(i)&&(o[i]=a),un.default(a,u)||(o[i]=e.hasOwnProperty(i)?Array.isArray(a)&&Array.isArray(u)?a:cn.default(a)&&cn.default(u)?t(a,u):a:void 0)}),o}return t(e,n)}function k(e){return e}function A(e){var n=typeof e;return e&&"string"!==n&&"number"!==n&&"boolean"!==n&&"function"!==n&&!Array.isArray(e)}function F(e){if("string"!=typeof e)return!!e;var n=e.split(/\s*,\s*|\s+/);if(window.matchMedia)return n.some(function(e){return"*"===e||"xs"===e&&matchMedia("screen and (max-width: 767px)").matches||"sm"===e&&matchMedia("screen and (min-width: 768px) and (max-width: 991px)").matches||"md"===e&&matchMedia("screen and (min-width: 992px) and (max-width: 1199px)").matches||"lg"===e&&matchMedia("screen and (min-width: 1200px)").matches});var r=window.innerWidth;return n.some(function(e){return"*"===e||"xs"===e&&768>r||"sm"===e&&r>=768&&992>r||"md"===e&&r>=992&&1200>r||"lg"===e&&r>=1200})}function T(e,n,r,t){var i=this;void 0===t&&(t=5e3);var o,a=!1;return new Promise(function(u,c){var s=function(){clearTimeout(o),a=!0},l=function(){return on.__awaiter(i,void 0,void 0,function(){var r,i;return on.__generator(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,e()];case 1:return r=s.sent(),a?[2]:(n(r)?(a=!0,u(r)):o=setTimeout(l,t),[3,3]);case 2:return i=s.sent(),c(i),[3,3];case 3:return[2]}})})};l(),r&&r(s)})}function P(e,n){return e.filter(function(e){return!~n.indexOf(e.name||e._name)})}function C(e){return A(e)&&Object.keys(e).length?!1:!0}function D(e,n,r,t,i){return void 0===r&&(r=1),void 0===t&&(t=!1),void 0===i&&(i=[]),e.map(function(e,o){if(t){var a=e.children?D(e.children,n,r+1,t,i.concat(e)):void 0;return a&&(e=on.__assign(on.__assign({},e),{children:a})),e=n(e,o,r,i)||on.__assign({},e)}return e=n(e,o,r,i)||on.__assign({},e),e.children&&e.children.splice&&(e.children=D(e.children,n,r+1,t,i.concat(e))),e})}function M(e,n,r){void 0===r&&(r=1),e.map(function(e,t){n(e,t,r),e.children&&e.children.splice&&M(e.children,n,r+1)})}function S(e,n){var r=null;return I(e,function(e,t,i,o){return n(e,t,i,o)?(r=e,!1):!0}),r}function V(e,n){var r=[];return S(e,function(t,i,o,a){if(n(t,i,o,a)){r=[i],a=a.concat(),a.unshift({children:e});for(var u=a.length-1;u>0;u--){var c=a[u-1],s=a[u];r.unshift(c.children.indexOf(s))}return!0}return!1}),r.length?r:void 0}function N(e,n){for(var r=Array.isArray(n)?n:[n],t=r.pop(),i=e,o=0,a=r.length;a>o;o++){var u=r[o];if(!i[u]){i=null;break}i=i[u].children}return i?i[t]:void 0}function $(e,n,r,t){return void 0===r&&(r=1),void 0===t&&(t=!1),t?e.map(function(e){var i=e.children?$(e.children,n,r+1,t):void 0;return i&&(e=on.__assign(on.__assign({},e),{children:i})),e}).filter(function(e,t){return n(e,t,r)}):e.filter(function(e,t){return n(e,t,r)}).map(function(e){return e.children&&e.children.splice&&(e=on.__assign(on.__assign({},e),{children:$(e.children,n,r+1,t)})),e})}function I(e,n,r,t,i){return void 0===r&&(r=1),void 0===t&&(t=[]),void 0===i&&(i=[]),e.every(function(e,o){var a=n(e,o,r,t,i);return a&&e.children&&e.children.splice?I(e.children,n,r+1,t.concat(e),i.concat(o)):a})}function R(e,n){var r=!1;return I(e,function(e,t,i,o){return n(e,t,i,o)?(r=!0,!1):!0}),r}function B(e,n){var r=[];return M(e,function(e,t){return r.push(n?n(e,t):e)}),r}function q(e,n,r){void 0===r&&(r=0);for(var t=[],i=3;io?-1:o===a?0:1:String(o).localeCompare(String(a)),i*r})}function Q(e){return Object.keys(e).some(function(n){var r=e[n];return r instanceof File||Array.isArray(r)&&r.length&&r[0]instanceof File})}function X(e,n){return void 0===n&&(n={arrayFormat:"indices",encodeValuesOnly:!0}),dn.default.stringify(e,n)}function Z(e,n,r){void 0===n&&(n={arrayFormat:"indices",encodeValuesOnly:!0}),void 0===r&&(r=new FormData);var t={};return Object.keys(e).forEach(function(n){var i=e[n];i instanceof File?r.append(n,i,i.name):Array.isArray(i)&&i.length&&i[0]instanceof File?i.forEach(function(e){return r.append(n+"[]",e,e.name)}):t[n]=i}),X(t,n).split("&").forEach(function(e){var n=e.split("=");n[0]&&r.append(n[0],decodeURIComponent(n[1]))}),r}function en(){for(var e=[],n=0;n=n?i+=1:o.push(t.shift())}return r},n.__uri=k,n.isObject=A,n.isBreakpoint=F,n.until=T,n.omitControls=P,n.isEmpty=C,n.uuid=function(){return(+new Date).toString(36)},n.mapTree=D,n.eachTree=M,n.findTree=S,n.findTreeIndex=V,n.getTree=N,n.filterTree=$,n.everyTree=I,n.someTree=R,n.flattenTree=B,n.spliceTree=q,n.getTreeDepth=U,n.ucFirst=z,n.lcFirst=L,n.camel=W,n.getWidthRate=H,n.getLevelFromClassName=Y,n.string2regExp=G,n.pickEventsProps=J,n.autobind=fn.boundMethod,n.bulkBindFunctions=function(e,n){n.forEach(function(n){return e[n]=e[n].bind(e)})},n.sortArray=K,n.hasFile=Q,n.qsstringify=X,n.object2formData=Z,n.chainFunctions=en,n.chainEvents=nn,n.mapObject=rn,n.loadScript=tn;var pn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return on.__extends(n,e),n}(Error);n.SkipOperation=pn}); +;/*!src/components/AsideNav.tsx*/ +amis.define("4e7c54b",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AsideNav=void 0;var a=e("node_modules/tslib/tslib"),i=a.__importDefault(e("node_modules/react/index")),t=e("9a80175"),s=e("256b65d"),r=function(e){function n(n){var i=e.call(this,n)||this,s=n.isOpen,r=1;return i.state={navigations:t.mapTree(n.navigations,function(e){var i="undefined"==typeof e.active?n.isActive(e):e.active;return a.__assign(a.__assign({},e),{id:r++,active:i,open:i||s(e)})},1,!0)},i.renderLink=i.renderLink.bind(i),i.toggleExpand=i.toggleExpand.bind(i),i}return a.__extends(n,e),n.prototype.componentWillReceiveProps=function(e){var n=this.props,i=n.isOpen;if(n.navigations!==e.navigations||n.isActive!==e.isActive){var s=1;this.setState({navigations:t.mapTree(e.navigations,function(n){var t="undefined"==typeof n.active?e.isActive(n):n.active;return a.__assign(a.__assign({},n),{id:s++,active:t,open:t||i(n)})},1,!0)})}},n.prototype.toggleExpand=function(e,n){n&&(n.stopPropagation(),n.preventDefault()),this.setState({navigations:t.mapTree(this.state.navigations,function(n){return a.__assign(a.__assign({},n),{open:e.id===n.id?!n.open:n.open})},1,!0)})},n.prototype.renderLink=function(e,n,t,s){var r;void 0===t&&(t={}),void 0===s&&(s=1);var l=this.props,o=l.renderLink,c=(l.isActive,l.renderSubLinks),d=l.classnames,u=a.__rest(l,["renderLink","isActive","renderSubLinks","classnames"]),p=o(a.__assign({link:e,active:e.active,open:e.open,toggleExpand:this.toggleExpand,depth:s,classnames:d},u));return p?i.default.createElement("li",a.__assign({},t,{key:n,className:d("AsideNav-item",e.className,(r={},r["is-open"]=e.open,r["is-active"]=e.active,r))}),p,c(e,this.renderLink,s,this.props)):void 0},n.prototype.render=function(){var e=this,n=this.state.navigations,t=[],s=this.props,r=s.className,l=s.classnames;return n.forEach(function(n,s){if(n.prefix){var r="function"==typeof n.prefix?n.prefix(e.props):n.prefix;t.push(i.default.cloneElement(r,a.__assign(a.__assign({},r.props),{key:s+"-prefix"})))}if(n.label&&t.push(i.default.createElement("li",{key:s+"-label",className:l("AsideNav-label",n.className)},i.default.createElement("span",null,n.label))),n.children.forEach(function(n,a){var i=e.renderLink(n,s+"-"+a);i&&t.push(i)}),n.affix){var o="function"==typeof n.affix?n.affix(e.props):n.affix;t.push(i.default.cloneElement(o,a.__assign(a.__assign({},o.props),{key:s+"-affix"})))}}),i.default.createElement("nav",{className:l("AsideNav",r)},i.default.createElement("ul",{className:l("AsideNav-list")},t))},n.defaultProps={renderLink:function(e){return i.default.createElement("a",null,e.label)},renderSubLinks:function(e,n,a,t){var s=t.classnames;return e.children&&e.children.length?i.default.createElement("ul",{className:s("AsideNav-subList")},e.label?i.default.createElement("li",{key:"subHeader",className:s("AsideNav-subHeader")},i.default.createElement("a",null,e.label)):null,e.children.map(function(e,i){return n(e,i,{},a+1)})):e.label&&1===a?i.default.createElement("div",{className:s("AsideNav-tooltip")},e.label):null},isActive:function(e){return e.open},isOpen:function(e){return e.children?e.children.some(function(e){return e.open}):!1}},n}(i.default.Component);n.AsideNav=r,n.default=s.themeable(r)}); +;/*!src/components/ModalManager.ts*/ +amis.define("8768414",function(e,n){"use strict";function o(){return l.length}function d(){return l[l.length-1]}function r(e){l.push(e)}function t(){l.pop()}function i(e){var n=a.default(e);if("esc"===n){var o=d();if(o){var r=o.props,t=r.disabled,i=r.closeOnEsc;i&&!t&&o.props.onHide(e)}}}Object.defineProperty(n,"__esModule",{value:!0}),n.removeModal=n.addModal=n.currentModal=n.current=void 0;var u=e("node_modules/tslib/tslib"),a=u.__importDefault(e("node_modules/keycode/index")),l=[];n.current=o,n.currentModal=d,n.addModal=r,n.removeModal=t,window.addEventListener("keydown",i)}); +;/*!src/components/icons.tsx*/ +amis.define("b7bbd16",function(e,t){"use strict";function o(e){return tt[e]}function l(e,t){tt[e]=t}function a(e){var t=e.icon,l=e.className,a=c.__rest(e,["icon","className"]);"undefined"!=typeof jest&&(a.icon=t);var s=o(t);return s?r.default.createElement(s,c.__assign({},a,{className:(l||"")+" icon-"+t})):r.default.createElement("span",{className:"text-danger"},"没有 icon ",t)}Object.defineProperty(t,"__esModule",{value:!0}),t.PencilIcon=t.MinusIcon=t.PlusIcon=t.CheckIcon=t.RightArrowIcon=t.LeftArrowIcon=t.PauseIcon=t.PlayIcon=t.MuteIcon=t.VolumeIcon=t.EnterIcon=t.ReDoIcon=t.UnDoIcon=t.CloseIcon=t.Icon=t.registerIcon=t.getIcon=t.rightArrowIcon=t.leftArrowIcon=t.pauseIcon=t.playIcon=t.muteIcon=t.volumeIcon=t.enterIcon=t.reDoIcon=t.unDoIcon=t.closeIcon=void 0;var c=e("node_modules/tslib/tslib"),r=c.__importDefault(e("node_modules/react/index")),s=c.__importDefault(e("src/icons/close.svg"));t.CloseIcon=s.default;var u=c.__importDefault(e("src/icons/undo.svg"));t.UnDoIcon=u.default;var n=c.__importDefault(e("src/icons/redo.svg"));t.ReDoIcon=n.default;var f=c.__importDefault(e("src/icons/enter.svg"));t.EnterIcon=f.default;var i=c.__importDefault(e("src/icons/volume.svg"));t.VolumeIcon=i.default;var d=c.__importDefault(e("src/icons/mute.svg"));t.MuteIcon=d.default;var _=c.__importDefault(e("src/icons/play.svg"));t.PlayIcon=_.default;var m=c.__importDefault(e("src/icons/pause.svg"));t.PauseIcon=m.default;var v=c.__importDefault(e("src/icons/left-arrow.svg"));t.LeftArrowIcon=v.default;var p=c.__importDefault(e("src/icons/right-arrow.svg"));t.RightArrowIcon=p.default;var g=c.__importDefault(e("src/icons/check.svg"));t.CheckIcon=g.default;var D=c.__importDefault(e("src/icons/plus.svg"));t.PlusIcon=D.default;var I=c.__importDefault(e("src/icons/minus.svg"));t.MinusIcon=I.default;var w=c.__importDefault(e("src/icons/pencil.svg"));t.PencilIcon=w.default;var h=c.__importDefault(e("src/icons/view.svg")),E=c.__importDefault(e("src/icons/remove.svg")),b=c.__importDefault(e("src/icons/retry.svg")),y=c.__importDefault(e("src/icons/upload.svg")),P=c.__importDefault(e("src/icons/file.svg")),A=c.__importDefault(e("src/icons/success.svg")),k=c.__importDefault(e("src/icons/fail.svg")),x=c.__importDefault(e("src/icons/search.svg")),M=c.__importDefault(e("src/icons/back.svg")),z=c.__importDefault(e("src/icons/move.svg")),C=c.__importDefault(e("src/icons/info.svg")),N=c.__importDefault(e("src/icons/location.svg")),R=c.__importDefault(e("src/icons/drag-bar.svg")),j=c.__importDefault(e("src/icons/reload.svg")),q=c.__importDefault(e("src/icons/exchange.svg")),L=c.__importDefault(e("src/icons/columns.svg")),U=c.__importDefault(e("src/icons/calendar.svg")),V=c.__importDefault(e("src/icons/copy.svg")),O=c.__importDefault(e("src/icons/filter.svg")),B=c.__importDefault(e("src/icons/caret.svg")),F=c.__importDefault(e("src/icons/right-arrow-bold.svg")),G=c.__importDefault(e("src/icons/column-filter.svg")),H=c.__importDefault(e("src/icons/zoom-in.svg")),J=c.__importDefault(e("src/icons/zoom-out.svg")),K=c.__importDefault(e("src/icons/question.svg")),Q=c.__importDefault(e("src/icons/window-restore.svg")),S=c.__importDefault(e("src/icons/info-circle.svg")),T=c.__importDefault(e("src/icons/warning.svg")),W=c.__importDefault(e("src/icons/schedule.svg")),X=c.__importDefault(e("src/icons/home.svg")),Y=c.__importDefault(e("src/icons/folder.svg")),Z=c.__importDefault(e("src/icons/sort-default.svg")),$=c.__importDefault(e("src/icons/sort-asc.svg")),et=c.__importDefault(e("src/icons/sort-desc.svg"));t.closeIcon=r.default.createElement(s.default,null),t.unDoIcon=r.default.createElement(u.default,null),t.reDoIcon=r.default.createElement(n.default,null),t.enterIcon=r.default.createElement(f.default,null),t.volumeIcon=r.default.createElement(i.default,null),t.muteIcon=r.default.createElement(d.default,null),t.playIcon=r.default.createElement(_.default,null),t.pauseIcon=r.default.createElement(m.default,null),t.leftArrowIcon=r.default.createElement(v.default,null),t.rightArrowIcon=r.default.createElement(p.default,null);var tt={};t.getIcon=o,t.registerIcon=l,l("close",s.default),l("undo",u.default),l("redo",n.default),l("enter",f.default),l("volume",i.default),l("mute",d.default),l("play",_.default),l("pause",m.default),l("left-arrow",v.default),l("right-arrow",p.default),l("prev",v.default),l("next",p.default),l("check",g.default),l("plus",D.default),l("add",D.default),l("minus",I.default),l("pencil",w.default),l("view",h.default),l("remove",E.default),l("retry",b.default),l("upload",y.default),l("file",P.default),l("success",A.default),l("fail",k.default),l("warning",T.default),l("search",x.default),l("back",M.default),l("move",z.default),l("info",C.default),l("info-circle",S.default),l("location",N.default),l("drag-bar",R.default),l("reload",j.default),l("exchange",q.default),l("columns",L.default),l("calendar",U.default),l("copy",V.default),l("filter",O.default),l("column-filter",G.default),l("caret",B.default),l("right-arrow-bold",F.default),l("zoom-in",H.default),l("zoom-out",J.default),l("question",K.default),l("window-restore",Q.default),l("schedule",W.default),l("home",X.default),l("folder",Y.default),l("sort-default",Z.default),l("sort-asc",$.default),l("sort-desc",et.default),t.Icon=a}); +;/*!src/locale.tsx*/ +amis.define("5ab4e9d",function(e,t){"use strict";function n(e,t){p[e]=t}function a(e,t){return e.replace(/(\\)?\{\{([\s\S]+?)\}\}/g,function(e,n,a){return n?e.substring(1):f.resolveVariable(a,t||{})})}function r(e){if(e&&m[e])return m[e];var t=function(t){for(var n=[],r=1;rs?-s:d>l?l-d:0}function f(t,e,o,i){var r=n(o),f=r.width,l=t-i,s=t+i+e;return 0>l?-l:s>f?f-s:0}function l(t,e,o,i,n){void 0===n&&(n=0);var l="BODY"===i.tagName?p.default(o):c.default(o,i),s=p.default(e),d=s.height,u=s.width,a=i.getBoundingClientRect(),h=e.getBoundingClientRect(),m=e.offsetWidth?h.width/e.offsetWidth:1,g=e.offsetHeight?h.height/e.offsetHeight:1;t="auto"===t?"left-bottom-left-top right-bottom-right-top left-top-left-bottom right-top-right-bottom left-bottom-left-top":t;var _=0,w=0,v="",b="",y=t;if(~t.indexOf("-"))for(var D=t.split(/\s+/);D.length;){var P=y=D.shift(),O=P.split("-"),x=O[0],B=O[1],C=O[2],H=O[3];if(C=C||x,H=H||B,_="left"===x?l.left:"right"===x?l.left+l.width:l.left+l.width/2,w="top"===B?l.top:"bottom"===B?l.top+l.height:l.top+l.height/2,_-="left"===C?0:"right"===C?u:u/2,w-="top"===H?0:"bottom"===H?d:d/2,D.length){var N={x:a.x+_/m,y:a.y+w/g,width:u,height:d};if(N.x>0&&N.x+N.width0&&N.y+N.height\n
\n \n
\n
\n
\n
',e.appendChild(n),e.hasInlineStyle=e.hasAttribute("style");var l=e.originPosition=i(e,"position");~["fixed","absolute"].indexOf(l)||(e.style.position="relative");var d,a,c=n.children[0],h=c.children[0],f=n.children[1],u=n.children[2],v=function(){h.style.width=c.offsetWidth+10+"px",h.style.height=c.offsetHeight+10+"px",c.scrollLeft=c.scrollWidth,c.scrollTop=c.scrollHeight,f.scrollLeft=f.scrollWidth,f.scrollTop=f.scrollHeight,d=e.offsetWidth,a=e.offsetHeight};v();var p=function(){e.resizedAttached&&e.resizedAttached.call()},y=function(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i)},g=function(){(e.offsetWidth!=d||e.offsetHeight!=a)&&p(),v()};y(c,"scroll",g),y(f,"scroll",g),y(u,"animationstart",v)}function s(e){if(e.resizeSensor){e.hasInlineStyle?e.style.position=e.originPosition:e.removeAttribute("style");try{e.removeChild(e.resizeSensor)}catch(t){}delete e.resizeSensor,delete e.resizedAttached,delete e.hasInlineStyle,delete e.originPosition}}function o(e,t,i){if(void 0===i&&(i=!1),i)return void n(e,function(){t.apply(this,arguments),s(e)});n(e,t);var o=!1;return function(){o||(o=!0,s(e))}}Object.defineProperty(t,"__esModule",{value:!0}),t.resizeSensor=t.getComputedStyle=void 0;var r=function(){function e(){this.q=[]}return e.prototype.add=function(e){this.q.push(e)},e.prototype.call=function(){for(var e=[],t=0;t=F},isUrlPath:function(u,t){return!s(t)||d(t)||/^[a-z0-9_\\-]+$/i.test(t)},maximum:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)<=(parseFloat(F)||0)},lt:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)<(parseFloat(F)||0)},minimum:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)>=(parseFloat(F)||0)},gt:function(u,t,F){return!s(t)||d(t)||(parseFloat(t)||0)>(parseFloat(F)||0)},isJson:function(u,t){if(s(t)&&!d(t))try{JSON.parse(t)}catch(F){return!1}return!0},isPhoneNumber:function(u,t){return!s(t)||d(t)||/^[1]([3-9])[0-9]{9}$/.test(t)},isTelNumber:function(u,t){return!s(t)||d(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)},isZipcode:function(u,t){return!s(t)||d(t)||/^[1-9]{1}(\d+){5}$/.test(t)},isId:function(u,t){return!s(t)||d(t)||/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/.test(t)},notEmptyString:function(u,t){return!s(t)||!(String(t)&&""===String(t).trim())},matchRegexp1:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp2:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp3:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp4:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp5:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp6:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp7:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp8:function(u,F,n){return t.validations.matchRegexp(u,F,n)},matchRegexp9:function(u,F,n){return t.validations.matchRegexp(u,F,n)}},t.addRule=F,t.validateMessages={isEmail:"Email 格式不正确",isRequired:"这是必填项",isUrl:"Url 格式不正确",isInt:"请输入整型数字",isAlpha:"请输入字母",isNumeric:"请输入数字",isAlphanumeric:"请输入字母或者数字",isFloat:"请输入浮点型数值",isWords:"请输入字母",isUrlPath:"只能输入字母、数字、`-` 和 `_`.",matchRegexp:"格式不正确, 请输入符合规则为 `${1|raw}` 的内容。",minLength:"请输入更多的内容,至少输入 $1 个字符。",maxLength:"请控制内容长度, 不要输入 $1 个字符以上",maximum:"当前输入值超出最大值 $1,请检查",lt:"请输入小于 $1 的值",minimum:"当前输入值低于最小值 $1,请检查",gt:"请输入大于 $1 的值",isJson:"请检查 Json 格式。",isLength:"请输入长度为 $1 的内容",notEmptyString:"请不要全输入空白字符",equalsField:"输入的数据与 $1 值不一致",equals:"输入的数据与 $1 不一致",isPhoneNumber:"请输入合法的手机号码",isTelNumber:"请输入合法的电话号码",isZipcode:"请输入合法的邮编地址",isId:"请输入合法的身份证号"},t.validate=n,t.validateObject=e;var c=function(u){var t=0,F={};return u.replace(/matchRegexp\d*\s*\:\s*\/.*?\/[igm]*/g,function(u){return F["__"+t]=u,"__"+t++}).split(/,(?![^{\[]*[}\]])/g).map(function(u){return/^__\d+$/.test(u)?F[u]:u.trim()})};t.str2rules=i}); +;/*!src/components/PopOver.tsx*/ +amis.define("2b3dcdf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopOver=void 0;var s=e("node_modules/tslib/tslib"),o=s.__importDefault(e("node_modules/react/index")),a=e("node_modules/react-dom/index"),n=e("256b65d"),i=e("9a80175"),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={xOffset:0,yOffset:0},t}return s.__extends(t,e),t.prototype.componentDidMount=function(){this.mayUpdateOffset();var e=a.findDOMNode(this);this.parent=e.parentNode,this.parent.classList.add("has-popover")},t.prototype.componentDidUpdate=function(){this.mayUpdateOffset()},t.prototype.componentWillUnmount=function(){this.parent&&this.parent.classList.remove("has-popover")},t.prototype.mayUpdateOffset=function(){var e,t=this.props.offset;if(t&&"function"==typeof t){var s=this.props,o=s.placement,n=s.positionTop,i=s.positionLeft;e=t(a.findDOMNode(this).getBoundingClientRect(),{x:i,y:n,placement:o})}else e=t;this.setState({xOffset:e&&e.x?e.x:0,yOffset:e&&e.y?e.y:0})},t.prototype.render=function(){var e=this.props,t=(e.placement,e.activePlacement),a=e.positionTop,n=e.positionLeft,f=(e.arrowOffsetLeft,e.arrowOffsetTop,e.style),r=e.children,p=(e.offset,e.overlay),l=e.onHide,c=e.classPrefix,d=e.classnames,m=e.className,u=s.__rest(e,["placement","activePlacement","positionTop","positionLeft","arrowOffsetLeft","arrowOffsetTop","style","children","offset","overlay","onHide","classPrefix","classnames","className"]),y=this.state,v=y.xOffset,O=y.yOffset,h=s.__assign(s.__assign({display:"block"},f),{top:a+O,left:n+v});return o.default.createElement("div",s.__assign({className:d(c+"PopOver",m,c+"PopOver--"+i.camel(t)),style:h},u),p?o.default.createElement("div",{className:c+"PopOver-overlay",onClick:l}):null,r)},t.defaultProps={className:"",offset:{x:0,y:0},overlay:!1,placement:"auto"},t}(o.default.PureComponent);t.PopOver=f,t.default=n.themeable(f)}); +;/*!src/utils/api.ts*/ +amis.define("1caead1",function(e,t){"use strict";function a(e,t){if("string"==typeof e){var a=y.test(e)?RegExp.$1:"";a&&(e=e.replace(a+":","")),e={method:a||t,url:e}}else e=g.__assign({},e);return e}function r(e,t,r){void 0===r&&(r={}),e=a(e,r.method);var i=r.autoAppend,s=r.ignoreData,o=g.__rest(r,["autoAppend","ignoreData"]);if(e.config=g.__assign({},o),e.method=e.method||r.method||"get",!t)return e;if(t instanceof FormData||t instanceof Blob||t instanceof ArrayBuffer)return e.data=t,e;var d=e.url=e.url||"",u=e.url.indexOf("?");if(~u){var p=e.url.indexOf("#"),l=A.default.parse(e.url.substring(u+1,~p?p:void 0));e.url=m.tokenize(e.url.substring(0,u+1),t,"| url_encode")+v.qsstringify(m.dataMapping(l,t))+(~p?e.url.substring(p):"")}else e.url=m.tokenize(e.url,t,"| url_encode");if(s)return e;if(e.data?e.data=m.dataMapping(e.data,t):("post"===e.method||"put"===e.method)&&(e.data=v.cloneObject(t)),"get"===e.method&&(~d.indexOf("$")||e.data||!i||(e.data=t),e.data)){var f=e.url.indexOf("?");if(~f){var l=g.__assign(g.__assign({},A.default.parse(e.url.substring(f+1))),e.data);e.url=e.url.substring(0,f)+"?"+v.qsstringify(l)}else e.url+="?"+v.qsstringify(e.data);delete e.data}return e.headers&&(e.headers=m.dataMapping(e.headers,t)),e.requestAdaptor&&"string"==typeof e.requestAdaptor&&(e.requestAdaptor=n(e.requestAdaptor,"api")),e.adaptor&&"string"==typeof e.adaptor&&(e.adaptor=n(e.adaptor,"payload","response","api")),e}function n(e){for(var t=[],a=1;a0){var i=f(t);return o(i?i.cachedPromise:c(t,e(t)),t)}return o(e(t),t)}}function o(e,t){var a=t.adaptor;return a?e.then(function(e){return g.__assign(g.__assign({},e),{data:a(e.data,e,t)})}).then(i):e.then(i)}function d(e,t,a,n){var i=t&&t.url||t;return t&&t.autoRefresh===!1?!1:i&&"string"==typeof i&&~i.indexOf("$")?(e=r(e,a,{ignoreData:!0}),t=r(t,n,{ignoreData:!0}),!(e.url===t.url||!u(t.url)||t.sendOn&&!_.evalExpression(t.sendOn,n))):!1}function u(e){return e&&/^(?:(https?|wss?|taf):\/\/[^\/]+)?(\/[^\s\/\?]*){1,}(\?.*)?$/.test(e)}function p(e,t,a,r){return e?a===!1?!1:r&&t&&!_.evalExpression(r,t)?!1:"string"==typeof e&&e.length?!0:v.isObject(e)&&e.url?e.sendOn&&t&&!_.evalExpression(e.sendOn,t)?!1:!0:!1:!1}function l(e,t){return e.method===t.method&&e.url===t.url&&!v.isObjectShallowModified(e.data,t.data,!1)}function f(e){for(var t,a=Date.now(),r=0,n=b.length;n>r;r++){var i=b[r];if(a-i.requestTime>i.cache)b.splice(r,1),n--,r--;else if(l(e,i)){t=i;break}}return t}function c(e,t){return b.push(g.__assign(g.__assign({},e),{cachedPromise:t,requestTime:Date.now()})),t}function h(){b.splice(0,b.length)}Object.defineProperty(t,"__esModule",{value:!0}),t.clearApiCache=t.setApiCache=t.getApiCache=t.isSameApi=t.isEffectiveApi=t.isValidApi=t.isApiOutdated=t.wrapAdaptor=t.wrapFetcher=t.buildApi=t.normalizeApi=void 0;var g=e("node_modules/tslib/tslib"),m=e("f2e345e"),A=g.__importDefault(e("node_modules/qs/lib/index")),_=e("6a2dbb7"),v=e("9a80175"),y=/(?:^|raw\:)(get|post|put|delete|patch|options|head):/i,b=[];t.normalizeApi=a,t.buildApi=r,t.wrapFetcher=s,t.wrapAdaptor=o,t.isApiOutdated=d,t.isValidApi=u,t.isEffectiveApi=p,t.isSameApi=l,t.getApiCache=f,t.setApiCache=c,t.clearApiCache=h}); +;/*!src/types.ts*/ +amis.define("8f9f9e3",function(e,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0})}); +;/*!src/renderers/Form/Item.tsx*/ +amis.define("567b83c",function(e,t){"use strict";function r(e){return function(r){var a,n=!(r.prototype instanceof l.default.Component);if(e.validate&&!r.prototype.validate){var s=e.validate;r.prototype.validate=function(){var e={input:this};return s.apply(e,arguments)}}else e.validate&&console.error("FormItem配置中的 validate 将不起作用,因为类的成员函数中已经定义了 validate 方法,将优先使用类里面的实现。");return e.storeType&&(r=m.HocStoreFactory({storeType:e.storeType,extendsData:e.extendsData})(c.observer(r)),delete e.storeType),i.default((a=function(a){function i(e){var t=a.call(this,e)||this;return t.refFn=t.refFn.bind(t),t}return o.__extends(i,a),i.prototype.componentWillMount=function(){var t=this.props,r=t.validations,n=t.formItem;n&&!r&&e.validations&&n.config({rules:e.validations}),a.prototype.componentWillMount.call(this)},i.prototype.shouldComponentUpdate=function(r){return r.strictMode===!1||e.strictMode===!1?!0:d.anyChanged(t.detectProps,this.props,r)?!0:!1},i.prototype.getWrappedInstance=function(){return this.ref},i.prototype.refFn=function(e){this.ref=e},i.prototype.renderControl=function(){var t,a=this.props,i=a.inputClassName,s=a.formItem,m=a.classnames,c=(a.children,a.type),p=a.size,u=a.defaultSize,f=o.__rest(a,["inputClassName","formItem","classnames","children","type","size","defaultSize"]),h=p||u;return l.default.createElement(r,o.__assign({},f,{onOpenDialog:this.handleOpenDialog,size:e.sizeMutable!==!1?void 0:p,onFocus:this.handleFocus,onBlur:this.handleBlur,type:c,classnames:m,ref:n?void 0:this.refFn,forwardedRef:n?this.refFn:void 0,formItem:s,className:m("Form-control",(t={"is-inline":!!f.inline,"is-error":s&&!s.valid},t["Form-control--withSize Form-control--size"+d.ucFirst(h)]=e.sizeMutable!==!1&&"string"==typeof h&&!!h&&"full"!==h,t),i)}))},i}(f),a.defaultProps=o.__assign({className:"",renderLabel:e.renderLabel,renderDescription:e.renderDescription,sizeMutable:e.sizeMutable,wrap:e.wrap,showErrorMsg:e.showErrorMsg},r.defaultProps),a.propsList=o.__spreadArrays(["value","defaultValue","onChange","setPrinstineValue","readOnly","strictMode"],r.propsList||[]),a.displayName="FormItem"+(e.type?"("+e.type+")":""),a.ComposedComponent=r,a),r)}}function a(e){var t=r(e)(e.component);return m.registerRenderer(o.__assign(o.__assign({},e),{name:e.name||e.type+"-control",weight:"undefined"!=typeof e.weight?e.weight:-100,test:e.test||new RegExp("(^|/)form(?:/.+)?/control/(?:d+/)?"+e.type+"$","i"),component:t,isFormItem:!0}))}function n(e){return function(t){var r=a(o.__assign(o.__assign({},e),{component:t}));return r.component}}Object.defineProperty(t,"__esModule",{value:!0}),t.FormItem=t.registerFormItem=t.asFormItem=t.detectProps=t.FormItemWrap=void 0;var o=e("node_modules/tslib/tslib"),l=o.__importDefault(e("node_modules/react/index")),i=o.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),s=e("node_modules/mobx/lib/index"),m=e("0f9ebdf"),d=e("9a80175"),c=e("node_modules/mobx-react/dist/index"),p=e("8f9f9e3"),u=e("6a2dbb7"),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.formItem;t&&(this.reaction=s.reaction(function(){return""+t.errors.join("")+t.isFocused+t.dialogOpen},function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},t.prototype.handleFocus=function(e){var t=this.props.formItem;t&&t.focus(),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props.formItem;t&&t.blur(),this.props.onBlur&&this.props.onBlur(e)},t.prototype.handleOpenDialog=function(e,t){return o.__awaiter(this,void 0,void 0,function(){var r;return o.__generator(this,function(){return r=this.props.formItem,r?[2,new Promise(function(a){return r.openDialog(e,t,function(e){return a(e)})})]:[2]})})},t.prototype.handleDialogConfirm=function(e){var t=e[0],r=this.props.formItem;r&&r.closeDialog(t)},t.prototype.handleDialogClose=function(){var e=this.props.formItem;e&&e.closeDialog()},t.prototype.renderControl=function(){var e,t=this.props,r=t.inputClassName,a=t.formItem,n=t.classnames,l=(t.children,t.type),i=t.renderControl,s=(t.formItemConfig,t.sizeMutable),m=t.size,c=t.defaultSize,p=o.__rest(t,["inputClassName","formItem","classnames","children","type","renderControl","formItemConfig","sizeMutable","size","defaultSize"]);if(i){var u=m||c;return i(o.__assign(o.__assign({},p),{onOpenDialog:this.handleOpenDialog,type:l,classnames:n,formItem:a,className:n("Form-control",(e={"is-inline":!!p.inline,"is-error":a&&!a.valid},e["Form-control--withSize Form-control--size"+d.ucFirst(u)]=s!==!1&&"string"==typeof u&&!!u&&"full"!==u,e),r)}))}return null},t.prototype.renderHorizontal=function(){var e,t,r,a=this.props,n=a.className,o=a.classnames,i=a.description,s=a.descriptionClassName,m=a.captionClassName,c=a.desc,p=a.label,f=a.labelClassName,h=a.render,g=a.required,F=a.caption,y=a.remark,_=a.labelRemark,b=a.env,v=a.formItem,N=a.renderLabel,C=a.renderDescription,k=a.hint,M=a.data,I=a.showErrorMsg;N===!1&&(p=p===!1?!1:""),i=i||c;var E=this.props.horizontal||this.props.formHorizontal,w=d.getWidthRate(E.left),z=d.getWidthRate(E.right);return l.default.createElement("div",{className:o("Form-item Form-item--horizontal",n,(e={},e["is-error"]=v&&!v.valid,e["is-required"]=g,e))},p!==!1?l.default.createElement("label",{className:o("Form-label",(t={},t["Form-itemColumn--"+("string"==typeof E.leftFixed?E.leftFixed:"normal")]=E.leftFixed,t["Form-itemColumn--"+w]=!E.leftFixed,t),f)},l.default.createElement("span",null,u.filter(p,M),g&&(p||_)?l.default.createElement("span",{className:o("Form-star")},"*"):null,_?h("label-remark",{type:"remark",tooltip:_,className:o("Form-labelRemark"),container:b&&b.getModalContainer?b.getModalContainer:void 0}):null)):null,l.default.createElement("div",{className:o("Form-value",(r={},r["Form-itemColumn--"+z]=!!z&&z!==12-w,r))},this.renderControl(),F?h("caption",F,{className:o("Form-caption",m)}):null,y?h("remark",{type:"remark",tooltip:y,className:o("Form-remark"),container:b&&b.getModalContainer?b.getModalContainer:void 0}):null,k&&v&&v.isFocused?h("hint",k,{className:o("Form-hint")}):null,v&&!v.valid&&I!==!1?l.default.createElement("ul",{className:o("Form-feedback")},v.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,C!==!1&&i?h("description",i,{className:o("Form-description",s)}):null))},t.prototype.renderNormal=function(){var e,t=this.props,r=t.className,a=t.classnames,n=t.desc,o=t.description,i=t.label,s=t.labelClassName,m=t.render,d=t.required,c=t.caption,p=t.remark,f=t.labelRemark,h=t.env,g=t.descriptionClassName,F=t.captionClassName,y=t.formItem,_=t.renderLabel,b=t.renderDescription,v=t.hint,N=t.formMode,C=t.data,k=t.showErrorMsg;return o=o||n,l.default.createElement("div",{className:a("Form-item Form-item--"+N,r,(e={"is-error":y&&!y.valid},e["is-required"]=d,e))},i&&_!==!1?l.default.createElement("label",{className:a("Form-label",s)},l.default.createElement("span",null,u.filter(i,C),d&&(i||f)?l.default.createElement("span",{className:a("Form-star")},"*"):null,f?m("label-remark",{type:"remark",tooltip:f,className:a("Form-lableRemark"),container:h&&h.getModalContainer?h.getModalContainer:void 0}):null)):null,this.renderControl(),c?m("caption",c,{className:a("Form-caption",F)}):null,p?m("remark",{type:"remark",className:a("Form-remark"),tooltip:p,container:h&&h.getModalContainer?h.getModalContainer:void 0}):null,v&&y&&y.isFocused?m("hint",v,{className:a("Form-hint")}):null,y&&!y.valid&&k!==!1?l.default.createElement("ul",{className:a("Form-feedback")},y.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,b!==!1&&o?m("description",o,{className:a("Form-description",g)}):null)},t.prototype.renderInline=function(){var e,t=this.props,r=t.className,a=t.classnames,n=t.desc,o=t.description,i=t.label,s=t.labelClassName,m=t.render,d=t.required,c=t.caption,p=t.descriptionClassName,f=t.captionClassName,h=t.formItem,g=t.remark,F=t.labelRemark,y=t.env,_=t.hint,b=t.renderLabel,v=t.renderDescription,N=t.data,C=t.showErrorMsg;return o=o||n,l.default.createElement("div",{className:a("Form-item Form-item--inline",r,(e={"is-error":h&&!h.valid},e["is-required"]=d,e))},i&&b!==!1?l.default.createElement("label",{className:a("Form-label",s)},l.default.createElement("span",null,u.filter(i,N),d&&(i||F)?l.default.createElement("span",{className:a("Form-star")},"*"):null,F?m("label-remark",{type:"remark",tooltip:F,className:a("Form-lableRemark"),container:y&&y.getModalContainer?y.getModalContainer:void 0}):null)):null,l.default.createElement("div",{className:a("Form-value")},this.renderControl(),c?m("caption",c,{className:a("Form-caption",f)}):null,g?m("remark",{type:"remark",className:a("Form-remark"),tooltip:g,container:y&&y.getModalContainer?y.getModalContainer:void 0}):null,_&&h&&h.isFocused?m("hint",_,{className:a("Form-hint")}):null,h&&!h.valid&&C!==!1?l.default.createElement("ul",{className:a("Form-feedback")},h.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,v!==!1&&o?m("description",o,{className:a("Form-description",p)}):null))},t.prototype.renderRow=function(){var e,t=this.props,r=t.className,a=t.classnames,n=t.desc,o=t.description,i=t.label,s=t.labelClassName,m=t.render,d=t.required,c=t.caption,p=t.remark,f=t.labelRemark,h=t.env,g=t.descriptionClassName,F=t.captionClassName,y=t.formItem,_=t.renderLabel,b=t.renderDescription,v=t.hint,N=t.formMode,C=t.data,k=t.showErrorMsg;return o=o||n,l.default.createElement("div",{className:a("Form-item Form-item--"+N,r,(e={"is-error":y&&!y.valid},e["is-required"]=d,e))},l.default.createElement("div",{className:a("Form-rowInner")},i&&_!==!1?l.default.createElement("label",{className:a("Form-label",s)},l.default.createElement("span",null,u.filter(i,C),d&&(i||f)?l.default.createElement("span",{className:a("Form-star")},"*"):null,f?m("label-remark",{type:"remark",tooltip:f,className:a("Form-lableRemark"),container:h&&h.getModalContainer?h.getModalContainer:void 0}):null)):null,this.renderControl(),c?m("caption",c,{className:a("Form-caption",F)}):null,p?m("remark",{type:"remark",className:a("Form-remark"),tooltip:p,container:h&&h.getModalContainer?h.getModalContainer:void 0}):null),v&&y&&y.isFocused?m("hint",v,{className:a("Form-hint")}):null,y&&!y.valid&&k!==!1?l.default.createElement("ul",{className:a("Form-feedback")},y.errors.map(function(e,t){return l.default.createElement("li",{key:t},e)})):null,o&&b!==!1?m("description",o,{className:a("Form-description",g)}):null)},t.prototype.render=function(){var e=this.props,t=e.formMode,r=e.inputOnly,a=e.wrap,n=e.render,i=e.formItem;return a===!1||r?this.renderControl():l.default.createElement(l.default.Fragment,null,"inline"===t?this.renderInline():"horizontal"===t?this.renderHorizontal():"row"===t?this.renderRow():this.renderNormal(),i?n("modal",o.__assign({type:"dialog"},i.dialogSchema),{show:i.dialogOpen,onClose:this.handleDialogClose,onConfirm:this.handleDialogConfirm,data:i.dialogData}):null)};var r,a;return o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Object]),o.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof p.Schema&&p.Schema)?r:Object,Object]),o.__metadata("design:returntype",Promise)],t.prototype,"handleOpenDialog",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof Array&&Array)?a:Object]),o.__metadata("design:returntype",void 0)],t.prototype,"handleDialogConfirm",null),o.__decorate([d.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],t.prototype,"handleDialogClose",null),t}(l.default.Component);t.FormItemWrap=f,t.detectProps=["formPristine","formInited","addable","addButtonClassName","addButtonText","addOn","btnClassName","btnLabel","btnDisabled","className","clearable","columns","columnsCount","controls","desc","description","disabled","draggable","editable","editButtonClassName","formHorizontal","formMode","hideRoot","horizontal","icon","inline","inputClassName","label","labelClassName","labelField","language","level","max","maxRows","min","minRows","multiLine","multiple","option","placeholder","removable","required","remark","hint","rows","searchable","showCompressOptions","size","step","showInput","unit","value","diffValue"],t.asFormItem=r,t.registerFormItem=a,t.FormItem=n,t.default=n}); +;/*!src/renderers/Form/Options.tsx*/ +amis.define("b86428a",function(e,t){"use strict";function o(e){var o=e.component,n=function(n){function a(){return null!==n&&n.apply(this,arguments)||this}i.__extends(a,n),a.prototype.componentWillMount=function(){var t=this,o=this.props,n=o.initFetch,a=o.formItem,i=(o.source,o.data,o.setPrinstineValue),r=o.defaultValue,s=o.multiple,p=o.joinValues,d=o.extractValue,u=o.addHook,c=o.formInited,f=o.valueField,_=o.options,y=o.value;a&&(a.setOptions(m.normalizeOptions(_)),this.reaction=l.reaction(function(){return JSON.stringify([a.loading,a.filteredOptions])},function(){return t.forceUpdate()}));var g=n!==!1;if(a&&p===!1&&r){var h=d?a.getSelectedOptions(y).map(function(e){return e[f||"value"]}):a.getSelectedOptions(y);i(s?h.concat():h[0])}g&&e.autoLoadOptionsFromSource!==!1&&(c?this.reload():u&&u(this.initOptions,"init"))},a.prototype.componentDidMount=function(){this.normalizeValue()},a.prototype.shouldComponentUpdate=function(o){return e.strictMode===!1||o.strictMode===!1?!0:o.source||o.autoComplete?!0:p.anyChanged(t.detectProps,this.props,o)?!0:!1},a.prototype.componentDidUpdate=function(t){var o=this,n=this.props,a=n.formItem;if(a&&n.formInited)if(!t.formItem,(t.value!==n.value||a.expressionsInOptions)&&a.syncOptions(),t.options!==n.options&&a)a.setOptions(m.normalizeOptions(n.options||[])),this.normalizeValue();else if(e.autoLoadOptionsFromSource!==!1&&n.source&&a&&(t.source!==n.source||t.data!==n.data))if(c.isPureVariable(n.source)){var i=c.resolveVariableAndFilter(t.source,t.data,"| raw"),s=c.resolveVariableAndFilter(n.source,n.data,"| raw");i!==s&&a.setOptions(m.normalizeOptions(s||[])),this.normalizeValue()}else r.isEffectiveApi(n.source,n.data)&&r.isApiOutdated(t.source,n.source,t.data,n.data)&&a.loadOptions(n.source,n.data,void 0,!0,n.onChange).then(function(){return o.normalizeValue()})},a.prototype.componentWillUnmount=function(){this.props.removeHook&&this.props.removeHook(this.reload,"init"),this.reaction&&this.reaction()},a.prototype.normalizeValue=function(){var e=this.props,t=e.joinValues,o=e.extractValue,n=e.value,a=e.multiple,i=e.formItem,r=e.valueField;if(i&&t===!1&&i.options.length)if(o!==!1||"string"!=typeof n&&"number"!=typeof n){if(o===!0&&n&&!(Array.isArray(n)&&n.every(function(e){return"string"==typeof e||"number"==typeof e})||"string"==typeof n||"number"==typeof n)){var s=i.getSelectedOptions(n).map(function(e){return e[r||"value"]});i.changeValue(a?s.concat():s[0])}}else{var s=i.getSelectedOptions(n);i.changeValue(a?s.concat():s[0])}},a.prototype.getWrappedInstance=function(){return this.input},a.prototype.inputRef=function(e){this.input=e},a.prototype.handleToggle=function(e,t,o){var n=this.props,a=n.onChange,i=n.joinValues,r=n.extractValue,s=n.valueField,p=n.delimiter,l=n.clearable,d=n.resetValue,u=n.multiple,c=n.formItem,f=n.value;if(c){var y=c.getSelectedOptions(f).concat(),g=_.default(y,m.optionValueCompare(e[s||"value"],s||"value")),h="";u?(~g?y.splice(g,1):y.push(e),h=y,i?h=h.map(function(e){return e[s||"value"]}).join(p):r&&(h=h.map(function(e){return e[s||"value"]}))):(~g&&l?y.splice(g,1):y=[e],h=y[0]||d,(i||r)&&h&&(h=h[s||"value"])),a&&a(h,t,o)}},a.prototype.handleToggleAll=function(){var e=this.props,t=e.value,o=e.onChange,n=e.joinValues,a=e.extractValue,i=e.valueField,r=e.delimiter,s=e.resetValue,p=e.multiple,l=e.formItem;if(l){var d=l.getSelectedOptions(t),u=d.length===l.filteredOptions.length?[]:l.filteredOptions.concat(),c="";p?(c=u,n?c=c.map(function(e){return e[i||"value"]}).join(r):a&&(c=c.map(function(e){return e[i||"value"]}))):(c=u[0]||s,n&&c&&(c=c[i||"value"])),o&&o(c)}},a.prototype.reload=function(){return this.reloadOptions()},a.prototype.reloadOptions=function(e){var t=this.props,o=t.source,n=t.formItem,a=t.data,i=t.onChange;if(n&&c.isPureVariable(o))return void n.setOptions(m.normalizeOptions(c.resolveVariableAndFilter(o,a,"| raw")||[]));if(n&&r.isEffectiveApi(o,a))return n.loadOptions(o,a,void 0,!1,i,e)},a.prototype.deferLoad=function(e){var t=this.props,o=t.deferApi,n=t.source,a=t.env,i=t.formItem,r=t.data;if(!e.loaded){var s=e.deferApi||o||n;return s?void(null===i||void 0===i?void 0:i.deferLoadOptions(e,s,p.createObject(r,e))):void a.notify("error","请在选项中设置 `deferApi` 或者表单项中设置 `deferApi`,用来加载子选项。")}},a.prototype.initOptions=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,o,n;return i.__generator(this,function(a){switch(a.label){case 0:return[4,this.reload()];case 1:return a.sent(),t=this.props,o=t.formItem,n=t.name,o?(s.isAlive(o)&&o.value&&p.setVariable(e,n,o.value),[2]):[2]}})})},a.prototype.focus=function(){this.input&&this.input.focus&&this.input.focus()},a.prototype.setOptions=function(e,t){void 0===t&&(t=!1);var o=this.props.formItem;o&&o.setOptions(t?e:m.normalizeOptions(e||[]))},a.prototype.syncOptions=function(){var e=this.props.formItem;e&&e.syncOptions()},a.prototype.setLoading=function(e){var t=this.props.formItem;t&&t.setLoading(e)},a.prototype.handleOptionAdd=function(e,t,o){return void 0===e&&(e=-1),void 0===o&&(o=!1),i.__awaiter(this,void 0,void 0,function(){var n,a,r,s,l,d,u,c,m,f,_,y,g,h,v,O,b,A,V,F,j;return i.__generator(this,function(I){switch(I.label){case 0:return n=this.props,a=n.addControls,r=n.disabled,s=n.labelField,l=n.onOpenDialog,d=n.optionLabel,u=n.addApi,c=n.source,m=n.data,f=n.valueField,_=n.formItem,y=n.createBtnLabel,g=n.env,h=n.translate,r||!_?[2]:(o||Array.isArray(a)&&a.length||(a=[{type:"text",name:s||"label",label:!1,placeholder:h("请输入名称")}]),v=p.createObject(m,Array.isArray(e)?i.__assign({parent:p.getTree(_.options,e.slice(0,e.length-1))},t):t),o?(b=v,[3,3]):[3,1]);case 1:return[4,l({type:"dialog",title:y||"新增"+(d||"选项"),body:{type:"form",api:u,controls:a}},v)];case 2:b=I.sent(),I.label=3;case 3:if(O=b,!o||!u)return[3,7];I.label=4;case 4:return I.trys.push([4,6,,7]),[4,g.fetcher(u,O,{method:"post"})];case 5:return A=I.sent(),A.ok?O=A.data||O:(g.notify("error",A.msg||"新增失败,请仔细检查"),O=null),[3,7];case 6:return V=I.sent(),O=null,console.error(V),g.notify("error",V.message),[3,7];case 7:return O?(O.hasOwnProperty(f||"value")||(O=i.__assign(i.__assign({},O),(j={},j[f||"value"]=O[s||"label"],j))),c&&u?this.reload():(F=_.options.concat(),Array.isArray(e)?F=p.spliceTree(F,e,0,i.__assign({},O)):~e?F.splice(e,0,i.__assign({},O)):F.push(i.__assign({},O)),_.setOptions(F)),[2]):[2]}})})},a.prototype.handleOptionEdit=function(e,t,o){return void 0===t&&(t=e),void 0===o&&(o=!1),i.__awaiter(this,void 0,void 0,function(){var n,a,r,s,l,d,u,c,m,f,_,y,g,h,v,O,b;return i.__generator(this,function(A){switch(A.label){case 0:return n=this.props,a=n.editControls,r=n.disabled,s=n.labelField,l=n.onOpenDialog,d=n.editApi,u=n.env,c=n.source,m=n.data,f=n.formItem,_=n.optionLabel,y=n.translate,r||!f?[2]:(o||Array.isArray(a)&&a.length||(a=[{type:"text",name:s||"label",label:!1,placeholder:y("请输入名称")}]),o?(h=e,[3,3]):[3,1]);case 1:return[4,l({type:"dialog",title:y("编辑{{label}}",{label:_||"选项"}),body:{type:"form",api:d,controls:a}},p.createObject(m,e))];case 2:h=A.sent(),A.label=3;case 3:if(g=h,!o||!d)return[3,7];A.label=4;case 4:return A.trys.push([4,6,,7]),[4,u.fetcher(d,p.createObject(m,g),{method:"post"})];case 5:return v=A.sent(),v.ok?g=v.data||g:(u.notify("error",v.msg||y("保存失败,请仔细检查")),g=null),[3,7];case 6:return O=A.sent(),g=null,console.error(O),u.notify("error",O.message),[3,7];case 7:return g?(c&&!d?this.reload():(b=p.findTreeIndex(f.options,function(e){return e===t}),b&&f.setOptions(p.spliceTree(f.options,b,1,i.__assign(i.__assign({},t),g)))),[2]):[2]}})})},a.prototype.handleOptionDelete=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,o,n,a,r,s,l,d,u,c,m,y,g,h,v,O,b;return i.__generator(this,function(i){switch(i.label){case 0:return t=this.props,o=t.deleteConfirmText,n=t.disabled,a=t.data,r=t.deleteApi,s=t.env,l=t.formItem,d=t.source,u=t.valueField,c=t.translate,n||!l?[2]:(m=p.createObject(a,e),o?[4,s.confirm(f.filter(o,m))]:[3,2]);case 1:return g=i.sent(),[3,3];case 2:g=!0,i.label=3;case 3:if(y=g,!y)return[2];i.label=4;case 4:if(i.trys.push([4,6,,7]),!r)throw new Error(c("请配置 deleteApi"));return[4,s.fetcher(r,m,{method:"delete"})];case 5:return h=i.sent(),h.ok?d?this.reload():(v=l.options.concat(),O=_.default(v,function(t){return t[u||"value"]==e[u||"value"]}),~O&&(v.splice(O,1),l.setOptions(v))):s.notify("error",h.msg||c("删除失败,请重试")),[3,7];case 6:return b=i.sent(),console.error(b),s.notify("error",b.message),[3,7];case 7:return[2]}})})},a.prototype.render=function(){var e=this.props,t=e.value,n=e.formItem,a=e.addApi,s=e.editApi,p=e.deleteApi,l=e.creatable,d=e.editable,c=e.removable;return u.default.createElement(o,i.__assign({},this.props,{ref:this.inputRef,options:n?n.filteredOptions:[],onToggle:this.handleToggle,onToggleAll:this.handleToggleAll,selectedOptions:n?n.getSelectedOptions(t):[],loading:n?n.loading:!1,setLoading:this.setLoading,setOptions:this.setOptions,syncOptions:this.syncOptions,reloadOptions:this.reload,deferLoad:this.deferLoad,creatable:l||l!==!1&&r.isEffectiveApi(a),editable:d||d!==!1&&r.isEffectiveApi(s),removable:c||c!==!1&&r.isEffectiveApi(p),onAdd:this.handleOptionAdd,onEdit:this.handleOptionEdit,onDelete:this.handleOptionDelete}))};var d,y,g;return a.displayName="OptionsControl("+e.type+")",a.defaultProps=i.__assign({delimiter:",",labelField:"label",valueField:"value",joinValues:!0,extractValue:!1,multiple:!1,placeholder:"请选择",resetValue:"",deleteConfirmText:"确定要删除?"},o.defaultProps),a.propsList=o.propsList?i.__spreadArrays(o.propsList):[],a.ComposedComponent=o,i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],a.prototype,"inputRef",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof m.Option&&m.Option)?d:Object,Boolean,Boolean]),i.__metadata("design:returntype",void 0)],a.prototype,"handleToggle",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],a.prototype,"handleToggleAll",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],a.prototype,"reload",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Boolean]),i.__metadata("design:returntype",void 0)],a.prototype,"reloadOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",["function"==typeof(y="undefined"!=typeof m.Option&&m.Option)?y:Object]),i.__metadata("design:returntype",void 0)],a.prototype,"deferLoad",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",Promise)],a.prototype,"initOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",["function"==typeof(g="undefined"!=typeof Array&&Array)?g:Object,Object]),i.__metadata("design:returntype",void 0)],a.prototype,"setOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],a.prototype,"syncOptions",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Boolean]),i.__metadata("design:returntype",void 0)],a.prototype,"setLoading",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object,Object,Boolean]),i.__metadata("design:returntype",Promise)],a.prototype,"handleOptionAdd",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object,Object,Boolean]),i.__metadata("design:returntype",Promise)],a.prototype,"handleOptionEdit",null),i.__decorate([p.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",Promise)],a.prototype,"handleOptionDelete",null),a}(u.default.Component);return d.registerFormItem(i.__assign(i.__assign({},e),{strictMode:!1,component:n}))}function n(e){return function(t){var n=o(i.__assign(i.__assign({},e),{component:t}));return n.component}}function a(e,t,o){if(void 0===o&&(o="is-matched"),!t)return e;e=String(e);var n=new RegExp(t.replace(/([\$\^\*\+\-\?\.\(\)\|\[\]\\])/g,"\\$1"),"i");if(!n.test(e))return e;var a=e.split(n),i=[];return a.forEach(function(e,n){e&&i.push(u.default.createElement("span",{key:n},e)),i.push(u.default.createElement("span",{className:o,key:n+"-hl"},t))}),i.pop(),i}Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.OptionsControl=t.registerOptionsControl=t.detectProps=t.Option=void 0;var i=e("node_modules/tslib/tslib"),r=e("1caead1"),s=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),p=e("9a80175"),l=e("node_modules/mobx/lib/index"),d=e("567b83c"),u=i.__importDefault(e("node_modules/react/index")),c=e("f2e345e"),m=e("d57879c");Object.defineProperty(t,"Option",{enumerable:!0,get:function(){return m.Option}});var f=e("6a2dbb7"),_=i.__importDefault(e("node_modules/lodash/findIndex"));t.detectProps=d.detectProps.concat(["options","size","buttons","columnsCount","multiple","hideRoot","checkAll","showIcon","showRadio","btnDisabled","joinValues","extractValue"]),t.registerOptionsControl=o,t.OptionsControl=n,t.highlight=a}); +;/*!src/components/Checkbox.tsx*/ +amis.define("0a43d97",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkbox=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("256b65d"),d=e("9a80175"),u=function(e){return e.stopPropagation()},o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.handleCheck=function(e){var t=this.props,a=t.trueValue,n=t.falseValue,l=t.onChange;l&&l(e.currentTarget.checked?a:n)},t.prototype.render=function(){var e,t=this.props,a=t.size,l=t.className,d=t.classnames,o=t.value,r=t.label,c=t.partial,s=t.trueValue,i=t.children,p=t.disabled,f=t.description,h=t.readOnly,m=t.checked,b=t.type,y=t.name,C=t.labelClassName;return n.default.createElement("label",{className:d("Checkbox Checkbox--"+b,l,(e={"Checkbox--full":!c},e["Checkbox--"+a]=a,e))},n.default.createElement("input",{type:b,checked:"undefined"!=typeof m?m:"undefined"==typeof o?o:o==s,onChange:this.handleCheck,onClick:u,disabled:p,readOnly:h,name:y}),n.default.createElement("i",null),n.default.createElement("span",{className:d(C)},i||r),f?n.default.createElement("div",{className:d("Checkbox-desc")},f):null)};var l;return t.defaultProps={trueValue:!0,falseValue:!1,type:"checkbox"},a.__decorate([d.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.ChangeEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCheck",null),t}(n.default.Component);t.Checkbox=o,t.default=l.themeable(o)}); +;/*!src/components/Input.tsx*/ +amis.define("4ee46ff",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),a=e("9a80175"),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isOnComposition=!1,t.state={value:t.props.value},t}n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.value!==e.value&&this.setState({value:e.value})},t.prototype.handleComposition=function(e){this.isOnComposition="compositionend"!==e.type,this.isOnComposition||this.handleChange(e)},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;this.isOnComposition||t&&t(e),this.setState({value:n})},t.prototype.render=function(){var e=this.props,t=e.forwardedRef,a=n.__rest(e,["forwardedRef"]);return o.default.createElement("input",n.__assign({type:"text"},a,{value:this.state.value,ref:t,onChange:this.handleChange,onCompositionStart:this.handleComposition,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleComposition}))};var i,s;return n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof o.default&&o.default.CompositionEvent)?i:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleComposition",null),n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof o.default&&o.default.ChangeEvent)?s:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t}(o.default.Component);t.default=o.default.forwardRef(function(e,t){return o.default.createElement(i,n.__assign({},e,{forwardedRef:t}))})}); +;/*!src/components/Spinner.tsx*/ +amis.define("acad559",function(e,n){"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.Spinner=void 0;var r=e("node_modules/tslib/tslib"),a=r.__importDefault(e("node_modules/react/index")),i=e("256b65d"),l=r.__importStar(e("node_modules/react-transition-group/Transition")),o=e("b7bbd16"),u=(t={},t[l.ENTERING]="in",t[l.ENTERED]="in",t),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.div=a.default.createRef(),n.overlay=a.default.createRef(),n}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.show,r=n.classnames,i=n.spinnerClassName,s=n.mode,d=n.size,c=n.overlay,f=n.icon;return a.default.createElement(l.default,{mountOnEnter:!0,unmountOnExit:!0,"in":t,timeout:350},function(n){var t;return n===l.ENTERING&&e.overlay.current&&e.overlay.current.offsetWidth,a.default.createElement(a.default.Fragment,null,c?a.default.createElement("div",{ref:e.overlay,className:r("Spinner-overlay",u[n])}):null,a.default.createElement("div",{ref:e.div,className:r("Spinner",i,u[n],(t={},t["Spinner--"+s]=s,t["Spinner--overlay"]=c,t["Spinner--"+d]=d,t["Spinner--icon"]=f,t))},f?a.default.createElement(o.Icon,{icon:f,className:"icon"}):null))})},n.defaultProps={overlay:!1,spinnerClassName:"",mode:"",size:"",show:!0},n}(a.default.Component);n.Spinner=s,n.default=i.themeable(s)}); +;/*!src/components/Select.tsx*/ +amis.define("d57879c",function(e,t){"use strict";function n(e,t){if(t.multi||t.multiple){if("string"==typeof e&&(e=e.split(t.delimiter||",")),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return a(e,t.options,t.valueField)}).filter(function(e){return e})}Array.isArray(e)&&(e=e[0]);var n=a(e,t.options,t.valueField);return n?[n]:[]}function a(e,t,n){var a;void 0===n&&(n="value");var l=typeof e;return"string"!==l&&"number"!==l&&"boolean"!==l&&"object"!==l?e:t?("object"===l&&e&&e.hasOwnProperty(n||"value")&&(e=null!==(a=e[n||"value"])&&void 0!==a?a:""),m.findTree(t,i(e,n||"value"))):null}function l(e,t,n){return void 0===n&&(n="value"),m.isObject(e)?e===t[n||"value"]:String(t[n||"value"])===String(e)}function i(e,t){return void 0===t&&(t="value"),function(n){return l(e,n,t)}}function o(e,t){return void 0===t&&(t={values:[],options:[]}),"string"==typeof e?e.split(",").map(function(e){var n=t.values.indexOf(e);if(~n)return t.options[n];var a={label:e,value:e};return t.values.push(a.value),t.options.push(a),a}):Array.isArray(e)&&"string"==typeof e[0]?e.map(function(e){var n=t.values.indexOf(e);if(~n)return t.options[n];var a={label:e,value:e};return t.values.push(a.value),t.options.push(a),a}):Array.isArray(e)?e.map(function(e){var n=e&&e.value,a=void 0!==n?t.values.indexOf(n):-1;if(~a)return t.options[a];var l=s.__assign(s.__assign({},e),{value:n});return"undefined"!=typeof l.children?l.children=o(l.children,t):void 0!==n&&(t.values.push(n),t.options.push(l)),l}):v.default(e)?Object.keys(e).map(function(n){var a=t.values.indexOf(n);if(~a)return t.options[a];var l={label:e[n],value:n};return t.values.push(l.value),t.options.push(l),l}):[]}Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.normalizeOptions=t.optionValueCompare=t.matchOptionValue=t.expandValue=t.value2array=void 0;var s=e("node_modules/tslib/tslib"),r=e("node_modules/uncontrollable/cjs/index"),u=s.__importDefault(e("node_modules/react/index")),c=s.__importDefault(e("997df41")),d=s.__importDefault(e("2b3dcdf")),p=s.__importDefault(e("node_modules/downshift/dist/downshift.cjs")),h=e("b7bbd16"),f=s.__importDefault(e("node_modules/match-sorter/dist/match-sorter.cjs")),m=e("9a80175"),v=s.__importDefault(e("node_modules/lodash/isPlainObject")),g=s.__importDefault(e("node_modules/lodash/union")),b=e("b86428a"),y=e("node_modules/react-dom/index"),C=e("256b65d"),_=s.__importDefault(e("0a43d97")),k=s.__importDefault(e("4ee46ff")),O=e("5ab4e9d"),S=s.__importDefault(e("acad559"));t.value2array=n,t.expandValue=a,t.matchOptionValue=l,t.optionValueCompare=i,t.normalizeOptions=o;var E=p.default.stateChangeTypes,x=function(e){function t(t){var a=e.call(this,t)||this;return a.menu=u.default.createRef(),a.open=a.open.bind(a),a.close=a.close.bind(a),a.toggle=a.toggle.bind(a),a.onBlur=a.onBlur.bind(a),a.onFocus=a.onFocus.bind(a),a.focus=a.focus.bind(a),a.inputRef=a.inputRef.bind(a),a.handleChange=a.handleChange.bind(a),a.handleInputChange=a.handleInputChange.bind(a),a.clearValue=a.clearValue.bind(a),a.handleStateChange=a.handleStateChange.bind(a),a.handleKeyPress=a.handleKeyPress.bind(a),a.getTarget=a.getTarget.bind(a),a.toggleCheckAll=a.toggleCheckAll.bind(a),a.handleAddClick=a.handleAddClick.bind(a),a.handleEditClick=a.handleEditClick.bind(a),a.handleDeleteClick=a.handleDeleteClick.bind(a),a.state={isOpen:t.defaultOpen||!1,isFocused:!1,inputValue:"",highlightedIndex:-1,selection:n(t.value,t)},a}return s.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.loadOptions,n=e.options,a=e.multiple,l=e.defaultCheckAll,i=e.onChange,o=e.simpleValue,s=this.state.selection;a&&l&&n.length&&(s=g.default(n,s),this.setState({selection:s}),i(o?s.map(function(e){return e.value}):s)),t&&t("")},t.prototype.componentDidUpdate=function(e){var t=this.props,a=m.noop;if(t.value!==e.value||JSON.stringify(t.options)!==JSON.stringify(e.options)){var l;if(e.options&&e.options.length||!t.options.length)l=n(t.value,t);else{var i=this.state.selection,o=t.multiple,s=t.defaultCheckAll,r=t.options,u=t.onChange,c=t.simpleValue;o&&s&&r.length?(l=g.default(r,i),a=function(){return u(c?l.map(function(e){return e.value}):l)}):l=n(t.value,t)}this.setState({selection:l},a)}},t.prototype.open=function(){var e=this;this.props.disabled||this.setState({isOpen:!0,highlightedIndex:-1},function(){return setTimeout(e.focus,500)})},t.prototype.close=function(){this.setState({isOpen:!1})},t.prototype.toggle=function(e){var t=this;e&&this.menu.current&&this.menu.current.contains(e.target)||this.props.disabled||this.setState({isOpen:!this.state.isOpen,highlightedIndex:-1},this.state.isOpen?void 0:function(){return setTimeout(t.focus,500)})},t.prototype.onFocus=function(e){this.props.disabled||this.state.isOpen||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(e)},t.prototype.onBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},t.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},t.prototype.getTarget=function(){return this.target||(this.target=y.findDOMNode(this)),this.target},t.prototype.inputRef=function(e){this.input=e},t.prototype.toggleCheckAll=function(){var e=this.props,t=e.options,n=e.onChange,a=e.simpleValue,l=this.state.selection,i=t.map(function(e){return e.value}),o=l.map(function(e){return e.value}),s=i.every(function(e){return o.indexOf(e)>-1});l=s?[]:t,n(a?l.map(function(e){return e.value}):l)},t.prototype.removeItem=function(e,t){var n=this.props,a=n.onChange,l=n.simpleValue,i=n.disabled;if(!i){var o=this.state.selection;t&&t.stopPropagation(),o=Array.isArray(o)?o.concat():[o],o.splice(e,1),a(l?o.map(function(e){return e.value}):o)}},t.prototype.handleInputChange=function(e){var t=this,n=this.props.loadOptions;this.setState({inputValue:e.currentTarget.value},function(){return n&&n(t.state.inputValue)})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple,l=t.simpleValue,i=t.valueField,o=this.state.selection;if(a){var s=o.map(function(e){return e[i]});o=o.concat();var r=s.indexOf(e[i]);~r?o.splice(r,1):o.push(e),n(l?o.map(function(e){return e[i]}):o)}else n(l?e[i]:e)},t.prototype.handleStateChange=function(e){var t=this.props,n=t.multiple,a=t.checkAll,l=t.loadOptions,i=this.state.inputValue,o={},r=!1;switch(e.type){case E.keyDownEnter:case E.clickItem:o=s.__assign(s.__assign({},o),{isOpen:n?!0:!1,isFocused:n&&a?!0:!1,inputValue:n?i:""}),r=!n;break;case E.changeInput:o.highlightedIndex=0;case E.keyDownArrowDown:case E.keyDownArrowUp:case E.itemMouseEnter:o=s.__assign(s.__assign({},o),e)}Object.keys(o).length&&this.setState(o,r&&l?function(){return l("")}:void 0)},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.toggle(),e.preventDefault())},t.prototype.clearValue=function(e){var t=this.props.onChange;e.preventDefault(),e.stopPropagation(),t("")},t.prototype.handleAddClick=function(){var e=this.props.onAdd;e&&e()},t.prototype.handleEditClick=function(e,t){var n=this.props.onEdit;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.handleDeleteClick=function(e,t){var n=this.props.onDelete;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.renderValue=function(e){var t=this,n=(e.inputValue,e.isOpen,this.props),a=n.multiple,l=n.placeholder,i=n.classPrefix,o=n.labelField,s=n.disabled,r=n.translate,c=this.state.selection;return c.length?c.map(function(e,n){return a?u.default.createElement("div",{className:i+"Select-value",key:n},u.default.createElement("span",{className:i+"Select-valueIcon "+(s||e.disabled?"is-disabled":""),onClick:t.removeItem.bind(t,n)},"×"),u.default.createElement("span",{className:i+"Select-valueLabel"},e[o||"label"])):u.default.createElement("div",{className:i+"Select-value",key:n},e[o||"label"])}):u.default.createElement("div",{key:"placeholder",className:i+"Select-placeholder"},r(l))},t.prototype.renderOuter=function(e){var t=this,n=e.selectedItem,a=e.getItemProps,l=e.highlightedIndex,i=e.inputValue,o=e.isOpen,r=(e.getToggleButtonProps,e.getInputProps),p=this.props,m=p.popOverContainer,v=p.options,g=p.valueField,y=p.labelField,C=p.noResultsText,O=p.loadOptions,S=p.creatable,E=p.multiple,x=p.classnames,A=p.checkAll,V=p.checkAllLabel,I=p.searchable,N=p.createBtnLabel,D=p.disabled,F=p.searchPromptText,P=p.editable,T=p.removable,w=p.overlayPlacement,B=p.translate,j=this.state.selection,R=!1,K=!1,L=(i&&o&&!O?f.default(v,i,{keys:[y||"label",g||"value"]}):v.concat()).filter(function(e){return!e.hidden&&e.visible!==!1}),M=j.map(function(e){return e[g]});if(E&&A){var W=v.map(function(e){return e[g]});R=W.every(function(e){return M.indexOf(e)>-1}),K=W.some(function(e){return M.indexOf(e)>-1})}var z=u.default.createElement("div",{ref:this.menu,className:x("Select-menu")},I?u.default.createElement("div",{className:x("Select-input",{"is-focused":this.state.isFocused})},u.default.createElement(h.Icon,{icon:"search",className:"icon"}),u.default.createElement(k.default,s.__assign({},r({onFocus:this.onFocus,onBlur:this.onBlur,disabled:D,placeholder:B(F),onChange:this.handleInputChange,ref:this.inputRef})))):null,E&&A&&L.length?u.default.createElement("div",{className:x("Select-option")},u.default.createElement(_.default,{checked:K,partial:K&&!R,onChange:this.toggleCheckAll},B(V))):null,L.length?L.map(function(e,o){var r=n===e||!!~M.indexOf(e[g]);return u.default.createElement("div",s.__assign({},a({key:"string"==typeof e.value?e.label+"-"+e.value:o,index:o,item:e,disabled:e.disabled}),{className:x("Select-option",{"is-disabled":e.disabled,"is-highlight":l===o,"is-active":r})}),T?u.default.createElement("a",{"data-tooltip":"移除","data-position":"left"},u.default.createElement(h.Icon,{icon:"minus",className:"icon",onClick:function(n){return t.handleDeleteClick(n,e)}})):null,P?u.default.createElement("a",{"data-tooltip":"编辑","data-position":"left"},u.default.createElement(h.Icon,{icon:"pencil",className:"icon",onClick:function(n){return t.handleEditClick(n,e)}})):null,A||E?u.default.createElement(_.default,{checked:r,trueValue:e.value,onChange:function(){t.handleChange(e)},disabled:e.disabled},e.disabled?e[y]:b.highlight(e[y],i,x("Select-option-hl")),e.tip):u.default.createElement("span",null,e.disabled?e[y]:b.highlight(e[y],i,x("Select-option-hl")),e.tip))}):u.default.createElement("div",{className:x("Select-noResult")},B(C)),S&&!D?u.default.createElement("a",{className:x("Select-addBtn"),onClick:this.handleAddClick},u.default.createElement(h.Icon,{icon:"plus",className:"icon"}),B(N)):null);return u.default.createElement(c.default,{container:m||this.getTarget,target:this.getTarget,placement:w,show:!0},u.default.createElement(d.default,{overlay:!0,className:x("Select-popover"),style:{minWidth:this.target?this.target.offsetWidth:"auto"},onHide:this.close},z))},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.multiple,l=t.searchable,i=t.inline,o=t.className,s=t.value,r=t.loading,c=t.clearable,d=t.labelField,f=t.disabled,v=t.checkAll,g=this.state.selection,b=this.state.inputValue;return u.default.createElement(p.default,{selectedItem:g,highlightedIndex:this.state.highlightedIndex,isOpen:this.state.isOpen,inputValue:b,onChange:a||v?m.noop:this.handleChange,onStateChange:this.handleStateChange,itemToString:function(e){return e?e[d]:""}},function(t){var d,p=t.isOpen;return u.default.createElement("div",{tabIndex:f?-1:0,onKeyPress:e.handleKeyPress,onClick:e.toggle,onFocus:e.onFocus,onBlur:e.onBlur,className:n("Select",(d={},d["Select--multi"]=a,d["Select--inline"]=i,d["Select--searchable"]=l,d["is-opened"]=p,d["is-focused"]=e.state.isFocused,d["is-disabled"]=f,d),o)},u.default.createElement("div",{className:n("Select-valueWrap")},e.renderValue(t)),c&&!f&&s&&s.length?u.default.createElement("a",{onClick:e.clearValue,className:n("Select-clear")},u.default.createElement(h.Icon,{icon:"close",className:"icon"})):null,r?u.default.createElement(S.default,{show:!0,icon:"reload",spinnerClassName:n("Select-spinner")}):null,u.default.createElement("span",{className:n("Select-arrow")},u.default.createElement(h.Icon,{icon:"caret",className:"icon"})),p?e.renderOuter(t):null)})},t.defaultProps={multiple:!1,clearable:!0,creatable:!1,createBtnLabel:"新增选项",searchPromptText:"输入内容进行检索",loadingPlaceholder:"加载中..",noResultsText:"未找到任何结果",clearAllText:"移除所有",clearValueText:"移除",placeholder:"请选择",valueField:"value",labelField:"label",inline:!1,disabled:!1,checkAll:!1,checkAllLabel:"全选",defaultCheckAll:!1,overlayPlacement:"auto"},t}(u.default.Component);t.Select=x,t.default=C.themeable(O.localeable(r.uncontrollable(x,{value:"onChange"})))}); +;/*!src/store/formItem.ts*/ +amis.define("4ad5d54",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemStore=void 0;var n=e("node_modules/tslib/tslib"),i=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),a=e("943464a"),o=e("3fbfd93"),r=e("6a2dbb7"),l=n.__importDefault(e("node_modules/lodash/findIndex")),s=e("9a80175"),u=e("9a80175"),d=e("d57879c"),f=n.__importDefault(e("node_modules/lodash/find")),p=e("398dbab"),c=i.types.model("ErrorDetail",{msg:"",tag:""});t.FormItemStore=i.types.model("FormItemStore",{identifier:i.types.identifier,isFocused:!1,type:"",unique:!1,loading:!1,required:!1,rules:i.types.optional(i.types.frozen(),{}),messages:i.types.optional(i.types.frozen(),{}),errorData:i.types.optional(i.types.array(c),[]),name:i.types.string,id:"",unsetValueOnInvisible:!1,validated:!1,validating:!1,multiple:!1,delimiter:",",valueField:"value",labelField:"label",joinValues:!0,extractValue:!1,options:i.types.optional(i.types.array(i.types.frozen()),[]),expressionsInOptions:!1,selectedOptions:i.types.optional(i.types.frozen(),[]),filteredOptions:i.types.optional(i.types.frozen(),[]),dialogSchema:i.types.frozen(),dialogOpen:!1,dialogData:i.types.frozen()}).views(function(e){function t(){return i.hasParent(e,2)?i.getParent(e,2):null}function n(){return t()?t().getValueByName(e.name):void 0}function a(){return e.selectedOptions.length?e.selectedOptions[e.selectedOptions.length-1].value:""}function o(){return e.errorData.map(function(e){return e.msg})}return{get form(){return t()},get value(){return n()},get prinstine(){return i.getParent(e,2).getPristineValueByName(e.name)},get errors(){return o()},get valid(){var e=o();return!(e&&e.length)},get lastSelectValue(){return a()},getSelectedOptions:function(t){if(void 0===t&&(t=n()),"undefined"==typeof t)return[];var i=Array.isArray(t)?t:"string"==typeof t?t.split(e.delimiter||","):[t],a=i.map(function(t){return t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t}),o=[];return a.forEach(function(t,n){var a,r,l=s.findTree(e.filteredOptions,d.optionValueCompare(t,e.valueField||"value"));if(l)o.push(l);else{var u=i&&i[n]||t;!u||"string"!=typeof u&&"number"!=typeof u?u&&e.extractValue&&(r={},r[e.valueField||"value"]=t,r[e.labelField||"label"]="UnKnown",r.__unmatched=!0,u=r):(a={},a[e.valueField||"value"]=t,a[e.labelField||"label"]=t,a.__unmatched=!0,u=a),u&&o.push(u)}}),o},get __(){return i.isAlive(e)&&i.getRoot(e)&&"RendererStore"===i.getRoot(e).storeType?i.getRoot(e).__:function(e){return e}}}}).actions(function(e){function t(t){var i=t.required,o=t.unique,r=t.value,l=t.rules,u=t.messages,d=t.delimiter,f=t.multiple,p=t.valueField,c=t.labelField,v=t.joinValues,g=t.extractValue,m=t.type,y=t.id;"string"==typeof l&&(l=a.str2rules(l)),"undefined"!=typeof m&&(e.type=m),"undefined"!=typeof y&&(e.id=y),"undefined"!=typeof u&&(e.messages=u),"undefined"!=typeof i&&(e.required=!!i),"undefined"!=typeof o&&(e.unique=!!o),"undefined"!=typeof f&&(e.multiple=!!f),"undefined"!=typeof v&&(e.joinValues=!!v),"undefined"!=typeof g&&(e.extractValue=!!g),"undefined"!=typeof d&&(e.delimiter=d||","),"undefined"!=typeof p&&(e.valueField=p||"value"),"undefined"!=typeof c&&(e.labelField=c||"label"),l=l||{},l=n.__assign(n.__assign({},l),{isRequired:e.required}),s.isObjectShallowModified(l,e.rules)&&(e.rules=l,b("bultin"),e.validated=!1),void 0!==r&&void 0===e.value&&x.setValueByName(e.name,r,!0)}function c(){e.isFocused=!0}function v(){e.isFocused=!1}function g(t,n){void 0===n&&(n=!1),"undefined"==typeof t||"__undefined"===t?e.form.deleteValueByName(e.name):e.form.setValueByName(e.name,t,n)}function m(e,t){void 0===t&&(t="bultin"),b(),y(e,t)}function y(t,n){void 0===n&&(n="bultin");var i=Array.isArray(t)?t:[t];i.forEach(function(t){return e.errorData.push({msg:t,tag:n})})}function b(t){if(t){var n=e.errorData.filter(function(e){return e.tag!==t});e.errorData.replace(n)}else e.errorData.clear()}function _(t){if(Array.isArray(t)){t=t.filter(function(e){return e});var n=e.options.concat();t.length?e.options.replace(t):e.options.clear(),h(n)}}function h(t){var i;if(!e.options.length&&"undefined"==typeof e.value)return e.selectedOptions=[],void(e.filteredOptions=[]);var a=e.form,p=e.value,c=Array.isArray(p)?p.map(function(t){return t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t}):"string"==typeof p?p.split(e.delimiter||","):void 0===p?[]:[p&&p.hasOwnProperty(e.valueField||"value")?p[e.valueField||"value"]:p];p&&p.hasOwnProperty(e.labelField||"label")&&(c[0]=(i={},i[e.labelField||"label"]=p[e.labelField||"label"],i[e.valueField||"value"]=p[e.valueField||"value"],i));var v=!1,g=e.options.filter(function(e){return v||!e.visibleOn&&!e.hiddenOn||(v=!0),e.visibleOn?r.evalExpression(e.visibleOn,a.data)!==!1:e.hiddenOn?r.evalExpression(e.hiddenOn,a.data)!==!0:e.visible!==!1||e.hidden!==!0}).map(function(t,i){var o=r.evalExpression(t.disabledOn,a.data),l=t.disabledOn?e.filteredOptions.length>i&&e.filteredOptions[i].disabled===o?e.filteredOptions[i]:n.__assign(n.__assign({},t),{disabled:o}):t;return l});e.expressionsInOptions=v;var m=u.flattenTree(g),y=[];c.forEach(function(n,i){var a,o,r=l.default(m,d.optionValueCompare(n,e.valueField||"value"));if(~r)y.push(m[r]);else{var s=p&&p[i]||n;if(!s||"string"!=typeof s&&"number"!=typeof s)s&&e.extractValue&&(o={},o[e.valueField||"value"]=n,o[e.labelField||"label"]="UnKnown",o.__unmatched=!0,s=o);else{a={},a[e.valueField||"value"]=n,a[e.labelField||"label"]=n,a.__unmatched=!0,s=a;var u=t&&f.default(t,d.optionValueCompare(n,e.valueField||"value"));u&&(s[e.labelField||"label"]=u[e.labelField||"label"])}s&&y.push(s)}});var b=a.parentStore;if(b&&b.storeType===o.ComboStore.name){var _=b,h=_.uniques.get(e.name),O=[];h&&h.items.forEach(function(t){e!==t&&O.push.apply(O,t.selectedOptions.map(function(e){return e&&e.value}))}),g.length&&(g=g.filter(function(e){return!~O.indexOf(e.value)}))}s.isArrayChildrenModified(e.selectedOptions,y)&&(e.selectedOptions=y),s.isArrayChildrenModified(e.filteredOptions,g)&&(e.filteredOptions=g)}function O(t){e.loading=t}function F(e){V=e}function j(){if(e.validated=!1,V&&"ComboStore"===V.storeType){var t=V;t.forms.forEach(function(e){return e.reset()})}b()}function w(t,n,i){void 0===n&&(n=x.data),e.dialogSchema=t,e.dialogData=n,e.dialogOpen=!0,i&&D.set(e.dialogData,i)}function S(t){var n=D.get(e.dialogData);e.dialogOpen=!1,n&&(D.delete(e.dialogData),setTimeout(function(){return n(t)},200))}var V,x=e.form,D=new p.SimpleMap,T=i.flow(function(t){var i,o;return n.__generator(this,function(n){switch(n.label){case 0:return e.validating?[2,e.valid]:(e.validating=!0,b(),t?[4,t()]:[3,2]);case 1:n.sent(),n.label=2;case 2:return y(a.validate(e.value,e.form.data,e.rules,e.messages,e.__)),e.validated=!0,e.unique&&e.form.parentStore&&"ComboStore"===e.form.parentStore.storeType&&(i=e.form.parentStore,o=i.uniques.get(e.name),o.items.some(function(t){return t!==e&&e.value&&t.value===e.value})&&y(e.__("`当前值不唯一`"))),e.validating=!1,[2,e.valid]}})}),E=null,A=i.flow(function(t,a,o,r){var l,s,u,d;return n.__generator(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),E&&(E(),E=null,e.loading=!1),e.loading=!0,[4,i.getRoot(e).fetcher(t,a,n.__assign({autoAppend:!1,cancelExecutor:function(e){return E=e}},o))];case 1:return l=f.sent(),E=null,s=null,l.ok?s=l:(r!==!1&&m(e.__("加载选项失败,原因:{{reason}}",{reason:l.msg||o&&o.errorMessage})),i.getRoot(e).notify("error",e.errors.join(""),void 0!==l.msgTimeout?{closeButton:!0,timeout:l.msgTimeout}:void 0)),e.loading=!1,[2,s];case 2:return u=f.sent(),d=i.getRoot(e),"RendererStore"!==d.storeType?[2]:(e.loading=!1,d.isCancel(u)?[2]:(console.error(u.stack),i.getRoot(e)&&i.getRoot(e).notify("error",u.message),[2]));case 3:return[2]}})}),q=i.flow(function(t,i,a,o,r,l){var s,u,f;return n.__generator(this,function(n){switch(n.label){case 0:return[4,A(t,i,a,l)];case 1:return(s=n.sent())?(b(),e.validated=!1,u=(null===(f=s.data)||void 0===f?void 0:f.options)||s.data.items||s.data.rows||s.data||[],u=d.normalizeOptions(u),_(u),s.data&&"undefined"!=typeof s.data.value?r&&r(s.data.value,!1,!0):o&&e.selectedOptions.some(function(e){return e.__unmatched})&&r&&r("",!1,!0),[2,s]):[2]}})}),R=i.flow(function(t,i,a,o){var r,l,u,d;return n.__generator(this,function(f){switch(f.label){case 0:return(r=s.findTreeIndex(e.options,function(e){return e===t}))?(_(s.spliceTree(e.options,r,1,n.__assign(n.__assign({},t),{loading:!0}))),[4,A(i,a,o,!1)]):[2];case 1:return(l=f.sent())?(u=(null===(d=l.data)||void 0===d?void 0:d.options)||l.data.items||l.data.rows||l.data||[],_(s.spliceTree(e.options,r,1,n.__assign(n.__assign({},t),{loading:!1,loaded:!0,children:u}))),[2,l]):(_(s.spliceTree(e.options,r,1,n.__assign(n.__assign({},t),{loading:!1,error:!0}))),[2])}})});return{focus:c,blur:v,config:t,changeValue:g,validate:T,setError:m,addError:y,clearError:b,setOptions:_,loadOptions:q,deferLoadOptions:R,syncOptions:h,setLoading:O,setSubStore:F,reset:j,openDialog:w,closeDialog:S}})}); +;/*!src/store/form.ts*/ +amis.define("956950c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFormItemStore=t.FormStore=void 0;var r=e("node_modules/tslib/tslib"),a=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),n=r.__importDefault(e("node_modules/lodash/debounce")),i=e("57d76d7"),s=e("4ad5d54");Object.defineProperty(t,"IFormItemStore",{enumerable:!0,get:function(){return s.IFormItemStore}});var o=e("bc87d08"),c=e("9a80175"),u=r.__importDefault(e("node_modules/lodash/isEqual"));t.FormStore=i.ServiceStore.named("FormStore").props({inited:!1,validated:!1,submited:!1,submiting:!1,validating:!1,items:a.types.optional(a.types.array(a.types.late(function(){return s.FormItemStore})),[]),canAccessSuperData:!0,persistData:!1}).views(function(e){return{get loading(){return e.saving||e.fetching},get errors(){var t={};return e.items.forEach(function(e){e.valid||(t[e.name]=Array.isArray(t[e.name])?t[e.name].concat(e.errors):e.errors.concat())}),t},getValueByName:function(t){return c.getVariable(e.data,t,e.canAccessSuperData)},getPristineValueByName:function(t){return c.getVariable(e.pristine,t)},getItemById:function(t){return e.items.find(function(e){return e.id===t})},getItemByName:function(t){return e.items.find(function(e){return e.name===t})},getItemsByName:function(t){return e.items.filter(function(e){return e.name===t})},get valid(){return e.items.every(function(e){return e.valid})},get isPristine(){return u.default(e.pristine,e.data)}}}).actions(function(e){function t(t,r,a){e.updateData(t,r,a),h()}function i(t,a,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var s=c.getVariable(e.data,t,!1),o=e.data,u=c.cloneObject(e.data);if(a!==s)if(o.__prev){var l=c.cloneObject(o.__prev);c.setVariable(l,t,s),Object.defineProperty(u,"__prev",{value:l,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(u,"__prev",{value:r.__assign({},o),enumerable:!1,configurable:!1,writable:!1});else if(!i)return;if(c.setVariable(u,t,a),n){var f=c.cloneObject(e.pristine);c.setVariable(f,t,a),e.pristine=f}u.__pristine||Object.defineProperty(u,"__pristine",{value:e.pristine,enumerable:!1,configurable:!1,writable:!1}),e.data=u,e.persistData&&w(),h()}function s(t){var a=e.data,n=c.cloneObject(e.data);if(a.__prev){var i=c.cloneObject(a.__prev);c.setVariable(i,t,c.getVariable(a,t)),Object.defineProperty(n,"__prev",{value:i,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(n,"__prev",{value:r.__assign({},a),enumerable:!1,configurable:!1,writable:!1});c.deleteVariable(n,t),e.data=n}function u(){var t=c.mapObject(e.data,function(e){return"string"==typeof e?e.trim():e});e.updateData(t)}function l(){var t=e.items.concat();t.forEach(function(e){return e.reset()})}function f(t,r){void 0===r&&(r=!0),r&&(e.data=e.pristine),e.validated=!1,e.submited=!1,e.items.forEach(function(e){return e.reset()}),t&&t(e.data)}function d(t,r){var a;return e.items.push({identifier:c.guid(),name:t}),a=e.items[e.items.length-1],i(a.name,a.value,!1,!1),r&&a.config(r),a}function m(e){a.detach(e)}function g(){if(e.parentStore&&"ComboStore"===e.parentStore.storeType){var t=e.parentStore;e.items.forEach(function(e){e.unique&&t.unBindUniuqueItem(e)}),t.removeForm(e),t.forms.forEach(function(e){return e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}e.items.forEach(function(e){return a.detach(e)})}function b(t){void 0===t&&(t=!0),e.canAccessSuperData=t}function p(t){e.inited=t}function v(){e.persistData=!0;var t=localStorage.getItem(location.pathname+e.path);t&&e.updateData(JSON.parse(t))}function _(){localStorage.removeItem(location.pathname+e.path)}var h=n.default(function(){return e.items.forEach(function(e){return e.syncOptions()})},250,{trailing:!0,leading:!1}),y=a.flow(function(n,i,s){var u,l,f,u,d,m;return void 0===s&&(s={}),r.__generator(this,function(g){switch(g.label){case 0:return g.trys.push([0,9,,10]),s=r.__assign({method:"post"},s),s&&s.beforeSend?(u=s.beforeSend(i),u&&u.then?[4,u]:[3,2]):[3,3];case 1:u=g.sent(),g.label=2;case 2:if(u===!1)return[2];g.label=3;case 3:return e.markSaving(!0),[4,a.getRoot(e).fetcher(n,i,s)];case 4:if(l=g.sent(),(!c.isEmpty(l.data)||l.ok)&&(e.updatedAt=Date.now(),t(l.data,{__saved:Date.now()},!!n.replaceData)),l.ok)return[3,5];throw 422===l.status&&l.errors?(f=l.errors,Object.keys(f).forEach(function(t){var r=e.getItemById(t);r?r.setError(f[t]):e.getItemsByName(t).forEach(function(e){return e.setError(f[t])})}),e.updateMessage(l.msg||s&&s.errorMessage||e.__("验证错误"),!0)):e.updateMessage(l.msg||s&&s.errorMessage,!0),new o.ServerError(e.msg,l);case 5:return s&&s.onSuccess?(u=s.onSuccess(l),u&&u.then?[4,u]:[3,7]):[3,7];case 6:g.sent(),g.label=7;case 7:return e.markSaving(!1),e.updateMessage(l.msg||s&&s.successMessage),e.msg&&a.getRoot(e).notify("success",e.msg),[2,l.data];case 8:return[3,10];case 9:if(d=g.sent(),"RendererStore"!==a.getRoot(e).storeType)return[2];throw e.markSaving(!1),"ServerError"===d.type?(m=d.response,a.getRoot(e).notify("error",d.message,void 0!==m.msgTimeout?{closeButton:!0,timeout:m.msgTimeout}:void 0)):a.getRoot(e).notify("error",d.message),d;case 10:return[2]}})}),S=a.flow(function(t,n,i){var s,o,u,l;return r.__generator(this,function(r){switch(r.label){case 0:e.submited=!0,e.submiting=!0,r.label=1;case 1:return r.trys.push([1,,5,6]),[4,O(n)];case 2:if(s=r.sent(),!s)throw o=null!==i&&void 0!==i?i:e.__("表单验证失败,请仔细检查"),o&&a.getRoot(e).notify("error",o),new Error(e.__("验证失败"));return t?(u=c.difference(e.data,e.pristine),[4,t(c.createObject(c.createObject(e.data.__super,{diff:u,__diff:u,pristine:e.pristine}),e.data))]):[3,4];case 3:return l=r.sent(),[2,null!==l&&void 0!==l?l:e.data];case 4:return[2,e.data];case 5:return e.submiting=!1,[7];case 6:return[2]}})}),O=a.flow(function(t,a){var n,i,s,o,i,s;return r.__generator(this,function(r){switch(r.label){case 0:e.validating=!0,e.validated=!0,n=e.items.concat(),i=0,s=n.length,r.label=1;case 1:return s>i?(o=n[i],!o.validated||o.unique||a?[4,o.validate()]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:if(!t||!t.length)return[3,8];i=0,s=t.length,r.label=5;case 5:return s>i?[4,t[i]()]:[3,8];case 6:r.sent(),r.label=7;case 7:return i++,[3,5];case 8:return e.validating=!1,[2,e.valid]}})}),j=a.flow(function(t){var a,n,i,s,o,c,u;return r.__generator(this,function(r){switch(r.label){case 0:e.validating=!0,a=e.items.concat(),n=[],i=0,s=a.length,r.label=1;case 1:return s>i?(o=a[i],~t.indexOf(o.name)?(u=(c=n).push,[4,o.validate()]):[3,3]):[3,4];case 2:u.apply(c,[r.sent()]),r.label=3;case 3:return i++,[3,1];case 4:return e.validating=!1,[2,n.every(function(e){return e})]}})}),w=n.default(function(){return localStorage.setItem(location.pathname+e.path,JSON.stringify(e.data))},250,{trailing:!0,leading:!1});return{setInited:p,setValues:t,setValueByName:i,trimValues:u,submit:S,validate:O,validateFields:j,clearErrors:l,saveRemote:y,reset:f,registryItem:d,unRegistryItem:m,beforeDetach:g,syncOptions:h,setCanAccessSuperData:b,deleteValueByName:s,getPersistData:v,setPersistData:w,clearPersistData:_,beforeDestroy:function(){h.cancel(),w.cancel()}}})}); +;/*!src/store/combo.ts*/ +amis.define("3fbfd93",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ComboStore=n.UniqueGroup=void 0;var t=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),i=e("7820b08"),r=e("4ad5d54"),u=e("956950c");n.UniqueGroup=t.types.model("UniqueGroup",{name:t.types.identifier,items:t.types.array(t.types.reference(t.types.late(function(){return r.FormItemStore})))}),n.ComboStore=i.iRendererStore.named("ComboStore").props({uniques:t.types.map(n.UniqueGroup),forms:t.types.array(t.types.reference(t.types.late(function(){return u.FormStore}))),minLength:0,maxLength:0,length:0,activeKey:0}).views(function(e){return{get addable(){if(e.maxLength&&e.length>=e.maxLength)return!1;if(e.uniques.size){var n=!1;if(e.uniques.forEach(function(e){if(!n&&e.items.length){var t=e.items[0].options.length,i=e.items.reduce(function(e,n){return e+n.selectedOptions.length},0);n=t&&i>=t?!0:!1}}),n)return!1}return!0},get removable(){return e.minLength&&e.minLength>=e.length?!1:!0}}}).actions(function(e){function n(n){"undefined"!=typeof n.minLength&&(e.minLength=parseInt(n.minLength,10)),"undefined"!=typeof n.maxLength&&(e.maxLength=parseInt(n.maxLength,10)),"undefined"!=typeof n.length&&(e.length=n.length)}function t(n){e.uniques.has(n.name)||e.uniques.put({name:n.name});var t=e.uniques.get(n.name);t.items.push(n)}function i(n){var t=e.uniques.get(n.name);t.items.remove(n),t.items.length||e.uniques.delete(n.name)}function r(n){e.forms.push(n)}function u(n){e.forms.includes(n)&&e.forms.remove(n)}function o(n){e.activeKey=n}return{config:n,setActiveKey:o,bindUniuqueItem:t,unBindUniuqueItem:i,addForm:r,removeForm:u}})}); +;/*!src/store/crud.ts*/ +amis.define("7b0821e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CRUDStore=void 0;var a=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),s=e("57d76d7"),o=e("9a80175"),n=a.__importDefault(e("node_modules/lodash/pick")),i=e("f2e345e"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ServerError",t}return a.__extends(t,e),t}(Error);t.CRUDStore=s.ServiceStore.named("CRUDStore").props({pristineQuery:r.types.optional(r.types.frozen(),{}),query:r.types.optional(r.types.frozen(),{}),prevPage:1,page:1,perPage:10,total:0,mode:"normal",hasNext:!1,selectedAction:r.types.frozen(),items:r.types.optional(r.types.array(r.types.frozen()),[]),selectedItems:r.types.optional(r.types.array(r.types.frozen()),[]),unSelectedItems:r.types.optional(r.types.array(r.types.frozen()),[]),filterTogggable:!1,filterVisible:!0,hasInnerModalOpen:!1}).views(function(e){return{get lastPage(){return Math.max(Math.ceil(e.total/(e.perPage<1?10:e.perPage)),1)},get filterData(){return o.createObject(e.data,a.__assign({},e.query))},get mergedData(){return o.extendObject(e.data,a.__assign(a.__assign(a.__assign({},e.query),e.data),{selectedItems:e.selectedItems,unSelectedItems:e.unSelectedItems}))},get hasModalOpened(){return e.dialogOpen||e.drawerOpen||e.hasInnerModalOpen},get selectedItemsAsArray(){return e.selectedItems.concat()}}}).actions(function(e){function t(){e.pristineQuery=e.query}function s(t,r,s,n,i){void 0===s&&(s="page"),void 0===n&&(n="perPage"),void 0===i&&(i=!1);var c=e.query;e.query=i?a.__assign({},t):a.__assign(a.__assign({},e.query),t),e.query[s||"page"]&&(e.page=parseInt(e.query[s||"page"],10)),e.query[n||"perPage"]&&(e.perPage=parseInt(e.query[n||"perPage"],10)),r&&o.isObjectShallowModified(c,e.query,!1)&&setTimeout(r.bind(null,"?"+o.qsstringify(e.query)),4)}function u(t,a){e.page=t,a&&(e.perPage=a)}function l(t){e.selectedAction=t}var g=null,d=r.flow(function(t,c,u){var l,d,p,m,y,f,_,b,v,h,w,I,D,l,P,q,d,O,A,R;return void 0===u&&(u={}),a.__generator(this,function(S){switch(S.label){case 0:return S.trys.push([0,2,,3]),!u.forceReload&&u.loadDataOnce&&e.total?(l=u.source?i.resolveVariableAndFilter(u.source,o.createObject(e.mergedData,{items:e.data.itemsRaw,rows:e.data.itemsRaw}),"| raw"):e.items.concat(),e.query.orderBy&&(d=/desc/i.test(e.query.orderDir)?-1:1,l=o.sortArray(l,e.query.orderBy,d)),p=a.__assign(a.__assign({},e.data),{total:l.length,items:l.slice((e.page-1)*e.perPage,e.page*e.perPage)}),e.total=parseInt(p.total||p.count,10)||0,e.reInitData(p),[2]):(g&&(g(),g=null,e.fetching=!1),u.silent||e.markFetching(!0),m=o.createObject(e.data,a.__assign(a.__assign(a.__assign({},e.query),(R={},R[u.pageField||"page"]=e.page,R[u.perPageField||"perPage"]=e.perPage,R)),c)),u.loadDataOnce&&delete m[u.perPageField||"perPage"],[4,r.getRoot(e).fetcher(t,m,a.__assign(a.__assign({},u),{cancelExecutor:function(e){return g=e}}))]);case 1:if(y=S.sent(),g=null,y.ok){if(!y.data)throw new Error(e.__("返回数据格式不正确,payload.data 没有数据"));if(e.updatedAt=Date.now(),f=y.data,Array.isArray(f)&&(f={items:f}),_=f.total,b=f.count,v=f.page,h=f.hasNext,w=f.items,I=f.rows,D=a.__rest(f,["total","count","page","hasNext","items","rows"]),l=void 0,l=u.source?i.resolveVariableAndFilter(u.source,o.createObject(e.filterData,f),"| raw"):f.items||f.rows,!Array.isArray(l))throw new Error(e.__("返回数据格式不正确,payload.data.items 必须是数组"));l.map(function(e){return"string"==typeof e?{text:e}:e}),P=[],P=u.loadDataMode&&Array.isArray(e.data.items)?e.data.items.concat(l):l,q=a.__assign(a.__assign(a.__assign({},t.replaceData?{}:e.pristine),{items:P,count:b,total:_}),D),u.loadDataOnce&&(q.itemsRaw=w||I,e.query.orderBy&&(d=/desc/i.test(e.query.orderDir)?-1:1,P=o.sortArray(P,e.query.orderBy,d)),q.items=P.slice((e.page-1)*e.perPage,e.page*e.perPage),q.count=q.total=P.length),e.items.replace(P),e.reInitData(q,!!t.replaceData),u.syncResponse2Query!==!1&&s(n.default(D,Object.keys(e.query)),void 0,u.pageField||"page",u.perPageField||"perPage"),e.total=parseInt(q.total||q.count,10)||0,"undefined"!=typeof v&&(e.page=parseInt(v,10)),"undefined"!=typeof h&&(e.mode="simple",e.total=0,e.hasNext=!!h),e.updateMessage(y.msg||u.successMessage),u&&u.successMessage&&r.getRoot(e).notify("success",e.msg)}else e.updateMessage(y.msg||u.errorMessage||e.__("获取失败"),!0),r.getRoot(e).notify("error",y.msg,void 0!==y.msgTimeout?{closeButton:!0,timeout:y.msgTimeout}:void 0);return e.markFetching(!1),[2,y];case 2:return O=S.sent(),A=r.getRoot(e),r.isAlive(A)&&"RendererStore"===A.storeType?(e.markFetching(!1),A.isCancel(O)?[2]:(console.error(O.stack),A.notify("error",O.message),[2])):[2];case 3:return[2]}})}),p=r.flow(function(t,s,n){var i,u;return void 0===n&&(n={}),a.__generator(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),n=a.__assign({method:"post"},n),e.markSaving(!0),[4,r.getRoot(e).fetcher(t,s,n)];case 1:if(i=l.sent(),e.markSaving(!1),(!o.isEmpty(i.data)||i.ok)&&(e.updateData(i.data,{__saved:Date.now()},!!t&&t.replaceData),e.updatedAt=Date.now()),!i.ok)throw e.updateMessage(i.msg||n.errorMessage||e.__("保存失败"),!0),r.getRoot(e).notify("error",e.msg,void 0!==i.msgTimeout?{closeButton:!0,timeout:i.msgTimeout}:void 0),new c(e.msg);return e.updateMessage(i.msg||n.successMessage),e.msg&&r.getRoot(e).notify("success",e.msg),[2,i.data];case 2:throw u=l.sent(),e.markSaving(!1),"ServerError"!==u.type&&r.getRoot(e)&&r.getRoot(e).notify("error",u.message),u;case 3:return[2]}})}),m=function(t,a){e.filterTogggable=t,void 0!==a&&(e.filterVisible=a)},y=function(t){e.filterVisible=t},f=function(t){e.selectedItems.replace(t)},_=function(t){e.unSelectedItems.replace(t)},b=function(t){e.hasInnerModalOpen=t},v=function(t,r){var s=i.resolveVariableAndFilter(r,t,"| raw");if(Array.isArray(s)){var o=a.__assign(a.__assign({},e.pristine),{items:s,count:0,total:0});e.items.replace(s),e.reInitData(o)}};return{setPristineQuery:t,updateQuery:s,fetchInitData:d,changePage:u,selectAction:l,saveRemote:p,setFilterTogglable:m,setFilterVisible:y,setSelectedItems:f,setUnSelectedItems:_,setInnerModalOpened:b,initFromScope:v}})}); +;/*!src/store/table.ts*/ +amis.define("4fbfbc8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableStore=t.Row=t.Column=void 0;var n=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),o=e("7820b08"),i=e("f2e345e"),a=n.__importDefault(e("node_modules/lodash/isEqual")),l=n.__importDefault(e("node_modules/lodash/find")),c=e("9a80175"),d=e("6a2dbb7");t.Column=r.types.model("Column",{label:r.types.optional(r.types.frozen(),void 0),type:r.types.string,name:r.types.maybe(r.types.string),value:r.types.frozen(),groupName:"",toggled:!1,toggable:!0,expandable:!1,isPrimary:!1,searchable:r.types.maybe(r.types.frozen()),sortable:!1,filterable:r.types.optional(r.types.frozen(),void 0),fixed:"",index:0,rawIndex:0,breakpoint:r.types.optional(r.types.frozen(),void 0),pristine:r.types.optional(r.types.frozen(),void 0),remark:r.types.optional(r.types.frozen(),void 0),className:""}).actions(function(e){return{toggleToggle:function(){e.toggled=!e.toggled;var t=r.getParent(e,2);t.activeToggaleColumns.length||(e.toggled=!0),t.persistSaveToggledColumns()},setToggled:function(t){e.toggled=t}}}),t.Row=r.types.model("Row",{id:r.types.identifier,parentId:"",key:r.types.string,pristine:r.types.frozen({}),data:r.types.frozen({}),rowSpans:r.types.frozen({}),index:r.types.number,newIndex:r.types.number,expandable:!1,isHover:!1,children:r.types.optional(r.types.array(r.types.late(function(){return t.Row})),[]),depth:r.types.number}).views(function(e){return{get checked(){return r.getParent(e,2*e.depth).isSelected(e)},get modified(){return e.data?Object.keys(e.data).some(function(t){return!a.default(e.data[t],e.pristine[t])}):!1},getDataWithModifiedChilden:function(){var t=n.__assign({},e.data);return t.children&&e.children&&(t.children=e.children.map(function(e){return e.getDataWithModifiedChilden()})),t},get expanded(){return r.getParent(e,2*e.depth).isExpanded(e)},get moved(){return e.index!==e.newIndex},get locals(){return c.createObject(c.extendObject(r.getParent(e,2*e.depth).data,{index:e.index}),e.data)},get checkable(){var t=r.getParent(e,2*e.depth);return t&&t.itemCheckableOn?d.evalExpression(t.itemCheckableOn,e.locals):!0},get draggable(){var t=r.getParent(e,2*e.depth);return t&&t.itemDraggableOn?d.evalExpression(t.itemDraggableOn,e.locals):!0}}}).actions(function(e){return{toggle:function(){r.getParent(e,2*e.depth).toggle(e)},toggleExpanded:function(){r.getParent(e,2*e.depth).toggleExpanded(e)},change:function(t,n){e.data=c.immutableExtends(e.data,t),n&&(e.pristine=e.data)},reset:function(){e.newIndex=e.index,e.data=e.pristine},setIsHover:function(t){e.isHover=t}}}),t.TableStore=o.iRendererStore.named("TableStore").props({columns:r.types.array(t.Column),rows:r.types.array(t.Row),selectedRows:r.types.array(r.types.reference(t.Row)),expandedRows:r.types.array(r.types.reference(t.Row)),primaryField:"id",orderBy:"",orderDir:r.types.optional(r.types.union(r.types.literal("asc"),r.types.literal("desc")),"asc"),draggable:!1,dragging:!1,selectable:!1,multiple:!0,footable:r.types.frozen(),expandConfig:r.types.frozen(),isNested:!1,columnsTogglable:r.types.optional(r.types.union(r.types.boolean,r.types.literal("auto")),"auto"),itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,combineNum:0}).views(function(e){function t(){return e.columns.filter(function(t){return c.isVisible(t.pristine,e.data)&&("__checkme"===t.type?e.selectable&&!e.dragging&&!e.hideCheckToggler&&e.rows.length:"__dragme"===t.type?e.dragging:"__expandme"===t.type?(n().length||e.isNested)&&!e.dragging:!(!t.toggled&&t.toggable||e.footable&&t.breakpoint&&c.isBreakpoint(t.breakpoint)))})}function n(){return e.columns.filter(function(t){return"__checkme"===t.type||"__dragme"===t.type||"__expandme"===t.type?!1:(t.toggled||!t.toggable)&&e.footable&&t.breakpoint&&c.isBreakpoint(t.breakpoint)})}function r(){if(e.dragging)return[];var n=t().filter(function(e){return"left"===e.fixed});return n.length&&(n=t().filter(function(e){return"left"===e.fixed||/^__/.test(e.type)})),n}function o(){return e.dragging?[]:t().filter(function(e){return"right"===e.fixed})}function i(t){return!!~e.selectedRows.indexOf(t)}function a(t){return!!~e.expandedRows.indexOf(t)}function l(){return"auto"===e.columnsTogglable?e.columns.filter(function(e){return!/^__/.test(e.type)}).length>5:e.columnsTogglable}function d(){return e.columns.filter(function(t){return c.isVisible(t.pristine,e.data)&&t.toggable!==!1})}function s(){return d().filter(function(e){return e.toggled})}function u(t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),t=t&&t.length?t:e.rows,t.forEach(function(e){e.children&&e.children.length&&u(e.children,n);var t=c.difference(e.data,e.pristine),r=Object.keys(t).length;r&&n.push(e)}),n}function g(){return u().length}function p(){return c.flattenTree(e.rows).filter(function(e){return e.moved})}function f(){return p().length}function b(){return e.rows.findIndex(function(e){return e.isHover})}function h(){return e.rows.filter(function(e){return!e.checked})}function m(t){return c.createObject(t,{items:e.rows.map(function(e){return e.data}),selectedItems:e.selectedRows.map(function(e){return e.data}),unSelectedItems:h().map(function(e){return e.data})})}function y(){var e=t(),n=e.length;if(!n)return[];var r=[{label:e[0].groupName,colSpan:1,index:e[0].index,has:[e[0]]}];"__checkme"===e[0].type&&e[1]&&(r[0].label=e[1].groupName);for(var o=1;n>o;o++){var i=r[r.length-1],a=e[o];a.groupName===i.label?(i.colSpan++,i.has.push(a)):r.push({label:a.groupName,colSpan:1,index:a.index,has:[a]})}return 1!==r.length||r[0].label||r.pop(),r}return{get filteredColumns(){return t()},get footableColumns(){return n()},get leftFixedColumns(){return r()},get rightFixedColumns(){return o()},get toggableColumns(){return d()},get activeToggaleColumns(){return s()},get someChecked(){return!!e.selectedRows.length},get allChecked(){return!(e.selectedRows.length!==e.checkableRows.length||!e.checkableRows.length)},isSelected:i,get allExpanded(){return!(e.expandedRows.length!==e.rows.length||!e.rows.length)},isExpanded:a,get toggable(){return l()},get modified(){return g()},get modifiedRows(){return u()},get unSelectedRows(){return h()},get checkableRows(){return e.rows.filter(function(e){return e.checkable})},get moved(){return f()},get movedRows(){return p()},get hoverIndex(){return b()},getData:m,get columnGroup(){return y()},getRowById:function(t){return c.findTree(e.rows,function(e){return e.id===t})}}}).actions(function(e){function t(t){if(void 0!==t.primaryField&&(e.primaryField=t.primaryField),void 0!==t.selectable&&(e.selectable=t.selectable),void 0!==t.columnsTogglable&&(e.columnsTogglable=t.columnsTogglable),void 0!==t.draggable&&(e.draggable=t.draggable),"string"==typeof t.orderBy&&x(t.orderBy,"desc"===t.orderDir?"desc":"asc"),void 0!==t.multiple&&(e.multiple=t.multiple),void 0!==t.footable&&(e.footable=t.footable),void 0!==t.expandConfig&&(e.expandConfig=t.expandConfig),void 0!==t.itemCheckableOn&&(e.itemCheckableOn=t.itemCheckableOn),void 0!==t.itemDraggableOn&&(e.itemDraggableOn=t.itemDraggableOn),void 0!==t.hideCheckToggler&&(e.hideCheckToggler=!!t.hideCheckToggler),void 0!==t.combineNum&&(e.combineNum=parseInt(t.combineNum,10)||0),t.columns&&Array.isArray(t.columns)){var r=t.columns.concat();r.length||r.push({type:"text",label:"空"}),r.unshift({type:"__expandme",toggable:!1,className:"Table-expandCell"}),r.unshift({type:"__checkme",fixed:"left",toggable:!1,className:"Table-checkCell"}),r.unshift({type:"__dragme",toggable:!1,className:"Table-dragCell"}),r=r.map(function(e,t){return n.__assign(n.__assign({},e),{index:t,rawIndex:t-3,type:e.type||"plain",pristine:e,toggled:e.toggled!==!1,breakpoint:e.breakpoint,isPrimary:3===t})}),e.columns.replace(r)}}function o(e,t){if(!t.length||!e.length)return e;var n=t.shift(),r=0,l=e[r];l.rowSpans[n]=1;for(var c=i.resolveVariable(n,l.data),d=1,s=e.length;s>d;d++){var u=e[d];a.default(i.resolveVariable(n,u.data),c)?(l.rowSpans[n]+=1,u.rowSpans[n]=0):(l.rowSpans[n]>1&&o(e.slice(r,d),t.concat()),r=d,l=u,l.rowSpans[n]=1,c=i.resolveVariable(n,l.data))}return l.rowSpans[n]>1&&t.length&&o(e.slice(r,e.length),t.concat()),e}function d(e,t,n){if(!t.length||!n||!e.length)return e;for(var r=[],i=0;n>i;i++){var a=t[i];if(!a)break;if("__"!==a.type.substring(0,2)){var l=a.name;if(!l)break;r.push(l)}else n++}return o(e,r)}function s(t,n,r,o){return n+=1,t.map(function(t,i){t=c.isObject(t)?t:{item:t};var a=c.guid();return{id:a,parentId:o,key:String(r+"-"+n+"-"+i),depth:n,index:i,newIndex:i,pristine:t,data:t,rowSpans:{},modified:!1,children:t&&Array.isArray(t.children)?s(t.children,n,i,a):[],expandable:!!(t&&Array.isArray(t.children)&&t.children.length||e.footable&&e.footableColumns.length)}})}function u(t,n){e.selectedRows.clear(),e.expandedRows.clear();var r=t.map(function(t,r){var o=n?n(t,r):c.guid();return{id:o,key:String(r+"-1-"+r),depth:1,index:r,newIndex:r,pristine:t,data:t,rowSpans:{},modified:!1,children:t&&Array.isArray(t.children)?s(t.children,1,r,o):[],expandable:!!(t&&Array.isArray(t.children)&&t.children.length||e.footable&&e.footableColumns.length)}});e.combineNum&&(r=d(r,e.columns,e.combineNum)),e.rows.replace(r),e.isNested=e.rows.some(function(e){return e.children.length});var o=e.footable&&e.footable.expand;"first"===o||e.expandConfig&&"first"===e.expandConfig.expand?e.rows.length&&e.expandedRows.push(e.rows[0]):("all"===o&&!e.footable.accordion||e.expandConfig&&"all"===e.expandConfig.expand&&!e.expandConfig.accordion)&&e.expandedRows.replace(e.rows),e.dragging=!1}function g(t,n){e.selectedRows.clear(),e.rows.forEach(function(r){~t.indexOf(r.pristine)?e.selectedRows.push(r):l.default(t,function(e){return e[n||"value"]==r.pristine[n||"value"]})&&e.selectedRows.push(r)})}function p(){e.allChecked?e.selectedRows.clear():e.selectedRows.replace(e.checkableRows)}function f(t){if(t.checkable){var n=e.selectedRows.indexOf(t);e.multiple?~n?e.selectedRows.splice(n,1):e.selectedRows.push(t):~n?e.selectedRows.splice(n,1):e.selectedRows.replace([t])}}function b(){e.selectedRows.clear()}function h(){e.allExpanded?e.expandedRows.clear():e.expandedRows.replace(e.rows)}function m(t){var n=e.expandedRows.indexOf(t);if(~n)e.expandedRows.splice(n,1);else if(e.footable&&e.footable.accordion)e.expandedRows.replace([t]);else if(e.expandConfig&&e.expandConfig.accordion){var r=e.expandedRows.filter(function(e){return e.depth!==t.depth});r.push(t),e.expandedRows.replace(r)}else e.expandedRows.push(t)}function y(t){var n=e.expandedRows.filter(function(e){return e.depth!==t});e.expandedRows.replace(n)}function x(t,n){e.orderBy=t,e.orderDir=n}function w(){e.rows.forEach(function(e){return e.reset()});var t=e.rows.concat();c.eachTree(t,function(e){if(e.children){var t=e.children.concat().sort(function(e,t){return e.index-t.index});t.forEach(function(e){return e.reset()}),e.children.replace(t)}}),t.forEach(function(e){return e.reset()}),t=t.sort(function(e,t){return e.index-t.index}),e.rows.replace(t),e.dragging=!1}function v(){e.dragging=!e.dragging}function j(){e.dragging=!1}function O(t,n,r){if(r=r||e.rows[t],r.parentId){var o=e.getRowById(r.parentId),i=o.children.indexOf(r)-t;n+=i,t+=i;var a=o.children.concat();return a.splice(t,1),a.splice(n,0,r),a.forEach(function(e,t){return e.newIndex=t}),void o.children.replace(a)}var l=e.rows.concat();l.splice(t,1),l.splice(n,0,r),l.forEach(function(e,t){return e.newIndex=t}),e.rows.replace(l)}function R(){var t=location.pathname+e.path+e.toggableColumns.map(function(e){return e.name||e.index}).join("-");localStorage.setItem(t,JSON.stringify(e.activeToggaleColumns.map(function(e){return e.index})))}return{update:t,initRows:u,updateSelected:g,toggleAll:p,toggle:f,toggleExpandAll:h,toggleExpanded:m,collapseAllAtDepth:y,clear:b,setOrderByInfo:x,reset:w,toggleDragging:v,stopDragging:j,exchange:O,persistSaveToggledColumns:R,afterAttach:function(){setTimeout(function(){if(r.isAlive(e)){var t=location.pathname+e.path+e.toggableColumns.map(function(e){return e.name||e.index}).join("-"),n=localStorage.getItem(t);if(n){var o=JSON.parse(n);e.toggableColumns.forEach(function(e){return e.setToggled(!!~o.indexOf(e.index))})}}},200)}}})}); +;/*!src/store/list.ts*/ +amis.define("4e9b495",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListStore=t.Item=void 0;var n=e("node_modules/tslib/tslib"),i=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),r=e("7820b08"),c=n.__importDefault(e("node_modules/lodash/isEqual")),a=n.__importDefault(e("node_modules/lodash/find")),l=e("9a80175"),o=e("6a2dbb7");t.Item=i.types.model("Item",{id:i.types.identifier,pristine:i.types.frozen(),data:i.types.frozen(),index:i.types.number,newIndex:i.types.number}).views(function(e){return{get checked(){return i.getParent(e,2).isSelected(e)},get modified(){return e.data?Object.keys(e.data).some(function(t){return!c.default(e.data[t],e.pristine[t])}):!1},get moved(){return e.index!==e.newIndex},get locals(){return l.createObject(l.extendObject(i.getParent(e,2).data,{index:e.index}),e.data)},get checkable(){var t=i.getParent(e,2);return t&&t.itemCheckableOn?o.evalExpression(t.itemCheckableOn,e.locals):!0},get draggable(){var t=i.getParent(e,2);return t&&t.itemDraggableOn?o.evalExpression(t.itemDraggableOn,e.locals):!0}}}).actions(function(e){return{toggle:function(){i.getParent(e,2).toggle(e)},change:function(t,n){e.data=l.immutableExtends(e.data,t),n&&(e.pristine=e.data)},reset:function(){e.newIndex=e.index,e.data=e.pristine}}}),t.ListStore=r.iRendererStore.named("ListStore").props({items:i.types.array(t.Item),selectedItems:i.types.array(i.types.reference(t.Item)),primaryField:"id",orderBy:"",orderDir:i.types.optional(i.types.union(i.types.literal("asc"),i.types.literal("desc")),"asc"),draggable:!1,dragging:!1,multiple:!0,selectable:!1,itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1}).views(function(e){function t(t){return!!~e.selectedItems.indexOf(t)}function n(){return e.items.filter(function(e){return e.modified})}function i(){return n().length}function r(){return e.items.filter(function(e){return e.moved})}function c(){return r().length}return{get allChecked(){return!(e.selectedItems.length!==e.checkableItems.length||!e.checkableItems.length)},get checkableItems(){return e.items.filter(function(e){return e.checkable})},get unSelectedItems(){return e.items.filter(function(e){return!e.checked})},isSelected:t,get modified(){return i()},get modifiedItems(){return n()},get moved(){return c()},get movedItems(){return r()}}}).actions(function(e){function t(t){void 0===t.selectable||(e.selectable=t.selectable),void 0===t.draggable||(e.draggable=t.draggable),void 0===t.multiple||(e.multiple=t.multiple),void 0===t.hideCheckToggler||(e.hideCheckToggler=t.hideCheckToggler),"undefined"!=typeof t.orderBy&&s(t.orderBy,"desc"===t.orderDir?"desc":"asc"),void 0===t.itemCheckableOn||(e.itemCheckableOn=t.itemCheckableOn),void 0===t.itemDraggableOn||(e.itemDraggableOn=t.itemDraggableOn)}function n(t){var n=t.map(function(e,t){return e=l.isObject(e)?e:{item:e},{id:l.guid(),index:t,newIndex:t,pristine:e,data:e,modified:!1}});e.selectedItems.clear(),e.items.replace(n),e.dragging=!1}function i(t,n){e.selectedItems.clear(),e.items.forEach(function(i){~t.indexOf(i.pristine)?e.selectedItems.push(i):a.default(t,function(e){return e[n||"value"]==i.pristine[n||"value"]})&&e.selectedItems.push(i)})}function r(){e.allChecked?e.selectedItems.clear():e.selectedItems.replace(e.checkableItems)}function c(t){if(t.checkable){var n=e.selectedItems.indexOf(t);e.multiple?~n?e.selectedItems.splice(n,1):e.selectedItems.push(t):~n?e.selectedItems.splice(n,1):e.selectedItems.replace([t])}}function o(){e.selectedItems.clear()}function s(t,n){e.orderBy=t,e.orderDir=n}function d(){e.items.forEach(function(e){return e.reset()}),e.dragging=!1}function u(){e.dragging=!e.dragging}function g(){e.dragging=!1}function m(t,n){var i=e.items[t];i.newIndex=n;var r=e.items.slice();r.splice(t,1),r.splice(n,0,i),e.items.replace(r)}return{update:t,initItems:n,updateSelected:i,toggleAll:r,toggle:c,clear:o,setOrderByInfo:s,reset:d,toggleDragging:u,stopDragging:g,exchange:m}})}); +;/*!src/store/modal.ts*/ +amis.define("4550477",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalStore=void 0;var o=e("57d76d7"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),n=e("9a80175");t.ModalStore=o.ServiceStore.named("ModalStore").props({form:r.types.frozen()}).views(function(e){return{get formData(){return n.createObject(e.data,e.form)}}}).actions(function(e){return{setFormData:function(t){e.form=t}}})}); +;/*!src/store/index.ts*/ +amis.define("448f42f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterStore=t.IIRendererStore=t.iRendererStore=t.RendererStore=void 0;var r=e("node_modules/tslib/tslib"),n=e("node_modules/mobx-state-tree/dist/mobx-state-tree");e("node_modules/setimmediate/setImmediate");var o=e("7820b08");Object.defineProperty(t,"iRendererStore",{enumerable:!0,get:function(){return o.iRendererStore}}),Object.defineProperty(t,"IIRendererStore",{enumerable:!0,get:function(){return o.IIRendererStore}});var i=e("57d76d7"),s=e("3fbfd93"),d=e("956950c"),u=e("7b0821e"),c=e("4fbfbc8"),a=e("4e9b495"),f=e("4550477");n.setLivelynessChecking("ignore");var b=[i.ServiceStore,d.FormStore,s.ComboStore,u.CRUDStore,c.TableStore,a.ListStore,f.ModalStore];t.RendererStore=n.types.model("RendererStore",{storeType:"RendererStore",stores:n.types.map(n.types.union.apply(n.types,r.__spreadArrays([{eager:!1,dispatcher:function(e){for(var t=0,r=b;tn?r.context:r}return null},this)}var i=a.default(r,function(t){return t.props.name===e||t.props.id===e});return i||t&&t.getComponentByName(e)},getComponents:function(){return r.concat()},reload:function(e,t){var n=this;if("window"===e)return location.reload();var o="string"==typeof e?e.split(/\s*,\s*/):e;o.forEach(function(e){var o=e.indexOf("?"),r=null;~o&&(r=c.dataMapping(u.default.parse(e.substring(o+1)),t),e=e.substring(0,o));var i=e.indexOf("."),s="";~i&&(s=e.substring(1+i),e=e.substring(0,i));var a=n.getComponentByName(e);a&&a.reload&&a.reload(s,r,t)})},send:function(e,t){var o=this,r="string"==typeof e?e.split(/\s*,\s*/):e;r.forEach(function(e){var r=e.indexOf("."),s="";~r&&(s=e.substring(1+r),e=e.substring(0,r));var a=o.getComponentByName(e);if(a&&a.receive)a.receive(t,s);else if("window"===e&&n&&n.updateLocation){var p=i.__assign(i.__assign({},location.search?u.default.parse(location.search.substring(1)):{}),t),c=location.pathname+"?"+d.qsstringify(p);n.updateLocation(c)}})},close:function(e){var t=this;"string"==typeof e&&e.split(/\s*,\s*/).map(function(e){return t.getComponentByName(e)}).filter(function(e){return e&&e.props.show}).forEach(o)}}}function o(e){e.context.getComponents().filter(function(e){return e&&("dialog"===e.props.type||"drawer"===e.props.type)&&e.props.show}).forEach(o),e.props.onClose&&e.props.onClose()}function r(e){var o=function(o){function r(){var e=null!==o&&o.apply(this,arguments)||this;return e.scoped=n(e.props.$path,e.context,e.props.env),e}return i.__extends(r,o),r.prototype.getWrappedInstance=function(){return this.ref},r.prototype.childRef=function(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.ref=e},r.prototype.componentWillMount=function(){var e=this.props.scopeRef;e&&e(this.scoped)},r.prototype.componentWillUnmount=function(){var e=this.props.scopeRef;e&&e(null)},r.prototype.render=function(){var n=this.props,o=(n.scopeRef,i.__rest(n,["scopeRef"]));return s.default.createElement(t.ScopedContext.Provider,{value:this.scoped},s.default.createElement(e,i.__assign({},o,{ref:this.childRef})))},r.displayName="Scoped("+(e.displayName||e.name)+")",r.contextType=t.ScopedContext,r.ComposedComponent=e,i.__decorate([d.autobind,i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],r.prototype,"childRef",null),r}(s.default.Component);return p.default(o,e),o}Object.defineProperty(t,"__esModule",{value:!0}),t.HocScoped=t.ScopedContext=void 0;var i=e("node_modules/tslib/tslib"),s=i.__importDefault(e("node_modules/react/index")),a=i.__importDefault(e("node_modules/lodash/find")),p=i.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),u=i.__importDefault(e("node_modules/qs/lib/index")),c=e("f2e345e"),d=e("9a80175");t.ScopedContext=s.default.createContext(n("")),t.HocScoped=r,t.default=r}); +;/*!src/components/Alert2.tsx*/ +amis.define("15e4197",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alert=void 0;var l=e("node_modules/tslib/tslib"),s=l.__importDefault(e("node_modules/react/index")),o=e("256b65d"),n=e("b7bbd16"),a=function(e){function t(t){var l=e.call(this,t)||this;return l.handleClick=l.handleClick.bind(l),l.state={show:!0},l}return l.__extends(t,e),t.prototype.handleClick=function(){this.setState({show:!1},this.props.onClose)},t.prototype.render=function(){var e=this.props,t=e.classnames,l=e.className,o=e.level,a=e.children,i=e.showCloseButton;return this.state.show?s.default.createElement("div",{className:t("Alert",o?"Alert--"+o:"",l)},i?s.default.createElement("button",{className:t("Alert-close"),onClick:this.handleClick,type:"button"},s.default.createElement(n.Icon,{icon:"close",className:"icon"})):null,a):null},t.defaultProps={level:"info",className:"",showCloseButton:!1},t.propsList=["level","className","showCloseButton","onClose"],t}(s.default.Component);t.Alert=a,t.default=o.themeable(a)}); +;/*!src/components/ImageGallery.tsx*/ +amis.define("1134c30",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGallery=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("256b65d"),i=e("9a80175"),s=a.__importDefault(e("628f736")),d=e("b7bbd16"),r=e("5ab4e9d"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,index:-1,items:[]},t}a.__extends(t,e),t.prototype.handleImageEnlarge=function(e){this.setState({isOpened:!0,items:e.list?e.list:[e],index:e.index||0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.prev=function(){var e=this.state.index;this.setState({index:e-1})},t.prototype.next=function(){var e=this.state.index;this.setState({index:e+1})},t.prototype.handleItemClick=function(e){var t=parseInt(e.currentTarget.getAttribute("data-index"),10);this.setState({index:t})},t.prototype.render=function(){var e=this,t=this.props,a=t.children,l=t.classnames,i=t.modalContainer,r=this.state,o=r.index,c=r.items,m=this.props.translate;return n.default.createElement(n.default.Fragment,null,n.default.cloneElement(a,{onImageEnlarge:this.handleImageEnlarge}),n.default.createElement(s.default,{closeOnEsc:!0,size:"full",onHide:this.close,show:this.state.isOpened,contentClassName:l("ImageGallery"),container:i},n.default.createElement("a",{"data-tooltip":m("关闭"),"data-position":"left",className:l("ImageGallery-close"),onClick:this.close},n.default.createElement(d.Icon,{icon:"close",className:"icon"})),~o&&c[o]?n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:l("ImageGallery-title")},c[o].title),n.default.createElement("div",{className:l("ImageGallery-main")},n.default.createElement("img",{src:c[o].originalSrc}),c.length>1?n.default.createElement(n.default.Fragment,null,n.default.createElement("a",{className:l("ImageGallery-prevBtn",0>=o?"is-disabled":""),onClick:this.prev},n.default.createElement(d.Icon,{icon:"prev",className:"icon"})),n.default.createElement("a",{className:l("ImageGallery-nextBtn",o>=c.length-1?"is-disabled":""),onClick:this.next},n.default.createElement(d.Icon,{icon:"next",className:"icon"}))):null)):null,c.length>1?n.default.createElement("div",{className:l("ImageGallery-footer")},n.default.createElement("a",{className:l("ImageGallery-prevList is-disabled")},n.default.createElement(d.Icon,{icon:"prev",className:"icon"})),n.default.createElement("div",{className:l("ImageGallery-itemsWrap")},n.default.createElement("div",{className:l("ImageGallery-items")},c.map(function(t,a){return n.default.createElement("div",{key:a,"data-index":a,onClick:e.handleItemClick,className:l("ImageGallery-item",a===o?"is-active":"")},n.default.createElement("img",{src:t.src}))}))),n.default.createElement("a",{className:l("ImageGallery-nextList is-disabled")},n.default.createElement(d.Icon,{icon:"next",className:"icon"}))):null))};var l;return a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"prev",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"next",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.MouseEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleItemClick",null),t}(n.default.Component);t.ImageGallery=o,t.default=l.themeable(r.localeable(o))}); +;/*!src/factory.tsx*/ +amis.define("0f9ebdf",function(e,t){"use strict";function r(e){M.push(e)}function n(e,t,r){return M.reduce(function(e,n){return n(e,t,r)},e)}function a(e){return function(t){var r=s(v.__assign(v.__assign({},e),{component:t}));return r.component}}function s(e){if(!e.test)throw new TypeError("config.test is required");if(!e.component)throw new TypeError("config.component is required");if(e.weight=e.weight||0,e.Renderer=e.component,e.name=e.name||"anonymous-"+N++,~W.indexOf(e.name))throw new Error('The renderer with name "'+e.name+'" has already exists, please try another name!');e.storeType&&e.component&&(e.component=l({storeType:e.storeType,extendsData:e.storeExtendsData})(x.observer(e.component))),e.isolateScope&&(e.component=A.default(e.component));var t=S.findIndex(I,function(t){return e.weight1024)throw new Error("Path太长是不是死循环了?");var r=null;return I.some(function(n){var a=!1;return"function"==typeof n.test?a=n.test(e,t,m):n.test instanceof RegExp&&(a=n.test.test(e)),a&&(r=n),a}),null!==r&&(r.test instanceof RegExp||"function"==typeof r.test&&r.test.length<2)&&(G[e]=r),r}function _(){return I.concat()}function g(e){return P.default(I,function(t){return t.name===e})}Object.defineProperty(t,"__esModule",{value:!0}),t.getRendererByName=t.getRenderers=t.resolveRenderer=t.updateEnv=t.clearStoresCache=t.render=t.HocStoreFactory=t.ScopedRootRenderer=t.RootRenderer=t.renderChild=t.renderChildren=t.unRegisterRenderer=t.registerRenderer=t.Renderer=t.filterSchema=t.addSchemaFilter=void 0;var v=e("node_modules/tslib/tslib"),y=v.__importDefault(e("node_modules/react/index")),b=v.__importDefault(e("node_modules/qs/lib/index")),D=e("448f42f"),R=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),E=e("1caead1"),S=e("9a80175"),x=e("node_modules/mobx-react/dist/index"),C=v.__importDefault(e("01e2bb4")),O=v.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),w=v.__importDefault(e("node_modules/lodash/omit")),F=v.__importDefault(e("node_modules/lodash/difference")),j=v.__importDefault(e("node_modules/lodash/isPlainObject")),A=v.__importDefault(e("919cbd9")),$=e("256b65d"),P=v.__importDefault(e("node_modules/lodash/find")),T=v.__importDefault(e("15e4197")),B=e("1953fc1"),k=v.__importDefault(e("1134c30")),q=e("5ab4e9d"),I=[],W=[],M=[],N=1;t.addSchemaFilter=r,t.filterSchema=n,t.Renderer=a,t.registerRenderer=s,t.unRegisterRenderer=o,t.renderChildren=i,t.renderChild=d;var L=y.default.createContext(void 0),U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={error:null,errorInfo:null},t}return v.__extends(t,e),t.prototype.componentDidCatch=function(e,t){console.error(e),this.setState({error:e,errorInfo:t})},t.prototype.resolveDefinitions=function(e){var t=this.props.schema.definitions;return!e||S.isEmpty(t)?{}:t&&t[e]},t.prototype.render=function(){var e=this.state,t=e.error,r=e.errorInfo;if(r)return p(t,r);var n=this.props,a=n.schema,s=n.rootStore,o=n.env,i=n.pathPrefix,l=n.location,c=n.data,u=n.locale,f=n.translate,h=v.__rest(n,["schema","rootStore","env","pathPrefix","location","data","locale","translate"]),m=o.theme,_=l&&l.query||l&&l.search&&b.default.parse(l.search.substring(1))||window.location.search&&b.default.parse(window.location.search.substring(1)),g=_?S.createObject(v.__assign(v.__assign(v.__assign({},c&&c.__super?c.__super:null),_),{query:_}),c):c;return y.default.createElement(L.Provider,{value:s},y.default.createElement($.ThemeContext.Provider,{value:this.props.theme||"default"},y.default.createElement(q.LocaleContext.Provider,{value:this.props.locale},y.default.createElement(k.default,{modalContainer:o.getModalContainer},d(i||"",j.default(a)?v.__assign({type:"page"},a):a,v.__assign(v.__assign({},h),{resolveDefinitions:this.resolveDefinitions,location:l,data:g,env:o,classnames:m.classnames,classPrefix:m.classPrefix,locale:u,translate:f}))))))},v.__decorate([S.autobind,v.__metadata("design:type",Function),v.__metadata("design:paramtypes",[String]),v.__metadata("design:returntype",void 0)],t.prototype,"resolveDefinitions",null),t}(y.default.Component);t.RootRenderer=U,t.ScopedRootRenderer=A.default(U);var H=["type","name","$ref","className","data","children","ref","visible","visibleOn","hidden","hiddenOn","disabled","disabledOn","component","detectField","required","requiredOn","syncSuperStore"],V=function(e){function t(t){var r=e.call(this,t)||this;return r.refFn=r.refFn.bind(r),r.renderChild=r.renderChild.bind(r),r.reRender=r.reRender.bind(r),r}return v.__extends(t,e),t.prototype.componentWillMount=function(){this.resolveRenderer(this.props)},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.schema.type!==e.schema.type||t.schema.$$id!==e.schema.$$id)&&this.resolveRenderer(e)},t.prototype.shouldComponentUpdate=function(e){var t=this.props,r=F.default(Object.keys(e),["schema","scope"]);if(F.default(Object.keys(t),["schema","scope"]).length!==r.length||S.anyChanged(r,this.props,e))return!0;var n=Object.keys(e.schema);return Object.keys(t.schema).length!==n.length||S.anyChanged(n,t.schema,e.schema)?!0:!1},t.prototype.resolveRenderer=function(e){var t=e.schema,r=e.$path,n=e.env.rendererResolver||m;return t.$ref&&(t=v.__assign(v.__assign({},e.resolveDefinitions(t.$ref)),t),delete t.$ref,r=r.replace(/(?!.*\/).*/,t.type)),this.renderer=n(r,t,e),t},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,r){void 0===r&&(r={});var n=this.props,a=(n.schema,n.$path),s=n.env,o=v.__rest(n,["schema","$path","env"]),i=H.concat();if(this.renderer){var l=this.renderer.component;l.propsList&&i.push.apply(i,l.propsList)}return d(""+a+(e?"/"+e:""),t||"",v.__assign(v.__assign(v.__assign({},w.default(o,i)),r),{data:r.data||o.data,env:s}))},t.prototype.reRender=function(){this.resolveRenderer(this.props),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props,r=t.$path,a=t.schema,s=v.__rest(t,["$path","schema"]);a.$ref&&(a=this.resolveRenderer(this.props));var o=this.props.env.theme;if(Array.isArray(a))return i(r,a,s);if(a.children)return y.default.isValidElement(a.children)?a.children:a.children(v.__assign(v.__assign({},s),{$path:r,render:this.renderChild,forwardedRef:this.refFn}));if("function"==typeof a.component){var d=!(a.component.prototype instanceof y.default.Component);return y.default.createElement(a.component,v.__assign(v.__assign(v.__assign({},s),a),{$path:r,ref:d?void 0:this.refFn,forwardedRef:d?this.refFn:void 0,render:this.renderChild}))}if(!this.renderer)return y.default.createElement(B.LazyComponent,v.__assign({},s,{getComponent:function(){return v.__awaiter(e,void 0,void 0,function(){var e;return v.__generator(this,function(t){switch(t.label){case 0:return[4,s.env.loadRenderer(a,r,this.reRender)];case 1:return e=t.sent(),e&&"function"==typeof e?[2,e]:e&&y.default.isValidElement(e)?[2,function(){return e}]:(this.reRender(),[2,function(){return c(a,r)}])}})})},$path:r,retry:this.reRender}));var l=this.renderer;a=n(a,l,s);var p=a.data,u=v.__rest(a,["data"]),f=l.component;return y.default.createElement(f,v.__assign({},o.getRendererConfig(l.name),u,S.chainEvents(s,u),{defaultData:p,$path:r,ref:this.refFn,render:this.renderChild}))},t.displayName="Renderer",t}(y.default.Component);t.HocStoreFactory=l;var z={session:"global",affixOffsetTop:50,affixOffsetBottom:0,richTextToken:"",loadRenderer:c,fetcher:function(){return Promise.reject("fetcher is required")},isCancel:function(){return console.error("Please implements this. see https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8"),!1},alert:function(e){alert(e)},updateLocation:function(){console.error("Please implements this. see https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8")},confirm:function(e){return confirm(e)},notify:function(e){alert(e)},jumpTo:function(){console.error("Please implements this. see https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8")},isCurrentUrl:function(){return!1},copy:function(e){console.error("copy contents",e)},rendererResolver:m},J={};t.render=u,t.clearStoresCache=f,t.updateEnv=h;var G={};t.resolveRenderer=m,t.getRenderers=_,t.getRendererByName=g}); +;/*!src/components/Alert.tsx*/ +amis.define("bfe4ee0",function(t,e){"use strict";function n(t,e,n,o,i){return void 0===e&&(e={}),m.render({name:"form",type:"form",wrapWithPanel:!1,mode:"horizontal",controls:t,messages:{validateFailed:""}},{data:e,onFinished:n,scopeRef:o,theme:i},{session:"prompt"})}Object.defineProperty(e,"__esModule",{value:!0}),e.FinnalAlert=e.prompt=e.confirm=e.alert=e.Alert=void 0;var o=t("node_modules/tslib/tslib"),i=o.__importDefault(t("node_modules/react/index")),a=t("node_modules/react-dom/index"),l=o.__importDefault(t("628f736")),r=o.__importDefault(t("a67acca")),s=t("256b65d"),c=t("5ab4e9d"),d=o.__importDefault(t("580df19")),m=t("0f9ebdf"),f=function(t){function s(e){var n=t.call(this,e)||this;return n.state={show:!1,title:"",content:"",confirm:!1},n.close=n.close.bind(n),n.handleConfirm=n.handleConfirm.bind(n),n.handleCancel=n.handleCancel.bind(n),n.modalRef=n.modalRef.bind(n),n.handleFormSubmit=n.handleFormSubmit.bind(n),n.scopeRef=n.scopeRef.bind(n),n}return o.__extends(s,t),s.getInstance=function(){if(!s.instance){console.warn("Alert 组件应该没有被渲染,所以隐性的渲染到 body 了");var t=document.body,n=document.createElement("div");t.appendChild(n),a.render(i.default.createElement(e.FinnalAlert,null),n)}return s.instance},s.prototype.componentWillMount=function(){s.instance=this},s.prototype.componentDidMount=function(){this._body&&(this._body.innerHTML=this.state.content)},s.prototype.componentDidUpdate=function(t,e){e.content!==this.state.content&&this._body&&(this._body.innerHTML=this.state.content)},s.prototype.componentWillUnmount=function(){s.instance=null},s.prototype.scopeRef=function(t){this.schemaSope=t},s.prototype.handleConfirm=function(){var t,e=null===(t=this.schemaSope)||void 0===t?void 0:t.getComponentByName("form");e?e.doAction({type:"submit"}):this.close(!0)},s.prototype.handleCancel=function(){this.close(!1)},s.prototype.close=function(t){var e=this,n=this.state.confirm||this.state.prompt;this.setState({show:!1},n?function(){return e._resolve(t)}:void 0)},s.prototype.alert=function(t,e){this.setState({title:e,content:t,show:!0,confirm:!1})},s.prototype.confirm=function(t,e,n){var o=this;return this.setState({title:e,content:t,show:!0,confirm:!0,confirmText:n}),new Promise(function(t){o._resolve=t})},s.prototype.prompt=function(t,e,n,o){var i=this;return void 0===n&&(n="请输入"),void 0===o&&(o="确认"),"string"==typeof t?(t=[{name:"text",label:t,type:"text"}],"string"==typeof e&&(e={text:e})):Array.isArray(t)||(t=[t]),this.setState({title:n,controls:t,show:!0,prompt:!0,value:e,confirmText:o}),new Promise(function(t){i._resolve=t})},s.prototype.modalRef=function(t){this._modal=t},s.prototype.handleFormSubmit=function(t){this.close(t)},s.prototype.render=function(){var t,e,o=this.props,a=o.container,s=o.cancelText,c=o.confirmText,m=o.title,f=o.confirmBtnLevel,u=o.alertBtnLevel,p=o.classnames,h=o.theme,v=this.props.translate,y=v(null!==(t=this.state.title)&&void 0!==t?t:m),b=v(null!==(e=this.state.confirmText)&&void 0!==e?e:c);return i.default.createElement(l.default,{show:this.state.show,onHide:this.handleCancel,container:a,ref:this.modalRef,closeOnEsc:!0},y?i.default.createElement("div",{className:p("Modal-header")},i.default.createElement("div",{className:p("Modal-title")},y)):null,i.default.createElement("div",{className:p("Modal-body")},this.state.prompt?n(this.state.controls,this.state.value,this.handleFormSubmit,this.scopeRef,h):i.default.createElement(d.default,{html:this.state.content})),b?i.default.createElement("div",{className:p("Modal-footer")},this.state.confirm||this.state.prompt?i.default.createElement(r.default,{onClick:this.handleCancel},v(s)):null,i.default.createElement(r.default,{level:this.state.confirm||this.state.prompt?f:u,onClick:this.handleConfirm},b)):null)},s.instance=null,s.defaultProps={confirmText:"确认",cancelText:"取消",title:"系统消息",alertBtnLevel:"primary",confirmBtnLevel:"danger"},s}(i.default.Component);e.Alert=f,e.alert=function(t,e){return f.getInstance().alert(t,e)},e.confirm=function(t,e,n){return f.getInstance().confirm(t,e,n)},e.prompt=function(t,e,n,o){return f.getInstance().prompt(t,e,n,o)},e.FinnalAlert=s.themeable(c.localeable(f)),e.default=e.FinnalAlert}); +;/*!src/components/ContextMenu.tsx*/ +amis.define("703f435",function(e,t){"use strict";function n(e,t){return p.getInstance().openContextMenus(e,t)}var a;Object.defineProperty(t,"__esModule",{value:!0}),t.openContextMenus=t.ThemedContextMenu=t.ContextMenu=void 0;var o=e("node_modules/tslib/tslib"),i=e("256b65d"),d=o.__importDefault(e("node_modules/react/index")),u=e("node_modules/react-dom/index"),s=e("9a80175"),l=o.__importStar(e("node_modules/react-transition-group/Transition")),r=e("fb7767a"),c=(a={},a[l.ENTERING]="in",a[l.ENTERED]="in",a[l.EXITING]="out",a),p=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,menus:[],x:-99999,y:-99999},t.menuRef=d.default.createRef(),t}o.__extends(n,e),n.getInstance=function(){if(!n.instance){var e=document.body,a=document.createElement("div");e.appendChild(a),u.render(d.default.createElement(t.ThemedContextMenu,null),a)}return n.instance},n.prototype.componentWillMount=function(){this.originInstance=n.instance,n.instance=this},n.prototype.componentDidMount=function(){document.body.addEventListener("click",this.handleOutClick,!0),document.addEventListener("keydown",this.handleKeyDown)},n.prototype.componentWillUnmount=function(){n.instance=this.originInstance,document.body.removeEventListener("click",this.handleOutClick,!0),document.removeEventListener("keydown",this.handleKeyDown),delete this.originInstance},n.prototype.openContextMenus=function(e,t){this.setState({isOpened:!0,x:e.x,y:e.y,menus:t})},n.prototype.close=function(){this.setState({isOpened:!1,x:-99999,y:-99999,menus:[]})},n.prototype.handleOutClick=function(e){e.target&&this.menuRef.current&&!this.menuRef.current.contains(e.target)&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.handleClick=function(e){e.disabled||Array.isArray(e.children)&&e.children.length||this.setState({isOpened:!1,x:-99999,y:-99999,menus:[]},function(){return e.onSelect?e.onSelect(e.data):null})},n.prototype.handleKeyDown=function(e){27===e.keyCode&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.handleMouseEnter=function(e){e.disabled||!e.onHighlight||e.onHighlight(!0,e.data)},n.prototype.handleMouseLeave=function(e){e.disabled||!e.onHighlight||e.onHighlight(!1,e.data)},n.prototype.handleEnter=function(e){var t=r.calculatePosition("auto",e.lastChild,e.children[1],document.body),n=t.positionLeft+300r;r++){var o=h[r],s=o.regexp.exec(e);if(s)return o.resolve.apply(o,a.__spreadArrays([t],s))}return null},t.prototype.renderShortCuts=function(e){var t=this;if(!e)return null;var n,o=this.props.classPrefix;n="string"==typeof e?e.split(","):e;var s=this.props.translate;return r.default.createElement("ul",{className:o+"DatePicker-shortcuts"},n.map(function(e){if(!e)return null;var n={};return"string"==typeof e?(n=t.getAvailableShortcuts(e),n.key=e):e.date&&(n=a.__assign(a.__assign({},e),{date:function(){return e.date}})),r.default.createElement("li",{className:o+"DatePicker-shortcut",onClick:function(){return t.selectRannge(n)},key:n.key||n.label},r.default.createElement("a",null,s(n.label)))}))},t.prototype.render=function(){var e=this.props,t=e.classPrefix,a=e.className,o=e.value,u=e.placeholder,c=e.disabled,f=e.inputFormat,h=e.dateFormat,p=e.timeFormat,m=e.viewMode,v=e.timeConstraints,b=e.popOverContainer,y=e.clearable,g=e.shortcuts,k=(e.utc,e.overlayPlacement),P=e.locale,C=this.props.translate,_=this.state.isOpened,D=this.state.value;return r.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:n.default(t+"DatePicker",{"is-disabled":c,"is-focused":this.state.isFocused},a),ref:this.domRef,onClick:this.handleClick},D?r.default.createElement("span",{className:t+"DatePicker-value"},D.format(f)):r.default.createElement("span",{className:t+"DatePicker-placeholder"},C(u)),y&&!c&&o?r.default.createElement("a",{className:t+"DatePicker-clear",onClick:this.clearValue},r.default.createElement(s.Icon,{icon:"close",className:"icon"})):null,r.default.createElement("a",{className:t+"DatePicker-toggler"},r.default.createElement(s.Icon,{icon:"calendar",className:"icon"})),_?r.default.createElement(i.default,{target:this.getTarget,container:b||this.getParent,rootClose:!1,placement:k,show:!0},r.default.createElement(l.default,{classPrefix:t,className:t+"DatePicker-popover",onHide:this.close,overlay:!0,onClick:this.handlePopOverClick},this.renderShortCuts(g),r.default.createElement(d.default,{value:D,onChange:this.handleChange,requiredConfirm:!(!h||!p),dateFormat:h,timeFormat:p,isValidDate:this.checkIsValidDate,viewMode:m,timeConstraints:v,input:!1,onClose:this.close,locale:P}))):null)},t.defaultProps={viewMode:"days",shortcuts:"",closeOnSelect:!0,overlayPlacement:"auto"},t}(r.default.Component);t.DatePicker=p,t.default=u.themeable(c.localeable(p))}); +;/*!src/components/DateRangePicker.tsx*/ +amis.define("eaae631",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateRangePicker=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),r=a.__importDefault(e("node_modules/moment/moment")),s=e("node_modules/react-dom/index"),i=a.__importDefault(e("node_modules/classnames/index")),o=e("b7bbd16"),d=a.__importDefault(e("997df41")),l=a.__importDefault(e("4c30e45")),c=a.__importDefault(e("2b3dcdf")),u=e("256b65d"),f=e("9a80175"),h=e("5ab4e9d"),p={today:{label:"今天",startDate:function(e){return e.startOf("day")},endDate:function(e){return e}},yesterday:{label:"昨天",startDate:function(e){return e.add(-1,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"1dayago":{label:"最近1天",startDate:function(e){return e.add(-1,"days")},endDate:function(e){return e}},"7daysago":{label:"最近7天",startDate:function(e){return e.add(-7,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"90daysago":{label:"最近90天",startDate:function(e){return e.add(-90,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},prevweek:{label:"上周",startDate:function(e){return e.startOf("week").add(-1,"weeks")},endDate:function(e){return e.startOf("week").add(-1,"days").endOf("day")}},thismonth:{label:"本月",startDate:function(e){return e.startOf("month")},endDate:function(e){return e}},prevmonth:{label:"上个月",startDate:function(e){return e.startOf("month").add(-1,"month")},endDate:function(e){return e.startOf("month").add(-1,"day").endOf("day")}},prevquarter:{label:"上个季节",startDate:function(e){return e.startOf("quarter").add(-1,"quarter")},endDate:function(e){return e.startOf("quarter").add(-1,"day").endOf("day")}},thisquarter:{label:"本季度",startDate:function(e){return e.startOf("quarter")},endDate:function(e){return e}}},m=function(e){function t(s){var i=e.call(this,s)||this;i.nextMonth=r.default().add(1,"months"),i.open=i.open.bind(i),i.close=i.close.bind(i),i.handleStartChange=i.handleStartChange.bind(i),i.handleEndChange=i.handleEndChange.bind(i),i.handleFocus=i.handleFocus.bind(i),i.handleBlur=i.handleBlur.bind(i),i.checkStartIsValidDate=i.checkStartIsValidDate.bind(i),i.checkEndIsValidDate=i.checkEndIsValidDate.bind(i),i.confirm=i.confirm.bind(i),i.clearValue=i.clearValue.bind(i),i.dom=n.default.createRef(),i.handleClick=i.handleClick.bind(i),i.handleKeyPress=i.handleKeyPress.bind(i),i.handlePopOverClick=i.handlePopOverClick.bind(i),i.renderDay=i.renderDay.bind(i);var o=i.props,d=o.format,l=o.joinValues,c=o.delimiter,u=o.value;return i.state=a.__assign({isOpened:!1,isFocused:!1},t.unFormatValue(u,d,l,c)),i}return a.__extends(t,e),t.formatValue=function(e,t,a,n,s){return void 0===s&&(s=!1),e=[(s?r.default.utc(e.startDate):e.startDate).format(t),(s?r.default.utc(e.endDate):e.endDate).format(t)],a&&(e=e.join(n)),e},t.unFormatValue=function(e,t,a,n){return e?(a&&"string"==typeof e&&(e=e.split(n)),{startDate:e[0]?r.default(e[0],t):void 0,endDate:e[1]?r.default(e[1],t):void 0}):{startDate:void 0,endDate:void 0}},t.prototype.componentWillReceiveProps=function(e){var n=this.props,r=e.value,s=e.format,i=e.joinValues,o=e.delimiter;n.value!==r&&this.setState(a.__assign({},t.unFormatValue(r,s,i,o)))},t.prototype.focus=function(){this.dom.current&&!this.props.disabled&&this.dom.current.focus()},t.prototype.blur=function(){this.dom.current&&!this.props.disabled&&this.dom.current.blur()},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.open=function(){this.props.disabled||this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1},this.blur)},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},t.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleClick(),e.preventDefault())},t.prototype.confirm=function(){this.state.startDate&&this.state.endDate&&(this.state.startDate.isAfter(this.state.endDate)||(this.props.onChange(t.formatValue({startDate:this.state.startDate,endDate:this.state.endDate},this.props.format,this.props.joinValues,this.props.delimiter,this.props.utc)),this.close()))},t.prototype.handleStartChange=function(e){return this.state.startDate&&!this.state.endDate&&e.isAfter(this.state.startDate)?this.setState({endDate:e.clone()}):void this.setState({startDate:e.clone()})},t.prototype.handleEndChange=function(e){return e=this.state.endDate||this.props.timeFormat?e:e.endOf("day"),this.state.endDate&&!this.state.startDate&&e.isBefore(this.state.endDate)?this.setState({startDate:e.clone()}):void this.setState({endDate:e.clone()})},t.prototype.selectRannge=function(e){var t=this.props,a=t.closeOnSelect,n=t.minDate,s=t.maxDate,i=r.default();this.setState({startDate:n?r.default.max(e.startDate(i.clone()),n):e.startDate(i.clone()),endDate:s?r.default.min(s,e.endDate(i.clone())):e.endDate(i.clone())},a?this.confirm:f.noop)},t.prototype.renderRanges=function(e){var t=this;if(!e)return null;var r,s=this.props.classPrefix;r="string"==typeof e?e.split(","):e;var i=this.props.translate;return n.default.createElement("ul",{className:s+"DateRangePicker-rangers"},r.map(function(e){if(!e)return null;var r={};return"string"==typeof e?(r=p[e],r.key=e):e.startDate&&e.endDate&&(r=a.__assign(a.__assign({},e),{startDate:function(){return e.startDate},endDate:function(){return e.endDate}})),n.default.createElement("li",{className:s+"DateRangePicker-ranger",onClick:function(){return t.selectRannge(r)},key:r.key||r.label},n.default.createElement("a",null,i(r.label)))}))},t.prototype.clearValue=function(e){e.preventDefault(),e.stopPropagation();var t=this.props,a=t.resetValue,n=t.onChange;n(a)},t.prototype.checkStartIsValidDate=function(e){var t=this.state.endDate,a=this.props,n=a.minDate,r=a.maxDate;return r=r&&t?r.isBefore(t)?r:t:r||t,n&&e.isBefore(n,"day")?!1:r&&e.isAfter(r,"day")?!1:!0},t.prototype.checkEndIsValidDate=function(e){var t=this.state.startDate,a=this.props,n=a.minDate,r=a.maxDate;return n=n&&t?n.isAfter(t)?n:t:n||t,n&&e.isBefore(n,"day")?!1:r&&e.isAfter(r,"day")?!1:!0},t.prototype.renderDay=function(e,t){var r=this.state,s=r.startDate,i=r.endDate;return s&&i&&t.isBetween(s,i,"day","[]")&&(e.className+=" rdtBetween"),n.default.createElement("td",a.__assign({},e),t.date())},t.prototype.render=function(){var e=this,a=this.props,r=a.className,u=a.classPrefix,f=a.value,h=a.placeholder,p=a.popOverContainer,m=a.inputFormat,D=a.format,y=a.dateFormat,v=a.joinValues,g=a.delimiter,b=a.clearable,k=a.timeFormat,C=a.ranges,O=a.disabled,P=a.locale,_=a.overlayPlacement,E=this.state,V=E.isOpened,F=E.isFocused,R=E.startDate,S=E.endDate,N=t.unFormatValue(f,D,v,g),B=N.startDate?N.startDate.format(m):"",x=N.endDate?N.endDate.format(m):"",w=[];B&&w.push(B),x&&w.push(x);var I=this.props.translate;return n.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:i.default(u+"DateRangePicker",{"is-disabled":O,"is-focused":F},r),ref:this.dom,onClick:this.handleClick},w.length?n.default.createElement("span",{className:u+"DateRangePicker-value"},w.join(I(" 至 "))):n.default.createElement("span",{className:u+"DateRangePicker-placeholder"},I(h)),b&&!O&&f?n.default.createElement("a",{className:u+"DateRangePicker-clear",onClick:this.clearValue},n.default.createElement(o.Icon,{icon:"close",className:"icon"})):null,n.default.createElement("a",{className:u+"DateRangePicker-toggler"},n.default.createElement(o.Icon,{icon:"calendar",className:"icon"})),V?n.default.createElement(d.default,{target:function(){return e.dom.current},onHide:this.close,container:p||function(){return s.findDOMNode(e)},rootClose:!1,placement:_,show:!0},n.default.createElement(c.default,{classPrefix:u,className:u+"DateRangePicker-popover",onHide:this.close,onClick:this.handlePopOverClick,overlay:!0},n.default.createElement("div",{className:u+"DateRangePicker-wrap"},this.renderRanges(C),n.default.createElement(l.default,{className:u+"DateRangePicker-start",value:R,onChange:this.handleStartChange,requiredConfirm:!1,dateFormat:y,timeFormat:k,isValidDate:this.checkStartIsValidDate,viewMode:"days",input:!1,onClose:this.close,renderDay:this.renderDay,locale:P}),n.default.createElement(l.default,{className:u+"DateRangePicker-end",value:S,onChange:this.handleEndChange,requiredConfirm:!1,dateFormat:y,timeFormat:k,viewDate:this.nextMonth,isEndDate:!0,isValidDate:this.checkEndIsValidDate,viewMode:"days",input:!1,onClose:this.close,renderDay:this.renderDay,locale:P}),n.default.createElement("div",{key:"button",className:u+"DateRangePicker-actions"},n.default.createElement("a",{className:i.default("rdtBtn rdtBtnConfirm",{"is-disabled":!this.state.startDate||!this.state.endDate}),onClick:this.confirm},I("确认")),n.default.createElement("a",{className:"rdtBtn rdtBtnCancel",onClick:this.close},I("取消")))))):null)},t.defaultProps={placeholder:"请选择日期范围",format:"X",inputFormat:"YYYY-MM-DD",joinValues:!0,clearable:!0,delimiter:",",ranges:"yesterday,7daysago,prevweek,thismonth,prevmonth,prevquarter",resetValue:"",closeOnSelect:!0,overlayPlacement:"auto"},t}(n.default.Component);t.DateRangePicker=m,t.default=u.themeable(h.localeable(m))}); +;/*!src/components/Drawer.tsx*/ +amis.define("01a937e",function(e,t){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.Drawer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),d=n.__importStar(e("node_modules/react-transition-group/Transition")),i=e("node_modules/react-overlays/lib/index"),r=e("b7bbd16"),l=n.__importDefault(e("node_modules/classnames/index")),s=e("8768414"),c=e("256b65d"),u=e("9a80175"),m=(o={},o[d.ENTERING]="in",o[d.ENTERED]="in",o),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isRootClosed=!1,t.contentRef=function(e){return t.contentDom=e},t.handleEntered=function(){var e=t.props.onEntered;document.body.classList.add("is-modalOpened"),e&&e()},t.handleExited=function(){var e=t.props.onExited;document.activeElement&&document.activeElement.blur(),e&&e(),setTimeout(function(){document.querySelector(".amis-dialog-widget")||document.body.classList.remove("is-modalOpened")},200)},t.modalRef=function(e){t.modalDom=e,e?(s.addModal(t),e.classList.add(t.props.classPrefix+"Modal--"+s.current()+"th")):s.removeModal()},t}n.__extends(t,e),t.prototype.componentDidMount=function(){this.props.show&&this.handleEntered(),document.body.addEventListener("click",this.handleRootClickCapture,!0),document.body.addEventListener("click",this.handleRootClick)},t.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited(),document.body.removeEventListener("click",this.handleRootClick),document.body.removeEventListener("click",this.handleRootClickCapture,!0)},t.prototype.handleRootClickCapture=function(e){var t=e.target,o=this.props,n=o.closeOnOutside,a=o.classPrefix,d=1===e.button&&null!==window.event||0===e.button;this.isRootClosed=!!(d&&n&&t&&this.modalDom&&(!this.modalDom.contains(t)&&!t.closest("[role=dialog]")||t.matches("."+a+"Drawer-overlay")&&t.parentElement===this.modalDom))},t.prototype.handleRootClick=function(e){var t=this.props.onHide;this.isRootClosed&&!e.defaultPrevented&&t(e)},t.prototype.render=function(){var e=this,t=this.props,o=t.classPrefix,n=t.className,s=t.children,c=t.container,u=t.show,p=t.position,f=t.size,h=t.onHide,v=t.disabled,E=t.overlay,y=t.bodyClassName;return a.default.createElement(i.Portal,{container:c},a.default.createElement(d.default,{mountOnEnter:!0,unmountOnExit:!0,"in":u,timeout:500,onExited:this.handleExited,onEntered:this.handleEntered},function(t){var i;return t===d.ENTERING&&e.contentDom.offsetWidth,a.default.createElement("div",{ref:e.modalRef,role:"dialog",className:l.default("amis-dialog-widget "+o+"Drawer",(i={},i[o+"Drawer--"+p]=p,i[o+"Drawer--"+f]=f,i[o+"Drawer--noOverlay"]=!E,i),n)},E?a.default.createElement("div",{className:l.default(o+"Drawer-overlay",m[t])}):null,a.default.createElement("div",{ref:e.contentRef,className:l.default(o+"Drawer-content",y,m[t])},a.default.createElement("a",{onClick:v?void 0:h,className:o+"Drawer-close"},a.default.createElement(r.Icon,{icon:"close",className:"icon"})),s))}))};var o,c;return t.defaultProps={container:document.body,position:"left",size:"md",overlay:!0},n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof MouseEvent&&MouseEvent)?o:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleRootClickCapture",null),n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof MouseEvent&&MouseEvent)?c:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleRootClick",null),t}(a.default.Component);t.Drawer=p,t.default=c.themeable(p)}); +;/*!src/components/Tabs.tsx*/ +amis.define("8ac7656",function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=t.Tab=void 0;var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),s=a.__importStar(e("node_modules/react-transition-group/Transition")),l=e("256b65d"),o=e("node_modules/uncontrollable/cjs/index"),i=(n={},n[s.ENTERING]="in",n[s.ENTERED]="in",n),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contentRef=function(e){return t.contentDom=e},t}return a.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.mountOnEnter,l=t.reload,o=t.unmountOnExit,u=t.eventKey,c=t.activeKey,d=t.children,m=t.className;return r.default.createElement(s.default,{"in":c===u,mountOnEnter:a,unmountOnExit:"boolean"==typeof l?l:o,timeout:500},function(t){return t===s.ENTERING&&e.contentDom.offsetWidth,r.default.createElement("div",{ref:e.contentRef,className:n(i[t],c===u?"is-active":"","Tabs-pane",m)},d)})},t}(r.default.PureComponent);t.Tab=l.themeable(u);var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(n,e),n.prototype.handleSelect=function(e){var t=this.props.onSelect;t&&t(e)},n.prototype.renderNav=function(e,t){var n=this;if(e){var a=this.props,s=a.classnames,l=a.activeKey,o=e.props,i=o.eventKey,u=o.disabled,c=o.icon,d=o.title,m=o.toolbar,f=void 0===l&&0===t?i:l;return r.default.createElement("li",{className:s("Tabs-link",f===i?"is-active":"",u?"is-disabled":""),key:t,onClick:function(){return u?"":n.handleSelect(i)}},r.default.createElement("a",null,c?r.default.createElement("i",{className:c}):null," ",d),r.default.isValidElement(m)?m:null)}},n.prototype.renderTab=function(e,t){if(e){var n=this.props,s=n.activeKey,l=n.classnames,o=e.props.eventKey,i=void 0===s&&0===t?o:s;return r.default.cloneElement(e,a.__assign(a.__assign({},e.props),{key:t,classnames:l,activeKey:i}))}},n.prototype.render=function(){var e,t=this,n=this.props,a=n.classnames,s=n.contentClassName,l=n.className,o=n.mode,i=n.tabsMode,u=n.children,c=n.additionBtns,d=n.toolbar;if(!Array.isArray(u))return null;var m=i||o;return r.default.createElement("div",{className:a("Tabs",(e={},e["Tabs--"+m]=m,e),l)},r.default.createElement("ul",{className:a("Tabs-links"),role:"tablist"},u.map(function(e,n){return t.renderNav(e,n)}),c,d),r.default.createElement("div",{className:a("Tabs-content",s)},u.map(function(e,n){return t.renderTab(e,n)})))},n.defaultProps={mode:"",contentClassName:""},n.Tab=t.Tab,n}(r.default.Component);t.Tabs=c;var d=l.themeable(o.uncontrollable(c,{activeKey:"onSelect"}));t.default=d}); +;/*!src/components/Editor.tsx*/ +amis.define("997c87d",function(t,e){"use strict";function o(t){return t}function i(t,e,o){return e.editor.create(t,s.__assign({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}},o))}Object.defineProperty(e,"__esModule",{value:!0}),e.Editor=e.monacoFactory=void 0;var s=t("node_modules/tslib/tslib"),n=s.__importDefault(t("node_modules/react/index")),r=s.__importDefault(t("node_modules/classnames/index")),a=t("256b65d");window.MonacoEnvironment={getWorkerUrl:function(t,e){var i="/pkg/editor.worker.js";return"json"===e?i="/pkg/json.worker.js":"css"===e?i="/pkg/css.worker.js":"html"===e?i="/pkg/html.worker.js":("typescript"===e||"javascript"===e)&&(i="/pkg/ts.worker.js"),i=o(i),/^https?/.test(i)?"data:text/javascript;charset=utf-8,"+encodeURIComponent("\n importScripts('"+i+"');")+"\n ":i}},e.monacoFactory=i;var p=function(e){function o(t){var o=e.call(this,t)||this;return o.disposes=[],o.wrapperRef=o.wrapperRef.bind(o),o.currentValue=t.value,o}return s.__extends(o,e),o.prototype.componentWillReceiveProps=function(t){this.props.options.readOnly!==t.options.readOnly&&this.editor&&this.editor.updateOptions&&this.editor.updateOptions(t.options)},o.prototype.componentDidUpdate=function(){if(this.props.value!==this.currentValue&&this.editor){var t=String(this.props.value);if("json"===this.props.language)try{t=JSON.stringify(JSON.parse(t),null,4)}catch(e){}this.preventTriggerChangeEvent=!0,this.editor.setValue&&this.editor.setValue(t),this.preventTriggerChangeEvent=!1}},o.prototype.componentWillUnmount=function(){if(this.editor){var t=this.props.context||window,e=t.monaco||window.monaco,o=this.props.editorWillUnmount;o&&o(this.editor,e)}this.disposes.forEach(function(t){var e=t.dispose;return e()}),this.disposes=[]},o.prototype.wrapperRef=function(t){if(this.container=t,t)this.loadMonaco();else try{this.disposes.forEach(function(t){var e=t.dispose;return e()}),this.disposes=[],this.editor&&(this.editor.getModel().dispose(),this.editor.dispose()),this.editor=null}catch(e){}},o.prototype.loadMonaco=function(){var e=this;t(["b961301"],function(t){e.initMonaco(t)})},o.prototype.initMonaco=function(t){var e=null!==this.props.value?this.props.value:this.props.defaultValue,o=this.props,n=o.language,r=o.editorTheme,a=o.options,p=o.editorFactory,d=this.container;if(d){if(this.editorWillMount(t),"json"===this.props.language)try{e=JSON.stringify("string"==typeof e?JSON.parse(e):e,null,4)}catch(u){}var l=p||i;this.editor=l(d,t,s.__assign(s.__assign({},a),{automaticLayout:!0,value:e,language:n,editorTheme:r,theme:r})),t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0,allowComments:!0}),this.editorDidMount(this.editor,t)}},o.prototype.editorWillMount=function(t){var e=this.props.editorWillMount;e&&e(t)},o.prototype.editorDidMount=function(t,e){var o=this,i=this.props,s=i.editorDidMount,n=i.onChange,r=i.onFocus,a=i.onBlur;s&&s(t,e),t.onDidChangeModelContent&&this.disposes.push(t.onDidChangeModelContent(function(e){var i=t.getValue();o.currentValue=i,!o.preventTriggerChangeEvent&&n&&n(i,e)})),r&&t.onDidFocusEditorWidget&&this.disposes.push(t.onDidFocusEditorWidget(r)),a&&t.onDidBlurEditorWidget&&this.disposes.push(t.onDidBlurEditorWidget(a))},o.prototype.render=function(){var t=this.props,e=t.className,o=t.classPrefix,i=t.width,s=t.height,a=this.props.style||{};return a.width=i,a.height=s,n.default.createElement("div",{className:r.default(o+"MonacoEditor",e),style:a,ref:this.wrapperRef})},o.defaultProps={language:"javascript",editorTheme:"vs",width:"100%",height:"100%",options:{}},o}(n.default.Component);e.Editor=p,e.default=a.themeable(p)}); +;/*!src/components/LazyComponent.tsx*/ +amis.define("4783ce8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),n=i.__importDefault(e("node_modules/react/index")),l=i.__importDefault(e("node_modules/react-visibility-sensor/visibility-sensor")),a=i.__importDefault(e("acad559")),o=function(e){function t(t){var i=e.call(this,t)||this;return i.mounted=!1,i.handleVisibleChange=i.handleVisibleChange.bind(i),i.state={visible:!1,component:t.component},i}return i.__extends(t,e),t.prototype.componentWillMount=function(){this.mounted=!0},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.handleVisibleChange=function(e){var t=this;this.setState({visible:e}),e&&!this.state.component&&this.props.getComponent&&this.props.getComponent().then(function(e){return t.mounted&&"function"==typeof e&&t.setState({component:e})}).catch(function(e){return t.mounted&&t.setState({component:function(){return n.default.createElement("div",{className:"alert alert-danger"},String(e))}})})},t.prototype.render=function(){var e=this.props,t=e.placeholder,a=e.unMountOnHidden,o=e.childProps,s=e.visiblilityProps,r=e.partialVisibility,d=e.children,u=i.__rest(e,["placeholder","unMountOnHidden","childProps","visiblilityProps","partialVisibility","children"]),c=this.state,p=c.visible,m=c.component;return a?n.default.createElement(l.default,i.__assign({},s,{partialVisibility:r,onChange:this.handleVisibleChange}),n.default.createElement("div",{className:"visibility-sensor"},m&&p?n.default.createElement(m,i.__assign({},u,o)):d&&p?d:t)):p?m?n.default.createElement(m,i.__assign({},u,o)):d?d:n.default.createElement("div",null,t):n.default.createElement(l.default,i.__assign({},s,{partialVisibility:r,onChange:this.handleVisibleChange}),n.default.createElement("div",{className:"visibility-sensor"},t))},t.defaultProps={placeholder:n.default.createElement(a.default,null),unMountOnHidden:!1,partialVisibility:!0},t}(n.default.Component);t.default=o}); +;/*!src/components/Radios.tsx*/ +amis.define("8e37af0",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Radios=void 0;var a=e("node_modules/tslib/tslib"),t=a.__importDefault(e("node_modules/react/index")),n=e("node_modules/uncontrollable/cjs/index"),r=a.__importDefault(e("0a43d97")),i=e("d57879c"),o=a.__importDefault(e("node_modules/lodash/chunk")),s=e("256b65d"),d=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(l,e),l.prototype.toggleOption=function(e){var l=this.props,a=l.value,t=l.onChange,n=l.valueField,r=l.clearable,o=l.delimiter,s=l.options,d=i.value2array(a,{multiple:!1,delimiter:o,valueField:n,options:s}),u=d.indexOf(e);~u?r&&d.splice(u,1):d=[e];var c=d[0];t&&t(c)},l.prototype.renderGroup=function(e,l,a){var n=this,r=this.props.classnames;return t.default.createElement("div",{key:l,className:r("RadiosControl-group",e.className)},t.default.createElement("label",{className:r("RadiosControl-groupLabel",e.labelClassName)},e.label),e.children&&e.children.length?e.children.map(function(e,l){return n.renderItem(e,l,a)}):null)},l.prototype.renderItem=function(e,l,a){var n=this;if(e.children)return this.renderGroup(e,l,a);var i=this.props,o=i.disabled,s=i.inline,d=i.itemClassName,u=i.classnames,c=i.labelClassName,m=i.labelField;return t.default.createElement(r.default,{type:"radio",key:l,onChange:function(){return n.toggleOption(e)},checked:!!~a.indexOf(e),className:u(d,e.className),disabled:o||e.disabled,description:e.description,inline:s,labelClassName:c},e[m||"label"])},l.prototype.render=function(){var e=this,l=this.props,a=l.value,n=l.options,r=l.className,s=l.classnames,d=l.placeholder,u=l.columnsCount,c=(l.joinValues,l.extractValue,l.disabled,l.inline),m=l.delimiter,p=l.valueField,f=(l.classPrefix,i.value2array(a,{multiple:!1,delimiter:m,valueField:p,options:n})),h=[];if(n&&(h=n.map(function(l,a){return e.renderItem(l,a,f)})),!c&&u>1){var v=12/u,b="Grid-col--sm"+(v===Math.round(v)?v:"");h=o.default(h,u).map(function(e,l){return t.default.createElement("div",{className:s("Grid"),key:l},Array.from({length:u}).map(function(l,a){return t.default.createElement("div",{key:a,className:s(b)},e[a])}))})}return t.default.createElement("div",{className:r},h&&h.length?h:d)},l.defaultProps={type:"radio",joinValues:!0,clearable:!1,columnsCount:1},l}(t.default.Component);l.Radios=d,l.default=s.themeable(n.uncontrollable(d,{value:"onChange"}))}); +;/*!src/components/Range.tsx*/ +amis.define("736bbb6",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Range=void 0;var a=e("node_modules/tslib/tslib"),t=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("node_modules/react-input-range/lib/js/index")),u=e("node_modules/uncontrollable/cjs/index"),i=e("256b65d"),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.min,u=e.max,i=e.value,r=(e.className,e.classPrefix),s=e.multiple,o={activeTrack:s?r+"InputRange-track is-active":r+"InputRange-track",disabledInputRange:r+"InputRange is-disabled",inputRange:r+"InputRange",labelContainer:r+"InputRange-labelContainer",maxLabel:r+"InputRange-label "+r+"InputRange-label--max",minLabel:r+"InputRange-label "+r+"InputRange-label--min",slider:r+"InputRange-slider",sliderContainer:r+"InputRange-sliderContainer",track:r+"InputRange-track "+r+"InputRange-track--background",valueLabel:r+"InputRange-label "+r+"InputRange-label--value"};return t.default.createElement(l.default,a.__assign({},this.props,{classNames:o,minValue:n,maxValue:u,value:i}))},n.defaultProps={min:1,max:100},n}(t.default.Component);n.Range=r,n.default=i.themeable(u.uncontrollable(r,{value:"onChange"}))}); +;/*!src/components/Rating.tsx*/ +amis.define("1b690d8",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rating=void 0;var a=t("node_modules/tslib/tslib"),s=a.__importDefault(t("node_modules/react/index")),r=a.__importDefault(t("node_modules/classnames/index")),n=t("256b65d"),i=function(t){function e(e){var a=t.call(this,e)||this;return a.state={value:e.value||0,stars:[],halfStar:{at:Math.floor(e.value),hidden:e.half&&e.value%1<.5}},a.getRate=a.getRate.bind(a),a.getStars=a.getStars.bind(a),a.moreThanHalf=a.moreThanHalf.bind(a),a.mouseOver=a.mouseOver.bind(a),a.mouseLeave=a.mouseLeave.bind(a),a.handleClick=a.handleClick.bind(a),a}return a.__extends(e,t),e.prototype.componentDidMount=function(){var t=this.state.value;this.setState({stars:this.getStars(t)})},e.prototype.componentWillReceiveProps=function(t){this.setState({stars:this.getStars(t.value),value:t.value,halfStar:{at:Math.floor(t.value),hidden:t.half&&t.value%1<.5}})},e.prototype.getRate=function(){var t,e=this.state.value,a=this.props.half;return t=a?Math.floor(e):Math.round(e)},e.prototype.getStars=function(t){"undefined"==typeof t&&(t=this.getRate());for(var e=[],a=this.props.count,s=0;a>s;s++)e.push({active:t-1>=s});return e},e.prototype.mouseOver=function(t){var e=this.props,a=e.readOnly,s=e.size,r=e.half;if(!a){var n=Number(t.target.getAttribute("data-index"));if(r){var i=this.moreThanHalf(t,s);i&&(n+=1),this.setState({halfStar:{at:n,hidden:i}})}else n+=1;this.setState({stars:this.getStars(n)})}},e.prototype.moreThanHalf=function(t,e){var a=t.target,s=t.clientX-a.getBoundingClientRect().left;return s=Math.round(Math.abs(s)),s>e/2},e.prototype.mouseLeave=function(){var t=this.state.value,e=this.props,a=e.half,s=e.readOnly;s||(a&&this.setState({halfStar:{at:Math.floor(t),hidden:t%1===0}}),this.setState({stars:this.getStars()}))},e.prototype.handleClick=function(t){var e=this.props,a=e.half,s=e.readOnly,r=e.onChange,n=e.size;if(!s){var i,o=Number(t.target.getAttribute("data-index"));if(a){var l=this.moreThanHalf(t,n);l&&(o+=1),i=l?o:o+.5,this.setState({halfStar:{at:o,hidden:l}})}else i=o+=1;this.setState({value:i,stars:this.getStars(o)}),r&&r(i)}},e.prototype.renderStars=function(){var t=this,e=this.state,a=e.halfStar,r=e.stars,n=this.props,i=n.char,o=n.half,l=n.readOnly,h=n.classnames;return r.map(function(e,r){var n=h("Rating",{"Rating-half":o&&!a.hidden&&a.at===r,"is-active":e.active,"is-disabled":l});return s.default.createElement("span",{className:n,key:r,"data-index":r,"data-forhalf":i,onMouseOver:t.mouseOver,onMouseMove:t.mouseOver,onMouseLeave:t.mouseLeave,onClick:t.handleClick},i)})},e.prototype.render=function(){var t=this.props.className;return s.default.createElement("div",{className:r.default(t?t:"")},this.renderStars())},e.defaultProps={containerClass:"rating",readOnly:!1,half:!0,value:0,count:5,"char":"★",size:24},e}(s.default.Component);e.Rating=i,e.default=n.themeable(i)}); +;/*!src/components/Switch.tsx*/ +amis.define("aa2413a",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Switch=void 0;var l=e("node_modules/tslib/tslib"),n=l.__importDefault(e("node_modules/react/index")),t=e("256b65d"),i={md:"i-switch-md",lg:"i-switch-lg",middle:"i-switch-md",large:"i-switch-lg"},s={info:"bg-info",primary:"bg-primary",danger:"bg-danger"},d=function(e){function a(a){var l=e.call(this,a)||this;return l.hanldeCheck=l.hanldeCheck.bind(l),l}return l.__extends(a,e),a.prototype.hanldeCheck=function(e){var a=this.props,l=a.trueValue,n=a.falseValue,t=a.onChange;t&&t(e.currentTarget.checked?l:n)},a.prototype.render=function(){var e=this.props,a=e.size,t=e.level,d=e.className,r=(e.classPrefix,e.onChange,e.value),c=(e.inline,e.trueValue),u=(e.falseValue,e.disabled),o=e.readOnly,h=e.checked,f=e.classnames,m=l.__rest(e,["size","level","className","classPrefix","onChange","value","inline","trueValue","falseValue","disabled","readOnly","checked","classnames"]);return d=(d?d:"")+(a&&i[a]?" "+i[a]:"")+(t&&s[t]?" "+s[t]:""),n.default.createElement("label",{className:f("Switch",u?"is-disabled":"",d)},n.default.createElement("input",l.__assign({type:"checkbox",checked:"undefined"!=typeof h?h:"undefined"==typeof r?!1:r==c,onChange:this.hanldeCheck,disabled:u,readOnly:o},m)),n.default.createElement("i",null))},a.defaultProps={trueValue:!0,falseValue:!1},a}(n.default.PureComponent);a.Switch=d,a.default=t.themeable(d)}); +;/*!src/components/Textarea.tsx*/ +amis.define("05807e2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),a=i.__importDefault(e("node_modules/react-textarea-autosize/lib/index"));t.default=a.default}); +;/*!src/components/TitleBar.tsx*/ +amis.define("06d307c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),r=e("256b65d"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.title,r=e.titleClassName,s=e.right,i=e.classnames,d=a?l.default.createElement("div",{className:r},a):null,n=d;return n=s?l.default.createElement("div",{className:"hbox hbox-auto-xs h-auto"},l.default.createElement("div",{className:"col bg-light b-b wrapper"},d),l.default.createElement("div",{className:"col v-middle padder-md text-right bg-light b-b wrapper-sm"},s)):l.default.createElement("div",{className:"wrapper"},d),l.default.createElement("div",{className:i(t,"TitleBar")},n)},t.defaultProps={className:"bg-light lter b-b",title:"标题",titleClassName:"m-n font-thin h3",right:!1},t}(l.default.PureComponent);t.TitleBar=s,t.default=r.themeable(s)}); +;/*!src/components/Toast.tsx*/ +amis.define("6ae88e0",function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.toast=e.ToastMessage=e.ToastComponent=void 0;var o=t("node_modules/tslib/tslib"),a=o.__importStar(t("node_modules/react-transition-group/Transition")),i=o.__importDefault(t("node_modules/react/index")),s=o.__importDefault(t("580df19")),r=t("9a80175"),l=t("256b65d"),d=t("b7bbd16"),u=t("5ab4e9d"),c=(n={},n[a.ENTERING]="in",n[a.ENTERED]="in",n[a.EXITING]="out",n),p=null,m=function(t,e,n,a){void 0===e&&(e=""),void 0===n&&(n={}),p&&p[a]&&p[a](t,e||"",o.__assign({},n))},_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasRendered=!1,e.state={items:[]},e}return o.__extends(e,t),e.prototype.componentDidMount=function(){this.hasRendered=!0,p=this},e.prototype.componentWillUnmount=function(){this.hasRendered&&(p=null)},e.prototype.notifiy=function(t,e,n,a){var i=this.state.items.concat();i.push(o.__assign(o.__assign({title:n,body:e,level:t},a),{id:r.uuid()})),this.setState({items:i})},e.prototype.success=function(t,e,n){this.notifiy("success",t,e,n)},e.prototype.error=function(t,e,n){this.notifiy("error",t,e,n)},e.prototype.info=function(t,e,n){this.notifiy("info",t,e,n)},e.prototype.warning=function(t,e,n){this.notifiy("warning",t,e,n)},e.prototype.handleDismissed=function(t){var e=this.state.items.concat();e.splice(t,1),this.setState({items:e})},e.prototype.render=function(){var t=this;if(p&&!this.hasRendered)return null;var e=this.props,n=e.classnames,o=e.className,a=e.timeout,s=e.position,r=e.showIcon,l=e.translate,d=e.closeButton,u=this.state.items;return i.default.createElement("div",{className:n("Toast-wrap Toast-wrap--"+s.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()}),o)},u.map(function(e,o){var s,u;return i.default.createElement(f,{classnames:n,key:e.id,title:e.title,body:e.body,level:e.level||"info",timeout:null!==(s=e.timeout)&&void 0!==s?s:a,closeButton:null!==(u=e.closeButton)&&void 0!==u?u:d,onDismiss:t.handleDismissed.bind(t,o),translate:l,showIcon:r})}))},e.defaultProps={position:"top-right",closeButton:!1,timeout:5e3},e.themeKey="toast",o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"success",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"error",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"info",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[String,String,Object]),o.__metadata("design:returntype",void 0)],e.prototype,"warning",null),e}(i.default.Component);e.ToastComponent=_,e.default=l.themeable(u.localeable(_));var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={visible:!1},e.mounted=!1,e}return o.__extends(e,t),e.prototype.componentDidMount=function(){this.mounted=!0,this.setState({visible:!0})},e.prototype.componentWillUnmount=function(){clearTimeout(this.timer),this.mounted=!1},e.prototype.handleMouseEnter=function(){clearTimeout(this.timer)},e.prototype.handleMouseLeave=function(){this.handleEntered()},e.prototype.handleEntered=function(){var t=this.props.timeout;this.mounted&&t&&(this.timer=setTimeout(this.close,t))},e.prototype.close=function(){clearTimeout(this.timer),this.setState({visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.onDismiss,o=e.classnames,l=e.closeButton,u=e.title,p=e.body,m=e.allowHtml,_=e.level,f=e.showIcon,y=e.translate;return i.default.createElement(a.default,{mountOnEnter:!0,unmountOnExit:!0,"in":this.state.visible,timeout:750,onEntered:this.handleEntered,onExited:n},function(e){return i.default.createElement("div",{className:o("Toast Toast--"+_,c[e]),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave,onClick:l?r.noop:t.close},l?i.default.createElement("a",{onClick:t.close,className:o("Toast-close")},i.default.createElement(d.Icon,{icon:"close",className:"icon"})):null,f===!1?null:i.default.createElement("div",{className:o("Toast-icon")},"success"===_?i.default.createElement(d.Icon,{icon:"success",className:"icon"}):"error"==_?i.default.createElement(d.Icon,{icon:"fail",className:"icon"}):"info"==_?i.default.createElement(d.Icon,{icon:"info-circle",className:"icon"}):"warning"==_?i.default.createElement(d.Icon,{icon:"warning",className:"icon"}):null),u?i.default.createElement("div",{className:o("Toast-title")},y(u)):null,i.default.createElement("div",{className:o("Toast-body")},m?i.default.createElement(s.default,{html:p}):p))})},e.defaultProps={timeout:5e3,classPrefix:"",position:"top-right",allowHtml:!0,level:"info"},o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"handleEntered",null),o.__decorate([r.autobind,o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[]),o.__metadata("design:returntype",void 0)],e.prototype,"close",null),e}(i.default.Component);e.ToastMessage=f,e.toast={container:p,success:function(t,e,n){return m(t,e,n,"success")},error:function(t,e,n){return m(t,e,n,"error")},info:function(t,e,n){return m(t,e,n,"info")},warning:function(t,e,n){return m(t,e,n,"warning")}}}); +;/*!src/components/Tree.tsx*/ +amis.define("d233af4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeSelector=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("9a80175"),i=e("d57879c"),d=e("256b65d"),o=e("b86428a"),r=e("b7bbd16"),s=a.__importDefault(e("0a43d97")),c=e("5ab4e9d"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props;this.setState({value:i.value2array(e.value,{multiple:e.multiple,delimiter:e.delimiter,valueField:e.valueField,options:e.options}),unfolded:this.syncUnFolded(e),inputValue:"",addingParent:null,isAdding:!1,isEditing:!1,editingItem:null})},t.prototype.componentWillReceiveProps=function(e){var t={};(this.props.value!==e.value||this.props.options!==e.options)&&(t.value=i.value2array(e.value,{multiple:e.multiple,delimiter:e.delimiter,valueField:e.valueField,options:e.options})),this.props.options!==e.options&&(t.unfolded=this.syncUnFolded(e)),this.setState(t)},t.prototype.syncUnFolded=function(e){var t={},a=this.props,n=a.foldedField,i=a.unfoldedField;return l.eachTree(e.options,function(a,l,d){if(a.children&&a.children.length){var o=!0;i&&"undefined"!=typeof a[i]?o=!!a[i]:n&&"undefined"!=typeof a[n]?o=!a[n]:(o=!!e.initiallyOpen,!o&&d<=e.unfoldedLevel&&(o=!0)),t[a[e.valueField]]=o}}),t},t.prototype.toggleUnfolded=function(e){var t;this.setState({unfolded:a.__assign(a.__assign({},this.state.unfolded),(t={},t[e[this.props.valueField]]=!this.state.unfolded[e[this.props.valueField]],t))})},t.prototype.clearSelect=function(){var e=this;this.setState({value:[]},function(){var t=e.props,a=t.joinValues,n=t.rootValue,l=t.onChange;l(a?n:[])})},t.prototype.handleSelect=function(e){var t=this;this.setState({value:[e]},function(){var a=t.props,n=a.joinValues,l=a.valueField,i=a.onChange;i(n?e[l]:e)})},t.prototype.handleCheck=function(e,t){var a=this,n=this.props,l=this.state.value.concat(),i=l.indexOf(e),d=this.props.onlyChildren;if(t){if(~i||l.push(e),!n.cascade){var o=e.children?e.children.concat([]):[];if(d)for(!~i&&o.length&&l.shift();o.length;){var r=o.shift(),s=l.indexOf(r);r.children?o.push.apply(o,r.children):~s||l.push(r)}else for(;o.length;){var r=o.shift(),s=l.indexOf(r);~s&&l.splice(s,1),n.withChildren&&l.push(r),r.children&&r.children.length&&o.push.apply(o,r.children)}}}else if(!t&&(~i&&l.splice(i,1),!n.cascade&&(n.withChildren||d)))for(var o=e.children?e.children.concat([]):[];o.length;){var r=o.shift(),s=l.indexOf(r);~s&&l.splice(s,1),r.children&&r.children.length&&o.push.apply(o,r.children)}this.setState({value:l},function(){var e=a.props,t=e.joinValues,n=e.extractValue,i=e.valueField,d=e.delimiter,o=e.onChange;o(t?l.map(function(e){return e[i]}).join(d):n?l.map(function(e){return e[i]}):l)})},t.prototype.handleAdd=function(e){void 0===e&&(e=null);var t=this.props,a=t.bultinCUD,n=t.onAdd,i=t.options,d=void 0;return a?void this.setState({isEditing:!1,isAdding:!0,addingParent:e}):(d=e?l.findTreeIndex(i,function(t){return t===e}):void 0,n&&n(d))},t.prototype.handleEdit=function(e){var t=this.props.labelField;this.setState({isEditing:!0,isAdding:!1,editingItem:e,inputValue:e[t]})},t.prototype.handleRemove=function(e){var t=this.props.onDelete;t&&t(e)},t.prototype.handleInputChange=function(e){this.setState({inputValue:e.currentTarget.value})},t.prototype.handleConfirm=function(){var e=this.state,t=e.inputValue,n=e.isAdding,i=e.addingParent,d=e.editingItem,o=e.isEditing;if(t){var r=this.props,s=r.labelField,c=r.onAdd,u=r.options,p=r.onEdit;this.setState({inputValue:"",isAdding:!1,isEditing:!1},function(){var e,r;if(n&&c){var m=i&&l.findTreeIndex(u,function(e){return e===i})||[];c(m.concat(0),(e={},e[s]=t,e),!0)}else o&&p&&p(a.__assign(a.__assign({},d),(r={},r[s]=t,r)),d,!0)})}},t.prototype.handleCancel=function(){this.setState({inputValue:"",isAdding:!1,isEditing:!1})},t.prototype.renderInput=function(e){void 0===e&&(e=null);var t=this.props,a=t.classnames,l=t.translate,i=this.state.inputValue;return n.default.createElement("div",{className:a("Tree-itemLabel")},n.default.createElement("div",{className:a("Tree-itemInput")},e,n.default.createElement("input",{onChange:this.handleInputChange,value:i,placeholder:l("请输入")}),n.default.createElement("a",{"data-tooltip":l("取消"),onClick:this.handleCancel},n.default.createElement(r.Icon,{icon:"close",className:"icon"})),n.default.createElement("a",{"data-tooltip":l("确认"),onClick:this.handleConfirm},n.default.createElement(r.Icon,{icon:"check",className:"icon"}))))},t.prototype.renderList=function(e,t,a){var i=this,d=this.props,c=d.itemClassName,u=d.showIcon,p=d.showRadio,m=d.multiple,h=d.disabled,f=d.labelField,_=d.valueField,g=d.iconField,v=d.disabledField,y=d.cascade,b=d.selfDisabledAffectChildren,E=d.onlyChildren,C=d.classnames,T=d.highlightTxt,F=d.options,N=d.maxLength,I=d.minLength,k=d.creatable,O=d.editable,A=d.removable,S=d.createTip,V=d.editTip,j=d.removeTip,x=d.translate,L=this.state,w=L.unfolded,P=L.value,R=L.isAdding,U=L.addingParent,D=L.editingItem,B=L.isEditing,z=0,M=e.map(function(e,d){if(!l.isVisible(e,F))return null;var L=!!~t.indexOf(e),M=e[v],W=!!a||L,q=null,G=!1;e.children&&e.children.length&&(q=i.renderList(e.children,t,y?!1:a||(b?M:!1)||m&&L),G=!!q.childrenChecked,!W&&E&&e.children.length===q.childrenChecked&&(W=!0),q=q.dom),(G||L)&&z++;var H=!!a||!!h||M;!H&&(N&&!W&&P.length>=N||I&&W&&P.length<=I)&&(H=!0);var J=m?n.default.createElement(s.default,{size:"sm",disabled:H,checked:L,onChange:i.handleCheck.bind(i,e)}):p?n.default.createElement(s.default,{size:"sm",disabled:H,checked:L,onChange:i.handleSelect.bind(i,e)}):null,K=!(e.children&&e.children.length||e.placeholder);return n.default.createElement("li",{key:d,className:C("Tree-item "+(c||""),{"Tree-item--isLeaf":K})},B&&D===e?i.renderInput(J):n.default.createElement("div",{className:C("Tree-itemLabel",{"is-children-checked":m&&!y&&G&&!H,"is-checked":L,"is-disabled":H})},K?n.default.createElement("span",{className:C("Tree-itemArrowPlaceholder")}):n.default.createElement("div",{onClick:function(){return i.toggleUnfolded(e)},className:C("Tree-itemArrow",{"is-folded":!w[e[_]]})},n.default.createElement(r.Icon,{icon:"right-arrow-bold",className:"icon"})),J,u?n.default.createElement("i",{className:C("Tree-itemIcon "+(e[g]||(q?"Tree-folderIcon":"Tree-leafIcon"))),onClick:function(){return!H&&(m?i.handleCheck(e,!W):i.handleSelect(e))}},n.default.createElement(r.Icon,{icon:q?"folder":"file",className:"icon"})):null,n.default.createElement("span",{className:C("Tree-itemText"),onClick:function(){return!H&&(m?i.handleCheck(e,!W):i.handleSelect(e))}},T?o.highlight(e[f],T):e[f]),H||R||B?null:n.default.createElement("div",{className:C("Tree-item-icons")},k&&l.hasAbility(e,"creatable")?n.default.createElement("a",{onClick:i.handleAdd.bind(i,e),"data-tooltip":x(S),"data-position":"left"},n.default.createElement(r.Icon,{icon:"plus",className:"icon"})):null,A&&l.hasAbility(e,"removable")?n.default.createElement("a",{onClick:i.handleRemove.bind(i,e),"data-tooltip":x(j),"data-position":"left"},n.default.createElement(r.Icon,{icon:"minus",className:"icon"})):null,O&&l.hasAbility(e,"editable")?n.default.createElement("a",{onClick:i.handleEdit.bind(i,e),"data-tooltip":x(V),"data-position":"left"},n.default.createElement(r.Icon,{icon:"pencil",className:"icon"})):null)),q&&w[e[_]]||R&&U===e?n.default.createElement("ul",{className:C("Tree-sublist")},R&&U===e?n.default.createElement("li",{className:C("Tree-item")},i.renderInput(J?n.default.cloneElement(J,{checked:!1,disabled:!0}):null)):null,q):!q&&e.placeholder&&w[e[_]]?n.default.createElement("ul",{className:C("Tree-sublist")},n.default.createElement("li",{className:C("Tree-item")},n.default.createElement("div",{className:C("Tree-placeholder")},e.placeholder))):null)});return{dom:M,childrenChecked:z}},t.prototype.render=function(){var e=this.props,t=e.className,a=e.placeholder,l=e.hideRoot,i=e.rootLabel,d=e.showIcon,o=e.classnames,s=e.creatable,c=e.rootCreatable,u=e.rootCreateTip,p=e.disabled,m=e.translate,h=this.props.options,f=this.state,_=f.value,g=f.isAdding,v=f.addingParent,y=f.isEditing,b=(f.inputValue,null);return s&&c!==!1&&l&&(b=n.default.createElement("a",{className:o("Tree-addTopBtn",{"is-disabled":g||y}),onClick:this.handleAdd.bind(this,null)},n.default.createElement(r.Icon,{icon:"plus",className:"icon"}),n.default.createElement("span",null,m(u)))),n.default.createElement("div",{className:o("Tree "+(t||""))},h&&h.length?n.default.createElement("ul",{className:o("Tree-list")},l?n.default.createElement(n.default.Fragment,null,b,g&&!v?n.default.createElement("li",{className:o("Tree-item")},this.renderInput()):null,this.renderList(h,_,!1).dom):n.default.createElement("li",{className:o("Tree-rootItem",{"is-checked":!_||!_.length})},n.default.createElement("div",{className:o("Tree-itemLabel")},n.default.createElement("span",{className:o("Tree-itemText"),onClick:this.clearSelect},d?n.default.createElement("i",{className:o("Tree-itemIcon Tree-rootIcon")},n.default.createElement(r.Icon,{icon:"home",className:"icon"})):null,i),p||!s||c===!1||g||y?null:n.default.createElement("div",{className:o("Tree-item-icons")},s?n.default.createElement("a",{onClick:this.handleAdd.bind(this,null),"data-tooltip":u},n.default.createElement(r.Icon,{icon:"plus",className:"icon"})):null)),n.default.createElement("ul",{className:o("Tree-sublist")},g&&!v?n.default.createElement("li",{className:o("Tree-item")},this.renderInput()):null,this.renderList(h,_,!1).dom))):n.default.createElement("div",{className:o("Tree-placeholder")},a))};var d,c,u,p,m;return t.defaultProps={showIcon:!0,initiallyOpen:!0,unfoldedLevel:0,showRadio:!1,multiple:!1,disabled:!1,withChildren:!1,onlyChildren:!1,labelField:"label",valueField:"value",iconField:"icon",unfoldedField:"unfolded",foldedField:"foled",disabledField:"disabled",joinValues:!0,extractValue:!1,delimiter:",",hideRoot:!0,rootLabel:"顶级",rootValue:0,cascade:!1,selfDisabledAffectChildren:!0,rootCreateTip:"添加一级节点",createTip:"添加孩子节点",editTip:"编辑该节点",removeTip:"移除该节点"},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleUnfolded",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"clearSelect",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCheck",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof i.Option&&i.Option)?d:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAdd",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof i.Option&&i.Option)?c:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleEdit",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(u="undefined"!=typeof i.Option&&i.Option)?u:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRemove",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(p="undefined"!=typeof n.default&&n.default.ChangeEvent)?p:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleConfirm",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCancel",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(m="undefined"!=typeof i.Options&&i.Options)?m:Object,Array,Boolean]),a.__metadata("design:returntype",Object)],t.prototype,"renderList",null),t}(n.default.Component);t.TreeSelector=u,t.default=d.themeable(c.localeable(u))}); +;/*!src/components/ResultList.tsx*/ +amis.define("bb67122",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultList=void 0;var l=e("node_modules/tslib/tslib"),n=l.__importDefault(e("node_modules/react/index")),a=e("256b65d"),o=e("b7bbd16"),i=e("9a80175"),s=l.__importDefault(e("node_modules/sortablejs/Sortable")),d=e("node_modules/react-dom/index"),r=e("5ab4e9d"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id=i.guid(),t}l.__extends(t,e),t.prototype.componentDidMount=function(){this.props.sortable&&this.initSortable()},t.prototype.componentDidUpdate=function(){this.props.sortable?this.sortable||this.initSortable():this.desposeSortable()},t.prototype.componentWillUnmount=function(){this.desposeSortable()},t.prototype.handleRemove=function(e){var t=parseInt(e.currentTarget.getAttribute("data-index"),10),l=this.props,n=l.value,a=l.onChange;if(Array.isArray(n)){var o=n.concat();o.splice(t,1),null===a||void 0===a?void 0:a(o)}},t.prototype.initSortable=function(){var e=this,t=this.props.classPrefix,l=d.findDOMNode(this),n=l.querySelector("."+t+"Selections-items");n&&(this.sortable=new s.default(n,{group:"selections-"+this.id,animation:150,handle:"."+t+"Selections-dragbar",ghostClass:t+"Selections-item--dragging",onEnd:function(t){var l,n;if(t.newIndex!==t.oldIndex){var a=t.to;t.newIndex1?n.default.createElement(o.Icon,{className:l("Selections-dragbar icon"),icon:"drag-bar"}):null,n.default.createElement("label",null,d(t)),r?null:n.default.createElement("a",{className:l("Selections-delBtn"),"data-index":a,onClick:e.handleRemove},n.default.createElement(o.Icon,{icon:"close",className:"icon"})))})):n.default.createElement("div",{className:l("Selections-placeholder")},m(s)))};var a;return t.defaultProps={placeholder:"请先选择数据",itemRender:function(e){return n.default.createElement("span",null,""+(e.scopeLabel||"")+e.label)}},l.__decorate([i.autobind,l.__metadata("design:type",Function),l.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof n.default&&n.default.MouseEvent)?a:Object]),l.__metadata("design:returntype",void 0)],t.prototype,"handleRemove",null),t}(n.default.Component);t.ResultList=c,t.default=a.themeable(r.localeable(c))}); +;/*!src/components/TableCheckboxes.tsx*/ +amis.define("899a736",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCheckboxes=void 0;var a=e("node_modules/tslib/tslib"),l=e("f203847"),n=e("256b65d"),r=a.__importDefault(e("node_modules/react/index")),s=e("node_modules/uncontrollable/cjs/index"),o=a.__importDefault(e("0a43d97")),u=e("f2e345e"),c=e("5ab4e9d"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.getColumns=function(){var e=this.props.columns;return Array.isArray(e)&&e.length||(e=[{label:"Label",name:"label"}]),e},t.prototype.renderTHead=function(){var e=this.props,t=e.options,a=e.classnames,n=e.value,s=e.option2value,u=this.getColumns(),c=l.BaseCheckboxes.value2array(n,t,s),d=t.filter(function(e){return!e.disabled}),i=!1,m=!!d.length;return d.forEach(function(e){var t=!!~c.indexOf(e);t&&!i?i=!0:!t&&m&&(m=!1)}),r.default.createElement("thead",null,r.default.createElement("tr",null,Array.isArray(t)&&t.length?r.default.createElement("th",{className:a("Table-checkCell")},r.default.createElement(o.default,{size:"sm",onChange:this.toggleAll,checked:i,partial:i&&!m})):null,u.map(function(e,t){return r.default.createElement("th",{key:t},e.label)})))},t.prototype.renderTBody=function(){var e=this,t=this.props,a=t.options,n=t.placeholder,s=t.classnames,u=t.cellRender,c=t.value,d=t.option2value,i=t.translate,m=this.getColumns(),f=l.BaseCheckboxes.value2array(c,a,d);return r.default.createElement("tbody",null,Array.isArray(a)&&a.length?a.map(function(t,a){var l=-1!==f.indexOf(t);return r.default.createElement("tr",{key:a,onClick:function(a){return a.defaultPrevented||e.toggleOption(t)}},r.default.createElement("td",{className:s("Table-checkCell")},r.default.createElement(o.default,{size:"sm",checked:l})),m.map(function(e,l){return r.default.createElement("td",{key:l},u(e,t,l,a))}))}):r.default.createElement("tr",null,r.default.createElement("td",{colSpan:m.length},i(n))))},t.prototype.render=function(){var e=this,t=this.props,a=t.value,n=t.options,s=t.className,u=t.labelClassName,c=t.disabled,d=t.classnames,i=t.option2value,m=t.itemClassName,f=t.itemRender,b=l.BaseCheckboxes.value2array(a,n,i),h=[];return Array.isArray(n)&&n.length&&(h=n.map(function(t,a){return r.default.createElement("div",{key:a,className:d("TableCheckboxes-item",m,t.className,c||t.disabled?"is-disabled":""),onClick:function(){return e.toggleOption(t)}},r.default.createElement("div",{className:d("TableCheckboxes-itemLabel")},f(t)),r.default.createElement(o.default,{size:"sm",checked:!!~b.indexOf(t),disabled:c||t.disabled,labelClassName:u,description:t.description}))})),r.default.createElement("div",{className:d("TableCheckboxes",s)},r.default.createElement("div",{className:d("Table-content")},r.default.createElement("table",{className:d("Table-table")},this.renderTHead(),this.renderTBody())))},t.defaultProps=a.__assign(a.__assign({},l.BaseCheckboxes.defaultProps),{cellRender:function(e,t){return r.default.createElement("span",null,u.resolveVariable(e.name,t))}}),t}(l.BaseCheckboxes);t.TableCheckboxes=d,t.default=n.themeable(c.localeable(s.uncontrollable(d,{value:"onChange"})))}); +;/*!src/components/ListCheckboxes.tsx*/ +amis.define("0afdbca",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ListCheckboxes=void 0;var t=e("node_modules/tslib/tslib"),s=e("f203847"),l=e("256b65d"),i=t.__importDefault(e("node_modules/react/index")),r=e("node_modules/uncontrollable/cjs/index"),n=t.__importDefault(e("0a43d97")),o=e("5ab4e9d"),c=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.renderOption=function(e,a){var t=this,s=this.props,l=s.labelClassName,r=s.disabled,o=s.classnames,c=s.itemClassName,d=s.itemRender,u=this.valueArray;return Array.isArray(e.children)?i.default.createElement("div",{key:a,className:o("ListCheckboxes-group",e.className)},i.default.createElement("div",{className:o("ListCheckboxes-itemLabel")},d(e)),i.default.createElement("div",{className:o("ListCheckboxes-items",e.className)},e.children.map(function(e,a){return t.renderOption(e,a)}))):i.default.createElement("div",{key:a,className:o("ListCheckboxes-item",c,e.className,r||e.disabled?"is-disabled":""),onClick:function(){return t.toggleOption(e)}},i.default.createElement("div",{className:o("ListCheckboxes-itemLabel")},d(e)),i.default.createElement(n.default,{size:"sm",checked:!!~u.indexOf(e),disabled:r||e.disabled,labelClassName:l,description:e.description}))},a.prototype.render=function(){var e=this,a=this.props,t=a.value,l=a.options,r=a.className,n=a.placeholder,o=a.classnames,c=a.option2value,d=this.props.translate;this.valueArray=s.BaseCheckboxes.value2array(t,l,c);var u=[];return Array.isArray(l)&&l.length&&(u=l.map(function(a,t){return e.renderOption(a,t)})),i.default.createElement("div",{className:o("ListCheckboxes",r)},u&&u.length?u:i.default.createElement("div",{className:o("ListCheckboxes-placeholder")},d(n)))},a}(s.BaseCheckboxes);a.ListCheckboxes=c,a.default=l.themeable(o.localeable(r.uncontrollable(c,{value:"onChange"})))}); +;/*!src/components/TreeCheckboxes.tsx*/ +amis.define("832511b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TreeCheckboxes=void 0;var r=e("node_modules/tslib/tslib"),t=e("f203847"),n=e("256b65d"),i=r.__importDefault(e("node_modules/react/index")),l=e("node_modules/uncontrollable/cjs/index"),s=r.__importDefault(e("0a43d97")),o=e("9a80175"),d=r.__importDefault(e("acad559")),c=e("5ab4e9d"),u=e("b7bbd16"),p=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.state={expanded:[]},a}return r.__extends(a,e),a.prototype.componentDidMount=function(){this.syncExpanded()},a.prototype.componentDidUpdate=function(e){var a=this.props;this.state.expanded.length||a.expand===e.expand&&a.options===e.options||this.syncExpanded()},a.prototype.syncExpanded=function(){var e=this.props.options,a=this.props.expand,r=[];Array.isArray(e)&&("first"===a||"root"===a?e.every(function(e,t){return Array.isArray(e.children)?(r.push(""+t),"root"===a):!0}):"all"===a&&o.everyTree(e,function(e,a,t,n,i){return Array.isArray(e.children)&&r.push(""+i.concat(a).join("-")),!0}),this.setState({expanded:r}))},a.prototype.toggleOption=function(e){var a=this.props,r=a.value,n=a.onChange,i=a.option2value,l=a.options,s=a.onDeferLoad;if(!e.disabled){if(e.defer&&!e.loaded)return void(null===s||void 0===s?void 0:s(e));var o=t.BaseCheckboxes.value2array(r,l,i);if(void 0===e.value&&Array.isArray(e.children)&&e.children.length){var d=function(e){return(Array.isArray(e.children)&&e.children.length?e.children.some(d):!1)||void 0!==e.value&&~o.indexOf(e)},c=e.children.some(d),u=function(e){if(Array.isArray(e.children)&&e.children.length&&e.children.forEach(u),void 0!==e.value){var a=o.indexOf(e);~a&&o.splice(a,1),c||o.push(e)}};e.children.forEach(u)}else{var p=o.indexOf(e);~p?o.splice(p,1):o.push(e)}var h=i?o.map(function(e){return i(e)}):o;n&&n(h)}},a.prototype.toggleCollapsed=function(e,a){var r=this.props.onDeferLoad,t=this.state.expanded.concat(),n=t.indexOf(a);~n?t.splice(n,1):t.push(a),this.setState({expanded:t},e.defer&&r?function(){return r(e)}:void 0)},a.prototype.renderItem=function(e,a,r){var t=this;void 0===r&&(r=[]);var n=this.props,l=n.labelClassName,o=n.disabled,c=n.classnames,p=n.itemClassName,h=n.itemRender,f=r.join("-"),v=this.valueArray,m=!1,b=!1,x=Array.isArray(e.children)&&e.children.length;if(void 0===e.value&&x){var y=!0,g=!1,C=function(e){if(Array.isArray(e.children)&&e.children.length&&e.children.forEach(C),void 0!==e.value){var a=!!~v.indexOf(e);a&&!g?g=!0:!a&&y&&(y=!1),b=g,m=g&&!y}};e.children.forEach(C)}else b=!!~v.indexOf(e);var A=!!~this.state.expanded.indexOf(f);return i.default.createElement("div",{key:a,className:c("TreeCheckboxes-item",o||e.disabled||e.defer&&e.loading?"is-disabled":"",A?"is-expanded":"")},i.default.createElement("div",{className:c("TreeCheckboxes-itemInner",p,e.className),onClick:function(){return t.toggleOption(e)}},x||e.defer?i.default.createElement("a",{onClick:function(a){a.stopPropagation(),t.toggleCollapsed(e,f)},className:c("Table-expandBtn",A?"is-active":"")},i.default.createElement(u.Icon,{icon:"right-arrow-bold",className:"icon"})):null,i.default.createElement("div",{className:c("TreeCheckboxes-itemLabel")},h(e)),e.defer&&e.loading?i.default.createElement(d.default,{show:!0,size:"sm"}):null,!e.defer||e.loaded?i.default.createElement(s.default,{size:"sm",checked:b,partial:m,disabled:o||e.disabled,labelClassName:l,description:e.description}):null),x?i.default.createElement("div",{className:c("TreeCheckboxes-sublist")},e.children.map(function(e,a){return t.renderItem(e,a,r.concat(a))})):null)},a.prototype.render=function(){var e=this,a=this.props,r=a.value,n=a.options,l=a.className,s=a.placeholder,o=a.classnames,d=a.option2value,c=a.translate;this.valueArray=t.BaseCheckboxes.value2array(r,n,d);var u=[];return Array.isArray(n)&&n.length&&(u=n.map(function(a,r){return e.renderItem(a,r,[r])})),i.default.createElement("div",{className:o("TreeCheckboxes",l)},u&&u.length?u:i.default.createElement("div",{className:o("TreeCheckboxes-placeholder")},c(s)))},a.defaultProps=r.__assign(r.__assign({},t.BaseCheckboxes.defaultProps),{expand:"first"}),a}(t.BaseCheckboxes);a.TreeCheckboxes=p,a.default=n.themeable(c.localeable(l.uncontrollable(p,{value:"onChange"})))}); +;/*!src/components/InputBox.tsx*/ +amis.define("fe0e0e4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBox=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("256b65d"),l=a.__importDefault(e("4ee46ff")),s=e("9a80175"),r=e("b7bbd16"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isFocused:!1},t}a.__extends(t,e),t.prototype.clearValue=function(e){e.preventDefault();var t=this.props.onChange,a=this.props.onChange;null===t||void 0===t?void 0:t(e),null===a||void 0===a?void 0:a("")},t.prototype.handleChange=function(e){var t=this.props.onChange;t&&t(e.currentTarget.value)},t.prototype.handleFocus=function(e){var t=this.props.onFocus;t&&t(e),this.setState({isFocused:!0})},t.prototype.handleBlur=function(e){var t=this.props.onBlur;t&&t(e),this.setState({isFocused:!1})},t.prototype.render=function(){var e=this.props,t=e.className,o=e.classnames,s=(e.classPrefix,e.clearable),d=e.disabled,i=e.hasError,u=e.value,c=e.placeholder,p=e.prefix,_=e.children,h=a.__rest(e,["className","classnames","classPrefix","clearable","disabled","hasError","value","placeholder","prefix","children"]),f=this.state.isFocused;return n.default.createElement("div",{className:o("InputBox",t,f?"is-focused":"",d?"is-disabled":"",i?"is-error":"",h.onClick?"is-clickable":"")},p,n.default.createElement(l.default,a.__assign({},h,{value:u||"",onChange:this.handleChange,placeholder:c,onFocus:this.handleFocus,onBlur:this.handleBlur})),_,s&&!d&&u?n.default.createElement("a",{onClick:this.clearValue,className:o("InputBox-clear")},n.default.createElement(r.Icon,{icon:"close",className:"icon"})):null)};var o;return t.defaultProps={clearable:!0,placeholder:""},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof n.default&&n.default.ChangeEvent)?o:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),t}(n.default.Component);t.InputBox=d,t.default=o.themeable(d)}); +;/*!src/components/ChainedCheckboxes.tsx*/ +amis.define("5b21367",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainedCheckboxes=void 0;var a=e("node_modules/tslib/tslib"),l=e("f203847"),s=e("256b65d"),n=a.__importDefault(e("node_modules/react/index")),i=e("node_modules/uncontrollable/cjs/index"),d=a.__importDefault(e("0a43d97")),o=e("9a80175"),r=a.__importDefault(e("node_modules/lodash/times")),c=a.__importDefault(e("acad559")),u=e("5ab4e9d"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={selected:[]},t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.defaultSelectedIndex;void 0!==e&&this.setState({selected:[""+e]})},t.prototype.selectOption=function(e,t,a){var l=this.props.onDeferLoad,s=this.state.selected.concat();s.splice(t,s.length-t),s.push(a),this.setState({selected:s},e.defer&&l?function(){return l(e)}:void 0)},t.prototype.renderOption=function(e,t,a,l){var s=this,i=this.props,o=i.labelClassName,r=i.disabled,u=i.classnames,h=i.itemClassName,m=i.itemRender,p=this.valueArray;return Array.isArray(e.children)||e.defer?n.default.createElement("div",{key:t,className:u("ChainedCheckboxes-item",h,e.className,r||e.disabled?"is-disabled":"",~this.state.selected.indexOf(l)?"is-active":""),onClick:function(){return s.selectOption(e,a,l)}},n.default.createElement("div",{className:u("ChainedCheckboxes-itemLabel")},m(e)),e.defer&&e.loading?n.default.createElement(c.default,{size:"sm",show:!0}):null):n.default.createElement("div",{key:t,className:u("ChainedCheckboxes-item",h,e.className,r||e.disabled?"is-disabled":""),onClick:function(){return s.toggleOption(e)}},n.default.createElement("div",{className:u("ChainedCheckboxes-itemLabel")},m(e)),n.default.createElement(d.default,{size:"sm",checked:!!~p.indexOf(e),disabled:r||e.disabled,labelClassName:o,description:e.description}))},t.prototype.render=function(){var e=this,t=this.props,a=t.value,s=t.options,i=t.className,d=t.placeholder,c=t.classnames,u=t.option2value,h=(t.itemRender,t.translate);this.valueArray=l.BaseCheckboxes.value2array(a,s,u);var m=[];if(Array.isArray(s)&&s.length){var p=this.state.selected.concat(),f=Math.min(o.getTreeDepth(s),3);r.default(Math.max(f-p.length,1),function(){return p.push(null)}),p.reduce(function(t,a,l){var s=t.body,i=t.options,d=t.subTitle,o=t.indexes,r=t.placeholder,u=[],m="",p="",f=o;return s.push(n.default.createElement("div",{key:l,className:c("ChainedCheckboxes-col")},d?n.default.createElement("div",{className:c("ChainedCheckboxes-subTitle")},d):null,Array.isArray(i)&&i.length?i.map(function(t,s){var n=o.concat(s).join("-");return n===a&&(m=t.subTitle,u=t.children,f=o.concat(s),p=t.placeholder),e.renderOption(t,s,l,n)}):n.default.createElement("div",{className:c("ChainedCheckboxes-placeholder")},h(r)))),{options:u,subTitle:m,placeholder:p,indexes:f,body:s}},{options:s,body:m,indexes:[],placeholder:d})}return n.default.createElement("div",{className:c("ChainedCheckboxes",i)},m&&m.length?m:n.default.createElement("div",{className:c("ChainedCheckboxes-placeholder")},h(d)))},t}(l.BaseCheckboxes);t.ChainedCheckboxes=h,t.default=s.themeable(u.localeable(i.uncontrollable(h,{value:"onChange"})))}); +;/*!src/components/ListRadios.tsx*/ +amis.define("aff578b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListRadios=t.BaseRadios=void 0;var a=e("node_modules/tslib/tslib"),n=e("256b65d"),l=a.__importDefault(e("node_modules/react/index")),i=e("node_modules/uncontrollable/cjs/index"),s=a.__importDefault(e("0a43d97")),o=e("d57879c"),r=e("9a80175"),d=a.__importDefault(e("node_modules/lodash/isEqual")),u=e("5ab4e9d"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.resolveSelected=function(e,t,a){return void 0===a&&(a=function(e){return e}),r.findTree(t,function(t){return d.default(a(t),e)})},t.prototype.toggleOption=function(e){var a=this.props,n=a.onChange,l=a.clearable,i=a.value,s=a.options,o=a.option2value,r=e;if(l){var d=t.resolveSelected(i,s,o);d&&(r=null)}null===n||void 0===n?void 0:n(r&&o?o(r):r)},t.prototype.renderOption=function(e,t){var a=this,n=this.props,i=n.disabled,o=n.classnames,r=n.itemClassName,d=n.itemRender,u=n.showRadio,c=this.selected;return Array.isArray(e.children)?l.default.createElement("div",{key:t,className:o("ListRadios-group",e.className)},l.default.createElement("div",{className:o("ListRadios-itemLabel")},d(e)),l.default.createElement("div",{className:o("ListRadios-items",e.className)},e.children.map(function(e,t){return a.renderOption(e,t)}))):l.default.createElement("div",{key:t,className:o("ListRadios-item",r,e.className,i||e.disabled?"is-disabled":"",c===e?"is-active":""),onClick:function(){return a.toggleOption(e)}},l.default.createElement("div",{className:o("ListRadios-itemLabel")},d(e)),u!==!1?l.default.createElement(s.default,{type:"radio",size:"sm",checked:c===e,disabled:i||e.disabled}):null)},t.prototype.render=function(){var e=this,a=this.props,n=a.value,i=a.options,s=a.className,o=a.placeholder,r=a.classnames,d=a.option2value,u=this.props.translate;this.selected=t.resolveSelected(n,i,d);var c=[];return Array.isArray(i)&&i.length&&(c=i.map(function(t,a){return e.renderOption(t,a)})),l.default.createElement("div",{className:r("ListRadios",s)},c&&c.length?c:l.default.createElement("div",{className:r("ListRadios-placeholder")},u(o)))};var n;return t.defaultProps={placeholder:"暂无选项",itemRender:function(e){return l.default.createElement("span",null,e.label)}},a.__decorate([r.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(n="undefined"!=typeof o.Option&&o.Option)?n:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleOption",null),t}(l.default.Component);t.BaseRadios=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t}(c);t.ListRadios=p;var m=n.themeable(u.localeable(i.uncontrollable(p,{value:"onChange"})));m.resolveSelected=c.resolveSelected,t.default=m}); +;/*!src/components/TreeRadios.tsx*/ +amis.define("5281626",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeRadios=void 0;var a=e("node_modules/tslib/tslib"),n=e("256b65d"),s=a.__importDefault(e("node_modules/react/index")),r=e("node_modules/uncontrollable/cjs/index"),i=a.__importDefault(e("0a43d97")),d=e("9a80175"),o=a.__importDefault(e("acad559")),l=e("aff578b"),c=e("5ab4e9d"),p=e("b7bbd16"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={expanded:[]},t}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.syncExpanded()},t.prototype.componentDidUpdate=function(e){var t=this.props;this.state.expanded.length||t.expand===e.expand&&t.options===e.options||this.syncExpanded()},t.prototype.syncExpanded=function(){var e=this.props.options,t=this.props.expand,a=[];Array.isArray(e)&&("first"===t||"root"===t?e.every(function(e,n){return Array.isArray(e.children)?(a.push(""+n),"root"===t):!0}):"all"===t&&d.everyTree(e,function(e,t,n,s,r){return Array.isArray(e.children)&&a.push(""+r.concat(t).join("-")),!0}),this.setState({expanded:a}))},t.prototype.toggleCollapsed=function(e,t){var a=this.props.onDeferLoad,n=this.state.expanded.concat(),s=n.indexOf(t);~s?n.splice(s,1):n.push(t),this.setState({expanded:n},e.defer&&a?function(){return a(e)}:void 0)},t.prototype.renderItem=function(e,t,a){var n=this;void 0===a&&(a=[]);var r=this.props,d=r.disabled,l=r.classnames,c=r.itemClassName,u=r.itemRender,f=r.showRadio,m=a.join("-"),h=Array.isArray(e.children)&&e.children.length,v=e===this.selected,y=!!~this.state.expanded.indexOf(m);return s.default.createElement("div",{key:t,className:l("TreeRadios-item",d||e.disabled||e.defer&&e.loading?"is-disabled":"",y?"is-expanded":"",v?"is-active":"")},s.default.createElement("div",{className:l("TreeRadios-itemInner",c,e.className,v?"is-active":""),onClick:function(){return n.toggleOption(e)}},h||e.defer?s.default.createElement("a",{onClick:function(t){t.stopPropagation(),n.toggleCollapsed(e,m)},className:l("Table-expandBtn",y?"is-active":"")},s.default.createElement(p.Icon,{icon:"right-arrow-bold",className:"icon"})):null,s.default.createElement("div",{className:l("TreeRadios-itemLabel")},u(e)),e.defer&&e.loading?s.default.createElement(o.default,{show:!0,size:"sm"}):null,e.defer&&!e.loaded||void 0===e.value||f===!1?null:s.default.createElement(i.default,{type:"radio",size:"sm",checked:v,disabled:d||e.disabled})),h?s.default.createElement("div",{className:l("TreeRadios-sublist")},e.children.map(function(e,t){return n.renderItem(e,t,a.concat(t))})):null)},t.prototype.render=function(){var e=this,t=this.props,a=t.value,n=t.options,r=t.className,i=t.placeholder,d=t.classnames,o=t.option2value,c=t.translate;this.selected=l.BaseRadios.resolveSelected(a,n,o);var p=[];return Array.isArray(n)&&n.length&&(p=n.map(function(t,a){return e.renderItem(t,a,[a])})),s.default.createElement("div",{className:d("TreeRadios",r)},p&&p.length?p:s.default.createElement("div",{className:d("TreeRadios-placeholder")},c(i)))},t.defaultProps=a.__assign(a.__assign({},l.BaseRadios.defaultProps),{expand:"first"}),t}(l.BaseRadios);t.TreeRadios=u,t.default=n.themeable(c.localeable(r.uncontrollable(u,{value:"onChange"})))}); +;/*!src/components/AssociatedCheckboxes.tsx*/ +amis.define("5e86ffe",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssociatedCheckboxes=void 0;var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),o=e("f203847"),n=e("d57879c"),i=e("9a80175"),s=a.__importDefault(e("aff578b")),d=e("256b65d"),u=e("node_modules/uncontrollable/cjs/index"),r=a.__importDefault(e("0afdbca")),c=a.__importDefault(e("899a736")),f=a.__importDefault(e("832511b")),p=a.__importDefault(e("5b21367")),h=a.__importDefault(e("5281626")),m=e("b7bbd16"),v=e("5ab4e9d"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={leftValue:t.props.leftDefaultValue},t}a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.state.leftValue,t=this.props,a=t.options,l=t.onDeferLoad;if(e){var o=s.default.resolveSelected(e,a,function(e){return e.ref});o&&l&&o.defer&&l(o)}},t.prototype.leftOption2Value=function(e){return e.value},t.prototype.handleLeftSelect=function(e){var t=this.props,a=t.options,l=t.onDeferLoad;this.setState({leftValue:e});var o=s.default.resolveSelected(e,a,function(e){return e.ref});o&&l&&o.defer&&l(o)},t.prototype.handleRetry=function(e){var t=this.props.onDeferLoad;null===t||void 0===t?void 0:t(e)},t.prototype.render=function(){var e=this.props,t=e.classnames,a=e.className,o=e.leftOptions,n=e.options,i=e.option2value,d=e.rightMode,u=e.onChange,v=e.columns,_=e.value,b=e.leftMode,y=e.cellRender,g=s.default.resolveSelected(this.state.leftValue,n,function(e){return e.ref}),C=this.props.translate;return l.default.createElement("div",{className:t("AssociatedCheckboxes",a)},l.default.createElement("div",{className:t("AssociatedCheckboxes-left")},"tree"===b?l.default.createElement(h.default,{option2value:this.leftOption2Value,options:o,value:this.state.leftValue,onChange:this.handleLeftSelect,showRadio:!1}):l.default.createElement(s.default,{option2value:this.leftOption2Value,options:o,value:this.state.leftValue,onChange:this.handleLeftSelect,showRadio:!1})),l.default.createElement("div",{className:t("AssociatedCheckboxes-right")},this.state.leftValue?g?g.defer&&!g.loaded?l.default.createElement("div",{className:t("AssociatedCheckboxes-box")},l.default.createElement("div",{className:t("AssociatedCheckboxes-reload",g.loading?"is-spin":"is-clickable"),onClick:g.loading?void 0:this.handleRetry.bind(this,g)},l.default.createElement(m.Icon,{icon:"reload",className:"icon"})),g.loading?l.default.createElement("p",null,C("加载中")):l.default.createElement("p",null,C("点击刷新重新加载"))):"table"===d?l.default.createElement(c.default,{columns:v,value:_,options:g.children||[],onChange:u,option2value:i,cellRender:y}):"tree"===d?l.default.createElement(f.default,{value:_,options:g.children||[],onChange:u,option2value:i}):"chained"===d?l.default.createElement(p.default,{value:_,options:g.children||[],onChange:u,option2value:i}):l.default.createElement(r.default,{value:_,options:g.children||[],onChange:u,option2value:i}):l.default.createElement("div",{className:t("AssociatedCheckboxes-box")},C("配置错误,选项无法与左侧选项对应")):l.default.createElement("div",{className:t("AssociatedCheckboxes-box")},C("请先选择左侧数据"))))};var o,d;return a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof n.Option&&n.Option)?o:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"leftOption2Value",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof n.Option&&n.Option)?d:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleLeftSelect",null),t}(o.BaseCheckboxes);t.AssociatedCheckboxes=_,t.default=d.themeable(v.localeable(u.uncontrollable(_,{value:"onChange"})))}); +;/*!src/components/Transfer.tsx*/ +amis.define("0573406",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Transfer=void 0;var t=e("node_modules/tslib/tslib"),l=t.__importDefault(e("node_modules/react/index")),n=e("256b65d"),r=e("f203847"),s=e("node_modules/uncontrollable/cjs/index"),o=t.__importDefault(e("bb67122")),c=t.__importDefault(e("899a736")),u=t.__importDefault(e("0afdbca")),i=t.__importDefault(e("832511b")),d=e("9a80175"),h=t.__importDefault(e("fe0e0e4")),f=e("b7bbd16"),p=t.__importDefault(e("node_modules/lodash/debounce")),m=t.__importDefault(e("5b21367")),v=t.__importDefault(e("5e86ffe")),_=e("5ab4e9d"),g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.state={inputValue:"",searchResult:null},a.unmounted=!1,a.lazySearch=p.default(function(e){(function(e){return t.__awaiter(a,void 0,void 0,function(){var a,l,n=this;return t.__generator(this,function(t){switch(t.label){case 0:return a=this.props.onSearch,[4,a(e,function(e){return n.cancelSearch=e})];case 1:if(l=t.sent(),this.unmounted)return[2];if(!Array.isArray(l))throw new Error("onSearch 需要返回数组");return this.setState({searchResult:l}),[2]}})})})(e).catch(function(e){return console.error(e)})},250,{trailing:!0,leading:!1}),a}return t.__extends(a,e),a.prototype.componentWillUnmount=function(){this.lazySearch.cancel(),this.unmounted=!0},a.prototype.toggleAll=function(){var e=this.props,a=e.options,t=e.option2value,l=e.onChange,n=e.value,s=r.BaseCheckboxes.value2array(n,a,t),o=d.flattenTree(a).filter(function(e,a,t){return!e.disabled&&void 0!==e.value&&t.indexOf(e)===a});s=s.length1&&!d?n.default.createElement("a",{className:o("ArrayInput-itemDrager drag-bar")},n.default.createElement(i.Icon,{icon:"drag-bar",className:"icon"})):null,l({value:e,onChange:this.handleItemOnChange.bind(this,t),index:t,disabled:d}),u===!1||d||p&&!(a.length>p)?null:n.default.createElement("a",{"data-index":t,className:o("ArrayInput-itemRemove"),onClick:this.handleRemove},n.default.createElement(i.Icon,{icon:"close",className:"icon"})))},t.prototype.render=function(){var e=this,t=this.props,a=t.classnames,r=t.value,l=t.placeholder,d=t.translate,s=t.maxLength,u=t.sortable,p=t.sortTip,c=t.disabled;return n.default.createElement("div",{className:a("ArrayInput")},Array.isArray(r)&&r.length?n.default.createElement("div",{className:a("ArrayInput-items drag-group")},r.map(function(t,a){return e.renderItem(t,a,r)})):n.default.createElement("div",{className:a("ArrayInput-placeholder")},d(l)),n.default.createElement("div",{className:a("ArrayInput-toolbar",u&&Array.isArray(r)&&r.length>1?"ArrayInput-toolbar--dnd":"")},!Array.isArray(r)||!s||r.length1?d(p):""):null))};var r;return t.defaultProps={placeholder:"<空>",itemRender:function(e){var t=e.value,a=e.onChange;return n.default.createElement(d.default,{value:t,onChange:a})}},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"dragTipRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAdd",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof n.default&&n.default.MouseEvent)?r:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRemove",null),t}(n.default.Component);t.ArrayInput=m,t.default=r.themeable(l.localeable(u.uncontrollable(m,{value:"onChange"})))}); +;/*!src/components/index.tsx*/ +amis.define("1953fc1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayInput=t.NumberInput=t.ListGroup=t.TreeRadios=t.SearchBox=t.ListRadios=t.InputBox=t.ResultBox=t.ChainedCheckboxes=t.TreeCheckboxes=t.TableCheckboxes=t.ListCheckboxes=t.TabsTransfer=t.Transfer=t.Tree=t.TooltipWrapper=t.Tooltip=t.toast=t.ToastComponent=t.TitleBar=t.Textarea=t.Switch=t.Spinner=t.Select=t.Rating=t.Range=t.Radios=t.PopOver=t.Overlay=t.Modal=t.LazyComponent=t.Layout=t.Icons=t.Html=t.Editor=t.Tab=t.Tabs=t.Drawer=t.DateRangePicker=t.DatePicker=t.ColorPicker=t.Collapse=t.Checkboxes=t.Checkbox=t.Button=t.AsideNav=t.Alert2=t.openContextMenus=t.ContextMenu=t.prompt=t.confirm=t.alert=t.AlertComponent=t.NotFound=void 0;var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("bb0be5b"));t.NotFound=r.default;var o=a.__importStar(e("bfe4ee0"));Object.defineProperty(t,"AlertComponent",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"alert",{enumerable:!0,get:function(){return o.alert}}),Object.defineProperty(t,"confirm",{enumerable:!0,get:function(){return o.confirm}}),Object.defineProperty(t,"prompt",{enumerable:!0,get:function(){return o.prompt}});var u=a.__importStar(e("703f435"));Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"openContextMenus",{enumerable:!0,get:function(){return u.openContextMenus}});var f=a.__importDefault(e("4e7c54b"));t.AsideNav=f.default;var l=a.__importDefault(e("a67acca"));t.Button=l.default;var i=a.__importDefault(e("0a43d97"));t.Checkbox=i.default;var n=a.__importDefault(e("f203847"));t.Checkboxes=n.default;var d=a.__importDefault(e("0d13109"));t.Collapse=d.default;var _=a.__importDefault(e("f11d26b"));t.ColorPicker=_.default;var p=a.__importDefault(e("dd24912"));t.DatePicker=p.default;var m=a.__importDefault(e("eaae631"));t.DateRangePicker=m.default;var c=a.__importDefault(e("01a937e"));t.Drawer=c.default;var b=a.__importStar(e("8ac7656"));Object.defineProperty(t,"Tabs",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"Tab",{enumerable:!0,get:function(){return b.Tab}});var v=a.__importDefault(e("997c87d"));t.Editor=v.default;var s=a.__importDefault(e("580df19"));t.Html=s.default;var D=a.__importStar(e("b7bbd16"));t.Icons=D;var C=a.__importDefault(e("4c26fd3"));t.Layout=C.default;var T=a.__importDefault(e("4783ce8"));t.LazyComponent=T.default;var x=a.__importDefault(e("628f736"));t.Modal=x.default;var y=a.__importDefault(e("997df41"));t.Overlay=y.default;var P=a.__importDefault(e("2b3dcdf"));t.PopOver=P.default;var h=a.__importDefault(e("8e37af0"));t.Radios=h.default;var k=a.__importDefault(e("736bbb6"));t.Range=k.default;var g=a.__importDefault(e("1b690d8"));t.Rating=g.default;var O=a.__importDefault(e("d57879c"));t.Select=O.default;var R=a.__importDefault(e("acad559"));t.Spinner=R.default;var S=a.__importDefault(e("aa2413a"));t.Switch=S.default;var j=a.__importDefault(e("05807e2"));t.Textarea=j.default;var B=a.__importDefault(e("06d307c"));t.TitleBar=B.default;var L=a.__importStar(e("6ae88e0"));Object.defineProperty(t,"ToastComponent",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toast",{enumerable:!0,get:function(){return L.toast}});var A=a.__importDefault(e("007c3b6"));t.Tooltip=A.default;var I=a.__importDefault(e("8d5abcb"));t.TooltipWrapper=I.default;var M=a.__importDefault(e("d233af4"));t.Tree=M.default;var N=a.__importDefault(e("15e4197"));t.Alert2=N.default;var w=a.__importDefault(e("0573406"));t.Transfer=w.default;var z=a.__importDefault(e("5c35784"));t.TabsTransfer=z.default;var E=a.__importDefault(e("0afdbca"));t.ListCheckboxes=E.default;var F=a.__importDefault(e("899a736"));t.TableCheckboxes=F.default;var G=a.__importDefault(e("832511b"));t.TreeCheckboxes=G.default;var H=a.__importDefault(e("5b21367"));t.ChainedCheckboxes=H.default;var W=a.__importDefault(e("d14c6a1"));t.ResultBox=W.default;var q=a.__importDefault(e("fe0e0e4"));t.InputBox=q.default;var J=a.__importDefault(e("aff578b"));t.ListRadios=J.default;var K=a.__importDefault(e("5281626"));t.TreeRadios=K.default;var Q=a.__importDefault(e("fc16070"));t.ListGroup=Q.default;var U=a.__importDefault(e("10d195e"));t.NumberInput=U.default;var V=a.__importDefault(e("05f66e3"));t.ArrayInput=V.default;var X=a.__importDefault(e("3c38360"));t.SearchBox=X.default}); +;/*!src/locale/en.ts*/ +amis.define("ee0cecb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("5ab4e9d");a.register("en",{"确认":"Confirm","取消":"Cancel","YYYY年":"YYYY","{{from}}年-{{to}}年":"{{from}} - {{to}}","请选择日期":"Select Date","请选择日期以及时间":"Select Datetime","请选择时间":"Select Time","系统消息":"System Info","加载中":"Loading","点击刷新重新加载":"Click to refresh","请先选择左侧数据":"Select from left first.","请选择颜色":"Select color","现在":"Now","今天":"Today","昨天":"Yesterday","本周一":"Monday","本月初":"Earlier this month","上个月初":"Earlier last month","上个季节初":"Earlier last quarter","明天":"Tomorrow","本周日":"Sunday","本月底":"last day of this month","{{hours}}小时前":"{{hours}} hour(s) ago","{{hours}}小时后":"{{hours}} hour(s) after","{{days}}天前":"{{days}} day(s) ago","{{days}}天后":"{{days}} day(s) after","{{weeks}}周前":"{{weeks}} week(s) ago","{{weeks}}周后":"{{weeks}} week(s) after","{{months}}月前":"{{months}} month(s) ago","{{months}}月后":"{{months}} month(s) after","{{quarters}}季度前":"{{quarters}} quarter(s) ago","{{quarters}}季度后":"{{quarters}} quarter(s) after"," 至 ":" to ","最近1天":"Last day","最近7天":"Last 7 days","最近90天":"Last 90 days","上周":"Last week","本月":"This month","上个月":"Last month","上个季节":"Last quarter","本季度":"This quarter","请选择日期范围":"Select Daterange","关闭":"Close","暂无选项":"No options","请选择位置":"Pick location","无":"None","没有数据":"No data","请先选择数据":"Select data first","请选择":"Select","全选":"Check all","搜索结果":"Search result","清空":"Clear","当前选择":"Selected","添加一级节点":"Add root node","添加孩子节点":"Add child","编辑该节点":"Edit this node","移除该节点":"Remove this node","请输入":"Enter","请输入关键字":"Enter keywords","新增选项":"New option","请输入街道信息":"Enter street info","删除":"Delete","新增":"New","新增一条":"Add a data","新增一条数据":"Add a data","类型":"Type","拖拽排序":"Drag to sort","删除失败":"Delete failed","确认要删除?":"Are you sure you want to delete?","组合表单成员数量不够,低于设定的最小{{minLength}}个,请添加更多的成员。":"The number of combined form members is not enough. It is lower than the minimum {{minLength}} set. Please add more members.","组合表单成员数量超出,超出设定的最大{{maxLength}}个,请删除多余的成员。":"The number of combined form members exceeds the set maximum of {{MaxLength}}}. Please delete the extra members.","子表单验证失败,请仔细检查":"Validate failed, please check this Subform.","成员{{index}}":"Member {{index}}","清空数据":"Clear data","您选择的文件 {{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制,请重新选择。":"The file {{filename}} you selected has a size of {actualsize}} which exceeds the maximum limit of {{maxsize}}. Please select again.","您添加的文件{{files}}不符合类型的`{{accept}}`的设定,请仔细检查。":"The file you added {{files}} does not match the setting of the type `{{accept}}`. Please check it carefully.","把文件拖到这,然后松完成添加!":"Drag the file here, then release to finish adding!","把图片拖到这,然后松开完成添加!":"Drag the picture here, then release to finish adding!","重新上传":"Repick","重试上传":"Retry","继续添加":"Continue add","上传文件":"Upload file","移除":"Remove","暂停上传":"Pause uplaod","开始上传":"Start upload","已成功上传{{uploaded}}个文件,{{failed}}个文件上传失败,":"Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files,","失败文件":"Failed files.","高度{{height}}px":"height: {{height}}px","宽度{{width}}px":"width: {{width}}px","尺寸({{width}} x {{height}})":"size: ({{width}}px x {{height}}px)","您选择的图片不符合尺寸要求, 请上传{{info}}的图片":"The picture you selected does not meet the size requirements. Please upload the picture of {{info}}","您选择的图片不符合尺寸要求, 请上传不要超过{{info}}的图片":"The picture you selected does not meet the size requirements. Please upload a picture that does not exceed {{info}}`.","您选择的图片不符合尺寸要求, 请上传不要小于{{info}}的图片":"The picture you selected does not meet the size requirements. Please upload a picture no less than {{info}}","您选择的图片不符合尺寸要求, 请上传尺寸比率为 {{ratio}} 的图片":"The picture you selected does not meet the size requirements. Please upload the picture with the size ratio of ${ration}","文件上传失败请重试":"File upload failed, please try again","文件上传中":"File uploading","查看大图":"Zoom In","裁剪图片":"Crop picture","当前状态支持从剪切板中粘贴图片文件。":"The current state supports pasting picture files from the clipboard.","表单":"Form","提交":"Submit","初始化失败":"Initialization failed","保存成功":"Saved successfully","保存失败":"Save failed","依赖的部分字段没有通过验证,请注意填写!":"Some of the dependent fields failed to pass the verification, please fill in!","请输入名称":"Please enter a name","编辑{{label}}":"Edit {{label}}","每":"Per","编辑详情":"Detail","删除当前行":"Delete current row","操作":"Operation","新增一行":"Add a row","暂无标签":"No tag yet","新增:{{label}}":"New {{label}}","顶级":"Root","点击复制":"Copy","{{page}}/{{lastPage}} 总共:{{total}} 项。":"{{page}} of {{lastPage}} total: {{total}}.","每页显示":"Per page","加载更多":"Load more","筛选":"Filter","搜索":"Search","日期无效":"Invalid date","关闭弹窗":"Close","链接":"Link","当前有 {{modified}} 条记录修改了内容, 但并没有提交。请选择:":"There are currently {{modified}} records that have modified the contents, but they have not been submitted. Please select:","放弃":"Give up","当前有 {{moved}} 条记录修改了顺序, 但并没有提交。请选择:":"There are currently {{moved}} records that have changed the order, but have not been committed. Please select:","点击开始排序":"Click to start sorting","请拖动左边的按钮进行排序":"Please drag the button on the left to sort","排序":"Sort","正序":"Asc","降序":"Desc","返回数据格式不正确,payload.data 没有数据":"The return data format is incorrect, nothing is in `payload.data`","获取失败":"Fetch failed","返回数据格式不正确,payload.data.items 必须是数组":"The return data format is incorrect, payload.data.items Must be an array","验证错误":"Validate failed","表单验证失败,请仔细检查":"Form validation failed, please check carefully","验证失败":"Validate failed","当前值不唯一":"Current value is not unique","加载选项失败,原因:{{reason}}":"Failed to load options because: {{reason}}","获取失败,请重试":"Fetch failed, please try again","请仔细检查表单规则,部分表单项没通过验证":"Please check the form rules carefully. Some form items fail to pass the verification","Email 格式不正确":"Email format is incorrect","这是必填项":"This is required","Url 格式不正确":"Incorrect URL format","请输入整型数字":"Please enter an integer number","请输入字母":"Please enter letters","请输入数字":"Please enter a number","请输入字母或者数字":"Please enter letters or numbers","请输入浮点型数值":"Please enter a floating point value","只能输入字母、数字、`-` 和 `_`.":"You can only enter letters, numbers, `-` and`_` .","格式不正确, 请输入符合规则为 `${1|raw}` 的内容。":"The format is not correct. Please enter the content with the rule `${1| raw}`.","请输入更多的内容,至少输入 $1 个字符。":"Please enter more, at least $1 characters.","请控制内容长度, 不要输入 $1 个字符以上":"Please control the content length, do not enter more than $1 characters","当前输入值超出最大值 $1,请检查":"The current input value exceeds the maximum value of $1, please check","请输入小于 $1 的值":"Please enter a value less than $1","当前输入值低于最小值 $1,请检查":"The current input value is lower than the minimum value of $1, please check","请输入大于 $1 的值":"Please enter a value greater than $1","请检查 Json 格式。":"Please check the JSON format.","请输入长度为 $1 的内容":"Please enter make sure the length of contents is $1","请不要全输入空白字符":"Please do not enter all blank characters","输入的数据与 $1 值不一致":"The entered data is inconsistent with the value of $1","输入的数据与 $1 不一致":"The entered data is inconsistent with $1","请输入合法的手机号码":"Please enter a valid mobile phone number","请输入合法的电话号码":"Please enter a valid phone number","请输入合法的邮编地址":"Please enter a legal postal address","请输入合法的身份证号":"Please enter a valid ID number","系统错误":"System Error","<空>":"","可拖拽排序":"Drag and drop sorting","上一步":"Prev","下一步":"Next","保存并下一步":"Save & Next","完成":"Finish","点击选择图片或者将图片拖入该区域":"Click to select the picture or drag the picture into the area"})}); +;/*!src/renderers/Form/IconPickerIcons.tsx*/ +amis.define("960de17",function(e,s){"use strict";function n(e){s.ICONS=e}Object.defineProperty(s,"__esModule",{value:!0}),s.setIconVendor=s.ICONS=void 0,s.ICONS=[{name:"Font Awesome 4.7",prefix:"fa fa-",icons:["slideshare","snapchat","snapchat-ghost","snapchat-square","soundcloud","spotify","stack-exchange","stack-overflow"]}],s.setIconVendor=n}); +;/*!src/renderers/Remark.tsx*/ +amis.define("4b7dfbe",function(e,t){"use strict";function n(e,t){return"string"==typeof e?i.filter(e,t):e?e.title?{title:i.filter(e.title,t),content:e.content||e.body?i.filter(e.content||e.body||"",t):void 0}:e.content||e.body?i.filter(e.content||e.body||"",t):void 0:e}Object.defineProperty(t,"__esModule",{value:!0}),t.RemarkRenderer=t.filterContents=void 0;var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),l=r.__importDefault(e("8d5abcb")),i=e("6a2dbb7"),s=e("256b65d"),c=e("b7bbd16");t.filterContents=n;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.icon,a=e.tooltip,i=e.placement,s=e.rootClose,d=e.trigger,u=e.container,m=e.classPrefix,f=e.classnames,p=e.content,b=e.data,_=a&&a.icon||r;return o.default.createElement("div",{className:f("Remark",a&&a.className||t||"Remark--warning")},o.default.createElement(l.default,{classPrefix:m,classnames:f,tooltip:n(a||p,b),tooltipClassName:a&&a.tooltipClassName,placement:a&&a.placement||i,rootClose:a&&a.rootClose||s,trigger:a&&a.trigger||d,container:u,delay:a&&a.delay},_?o.default.createElement("i",{className:f("Remark-icon",_)}):o.default.createElement(c.Icon,{icon:"question",className:"icon"})))},t.propsList=[],t.defaultProps={icon:"",trigger:["hover","focus"]},t}(o.default.Component);t.default=s.themeable(d);var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([a.Renderer({test:/(^|\/)remark$/,name:"remark"})],t)}(d);t.RemarkRenderer=u}); +;/*!src/renderers/Action.tsx*/ +amis.define("7648928",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResetRenderer=t.SubmitRenderer=t.ButtonRenderer=t.ActionRenderer=t.Action=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=e("0f9ebdf"),r=e("6a2dbb7"),o=n.__importDefault(e("a67acca")),l=n.__importDefault(e("node_modules/lodash/pick")),s=["dialog","drawer","url","link","confirmText","tooltip","disabledTip","className","asyncApi","redirect","size","level","primary","feedback","api","blank","tooltipPlacement","to","content","required","type","actionType","label","icon","reload","target","close","messages","mergeData","index","copy","payload","requireSelected"],d=e("4b7dfbe"),u=e("256b65d"),c=e("9a80175"),p=["button","submit","reset"],m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.handleAction=function(e){var t=this.props,n=t.onAction,a=t.onClick,i=t.disabled,r=a&&a(e,this.props);if(!i&&!e.isDefaultPrevented()&&r!==!1&&n){e.preventDefault();var o=l.default(this.props,s);n(e,o)}},t.prototype.render=function(){var e,t,n=this.props,i=n.type,l=n.label,s=n.icon,u=n.iconClassName,c=n.primary,m=n.size,f=n.level,_=n.disabled,b=n.block,y=n.className,v=n.componentClass,h=n.tooltip,C=n.disabledTip,g=n.tooltipPlacement,A=n.actionType,R=n.link,k=n.data,x=n.activeClassName,N=n.isCurrentUrl,D=n.isMenuItem,T=n.active,E=n.activeLevel,O=n.tooltipContainer,P=n.classnames,M=!!T;return"link"===A&&!M&&R&&N&&(M=N(R)),D?a.default.createElement("a",{className:P(y,(e={},e[x||"is-active"]=M,e["is-disabled"]=_,e)),onClick:this.handleAction},l,s?a.default.createElement("i",{className:P("Button-icon",s)}):null):a.default.createElement(o.default,{className:P(y,(t={},t[x||"is-active"]=M,t)),size:m,level:E&&M?E:f||(c?"primary":void 0),onClick:this.handleAction,type:i&&~p.indexOf(i)?i:"button",disabled:_,componentClass:v,tooltip:d.filterContents(h,k),disabledTip:d.filterContents(C,k),placement:g,tooltipContainer:O,block:b,iconOnly:!(!s||l||"link"===f)},l?a.default.createElement("span",null,r.filter(l,k)):null,s?a.default.createElement("i",{className:P("Button-icon",s,u)}):null)};var i;return t.defaultProps={type:"button",componentClass:"button",tooltipPlacement:"bottom",activeClassName:"is-active"},n.__decorate([c.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof a.default&&a.default.MouseEvent)?i:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),t}(a.default.Component);t.Action=m,t.default=u.themeable(m);var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.handleAction=function(e,t){var n=this.props,a=n.env,i=n.onAction,o=n.data;t.confirmText&&a.confirm?a.confirm(r.filter(t.confirmText,o)).then(function(n){return n&&i(e,t,o)}):i(e,t,o)},t.prototype.isCurrentAction=function(e){var t=this.props,n=t.env,a=t.data;return n.isCurrentUrl(r.filter(e,a))},t.prototype.render=function(){var e=this.props,t=e.env,i=e.disabled,r=e.btnDisabled,o=n.__rest(e,["env","disabled","btnDisabled"]);return a.default.createElement(m,n.__assign({},o,{disabled:i||r,onAction:this.handleAction,isCurrentUrl:this.isCurrentAction,tooltipContainer:t.getModalContainer?t.getModalContainer:void 0}))};return n.__decorate([c.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),n.__decorate([c.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"isCurrentAction",null),t=n.__decorate([i.Renderer({test:/(^|\/)action$/,name:"action"})],t)}(a.default.Component);t.ActionRenderer=f;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)button$/,name:"button"})],t)}(f);t.ButtonRenderer=_;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)submit$/,name:"submit"})],t)}(f);t.SubmitRenderer=b;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)reset$/,name:"reset"})],t)}(f);t.ResetRenderer=y}); +;/*!src/renderers/Alert.tsx*/ +amis.define("30de479",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TplRenderer=void 0;var r=e("node_modules/tslib/tslib"),n=e("0f9ebdf"),d=r.__importDefault(e("node_modules/react/index")),o=r.__importDefault(e("15e4197")),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.body,l=r.__rest(e,["render","body"]);return d.default.createElement(o.default,r.__assign({},l),t("body",n))},t=r.__decorate([n.Renderer({test:/(^|\/)alert$/,name:"alert"})],t)}(d.default.Component);t.TplRenderer=l}); +;/*!src/renderers/Form/ButtonGroup.tsx*/ +amis.define("aa22e57",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("b86428a"),l=e("9a80175"),s=e("f2e345e"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.handleToggle=function(e){var t=this.props,a=t.onToggle,n=t.multiple,o=t.autoFill,r=t.onBulkChange,i=!n&&o&&!l.isEmpty(o)&&s.dataMapping(o,e);i&&r(i),a(e)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(e){var t,o=this;void 0===e&&(e=this.props);var s=e.render,r=e.classPrefix,i=e.classnames,u=e.className,p=e.disabled,c=e.options,d=(e.value,e.labelField),m=e.placeholder,v=e.btnClassName,f=e.btnActiveClassName,b=e.selectedOptions,_=e.buttons,g=e.size,y=e.block,h=e.vertical,N=[],C=e.btnLevel,B=e.btnActiveLevel;return v&&(C=l.getLevelFromClassName(v)),f&&(B=l.getLevelFromClassName(f)),c&&c.length?N=c.map(function(e,t){var a=!!~b.indexOf(e);return s("option/"+t,{label:e[d||"label"],icon:e.icon,size:e.size||g,type:"button",block:y},{key:t,active:a,level:(a?B:"")||e.level||C,className:i(e.className,v),disabled:e.disabled||p,onClick:function(t){o.handleToggle(e),t.preventDefault()}})}):_&&(N=_.map(function(e,t){return s("button/"+t,a.__assign({size:g,block:y,activeLevel:B},e),{key:t,className:i(e.className,v)})})),n.default.createElement("div",{className:i("ButtonGroup",(t={"ButtonGroup--block":y,"ButtonGroup--vertical":h},t["ButtonGroup--"+g]=g,t),u)},N.length?N:n.default.createElement("span",{className:r+"ButtonGroup-placeholder"},m))};var r;return t.defaultProps={btnLevel:"default",btnActiveLevel:"primary",clearable:!1,vertical:!1},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof o.Option&&o.Option)?r:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleToggle",null),t}(n.default.Component);t.default=r;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var t=this.props,o=t.className,l=t.classnames,s=a.__rest(t,["className","classnames"]),r=e.prototype.render.call(this,a.__assign(a.__assign({},s),{classnames:l}));return n.default.createElement("div",{className:l("ButtonGroupControl",o)},r)},t=a.__decorate([o.OptionsControl({type:"button-group",sizeMutable:!1,strictMode:!1})],t)}(r);t.ButtonGroupControlRenderer=i}); +;/*!src/renderers/ButtonGroup.tsx*/ +amis.define("d539455",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupRenderer=void 0;var n=e("node_modules/tslib/tslib"),u=n.__importDefault(e("aa22e57")),r=e("0f9ebdf");t.default=u.default;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.Renderer({test:/(^|\/)(?:button|action)\-group$/,name:"button-group"})],t)}(u.default);t.ButtonGroupRenderer=o}); +;/*!src/renderers/ButtonToolbar.tsx*/ +amis.define("10294a9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonToolbarRenderer=void 0;var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=e("0f9ebdf"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.buttons,n=e.className,o=e.classnames,a=e.render;return r.default.createElement("div",{className:o("ButtonToolbar",n)},Array.isArray(t)?t.map(function(e,t){return a(""+t,e,{key:t})}):null)},t.propsList=["buttons","className"],t}(r.default.Component);t.default=a;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.Renderer({test:/(^|\/)button-toolbar$/,name:"button-toolbar"})],t)}(a);t.ButtonToolbarRenderer=u}); +;/*!src/renderers/DropDownButton.tsx*/ +amis.define("bb5331d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropDownButtonRenderer=void 0;var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),i=e("node_modules/react-overlays/lib/index"),r=n.__importDefault(e("997df41")),a=n.__importDefault(e("2b3dcdf")),l=e("9a80175"),d=e("6a2dbb7"),u=e("b7bbd16"),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.toogle=n.toogle.bind(n),n.domRef=n.domRef.bind(n),n}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.props.defaultIsOpened&&this.setState({isOpened:!0})},t.prototype.domRef=function(e){this.target=e},t.prototype.toogle=function(e){e.preventDefault(),this.setState({isOpened:!this.state.isOpened})},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.renderOuter=function(){var e,t=this,s=this.props,d=s.render,u=s.buttons,p=s.data,c=s.popOverContainer,f=s.classnames,m=s.classPrefix,b=s.children,h=(s.align,s.closeOnClick),y=s.closeOnOutside,D=o.default.createElement(i.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:y!==!1?this.close:l.noop},o.default.createElement("ul",{className:f("DropDown-menu"),onClick:h?this.close:l.noop},b?b:Array.isArray(u)?u.map(function(e,t){return l.isVisible(e,p)?"divider"===e||"divider"===e.type?o.default.createElement("li",{key:t,className:f("DropDown-divider")}):o.default.createElement("li",{key:t},d("button/"+t,n.__assign(n.__assign({type:"button"},e),{isMenuItem:!0}))):null}):null));return c?o.default.createElement(r.default,{container:c,target:function(){return t.target},show:!0},o.default.createElement(a.default,{overlay:!0,onHide:this.close,classPrefix:m,className:f("DropDown-popover"),style:{minWidth:null===(e=this.target)||void 0===e?void 0:e.offsetWidth}},D)):D},t.prototype.render=function(){var e=this.props,t=e.block,n=e.disabled,s=e.btnDisabled,i=e.size,r=e.label,a=e.level,l=e.primary,p=e.className,c=e.classnames,f=e.align,m=e.iconOnly,b=e.icon,h=e.data;return o.default.createElement("div",{className:c("DropDown ",{"DropDown--block":t,"DropDown--alignRight":"right"===f,"is-opened":this.state.isOpened}),ref:this.domRef},o.default.createElement("button",{onClick:this.toogle,disabled:n||s,className:c("Button",p,"undefined"==typeof a?"Button--default":a?"Button--"+a:"",{"Button--block":t,"Button--primary":l,"Button--iconOnly":m},i?"Button--"+i:"")},b?"string"==typeof b?o.default.createElement("i",{className:c(b,"m-r-xs")}):b:null,"string"==typeof r?d.filter(r,h):r,o.default.createElement("span",{className:c("DropDown-caret")},o.default.createElement(u.Icon,{icon:"caret",className:"icon"}))),this.state.isOpened?this.renderOuter():null)},t.defaultProps={},t}(o.default.Component);t.default=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)dropdown-button$/,name:"dropdown-button"})],t)}(p);t.DropDownButtonRenderer=c}); +;/*!src/renderers/Collapse.tsx*/ +amis.define("d221521",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CollapseRenderer=void 0;var a=e("node_modules/tslib/tslib"),s=a.__importDefault(e("node_modules/react/index")),t=e("0f9ebdf"),o=e("0d13109"),n=function(e){function l(l){var a=e.call(this,l)||this;return a.state={collapsed:!1},a.toggleCollapsed=a.toggleCollapsed.bind(a),a.state.collapsed=!!l.collapsed,a}return a.__extends(l,e),l.prototype.componentWillReceiveProps=function(e){var l=this.props;l.collapsed!==e.collapsed&&this.setState({collapsed:!!e.collapsed})},l.prototype.toggleCollapsed=function(){this.props.collapsable!==!1&&this.setState({collapsed:!this.state.collapsed})},l.prototype.render=function(){var e,l=this.props,a=l.classPrefix,t=l.classnames,n=l.size,p=l.wrapperComponent,d=l.headingComponent,r=l.className,c=l.title,i=l.headingClassName,m=l.children,u=l.body,C=l.bodyClassName,f=l.render,h=l.collapsable;return s.default.createElement(p,{className:t("Collapse",(e={"is-collapsed":this.state.collapsed},e["Collapse--"+n]=n,e["Collapse--collapsable"]=h,e),r)},c?s.default.createElement(d,{onClick:this.toggleCollapsed,className:t("Collapse-header",i)},f("heading",c),h&&s.default.createElement("span",{className:t("Collapse-arrow")})):null,s.default.createElement(o.Collapse,{show:h?!this.state.collapsed:!0,classnames:t,classPrefix:a},s.default.createElement("div",{className:t("Collapse-body",C)},m?"function"==typeof m?m(this.props):m:u?f("body",u):null)))},l.propsList=["wrapperComponent","headingComponent","bodyClassName","collapsed","headingClassName"],l.defaultProps={wrapperComponent:"div",headingComponent:"h4",className:"",headingClassName:"",bodyClassName:"",collapsable:!0},l}(s.default.Component);l.default=n;var p=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(l,e),l=a.__decorate([t.Renderer({test:/(^|\/)collapse$/,name:"collapse"})],l)}(n);l.CollapseRenderer=p}); +;/*!src/renderers/Color.tsx*/ +amis.define("3227a42",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ColorFieldRenderer=l.ColorField=void 0;var r=e("node_modules/tslib/tslib"),t=r.__importDefault(e("node_modules/react/index")),o=e("0f9ebdf"),a=e("f2e345e"),n=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(l,e),l.prototype.render=function(){var e=this.props,l=e.className,r=e.data,o=e.classnames,n=e.name,s=e.value,d=e.defaultColor,u=e.showValue,i=s||(n?a.resolveVariableAndFilter(n,r,"| raw"):null);return t.default.createElement("div",{className:o("ColorField",l)},t.default.createElement("i",{className:o("ColorField-previewIcon"),style:{backgroundColor:i||d}}),u?t.default.createElement("span",{className:o("ColorField-value")},i):null)},l.defaultProps={className:"",defaultColor:"#ccc",showValue:!0},l}(t.default.Component);l.ColorField=n;var s=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(l,e),l=r.__decorate([o.Renderer({test:/(^|\/)color$/,name:"color"})],l)}(n);l.ColorFieldRenderer=s}); +;/*!src/renderers/CRUD.tsx*/ +amis.define("e5683c7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CRUDRenderer=void 0;var a=e("node_modules/tslib/tslib"),i=a.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),n=e("7b0821e"),o=e("9a80175"),s=e("919cbd9"),l=a.__importDefault(e("a67acca")),d=a.__importDefault(e("d57879c")),c=a.__importDefault(e("01e2bb4")),p=a.__importDefault(e("node_modules/lodash/pick")),u=a.__importDefault(e("node_modules/qs/lib/index")),h=e("node_modules/react-dom/index"),f=e("6a2dbb7"),m=e("1caead1"),g=a.__importDefault(e("node_modules/lodash/omit")),v=a.__importDefault(e("node_modules/lodash/find")),b=a.__importDefault(e("node_modules/lodash/findIndex")),y=a.__importDefault(e("580df19")),_=e("1953fc1"),O=e("b7bbd16"),A=function(e){function t(t){var a=e.call(this,t)||this;return a.dataInvalid=!1,a.controlRef=a.controlRef.bind(a),a.handleFilterReset=a.handleFilterReset.bind(a),a.handleFilterSubmit=a.handleFilterSubmit.bind(a),a.handleFilterInit=a.handleFilterInit.bind(a),a.handleAction=a.handleAction.bind(a),a.handleBulkAction=a.handleBulkAction.bind(a),a.handleChangePage=a.handleChangePage.bind(a),a.handleBulkGo=a.handleBulkGo.bind(a),a.handleDialogConfirm=a.handleDialogConfirm.bind(a),a.handleDialogClose=a.handleDialogClose.bind(a),a.handleSave=a.handleSave.bind(a),a.handleSaveOrder=a.handleSaveOrder.bind(a),a.handleSelect=a.handleSelect.bind(a),a.handleChildPopOverOpen=a.handleChildPopOverOpen.bind(a),a.handleChildPopOverClose=a.handleChildPopOverClose.bind(a),a.search=a.search.bind(a),a.silentSearch=a.silentSearch.bind(a),a.handlQuery=a.handlQuery.bind(a),a.renderHeaderToolbar=a.renderHeaderToolbar.bind(a),a.renderFooterToolbar=a.renderFooterToolbar.bind(a),a.clearSelection=a.clearSelection.bind(a),a}return a.__extends(t,e),t.prototype.componentWillMount=function(){{var e=this.props,t=e.location,a=e.store,i=e.pageField,r=e.perPageField,n=e.syncLocation;e.loadDataOnce}this.mounted=!0,n&&t&&(t.query||t.search)?a.updateQuery(u.default.parse(t.search.substring(1)),void 0,i,r):n&&!t&&window.location.search&&a.updateQuery(u.default.parse(window.location.search.substring(1)),void 0,i,r),this.props.store.setFilterTogglable(!!this.props.filterTogglable,this.props.filterDefaultVisible)},t.prototype.componentDidMount=function(){var e=this.props.store;(!this.props.filter||e.filterTogggable&&!e.filterVisible)&&this.handleFilterInit({}),this.props.pickerMode&&this.props.value&&e.setSelectedItems(this.props.value)},t.prototype.componentWillReceiveProps=function(e){var t=this.props,a=t.store;if(o.anyChanged(["toolbar","headerToolbar","footerToolbar","bulkActions"],t,e)&&(this.renderHeaderToolbar=this.renderHeaderToolbar.bind(this),this.renderFooterToolbar=this.renderFooterToolbar.bind(this)),this.props.pickerMode&&this.props.value!==e.value&&a.setSelectedItems(e.value),this.props.filterTogglable!==e.filterTogglable&&a.setFilterTogglable(!!e.filterTogglable,e.filterDefaultVisible),t.syncLocation&&t.location&&t.location.search!==e.location.search)a.updateQuery(u.default.parse(e.location.search.substring(1)),void 0,e.pageField,e.perPageField),this.dataInvalid=o.isObjectShallowModified(a.query,this.lastQuery,!1);else if(!t.syncLocation&&t.api&&e.api){var i=m.buildApi(t.api,t.data,{ignoreData:!0}),r=m.buildApi(e.api,e.data,{ignoreData:!0});i.url===r.url||!m.isValidApi(r.url)||r.sendOn&&!f.evalExpression(r.sendOn,e.data)||(this.dataInvalid=!0)}},t.prototype.componentDidUpdate=function(){this.dataInvalid&&(this.dataInvalid=!1,this.search())},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.controlRef=function(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.control=e},t.prototype.handleAction=function(e,t,i,r,n){var s=this;void 0===r&&(r=!1);var l=this.props,d=l.onAction,c=l.store,p=l.messages,u=l.pickerMode,h=l.env,m=(l.pageField,l.stopAutoRefreshWhenModalIsOpen);if("dialog"===t.actionType){c.setCurrentAction(t);var g=i.index,v=c.items.length;m&&clearTimeout(this.timer),c.openDialog(i,{hasNext:v-1>g,nextIndex:g+1,hasPrev:g>0,prevIndex:g-1,index:g})}else{if("ajax"===t.actionType){c.setCurrentAction(t);var b=i,y=t.redirect&&f.filter(t.redirect,b);return y&&t.blank&&h.jumpTo(y,t),c.saveRemote(t.api,b,{successMessage:t.messages&&t.messages.success||p&&p.saveSuccess,errorMessage:t.messages&&t.messages.failed||p&&p.saveFailed}).then(function(e){return a.__awaiter(s,void 0,void 0,function(){var r,n;return a.__generator(this,function(a){switch(a.label){case 0:return r=o.createObject(i,e),t.feedback&&o.isVisible(t.feedback,r)?[4,this.openFeedback(t.feedback,r)]:[3,2];case 1:a.sent(),m&&clearTimeout(this.timer),a.label=2;case 2:return n=t.redirect&&f.filter(t.redirect,r),n&&!t.blank&&h.jumpTo(n,t),t.reload?this.reloadTarget(t.reload,r):this.search(void 0,void 0,!0,!0),t.close&&this.closeTarget(t.close),[2]}})})}).catch(function(){})}if(u&&("confirm"===t.actionType||"submit"===t.actionType))return c.setCurrentAction(t),Promise.resolve({items:c.selectedItems.concat()});d(e,t,i,r,n||this.context)}},t.prototype.handleBulkAction=function(e,t,i,r){var n=this,s=this.props,l=s.store,d=s.primaryField,c=s.onAction,p=s.messages,u=s.pageField,h=s.stopAutoRefreshWhenModalIsOpen,g=s.env;if(e.length||r.requireSelected===!1){var v=e.map(function(e){return e.hasOwnProperty(d)?e[d]:null}).filter(function(e){return e}).join(","),b=o.createObject(l.mergedData,a.__assign(a.__assign({},e[0]),{rows:e,items:e,unSelectedItems:t,ids:v}));return"dialog"===r.actionType?this.handleAction(i,a.__assign(a.__assign({},r),{__from:"bulkAction"}),b):void("ajax"===r.actionType?m.isEffectiveApi(r.api,b)&&l.saveRemote(r.api,b,{successMessage:r.messages&&r.messages.success||p&&p.saveSuccess,errorMessage:r.messages&&r.messages.failed||p&&p.saveFailed}).then(function(e){return a.__awaiter(n,void 0,void 0,function(){var t,i,n;return a.__generator(this,function(a){switch(a.label){case 0:return t=o.createObject(b,e),r.feedback&&o.isVisible(r.feedback,t)?[4,this.openFeedback(r.feedback,t)]:[3,2];case 1:a.sent(),h&&clearTimeout(this.timer),a.label=2;case 2:return r.reload?this.reloadTarget(r.reload,t):this.search((n={},n[u||"page"]=1,n),void 0,!0,!0),r.close&&this.closeTarget(r.close),i=r.redirect&&f.filter(r.redirect,t),i&&g.jumpTo(i,r),[2]}})})}).catch(function(){return null}):c&&c(i,r,b,!1,this.context))}},t.prototype.handleItemAction=function(e,t){this.doAction(e,t)},t.prototype.handleFilterInit=function(e){var t=this.props,i=t.defaultParams,r=(t.data,t.store);this.handleFilterSubmit(a.__assign(a.__assign(a.__assign({},i),e),r.query),!1,!0,this.props.initFetch!==!1),r.setPristineQuery();var n=this.props,o=n.pickerMode,s=n.options;o&&r.updateData({items:s||[]})},t.prototype.handleFilterReset=function(){var e=this.props,t=e.store,a=e.syncLocation,i=e.env,r=e.pageField,n=e.perPageField;t.updateQuery(t.pristineQuery,a&&i&&i.updateLocation?function(e){return i.updateLocation(e)}:void 0,r,n,!0),this.lastQuery=t.query,this.search()},t.prototype.handleFilterSubmit=function(e,t,i,r){var n;void 0===t&&(t=!0),void 0===i&&(i=!1),void 0===r&&(r=!0);var s=this.props,l=s.store,d=s.syncLocation,c=s.env,p=s.pageField,h=s.perPageField,f=s.loadDataOnceFetchOnFilter;e=d?u.default.parse(o.qsstringify(e)):e,l.updateQuery(a.__assign(a.__assign({},e),(n={},n[p||"page"]=t?1:l.page,n)),d&&c&&c.updateLocation?function(e){return c.updateLocation(e,i)}:void 0,p,h),this.lastQuery=l.query,r&&this.search(void 0,void 0,void 0,f)},t.prototype.handleBulkGo=function(e,t,a){var i=this,r=this.props.store.selectedAction,n=this.props.env;return r.confirmText?n.confirm(r.confirmText).then(function(n){return n&&i.handleBulkAction(e,t,a,r)}):this.handleBulkAction(e,t,a,r)},t.prototype.handleDialogConfirm=function(e,t,i,r){var n,s=this.props,l=s.store,d=s.pageField,c=s.stopAutoRefreshWhenModalIsOpen,p=s.interval,u=s.silentPolling,h=s.env;l.closeDialog();var m=l.action;if(c&&p&&(this.timer=setTimeout(u?this.silentSearch:this.search,Math.max(p,3e3))),"next"===t.actionType&&"number"==typeof i.nextIndex&&l.data.items[i.nextIndex])return this.handleAction(void 0,a.__assign({},m),o.createObject(o.createObject(l.data,{index:i.nextIndex}),l.data.items[i.nextIndex]));if("prev"===t.actionType&&"number"==typeof i.prevIndex&&l.data.items[i.prevIndex])return this.handleAction(void 0,a.__assign({},m),o.createObject(o.createObject(l.data,{index:i.prevIndex}),l.data.items[i.prevIndex]));if(e.length){var g=e[0];i=o.createObject(i,g);var v=r[0];v&&"form"===v.props.type&&(g&&g.__saved?m.reload||this.search(m.__from?(n={},n[d||"page"]=1,n):void 0,void 0,!0,!0):g&&(g.hasOwnProperty("items")&&g.items||g.hasOwnProperty("ids"))&&this.control.bulkUpdate&&this.control.bulkUpdate(g,g.items))}m.reload&&this.reloadTarget(m.reload,i);var b=m.redirect&&f.filter(t.redirect,i);b&&h.jumpTo(b,m)},t.prototype.handleDialogClose=function(){var e=this.props,t=e.store,a=e.stopAutoRefreshWhenModalIsOpen,i=e.silentPolling,r=e.interval;t.closeDialog(),a&&r&&(this.timer=setTimeout(i?this.silentSearch:this.search,Math.max(r,3e3)))},t.prototype.openFeedback=function(e,t){var a=this;return new Promise(function(i){var r=a.props.store;r.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),r.openDialog(t,void 0,function(e){i(e)})})},t.prototype.search=function(e,t,a,i){var r=this;void 0===i&&(i=!1);var n=this.props,s=n.store,l=n.api,d=n.messages,c=n.pageField,p=n.perPageField,u=n.interval,h=n.stopAutoRefreshWhen,g=n.stopAutoRefreshWhenModalIsOpen,v=n.silentPolling,b=n.syncLocation,y=n.syncResponse2Query,_=n.keepItemSelectionOnPageChange,O=n.pickerMode,A=n.env,T=n.loadDataOnce,C=n.loadDataOnceFetchOnFilter,I=n.source;_&&a&&!O&&(s.setSelectedItems([]),s.setUnSelectedItems([]));var S="";e&&"string"==typeof e.loadDataMode&&(S="load-more",delete e.loadDataMode),clearTimeout(this.timer),e&&s.updateQuery(e,!S&&b&&A&&A.updateLocation?A.updateLocation:void 0,c,p),this.lastQuery=s.query;var F=o.createObject(s.data,s.query);m.isEffectiveApi(l,F)?s.fetchInitData(l,F,{successMessage:d&&d.fetchSuccess,errorMessage:d&&d.fetchFailed,autoAppend:!0,forceReload:i,loadDataOnce:T,loadDataOnceFetchOnFilter:C,source:I,silent:t,pageField:c,perPageField:p,loadDataMode:S,syncResponse2Query:y}).then(function(e){return u&&r.mounted&&(!h||!(g&&s.hasModalOpened||f.evalExpression(h,F)))&&(r.timer=setTimeout(v?r.silentSearch.bind(r,void 0,void 0,!0):r.search.bind(r,void 0,void 0,void 0,!0),Math.max(u,3e3))),e}):I&&s.initFromScope(F,I)},t.prototype.silentSearch=function(e,t,a){return void 0===a&&(a=!1),this.search(e,!0,t,a)},t.prototype.handleChangePage=function(e,t){var a,i=this.props,r=i.store,n=i.syncLocation,o=i.env,s=i.pageField,l=i.perPageField,d=i.autoJumpToTopOnPagerChange,c=(a={},a[s||"page"]=e,a);if(t&&(c[l||"perPage"]=t),r.updateQuery(c,n&&o&&o.updateLocation?o.updateLocation:void 0,s,l),this.search(void 0,void 0,void 0),d&&this.control){h.findDOMNode(this.control).scrollIntoView();var p=window.scrollY;p&&window.scroll(0,p-50)}},t.prototype.handleSave=function(e,t,a,i,r){var n=this,s=this.props,l=s.store,d=s.quickSaveApi,c=s.quickSaveItemApi,p=s.primaryField,u=s.env,h=s.messages,f=s.reload;if(Array.isArray(e)){if(!m.isEffectiveApi(d))return void(u&&u.alert("CRUD quickSaveApi is required!"));var g=o.createObject(l.data,{rows:e,rowsDiff:t,indexes:a,rowsOrigin:r});e.length&&e[0].hasOwnProperty(p||"id")&&(g.ids=e.map(function(e){return e[p||"id"]}).join(",")),i&&(g.unModifiedItems=i),l.saveRemote(d,g,{successMessage:h&&h.saveFailed,errorMessage:h&&h.saveSuccess}).then(function(){f&&n.reloadTarget(f,g),n.search(void 0,void 0,!0,!0)}).catch(function(){})}else{if(!m.isEffectiveApi(c))return void(u&&u.alert("CRUD quickSaveItemApi is required!"));var v=o.createObject(l.data,{item:e,modified:t,origin:r}),b=o.createObject(v,e);l.saveRemote(c,b).then(function(){f&&n.reloadTarget(f,v),n.search(void 0,void 0,!0,!0)}).catch(function(){})}},t.prototype.handleSaveOrder=function(e,t){var a=this,i=this.props,r=i.store,n=i.saveOrderApi,s=i.orderField,l=i.primaryField,d=i.env,c=i.reload;if(!n)return void(d&&d.alert("CRUD saveOrderApi is required!"));var u,h,f=o.createObject(r.data),g=[],v=l&&t[0]&&t[0].hasOwnProperty(l);if(v||(f.idMap={}),f.insertAfter={},t.forEach(function(a){if(~e.indexOf(a))if(u){var i=v?u[l]:t.indexOf(u);f.insertAfter[i]=f.insertAfter[i]||[],v||(f.idMap[i]=u),f.insertAfter[i].push(v?a[l]:a)}else g.push(a);else u=a,h=h||a}),h&&g.length){var b=v?h[l]:t.indexOf(h);v||(f.idMap[b]=h),f.insertBefore={},f.insertBefore[b]=g.map(function(e){return v?e[l]:e})}else if(g.length){var y=g[0],_=v?y[l]:t.indexOf(y);v||(f.idMap[_]=y),f.insertAfter[_]=g.slice(1).map(function(e){return v?e[l]:e})}if(s){var O=(r.page-1)*r.perPage||0;t=t.map(function(e,t){var a;return o.extendObject(e,(a={},a[s]=O+t+1,a))})}f.rows=t.concat(),v&&(f.ids=t.map(function(e){return e[l]}).join(",")),v&&s&&(f.order=t.map(function(e){return p.default(e,[l,s])})),m.isEffectiveApi(n,f)&&r.saveRemote(n,f).then(function(){c&&a.reloadTarget(c,f),a.search(void 0,void 0,!0,!0)}).catch(function(){})},t.prototype.handleSelect=function(e,t){var a=this.props,i=a.store,r=a.keepItemSelectionOnPageChange,n=a.primaryField,o=a.multiple,s=a.pickerMode,l=a.onSelect,d=e,c=t;if(r&&i.selectedItems.length){var p=i.selectedItems.concat(),u=i.unSelectedItems.concat();e.forEach(function(e){var t=b.default(p,function(t){return t[n||"id"]&&t[n||"id"]==e[n||"id"]});~t?p[t]=e:p.push(e)}),t.forEach(function(e){var t=b.default(u,function(t){return t[n||"id"]&&t[n||"id"]==e[n||"id"]}),a=b.default(p,function(t){return t[n||"id"]&&t[n||"id"]==e[n||"id"]});~t?u[t]=e:u.push(e),~a&&p.splice(a,1)}),d=p,c=u}s&&!o&&d.length>1&&c.push.apply(c,d.splice(0,d.length-1)),i.setSelectedItems(d),i.setUnSelectedItems(c),l&&l(d)},t.prototype.handleChildPopOverOpen=function(e){this.props.interval&&e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.stopAutoRefreshWhenModalIsOpen&&clearTimeout(this.timer),this.props.store.setInnerModalOpened(!0))},t.prototype.handleChildPopOverClose=function(e){var t=this.props,a=t.stopAutoRefreshWhenModalIsOpen,i=t.silentPolling,r=t.interval;e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.store.setInnerModalOpened(!1),a&&r&&(this.timer=setTimeout(i?this.silentSearch:this.search,Math.max(r,3e3))))},t.prototype.handlQuery=function(e,t){var i;void 0===t&&(t=!1);var r=this.props,n=r.store,o=r.syncLocation,s=r.env,l=r.pageField,d=r.perPageField;n.updateQuery(a.__assign(a.__assign({},e),(i={},i[l||"page"]=1,i)),o&&s&&s.updateLocation?s.updateLocation:void 0,l,d),this.search(void 0,void 0,void 0,t)},t.prototype.reload=function(e,t){return t?this.receive(t):void this.search(void 0,void 0,!0,!0)},t.prototype.receive=function(e){this.handlQuery(e,!0)},t.prototype.reloadTarget=function(){},t.prototype.closeTarget=function(){},t.prototype.doAction=function(e,t,a){return void 0===a&&(a=!1),this.handleAction(void 0,e,t,a)},t.prototype.unSelectItem=function(e){var t=this.props.store,a=t.selectedItems.concat(),i=t.unSelectedItems.concat(),r=a.indexOf(e);~r&&i.push.apply(i,a.splice(r,1)),t.setSelectedItems(a),t.setUnSelectedItems(i)},t.prototype.clearSelection=function(){var e=this.props.store,t=e.selectedItems.concat(),a=e.unSelectedItems.concat();e.setSelectedItems([]),e.setUnSelectedItems(a.concat(t))},t.prototype.hasBulkActionsToolbar=function(){var e=this.props,t=e.headerToolbar,a=e.footerToolbar,i=function(e){return~["bulkActions","bulk-actions"].indexOf(e.type||e)};return Array.isArray(t)&&v.default(t,i)||Array.isArray(a)&&v.default(a,i)},t.prototype.hasBulkActions=function(){var e=this.props,t=e.bulkActions,i=e.itemActions,r=e.store;if(!(t&&t.length||i&&i.length))return!1;var n=[],s=[],l=r.mergedData;t&&t.length&&(n=t.map(function(e){return a.__assign(a.__assign({},e),c.default(e,l))}).filter(function(e){return!e.hidden&&e.visible!==!1}));var d=o.createObject(r.data,r.selectedItems.length?r.selectedItems[0]:{});return i&&i.length&&(s=i.map(function(e){return a.__assign(a.__assign({},e),c.default(e,d))}).filter(function(e){return!e.hidden&&e.visible!==!1})),n.length||s.length},t.prototype.renderBulkActions=function(e){var t=this,r=this.props,n=r.bulkActions,s=r.itemActions,l=r.store,d=r.render,p=r.classnames,u=e.items;if(!(u.length&&(n&&n.length||s&&s.length)))return null;var h=l.selectedItems,f=l.unSelectedItems,m=[],v=[],b=l.mergedData;n&&n.length&&(!s||!s.length||h.length>1)&&(m=n.map(function(e){return a.__assign(a.__assign({},e),c.default(e,b))}).filter(function(e){return!e.hidden&&e.visible!==!1}));var y=o.createObject(l.data,h.length?h[0]:{});return s&&1===h.length&&(v=s.map(function(e){return a.__assign(a.__assign({},e),c.default(e,y))}).filter(function(e){return!e.hidden&&e.visible!==!1})),m.length||v.length?i.default.createElement("div",{className:p("Crud-actions")},m.map(function(e,i){return d("bulk-action/"+i,a.__assign(a.__assign({size:"sm"},g.default(e,["visibleOn","hiddenOn","disabledOn"])),{type:"button"}),{key:"bulk-"+i,data:b,disabled:e.disabled||(e.requireSelected!==!1?!h.length:!1),onAction:t.handleBulkAction.bind(t,h.concat(),f.concat())})}),v.map(function(e,i){return d("bulk-action/"+i,a.__assign(a.__assign({size:"sm"},g.default(e,["visibleOn","hiddenOn","disabledOn"])),{type:"button"}),{key:"item-"+i,data:y,disabled:e.disabled,onAction:t.handleItemAction.bind(t,e,y)})})):null},t.prototype.renderPagination=function(){var e=this.props,t=e.store,a=e.render,r=e.classnames,n=t.page,o=t.lastPage;return"simple"!==t.mode&&t.lastPage<2?null:i.default.createElement("div",{className:r("Crud-pager")},a("pagination",{type:"pagination"},{activePage:n,items:o,hasNext:t.hasNext,mode:t.mode,onPageChange:this.handleChangePage}))},t.prototype.renderStatistics=function(){var e=this.props,t=e.store,a=e.classnames,r=e.translate;return t.lastPage<=1?null:i.default.createElement("div",{className:a("Crud-statistics")},r("{{page}}/{{lastPage}} 总共:{{total}} 项。",{page:t.page,lastPage:t.lastPage,total:t.total}))},t.prototype.renderSwitchPerPage=function(e){var t=this,a=this.props,r=a.store,n=a.perPageAvailable,o=a.classnames,s=a.classPrefix,l=a.translate,c=e.items;if(!c.length)return null;var p=(n||[5,10,20,50,100]).map(function(e){return{label:e,value:e+""}});return i.default.createElement("div",{className:o("Crud-pageSwitch")},l("每页显示"),i.default.createElement(d.default,{classPrefix:s,searchable:!1,placeholder:l("请选择"),options:p,value:r.perPage+"",onChange:function(e){return t.handleChangePage(1,e.value)},clearable:!1}))},t.prototype.renderLoadMore=function(){var e=this,t=this.props,a=t.store,r=t.classPrefix,n=t.classnames,o=t.translate,s=a.page,d=a.lastPage;return d>s?i.default.createElement("div",{className:n("Crud-loadMore")},i.default.createElement(l.default,{classPrefix:r,onClick:function(){return e.search({page:s+1,loadDataMode:"load-more"})},size:"sm"},o("加载更多"))):""},t.prototype.renderFilterToggler=function(){var e=this.props,t=e.store,a=e.classnames,r=e.translate;return t.filterTogggable?i.default.createElement("button",{onClick:function(){return t.setFilterVisible(!t.filterVisible)},className:a("Button Button--sm Button--default",{"is-active":t.filterVisible})},i.default.createElement(O.Icon,{icon:"filter",className:"icon m-r-xs"}),r("筛选")):null},t.prototype.renderToolbar=function(e,t,a,r){var n=this;if(void 0===t&&(t=0),void 0===a&&(a={}),!e)return null;var s=e.type||e;if("bulkActions"===s||"bulk-actions"===s)return this.renderBulkActions(a);if("pagination"===s)return this.renderPagination();if("statistics"===s)return this.renderStatistics();if("switch-per-page"===s)return this.renderSwitchPerPage(a);if("load-more"===s)return this.renderLoadMore();if("filter-toggler"===s)return this.renderFilterToggler();if(Array.isArray(e)){var l=e.map(function(e,t){return{dom:n.renderToolbar(e,t,a,r),toolbar:e}}).filter(function(e){return e.dom}),d=l.length,c=this.props.classnames;return d?i.default.createElement("div",{className:c("Crud-toolbar"),key:t},l.map(function(e,t){var a=e.toolbar,r=e.dom,n=a.type||a,o=a.align||("pagination"===n||t===d-1&&t>0?"right":d-1>t?"left":"");return i.default.createElement("div",{key:t,className:c("Crud-toolbar-item",o?"Crud-toolbar-item--"+o:"",a.className)},r)})):null}var p=r?r(e,t):void 0;if(void 0!==p)return p;var u=this.props,h=u.render,f=u.store,m=a.$$editable;return h("toolbar/"+t,e,{data:o.createObject(o.createObject(f.filterData,{items:a.items,selectedItems:a.selectedItems,unSelectedItems:a.unSelectedItems}),{}),page:f.page,lastPage:f.lastPage,perPage:f.perPage,total:f.total,onAction:this.handleAction,onChangePage:this.handleChangePage,onBulkAction:this.handleBulkAction,$$editable:m})},t.prototype.renderHeaderToolbar=function(e,t){var a=this.props,i=a.toolbar,r=a.toolbarInline,n=a.headerToolbar;return i&&(n=Array.isArray(n)?r?n.concat(i):[n,i]:n?[n,i]:i),this.renderToolbar(n,0,e,t)},t.prototype.renderFooterToolbar=function(e,t){var a=this.props,i=a.toolbar,r=a.toolbarInline,n=a.footerToolbar;return i&&(n=Array.isArray(n)?r?n.concat(i):[n,i]:n?[n,i]:i),this.renderToolbar(n,0,e,t)},t.prototype.renderSelection=function(){var e=this,t=this.props,a=t.store,r=t.classnames,n=t.labelField,s=t.labelTpl,l=t.primaryField,d=t.translate;return a.selectedItems.length?i.default.createElement("div",{className:r("Crud-selection")},i.default.createElement("div",{className:r("Crud-selectionLabel")},"已选条目:"),a.selectedItems.map(function(t,a){return i.default.createElement("div",{key:a,className:r("Crud-value")},i.default.createElement("span",{"data-tooltip":d("删除"),"data-position":"bottom",className:r("Crud-valueIcon"),onClick:e.unSelectItem.bind(e,t,a)},"×"),i.default.createElement("span",{className:r("Crud-valueLabel")},s?i.default.createElement(y.default,{html:f.filter(s,t)}):o.getVariable(t,n||"label")||o.getVariable(t,l||"id")))}),i.default.createElement("a",{onClick:this.clearSelection,className:r("Crud-selectionClear")},d("清空"))):null},t.prototype.render=function(){var e=this.props,t=e.className,r=e.bodyClassName,n=e.filter,o=e.render,s=e.store,l=e.mode,d=(e.syncLocation,e.children,e.bulkActions),c=e.pickerMode,p=e.multiple,u=e.valueField,h=e.primaryField,f=(e.value,e.hideQuickSaveBtn),m=e.itemActions,g=e.classnames,v=e.keepItemSelectionOnPageChange,b=(e.onAction,e.popOverContainer),y=e.translate,O=a.__rest(e,["className","bodyClassName","filter","render","store","mode","syncLocation","children","bulkActions","pickerMode","multiple","valueField","primaryField","value","hideQuickSaveBtn","itemActions","classnames","keepItemSelectionOnPageChange","onAction","popOverContainer","translate"]);return i.default.createElement("div",{className:g("Crud",t,{"is-loading":s.loading})},!n||s.filterTogggable&&!s.filterVisible?null:o("filter",a.__assign(a.__assign({title:y("条件过滤"),mode:"inline",submitText:y("搜索")},n),{type:"form",api:null}),{key:"filter",data:s.filterData,onReset:this.handleFilterReset,onSubmit:this.handleFilterSubmit,onInit:this.handleFilterInit}),v&&p?this.renderSelection():null,o("body",a.__assign(a.__assign({},O),{type:l||"table"}),{key:"body",className:g("Crud-body",r),ref:this.controlRef,selectable:!!(this.hasBulkActionsToolbar()&&this.hasBulkActions()||c),itemActions:m,multiple:void 0===p?d&&d.length>0?!0:!1:p,selected:c||v?s.selectedItemsAsArray:void 0,valueField:u||h,primaryField:h,hideQuickSaveBtn:f,items:s.data.items,query:s.query,orderBy:s.query.orderBy,orderDir:s.query.orderDir,popOverContainer:b,onAction:this.handleAction,onSave:this.handleSave,onSaveOrder:this.handleSaveOrder,onQuery:this.handlQuery,onSelect:this.handleSelect,onPopOverOpened:this.handleChildPopOverOpen,onPopOverClosed:this.handleChildPopOverClose,headerToolbarRender:this.renderHeaderToolbar,footerToolbarRender:this.renderFooterToolbar,data:s.mergedData}),i.default.createElement(_.Spinner,{overlay:!0,size:"lg",key:"info",show:s.loading}),o("dialog",a.__assign(a.__assign({},s.action&&s.action.dialog),{type:"dialog"}),{key:"dialog",data:s.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:s.dialogOpen}))},t.propsList=["bulkActions","itemActions","mode","orderField","syncLocation","toolbar","toolbarInline","messages","value","options","multiple","valueField","defaultParams","bodyClassName","perPageAvailable","pageField","perPageField","hideQuickSaveBtn","autoJumpToTopOnPagerChange","interval","silentPolling","stopAutoRefreshWhen","stopAutoRefreshWhenModalIsOpen","api","affixHeader","columnsTogglable","placeholder","tableClassName","headerClassName","footerClassName","headerToolbar","footerToolbar","filterTogglable","filterDefaultVisible","syncResponse2Query","keepItemSelectionOnPageChange","labelTpl","labelField","loadDataOnce","loadDataOnceFetchOnFilter","source","header","columns","size","onChange","onInit","onSaved"],t.defaultProps={toolbarInline:!0,headerToolbar:["bulkActions","pagination"],footerToolbar:["statistics","pagination"],primaryField:"id",syncLocation:!0,pageField:"page",perPageField:"perPage",hideQuickSaveBtn:!1,autoJumpToTopOnPagerChange:!0,silentPolling:!1,filterTogglable:!1,filterDefaultVisible:!0,loadDataOnce:!1,loadDataOnceFetchOnFilter:!0},t}(i.default.Component);t.default=A;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){e.prototype.componentWillMount.call(this);var t=this.context;t.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.prototype.reloadTarget=function(e,t){var a=this.context;a.reload(e,t)},t.prototype.closeTarget=function(e){var t=this.context;t.close(e)},t.contextType=s.ScopedContext,t=a.__decorate([r.Renderer({test:/(^|\/)crud$/,storeType:n.CRUDStore.name,name:"crud"})],t)}(A);t.CRUDRenderer=T}); +;/*!src/renderers/Pagination.tsx*/ +amis.define("4fd96cf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaginationRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),l=e("0f9ebdf"),r=e("9a80175"),i=e("b7bbd16"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={pageNum:String(t.props.activePage)||""},t}n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.activePage!==e.activePage&&this.setState({pageNum:String(e.activePage)||""})},t.prototype.renderSimple=function(){var e=this.props,t=e.activePage,n=e.hasNext,l=e.onPageChange,r=e.classnames;return a.default.createElement("ul",{className:r("Pagination","Pagination--sm")},a.default.createElement("li",{className:r({"is-disabled":2>t}),onClick:2>t?function(e){return e.preventDefault()}:function(){return l(t-1)}},a.default.createElement("a",null,a.default.createElement(i.Icon,{icon:"left-arrow",className:"icon"}))),a.default.createElement("li",{className:r({"is-disabled":!n}),onClick:n?function(){return l(t+1)}:function(e){return e.preventDefault()}},a.default.createElement("a",null,a.default.createElement(i.Icon,{icon:"right-arrow",className:"icon"}))))},t.prototype.handlePageChange=function(e){var t=this.props.items,n=e.currentTarget.value;/^\d+$/.test(n)&&parseInt(n,10)>t&&(n=String(t)),this.setState({pageNum:n})},t.prototype.renderNormal=function(){var e,t,n=this.props,l=n.activePage,r=n.items,u=n.maxButtons,o=n.onPageChange,s=n.classnames,c=n.showPageInput,d=this.state.pageNum,m=[];(u-1)/2+2>l&&(u=l+(u-1)/2),(u-1)/2+2>r-l&&(u=r-l+(u-1)/2+1),u&&r>u?(e=Math.max(Math.min(l-Math.floor(u/2),r-u+1),1),t=e+u-1):(e=1,t=r);for(var f=function(e){m.push(a.default.createElement("li",{onClick:function(){return o(e)},key:e,className:s({"is-active":e===l})},a.default.createElement("a",{role:"button"},e)))},p=e;t>=p;++p)f(p);return e>1&&(e>2&&m.unshift(a.default.createElement("li",{onClick:function(){return o(e-1)},key:"prev-ellipsis"},a.default.createElement("a",{role:"button"},"..."))),m.unshift(a.default.createElement("li",{onClick:function(){return o(1)},key:1,className:s({"is-active":1===l})},a.default.createElement("a",{role:"button"},1)))),r>t&&(r-t>1&&m.push(a.default.createElement("li",{className:s("Pagination-ellipsis"),onClick:function(){return o(t+1)},key:"next-ellipsis"},a.default.createElement("a",{role:"button"},a.default.createElement("span",null,"...")))),m.push(a.default.createElement("li",{onClick:function(){return o(r)},key:r,className:s({"is-active":r===l})},a.default.createElement("a",{role:"button"},r)))),m.unshift(a.default.createElement("li",{className:s("Pagination-prev",{"is-disabled":1===l}),onClick:1===l?function(e){return e.preventDefault()}:function(){return o(l-1)},key:"prev"},a.default.createElement("span",null,a.default.createElement(i.Icon,{icon:"left-arrow",className:"icon"})))),m.push(a.default.createElement("li",{className:s("Pagination-next",{"is-disabled":l===r}),onClick:l===r?function(e){return e.preventDefault()}:function(){return o(l+1)},key:"next"},a.default.createElement("span",null,a.default.createElement(i.Icon,{icon:"right-arrow",className:"icon"})))),a.default.createElement("div",null,a.default.createElement("ul",{className:s("Pagination","Pagination--sm")},m),r>9&&c?a.default.createElement("div",{className:"inline m-l-xs w-xs",key:"toPage"},a.default.createElement("span",{className:s("Pagination-inputGroup")},a.default.createElement("input",{type:"text",className:s("Pagination-input"),onChange:this.handlePageChange,onFocus:function(e){return e.currentTarget.select()},onKeyUp:function(e){return 13==e.keyCode&&o(parseInt(e.currentTarget.value,10))},value:d}),a.default.createElement("span",null,a.default.createElement("button",{onClick:function(){return o(parseInt(d,10))},type:"submit",className:s("Button","Button--default")},"Go")))):null)},t.prototype.render=function(){var e=this.props.mode;return"simple"===e?this.renderSimple():this.renderNormal()};var l;return t.defaultProps={activePage:1,items:1,maxButtons:5,mode:"normal",hasNext:!1,showPageInput:!0},n.__decorate([r.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof a.default&&a.default.ChangeEvent)?l:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handlePageChange",null),t}(a.default.Component);t.default=u;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.Renderer({test:/(^|\/)pagination$/,name:"pagination"})],t)}(u);t.PaginationRenderer=o}); +;/*!src/renderers/Cards.tsx*/ +amis.define("0afb30b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CardsRenderer=void 0;var r=e("node_modules/tslib/tslib"),a=r.__importDefault(e("node_modules/react/index")),n=e("node_modules/react-dom/index"),o=e("0f9ebdf"),i=r.__importDefault(e("a67acca")),s=e("4e9b495"),l=e("9a80175"),d=e("f2e345e"),c=r.__importDefault(e("node_modules/sortablejs/Sortable")),u=e("6a2dbb7"),m=e("b7bbd16"),h=function(e){function t(t){var r=e.call(this,t)||this;return r.handleAction=r.handleAction.bind(r),r.handleCheck=r.handleCheck.bind(r),r.handleCheckAll=r.handleCheckAll.bind(r),r.handleQuickChange=r.handleQuickChange.bind(r),r.handleSave=r.handleSave.bind(r),r.handleSaveOrder=r.handleSaveOrder.bind(r),r.reset=r.reset.bind(r),r.dragTipRef=r.dragTipRef.bind(r),r.bodyRef=r.bodyRef.bind(r),r.affixDetect=r.affixDetect.bind(r),r.itemsRef=r.itemsRef.bind(r),r.renderToolbar=r.renderToolbar.bind(r),r}return r.__extends(t,e),t.syncItems=function(e,t,r){var a=t.source,n=t.value||t.items,o=[],i=!0;if(Array.isArray(n))o=n;else if("string"==typeof a){var s=d.resolveVariable(a,t.data),l=r?d.resolveVariable(a,r.data):null;l&&l===s?i=!1:Array.isArray(s)&&(o=s)}i&&e.initItems(o),"undefined"!=typeof t.selected&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,r=e.store,a=e.selectable,n=e.draggable,o=e.orderBy,i=e.orderDir,s=e.multiple,l=e.hideCheckToggler,d=e.itemCheckableOn,c=e.itemDraggableOn;r.update({selectable:a,draggable:n,orderBy:o,orderDir:i,multiple:s,hideCheckToggler:l,itemCheckableOn:d,itemDraggableOn:c}),t.syncItems(r,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=l.getScrollParent(n.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillReceiveProps=function(e){var r=this.props,a=e.store;l.anyChanged(["selectable","draggable","orderBy","orderDir","multiple","hideCheckToggler","itemCheckableOn","itemDraggableOn"],r,e)&&a.update({selectable:e.selectable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,multiple:e.multiple,hideCheckToggler:e.hideCheckToggler,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn}),l.anyChanged(["source","value","items"],r,e)||!e.value&&!e.items&&e.data!==r.data?(t.syncItems(a,e,r),this.syncSelected()):r.selected!==e.selected&&a.updateSelected(e.selected||[],e.valueField)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.bodyRef=function(e){this.body=e},t.prototype.itemsRef=function(e){e||(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.body){var e=this.props.classPrefix,t=n.findDOMNode(this),r=this.body.getBoundingClientRect(),a=this.props.env.affixOffsetTop||0,o=r.topa,i=t.querySelector("."+e+"Cards-fixedTop");this.body.offsetWidth&&(i.style.cssText="top: "+a+"px;width: "+this.body.offsetWidth+"px;"),o?i.classList.add("in"):i.classList.remove("in")}},t.prototype.handleAction=function(e,t,r){var a=this.props.onAction;a(e,t,r)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.syncSelected=function(){var e=this.props,t=e.store,r=e.onSelect;r&&r(t.selectedItems.map(function(e){return e.data}),t.unSelectedItems.map(function(e){return e.data}))},t.prototype.handleQuickChange=function(e,t,r,a){if(e.change(t,a),r&&!a){if(r&&r.api)return void this.props.onAction(null,{actionType:"ajax",api:r.api},t);var n=this.props,o=n.onSave,i=n.primaryField;o&&o(e.data,l.difference(e.data,e.pristine,["id",i]),e.index,void 0,e.pristine)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,r=e.onSave,a=e.primaryField;if(r&&t.modifiedItems.length){var n=t.modifiedItems.map(function(e){return e.data}),o=t.modifiedItems.map(function(e){return e.index}),i=t.modifiedItems.map(function(e){return l.difference(e.data,e.pristine,["id",a])}),s=t.items.filter(function(e){return!e.modified}).map(function(e){return e.data});r(n,i,o,s,t.modifiedItems.map(function(e){return e.pristine}))}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,r=e.onSaveOrder;r&&t.movedItems.length&&r(t.movedItems.map(function(e){return e.data}),t.items.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var r=this.props.store,a=r.items.filter(function(e){return~t.indexOf(e.pristine)});a.forEach(function(t){return t.change(e)})},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedItems.map(function(e){return e.data})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this.props.store,t=n.findDOMNode(this),r=this.props.classPrefix;this.sortable=new c.default(t.querySelector("."+r+"Cards-body"),{group:"table",animation:150,handle:"."+r+"Card-dragBtn",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var r=t.to;t.oldIndexn,o=t.querySelector("."+e+"Table-fixedTop");o.style.cssText+="top: "+n+"px;width: "+this.table.parentNode.offsetWidth+"px",l?o.classList.add("in"):o.classList.remove("in")}},t.prototype.updateTableInfo=function(){var e=this;if(this.table){var t=this.table,a=t.parentNode,n=this.props.affixHeader,l=this.props.classPrefix;this.totalWidth=t.scrollWidth,this.totalHeight=t.scrollHeight,this.outterWidth=a.offsetWidth,this.outterHeight=a.offsetHeight;var i=this.widths={},s=this.heights={};s.header||(s.header=t.querySelector("thead").offsetHeight),o.default(t.querySelectorAll("thead>tr:last-child>th"),function(e){i[e.getAttribute("data-index")]=e.offsetWidth}),o.default(t.querySelectorAll("tbody>tr>*:last-child"),function(e,t){return s[t]=e.offsetHeight});var d=r.findDOMNode(this);if(o.default(d.querySelectorAll("."+l+"Table-fixedLeft, ."+l+"Table-fixedRight"),function(t){return t.parentNode===d&&(t.style.cssText+="height:"+e.totalHeight+"px;")}),n){d.querySelector("."+l+"Table-fixedTop>."+l+"Table-wrapper").style.cssText+="width: "+this.outterWidth+"px";var c=d.querySelector("."+l+"Table-wrapper table");c.style.cssText+="width: "+this.totalWidth+"px"}o.default(d.querySelectorAll("."+l+"Table-fixedTop table, ."+l+"Table-fixedLeft table, ."+l+"Table-fixedRight table"),function(t){var a=0;o.default(t.querySelectorAll("thead>tr:last-child>th"),function(t){var n=e.widths[parseInt(t.getAttribute("data-index"),10)],r=getComputedStyle(t),l=(parseInt(r.getPropertyValue("border-left-width"),10)||0)+(parseInt(r.getPropertyValue("border-right-width"),10)||0);t.style.cssText+="width: "+(n-l)+"px",a+=n}),o.default(t.querySelectorAll("tbody>tr"),function(t,a){t.style.cssText+="height: "+e.heights[a]+"px"}),t.style.cssText+="width: "+a+"px;table-layout: fixed;"}),this.lastScrollLeft=-1,this.handleOutterScroll()}},t.prototype.handleOutterScroll=function(){var e=this.table.parentNode,t=e.scrollLeft;if(t!==this.lastScrollLeft){this.lastScrollLeft=t;var a=0===t,n=t+this.outterWidth===this.totalWidth,l=this.props.classPrefix,o=r.findDOMNode(this),i=o.querySelectorAll("."+l+"Table-fixedLeft");if(i&&i.length)for(var s=0,d=i.length;d>s;s++){var c=i[s];a?c.classList.remove("in"):c.classList.add("in")}var u=o.querySelectorAll("."+l+"Table-fixedRight");if(u&&u.length)for(var s=0,d=u.length;d>s;s++){var c=u[s];n?c.classList.remove("in"):c.classList.add("in")}var p=this.affixedTable;p&&(p.style.cssText+="transform: translateX(-"+t+"px)")}},t.prototype.tableRef=function(e){this.table=e,e?this.unSensor=T.resizeSensor(e.parentNode,this.updateTableInfoLazy):(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.affixedTableRef=function(e){this.affixedTable=e},t.prototype.initDragging=function(){var e=this.props.store,t=this.props.classPrefix;this.sortable=new _.default(this.table.querySelector("tbody"),{group:"table",animation:150,handle:"."+t+"Table-dragCell",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndexl;a.insertBefore(this.draggingTr,o&&t.nextSibling||t)}}},t.prototype.handleDrop=function(){var e=this.props.store,t=this.draggingTr,a=t.parentElement,n=Array.prototype.indexOf.call(a.childNodes,t),r=e.getRowById(t.getAttribute("data-id"));this.handleDragEnd(),e.exchange(this.originIndex,n,r)},t.prototype.handleDragEnd=function(){var e=this.draggingTr,t=e.parentElement,a=Array.prototype.indexOf.call(t.childNodes,e);t.insertBefore(e,t.childNodes[a1?n&&n(a.__assign(a.__assign({},e),{list:s,index:o}),t):n&&n(e,t)},t.prototype.renderHeading=function(){var e=this.props,t=e.title,a=e.store,r=e.hideQuickSaveBtn,l=e.data,o=e.classnames,s=e.saveImmediately,d=e.headingClassName,c=e.translate;return t||!s&&a.modified&&!r||a.moved?n.default.createElement("div",{className:o("Table-heading",d),key:"heading"},s||!a.modified||r?a.moved?n.default.createElement("span",null,c("当前有 {{moved}} 条记录修改了顺序, 但并没有提交。请选择:",{moved:a.moved}),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},n.default.createElement(w.Icon,{icon:"check",className:"icon m-r-xs"}),c("提交")),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},n.default.createElement(w.Icon,{icon:"close",className:"icon m-r-xs"}),c("放弃"))):t?i.filter(t,l):"":n.default.createElement("span",null,c("当前有 {{modified}} 条记录修改了内容, 但并没有提交。请选择:",{modified:a.modified}),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},n.default.createElement(w.Icon,{icon:"check",className:"icon m-r-xs"}),c("提交")),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},n.default.createElement(w.Icon,{icon:"close",className:"icon m-r-xs"}),c("放弃")))):null},t.prototype.renderHeadCell=function(e,t){var r=this.props,l=r.store,o=r.query,i=r.onQuery,s=r.multiple,d=r.env,u=r.render,p=r.classPrefix,f=r.classnames;if("__checkme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}),l.rows.length&&s?n.default.createElement(c.default,{classPrefix:p,partial:!l.allChecked,checked:l.someChecked,onChange:this.handleCheckAll}):" ");if("__dragme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}));if("__expandme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}),l.footable&&(l.footable.expandAll===!1||l.footable.accordion)||l.expandConfig&&(l.expandConfig.expandAll===!1||l.expandConfig.accordion)?null:n.default.createElement("a",{className:f("Table-expandBtn",l.allExpanded?"is-active":""),onClick:l.toggleExpandAll},n.default.createElement(w.Icon,{icon:"right-arrow-bold",className:"icon"})));var h=null;return e.searchable&&e.name?h=n.default.createElement(I,a.__assign({},this.props,{onQuery:i,name:e.name,searchable:e.searchable,sortable:e.sortable,type:e.type,data:o,orderBy:l.orderBy,orderDir:l.orderDir,popOverContainer:this.getPopOverContainer})):e.sortable&&e.name?h=n.default.createElement("span",{className:f("TableCell-sortBtn"),onClick:function(){e.name===l.orderBy?l.setOrderByInfo(e.name,"desc"===l.orderDir?"asc":"desc"):l.setOrderByInfo(e.name,"asc"),i&&i({orderBy:l.orderBy,orderDir:l.orderDir})}},n.default.createElement("i",{className:f("TableCell-sortBtn--down",l.orderBy===e.name&&"desc"===l.orderDir?"is-active":"")},n.default.createElement(w.Icon,{icon:"sort-desc",className:"icon"})),n.default.createElement("i",{className:f("TableCell-sortBtn--up",l.orderBy===e.name&&"asc"===l.orderDir?"is-active":"")},n.default.createElement(w.Icon,{icon:"sort-asc",className:"icon"})),n.default.createElement("i",{className:f("TableCell-sortBtn--default",l.orderBy===e.name?"":"is-active")},n.default.createElement(w.Icon,{icon:"sort-default",className:"icon"}))):e.filterable&&e.name&&(h=n.default.createElement(A,a.__assign({},this.props,{onQuery:i,name:e.name,type:e.type,data:o,filterable:e.filterable,popOverContainer:this.getPopOverContainer}))),e.pristine.width&&(t.style=t.style||{},t.style.width=e.pristine.width),n.default.createElement("th",a.__assign({},t,{className:f(t?t.className:"",e.pristine.className,{"TableCell--sortable":e.sortable,"TableCell--searchable":e.searchable,"TableCell--filterable":e.filterable,"Table-operationCell":"operation"===e.type})}),n.default.createElement("div",{className:f(p+"TableCell--title")},e.label?u("tpl",e.label):null,e.remark?u("remark",{type:"remark",tooltip:e.remark,container:d&&d.getModalContainer?d.getModalContainer:void 0}):null),h)},t.prototype.renderCell=function(e,t,r,l,o){void 0===o&&(o=!1);var i=this.props,s=i.render,d=i.store,u=i.multiple,p=(i.env,i.classPrefix),f=i.classnames,g=i.checkOnItemClick,b=i.popOverContainer;if(t.name&&0===r.rowSpans[t.name])return null;if("__checkme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.checkable?n.default.createElement(c.default,{classPrefix:p,type:u?"checkbox":"radio",checked:r.checked,onChange:g?h.noop:this.handleCheck.bind(this,r)}):null);if("__dragme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.draggable?n.default.createElement(w.Icon,{icon:"drag-bar",className:"icon"}):null);if("__expandme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.depth>2?Array.from({length:r.depth-2}).map(function(e,t){return n.default.createElement("i",{key:t,className:f("Table-divider-"+(t+1))})}):null,r.expandable?n.default.createElement("a",{className:f("Table-expandBtn",r.expanded?"is-active":""),onClick:r.toggleExpanded},n.default.createElement(w.Icon,{icon:"right-arrow-bold",className:"icon"})):null);var y=null;!o&&t.isPrimary&&d.isNested&&d.draggable&&r.draggable&&(y=n.default.createElement("a",{draggable:!0,onDragStart:this.handleDragStart,className:f("Table-dragBtn")},n.default.createElement(w.Icon,{icon:"drag-bar",className:"icon"})));var v=a.__assign(a.__assign({},l),{btnDisabled:d.dragging,data:r.locals,value:t.name?m.resolveVariable(t.name,r.data):t.value,popOverContainer:b||this.getPopOverContainer,rowSpan:r.rowSpans[t.name],quickEditFormRef:this.subFormRef,prefix:y,onImageEnlarge:this.handleImageEnlarge});return delete v.label,s(e,a.__assign(a.__assign({},t.pristine),{column:t.pristine,type:"cell"}),v)},t.prototype.renderAffixHeader=function(e){var t=this,a=this.props,r=a.store,l=a.affixHeader,o=a.render,i=a.classnames,s=r.filteredColumns.every(function(e){return!e.label});return l?n.default.createElement("div",{className:i("Table-fixedTop",{"is-fakeHide":s})},this.renderHeading(),this.renderHeader(!1),n.default.createElement("div",{className:i("Table-fixedLeft")},r.leftFixedColumns.length?this.renderFixedColumns(r.rows,r.leftFixedColumns,!0,e):null),n.default.createElement("div",{className:i("Table-fixedRight")},r.rightFixedColumns.length?this.renderFixedColumns(r.rows,r.rightFixedColumns,!0,e):null),n.default.createElement("div",{className:i("Table-wrapper")},n.default.createElement("table",{ref:this.affixedTableRef,className:e},n.default.createElement("thead",null,r.columnGroup.length?n.default.createElement("tr",null,r.columnGroup.map(function(e,t){return n.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan},e.label?o("tpl",e.label):null)})):null,n.default.createElement("tr",null,r.filteredColumns.map(function(e){return t.renderHeadCell(e,{key:e.index,"data-index":e.index})})))))):null},t.prototype.renderFixedColumns=function(e,t,a,r){var l=this;void 0===a&&(a=!1),void 0===r&&(r="");var o=this.props,i=(o.rowClassName,o.rowClassNameExpr,o.placeholder),s=o.store,d=(o.onAction,o.buildItemProps,o.classnames),c=(o.classPrefix,o.checkOnItemClick,o.render),u=o.data,p=s.filteredColumns.every(function(e){return!e.label});return n.default.createElement("table",{className:d("Table-table",s.combineNum>0?"Table-table--withCombine":"",r)},n.default.createElement("thead",null,s.columnGroup.length?n.default.createElement("tr",null,s.columnGroup.map(function(e,a){var r=t.filter(function(t){return~e.has.indexOf(t)});return r.length?n.default.createElement("th",{key:a,"data-index":e.index,colSpan:r.length}," "):null})):null,n.default.createElement("tr",{className:p?"fake-hide":""},t.map(function(e){return l.renderHeadCell(e,{key:e.index,"data-index":e.index})}))),a?null:n.default.createElement("tbody",null,e.length?this.renderRows(e,t,{regionPrefix:"fixed/",renderCell:function(e,t,a,n){return l.renderCell(e,t,a,n,!0)}}):n.default.createElement("tr",{className:d("Table-placeholder")},n.default.createElement("td",{colSpan:t.length},c("placeholder",i,{data:u})))))},t.prototype.renderToolbar=function(e){var t=e.type||e;return"columns-toggler"===t?(this.renderedToolbars.push(t),this.renderColumnsToggler(e)):"drag-toggler"===t?(this.renderedToolbars.push(t),this.renderDragToggler()):void 0},t.prototype.renderColumnsToggler=function(e){var t=this.props,r=(t.className,t.store),l=t.classPrefix,o=t.classnames,i=a.__rest(t,["className","store","classPrefix","classnames"]),s=this.props.render;return r.columnsTogglable?n.default.createElement(d.default,a.__assign({},i,{align:e?e.align:"left",classnames:o,classPrefix:l,key:"columns-toggable",size:"sm",label:n.default.createElement(w.Icon,{icon:"columns",className:"icon m-r-none"})}),r.toggableColumns.map(function(e){return n.default.createElement("li",{className:o("DropDown-menuItem"),key:e.index,onClick:e.toggleToggle},n.default.createElement(c.default,{size:"sm",classPrefix:l,checked:e.toggled},e.label?s("tpl",e.label):null))})):null},t.prototype.renderDragToggler=function(){var e=this.props,t=e.store,a=e.env,r=e.draggable,l=e.classPrefix,o=e.translate;return!r||t.isNested?null:n.default.createElement(u.default,{disabled:!!t.modified,classPrefix:l,key:"dragging-toggle",tooltip:o("点击开始排序"),tooltipContainer:a&&a.getModalContainer?a.getModalContainer:void 0,size:"sm",active:t.dragging,onClick:function(e){e.preventDefault(),t.toggleDragging(),t.dragging&&t.clear()},iconOnly:!0},n.default.createElement(w.Icon,{icon:"exchange",className:"icon"}))},t.prototype.renderActions=function(e){var t=this,r=this.props,l=r.actions,o=r.render,i=r.store,s=r.classnames,d=r.data;return l=Array.isArray(l)?l.concat():[],i.toggable&&"header"===e&&!~this.renderedToolbars.indexOf("columns-toggler")&&l.push({type:"button",children:this.renderColumnsToggler()}),i.draggable&&!i.isNested&&"header"===e&&i.rows.length>1&&!~this.renderedToolbars.indexOf("drag-toggler")&&l.push({type:"button",children:this.renderDragToggler()}),Array.isArray(l)&&l.length?n.default.createElement("div",{className:s("Table-actions")},l.map(function(e,n){return o("action/"+n,a.__assign({type:"button"},e),{onAction:t.handleAction,key:n,btnDisabled:i.dragging,data:i.getData(d)})})):null},t.prototype.renderHeader=function(e){var t=this.props,r=t.header,l=t.headerClassName,o=t.toolbarClassName,i=t.headerToolbarClassName,s=t.headerToolbarRender,d=t.render,c=t.showHeader,u=t.store,p=t.classnames,f=t.data,h=t.translate;if(c===!1)return null;var m={},g=s?s(a.__assign(a.__assign(a.__assign({},this.props),{selectedItems:u.selectedRows.map(function(e){return e.data}),items:u.rows.map(function(e){return e.data}),unSelectedItems:u.unSelectedRows.map(function(e){return e.data})}),m),this.renderToolbar):null,b=this.renderActions("header"),y=b||g||u.dragging?n.default.createElement("div",{className:p("Table-toolbar Table-headToolbar",o,i),key:"header-toolbar"},b,g,u.dragging?n.default.createElement("div",{className:p("Table-dragTip"),ref:this.dragTipRef},h("请拖动左边的按钮进行排序")):null):null,v=!r||Array.isArray(r)&&!r.length?null:n.default.createElement("div",{className:p("Table-header",l),key:"header"},d("header",r,a.__assign(a.__assign({},e===!1?m:null),{data:u.getData(f)})));return v&&y?[v,y]:v||y||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,r=e.toolbarClassName,l=e.footerToolbarClassName,o=e.footerClassName,i=e.footerToolbarRender,s=e.render,d=e.showFooter,c=e.store,u=e.data,p=e.classnames;if(d===!1)return null;var f=i?i(a.__assign(a.__assign({},this.props),{selectedItems:c.selectedRows.map(function(e){return e.data}),items:c.rows.map(function(e){return e.data})}),this.renderToolbar):null,h=this.renderActions("footer"),m=h||f?n.default.createElement("div",{className:p("Table-toolbar Table-footToolbar",r,l),key:"footer-toolbar"},h,f):null,g=!t||Array.isArray(t)&&!t.length?null:n.default.createElement("div",{className:p("Table-footer",o),key:"footer"},s("footer",t,{data:c.getData(u)}));return g&&m?[m,g]:g||m||null},t.prototype.renderRows=function(e,t,r){var l=this;void 0===t&&(t=this.props.store.filteredColumns),void 0===r&&(r={});var o=this.props,s=o.store,d=o.rowClassName,c=o.rowClassNameExpr,u=o.onAction,p=o.buildItemProps,f=o.checkOnItemClick,h=o.classPrefix,m=o.classnames,g=o.render;return e.map(function(o,b){var y=p?p(o,b):null,v=[n.default.createElement(O,a.__assign({},y,{classPrefix:h,checkOnItemClick:f,key:o.id,itemIndex:b,item:o,itemClassName:m(c?i.filter(c,o.data):d,{"is-last":o.depth>1&&b===e.length-1,"is-expanded":o.expanded,"is-expandable":o.expandable}),columns:t,renderCell:l.renderCell,render:g,onAction:u,onCheck:l.handleCheck,onQuickChange:s.dragging?null:l.handleQuickChange},r))];return o.expanded&&!s.dragging&&(s.footable&&s.footableColumns.length?1===o.depth&&v.push(n.default.createElement(O,a.__assign({},y,{classPrefix:h,checkOnItemClick:f,key:"foot-"+o.id,itemIndex:b,item:o,itemClassName:m(c?i.filter(c,o.data):d),columns:s.footableColumns,renderCell:l.renderCell,render:g,onAction:u,onCheck:l.handleCheck,footableMode:!0,footableColSpan:s.filteredColumns.length,onQuickChange:s.dragging?null:l.handleQuickChange},r))):Array.isArray(o.data.children)&&v.push.apply(v,l.renderRows(o.children,t,r))),v})},t.prototype.renderItemActions=function(){var e=this.props,t=e.itemActions,r=e.render,l=e.store,o=e.classnames,i=Array.isArray(t)?t.filter(function(e){return!e.hiddenOnHover}):[],s=l.hoverIndex;if(!~s||!i.length)return null;var d=this.heights,c=40,u=0;if(d&&d[s]){c=d[s],u+=d.header;for(var p=s-1;p>=0;p--)u+=d[p]}return n.default.createElement("div",{className:o("Table-itemActions-wrap"),style:{top:u,height:c}},n.default.createElement("div",{className:o("Table-itemActions")},i.map(function(e,t){return r("itemAction/"+t,a.__assign(a.__assign({},e),{isMenuItem:!0}),{key:t,item:l.rows[s],data:l.rows[s].locals,rowIndex:s})})))},t.prototype.renderTableContent=function(){var e=this,t=this.props,a=t.store,r=t.placeholder,l=t.classnames,o=t.data,i=t.render,s=l("Table-table",a.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName),d=a.filteredColumns.every(function(e){return!e.label});return n.default.createElement("div",{onMouseMove:this.handleMouseMove,className:l("Table-content"),onScroll:this.handleOutterScroll},n.default.createElement("table",{ref:this.tableRef,className:s},n.default.createElement("thead",null,a.columnGroup.length?n.default.createElement("tr",null,a.columnGroup.map(function(e,t){return n.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan},e.label?i("tpl",e.label):null)})):null,n.default.createElement("tr",{className:d?"fake-hide":""},a.filteredColumns.map(function(t){return e.renderHeadCell(t,{"data-index":t.index,key:t.index})}))),n.default.createElement("tbody",null,a.rows.length?this.renderRows(a.rows,a.filteredColumns):n.default.createElement("tr",{className:l("Table-placeholder")},n.default.createElement("td",{colSpan:a.filteredColumns.length},i("placeholder",r,{data:o}))))))},t.prototype.render=function(){{var e=this.props,t=e.className,a=e.store,r=(e.placeholder,e.classnames),l=e.affixColumns;e.data,e.render}this.renderedToolbars=[];var o=this.renderHeading(),i=this.renderHeader(),s=this.renderFooter(),d=r("Table-table",a.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName);return n.default.createElement("div",{className:r("Table",t,{"Table--unsaved":!!a.modified||!!a.moved})},o,i,n.default.createElement("div",{className:r("Table-contentWrap"),onMouseLeave:this.handleMouseLeave},n.default.createElement("div",{className:r("Table-fixedLeft")},l!==!1&&a.leftFixedColumns.length?this.renderFixedColumns(a.rows,a.leftFixedColumns,!1,d):null),n.default.createElement("div",{className:r("Table-fixedRight")},l!==!1&&a.rightFixedColumns.length?this.renderFixedColumns(a.rows,a.rightFixedColumns,!1,d):null),this.renderTableContent(),~a.hoverIndex?this.renderItemActions():null),this.renderAffixHeader(d),s)};var l;return t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","footable","expandConfig","placeholder","tableClassName","headingClassName","source","selectable","columnsTogglable","affixHeader","affixColumns","headerClassName","footerClassName","selected","multiple","primaryField","hideQuickSaveBtn","itemCheckableOn","itemDraggableOn","checkOnItemClick","hideCheckToggler","itemActions","combineNum","items","columns","valueField","saveImmediately","rowClassName","rowClassNameExpr","popOverContainer","headerToolbarClassName","toolbarClassName","footerToolbarClassName"],t.defaultProps={className:"",placeholder:"暂无数据",tableClassName:"",source:"$items",selectable:!1,columnsTogglable:"auto",affixHeader:!0,headerClassName:"",footerClassName:"",toolbarClassName:"",headerToolbarClassName:"",footerToolbarClassName:"",primaryField:"id",itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1},a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.DragEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragStart",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragOver",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDrop",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragEnd",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),t}(n.default.Component);t.default=D;var O=function(e){function t(t){var a=e.call(this,t)||this; +return a.handleAction=a.handleAction.bind(a),a.handleQuickChange=a.handleQuickChange.bind(a),a.handleClick=a.handleClick.bind(a),a}return a.__extends(t,e),t.prototype.handleClick=function(e){var t,a=e.target,n=this.props.classPrefix;!e.currentTarget.contains(a)||~["INPUT","TEXTAREA"].indexOf(a.tagName)||(t=a.closest("button, a, ."+n+"Form-item"))&&e.currentTarget.contains(t)||this.props.onCheck(this.props.item)},t.prototype.handleAction=function(e,t,a){var n=this.props,r=n.onAction,l=n.item;r&&r(e,t,a||l.data)},t.prototype.handleQuickChange=function(e,t,a){var n=this.props,r=n.onQuickChange,l=n.item;r&&r(l,e,t,a)},t.prototype.render=function(){var e,t,r=this,l=this.props,o=l.itemClassName,i=l.itemIndex,d=l.item,c=l.columns,u=l.renderCell,p=(l.children,l.footableMode),f=l.footableColSpan,h=l.regionPrefix,m=l.checkOnItemClick,g=l.classPrefix,b=l.render,y=a.__rest(l,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","footableColSpan","regionPrefix","checkOnItemClick","classPrefix","render"]);return p?n.default.createElement("tr",{"data-id":d.id,"data-index":d.newIndex,onClick:m?this.handleClick:void 0,className:s.default(o,(e={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},e[g+"Table-tr--odd"]=i%2===0,e[g+"Table-tr--even"]=i%2===1,e))},n.default.createElement("td",{className:g+"Table-foot",colSpan:f},n.default.createElement("table",{className:g+"Table-footTable"},n.default.createElement("tbody",null,c.map(function(e){return n.default.createElement("tr",{key:e.index},e.label!==!1?n.default.createElement("th",null,b(""+h+i+"/"+e.index+"/tpl",e.label)):null,u(""+h+i+"/"+e.index,e,d,a.__assign(a.__assign({},y),{width:null,rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange})))}))))):n.default.createElement("tr",{onClick:m?this.handleClick:void 0,"data-index":1===d.depth?d.newIndex:void 0,"data-id":d.id,className:s.default(o,(t={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},t[g+"Table-tr--odd"]=i%2===0,t[g+"Table-tr--even"]=i%2===1,t),g+"Table-tr--"+d.depth+"th")},c.map(function(e){return u(i+"/"+e.index,e,d,a.__assign(a.__assign({},y),{rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange}))}))},t=a.__decorate([f.observer,a.__metadata("design:paramtypes",[Object])],t)}(n.default.Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.Renderer({test:function(e){return/(^|\/)table$/.test(e)},storeType:p.TableStore.name,name:"table"})],t)}(D);t.TableRenderer=S;var I=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1},a.open=a.open.bind(a),a.close=a.close.bind(a),a.close=a.close.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleAction=a.handleAction.bind(a),a}return a.__extends(t,e),t.prototype.buildSchema=function(){var e,t=this.props,n=t.searchable,r=t.sortable,l=t.name,o=t.label,i=t.translate;return n===!0?e={title:"",controls:[{type:"text",name:l,placeholder:o}]}:n&&(e=n.controls||n.tabs||n.fieldSet?a.__assign({title:""},n):{title:"",className:n.formClassName,controls:[a.__assign({type:n.type||"text",name:n.name||l,placeholder:o},n)]}),e&&e.controls&&r&&e.controls.unshift({type:"hidden",name:"orderBy",value:l},{type:"button-group",name:"orderDir",label:i("排序"),options:[{label:i("正序"),value:"asc"},{label:i("降序"),value:"desc"}]}),e&&(e=a.__assign(a.__assign({},e),{type:"form",wrapperComponent:"div",actions:[{type:"button",label:i("取消"),actionType:"cancel"},{label:i("搜索"),type:"submit",primary:!0}]})),e||"error"},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleAction=function(e,t,a){var n=this.props.onAction;return"cancel"===t.actionType||"close"===t.actionType?void this.close():void(n&&n(e,t,a))},t.prototype.handleSubmit=function(e){var t=this.props,n=t.onQuery,r=t.name;this.close(),e.orderDir&&(e=a.__assign(a.__assign({},e),{orderBy:r})),n(e)},t.prototype.render=function(){var e=this,t=this.props,l=t.render,o=t.name,i=t.data,d=t.searchable,c=t.store,u=t.orderBy,p=t.popOverContainer,f=t.classPrefix;return n.default.createElement("span",{className:s.default(f+"TableCell-searchBtn")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"search",className:"icon"})),this.state.isOpened?n.default.createElement(E.default,{container:p||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:p?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(C.default,{classPrefix:f,onHide:this.close,className:s.default(f+"TableCell-searchPopOver",d.className),overlay:!0},l("quick-search-form",this.buildSchema(),{data:a.__assign(a.__assign({},i),{orderBy:u,orderDir:u===o?c.orderDir:""}),onSubmit:this.handleSubmit,onAction:this.handleAction}))):null)},t}(n.default.Component);t.HeadCellSearchDropDown=I;var A=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1,filterOptions:[]},a.sourceInvalid=!1,a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleClick=a.handleClick.bind(a),a.handleCheck=a.handleCheck.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.filterable;e.source?this.fetchOptions():e.options.length>0&&this.setState({filterOptions:this.alterOptions(e.options)})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.name!==e.name||t.filterable!==e.filterable||t.data!==e.data)&&(e.filterable.source?this.sourceInvalid=g.isApiOutdated(t.filterable.source,e.filterable.source,t.data,e.data):e.filterable.options&&this.setState({filterOptions:this.alterOptions(e.filterable.options||[])}))},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&this.fetchOptions()},t.prototype.fetchOptions=function(){var e=this,t=this.props,a=t.env,n=t.filterable,r=t.data;if(g.isEffectiveApi(n.source,r)){var l=g.normalizeApi(n.source);l.cache=3e3,a.fetcher(l,r).then(function(t){var a=t.data&&t.data.options||[];e.setState({filterOptions:t&&t.data&&e.alterOptions(a)})})}},t.prototype.alterOptions=function(e){var t=this.props,n=t.data,r=t.filterable,l=t.name,o=n&&n[l]||"";return e=e.map(r.multiple?function(e){return a.__assign(a.__assign({},e),{selected:o.split(",").indexOf(e.value)>-1})}:function(e){return a.__assign(a.__assign({},e),{selected:e.value===o})})},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleClick=function(e){var t,a=this.props,n=a.onQuery,r=a.name;n((t={},t[r]=e,t)),this.close()},t.prototype.handleCheck=function(e){var t,a,n=this.props,r=n.data,l=n.name,o=n.onQuery;a=r[l]&&r[l]===e?"":r[l]&&y.default(r[l].split(","),[e]).join(",")||e,o((t={},t[l]=a,t))},t.prototype.render=function(){var e=this,t=this.state,a=t.isOpened,l=t.filterOptions,o=this.props,i=o.filterable,s=o.popOverContainer,d=o.classPrefix,u=o.classnames;return n.default.createElement("span",{className:u(d+"TableCell-filterBtn")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"column-filter",className:"icon"})),a?n.default.createElement(E.default,{container:s||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:s?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(C.default,{classPrefix:d,onHide:this.close,className:u(d+"TableCell-filterPopOver",i.className),overlay:!0},l&&l.length>0?n.default.createElement("ul",{className:u("DropDown-menu")},l.map(i.multiple?function(t,a){return n.default.createElement("li",{key:a,className:u("DropDown-divider")},n.default.createElement(c.default,{classPrefix:d,onChange:e.handleCheck.bind(e,t.value),checked:t.selected},t.label))}:function(t,a){return n.default.createElement("li",{key:a,className:u("DropDown-divider",{"is-selected":t.selected}),onClick:e.handleClick.bind(e,t.value)},t.label)})):null)):null)},t}(n.default.Component);t.HeadCellFilterDropDown=A;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.render,l=e.style,o=e.wrapperComponent,i=e.column,s=e.value,d=e.data,c=e.children,u=e.width,p=e.innerClassName,f=(e.label,e.tabIndex),h=e.onKeyUp,m=e.rowSpan,g=(e.body,e.tpl,e.remark,e.prefix),b=e.affix,y=e.isHead,v=a.__rest(e,["className","render","style","wrapperComponent","column","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark","prefix","affix","isHead"]),C=a.__assign(a.__assign({},i),{className:p,type:i&&i.type||"plain"}),x=c?c:r("field",C,a.__assign(a.__assign({},v),{value:s,data:d}));return u&&(l=a.__assign(a.__assign({},l),{width:l&&l.width||u}),/%$/.test(String(l.width))||(x=n.default.createElement("div",{style:{width:l.width}},g,x,b),g=null,b=null)),o?(y&&(o="th"),n.default.createElement(o,{rowSpan:m>1?m:void 0,style:l,className:t,tabIndex:f,onKeyUp:h},g,x,b)):x},t.defaultProps={wrapperComponent:"td"},t.propsList=["type","label","column","body","tpl","rowSpan","remark"],t}(n.default.Component);t.TableCell=R;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.propsList=a.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],R.propsList),t=a.__decorate([l.Renderer({test:/(^|\/)table\/(?:.*\/)?cell$/,name:"table-cell"}),v.default(),k.default(),x.default(),f.observer],t)}(R);t.TableCellRenderer=F;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},R.defaultProps),{wrapperComponent:"div"}),t=a.__decorate([l.Renderer({test:/(^|\/)field$/,name:"field"}),k.default(),x.default()],t)}(R);t.FieldRenderer=P}); +;/*!src/renderers/Card.tsx*/ +amis.define("8ee3b98",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.CardItemFieldRenderer=a.CardRenderer=a.Card=void 0;var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),l=e("node_modules/react-dom/index"),s=e("0f9ebdf"),n=e("6a2dbb7"),i=t.__importDefault(e("0a43d97")),d=e("9a80175"),o=e("f2e345e"),c=t.__importDefault(e("b497f17")),m=t.__importDefault(e("bcd7efc")),u=e("f6086a9"),p=t.__importDefault(e("705a434")),h=e("b7bbd16"),C=function(e){function a(a){var t=e.call(this,a)||this;return t.getPopOverContainer=t.getPopOverContainer.bind(t),t.itemRender=t.itemRender.bind(t),t.handleAction=t.handleAction.bind(t),t.handleQuickChange=t.handleQuickChange.bind(t),t.handleClick=t.handleClick.bind(t),t.handleCheck=t.handleCheck.bind(t),t}return t.__extends(a,e),a.prototype.handleClick=function(e){var a,t=e.target,r=this.props.classPrefix;if(!(!e.currentTarget.contains(t)||~["INPUT","TEXTAREA"].indexOf(t.tagName)||(a=t.closest("button, a, ."+r+"Form-item"))&&e.currentTarget.contains(a))){var l=this.props.item;this.props.onCheck&&this.props.onCheck(l)}},a.prototype.handleCheck=function(){var e=this.props.item;this.props.onCheck&&this.props.onCheck(e)},a.prototype.handleAction=function(e,a,t){var r=this.props,l=r.onAction,s=r.item;l&&l(e,a,t||s.data)},a.prototype.handleQuickChange=function(e,a,t){var r=this.props,l=r.onQuickChange,s=r.item;l&&l(s,e,a,t)},a.prototype.getPopOverContainer=function(){return l.findDOMNode(this)},a.prototype.renderToolbar=function(){var e=this.props,a=e.dragging,t=e.selectable,l=e.checkable,s=e.selected,n=(e.onSelect,e.checkOnItemClick),o=e.multiple,c=e.hideCheckToggler,m=e.classnames,u=e.classPrefix;return a?r.default.createElement("div",{className:m("Card-dragBtn")},r.default.createElement(h.Icon,{icon:"drag-bar",className:"icon"})):t&&!c?r.default.createElement("div",{className:m("Card-checkBtn")},r.default.createElement(i.default,{classPrefix:u,type:o?"checkbox":"radio",disabled:!l,checked:s,onChange:n?d.noop:this.handleCheck})):null},a.prototype.renderActions=function(){var e=this,a=this.props,l=a.actions,s=a.render,n=a.dragging,i=a.actionsCount,o=a.data,c=a.classnames;if(Array.isArray(l)){var m=d.padArr(l.filter(function(e){return d.isVisible(e,o)}),i);return m.map(function(a,l){return r.default.createElement("div",{key:l,className:c("Card-actions")},a.map(function(a,r){var l=a.size||"sm";return s("action/"+r,t.__assign(t.__assign({level:"link",type:"button"},a),{size:l}),{isMenuItem:!0,key:r,index:r,disabled:n||d.isDisabled(a,o),className:c("Card-action",a.className||""+(l?"Card-action--"+l:"")),componentClass:"a",onAction:e.handleAction})}))})}return null},a.prototype.renderChild=function(e,a,t){void 0===a&&(a="body"),void 0===t&&(t=0);var r=this.props.render;if("string"==typeof e||"number"==typeof e)return r(a,e,{key:t});var l=e;return"hbox"===l.type||"grid"===l.type?r(a,e,{key:t,itemRender:this.itemRender}):this.renderFeild(a,l,t,this.props)},a.prototype.itemRender=function(e,a,t){return this.renderFeild("column/"+a,e,a,t)},a.prototype.renderFeild=function(e,a,l,s){var n=s.render,i=s.classnames,c=s.itemIndex,m=this.props.data;if(d.isVisible(a,m)){var u=a.$$id?a.$$id+"-field":"";return r.default.createElement("div",{className:i("Card-field"),key:l},a&&a.label?r.default.createElement("label",{className:i("Card-fieldLabel",a.labelClassName)},a.label):null,n(e,t.__assign(t.__assign({},a),{field:a,$$id:u,type:"card-item-field"}),{className:i("Card-fieldValue",a.className),rowIndex:c,colIndex:l,value:a.name?o.resolveVariable(a.name,m):void 0,popOverContainer:this.getPopOverContainer,onAction:this.handleAction,onQuickChange:this.handleQuickChange}))}},a.prototype.renderBody=function(){var e=this,a=this.props.body;return a?Array.isArray(a)?a.map(function(a,t){return e.renderChild(a,"body/"+t,t)}):this.renderChild(a,"body"):null},a.prototype.render=function(){var e=this.props,a=e.className,t=e.data,l=e.header,s=e.render,i=e.bodyClassName,d=e.highlightClassName,o=e.titleClassName,c=e.subTitleClassName,m=e.descClassName,u=e.checkOnItemClick,p=e.avatarClassName,h=e.checkable,C=e.classnames,f=(e.classPrefix,e.imageClassName),b=e.avatarTextClassName,v=null;if(l){var N=l.highlight,g=l.avatar,y=l.avatarText,_=l.title,k=l.subTitle,E=l.subTitlePlaceholder,x=l.desc,T=l.descPlaceholder,A=!!n.evalExpression(N,t),P=n.filter(g,t,"| raw"),I=n.filter(y,t),O=n.filter(_,t),R=n.filter(k,t),w=n.filter(x,t);v=r.default.createElement("div",{className:C("Card-heading",l.className)},P?r.default.createElement("span",{className:C("Card-avtar",l.avatarClassName||p)},r.default.createElement("img",{className:C("Card-img",l.imageClassName||f),src:P})):I?r.default.createElement("span",{className:C("Card-avtarText",l.avatarTextClassName||b)},I):null,r.default.createElement("div",{className:C("Card-meta")},A?r.default.createElement("i",{className:C("Card-highlight",l.highlightClassName||d)}):null,O?r.default.createElement("div",{className:C("Card-title",l.titleClassName||o)},s("title",O)):null,R||E?r.default.createElement("div",{className:C("Card-subTitle",l.subTitleClassName||c)},s("sub-title",R||E,{className:C(R?void 0:"Card-placeholder")})):null,w||T?r.default.createElement("div",{className:C("Card-desc",l.descClassName||m)},s("desc",w||T,{className:w?void 0:"text-muted"})):null))}var $=this.renderBody();return r.default.createElement("div",{onClick:u&&h?this.handleClick:void 0,className:C("Card",a)},this.renderToolbar(),v,$?r.default.createElement("div",{className:C("Card-body",i)},$):null,this.renderActions())},a.defaultProps={className:"",avatarClassName:"",bodyClassName:"",actionsCount:4,titleClassName:"",highlightClassName:"",subTitleClassName:"",descClassName:""},a.propsList=["multiple","avatarClassName","bodyClassName","actionsCount","titleClassName","highlightClassName","subTitleClassName","descClassName","hideCheckToggler"],a}(r.default.Component);a.Card=C;var f=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([s.Renderer({test:/(^|\/)card$/,name:"card"})],a)}(C);a.CardRenderer=f;var b=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.render=function(){var e=this.props,a=(e.type,e.className),l=e.render,s=e.style,n=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,c=e.width,m=e.innerClassName,u=(e.label,e.tabIndex),p=e.onKeyUp,h=e.field,C=t.__rest(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field"]),f=t.__assign(t.__assign({},h),{className:m,type:h&&h.type||"plain"}),b=o?o:l("field",f,t.__assign(t.__assign({},C),{value:i,data:d}));return c&&(s=s||{},s.width=s.width||c,b=r.default.createElement("div",{style:{width:/%/.test(String(c))?"":c}},b)),n?r.default.createElement(n,{style:s,className:a,tabIndex:u,onKeyUp:p},b):b},a.defaultProps=t.__assign(t.__assign({},u.TableCell.defaultProps),{wrapperComponent:"div"}),a.propsList=t.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],u.TableCell.propsList),a=t.__decorate([s.Renderer({test:/(^|\/)card-item-field$/,name:"card-item"}),c.default(),m.default(),p.default()],a)}(u.TableCell);a.CardItemFieldRenderer=b}); +;/*!src/renderers/Date.tsx*/ +amis.define("29e1f6a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeFieldRenderer=t.DateTimeFieldRenderer=t.DateFieldRenderer=t.DateField=void 0;var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),s=a.__importDefault(e("node_modules/moment/moment")),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={random:0},t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,a=t.fromNow,r=t.updateFrequency;a&&r&&(this.refreshInterval=setInterval(function(){e.setState({random:Math.random()})},r))},t.prototype.componentWillUnmount=function(){clearInterval(this.refreshInterval)},t.prototype.render=function(){var e=this.props,t=e.value,a=e.valueFormat,n=e.format,o=e.placeholder,l=e.fromNow,d=e.className,i=e.classnames,u=e.translate,m=r.default.createElement("span",{className:"text-muted"},o);if(t){var f=s.default(t,s.default.ISO_8601),p=s.default(t,a);m=f.isValid()?f.format(n):p.isValid()?p.format(n):!1}return l&&(m=s.default(m).fromNow()),m=m?m:r.default.createElement("span",{className:"text-danger"},u("日期无效")),r.default.createElement("span",{className:i("DateField",d)},m)},t.defaultProps={placeholder:"-",format:"YYYY-MM-DD",valueFormat:"X",fromNow:!1,updateFrequency:6e4},t}(r.default.Component);t.DateField=o;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},o.defaultProps),{format:"YYYY-MM-DD"}),t=a.__decorate([n.Renderer({test:/(^|\/)date$/,name:"date-field"})],t)}(o);t.DateFieldRenderer=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},o.defaultProps),{format:"YYYY-MM-DD HH:mm:ss"}),t=a.__decorate([n.Renderer({test:/(^|\/)datetime$/,name:"datetime-field"})],t)}(o);t.DateTimeFieldRenderer=d;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},o.defaultProps),{format:"HH:mm"}),t=a.__decorate([n.Renderer({test:/(^|\/)time$/,name:"time-field"})],t)}(o);t.TimeFieldRenderer=i}); +;/*!src/renderers/Dialog.tsx*/ +amis.define("e299c64",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogRenderer=void 0;var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),a=e("919cbd9"),r=e("0f9ebdf"),i=e("6a2dbb7"),s=o.__importDefault(e("628f736")),l=o.__importDefault(e("node_modules/lodash/findLast")),d=e("9a80175"),c=e("node_modules/mobx/lib/index"),p=e("b7bbd16"),h=e("4550477"),u=e("node_modules/react-dom/index"),f=e("1953fc1"),m=function(e){function t(t){var o=e.call(this,t)||this;return o.isDead=!1,o.$$id=d.guid(),o.state={entered:!!o.props.show},o.handleSelfClose=o.handleSelfClose.bind(o),o.handleAction=o.handleAction.bind(o),o.handleDialogConfirm=o.handleDialogConfirm.bind(o),o.handleDialogClose=o.handleDialogClose.bind(o),o.handleDrawerConfirm=o.handleDrawerConfirm.bind(o),o.handleDrawerClose=o.handleDrawerClose.bind(o),o.handleEntered=o.handleEntered.bind(o),o.handleExited=o.handleExited.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleFormSaved=o.handleFormSaved.bind(o),o.handleFormChange=o.handleFormChange.bind(o),o.handleChildFinished=o.handleChildFinished.bind(o),o}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.store;this.reaction=c.reaction(function(){return""+t.loading+t.error},function(){return e.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction(),this.isDead=!0},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.confirm,n=e.translate;if("undefined"!=typeof t)return t;var a=[];return a.push({type:"button",actionType:"cancel",label:n("取消")}),o&&a.push({type:"button",actionType:"confirm",label:n("确认"),primary:!0}),a},t.prototype.handleSelfClose=function(){var e=this.props,t=e.onClose,o=e.store;o.updateMessage(),t()},t.prototype.handleAction=function(e,t,o){var n=this.props,a=n.store,r=n.onAction;"reset"===t.type?a.reset():"cancel"===t.actionType?this.handleSelfClose():r&&r(e,t,o)},t.prototype.handleDialogConfirm=function(e,t){for(var n=[],a=2;an;n++){var r=o[n];(r===e||r.raw===e)&&(o.splice(n,1),i--,n--)}},t.prototype.handleChange=function(e,t,o){var n=this.props,i=n.onChange,r=n.store,a=n.submitOnChange;i&&i(r.data,d.difference(r.data,r.pristine),this.props),(o||a)&&this.handleAction(void 0,{type:"submit"},r.data)},t.prototype.handleFormSubmit=function(e){return e.preventDefault(),this.handleAction(e,{type:"submit"},this.props.store.data)},t.prototype.handleAction=function(e,t,n,i,r){var s=this;void 0===i&&(i=!1);var l=this.props,c=l.store,p=l.onSubmit,u=l.api,h=l.asyncApi,f=l.finishedField,m=l.checkInterval,g=l.messages,y=g.saveSuccess,b=g.saveFailed,C=l.resetAfterSubmit,_=l.onAction,A=l.onSaved,D=l.onReset,F=l.onFinished,w=l.onFailed,k=l.redirect,S=l.reload,T=l.target,x=l.env,I=l.onChange,O=l.clearPersistDataAfterSubmit,E=l.trimValues,M=l.translate;if(this.flush(),E&&c.trimValues(),n===this.props.data&&(n=c.data),Array.isArray(t.required)&&t.required.length)return c.validateFields(t.required).then(function(a){a?s.handleAction(e,o.__assign(o.__assign({},t),{required:void 0}),n,i,r):x.notify("error",M("依赖的部分字段没有通过验证,请注意填写!"))});if("submit"===t.type||"submit"===t.actionType||"confirm"===t.actionType)return c.setCurrentAction(t),this.submit(function(e){var i;if(p&&p(e,t)===!1)return Promise.resolve(!1);if(T)s.submitToTarget(T,e);else if("reload"===t.actionType)t.target&&s.reloadTarget(t.target,e);else if("dialog"===t.actionType)c.openDialog(n);else if("drawer"===t.actionType)c.openDrawer(n);else if(v.isEffectiveApi(t.api||u,e)){var r=t.asyncApi||h;return v.isEffectiveApi(r,c.data)&&c.updateData((i={},i[f||"finished"]=!1,i)),c.saveRemote(t.api||u,e,{successMessage:y,errorMessage:b,onSuccess:function(){return v.isEffectiveApi(r,c.data)&&!c.data[f||"finished"]?d.until(function(){return c.checkRemote(r,c.data)},function(e){return e&&e[f||"finished"]},function(e){return s.asyncCancel=e},m):void 0}}).then(function(n){return o.__awaiter(s,void 0,void 0,function(){var i;return o.__generator(this,function(o){switch(o.label){case 0:return A&&A(e,n),t.feedback&&d.isVisible(t.feedback,c.data)?[4,this.openFeedback(t.feedback,c.data)]:[3,2];case 1:if(i=o.sent(),t.feedback.skipRestOnCancel&&!i)throw new d.SkipOperation;o.label=2;case 2:return[2]}})})})}return Promise.resolve(null)}).then(function(e){if(e===!1)return c.data;if(F&&F(e,t)===!1)return e;if(C&&c.reset(D),O&&c.clearPersistData(),t.redirect||k){var o=a.filter(t.redirect||k,c.data);o&&x.jumpTo(o,t)}else(t.reload||S)&&s.reloadTarget(t.reload||S,c.data);return t.close&&s.closeTarget(t.close),e}).catch(function(e){if(!(e instanceof d.SkipOperation)&&(w&&w(e,c.errors),i))throw e});if("reset"===t.type)c.setCurrentAction(t),c.reset(D);else if("dialog"===t.actionType)c.setCurrentAction(t),c.openDialog(n);else if("drawer"===t.actionType)c.setCurrentAction(t),c.openDrawer(n);else{if("ajax"===t.actionType)return c.setCurrentAction(t),v.isEffectiveApi(t.api)?c.saveRemote(t.api,n,{successMessage:M(t.messages&&t.messages.success||y),errorMessage:M(t.messages&&t.messages.failed||b)}).then(function(e){return o.__awaiter(s,void 0,void 0,function(){var n;return o.__generator(this,function(o){switch(o.label){case 0:return e&&I&&I(c.data,d.difference(c.data,c.pristine),this.props),c.validated?[4,this.validate(!0)]:[3,2];case 1:o.sent(),o.label=2;case 2:return t.feedback&&d.isVisible(t.feedback,c.data)?[4,this.openFeedback(t.feedback,c.data)]:[3,4];case 3:o.sent(),o.label=4;case 4:return n=t.redirect&&a.filter(t.redirect,c.data),n&&x.jumpTo(n,t),t.reload&&this.reloadTarget(t.reload,c.data),t.close&&this.closeTarget(t.close),[2]}})})}).catch(function(e){if(w&&w(e,c.errors),i)throw e}):x.alert(M("当 actionType 为 ajax 时,请设置 api 属性"));if("reload"===t.actionType)c.setCurrentAction(t),t.target&&this.reloadTarget(t.target,n);else if(_)return _(e,t,n,i,r||this.context)}},t.prototype.handleDialogConfirm=function(e,t,o,n){var i=this.props,r=i.store,a=i.onChange;(t.mergeData||r.action.mergeData)&&1===e.length&&e[0]&&"form"===n[0].props.type&&(r.updateData(e[0]),a&&a(r.data,d.difference(r.data,r.pristine),this.props)),r.closeDialog(!0)},t.prototype.handleDialogClose=function(){var e=this.props.store;e.closeDialog(!1)},t.prototype.handleDrawerConfirm=function(e,t,o,n){var i=this.props,r=i.store,a=i.onChange;(t.mergeData||r.action.mergeData)&&1===e.length&&e[0]&&"form"===n[0].props.type&&(r.updateData(e[0]),a&&a(r.data,d.difference(r.data,r.pristine),this.props)),r.closeDrawer(!0)},t.prototype.handleDrawerClose=function(){var e=this.props.store;e.closeDrawer(!1)},t.prototype.submitToTarget=function(){},t.prototype.reloadTarget=function(){},t.prototype.closeTarget=function(){},t.prototype.openFeedback=function(e,t){var o=this;return new Promise(function(n){var i=o.props.store;i.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),i.openDialog(t,void 0,function(e){n(e)})})},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.submitText,n=e.controls,i=e.translate;return"undefined"!=typeof t||!o||Array.isArray(n)&&n.some(function(e){return!!~["submit","button","reset","button-group"].indexOf(e.type)})?t:[{type:"submit",label:i(o),primary:!0}]},t.prototype.renderFormItems=function(e,t,o){return void 0===t&&(t=""),void 0===o&&(o={}),this.renderControls(e.controls,t,o)},t.prototype.renderControls=function(e,t,i){var r=this;if(void 0===i&&(i={}),e=e||[],Array.isArray(e)||(e=[e]),"row"===this.props.mode){var a=this.props.classPrefix;return e=p.default(e).filter(function(e){if(e.hidden||e.visible===!1)return!1;var t=l.default(e,r.props.store.data);return t.hidden||t.visible===!1?!1:!0}),e.length?n.default.createElement("div",{className:a+"Form-row"},e.map(function(e,t){return~["hidden","formula"].indexOf(e.type)||"inline"===e.mode?r.renderControl(e,t,i):n.default.createElement("div",{key:t,className:s.default(a+"Form-col",e.columnClassName)},r.renderControl(e,"",o.__assign(o.__assign({},i),{mode:"row"})))})):null}return e.map(function(e,o){return r.renderControl(e,o,i,t)})},t.prototype.renderControl=function(e,t,n,i){if(void 0===t&&(t=""),void 0===n&&(n={}),void 0===i&&(i=""),!e)return null;"string"==typeof e&&(e={type:"tpl",tpl:e});var r=o.__assign(o.__assign({},this.props),n),a=this.props.store,s=r.render,d=r.mode,c=r.horizontal,p=r.store,u=r.disabled,h=r.controlWidth,f=r.resolveDefinitions,m=r.lazyChange,v=r.formLazyChange,g={formStore:a,data:p.data,key:(e.name||"")+"-"+e.type+"-"+t,formInited:a.inited,formMode:d,formHorizontal:c,controlWidth:h,disabled:u||e.disabled||a.loading,btnDisabled:a.loading||a.validating,onAction:this.handleAction,onChange:v===!1?this.handleChange:this.lazyHandleChange,addHook:this.addHook,removeHook:this.removeHook,renderFormItems:this.renderFormItems,formPristine:a.pristine},y="control"===e.type?e:{type:"control",control:e};if(y.control){var b=y.control;if(b.$ref?(y.control=b=o.__assign(o.__assign(o.__assign({},f(b.$ref)),b),l.default(b,p.data)),delete b.$ref):y.control=b=o.__assign(o.__assign({},b),l.default(b,p.data)),b.component&&(b.formItemConfig||void 0!==b.label&&b.name)){var _=this.componentCache.get(b.component);if(_)b.component=_;else{var A=C.asFormItem(o.__assign({strictMode:!1},b.formItemConfig))(b.component);this.componentCache.set(b.component,A),b.component=A}}b.hiddenOn&&(y.hiddenOn=b.hiddenOn),b.visibleOn&&(y.visibleOn=b.visibleOn),m===!1&&(b.changeImmediately=!0)}return s(""+(i?i+"/":"")+t,y,g)},t.prototype.renderBody=function(){var e=this.props,t=e.tabs,i=e.fieldSet,r=e.controls,a=e.mode,s=e.className,l=e.classnames,d=e.debug,c=e.$path,p=e.store,u=e.render,h=this.props.wrapperComponent||(/(?:\/|^)form\//.test(c)?"div":"form");return n.default.createElement(h,{className:l("Form","Form--"+(a||"normal"),s),onSubmit:this.handleFormSubmit,noValidate:!0},d?n.default.createElement("pre",null,n.default.createElement("code",null,JSON.stringify(p.data,null,2))):null,n.default.createElement(g.default,{show:p.loading,overlay:!0}),this.renderFormItems({tabs:t,fieldSet:i,controls:r}),u("modal",o.__assign(o.__assign({},p.action&&p.action.dialog),{type:"dialog"}),{key:"dialog",data:p.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:p.dialogOpen}),u("modal",o.__assign(o.__assign({},p.action&&p.action.drawer),{type:"drawer"}),{key:"drawer",data:p.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:p.drawerOpen}))},t.prototype.render=function(){var e=this.props,t=e.wrapWithPanel,o=e.render,i=e.title,r=e.store,a=e.panelClassName,s=e.headerClassName,l=e.footerClassName,d=e.actionsClassName,c=e.bodyClassName,p=e.classnames,u=e.affixFooter,h=e.lazyLoad,f=e.translate,m=this.renderBody();return t&&(m=o("body",{type:"panel",title:f(i)},{className:p(a,"Panel--form"),children:m,actions:this.buildActions(),onAction:this.handleAction,disabled:r.loading,btnDisabled:r.loading||r.validating,headerClassName:s,footerClassName:l,actionsClassName:d,bodyClassName:c,affixFooter:u})),h&&(m=n.default.createElement(y.LazyComponent,null,m)),m},t.defaultProps={title:"表单",submitText:"提交",initFetch:!0,wrapWithPanel:!0,mode:"normal",collapsable:!1,controlWidth:"full",horizontal:{left:2,right:10,offset:2},panelClassName:"Panel--default",messages:{fetchFailed:"初始化失败",saveSuccess:"保存成功",saveFailed:"保存失败"},wrapperComponent:"",finishedField:"finished",initFinishedField:"finished"},t.propsList=["title","header","controls","tabs","fieldSet","submitText","initFetch","wrapWithPanel","mode","collapsable","horizontal","panelClassName","messages","wrapperComponent","resetAfterSubmit","submitOnInit","submitOnChange","onInit","onReset","onSubmit","onChange","onFailed","onFinished","onSaved","canAccessSuperData","lazyChange","formLazyChange","lazyLoad","formInited"],t}(n.default.Component);t.default=A;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this),e.prototype.componentWillMount.call(this)},t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.props.autoFocus){var t=this.context,o=t.getComponents(),n=u.default(o,function(e){return e.focus});n&&setTimeout(function(){return n.focus()},200)}},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.prototype.doAction=function(e,t,o){return void 0===t&&(t=this.props.store.data),void 0===o&&(o=!1),this.handleAction(void 0,e,t,o)},t.prototype.handleAction=function(t,n,i,r,a){if(void 0===r&&(r=!1),n.target&&"reload"!==n.actionType){var s=this.context;return Promise.all(n.target.split(",").map(function(e){var t=s.getComponentByName(e);return t&&t.doAction&&t.doAction(o.__assign(o.__assign({},n),{target:void 0}),i,r)}))}return e.prototype.handleAction.call(this,t,n,i,r,a)},t.prototype.handleDialogConfirm=function(t,o,n,i){e.prototype.handleDialogConfirm.call(this,t,o,n,i);var r=this.props.store,a=this.context;o.reload?a.reload(o.reload,n):r.action&&r.action.reload&&a.reload(r.action.reload,n)},t.prototype.submitToTarget=function(e,t){var o=this.context;o.send(e,t)},t.prototype.reloadTarget=function(e,t){var o=this.context;o.reload(e,t)},t.prototype.closeTarget=function(e){var t=this.context;t.close(e)},t.prototype.reload=function(t,o,n,i){if(o)return this.receive(o);var r,a=this.context,s="",l=null;t&&~(r=t.indexOf("."))&&(s=t.substring(r+1),t=t.substring(0,r));var d=t?t.indexOf("?"):-1;~d&&(l=m.dataMapping(f.default.parse(t.substring(d+1)),n),t=t.substring(0,d));var c;if(t&&(c=a.getComponentByName(t))&&c.reload)c.reload(s,l,n);else if("*"===t){e.prototype.reload.call(this,t,o,n,i);var p=a.getComponents();p.forEach(function(e){return e.reload&&e.reload("",l,n)})}else e.prototype.reload.call(this,t,o,n,i)},t.prototype.receive=function(t,o){if(o){var n=this.context,i=o.indexOf("."),r="";~i&&(r=o.substring(1+i),o=o.substring(0,i));var a=n.getComponentByName(o);return void(a&&a.receive&&a.receive(t,r))}return e.prototype.receive.call(this,t)},t.contextType=h.ScopedContext,t=o.__decorate([i.Renderer({test:function(e){return/(^|\/)form$/.test(e)&&!/(^|\/)form(?:\/.+)?\/control\/form$/.test(e)},storeType:r.FormStore.name,name:"form",isolateScope:!0})],t)}(A);t.FormRenderer=D}); +;/*!src/renderers/Form/Control.tsx*/ +amis.define("610fd77",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormControlRenderer=void 0;var o=e("node_modules/tslib/tslib"),i=o.__importDefault(e("node_modules/react/index")),n=o.__importDefault(e("node_modules/lodash/debounce")),r=e("0f9ebdf"),a=e("3fbfd93"),l=e("9a80175"),s=e("919cbd9"),d=e("node_modules/mobx/lib/index"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lazyValidate=n.default(t.validate.bind(t),250,{trailing:!0,leading:!1}),t.lazyEmitChange=n.default(t.emitChange.bind(t),250,{trailing:!0,leading:!1}),t.state={value:t.value=t.props.control.value},t}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props,o=t.formStore,i=t.control,n=i.name,r=i.id,l=i.type,s=i.required,h=i.validations,u=i.validationErrors,p=i.unique,m=i.value,c=i.multiple,v=i.delimiter,f=i.valueField,g=i.labelField,y=i.joinValues,C=i.extractValue;if(this.getValue=this.getValue.bind(this),this.setValue=this.setValue.bind(this),this.handleChange=this.handleChange.bind(this),this.handleBulkChange=this.handleBulkChange.bind(this),this.setPrinstineValue=this.setPrinstineValue.bind(this),this.controlRef=this.controlRef.bind(this),this.handleBlur=this.handleBlur.bind(this),n){var b=this.model=o.registryItem(n,{id:r,type:l,required:s,unique:p,value:m,rules:h,messages:u,multiple:c,delimiter:v,valueField:f,labelField:g,joinValues:y,extractValue:C});if(this.model.unique&&o.parentStore&&o.parentStore.storeType===a.ComboStore.name){var V=o.parentStore;V.bindUniuqueItem(this.model)}this.setState({value:this.value=b.value}),this.reaction=d.reaction(function(){return b.value},function(t){return e.setState({value:e.value=t})})}},t.prototype.componentDidMount=function(){var e=this,t=this.props,o=(t.store,t.formStore),i=t.control,n=(i.name,i.validate),r=t.addHook;this.hook3=function(){e.lazyEmitChange.flush(),e.lazyValidate.flush()},r(this.hook3,"flush");var a=this.model;if(a&&n){var s=l.promisify(n.bind(a));this.hook2=function(){return a.clearError("control:valdiate"),s(o.data,a.value,a.name).then(function(e){("string"==typeof e||Array.isArray(e))&&e&&a.addError(e,"control:valdiate")})},r(this.hook2)}},t.prototype.componentWillReceiveProps=function(e){{var t=this.props;e.formStore}this.model&&l.anyChanged(["id","validations","validationErrors","value","required","unique","multiple","delimiter","valueField","labelField","joinValues","extractValue"],t.control,e.control)&&this.model.config({required:e.control.required,id:e.control.id,unique:e.control.unique,value:e.control.value,rules:e.control.validations,multiple:e.control.multiple,delimiter:e.control.delimiter,valueField:e.control.valueField,labelField:e.control.labelField,joinValues:e.control.joinValues,extractValue:e.control.extractValue,messages:e.control.validationErrors})},t.prototype.componentWillUnmount=function(){this.hook&&this.props.removeHook(this.hook),this.hook2&&this.props.removeHook(this.hook2),this.hook3&&this.props.removeHook(this.hook3,"flush"),this.lazyValidate.cancel(),this.lazyEmitChange.cancel(),this.reaction&&this.reaction(),this.disposeModel()},t.prototype.disposeModel=function(){var e=this.props.formStore;if(this.model&&this.model.unique&&e.parentStore&&e.parentStore.storeType===a.ComboStore.name){var t=e.parentStore;t.unBindUniuqueItem(this.model)}this.model&&e.unRegistryItem(this.model)},t.prototype.controlRef=function(e){for(var t=this.props,o=t.addHook,i=t.removeHook,n=t.formStore;e&&e.getWrappedInstance;)e=e.getWrappedInstance();if(e&&e.validate&&this.model){var r=this.model,a=l.promisify(e.validate.bind(e));this.hook=function(){return r.clearError("component:valdiate"),a(n.data,r.value,r.name).then(function(e){("string"==typeof e||Array.isArray(e))&&e&&r.setError(e,"component:valdiate")})},o(this.hook)}else!e&&this.hook&&(i(this.hook),this.hook=void 0);this.control=e},t.prototype.validate=function(){var e=this,t=this.props.formStore;if(this.model)if(this.model.unique&&t.parentStore&&t.parentStore.storeType===a.ComboStore.name){var o=t.parentStore,i=o.uniques.get(this.model.name);i.items.forEach(function(e){return e.validate()})}else this.model.validate(this.hook),t.getItemsByName(this.model.name).forEach(function(t){return t!==e.model&&t.validate()})},t.prototype.handleChange=function(e,t,o){void 0===t&&(t=this.props.control.submitOnChange),void 0===o&&(o=!1);var i=this.props,n=i.formStore,r=i.onChange,a=i.control,l=a.type,s=a.pipeOut,d=a.changeImmediately,h=i.formInited;if(!this.model||~["service","group","hbox","panel","grid"].indexOf(l))return void(r&&r.apply(void 0,arguments));if(s){var u=this.model.value;e=s(e,u,n.data)}this.setState({value:this.value=e}),o||d||!h?this.emitChange(t):this.lazyEmitChange(t)},t.prototype.emitChange=function(e){void 0===e&&(e=this.props.control.submitOnChange);var t=this.props,o=t.formStore,i=t.onChange,n=t.control,r=n.validateOnChange,a=n.name,l=n.onChange;if(this.model){var s=this.value,d=this.model.value;d!==s&&(this.model.changeValue(s),r===!0||r!==!1&&(o.submited||this.model.validated)?this.lazyValidate():r!==!1||this.model.valid||this.model.reset(),l&&l(s,d,this.model,o),i&&i(s,a,e===!0))}},t.prototype.handleBlur=function(e){var t=this.props,o=t.onBlur,i=t.control.validateOnBlur;i&&this.model&&this.validate(),o&&o(e)},t.prototype.handleBulkChange=function(e,t){void 0===t&&(t=this.props.control.submitOnChange);var o=this.props,i=o.formStore,n=o.onChange,r=o.control,a=r.validateOnChange,s=r.type,d=o.onBulkChange;if(l.isObject(e)){if(!this.model||~["service","group","hbox","panel","grid"].indexOf(s))return void(d&&d(e));var h,u="";Object.keys(e).forEach(function(t){var o=e[t];u=t,h=o}),u&&(i.setValues(e),a!==!1&&(i.submited||this.model.validated)&&this.lazyValidate(),n&&n(h,u,t===!0))}},t.prototype.setPrinstineValue=function(e){if(this.model){var t=this.props,o=t.formStore,i=t.control.pipeOut;if(i){var n=this.model.value;e=i(e,n,o.data)}this.model.changeValue(e,!0)}},t.prototype.getValue=function(){var e=this.props,t=e.formStore,o=e.control,i=this.state.value;return o.pipeIn&&(i=o.pipeIn(i,t.data)),i},t.prototype.setValue=function(e,t){var o,i=this.props.control.name;t&&t!==i?this.handleBulkChange((o={},o[t]=e,o)):this.handleChange(e)},t.prototype.render=function(){var e=this.props,t=e.render,i=e.control,n=(i.pipeIn,i.pipeOut,i.onChange,o.__rest(i,["pipeIn","pipeOut","onChange"])),r=e.formMode,a=e.controlWidth,l=(e.type,e.store),s=e.data,d=e.disabled,h=e.onChange,u=o.__rest(e,["render","control","formMode","controlWidth","type","store","data","disabled","onChange"]),p=this.model,m=this.getValue();return t("",n,o.__assign(o.__assign({},u),{defaultSize:a,disabled:d||n.disabled,formItem:p,formMode:n.mode||r,ref:this.controlRef,defaultValue:n.value,data:l?l.data:s,value:m,formItemValue:m,onChange:"input-group"===n.type?h:this.handleChange,onBlur:this.handleBlur,setValue:this.setValue,getValue:this.getValue,onBulkChange:this.handleBulkChange,prinstine:p?p.prinstine:void 0,setPrinstineValue:this.setPrinstineValue}))},t.propsList=["control"],t.defaultProps={},t}(i.default.PureComponent);t.default=h;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.controlRef=function(t){var o=this.control;e.prototype.controlRef.call(this,t);var i=this.context;this.control&&(t?i.registerComponent(this.control):i.unRegisterComponent(o))},t.displayName="Control",t.contextType=s.ScopedContext,t=o.__decorate([r.Renderer({test:function(e){return/(^|\/)form(?:\/.*)?\/control$/i.test(e)&&!/\/control\/control$/i.test(e)},name:"control"})],t)}(h);t.FormControlRenderer=u}); +;/*!src/renderers/Form/Hidden.tsx*/ +amis.define("dd5dcd2",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HiddenControlRenderer=void 0;var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),d=e("567b83c"),u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){return null},n}(r.default.Component);n.default=u;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([d.FormItem({type:"hidden",wrap:!1,sizeMutable:!1})],n)}(u);n.HiddenControlRenderer=o}); +;/*!src/renderers/Form/Text.tsx*/ +amis.define("a1e61d2",function(e,t){"use strict";function n(e,t,n){return void 0===n&&(n="value"),e.filter(function(e){return-1===t.indexOf(e[n||"value"])}).reduce(function(e,t,a){return e[t[n||"value"]]=a,e},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.UrlControlRenderer=t.EmailControlRenderer=t.PasswordControlRenderer=t.TextControlRenderer=t.mapItemIndex=void 0;var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),o=e("b86428a"),i=a.__importDefault(e("node_modules/classnames/index")),s=a.__importDefault(e("node_modules/downshift/dist/downshift.cjs")),u=a.__importDefault(e("node_modules/match-sorter/dist/match-sorter.cjs")),r=a.__importDefault(e("node_modules/lodash/debounce")),d=e("6a2dbb7"),p=a.__importDefault(e("node_modules/lodash/find")),c=e("b7bbd16"),h=a.__importDefault(e("4ee46ff")),f=e("9a80175"),m=e("1caead1"),v=a.__importDefault(e("acad559")),C=function(e){function t(t){{var n=e.call(this,t)||this;t.value}return n.state={isOpen:!1,inputValue:"",isFocused:!1},n.focus=n.focus.bind(n),n.clearValue=n.clearValue.bind(n),n.inputRef=n.inputRef.bind(n),n.handleClick=n.handleClick.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.handleStateChange=n.handleStateChange.bind(n),n.loadAutoComplete=r.default(n.loadAutoComplete.bind(n),250,{trailing:!0,leading:!1}),n}a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.value!==e.value){{e.value}this.setState({inputValue:""})}},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.formItem,l=t.autoComplete,o=t.addHook,i=t.formInited,s=t.data;m.isEffectiveApi(l,s)&&n&&(i?n.loadOptions(l,f.createObject(s,{term:""})):this.unHook=o(function(t){return a.__awaiter(e,void 0,void 0,function(){return a.__generator(this,function(e){switch(e.label){case 0:return[4,n.loadOptions(l,f.createObject(t,{term:""}))];case 1:return e.sent(),n.value&&f.setVariable(t,name,n.value),[2]}})})},"init"))},t.prototype.componentWillUnmount=function(){this.unHook&&this.unHook()},t.prototype.inputRef=function(e){this.input=e},t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.clearValue=function(){var e=this,t=this.props,n=t.onChange,a=t.resetValue;n(a),this.setState({inputValue:a},function(){e.focus(),e.loadAutoComplete()})},t.prototype.removeItem=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,s=t.valueField,u=n.concat();u.splice(e,1),a(l?u.map(function(e){return e[s||"value"]}).join(i||","):o?u.map(function(e){return e[s||"value"]}):u)},t.prototype.handleClick=function(){this.focus(),this.setState({isOpen:!0})},t.prototype.handleFocus=function(e){this.setState({isOpen:!0,isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,l=t.value,o=t.onChange;this.setState({isFocused:!1},function(){a&&l&&"string"==typeof l&&o(l.trim())}),n&&n(e)},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value;this.setState({inputValue:t},this.loadAutoComplete)},t.prototype.handleKeyDown=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,s=t.multiple,u=t.valueField;if(n.length&&!this.state.inputValue&&8===e.keyCode){e.preventDefault();var r=n.concat();r.pop(),a(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r),this.setState({inputValue:""},this.loadAutoComplete)}else if(13===e.keyCode&&this.state.inputValue&&"number"!=typeof this.highlightedIndex){e.preventDefault();var d=this.state.inputValue;if(s){if(d&&!p.default(n,function(e){return e.value==d})){var r=n.concat();r.push({label:d,value:d}),a(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r)}}else a(d);this.setState({inputValue:"",isOpen:!1},this.loadAutoComplete)}else 13===e.keyCode&&this.state.isOpen&&"number"!=typeof this.highlightedIndex&&this.setState({isOpen:!1})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple,l=t.joinValues,o=t.extractValue,i=t.delimiter,s=t.selectedOptions,u=t.valueField;if(a){var r=s.concat();r.push({label:e,value:e}),n(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r)}else n(e);this.setState({inputValue:""},this.loadAutoComplete)},t.prototype.handleStateChange=function(e){var t=this.props.multiple||this.props.multi;switch(e.type){case s.default.stateChangeTypes.itemMouseEnter:this.setState({isOpen:!0});break;case s.default.stateChangeTypes.changeInput:this.setState({isOpen:!0});break;default:var n={};"undefined"!=typeof e.isOpen&&(n.isOpen=e.isOpen),"undefined"!=typeof e.highlightedIndex&&(this.highlightedIndex=e.highlightedIndex),!t&&this.state.isOpen&&e.isOpen===!1&&(n.inputValue=""),this.setState(n)}},t.prototype.handleNormalInputChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;t(n)},t.prototype.loadAutoComplete=function(){var e=this.props,t=e.formItem,n=e.autoComplete,a=e.data;m.isEffectiveApi(n,a)&&t&&t.loadOptions(n,f.createObject(a,{term:this.state.inputValue||t.lastSelectValue}))},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.renderSugestMode=function(){var e=this,t=this.props,i=t.className,r=t.inputOnly,d=t.value,p=t.type,f=t.placeholder,m=t.classnames,C=t.disabled,g=t.name,y=t.loading,b=t.clearable,_=t.options,x=t.selectedOptions,O=t.autoComplete,V=t.labelField,I=t.valueField,N=t.multiple,E=t.translate;return l.default.createElement(s.default,{isOpen:this.state.isOpen,inputValue:this.state.inputValue,onChange:this.handleChange,onStateChange:this.handleStateChange,selectedItem:x.map(function(e){return e[I||"value"]})},function(t){var s,T=t.getInputProps,S=t.getItemProps,F=t.isOpen,k=t.inputValue,w=t.selectedItem,D=t.highlightedIndex,R=k&&F&&!O?u.default(_,k,{keys:[V||"label",I||"value"]}):_,j=F?n(R,w):{};return R=R.filter(function(e){return!~w.indexOf(e.value)}),!R.length&&e.state.inputValue&&R.push((s={},s[V||"label"]=e.state.inputValue,s[I||"value"]=e.state.inputValue,s.isNew=!0,s)),l.default.createElement("div",{className:m("TextControl-input TextControl-input--withAC",r?i:"",{"is-opened":F,"TextControl-input--multiple":N}),onClick:e.handleClick},l.default.createElement("div",{className:m("TextControl-valueWrap")},!f||x.length||e.state.inputValue||e.state.isFocused?null:l.default.createElement("div",{className:m("TextControl-placeholder")},f),x.map(function(t,n){return N?l.default.createElement("div",{className:m("TextControl-value"),key:n},l.default.createElement("span",{className:m("TextControl-valueIcon"),onClick:e.removeItem.bind(e,n)},"×"),l.default.createElement("span",{className:m("TextControl-valueLabel")},t[V||"label"])):k&&F?null:l.default.createElement("div",{className:m("TextControl-value"),key:n},t.label)}),l.default.createElement(h.default,a.__assign({},T({name:g,ref:e.inputRef,disabled:C,type:p,onFocus:e.handleFocus,onBlur:e.handleBlur,onChange:e.handleInputChange,onKeyDown:e.handleKeyDown}),{autoComplete:"off",size:10}))),b&&!C&&d?l.default.createElement("a",{onClick:e.clearValue,className:m("TextControl-clear")},l.default.createElement(c.Icon,{icon:"close",className:"icon"})):null,y?l.default.createElement(v.default,{show:!0,icon:"reload",spinnerClassName:m("TextControl-spinner")}):null,F&&R.length?l.default.createElement("div",{className:m("TextControl-sugs")},R.map(function(e){return l.default.createElement("div",a.__assign({},S({item:e.value,disabled:e.disabled,className:m("TextControl-sugItem",{"is-highlight":D===j[e.value],"is-disabled":e.disabled})}),{key:e.value}),e.isNew?l.default.createElement("span",null,E("新增:{{label}}",{label:e.label}),l.default.createElement(c.Icon,{icon:"enter",className:"icon"})):l.default.createElement("span",null,e.disabled?e.label:o.highlight(e.label,k),e.tip))})):null)})},t.prototype.renderNormal=function(){var e=this.props,t=e.classPrefix,n=e.classnames,a=e.className,o=e.inputOnly,i=e.value,s=e.type,u=e.placeholder,r=(e.onChange,e.disabled),d=e.readOnly,p=e.clearable,h=e.name;return l.default.createElement("div",{className:n("TextControl-input",o?a:"")},l.default.createElement("input",{name:h,placeholder:u,ref:this.inputRef,disabled:r,readOnly:d,type:s,onFocus:this.handleFocus,onBlur:this.handleBlur,autoComplete:"off",size:10,onChange:this.handleNormalInputChange,value:"undefined"==typeof i||null===i?"":"string"==typeof i?i:JSON.stringify(i)}),p&&!r&&i?l.default.createElement("a",{onClick:this.clearValue,className:t+"TextControl-clear"},l.default.createElement(c.Icon,{icon:"close",className:"icon"})):null)},t.prototype.render=function(){var e,t=this.props,n=t.className,a=t.classPrefix,o=t.options,s=t.source,u=t.autoComplete,r=t.addOn,p=t.render,c=t.data,h=t.disabled,f=t.inputOnly,m="string"==typeof r?{label:r,type:"plain"}:r,v=u!==!1&&(s||o.length||u)?this.renderSugestMode():this.renderNormal(),C=m?m.actionType||~["button","submit","reset","action"].indexOf(m.type)?l.default.createElement("div",{className:i.default(a+"TextControl-button",m.className)},p("addOn",m,{disabled:h})):l.default.createElement("div",{className:i.default(a+"TextControl-addOn",m.className)},m.label?d.filter(m.label,c):null,m.icon&&l.default.createElement("i",{className:m.icon})):null;return f?v:l.default.createElement("div",{className:i.default(n,a+"TextControl",(e={},e[a+"TextControl--withAddOn"]=!!C,e["is-focused"]=this.state.isFocused,e["is-disabled"]=h,e))},m&&"left"===m.position?C:null,v,m&&"left"!==m.position?C:null)};var C;return t.defaultProps={resetValue:"",labelField:"label",valueField:"value",placeholder:"",allowInputText:!0},a.__decorate([f.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(C="undefined"!=typeof l.default&&l.default.ChangeEvent)?C:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleNormalInputChange",null),t}(l.default.PureComponent);t.default=C,t.mapItemIndex=n;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"text"})],t)}(C);t.TextControlRenderer=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"password"})],t)}(C);t.PasswordControlRenderer=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"email",validations:"isEmail"})],t)}(C);t.EmailControlRenderer=b;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"url",validations:"isUrl"})],t)}(C);t.UrlControlRenderer=_}); +;/*!src/components/ListMenu.tsx*/ +amis.define("10c485a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListMenu=void 0;var n=e("node_modules/tslib/tslib"),i=e("256b65d"),r=n.__importDefault(e("node_modules/react/index")),s=e("5ab4e9d"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderItem=function(e,t,i){var s=this,a=this.props,l=a.classnames,d=a.itemRender,u=a.disabled,c=a.getItemProps,o=a.highlightIndex,m=a.selectedOptions,p=a.onSelect;if(Array.isArray(t.children)&&t.children.length){var f={items:[],index:e.index};return e.items.push(r.default.createElement("div",{className:l("ListMenu-group"),key:i},r.default.createElement("div",{className:l("ListMenu-groupLabel")},d(t)),t.children.reduce(function(e,t,n){return s.renderItem(e,t,n)},f).items)),e.index=f.index,e}var h=e.index++;return e.items.push(r.default.createElement("div",n.__assign({className:l("ListMenu-item",t.className,u||t.disabled?"is-disabled":"",h===o?"is-highlight":"",~(m||[]).indexOf(t)?"is-active":""),key:h,onClick:p?function(e){return p(e,t)}:void 0},c({item:t,index:h})),r.default.createElement("div",{className:l("ListMenu-itemLabel")},d(t)))),e},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,i=t.options,s=t.placeholder,a=t.prefix,l=t.children,d=this.props.translate;return r.default.createElement("div",{className:n("ListMenu")},a,Array.isArray(i)&&i.length?i.reduce(function(t,n,i){return e.renderItem(t,n,i)},{items:[],index:0}).items:r.default.createElement("span",{className:n("ListMenu-placeholder")},d(s)),l)},t.defaultProps={placeholder:"暂无选项",itemRender:function(e){return r.default.createElement(r.default.Fragment,null,e.label)},getItemProps:function(){return null}},t}(r.default.Component);t.ListMenu=a,t.default=i.themeable(s.localeable(a))}); +;/*!src/renderers/Form/Tag.tsx*/ +amis.define("e1b1eb7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("b86428a"),i=a.__importDefault(e("node_modules/downshift/dist/downshift.cjs")),r=a.__importDefault(e("node_modules/lodash/find")),d=e("node_modules/react-dom/index"),u=a.__importDefault(e("d14c6a1")),l=e("9a80175"),p=a.__importDefault(e("acad559")),s=a.__importDefault(e("997df41")),c=a.__importDefault(e("2b3dcdf")),m=a.__importDefault(e("10c485a")),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.input=n.default.createRef(),t.state={isOpened:!1,inputValue:"",isFocused:!1},t}a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.value!==e.value&&this.setState({inputValue:""})},t.prototype.addItem=function(e){var t=this.props,a=t.selectedOptions,n=t.onChange,o=t.joinValues,i=t.extractValue,d=t.delimiter,u=t.valueField,l=a.concat();r.default(l,function(t){return t.value==e.value})||(l.push(e),n(o?l.map(function(e){return e[u||"value"]}).join(d||","):i?l.map(function(e){return e[u||"value"]}):l))},t.prototype.handleFocus=function(e){var t,a;this.setState({isFocused:!0,isOpened:!0}),null===(a=(t=this.props).onFocus)||void 0===a?void 0:a.call(t,e)},t.prototype.handleBlur=function(e){var t,a,n=this.props,o=n.selectedOptions,i=n.onChange,d=n.joinValues,u=n.extractValue,l=n.delimiter,p=n.valueField,s=this.state.inputValue.trim();null===(a=(t=this.props).onBlur)||void 0===a?void 0:a.call(t,e),this.setState({isFocused:!1,isOpened:!1,inputValue:""},s?function(){var e=o.concat();if(!r.default(e,function(e){return e.value===s})){var t={label:s,value:s};e.push(t),i(d?e.map(function(e){return e[p||"value"]}).join(l||","):u?e.map(function(e){return e[p||"value"]}):e)}}:void 0)},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleInputChange=function(e){this.setState({inputValue:e})},t.prototype.handleChange=function(e){var t=this.props,a=t.joinValues,n=t.extractValue,o=t.delimiter,i=t.valueField,r=t.onChange,d=Array.isArray(e)?e.concat():[];(a||n)&&(d=e.map(function(e){return e[i||"value"]})),a&&(d=d.join(o||",")),r(d)},t.prototype.renderItem=function(e){var t=this.props.labelField;return e[t||"label"]},t.prototype.handleKeyDown=function(e){var t=this.props,a=t.selectedOptions,n=t.onChange,o=t.joinValues,i=t.extractValue,d=t.delimiter,u=t.valueField,l=this.state.inputValue.trim();if(a.length&&!l&&"Backspace"==e.key){var p=a.concat();p.pop(),n(o?p.map(function(e){return e[u||"value"]}).join(d||","):i?p.map(function(e){return e[u||"value"]}):p)}else if(l&&("Enter"===e.key||e.key===d)){e.preventDefault(),e.stopPropagation();var p=a.concat();r.default(p,function(e){return e.value==l})||(p.push({label:l,value:l}),n(o?p.map(function(e){return e[u||"value"]}).join(d||","):i?p.map(function(e){return e[u||"value"]}):p)),this.setState({inputValue:""})}},t.prototype.handleOptionChange=function(e){!this.state.inputValue&&e&&this.addItem(e)},t.prototype.getTarget=function(){return this.input.current},t.prototype.getParent=function(){return this.input.current&&d.findDOMNode(this.input.current).parentElement},t.prototype.reload=function(){var e=this.props.reloadOptions;null===e||void 0===e?void 0:e()},t.prototype.render=function(){var e=this,t=this.props,o=t.className,r=t.classnames,d=t.disabled,_=t.placeholder,f=t.name,h=t.clearable,g=t.selectedOptions,y=t.loading,v=t.popOverContainer,b=t.dropdown,O=t.options,C=t.optionsTip,F=t.translate,V=Array.isArray(O)?l.filterTree(O,function(e){return Array.isArray(e.children)&&!!e.children.length||void 0!==e.value&&!~g.indexOf(e)},0,!0):[];return n.default.createElement(i.default,{selectedItem:g,isOpen:this.state.isFocused,inputValue:this.state.inputValue,onChange:this.handleOptionChange,itemToString:this.renderItem},function(t){var i=t.isOpen,l=t.highlightedIndex,I=t.getItemProps,j=t.getInputProps;return n.default.createElement("div",{className:r(o,"TagControl")},n.default.createElement(u.default,a.__assign({},j({name:f,ref:e.input,placeholder:F(_||"暂无标签"),value:e.state.inputValue,onKeyDown:e.handleKeyDown,onFocus:e.handleFocus,onBlur:e.handleBlur,disabled:d}),{onChange:e.handleInputChange,className:r("TagControl-input"),result:g,onResultChange:e.handleChange,itemRender:e.renderItem,clearable:h,allowInput:!0}),y?n.default.createElement(p.default,{size:"sm"}):void 0),b!==!1?n.default.createElement(s.default,{container:v||e.getParent,target:e.getTarget,placement:"auto",show:i&&!!V.length},n.default.createElement(c.default,{overlay:!0,className:r("TagControl-popover"),onHide:e.close},n.default.createElement(m.default,{options:V,itemRender:e.renderItem,highlightIndex:l,getItemProps:function(e){var t=e.item,n=e.index;return a.__assign({},I({index:n,item:t,disabled:t.disabled}))}}))):n.default.createElement("div",{className:r("TagControl-sug")},C?n.default.createElement("div",{className:r("TagControl-sugTip")},F(C)):null,O.map(function(t,a){return n.default.createElement("div",{className:r("TagControl-sugItem",{"is-disabled":t.disabled||d}),key:a,onClick:e.addItem.bind(e,t)},t.label)})))})};var _,f,h,g;return t.defaultProps={resetValue:"",labelField:"label",valueField:"value",multiple:!0,placeholder:"暂无标签",optionsTip:"最近您使用的标签"},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(_="undefined"!=typeof Array&&Array)?_:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(f="undefined"!=typeof o.Option&&o.Option)?f:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"renderItem",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(h="undefined"!=typeof n.default&&n.default.KeyboardEvent)?h:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleKeyDown",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(g="undefined"!=typeof o.Option&&o.Option)?g:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleOptionChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getTarget",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getParent",null),t}(n.default.PureComponent);t.default=_;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"tag"})],t)}(_);t.TagControlRenderer=f}); +;/*!src/renderers/Form/Number.tsx*/ +amis.define("85dae7e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),a=e("567b83c"),i=n.__importDefault(e("node_modules/classnames/index")),o=e("6a2dbb7"),l=n.__importDefault(e("10d195e")),s=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=n.handleChange.bind(n),n}return n.__extends(t,e),t.prototype.handleChange=function(e){var t=this.props,n=(t.classPrefix,t.onChange),r=t.resetValue;n("undefined"==typeof e?r||"":e)},t.prototype.filterNum=function(e){return"number"!=typeof e&&(e=o.filter(e,this.props.data),e=/^[-]?\d+/.test(e)?parseInt(e,10):void 0),e},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,a=e.value,o=e.step,s=e.precision,u=e.max,d=e.min,p=e.disabled,f=e.placeholder,m={};return"number"==typeof s&&(m.precision=s),r.default.createElement("div",{className:i.default(n+"NumberControl",t)},r.default.createElement(l.default,{value:a,step:o,max:this.filterNum(u),min:this.filterNum(d),onChange:this.handleChange,disabled:p,placeholder:f,precision:s}))},t.defaultProps={step:1,resetValue:""},t}(r.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps={validations:"isNumeric"},t=n.__decorate([a.FormItem({type:"number"})],t)}(s);t.NumberControlRenderer=u}); +;/*!src/renderers/Form/Textarea.tsx*/ +amis.define("eff65fe",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextAreaControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),o=e("567b83c"),u=n.__importDefault(e("node_modules/classnames/index")),r=n.__importDefault(e("05807e2")),i=e("node_modules/react-dom/index"),d=e("9a80175"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=function(e){return t.input=i.findDOMNode(e)},t}n.__extends(t,e),t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;t(n)},t.prototype.handleFocus=function(e){var t=this.props.onFocus;t&&t(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,o=t.value,u=t.onChange;a&&o&&"string"==typeof o&&u(o.trim()),n&&n(e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=e.value,i=e.type,d=e.placeholder,s=e.disabled,l=e.minRows,p=e.maxRows,f=e.name;return a.default.createElement(r.default,{autoComplete:"off",ref:this.inputRef,name:f,disabled:s,type:i,className:u.default(n+"TextareaControl",t),value:"undefined"==typeof o||null===o?"":"string"==typeof o?o:JSON.stringify(o),placeholder:d,minRows:l,maxRows:p,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})};var o,s,l;return t.defaultProps={minRows:3,maxRows:20},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof a.default&&a.default.ChangeEvent)?o:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof a.default&&a.default.FocusEvent)?s:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof a.default&&a.default.FocusEvent)?l:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),t}(a.default.Component);t.default=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.FormItem({type:"textarea"})],t)}(s);t.TextAreaControlRenderer=l}); +;/*!src/renderers/Form/Checkboxes.tsx*/ +amis.define("2b693f3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),l=e("b86428a"),o=n.__importDefault(e("0a43d97")),r=n.__importDefault(e("node_modules/lodash/chunk")),i=e("b7bbd16"),d=e("9a80175"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.defaultCheckAll,n=e.onToggleAll;t&&n()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.options,a=t.onToggleAll,l=t.defaultCheckAll,o=e.options;l&&o!=n&&a()},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.handleAddClick=function(){var e=this.props.onAdd;e&&e()},t.prototype.handleEditClick=function(e,t){var n=this.props.onEdit;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.handleDeleteClick=function(e,t){var n=this.props.onDelete;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.renderGroup=function(e,t){var n=this,l=this.props,o=l.classnames,r=l.labelField;return a.default.createElement("div",{key:t,className:o("CheckboxesControl-group",e.className)},a.default.createElement("label",{className:o("CheckboxesControl-groupLabel",e.labelClassName)},e[r||"label"]),e.children&&e.children.length?e.children.map(function(e,t){return n.renderItem(e,t)}):null)},t.prototype.renderItem=function(e,t){var n=this;if(e.children)return this.renderGroup(e,t);var l=this.props,r=l.itemClassName,d=l.onToggle,s=l.selectedOptions,c=l.disabled,u=l.inline,p=l.labelClassName,m=l.labelField,f=l.removable,h=l.editable;return a.default.createElement(o.default,{className:r,key:t,onChange:function(){return d(e)},checked:!!~s.indexOf(e),disabled:c||e.disabled,inline:u,labelClassName:p,description:e.description},f?a.default.createElement("a",{"data-tooltip":"移除","data-position":"left"},a.default.createElement(i.Icon,{icon:"minus",className:"icon",onClick:function(t){return n.handleDeleteClick(t,e)}})):null,h?a.default.createElement("a",{"data-tooltip":"编辑","data-position":"left"},a.default.createElement(i.Icon,{icon:"pencil",className:"icon",onClick:function(t){return n.handleEditClick(t,e)}})):null,e[m||"label"])},t.prototype.render=function(){var e=this,t=this.props,n=t.className,l=t.disabled,d=t.placeholder,s=t.options,c=t.inline,u=t.columnsCount,p=t.selectedOptions,m=(t.onToggle,t.onToggleAll),f=t.checkAll,h=t.classnames,b=t.itemClassName,_=t.labelClassName,C=t.creatable,g=t.addApi,y=t.createBtnLabel,k=t.translate,v=[];if(s&&s.length&&(v=s.map(function(t,n){return e.renderItem(t,n)})),f&&v.length&&v.unshift(a.default.createElement(o.default,{key:"checkall",className:b,onChange:m,checked:!!p.length,partial:!(!p.length||p.length===s.length),disabled:l,inline:c,labelClassName:_},"全选/不选")),!c&&u>1){var E=12/u,N="Grid-col--sm"+(E===Math.round(E)?E:"");v=r.default(v,u).map(function(e,t){return a.default.createElement("div",{className:h("Grid"),key:t},Array.from({length:u}).map(function(t,n){return a.default.createElement("div",{key:n,className:h(N)},e[n])}))})}return a.default.createElement("div",{className:h("CheckboxesControl",n)},v&&v.length?v:a.default.createElement("span",{className:"Form-placeholder"},k(d)),!C&&!g||l?null:a.default.createElement("a",{className:h("Checkboxes-addBtn"),onClick:this.handleAddClick},a.default.createElement(i.Icon,{icon:"plus",className:"icon"}),k(y)))};var l,s;return t.defaultProps={columnsCount:1,multiple:!0,placeholder:"暂无选项",creatable:!1,createBtnLabel:"新增选项"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAddClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof Event&&Event)?l:Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleEditClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof Event&&Event)?s:Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleDeleteClick",null),t}(a.default.Component);t.default=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.OptionsControl({type:"checkboxes",sizeMutable:!1})],t)}(s);t.CheckboxesControlRenderer=c}); +;/*!src/renderers/Form/Checkbox.tsx*/ +amis.define("5ade3b1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),l=n.__importDefault(e("node_modules/react/index")),a=e("567b83c"),r=n.__importDefault(e("node_modules/classnames/index")),u=n.__importDefault(e("0a43d97")),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.value,a=e.trueValue,o=e.falseValue,s=e.option,d=e.onChange,i=e.disabled,c=e.render,f=e.classPrefix;return l.default.createElement("div",{className:r.default(f+"CheckboxControl",t)},l.default.createElement(u.default,{inline:!0,value:n||"",trueValue:a,falseValue:o,disabled:i,onChange:function(e){return d(e)}},s?c("option",s):null))},t.defaultProps={trueValue:!0,falseValue:!1},t}(l.default.Component);t.default=o;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([a.FormItem({type:"checkbox",sizeMutable:!1})],t)}(o);t.CheckboxControlRenderer=s}); +;/*!src/renderers/Form/CityDB.ts*/ +amis.define("4050e6a",function(i,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.district=t.city=t.province=void 0;var r={11e4:"北京市",110100:"北京市市辖区",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区",12e4:"天津市",120100:"天津市市辖区",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区",13e4:"河北省",130100:"石家庄市",130101:"石家庄市市辖区",130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130183:"晋州市",130184:"新乐市",130200:"唐山市",130201:"唐山市市辖区",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130281:"遵化市",130283:"迁安市",130284:"滦州市",130300:"秦皇岛市",130301:"秦皇岛市市辖区",130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130400:"邯郸市",130401:"邯郸市市辖区",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130500:"邢台市",130501:"邢台市市辖区",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130600:"保定市",130601:"保定市市辖区",130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130700:"张家口市",130701:"张家口市市辖区",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130800:"承德市",130801:"承德市市辖区",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130881:"平泉市",130900:"沧州市",130901:"沧州市市辖区",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",131e3:"廊坊市",131001:"廊坊市市辖区",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131100:"衡水市",131101:"衡水市市辖区",131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131182:"深州市",14e4:"山西省",140100:"太原市",140101:"太原市市辖区",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140200:"大同市",140201:"大同市市辖区",140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140300:"阳泉市",140301:"阳泉市市辖区",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140400:"长治市",140401:"长治市市辖区",140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140500:"晋城市",140501:"晋城市市辖区",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140600:"朔州市",140601:"朔州市市辖区",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140681:"怀仁市",140700:"晋中市",140701:"晋中市市辖区",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140800:"运城市",140801:"运城市市辖区",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140900:"忻州市",140901:"忻州市市辖区",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",141e3:"临汾市",141001:"临汾市市辖区",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141100:"吕梁市",141101:"吕梁市市辖区",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",15e4:"内蒙古自治区",150100:"呼和浩特市",150101:"呼和浩特市市辖区",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150200:"包头市",150201:"包头市市辖区",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150300:"乌海市",150301:"乌海市市辖区",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150400:"赤峰市",150401:"赤峰市市辖区",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150500:"通辽市",150501:"通辽市市辖区",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150600:"鄂尔多斯市",150601:"鄂尔多斯市市辖区",150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150700:"呼伦贝尔市",150701:"呼伦贝尔市市辖区",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150800:"巴彦淖尔市",150801:"巴彦淖尔市市辖区",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150900:"乌兰察布市",150901:"乌兰察布市市辖区",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",21e4:"辽宁省",210100:"沈阳市",210101:"沈阳市市辖区",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市",210200:"大连市",210201:"大连市市辖区",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市",210300:"鞍山市",210301:"鞍山市市辖区",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210400:"抚顺市",210401:"抚顺市市辖区",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210500:"本溪市",210501:"本溪市市辖区",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210600:"丹东市",210601:"丹东市市辖区",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210700:"锦州市",210701:"锦州市市辖区",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210800:"营口市",210801:"营口市市辖区",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210900:"阜新市",210901:"阜新市市辖区",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",211e3:"辽阳市",211001:"辽阳市市辖区",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211100:"盘锦市",211101:"盘锦市市辖区",211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县",211200:"铁岭市",211201:"铁岭市市辖区",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211300:"朝阳市",211301:"朝阳市市辖区",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211400:"葫芦岛市",211401:"葫芦岛市市辖区",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",22e4:"吉林省",220100:"长春市",220101:"长春市市辖区",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220182:"榆树市",220183:"德惠市",220200:"吉林市",220201:"吉林市市辖区",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220300:"四平市",220301:"四平市市辖区",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220400:"辽源市",220401:"辽源市市辖区",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220500:"通化市",220501:"通化市市辖区",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220600:"白山市",220601:"白山市市辖区",220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市",220700:"松原市",220701:"松原市市辖区",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220781:"扶余市",220800:"白城市",220801:"白城市市辖区",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",23e4:"黑龙江省",230100:"哈尔滨市",230101:"哈尔滨市市辖区",230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市",230200:"齐齐哈尔市",230201:"齐齐哈尔市市辖区",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230300:"鸡西市",230301:"鸡西市市辖区",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230400:"鹤岗市",230401:"鹤岗市市辖区",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230500:"双鸭山市",230501:"双鸭山市市辖区",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230600:"大庆市",230601:"大庆市市辖区",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230700:"伊春市",230701:"伊春市市辖区",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230800:"佳木斯市",230801:"佳木斯市市辖区",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市",230900:"七台河市",230901:"七台河市市辖区",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",231e3:"牡丹江市",231001:"牡丹江市市辖区",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市",231100:"黑河市",231101:"黑河市市辖区",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231200:"绥化市",231201:"绥化市市辖区",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",232700:"大兴安岭地区",232701:"漠河市",232718:"加格达奇区",232721:"呼玛县",232722:"塔河县",31e4:"上海市",310100:"上海市市辖区",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区",32e4:"江苏省",320100:"南京市",320101:"南京市市辖区",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区",320200:"无锡市",320201:"无锡市市辖区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市",320300:"徐州市",320301:"徐州市市辖区",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320400:"常州市",320401:"常州市市辖区",320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市",320500:"苏州市",320501:"苏州市市辖区",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市",320600:"南通市",320601:"南通市市辖区",320602:"崇川区",320611:"港闸区",320612:"通州区",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320685:"海安市",320700:"连云港市",320701:"连云港市市辖区",320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320800:"淮安市",320801:"淮安市市辖区",320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320900:"盐城市",320901:"盐城市市辖区",320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",321e3:"扬州市",321001:"扬州市市辖区",321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321100:"镇江市",321101:"镇江市市辖区",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321200:"泰州市",321201:"泰州市市辖区",321202:"海陵区",321203:"高港区",321204:"姜堰区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321300:"宿迁市",321301:"宿迁市市辖区",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",33e4:"浙江省",330100:"杭州市",330101:"杭州市市辖区",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330200:"宁波市",330201:"宁波市市辖区",330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330300:"温州市",330301:"温州市市辖区",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330400:"嘉兴市",330401:"嘉兴市市辖区",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330500:"湖州市",330501:"湖州市市辖区",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330600:"绍兴市",330601:"绍兴市市辖区",330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市",330700:"金华市",330701:"金华市市辖区",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330800:"衢州市",330801:"衢州市市辖区",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330900:"舟山市",330901:"舟山市市辖区",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",331e3:"台州市",331001:"台州市市辖区",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市",331100:"丽水市",331101:"丽水市市辖区",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",34e4:"安徽省",340100:"合肥市",340101:"合肥市市辖区",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340181:"巢湖市",340200:"芜湖市",340201:"芜湖市市辖区",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340225:"无为县",340300:"蚌埠市",340301:"蚌埠市市辖区",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340400:"淮南市",340401:"淮南市市辖区",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县",340500:"马鞍山市",340501:"马鞍山市市辖区",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县",340600:"淮北市",340601:"淮北市市辖区",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340700:"铜陵市",340701:"铜陵市市辖区",340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县",340800:"安庆市",340801:"安庆市市辖区",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340824:"潜山市",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",341e3:"黄山市",341001:"黄山市市辖区",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341100:"滁州市",341101:"滁州市市辖区",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341200:"阜阳市",341201:"阜阳市市辖区",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341300:"宿州市",341301:"宿州市市辖区",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341500:"六安市",341501:"六安市市辖区",341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341600:"亳州市",341601:"亳州市市辖区",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341700:"池州市",341701:"池州市市辖区",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341800:"宣城市",341801:"宣城市市辖区",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",35e4:"福建省",350100:"福州市",350101:"福州市市辖区",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350200:"厦门市",350201:"厦门市市辖区",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350300:"莆田市",350301:"莆田市市辖区",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350400:"三明市",350401:"三明市市辖区",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350500:"泉州市",350501:"泉州市市辖区",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350600:"漳州市",350601:"漳州市市辖区",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350700:"南平市",350701:"南平市市辖区",350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350800:"龙岩市",350801:"龙岩市市辖区",350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350900:"宁德市",350901:"宁德市市辖区",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",36e4:"江西省",360100:"南昌市",360101:"南昌市市辖区",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360112:"新建区",360121:"南昌县",360123:"安义县",360124:"进贤县",360200:"景德镇市",360201:"景德镇市市辖区",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360300:"萍乡市",360301:"萍乡市市辖区",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360400:"九江市",360401:"九江市市辖区",360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市",360500:"新余市",360501:"新余市市辖区",360502:"渝水区",360521:"分宜县",360600:"鹰潭市",360601:"鹰潭市市辖区",360602:"月湖区",360603:"余江区",360681:"贵溪市",360700:"赣州市",360701:"赣州市市辖区",360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360800:"吉安市",360801:"吉安市市辖区",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360900:"宜春市",360901:"宜春市市辖区",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",361e3:"抚州市",361001:"抚州市市辖区",361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县",361100:"上饶市",361101:"上饶市市辖区",361102:"信州区",361103:"广丰区",361121:"上饶县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",37e4:"山东省",370100:"济南市",370101:"济南市市辖区",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370116:"莱芜区",370117:"钢城区",370124:"平阴县",370126:"商河县",370200:"青岛市",370201:"青岛市市辖区",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370281:"胶州市",370283:"平度市",370285:"莱西市",370300:"淄博市",370301:"淄博市市辖区",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370400:"枣庄市",370401:"枣庄市市辖区",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370500:"东营市",370501:"东营市市辖区",370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370600:"烟台市",370601:"烟台市市辖区",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370700:"潍坊市",370701:"潍坊市市辖区",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370800:"济宁市",370801:"济宁市市辖区",370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370883:"邹城市",370900:"泰安市",370901:"泰安市市辖区",370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",371e3:"威海市",371001:"威海市市辖区",371002:"环翠区",371003:"文登区",371082:"荣成市",371083:"乳山市",371100:"日照市",371101:"日照市市辖区",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371300:"临沂市",371301:"临沂市市辖区",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371400:"德州市",371401:"德州市市辖区",371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371500:"聊城市",371501:"聊城市市辖区",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371600:"滨州市",371601:"滨州市市辖区",371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市",371700:"菏泽市",371701:"菏泽市市辖区",371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",41e4:"河南省",410100:"郑州市",410101:"郑州市市辖区",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410200:"开封市",410201:"开封市市辖区",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县",410300:"洛阳市",410301:"洛阳市市辖区",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410401:"平顶山市市辖区",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410500:"安阳市",410501:"安阳市市辖区",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410600:"鹤壁市",410601:"鹤壁市市辖区",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410700:"新乡市",410701:"新乡市市辖区",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410800:"焦作市",410801:"焦作市市辖区",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410882:"沁阳市",410883:"孟州市",410900:"濮阳市",410901:"濮阳市市辖区",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",411e3:"许昌市",411001:"许昌市市辖区",411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411100:"漯河市",411101:"漯河市市辖区",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411200:"三门峡市",411201:"三门峡市市辖区",411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411300:"南阳市",411301:"南阳市市辖区",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411400:"商丘市",411401:"商丘市市辖区",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411500:"信阳市",411501:"信阳市市辖区",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411600:"周口市",411601:"周口市市辖区",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411700:"驻马店市",411701:"驻马店市市辖区",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",419001:"济源市",42e4:"湖北省",420100:"武汉市",420101:"武汉市市辖区",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420200:"黄石市",420201:"黄石市市辖区",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420300:"十堰市",420301:"十堰市市辖区",420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420500:"宜昌市",420501:"宜昌市市辖区",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420600:"襄阳市",420601:"襄阳市市辖区",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420700:"鄂州市",420701:"鄂州市市辖区",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420800:"荆门市",420801:"荆门市市辖区",420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市",420900:"孝感市",420901:"孝感市市辖区",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",421e3:"荆州市",421001:"荆州市市辖区",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421100:"黄冈市",421101:"黄冈市市辖区",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421200:"咸宁市",421201:"咸宁市市辖区",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421300:"随州市",421301:"随州市市辖区",421303:"曾都区",421321:"随县",421381:"广水市",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430101:"长沙市市辖区",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市",430200:"株洲市",430201:"株洲市市辖区",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430300:"湘潭市",430301:"湘潭市市辖区",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430400:"衡阳市",430401:"衡阳市市辖区",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430500:"邵阳市",430501:"邵阳市市辖区",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430600:"岳阳市",430601:"岳阳市市辖区",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430700:"常德市",430701:"常德市市辖区",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430800:"张家界市",430801:"张家界市市辖区",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430900:"益阳市",430901:"益阳市市辖区",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",431e3:"郴州市",431001:"郴州市市辖区",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431100:"永州市",431101:"永州市市辖区",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431200:"怀化市",431201:"怀化市市辖区",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431300:"娄底市",431301:"娄底市市辖区",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",44e4:"广东省",440100:"广州市",440101:"广州市市辖区",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区",440200:"韶关市",440201:"韶关市市辖区",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440300:"深圳市",440301:"深圳市市辖区",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区",440400:"珠海市",440401:"珠海市市辖区",440402:"香洲区",440403:"斗门区",440404:"金湾区",440500:"汕头市",440501:"汕头市市辖区",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440600:"佛山市",440601:"佛山市市辖区",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440700:"江门市",440701:"江门市市辖区",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440800:"湛江市",440801:"湛江市市辖区",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440900:"茂名市",440901:"茂名市市辖区",440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市",441200:"肇庆市",441201:"肇庆市市辖区",441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市",441300:"惠州市",441301:"惠州市市辖区",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441400:"梅州市",441401:"梅州市市辖区",441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441500:"汕尾市",441501:"汕尾市市辖区",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441600:"河源市",441601:"河源市市辖区",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441700:"阳江市",441701:"阳江市市辖区",441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市",441800:"清远市",441801:"清远市市辖区",441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445101:"潮州市市辖区",445102:"湘桥区",445103:"潮安区",445122:"饶平县",445200:"揭阳市",445201:"揭阳市市辖区",445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445300:"云浮市",445301:"云浮市市辖区",445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市",45e4:"广西壮族自治区",450100:"南宁市",450101:"南宁市市辖区",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450200:"柳州市",450201:"柳州市市辖区",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450300:"桂林市",450301:"桂林市市辖区",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市",450400:"梧州市",450401:"梧州市市辖区",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450500:"北海市",450501:"北海市市辖区",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450600:"防城港市",450601:"防城港市市辖区",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450700:"钦州市",450701:"钦州市市辖区",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450800:"贵港市",450801:"贵港市市辖区",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450900:"玉林市",450901:"玉林市市辖区",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",451e3:"百色市",451001:"百色市市辖区",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市",451100:"贺州市",451101:"贺州市市辖区",451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451200:"河池市",451201:"河池市市辖区",451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451300:"来宾市",451301:"来宾市市辖区",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451400:"崇左市",451401:"崇左市市辖区",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",46e4:"海南省",460100:"海口市",460101:"海口市市辖区",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460200:"三亚市",460201:"三亚市市辖区",460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区",460300:"三沙市",460301:"三沙市市辖区",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",460400:"儋州市",469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县",5e5:"重庆市",500100:"重庆市市辖区",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区",500200:"重庆市郊县",500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",51e4:"四川省",510100:"成都市",510101:"成都市市辖区",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市",510300:"自贡市",510301:"自贡市市辖区",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510400:"攀枝花市",510401:"攀枝花市市辖区",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510500:"泸州市",510501:"泸州市市辖区",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510600:"德阳市",510601:"德阳市市辖区",510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510700:"绵阳市",510701:"绵阳市市辖区",510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510800:"广元市",510801:"广元市市辖区",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510900:"遂宁市",510901:"遂宁市市辖区",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",511e3:"内江市",511001:"内江市市辖区",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511083:"隆昌市",511100:"乐山市",511101:"乐山市市辖区",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511300:"南充市",511301:"南充市市辖区",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511400:"眉山市",511401:"眉山市市辖区",511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511500:"宜宾市",511501:"宜宾市市辖区",511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511600:"广安市",511601:"广安市市辖区",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511700:"达州市",511701:"达州市市辖区",511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511800:"雅安市",511801:"雅安市市辖区",511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511900:"巴中市",511901:"巴中市市辖区",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",512e3:"资阳市",512001:"资阳市市辖区",512002:"雁江区",512021:"安岳县",512022:"乐至县",513200:"阿坝藏族羌族自治州",513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513300:"甘孜藏族自治州",513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",52e4:"贵州省",520100:"贵阳市",520101:"贵阳市市辖区",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520281:"盘州市",520300:"遵义市",520301:"遵义市市辖区",520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520400:"安顺市",520401:"安顺市市辖区",520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520500:"毕节市",520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县",520600:"铜仁市",520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县",522300:"黔西南布依族苗族自治州",522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",53e4:"云南省",530100:"昆明市",530101:"昆明市市辖区",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530300:"曲靖市",530301:"曲靖市市辖区",530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市",530400:"玉溪市",530401:"玉溪市市辖区",530402:"红塔区",530403:"江川区",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530500:"保山市",530501:"保山市市辖区",530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市",530600:"昭通市",530601:"昭通市市辖区",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市",530700:"丽江市",530701:"丽江市市辖区",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530800:"普洱市",530801:"普洱市市辖区",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530900:"临沧市",530901:"临沧市市辖区",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532600:"文山壮族苗族自治州",532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533300:"怒江傈僳族自治州",533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533400:"迪庆藏族自治州",533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县",54e4:"西藏自治区",540100:"拉萨市",540101:"拉萨市市辖区",540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540200:"日喀则市",540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县",540300:"昌都市",540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县",540400:"林芝市",540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县",540500:"山南市",540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县",540600:"那曲市",540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",61e4:"陕西省",610100:"西安市",610101:"西安市市辖区",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县",610200:"铜川市",610201:"铜川市市辖区",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610300:"宝鸡市",610301:"宝鸡市市辖区",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610400:"咸阳市",610401:"咸阳市市辖区",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市",610500:"渭南市",610501:"渭南市市辖区",610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610600:"延安市",610601:"延安市市辖区",610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610623:"子长县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610700:"汉中市",610701:"汉中市市辖区",610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610800:"榆林市",610801:"榆林市市辖区",610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市",610900:"安康市",610901:"安康市市辖区",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",611e3:"商洛市",611001:"商洛市市辖区",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",62e4:"甘肃省",620100:"兰州市",620101:"兰州市市辖区",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620200:"嘉峪关市",620201:"嘉峪关市市辖区",620300:"金昌市",620301:"金昌市市辖区",620302:"金川区",620321:"永昌县",620400:"白银市",620401:"白银市市辖区",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620500:"天水市",620501:"天水市市辖区",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620600:"武威市",620601:"武威市市辖区",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620700:"张掖市",620701:"张掖市市辖区",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620800:"平凉市",620801:"平凉市市辖区",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市",620900:"酒泉市",620901:"酒泉市市辖区",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",621e3:"庆阳市",621001:"庆阳市市辖区",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621100:"定西市",621101:"定西市市辖区",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621200:"陇南市",621201:"陇南市市辖区",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",63e4:"青海省",630100:"西宁市",630101:"西宁市市辖区",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630200:"海东市",630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632700:"玉树藏族自治州",632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632825:"海西蒙古族藏族自治州直辖",64e4:"宁夏回族自治区",640100:"银川市",640101:"银川市市辖区",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640200:"石嘴山市",640201:"石嘴山市市辖区",640202:"大武口区",640205:"惠农区",640221:"平罗县",640300:"吴忠市",640301:"吴忠市市辖区",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640400:"固原市",640401:"固原市市辖区",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640500:"中卫市",640501:"中卫市市辖区",640502:"沙坡头区",640521:"中宁县",640522:"海原县",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650101:"乌鲁木齐市市辖区",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650200:"克拉玛依市",650201:"克拉玛依市市辖区",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650400:"吐鲁番市",650402:"高昌区",650421:"鄯善县",650422:"托克逊县",650500:"哈密市",650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659005:"北屯市",659006:"铁门关市",659007:"双河市",659008:"可克达拉市",659009:"昆玉市",71e4:"台湾省",81e4:"香港特别行政区",810001:"中西区",810002:"湾仔区",810003:"东区",810004:"南区",810005:"油尖旺区",810006:"深水埗区",810007:"九龙城区",810008:"黄大仙区",810009:"观塘区",810010:"荃湾区",810011:"屯门区",810012:"元朗区",810013:"北区",810014:"大埔区",810015:"西贡区",810016:"沙田区",810017:"葵青区",810018:"离岛区",82e4:"澳门特别行政区",820001:"花地玛堂区",820002:"花王堂区",820003:"望德堂区",820004:"大堂区",820005:"风顺堂区",820006:"嘉模堂区",820007:"路凼填海区",820008:"圣方济各堂区"}; +t.province=[],t.city={},t.district={},Object.keys(r).forEach(function(i){var r=parseInt(i,10);if(r%1e4)if(r%100){var s=r-r%1e4,c=r-r%100;t.district[s]&&Array.isArray(t.district[s][c])?t.district[s][c].push(r):!t.district[s]||Array.isArray(t.district[s])?(t.district[s]=t.district[s]||[],t.district[s].push(r)):t.city[s].push(r)}else{var s=r-r%1e4;t.city[s].push(r),t.district[s]=t.district[s]||{},t.district[s][r]=[]}else t.province.push(r),t.city[r]=[]}),t.default=r}); +;/*!src/renderers/Form/City.tsx*/ +amis.define("99d982b",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckboxControlRenderer=e.LocationControl=e.CityPicker=void 0;var n=t("node_modules/tslib/tslib"),a=n.__importDefault(t("node_modules/react/index")),i=t("567b83c"),o=n.__importStar(t("4050e6a")),r=t("256b65d"),d=t("1953fc1"),l=t("9a80175"),s=t("b86428a"),c=t("5ab4e9d"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={code:0,province:"",provinceCode:0,city:"",cityCode:0,district:"",districtCode:0,street:""},e}n.__extends(e,t),e.prototype.componentDidMount=function(){this.syncIn()},e.prototype.componentDidUpdate=function(t){var e=this.props;e.value!==t.value&&this.syncIn(e)},e.prototype.handleProvinceChange=function(t){this.setState({province:t.label,provinceCode:t.value,city:"",cityCode:0,district:"",districtCode:0,street:"",code:t.value},this.syncOut)},e.prototype.handleCityChange=function(t){return t.value%100?this.handleDistrictChange(t,{cityCode:t.value}):void this.setState({city:t.label,cityCode:t.value,district:"",districtCode:0,street:"",code:t.value},this.syncOut)},e.prototype.handleDistrictChange=function(t,e){void 0===e&&(e={}),this.setState(n.__assign(n.__assign({},e),{district:t.label,districtCode:t.value,street:"",code:t.value}),this.syncOut)},e.prototype.handleStreetChange=function(t){this.setState({street:t.currentTarget.value})},e.prototype.handleStreetEnd=function(){this.syncOut()},e.prototype.syncIn=function(t){void 0===t&&(t=this.props);var e=t.value,n=t.delimiter,a={code:0,province:"",provinceCode:0,city:"",cityCode:0,district:"",districtCode:0,street:""},i=e&&e.code||"number"==typeof e&&e||"string"==typeof e&&/(\d{6})/.test(e)&&RegExp.$1;if(i&&o.default[i]){i=parseInt(i,10),a.code=i;var r=i-i%1e4;o.default[r]&&(a.provinceCode=r,a.province=o.default[r]);var d=i-i%100;o.default[d]&&(a.cityCode=d,a.city=o.default[d]),i%100&&(a.district=o.default[i],a.districtCode=i)}e&&e.street?a.street=e.street:"string"==typeof e&&~e.indexOf(n)&&(a.street=e.slice(e.indexOf(n)+n.length)),this.setState(a)},e.prototype.syncOut=function(){var t=this.props,e=t.onChange,n=t.allowStreet,a=t.joinValues,i=t.extractValue,o=t.delimiter,r=this.state,d=r.code,l=r.province,s=r.city,c=r.district,u=r.street;e(("undefined"==typeof i?a:i)?d?n&&u?[d,u].join(o):String(d):"":{code:d,province:l,city:s,district:c,street:u})},e.prototype.render=function(){var t=this.props,e=t.classnames,n=t.className,i=t.disabled,r=t.allowCity,l=t.allowDistrict,s=t.allowStreet,c=t.translate,u=this.state,p=u.provinceCode,y=u.cityCode,f=u.districtCode,h=u.street;return a.default.createElement("div",{className:e("CityPicker",n)},a.default.createElement(d.Select,{disabled:i,options:o.province.map(function(t){return{label:o.default[t],value:t}}),value:p,onChange:this.handleProvinceChange}),p&&l&&Array.isArray(o.district[p])?a.default.createElement(d.Select,{disabled:i,options:o.district[p].map(function(t){return{label:o.default[t],value:t}}),value:f,onChange:this.handleDistrictChange}):r&&o.city[p]&&o.city[p].length?a.default.createElement(d.Select,{disabled:i,options:o.city[p].map(function(t){return{label:o.default[t],value:t}}),value:y,onChange:this.handleCityChange}):null,y&&l&&o.district[p]&&o.district[p][y]?a.default.createElement(d.Select,{disabled:i,options:o.district[p][y].map(function(t){return{label:o.default[t],value:t}}),value:f,onChange:this.handleDistrictChange}):null,s&&p?a.default.createElement("input",{className:e("CityPicker-input"),value:h,onChange:this.handleStreetChange,onBlur:this.handleStreetEnd,placeholder:c("请输入街道信息")}):null)};var i,r,c,u,p;return e.defaultProps={joinValues:!0,extractValue:!0,delimiter:",",allowCity:!0,allowDistrict:!0,allowStreet:!1},n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof s.Option&&s.Option)?i:Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleProvinceChange",null),n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof s.Option&&s.Option)?r:Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleCityChange",null),n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof s.Option&&s.Option)?c:Object,"function"==typeof(u="undefined"!=typeof Partial&&Partial)?u:Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleDistrictChange",null),n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(p="undefined"!=typeof a.default&&a.default.ChangeEvent)?p:Object]),n.__metadata("design:returntype",void 0)],e.prototype,"handleStreetChange",null),n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"handleStreetEnd",null),n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"syncIn",null),n.__decorate([l.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],e.prototype,"syncOut",null),e}(a.default.Component);e.CityPicker=u;var p=r.themeable(c.localeable(u));e.default=p;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.render=function(){var t=this.props,e=t.value,n=t.onChange,i=t.allowCity,o=t.allowDistrict,r=t.extractValue,d=t.joinValues,l=t.allowStreet;return a.default.createElement(p,{value:e,onChange:n,allowCity:i,allowDistrict:o,extractValue:r,joinValues:d,allowStreet:l})},e}(a.default.Component);e.LocationControl=y;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e=n.__decorate([i.FormItem({type:"city",sizeMutable:!1})],e)}(y);e.CheckboxControlRenderer=f}); +;/*!src/renderers/Form/Rating.tsx*/ +amis.define("055a9f9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RatingControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),r=e("567b83c"),l=n.__importDefault(e("1b690d8")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.value,r=e.count,u=e.half,o=e.readOnly,s=e.onChange,i=(e.size,e.classnames);return a.default.createElement("div",{className:i("RatingControl",t)},a.default.createElement(l.default,{classnames:i,value:n,count:r,half:u,readOnly:o,onChange:function(e){return s(e)}}))},t.defaultProps={value:0,count:5,half:!1,readOnly:!1},t}(a.default.Component);t.default=u;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"rating",sizeMutable:!1})],t)}(u);t.RatingControlRenderer=o}); +;/*!src/renderers/Form/Switch.tsx*/ +amis.define("0f75897",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwitchControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),n=e("567b83c"),r=a.__importDefault(e("aa2413a")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.classPrefix,n=e.classnames,u=e.value,s=e.trueValue,o=e.falseValue,i=e.option,c=e.onChange,d=e.disabled,f=e.optionAtLeft;return l.default.createElement("div",{className:n("SwitchControl",t)},f?l.default.createElement("span",{className:n("Switch-option")},i):null,l.default.createElement(r.default,{classPrefix:a,value:u,trueValue:s,falseValue:o,disabled:d,onChange:c}),f?null:l.default.createElement("span",{className:n("Switch-option")},i))},t.defaultProps={trueValue:!0,falseValue:!1,optionAtLeft:!1},t}(l.default.Component);t.default=u;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.FormItem({type:"switch",sizeMutable:!1})],t)}(u);t.SwitchControlRenderer=s}); +;/*!src/renderers/Form/Button.tsx*/ +amis.define("c6f2783",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResetControlRenderer=t.SubmitControlRenderer=t.ButtonControlRenderer=t.ButtonControl=void 0;var r=e("node_modules/tslib/tslib"),n=r.__importDefault(e("node_modules/react/index")),o=e("567b83c"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.type,o=(e.children,e.data,r.__rest(e,["render","type","children","data"]));return t("action",r.__assign(r.__assign({},o),{type:n}))},t.defaultProps={},t}(n.default.Component);t.ButtonControl=u;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"button",renderLabel:!1,strictMode:!1,sizeMutable:!1})],t)}(u);t.ButtonControlRenderer=i;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"submit",renderLabel:!1,sizeMutable:!1,strictMode:!1})],t)}(u);t.SubmitControlRenderer=s;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"reset",renderLabel:!1,strictMode:!1,sizeMutable:!1})],t)}(u);t.ResetControlRenderer=d}); +;/*!src/renderers/Form/ButtonToolbar.tsx*/ +amis.define("d7f3dfa",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonToolbarRenderer=e.ButtonToolbarControl=void 0;var n=t("node_modules/tslib/tslib"),o=n.__importDefault(t("node_modules/react/index")),r=t("567b83c"),u=n.__importDefault(t("node_modules/classnames/index")),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.render=function(){var t=this.props,e=t.render,n=t.className,r=t.classPrefix,a=t.buttons;return o.default.createElement("div",{className:u.default(r+"ButtonToolbar",n)},Array.isArray(a)?a.map(function(t,n){return e("button/"+n,t,{key:n})}):null)},e.defaultProps={},e}(o.default.Component);e.ButtonToolbarControl=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e=n.__decorate([r.FormItem({type:"button-toolbar",sizeMutable:!1,strictMode:!1})],e)}(a);e.ButtonToolbarRenderer=l}); +;/*!src/renderers/Form/Radios.tsx*/ +amis.define("2dfb851",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadiosControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("node_modules/classnames/index")),o=a.__importDefault(e("8e37af0")),i=e("b86428a"),s=e("9a80175"),r=e("f2e345e"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a.__extends(t,e),t.prototype.handleChange=function(e){var t=this.props,a=t.joinValues,n=t.extractValue,l=t.valueField,o=t.onChange,i=t.autoFill,d=t.onBulkChange,u=i&&!s.isEmpty(i)&&r.dataMapping(i,e);u&&d&&d(u),e&&(a||n)&&(e=e[l||"value"]),o&&o(e)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this.props,t=e.className,a=e.classPrefix,i=e.value,s=(e.onChange,e.disabled),r=e.joinValues,d=e.extractValue,u=e.delimiter,p=e.placeholder,f=e.options,m=e.inline,c=e.formMode,_=e.columnsCount,h=e.classPrefix,C=e.itemClassName,y=e.labelClassName,b=e.labelField,g=e.translate;return n.default.createElement(o.default,{inline:m||"inline"===c,className:l.default(a+"RadiosControl",t),value:"undefined"==typeof i||null===i?"":i,disabled:s,onChange:this.handleChange,joinValues:r,extractValue:d,delimiter:u,labelClassName:y,labelField:b,placeholder:g(p),options:f,columnsCount:_,classPrefix:h,itemClassName:C})};var d;return t.defaultProps={columnsCount:1},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof i.Option&&i.Option)?d:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t}(n.default.Component);t.default=d;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps={multiple:!1},t=a.__decorate([i.OptionsControl({type:"radios",sizeMutable:!1})],t)}(d);t.RadiosControlRenderer=u}); +;/*!src/renderers/Form/List.tsx*/ +amis.define("64723a8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListControlRenderer=void 0;var l=e("node_modules/tslib/tslib"),a=l.__importDefault(e("node_modules/react/index")),i=e("b86428a"),n=e("9a80175"),s=e("f2e345e"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t.prototype.handleDBClick=function(e){this.props.onToggle(e,!1,!0),this.props.onAction(null,{type:"submit"})},t.prototype.handleClick=function(e,t){if(!t.target||!t.target.closest("a,button")){var l=this.props,a=l.onToggle,i=l.multiple,o=l.autoFill,r=l.onBulkChange,d=!i&&o&&!n.isEmpty(o)&&s.dataMapping(o,e);d&&r(d),a(e)}},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this,t=this.props,l=t.render,i=t.itemClassName,s=t.classnames,o=t.className,r=t.disabled,d=t.options,u=t.placeholder,c=t.selectedOptions,m=t.imageClassName,p=t.submitOnDBClick,b=t.itemSchema,f=t.data,C=t.labelField,h=null;return d&&d.length&&(h=a.default.createElement("div",{className:s("ListControl-items")},d.map(function(t,o){return a.default.createElement("div",{key:o,className:s("ListControl-item",i,{"is-active":~c.indexOf(t),"is-disabled":t.disabled||r}),onClick:e.handleClick.bind(e,t),onDoubleClick:p?e.handleDBClick.bind(e,t):void 0},b?l(o+"/body",b,{data:n.createObject(f,t)}):t.body?l(o+"/body",t.body):[t.image?a.default.createElement("div",{key:"image",className:s("ListControl-itemImage",m)},a.default.createElement("img",{src:t.image,alt:t[C||"label"]})):null,t[C||"label"]?a.default.createElement("div",{key:"label",className:s("ListControl-itemLabel")},t[C||"label"]):null])}))),a.default.createElement("div",{className:s("ListControl",o)},h?h:a.default.createElement("span",{className:s("ListControl-placeholder")},u))},t.propsList=["itemSchema","value","renderFormItems"],t.defaultProps={clearable:!1,imageClassName:"",submitOnDBClick:!1},t}(a.default.Component);t.default=o;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t=l.__decorate([i.OptionsControl({type:"list",sizeMutable:!1})],t)}(o);t.ListControlRenderer=r}); +;/*!src/components/BaiduMapPicker.tsx*/ +amis.define("f5c1b1b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaiduMapPicker=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),i=e("256b65d"),o=e("9a80175"),l=a.__importDefault(e("node_modules/lodash/debounce")),r=e("b7bbd16"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={inputValue:"",locs:[],locIndex:-1,sugs:[]},t.id=o.uuid(),t.mapRef=n.default.createRef(),t.search=l.default(function(){var e;t.state.inputValue?null===(e=t.ac)||void 0===e?void 0:e.search(t.state.inputValue):t.setState({sugs:[]})},250,{trailing:!0,leading:!1}),t}a.__extends(t,e),t.prototype.componentDidMount=function(){window.BMap?this.initMap():o.loadScript("//api.map.baidu.com/api?v=2.0&ak="+this.props.ak+"&callback={{callback}}").then(this.initMap)},t.prototype.componentWillUnmount=function(){var e;null===(e=this.ac)||void 0===e?void 0:e.dispose(),document.body.removeChild(this.placeholderInput),delete this.placeholderInput,delete this.map},t.prototype.initMap=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,i,o,l=this;return a.__generator(this,function(){return e=new BMap.Map(this.mapRef.current,{enableMapClick:!1}),this.map=e,t=this.props.value,n=t?new BMap.Point(t.lng,t.lat):new BMap.Point(116.404,39.915),e.centerAndZoom(n,15),i=new BMap.GeolocationControl,i.addEventListener("locationSuccess",function(e){l.getLocations(e.point)}),e.addControl(i),e.addEventListener("click",function(e){l.getLocations(e.point,!0)}),o=document.createElement("input"),o.className="invisible",this.placeholderInput=o,document.body.appendChild(o),this.ac=new BMap.Autocomplete({input:o,location:e,onSearchComplete:function(e){if(l.map){var t=[];Array.isArray(e.Ir)&&(e.Ir.forEach(function(e){t.push([e.province,e.city,e.district,e.street,e.business].filter(function(e){return e}).join(" "))}),l.setState({sugs:t}))}}}),t?this.getLocations(n):i.location(),[2]})})},t.prototype.getLocations=function(e,t){var a=this,n=this.map;n.clearOverlays();var i=new BMap.Marker(e);n.addOverlay(i),n.panTo(e);var o=new BMap.Geocoder;o.getLocation(e,function(e){if(a.map){var n=0,i=[];i.push({title:"当前位置",address:e.address,city:e.addressComponents.city,lat:e.point.lat,lng:e.point.lng}),Array.isArray(e.surroundingPois)&&e.surroundingPois.forEach(function(e){i.push({title:e.title,address:e.address,city:e.city,lat:e.point.lat,lng:e.point.lng})}),a.setState({locIndex:n,locs:i},function(){var e;t&&(null===(e=a.props)||void 0===e?void 0:e.onChange({address:i[0].address,lat:i[0].lat,lng:i[0].lng,city:i[0].city}))})}})},t.prototype.handleChange=function(e){this.setState({inputValue:e.currentTarget.value},this.search)},t.prototype.handleSelect=function(e){var t=this,a=parseInt(e.currentTarget.getAttribute("data-index"),10),n=this.state.locs[a];this.setState({locIndex:a},function(){var e,a=new BMap.Point(n.lng,n.lat);t.map.clearOverlays();var i=new BMap.Marker(a);t.map.addOverlay(i),t.map.panTo(a),null===(e=t.props)||void 0===e?void 0:e.onChange({address:n.address.trim()||n.title,lat:n.lat,lng:n.lng,city:n.city})})},t.prototype.handleSugSelect=function(e){var t=this,a=e.currentTarget.innerText;this.setState({inputValue:a});var n=new BMap.LocalSearch(this.map,{onSearchComplete:function(){var e=n.getResults(),a=e.getPoi(0);t.setState({inputValue:a.title,sugs:[]}),t.getLocations(a.point,!0)}});n.search(a)},t.prototype.render=function(){var e=this,t=this.props.classnames,a=this.state,i=a.locIndex,o=a.locs,l=a.inputValue,s=a.sugs,d=Array.isArray(s)&&s.length;return n.default.createElement("div",{className:t("MapPicker")},n.default.createElement("div",{className:t("MapPicker-search TextControl-control")},n.default.createElement("div",{className:t("TextControl-input")},n.default.createElement("input",{onChange:this.handleChange,value:l,placeholder:"搜索地点"}),n.default.createElement("span",null,n.default.createElement(r.Icon,{icon:"search",className:"icon"})))),n.default.createElement("div",{ref:this.mapRef,className:t("MapPicker-map",{invisible:d})}),n.default.createElement("div",{className:t("MapPicker-result",{invisible:d})},o.map(function(a,o){return n.default.createElement("div",{onClick:e.handleSelect,key:o,"data-index":o,className:t("MapPicker-item")},n.default.createElement("div",{className:t("MapPicker-itemTitle")},a.title),n.default.createElement("div",{className:t("MapPicker-itemDesc")},a.address),i===o?n.default.createElement(r.Icon,{icon:"success",className:"icon"}):null)})),d?n.default.createElement("div",{className:t("MapPicker-sug")},s.map(function(a){return n.default.createElement("div",{onClick:e.handleSugSelect,className:t("MapPicker-sugItem"),key:a},a)})):null)};var i,s,d;return a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",Promise)],t.prototype,"initMap",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof n.default&&n.default.ChangeEvent)?i:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(s="undefined"!=typeof n.default&&n.default.MouseEvent)?s:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(d="undefined"!=typeof n.default&&n.default.MouseEvent)?d:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSugSelect",null),t}(n.default.Component);t.BaiduMapPicker=s,t.default=i.themeable(s)}); +;/*!src/components/LocationPicker.tsx*/ +amis.define("0e2f942",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationPicker=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),o=e("256b65d"),d=a.__importDefault(e("997df41")),i=a.__importDefault(e("2b3dcdf")),r=e("b7bbd16"),s=e("9a80175"),l=a.__importDefault(e("15e4197")),p=a.__importDefault(e("f5c1b1b")),u=e("5ab4e9d"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.domRef=n.default.createRef(),t.state={isFocused:!1,isOpened:!1},t}a.__extends(t,e),t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleClick(),e.preventDefault())},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!0})},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},t.prototype.getTarget=function(){return this.domRef.current},t.prototype.getParent=function(){var e;return null===(e=this.domRef.current)||void 0===e?void 0:e.parentElement},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.clearValue=function(e){e.preventDefault(),e.stopPropagation();var t=this.props.onChange;t("")},t.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.handleChange=function(e){e&&(e=a.__assign(a.__assign({},e),{vendor:this.props.vendor})),this.props.onChange(e)},t.prototype.render=function(){var e,t=this.props,a=t.classnames,o=t.value,s=t.className,u=t.disabled,c=t.placeholder,_=t.clearable,m=t.popOverContainer,f=t.vendor,y=t.ak,h=this.props.translate,g=this.state,v=g.isFocused,b=g.isOpened;return n.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:a("LocationPicker",{"is-disabled":u,"is-focused":v,"is-active":b},s),ref:this.domRef,onClick:this.handleClick},o?n.default.createElement("span",{className:a("LocationPicker-value")},o.address):n.default.createElement("span",{className:a("LocationPicker-placeholder")},h(c)),_&&!u&&o?n.default.createElement("a",{className:a("LocationPicker-clear"),onClick:this.clearValue},n.default.createElement(r.Icon,{icon:"close",className:"icon"})):null,n.default.createElement("a",{className:a("LocationPicker-toggler")},n.default.createElement(r.Icon,{icon:"location",className:"icon"})),n.default.createElement(d.default,{target:this.getTarget,container:m||this.getParent,rootClose:!1,show:b},n.default.createElement(i.default,{className:a("LocationPicker-popover"),onHide:this.close,overlay:!0,onClick:this.handlePopOverClick,style:{width:null===(e=this.getTarget())||void 0===e?void 0:e.offsetWidth}},"baidu"===f?n.default.createElement(p.default,{ak:y,value:o,onChange:this.handleChange}):n.default.createElement(l.default,null,h("${vendor} 地图控件不支持",{vendor:f})))))};var o,u,c;return t.defaultProps={placeholder:"请选择位置",clearable:!1},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(o="undefined"!=typeof n.default&&n.default.KeyboardEvent)?o:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleKeyPress",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getTarget",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getParent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Function]),a.__metadata("design:returntype",void 0)],t.prototype,"open",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(u="undefined"!=typeof n.default&&n.default.MouseEvent)?u:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof n.default&&n.default.MouseEvent)?c:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePopOverClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),t}(n.default.Component);t.LocationPicker=c;var _=o.themeable(u.localeable(c));t.default=_}); +;/*!src/renderers/Form/Location.tsx*/ +amis.define("05b43e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationRenderer=t.LocationControl=void 0;var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),r=n.__importDefault(e("567b83c")),a=n.__importDefault(e("0e2f942")),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){return o.default.createElement("div",{className:this.props.classnames("LocationControl")},o.default.createElement(a.default,n.__assign({},this.props)))},t.defaultProps={vendor:"baidu"},t}(o.default.Component);t.LocationControl=i;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.default({type:"location"})],t)}(i);t.LocationRenderer=u}); +;/*!src/renderers/Form/Select.tsx*/ +amis.define("86ddd97",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectControlRenderer=t.SelectControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),a=n.__importDefault(e("node_modules/classnames/index")),i=e("b86428a"),r=n.__importDefault(e("d57879c")),l=n.__importDefault(e("node_modules/lodash/find")),s=n.__importDefault(e("node_modules/lodash/debounce")),u=e("1caead1"),d=e("9a80175"),p=e("f2e345e"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.changeValue=n.changeValue.bind(n),n.loadRemote=s.default(n.loadRemote.bind(n),250,{trailing:!0,leading:!1}),n.inputRef=n.inputRef.bind(n),n}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.unHook&&this.unHook()},t.prototype.inputRef=function(e){this.input=e},t.prototype.foucs=function(){this.input&&this.input.focus()},t.prototype.changeValue=function(e){var t=this.props,n=t.joinValues,o=t.extractValue,a=t.delimiter,i=t.multiple,r=(t.type,t.valueField),s=t.onChange,u=t.setOptions,c=t.options,f=t.autoFill,h=t.onBulkChange,m=e,v=[];(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t=l.default(c,function(t){return t[r||"value"]==e[r||"value"]});t||v.push(e)}),n?m=i?Array.isArray(e)?e.map(function(e){return e[r||"value"]}).join(a):e?e[r||"value"]:"":m?m[r||"value"]:"":o&&(m=i?Array.isArray(e)?e.map(function(e){return e[r||"value"]}):e?[e[r||"value"]]:[""]:m?m[r||"value"]:""),v.length&&u(c.concat(v));var _=!i&&f&&!d.isEmpty(f)&&p.dataMapping(f,e);_&&h(_),s(m)},t.prototype.loadRemote=function(e){var t=this,n=this.props,o=n.autoComplete,a=n.env,i=n.data,r=n.setOptions,l=n.setLoading,s=n.formInited,p=n.addHook;if(!a||!a.fetcher)throw new Error("fetcher is required");if(!s)return this.unHook&&this.unHook(),this.unHook=p(this.loadRemote.bind(this,e),"init");var c=d.createObject(i,{term:e,value:e});return u.isEffectiveApi(o,c)?(l(!0),a.fetcher(o,c).then(function(e){var n=e.data&&e.data.options||e.data||[],o=t.mergeOptions(n);return r(o),{options:o}}).finally(function(){return l(!1)})):Promise.resolve({options:[]})},t.prototype.mergeOptions=function(e){var t=this.props.selectedOptions,o=e.concat();return Array.isArray(t)&&t.length&&t.forEach(function(e){l.default(o,function(t){return t.value==e.value})||o.push(n.__assign(n.__assign({},e),{hidden:!0}))}),o},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this.props,t=e.autoComplete,i=e.searchable,l=e.options,s=e.className,d=e.loading,p=(e.value,e.selectedOptions),c=e.multi,f=e.multiple,h=e.placeholder,m=(e.id,e.classPrefix),v=(e.classnames,e.creatable),_=(e.inline,e.noResultsText),y=e.render,g=n.__rest(e,["autoComplete","searchable","options","className","loading","value","selectedOptions","multi","multiple","placeholder","id","classPrefix","classnames","creatable","inline","noResultsText","render"]);return _&&/<\w+/.test(_)&&(_=y("noResultText",_)),o.default.createElement("div",{className:a.default(m+"SelectControl",s)},o.default.createElement(r.default,n.__assign({},g,{placeholder:h,multiple:f||c,ref:this.inputRef,value:p,options:l,loadOptions:u.isEffectiveApi(t)?this.loadRemote:void 0,creatable:v,searchable:i||!!t,onChange:this.changeValue,loading:d,noResultsText:_})))},t.defaultProps={clearable:!1,searchable:!1},t}(o.default.Component);t.default=c;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.OptionsControl({type:"select"})],t)}(c);t.SelectControlRenderer=f;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps={multiple:!0},t=n.__decorate([i.OptionsControl({type:"multi-select"})],t)}(c);t.MultiSelectControlRenderer=h}); +;/*!src/renderers/Form/Static.tsx*/ +amis.define("d09e479",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StaticFieldRenderer=t.StaticControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=e("567b83c"),s=e("f6086a9"),r=a.__importDefault(e("bcd7efc")),i=a.__importDefault(e("b497f17")),d=e("0f9ebdf"),o=a.__importDefault(e("705a434")),c=e("9a80175"),u=function(e){function t(t){var a=e.call(this,t)||this;return a.handleQuickChange=a.handleQuickChange.bind(a),a}return a.__extends(t,e),t.prototype.handleQuickChange=function(e,t){var a=this.props,n=a.onBulkChange,l=a.onAction,s=a.data;n(e,t===!0),t&&t.api&&l(null,{actionType:"ajax",api:t.api},c.extendObject(s,e))},t.prototype.render=function(){var e=this.props,t=e.className,l=e.value,s=e.label,r=e.type,i=e.render,d=(e.children,e.data,e.classnames),o=a.__rest(e,["className","value","label","type","render","children","data","classnames"]),c=/^static/.test(r)?r.substring(7)||"tpl":r,u=a.__assign(a.__assign({label:s,name:name},o),{type:c});return n.default.createElement("div",{className:d("Form-static")},i("field",a.__assign(a.__assign({},u),{type:"static-field",field:u}),{value:l,className:t,onQuickChange:this.handleQuickChange}))},t.defaultProps={placeholder:"-"},t}(n.default.Component);t.default=u;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.FormItem({test:function(e,t,a){return/(^|\/)form(?:\/.+)?\/control\/static(\-[^\/]+)?$/.test(e)?!0:/(^|\/)form(?:\/.+)?\/control\/[^\/]+$/.test(e)&&t&&t.type&&(t.name||t.label)&&a&&a(e+"/static-field/"+t.type)?!0:!1},weight:-90,strictMode:!1,sizeMutable:!1,name:"static-control"})],t)}(u);t.StaticControlRenderer=p;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=(e.type,e.className),l=e.render,s=e.style,r=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,c=e.width,u=e.inputClassName,p=(e.label,e.tabIndex),_=e.onKeyUp,f=e.field,m=a.__rest(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","inputClassName","label","tabIndex","onKeyUp","field"]),h=a.__assign(a.__assign({},f),{className:u,type:f&&f.type||"plain"}),b=o?o:l("field",h,a.__assign(a.__assign({},m),{value:i,data:d}));return c&&(s=s||{},s.width=s.width||c),r?n.default.createElement(r,{style:s,className:t,tabIndex:p,onKeyUp:_},b):b},t.defaultProps=a.__assign(a.__assign({},s.TableCell.defaultProps),{wrapperComponent:"div"}),t=a.__decorate([d.Renderer({test:/(^|\/)static\-field$/}),i.default(),r.default(),o.default()],t)}(s.TableCell);t.StaticFieldRenderer=_}); +;/*!src/renderers/Form/Date.tsx*/ +amis.define("b0a035c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeControlRenderer=t.DatetimeControlRenderer=t.DateControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),n=e("567b83c"),o=e("f2e345e"),s=a.__importDefault(e("node_modules/moment/moment"));e("node_modules/moment/locale/zh-cn");var i=a.__importDefault(e("dd24912")),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.minDate,a=e.maxDate,r=e.value,n=e.defaultValue,i=e.setPrinstineValue,l=e.data,m=e.format,u=e.utc;if(n&&r===n){var d=o.filterDate(n,l,m);i((u?s.default.utc(d):d).format(m))}this.setState({minDate:t?o.filterDate(t,l,m):void 0,maxDate:a?o.filterDate(a,l,m):void 0})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.defaultValue!==e.defaultValue){var a=o.filterDate(e.defaultValue,e.data,e.format);e.setPrinstineValue((e.utc?s.default.utc(a):a).format(e.format))}(t.minDate!==e.minDate||t.maxDate!==e.maxDate||t.data!==e.data)&&this.setState({minDate:e.minDate?o.filterDate(e.minDate,e.data,this.props.format):void 0,maxDate:e.maxDate?o.filterDate(e.maxDate,e.data,this.props.format):void 0})},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.defaultValue,e.defaultData,e.classnames),o=(e.minDate,e.maxDate,a.__rest(e,["className","defaultValue","defaultData","classnames","minDate","maxDate"]));return r.default.createElement("div",{className:n("DateControl",t)},r.default.createElement(i.default,a.__assign({},o,this.state,{classnames:n})))},t.defaultProps={format:"X",viewMode:"days",inputFormat:"YYYY-MM-DD",timeConstraints:{minutes:{step:1}},clearable:!0},t}(r.default.PureComponent);t.default=l;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},l.defaultProps),{placeholder:"请选择日期",dateFormat:"YYYY-MM-DD",timeFormat:"",strictMode:!1}),t=a.__decorate([n.FormItem({type:"date",weight:-150})],t)}(l);t.DateControlRenderer=m;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},l.defaultProps),{placeholder:"请选择日期以及时间",inputFormat:"YYYY-MM-DD HH:mm:ss",dateFormat:"LL",timeFormat:"HH:mm:ss",closeOnSelect:!1,strictMode:!1}),t=a.__decorate([n.FormItem({type:"datetime"})],t)}(l);t.DatetimeControlRenderer=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},l.defaultProps),{placeholder:"请选择时间",inputFormat:"HH:mm",dateFormat:"",timeFormat:"HH:mm",viewMode:"time",closeOnSelect:!1}),t=a.__decorate([n.FormItem({type:"time"})],t)}(l);t.TimeControlRenderer=d}); +;/*!src/renderers/Form/DateRange.tsx*/ +amis.define("48cac0f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeRangeControlRenderer=t.DateRangeControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),n=e("567b83c"),i=a.__importDefault(e("node_modules/classnames/index")),o=e("f2e345e");e("node_modules/moment/locale/zh-cn");var l=a.__importStar(e("eaae631")),s=function(e){function t(t){var a=e.call(this,t)||this,r=t.minDate,n=t.maxDate,i=t.data,l=t.format;return a.state={minDate:r?o.filterDate(r,i,l):void 0,maxDate:n?o.filterDate(n,i,l):void 0},a}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.defaultValue,a=e.setPrinstineValue,r=e.delimiter,n=e.format,i=e.data,s=e.value,u=e.joinValues,d=e.utc;if(t&&s===t){var m="string"==typeof t?t.split(r):t;a(l.DateRangePicker.formatValue({startDate:o.filterDate(m[0],i,n),endDate:o.filterDate(m[1],i,n)},n,u,r,d))}},t.prototype.componentWillReceiveProps=function(e){var t=e.data,a=e.minDate,r=e.maxDate,n=e.format,i=this.props;(i.minDate!==a||i.maxDate!==r||i.data!==t)&&this.setState({minDate:a?o.filterDate(a,t,n):void 0,maxDate:r?o.filterDate(r,t,n):void 0})},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.defaultValue,r=t.delimiter,n=t.joinValues,i=t.setPrinstineValue,s=t.data,u=t.utc,d=t.format;if(e.defaultValue!==a){var m="string"==typeof a?a.split(r):a;i(m?l.DateRangePicker.formatValue({startDate:o.filterDate(m[0],s,d),endDate:o.filterDate(m[1],s,d)},d,n,r,u):void 0)}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=(e.defaultValue,e.defaultData,a.__rest(e,["className","classPrefix","defaultValue","defaultData"]));return r.default.createElement("div",{className:i.default(n+"DateRangeControl",t)},r.default.createElement(l.default,a.__assign({},o,this.state,{classPrefix:n})))},t.defaultProps={format:"X",joinValues:!0,delimiter:","},t}(r.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},s.defaultProps),{timeFormat:""}),t=a.__decorate([n.FormItem({type:"date-range"})],t)}(s);t.DateRangeControlRenderer=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},s.defaultProps),{timeFormat:"HH:mm",inputFormat:"YYYY-MM-DD HH:mm"}),t=a.__decorate([n.FormItem({type:"datetime-range",sizeMutable:!1})],t)}(s);t.DateTimeRangeControlRenderer=d}); +;/*!src/renderers/Form/Repeat.tsx*/ +amis.define("d7f8ee3",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.RepeatControlRenderer=void 0;var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),l=t.__importDefault(e("node_modules/classnames/index")),r=e("567b83c"),s={secondly:"秒",minutely:"分",hourly:"时",daily:"天",weekdays:"周中",weekly:"周",monthly:"月",yearly:"年"},i=t.__importDefault(e("d57879c")),d=t.__importDefault(e("736bbb6")),u=function(e){function a(a){var t=e.call(this,a)||this;return t.handleOptionChange=t.handleOptionChange.bind(t),t.handleChange=t.handleChange.bind(t),t}return t.__extends(a,e),a.prototype.handleOptionChange=function(e){this.props.onChange(e.value)},a.prototype.handleChange=function(e){var a=this.props.value,t=a?a.split(":"):[];this.props.onChange(t[0]+":"+e)},a.prototype.renderInput=function(){var e=this,a=this.props.value,t=a?a.split(":"):[],l=this.props,r=l.options,u=l.placeholder,o=l.disabled,c=l.classPrefix,p=l.translate,h=[];h=r.split(",").map(function(e){return{label:s[e]||"不支持",value:e}}),h.unshift({label:p(u),value:""});var f;switch(t[1]=parseInt(t[1],10)||1,t[0]){case"secondly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:5,max:60,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"minutely":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:5,max:60,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"hourly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:24,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"daily":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:30,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"weekly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:12,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"monthly":f=n.default.createElement(d.default,{key:"input",classPrefix:c,value:t[1],min:1,step:1,max:12,disabled:o,onChange:function(a){return e.handleChange(a)}});break;case"yearly":f=n.default.createElement(d.default,{classPrefix:c,key:"input",className:"v-middle",value:t[1],min:1,step:1,max:20,disabled:o,onChange:function(a){return e.handleChange(a)}})}return n.default.createElement("div",{className:"repeat-control hbox"},f?n.default.createElement("div",{className:"col v-middle",style:{width:30}},n.default.createElement("span",null,p("每"))):null,f?n.default.createElement("div",{className:"col v-middle"},f):null,n.default.createElement("div",{className:"col v-middle repeat-btn"},n.default.createElement(i.default,{classPrefix:c,className:f?"pull-right":"",options:h,placeholder:p(u),onChange:this.handleOptionChange,value:t[0],clearable:!1,searchable:!1,disabled:o,joinValues:!1})))},a.prototype.render=function(){var e=this.props,a=e.className,t=e.classPrefix;return n.default.createElement("div",{className:l.default(t+"RepeatControl",a)},this.renderInput())},a.defaultProps={options:"hourly,daily,weekly,monthly",placeholder:"不重复"},a}(n.default.Component);a.default=u;var o=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([r.FormItem({type:"repeat",sizeMutable:!1})],a)}(u);a.RepeatControlRenderer=o}); +;/*!src/renderers/Form/Tree.tsx*/ +amis.define("ee37b69",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TreeControlRenderer=void 0;var t=e("node_modules/tslib/tslib"),o=t.__importDefault(e("node_modules/react/index")),a=t.__importDefault(e("node_modules/classnames/index")),r=t.__importDefault(e("d233af4")),n=e("b86428a"),i=e("1953fc1"),d=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},l.prototype.render=function(){var e=this.props,l=e.className,t=e.classPrefix,n=e.value,d=e.onChange,s=e.disabled,u=e.joinValues,p=e.extractValue,c=e.delimiter,f=e.placeholder,h=e.options,m=e.multiple,b=e.valueField,C=e.initiallyOpen,v=e.unfoldedLevel,_=e.withChildren,y=e.onlyChildren,T=e.loading,w=e.hideRoot,x=e.rootLabel,D=e.cascade,V=e.rootValue,R=e.showIcon,g=e.showRadio,E=e.onAdd,L=e.creatable,O=e.createTip,F=e.addControls,P=e.onEdit,j=e.editable,A=e.editTip,I=e.editControls,N=e.removable,k=e.removeTip,z=e.onDelete,M=e.rootCreatable,S=e.rootCreateTip,U=e.translate;return o.default.createElement("div",{className:a.default(t+"TreeControl",l)},o.default.createElement(i.Spinner,{size:"sm",key:"info",show:T}),T?null:o.default.createElement(r.default,{classPrefix:t,valueField:b,disabled:s,onChange:d,joinValues:u,extractValue:p,delimiter:c,placeholder:U(f),options:h,multiple:m,initiallyOpen:C,unfoldedLevel:v,withChildren:_,onlyChildren:y,hideRoot:w,rootLabel:U(x),rootValue:V,showIcon:R,showRadio:g,cascade:D,foldedField:"collapsed",value:n||"",labelField:"label",selfDisabledAffectChildren:!1,onAdd:E,creatable:L,createTip:O,rootCreatable:M,rootCreateTip:S,onEdit:P,editable:j,editTip:A,removable:N,removeTip:k,onDelete:z,bultinCUD:!F&&!I}))},l.defaultProps={placeholder:"选项加载中...",multiple:!1,rootLabel:"顶级",rootValue:"",showIcon:!0},l}(o.default.Component);l.default=d;var s=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l=t.__decorate([n.OptionsControl({type:"tree"})],l)}(d);l.TreeControlRenderer=s}); +;/*!src/renderers/Form/TreeSelect.tsx*/ +amis.define("90765dc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeSelectControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("997df41")),l=n.__importDefault(e("2b3dcdf")),o=e("b86428a"),r=n.__importDefault(e("d233af4")),s=n.__importDefault(e("node_modules/match-sorter/dist/match-sorter.cjs")),u=n.__importDefault(e("node_modules/lodash/debounce")),d=n.__importDefault(e("node_modules/lodash/find")),p=e("1caead1"),c=n.__importDefault(e("acad559")),h=n.__importDefault(e("d14c6a1")),f=e("9a80175"),m=function(e){function t(t){var n=e.call(this,t)||this;return n.container=a.default.createRef(),n.target=a.default.createRef(),n.input=a.default.createRef(),n.cache={},n.state={inputValue:"",isOpened:!1,isFocused:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.handleChange=n.handleChange.bind(n),n.clearValue=n.clearValue.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.loadRemote=u.default(n.loadRemote.bind(n),250,{trailing:!0,leading:!1}),n}n.__extends(t,e),t.prototype.componentDidMount=function(){this.loadRemote("")},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){var e=this;this.setState({isOpened:!1,inputValue:this.props.multiple?this.state.inputValue:""},function(){return e.loadRemote(e.state.inputValue)})},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleOutClick(e),e.preventDefault())},t.prototype.validate=function(){var e=this.props,t=e.value,n=e.minLength,a=e.maxLength,i=e.delimiter,l=e.translate,o=Array.isArray(t)?t:(t?String(t):"").split(i||",");return n&&o.lengtha?l("已选择数量超出设定的最大个数{{maxLength}},请取消选择超出的选项。",{maxLength:a}):void 0},t.prototype.removeItem=function(e,t){var n=this.props,a=n.selectedOptions,i=n.joinValues,l=n.extractValue,o=n.delimiter,r=n.valueField,s=n.onChange,u=n.disabled;if(t&&t.stopPropagation(),!u){var d=a.concat();d.splice(e,1);var p=d;i?p=d.map(function(e){return e[r||"value"]}).join(o||","):l&&(p=d.map(function(e){return e[r||"value"]})),s(p)}},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple;a||this.close(),a||!this.state.inputValue?n(e):this.setState({inputValue:""},function(){return n(e)})},t.prototype.handleInputChange=function(e){var t=this,n=this.props,a=n.autoComplete,i=n.data;this.setState({inputValue:e},p.isEffectiveApi(a,i)?function(){return t.loadRemote(t.state.inputValue)}:void 0)},t.prototype.handleInputKeyDown=function(e){var t=this.state.inputValue,n=this.props,a=n.multiple,i=n.selectedOptions;"Backspace"===e.key&&!t&&i.length&&a&&this.removeItem(i.length-1)},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,n=e.resetValue;t("undefined"==typeof n?"":n)},t.prototype.filterOptions=function(e,t){var a=this,i=this.props,l=i.labelField,o=i.valueField;return e.map(function(e){if(e=n.__assign({},e),e.visible=!!s.default([e],t,{keys:[l||"label",o||"value"]}).length,!e.visible&&e.children){e.children=a.filterOptions(e.children,t);var i=e.children.filter(function(e){return e.visible}).length;e.visible=!!i}return e.visible&&(e.collapsed=!1),e})},t.prototype.loadRemote=function(e){var t=this,a=this.props,i=a.autoComplete,l=a.env,o=a.data,r=a.setOptions,s=a.setLoading;if(p.isEffectiveApi(i,o)){if(!l||!l.fetcher)throw new Error("fetcher is required");if(this.cache[e]||~e.indexOf("'")){var u=this.cache[e]||[],d=this.mergeOptions(u);return r(d),Promise.resolve({options:d})}return s(!0),l.fetcher(i,n.__assign(n.__assign({},o),{term:e,value:e})).then(function(n){var a=n.data&&n.data.options||n.data||[];t.cache[e]=a;var i=t.mergeOptions(a);return r(i),Promise.resolve({options:i})}).finally(function(){return s(!1)})}},t.prototype.mergeOptions=function(e){var t=this.props.selectedOptions,a=e.concat();return Array.isArray(t)&&t.length&&t.forEach(function(e){d.default(a,function(t){return t.value==e.value})||a.push(n.__assign(n.__assign({},e),{visible:!1}))}),a},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.handleOutClick=function(e){e.defaultPrevented||this.setState({isOpened:!0})},t.prototype.handleResultChange=function(e){var t=this.props,n=t.joinValues,a=t.extractValue,i=t.delimiter,l=t.valueField,o=t.onChange,r=t.multiple,s=Array.isArray(e)?e.concat():[];return r||s.length?((n||a)&&(s=e.map(function(e){return e[l||"value"]})),n&&(s=s.join(i||",")),void o(s)):void o("")},t.prototype.renderItem=function(e){var t=this.props.labelField;return e[t||"label"]},t.prototype.renderOuter=function(){var e=this,t=this.props,n=t.value,o=t.disabled,s=t.joinValues,u=t.extractValue,d=t.delimiter,c=(t.placeholder,t.options),h=t.multiple,f=t.valueField,m=t.initiallyOpen,v=t.unfoldedLevel,y=t.withChildren,g=t.rootLabel,_=t.cascade,b=t.rootValue,C=t.showIcon,O=t.showRadio,V=t.popOverContainer,F=t.onlyChildren,R=t.classPrefix,x=t.optionsPlaceholder,I=t.searchable,P=t.autoComplete,S=t.maxLength,w=t.minLength,D=t.translate,L=!p.isEffectiveApi(P)&&I&&this.state.inputValue?this.filterOptions(c,this.state.inputValue):c;return a.default.createElement(i.default,{container:V||function(){return e.container.current},target:function(){return e.target.current},show:!0},a.default.createElement(l.default,{classPrefix:R,className:R+"TreeSelect-popover",style:{minWidth:this.target.current?this.target.current.offsetWidth:void 0},onHide:this.close,overlay:!0},a.default.createElement(r.default,{classPrefix:R,onlyChildren:F,valueField:f,disabled:o,onChange:this.handleChange,joinValues:s,extractValue:u,delimiter:d,placeholder:D(x),options:L,highlightTxt:this.state.inputValue,multiple:h,initiallyOpen:m,unfoldedLevel:v,withChildren:y,rootLabel:D(g),rootValue:b,showIcon:C,showRadio:O,cascade:_,foldedField:"collapsed",hideRoot:!0,value:n||"",labelField:"label",maxLength:S,minLength:w})))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,i=e.inline,l=e.loading,o=e.multiple,r=(e.value,e.clearable),s=(e.classPrefix,e.classnames),u=e.searchable,d=e.autoComplete,f=e.selectedOptions,m=e.placeholder,v=e.translate;return a.default.createElement("div",{ref:this.container,className:s("TreeSelectControl",t)},a.default.createElement(h.default,{disabled:n,ref:this.target,placeholder:v(m||"空"),className:s("TreeSelect",{"TreeSelect--inline":i,"TreeSelect--single":!o,"TreeSelect--multi":o,"TreeSelect--searchable":u||p.isEffectiveApi(d),"is-opened":this.state.isOpened,"is-focused":this.state.isFocused,"is-disabled":n}),result:o?f:f.length?this.renderItem(f[0]):"",onResultClick:this.handleOutClick,value:this.state.inputValue,onChange:this.handleInputChange,onResultChange:this.handleResultChange,itemRender:this.renderItem,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleInputKeyDown,clearable:r,allowInput:u||p.isEffectiveApi(d),inputPlaceholder:""},l?a.default.createElement(c.default,{size:"sm"}):void 0),this.state.isOpened?this.renderOuter():null)};var m,v,y;return t.defaultProps={placeholder:"请选择",optionsPlaceholder:"暂无数据",multiple:!1,clearable:!0,rootLabel:"顶级",rootValue:"",showIcon:!0,joinValues:!0,extractValue:!1,delimiter:",",resetValue:""},n.__decorate([f.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(m="undefined"!=typeof a.default&&a.default.MouseEvent)?m:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleOutClick",null),n.__decorate([f.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(v="undefined"!=typeof Array&&Array)?v:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleResultChange",null),n.__decorate([f.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(y="undefined"!=typeof o.Option&&o.Option)?y:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"renderItem",null),t}(a.default.Component);t.default=m;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.OptionsControl({type:"tree-select"})],t)}(m);t.TreeSelectControlRenderer=v}); +;/*!src/renderers/Form/File.tsx*/ +amis.define("162bd80",function(e,t){"use strict";function a(e){return/(?:\/|^)([^\/]+?)$/.test(e)?decodeURIComponent(RegExp.$1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.FileControlRenderer=t.getNameFromUrl=void 0;var n=e("node_modules/tslib/tslib"),i=n.__importDefault(e("node_modules/react/index")),l=e("567b83c"),r=n.__importDefault(e("node_modules/lodash/find")),o=n.__importDefault(e("node_modules/lodash/isPlainObject")),s=n.__importDefault(e("node_modules/async/mapLimit")),u=n.__importDefault(e("cf6ad73")),d=e("9a80175"),p=e("1caead1"),c=n.__importDefault(e("a67acca")),f=e("b7bbd16"),m=n.__importDefault(e("node_modules/react-dropzone/dist/index")),h=e("f2e345e"),g=function(e){return e.stopPropagation()};t.getNameFromUrl=a;var v=function(e){function t(a){var n=e.call(this,a)||this;n.dropzone=i.default.createRef();var l=a.value,r=(a.multiple,a.joinValues),o=a.delimiter,s=[];return l&&l instanceof Blob?s=[l]:l&&(s=(Array.isArray(l)?l:r?(l.value||l).split(o):[l.value||l]).map(function(e){return t.valueToFile(e,a)}).filter(function(e){return e})),n.state={files:s,uploading:!1},n.sendFile=n.sendFile.bind(n),n.removeFile=n.removeFile.bind(n),n.clearError=n.clearError.bind(n),n.handleDrop=n.handleDrop.bind(n),n.handleDropRejected=n.handleDropRejected.bind(n),n.startUpload=n.startUpload.bind(n),n.stopUpload=n.stopUpload.bind(n),n.retry=n.retry.bind(n),n.toggleUpload=n.toggleUpload.bind(n),n.tick=n.tick.bind(n),n.onChange=n.onChange.bind(n),n.uploadFile=n.uploadFile.bind(n),n.uploadBigFile=n.uploadBigFile.bind(n),n.handleSelect=n.handleSelect.bind(n),n}return n.__extends(t,e),t.valueToFile=function(e,t,i){var l=i&&"string"==typeof e?r.default(i,function(t){return t.value===e}):void 0;return e?e instanceof File?{state:"ready",value:e,name:e.name,url:"",id:d.guid()}:n.__assign({},"string"==typeof e?{state:l&&l.state?l.state:"init",value:e,name:l&&l.name||(/^data:/.test(e)?"base64数据":a(e)),id:d.guid(),url:"string"==typeof t.downloadUrl&&e&&!/^data:/.test(e)?""+t.downloadUrl+e:void 0}:e):void 0},t.prototype.componentWillReceiveProps=function(e){var a=this,i=this.props;if(i.value!==e.value&&this.emitValue!==e.value){var l=e.value,o=(e.multiple,e.joinValues),s=e.delimiter,u=[];l&&(u=(Array.isArray(l)?l:o&&"string"==typeof l?l.split(s):[l]).map(function(i){var l,o=t.valueToFile(i,e,a.state.files);return o&&(l=r.default(a.state.files,function(e){return e.value===o.value}))&&(o=n.__assign(n.__assign(n.__assign({},l),o),{id:o.id||l.id})),o}).filter(function(e){return e})),this.setState({files:u})}},t.prototype.handleDrop=function(e){var t=this;if(e.length){var a=this.props,n=a.maxSize,i=a.multiple,l=a.maxLength,r=a.translate,o=i&&l?l-this.state.files.length:e.length,s=[];[].slice.call(e,0,o).forEach(function(e){n&&e.size>n?(t.props.env.alert(r("您选择的文件 {{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制,请重新选择。",{filename:e.name,actualSize:u.default.formatFileSize(e.size),maxSize:u.default.formatFileSize(n)})),e.state="invalid"):e.state="pending",e.id=d.guid(),s.push(e)}),s.length&&this.setState({error:null,files:i?this.state.files.concat(s):s},function(){var e=t.props.autoUpload;e&&t.startUpload()})}},t.prototype.handleDropRejected=function(e,t){if("change"===t.type||"drop"===t.type){var a=this.props,i=a.multiple,l=a.env,r=a.accept,o=a.translate,s=e.map(function(e){return n.__assign(n.__assign({},e),{state:"invalid",id:d.guid(),name:e.name})});this.setState({files:i?this.state.files.concat(s):this.state.files.length?this.state.files:s.slice(0,1)}),l.alert(o("您添加的文件{{files}}不符合类型的`{{accept}}`的设定,请仔细检查。",{files:s.map(function(e){return"「"+e.name+"」"}).join(" "),accept:r}))}},t.prototype.handleSelect=function(){this.dropzone.current&&this.dropzone.current.open()},t.prototype.startUpload=function(e){void 0===e&&(e=!1),this.state.uploading||this.setState({uploading:!0,files:this.state.files.map(function(t){return e&&"error"===t.state&&(t.state="pending",t.progress=0),t})},this.tick)},t.prototype.toggleUpload=function(e){return e.preventDefault(),this.state.uploading?this.stopUpload():this.startUpload()},t.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},t.prototype.retry=function(){this.startUpload(!0)},t.prototype.tick=function(){var e=this;if(!this.current&&this.state.uploading){var t=this.props.translate,a=r.default(this.state.files,function(e){return"pending"===e.state});a?(this.current=a,a.state="uploading",this.setState({files:this.state.files.concat()},function(){return e.sendFile(a,function(t,a,n){var i=e.state.files.concat(),l=i.indexOf(a);if(~l){var r=a;t?(r.state="error",r.error=t):(r=n,r.name=r.name||a.name),i.splice(l,1,r),e.current=null,e.setState({error:t?t:null,files:i},e.tick)}},function(t){var n=e.state.files.concat(),i=n.indexOf(a);~i&&(a.progress=t,e.setState({files:n}))})})):this.setState({uploading:!1},function(){e.onChange(!!e.resolve),e.resolve&&(e.resolve(e.state.files.some(function(e){return"error"===e.state})?t("文件上传失败请重试"):null),e.resolve=void 0)})}},t.prototype.sendFile=function(e,t,a){var i=this.props,l=i.reciever,r=i.fileField,s=i.downloadUrl,u=i.useChunk,p=i.chunkSize,c=i.startChunkApi,f=i.chunkApi,m=i.finishChunkApi,g=i.asBase64,v=i.asBlob,_=i.data,y=i.translate,b=i.multiple,F=i.autoFill,C=i.onBulkChange;if(g){var k=new FileReader;return k.readAsDataURL(e),k.onload=function(){e.state="ready",t(null,e,{value:k.result,name:e.name,url:"",state:"ready",id:e.id})},void(k.onerror=function(e){return t(e.message)})}if(v)return e.state="ready",void setTimeout(function(){return t(null,e,{name:e.name,value:e,url:"",state:"ready",id:e.id})},4);var E="auto"===u&&p&&e.size>p||u===!0?this.uploadBigFile:this.uploadFile;E(e,l,{},{fieldName:r,chunkSize:p,startChunkApi:c,chunkApi:f,finishChunkApi:m,data:_},a).then(function(i){if(i.status||!i.data)throw new Error(i.msg||y("上传失败, 请重试"));a(1);var l=i.data.value||i.data,r=!b&&F&&!d.isEmpty(F)&&h.dataMapping(F,i.data);r&&C(r),t(null,e,n.__assign(n.__assign({},o.default(i.data)?i.data:null),{value:l,url:"string"==typeof s&&l?""+s+l:i.data?i.data.url:null,state:"uploaded",id:e.id}))}).catch(function(a){t(a.message||y("上传失败, 请重试"),e)})},t.prototype.removeFile=function(e,t){var a=this.state.files.concat();a.splice(t,1),this.setState({files:a},this.onChange)},t.prototype.clearError=function(){this.setState({error:null})},t.prototype.onChange=function(e){var t=this.props,a=t.multiple,n=t.onChange,i=t.joinValues,l=t.extractValue,r=t.valueField,o=t.delimiter,s=t.resetValue,u=t.asBlob,d=this.state.files.filter(function(e){return~["uploaded","init","ready"].indexOf(e.state)}),p=a?d:d[0];p?l||u?p=Array.isArray(p)?p.map(function(e){return e[r||"value"]}):p[r||"value"]:i&&(p=Array.isArray(p)?p.map(function(e){return e[r||"value"]}).join(o||","):p[r||"value"]):p="undefined"==typeof s?"":s,n(this.emitValue=p,void 0,e)},t.prototype.uploadFile=function(e,t,a,i,l){void 0===i&&(i={});var r=new FormData,o=p.buildApi(t,d.createObject(i.data,a),{method:"post"});return d.qsstringify(n.__assign(n.__assign({},o.data),a)).split("&").forEach(function(e){var t=e.split("=");r.append(t[0],decodeURIComponent(t[1]))}),r.append(i.fieldName||"file",e),this._send(o,r,{},l)},t.prototype.uploadBigFile=function(e,t,a,i,l){void 0===i&&(i={});var r,o=i.chunkSize||5242880,u=this,c=.2,f=.9,m=this.props.translate;return new Promise(function(t,h){function g(t){l(c);var a=b(e);if(r=a.map(function(){return 0}),!t.data)throw new Error(m("接口返回错误,请仔细检查"));F={key:t.data.key,uploadId:t.data.uploadId,loaded:0,total:a.length},s.default(a,3,y(F,i),function(e,t){e?h(e):_(t,F)})}function v(e,t){r[e-1]=t,l(c+(f-c)*(r.reduce(function(e,t){return e+t},0)/r.length))}function _(r,o){l(f);var s=p.buildApi(i.finishChunkApi,d.createObject(i.data,n.__assign(n.__assign({},a),{uploadId:o.uploadId,key:o.key,filename:e.name,partList:r})),{method:"post",autoAppend:!0});u._send(s).then(t).catch(h)}function y(t,l){return function(r,o){var s=p.buildApi(l.chunkApi,d.createObject(i.data,a),{method:"post"}),c=new FormData,f=r.file.slice(r.start,r.stop+1);return d.qsstringify(n.__assign(n.__assign({},s.data),a)).split("&").forEach(function(e){var t=e.split("=");c.append(t[0],decodeURIComponent(t[1]))}),c.append("key",t.key),c.append("uploadId",t.uploadId),c.append("partNumber",r.partNumber.toString()),c.append("partSize",r.partSize.toString()),c.append(i.fieldName||"file",f,e.name),u._send(s,c,{},function(e){return v(r.partNumber,e)}).then(function(e){t.loaded++,o(null,{partNumber:r.partNumber,eTag:e.data.eTag})}).catch(o)}}function b(e){for(var t=e.size,a=0,n=1,i=[];t>0;){var l=Math.min(t,o);i.push({file:e,partNumber:n,partSize:l,start:a,stop:a+l-1}),t-=l,a+=l,n+=1}return i}var F,C=p.buildApi(i.startChunkApi,d.createObject(i.data,n.__assign(n.__assign({},a),{filename:e.name})),{method:"post",autoAppend:!0});u._send(C).then(g).catch(h)})},t.prototype._send=function(e,t,a,i){var l=this.props.env;if(!l||!l.fetcher)throw new Error("fetcher is required");return l.fetcher(e,t,n.__assign(n.__assign({method:"post"},a),{withCredentials:!0,onUploadProgress:i?function(e){return i(e.loaded/e.total)}:void 0}))},t.prototype.validate=function(){var e=this,t=this.props.translate;return this.state.uploading||this.state.files.some(function(e){return"pending"===e.state})?new Promise(function(t){e.resolve=t,e.startUpload()}):this.state.files.some(function(e){return"error"===e.state})?t("文件上传失败请重试"):void 0},t.prototype.render=function(){var e=this,t=this.props,a=(t.btnLabel,t.accept),l=t.disabled,r=t.maxLength,o=t.multiple,s=t.autoUpload,u=t.description,d=t.hideUploadButton,p=t.className,h=t.classnames,v=t.translate,_=t.render,y=this.state,b=y.files,F=y.uploading,C=(y.error,b.some(function(e){return"pending"==e.state})),k=0,E=0;return this.state.uploading||this.state.files.forEach(function(e){"error"===e.state?E++:"uploaded"===e.state&&k++}),i.default.createElement("div",{className:h("FileControl",p)},i.default.createElement(m.default,{key:"drop-zone",ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,accept:"*"===a?"":a,multiple:o},function(t){var a=t.getRootProps,s=t.getInputProps,d=t.isDragActive;return i.default.createElement("div",n.__assign({},a({onClick:g}),{className:h("FileControl-dropzone",{disabled:l,"is-empty":!b.length,"is-active":d})}),i.default.createElement("input",n.__assign({},s())),d?i.default.createElement("div",{className:h("FileControl-acceptTip")},v("把文件拖到这,然后松完成添加!")):i.default.createElement(i.default.Fragment,null,o&&(!r||b.length1024&&t.length>1;)e/=1024,t.shift();return e.toFixed(2)+t[0]},t.valueToFile=function(e){return e?a.__assign(a.__assign({},"string"==typeof e?{value:e,url:e,id:c.guid()}:e),{state:"init"}):void 0},t.sizeInfo=function(e,t,a){return e?t?a("尺寸({{width}} x {{height}})",{width:e,height:t}):a("宽度{{width}}px",{width:e}):a("高度{{height}}px",{height:t})},t.prototype.componentWillReceiveProps=function(e){var i=this,n=this.props;if(n.value!==e.value&&this.emitValue!==e.value){var o=e.value,l=(e.multiple,e.joinValues),s=e.delimiter,d=[];o&&(d=(Array.isArray(o)?o:l&&"string"==typeof o?o.split(s):[o]).map(function(n){var o,l=t.valueToFile(n,e);return l&&(o=r.default(i.files,function(e){return e.value===l.value}))&&(l=a.__assign(a.__assign(a.__assign({},o),l),{id:o.id||l.id})),l}).filter(function(e){return e})),this.setState({files:this.files=d})}n.crop!==e.crop&&this.setState({crop:this.buildCrop(e)})},t.prototype.componentWillUnmount=function(){this.unmounted=!0},t.prototype.buildCrop=function(e){var t=e.crop,i=this.props.translate;return t&&e.multiple?(e.env&&e.env.alert&&e.env.alert(i("图片多选配置和裁剪配置冲突,目前不能二者都支持!")),null):(t===!0&&(t={}),t&&(t=a.__assign({aspectRatio:void 0,guides:!0,dragMode:"move",viewMode:1,rotatable:!1,scalable:!1},t)),t)},t.prototype.handleDropRejected=function(e,t){if("change"===t.type||"drop"===t.type){var i=this.props,n=(i.multiple,i.env),o=i.accept,l=i.translate,r=e.map(function(e){return a.__assign(a.__assign({},e),{state:"invalid",id:c.guid(),name:e.name})});n.alert(l("您添加的文件{{files}}不符合类型的`{{accept}}`的设定,请仔细检查。",{files:r.map(function(e){return"「"+e.name+"」"}).join(" "),accept:o}))}},t.prototype.startUpload=function(e){void 0===e&&(e=!1),this.state.uploading||this.setState({uploading:!0,locked:!0,files:this.files=this.files.map(function(t){return e&&"error"===t.state&&(t.state="pending",t.progress=0),t})},this.tick)},t.prototype.toggleUpload=function(){return this.state.uploading?this.stopUpload():this.startUpload()},t.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},t.prototype.tick=function(){var e=this;if(!this.current&&this.state.uploading){var t=this.props.env,i=this.props.translate,n=r.default(this.files,function(e){return"pending"===e.state});n?(this.current=n,n.state="uploading",this.setState({files:this.files=this.files.concat()},function(){return e.sendFile(n,function(n,o,l){var r=e.files.concat(),s=r.indexOf(o);if(~s){var d=o;if(n){if(d.state="uploading"!==o.state?o.state:"error",d.error=n,!e.props.multiple&&"invalid"===d.state)return r.splice(s,1),e.current=null,e.setState({files:e.files=r,error:n},e.tick);t.notify("error",n||i("图片上传失败,请重试"))}else d=a.__assign(a.__assign({},l),{preview:o.preview});r.splice(s,1,d),e.current=null,e.setState({files:e.files=r},e.tick)}},function(t){var a=e.files.concat(),i=a.indexOf(n);~i&&(n.progress=t,e.setState({files:e.files=a}))})})):this.setState({uploading:!1,locked:!1},function(){e.onChange(!!e.resolve),e.resolve&&(e.resolve(e.files.some(function(e){return"error"===e.state})?i("文件上传失败请重试"):null),e.resolve=void 0)})}},t.prototype.removeFile=function(e,t){var a=this.files.concat();a.splice(t,1),this.setState({files:this.files=a},this.onChange)},t.prototype.previewImage=function(e,t,a){var i=this.props.onImageEnlarge;if(i){var n=this.files;a.preventDefault(),i({src:e.preview||e.url,originalSrc:e.preview||e.url,index:t,list:n.map(function(e){return{src:e.preview||e.url,originalSrc:e.preview||e.url,title:e.name||m.getNameFromUrl(e.value||e.url)}})})}},t.prototype.editImage=function(e){var t=this.files;this.setState({cropFile:{preview:t[e].preview||t[e].url,state:"init"}})},t.prototype.onChange=function(e){var t=this.props,a=t.multiple,i=t.onChange,n=t.joinValues,o=t.extractValue,l=t.delimiter,r=t.valueField,s=this.files.filter(function(e){return"uploaded"==e.state||"init"==e.state}),d=s.length?n?s[0].value:s[0]:"";d=a?n?s.map(function(e){return e.value}).join(l):o?s.map(function(e){return e.value}):s:n?d.value||d:o?d[r||"value"]:d,i(this.emitValue=d||"",void 0,e)},t.prototype.handleSelect=function(){this.dropzone.current&&this.dropzone.current.open()},t.prototype.handleRetry=function(e){var t=this.files.concat(),a=t[e];("invalid"===a.state||"error"===a.state)&&(a.state="pending",a.progress=0,this.setState({files:t},this.startUpload))},t.prototype.handleDrop=function(e){var t=this.props,a=t.multiple,i=t.crop;if(i&&!a){var n=e[0];return n.preview&&n.url||(n.preview=window.URL.createObjectURL(n)),this.setState({cropFile:n})}this.addFiles(e)},t.prototype.handlePaste=function(e){var t=e.nativeEvent,a=[],i=t.clipboardData.items,n=this.props.accept;[].slice.call(i).forEach(function(e){var t;"file"===e.kind&&(t=e.getAsFile())&&f.default(t,n)&&(t.id=c.guid(),a.push(t))}),this.handleDrop(a)},t.prototype.handleCrop=function(){var e=this;this.cropper.current.getCroppedCanvas().toBlob(function(t){e.addFiles([t]),e.setState({cropFile:void 0,locked:!1,lockedReason:""})})},t.prototype.cancelCrop=function(){this.setState({cropFile:void 0,locked:!1,lockedReason:""},this.onChange)},t.prototype.addFiles=function(e){var a=this;if(e.length){var i=this.props,n=i.multiple,o=i.maxLength,l=i.maxSize,r=(i.accept,i.translate),s=this.files;!n&&s.length&&(s=[]);var d=(n?o?o:e.length+s.length:1)-s.length,p=[];[].slice.call(e,0,d).forEach(function(e){return l&&e.size>l?void alert(r("您选择的文件 {{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制,请重新选择。",{filename:e.name,actualSize:t.formatFileSize(e.size),maxSize:t.formatFileSize(l)})):(e.state="pending",e.id=c.guid(),e.preview&&e.url||(e.preview=URL.createObjectURL(e)),void p.push(e))}),p.length&&this.setState({error:void 0,files:this.files=s.concat(p),locked:!0},function(){var e=a.props.autoUpload;e&&a.startUpload()})}},t.prototype.sendFile=function(e,a,i){var n=this,o=this.props,l=o.limit,r=o.translate;if(!l)return this._upload(e,a,i);var s=new Image;s.onload=function(){var o=s.width,d=s.height,c="";l.width&&l.width!=o||l.height&&l.height!=d?c=r("您选择的图片不符合尺寸要求, 请上传{{info}}的图片",{info:t.sizeInfo(l.width,l.height,r)}):l.maxWidth&&l.maxWidtho||l.minHeight&&l.minHeight>d?c=r("您选择的图片不符合尺寸要求, 请上传不要小于{{info}}的图片",{info:t.sizeInfo(l.minWidth,l.minHeight,r)}):l.aspectRatio&&Math.abs(o/d-l.aspectRatio)>.01&&(c=r("您选择的图片不符合尺寸要求, 请上传尺寸比率为 {{ratio}} 的图片",{ratio:l.aspectRatioLabel||l.aspectRatio})),c?(e.state="invalid",a(c,e)):n._upload(e,a,i)},s.src=e.preview||e.url},t.prototype._upload=function(e,t,i){var n=this.props,o=n.translate,l=n.multiple,r=n.autoFill,s=n.onBulkChange;this._send(e,this.props.reciever,{},i).then(function(i){if(i.status)throw new Error(i.msg||o("上传失败, 请重试"));var n=a.__assign(a.__assign({},i.data),{state:"uploaded"});n.value=n.value||n.url;var d=!l&&r&&!c.isEmpty(r)&&g.dataMapping(r,n);d&&s(d),t(null,e,n)}).catch(function(a){return t(a.message||o("上传失败,请重试"),e)})},t.prototype._send=function(e,t,i,n){var o=new FormData,l=this.props.data,r=d.buildApi(t,c.createObject(l,i),{method:"post"}),p=this.props.fileField||"file";o.append(p,e,e.name);var u=r.url.indexOf("?");~u&&i?(i=a.__assign(a.__assign({},s.default.parse(r.url.substring(u+1))),i),r.url=r.url.substring(0,u)+"?"+c.qsstringify(i)):i&&(r.url+="?"+c.qsstringify(i)),r.data&&c.qsstringify(r.data).split("&").forEach(function(e){var t=e.split("=");o.append(t[0],decodeURIComponent(t[1]))});var f=this.props.env;if(!f||!f.fetcher)throw new Error("fetcher is required");return f.fetcher(r,o,{method:"post",onUploadProgress:function(e){return n(e.loaded/e.total)}})},t.prototype.handleClick=function(){this.refs.dropzone.open()},t.prototype.handleImageLoaded=function(e,t){var i=this,n=t.currentTarget,o=new Image;o.onload=function(){delete o.onload;var t=i.files.concat(),n=t[e];if(n){n.info=a.__assign(a.__assign({},n.info),{width:o.width,height:o.height}),t.splice(e,1,n);var l=!(!i.current&&!r.default(t,function(e){return"pending"===e.state}));i.unmounted||i.setState({files:i.files=t},l?void 0:i.onChange)}},o.src=n.src},t.prototype.validate=function(){var e=this,t=this.props.translate;return this.state.locked&&this.state.lockedReason?this.state.lockedReason:this.state.cropFile?new Promise(function(t){e.resolve=t,e.handleCrop()}):this.state.uploading||this.files.some(function(e){return"pending"===e.state})?new Promise(function(t){e.resolve=t,e.startUpload()}):this.files.some(function(e){return"error"===e.state})?t("文件上传失败请重试"):void 0},t.prototype.render=function(){var e=this,n=this.props,r=n.className,s=n.classnames,d=n.placeholder,c=n.disabled,f=n.multiple,g=n.accept,_=n.maxLength,b=n.autoUpload,C=n.hideUploadButton,y=n.thumbMode,E=n.thumbRatio,I=n.reCropable,k=n.translate,w=this.state,F=w.files,N=w.error,S=w.crop,R=w.uploading,U=w.cropFile,x=F.some(function(e){return"pending"==e.state});return i.default.createElement("div",{className:s("ImageControl",r)},U?i.default.createElement("div",{className:s("ImageControl-cropperWrapper")},i.default.createElement(o.default,a.__assign({},S,{ref:this.cropper,src:U.preview})),i.default.createElement("div",{className:s("ImageControl-croperToolbar")},i.default.createElement("a",{className:s("ImageControl-cropCancel"),onClick:this.cancelCrop,"data-tooltip":k("取消"),"data-position":"left"},i.default.createElement(p.Icon,{icon:"close",className:"icon"})),i.default.createElement("a",{className:s("ImageControl-cropConfirm"),onClick:this.handleCrop,"data-tooltip":k("确认"),"data-position":"left"},i.default.createElement(p.Icon,{icon:"check",className:"icon"})))):i.default.createElement(l.default,{key:"drop-zone",ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,accept:g,multiple:f},function(n){var o=n.getRootProps,l=n.getInputProps,r=n.isDragActive,g=n.isDragAccept,w=n.isDragReject,U=n.isFocused;return i.default.createElement("div",a.__assign({},o({onClick:v,onPaste:e.handlePaste,className:s("ImageControl-dropzone",{disabled:c,"is-empty":!F.length,"is-active":r})})),i.default.createElement("input",a.__assign({},l())),r||g||w?i.default.createElement("div",{className:s("ImageControl-acceptTip",{"is-accept":g,"is-reject":w})},k("把图片拖到这,然后松开完成添加!")):i.default.createElement(i.default.Fragment,null,F&&F.length?F.map(function(a,n){return i.default.createElement("div",{key:a.id||n,className:s("ImageControl-item",{"is-uploaded":"uploading"!==a.state,"is-invalid":"error"===a.state||"invalid"===a.state})},"invalid"===a.state||"error"===a.state?i.default.createElement(i.default.Fragment,null,i.default.createElement("a",{className:s("ImageControl-itemClear"),"data-tooltip":k("移除"),"data-position":"bottom",onClick:e.removeFile.bind(e,a,n)},i.default.createElement(p.Icon,{icon:"close",className:"icon"})),i.default.createElement("a",{className:s("ImageControl-retryBtn",{"is-disabled":c}),onClick:e.handleRetry.bind(e,n)},i.default.createElement(p.Icon,{icon:"retry",className:"icon"}),i.default.createElement("p",{className:"ImageControl-itemInfoError"},k("重新上传")))):"uploading"===a.state?i.default.createElement(i.default.Fragment,null,i.default.createElement("a",{onClick:e.removeFile.bind(e,a,n),key:"clear",className:s("ImageControl-itemClear"),"data-tooltip":k("移除")},i.default.createElement(p.Icon,{icon:"close",className:"icon"})),i.default.createElement("div",{key:"info",className:s("ImageControl-itemInfo")},i.default.createElement("p",null,k("文件上传中")),i.default.createElement("div",{className:s("ImageControl-progress")},i.default.createElement("span",{style:{width:Math.round(100*a.progress)+"%"},className:s("ImageControl-progressValue")})))):i.default.createElement(i.default.Fragment,null,i.default.createElement(h.default,{key:"image",className:s("ImageControl-image"),onLoad:e.handleImageLoaded.bind(e,n),src:a.preview||a.url,alt:a.name,thumbMode:y,thumbRatio:E}),i.default.createElement("div",{key:"overlay",className:s("ImageControl-itemOverlay")},a.info?[i.default.createElement("div",{key:"info"},a.info.width," x ",a.info.height),a.info.len?i.default.createElement("div",{key:"size"},t.formatFileSize(a.info.len)):null]:i.default.createElement("div",null,"..."),i.default.createElement("a",{"data-tooltip":k("查看大图"),"data-position":"bottom",target:"_blank",href:a.url||a.preview,onClick:e.previewImage.bind(e,a,n)},i.default.createElement(p.Icon,{icon:"view",className:"icon"})),S&&I!==!1&&!c?i.default.createElement("a",{"data-tooltip":k("裁剪图片"),"data-position":"bottom",onClick:e.editImage.bind(e,n)},i.default.createElement(p.Icon,{icon:"pencil",className:"icon"})):null,c?null:i.default.createElement("a",{"data-tooltip":k("移除"),"data-position":"bottom",onClick:e.removeFile.bind(e,a,n)},i.default.createElement(p.Icon,{icon:"remove",className:"icon"})),i.default.createElement("a",{"data-tooltip":a.name||m.getNameFromUrl(a.value||a.url),"data-position":"bottom",target:"_blank"},i.default.createElement(p.Icon,{icon:"info",className:"icon"})))))}):null,f&&(!_||F.length<_)||!f&&!F.length?i.default.createElement("label",{className:s("ImageControl-addBtn",{"is-disabled":c}),onClick:e.handleSelect,"data-tooltip":k(d),"data-position":"right"},i.default.createElement(p.Icon,{icon:"plus",className:"icon"}),U?i.default.createElement("span",{className:s("ImageControl-pasteTip")},k("当前状态支持从剪切板中粘贴图片文件。")):null):null,b||C||!F.length?null:i.default.createElement(u.default,{level:"default",className:s("ImageControl-uploadBtn"),disabled:!x,onClick:e.toggleUpload},k(R?"暂停上传":"开始上传")),N?i.default.createElement("div",{className:s("ImageControl-errorMsg")},N):null))}))},t.defaultProps={limit:void 0,accept:"image/jpeg, image/jpg, image/png, image/gif",reciever:"/api/upload",hideUploadButton:!1,placeholder:"点击选择图片或者将图片拖入该区域",joinValues:!0,extractValue:!1,delimiter:",",autoUpload:!0,multiple:!1},t}(i.default.Component);t.default=_;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.FormItem({type:"image",sizeMutable:!1})],t)}(_);t.ImageControlRenderer=b}); +;/*!src/renderers/Form/Matrix.tsx*/ +amis.define("690a2f4",function(e,t){"use strict";function n(e,t){return Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.map(function(e){return t.map(function(t){return a.__assign(a.__assign(a.__assign({},t),e),{checked:!1})})})}function r(e,t,n){return e.map(function(e,r){return e.map(function(e,o){return a.__assign(a.__assign(a.__assign({},t[r]),n[o]),e)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixRenderer=void 0;var a=e("node_modules/tslib/tslib"),o=a.__importDefault(e("node_modules/react/index")),s=e("567b83c"),i=e("1caead1"),l=e("1953fc1"),u=e("9a80175"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.sourceInvalid=!1,n.mounted=!1,n.state={columns:t.columns||[],rows:t.rows||[],loading:!1},n.toggleItem=n.toggleItem.bind(n),n.reload=n.reload.bind(n),n.initOptions=n.initOptions.bind(n),n}return a.__extends(t,e),t.prototype.componentWillMount=function(){this.mounted=!0},t.prototype.componentDidMount=function(){var e=this.props,t=e.formInited,n=e.addHook;t?this.reload():n(this.initOptions,"init")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.columns!==e.columns||t.rows!==e.rows)this.setState({columns:e.columns||[],rows:e.rows||[]});else if(e.formInited&&(e.source!==t.source||t.data!==e.data)){var n=i.buildApi(t.source,t.data,{ignoreData:!0}),r=i.buildApi(e.source,e.data,{ignoreData:!0});n.url!==r.url&&i.isValidApi(r.url)&&(this.sourceInvalid=!0)}},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&(this.sourceInvalid=!1,this.reload())},t.prototype.componentWillUnmount=function(){this.mounted=!1;var e=this.props.removeHook;e(this.initOptions,"init")},t.prototype.initOptions=function(e){return a.__awaiter(this,void 0,void 0,function(){var t,n,r;return a.__generator(this,function(a){switch(a.label){case 0:return[4,this.reload()];case 1:return a.sent(),t=this.props,n=t.formItem,r=t.name,n?(n.value&&u.setVariable(e,r,n.value),[2]):[2]}})})},t.prototype.reload=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,o,s,l,u=this;return a.__generator(this,function(a){switch(a.label){case 0:if(e=this.props,t=e.source,n=e.data,o=e.env,s=e.onChange,l=e.translate,!i.isEffectiveApi(t,n)||this.state.loading)return[2];if(!o||!o.fetcher)throw new Error("fetcher is required");return[4,new Promise(function(e){return u.mounted?void u.setState({loading:!0},function(){return u.mounted?void o.fetcher(t,n).then(function(n){if(!n.ok)throw new Error(n.msg||l("数据请求错误"));return u.mounted?void u.setState({loading:!1,rows:n.data.rows||[],columns:n.data.columns||[]},function(){var a=(t&&t.replaceData,n.data.value);a&&(a=t.replaceData?a:r(a,u.state.columns,u.state.rows),s(a)),e()}):e()}).catch(function(t){return u.setState({error:t,loading:!1},e)}):e()}):e()})];case 1:return[2,a.sent()]}})})},t.prototype.toggleItem=function(e,t,r){var o=this.state,s=o.columns,i=o.rows,l=this.props,u=l.multiple,c=l.singleSelectMode,d=this.props.value||n(s,i);if(u)d[t][r]=a.__assign(a.__assign({},d[t][r]),{checked:e});else if("row"===c)for(var m=0,p=s.length;p>m;m++)d[m][r]=a.__assign(a.__assign({},d[m][r]),{checked:t===m?e:!e});else if("column"===c)for(var f=0,p=i.length;p>f;f++)d[t][f]=a.__assign(a.__assign({},d[t][f]),{checked:r===f?e:!e});else for(var f=0,p=i.length;p>f;f++)for(var m=0,h=s.length;h>m;m++)d[m][f]=a.__assign(a.__assign({},d[m][f]),{checked:t===m&&r===f?e:!e});this.props.onChange(d.concat())},t.prototype.renderInput=function(){var e=this,t=this.state,r=t.columns,a=t.rows,s=this.props,i=s.rowLabel,u=(s.className,s.classnames),c=s.multiple,d=this.props.value||n(r,a);return o.default.createElement("div",{className:u("Table m-b-none")},o.default.createElement("div",{className:u("Table-content")},o.default.createElement("table",{className:u("Table-table")},o.default.createElement("thead",null,o.default.createElement("tr",null,o.default.createElement("th",null,i),r.map(function(e,t){return o.default.createElement("th",{key:t,className:"text-center"},e.label)}))),o.default.createElement("tbody",null,a.map(function(t,n){return o.default.createElement("tr",{key:n},o.default.createElement("td",null,t.label,t.description||t.desc?o.default.createElement("span",{className:"m-l-xs text-muted text-xs"},t.description||t.desc):null),r.map(function(t,r){return o.default.createElement("td",{key:r,className:"text-center"},o.default.createElement(l.Checkbox,{type:c?"checkbox":"radio",checked:!!(d[r]&&d[r][n]&&d[r][n].checked),onChange:function(t){return e.toggleItem(t,r,n)}}))}))})))))},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.render,e.classnames),r=this.state,a=r.error,s=r.loading;return o.default.createElement("div",{key:"input",className:n("MatrixControl",t||"")},a?o.default.createElement("div",{className:n("MatrixControl-error Alert Alert--danger")},String(a)):this.renderInput(),o.default.createElement(l.Spinner,{size:"lg",overlay:!0,key:"info",show:s}))},t.defaultProps={columns:[],rows:[],multiple:!0,singleSelectMode:"column"},t}(o.default.Component);t.default=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([s.FormItem({type:"matrix",strictMode:!1,sizeMutable:!1})],t)}(c);t.MatrixRenderer=d}); +;/*!src/renderers/Form/Range.tsx*/ +amis.define("db77605",function(e,t){"use strict";function a(e,t){if(t.multiple){if("string"==typeof e){var a=e.split(t.delimiter||",").map(function(e){return Number(e)}),n=a[0],l=a[1];return{min:t.min&&nt.max&&t.max||l||t.max}}if("object"==typeof e)return{min:t.min&&e.mint.max&&t.max||e.max||t.max}}return null!==e&&void 0!==e?e:t.min}Object.defineProperty(t,"__esModule",{value:!0}),t.RangeControlRenderer=t.formatValue=void 0;var n=e("node_modules/tslib/tslib"),l=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("node_modules/lodash/isNumber")),u=n.__importDefault(e("node_modules/lodash/isObject")),s=n.__importDefault(e("node_modules/lodash/isEqual")),r=e("567b83c"),m=n.__importDefault(e("736bbb6")),o=e("b7bbd16");t.formatValue=a;var p=function(e){function t(t){var n=e.call(this,t)||this,l=n.props,i=l.value,s=l.multiple,r=l.delimiter,m=l.min,o=l.max,p=a(i,{multiple:s,delimiter:r,min:m,max:o});return n.state={value:p,minValue:u.default(p)?p.min:m,maxValue:u.default(p)?p.max:o},n.handleChange=n.handleChange.bind(n),n.handleEnd=n.handleEnd.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.midLabelRef=n.midLabelRef.bind(n),n.clearValue=n.clearValue.bind(n),n.handleMinInputBlur=n.handleMinInputBlur.bind(n),n.handleMaxInputBlur=n.handleMaxInputBlur.bind(n),n.handleMinInputChange=n.handleMinInputChange.bind(n),n.handleMaxInputChange=n.handleMaxInputChange.bind(n),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.value,n=e.value,l=e.multiple,i=e.delimiter,s=e.min,r=e.max;if(t!==n){var m=a(n,{multiple:l,delimiter:i,min:s,max:r});this.setState({value:m,minValue:u.default(m)?m.min:s,maxValue:u.default(m)?m.max:r})}},t.prototype.componentDidMount=function(){this.updateStyle()},t.prototype.componentDidUpdate=function(e){e.showInput!==this.props.showInput&&this.updateStyle()},t.prototype.updateStyle=function(){var e=this.props,t=e.showInput,a=e.classPrefix,n=this.midLabel.offsetWidth,l="calc(50% - "+n/2+"px)";document.querySelector("."+a+"InputRange-label--value").style.left=l,t&&(l="calc(50% - "+(n/2+60)+"px)"),this.midLabel.style.left=l},t.prototype.midLabelRef=function(e){this.midLabel=e},t.prototype.handleChange=function(e){this.setState({value:e,minValue:e.min,maxValue:e.max})},t.prototype.clearValue=function(){var e=this.props,t=e.multiple,a=e.min,n=e.max;this.setState(t?{value:{min:a,max:n},minValue:a,maxValue:n}:{value:a})},t.prototype.handleEnd=function(e){var t=this.props,a=t.multiple,n=t.joinValues,l=t.delimiter,i=e;a&&n&&(i=[e.min,e.max].join(l||","));var u=this.props.onChange;this.setState({value:e},function(){return u(i)})},t.prototype.getStepPrecision=function(){var e=this.props.step;return"number"!=typeof e||e>=1||0>e?0:e.toString().split(".")[1].length},t.prototype.getValue=function(e,t){var a=this.props,n=a.max,l=a.min,s=a.step,r=this.state.value;if(""===e||"-"===e||new RegExp("^[-]?\\d+[.]{1}[0]{0,"+this.getStepPrecision()+"}$").test(e))return e;switch(e=Math.round(parseFloat(e)/s)*s,e=1>s?parseFloat(e.toFixed(this.getStepPrecision())):~~e,t){case"min":if(u.default(r)&&i.default(r.max)){if(e>=r.max&&l<=r.max-s)return r.max-s;if(en&&n||e<=r.min&&r.min+s||e:n;default:return l>e&&l||e>n&&n||e}},t.prototype.handleInputChange=function(e){this.setState({value:this.getValue(e.target.value)})},t.prototype.handleMinInputBlur=function(e){var t=this.getValue(e.target.value,"min"),a=this.state.value;u.default(a)?this.setState({value:{min:t,max:a.max},minValue:t}):null},t.prototype.handleMaxInputBlur=function(e){var t=this.getValue(e.target.value,"max"),a=this.state.value;u.default(a)?this.setState({value:{min:a.min,max:t},maxValue:t}):null},t.prototype.handleMinInputChange=function(e){this.setState({minValue:e.target.value})},t.prototype.handleMaxInputChange=function(e){this.setState({maxValue:e.target.value})},t.prototype.render=function(){var e=this,t=this.props,a=t.max,n=t.min,i=t.step,r=t.unit,p=t.clearable,d=t.name,h=t.disabled,c=t.className,f=t.showInput,x=t.multiple,v=t.classnames,g=t.classPrefix;return l.default.createElement("div",{className:v("RangeControl",{"RangeControl--withInput":f,"RangeControl--clearable":p,"is-multiple":x},c)},l.default.createElement(m.default,{classPrefix:g,value:this.state.value,disabled:h,onChange:this.handleChange,onChangeComplete:this.handleEnd,max:a,min:n,step:i,formatLabel:function(e){return e+r},multiple:x}),l.default.createElement("span",{className:v("InputRange-label InputRange-label--mid"),ref:this.midLabelRef},l.default.createElement("span",{className:v("InputRange-labelContainer")},((a+n)/2).toFixed(this.getStepPrecision())+r)),f?x&&u.default(this.state.value)?l.default.createElement("div",{className:v("InputRange-input is-multiple")},l.default.createElement("input",{className:this.state.value.min!==n?"is-active":"",type:"text",name:d,value:this.state.minValue,disabled:h,onChange:this.handleMinInputChange,onBlur:this.handleMinInputBlur}),l.default.createElement("span",{className:v("InputRange-input-separator")}," - "),l.default.createElement("input",{className:this.state.value.max!==a?"is-active":"",type:"text",name:d,value:this.state.maxValue,disabled:h,onChange:this.handleMaxInputChange,onBlur:this.handleMaxInputBlur})):l.default.createElement("div",{className:v("InputRange-input")},l.default.createElement("input",{className:this.state.value!==n?"is-active":"",type:"text",name:d,value:u.default(this.state.value)?0:this.state.value,disabled:h,onChange:this.handleInputChange})):null,p&&!h&&f?l.default.createElement("a",{onClick:function(){return e.clearValue()},className:v("InputRange-clear",{"is-active":x?s.default(this.state.value,{min:n,max:a}):this.state.value!==n})},l.default.createElement(o.Icon,{icon:"close",className:"icon"})):null)},t.defaultProps={max:100,min:0,step:1,unit:"",clearable:!0,disabled:!1,showInput:!1,multiple:!1,joinValues:!0,delimiter:","},t}(l.default.PureComponent);t.default=p;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?(slider|range)$/,name:"range-control"})],t)}(p);t.RangeControlRenderer=d}); +;/*!src/renderers/Form/Combo.tsx*/ +amis.define("3919ee5",function(e,t){"use strict";function a(e,t){return t.reduce(function(t,a){return t[a]=h.resolveVariable(a,e),t},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.ComboControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),l=e("node_modules/react-dom/index"),r=e("567b83c"),i=e("3fbfd93"),s=n.__importStar(e("8ac7656")),d=e("9a80175"),u=n.__importDefault(e("node_modules/sortablejs/Sortable")),m=e("6a2dbb7"),c=n.__importDefault(e("node_modules/lodash/find")),p=n.__importDefault(e("d57879c")),h=e("f2e345e"),f=e("1caead1"),b=e("1953fc1"),g=n.__importDefault(e("node_modules/lodash/memoize")),v=e("b7bbd16"),y=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),C=function(e){function t(t){var o=e.call(this,t)||this;return o.subForms=[],o.subFormDefaultValues=[],o.keys=[],o.toDispose=[],o.id=d.guid(),o.refsMap={},o.makeFormRef=g.default(function(e){return function(t){return o.formRef(t,e)}}),o.memoizedFormatValue=g.default(function(e,t,o,l,r){return d.createObject(d.extendObject(r,n.__assign({index:l,__index:l},r)),n.__assign(n.__assign({},o),Array.isArray(t)?a(r,t):null))},function(e,t,n,o,l){return JSON.stringify(Array.isArray(t)?[n,o,l,a(l,t)]:e?[n,o]:[n,o,l])}),o.handleChange=o.handleChange.bind(o),o.handleSingleFormChange=o.handleSingleFormChange.bind(o),o.handleSingleFormInit=o.handleSingleFormInit.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleAction=o.handleAction.bind(o),o.addItem=o.addItem.bind(o),o.removeItem=o.removeItem.bind(o),o.dragTipRef=o.dragTipRef.bind(o),o.flush=o.flush.bind(o),o.handleComboTypeChange=o.handleComboTypeChange.bind(o),o.defaultValue=n.__assign({},t.scaffold),o}n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.store,a=(e.value,e.minLength),n=e.maxLength,o=e.formItem,l=e.addHook;t.config({minLength:a,maxLength:n,length:this.getValueAsArray().length}),o&&o.setSubStore(t),l&&this.toDispose.push(l(this.flush,"flush"))},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(d.anyChanged(["minLength","maxLength","value"],t,e)){var a=e.store,o=e.minLength,l=e.maxLength,r=this.getValueAsArray(e);a.config({minLength:o,maxLength:l,length:r.length}),a.activeKey>=r.length&&a.setActiveKey(Math.max(0,r.length-1)),e.value!==t.value&&!t.formInited&&this.subFormDefaultValues.length&&(this.subFormDefaultValues=this.subFormDefaultValues.map(function(e,t){return n.__assign(n.__assign({},e),{values:r[t]})}))}},t.prototype.componentWillUnmount=function(){var e,t,a,n,o=this.props.formItem;o&&o.setSubStore(null),this.toDispose.forEach(function(e){return e()}),this.toDispose=[],null===(t=(e=this.memoizedFormatValue.cache).clear)||void 0===t?void 0:t.call(e),null===(n=(a=this.makeFormRef.cache).clear)||void 0===n?void 0:n.call(a)},t.prototype.getValueAsArray=function(e){void 0===e&&(e=this.props);var t=e.flat,a=e.joinValues,n=e.delimiter,o=e.value;return o=a&&t&&"string"==typeof o?o.split(n||","):Array.isArray(o)?o.concat():[]},t.prototype.addItemWith=function(e){var t=this.props,a=t.flat,o=t.joinValues,l=t.delimiter,r=t.scaffold,i=t.disabled,s=t.submitOnChange;if(!i){var u=this.getValueAsArray();u.push(a?e.scaffold||r||"":n.__assign({},e.scaffold||r)),this.keys.push(d.guid()),a&&o&&(u=u.join(l||",")),this.props.onChange(u,s,!0)}},t.prototype.addItem=function(){var e=this.props,t=e.flat,a=e.joinValues,o=e.delimiter,l=e.scaffold,r=e.disabled,i=e.submitOnChange;if(!r){var s=this.getValueAsArray();s.push(t?l||"":n.__assign({},l)),this.keys.push(d.guid()),t&&a&&(s=s.join(o||",")),this.props.onChange(s,i,!0)}},t.prototype.removeItem=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,a,o,l,r,i,s,u,c,p,h,b,g,v;return n.__generator(this,function(n){switch(n.label){case 0:return t=this.props,a=t.flat,o=t.joinValues,l=t.delimiter,r=t.disabled,i=t.deleteApi,s=t.deleteConfirmText,u=t.data,c=t.env,p=t.translate,r?[2]:(h=this.getValueAsArray(),b=d.createObject(u,h[e]),f.isEffectiveApi(i,b)?[4,c.confirm(s?m.filter(s,b):p("确认要删除?"))]:[3,3]);case 1:return g=n.sent(),g?[4,c.fetcher(i,b)]:[2];case 2:if(v=n.sent(),!v.ok)return c.notify("error",p("删除失败")),[2];n.label=3;case 3:return h.splice(e,1),this.keys.splice(e,1),a&&o&&(h=h.join(l||",")),this.props.onChange(h),[2]}})})},t.prototype.handleChange=function(e,t,a){var o=a.index,l=this.props,r=l.flat,i=l.store,s=l.joinValues,d=l.delimiter,u=l.disabled,m=l.submitOnChange;if(!u){var c=this.getValueAsArray();c[o]=r?e.flat:n.__assign({},e),r&&s&&(c=c.join(d||",")),this.props.onChange(c,m,!0),i.forms.forEach(function(e){return y.isAlive(e)&&e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}},t.prototype.handleSingleFormChange=function(e){this.props.onChange(n.__assign({},e),this.props.submitOnChange,!0)},t.prototype.handleFormInit=function(e,t){var a=t.index,o=this.props,l=o.syncDefaultValue,r=o.flat,i=o.joinValues,s=o.delimiter,u=o.formInited,m=o.onChange,c=o.submitOnChange,p=o.setPrinstineValue;if(this.subFormDefaultValues.push({index:a,values:e,setted:!1}),l!==!1&&this.subFormDefaultValues.length===this.subForms.length){var h=this.getValueAsArray(),f=!1;this.subFormDefaultValues=this.subFormDefaultValues.map(function(e){var t=e.index,a=e.values,o=e.setted,l=r?a.flat:n.__assign({},a);return!o&&d.isObjectShallowModified(h[t],l)&&(h[t]=r?a.flat:n.__assign({},a),f=!0),{index:t,values:a,setted:!0}}),f&&(r&&i&&(h=h.join(s||",")),u?m(h,c,!0):p(h))}},t.prototype.handleSingleFormInit=function(e){var t=this.props,a=t.syncDefaultValue,o=t.setPrinstineValue,l=t.value,r=t.nullable;a!==!1&&!r&&d.isObjectShallowModified(l,e)&&o&&o(n.__assign({},e))},t.prototype.handleAction=function(e){var t=this.props.onAction;return"delete"===e.actionType?void(void 0!==e.index&&this.removeItem(e.index)):void(t&&t.apply(null,arguments))},t.prototype.validate=function(){var e=this.props,t=e.value,a=e.minLength,n=e.maxLength,o=e.messages,l=e.nullable,r=e.translate;return a&&(!Array.isArray(t)||t.lengthn?r(o&&o.maxLengthValidateFailed||"组合表单成员数量超出,超出设定的最大{{maxLength}}个,请删除多余的成员。",{maxLength:n}):!this.subForms.length||l&&!t?void 0:Promise.all(this.subForms.map(function(e){return e.validate()})).then(function(e){return~e.indexOf(!1)?r(o&&o.validateFailed||"子表单验证失败,请仔细检查"):void 0})},t.prototype.flush=function(){this.subForms.forEach(function(e){return e.flush()})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this,t=this.props.classPrefix,a=this.props.submitOnChange,n=l.findDOMNode(this);this.sortable=new u.default(n.querySelector("."+t+"Combo-items"),{group:"combo-"+this.id,animation:150,handle:"."+t+"Combo-itemDrager",ghostClass:t+"Combo-item--dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex1?"is-draggable":"")},o.default.createElement("div",{className:a("Combo-items")},Array.isArray(j)&&j.length?j.map(function(t,s,y){var C=[];!B||E&&m.evalExpression(E,t)===!1||C.push(o.default.createElement("a",{onClick:e.removeItem.bind(e,s),key:"remove",className:a("Combo-toolbarBtn "+(c.removable?"":"is-disabled")),"data-tooltip":O("删除"),"data-position":"bottom"},S?o.default.createElement("i",{className:S}):o.default.createElement(v.Icon,{icon:"close",className:"icon"})));var _=e.formatValue(t,s),A=null;Array.isArray(T)&&T.length&&(A=e.pickCondition(_),w=A?A.controls:void 0);var x=h&&w?[n.__assign(n.__assign({},w&&w[0]),{name:"flat"})]:w;return o.default.createElement("div",{className:a("Combo-item"),key:e.keys[s]||(e.keys[s]=d.guid())},!u&&g&&y.length>1?o.default.createElement("div",{className:a("Combo-itemDrager")},o.default.createElement("a",{key:"drag","data-tooltip":O("拖拽排序"),"data-position":"bottom"},V?o.default.createElement("i",{className:V}):o.default.createElement(v.Icon,{icon:"drag-bar",className:"icon"}))):null,A&&I!==!1?o.default.createElement("div",{className:a("Combo-itemTag")},o.default.createElement("label",null,O("类型")),o.default.createElement(p.default,{onChange:e.handleComboTypeChange.bind(e,s),options:T.map(function(e){return{label:e.label,value:e.label}}),value:A.label,clearable:!1})):null,o.default.createElement("div",{className:a("Combo-itemInner")},x?r("multiple/"+s,{type:"form",controls:x,wrapperComponent:"div",wrapWithPanel:!1,mode:i?f:"row",className:a("Combo-form",l)},{index:s,disabled:u,data:_,onChange:e.handleChange,onInit:e.handleFormInit,onAction:e.handleAction,ref:e.makeFormRef(s),lazyChange:L?!1:!0,lazyFormChange:L?!1:!0,lazyLoad:k,canAccessSuperData:N,value:void 0,formItemValue:void 0}):o.default.createElement(b.Alert2,{level:"warning",className:"m-b-none"},O("数据非法,或者数据已失效,请移除"))),C.length?o.default.createElement("div",{className:a("Combo-itemToolbar")},C):null)}):M?o.default.createElement("div",{className:a("Combo-placeholder")},O(M)):null),u?null:o.default.createElement("div",{className:a("Combo-toolbar")},c.addable&&_!==!1?Array.isArray(T)&&T.length?r("add-button",{type:"dropdown-button",label:O(C||"新增"),level:"info",size:"sm",closeOnClick:!0},{buttons:T.map(function(t){return{label:t.label,onClick:function(){return e.addItemWith(t),!1}}})}):o.default.createElement("button",{type:"button",onClick:this.addItem,className:a("Button Combo-addBtn",s),"data-tooltip":O("新增一条数据")},F?o.default.createElement(v.Icon,{icon:"plus",className:"icon"}):null,o.default.createElement("span",null,O(C||"新增"))):null,g?o.default.createElement("span",{className:a("Combo-dragableTip"),ref:this.dragTipRef},Array.isArray(j)&&j.length>1?O(y):""):null))},t.prototype.renderSingle=function(){var e=this.props,t=e.conditions,a=e.classnames,n=e.render,l=e.value,r=e.multiLine,i=e.formClassName,s=e.canAccessSuperData,u=e.noBorder,m=e.disabled,c=e.typeSwitchable,h=e.nullable,f=e.translate,g=this.props.controls,v=d.isObject(l)?this.formatValue(l):this.defaultValue,y=null;return Array.isArray(t)&&t.length&&(y=this.pickCondition(v),g=y?y.controls:void 0),o.default.createElement("div",{className:a("Combo Combo--single",r?"Combo--ver":"Combo--hor",u?"Combo--noBorder":"",m?"is-disabled":"")},o.default.createElement("div",{className:a("Combo-item")},y&&c!==!1?o.default.createElement("div",{className:a("Combo-itemTag")},o.default.createElement("label",null,f("类型")),o.default.createElement(p.default,{onChange:this.handleComboTypeChange.bind(this,0),options:t.map(function(e){return{label:e.label,value:e.label}}),value:y.label,clearable:!1})):null,o.default.createElement("div",{className:a("Combo-itemInner")},g?n("single",{type:"form",controls:g,wrapperComponent:"div",wrapWithPanel:!1,mode:r?"normal":"row",className:a("Combo-form",i)},{disabled:m,data:v,onChange:this.handleSingleFormChange,ref:this.makeFormRef(0),onInit:this.handleSingleFormInit,canAccessSuperData:s}):o.default.createElement(b.Alert2,{level:"warning",className:"m-b-none"},f("数据非法,或者数据已失效,请移除")))),l&&h?o.default.createElement("a",{className:a("Combo-setNullBtn"),href:"#",onClick:this.setNull},f("清空数据")):null)},t.prototype.render=function(){{var e=this.props,t=e.formInited,a=e.multiple,n=e.className,l=(e.classPrefix,e.classnames);e.disabled}return t?o.default.createElement("div",{className:l("ComboControl",n)},a?this.renderMultipe():this.renderSingle()):null};var r;return t.defaultProps={minLength:0,maxLength:0,multiple:!1,multiLine:!1,addButtonClassName:"",formClassName:"",subFormMode:"normal",draggableTip:"可拖拽排序",addButtonText:"新增",canAccessSuperData:!1,addIcon:!0,dragIcon:"",deleteIcon:"",tabsMode:!1,tabsStyle:"",placeholder:"<空>"},t.propsList=["minLength","maxLength","multiple","multiLine","addButtonClassName","subFormMode","draggableTip","addButtonText","draggable","scaffold","canAccessSuperData","addIcon","dragIcon","deleteIcon","noBorder","conditions","tabsMode","tabsStyle","lazyLoad","changeImmediately","strictMode","controls","conditions","messages"],n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number]),n.__metadata("design:returntype",void 0)],t.prototype,"handleTabSelect",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(r="undefined"!=typeof o.default&&o.default.MouseEvent)?r:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"setNull",null),t}(o.default.Component);t.default=C;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"combo",storeType:i.ComboStore.name,extendsData:!1})],t)}(C);t.ComboControlRenderer=_}); +;/*!src/renderers/Form/Array.tsx*/ +amis.define("9b389bb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayControlRenderer=void 0;var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),r=e("567b83c"),i=e("3fbfd93"),a=o.__importDefault(e("3919ee5")),s=function(e){function t(t){var o=e.call(this,t)||this;return o.comboRef=o.comboRef.bind(o),o}return o.__extends(t,e),t.prototype.comboRef=function(e){this.comboInstance=e},t.prototype.validate=function(e){var t;return this.comboInstance?(t=this.comboInstance).validate.apply(t,e):null},t.prototype.render=function(){var e=this.props,t=e.items,r=o.__rest(e,["items"]);return n.default.createElement(a.default,o.__assign({},r,{controls:[t],flat:!0,multiple:!0,multiLine:!1,ref:this.comboRef}))},t}(n.default.Component);t.default=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t=o.__decorate([r.FormItem({type:"array",storeType:i.ComboStore.name})],t)}(s);t.ArrayControlRenderer=l}); +;/*!src/renderers/Container.tsx*/ +amis.define("2390f9f",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ContainerRenderer=void 0;var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.renderBody=function(){var e=this.props,n=e.children,t=e.body,s=e.render,a=e.classnames,o=e.bodyClassName;return r.default.createElement("div",{className:a("Container-body",o)},n?"function"==typeof n?n(this.props):n:t?s("body",t):null)},n.prototype.render=function(){var e=this.props,n=e.className,t=(e.size,e.classnames);return r.default.createElement("div",{className:t("Container",n)},this.renderBody())},n.propsList=["body","className"],n.defaultProps={className:""},n}(r.default.Component);n.default=a;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([s.Renderer({test:/(^|\/)container$/,name:"container"})],n)}(a);n.ContainerRenderer=o}); +;/*!src/renderers/Form/Container.tsx*/ +amis.define("647fc2f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerControlRenderer=void 0;var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=r.__importDefault(e("node_modules/classnames/index")),a=r.__importDefault(e("2390f9f")),d=r.__importDefault(e("567b83c")),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderBody=function(){var t=this.props,r=t.renderFormItems,a=t.body,d=t.bodyClassName,l=t.controls,s=t.tabs,i=t.fieldSet,u=t.mode,f=t.formMode,m=t.horizontal,c=t.$path,p=t.classPrefix,_=t.store,b=t.render;if(!a&&(l||s||i)){var y={store:_,data:_.data,render:b};return u&&(y.mode=u),m&&(y.horizontal=m),o.default.createElement("div",{className:n.default(p+"Form--"+(y.mode||f||"normal"),d)},r({controls:l,tabs:s,fieldSet:i},c.replace(/^.*form\//,""),y))}return e.prototype.renderBody.call(this)},t.propsList=["onChange"],t=r.__decorate([d.default({type:"container",strictMode:!1,sizeMutable:!1})],t)}(a.default);t.ContainerControlRenderer=l}); +;/*!src/renderers/Form/SubForm.tsx*/ +amis.define("8a88f1c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubFormControlRenderer=void 0;var a,n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),l=e("567b83c"),s=n.__importDefault(e("node_modules/classnames/index")),r=n.__importDefault(e("node_modules/lodash/omit")),i=n.__importDefault(e("node_modules/lodash/pick")),d=e("9a80175"),u=e("b7bbd16"),p=function(e){return e?(a=a||document.createElement("div"),a.innerHTML=e,a.innerText):e},m=function(e){function t(t){var a=e.call(this,t)||this;return a.state={openedIndex:-1,optionIndex:-1},a.addItem=a.addItem.bind(a),a.removeItem=a.removeItem.bind(a),a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleDialogConfirm=a.handleDialogConfirm.bind(a),a}return n.__extends(t,e),t.prototype.addItem=function(){var e=this.props.value;e=Array.isArray(e)?e.concat():[],e.push({}),this.props.onChange(e)},t.prototype.removeItem=function(e,t){t.stopPropagation(),t.preventDefault();var a=this.props.value;Array.isArray(a)&&(a=a.concat(),a.splice(e,1),this.props.onChange(a))},t.prototype.open=function(e){void 0===e&&(e=0),this.setState({openedIndex:e})},t.prototype.close=function(){this.setState({openedIndex:-1})},t.prototype.handleDialogConfirm=function(e){var t=this.props,a=t.multiple,o=t.onChange,l=t.value;if(a){var s=Array.isArray(l)?l.concat():[];s[this.state.openedIndex]=n.__assign(n.__assign({},s[this.state.openedIndex]),e[0]),o(s)}else o(n.__assign(n.__assign({},l),e[0]));this.close()},t.prototype.buildDialogSchema=function(){var e=this.props.form,t=["title","actions","name","size","closeOnEsc","showCloseButton","bodyClassName","type"];return n.__assign(n.__assign({},i.default(e,t)),{type:"dialog",body:n.__assign({type:"form"},r.default(e,t))})},t.prototype.renderMultipe=function(){var e=this,t=this.props,a=t.classPrefix,n=t.addButtonClassName,l=t.editButtonClassName,r=t.disabled,i=t.labelField,m=t.value,c=t.btnLabel,b=t.render,f=t.data,h=t.translate;return[o.default.createElement("div",{className:a+"SubForm-values",key:"values"},Array.isArray(m)?m.map(function(t,n){return o.default.createElement("div",{className:s.default(a+"SubForm-value",{"is-disabled":r},l),key:n},o.default.createElement("span",{"data-tooltip":h("删除"),"data-position":"bottom",className:a+"Select-valueIcon",onClick:e.removeItem.bind(e,n)},"×"),o.default.createElement("span",{onClick:e.open.bind(e,n),className:a+"SubForm-valueLabel","data-tooltip":h("编辑详情"),"data-position":"bottom"},t&&i&&t[i]&&p(t[i])||b("label",{type:"tpl",tpl:h(c)},{data:d.createObject(f,t)})))}):null),o.default.createElement("button",{key:"add",type:"button",onClick:this.addItem,className:s.default(a+"Button "+a+"SubForm-addBtn",n),disabled:r,"data-tooltip":h("新增一条数据")},o.default.createElement(u.Icon,{icon:"plus",className:"icon"}),o.default.createElement("span",null,h("新增")))]},t.prototype.renderSingle=function(){var e=this.props,t=e.classPrefix,a=e.btnClassName,n=e.disabled,l=e.value,r=e.labelField,i=e.btnLabel,u=e.render,m=e.data,c=e.translate;return o.default.createElement("div",{className:t+"SubForm-values",key:"values"},o.default.createElement("div",{className:s.default(t+"SubForm-value",{"is-disabled":n},a),onClick:this.open.bind(this,0),"data-tooltip":c("编辑详情"),"data-position":"bottom"},o.default.createElement("span",{className:t+"SubForm-valueLabel"},l&&r&&l[r]&&p(l[r])||u("label",{type:"tpl",tpl:c(i)},{data:d.createObject(m,l)}))))},t.prototype.render=function(){var e=this.props,t=e.multiple,a=e.classPrefix,n=e.className,l=e.render,r=e.value,i=e.data,u=this.state.openedIndex;return o.default.createElement("div",{className:s.default(a+"SubFormControl",n)},t?this.renderMultipe():this.renderSingle(),l("dalog/"+u,this.buildDialogSchema(),{show:-1!==u,onClose:this.close,onConfirm:this.handleDialogConfirm,data:d.createObject(i,(t?Array.isArray(r)&&r[u]:r)||{})}))},t.defaultProps={minLength:0,maxLength:0,multiple:!1,btnClassName:"",addButtonClassName:"",editButtonClassName:"",labelField:"label",btnLabel:"设置"},t}(o.default.PureComponent);t.default=m;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({type:"form",sizeMutable:!1})],t)}(m);t.SubFormControlRenderer=c}); +;/*!src/renderers/Form/RichText.tsx*/ +amis.define("a57a440",function(e,t){"use strict";function o(t){return void 0===t&&(t="froala"),function(){return new Promise(function(o){return"tinymce"===t?e(["82fac39"],function(e){return o(e.default)}):e(["1e5b785"],function(e){return o(e.default)})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=e("567b83c"),r=n.__importDefault(e("node_modules/classnames/index")),l=n.__importDefault(e("4783ce8")),s=e("9a80175"),u=function(e){function t(t){var o=e.call(this,t)||this;o.state={focused:!1},o.config=null;var a=t.vendor||(t.env.richTextToken?"froala":"tinymce");if(o.handleFocus=o.handleFocus.bind(o),o.handleBlur=o.handleBlur.bind(o),"froala"===a)o.config=n.__assign(n.__assign({imageAllowedTypes:["jpeg","jpg","png","gif"],imageDefaultAlign:"left",imageEditButtons:t.imageEditable?["imageReplace","imageAlign","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"]:[],key:t.env.richTextToken},t.options),{editorClass:t.editorClass,placeholderText:t.placeholder,imageUploadURL:t.reciever,imageUploadParams:{from:"rich-text"},videoUploadURL:t.videoReciever,videoUploadParams:{from:"rich-text"},events:n.__assign(n.__assign({},t.options&&t.options.events),{"froalaEditor.focus":o.handleFocus,"froalaEditor.blur":o.handleBlur}),language:o.props.locale&&"zh-cn"!==o.props.locale?"":"zh_cn"}),t.buttons&&(o.config.toolbarButtonsSM=t.buttons,o.config.toolbarButtonsMD=t.buttons,o.config.toolbarButtonsXS=t.buttons,o.config.toolbarButtons=t.buttons);else{var i=t.env.fetcher;o.config=n.__assign(n.__assign({},t.options),{images_upload_url:t.reciever,images_upload_handler:function(e,a,r){return n.__awaiter(o,void 0,void 0,function(){var o,l,s,u,d,c;return n.__generator(this,function(n){switch(n.label){case 0:o=new FormData,o.append("file",e.blob(),e.filename()),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i(t.reciever,o,{method:"post"})];case 2:return l=n.sent(),l.ok&&a((null===(u=l.data)||void 0===u?void 0:u.link)||(null===(d=l.data)||void 0===d?void 0:d.url)||(null===(c=l.data)||void 0===c?void 0:c.value)||l.link),[3,4];case 3:return s=n.sent(),r(s),[3,4];case 4:return[2]}})})}})}return o}return n.__extends(t,e),t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,i=e.value,u=e.onChange,d=e.disabled,c=(e.size,e.vendor),f=e.env,m=e.locale,g=e.translate,p=c||(f.richTextToken?"froala":"tinymce");return a.default.createElement("div",{className:r.default(n+"RichTextControl",t,{"is-focused":this.state.focused,"is-disabled":d})},a.default.createElement(l.default,{getComponent:o(p),model:i,onModelChange:d?s.noop:u,onFocus:this.handleFocus,onBlur:this.handleBlur,config:this.config,disabled:d,locale:m,translate:g}))},t.defaultProps={imageEditable:!0,reciever:"/api/upload/image",videoReciever:"/api/upload/video",placeholder:"请输入",options:{toolbarButtonsSM:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],toolbarButtonsMD:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],toolbarButtons:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"]}},t}(a.default.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.FormItem({type:"rich-text",sizeMutable:!1})],t)}(u);t.RichTextControlRenderer=d}); +;/*!src/renderers/Form/Editor.tsx*/ +amis.define("27eb5b8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorControlRenderer=t.EditorControls=t.availableLanguages=void 0;var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),s=e("567b83c"),a=n.__importDefault(e("4783ce8")),i=n.__importDefault(e("node_modules/lodash/debounce")),r=n.__importDefault(e("997c87d")),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.toDispose=[],n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleEditorMounted=n.handleEditorMounted.bind(n),n.updateContainerSize=i.default(n.updateContainerSize.bind(n),250,{trailing:!0,leading:!1}),n.toDispose.push(n.updateContainerSize.cancel),n}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach(function(e){return e()})},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.handleEditorMounted=function(e,t){this.editor=e,this.toDispose.push(e.onDidFocusEditorWidget(this.updateContainerSize).dispose),this.toDispose.push(e.onDidChangeModelContent(this.updateContainerSize).dispose),this.props.editorDidMount&&this.props.editorDidMount(e,t)},t.prototype.updateContainerSize=function(){var e=this.editor,t=e._domElement.parentNode,n=e.getConfiguration(),o=n.lineHeight,s=e.getModel().getLineCount(),a=o*s,i=n.layoutInfo.horizontalScrollbarHeight,r=a+i;t.style.cssText="height:"+r+"px"},t.prototype.render=function(){var e,t=this.props,s=t.className,i=t.classPrefix,l=t.classnames,u=t.value,d=t.onChange,p=t.disabled,c=t.options,h=t.language,f=t.editorTheme,g=t.size,_=u;return _&&"string"!=typeof _&&(_=JSON.stringify(_,null,4)),o.default.createElement("div",{className:l("EditorControl",(e={"is-focused":this.state.focused},e["EditorControl--"+g]=g,e),s)},o.default.createElement(a.default,{classPrefix:i,component:r.default,value:_,onChange:d,disabled:p,onFocus:this.handleFocus,onBlur:this.handleBlur,language:h,editorTheme:f,editorDidMount:this.handleEditorMounted,options:n.__assign(n.__assign({},c),{readOnly:p})}))},t.defaultProps={language:"javascript",editorTheme:"vs",options:{automaticLayout:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}}},t}(o.default.Component);t.default=l,t.availableLanguages=["bat","c","coffeescript","cpp","csharp","css","dockerfile","fsharp","go","handlebars","html","ini","java","javascript","json","less","lua","markdown","msdax","objective-c","php","plaintext","postiats","powershell","pug","python","r","razor","ruby","sb","scss","sol","sql","swift","typescript","vb","xml","yaml"],t.EditorControls=t.availableLanguages.map(function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(o,t),o.lang=e,o.displayName=""+e[0].toUpperCase()+e.substring(1)+"EditorControlRenderer",o.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:e}),o=n.__decorate([s.FormItem({type:e+"-editor",sizeMutable:!1})],o)}(l);return t});var u=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:"javascript"}),t=n.__decorate([s.FormItem({type:"js-editor",sizeMutable:!1})],t)}(l),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:"typescript"}),t=n.__decorate([s.FormItem({type:"ts-editor",sizeMutable:!1})],t)}(l),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},l.defaultProps),{language:"javascript"}),t=n.__decorate([s.FormItem({type:"editor",sizeMutable:!1})],t)}(l));t.EditorControlRenderer=u}); +;/*!src/renderers/Form/DiffEditor.tsx*/ +amis.define("138c832",function(e,t){"use strict";function i(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e,t){if(e&&"string"!=typeof e&&(e=JSON.stringify(e,null,4)),t&&"json"===t)try{e=JSON.stringify("string"==typeof e?JSON.parse(e):e,null,4)}catch(i){}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.DiffEditorRenderer=t.DiffEditorControlRenderer=t.DiffEditor=void 0;var n=e("node_modules/tslib/tslib"),d=n.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),a=e("567b83c"),s=e("6a2dbb7"),l=n.__importDefault(e("4783ce8")),u=n.__importDefault(e("node_modules/lodash/debounce")),f=e("f2e345e"),h=function(e){function t(t){var i=e.call(this,t)||this;return i.state={focused:!1},i.toDispose=[],i.handleFocus=i.handleFocus.bind(i),i.handleBlur=i.handleBlur.bind(i),i.editorFactory=i.editorFactory.bind(i),i.handleEditorMounted=i.handleEditorMounted.bind(i),i.handleModifiedEditorChange=i.handleModifiedEditorChange.bind(i),i.updateContainerSize=u.default(i.updateContainerSize.bind(i),250,{trailing:!0,leading:!1}),i.toDispose.push(i.updateContainerSize.cancel),i}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach(function(e){return e()})},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.componentDidUpdate=function(e){var t=this.props,i=t.data,n=t.value,d=t.diffValue,r=t.language;this.originalEditor&&d&&(d!==e.diffValue||i!==e.data)&&this.originalEditor.getModel().setValue(f.isPureVariable(d)?o(s.filter(d||"",i,"| raw"),r):o(d,r)),this.modifiedEditor&&n&&n!==e.value&&!this.state.focused&&this.modifiedEditor.getModel().setValue(o(n,r))},t.prototype.editorFactory=function(e,t,i){return t.editor.createDiffEditor(e,i)},t.prototype.handleEditorMounted=function(e,t){var i=this.props,n=i.value,d=i.data,r=i.language,a=i.diffValue;this.monaco=t,this.editor=e,this.modifiedEditor=e.getModifiedEditor(),this.originalEditor=e.getOriginalEditor(),this.toDispose.push(this.modifiedEditor.onDidFocusEditorWidget(this.handleFocus).dispose),this.toDispose.push(this.modifiedEditor.onDidBlurEditorWidget(this.handleBlur).dispose),this.toDispose.push(this.modifiedEditor.onDidChangeModelContent(this.handleModifiedEditorChange).dispose),this.editor.setModel({original:this.monaco.editor.createModel(f.isPureVariable(a)?o(s.filter(a||"",d,"| raw"),r):o(a,r),r),modified:this.monaco.editor.createModel(o(n,r),r)}),this.updateContainerSize()},t.prototype.handleModifiedEditorChange=function(){var e=this.props.onChange;e&&e(this.modifiedEditor.getModel().getValue()),this.updateContainerSize()},t.prototype.updateContainerSize=function(){var e=this.modifiedEditor,t=e._domElement.parentNode.parentNode.parentNode,i=e.getConfiguration(),o=i.lineHeight,n=e.getModel().getLineCount(),d=o*n,r=i.layoutInfo.horizontalScrollbarHeight,a=d+r;t.style.cssText="height:"+a+"px"},t.prototype.render=function(){var e=this.props,t=e.className,o=e.value,r=e.onChange,a=e.disabled,s=e.size,u=e.options,f=e.language,h=e.theme,p=e.classnames;return d.default.createElement("div",{className:p("EditorControl",s?"EditorControl--"+s:"",t,{"is-focused":this.state.focused})},d.default.createElement(l.default,{getComponent:i,value:o,onChange:r,disabled:a,language:f,theme:h,editorDidMount:this.handleEditorMounted,editorFactory:this.editorFactory,options:n.__assign(n.__assign({},u),{readOnly:a})}))},t.defaultProps={language:"javascript",theme:"vs",options:{automaticLayout:!1,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}},diffValue:""},t}(d.default.Component);t.DiffEditor=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign({},h.defaultProps),t=n.__decorate([a.FormItem({type:"diff-editor",sizeMutable:!1})],t)}(h);t.DiffEditorControlRenderer=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign(n.__assign({},h.defaultProps),{disabled:!0}),t=n.__decorate([r.Renderer({test:/(^|\/)diff-editor$/,name:"diff-editor"})],t)}(h);t.DiffEditorRenderer=c}); +;/*!src/renderers/Grid.tsx*/ +amis.define("5e68c3c",function(e,r){"use strict";function n(e){return"string"==typeof e&&e?e.replace(/\bcol-(xs|sm|md|lg)-(\d+)\b/g,function(e,r,n){return"Grid-col--"+r+n}):e}function t(e){var n=[],t=r.ColProps;return t.forEach(function(r){return e&&e[r]&&n.push("Grid-col--"+r+e[r])}),n.length||n.push("Grid-col--sm"),n.join(" ")}Object.defineProperty(r,"__esModule",{value:!0}),r.GridRenderer=r.ColProps=void 0;var s=e("node_modules/tslib/tslib"),o=s.__importDefault(e("node_modules/react/index")),i=e("0f9ebdf"),u=s.__importDefault(e("node_modules/lodash/pick"));r.ColProps=["lg","md","sm","xs"];var l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(i,e),i.prototype.renderChild=function(e,r,n,t){var s=this.props,o=s.render,i=s.itemRender;return i?i(r,n,t,this.props):o(e,r)},i.prototype.renderColumn=function(e,i,l){var d=this,a=u.default(e,r.ColProps);a=s.__assign({},a);var c=this.props.classnames;return o.default.createElement("div",{key:i,className:c(t(a),n(e.columnClassName))},Array.isArray(e)?o.default.createElement("div",{className:c("Grid")},e.map(function(e,r){return d.renderColumn(e,r,e.length)})):this.renderChild("column/"+i,e,i,l))},i.prototype.renderColumns=function(e){var r=this;return e.map(function(n,t){return r.renderColumn(n,t,e.length)})},i.prototype.render=function(){var e=this.props,r=e.className,n=e.classnames;return o.default.createElement("div",{className:n("Grid",r)},this.renderColumns(this.props.columns))},i.propsList=["columns"],i.defaultProps={},i}(o.default.Component);r.default=l;var d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(r,e),r=s.__decorate([i.Renderer({test:/(^|\/)grid$/,name:"grid"})],r)}(l);r.GridRenderer=d}); +;/*!src/renderers/Form/Grid.tsx*/ +amis.define("d5c9577",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridRenderer=void 0;var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("5e68c3c")),s=e("567b83c"),d=r.__importDefault(e("node_modules/react/index")),n={left:"col-sm-4",right:"col-sm-8",offset:"col-sm-offset-4"},i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderChild=function(e,t,r,o){var s=this.props,i=s.render,a=s.renderFormItems,l=s.classnames,m=s.$path,c=s.itemRender,u=s.store;return t&&!t.type&&(t.controls||t.tabs||t.feildSet)?d.default.createElement("div",{className:l("Grid-form Form--"+(t.mode||"normal"))},a(t,m.replace(/^.*form\//,""),{mode:t.mode||"normal",horizontal:t.horizontal||n,store:u,data:u.data,render:i})):c?c(t,r,o,this.props):i(e,t.body||t)},t.propsList=["columns","onChange"],t.defaultProps={},t=r.__decorate([s.FormItem({type:"grid",strictMode:!1,sizeMutable:!1})],t)}(o.default);t.GridRenderer=i}); +;/*!src/renderers/Form/HBox.tsx*/ +amis.define("4be33a0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HBoxRenderer=void 0;var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=e("567b83c"),s=r.__importDefault(e("node_modules/classnames/index")),a=e("9a80175"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderColumn=function(e,t,n){var l=this.props,i=l.itemRender,d=l.data,u=l.classPrefix;if(!a.isVisible(e,d))return null;var m=r.__assign({width:e.width,height:e.height},e.style);return o.default.createElement("div",{key:t,style:m,className:s.default(u+"Hbox-col",u+"Form--"+(e.mode||"normal"),e.columnClassName)},i?i(e,t,n,this.props):this.renderChild("column/"+t,e))},t.prototype.renderChild=function(e,t){var r=this.props,o=r.render,n=r.renderFormItems,s=(r.formMode,r.store),a=r.$path;return t&&!t.type&&(t.controls||t.tabs||t.feildSet)?n(t,a.replace(/^.*form\//,""),{mode:t.mode||"normal",horizontal:t.horizontal||{left:4,right:8,offset:4},store:s,data:s.data,render:o}):o(e,t.body||t)},t.prototype.render=function(){var e=this,t=this.props,r=t.className,n=t.columns,a=t.gap,l=t.classPrefix;return o.default.createElement("div",{className:s.default(l+"FormHbox",a?l+"Hbox--"+a:"",r)},o.default.createElement("div",{className:l+"Hbox"},n.map(function(t,r){return e.renderColumn(t,r,n.length)})))},t.propsList=["columns","onChange"],t.defaultProps={},t=r.__decorate([n.FormItem({type:"hbox",strictMode:!1,sizeMutable:!1})],t)}(o.default.Component);t.HBoxRenderer=l}); +;/*!src/renderers/Panel.tsx*/ +amis.define("244f74d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelRenderer=void 0;var a=e("node_modules/tslib/tslib"),s=a.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),n=e("9a80175"),o=e("node_modules/react-dom/index"),i=e("67d35e6"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affixDom=s.default.createRef(),t.footerDom=s.default.createRef(),t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=o.findDOMNode(this),t=e?n.getScrollParent(e):null;t&&t!==document.body||(t=window),this.parentNode=t,t.addEventListener("scroll",this.affixDetect),this.unSensor=i.resizeSensor(e,this.affixDetect),this.affixDetect()},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),this.unSensor&&this.unSensor(),clearTimeout(this.timer)},t.prototype.affixDetect=function(){if(this.props.affixFooter&&this.affixDom.current&&this.footerDom.current){var e=this.affixDom.current,t=this.footerDom.current,a=!1;if(!t.offsetWidth)return void(this.timer=setTimeout(this.affixDetect,250));if(e.style.cssText="width: "+t.offsetWidth+"px","always"===this.props.affixFooter)a=!0,t.classList.add("invisible2");else{var s=t.getBoundingClientRect(),r=window.innerHeight;a=s.top+s.height/2>r}a?e.classList.add("in"):e.classList.remove("in")}},t.prototype.renderBody=function(){var e=this.props,t=(e.type,e.className,e.data),s=(e.header,e.body),r=e.render,n=(e.bodyClassName,e.headerClassName,e.actionsClassName,e.footerClassName,e.children),o=(e.title,e.actions,e.footer,e.classPrefix,a.__rest(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","actions","footer","classPrefix"])),i=a.__assign({data:t},o);return n?"function"==typeof n?n(this.props):n:s?r("body",s,i):null},t.prototype.renderActions=function(){var e=this.props,t=e.actions,a=e.render;return Array.isArray(t)&&t.length?t.map(function(e,t){return a("action",e,{type:e.type||"button",key:t})}):null},t.prototype.render=function(){var e=this.props,t=(e.type,e.className),r=e.data,n=e.header,o=(e.body,e.render),i=e.bodyClassName,l=e.headerClassName,d=e.actionsClassName,f=e.footerClassName,c=(e.children,e.title),m=e.footer,u=e.affixFooter,h=e.classPrefix,p=e.classnames,y=a.__rest(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","footer","affixFooter","classPrefix","classnames"]),N=a.__assign({data:r},y),_=[],v=this.renderActions();v&&_.push(s.default.createElement("div",{key:"actions",className:p("Panel-btnToolbar",d||"Panel-footer")},v)),m&&_.push(s.default.createElement("div",{key:"footer",className:p(f||"Panel-footer")},o("footer",m,N)));var x=_.length?s.default.createElement("div",{ref:this.footerDom},_):null;return s.default.createElement("div",{className:p("Panel",t||"Panel--default")},n?s.default.createElement("div",{className:p(l||"Panel-heading")},o("header",n,N)):c?s.default.createElement("div",{className:p(l||"Panel-heading")},s.default.createElement("h3",{className:p("Panel-title")},o("title",c,N))):null,s.default.createElement("div",{className:i||h+"Panel-body"},this.renderBody()),x,u&&_.length?s.default.createElement("div",{ref:this.affixDom,className:p("Panel-fixedBottom")},_):null)},t.propsList=["header","headerClassName","footerClassName","actionsClassName","bodyClassName"],t.defaultProps={},a.__decorate([n.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"affixDetect",null),t}(s.default.Component);t.default=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([r.Renderer({test:/(^|\/)panel$/,name:"panel"})],t)}(l);t.PanelRenderer=d}); +;/*!src/renderers/Form/Panel.tsx*/ +amis.define("2406202",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PanelRenderer=void 0;var t=e("node_modules/tslib/tslib"),o=t.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),d=t.__importDefault(e("244f74d")),a=t.__importDefault(e("node_modules/classnames/index")),l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.renderBody=function(){var r=this.props,t=(r.render,r.renderFormItems),n=r.body,d=r.bodyClassName,l=r.controls,s=r.tabs,i=r.fieldSet,m=r.mode,f=r.formMode,u=r.horizontal,c=r.$path,p=r.classPrefix;if(!n&&(l||s||i)){var _={};return m&&(_.mode=m),u&&(_.horizontal=u),o.default.createElement("div",{className:a.default(p+"Form--"+(_.mode||f||"normal"),d)},t({controls:l,tabs:s,fieldSet:i},c.replace(/^.*form\//,""),_))}return e.prototype.renderBody.call(this)},r.propsList=["onChange"],r=t.__decorate([n.Renderer({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?panel$/,weight:-100,name:"panel-control"})],r)}(d.default);r.PanelRenderer=l}); +;/*!src/renderers/Form/Color.tsx*/ +amis.define("5271012",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorControlRenderer=void 0;var r=e("node_modules/tslib/tslib"),n=r.__importDefault(e("node_modules/react/index")),o=e("567b83c"),l=r.__importDefault(e("node_modules/classnames/index")),a=r.__importDefault(e("f11d26b")),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={open:!1},t}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.classPrefix,s=r.__rest(e,["className","classPrefix"]);return n.default.createElement("div",{className:l.default(o+"ColorControl",t)},n.default.createElement(a.default,r.__assign({classPrefix:o},s)))},t.defaultProps={format:"hex",clearable:!0},t}(n.default.PureComponent);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"color"})],t)}(s);t.ColorControlRenderer=u}); +;/*!src/renderers/Form/ChainedSelect.tsx*/ +amis.define("d2efb65",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainedSelectControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),i=a.__importDefault(e("node_modules/classnames/index")),o=e("b86428a"),s=a.__importDefault(e("d57879c")),l=e("1caead1"),r=function(e){function t(t){var a=e.call(this,t)||this;return a.state={stack:[]},a.handleChange=a.handleChange.bind(a),a.loadMore=a.loadMore.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.formInited;e?this.loadMore():this.props.addHook(this.loadMore,"init")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.options!==e.options&&this.setState({stack:[]})},t.prototype.componentDidUpdate=function(e){var t=this.props;t.formInited&&t.value!==e.value&&this.loadMore()},t.prototype.loadMore=function(){for(var e=this,t=this.props,n=t.value,i=t.delimiter,o=t.onChange,s=t.joinValues,r=t.extractValue,d=t.source,p=t.data,c=t.env,u=Array.isArray(n)?n.concat():n&&"string"==typeof n?n.split(i||","):[],h=0,f=this.state.stack.length;f>h&&u[h]&&this.state.stack[h].parentId==(s||r?u[h]:u[h].value);)h++;if(u[h]&&c&&l.isEffectiveApi(d,p)){var v=s||r?u[h]:u[h].value,m=this.state.stack.concat();m.splice(h,m.length-h),m.push({parentId:v,loading:!0,options:[]}),this.setState({stack:m},function(){c.fetcher(d,a.__assign(a.__assign({},p),{value:u,level:h+1,parentId:v,parent:u[h]})).then(function(t){var a=e.state.stack.concat(),l=t.data?t.data.value:void 0,r=t.data&&t.data.options||t.data;a.splice(h,a.length-h),"undefined"!=typeof l&&(u.splice(h+1,n.length-h-1),u.push(l),o(s?u.join(i||","):u)),a.push({options:r,parentId:v,loading:!1,visible:!!r}),e.setState({stack:a},e.loadMore)}).catch(function(e){c.notify("error",e.message)})})}},t.prototype.handleChange=function(e,t){var a=this.props,n=a.value,i=a.delimiter,o=a.onChange,s=a.joinValues,l=a.extractValue,r=Array.isArray(n)?n.concat():n&&"string"==typeof n?n.split(i||","):[];r.splice(e,r.length-e),r.push(s?t.value:t),o(s?r.join(i||","):l?r.map(function(e){return e.value||e}):r)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this,t=this.props,o=t.options,l=t.classPrefix,r=t.className,d=(t.inline,t.loading),p=t.value,c=t.delimiter,u=(t.joinValues,t.extractValue,t.multiple,a.__rest(t,["options","classPrefix","className","inline","loading","value","delimiter","joinValues","extractValue","multiple"])),h=Array.isArray(p)?p.concat():p&&"string"==typeof p?p.split(c||","):[];return n.default.createElement("div",{className:i.default(l+"ChainedSelectControl",r)},n.default.createElement(s.default,a.__assign({},u,{classPrefix:l,key:"base",options:o,value:h[0],onChange:this.handleChange.bind(this,0),loading:d,inline:!0})),this.state.stack.map(function(t,i){var o=t.options,r=t.loading,d=t.visible;return d===!1?null:n.default.createElement(s.default,a.__assign({},u,{classPrefix:l,key:"x-"+(i+1),options:o,value:h[i+1],onChange:e.handleChange.bind(e,i+1),loading:r,inline:!0}))}))},t.defaultProps={clearable:!1,searchable:!1,multiple:!0},t}(n.default.Component);t.default=r;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"chained-select",sizeMutable:!1})],t)}(r);t.ChainedSelectControlRenderer=d}); +;/*!src/renderers/Form/NestedSelect.tsx*/ +amis.define("9d9f047",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestedSelectControlRenderer=void 0;var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("node_modules/lodash/xorBy")),s=a.__importDefault(e("node_modules/lodash/unionBy")),i=a.__importDefault(e("997df41")),r=a.__importDefault(e("0a43d97")),o=a.__importDefault(e("2b3dcdf")),u=e("node_modules/react-overlays/lib/index"),d=e("b7bbd16"),c=e("9a80175"),p=e("f2e345e"),m=e("b86428a"),h=a.__importDefault(e("4ee46ff")),f=e("node_modules/react-dom/index"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,isFocused:!1,inputValue:"",stack:[]},t}a.__extends(t,e),t.prototype.domRef=function(e){this.target=e},t.prototype.open=function(){var e=this.props,t=e.options,a=e.disabled;a||this.setState({isOpened:!0,stack:[t]})},t.prototype.close=function(){this.setState({isOpened:!1,stack:[]})},t.prototype.removeItem=function(e,t){var a=this.props,n=a.onChange,l=a.selectedOptions,s=a.disabled,i=a.joinValues,r=a.valueField,o=a.extractValue,u=a.delimiter,d=a.value;s||(t&&t.stopPropagation(),l.splice(e,1),i?d=l.map(function(e){return e[r||"value"]}).join(u||","):o&&(d=l.map(function(e){return e[r||"value"]})),n(d))},t.prototype.renderValue=function(){var e=this,t=this.props,a=t.multiple,l=t.classnames,s=t.selectedOptions,i=t.labelField,r=t.placeholder,o=t.disabled;return s&&s.length>0?s.map(function(t,s){return a?n.default.createElement("div",{className:l("Select-value"),key:s},n.default.createElement("span",{className:l("Select-valueIcon",{"is-disabled":o||t.disabled}),onClick:e.removeItem.bind(e,s)},"×"),n.default.createElement("span",{className:l("Select-valueLabel")},t[i||"label"])):n.default.createElement("div",{className:l("Select-value"),key:s},t[i||"label"])}):n.default.createElement("div",{className:l("NestedSelect-placeholder")},r)},t.prototype.renderClear=function(){var e=this.props,t=e.clearable,a=e.value,l=e.disabled,s=e.classnames;return t&&!l&&(Array.isArray(a)?a.length:a)?n.default.createElement("a",{onClick:this.clearValue,className:s("NestedSelect-clear")},n.default.createElement(d.Icon,{icon:"close",className:"icon"})):null},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,a=e.resetValue;t("undefined"==typeof a?"":a)},t.prototype.handleOptionClick=function(e,t){var a=this.props,n=a.multiple,l=a.onChange,s=a.joinValues,i=a.extractValue,r=a.valueField,o=a.autoFill,u=a.onBulkChange;if(!n){t.stopPropagation();var d=!n&&o&&!c.isEmpty(o)&&p.dataMapping(o,e);d&&u(d),l(s?e[r||"value"]:i?e[r||"value"]:e),!n&&this.close()}},t.prototype.handleCheck=function(e,t){var n=this.props,i=n.onChange,r=n.selectedOptions,o=n.joinValues,u=n.valueField,d=n.delimiter,p=n.extractValue,m=n.withChildren,h=n.cascade,f=n.multiple,_=this.state.stack;if(!Array.isArray(e)&&e.children&&e.children.length&&"number"==typeof t){var v=r.some(function(t){return t.value==e.value}),y=h?!1:e.uncheckable||f&&!v,g=e.children.map(function(e){return a.__assign(a.__assign({},e),{uncheckable:y})});_[t]?_.splice(t+1,1,g):_.push(g)}var b,C=r.concat();if(Array.isArray(e))e=m?c.flattenTree(e):e,b=C.length===e.length?[]:e;else if(Array.isArray(e.children))if(h)b=l.default(C,[e],u||"value");else if(m){e=c.flattenTree([e]);var E=e.every(function(e){return!!~C.findIndex(function(t){return t.value===e.value})})?l.default:s.default;b=E(C,e,u||"value")}else b=C.filter(function(t){return!~c.flattenTree([e],function(e){return e.value}).indexOf(t.value)}),!~C.map(function(e){return e.value}).indexOf(e.value)&&b.push(e);else b=l.default(C,[e],u||"value");o?b=b.map(function(e){return e[u||"value"]}).join(d||","):p&&(b=b.map(function(e){return e[u||"value"]})),i(b)},t.prototype.allChecked=function(e){var t=this,a=this.props,n=a.selectedOptions,l=a.withChildren;return e.every(function(e){return l&&e.children?t.allChecked(e.children):n.some(function(t){return t.value==e.value})})},t.prototype.partialChecked=function(e){var t=this,a=this.props,n=a.selectedOptions,l=a.withChildren;return e.some(function(e){return l&&e.children?t.partialChecked(e.children):n.some(function(t){return t.value==e.value})})},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.onFocus=function(e){this.props.disabled||this.state.isOpened||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(e)},t.prototype.onBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},t.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},t.prototype.getTarget=function(){return this.target||(this.target=f.findDOMNode(this)),this.target},t.prototype.inputRef=function(e){this.input=e},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value,a=this.props,n=a.options,l=a.labelField,s=a.valueField,i=c.string2regExp(t),r=t&&this.state.isOpened?c.filterTree(n,function(e){return i.test(e[l||"label"])||i.test(e[s||"value"])||!(!e.children||!e.children.length)},1,!0):n.concat();this.setState({inputValue:t,stack:[r]})},t.prototype.renderOptions=function(){var e=this,t=this.props,a=t.multiple,l=t.selectedOptions,s=t.classnames,i=t.value,o=t.options,u=t.disabled,c=t.searchable,p=t.searchPromptText,m=t.translate,f=this.state.stack,_=c?n.default.createElement("div",{className:s("Select-input",{"is-focused":this.state.isFocused})},n.default.createElement(d.Icon,{icon:"search",className:"icon"}),n.default.createElement(h.default,{value:this.state.inputValue||"",onFocus:this.onFocus,onBlur:this.onBlur,disabled:u,placeholder:m(p),onChange:this.handleInputChange,ref:this.inputRef})):null,v=this.partialChecked(o),y=this.allChecked(o);return n.default.createElement(n.default.Fragment,null,f.map(function(t,o){return n.default.createElement("div",{key:o,className:s("NestedSelect-menu")},0===o?_:null,a&&0===o?n.default.createElement("div",{className:s("NestedSelect-option","checkall"),onMouseEnter:e.onMouseEnterAll},n.default.createElement(r.default,{onChange:e.handleCheck.bind(e,t),checked:v,partial:v&&!y},"全选")):null,t.map(function(t,c){var p=l.some(function(e){return e.value==t.value}),m=!!t.uncheckable||p,h=!!t.uncheckable||!!u;return n.default.createElement("div",{key:c,className:s("NestedSelect-option",{"is-active":i&&i===t.value}),onClick:e.handleOptionClick.bind(e,t),onMouseEnter:e.onMouseEnter.bind(e,t,o)},a?n.default.createElement(r.default,{className:s("NestedSelect-optionLabel"),onChange:e.handleCheck.bind(e,t,o),trueValue:t.value,checked:m,disabled:h},t.label):n.default.createElement("div",{className:s("NestedSelect-optionLabel")},n.default.createElement("span",null,t.label)),t.children&&t.children.length?n.default.createElement("div",{className:s("NestedSelect-optionArrowRight")},n.default.createElement(d.Icon,{icon:"right-arrow",className:"icon"})):null)}))}))},t.prototype.onMouseEnterAll=function(){this.setState({stack:[this.props.options]})},t.prototype.onMouseEnter=function(e,t){var n=this.state.stack,l=this.props,s=l.cascade,i=l.multiple,r=l.selectedOptions;if(t+=1,e.children&&e.children.length){var o=r.some(function(t){return t.value==e.value}),u=s?!1:e.uncheckable||i&&o,d=e.children.map(function(e){return a.__assign(a.__assign({},e),{uncheckable:u})});n[t]?n.splice(t,1,d):n.push(d)}else n[t]&&n.splice(t,1);this.setState({stack:n.slice(0,t+1)})},t.prototype.renderOuter=function(){var e=this.props,t=e.popOverContainer,a=e.classnames,l=n.default.createElement(u.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:this.close},n.default.createElement("div",{className:a("NestedSelect-menuOuter")},this.renderOptions()));return n.default.createElement(i.default,{container:t||this.getTarget,target:this.getTarget,show:!0},n.default.createElement(o.default,{className:a("NestedSelect-popover")},l))},t.prototype.render=function(){var e,t=this.props,a=t.className,l=t.disabled,s=t.classnames,i=t.multiple;return n.default.createElement("div",{className:s("NestedSelectControl",a)},n.default.createElement("div",{className:s("NestedSelect",(e={},e["NestedSelect--multi"]=i,e["is-opened"]=this.state.isOpened,e["is-disabled"]=l,e)),onClick:this.open,ref:this.domRef},n.default.createElement("div",{className:s("NestedSelect-valueWrap"),onClick:this.open},this.renderValue()),this.renderClear(),n.default.createElement("span",{className:s("Select-arrow")},n.default.createElement(d.Icon,{icon:"caret",className:"icon"}))),this.state.isOpened?this.renderOuter():null)};var m,_;return t.defaultProps={cascade:!1,withChildren:!1,searchPromptText:"输入内容进行检索"},a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"domRef",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"open",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"close",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onFocus",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onBlur",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"focus",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"blur",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getTarget",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(m="undefined"!=typeof HTMLInputElement&&HTMLInputElement)?m:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"inputRef",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(_="undefined"!=typeof n.default&&n.default.ChangeEvent)?_:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),a.__decorate([c.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"onMouseEnterAll",null),t}(n.default.Component);t.default=_;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([m.OptionsControl({type:"nested-select"})],t)}(_);t.NestedSelectControlRenderer=v}); +;/*!src/renderers/Form/Transfer.tsx*/ +amis.define("399400a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferRender=t.BaseTransferRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=e("b86428a"),r=n.__importDefault(e("node_modules/react/index")),o=n.__importDefault(e("0573406")),i=e("b86428a"),s=e("9a80175"),l=n.__importDefault(e("acad559")),d=n.__importDefault(e("node_modules/lodash/find")),u=e("d57879c"),p=e("f2e345e"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n.__extends(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.joinValues,r=t.delimiter,o=t.valueField,i=t.extractValue,l=t.options,d=t.setOptions,p=e,c=l.concat();Array.isArray(e)&&((a||i)&&(p=e.map(function(e){var t=s.findTree(l,u.optionValueCompare(e[o||"value"],o||"value"));return t||c.push(e),e[o||"value"]})),a&&(p=p.join(r||","))),c.length>l.length&&d(c,!0),n(p)},t.prototype.option2value=function(e){return e},t.prototype.handleSearch=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var a,r,o,i,l,p,c,f,_,h,m;return n.__generator(this,function(n){switch(n.label){case 0:if(a=this.props,r=a.searchApi,o=a.options,i=a.labelField,l=a.valueField,p=a.env,c=a.data,!r)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,p.fetcher(r,s.createObject(c,{term:e}),{cancelExecutor:t})];case 2:if(f=n.sent(),!f.ok)throw new Error(f.msg||"搜索请求异常");if(_=f.data.options||f.data.items||f.data,!Array.isArray(_))throw new Error("期望接口返回数组信息");return[2,_.map(function(e){var t=null;return Array.isArray(o)&&(t=d.default(o,u.optionValueCompare(e[l||"value"],l))),t||e})];case 3:return h=n.sent(),p.isCancel(h)||p.notify("error",h.message),[2,[]];case 4:return[3,6];case 5:return e?(m=s.string2regExp(e),[2,s.filterTree(o,function(e){return!!(Array.isArray(e.children)&&e.children.length||m.test(e[i||"label"])||m.test(e[l||"value"]))},0,!0)]):[2,o];case 6:return[2]}})})},t.prototype.renderCell=function(e,t,a,r){var o=this.props,i=o.render,l=o.data;return i("cell/"+a+"/"+r,n.__assign({type:"text"},e),{value:p.resolveVariable(e.name,t),data:s.createObject(l,t)})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classnames,a=e.options,i=e.selectedOptions,s=e.showArrow,d=e.sortable,u=e.selectMode,p=e.columns,c=e.loading,f=e.searchable,_=e.searchResultMode,h=e.deferLoad,m=e.leftOptions,y=e.leftMode,v=e.rightMode;return r.default.createElement("div",{className:n("TransferControl",t)},r.default.createElement(o.default,{value:i,options:a,onChange:this.handleChange,option2value:this.option2value,sortable:d,showArrow:s,selectMode:u,searchResultMode:_,columns:p,onSearch:f?this.handleSearch:void 0,onDeferLoad:h,leftOptions:m,leftMode:y,rightMode:v,cellRender:this.renderCell}),r.default.createElement(l.default,{overlay:!0,key:"info",show:c}))};var a,c,f,_;return n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(a="undefined"!=typeof Array&&Array)?a:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof i.Option&&i.Option)?c:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"option2value",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,"function"==typeof(f="undefined"!=typeof Function&&Function)?f:Object]),n.__metadata("design:returntype",Promise)],t.prototype,"handleSearch",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,"function"==typeof(_="undefined"!=typeof i.Option&&i.Option)?_:Object,Number,Number]),n.__metadata("design:returntype",void 0)],t.prototype,"renderCell",null),t}(r.default.Component);t.BaseTransferRenderer=c;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(c);t.TransferRender=f,t.default=a.OptionsControl({type:"transfer"})(f)}); +;/*!src/renderers/Service.tsx*/ +amis.define("3a449e1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceRenderer=void 0;var a=e("node_modules/tslib/tslib"),i=a.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),s=e("57d76d7"),r=e("6a2dbb7"),o=e("919cbd9"),c=e("1caead1"),d=e("1953fc1"),l=e("9a80175"),p=function(e){function t(t){var a=e.call(this,t)||this;return a.handleQuery=a.handleQuery.bind(a),a.handleAction=a.handleAction.bind(a),a.reload=a.reload.bind(a),a.silentReload=a.silentReload.bind(a),a.initInterval=a.initInterval.bind(a),a.afterDataFetch=a.afterDataFetch.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.mounted=!0,this.initFetch()},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.store,i=t.messages,n=i.fetchSuccess,s=i.fetchFailed;c.isApiOutdated(e.api,t.api,e.data,t.data)&&a.fetchData(t.api,a.data,{successMessage:n,errorMessage:s}).then(this.afterDataFetch),c.isApiOutdated(e.schemaApi,t.schemaApi,e.data,t.data)&&a.fetchSchema(t.schemaApi,a.data,{successMessage:n,errorMessage:s}).then(this.initInterval)},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.initFetch=function(){var e=this.props,t=e.schemaApi,a=e.initFetchSchema,i=e.api,n=e.initFetch,s=e.initFetchOn,r=e.store,o=e.messages,d=o.fetchSuccess,l=o.fetchFailed;c.isEffectiveApi(t,r.data,a)&&r.fetchSchema(t,r.data,{successMessage:d,errorMessage:l}),c.isEffectiveApi(i,r.data,n,s)&&r.fetchInitData(i,r.data,{successMessage:d,errorMessage:l}).then(this.afterDataFetch)},t.prototype.afterDataFetch=function(e){this.initInterval(e)},t.prototype.initInterval=function(e){var t=this.props,a=t.interval,i=t.silentPolling,n=t.stopAutoRefreshWhen,s=t.data;return clearTimeout(this.timer),a&&this.mounted&&(!n||!r.evalExpression(n,s))&&(this.timer=setTimeout(i?this.silentReload:this.reload,Math.max(a,3e3))),e},t.prototype.reload=function(e,t,a,i){if(t)return this.receive(t);var n=this.props,s=n.schemaApi,r=(n.initFetchSchema,n.api),o=(n.initFetch,n.initFetchOn,n.store),d=n.messages,l=d.fetchSuccess,p=d.fetchFailed;clearTimeout(this.timer),c.isEffectiveApi(s,o.data)&&o.fetchSchema(s,o.data,{successMessage:l,errorMessage:p}).then(this.initInterval),c.isEffectiveApi(r,o.data)&&o.fetchData(r,o.data,{silent:i,successMessage:l,errorMessage:p}).then(this.afterDataFetch)},t.prototype.silentReload=function(e,t){this.reload(e,t,void 0,!0)},t.prototype.receive=function(e){var t=this.props.store;t.updateData(e),this.reload()},t.prototype.handleQuery=function(e){this.receive(e)},t.prototype.reloadTarget=function(){},t.prototype.openFeedback=function(e,t){var a=this;return new Promise(function(i){var n=a.props.store,s=n.parentStore;s&&s.openDialog&&(n.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),n.openDialog(t,void 0,function(e){i(e)}))})},t.prototype.handleAction=function(e,t,i,n,s){var o=this;void 0===n&&(n=!1);var c=this.props,d=c.onAction,p=c.store,h=c.env,u=c.api,f=c.translate;u&&"ajax"===t.actionType?(p.setCurrentAction(t),p.saveRemote(t.api,i,{successMessage:f(t.messages&&t.messages.success),errorMessage:f(t.messages&&t.messages.failed)}).then(function(e){return a.__awaiter(o,void 0,void 0,function(){var i;return a.__generator(this,function(a){switch(a.label){case 0:return this.afterDataFetch(e),t.feedback&&l.isVisible(t.feedback,p.data)?[4,this.openFeedback(t.feedback,p.data)]:[3,2];case 1:a.sent(),a.label=2;case 2:return i=t.redirect&&r.filter(t.redirect,p.data),i&&h.jumpTo(i,t),t.reload&&this.reloadTarget(t.reload,p.data),[2]}})})}).catch(function(){})):d(e,t,i,n,s||this.context)},t.prototype.renderBody=function(){var e=this.props,t=e.render,a=e.store,n=e.body,s=e.classnames;return i.default.createElement("div",{className:s("Service-body")},t("body",a.schema||n,{key:a.schemaKey||"body",onQuery:this.handleQuery,onAction:this.handleAction}))},t.prototype.render=function(){var e=this.props,t=e.className,a=e.store,n=(e.render,e.classPrefix),s=e.classnames;return i.default.createElement("div",{className:s(n+"Service",t)},a.error?i.default.createElement("div",{className:s("Alert Alert--danger")},i.default.createElement("button",{className:s("Alert-close"),onClick:function(){return a.updateMessage("")},type:"button"},i.default.createElement("span",null,"×")),a.msg):null,this.renderBody(),i.default.createElement(d.Spinner,{size:"lg",overlay:!0,key:"info",show:a.loading}))},t.defaultProps={messages:{fetchFailed:"初始化失败"}},t.propsList=[],a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"initFetch",null),t}(i.default.Component);t.default=p;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.prototype.reloadTarget=function(e,t){var a=this.context;a.reload(e,t)},t.contextType=o.ScopedContext,t=a.__decorate([n.Renderer({test:/(^|\/)service$/,storeType:s.ServiceStore.name,name:"service"})],t)}(p);t.ServiceRenderer=h}); +;/*!src/renderers/Form/Service.tsx*/ +amis.define("40fc403",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceRenderer=void 0;var o=t("node_modules/tslib/tslib"),r=o.__importDefault(t("node_modules/react/index")),n=t("0f9ebdf"),s=o.__importDefault(t("3a449e1")),i=t("919cbd9"),a=t("57d76d7"),d=t("9a80175"),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this)},e.prototype.componentDidMount=function(){var e=this.props,o=e.formInited,r=e.addHook;this.mounted=!0,o!==!1?t.prototype.componentDidMount.call(this):r&&r(this.initFetch,"init")},e.prototype.componentDidUpdate=function(e){var o=this.props.formInited;o!==!1&&t.prototype.componentDidUpdate.call(this,e)},e.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this);var o=this.props.removeHook;o&&o(this.initFetch,"init"),t.prototype.componentWillUnmount.call(this)},e.prototype.afterDataFetch=function(e){var o=this.props.formStore,r=this.props.onChange;if(o&&this.isFormMode()){var n=d.isObject(null===e||void 0===e?void 0:e.data)?Object.keys(e.data):[];n.length&&(o.setValues(e.data),r(e.data[n[0]],n[0]))}return t.prototype.afterDataFetch.call(this,e)},e.prototype.isFormMode=function(){var t=this.props,e=t.store,o=t.body,r=t.controls,n=t.tabs,s=t.feildSet,i=t.renderFormItems,a=(t.classnames,e.schema||o||{controls:r,tabs:n,feildSet:s});return a&&!a.type&&(a.controls||a.tabs||a.feildSet)&&i},e.prototype.renderBody=function(){var e=this.props,o=e.render,n=e.store,s=e.body,i=e.controls,a=e.tabs,d=e.feildSet,p=e.renderFormItems,c=e.formMode,l=e.classnames;if(this.isFormMode()){var m=n.schema||s||{controls:i,tabs:a,feildSet:d};return r.default.createElement("div",{key:n.schemaKey||"forms",className:l("Form--"+(c||"normal"))},p(m,"controls",{store:n,data:n.data,render:o}))}return t.prototype.renderBody.call(this)},e.propsList=["onChange"],e.contextType=i.ScopedContext,e=o.__decorate([n.Renderer({test:/(^|\/)form\/(.*)\/service$/,weight:-100,storeType:a.ServiceStore.name,storeExtendsData:!1,name:"service-control"})],e)}(s.default);e.ServiceRenderer=p}); +;/*!src/renderers/Form/Table.tsx*/ +amis.define("f6d94c0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),i=e("567b83c"),r=n.__importDefault(e("node_modules/classnames/index")),o=n.__importDefault(e("a67acca")),l=e("9a80175"),s=e("1caead1"),d=e("6a2dbb7"),c=n.__importDefault(e("node_modules/lodash/omit")),u=e("f2e345e"),p=n.__importDefault(e("node_modules/lodash/findIndex")),f=n.__importDefault(e("node_modules/lodash/memoize")),h=e("398dbab"),m=e("b7bbd16"),v=function(e){function t(t){var n=e.call(this,t)||this;return n.entityId=1,n.subForms={},n.editting={},n.buildItems=f.default(function(e,t){return e.map(function(e,a){return a===t?n.state.editting:e})},function(){for(var e=[],t=0;ti)return r("组合表单成员数量超出,超出设定的最大{{maxLength}}个,请删除多余的成员。",{maxLength:i});var o=[];return Object.keys(this.subForms).forEach(function(t){return e.subForms[t]&&o.push(e.subForms[t])}),o.length?Promise.all(o.map(function(e){return e.validate()})).then(function(e){return~e.indexOf(!1)?r("内部表单验证失败"):void 0}):void 0},t.prototype.doAction=function(e,t){for(var a=[],i=2;i1?a.default.createElement("div",{className:u("IconPickerControl-tabs")},h.map(function(t,n){return a.default.createElement("div",{className:u("IconPickerControl-tab",{active:e.state.vendorIndex===n}),onClick:function(){return e.changeVendor(n)},key:n},t)})):null,v.length?a.default.createElement("div",{className:u("IconPickerControl-sugs",h.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},v.map(function(e,t){return a.default.createElement("div",n.__assign({},f({item:e.value,className:u("IconPickerControl-sugItem",{"is-active":p===e.value})}),{key:t}),a.default.createElement("i",{className:u(""+e.value),title:""+e.value}))})):a.default.createElement("div",{className:u(h.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},_(c))):null)})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,i=e.inputOnly,s=this.renderFontIcons();return i?s:a.default.createElement("div",{className:o.default(t,n+"IconPickerControl",{"is-focused":this.state.isFocused})},s)};var l,p,c;return t.defaultProps={resetValue:"",placeholder:"",noDataTip:"未找到匹配的图标"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number]),n.__metadata("design:returntype",void 0)],t.prototype,"changeVendor",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"formatOptions",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"getVendors",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"inputRef",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"focus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof a.default&&a.default.ChangeEvent)?l:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(p="undefined"!=typeof a.default&&a.default.KeyboardEvent)?p:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleKeyDown",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof r.StateChangeOptions&&r.StateChangeOptions)?c:Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleStateChange",null),t}(a.default.PureComponent);t.default=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({type:"icon-picker"})],t)}(p);t.IconPickerControlRenderer=c}); +;/*!src/renderers/Form/Formula.tsx*/ +amis.define("33d5c8a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormulaControlRenderer=void 0;var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),a=e("567b83c"),i=e("6a2dbb7"),r=e("9a80175"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.formula,n=e.data,o=e.setPrinstineValue,a=e.initSet,r=e.condition;if(t&&a!==!1&&(!r||~r.indexOf("$")||~r.indexOf("<%")||i.evalJS(r,n))){var l=i.evalJS(t,n);null!==l&&o(l)}},t.prototype.componentWillReceiveProps=function(e){var t=this.props,n=t.formula,o=t.data,a=t.onChange,l=t.autoSet,u=t.value,d=t.condition;if(l!==!1&&n&&e.formula&&r.isObjectShallowModified(o,e.data,!1)&&u===e.value){var f=i.evalJS(e.formula,e.data);if(d&&e.condition)~d.indexOf("$")||~d.indexOf("<%")?i.filter(d,o)!==i.filter(e.condition,e.data)&&a(f):i.evalJS(e.condition,e.data)&&a(f);else{var s=i.evalJS(n,o);JSON.stringify(s)!==JSON.stringify(f)&&a(f||"")}}},t.prototype.doAction=function(){var e=this.props,t=e.formula,n=e.data,o=e.onChange,a=(e.autoSet,e.value,i.evalJS(t,n));o(a)},t.prototype.render=function(){return null},t}(o.default.Component);t.default=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([a.FormItem({type:"formula",wrap:!1,strictMode:!1,sizeMutable:!1})],t)}(l);t.FormulaControlRenderer=u}); +;/*!src/renderers/Form/FieldSet.tsx*/ +amis.define("760e4be",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FieldSetRenderer=void 0;var t=e("node_modules/tslib/tslib"),o=t.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),d=t.__importDefault(e("d221521")),a=function(e){function r(r){var t=e.call(this,r)||this;return t.renderBody=t.renderBody.bind(t),t}return t.__extends(r,e),r.prototype.renderBody=function(){var e=this.props,r=e.renderFormItems,t=e.controls,n=e.body,d=e.collapsable,a=e.horizontal,l=e.render,s=e.mode,i=e.formMode,m=e.$path,u=e.classnames,c=e.store,f=e.formClassName;if(!t)return l("body",n);var p={store:c,data:c.data,render:l};return s&&(p.mode=s),"undefined"!=typeof d&&(p.collapsable=d),a&&(p.horizontal=a),o.default.createElement("div",{className:u("Form--"+(p.mode||i||"normal"),f)},r({controls:t},m.replace(/^.*form\//,""),p))},r.prototype.render=function(){var e=this.props,r=(e.controls,e.className),n=(e.mode,t.__rest(e,["controls","className","mode"]));return o.default.createElement(d.default,t.__assign({},n,{className:r,children:this.renderBody,wrapperComponent:"fieldset",headingComponent:"legend"}))},r.defaultProps={headingClassName:"",collapsable:!1},r}(o.default.Component);r.default=a;var l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([n.Renderer({test:/(^|\/)form(?:.+)?\/control\/fieldSet$/i,weight:-100,name:"fieldset"})],r)}(a);r.FieldSetRenderer=l}); +;/*!src/renderers/Tabs.tsx*/ +amis.define("605b41a",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabsRenderer=void 0;var a=t("node_modules/tslib/tslib"),n=a.__importDefault(t("node_modules/react/index")),s=t("0f9ebdf"),r=a.__importDefault(t("node_modules/lodash/find")),o=t("9a80175"),i=a.__importDefault(t("node_modules/lodash/findIndex")),u=t("8ac7656"),d=function(t){function e(e){var a=t.call(this,e)||this,n=e.location||window.location,s=e.tabs,o=0;if("undefined"!=typeof e.activeKey)o=e.activeKey;else if(n&&Array.isArray(s)){var i=n.hash.substring(1),u=r.default(s,function(t){return t.hash===i});o=u&&u.hash?u.hash:s[0]&&s[0].hash||0}return a.state={prevKey:void 0,activeKey:o},a}return a.__extends(e,t),e.prototype.componentDidMount=function(){this.autoJumpToNeighbour()},e.prototype.componentWillReceiveProps=function(t){var e=this.props;if(t.location&&t.location.hash!==e.location.hash){var a=t.location.hash.substring(1);if(!a)return;var n=r.default(t.tabs,function(t){return t.hash===a});n&&n.hash&&n.hash!==this.state.activeKey&&this.setState({activeKey:n.hash,prevKey:this.state.activeKey})}else if(e.tabs!==t.tabs){var s=this.state.activeKey,o=t.location,n=null;if(o&&Array.isArray(t.tabs)){var i=o.hash.substring(1);n=r.default(t.tabs,function(t){return t.hash===i})}n?s=n.hash:t.tabs&&t.tabs.some(function(t,e){return t.hash?t.hash===s:e===s})||(s=t.tabs&&t.tabs[0]&&t.tabs[0].hash||0),this.setState({prevKey:void 0,activeKey:s})}},e.prototype.componentDidUpdate=function(){this.autoJumpToNeighbour()},e.prototype.autoJumpToNeighbour=function(){var t=this,e=this.props,a=e.tabs,n=e.data;if(Array.isArray(a)){var s=i.default(a,function(e,a){return e.hash?e.hash===t.state.activeKey:a===t.state.activeKey});if(a[s]&&!o.isVisible(a[s],this.props.data))for(var r=a.length,u=s-1+r,d=r-1;d--;){var l=u--%r;if(o.isVisible(a[l],n)){var h=a[l].hash||l;this.setState({activeKey:h});break}}}},e.prototype.handleSelect=function(t){var e=this.props.env;"string"==typeof t&&e?e.updateLocation("#"+t):"string"==typeof this.state.activeKey&&e&&e.updateLocation("#"),this.setState({activeKey:t,prevKey:this.state.activeKey})},e.prototype.switchTo=function(t){var e=this.props.tabs;Array.isArray(e)&&e[t]&&this.setState({activeKey:e[t].hash||t})},e.prototype.currentIndex=function(){var t=this,e=this.props.tabs;return Array.isArray(e)?i.default(e,function(e,a){return e.hash?e.hash===t.state.activeKey:a===t.state.activeKey}):-1},e.prototype.renderToolbar=function(){var t=this.props,e=t.toolbar,a=t.render,s=t.classnames,r=t.toolbarClassName;return e?n.default.createElement("div",{className:s("Tabs-toolbar",r)},a("toolbar",e)):null},e.prototype.renderTabs=function(){var t=this,e=this.props,s=e.classnames,r=e.classPrefix,i=e.contentClassName,d=e.tabs,l=e.tabRender,h=e.className,p=e.render,c=e.data,y=e.mode,b=e.tabsMode,m=e.mountOnEnter,f=e.unmountOnExit;if(!Array.isArray(d))return null;var v=b||y;return n.default.createElement(u.Tabs,{classPrefix:r,classnames:s,mode:v,className:h,contentClassName:i,onSelect:this.handleSelect,activeKey:this.state.activeKey,toolbar:this.renderToolbar()},d.map(function(e,s){return o.isVisible(e,c)?n.default.createElement(u.Tab,a.__assign({},e,{disabled:o.isDisabled(e,c),key:s,eventKey:e.hash||s,mountOnEnter:m,unmountOnExit:"boolean"==typeof e.reload?e.reload:"boolean"==typeof e.unmountOnExit?e.unmountOnExit:f}),t.renderTab?t.renderTab(e,t.props,s):l?l(e,t.props,s):p("tab/"+s,e.tab||e.body||"")):null}))},e.prototype.render=function(){return this.renderTabs()},e.defaultProps={className:"",mode:"",mountOnEnter:!0,unmountOnExit:!1},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"autoJumpToNeighbour",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"handleSelect",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],e.prototype,"switchTo",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",Number)],e.prototype,"currentIndex",null),e}(n.default.Component);e.default=d;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e=a.__decorate([s.Renderer({test:/(^|\/)tabs$/,name:"tabs"})],e)}(d);e.TabsRenderer=l}); +;/*!src/renderers/Form/Tabs.tsx*/ +amis.define("3abf50d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsRenderer=void 0;var r=e("node_modules/tslib/tslib"),o=r.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),a=r.__importDefault(e("605b41a")),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderTab=function(e,r,n){var a=t.props,s=a.renderFormItems,d=a.formMode,l=a.formHorizontal,i=a.$path,m=a.render,u=a.classnames;return s&&!e.type&&(e.controls||e.fieldSet||e.tabs)?o.default.createElement("div",{className:u("Form--"+(e.mode||d||"normal"))},s(e,i.replace(/^.*form\//,"")+"/"+n,{mode:e.mode||d,horizontal:e.horizontal||l})):m("tab/"+n,e.body||e.tab||e)},t}return r.__extends(t,e),t.defaultProps={mountOnEnter:!1},t.propsList=["onChange","tabs"],t=r.__decorate([n.Renderer({test:/(^|\/)form(?:.+)?\/control\/tabs$/i,weight:-100,name:"tabs-control"})],t)}(a.default);t.TabsRenderer=s}); +;/*!src/renderers/Form/TabsTransfer.tsx*/ +amis.define("13e7e33",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TabsTransferRenderer=void 0;var t=e("node_modules/tslib/tslib"),r=e("b86428a"),o=t.__importDefault(e("node_modules/react/index")),n=t.__importDefault(e("acad559")),s=e("399400a"),l=t.__importDefault(e("5c35784")),d=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.render=function(){var e=this.props,a=e.className,t=e.classnames,r=e.options,s=e.selectedOptions,d=e.sortable,i=e.loading,u=e.searchable,c=e.searchResultMode,f=e.showArrow,h=e.deferLoad;return o.default.createElement("div",{className:t("TabsTransferControl",a)},o.default.createElement(l.default,{value:s,options:r,onChange:this.handleChange,option2value:this.option2value,sortable:d,searchResultMode:c,onSearch:u?this.handleSearch:void 0,showArrow:f,onDeferLoad:h}),o.default.createElement(n.default,{overlay:!0,key:"info",show:i}))},a=t.__decorate([r.OptionsControl({type:"tabs-transfer"})],a)}(s.BaseTransferRenderer);a.TabsTransferRenderer=d}); +;/*!src/renderers/Form/Group.tsx*/ +amis.define("7f271f4",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ControlGroupRenderer=void 0;var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),t=e("0f9ebdf"),a=e("9a80175"),i=e("567b83c"),l=o.__importDefault(e("01e2bb4")),s=function(e){function r(r){var o=e.call(this,r)||this;return o.renderInput=o.renderInput.bind(o),o}return o.__extends(r,e),r.prototype.renderControl=function(e,r,n){var t=this.props,a=t.render,i=t.disabled,s=t.data;if(!e)return null;var d=e&&"control"===e.type?e:{type:"control",control:e};if(d.control){var u=d.control;u=d.control=o.__assign(o.__assign({},u),l.default(u,s)),u.hiddenOn&&(d.hiddenOn=u.hiddenOn),u.visibleOn&&(d.visibleOn=u.visibleOn)}return a(""+r,d,o.__assign(o.__assign({},n),{disabled:i}))},r.prototype.renderVertical=function(e){var r=this;void 0===e&&(e=this.props);var o=e.controls,t=e.className,i=e.classnames,l=e.mode,s=e.formMode,d=e.data;return s=l||s,n.default.createElement("div",{className:i("Form-group Form-group--ver Form-group--"+s,t)},o.map(function(e,o){if(!a.isVisible(e,d))return null;var n=e&&e.mode||s;return r.renderControl(e,o,{key:o,formMode:n})}))},r.prototype.renderHorizontal=function(e){var r=this;void 0===e&&(e=this.props);var o=e.controls,t=e.className,i=e.classPrefix,l=e.classnames,s=e.mode,d=e.horizontal,u=e.formMode,m=e.formHorizontal,p=e.data,c=e.gap;u=s||u;var f=d||a.makeHorizontalDeeper(m,o.filter(function(e){return"inline"!==e.mode&&a.isVisible(e,p)}).length);return n.default.createElement("div",{className:l("Form-group Form-group--hor Form-group--"+u,c?"Form-group--"+c:"",t)},o.map(function(e,o){if(!a.isVisible(e,p))return null;var t=e&&e.mode||u;if("inline"===t||e&&"formula"===e.type)return r.renderControl(e,o,{formMode:"inline",key:o,className:l(e.className,e.columnClassName)});var s=e.columnRatio||a.getWidthRate(e&&e.columnClassName,!0);return n.default.createElement("div",{key:o,className:l(i+"Form-groupColumn",s?i+"Form-groupColumn--"+s:"",e&&e.columnClassName)},r.renderControl(e,o,{formHorizontal:f,formMode:t}))}))},r.prototype.renderInput=function(e){void 0===e&&(e=this.props);var r=e.direction;return"vertical"===r?this.renderVertical(e):this.renderHorizontal(e)},r.prototype.render=function(){var e=this.props,r=e.label,t=o.__rest(e,["label"]);return r?n.default.createElement(i.FormItemWrap,o.__assign({},t,{sizeMutable:!1,label:r,renderControl:this.renderInput})):this.renderInput()},r=o.__decorate([t.Renderer({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?group$/,name:"group-control"}),o.__metadata("design:paramtypes",[Object])],r)}(n.default.Component);r.ControlGroupRenderer=s}); +;/*!src/renderers/Form/InputGroup.tsx*/ +amis.define("fe6117b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputGroup=void 0;var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=e("9a80175"),i=n.__importDefault(e("01e2bb4")),a=e("567b83c"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.state={isFocused:!1},n}return n.__extends(t,e),t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.renderControl=function(e,t,r){var o=this.props,i=o.render,a=o.onChange;if(!e)return null;var s=e&&"control"===e.type?e:{type:"control",control:e};if(s.control){var u=s.control;u.hiddenOn&&(s.hiddenOn=u.hiddenOn),u.visibleOn&&(s.visibleOn=u.visibleOn)}return i(""+t,s,n.__assign({onChange:a},r))},t.prototype.validate=function(){var e=this.props,t=e.formStore,n=e.controls,r=[];return n.forEach(function(e){var n=e.name,o=n?t.getItemByName(n):null;o&&o.errors.length&&r.push.apply(r,o.errors)}),r.length?r:""},t.prototype.render=function(){var e=this,t=this.props,n=t.controls,a=t.className,s=t.mode,u=t.horizontal,l=t.formMode,d=t.formHorizontal,p=t.data,c=t.classnames;l=s||l,n=n.filter(function(e){if(e&&(e.hidden||e.visible===!1))return!1;var t=i.default(e||{},p);return t.hidden||t.visible===!1?!1:!0});var f=u||o.makeHorizontalDeeper(d,n.length);return r.default.createElement("div",{className:c("InputGroup",a,{"is-focused":this.state.isFocused})},n.map(function(t,n){var o=~["icon","plain","tpl","button","submit","reset"].indexOf(t&&t.type),i=e.renderControl(t,n,{formHorizontal:f,formMode:"normal",inputOnly:!0,key:n,onFocus:e.handleFocus,onBlur:e.handleBlur});return o?r.default.createElement("span",{key:n,className:c(t.addOnclassName,~["button","submit","reset"].indexOf(t&&t.type)?"InputGroup-btn":"InputGroup-addOn")},i):i}))},t}(r.default.Component);t.InputGroup=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([a.FormItem({type:"input-group",strictMode:!1})],t)}(s);t.default=u}); +;/*!src/renderers/HBox.tsx*/ +amis.define("aab7b91",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HBoxRenderer=void 0;var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),o=n.__importDefault(e("node_modules/classnames/index")),i=e("9a80175"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderChild=function(e,t){var n=this.props.render;return n(e,t)},t.prototype.renderColumn=function(e,t,s){var l=this.props,u=l.itemRender,a=l.data,d=l.classPrefix;if(!i.isVisible(e,a))return null;var p=n.__assign({width:e.width,height:e.height},e.style);return r.default.createElement("div",{key:t,className:o.default(d+"Hbox-col",e.columnClassName),style:p},u?u(e,t,s,this.props):this.renderChild("column/"+t,e))},t.prototype.renderColumns=function(){var e=this,t=this.props.columns;return t.map(function(n,r){return e.renderColumn(n,r,t.length)})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classnames;return r.default.createElement("div",{className:n("Hbox",t)},this.renderColumns())},t.propsList=["columns"],t.defaultProps={},t}(r.default.Component);t.default=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)hbox$/,name:"hbox"})],t)}(l);t.HBoxRenderer=u}); +;/*!src/renderers/VBox.tsx*/ +amis.define("ae1a7f3",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.VBoxRenderer=void 0;var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),a=t.__importDefault(e("node_modules/classnames/index")),l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.renderChild=function(e,r){var t=this.props.render;return t(e,r)},r.prototype.renderCell=function(e,r){var t=this.props.classPrefix;return n.default.createElement("div",{className:a.default(t+"Vbox-cell",e.cellClassName)},this.renderChild("row/"+r,e))},r.prototype.render=function(){var e=this,r=this.props,t=r.className,s=r.rows,l=r.classPrefix;return n.default.createElement("div",{className:a.default(l+"Vbox",t)},Array.isArray(s)?s.map(function(r,t){return n.default.createElement("div",{className:a.default("row-row",r.rowClassName),key:t},e.renderCell(r,t))}):null)},r.propsList=["rows"],r.defaultProps={},r}(n.default.Component);r.default=l;var o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([s.Renderer({test:/(^|\/)vbox$/,name:"vbox"})],r)}(l);r.VBoxRenderer=o}); +;/*!src/renderers/Images.tsx*/ +amis.define("011f81c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImagesFieldRenderer=t.ImagesField=void 0;var a=e("node_modules/tslib/tslib"),r=a.__importDefault(e("node_modules/react/index")),i=e("0f9ebdf"),n=e("6a2dbb7"),s=e("f2e345e"),l=a.__importStar(e("fcb3580")),o=e("9a80175"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.list=[],t}a.__extends(t,e),t.prototype.handleEnlarge=function(e){var t=this.props,r=t.onImageEnlarge,i=t.src,s=t.originalSrc;r&&r(a.__assign(a.__assign({},e),{originalSrc:e.originalSrc||e.src,list:this.list.map(function(e){return{src:i?n.filter(i,e,"| raw"):e&&e.image||e,originalSrc:s?n.filter(s,e,"| raw"):e&&e.src||e,title:e&&(e.enlargeTitle||e.title),caption:e&&(e.enlargeCaption||e.description||e.caption)}})}),this.props)},t.prototype.render=function(){var e,t=this,a=this.props,i=a.className,o=a.defaultImage,d=a.thumbMode,c=a.thumbRatio,m=a.data,u=a.name,p=a.value,g=a.placeholder,f=a.classnames,h=a.source,_=a.delimiter,b=a.enlargeAble,y=a.src,v=a.originalSrc;return"string"==typeof h&&s.isPureVariable(h)?e=s.resolveVariable(h,m)||void 0:Array.isArray(p)?e=p:u&&m[u]&&(e=m[u]),"string"==typeof e?e=e.split(_):e&&!Array.isArray(e)&&(e=[e]),this.list=e,r.default.createElement("div",{className:f("ImagesField",i)},Array.isArray(e)?r.default.createElement("div",{className:f("Images")},e.map(function(e,a){return r.default.createElement(l.default,{index:a,className:f("Images-item"),key:a,src:(y?n.filter(y,e,"| raw"):e&&e.image)||e,originalSrc:(v?n.filter(v,e,"| raw"):e&&e.src)||e,title:e&&e.title,caption:e&&(e.description||e.caption),thumbMode:d,thumbRatio:c,enlargeAble:b,onEnlarge:t.handleEnlarge})})):o?r.default.createElement(l.default,{className:f("Images-item"),src:o,thumbMode:d,thumbRatio:c}):g)};var i;return t.defaultProps={className:"",delimiter:",",defaultImage:"https://fex.bdstatic.com/n/static/amis/renderers/crud/field/placeholder_cfad9b1.png",placehoder:"-",thumbMode:"contain",thumbRatio:"1:1"},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(i="undefined"!=typeof l.ImageThumbProps&&l.ImageThumbProps)?i:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleEnlarge",null),t}(r.default.Component);t.ImagesField=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)images$/})],t)}(d);t.ImagesFieldRenderer=c}); +;/*!src/renderers/List.tsx*/ +amis.define("20f7ce6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListItemFieldRenderer=t.ListItemRenderer=t.ListItem=t.ListRenderer=void 0;var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),a=e("node_modules/react-dom/index"),i=e("0f9ebdf"),s=e("6a2dbb7"),l=n.__importDefault(e("a67acca")),o=n.__importDefault(e("0a43d97")),d=e("4e9b495"),c=e("9a80175"),u=e("f2e345e"),p=n.__importDefault(e("b497f17")),m=n.__importDefault(e("bcd7efc")),h=n.__importDefault(e("node_modules/sortablejs/Sortable")),f=e("f6086a9"),g=n.__importDefault(e("705a434")),b=e("b7bbd16"),y=function(e){function t(t){var n=e.call(this,t)||this;return n.handleAction=n.handleAction.bind(n),n.handleCheck=n.handleCheck.bind(n),n.handleCheckAll=n.handleCheckAll.bind(n),n.handleQuickChange=n.handleQuickChange.bind(n),n.handleSave=n.handleSave.bind(n),n.handleSaveOrder=n.handleSaveOrder.bind(n),n.reset=n.reset.bind(n),n.dragTipRef=n.dragTipRef.bind(n),n.getPopOverContainer=n.getPopOverContainer.bind(n),n.affixDetect=n.affixDetect.bind(n),n.bodyRef=n.bodyRef.bind(n),n.renderToolbar=n.renderToolbar.bind(n),n}return n.__extends(t,e),t.syncItems=function(e,t,n){var r=t.source,a=t.value||t.items,i=[],s=!0;if(Array.isArray(a))i=a;else if("string"==typeof r){var l=u.resolveVariable(r,t.data),o=n?u.resolveVariable(r,n.data):null;o&&o===l?s=!1:Array.isArray(l)&&(i=l)}s&&e.initItems(i),Array.isArray(t.selected)&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,n=e.store,r=e.selectable,a=e.draggable,i=e.orderBy,s=e.orderDir,l=e.multiple,o=e.hideCheckToggler,d=e.itemCheckableOn,c=e.itemDraggableOn;n.update({multiple:l,selectable:r,draggable:a,orderBy:i,orderDir:s,hideCheckToggler:o,itemCheckableOn:d,itemDraggableOn:c}),t.syncItems(n,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=c.getScrollParent(a.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillReceiveProps=function(e){var n=this.props,r=e.store;c.anyChanged(["selectable","draggable","orderBy","orderDir","multiple","hideCheckToggler","itemCheckableOn","itemDraggableOn"],n,e)&&r.update({multiple:e.multiple,selectable:e.selectable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,hideCheckToggler:e.hideCheckToggler,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn}),c.anyChanged(["source","value","items"],n,e)||!e.value&&!e.items&&e.data!==n.data?(t.syncItems(r,e,n),this.syncSelected()):n.selected!==e.selected&&r.updateSelected(e.selected||[],e.valueField)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.bodyRef=function(e){this.body=e},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.body){var e=this.props.classPrefix,t=a.findDOMNode(this),n=t.querySelector("."+e+"List-fixedTop");if(n){var r=this.body.getBoundingClientRect(),i=this.props.env.affixOffsetTop||0,s=r.topi;this.body.offsetWidth&&(n.style.cssText="top: "+i+"px;width: "+this.body.offsetWidth+"px;"),s?n.classList.add("in"):n.classList.remove("in")}}},t.prototype.getPopOverContainer=function(){return a.findDOMNode(this)},t.prototype.handleAction=function(e,t,n){var r=this.props.onAction;r(e,t,n)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.syncSelected=function(){var e=this.props,t=e.store,n=e.onSelect;n&&n(t.selectedItems.map(function(e){return e.data}),t.unSelectedItems.map(function(e){return e.data}))},t.prototype.handleQuickChange=function(e,t,n,r){if(e.change(t,r),n&&!r){if(n&&n.api)return void this.props.onAction(null,{actionType:"ajax",api:n.api},t);var a=this.props,i=a.onSave,s=a.primaryField;i&&i(e.data,c.difference(e.data,e.pristine,["id",s]),e.index,void 0,e.pristine)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,n=e.onSave,r=e.primaryField;if(n&&t.modifiedItems.length){var a=t.modifiedItems.map(function(e){return e.data}),i=t.modifiedItems.map(function(e){return e.index}),s=t.modifiedItems.map(function(e){return c.difference(e.data,e.pristine,["id",r])}),l=t.items.filter(function(e){return!e.modified}).map(function(e){return e.data});n(a,s,i,l,t.modifiedItems.map(function(e){return e.pristine}))}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,n=e.onSaveOrder;n&&t.movedItems.length&&n(t.movedItems.map(function(e){return e.data}),t.items.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var n=this.props.store,r=n.items.filter(function(e){return~t.indexOf(e.pristine)});r.forEach(function(t){return t.change(e)})},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedItems.map(function(e){return e.data})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this.props.store,t=a.findDOMNode(this),n=this.props.classPrefix;this.sortable=new h.default(t.querySelector("."+n+"List-items"),{group:"table",animation:150,handle:"."+n+"ListItem-dragBtn",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex'+p+"
":"string"==typeof o?o:JSON.stringify(o)},t.prototype._render=function(){this.dom&&(this.dom.innerHTML=this.getContent())},t.prototype.render=function(){var e=this.props,t=e.className,n=e.wrapperComponent,l=e.inline,i=e.classnames,o=n||(l?"span":"div");return r.default.createElement(o,{children:this.getContent(),ref:this.htmlRef,className:i("TplField",t)})},t.defaultProps={inline:!0,placeholder:"",value:""},t}(r.default.Component);t.Tpl=s;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.Renderer({test:/(^|\/)(?:tpl|html)$/,name:"tpl"})],t)}(s);t.TplRenderer=p}); +;/*!src/renderers/Mapping.tsx*/ +amis.define("c2029c1",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MappingFieldRenderer=n.MappingField=void 0;var t=e("node_modules/tslib/tslib"),a=t.__importDefault(e("node_modules/react/index")),r=e("0f9ebdf"),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e,n,t=this.props,r=t.className,i=t.placeholder,l=t.map,p=t.render,d=t.classnames,s=this.props.value,u=a.default.createElement("span",{className:"text-muted"},i);return s="string"==typeof s?s.trim():s,"undefined"!=typeof s&&l&&(null!==(e=l[s])&&void 0!==e?e:l["*"])&&(u=p("tpl",null!==(n=l[s])&&void 0!==n?n:s===!0&&l[1]?l[1]:s===!1&&l[0]?l[0]:l["*"])),a.default.createElement("span",{className:d("MappingField",r)},u)},n.defaultProps={placeholder:"-",map:{"*":"通配值"}},n}(a.default.Component);n.MappingField=i;var l=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([r.Renderer({test:/(^|\/)(?:map|mapping)$/,name:"mapping"})],n)}(i);n.MappingFieldRenderer=l}); +;/*!src/renderers/Progress.tsx*/ +amis.define("f52f675",function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.ProgressFieldRenderer=s.ProgressField=void 0;var r=e("node_modules/tslib/tslib"),t=r.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),l=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(s,e),s.prototype.autoClassName=function(e){var s=this.props.map,r=Math.floor(e*s.length/100);return r=Math.max(0,Math.min(s.length-1,r)),s[r]},s.prototype.render=function(){var e=this.props,s=e.className,r=e.placeholder,a=e.progressClassName,l=e.progressBarClassName,n=(e.map,e.showLabel),o=e.classnames,d=this.props.value,i=t.default.createElement("span",{className:"text-muted"},r);return/^\d*\.?\d+$/.test(d)&&(d=parseFloat(d)),"number"==typeof d&&(i=[t.default.createElement("div",{key:"progress",className:o("progress",a)},t.default.createElement("div",{className:o("progress-bar",l||this.autoClassName(d)),title:d+"%",style:{width:d+"%"}})),n?t.default.createElement("div",{key:"value"},d,"%"):null]),t.default.createElement("span",{className:o("ProgressField",s)},i)},s.defaultProps={placeholder:"-",progressClassName:"progress-xs progress-striped active m-b-none",progressBarClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],showLabel:!0},s}(t.default.Component);s.ProgressField=l;var n=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(s,e),s=r.__decorate([a.Renderer({test:/(^|\/)progress$/,name:"progress"})],s)}(l);s.ProgressFieldRenderer=n}); +;/*!src/renderers/Status.tsx*/ +amis.define("da6cdad",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusFieldRenderer=t.StatusField=void 0;var a=e("node_modules/tslib/tslib"),s=a.__importDefault(e("node_modules/react/index")),l=e("0f9ebdf"),n=e("6a2dbb7"),u=e("b7bbd16"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.placeholder,l=e.map,i=e.labelMap,r=e.classnames,d=e.data,c=this.props.value,o=s.default.createElement("span",{className:"text-muted"},a),p="";if(void 0!==c&&""!==c&&l){"boolean"==typeof c?c=c?1:0:/^\d+$/.test(c)&&(c=parseInt(c,10)||0),p="StatusField--"+c;var f=l[c]||"",m="";f=f.replace(/\bsvg-([^\s|$]+)\b/g,function(e,t){return m=t,"icon"}),m?o=s.default.createElement(u.Icon,{icon:m,className:r("Status-icon icon",f),key:"icon"}):f&&(o=s.default.createElement("i",{className:r("Status-icon",f),key:"icon"})),i&&i[c]&&(o=[o,s.default.createElement("span",{className:r("StatusField-label"),key:"label"},n.filter(i[c],d))])}return s.default.createElement("span",{className:r("StatusField",p,t)},o)},t.defaultProps={placeholder:"-",map:{0:"svg-fail",1:"svg-success",success:"svg-success",pending:"rolling",fail:"svg-fail",queue:"svg-warning",schedule:"svg-schedule"},labelMap:{success:"成功",pending:"运行中",fail:"失败",queue:"排队中",schedule:"调度中"}},t}(s.default.Component);t.StatusField=i;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.Renderer({test:/(^|\/)status$/,name:"status"})],t)}(i);t.StatusFieldRenderer=r}); +;/*!src/renderers/Json.tsx*/ +amis.define("386af39",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.JSONFieldRenderer=a.JSONField=void 0;var t=e("node_modules/tslib/tslib"),n=t.__importDefault(e("node_modules/react/index")),s=e("0f9ebdf"),r=t.__importDefault(e("node_modules/react-json-tree/lib/index")),d=e("9a80175"),o={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f",tree:{border:0,padding:"0 0.625em 0.425em",marginTop:"-0.25em",marginBottom:"0",marginLeft:"0",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:"rgba(255, 255, 255, 0.4)",whiteSpace:"nowrap",display:"inline-block",width:"100%"}},i={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53",tree:{border:0,padding:"0 0.625em 0.425em",marginTop:"-0.25em",marginBottom:"0",marginLeft:"0",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:"#2D2D2D",whiteSpace:"nowrap",display:"inline-block",width:"100%"}},l={twilight:o,eighties:i},c=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.shouldExpandNode=function(e,t,n){var s=a.props.levelExpand;return s>n},a}return t.__extends(a,e),a.prototype.valueRenderer=function(e){var a=this.props.classnames;return"string"==typeof e&&/^\"?https?:\/\//.test(e)?n.default.createElement("a",{className:a("JsonField-nodeValue"),href:e.replace(/^\"(.*)\"$/,"$1"),target:"_blank"},e):n.default.createElement("span",{className:a("JsonField-nodeValue")},e)},a.prototype.render=function(){var e=this.props,a=e.className,t=e.value,s=e.jsonTheme,d=e.classnames,o=t;if("string"==typeof t)try{o=JSON.parse(t)}catch(i){o={error:i.message}}var c=l[s]?l[s]:l.twilight;return n.default.createElement("div",{className:d("JsonField",a)},n.default.createElement(r.default,{data:o,theme:c,shouldExpandNode:this.shouldExpandNode,valueRenderer:this.valueRenderer}))},a.defaultProps={placeholder:"-",levelExpand:1,jsonTheme:"twilight"},t.__decorate([d.autobind,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object]),t.__metadata("design:returntype",void 0)],a.prototype,"valueRenderer",null),a}(n.default.Component);a.JSONField=c;var b=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([s.Renderer({test:/(^|\/)json$/,name:"json"})],a)}(c);a.JSONFieldRenderer=b}); +;/*!src/renderers/Link.tsx*/ +amis.define("8f3f322",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkFieldRenderer=n.LinkField=void 0;var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),l=e("6a2dbb7"),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.body,a=e.href,i=e.classnames,s=e.blank,d=e.htmlTarget,u=e.data,o=e.render,f=e.translate,c=this.props.value,m=a?l.filter(a,u):"";return r.default.createElement("a",{href:m||c,target:d||(s?"_blank":"_self"),className:i("Link",n)},t?o("body",t):m||c||f("链接"))},n.defaultProps={className:"",blank:!1},n}(r.default.Component);n.LinkField=i;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([a.Renderer({test:/(^|\/)link$/,name:"link"})],n)}(i);n.LinkFieldRenderer=s}); +;/*!src/renderers/Switch.tsx*/ +amis.define("94e9d59",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SwitchFieldRenderer=a.SwitchField=void 0;var t=e("node_modules/tslib/tslib"),l=t.__importDefault(e("node_modules/react/index")),n=e("0f9ebdf"),d=t.__importDefault(e("node_modules/classnames/index")),i=t.__importDefault(e("aa2413a")),r=e("f2e345e"),s=function(e){function a(a){var t=e.call(this,a)||this;return t.handleChange=t.handleChange.bind(t),t}return t.__extends(a,e),a.prototype.handleChange=function(e){var a,t=this.props,l=t.onQuickChange,n=t.name,d=t.trueValue,i=t.falseValue,r=t.saveImmediately,s=t.readOnly,u=t.disabled;l&&!s&&!u&&l((a={},a[n]=e?d:i,a),r)},a.prototype.render=function(){var e=this.props,a=e.className,t=e.classPrefix,n=e.placeholder,s=e.trueValue,u=(e.falseValue,e.onQuickChange),o=e.option,c=e.disabled,h=e.name,f=e.data,m=this.props.value,p=l.default.createElement("span",{className:"text-muted"},n),_=!1;return void 0===m&&h&&(m=r.resolveVariable(h,f)),void 0!==m&&(_=!!o,p=l.default.createElement(i.default,{inline:!0,classPrefix:t,checked:m==s,onChange:this.handleChange,disabled:c||!u})),l.default.createElement("span",{className:d.default(t+"SwitchField",a)},p,_?o:null)},a.defaultProps={placeholder:"-",trueValue:!0,falseValue:!1,readOnly:!0,saveImmediately:!1},a}(l.default.Component);a.SwitchField=s;var u=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([n.Renderer({test:/(^|\/)switch$/,name:"switch"})],a)}(s);a.SwitchFieldRenderer=u}); +;/*!src/renderers/Wizard.tsx*/ +amis.define("29937cf",function(t,e){"use strict";function a(t,e,a,n){var i=!1;return i=t&&t.hasOwnProperty("jumpable")?t.jumpable:t&&t.jumpableOn?c.evalExpression(t.jumpableOn,p.createObject(n,{currentStep:a})):a>e+1}Object.defineProperty(e,"__esModule",{value:!0}),e.WizardRenderer=void 0;var n=t("node_modules/tslib/tslib"),i=n.__importDefault(t("node_modules/react/index")),o=t("919cbd9"),r=t("0f9ebdf"),s=t("57d76d7"),d=t("8f9f9e3"),c=t("6a2dbb7"),p=t("9a80175"),l=t("1caead1"),u=t("1953fc1"),f=t("node_modules/react-dom/index"),h=t("67d35e6"),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.affixDom=i.default.createRef(),e.footerDom=i.default.createRef(),e.initalValues={},e.state={currentStep:-1},e}n.__extends(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props,a=e.initApi,n=e.initFetch,i=e.initAsyncApi,o=e.initFinishedField,r=e.store,s=e.messages,d=s.fetchSuccess,c=s.fetchFailed,u=e.onInit;l.isEffectiveApi(a,r.data,n)?r.fetchInitData(a,r.data,{successMessage:d,errorMessage:c,onSuccess:function(){return l.isEffectiveApi(i,r.data)&&!r.data[o||"finished"]?p.until(function(){return r.checkRemote(i,r.data)},function(t){return t&&t[o||"finished"]},function(e){return t.asyncCancel=e}):void 0}}).then(function(e){u&&u(r.data);var a={currentStep:1};return e&&e.data&&("number"==typeof e.data.step||"string"==typeof e.data.step&&/^\d+$/.test(e.data.step))&&(a.currentStep=parseInt(e.data.step,10)),t.setState(a,function(){e&&e.data&&(e.data.submiting||e.data.submited)&&t.checkSubmit()}),e}):this.setState({currentStep:1},function(){return u&&u(r.data)});var m=f.findDOMNode(this),y=m?p.getScrollParent(m):null;y&&y!==document.body||(y=window),this.parentNode=y,y.addEventListener("scroll",this.affixDetect),this.unSensor=h.resizeSensor(m,this.affixDetect),this.affixDetect()},e.prototype.componentDidUpdate=function(t){var e=this.props,a=e.store,n=e.fetchSuccess,i=e.fetchFailed;l.isApiOutdated(t.initApi,e.initApi,t.data,e.data)&&a.fetchData(e.initApi,a.data,{successMessage:n,errorMessage:i})},e.prototype.componentWillUnmount=function(){this.asyncCancel&&this.asyncCancel();var t=this.parentNode;t&&t.removeEventListener("scroll",this.affixDetect),this.unSensor&&this.unSensor()},e.prototype.affixDetect=function(){if(this.props.affixFooter&&this.affixDom.current&&this.footerDom.current){var t=this.affixDom.current,e=this.footerDom.current,a=!1;if(e.offsetWidth&&(t.style.cssText="width: "+e.offsetWidth+"px;"),"always"===this.props.affixFooter)a=!0,e.classList.add("invisible2");else{var n=e.getBoundingClientRect(),i=window.innerHeight;a=n.top+n.height/2>i}a?t.classList.add("in"):t.classList.remove("in")}},e.prototype.gotoStep=function(t){var e=this.props.steps||[];t=Math.max(Math.min(e.length,t),1),this.setState({currentStep:t})},e.prototype.formRef=function(t){if(t){for(;t&&t.getWrappedInstance;)t=t.getWrappedInstance();this.form=t}else this.form=void 0},e.prototype.submitToTarget=function(){throw new Error("Please implements this!")},e.prototype.reloadTarget=function(){throw new Error("Please implements this!")},e.prototype.reload=function(t,e){var a=this;if(e)return this.receive(e);var n=this.props,i=n.initApi,o=n.initAsyncApi,r=n.initFinishedField,s=n.store,d=n.messages,c=d.fetchSuccess,u=d.fetchFailed;l.isEffectiveApi(i,s.data)&&1===this.state.currentStep&&s.fetchInitData(i,s.data,{successMessage:c,errorMessage:u,onSuccess:function(){return l.isEffectiveApi(o,s.data)&&!s.data[r||"finished"]?p.until(function(){return s.checkRemote(o,s.data)},function(t){return t&&t[r||"finished"]},function(t){return a.asyncCancel=t}):void 0}}).then(function(t){var e={currentStep:1};return t&&t.data&&("number"==typeof t.data.step||"string"==typeof t.data.step&&/^\d+$/.test(t.data.step))&&(e.currentStep=parseInt(t.data.step,10)),a.setState(e,function(){t&&t.data&&(t.data.submiting||t.data.submited)&&a.checkSubmit()}),t})},e.prototype.receive=function(t){var e=this.props.store;e.updateData(t),this.reload()},e.prototype.domRef=function(t){this.dom=t},e.prototype.getPopOverContainer=function(){return this.dom},e.prototype.checkSubmit=function(){var t,e=this,a=this.props,n=a.store,i=a.steps,o=a.asyncApi,r=a.finishedField,s=a.env,d=i[this.state.currentStep-1],c=d&&d.asyncApi||this.state.currentStep===i.length&&o;d&&l.isEffectiveApi(c,n.data)&&(n.markSaving(!0),n.updateData((t={},t[r||"finished"]=!1,t)),p.until(function(){return n.checkRemote(c,n.data)},function(t){return t&&t[r||"finished"]},function(t){return e.asyncCancel=t}).then(function(){n.markSaving(!1),e.gotoStep(e.state.currentStep+1)}).catch(function(t){s.notify("error",t.message),n.markSaving(!1)}))},e.prototype.handleAction=function(t,e,a,i,o){var r=this;void 0===i&&(i=!1);var s=this.props,d=s.onAction,l=s.store,u=s.env;if("next"===e.actionType||"submit"===e.type)this.form.doAction(n.__assign(n.__assign({},e),{actionType:"submit"}),a);else if("prev"===e.actionType)this.gotoStep(this.state.currentStep-1);else if("reset"===e.type)this.form.reset();else if("dialog"===e.actionType)l.openDialog(a);else{if("ajax"===e.actionType)return e.api?l.saveRemote(e.api,a,{successMessage:e.messages&&e.messages.success,errorMessage:e.messages&&e.messages.failed}).then(function(){return n.__awaiter(r,void 0,void 0,function(){var t;return n.__generator(this,function(a){switch(a.label){case 0:return this.form&&this.form.isValidated()&&this.form.validate(!0),e.feedback&&p.isVisible(e.feedback,l.data)?[4,this.openFeedback(e.feedback,l.data)]:[3,2];case 1:a.sent(),a.label=2;case 2:return t=e.redirect&&c.filter(e.redirect,l.data),t&&u.jumpTo(t,e),e.reload&&this.reloadTarget(e.reload,l.data),[2]}})})}).catch(function(){}):u.alert("当 actionType 为 ajax 时,请设置 api 属性");"reload"===e.actionType?e.target&&this.reloadTarget(e.target,a):d&&d(t,e,a,i,o||this.context)}},e.prototype.openFeedback=function(t,e){var a=this;return new Promise(function(n){var i=a.props.store;i.setCurrentAction({type:"button",actionType:"dialog",dialog:t}),i.openDialog(e,void 0,function(t){n(t)})})},e.prototype.handleChange=function(t){var e=this.props.store;e.updateData(t)},e.prototype.handleInit=function(t){var e=this.state.currentStep;this.initalValues[e]=this.initalValues[e]||t},e.prototype.handleReset=function(t){var e=this.props.store,a=this.initalValues[this.state.currentStep],n={};Object.keys(t).forEach(function(t){n[t]=a.hasOwnProperty(t)?a[t]:void 0}),e.updateData(n)},e.prototype.handleSubmit=function(t,e){var a,i,o=this,r=this.props,s=r.store,d=r.steps,u=r.api,f=r.asyncApi,h=r.finishedField,m=r.target,y=r.redirect,g=r.reload,v=r.env,_=r.onFinished,b=d[this.state.currentStep-1];if(s.updateData(t),this.state.currentStepr&&!(n[r+1]&&e.currentTimes.width||n.height>s.height)&&(i="Text--danger"),r.default.createElement("div",{className:"pull-in-xs"},r.default.createElement("div",{className:o("Hbox")},r.default.createElement("div",{className:o("Hbox-col")},r.default.createElement("div",{className:o("Wrapper Wrapper--xs")},r.default.createElement("img",{onLoad:this.onImageLoaded,className:"w-full",alt:"poster",src:u.filter(t,a,"| raw")}),r.default.createElement("p",{className:"m-t-xs"},"封面"," ",r.default.createElement("span",{className:i},s.width||"-"," x ",s.height||"-"),i?r.default.createElement("span",null," ","封面尺寸小于"," ",r.default.createElement("span",{className:o("Text--danger")},n.width||"-"," x"," ",n.height||"-")):null))),r.default.createElement("div",{className:o("Hbox-col")},r.default.createElement("div",{className:o("Wrapper Wrapper--xs")},this.renderPlayer()))))},t.prototype.render=function(){var e=this.props,t=e.splitPoster,a=e.className,n=e.classPrefix;return r.default.createElement("div",{className:s.default(n+"Video",a),onClick:this.onClick},this.renderFrames(),t?this.renderPosterAndPlayer():this.renderPlayer())},t.defaultProps={columnsCount:8,isLive:!1,jumpFrame:!0,aspectRatio:"auto"},t}(r.default.Component);t.default=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)video$/,name:"video"})],t)}(f);t.VideoRenderer=m}); +;/*!src/renderers/Audio.tsx*/ +amis.define("211dcc3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AudioRenderer=t.Audio=void 0;var a=e("node_modules/tslib/tslib"),o=a.__importDefault(e("node_modules/react/index")),n=a.__importDefault(e("node_modules/lodash/upperFirst")),i=e("0f9ebdf"),s=e("9a80175"),r=e("b7bbd16"),d=e("f2e345e"),u=e("6a2dbb7"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={src:t.props.value||(t.props.src?u.filter(t.props.src,t.props.data):"")||d.resolveVariable(t.props.name,t.props.data)||"",isReady:!1,muted:!1,playing:!1,played:0,seeking:!1,volume:.8,prevVolume:.8,loaded:0,playbackRate:1,showHandlePlaybackRate:!1,showHandleVolume:!1},t}return a.__extends(t,e),t.prototype.componentWillUnmount=function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationTimeout)},t.prototype.componentDidMount=function(){var e=this.props.autoPlay,t=e?!0:!1;this.setState({playing:t},this.progress)},t.prototype.componentWillReceiveProps=function(e){var t=this,a=this.props;(a.value!==e.value||u.filter(a.src,a.data)!==u.filter(e.src,e.data))&&this.setState({src:e.value||u.filter(e.src,e.data),playing:!1},function(){t.audio.load(),t.progress()})},t.prototype.progress=function(){if(clearTimeout(this.progressTimeout),this.state.src&&this.audio){var e=this.audio.currentTime||0,t=this.audio.duration,a=e/t,o=this.state.playing;o=1!=a&&o?!0:!1,this.setState({played:a,playing:o}),this.progressTimeout=setTimeout(this.progress,this.props.progressInterval/this.state.playbackRate)}},t.prototype.audioRef=function(e){this.audio=e},t.prototype.load=function(){this.setState({isReady:!0})},t.prototype.handlePlaybackRate=function(e){this.audio.playbackRate=e,this.setState({playbackRate:e,showHandlePlaybackRate:!1})},t.prototype.handleMute=function(){if(this.state.src){var e=this.state,t=e.muted,a=e.prevVolume,o=t?a:0;this.audio.muted=!t,this.setState({muted:!t,volume:o})}},t.prototype.handlePlaying=function(){if(this.state.src){var e=this.state.playing;e?this.audio.pause():this.audio.play(),this.setState({playing:!e})}},t.prototype.getCurrentTime=function(){if(!this.audio||!this.state.src||!this.state.isReady)return"0:00";var e=this.audio.duration,t=this.state.played;return this.formatTime(e*(t||0))},t.prototype.getDuration=function(){if(!this.audio||!this.state.src)return"0:00";if(!this.state.isReady)return this.onDurationCheck(),"0:00";var e=this.audio,t=e.duration,a=e.seekable;return 1/0===t&&a.length>0?a.end(a.length-1):this.formatTime(t)},t.prototype.onDurationCheck=function(){clearTimeout(this.durationTimeout);var e=this.audio&&this.audio.duration;e||(this.audio.load(),this.durationTimeout=setTimeout(this.onDurationCheck,500))},t.prototype.onSeekChange=function(e){if(this.state.src){var t=e.target.value;this.setState({played:t})}},t.prototype.onSeekMouseDown=function(){this.setState({seeking:!0})},t.prototype.onSeekMouseUp=function(e){if(this.state.seeking){var t=e.target.value,a=this.audio.duration;this.audio.currentTime=a*t;var o=this.props.loop,n=this.state.playing;n=1>t||o?n:!1,this.setState({playing:n,seeking:!1})}},t.prototype.setVolume=function(e){if(this.state.src){var t=e.target.value;this.audio.volume=t,this.setState({volume:t,prevVolume:t})}},t.prototype.formatTime=function(e){var t=new Date(1e3*e),a=t.getUTCHours(),o=t.getUTCMinutes(),n=this.pad(t.getUTCSeconds());return a?a+":"+this.pad(o)+":"+n:o+":"+n},t.prototype.pad=function(e){return("0"+e).slice(-2)},t.prototype.toggleHandlePlaybackRate=function(){this.state.src&&this.setState({showHandlePlaybackRate:!this.state.showHandlePlaybackRate})},t.prototype.toggleHandleVolume=function(e){this.state.src&&this.setState({showHandleVolume:e})},t.prototype.renderRates=function(){var e=this,t=this.props,a=t.rates,n=t.classnames,i=this.state,s=i.showHandlePlaybackRate,r=i.playbackRate;return a&&a.length?s?o.default.createElement("div",{className:n("Audio-rateControl")},a.map(function(t,a){return o.default.createElement("div",{key:a,className:n("Audio-rateControlItem"),onClick:function(){return e.handlePlaybackRate(t)}},"x",t.toFixed(1))})):o.default.createElement("div",{className:n("Audio-rates"),onClick:this.toggleHandlePlaybackRate},"x",r.toFixed(1)):null},t.prototype.renderPlay=function(){var e=this.props.classnames,t=this.state.playing;return o.default.createElement("div",{className:e("Audio-play"),onClick:this.handlePlaying},t?o.default.createElement(r.Icon,{icon:"pause",className:"icon"}):o.default.createElement(r.Icon,{icon:"play",className:"icon"}))},t.prototype.renderTime=function(){var e=this.props.classnames;return o.default.createElement("div",{className:e("Audio-times")},this.getCurrentTime()," / ",this.getDuration())},t.prototype.renderProcess=function(){var e=this.props.classnames,t=this.state.played;return o.default.createElement("div",{className:e("Audio-process")},o.default.createElement("input",{type:"range",min:0,max:1,step:"any",value:t||0,onMouseDown:this.onSeekMouseDown,onChange:this.onSeekChange,onMouseUp:this.onSeekMouseUp}))},t.prototype.renderVolume=function(){var e=this,t=this.props.classnames,a=this.state,n=a.volume,i=a.showHandleVolume;return i?o.default.createElement("div",{className:t("Audio-volumeControl"),onMouseLeave:function(){return e.toggleHandleVolume(!1)}},o.default.createElement("div",{className:t("Audio-volumeControlIcon"),onClick:this.handleMute},n>0?o.default.createElement(r.Icon,{icon:"volume",className:"icon"}):o.default.createElement(r.Icon,{icon:"mute",className:"icon"})),o.default.createElement("input",{type:"range",min:0,max:1,step:"any",value:n,onChange:this.setVolume})):o.default.createElement("div",{className:t("Audio-volume"),onMouseEnter:function(){return e.toggleHandleVolume(!0)}},n>0?o.default.createElement(r.Icon,{icon:"volume",className:"icon"}):o.default.createElement(r.Icon,{icon:"mute",className:"icon"}))},t.prototype.render=function(){var e=this,t=this.props,a=t.className,i=t.inline,s=t.autoPlay,r=t.loop,d=t.controls,u=t.classnames,l=this.state,p=l.muted,c=l.src;return o.default.createElement("div",{className:u("Audio",a,i?"Audio--inline":"")},o.default.createElement("audio",{className:u("Audio-original"),ref:this.audioRef,onCanPlay:this.load,autoPlay:s,controls:!0,muted:p,loop:r},o.default.createElement("source",{src:c})),o.default.createElement("div",{className:u("Audio-controls")},d&&d.map(function(t,a){t="render"+n.default(t);var i=t;return o.default.createElement(o.default.Fragment,{key:a},e[i]())})))},t.defaultProps={inline:!0,autoPlay:!1,playbackRate:1,loop:!1,rates:[],progressInterval:1e3,controls:["rates","play","time","process","volume"]},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"progress",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"audioRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"load",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePlaybackRate",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMute",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePlaying",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getCurrentTime",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getDuration",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"onDurationCheck",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onSeekChange",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"onSeekMouseDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"onSeekMouseUp",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"setVolume",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],t.prototype,"formatTime",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],t.prototype,"pad",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleHandlePlaybackRate",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"toggleHandleVolume",null),t}(o.default.Component);t.Audio=l;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)audio/,name:"audio"})],t)}(l);t.AudioRenderer=p}); +;/*!src/renderers/Nav.tsx*/ +amis.define("e6d92e6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationRenderer=t.Navigation=void 0;var n=e("node_modules/tslib/tslib"),i=n.__importDefault(e("node_modules/react/index")),a=e("0f9ebdf"),r=n.__importDefault(e("01e2bb4")),s=e("6a2dbb7"),o=e("9a80175"),l=e("f2e345e"),c=e("1caead1"),u=e("919cbd9"),d=e("256b65d"),p=e("b7bbd16"),f=function(e){function t(t){var n=e.call(this,t)||this;return n.mounted=!0,n.renderItem=n.renderItem.bind(n),n.state={links:n.syncLinks(t,t.source&&"string"==typeof t.source&&l.isPureVariable(t.source)&&l.resolveVariable(t.source,t.data)||t.links)},n}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.source;e&&!l.isPureVariable(e)&&this.reload()},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(e.source&&l.isPureVariable(e.source))if(e.source!==t.source)this.setState({links:this.syncLinks(e)});else{var n=l.resolveVariable(e.source,e.data),i=l.resolveVariable(t.source,t.data);n!==i&&this.setState({links:this.syncLinks(e,n)})}else t.links!==e.links?this.setState({links:this.syncLinks(e)}):e.location&&t.location!==e.location&&this.setState({links:this.syncLinks(e,this.state.links,!0)})},t.prototype.componentDidUpdate=function(e){var t=this.props;t.source&&!l.isPureVariable(t.source)&&c.isApiOutdated(e.source,t.source,e.data,t.data)&&this.reload()},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.reload=function(e,t,n){var i=this;if(t)return this.receive(t);var a=this.props,r=a.data,l=a.env,u=a.source,d=a.translate,p=n?o.createObject(r,n):r;c.isEffectiveApi(u,r)&&l.fetcher(u,p).then(function(e){if(i.mounted)if(e.ok){var t=Array.isArray(e.data)?e.data:e.data.links||e.data.options||e.data.items||e.data.rows;if(!Array.isArray(t))throw new Error("\bpayload.data.options is not array.");i.setState({links:i.syncLinks(i.props,t)},function(){e.data&&e.data.value&&!o.someTree(i.state.links,function(e){return e.active})&&l.jumpTo(s.filter(e.data.value,r))})}else i.setState({error:e.msg||d("获取链接错误")})}).catch(function(e){return i.mounted&&i.setState({error:e.message})})},t.prototype.receive=function(e){{var t=this.props;t.store,t.initApi}this.reload(void 0,void 0,e)},t.prototype.syncLinks=function(e,t,i){void 0===t&&(t=e.links);var a=e.data,l=e.env;return Array.isArray(t)&&t.length?o.mapTree(t,function(e){return n.__assign(n.__assign(n.__assign({},e),r.default(e,a)),{active:!i&&e.active||(e.activeOn?s.evalExpression(e.activeOn,a):!!(e.hasOwnProperty("to")&&l&&l.isCurrentUrl(s.filter(e.to,a)))),unfolded:e.unfolded||e.children&&e.children.some(function(e){return!!e.active})})},1,!0):[]},t.prototype.handleClick=function(e){var t=this.props,n=t.env,i=t.data,a=t.onSelect;if(!a||a(e)!==!1)return e.to?void(n&&n.jumpTo(s.filter(e.to,i),e)):void(e.children&&e.children.length&&this.toggleLink(e))},t.prototype.toggleLink=function(e){this.setState({links:o.mapTree(this.state.links,function(t){return e===t?n.__assign(n.__assign({},t),{unfolded:!t.unfolded}):t})})},t.prototype.renderItem=function(e,t){var n=this;if(e.hidden===!0||e.visible===!1)return null;var a=!!e.active,r=this.props,s=r.disabled,o=r.togglerClassName,l=r.classnames;return i.default.createElement("li",{key:t,className:l("Nav-item",e.className,{"is-disabled":s||e.disabled,"is-active":a,"is-unfolded":e.unfolded})},i.default.createElement("a",{onClick:this.handleClick.bind(this,e)},e.icon?i.default.createElement("i",{className:l("Nav-itemIcon",e.icon)}):null,e.label),e.children&&e.children.length?i.default.createElement("span",{onClick:function(){return n.toggleLink(e)},className:l("Nav-itemToggler",o)},i.default.createElement(p.Icon,{icon:"caret",className:"icon"})):null,e.children&&e.children.length?i.default.createElement("ul",{className:l("Nav-subItems")},e.children.map(function(e,t){return n.renderItem(e,t)})):null)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.stacked,a=e.classnames,r=this.state.links;return i.default.createElement("ul",{className:a("Nav",t,n?"Nav--stacked":"Nav--tabs")},r.map(this.renderItem))},t.defaultProps={},t}(i.default.Component);t.Navigation=f,t.default=d.themeable(f);var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.contextType=u.ScopedContext,t=n.__decorate([a.Renderer({test:/(^|\/)(?:nav|navigation)$/,name:"nav"})],t)}(f);t.NavigationRenderer=m}); +;/*!src/renderers/Tasks.tsx*/ +amis.define("59d3d63",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TaskRenderer=void 0;var a=t("node_modules/tslib/tslib"),s=a.__importDefault(t("node_modules/react/index")),n=t("0f9ebdf"),i=a.__importDefault(t("node_modules/classnames/index")),r=a.__importDefault(t("node_modules/react-addons-update/index")),l=t("1caead1"),o=t("919cbd9"),u=a.__importDefault(t("acad559")),d=function(t){function e(e){var a=t.call(this,e)||this;return a.state={items:e.items?e.items.concat():[]},a.handleLoaded=a.handleLoaded.bind(a),a.tick=a.tick.bind(a),a}return a.__extends(e,t),e.prototype.componentDidMount=function(){this.tick(!!this.props.checkApi)},e.prototype.componentWillReceiveProps=function(t){var e=this.props;e.items!==t.items&&this.setState({items:t.items?t.items.concat():[]})},e.prototype.componentDidUpdate=function(t){var e=this.props;l.isApiOutdated(t.checkApi,e.checkApi,t.data,e.data)&&this.tick(!0)},e.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},e.prototype.reload=function(){this.tick(!0)},e.prototype.tick=function(t){var e=this;void 0===t&&(t=!1);var a=this.props,s=a.loadingStatusCode,n=a.data,i=a.interval,r=a.checkApi,o=a.env,u=this.state.items;return clearTimeout(this.timer),t||u.some(function(t){return t.status===s})?i&&!l.isEffectiveApi(r)?alert("checkApi 没有设置, 不能及时获取任务状态"):void(l.isEffectiveApi(r,n)&&o&&o.fetcher(r,n).then(this.handleLoaded).catch(function(t){return e.setState({error:t})})):void 0},e.prototype.handleLoaded=function(t){if(!Array.isArray(t.data))return alert("返回格式不正确, 期望 response.data 为数组, 包含每个 task 的状态信息");this.setState({items:t.data});var e=this.props.interval;clearTimeout(this.timer),this.timer=setTimeout(this.tick,e)},e.prototype.submitTask=function(t,e,s){var n=this;void 0===s&&(s=!1);var i=this.props,o=i.submitApi,u=i.reSubmitApi,d=i.loadingStatusCode,c=i.errorStatusCode,m=i.data,p=i.env;if(!s&&!l.isEffectiveApi(o))return alert("submitApi 没有配置");if(s&&!l.isEffectiveApi(u))return alert("reSubmitApi 没有配置");this.setState(r.default(this.state,{items:{$splice:[[e,1,a.__assign(a.__assign({},t),{status:d})]]}}));var f=s?u:o;l.isEffectiveApi(f,m)&&p&&p.fetcher(f,a.__assign(a.__assign({},m),t)).then(function(t){if(t&&t.data)if(Array.isArray(t.data))n.handleLoaded(t);else{var e=(f&&f.replaceData,n.state.items.map(function(e){return e.key===t.data.key?a.__assign(a.__assign({},f.replaceData?{}:e),t.data):e}));n.handleLoaded(a.__assign(a.__assign({},t),{data:e}))}else clearTimeout(n.timer),n.timer=setTimeout(n.tick,4)}).catch(function(s){return n.setState(r.default(n.state,{items:{$splice:[[e,1,a.__assign(a.__assign({},t),{status:c,remark:s.message||s})]]}}))})},e.prototype.render=function(){var t=this,e=this.props,a=e.className,n=e.tableClassName,r=e.taskNameLabel,l=e.operationLabel,o=e.statusLabel,d=e.remarkLabel,c=e.btnText,m=e.retryBtnText,p=e.btnClassName,f=e.retryBtnClassName,h=e.statusLabelMap,b=e.statusTextMap,_=e.readyStatusCode,k=e.loadingStatusCode,v=e.canRetryStatusCode,y=e.render,E=this.state.items,C=this.state.error;return s.default.createElement("div",{className:a},s.default.createElement("table",{className:n},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,r),s.default.createElement("th",null,l),s.default.createElement("th",null,o),s.default.createElement("th",null,d))),s.default.createElement("tbody",null,C?s.default.createElement("tr",null,s.default.createElement("td",{colSpan:4},s.default.createElement("div",{className:"text-danger"},C))):E.map(function(e,a){return s.default.createElement("tr",{key:a},s.default.createElement("td",null,e.label),s.default.createElement("td",null,e.status==k?s.default.createElement(u.default,{show:!0,icon:"reload",spinnerClassName:i.default("Task-spinner")}):e.status==v?s.default.createElement("a",{onClick:function(){return t.submitTask(e,a,!0)},className:i.default("btn",f||p)},m||c):s.default.createElement("a",{onClick:function(){return t.submitTask(e,a)},className:i.default("btn",p,{disabled:e.status!==_})},c)),s.default.createElement("td",null,s.default.createElement("span",{className:i.default("label",h&&h[e.status||0])},b&&b[e.status||0])),s.default.createElement("td",null,e.remark?y(a+"/remark",e.remark):null))}))))},e.defaultProps={className:"b-a bg-white table-responsive",tableClassName:"table table-striped m-b-none",taskNameLabel:"任务名称",operationLabel:"操作",statusLabel:"状态",remarkLabel:"备注说明",btnText:"上线",retryBtnText:"重试",btnClassName:"btn-sm btn-default",retryBtnClassName:"btn-sm btn-danger",statusLabelMap:["label-warning","label-info","label-info","label-danger","label-success","label-danger"],statusTextMap:["未开始","就绪","进行中","出错","已完成","出错"],initialStatusCode:0,readyStatusCode:1,loadingStatusCode:2,errorStatusCode:3,finishStatusCode:4,canRetryStatusCode:5,interval:3e3},e}(s.default.Component);e.default=d;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this);var e=this.context;e.unRegisterComponent(this)},e.contextType=o.ScopedContext,e=a.__decorate([n.Renderer({test:/(^|\/)tasks$/,name:"tasks"})],e)}(d);e.TaskRenderer=c}); +;/*!src/renderers/Drawer.tsx*/ +amis.define("a1b9b52",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerRenderer=void 0;var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),r=e("919cbd9"),a=e("0f9ebdf"),i=o.__importDefault(e("01a937e")),s=o.__importDefault(e("node_modules/lodash/findLast")),l=e("9a80175"),d=e("node_modules/mobx/lib/index"),p=e("node_modules/react-dom/index"),c=e("4550477"),h=e("6a2dbb7"),u=e("1953fc1"),f=function(e){function t(t){var o=e.call(this,t)||this;return o.$$id=l.guid(),o.state={resizeCoord:0},o.handleSelfClose=o.handleSelfClose.bind(o),o.handleAction=o.handleAction.bind(o),o.handleDrawerConfirm=o.handleDrawerConfirm.bind(o),o.handleDrawerClose=o.handleDrawerClose.bind(o),o.handleDialogConfirm=o.handleDialogConfirm.bind(o),o.handleDialogClose=o.handleDialogClose.bind(o),o.handleChildFinished=o.handleChildFinished.bind(o),o.resizeMouseDown=o.resizeMouseDown.bind(o),o.bindResize=o.bindResize.bind(o),o.removeResize=o.removeResize.bind(o),o.handleExisted=o.handleExisted.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleFormChange=o.handleFormChange.bind(o),o.handleFormSaved=o.handleFormSaved.bind(o),o}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.store;this.reaction=d.reaction(function(){return""+t.loading+t.error},function(){return e.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.confirm,n=e.translate;if("undefined"!=typeof t)return t;var r=[];return r.push({type:"button",actionType:"close",label:n("取消")}),o&&r.push({type:"button",actionType:"confirm",label:n("确认"),primary:!0}),r},t.prototype.handleSelfClose=function(){var e=this.props,t=e.onClose,o=e.store;o.dialogOpen===!1&&o.drawerOpen===!1&&(o.updateMessage(),t())},t.prototype.handleAction=function(e,t,o){var n=this.props,r=n.onClose,a=n.onAction;"close"===t.actionType||"cancel"===t.actionType?r():a&&a(e,t,o)},t.prototype.handleDrawerConfirm=function(e,t){for(var n=[],r=2;r2953?o.default.createElement("span",{className:"text-danger"},"二维码值过长,请设置2953个字符以下的文本"):o.default.createElement(s.default,{className:t,value:_,renderAs:"svg",size:n,bgColor:a,fgColor:u,level:i||"L"}):o.default.createElement("span",{className:p+"QrCode--placeholder"},c))},r.defaultProps={codeSize:128,qrcodeClassName:"",backgroundColor:"#fff",foregroundColor:"#000",level:"L",placeholder:"-"},r}(o.default.Component);r.default=u;var c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([n.Renderer({test:/(^|\/)qr\-?code$/,name:"qrcode"})],r)}(u);r.QRCodeRenderer=c;var i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([a.FormItem({type:"qr-code",sizeMutable:!1})],r)}(u);r.QRCodeControlRenderer=i}); +;/*!src/renderers/Icon.tsx*/ +amis.define("b81abcd",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TplRenderer=n.Icon=void 0;var t=e("node_modules/tslib/tslib"),r=t.__importDefault(e("node_modules/react/index")),o=e("0f9ebdf"),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.icon,t=e.vendor,o=e.classnames,i=e.className;return r.default.createElement("i",{className:o("iconfont"===t?"iconfont icon-"+n:t+" "+t+"-"+n,i)})},n.defaultProps={icon:"",vendor:"fa"},n}(r.default.Component);n.Icon=i;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([o.Renderer({test:/(^|\/)icon$/,name:"icon"})],n)}(i);n.TplRenderer=s}); +;/*!src/renderers/Carousel.tsx*/ +amis.define("f39bdac",function(e,t){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.CarouselRenderer=t.Carousel=void 0;var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),o=n.__importStar(e("node_modules/react-transition-group/Transition")),i=e("0f9ebdf"),s=e("f2e345e"),d=e("9a80175"),l=e("b7bbd16"),u=(a={},a[o.ENTERING]="in",a[o.ENTERED]="in",a[o.EXITING]="out",a),p={type:"tpl",tpl:'\n <% if (data.hasOwnProperty(\'image\')) { %>\n
\n <% if (data.hasOwnProperty(\'title\')) { %>\n
<%= data.title %>
\n <% } if (data.hasOwnProperty(\'description\')) { %> \n
<%= data.description %>
\n <% } %>\n <% } else if (data.hasOwnProperty(\'html\')) { %>\n <%= data.html %>"\n <% } else if (data.hasOwnProperty(\'image\')) { %>\n
\n <% if (data.title) { %>\n
<%= data.title %>
\n <% } if (data.description) { %> \n
<%= data.description %>
\n <% } %>\n <% } else if (data.hasOwnProperty(\'html\')) { %>\n <%= data.html %>\n <% } else if (data.hasOwnProperty(\'item\')) { %>\n <%= data.item %>\n <% } else { %>\n <%= \'未找到渲染数据\' %>\n <% } %>\n '},c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrapperRef=r.default.createRef(),t.state={current:0,options:t.props.value||t.props.options||s.resolveVariable(t.props.name,t.props.data)||[],showArrows:!1,nextAnimation:""},t}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.state.options,a=e.value||e.options||s.resolveVariable(e.name,e.data)||[];d.isArrayChildrenModified(t,a)&&this.setState({options:a})},t.prototype.componentDidMount=function(){this.prepareAutoSlide()},t.prototype.componentWillUnmount=function(){this.clearAutoTimeout()},t.prototype.prepareAutoSlide=function(){this.state.options.length<2||(this.clearAutoTimeout(),this.props.auto&&(this.intervalTimeout=setTimeout(this.autoSlide,this.props.interval)))},t.prototype.autoSlide=function(e){this.clearAutoTimeout();var t=this.props.animation,a=this.state.nextAnimation;switch(e){case"prev":a="slide"===t?"slideRight":"",this.transitFramesTowards("right",a);break;case"next":default:a="",this.transitFramesTowards("left",a)}this.durationTimeout=setTimeout(this.prepareAutoSlide,this.props.duration)},t.prototype.transitFramesTowards=function(e,t){var a=this.state.current;switch(e){case"left":a=this.getFrameId("next");break;case"right":a=this.getFrameId("prev")}this.setState({current:a,nextAnimation:t})},t.prototype.getFrameId=function(e){var t=this.state,a=t.options,n=t.current,r=a.length;switch(e){case"prev":return(n-1+r)%r;case"next":return(n+1)%r;default:return n}},t.prototype.next=function(){this.autoSlide("next")},t.prototype.prev=function(){this.autoSlide("prev")},t.prototype.clearAutoTimeout=function(){clearTimeout(this.intervalTimeout),clearTimeout(this.durationTimeout)},t.prototype.renderDots=function(){var e=this.props.classnames,t=this.state,a=t.current,n=t.options;return r.default.createElement("div",{className:e("Carousel-dotsControl"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Array.from({length:n.length}).map(function(t,n){return r.default.createElement("span",{key:n,className:e("Carousel-dot",a===n?"is-active":"")})}))},t.prototype.renderArrows=function(){var e=this.props.classnames;return r.default.createElement("div",{className:e("Carousel-arrowsControl"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r.default.createElement("div",{className:e("Carousel-leftArrow"),onClick:this.prev},r.default.createElement(l.Icon,{icon:"left-arrow",className:"icon"})),r.default.createElement("div",{className:e("Carousel-rightArrow"),onClick:this.next},r.default.createElement(l.Icon,{icon:"right-arrow",className:"icon"})))},t.prototype.handleMouseEnter=function(){this.setState({showArrows:!0}),this.clearAutoTimeout()},t.prototype.handleMouseLeave=function(){this.setState({showArrows:!1}),this.prepareAutoSlide()},t.prototype.render=function(){var e=this,t=this.props,a=t.render,n=t.className,i=t.classnames,s=t.itemSchema,l=t.animation,c=t.width,m=t.height,h=t.controls,_=t.controlsTheme,f=t.placeholder,y=t.data,v=t.name,g=this.state,w=g.options,E=g.showArrows,b=g.current,A=g.nextAnimation,C=null,T={};c?T.width=c+"px":"",m?T.height=m+"px":"";var N=[h.indexOf("dots")>-1,h.indexOf("arrows")>-1],S=N[0],x=N[1],M=A||l;return Array.isArray(w)&&w.length&&(C=r.default.createElement("div",{ref:this.wrapperRef,className:i("Carousel-container"),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},w.map(function(t,n){return r.default.createElement(o.default,{mountOnEnter:!0,unmountOnExit:!0,"in":n===b,timeout:500,key:n},function(n){var l;return n===o.ENTERING&&e.wrapperRef.current&&e.wrapperRef.current.childNodes.forEach(function(e){return e.offsetHeight}),r.default.createElement("div",{className:i("Carousel-item",M,u[n])},a(b+"/body",s?s:p,{data:d.createObject(y,d.isObject(t)?t:(l={item:t},l[v]=t,l))}))})}),S?this.renderDots():null,x&&E?this.renderArrows():null)),r.default.createElement("div",{className:i("Carousel Carousel--"+_,n),style:T},C?C:f)},t.defaultProps={auto:!0,interval:5e3,duration:500,controlsTheme:"light",animation:"fade",controls:["dots","arrows"],placeholder:"-"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"prepareAutoSlide",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"autoSlide",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],t.prototype,"transitFramesTowards",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"getFrameId",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"next",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"prev",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"clearAutoTimeout",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),t}(r.default.Component);t.Carousel=c;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)carousel/,name:"carousel"})],t)}(c);t.CarouselRenderer=m}); +;/*!src/compat.ts*/ +amis.define("ae4b35c",function(e,r){"use strict";function n(e){var r={},t=!1;return r.controls=Array.isArray(e.controls)?e.controls.concat():[],r.controls=r.controls.map(function(e){if(Array.isArray(e)){var r=n({type:"group",controls:e});return r!==e&&(t=!0),r}return e}),e.fieldSet&&(Array.isArray(e.fieldSet)?e.fieldSet:[e.fieldSet]).forEach(function(s){t=!0,r.controls.push(a.__assign(a.__assign({},n(s)),{type:"fieldSet",collapsable:e.collapsable}))}),e.tabs&&(t=!0)&&r.controls.push({type:"tabs",tabs:e.tabs.map(function(e){return n(e)})}),t&&(e=a.__assign(a.__assign({},e),r),delete e.fieldSet,delete e.tabs),e}function t(e){var r=!1,n=e.map(function(e){return Array.isArray(e)?(r=!0,t(e)):e});return r||(n=e),{type:"hbox",columns:n}}Object.defineProperty(r,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("0f9ebdf"),o=e("5ade3b1"),i=e("635e59b"),l=e("760e4be"),c=e("3abf50d"),d=e("8ee3b98"),u=e("20f7ce6"),f=e("aa22e57"),m=e("9a80175"),b=e("40fc403");s.addSchemaFilter(function(e,r){return r.component!==o.CheckboxControlRenderer?e:(e.label&&"undefined"==typeof e.option&&(e=a.__assign({},e),e.option=e.label,delete e.label),e)}),s.addSchemaFilter(function(e,r){if(r.component!==i.FormRenderer)return e;if(e.fieldSet||e.tabs)e=n(e);else if(Array.isArray(e.controls)){var t=!1,s=e.controls.map(function(e){if(Array.isArray(e)){var r=n({type:"group",controls:e});return r!==e&&(t=!0),r}return e});t&&(e=a.__assign(a.__assign({},e),{controls:s}))}return e}),s.addSchemaFilter(function(e,r){if(r.component!==l.FieldSetRenderer)return e;if(Array.isArray(e.controls)){var t=!1,s=e.controls.map(function(e){if(Array.isArray(e)){var r=n({type:"group",controls:e});return r!==e&&(t=!0),r}return e});t&&(e=a.__assign(a.__assign({},e),{controls:s}))}return e}),s.addSchemaFilter(function(e,r){if(r.component!==c.TabsRenderer)return e;if(Array.isArray(e.tabs)){var t=!1,s=e.tabs.map(function(e){var r=!1,s=(e.controls||[]).map(function(e){if(Array.isArray(e)){var t=n({type:"group",controls:e});return t!==e&&(r=!0),t}return e});return r&&(t=!0,e=a.__assign(a.__assign({},e),{controls:s})),e});t&&(e=a.__assign(a.__assign({},e),{tabs:s}))}return e}),s.addSchemaFilter(function(e,r){if(r.component!==d.CardRenderer&&r.component!==u.ListItemRenderer)return e;if(Array.isArray(e.body)){var n=!1,s=e.body.map(function(e){return Array.isArray(e)?(n=!0,t(e)):e});n&&(e=a.__assign(a.__assign({},e),{body:s}))}return e}),s.addSchemaFilter(function(e,r){return r.component!==f.ButtonGroupControlRenderer?e:((e.btnClassName||e.btnActiveClassName)&&(e=a.__assign(a.__assign({},e),{btnLevel:m.getLevelFromClassName(e.btnClassName),btnActiveLevel:m.getLevelFromClassName(e.btnActiveClassName)}),delete e.btnClassName,delete e.btnActiveClassName),e)}),s.addSchemaFilter(function(e,r){return r.component!==l.FieldSetRenderer?e:(e.className&&!e.size&&/\bfieldset(?:\-(xs|sm|md|lg))?\b/.test(e.className)&&(e=a.__assign(a.__assign({},e),{size:RegExp.$1||"base",className:e.className.replace(/\bfieldset(?:\-(xs|sm|md|lg))?\b/,"")}),delete e.btnClassName,delete e.btnActiveClassName),e)}),s.addSchemaFilter(function(e,r){return r.component!==b.ServiceRenderer?e:(e.body&&e.body.controls&&(e=a.__assign(a.__assign({},e),{controls:e.body.controls}),delete e.body),e)})}); +;/*!src/themes/default.ts*/ +amis.define("bbacc46",function(s,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.classnames=e.classPrefix=void 0;var a=s("256b65d");e.classPrefix="a-",e.classnames=a.makeClassnames(e.classPrefix),a.theme("default",{classPrefix:e.classPrefix,classnames:e.classnames})}); +;/*!src/themes/cxd.ts*/ +amis.define("6149e0d",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("256b65d");o.theme("cxd",{classPrefix:"cxd-",components:{toast:{closeButton:!0}},renderers:{form:{horizontal:{leftFixed:!0}},pagination:{maxButtons:9,showPageInput:!1},fieldset:{collapsable:!1},remark:{icon:"iconfont icon-warning-mark",placement:"right"},tabs:{mode:"line"},"tabs-control":{mode:"line"},"range-control":{showInput:!0,clearable:!0}}})}); +;/*!src/themes/dark.ts*/ +amis.define("566aeed",function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.classnames=s.classPrefix=void 0;var a=e("256b65d");s.classPrefix="dark-",s.classnames=a.makeClassnames(s.classPrefix),a.theme("dark",{classPrefix:s.classPrefix,classnames:s.classnames,renderers:{json:{jsonTheme:"eighties"},"editor-control":{editorTheme:"vs-dark"}}})}); +;/*!src/index.tsx*/ +amis.define("d019970",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.makeTranslator=r.registerLocale=r.setDefaultLocale=r.getDefaultLocale=r.classnames=r.getClassPrefix=r.classPrefix=r.getTheme=r.theme=r.setDefaultTheme=r.validateObject=r.validate=r.ScopedContext=r.Scoped=r.registerIcon=r.Icon=r.setIconVendor=r.resolveVariableAndFilter=r.resolveVariable=r.relativeValueRe=r.filterDate=r.filterSchema=r.resolveRenderer=r.getRendererByName=r.normalizeOptions=r.str2rules=r.addRule=r.setCustomEvalExpression=r.setCustomEvalJs=r.evalJS=r.evalExpression=r.reigsterTplEnginer=r.registerFilter=r.resizeSensor=r.utils=r.filter=r.buildApi=r.wrapFetcher=r.OptionsControl=r.FormItem=r.RegisterStore=r.Renderer=r.updateEnv=r.clearStoresCache=r.render=void 0;var t=e("node_modules/tslib/tslib"),n=e("0f9ebdf");Object.defineProperty(r,"render",{enumerable:!0,get:function(){return n.render}}),Object.defineProperty(r,"Renderer",{enumerable:!0,get:function(){return n.Renderer}}),Object.defineProperty(r,"getRendererByName",{enumerable:!0,get:function(){return n.getRendererByName}}),Object.defineProperty(r,"resolveRenderer",{enumerable:!0,get:function(){return n.resolveRenderer}}),Object.defineProperty(r,"filterSchema",{enumerable:!0,get:function(){return n.filterSchema}}),Object.defineProperty(r,"clearStoresCache",{enumerable:!0,get:function(){return n.clearStoresCache}}),Object.defineProperty(r,"updateEnv",{enumerable:!0,get:function(){return n.updateEnv}});var a=e("1caead1");Object.defineProperty(r,"wrapFetcher",{enumerable:!0,get:function(){return a.wrapFetcher}}),Object.defineProperty(r,"buildApi",{enumerable:!0,get:function(){return a.buildApi}});var c=e("6a2dbb7");Object.defineProperty(r,"filter",{enumerable:!0,get:function(){return c.filter}}),Object.defineProperty(r,"reigsterTplEnginer",{enumerable:!0,get:function(){return c.reigsterTplEnginer}}),Object.defineProperty(r,"evalExpression",{enumerable:!0,get:function(){return c.evalExpression}}),Object.defineProperty(r,"evalJS",{enumerable:!0,get:function(){return c.evalJS}}),Object.defineProperty(r,"setCustomEvalJs",{enumerable:!0,get:function(){return c.setCustomEvalJs}}),Object.defineProperty(r,"setCustomEvalExpression",{enumerable:!0,get:function(){return c.setCustomEvalExpression}});var i=t.__importStar(e("9a80175"));r.utils=i;var o=e("67d35e6");Object.defineProperty(r,"resizeSensor",{enumerable:!0,get:function(){return o.resizeSensor}});var f=e("960de17");Object.defineProperty(r,"setIconVendor",{enumerable:!0,get:function(){return f.setIconVendor}});var u=e("b7bbd16");Object.defineProperty(r,"Icon",{enumerable:!0,get:function(){return u.Icon}}),Object.defineProperty(r,"registerIcon",{enumerable:!0,get:function(){return u.registerIcon}});var b=e("448f42f");Object.defineProperty(r,"RegisterStore",{enumerable:!0,get:function(){return b.RegisterStore}});var d=e("5ab4e9d");Object.defineProperty(r,"setDefaultLocale",{enumerable:!0,get:function(){return d.setDefaultLocale}}),Object.defineProperty(r,"getDefaultLocale",{enumerable:!0,get:function(){return d.getDefaultLocale}}),Object.defineProperty(r,"makeTranslator",{enumerable:!0,get:function(){return d.makeTranslator}}),Object.defineProperty(r,"registerLocale",{enumerable:!0,get:function(){return d.register}}),e("7648928"),e("30de479"),e("4b7dfbe"),e("d539455"),e("10294a9"),e("bb5331d"),e("d221521"),e("3227a42"),e("e5683c7"),e("4fd96cf"),e("0afb30b"),e("8ee3b98"),e("29e1f6a"),e("e299c64"),e("5cdd617"),e("6c4a05a"),e("635e59b"),e("610fd77"),e("dd5dcd2"),e("a1e61d2"),e("e1b1eb7"),e("85dae7e"),e("eff65fe"),e("2b693f3"),e("5ade3b1"),e("99d982b"),e("055a9f9"),e("0f75897"),e("c6f2783"),e("aa22e57"),e("d7f3dfa"),e("2dfb851"),e("64723a8"),e("05b43e3"),e("86ddd97"),e("d09e479"),e("b0a035c"),e("48cac0f"),e("d7f8ee3"),e("ee37b69"),e("90765dc"),e("cf6ad73"),e("162bd80"),e("690a2f4"),e("db77605"),e("9b389bb"),e("3919ee5"),e("647fc2f"),e("8a88f1c"),e("a57a440"),e("27eb5b8"),e("138c832"),e("d5c9577"),e("4be33a0"),e("2406202"),e("5271012"),e("d2efb65"),e("9d9f047"),e("399400a"),e("40fc403"),e("f6d94c0"),e("06cfa10"),e("3ced9f1"),e("33d5c8a"),e("760e4be"),e("3abf50d"),e("13e7e33"),e("7f271f4"),e("fe6117b"),e("5e68c3c"),e("aab7b91"),e("ae1a7f3"),e("fcb3580"),e("011f81c"),e("20f7ce6"),e("0341968"),e("100b8cb"),e("244f74d"),e("9708de1"),e("66c3054"),e("f6086a9"),e("605b41a"),e("66d455f"),e("c2029c1"),e("f52f675"),e("da6cdad"),e("386af39"),e("8f3f322"),e("94e9d59"),e("29937cf"),e("3cbc777"),e("2390f9f"),e("3a449e1"),e("4de0bd7"),e("211dcc3"),e("e6d92e6"),e("59d3d63"),e("a1b9b52"),e("6a16931"),e("f277389"),e("06e3087"),e("b81abcd"),e("f39bdac");var l=t.__importStar(e("919cbd9"));r.Scoped=l.default,Object.defineProperty(r,"ScopedContext",{enumerable:!0,get:function(){return l.ScopedContext}});var s=e("567b83c");Object.defineProperty(r,"FormItem",{enumerable:!0,get:function(){return s.FormItem}}),e("ae4b35c"),e("bbacc46"),e("6149e0d"),e("566aeed");var m=e("f2e345e");Object.defineProperty(r,"registerFilter",{enumerable:!0,get:function(){return m.registerFilter}}),Object.defineProperty(r,"filterDate",{enumerable:!0,get:function(){return m.filterDate}}),Object.defineProperty(r,"relativeValueRe",{enumerable:!0,get:function(){return m.relativeValueRe}}),Object.defineProperty(r,"resolveVariable",{enumerable:!0,get:function(){return m.resolveVariable}}),Object.defineProperty(r,"resolveVariableAndFilter",{enumerable:!0,get:function(){return m.resolveVariableAndFilter}});var p=e("943464a");Object.defineProperty(r,"addRule",{enumerable:!0,get:function(){return p.addRule}}),Object.defineProperty(r,"str2rules",{enumerable:!0,get:function(){return p.str2rules}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return p.validate}}),Object.defineProperty(r,"validateObject",{enumerable:!0,get:function(){return p.validateObject}});var g=e("d57879c");Object.defineProperty(r,"normalizeOptions",{enumerable:!0,get:function(){return g.normalizeOptions}});var v=e("b86428a");Object.defineProperty(r,"OptionsControl",{enumerable:!0,get:function(){return v.OptionsControl}});var O=e("256b65d");Object.defineProperty(r,"classnames",{enumerable:!0,get:function(){return O.classnames}}),Object.defineProperty(r,"getClassPrefix",{enumerable:!0,get:function(){return O.getClassPrefix}}),Object.defineProperty(r,"setDefaultTheme",{enumerable:!0,get:function(){return O.setDefaultTheme}}),Object.defineProperty(r,"theme",{enumerable:!0,get:function(){return O.theme}}),Object.defineProperty(r,"getTheme",{enumerable:!0,get:function(){return O.getTheme}});var P=O.getClassPrefix();r.classPrefix=P,t.__exportStar(e("1953fc1"),r)}); +;/*!examples/components/SchemaRender.jsx*/ +amis.define("ec59a60",function(e,t){"use strict";function n(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function a(e){var t;return e.$schema||(e=o.__assign({$schema:"https://houtai.baidu.com/v2/schemas/page.json"},e)),f.withRouter((t=function(t){function a(n){var a=t.call(this,n)||this;a.state={open:!1},a.toggleCode=function(){return a.setState({open:!a.state.open})},a.copyCode=function(){p.default(JSON.stringify(e)),l.toast.success("页面配置JSON已复制到粘贴板")},a.close=function(){return a.setState({open:!1})};var o=n.router,r=function(e){e=e||"";var t=o.getCurrentLocation();e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),a=e.indexOf("#"),r=~n?e.substring(0,n):~a?e.substring(0,a):e,i=~n?e.substring(n,~a?a:void 0):"",s=~a?e.substring(a):t.hash;if(r){if("/"!=r[0]&&!/^https?:\/\//.test(r)){var l=t.pathname,c=l.split("/");c.pop();for(var u=void 0;u=/^\.\.?\//.exec(r);)"../"===u[0]&&c.pop(),r=r.substring(u[0].length);r=c.concat(r).join("/")}}else r=t.pathname;return r+i+s};return a.env={updateLocation:function(e,t){o[t?"replace":"push"](r(e))},isCurrentUrl:function(e){var t=r(e);return o.isActive(t)},jumpTo:function(e){e=r(e),/^https?:\/\//.test(e)?window.location.replace(e):o.push(e)},fetcher:function(e){var t=e.url,n=e.method,a=e.data,o=e.config,r=e.headers;return o=o||{},o.headers=r||{},o.cancelExecutor&&(o.cancelToken=new s.default.CancelToken(o.cancelExecutor)),a&&a instanceof FormData||!a||"string"==typeof a||a instanceof Blob||a instanceof ArrayBuffer||(a=JSON.stringify(a),o.headers["Content-Type"]="application/json"),"post"!==n&&"put"!==n&&"patch"!==n?(a&&("delete"===n?o.data=a:o.params=a),s.default[n](t,o)):s.default[n](t,a,o)},isCancel:function(e){return s.default.isCancel(e)},notify:function(e,t){return l.toast[e]?l.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:c.alert,confirm:c.confirm,copy:function(e){return console.log("Copy",e)}},a.handleEditorMount=a.handleEditorMount.bind(a),a}return o.__extends(a,t),a.prototype.handleEditorMount=function(e,t){t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0})},a.prototype.renderCode=function(){return r.default.createElement(u.default,{getComponent:n,editorDidMount:this.handleEditorMount,language:"json",value:e,placeholder:"加载中,请稍后。。。",disabled:!0})},a.prototype.renderSchema=function(){var t=this.props,n=(t.router,t.location),a=t.theme,o=t.locale;return i.render(e,{location:n,theme:a,locale:o},this.env)},a.prototype.render=function(){var e=this.props.classPrefix,t=this.props.showCode;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"schema-wrapper"},t!==!1?r.default.createElement(d.default,{disabled:!0,classPrefix:e,size:"lg",onHide:this.close,show:this.state.open,closeOnOutside:!0,position:"right"},this.state.open?this.renderCode():null):null,this.renderSchema()),t!==!1?r.default.createElement("div",{className:"Doc-toc"},r.default.createElement("div",null,r.default.createElement("div",{className:"Doc-headingList"},r.default.createElement("div",{className:"Doc-headingList-item"},r.default.createElement("a",{onClick:this.toggleCode},"查看页面配置 ",r.default.createElement("i",{className:"fa fa-code p-l-xs"}))),r.default.createElement("div",{className:"Doc-headingList-item"},r.default.createElement("a",{onClick:this.copyCode},"复制页面配置 ",r.default.createElement("i",{className:"fa fa-copy p-l-xs"})))))):null)},a}(r.default.Component),t.displayName="SchemaRenderer",t))}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),r=o.__importDefault(e("node_modules/react/index")),i=e("d019970"),s=o.__importDefault(e("node_modules/axios/index")),l=e("6ae88e0"),c=e("bfe4ee0"),u=o.__importDefault(e("4783ce8")),d=o.__importDefault(e("01a937e")),f=e("node_modules/react-router/lib/index"),p=o.__importDefault(e("node_modules/copy-to-clipboard/index"));t.default=a}); +;/*!examples/components/DocSearch.jsx*/ +amis.define("c6757fd",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),r=n.__importDefault(e("ec59a60")),a=r.default({type:"form",mode:"inline",wrapWithPanel:!1,className:":Doc-search",controls:[{type:"input-group",size:"sm",controls:[{type:"icon",addOnclassName:"no-bg no-border p-r-none p-l",className:"text-sm",icon:"search",vendor:"iconfont"},{type:"text",placeholder:"搜索...",inputClassName:"no-border",name:"docsearch"}]}]}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e='input[name="docsearch"]';docsearch({appId:"3W0NHYOWPE",apiKey:"469f5cf3d54f9b86127970f913dc0725",indexName:"gh_pages",inputSelector:e,debug:!1})},t.prototype.render=function(){return o.default.createElement(a,{showCode:!1,theme:this.props.theme})},t}(o.default.Component);t.default=s}); +;/*!examples/components/MdRenderer.tsx*/ +amis.define("b57db8f",function(e,t){"use strict";function n(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(n,t),n.prototype.renderHeading=function(e){var t=this;return e.map(function(e,n){return l.default.createElement("div",{key:e.fullPath+"-"+n,className:s.default("Doc-headingList-item",{"is-active":t.props.location.hash===e.fullPath})},l.default.createElement("a",{href:"#"+e.fragment},e.label),e.children&&e.children.length?t.renderHeading(e.children):null)})},n.prototype.render=function(){var t=this.props,n=t.prevDoc,r=t.nextDoc;return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"Doc-content"},e.title?l.default.createElement("div",{className:"Doc-title"},l.default.createElement("h1",null,e.title)):null,l.default.createElement(f,a.__assign({},this.props,{doc:e})),l.default.createElement("div",{className:"Doc-footer"},l.default.createElement("div",{className:"Doc-navLinks"},n?l.default.createElement(d.Link,{className:"Doc-navLinks--prev",to:n.path},l.default.createElement("div",{className:"Doc-navLinks-icon"},l.default.createElement("i",{className:"iconfont icon-arrow-left"})),l.default.createElement("div",{className:"Doc-navLinks-body text-right"},l.default.createElement("div",{className:"Doc-navLinks-subtitle"},"上一篇 - ",n.group||"其他"),l.default.createElement("div",{className:"Doc-navLinks-title"},n.label," "))):null,r?l.default.createElement(d.Link,{className:"Doc-navLinks--next",to:r.path},l.default.createElement("div",{className:"Doc-navLinks-body"},l.default.createElement("div",{className:"Doc-navLinks-subtitle"},"下一篇 - ",r.group||"其他"),l.default.createElement("div",{className:"Doc-navLinks-title"},r.label)),l.default.createElement("div",{className:"Doc-navLinks-icon"},l.default.createElement("i",{className:"iconfont icon-arrow-right"}))):null))),e.toc&&e.toc.children&&e.toc.children.length>1?l.default.createElement("div",{className:"Doc-toc"},l.default.createElement("div",null,l.default.createElement("div",{className:"Doc-headingList"},this.renderHeading(e.toc.children)))):null)},n}(l.default.Component)}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),r=a.__importDefault(e("node_modules/react-dom/index")),o=a.__importDefault(e("4783ce8")),i=a.__importDefault(e("997df41")),c=a.__importDefault(e("2b3dcdf")),s=a.__importDefault(e("node_modules/classnames/index")),d=e("node_modules/react-router/lib/index"),u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={PlayGround:null},e}return a.__extends(n,t),n.prototype.componentDidMount=function(){var t=this;e(["9b1667d"],function(e){return t.setState({PlayGround:e.default})})},n.prototype.render=function(){var e=this,t=this.props,n=t.container,r=t.height,o=(t.setAsideFolded,t.setHeaderVisible,a.__rest(t,["container","height","setAsideFolded","setHeaderVisible"])),s=this.state.PlayGround;return l.default.createElement("div",null,l.default.createElement("span",{style:{display:"block",height:r},ref:"span"}),s?l.default.createElement(i.default,{container:n,target:function(){return e.refs.span},placement:"bottom",show:!0},l.default.createElement(c.default,{offset:{x:0,y:-r},style:{height:r},className:":MDPreview-shcema-preview-popover"},l.default.createElement("div",{className:"MDPreview-schema-preview"},l.default.createElement(s,a.__assign({},o,{vertical:!0}))))):null)},n}(l.default.Component),f=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=null,n.doms=[],n.divRef=n.divRef.bind(n),n.handleClick=n.handleClick.bind(n),n}return a.__extends(t,e),t.prototype.componentDidMount=function(){if(this.renderSchema(),location.hash&&location.hash.length>1){window.history&&"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=document.querySelector('[name="'+location.hash.substring(1)+'"]');e&&e.scrollIntoView()}},t.prototype.componentDidUpdate=function(){this.renderSchema()},t.prototype.componentWillUnmount=function(){this.doms.forEach(function(e){return r.default.unmountComponentAtNode(e)})},t.prototype.handleClick=function(e){var t=e.target.getAttribute("href");t&&"#"!==t[0]&&!/^http/.test(t)&&(e.preventDefault(),this.props.push(t))},t.prototype.divRef=function(e){this.ref=e,e&&(e.innerHTML=this.props.doc.html)},t.prototype.renderSchema=function(){var e=this,t=document.querySelectorAll('script[type="text/schema"]');if(t||t.length)for(var n=function(n){var c=t[n],s={};[].slice.apply(c.attributes).forEach(function(e){s[e.name]=e.value});var d=document.createElement("div"),f=s.height?parseInt(s.height,10):200;d.setAttribute("class","doc-play-ground"),d.setAttribute("style","height: "+f+"px;"),c.parentNode.replaceChild(d,c),i.doms.push(d),r.default.unstable_renderSubtreeIntoContainer(i,l.default.createElement(o.default,a.__assign({},i.props,{height:f,container:function(){return r.default.findDOMNode(e)},height:f,component:u,code:c.innerText,scope:s.scope,unMountOnHidden:!0,placeholder:"加载中,请稍后。。。"})),d)},i=this,c=0,s=t.length;s>c;c++)n(c,s)},t.prototype.render=function(){return l.default.createElement("div",{className:"MDPreview"},l.default.createElement("div",{className:"markdown-body",ref:this.divRef},"Doc"))},t.displayName="MarkdownRenderer",t}(l.default.Component);t.default=n}); +;/*!examples/components/Doc.tsx*/ +amis.define("85a7530",function(n,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.docs=void 0;var t=n("node_modules/tslib/tslib"),e=t.__importDefault(n("node_modules/react/index")),c=t.__importDefault(n("b57db8f")),l=n("9a80175");o.docs=[{label:"📌 开始",children:[{label:"介绍",path:"/docs/index",getComponent:function(o,t){return n(["docs/index.md"],function(n){t(null,c.default(n))})}},{label:"快速开始",path:"/docs/start/getting-started",getComponent:function(o,t){return n(["docs/start/getting-started.md"],function(n){t(null,c.default(n))})}},{label:"自定义",path:"/docs/start/custom",getComponent:function(o,t){return n(["docs/start/custom.md"],function(n){t(null,c.default(n))})}}]},{label:"💡 概念",children:[{label:"配置与组件",path:"/docs/concepts/schema",getComponent:function(o,t){return n(["docs/concepts/schema.md"],function(n){t(null,c.default(n))})}},{label:"数据域与数据链",path:"/docs/concepts/datascope-and-datachain",getComponent:function(o,t){return n(["docs/concepts/datascope-and-datachain.md"],function(n){t(null,c.default(n))})}},{label:"模板",path:"/docs/concepts/template",getComponent:function(o,t){return n(["docs/concepts/template.md"],function(n){t(null,c.default(n))})}},{label:"数据映射",path:"/docs/concepts/data-mapping",getComponent:function(o,t){return n(["docs/concepts/data-mapping.md"],function(n){t(null,c.default(n))})}},{label:"表达式",path:"/docs/concepts/expression",getComponent:function(o,t){return n(["docs/concepts/expression.md"],function(n){t(null,c.default(n))})}},{label:"联动",path:"/docs/concepts/linkage",getComponent:function(o,t){return n(["docs/concepts/linkage.md"],function(n){t(null,c.default(n))})}},{label:"行为",path:"/docs/concepts/action",getComponent:function(o,t){return n(["docs/concepts/action.md"],function(n){t(null,c.default(n))})}},{label:"样式",path:"/docs/concepts/style",getComponent:function(o,t){return n(["docs/concepts/style.md"],function(n){t(null,c.default(n))})}}]},{label:"🎼 类型",children:[{label:"SchemaNode",path:"/docs/types/schemanode",getComponent:function(o,t){return n(["docs/types/schemanode.md"],function(n){t(null,c.default(n))})}},{label:"API",path:"/docs/types/api",getComponent:function(o,t){return n(["docs/types/api.md"],function(n){t(null,c.default(n))})}}]},{label:"⚙ 组件",children:[{label:"组件介绍",path:"/docs/components/component",getComponent:function(o,t){return n(["docs/components/component.md"],function(n){t(null,c.default(n))})}},{label:"Page 页面",path:"/docs/components/page",getComponent:function(o,t){return n(["docs/components/page.md"],function(n){t(null,c.default(n))})}},{label:"Form 表单",children:[{label:"Form 表单",path:"/docs/components/form/index",getComponent:function(o,t){return n(["docs/components/form/index.md"],function(n){t(null,c.default(n))})}},{label:"FormItem 表单项",path:"/docs/components/form/formitem",getComponent:function(o,t){return n(["docs/components/form/formitem.md"],function(n){t(null,c.default(n))})}},{label:"Options 选择器表单项",path:"/docs/components/form/options",getComponent:function(o,t){return n(["docs/components/form/options.md"],function(n){t(null,c.default(n))})}},{label:"Array 数组输入框",path:"/docs/components/form/array",getComponent:function(o,t){return n(["docs/components/form/array.md"],function(n){t(null,c.default(n))})}},{label:"Button 按钮",path:"/docs/components/form/button",getComponent:function(o,t){return n(["docs/components/form/button.md"],function(n){t(null,c.default(n))})}},{label:"Button-Toolbar 按钮工具栏",path:"/docs/components/form/button-toolbar",getComponent:function(o,t){return n(["docs/components/form/button-toolbar.md"],function(n){t(null,c.default(n))})}},{label:"Button-Group 按钮集合",path:"/docs/components/form/button-group",getComponent:function(o,t){return n(["docs/components/form/button-group.md"],function(n){t(null,c.default(n))})}},{label:"Chain-Select 链式下拉框",path:"/docs/components/form/chain-select",getComponent:function(o,t){return n(["docs/components/form/chain-select.md"],function(n){t(null,c.default(n))})}},{label:"Checkbox 勾选框",path:"/docs/components/form/checkbox",getComponent:function(o,t){return n(["docs/components/form/checkbox.md"],function(n){t(null,c.default(n))})}},{label:"Checkboxes 复选框",path:"/docs/components/form/checkboxes",getComponent:function(o,t){return n(["docs/components/form/checkboxes.md"],function(n){t(null,c.default(n))})}},{label:"City 城市选择器",path:"/docs/components/form/city",getComponent:function(o,t){return n(["docs/components/form/city.md"],function(n){t(null,c.default(n))})}},{label:"Color 颜色选择器",path:"/docs/components/form/color",getComponent:function(o,t){return n(["docs/components/form/color.md"],function(n){t(null,c.default(n))})}},{label:"Combo 组合",path:"/docs/components/form/combo",getComponent:function(o,t){return n(["docs/components/form/combo.md"],function(n){t(null,c.default(n))})}},{label:"Date 日期选择器",path:"/docs/components/form/date",getComponent:function(o,t){return n(["docs/components/form/date.md"],function(n){t(null,c.default(n))})}},{label:"Datetime 日期时间选择器",path:"/docs/components/form/datetime",getComponent:function(o,t){return n(["docs/components/form/datetime.md"],function(n){t(null,c.default(n))})}},{label:"Date-Range 日期范围选择器",path:"/docs/components/form/date-range",getComponent:function(o,t){return n(["docs/components/form/date-range.md"],function(n){t(null,c.default(n))})}},{label:"Datetime-Range 日期时间范围",path:"/docs/components/form/datetime-range",getComponent:function(o,t){return n(["docs/components/form/datetime-range.md"],function(n){t(null,c.default(n))})}},{label:"DiffEditor 对比编辑器",path:"/docs/components/form/diff-editor",getComponent:function(o,t){return n(["docs/components/form/diff-editor.md"],function(n){t(null,c.default(n))})}},{label:"Editor 编辑器",path:"/docs/components/form/editor",getComponent:function(o,t){return n(["docs/components/form/editor.md"],function(n){t(null,c.default(n))})}},{label:"FieldSet 表单项集合",path:"/docs/components/form/fieldset",getComponent:function(o,t){return n(["docs/components/form/fieldset.md"],function(n){t(null,c.default(n))})}},{label:"File 文件上传",path:"/docs/components/form/file",getComponent:function(o,t){return n(["docs/components/form/file.md"],function(n){t(null,c.default(n))})}},{label:"Formula 公式",path:"/docs/components/form/formula",getComponent:function(o,t){return n(["docs/components/form/formula.md"],function(n){t(null,c.default(n))})}},{label:"Grid 网格",path:"/docs/components/form/grid",getComponent:function(o,t){return n(["docs/components/form/grid.md"],function(n){t(null,c.default(n))})}},{label:"Group 表单项组",path:"/docs/components/form/group",getComponent:function(o,t){return n(["docs/components/form/group.md"],function(n){t(null,c.default(n))})}},{label:"HBox",path:"/docs/components/form/hbox",getComponent:function(o,t){return n(["docs/components/form/hbox.md"],function(n){t(null,c.default(n))})}},{label:"Hidden 隐藏字段",path:"/docs/components/form/hidden",getComponent:function(o,t){return n(["docs/components/form/hidden.md"],function(n){t(null,c.default(n))})}},{label:"Image 图片",path:"/docs/components/form/image",getComponent:function(o,t){return n(["docs/components/form/image.md"],function(n){t(null,c.default(n))})}},{label:"Input-Group 输入框组合",path:"/docs/components/form/input-group",getComponent:function(o,t){return n(["docs/components/form/input-group.md"],function(n){t(null,c.default(n))})}},{label:"List 列表",path:"/docs/components/form/list",getComponent:function(o,t){return n(["docs/components/form/list.md"],function(n){t(null,c.default(n))})}},{label:"Matrix 矩阵",path:"/docs/components/form/matrix",getComponent:function(o,t){return n(["docs/components/form/matrix.md"],function(n){t(null,c.default(n))})}},{label:"NestedSelect 级联选择器",path:"/docs/components/form/nestedselect",getComponent:function(o,t){return n(["docs/components/form/nestedselect.md"],function(n){t(null,c.default(n))})}},{label:"Number 数字输入框",path:"/docs/components/form/number",getComponent:function(o,t){return n(["docs/components/form/number.md"],function(n){t(null,c.default(n))})}},{label:"Panel 面板",path:"/docs/components/form/panel",getComponent:function(o,t){return n(["docs/components/form/panel.md"],function(n){t(null,c.default(n))})}},{label:"Picker 列表选择器",path:"/docs/components/form/picker",getComponent:function(o,t){return n(["docs/components/form/picker.md"],function(n){t(null,c.default(n))})}},{label:"Radios 单选框",path:"/docs/components/form/radios",getComponent:function(o,t){return n(["docs/components/form/radios.md"],function(n){t(null,c.default(n))})}},{label:"Rating 评分",path:"/docs/components/form/rating",getComponent:function(o,t){return n(["docs/components/form/rating.md"],function(n){t(null,c.default(n))})}},{label:"Range 滑块",path:"/docs/components/form/range",getComponent:function(o,t){return n(["docs/components/form/range.md"],function(n){t(null,c.default(n))})}},{label:"Repeat 重复频率选择器",path:"/docs/components/form/repeat",getComponent:function(o,t){return n(["docs/components/form/repeat.md"],function(n){t(null,c.default(n))})}},{label:"Rich-Text 富文本编辑器",path:"/docs/components/form/rich-text",getComponent:function(o,t){return n(["docs/components/form/rich-text.md"],function(n){t(null,c.default(n))})}},{label:"Select 选择器",path:"/docs/components/form/select",getComponent:function(o,t){return n(["docs/components/form/select.md"],function(n){t(null,c.default(n))})}},{label:"Service 功能容器",path:"/docs/components/form/service",getComponent:function(o,t){return n(["docs/components/form/service.md"],function(n){t(null,c.default(n))})}},{label:"SubForm 子表单",path:"/docs/components/form/subform",getComponent:function(o,t){return n(["docs/components/form/subform.md"],function(n){t(null,c.default(n))})}},{label:"Switch 开关",path:"/docs/components/form/switch",getComponent:function(o,t){return n(["docs/components/form/switch.md"],function(n){t(null,c.default(n))})}},{label:"Static 静态展示",path:"/docs/components/form/static",getComponent:function(o,t){return n(["docs/components/form/static.md"],function(n){t(null,c.default(n))})}},{label:"Tabs 选项卡",path:"/docs/components/form/tabs",getComponent:function(o,t){return n(["docs/components/form/tabs.md"],function(n){t(null,c.default(n))})}},{label:"Table 表格",path:"/docs/components/form/table",getComponent:function(o,t){return n(["docs/components/form/table.md"],function(n){t(null,c.default(n))})}},{label:"Tag 标签选择器",path:"/docs/components/form/tag",getComponent:function(o,t){return n(["docs/components/form/tag.md"],function(n){t(null,c.default(n))})}},{label:"Text 输入框",path:"/docs/components/form/text",getComponent:function(o,t){return n(["docs/components/form/text.md"],function(n){t(null,c.default(n))})}},{label:"Textarea 多行输入框",path:"/docs/components/form/textarea",getComponent:function(o,t){return n(["docs/components/form/textarea.md"],function(n){t(null,c.default(n))})}},{label:"Time 时间",path:"/docs/components/form/time",getComponent:function(o,t){return n(["docs/components/form/time.md"],function(n){t(null,c.default(n))})}},{label:"Tree 树形选择框",path:"/docs/components/form/tree",getComponent:function(o,t){return n(["docs/components/form/tree.md"],function(n){t(null,c.default(n))})}},{label:"TreeSelect 树形选择器",path:"/docs/components/form/treeselect",getComponent:function(o,t){return n(["docs/components/form/treeselect.md"],function(n){t(null,c.default(n))})}}]},{label:"CRUD 增删改查",path:"/docs/components/crud",getComponent:function(o,t){return n(["docs/components/crud.md"],function(n){t(null,c.default(n))})}},{label:"Action 行为按钮",path:"/docs/components/action",getComponent:function(o,t){return n(["docs/components/action.md"],function(n){t(null,c.default(n))})}},{label:"Alert 提示",path:"/docs/components/alert",getComponent:function(o,t){return n(["docs/components/alert.md"],function(n){t(null,c.default(n))})}},{label:"Audio 音频",path:"/docs/components/audio",getComponent:function(o,t){return n(["docs/components/audio.md"],function(n){t(null,c.default(n))})}},{label:"Button 按钮",path:"/docs/components/button",getComponent:function(o,t){return n(["docs/components/button.md"],function(n){t(null,c.default(n))})}},{label:"ButtonGroup 按钮组",path:"/docs/components/buttongroup",getComponent:function(o,t){return n(["../../docs/components/buttongroup.md"],function(n){t(null,c.default(n))})}},{label:"Card 卡片",path:"/docs/components/card",getComponent:function(o,t){return n(["docs/components/card.md"],function(n){t(null,c.default(n))})}},{label:"Cards 卡片组",path:"/docs/components/cards",getComponent:function(o,t){return n(["docs/components/cards.md"],function(n){t(null,c.default(n))})}},{label:"Carousel 轮播图",path:"/docs/components/carousel",getComponent:function(o,t){return n(["docs/components/carousel.md"],function(n){t(null,c.default(n))})}},{label:"Chart 图表",path:"/docs/components/chart",getComponent:function(o,t){return n(["docs/components/chart.md"],function(n){t(null,c.default(n))})}},{label:"Collapse 折叠器",path:"/docs/components/collapse",getComponent:function(o,t){return n(["docs/components/collapse.md"],function(n){t(null,c.default(n))})}},{label:"Color 颜色",path:"/docs/components/color",getComponent:function(o,t){return n(["docs/components/color.md"],function(n){t(null,c.default(n))})}},{label:"Container 容器",path:"/docs/components/container",getComponent:function(o,t){return n(["docs/components/container.md"],function(n){t(null,c.default(n))})}},{label:"Date 日期时间",path:"/docs/components/date",getComponent:function(o,t){return n(["docs/components/date.md"],function(n){t(null,c.default(n))})}},{label:"Dialog 对话框",path:"/docs/components/dialog",getComponent:function(o,t){return n(["docs/components/dialog.md"],function(n){t(null,c.default(n))})}},{label:"Divider 分割线",path:"/docs/components/divider",getComponent:function(o,t){return n(["docs/components/divider.md"],function(n){t(null,c.default(n))})}},{label:"Drawer 抽屉",path:"/docs/components/drawer",getComponent:function(o,t){return n(["docs/components/drawer.md"],function(n){t(null,c.default(n))})}},{label:"DropDownButton",path:"/docs/components/dropdown-button",getComponent:function(o,t){return n(["docs/components/dropdown-button.md"],function(n){t(null,c.default(n))})}},{label:"Each 循环渲染器",path:"/docs/components/each",getComponent:function(o,t){return n(["docs/components/each.md"],function(n){t(null,c.default(n))})}},{label:"Grid 网格布局",path:"/docs/components/grid",getComponent:function(o,t){return n(["docs/components/grid.md"],function(n){t(null,c.default(n))})}},{label:"HBox 布局",path:"/docs/components/hbox",getComponent:function(o,t){return n(["docs/components/hbox.md"],function(n){t(null,c.default(n))})}},{label:"Html",path:"/docs/components/html",getComponent:function(o,t){return n(["docs/components/html.md"],function(n){t(null,c.default(n))})}},{label:"Icon 图标",path:"/docs/components/icon",getComponent:function(o,t){return n(["docs/components/icon.md"],function(n){t(null,c.default(n))})}},{label:"iFrame",path:"/docs/components/iframe",getComponent:function(o,t){return n(["docs/components/iframe.md"],function(n){t(null,c.default(n))})}},{label:"Image 图片",path:"/docs/components/image",getComponent:function(o,t){return n(["docs/components/image.md"],function(n){t(null,c.default(n))})}},{label:"Images 图片集",path:"/docs/components/images",getComponent:function(o,t){return n(["docs/components/images.md"],function(n){t(null,c.default(n))})}},{label:"Json",path:"/docs/components/json",getComponent:function(o,t){return n(["docs/components/json.md"],function(n){t(null,c.default(n))})}},{label:"Link 链接",path:"/docs/components/link",getComponent:function(o,t){return n(["docs/components/link.md"],function(n){t(null,c.default(n))})}},{label:"List 列表",path:"/docs/components/list",getComponent:function(o,t){return n(["docs/components/list.md"],function(n){t(null,c.default(n))})}},{label:"Mapping 映射",path:"/docs/components/mapping",getComponent:function(o,t){return n(["docs/components/mapping.md"],function(n){t(null,c.default(n))})}},{label:"Nav 导航",path:"/docs/components/nav",getComponent:function(o,t){return n(["docs/components/nav.md"],function(n){t(null,c.default(n))})}},{label:"Panel 面板",path:"/docs/components/panel",getComponent:function(o,t){return n(["docs/components/panel.md"],function(n){t(null,c.default(n))})}},{label:"Progress 进度条",path:"/docs/components/progress",getComponent:function(o,t){return n(["docs/components/progress.md"],function(n){t(null,c.default(n))})}},{label:"QRCode 二维码",path:"/docs/components/qrcode",getComponent:function(o,t){return n(["docs/components/qrcode.md"],function(n){t(null,c.default(n))})}},{label:"Remark 标记",path:"/docs/components/remark",getComponent:function(o,t){return n(["docs/components/remark.md"],function(n){t(null,c.default(n))})}},{label:"Service 功能型容器",path:"/docs/components/service",getComponent:function(o,t){return n(["docs/components/service.md"],function(n){t(null,c.default(n))})}},{label:"Spinner 加载中",path:"/docs/components/spinner",getComponent:function(o,t){return n(["docs/components/spinner.md"],function(n){t(null,c.default(n))})}},{label:"Status 状态",path:"/docs/components/status",getComponent:function(o,t){return n(["docs/components/status.md"],function(n){t(null,c.default(n))})}},{label:"Switch 开关",path:"/docs/components/switch",getComponent:function(o,t){return n(["docs/components/switch.md"],function(n){t(null,c.default(n))})}},{label:"Table 表格",path:"/docs/components/table",getComponent:function(o,t){return n(["docs/components/table.md"],function(n){t(null,c.default(n))})}},{label:"Tabs 选项卡",path:"/docs/components/tabstabs",getComponent:function(o,t){return n(["docs/components/tabs.md"],function(n){t(null,c.default(n))})}},{label:"Tasks 任务操作集合",path:"/docs/components/tasks",getComponent:function(o,t){return n(["docs/components/tasks.md"],function(n){t(null,c.default(n))})}},{label:"Tpl 模板",path:"/docs/components/tpl",getComponent:function(o,t){return n(["docs/components/tpl.md"],function(n){t(null,c.default(n))})}},{label:"Video 视频",path:"/docs/components/video",getComponent:function(o,t){return n(["docs/components/video.md"],function(n){t(null,c.default(n))})}},{label:"Wrapper 包裹容器",path:"/docs/components/wrapper",getComponent:function(o,t){return n(["docs/components/wrapper.md"],function(n){t(null,c.default(n))})}},{label:"Wizard 向导",path:"/docs/components/wizard",getComponent:function(o,t){return n(["docs/components/wizard.md"],function(n){t(null,c.default(n))})}}]}];var u=function(n){function c(){var o=null!==n&&n.apply(this,arguments)||this;return o.state={prevDoc:null,nextDoc:null},o}return t.__extends(c,n),c.prototype.componentDidMount=function(){this.props.setNavigations(o.docs),this.setDocFooter()},c.prototype.componentDidUpdate=function(n){this.props.location.pathname!==n.location.pathname&&(this.props.setNavigations(o.docs),this.setDocFooter())},c.prototype.setDocFooter=function(){var n=l.mapTree(o.docs,function(n){return t.__assign(t.__assign({},n),{children:Array.isArray(n.children)&&n.children.length?n.children.map(function(o){return t.__assign(t.__assign({},o),{group:n.group||n.label})}):null})}),e=l.flattenTree(n).filter(function(n){return!!n.path}),c=e.findIndex(function(n){return n.path===location.pathname});this.setState({prevDoc:e[c-1],nextDoc:e[c+1]})},c.prototype.render=function(){return e.default.createElement(e.default.Fragment,null,e.default.cloneElement(this.props.children,t.__assign(t.__assign({},this.props.children.props),{theme:this.props.theme,classPrefix:this.props.classPrefix,locale:this.props.locale,prevDoc:this.state.prevDoc,nextDoc:this.state.nextDoc})))},c}(e.default.PureComponent);o.default=u}); +;/*!examples/components/Page/Simple.jsx*/ +amis.define("da274e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:"内容部分. 可以使用 \\${var} 获取变量。如: `\\$date`: ${date}",aside:"边栏部分",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initData"}}); +;/*!examples/components/Page/Error.jsx*/ +amis.define("2d1fe26",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:["\n

`initApi` 拉取失败时,页面内容区会显示对应的错误信息。

\n\n

其他提示示例

\n ",{type:"alert",level:"success",body:"温馨提示:对页面功能的提示说明,绿色为正向类的消息提示"},{type:"alert",level:"warning",body:"您的私有网络已达到配额,如需更多私有网络,可以通过工单申请"}],aside:"边栏",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initDataError"}}); +;/*!examples/components/Page/Form.jsx*/ +amis.define("71fbd58",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单页面",body:{type:"form",mode:"horizontal",title:"",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{label:"Name",type:"text",name:"name"},{label:"Email",type:"email",name:"email"}]}}}); +;/*!examples/components/Form/Mode.jsx*/ +amis.define("0fa6650",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单各种展示模式汇总",remark:"展示各种模式的 Form",body:[{type:"grid",columns:[{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱",size:"full"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码",size:"full"},{type:"checkbox",name:"rememberMe",label:"记住登录"},{type:"submit",btnClassName:"btn-default",label:"登录"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式 input md 尺寸",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱",size:"md",remark:"xxxx",hint:"bla bla bla"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码",size:"md"},{type:"checkbox",name:"rememberMe",label:"记住登录"},{type:"submit",btnClassName:"btn-default",label:"登录"}]}]},{type:"grid",columns:[{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式,左右摆放 左右比率分配 ",mode:"horizontal",autoFocus:!1,horizontal:{left:"col-sm-2",right:"col-sm-10",offset:"col-sm-offset-2"},controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",required:!0,desc:"表单描述文字"},{type:"password",name:"password",label:"密码",placeholder:"输入密码"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式,左右摆放 左侧固定宽度 input md 尺寸",mode:"horizontal",autoFocus:!1,horizontal:{leftFixed:"xs"},controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",required:!0,desc:"表单描述文字",size:"md",remark:"xxxx",hint:"bla bla bla"},{type:"password",name:"password",label:"密码",placeholder:"输入密码",size:"md"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"内联模式",mode:"inline",autoFocus:!1,controls:[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"auto"},{type:"password",name:"password",placeholder:"密码",size:"auto",remark:"Bla bla bla"},{type:"checkbox",name:"rememberMe",label:"记住登录",size:"auto"},{type:"submit",label:"登录"},{type:"button",label:"导出",url:"http://www.baidu.com/",level:"success"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式下用数组包起来还能控制一行显示多个",mode:"normal",autoFocus:!1,controls:[{type:"text",name:"name",placeholder:"请输入...",label:"名字",size:"full"},{type:"divider"},{type:"group",controls:[{type:"email",name:"email",placeholder:"输入邮箱",label:"邮箱",size:"full"},{type:"password",name:"password",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email2",mode:"inline",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password2",label:"密码",mode:"inline",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email3",mode:"inline",placeholder:"请输入邮箱地址",label:"邮箱",size:"full",columnClassName:"v-bottom"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email4",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password4",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full",columnClassName:"v-bottom"}]},{type:"divider"},{type:"checkbox",name:"rememberMe",label:"记住我"},{type:"submit",btnClassName:"btn-default",label:"提交"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式用数组包起来也能控制一行显示多个",mode:"horizontal",autoFocus:!1,controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"divider"},{type:"group",controls:[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password2",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email4",placeholder:"请输入邮箱地址",label:"邮箱",size:"full",columnClassName:"col-sm-6",horizontal:{left:"col-sm-4",right:"col-sm-8"}},{type:"password",name:"password4",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"group",label:"邮箱",gap:"xs",controls:[{label:!1,type:"email",name:"email5",placeholder:"请输入邮箱地址",size:"full"},{type:"password",name:"password5",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"group",label:"邮箱",description:"bla bla",gap:"xs",controls:[{type:"email",name:"email6",placeholder:"请输入邮箱地址",mode:"inline"},{type:"password",name:"password6",placeholder:"请输入密码",labelClassName:"w-auto p-r-none",mode:"inline"}]},{type:"divider"},{type:"group",label:"邮箱",description:"bla bla",direction:"vertical",controls:[{type:"email",name:"email9",mode:"normal",placeholder:"请输入邮箱地址",inline:!0,description:"Bla blamfejkf fdjk"},{type:"password",name:"password9",mode:"normal",placeholder:"请输入密码",labelClassName:"w-auto p-r-none"}]},{type:"divider"},{type:"checkbox",name:"rememberMe",label:"记住我"},{type:"submit",btnClassName:"btn-default",label:"Submit"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"Inline form 用数组包起来还能控制一行显示多个",mode:"inline",submitText:null,autoFocus:!1,controls:[[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"full"},{type:"password",name:"password",placeholder:"Password",size:"full"}],{type:"divider"},[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"full"},{type:"checkbox",name:"rememberMe",label:"记住我",size:"full"},{type:"button-toolbar",buttons:[{type:"submit",label:"登录"},{type:"button",label:"导出",url:"http://www.baidu.com/",level:"success"}]}]]}]}}); +;/*!examples/components/Form/FieldSet.jsx*/ +amis.define("65795e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"FieldSet 示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],collapsable:!0,title:"fieldSet 可以对表单元素做个分组",controls:[{type:"fieldSet",title:"基本信息",collapsable:!0,controls:[{type:"group",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",label:!1,placeholder:"Password"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"Remember me"}]}]},{title:"其他信息",type:"fieldSet",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe",option:"记住我"}]}]},{title:"FieldSet 样式集",type:"form",controls:[{title:"超级小",type:"fieldSet",className:"fieldset-xs",controls:[{type:"plain",text:"文本 ..."}]},{title:"小尺寸",type:"fieldSet",className:"fieldset-sm",controls:[{type:"plain",text:"文本 ..."}]},{title:"正常尺寸",type:"fieldSet",className:"fieldset",controls:[{type:"plain",text:"文本 ..."}]},{title:"中大尺寸",type:"fieldSet",className:"fieldset-md",controls:[{type:"plain",text:"文本 ..."}]},{title:"超大尺寸",type:"fieldSet",className:"fieldset-lg",controls:[{type:"plain",text:"文本 ..."}]}]}]}}); +;/*!examples/components/Form/Tabs.jsx*/ +amis.define("1e9ff20",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Tabs 示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"",actions:[{type:"button",actionType:"dialog",label:"弹框中的 Tabs",level:"info",dialog:{title:"",body:{type:"form",mode:"horizontal",horizontal:{leftFixed:"xs"},api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{type:"tabs",tabs:[{title:"基本信息",controls:[[{type:"email",name:"email1",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",placeholder:"密码",label:!1}],{type:"divider"},[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"记住我"}]]},{title:"其他信息",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe2",option:"记住我"}]}]}]}}},{type:"submit",label:"提交",primary:!0}],controls:[{type:"tabs",tabs:[{title:"基本信息",hash:"tab1",controls:[[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",placeholder:"密码",label:!1}],{type:"divider"},[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"记住我"}]]},{title:"其他信息",hash:"tab2",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe4",label:"记住我"}]}]}]}]}}); +;/*!examples/components/Form/Remote.jsx*/ +amis.define("3d2e3d4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"动态拉取选项",name:"page-form-remote",body:[{type:"form",title:"动态表单元素示例",name:"demo-form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",mode:"horizontal",actions:[{type:"submit",label:"提交"}],controls:[{name:"select",type:"select",label:"动态选项",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",description:"通过接口一口气拉取选项",clearable:!0,searchable:!0},{type:"divider"},{name:"select2",type:"select",label:"选项自动补全",autoComplete:"https://houtai.baidu.com/api/mock2/options/autoComplete?term=$term",placeholder:"请输入",description:"通过接口自动补全"},{type:"divider"},{type:"text",name:"text",label:"文本提示",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",placeholder:"请选择"},{type:"divider"},{name:"text2",type:"text",label:"文本自动补全",clearable:!0,autoComplete:"https://houtai.baidu.com/api/mock2/options/autoComplete2?term=$term",description:"通过接口自动补全"},{name:"chained",type:"chained-select",label:"级联选项",source:"https://houtai.baidu.com/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4&waiSeconds=1",desc:"无限级别, 只要 api 返回数据就能继续往下选择. 当没有下级时请返回 null.",value:"a,b"},{type:"divider"},{name:"tree",type:"tree",label:"动态树",source:"https://houtai.baidu.com/api/mock2/options/tree?waitSeconds=1"},{type:"divider"},{name:"matrix",type:"matrix",label:"动态矩阵开关",source:"https://houtai.baidu.com/api/mock2/options/matrix?waitSeconds=1"}]}]}}); +;/*!examples/components/Form/Reaction.jsx*/ +amis.define("6f89d30",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"显隐切换示例",body:[{name:"hiddenOn",type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Hide On 和 disabledOn 示例",controls:[{type:"radios",name:"type",label:"类型选择",inline:!0,value:"1",options:[{label:"类型 1",value:"1"},{label:"类型 2",value:"2"},{label:"类型 3",value:"3"}],description:'请切换类型来看效果'},{type:"text",label:"所有可见",name:"text1"},{type:"text",label:"类型2 可见",hiddenOn:"data.type != 2",name:"text2"},{type:"text",label:"类型3 不可点",disabledOn:"data.type == 3",name:"text3"},{type:"text",required:!0,label:"必填字段",name:"test4"},{type:"button-toolbar",buttons:[{type:"submit",disabledOn:"data.type == 1",label:"类型1不可点"},{type:"reset",label:"类型3出现且不可点",visibleOn:"data.type == 3",disabledOn:"data.type == 3"},{type:"button",label:"Baidu",href:"http://www.baidu.com?a=1&b=$test4"},{type:"button",actionType:"ajax",label:"No Submit",action:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=5"},{type:"submit",actionType:"ajax",label:"Submit",action:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=5"}]}]}]}}); +;/*!examples/components/Form/Validation.jsx*/ +amis.define("ee53c68",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单验证示例",toolbar:"文档",body:[{type:"form",autoFocus:!1,messages:{validateFailed:"请仔细检查表单规则,部分表单项没通过验证"},title:"表单",actions:[{type:"submit",label:"提交"}],api:"https://houtai.baidu.com/api/mock2/form/saveFormFailed?waitSeconds=2",mode:"horizontal",controls:[{type:"text",name:"test",label:"必填",required:!0},{type:"divider"},{name:"test1",type:"email",label:"Email"},{type:"divider"},{name:"url",type:"url",label:"Url"},{type:"divider"},{name:"num",type:"text",label:"数字",validations:"isNumeric"},{type:"divider"},{name:"alpha",type:"text",label:"字母或数字",validations:"isAlphanumeric"},{type:"divider"},{name:"int",type:"text",label:"整形",validations:"isInt"},{type:"divider"},{name:"minLength",type:"text",label:"长度限制",validations:"minLength:2,maxLength:10"},{type:"divider"},{name:"min",type:"text",label:"数值限制",validations:"maximum:10,minimum:2"},{type:"divider"},{name:"reg",type:"text",label:"正则",validations:"matchRegexp:/^abc/",validationErrors:{matchRegexp:"请输入abc开头的好么?"}},{type:"divider"},{name:"test2",type:"text",label:"服务端验证"}]}]}}); +;/*!examples/components/Form/Full.jsx*/ +amis.define("c9cebe3",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"所有 Form 元素列举",data:{id:1},body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"表单项",mode:"horizontal",autoFocus:!0,controls:[{type:"html",html:"

html 片段, 可以用来添加说明性文字

"},{type:"divider"},{type:"text",name:"var1",label:"文本"},{type:"divider"},{type:"text",name:"withHelp",label:"带提示信息",desc:"这是一段描述文字"},{type:"divider"},{type:"password",name:"password",label:"密码",inline:!0},{type:"divider"},{type:"number",name:"number",label:"数字",placeholder:"",inline:!0,value:5,min:1,max:10},{type:"divider"},{type:"tag",name:"tag",label:"标签",placeholder:"",clearable:!0,options:[{label:"诸葛亮",value:"zhugeliang"},{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"},{label:"野核",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{type:"divider"},{type:"text",name:"placeholder",label:"Placeholder",placeholder:"Placeholder"},{type:"divider"},{type:"text",disabled:!0,name:"disabled",label:"禁用状态",placeholder:"这里禁止输入内容"},{type:"divider"},{type:"text",name:"text-sug",label:"文本提示",options:["lixiaolong","zhouxingxing","yipingpei","liyuanfang"],addOn:{type:"text",label:"$"}},{type:"divider"},{type:"text",name:"text-sug-multiple",label:"文本提示多选",multiple:!0,options:["lixiaolong","zhouxingxing","yipingpei","liyuanfang"]},{type:"divider"},{type:"static",name:"static",labelClassName:"text-muted",label:"静态展示",value:"这是静态展示的值"},{type:"divider"},{type:"static",name:"static2",label:"静态展示",value:"这是静态展示的值",copyable:{content:"blabla"}},{type:"divider"},{type:"checkboxes",name:"checkboxes",label:"多选框",options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",disabled:!0,value:3}]},{type:"divider"},{type:"checkboxes",name:"checkboxesInline",label:"多选内联",inline:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"radios",name:"radios",label:"单选",options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",disabled:!0,value:3}]},{type:"divider"},{type:"radios",name:"radiosInline",label:"单选内联",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group",label:"按钮组",description:"类似于单选效果",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group2",label:"按钮组",clearable:!0,description:"可清除",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group3",label:"按钮组",multiple:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}],desc:"可多选"},{type:"divider"},{type:"list",name:"List",label:"List",desc:"也差不多,只是展示方式不一样",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"list",name:"list2",label:"List",desc:"可多选",multiple:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"list",name:"list4",label:"List",imageClassName:"thumb-lg",desc:"支持放张图片",options:[{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:1,label:"图片1"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:2,label:"图片2"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:3,label:"图片3"}]},{type:"divider"},{type:"list",name:"list5",label:"List",desc:"支持文字排版",options:[{value:1,body:'
\n
套餐:C01
\n
CPU:22核
\n
内存:10GB
\n
SSD盘:1024GB
\n
'},{value:2,body:'
\n
套餐:C02
\n
CPU:23核
\n
内存:11GB
\n
SSD盘:1025GB
\n
'},{value:3,disabled:!0,body:'
\n
套餐:C03
\n
CPU:24核
\n
内存:12GB
\n
SSD盘:1026GB
\n
'}]},{type:"divider"},{type:"rating",count:5,value:3,label:"评分",name:"rating",readOnly:!1,half:!1},{type:"divider"},{type:"switch",name:"switch",label:"开关"},{type:"divider"},{type:"checkbox",name:"checkbox",label:"勾选框",option:""},{type:"divider"},{type:"select",name:"type",label:"单选",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2}]},{type:"divider"},{type:"select",name:"type2",label:"多选",multiple:!0,inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2}]},{type:"divider"},{type:"color",name:"color",inline:!0,label:"Color"},{type:"divider"},{type:"date",name:"date",inline:!0,label:"日期"},{type:"divider"},{type:"datetime",name:"datetime",inline:!0,label:"日期+时间"},{type:"divider"},{type:"time",name:"time",inline:!0,label:"时间"},{type:"divider"},{type:"date-range",name:"daterangee",inline:!0,label:"时间范围"},{type:"divider"},[{type:"datetime",name:"starttime",label:"开始时间",maxDate:"${endtime}"},{type:"datetime",name:"endtime",label:"结束时间",minDate:"${starttime}"}],{type:"divider"},{type:"group",label:"时间范围",required:"",gap:"xs",description:"选择自定义后,可以选择日期范围",controls:[{type:"button-group",name:"range1",value:"today",btnActiveLevel:"primary",mode:"inline",options:[{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"近三天",value:"3days"},{label:"近一周",value:"week"},{label:"自定义",value:"custom"}]},{type:"date",name:"starttime1",maxDate:"${endtime1}",visibleOn:"data.range1 == 'custom'",mode:"inline"},{type:"date",name:"endtime1",minDate:"${starttime1}",visibleOn:"data.range1 == 'custom'",mode:"inline"}]},{type:"divider"},{type:"input-group",size:"sm",inline:!0,label:"Icon 组合",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search"},{type:"text",placeholder:"搜索作业ID/名称",inputClassName:"b-l-none p-l-none",name:"jobName"}]},{type:"divider"},{type:"input-group",label:"各种组合",inline:!0,controls:[{type:"select",name:"memoryUnits",options:[{label:"Gi",value:"Gi"},{label:"Mi",value:"Mi"},{label:"Ki",value:"Ki"}],value:"Gi"},{type:"text",name:"memory"},{type:"select",name:"memoryUnits2",options:[{label:"Gi",value:"Gi"},{label:"Mi",value:"Mi"},{label:"Ki",value:"Ki"}],value:"Gi"},{type:"button",label:"Go"}]},{type:"divider"},{type:"image",name:"image",label:"图片"},{type:"divider"},{type:"image",name:"imageCrop",label:"图片带裁剪",crop:{aspectRatio:1.7777777777777777}},{type:"divider"},{type:"image",name:"imageLimit",label:"图片带限制",limit:{width:200,height:200}},{type:"divider"},{type:"textarea",name:"textarea",label:"多行文本"},{type:"divider"},{label:"穿梭器",name:"a",type:"transfer",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",searchable:!0,searchApi:"https://houtai.baidu.com/api/mock2/options/autoComplete2?term=$term",selectMode:"list",sortable:!0,inline:!0},{type:"divider"},{type:"json-editor",name:"json",value:'{\n "a": 1,\n "b": [\n 1,\n 2,\n 3\n ]\n}',label:"Json Editor"},{type:"divider"},{type:"rich-text",name:"html",label:"Rich Text",value:"

Just do IT!

"},{type:"divider"},{label:"时间频率",type:"group",controls:[{name:"repeatCount",type:"range",label:!1,visibleOn:'data.repeatUnit == "year"'},{name:"repeatCount",type:"range",label:!1,max:11,min:1,visibleOn:'data.repeatUnit == "month"'},{name:"repeatCount",type:"range",label:!1,max:29,min:1,visibleOn:'data.repeatUnit == "day"'},{type:"select",name:"repeatUnit",label:!1,value:"none",columnClassName:"v-middle w-ssm no-grow",options:[{label:"不重复",value:"none"},{label:"年",value:"year"},{label:"月",value:"month"},{label:"日",value:"day"}]}]},{type:"divider"},{type:"tree",name:"tree",label:"树",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree",name:"trees",label:"树多选",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree-select",name:"selecttree",label:"树选择器",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree-select",name:"selecttrees",label:"树多选选择器",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"nested-select",name:"nestedSelect",label:"级联选择器",size:"sm",options:[{label:"A",value:"a"},{label:"B",value:"b",children:[{label:"B-1",value:"b-1"},{label:"B-2",value:"b-2"},{label:"B-3",value:"b-3"}]},{label:"C",value:"c"}]},{type:"nested-select",name:"nestedSelectMul",label:"级联选择器多选",size:"sm",multiple:!0,options:[{label:"A",value:"a"},{label:"B",value:"b",children:[{label:"B-1",value:"b-1"},{label:"B-2",value:"b-2"},{label:"B-3",value:"b-3"}]},{label:"C",value:"c"}]},{type:"divider"},{type:"city",name:"city",label:"城市选择器"},{type:"divider"},{type:"matrix",name:"matrix",label:"矩阵开关",rowLabel:"行标题说明",columns:[{label:"列1"},{label:"列2"}],rows:[{label:"行1"},{label:"行2"}]},{type:"divider"},{type:"combo",name:"combo",label:"组合单条",controls:[{name:"a",type:"text",placeholder:"A"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo2",label:"组合多条",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"A"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"form",label:"子表单",name:"subForm",btnLabel:"点击设置",form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"divider"},{type:"form",label:"子表单多条",name:"subForm2",btnLabel:"点击设置",labelField:"a",multiple:!0,form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"divider"},{type:"file",name:"file",label:"文件上传",joinValues:!1},{type:"divider"},{type:"range",name:"range",label:"范围"},{type:"divider"},{type:"button-toolbar",buttons:[{type:"submit",label:"登录"},{type:"reset",label:"重置"},{type:"button",label:"导出",href:"http://www.baidu.com",level:"success"}]}],actions:[{type:"submit",label:"登录"},{type:"reset",label:"重置"},{type:"button",label:"导出",href:"http://www.baidu.com",level:"success"}]}]}}); +;/*!examples/components/Form/Static.jsx*/ +amis.define("d2ec869",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"所有 Form 元素列举",data:{id:1,image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",images:[{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692722/4f3cb4202335.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692722/4f3cb4202335.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692942/d8e4992057f9.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692942/d8e4992057f9.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693148/1314a2a3d3f6.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693148/1314a2a3d3f6.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693379/8f2e79f82be0.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693379/8f2e79f82be0.jpeg"},{image:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693566/552b175ef11d.jpeg@s_0,w_216,l_1,f_jpg,q_80",src:"https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693566/552b175ef11d.jpeg"}]},body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"表单项静态展示",mode:"horizontal",controls:[{type:"static",label:"文本",value:"文本"},{type:"divider"},{type:"static-tpl",label:"模板",tpl:"自己拼接 HTML 取变量 \\${id}: ${id}"},{type:"divider"},{type:"static-date",label:"日期",value:Math.round(Date.now()/1e3)},{type:"divider"},{type:"static-datetime",label:"日期时间",value:Math.round(Date.now()/1e3)},{type:"divider"},{type:"static-mapping",label:"映射",value:Math.floor(5*Math.random()),map:{"*":"-",0:"",1:"",2:"",3:"",4:""}},{type:"divider"},{type:"static-progress",label:"进度",value:66.66},{type:"divider"},{type:"static-image",label:"图片",name:"image",thumbMode:"cover",thumbRatio:"4:3",title:"233",imageCaption:"jfe fjkda fejfkda fejk fdajf dajfe jfkda",popOver:{title:"查看大图",body:'
'}},{type:"divider"},{type:"static-image",label:"图片自带放大",name:"image",thumbMode:"cover",thumbRatio:"4:3",title:"233",imageCaption:"jfe fjkda fejfkda fejk fdajf dajfe jfkda",enlargeAble:!0,originalSrc:"${image}"},{type:"static-images",label:"图片集",name:"images",thumbMode:"cover",thumbRatio:"4:3",enlargeAble:!0,originalSrc:"${src}"},{type:"divider"},{type:"static-json",label:"JSON",value:{a:1,b:2,c:{d:3}}},{type:"divider"},{type:"static",label:"可复制",value:"文本",copyable:{content:"内容,支持变量 ${id}"}},{type:"divider"},{type:"static",name:"text",label:"可快速编辑",value:"文本",quickEdit:!0}]}]}}); +;/*!examples/components/Form/Hint.jsx*/ +amis.define("435ef3d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"其他类型演示",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Hint demo",mode:"horizontal",horizontal:{leftFixed:!0},controls:[{name:"button",type:"button",label:"ID",value:"",size:"xs",hint:"比如输入 a-xxxx-xxx"},{type:"input-group",size:"md",label:"Icon 组合",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search",vendor:"iconfont"},{type:"text",placeholder:"搜索作业ID/名称",inputClassName:"b-l-none p-l-none",name:"jobName"}]},{name:"a",type:"text",label:"ID",value:"",size:"xs",hint:"比如输入 a-xxxx-xxx"},{name:"b",type:"text",label:"ID",value:"",size:"sm",hint:"比如输入 a-xxxx-xxx"},{name:"c",type:"text",label:"ID",value:"",size:"md",hint:"比如输入 a-xxxx-xxx"},{name:"d",type:"text",label:"ID",value:"",size:"lg",hint:"比如输入 a-xxxx-xxx"},{name:"tag",type:"tag",label:"Tag",size:"md",clearable:!0,placeholder:"多个标签以逗号分隔",options:["周小度","杜小度"]}]}]}}); +;/*!examples/components/Form/FieldSetInTabs.jsx*/ +amis.define("90d3d67",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"FieldSet In Tabs",remark:"",body:{type:"form",collapsable:!0,tabs:[{title:"Tab A",fieldSet:[{title:"Group A",tabs:[{title:"SubTab A",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]},{title:"SubTab B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]},{title:"Group B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]},{title:"Tab B",fieldSet:[{title:"Group A",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]},{title:"Group B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]}]}}}); +;/*!examples/components/Form/Combo.jsx*/ +amis.define("4f1646b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Combo 示例",body:[{type:"tabs",tabs:[{title:"基本用法",hash:"basic",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"text",label:"文本",name:"a"},{type:"divider"},{type:"combo",name:"combo1",label:"组合多条多行",multiple:!0,multiLine:!0,value:[{}],controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"],size:"full"}]},{type:"button",label:"独立排序",level:"dark",className:"m-t-n-xs",size:"sm",actionType:"dialog",visibleOn:"data.combo1.length > 1",dialog:{title:"对 Combo 进行 拖拽排序",body:{type:"form",controls:[{type:"combo",name:"combo1",label:!1,multiple:!0,draggable:!0,addable:!1,removable:!1,value:[{}],controls:[{name:"a",type:"static",tpl:"${a} - ${b}"}]}]},actions:[{type:"submit",mergeData:!0,label:"确认",level:"primary"},{type:"button",actionType:"close",label:"取消"}]}},{type:"combo",name:"combo2",label:"组合多条单行",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:"",columnClassName:"w-sm"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo3",label:"组合单条多行",multiLine:!0,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo4",label:"组合单条单行",controls:[{name:"a",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",type:"select",options:["a","b","c"]}]}]}]},{title:"内联样式",hash:"inline",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo11",label:"组合多条多行内联",multiple:!0,multiLine:!0,inline:!0,value:[{}],controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:""},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo22",label:"组合多条单行内联",multiple:!0,inline:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo33",label:"组合单条多行内联",multiLine:!0,inline:!0,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:""},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo44",label:"组合单条单行内联",inline:!0,controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]}]}]},{title:"唯一验证",hash:"unique",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo666",label:"组合多条唯一",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:"",unique:!0},{name:"b",type:"select",options:["a","b","c"],unique:!0}]}]}]},{title:"可拖拽排序",hash:"sortable",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo777",label:"可拖拽排序",multiple:!0,value:[{a:"1",b:"a"},{a:"2",b:"b"}],draggable:!0,controls:[{name:"a",type:"text",placeholder:"文本",unique:!0},{name:"b",type:"select",options:["a","b","c"],unique:!0}]}]}]},{title:"值打平",hash:"flat",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo888",label:"可打平只存储值",multiple:!0,flat:!0,value:["red","pink"],draggable:!0,controls:[{name:"a",type:"color",placeholder:"选取颜色"}]},{type:"static",name:"combo888",label:"当前值",tpl:"
${combo888|json}
"}]}]},{title:"条件",hash:"conditions",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:['

添加时可选择类型,比如这个栗子,可以选择是文本类型还是数字类型

',{type:"combo",name:"combo-conditions1",label:"单选",value:{type:"number"},multiLine:!0,conditions:[{label:"文本",test:'this.type === "text"',scaffold:{type:"text",label:"文本",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"}]},{label:"数字",test:'this.type === "number"',scaffold:{type:"number",label:"数字",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"},{label:"最小值",name:"min",type:"number"},{label:"最大值",name:"max",type:"number"},{label:"步长",name:"step",type:"number"}]}]},{type:"combo",name:"combo-conditions2",label:"多选",value:[{type:"text"}],multiLine:!0,multiple:!0,typeSwitchable:!1,conditions:[{label:"文本",test:'this.type === "text"',scaffold:{type:"text",label:"文本",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"}]},{label:"数字",test:'this.type === "number"',scaffold:{type:"number",label:"数字",name:""},controls:[{label:"名称",name:"label",type:"text"},{label:"字段名",name:"name",type:"text"},{label:"最小值",name:"min",type:"number"},{label:"最大值",name:"max",type:"number"},{label:"步长",name:"step",type:"number"}]}]}]}]},{title:"Tabs",hash:"tabs",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"combo",name:"combo101",label:"组合多条多行",multiple:!0,multiLine:!0,value:[{}],tabsMode:!0,tabsStyle:"card",maxLength:3,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"],size:"full"}]}]}]},{title:"其他",hash:"others",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",wrapWithPanel:!1,className:"m-t",controls:[{type:"text",disabled:!0,label:"父级值",name:"a_super",value:"123"},{type:"combo",name:"combo999",label:"可获取父级数据",multiple:!0,canAccessSuperData:!0,controls:[{name:"a_super",type:"text"}]},{type:"combo",name:"combo9999",label:"显示序号",multiple:!0,controls:[{type:"tpl",tpl:"<%= data.index + 1%>",className:"p-t-xs",mode:"inline"},{name:"a",type:"text"}]}]}]}]}]}}); +;/*!examples/components/Form/SubForm.jsx*/ +amis.define("c6bae66",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"SubForm 示例",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Form elements",mode:"horizontal",controls:[{type:"form",label:"子表单单条",name:"subForm1",btnLabel:"点击设置",form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"form",label:"子表单多条",name:"subForm2",labelField:"a",btnLabel:"点击设置",multiple:!0,form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}}]}]}}); +;/*!examples/components/Form/RichText.jsx*/ +amis.define("c938c8b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"富文本编辑器",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Form elements",controls:[{name:"html",type:"rich-text",label:"富文本",value:"

Just do IT

"}]}]}}); +;/*!examples/components/Form/Editor.jsx*/ +amis.define("9b0994b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Editor",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",controls:[{name:"javascript",type:"editor",label:"Javascript",language:"javascript",value:"console.log(1, 2, 3);"},{name:"html",type:"editor",language:"html",label:"Html",value:"Hello

world

"},{name:"css",type:"editor",language:"css",label:"CSS",value:"body {color: red;}"},{name:"json",type:"editor",language:"json",label:"JSON",value:'{"a": 1, "b": 2}'}]}]}}); +;/*!examples/components/Form/Transfer.jsx*/ +amis.define("6bc539d",function(l,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Transfer 穿梭器 示例",body:[{type:"form",title:"",mode:"horizontal",actions:[{type:"submit",label:"提交"}],controls:[{label:"默认",type:"transfer",name:"transfer1",options:[{label:"诸葛亮",value:"zhugeliang"},{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"},{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]},{label:"分组",type:"transfer",name:"transfer2",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"表格形式",type:"transfer",name:"transfer3",selectMode:"table",columns:[{name:"label",label:"英雄"},{name:"position",label:"位置"}],options:[{label:"诸葛亮",value:"zhugeliang",position:"中单"},{label:"曹操",value:"caocao",position:"上单"},{label:"钟无艳",value:"zhongwuyan",position:"上单"},{label:"李白",value:"libai",position:"打野"},{label:"韩信",value:"hanxin",position:"打野"},{label:"云中君",value:"yunzhongjun",position:"打野"}]},{label:"树型展示",type:"transfer",name:"transfer4",selectMode:"tree",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"级联选择",type:"transfer",name:"transfer5",selectMode:"chained",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"带搜索",type:"transfer",name:"transfer6",selectMode:"chained",searchable:!0,sortable:!0,options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"组合穿梭器",type:"tabs-transfer",name:"a",sortable:!0,selectMode:"tree",searchable:!0,options:[{label:"成员",selectMode:"tree",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"用户",selectMode:"chained",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]}]},{label:"延时加载",type:"transfer",name:"transfer7",selectMode:"tree",deferApi:"https://houtai.baidu.com/api/mock2/form/deferOptions?label=${label}",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",defer:!0},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},,{label:"关联选择模式",type:"transfer",name:"b",sortable:!0,searchable:!0,deferApi:"https://houtai.baidu.com/api/mock2/form/deferOptions?label=${label}",selectMode:"associated",leftMode:"tree",leftOptions:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}],options:[{ref:"zhugeliang",children:[{label:"A",value:"a"}]},{ref:"caocao",children:[{label:"B",value:"b"},{label:"C",value:"c"}]},{ref:"zhongwuyan",children:[{label:"D",value:"d"},{label:"E",value:"e"}]},{ref:"libai",defer:!0},{ref:"hanxin",defer:!0},{ref:"yunzhongjun",defer:!0}]}]}]}}); +;/*!examples/components/Form/Table.jsx*/ +amis.define("4d416d7",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表格编辑",body:{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{type:"combo",name:"colors",label:"Combo",multiple:!0,draggable:!0,multiLine:!0,value:[{color:"green",name:"颜色"}],controls:[{type:"color",name:"color"},{type:"text",name:"name",placeholder:"说明文字"}]},{type:"static",label:"当前值",tpl:"
${colors|json}
"},{type:"table",name:"colors",label:"Table",draggable:!0,columns:[{label:"Color",name:"color",quickEdit:{type:"color",saveImmediately:!0}},{label:"说明文字",name:"name",quickEdit:{type:"text",mode:"inline",saveImmediately:!0}}]},{type:"button",label:"Table2新增一行",target:"table2",actionType:"add"},{type:"table",name:"table2",label:"Table2",editable:!0,addable:!0,removable:!0,draggable:!0,columns:[{name:"a",label:"A"},{name:"b",label:"B",quickEdit:{type:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}}]},{type:"table",name:"table3",label:"Table3(指定第2列只有update时能编辑)",editable:!0,addable:!0,removable:!0,draggable:!0,columns:[{name:"a",label:"A",quickEdit:!0},{name:"b",label:"B",quickEdit:!1,quickEditOnUpdate:{type:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}}]}]}}}); +;/*!examples/components/Form/Picker.jsx*/ +amis.define("48c8d88",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表格编辑",body:{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:["

常规模式

",{type:"divider"},{type:"picker",name:"type",label:"单选",value:1,inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3},{label:"选项4",value:4}]},{type:"picker",name:"type2",label:"多选",multiple:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3},{label:"选项4",value:4}]},{type:"divider"},"

Table 渲染类型

",{type:"divider"},{type:"picker",name:"type3",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"table",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},columns:[{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}},{type:"picker",name:"type4",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"table",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},columns:[{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}},{type:"divider"},"

List 渲染类型

",{type:"divider"},{type:"picker",name:"type5",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"list",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}},{type:"picker",name:"type6",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"list",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}},{type:"divider"},"

Cards 渲染类型

",{type:"divider"},{type:"picker",name:"type7",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"cards",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}},{type:"picker",name:"type8",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"cards",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}}]}}}); +;/*!examples/components/Form/Formula.jsx*/ +amis.define("b382a0f",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"公式示例",body:["

通过公式,可以动态的设置目标值。

",{type:"form",title:"自动应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"number",name:"a",label:"A"},{type:"number",name:"b",label:"B"},{type:"number",name:"sum",label:"和",disabled:!0,description:"自动计算 A + B"},{type:"formula",name:"sum",value:0,formula:"a + b"}]},{type:"form",title:"手动应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"number",name:"a",label:"A"},{type:"number",name:"b",label:"B"},{type:"group",controls:[{type:"number",name:"sum",label:"和",disabled:!0,columnClassName:"col-sm-11"},{type:"button",label:"计算",columnClassName:"col-sm-1 v-bottom",target:"theFormula"}]},{type:"formula",name:"sum",id:"theFormula",value:0,formula:"a + b",initSet:!1,autoSet:!1}]},{type:"form",title:"条件应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"radios",name:"radios",inline:!0,label:"radios",options:[{label:"a",value:"a"},{label:"b",value:"b"}],description:"radios 变化会自动清空 B"},{type:"text",name:"b",label:"B"},{type:"formula",name:"b",value:"some string",formula:"''",condition:"${radios}",initSet:!1}]}]}}); +;/*!examples/components/Form/Custom.jsx*/ +amis.define("78c2565",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});{var n=e("node_modules/tslib/tslib"),r=n.__importDefault(e("node_modules/react/index")),a=e("d019970");!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.onChange;return r.default.createElement("div",null,r.default.createElement("p",null,"这个是个自定义组件。通过注册渲染器的方式实现。"),r.default.createElement("p",null,"当前值:",t),r.default.createElement("a",{className:"btn btn-default",onClick:function(){return n(Math.round(1e4*Math.random()))}},"随机修改"))},t=n.__decorate([a.FormItem({type:"custom"})],t)}(r.default.Component),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.tip;return r.default.createElement("div",null,e||"非 FormItem 类型的渲染器注册, 这种不能修改 form")},t=n.__decorate([a.Renderer({test:/(^|\/)my\-renderer$/})],t)}(r.default.Component)}t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"自定义组件示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{name:"a",children:function(e){var t=e.value,n=e.onChange;return r.default.createElement("div",null,r.default.createElement("p",null,"这个是个自定义组件。最简单直接的方式,不用注册直接使用。"),r.default.createElement("p",null,"当前值:",t),r.default.createElement("a",{className:"btn btn-default",onClick:function(){return n(Math.round(1e4*Math.random()))}},"随机修改"))}},{type:"divider"},{name:"b",type:"custom",label:"自定义FormItem"},{type:"divider"},{type:"my-renderer"}]},{type:"my-renderer",tip:"他能放 controls 里面,也能放外面。"}]}}); +;/*!examples/components/Form/Definitions.jsx*/ +amis.define("efdb183",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",definitions:{options:{type:"combo",multiple:!0,multiLine:!0,controls:[{type:"group",controls:[{label:"名称",name:"label",type:"text",required:!0},{label:"值",name:"value",type:"text",required:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]},queryItem:{type:"combo",multiple:!0,multiLine:!0,typeSwitchable:!1,conditions:[{label:"条件",test:"!data.hasOwnProperty('connect')",scaffold:{},controls:[{type:"group",className:"m-b-none",controls:[{name:"key",type:"text",placeholder:"字段名",required:!0},{name:"type",type:"select",value:0,options:[{label:"int64",value:0},{label:"double64",value:1},{label:"string",value:2},{label:"version",value:3}]},{type:"formula",name:"opt",formula:'""',condition:"${type}"},{name:"opt",type:"select",placeholder:"请选择",required:!0,options:[{label:">",value:">",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"<",value:"<",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"==",value:"=="},{label:">=",value:">=",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"<=",value:"<=",visibleOn:"~[0,1,3].indexOf(this.type)"},{label:"in",value:"in"},{label:"not in",value:"not in"},{label:"!=",value:"!="}]},{name:"val",type:"text",placeholder:"值",required:!0,visibleOn:'~[">", "<", ">=", "<=", "==", "!="].indexOf(this.opt)'},{name:"val",type:"array",required:!0,minLength:1,items:{type:"text",placeholder:"值",required:!0},visibleOn:'~["in", "not in"].indexOf(this.opt)'}]}]},{label:"组合",test:"data.hasOwnProperty('connect')",scaffold:{connect:"&",exprs:[{}]},controls:[{type:"button-group",name:"connect",value:"&",clearable:!1,size:"xs",options:[{label:"AND",value:"&"},{label:"OR",value:"|"}]},{$ref:"queryItem",name:"exprs",minLength:1,value:[{}]}]}]},queryGroup:{type:"combo",multiple:!1,multiLine:!0,controls:[{type:"button-group",name:"connect",value:"&",clearable:!1,size:"sm",options:[{label:"AND",value:"&"},{label:"OR",value:"|"}]},{$ref:"queryItem",name:"exprs",minLength:1,value:[{}]}]}},type:"page",title:"引用",body:["

引用可以用来减少重复的结构定义,最主要的是可以用来实现结构的递归定义

",{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm",mode:"horizontal",controls:[{$ref:"options",name:"options",value:[{label:"选项1",value:"1"}],minLength:1,label:"选项配置"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm",controls:[{$ref:"queryGroup",name:"q",value:{},label:"Query"},{type:"static",name:"q",label:"当前值",tpl:"
${q|json}
"}]}]}}); +;/*!examples/components/CRUD/Table.jsx*/ +amis.define("6f62c3a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"http://amis.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",toolbar:[{type:"button",actionType:"dialog",label:"新增",icon:"fa fa-plus pull-left",primary:!0,dialog:{title:"新增",body:{type:"form",name:"sample-edit-form",api:"post:https://houtai.baidu.com/api/sample",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample?waitSeconds=1",keepItemSelectionOnPageChange:!0,labelTpl:"${id} ${engine}",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:{url:"https://houtai.baidu.com/api/sample/$id",data:{requestUrl:"$requestUrl",apiAlias:"$apiAlias"}},filterTogglable:!0,headerToolbar:["filter-toggler","bulkActions",{type:"tpl",tpl:"定制内容示例:当前有 ${count} 条数据。",className:"v-middle"},{type:"link",href:"https://www.baidu.com",body:"百度一下",htmlTarget:"_parent",className:"v-middle"},{type:"columns-toggler",align:"right"},{type:"drag-toggler",align:"right"},{type:"pagination",align:"right"}],footerToolbar:["statistics","switch-per-page","pagination"],columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",popOver:{body:"Popover 内容:${platform}"},sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0,filterable:{options:[{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}]}},{name:"grade",label:"操作",type:"text",remark:"应用日志可编辑 设置备注",quickEdit:{type:"text",required:!0,saveImmediately:!0}},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",tooltip:"查看",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",tooltip:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",tooltip:"删除",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); +;/*!examples/components/CRUD/ItemActions.jsx*/ +amis.define("3ef3393",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",headerToolbar:["bulkActions",{type:"columns-toggler",className:"pull-right",align:"right"},{type:"drag-toggler",className:"pull-right"},{type:"pagination",className:"pull-right"}],itemActions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}},type:"button"}],columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",type:"text",toggled:!0},{name:"grade",label:"CSS grade",type:"text",toggled:!0}]}}}); +;/*!examples/components/CRUD/Grid.jsx*/ +amis.define("638fc16",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"cards",defaultParams:{perPage:12},filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}}}); +;/*!examples/components/CRUD/List.jsx*/ +amis.define("c9850e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"list",draggable:!0,saveOrderApi:{url:"https://houtai.baidu.com/api/sample/saveOrder"},orderField:"weight",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button",level:"danger"},{label:"批量修改",actionType:"dialog",level:"info",type:"button",dialog:{title:"批量编辑",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0},[{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"}],{name:"version",label:"Engine version"}]}}}}); +;/*!examples/components/CRUD/LoadMore.jsx*/ +amis.define("660d1f0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"list",draggable:!0,saveOrderApi:{url:"https://houtai.baidu.com/api/sample/saveOrder"},orderField:"weight",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button",level:"danger"},{label:"批量修改",actionType:"dialog",level:"info",type:"button",dialog:{title:"批量编辑",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",headerToolbar:["bulkActions"],footerToolbar:["load-more"],listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm pull-left text-muted"},[{name:"browser",label:"Browser",labelClassName:"w-sm pull-left text-muted"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm pull-left text-muted"}],{name:"version",label:"Engine version",labelClassName:"w-sm pull-left text-muted"}]}}}}); +;/*!examples/components/CRUD/Fix.jsx*/ +amis.define("a9122cf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r={type:"table",data:[{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"}].map(function(e,t){return a.__assign(a.__assign({},e),{id:t+1})}),columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,fixed:"left"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0,fixed:"left"},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0,fixed:"right"},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0,fixed:"right"}]};t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"固顶和列固定示例",remark:"bla bla bla",body:[r,"
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
","
分割
",r]}}); +;/*!examples/components/CRUD/Aside.jsx*/ +amis.define("97ac54d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"带边栏联动",aside:{type:"form",wrapWithPanel:!1,target:"window",controls:[{type:"tree",name:"cat",inputClassName:"no-border",submitOnChange:!0,options:[{label:"分类1",value:"cat1"},{label:"分类2",value:"cat2"},{label:"分类3",value:"cat3"},{label:"分类4",value:"cat4"}]}]},toolbar:[{type:"button",actionType:"dialog",label:"新增",primary:!0,dialog:{title:"新增",body:{type:"form",name:"sample-edit-form",api:"post:https://houtai.baidu.com/api/sample",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/$ids",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:130,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); +;/*!examples/components/CRUD/Fields.jsx*/ +amis.define("11455ca",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查列类型汇总",body:{type:"crud",api:"https://houtai.baidu.com/api/mock2/crud/list",columns:[{name:"id",label:"ID",type:"text"},{name:"audio",label:"音频",type:"audio"},{name:"carousel",label:"轮播图",type:"carousel",width:"300"},{name:"text",label:"文本",type:"text"},{type:"image",label:"图片",name:"image",enlargeAble:!0,title:"233",thumbMode:"cover"},{name:"date",type:"date",label:"日期"},{name:"progress",label:"进度",type:"progress"},{name:"boolean",label:"状态",type:"status"},{name:"boolean",label:"开关",type:"switch"},{name:"type",label:"映射",type:"mapping",map:{"*":"其他:${type}",1:"漂亮",2:"开心",3:"惊吓",4:"紧张"}},{name:"list",type:"list",label:"List",placeholder:"-",size:"sm",listItem:{title:"${title}",subTitle:"${description}"}},{name:"json",type:"json",label:"Json"}]}}}); +;/*!examples/components/CRUD/JumpNext.jsx*/ +amis.define("4e9a795",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"操作并下一个",remark:"当存在下一条时,支持直接打开下一条操作。",body:{type:"crud",title:"",api:"https://houtai.baidu.com/api/sample/list",columnsTogglable:!1,columns:[{name:"id",label:"ID",width:20,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",type:"text",toggled:!0},{name:"browser",label:"Browser",type:"text",toggled:!0},{type:"operation",label:"操作",width:130,buttons:[{type:"button",icon:"fa fa-pencil",actionType:"dialog",nextCondition:"true",_nextCondition:'可以设置条件比如: data.grade == "B"',dialog:{title:"编辑",actions:[{type:"button",actionType:"prev",level:"info",visibleOn:"data.hasPrev",label:"上一个"},{type:"button",actionType:"cancel",label:"关闭"},{type:"submit",actionType:"next",visibleOn:"data.hasNext",label:"保存并下一个",level:"primary"},{type:"submit",visibleOn:"!data.hasNext",label:"保存",level:"primary"},{type:"button",actionType:"next",level:"info",visibleOn:"data.hasNext",label:"下一个"}],body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],toggled:!0}]}}}); +;/*!examples/components/CRUD/Keyboards.jsx*/ +amis.define("ddb86b3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Table 全键盘操作示例",remark:"bla bla bla",body:[{type:"plain",className:"text-danger",text:"请通过上下左右键切换单元格,按 `Space` 键进入编辑模式,按 `Enter` 提交编辑,并最后点左上角的全部保存完成操作。"},{type:"crud",className:"m-t",api:"https://houtai.baidu.com/api/sample",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:{type:"text",required:!0,mode:"inline"},type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,quickEdit:{type:"text",required:!0},type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,quickEdit:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{type:"select",options:["A","B","C","D","X"]},type:"text",toggled:!0}]}]}}); +;/*!examples/components/CRUD/Footable.jsx*/ +amis.define("cd82b91",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"开启单条底部展示功能",body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample",footable:{expand:"first",accordion:!0},columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",breakpoint:"*",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],inputClassName:"w-xs",saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,breakpoint:"*",buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); +;/*!examples/components/CRUD/Nested.jsx*/ +amis.define("77adc0a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持多层嵌套,列数据中有 children 字段即可。(建议不超过10层)",body:{type:"crud",api:"https://houtai.baidu.com/api/mock2/crud/table2",saveOrderApi:"https://houtai.baidu.com/api/mock2/form/saveData",expandConfig:{expand:"first",accordion:!0},draggable:!0,columns:[{name:"id",label:"ID",sortable:!0,type:"text",toggled:!0,width:100},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],inputClassName:"w-xs",saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); +;/*!examples/components/CRUD/MergeCell.jsx*/ +amis.define("31055e7",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持自动合并单元格,从左到右,可配置从左侧起多少列内启动自动合并单元格,当前配置 3",body:{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:3,columns:[{name:"engine",label:"Rendering engine"},{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"},{name:"version",label:"Engine version"},{name:"grade",label:"CSS grade"}]}}}); +;/*!examples/components/CRUD/HeaderGroup.jsx*/ +amis.define("aec9e68",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持表头分组,通过在 cloumn 上设置 groupName 实现。",body:{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},columns:[{name:"engine",label:"Rendering engine",groupName:"A"},{name:"browser",label:"Browser",groupName:"A"},{name:"platform",label:"Platform(s)",groupName:"B"},{name:"version",label:"Engine version",groupName:"B"},{name:"grade",label:"CSS grade"}]}}}); +;/*!examples/components/CRUD/HeaderHide.jsx*/ +amis.define("d6f26ec",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"当 column 每一项的 label 值都为空字符时,可以隐藏表头",body:[{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},columns:[{name:"engine",label:""},{name:"browser",label:""},{name:"platform",label:""},{name:"version",label:""},{name:"grade",label:""}]},{type:"divider"},"

搭配合并单元格和列上配置 isHead 可以实现超级表头放在左侧

",{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:1,columns:[{name:"engine",label:"",isHead:!0},{name:"browser",label:""},{name:"platform",label:""},{name:"version",label:""},{name:"grade",label:""}]},{type:"divider"},"

还可以继续使用超级表头

",{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:1,columns:[{name:"engine",label:"",groupName:"A",isHead:!0},{name:"browser",label:"",groupName:"A"},{name:"platform",label:"",groupName:"B"},{name:"version",label:"",groupName:"B"},{name:"grade",label:""}]}]}}); +;/*!examples/components/CRUD/LoadOnce.jsx*/ +amis.define("8624815",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"一次性加载,前端分页,前端排序",body:{type:"crud",loadDataOnce:!0,api:"https://houtai.baidu.com/api/sample?waitSeconds=1",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}}]},columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",type:"text",toggled:!0},{name:"grade",label:"CSS grade",type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",tooltip:"查看",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"

添加其他 Html 片段 需要支持变量替换(todo).

"}]}}},{type:"button",icon:"fa fa-pencil",tooltip:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",tooltip:"删除",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}}); +;/*!examples/components/Sdk/Test.jsx*/ +amis.define("6baaf1a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),l=a.__importDefault(e("06d307c")),i=e("d019970"),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:{name:"Amis Renderer",id:1,email:"xxx@xxx.com"}},t.handleClick=function(){t.setState({data:{name:"Amis Renderer",id:Math.round(1e3*Math.random()),email:"xxx@xxx.com"}})},t}return a.__extends(t,e),t.prototype.renderForm=function(){var e=this;return i.render({title:"",type:"form",controls:[{type:"text",name:"name",label:"Name"},{type:"text",name:"id",label:"Id"},{type:"email",name:"email",label:"Email"},{type:"static",label:"最后更新时间",name:"lastModified"}]},{data:this.state.data,onFailed:function(e,t){console.log("Submit Failed",t,"\n",e)},onSubmit:function(e){console.log("Submit",e)},onChange:function(t,n){e.setState({data:a.__assign(a.__assign({},t),{lastModified:new Date})}),console.log("Diff",n)}})},t.prototype.render=function(){return n.default.createElement("div",{className:"schema-wrapper"},n.default.createElement(l.default,{title:"API 调用 集成在你的 React 应用中"}),n.default.createElement("div",{className:"wrapper"},this.renderForm(),n.default.createElement("button",{onClick:this.handleClick},"随机修改"),n.default.createElement("h3",null,"当前值"),n.default.createElement("pre",null,n.default.createElement("code",null,JSON.stringify(this.state.data,null,2)))))},t}(n.default.Component);t.default=r}); +;/*!examples/components/Form/Schem.jsx*/ +amis.define("324bb13",function(e,t){"use strict";function r(e,t,i){var l=i.required||[],u={},m={},s="text";if("integer"===e.type)s="number","number"==typeof e.minimum&&(u.min=e.minimum);else if("array"===e.type){s="combo";var o=e.items;"object"===o.type?(u.controls=n(o.properties,o),u.multiLine=!0):(s="array",u.inline=!0,u.items=r(o,"item",e))}return"number"==typeof e.minimum&&(m.minimum=e.minimum),a.__assign({name:t,type:s,required:!!~l.indexOf(t),label:e.title||e.description,desc:e.title&&e.description,value:e.default,validations:m},u)}function n(e,t){var n=Object.keys(e);return n.map(function(n){return r(e[n],n,t)})}function i(e){if("object"!==e.type)throw new Error("JSONSchme2AMisSchema 只支持 object 转换");return{title:e.title,type:"form",mode:"horizontal",controls:n(e.properties,e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=a.__importDefault(e("node_modules/react/index")),u=a.__importDefault(e("06d307c")),m=e("d019970"),s={title:"Person",type:"object",properties:{firstName:{title:"First Name",type:"string"},lastName:{type:"string"},age:{description:"Age in years",type:"integer",minimum:0},tag:{type:"array",description:"Tags","default":["IT"],items:{type:"text"}},clients:{type:"array",description:"Tags",items:{type:"object",properties:{firstName:{title:"First Name",type:"string"},lastName:{type:"string"}}}}},required:["firstName","lastName"]},o=i(s),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:{}},t}return a.__extends(t,e),t.prototype.renderForm=function(){var e=this;return m.render({type:"page",title:"",body:a.__assign(a.__assign({},o),{onChange:function(t){return e.setState({data:a.__assign({},t)})}})})},t.prototype.render=function(){return l.default.createElement("div",null,l.default.createElement(u.default,{title:"JSON Schema Form"}),l.default.createElement("div",{className:"wrapper"},l.default.createElement("div",null,l.default.createElement("h3",null,"Schema"),l.default.createElement("pre",null,l.default.createElement("code",null,JSON.stringify(s,null,2)))),l.default.createElement("div",null,l.default.createElement("h3",null,"Form"),this.renderForm()),l.default.createElement("div",null,l.default.createElement("h3",null,"Data"),l.default.createElement("pre",null,l.default.createElement("code",null,JSON.stringify(this.state.data,null,2))))))},t}(l.default.Component);t.default=d}); +;/*!examples/components/Dialog/Simple.jsx*/ +amis.define("8c8c87b",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"page",title:"Dialog",body:[{type:"button-toolbar",className:"m-b",buttons:[{type:"button",label:"打开弹框",actionType:"dialog",dialog:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框"}},{type:"button",label:"多级弹框",actionType:"dialog",dialog:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框",actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"dialog",label:"再弹一个",dialog:{title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"dialog",label:"来吧",level:"info",dialog:{title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"confirm",label:"不弹了",primary:!0}]}}]}}]}},{type:"button",label:"弹个表单",actionType:"dialog",dialog:{title:"在弹框中的表单",closeOnEsc:!0,actions:[{label:"取消",actionType:"close",type:"button"},{label:"确认",actionType:"confirm",type:"button",level:"primary"},{label:"提交不关闭",actionType:"submit",close:!1,type:"button",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",level:"primary"},{label:"保存不关闭",actionType:"ajax",type:"button",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=4",level:"info"},{type:"button",label:"Feedback",close:!0,actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"点击我后会发送一个请求,请求回来后,弹出一个框。",feedback:{title:"操作成功",body:"xxx 已操作成功"}}],body:{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]}}},{type:"button",label:"再弹个表单",actionType:"dialog",dialog:{title:"在弹框中的表单",actions:[{label:"取消",actionType:"close",type:"button"},{label:"确认",actionType:"confirm",type:"button",level:"primary",disabledOn:"!data.rememberMe"}],body:{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"checkbox",name:"rememberMe",label:"勾上我才可以确认"}]}}},{type:"button",label:"Feedback",actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"点击我后会发送一个请求,请求回来后,弹出一个框。",feedback:{title:"操作成功",closeOnEsc:!0,body:"xxx 已操作成功"}},{type:"button",label:"Feedback2",actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"可以根据条件弹出,比如这个栗子,看当前时间戳是否可以整除3",feedback:{visibleOn:"!(this.date % 3)",title:"操作成功",body:"当前时间戳: ${date}"}}]},{type:"button-toolbar",className:"m-l-none",buttons:[{type:"button",label:"sm 弹框",actionType:"dialog",dialog:{size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"标准 弹框",actionType:"dialog",dialog:{title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"lg 弹框",actionType:"dialog",dialog:{size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"xl 弹框",actionType:"dialog",dialog:{size:"xl",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"full 弹框",actionType:"dialog",dialog:{size:"full",title:"全屏弹框",body:"弹框尽可能占满,内容部分滚动。"}}]}]}}); +;/*!examples/components/Dialog/Drawer.jsx*/ +amis.define("aa693dc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"Drawer",body:[{type:"button-toolbar",className:"block",buttons:[{type:"button",label:"左侧弹出-极小框",actionType:"drawer",drawer:{position:"left",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-小框",actionType:"drawer",drawer:{position:"left",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-中框",actionType:"drawer",drawer:{position:"left",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-大框",actionType:"drawer",drawer:{position:"left",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-超大",actionType:"drawer",level:"danger",drawer:{position:"left",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"右侧弹出-极小框",level:"success",actionType:"drawer",drawer:{position:"right",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-小框",level:"success",actionType:"drawer",drawer:{position:"right",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-中框",level:"success",actionType:"drawer",drawer:{position:"right",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-大框",level:"success",actionType:"drawer",drawer:{position:"right",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-超大",level:"danger",actionType:"drawer",drawer:{size:"xl",position:"right",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"顶部弹出-极小框",actionType:"drawer",level:"info",drawer:{position:"top",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-小框",level:"info",actionType:"drawer",drawer:{position:"top",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-中框",actionType:"drawer",level:"info",drawer:{position:"top",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-大框",actionType:"drawer",level:"info",drawer:{position:"top",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出 - 超大",level:"danger",actionType:"drawer",drawer:{position:"top",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"底部弹出-极小框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-小框",level:"primary",actionType:"drawer",drawer:{position:"bottom",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-中框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-大框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-超大",level:"danger",actionType:"drawer",drawer:{position:"bottom",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"多级弹框",actionType:"drawer",level:"danger",drawer:{title:"提示",body:"这是个简单的弹框",closeOnEsc:!0,actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"drawer",label:"再弹一个",drawer:{position:"left",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"drawer",label:"来吧",level:"info",drawer:{position:"right",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"confirm",label:"可以了",primary:!0}]}}]}}]}},{type:"button",label:"交叉测试",actionType:"drawer",className:"m-l-xs",level:"danger",drawer:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框",actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"dialog",closeOnEsc:!0,label:"再弹一个",dialog:{position:"left",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"drawer",label:"来吧",level:"info",drawer:{position:"right",title:"弹框中的弹框",body:"如果你想,可以无限弹下去",closeOnEsc:!0,actions:[{type:"button",actionType:"confirm",label:"可以了",primary:!0}]}}]}}]}},{type:"button",label:"可拉拽调整大小",actionType:"drawer",level:"danger",drawer:{title:"提示",closeOnEsc:!0,resizable:!0,body:"这是个简单的弹框"}}]}]}}); +;/*!examples/components/Linkage/Page.jsx*/ +amis.define("8744105",function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",type:"page",title:"地址栏变化自动更新",initApi:"https://houtai.baidu.com/api/mock2/form/initData?id=${id}",aside:{type:"wrapper",size:"xs",className:"",body:{type:"nav",stacked:!0,links:[{label:"页面1",to:"?id=1"},{label:"页面2",children:[{label:"页面2-1",to:"?id=2-1"},{label:"页面2-2",to:"?id=2-2"},{label:"页面2-3(disabled)",disabled:!0,to:"?id=2-3"}]},{label:"页面3",to:"?id=3"}]}},body:['

注意 page 渲染器的 `initApi` 中有变量跟地址栏中变量关联,只要值发生了变化,就会重新拉取一次 initApi。

','

这些数据是通过 initApi 拉取到的数据。 `\\$infoId`: ${infoId|default:空}

']}}); +;/*!examples/components/Linkage/Form.jsx*/ +amis.define("34cc2e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单与表单之间的联动",aside:{type:"form",target:"detailForm",className:"wrapper-sm",wrapWithPanel:!1,controls:[{type:"text",placeholder:"关键字",name:"keywords",addOn:{type:"submit",label:"搜索",primary:!0}},'请在此输入内容后点击搜索']},body:{name:"detailForm",type:"form",mode:"horizontal",title:"",initApi:"https://houtai.baidu.com/api/mock2/form/initData?keywords=${keywords}",actions:[],controls:["Form 模型除了用来提交数据外,还比较适合用来做详情数据的展示",{type:"divider"},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"输入信息",type:"static",labelClassName:"text-muted",name:"info"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}}); +;/*!examples/components/Linkage/Form2.jsx*/ +amis.define("1697a1b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单初始数据自动重新拉取",body:[{type:"form",mode:"horizontal",title:"监听表单内部的修改",initApi:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",actions:[],controls:['initApi 中有变量,且变量的值发生了变化了,则该表单就会重新初始数据。',{type:"divider"},{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",inline:!0,options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}],description:'请修改这里看效果'},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]},{type:"grid",columns:[{type:"form",mode:"horizontal",title:"自动填充",actions:[],controls:[{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",inline:!0,options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}],description:'请修改这里看效果'},'
如果 initApi 已经暂用,用 service一样可以拉取值填充,同样以下 api 值发生变化时会自动填充。
',{type:"service",api:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",body:{controls:[{label:"名称",type:"text",labelClassName:"text-muted",name:"name"},{label:"作者",type:"text",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"datetime",labelClassName:"text-muted",inputFormat:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}]},{type:"form",mode:"horizontal",title:"手动填充",actions:[],controls:[{type:"group",label:"数据模板",labelClassName:"text-muted",controls:[{type:"select",name:"tpl",value:"tpl1",mode:"inline",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{mode:"inline",type:"button",label:"获取",level:"dark",actionType:"reload",target:"theService"}]},'
如果不想自动填充,自动填充,则把参数放在 data 里面,就不会监控变化自动拉取了,同时把 servcie 的初始拉取关掉,然后来个刷新目标组件的按钮。
',{type:"service",name:"theService",api:{method:"get",url:"https://houtai.baidu.com/api/mock2/form/initData",data:{tpl:"${tpl}"}},body:{controls:[{label:"名称",type:"text",labelClassName:"text-muted",name:"name"},{label:"作者",type:"text",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"datetime",labelClassName:"text-muted",inputFormat:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}]}]},{type:"divider"},{type:"form",title:"条件表单",target:"detailForm",submitOnInit:!0,mode:"inline",controls:[{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{type:"submit",label:"提交",primary:!0}]},{name:"detailForm",type:"form",mode:"horizontal",title:"响应表单",initApi:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",initFetchOn:"data.tpl",actions:[],controls:['initApi 中有变量,且变量的值发生了变化了,则该表单就会重新初始数据。',{type:"divider"},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]}]}}); +;/*!examples/components/Linkage/CRUD.jsx*/ +amis.define("84cfdf0",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单与列表之间的联动",body:[{title:"",type:"form",mode:"inline",target:"list",wrapWithPanel:!1,className:"m-b",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",clearable:!0,addOn:{type:"submit",icon:"fa fa-search",level:"primary"}}]},{type:"crud",name:"list",api:"https://houtai.baidu.com/api/sample",mode:"list",listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}]}}); +;/*!examples/components/Linkage/Options.jsx*/ +amis.define("2b09ee3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单选线之间的远程联动",body:{type:"form",mode:"horizontal",title:"",actions:[],controls:['

表单选项可以设置 source 通过 API 远程拉取,同时如果 source 中有变量的话,变量值发生变化就会重新拉取,达到联动效果。

',{type:"divider"},{label:"选项1",type:"select",labelClassName:"text-muted",name:"a",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{label:"选项2",type:"select",labelClassName:"text-muted",name:"b",inline:!0,source:"https://houtai.baidu.com/api/mock2/options/level2?a=${a}",initFetchOn:"data.a"},{label:"选项3",type:"select",labelClassName:"text-muted",name:"c",inline:!0,visibleOn:"data.b",source:"https://houtai.baidu.com/api/mock2/options/level3?b=${b}"}]}}}); +;/*!examples/components/Linkage/OptionsLocal.jsx*/ +amis.define("9aaa8bb",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"表单选线的联动",body:{type:"form",mode:"horizontal",title:"",actions:[],controls:['

表单选项内也能联动,通过配置 visibleOn、hiddenOn或者disabledOn

',{type:"divider"},{label:"选项1",type:"list",multiple:!1,labelClassName:"text-muted",name:"a",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{label:"选项2",type:"radios",labelClassName:"text-muted",name:"b",inline:!0,options:[{label:"选项1",value:1,disabledOn:"data.a == 1"},{label:"选项2",value:2,hiddenOn:"data.a == 2"},{label:"选项3",value:3,visibleOn:"data.a == 3"}]}]}}}); +;/*!examples/components/Wizard.jsx*/ +amis.define("083a456",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单向导",body:[{type:"wizard",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",initApi:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"name",label:"名称",type:"text",required:!0}]},{title:"Step 2",controls:[{name:"email2",label:"邮箱",type:"email",required:!0}]},{title:"Step 3",controls:["这是最后一步了"]}]},{type:"wizard",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",mode:"vertical",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"email",label:"邮箱",type:"email",required:!0}]},{title:"Step 2",controls:[{name:"email2",label:"邮箱",type:"email",required:!0}]},{title:"Step 3",controls:["这是最后一步了"]}]},{type:"wizard",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"email",label:"邮箱",type:"email",required:!0}],api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"},{title:"第二步",controls:[{name:"test1",type:"email",label:"Email",value:"test@test.com"},{type:"divider"},{type:"text",name:"test2",label:"必填示例",required:!0},{type:"divider"},{type:"text",name:"test3",placeholder:"可选"}],initApi:"https://houtai.baidu.com/api/mock2/form/initForm",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"},{title:"确定",controls:["最后一步了,确认要提交吗?"],api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"}]}]}}); +;/*!examples/components/Chart.jsx*/ +amis.define("91e25e6",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"图表示例",body:[{type:"grid",columns:[{type:"panel",title:"本地配置示例 支持交互",name:"chart-local",body:[{type:"chart",config:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:[[0,0],[.03487823687206265,1],[.06958655048003272,2],[.10395584540887964,3],[.13781867790849958,4],[.17101007166283433,5],[.2033683215379001,6],[.2347357813929454,7],[.26495963211660245,8],[.2938926261462365,9],[.3213938048432697,10]]}],animationDuration:2e3},clickAction:{actionType:"dialog",dialog:{title:"详情",body:[{type:"tpl",tpl:"当前选中值 ${value|json}"},{type:"chart",api:"https://houtai.baidu.com/api/mock2/chart/chart1"}]}}}]},{type:"panel",title:"远程图表示例(返回值带function)",name:"chart-remote",body:[{type:"chart",api:"https://houtai.baidu.com/api/mock2/chart/chart1"}]}]},{type:"panel",title:"Form+chart组合",body:[{type:"form",title:"过滤条件",target:"chart1,chart2",submitOnInit:!0,className:"m-b",wrapWithPanel:!1,mode:"inline",controls:[{type:"date",label:"开始日期",name:"starttime",value:"-8days",maxDate:"${endtime}"},{type:"date",label:"结束日期",name:"endtime",value:"-1days",minDate:"${starttime}"},{type:"text",label:"条件",name:"name",addOn:{type:"submit",label:"搜索",level:"primary"}}],actions:[]},{type:"divider"},{type:"grid",className:"m-t-lg",columns:[{type:"chart",name:"chart1",initFetch:!1,api:"https://houtai.baidu.com/api/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"},{type:"chart",name:"chart2",initFetch:!1,api:"https://houtai.baidu.com/api/mock2/chart/chart2?name=$name"}]}]}]}}); +;/*!examples/components/Horizontal.jsx*/ +amis.define("07c797d",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"HBox & Grid",type:"page",body:[{type:"plain",tpl:"Grid 请参考 bootstrap 的 grid 布局",inline:!1,className:"h3 m-b-xs"},{type:"grid",columns:[{type:"tpl",tpl:"sm-2",sm:2,className:"bg-info",inline:!1},{type:"tpl",tpl:"sm-4",sm:4,className:"bg-success",inline:!1},{type:"tpl",tpl:"sm-6",sm:6,className:"bg-primary",inline:!1}]},{type:"plain",tpl:"Hbox",inline:!1,className:"h3 m-t m-b-xs"},{type:"hbox",columns:[{type:"tpl",tpl:"平均分配",className:"bg-info",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-success",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-primary",inline:!1}]},{type:"plain",tpl:"Hbox 部分定宽",inline:!1,className:"h3 m-t m-b-xs"},{type:"hbox",columns:[{type:"tpl",tpl:"w-xs",className:"bg-info",inline:!1,columnClassName:"w-xs"},{type:"tpl",tpl:"w-sm",className:"bg-info lter",inline:!1,columnClassName:"w-sm"},{type:"tpl",tpl:"w",className:"bg-info dk",inline:!1,columnClassName:"w"},{type:"tpl",tpl:"平均分配",className:"bg-success",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-primary",inline:!1}]},{type:"plain",tpl:"示例",inline:!1,className:"h3 m-t m-b-xs"},{type:"grid",columns:[{type:"panel",title:"面板1",className:"Panel--danger",body:"内容",sm:4},{type:"panel",title:"面板2",className:"Panel--primary",body:"内容",sm:8}]}]}}); +;/*!examples/components/Video.jsx*/ +amis.define("9a6615a",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"视频播放器",body:['

另外还支持直播流, flv 和 hls 格式

',{type:"video",autoPlay:!1,rates:[1,1.5,2],jumpFrame:!0,jumpBufferDuration:5,frames:{"00:10":"","00:20":"","00:30":""},src:"https://amis.bj.bcebos.com/amis/2019-12/1577157317579/trailer_hd.mp4",poster:"https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png"}]}}); +;/*!examples/components/Audio.jsx*/ +amis.define("62761e6",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"音频播放器",body:[{type:"audio",autoPlay:!1,rates:[1,1.5,2],src:"https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3"},{type:"form",title:"",actions:[],className:"b v-middle inline w-lg h-xs",controls:[{type:"card",className:"v-middle w inline no-border",header:{title:"歌曲名称",subTitle:"专辑名称",description:"description",avatarClassName:"pull-left thumb-md avatar m-r no-border",avatar:"http://hiphotos.baidu.com/fex/%70%69%63/item/c9fcc3cec3fdfc03ccabb38edd3f8794a4c22630.jpg"}},{type:"audio",className:"v-middle no-border",src:"https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3",controls:["play"]}]}]}}); +;/*!examples/components/Carousel.jsx*/ +amis.define("09f8832",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"轮播图",data:{carousel0:["https://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg","https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png","https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"],carousel1:[{html:'
carousel data in form
'},{image:"https://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"}]},body:[{type:"grid",columns:[{type:"panel",title:"直接页面配置",body:{type:"carousel",controlsTheme:"light",height:"300",options:[{image:"https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png"},{html:'
carousel data
'},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"}]}},{type:"panel",title:"使用itemSchema配置",body:{type:"carousel",name:"carousel0",controlsTheme:"dark",height:"300",itemSchema:{type:"tpl",tpl:'
'}}}]},{type:"grid",columns:[{type:"form",title:"表单内展示",sm:6,controls:[{type:"carousel",controlsTheme:"dark",name:"carousel1",label:"carousel",animation:"slide",height:"300"}]}]}]}}); +;/*!examples/components/Tasks.jsx*/ +amis.define("1aa7d40",function(a,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"异步任务",body:['

',{type:"tasks",name:"tasks",items:[{label:"hive 任务",key:"hive",status:4,remark:'查看详情日志。'},{label:"小流量",key:"partial",status:4},{label:"全量",key:"full",status:4}]},{type:"tasks",name:"tasks",className:"b-a bg-white table-responsive m-t",checkApi:"https://houtai.baidu.com/api/mock2/task"}]}}); +;/*!examples/components/Services/Data.jsx*/ +amis.define("45bc56b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"动态加载数据",body:['除了用 Page、CRUD、Form 或者 Wizard 能拉取数据外,还可以通过 Service 专门拉取数据,然后丢给其他类型的渲染器渲染。',{type:"form",title:"条件输入",className:"m-t",wrapWithPanel:!1,target:"service1",mode:"inline",controls:[{type:"text",name:"keywords",placeholder:"关键字",addOn:{type:"button",icon:"fa fa-search",actionType:"submit",level:"primary"}}]},{name:"service1",type:"service",className:"m-t",api:"https://houtai.baidu.com/api/mock2/service/data?keywords=${keywords}",body:["当前关键字是 ${keywords},当前时间是: ${date|date:YYYY-MM-DD HH\\:mm}",{type:"table",className:"m-t",source:"${table1}",columns:[{name:"id",label:"ID",type:"text"},{name:"text",label:"文本",type:"text"},{type:"image",label:"图片",name:"image",popOver:{title:"查看大图",body:'
'}},{name:"date",type:"date",label:"日期"}]},{type:"table",source:"${table2}",columns:[{name:"progress",label:"进度",type:"progress"},{name:"boolean",label:"状态",type:"status"},{name:"boolean",label:"开关",type:"switch"},{name:"type",label:"映射",type:"mapping",map:{"*":"其他:${type}",1:"漂亮",2:"开心",3:"惊吓",4:"紧张"}},{name:"list",type:"list",label:"List",placeholder:"-",listItem:{title:"${title}",subTitle:"${description}"}}]}]}]}}); +;/*!examples/components/Services/Schema.jsx*/ +amis.define("65f0d23",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"动态加载页面",body:['可以通过 serviceschemaApi 动态控制内容。',{type:"form",title:"条件输入",panelClassName:"panel-info m-t",target:"service1",mode:"inline",submitOnInit:!0,controls:[{label:"加载页面类型",required:!0,type:"button-group",submitOnChange:!0,value:"crud",name:"type",options:[{label:"Crud",value:"crud"},{label:"Form",value:"form"},{label:"Tabs",value:"tabs"}]}]},{name:"service1",type:"service",className:"m-t",initFetchSchema:!1,schemaApi:"https://houtai.baidu.com/api/mock2/service/schema?type=$type"}]}}); +;/*!examples/components/Services/Form.jsx*/ +amis.define("2c4132a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"动态加载表单中的部分",body:['同样通过 serviceschemaApi 来加载部分内容,当然也可以全部由它来加载',{type:"form",panelClassName:"Panel--info m-t",target:"service1",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",fieldSet:[{title:"基本信息",controls:[{type:"text",label:"字段一",name:"filed1"},{type:"text",label:"字段二",name:"filed2"}]},{title:"其他信息",controls:[{name:"tpl",type:"select",label:"模板",inline:!0,required:!0,value:"tpl1",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{type:"service",className:"m-t",initFetchSchemaOn:"data.tpl",schemaApi:"https://houtai.baidu.com/api/mock2/service/form?tpl=$tpl"}]}]}]}}); +;/*!examples/components/IFrame.jsx*/ +amis.define("4c89be2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"IFrame 可以用来嵌入其他网站",body:[{type:"form",mode:"inline",target:"window",title:"",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"info",icon:"fa fa-search pull-left"}}]},{type:"iframe",className:"b-a",src:"https://www.baidu.com/s?wd=${keywords|raw}",height:500}]}}); +;/*!examples/components/Tabs/Normal.jsx*/ +amis.define("524d91c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"选项卡示例",subTitle:"所有选项卡都在当前页面中,包括默认、line、card以及radio模式",body:[{type:"tabs",tabs:[{title:"选项卡1",hash:"tab1",body:"选项卡内容1"},{title:"选项卡2",hash:"tab2",body:{type:"form",panelClassName:"panel-primary",controls:[{type:"text",name:"a",label:"文本"}]}},{title:"选项卡3",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",clearable:!0,addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},columns:[{name:"id",label:"ID",width:20},{name:"engine",label:"Rendering engine"},{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"},{name:"version",label:"Engine version"},{name:"grade",label:"CSS grade"},{type:"operation",label:"操作",width:100,buttons:[]}]}}]},{type:"divider"},{type:"tabs",mode:"line",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]},{type:"divider"},{type:"tabs",mode:"card",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]},{type:"divider"},{type:"tabs",mode:"radio",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]}]}}); +;/*!examples/components/Tabs/Form.jsx*/ +amis.define("46b14bf",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"page",title:"表单中选项卡分组",subTitle:"",body:["

多个 controls 可以通过 tabs 来分组展示,表单将作为一个整体提交。

",{type:"form",title:"",tabs:[{title:"选项卡1",hash:"tab1",controls:[{type:"text",label:"文本1",name:"a"}]},{title:"选项卡2",hash:"tab2",controls:[{type:"text",label:"文本2",name:"b"}]},{title:"选项卡3",hash:"tab3",controls:[{type:"text",label:"文本3",name:"c"}]}]}]}}); +;/*!examples/components/Tabs/Tab1.jsx*/ +amis.define("a5238eb",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡1页面",body:["

也可以多个页面,利用导航nav渲染期模拟 tabs 的效果。这样可以让 url 更加友好,而不是只能用 hash。

",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"./tab1"},{label:"选项卡2",to:"./tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"./tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:"选项卡1的内容"}]}}); +;/*!examples/components/Tabs/Tab2.jsx*/ +amis.define("23a8cd0",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡2页面",body:["

也可以多个页面,利用导航nav渲染期模拟 tabs 的效果。

",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"./tab1"},{label:"选项卡2",to:"./tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"./tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:"选项卡2的内容"}]}}); +;/*!examples/components/Tabs/Tab3.jsx*/ +amis.define("a8b725e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"选项卡3页面",body:["

也可以多个页面,利用导航nav渲染期模拟 tabs 的效果。

",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"./tab1"},{label:"选项卡2",to:"./tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"./tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:{type:"chart",config:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:[[0,0],[.03487823687206265,1],[.06958655048003272,2],[.10395584540887964,3],[.13781867790849958,4],[.17101007166283433,5],[.2033683215379001,6],[.2347357813929454,7],[.26495963211660245,8],[.2938926261462365,9],[.3213938048432697,10]]}],animationDuration:2e3}}}]}}); +;/*!examples/components/Example.tsx*/ +amis.define("9413ffe",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.examples=void 0;var t=e("node_modules/tslib/tslib"),l=t.__importDefault(e("node_modules/react/index")),o=t.__importDefault(e("ec59a60")),p=t.__importDefault(e("da274e0")),f=t.__importDefault(e("2d1fe26")),m=t.__importDefault(e("71fbd58")),u=t.__importDefault(e("0fa6650")),d=t.__importDefault(e("65795e0")),n=t.__importDefault(e("1e9ff20")),r=t.__importDefault(e("3d2e3d4")),c=t.__importDefault(e("6f89d30")),i=t.__importDefault(e("ee53c68")),s=t.__importDefault(e("c9cebe3")),_=t.__importDefault(e("d2ec869")),b=t.__importDefault(e("435ef3d")),h=t.__importDefault(e("90d3d67")),x=t.__importDefault(e("4f1646b")),D=t.__importDefault(e("c6bae66")),g=t.__importDefault(e("c938c8b")),v=t.__importDefault(e("9b0994b")),k=t.__importDefault(e("6bc539d")),y=t.__importDefault(e("4d416d7")),N=t.__importDefault(e("48c8d88")),S=t.__importDefault(e("b382a0f")),F=t.__importDefault(e("78c2565")),P=t.__importDefault(e("efdb183")),j=t.__importDefault(e("6f62c3a")),E=t.__importDefault(e("3ef3393")),w=t.__importDefault(e("638fc16")),z=t.__importDefault(e("c9850e3")),C=t.__importDefault(e("660d1f0")),M=t.__importDefault(e("a9122cf")),T=t.__importDefault(e("97ac54d")),A=t.__importDefault(e("11455ca")),I=t.__importDefault(e("4e9a795")),J=t.__importDefault(e("ddb86b3")),K=t.__importDefault(e("cd82b91")),O=t.__importDefault(e("77adc0a")),U=t.__importDefault(e("31055e7")),q=t.__importDefault(e("aec9e68")),B=t.__importDefault(e("d6f26ec")),G=t.__importDefault(e("8624815")),H=t.__importDefault(e("6baaf1a")),L=t.__importDefault(e("324bb13")),Q=t.__importDefault(e("8c8c87b")),R=t.__importDefault(e("aa693dc")),V=t.__importDefault(e("8744105")),W=t.__importDefault(e("34cc2e3")),X=t.__importDefault(e("1697a1b")),Y=t.__importDefault(e("84cfdf0")),Z=t.__importDefault(e("2b09ee3")),$=t.__importDefault(e("9aaa8bb")),ea=t.__importDefault(e("083a456")),aa=t.__importDefault(e("91e25e6")),ta=t.__importDefault(e("07c797d")),la=t.__importDefault(e("9a6615a")),oa=t.__importDefault(e("62761e6")),pa=t.__importDefault(e("09f8832")),fa=t.__importDefault(e("1aa7d40")),ma=t.__importDefault(e("45bc56b")),ua=t.__importDefault(e("65f0d23")),da=t.__importDefault(e("2c4132a")),na=t.__importDefault(e("4c89be2")),ra=t.__importDefault(e("524d91c")),ca=t.__importDefault(e("46b14bf")),ia=t.__importDefault(e("a5238eb")),sa=t.__importDefault(e("23a8cd0")),_a=t.__importDefault(e("a8b725e")),ba="/examples",ha="";ba="",ha="/amis",a.examples=[{prefix:function(e){var a=e.classnames;return l.default.createElement("li",{className:a("AsideNav-divider")})},label:"示例",children:[{label:"页面",icon:"glyphicon glyphicon-th",badge:3,badgeClassName:"bg-info",children:[{label:"简单页面",path:"/examples/pages/simple",component:o.default(p.default)},{label:"初始化出错",path:"/examples/pages/error",component:o.default(f.default)},{label:"表单页面",path:"/examples/pages/form",component:o.default(m.default)}]},{label:"表单",icon:"fa fa-list-alt",children:[{label:"表单展示模式",path:"/examples/form/mode",component:o.default(u.default)},{label:"所有类型汇总",path:"/examples/form/full",component:o.default(s.default)},{label:"静态展示",path:"/examples/form/static",component:o.default(_.default)},{label:"输入提示",path:"/examples/form/hint",component:o.default(b.default)},{label:"FieldSet",path:"/examples/form/fieldset",component:o.default(d.default)},{label:"Tabs",path:"/examples/form/tabs",component:o.default(n.default)},{label:"FieldSet Tabs 组合",path:"/examples/form/fields-tabs",component:o.default(h.default)},{label:"动态数据",path:"/examples/form/remote",component:o.default(r.default)},{label:"显隐状态联动",path:"/examples/form/reaction",component:o.default(c.default)},{label:"表单验证",path:"/examples/form/validation",component:o.default(i.default)},{label:"组合类型",path:"/examples/form/combo",component:o.default(x.default)},{label:"穿梭器",path:"/examples/form/transfer",component:o.default(k.default)},{label:"多功能选择器",path:"/examples/form/picker",component:o.default(N.default)},{label:"子表单",path:"/examples/form/sub-form",component:o.default(D.default)},{label:"JSon Schema表单",path:"/examples/form/json-schema",component:L.default},{label:"富文本",path:"/examples/form/rich-text",component:o.default(g.default)},{label:"代码编辑器",path:"/examples/form/ide",component:o.default(v.default)},{label:"自定义组件",path:"/examples/form/custom",component:o.default(F.default)},{label:"表格编辑",path:"/examples/form/table",component:o.default(y.default)},{label:"公式示例",path:"/examples/form/formula",component:o.default(S.default)},{label:"引用",path:"/examples/form/definitions",component:o.default(P.default)}]},{label:"增删改查",icon:"fa fa-table",children:[{label:"表格模式",path:"/examples/crud/table",component:o.default(j.default)},{label:"卡片模式",path:"/examples/crud/grid",component:o.default(w.default)},{label:"列表模式",path:"/examples/crud/list",component:o.default(z.default)},{label:"加载更多模式",path:"/examples/crud/load-more",component:o.default(C.default)},{label:"操作交互显示",path:"/examples/crud/item-actions",component:o.default(E.default)},{label:"列类型汇总",path:"/examples/crud/columns",component:o.default(A.default)},{label:"可折叠",path:"/examples/crud/footable",component:o.default(K.default)},{label:"嵌套",path:"/examples/crud/nested",component:o.default(O.default)},{label:"合并单元格",path:"/examples/crud/merge-cell",component:o.default(U.default)},{label:"表头分组",path:"/examples/crud/header-group",component:o.default(q.default)},{label:"表头隐藏",path:"/examples/crud/header-hide",component:o.default(B.default)},{label:"带边栏",path:"/examples/crud/aside",component:o.default(T.default)},{label:"固定表头/列",path:"/examples/crud/fixed",component:o.default(M.default)},{label:"键盘操作编辑",path:"/examples/crud/keyboards",component:o.default(J.default)},{label:"操作并下一个",path:"/examples/crud/jump-next",component:o.default(I.default)},{label:"一次性加载",path:"/examples/crud/load-once",component:o.default(G.default)}]},{label:"弹框",icon:"fa fa-bomb",children:[{label:"对话框",path:"/examples/dialog/simple",component:o.default(Q.default)},{label:"侧边弹出",path:"/examples/dialog/drawer",component:o.default(R.default)}]},{label:"选项卡",icon:"fa fa-clone",children:[{label:"常规选项卡",path:"/examples/tabs/normal",component:o.default(ra.default)},{label:"表单中选项卡分组",path:"/examples/tabs/form",component:o.default(ca.default)},{label:"选项卡页面1",path:"/examples/tabs/tab1",component:o.default(ia.default)},{label:"选项卡页面2",path:"/examples/tabs/tab2",component:o.default(sa.default)},{label:"选项卡页面3",path:"/examples/tabs/tab3",component:o.default(_a.default)}]},{label:"联动",icon:"fa fa-bolt",children:[{label:"地址栏变化自动更新",path:"/examples/linkpage/page",component:o.default(V.default)},{label:"选项联动",path:"/examples/linkpage/options-local",component:o.default($.default)},{label:"选项远程联动",path:"/examples/linkpage/options",component:o.default(Z.default)},{label:"表单和表单联动",path:"/examples/linkpage/form",component:o.default(W.default)},{label:"表单自动更新",path:"/examples/linkpage/form2",component:o.default(X.default)},{label:"表单和列表联动",path:"/examples/linkpage/crud",component:o.default(Y.default)}]},{label:"动态加载",icon:"fa fa-magic",children:[{label:"动态加载数据",path:"/examples/services/data",component:o.default(ma.default)},{label:"动态加载页面",path:"/examples/services/schema",component:o.default(ua.default)},{label:"动态加载部分表单",path:"/examples/services/form",component:o.default(da.default)}]},{label:"向导",icon:"fa fa-desktop",path:"/examples/wizard",component:o.default(ea.default)},{label:"排版",icon:"fa fa-columns",path:"/examples/horizontal",component:o.default(ta.default)},{label:"图表",icon:"fa fa-bar-chart",path:"/examples/chart",component:o.default(aa.default)},{label:"轮播图",icon:"fa fa-pause",path:"/examples/carousel",component:o.default(pa.default)},{label:"音频",icon:"fa fa-volume-up",path:"/examples/audio",component:o.default(oa.default)},{label:"视频",icon:"fa fa-video-camera",path:"/examples/video",component:o.default(la.default)},{label:"异步任务",icon:"fa fa-tasks",path:"/examples/task",component:o.default(fa.default)},{label:"IFrame",icon:"fa fa-cloud",path:"/examples/iframe",component:o.default(na.default)},{label:"SDK",icon:"fa fa-rocket",path:"/examples/sdk",component:H.default}]}];var xa=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(o,e),o.prototype.componentDidMount=function(){this.props.setNavigations(a.examples)},o.prototype.componentDidUpdate=function(){this.props.setNavigations(a.examples)},o.prototype.render=function(){return l.default.createElement(l.default.Fragment,null,l.default.cloneElement(this.props.children,t.__assign(t.__assign({},this.props.children.props),{theme:this.props.theme,classPrefix:this.props.classPrefix,locale:this.props.locale})))},o}(l.default.PureComponent);a.default=xa}); +;/*!examples/components/App.tsx*/ +amis.define("5f106aa",function(e,t){"use strict";function a(e,t){void 0===e&&(e=g);var a=[];return t.forEach(function(t){t.children&&c.mapTree(t.children,function(t){t.path&&t.component?a.push(i.default.createElement(u.Route,{key:a.length+1,path:"/"===t.path[0]?b+t.path:""+b+e+"/"+t.path,component:t.component})):t.path&&t.getComponent&&a.push(i.default.createElement(u.Route,{key:a.length+1,path:"/"===t.path[0]?b+t.path:""+b+e+"/"+t.path,getComponent:t.getComponent}))})}),a}function l(e){var t=e.pathPrefix;return g=t||g,i.default.createElement(u.Router,{history:u.browserHistory},i.default.createElement(u.Route,{component:y},i.default.createElement(u.Redirect,{from:b+"/",to:b+"/docs/index"}),i.default.createElement(u.Redirect,{from:"/examples",to:"/examples/pages/simple"}),i.default.createElement(u.Redirect,{from:"/docs",to:"/docs/index"}),i.default.createElement(u.Route,{path:"/docs",component:f.default},a("/docs",f.docs)),i.default.createElement(u.Route,{path:"/examples",component:v.default},a("/examples",v.examples))),i.default.createElement(u.Route,{path:"*",component:o.default}))}Object.defineProperty(t,"__esModule",{value:!0}),t.App=void 0;var n=e("node_modules/tslib/tslib"),i=n.__importDefault(e("node_modules/react/index")),o=n.__importDefault(e("bb0be5b")),s=n.__importDefault(e("4c26fd3")),r=n.__importDefault(e("4e7c54b")),d=e("1953fc1"),c=e("9a80175");e("ee0cecb");var u=e("node_modules/react-router/lib/index"),m=n.__importDefault(e("d57879c")),h=n.__importDefault(e("c6757fd")),p=n.__importDefault(e("node_modules/classnames/index")),f=n.__importStar(e("85a7530")),v=n.__importStar(e("9413ffe")),g="/examples",b="";g="",b="/amis";var E=[{label:"默认主题",ns:"a-",value:"default"},{label:"百度云舍",ns:"cxd-",value:"cxd"},{label:"Dark",ns:"dark-",value:"dark"}],_=[{label:"中文",value:"zh-cn"},{label:"English",value:"en"}],y=function(e){function t(t){var a=e.call(this,t)||this;return a.state={asideFolded:"true"===localStorage.getItem("asideFolded"),offScreen:!1,headerVisible:!0,themeIndex:0,themes:E,theme:E[localStorage.getItem("themeIndex")||0],locale:localStorage.getItem("locale")||"",navigations:[],scrollTop:0},a.toggleAside=a.toggleAside.bind(a),a.setAsideFolded=a.setAsideFolded.bind(a),a.setHeaderVisible=a.setHeaderVisible.bind(a),a.setNavigations=a.setNavigations.bind(a),a}return n.__extends(t,e),t.prototype.componentDidMount=function(){"default"!==this.state.theme.value&&(document.querySelectorAll("link[title]").forEach(function(e){e.disabled=!0}),document.querySelector("link[title="+this.state.theme.value+"]").disabled=!1,"dark"===this.state.theme.value&&document.querySelector("body").classList.add("dark")),document.addEventListener("scroll",this.handleScroll.bind(this))},t.prototype.componentDidUpdate=function(e,t){var a=this.props;if(t.theme.value!==this.state.theme.value&&(document.querySelector("link[title="+t.theme.value+"]").disabled=!0,document.querySelector("link[title="+this.state.theme.value+"]").disabled=!1),a.location.pathname!==e.location.pathname){this.setState({offScreen:!1},function(){return window.scrollTo(0,0)});var l=a.location.pathname;_hmt&&_hmt.push(["_trackPageview",l])}},t.prototype.componentWillUnmount=function(){document.removeEventListener("scroll",this.handleScroll.bind(this))},t.prototype.handleScroll=function(e){this.setState({scrollTop:e.target.scrollingElement.scrollTop})},t.prototype.toggleAside=function(){this.setAsideFolded(!this.state.asideFolded)},t.prototype.setAsideFolded=function(e){void 0===e&&(e=!1),localStorage.setItem("asideFolded",JSON.stringify(e)),this.setState({asideFolded:e})},t.prototype.setHeaderVisible=function(e){void 0===e&&(e=!1),this.setState({headerVisible:e})},t.prototype.renderAside=function(){return i.default.createElement(r.default,{renderLink:function(){return null}})},t.prototype.setNavigations=function(e){this.setState({navigations:e})},t.prototype.toggleOpen=function(e,t){e.stopPropagation(),e.preventDefault();var a=c.mapTree(this.state.navigations,function(e){var a,l=null!==(a=e.isOpen)&&void 0!==a?a:Array.isArray(e.children)&&e.children.length&&!!~e.children.findIndex(function(e){return e.path===location.pathname});return n.__assign(n.__assign({},e),{isOpen:t.label===e.label?!l:l})});this.setState({navigations:a})},t.prototype.renderHeader=function(){var e=this,t=this.props.location,a=this.state.theme;return"/edit"===t.pathname?i.default.createElement("div",{id:"headerBar",className:"box-shadow bg-dark"},i.default.createElement("div",{className:a.ns+"Layout-brand"},"AMis 可视化编辑器")):i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:a.ns+"Layout-brandBar"},i.default.createElement("div",{className:a.ns+"Layout-brand"},i.default.createElement("i",{className:"fa fa-paw"}),i.default.createElement("span",{className:"hidden-folded m-l-sm"},"AMIS"))),i.default.createElement("div",{className:a.ns+"Layout-headerBar"},i.default.createElement("ul",{className:a.ns+"Layout-headerBar-links pull-left"},i.default.createElement(u.Link,{to:"/docs",activeClassName:"is-active"},"文档"),i.default.createElement(u.Link,{to:"/examples",activeClassName:"is-active"},"示例")),i.default.createElement("div",{className:"hidden-xs p-t pull-right m-l-sm"},i.default.createElement(m.default,{clearable:!1,theme:this.state.theme.value,value:this.state.locale||"zh-cn",options:_,onChange:function(t){e.setState({locale:t.value}),localStorage.setItem("locale",t.value)}})),i.default.createElement("div",{className:"hidden-xs p-t pull-right"},i.default.createElement(m.default,{clearable:!1,theme:this.state.theme.value,value:this.state.theme,options:this.state.themes,onChange:function(t){e.setState({theme:t}),localStorage.setItem("themeIndex",e.state.themes.indexOf(t)),document.querySelector("body").classList["dark"===t.value?"add":"remove"]("dark")}}))),i.default.createElement("div",{className:a.ns+"Layout-searchBar"},i.default.createElement(h.default,{theme:this.state.theme.value})),i.default.createElement("a",{className:"gh-icon",href:"https://github.com/baidu/amis",target:"_blank"},i.default.createElement("i",{className:"fa fa-github"})))},t.prototype.renderNavigation=function(e,t){var a=this,l=location.pathname;return e.map(function(e){var o=e.path,s=Array.isArray(e.children)&&e.children.length,r=e.isOpen||e.isOpen!==!1&&s&&!!~e.children.findIndex(function(e){return e.path===l});return i.default.createElement("div",{key:e.label,className:p.default("Doc-navigation-item",{"is-active":o===location.pathname,"is-top":!t,"is-open":r})},i.default.createElement(u.Link,{onClick:function(t){u.browserHistory.push(""+(o||s&&e.children[0].path)),!r&&a.toggleOpen(t,e)}},e.label,s?i.default.createElement("i",{className:"iconfont icon-xialajiantou "+(r?"":"is-flipped"),onClick:function(t){return a.toggleOpen(t,e)}}):null),r?a.renderNavigation(e.children||[],n.__assign(n.__assign({},e),{path:o})):null)})},t.prototype.render=function(){var e=this,t=this.state.theme,a=this.state.navigations;return i.default.createElement(s.default,{theme:t.value,boxed:!0,offScreen:this.state.offScreen,header:this.state.headerVisible?this.renderHeader():null},i.default.createElement(d.ToastComponent,{theme:t.value,locale:this.state.locale}),i.default.createElement(d.AlertComponent,{theme:t.value,locale:this.state.locale}),i.default.createElement("div",{className:"Doc"},i.default.createElement("div",{className:"Doc-nav"},i.default.createElement("div",{className:"Doc-navigation"},a.map(function(t){return i.default.createElement("div",{className:"Doc-navigationGroup",key:t.label},i.default.createElement("div",{className:"Doc-navigationGroup-name"},t.label||"其他"),e.renderNavigation(t.children))}))),i.default.createElement("div",{className:"Backtop "+(this.state.scrollTop>450?"visible":""),onClick:function(){return scrollTo({top:0})}},i.default.createElement("i",{className:"fa fa-rocket"})),i.default.cloneElement(this.props.children,n.__assign(n.__assign({},this.props.children.props),{setNavigations:this.setNavigations,setAsideFolded:this.setAsideFolded,setHeaderVisible:this.setHeaderVisible,theme:t.value,classPrefix:t.ns,locale:this.state.locale}))))},t=n.__decorate([u.withRouter,n.__metadata("design:paramtypes",[Object])],t)}(i.default.PureComponent);t.App=y,t.default=l}); +;/*!examples/index.jsx*/ +amis.define("ca626e1",function(e,t){"use strict";function o(e){l.render(a.default.createElement(n.default,null),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.bootstrap=void 0;var d=e("node_modules/tslib/tslib"),a=d.__importDefault(e("node_modules/react/index")),l=e("node_modules/react-dom/index"),n=d.__importDefault(e("5f106aa"));t.bootstrap=o}); +;/*!examples/polyfills/Object.assign.ts*/ +amis.define("d89b1f2",function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),t=1;t0?1:-1)*Math.floor(Math.abs(n)):n},t=Math.pow(2,53)-1,o=function(r){var n=e(r);return Math.min(Math.max(n,0),t)};return function(r){var e=this,t=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a,i=arguments.length>1?arguments[1]:void 0;if("undefined"!=typeof i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2])}for(var u,f=o(t.length),c=n(e)?Object(new e(f)):new Array(f),h=0;f>h;)u=t[h],c[h]=i?"undefined"==typeof a?i(u,h):i.call(a,u,h):u,h+=1;return c.length=f,c}}())}); +;/*!examples/polyfills/Array.find.ts*/ +amis.define("5982bcf",function(){Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(r){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),t=e.length>>>0;if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var n=arguments[1],i=0;t>i;){var o=e[i];if(r.call(n,o,i,e))return o;i++}return void 0},configurable:!0,writable:!0})}); +;/*!examples/polyfills/cloest.ts*/ +amis.define("ba41ebe",function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})}); +;/*!examples/polyfills/index.ts*/ +amis.define("835699d",function(e,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),e("d89b1f2"),e("804ccfd"),e("5982bcf"),e("ba41ebe"),e("node_modules/promise/polyfill"),e("node_modules/es6-symbol/implement")}); +;/*!examples/embed.tsx*/ +amis.define("2ab197b",function(e,t){"use strict";function n(e,t,n,c){if("string"==typeof e&&(e=document.querySelector(e)),!e)return void console.error("选择器不对,页面上没有此元素");if("BODY"===e.tagName){var l=document.createElement("div");e.appendChild(l),e=l}e.classList.add("amis-scope");var f,p=function(e){e=e||"";var t=window.location;e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),r=e.indexOf("#"),o=~n?e.substring(0,n):~r?e.substring(0,r):e,a=~n?e.substring(n,~r?r:void 0):"",i=~r?e.substring(r):t.hash;if(o){if("/"!=o[0]&&!/^https?\:\/\//.test(o)){var s=t.pathname,u=s.split("/");u.pop();for(var d=void 0;d=/^\.\.?\//.exec(o);)"../"===d[0]&&u.pop(),o=o.substring(d[0].length);o=u.concat(o).join("/")}}else o=t.pathname;return o+a+i},m=function(e){return function(t){var n=t.data;if(c&&c.responseAdpater){var o=(e.url,e.url.indexOf("?")),a=~o?u.default.parse(e.url.substring(o)):{},i=r.__assign(r.__assign({},e),{query:a,body:e.data});n=c.responseAdpater(e,n,a,i)}else n.hasOwnProperty("errno")?(n.status=n.errno,n.msg=n.errmsg):n.hasOwnProperty("no")&&(n.status=n.no,n.msg=n.error);var s=r.__assign(r.__assign({},t),{data:n});return s}};return a.render(o.default.createElement("div",{className:"amis-routes-wrapper"},o.default.createElement(d.ToastComponent,{position:c&&c.toastPosition||"top-right",closeButton:!1,timeOut:5e3,extendedTimeOut:3e3}),o.default.createElement(d.AlertComponent,{container:e}),d.render(t,r.__assign(r.__assign({},n),{scopeRef:function(e){return f=e}}),r.__assign({getModalContainer:function(){return document.querySelector(".amis-scope")},notify:function(e,t){return d.toast[e]?d.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:d.alert,confirm:d.confirm,updateLocation:function(e,t){return"goBack"===e?window.history.back():void(t||(location.href=p(e)))},isCurrentUrl:function(e){var t=p(e),n=window.location,r=t,o="",a=t.indexOf("?");if(~a&&(r=t.substring(0,a),o=t.substring(a)),o){if(r!==n.pathname||!n.search)return!1;var i=u.default.parse(o.substring(1)),s=u.default.parse(n.search.substring(1));return Object.keys(i).every(function(e){return i[e]===s[e]})}return r===n.pathname?!0:!1},jumpTo:function(e,t){return"goBack"===e?window.history.back():(e=p(e),t&&"url"===t.actionType?void(t.blank===!1?window.location.href=e:window.open(e)):void(/^https?:\/\//.test(e)?window.location.replace(e):location.href=e))},fetcher:function(e){var t=e.url,n=e.method,r=e.data,o=e.responseType,a=e.config,s=e.headers;return a=a||{},a.withCredentials=!0,o&&(a.responseType=o),a.cancelExecutor&&(a.cancelToken=new i.default.CancelToken(a.cancelExecutor)),a.headers=s||{},a.method=n,"get"===n&&r?a.params=r:r&&r instanceof FormData||!r||"string"==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),a.headers["Content-Type"]="application/json"),r&&(a.data=r),i.default(t,a).then(m(e))},isCancel:function(e){return i.default.isCancel(e)},copy:function(e,t){void 0===t&&(t={});var n=s.default(e,t);return n&&t.shutup!==!0&&d.toast.info("内容已拷贝到剪切板"),n},richTextToken:"",affixOffsetBottom:0},c))),e),f}Object.defineProperty(t,"__esModule",{value:!0}),t.embed=void 0;var r=e("node_modules/tslib/tslib");e("835699d");var o=r.__importDefault(e("node_modules/react/index")),a=e("node_modules/react-dom/index"),i=r.__importDefault(e("node_modules/axios/index")),s=r.__importDefault(e("node_modules/copy-to-clipboard/index")),u=r.__importDefault(e("node_modules/qs/lib/index")),d=e("d019970");t.embed=n}); +;/*!examples/loader.ts*/ +amis.define("3be4436",function(){function e(){for(var e=[],o=0;o
'}],n.default.FE.LANGUAGE.zh_cn={translation:{"Type something":"输入一些内容",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Insert:"插入",Delete:"删除",Cancel:"取消",OK:"确定",Back:"背部",Remove:"去掉",More:"更多",Update:"更新",Style:"风格","Font Family":"字体","Font Size":"字号",Colors:"颜色",Background:"背景",Text:"文字","Paragraph Format":"格式",Normal:"正常",Code:"代码","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Paragraph Style":"段落样式","Inline Style":"内联样式",Align:"对齐方式","Align Left":"左对齐","Align Center":"居中","Align Right":"右对齐","Align Justify":"两端对齐",None:"无","Ordered List":"编号列表","Unordered List":"项目符号","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Insert Link":"插入链接","Open in new tab":"开启在新标签页","Open Link":"打开链接","Edit Link":"编辑链接",Unlink:"删除链接","Choose Link":"选择链接","Insert Image":"插入图片","Upload Image":"上传图片","By URL":"通过网址",Browse:"浏览","Drop image":"图像拖放","or click":"或点击","Manage Images":"管理图像",Loading:"载入中",Deleting:"删除",Tags:"标签","Are you sure? Image will be deleted.":"你确定吗?图像将被删除。",Replace:"更换",Uploading:"上传","Loading image":"导入图像",Display:"显示",Inline:"排队","Break Text":"断开文本","Alternate Text":"备用文本","Change Size":"尺寸变化",Width:"宽度",Height:"高度","Something went wrong. Please try again.":"出了些问题。 请再试一次。","Insert Video":"插入视频","Embedded Code":"嵌入式代码","Insert Table":"插入表格","Table Header":"表头","Remove Table":"删除表","Table Style":"表格样式","Horizontal Align":"水平对齐方式",Row:"行","Insert row above":"在上方插入","Insert row below":"在下方插入","Delete row":"删除行",Column:"列","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cell:"单元格","Merge cells":"合并单元格","Horizontal split":"水平分割","Vertical split":"垂直分割","Cell Background":"单元格背景","Vertical Align":"垂直对齐方式",Top:"最佳",Middle:"中间",Bottom:"底部","Align Top":"顶部对齐","Align Middle":"中间对齐","Align Bottom":"底部对齐","Cell Style":"单元格样式","Upload File":"上传文件","Drop file":"文件拖放",Emoticons:"表情","Grinning face":"脸上笑嘻嘻","Grinning face with smiling eyes":"","Face with tears of joy":"笑嘻嘻的脸,含笑的眼睛","Smiling face with open mouth":"笑脸张开嘴","Smiling face with open mouth and smiling eyes":"笑脸张开嘴微笑的眼睛","Smiling face with open mouth and cold sweat":"笑脸张开嘴,一身冷汗","Smiling face with open mouth and tightly-closed eyes":"笑脸张开嘴,紧紧闭着眼睛","Smiling face with halo":"笑脸晕","Smiling face with horns":"微笑的脸角","Winking face":"眨眼表情","Smiling face with smiling eyes":"面带微笑的眼睛","Face savoring delicious food":"面对品尝美味的食物","Relieved face":"面对如释重负","Smiling face with heart-shaped eyes":"微笑的脸,心脏形的眼睛","Smiling face with sunglasses":"笑脸太阳镜","Smirking face":"面对面带笑容","Neutral face":"中性面","Expressionless face":"面无表情","Unamused face":"一脸不快的脸","Face with cold sweat":"面对冷汗","Pensive face":"沉思的脸","Confused face":"面对困惑","Confounded face":"该死的脸","Kissing face":"面对接吻","Face throwing a kiss":"面对投掷一个吻","Kissing face with smiling eyes":"接吻脸,含笑的眼睛","Kissing face with closed eyes":"接吻的脸闭着眼睛","Face with stuck out tongue":"面对伸出舌头","Face with stuck out tongue and winking eye":"面对伸出舌头和眨动的眼睛","Face with stuck out tongue and tightly-closed eyes":"面对伸出舌头和紧闭的眼睛","Disappointed face":"面对失望","Worried face":"面对担心","Angry face":"愤怒的脸","Pouting face":"面对噘嘴","Crying face":"哭泣的脸","Persevering face":"怎奈脸","Face with look of triumph":"面带看的胜利","Disappointed but relieved face":"失望,但脸上释然","Frowning face with open mouth":"面对皱着眉头张口","Anguished face":"面对痛苦","Fearful face":"可怕的脸","Weary face":"面对厌倦","Sleepy face":"面对困","Tired face":"疲惫的脸","Grimacing face":"狰狞的脸","Loudly crying face":"大声哭脸","Face with open mouth":"面对张开嘴","Hushed face":"安静的脸","Face with open mouth and cold sweat":"","Face screaming in fear":"面对张开嘴,一身冷汗","Astonished face":"面对惊讶","Flushed face":"红扑扑的脸蛋","Sleeping face":"熟睡的脸","Dizzy face":"面对眩","Face without mouth":"脸上没有嘴","Face with medical mask":"面对医疗口罩",Break:"破",Subscript:"下标",Superscript:"上标",Fullscreen:"全屏","Insert Horizontal Line":"插入水平线","Clear Formatting":"格式化删除",Undo:"撤消",Redo:"重复","Select All":"全选","Code View":"代码视图",Quote:"引用",Increase:"增加引用",Decrease:"删除引用","Quick Insert":"快插"},direction:"ltr"}}); +;/*!examples/loadMonacoEditor.ts*/ +amis.define("b961301",function(s,a){"use strict";function e(s){var a="https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/loader_e45cf1a.js",e=amis.require.loadJs(c(a));e.onload=function(){return i(window.require,s)}}function c(s){return s}function i(s,a){var e={"vs/nls":{availableLanguages:{"*":"zh-cn"}},paths:{vs:"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main_147bfda.js".replace(/\/vs\/.*$/,""),"vs/base/worker/workerMain":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/base/worker/workerMain_3c46a35.js","vs/basic-languages/apex/apex":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/apex/apex_d4ae4dd.js","vs/basic-languages/azcli/azcli":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/azcli/azcli_1b0ef3f.js","vs/basic-languages/clojure/clojure":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/clojure/clojure_903e94b.js","vs/basic-languages/bat/bat":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/bat/bat_9d67e6c.js","vs/basic-languages/coffee/coffee":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/coffee/coffee_ed86fc7.js","vs/basic-languages/cpp/cpp":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/cpp/cpp_4f3f527.js","vs/basic-languages/csharp/csharp":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/csharp/csharp_6d526d9.js","vs/basic-languages/css/css":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/css/css_9b5d23e.js","vs/basic-languages/dockerfile/dockerfile":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/dockerfile/dockerfile_ae15175.js","vs/basic-languages/fsharp/fsharp":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/fsharp/fsharp_899ae6c.js","vs/basic-languages/go/go":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/go/go_c9012ae.js","vs/basic-languages/handlebars/handlebars":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/handlebars/handlebars_3b4ba3a.js","vs/basic-languages/html/html":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/html/html_cae751f.js","vs/basic-languages/ini/ini":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/ini/ini_d156643.js","vs/basic-languages/java/java":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/java/java_d1eb191.js","vs/basic-languages/javascript/javascript":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/javascript/javascript_b58352d.js","vs/basic-languages/less/less":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/less/less_a309479.js","vs/basic-languages/lua/lua":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/lua/lua_c8b58eb.js","vs/basic-languages/markdown/markdown":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/markdown/markdown_7c5bc2f.js","vs/basic-languages/msdax/msdax":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/msdax/msdax_d5bc491.js","vs/basic-languages/objective-c/objective-c":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/objective-c/objective-c_1fec7dc.js","vs/basic-languages/php/php":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/php/php_b5da4f5.js","vs/basic-languages/postiats/postiats":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/postiats/postiats_20abb55.js","vs/basic-languages/powershell/powershell":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/powershell/powershell_d8ffc04.js","vs/basic-languages/pug/pug":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/pug/pug_a30d087.js","vs/basic-languages/python/python":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/python/python_5acdbdf.js","vs/basic-languages/r/r":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/r/r_079ab6e.js","vs/basic-languages/razor/razor":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/razor/razor_7730201.js","vs/basic-languages/redis/redis":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/redis/redis_26463cb.js","vs/basic-languages/redshift/redshift":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/redshift/redshift_13e3c26.js","vs/basic-languages/ruby/ruby":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/ruby/ruby_3457027.js","vs/basic-languages/rust/rust":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/rust/rust_13de2a3.js","vs/basic-languages/sb/sb":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/sb/sb_902b8f0.js","vs/basic-languages/scheme/scheme":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/scheme/scheme_3e818b9.js","vs/basic-languages/scss/scss":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/scss/scss_709c082.js","vs/basic-languages/shell/shell":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/shell/shell_c765862.js","vs/basic-languages/solidity/solidity":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/solidity/solidity_ed089ae.js","vs/basic-languages/sql/sql":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/sql/sql_0164782.js","vs/basic-languages/st/st":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/st/st_7af06b2.js","vs/basic-languages/swift/swift":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/swift/swift_ac12a14.js","vs/basic-languages/typescript/typescript":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/typescript/typescript_b47f441.js","vs/basic-languages/vb/vb":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/vb/vb_ee7309d.js","vs/basic-languages/xml/xml":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/xml/xml_9dfe430.js","vs/basic-languages/yaml/yaml":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/yaml/yaml_02e29fb.js","vs/editor/editor.main":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main_147bfda.js","vs/editor/editor.main.css":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main_9e19735.css","vs/editor/editor.main.nls":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main.nls_5589f51.js","vs/editor/editor.main.nls.zh-cn":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main.nls.zh-cn_1c18a71.js","vs/language/typescript/tsMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/typescript/tsMode_3dc8f50.js","vs/language/typescript/tsWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/typescript/tsWorker_a0d7746.js","vs/language/json/jsonMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/json/jsonMode_999a98d.js","vs/language/json/jsonWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/json/jsonWorker_1d6259b.js","vs/language/html/htmlMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/html/htmlMode_825d6c1.js","vs/language/html/htmlWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/html/htmlWorker_9d83687.js","vs/language/css/cssMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/css/cssMode_b2e5099.js","vs/language/css/cssWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/css/cssWorker_0c03514.js"}};Object.keys(e.paths).forEach(function(s){e.paths[s]=c(e.paths[s].replace(/\.js$/,""))}),s.config(e),/^(https?:)?\/\//.test(e.paths.vs)?window.MonacoEnvironment={getWorkerUrl:function(){return"data:text/javascript;charset=utf-8,"+encodeURIComponent("\n self.MonacoEnvironment = {\n baseUrl: '"+e.paths.vs+"',\n paths: "+JSON.stringify(e.paths)+"\n };\n importScripts('https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/base/worker/workerMain_3c46a35.js');")}}:delete window.MonacoEnvironment,s(["vs/editor/editor.main"],function(s){a(s)})}Object.defineProperty(a,"__esModule",{value:!0}),a.__mod__async__load=void 0,a.__mod__async__load=e}); +;/*!examples/components/Play.jsx*/ +amis.define("9b1667d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),a=e("6ae88e0"),s=e("d019970"),i=o.__importDefault(e("node_modules/axios/index")),r=o.__importDefault(e("node_modules/react-frame-component/lib/index")),l=o.__importDefault(e("node_modules/strip-json-comments/index")),d=o.__importDefault(e("997c87d")),h='{\n "$schema": "https://houtai.baidu.com/v2/schemas/page.json#",\n "type": "page",\n "title": "Title",\n "body": "Body",\n "aside": "Aside",\n "toolbar": "Toolbar"\n}',u={none:"",body:'{\n "type": "page",\n "body": SCHEMA_PLACEHOLDER\n }',form:'{\n "type": "page",\n "body": {\n "title": "",\n "type": "form",\n "autoFocus": false,\n "api": "https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=1",\n "mode": "horizontal",\n "controls": SCHEMA_PLACEHOLDER,\n "submitText": null,\n "actions": []\n }\n }',"form-item":'{\n "type": "page",\n "body": {\n "title": "",\n "type": "form",\n "mode": "horizontal",\n "autoFocus": false,\n "controls": [\n SCHEMA_PLACEHOLDER\n ],\n "submitText": null,\n "actions": []\n }\n }'},c=function(e){function t(t){var n=e.call(this,t)||this;n.state=null,n.startX=0,n.oldContents="";var s=n.buildSchema(t.code||h,t);n.state={asideWidth:t.asideWidth||Math.max(300,.3*window.innerWidth),schema:s,schemaCode:JSON.stringify(s,null,2)},n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.removeWindowEvents=n.removeWindowEvents.bind(n),n.handleChange=n.handleChange.bind(n),n.schemaProps={style:{height:"100%"}},n.env={updateLocation:function(){},fetcher:function(e){return e=o.__assign({dataType:"json"},e),"json"===e.dataType&&e.data&&(e.data=JSON.stringify(e.data),e.headers=e.headers||{},e.headers["Content-Type"]="application/json"),i.default[e.method](e.url,e.data,e)},notify:function(e,t){return a.toast[e]?a.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)}};var r=[].slice.call(document.head.querySelectorAll("link,style")).map(function(e){return e.outerHTML});return n.frameTemplate=""+r.join("")+"
",n}return o.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.code!==e.code){var o=this.buildSchema(e.code||h,e);this.setState({schema:o,schemaCode:JSON.stringify(o,null,2)})}},t.prototype.componentDidMount=function(){this.props.setAsideFolded&&this.props.setAsideFolded(!0)},t.prototype.componentWillUnmount=function(){this.props.setAsideFolded&&this.props.setAsideFolded(!1)},t.prototype.buildSchema=function(e,t){void 0===t&&(t=this.props);var o=t.location.query;try{var n=o.scope||t.scope;return n&&u[n]&&(e=u[n].replace("SCHEMA_PLACEHOLDER",e)),e=l.default(e).replace(/('|")raw:/g,"$1"),JSON.parse(e)}catch(a){console.error(this.formatMessage(a.message,e))}return{}},t.prototype.formatMessage=function(e,t){if(/position\s?(\d+)$/.test(e)){var o=t.substring(0,parseInt(RegExp.$1,10)).split(/\n|\r\n|\r/);e="Json 语法错误,请检测。出错位置:"+o.length+",列:"+o[o.length-1].length+"。"}return e},t.prototype.renderPreview=function(){var e=this.state.schema,t=o.__assign(o.__assign({},this.schemaProps),{theme:this.props.theme,locale:this.props.locale});return this.props.useIFrame?n.default.createElement(r.default,{width:"100%",height:"100%",frameBorder:0,initialContent:this.frameTemplate},s.render(e,t,this.env)):s.render(e,t,this.env)},t.prototype.handleChange=function(e){this.setState({schemaCode:e});try{var t=JSON.parse(e);this.setState({schema:t})}catch(o){}},t.prototype.handleMouseDown=function(e){return this.startX=e.clientX,this.startWidth=this.state.asideWidth,window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove),!1},t.prototype.handleMouseMove=function(e){var t=this.startX-e.clientX;e.preventDefault(),this.setState({asideWidth:Math.min(800,Math.max(200,this.startWidth+t))})},t.prototype.handleMouseUp=function(){this.removeWindowEvents()},t.prototype.removeWindowEvents=function(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)},t.prototype.renderEditor=function(){return n.default.createElement(d.default,{value:this.state.schemaCode,onChange:this.handleChange,language:"json"})},t.prototype.render=function(){var e=this.props.vertical;return e?n.default.createElement("div",{className:"vbox"},n.default.createElement("div",{className:"row-row"},n.default.createElement("div",{className:"cell pos-rlt"},n.default.createElement("div",{className:"scroll-y h-full pos-abt w-full"},this.renderPreview()))),n.default.createElement("div",{className:"row-row b-t",style:{height:200}},n.default.createElement("div",{className:"cell"},this.renderEditor()))):n.default.createElement("div",{style:{position:"absolute",top:50,bottom:0}},n.default.createElement("div",{className:"hbox"},n.default.createElement("div",{className:"col pos-rlt"},n.default.createElement("div",{className:"scroll-y h-full pos-abt w-full"},this.renderPreview())),n.default.createElement("div",{className:"col bg-light lter b-l bg-auto pos-rlt",style:{width:this.state.asideWidth}},n.default.createElement("div",{className:"resizer",onMouseDown:this.handleMouseDown}),this.renderEditor())))},t.defaultProps={useIFrame:!1,vertical:!1},t}(n.default.Component);t.default=c}); \ No newline at end of file diff --git a/gh-pages/pkg/rest_e51f111.js b/gh-pages/pkg/rest_e51f111.js deleted file mode 100644 index 0c3884527..000000000 --- a/gh-pages/pkg/rest_e51f111.js +++ /dev/null @@ -1,22 +0,0 @@ -;/*!examples/index.jsx*/ -amis.define("ca626e1",function(e,t){"use strict";function d(e){n.render(l.default.createElement(u.default,null),e)}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),l=o.__importDefault(e("node_modules/react/index")),n=e("node_modules/react-dom/index"),u=o.__importDefault(e("135e0c7"));t.bootstrap=d}); -;/*!examples/polyfills/Object.assign.ts*/ -amis.define("d89b1f2",function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),t=1;t0?1:-1)*Math.floor(Math.abs(n)):n},t=Math.pow(2,53)-1,o=function(r){var n=e(r);return Math.min(Math.max(n,0),t)};return function(r){var e=this,t=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a,i=arguments.length>1?arguments[1]:void 0;if("undefined"!=typeof i){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2])}for(var u,f=o(t.length),c=n(e)?Object(new e(f)):new Array(f),h=0;f>h;)u=t[h],c[h]=i?"undefined"==typeof a?i(u,h):i.call(a,u,h):u,h+=1;return c.length=f,c}}())}); -;/*!examples/polyfills/Array.find.ts*/ -amis.define("5982bcf",function(){Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(r){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),t=e.length>>>0;if("function"!=typeof r)throw new TypeError("predicate must be a function");for(var n=arguments[1],i=0;t>i;){var o=e[i];if(r.call(n,o,i,e))return o;i++}return void 0},configurable:!0,writable:!0})}); -;/*!examples/polyfills/cloest.ts*/ -amis.define("ba41ebe",function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})}); -;/*!examples/polyfills/index.ts*/ -amis.define("835699d",function(e,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),e("d89b1f2"),e("804ccfd"),e("5982bcf"),e("ba41ebe"),e("node_modules/promise/polyfill"),e("node_modules/es6-symbol/implement")}); -;/*!examples/embed.tsx*/ -amis.define("2ab197b",function(e,t){"use strict";function n(e,t,n,c){if("string"==typeof e&&(e=document.querySelector(e)),!e)return void console.error("选择器不对,页面上没有此元素");if("BODY"===e.tagName){var l=document.createElement("div");e.appendChild(l),e=l}e.classList.add("amis-scope");var f,p=function(e){e=e||"";var t=window.location;e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),r=e.indexOf("#"),o=~n?e.substring(0,n):~r?e.substring(0,r):e,a=~n?e.substring(n,~r?r:void 0):"",i=~r?e.substring(r):t.hash;if(o){if("/"!=o[0]&&!/^https?\:\/\//.test(o)){var s=t.pathname,u=s.split("/");u.pop();for(var d=void 0;d=/^\.\.?\//.exec(o);)"../"===d[0]&&u.pop(),o=o.substring(d[0].length);o=u.concat(o).join("/")}}else o=t.pathname;return o+a+i},m=function(e){return function(t){var n=t.data;if(c&&c.responseAdpater){var o=(e.url,e.url.indexOf("?")),a=~o?u.default.parse(e.url.substring(o)):{},i=r.__assign(r.__assign({},e),{query:a,body:e.data});n=c.responseAdpater(e,n,a,i)}else n.hasOwnProperty("errno")?(n.status=n.errno,n.msg=n.errmsg):n.hasOwnProperty("no")&&(n.status=n.no,n.msg=n.error);var s=r.__assign(r.__assign({},t),{data:n});return s}};return a.render(o.default.createElement("div",{className:"amis-routes-wrapper"},o.default.createElement(d.ToastComponent,{position:c&&c.toastPosition||"top-right",closeButton:!1,timeOut:5e3,extendedTimeOut:3e3}),o.default.createElement(d.AlertComponent,{container:e}),d.render(t,r.__assign(r.__assign({},n),{scopeRef:function(e){return f=e}}),r.__assign({getModalContainer:function(){return document.querySelector(".amis-scope")},notify:function(e,t){return d.toast[e]?d.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:d.alert,confirm:d.confirm,updateLocation:function(e,t){return"goBack"===e?window.history.back():void(t||(location.href=p(e)))},isCurrentUrl:function(e){var t=p(e),n=window.location,r=t,o="",a=t.indexOf("?");if(~a&&(r=t.substring(0,a),o=t.substring(a)),o){if(r!==n.pathname||!n.search)return!1;var i=u.default.parse(o.substring(1)),s=u.default.parse(n.search.substring(1));return Object.keys(i).every(function(e){return i[e]===s[e]})}return r===n.pathname?!0:!1},jumpTo:function(e,t){return"goBack"===e?window.history.back():(e=p(e),t&&"url"===t.actionType?void(t.blank===!1?window.location.href=e:window.open(e)):void(/^https?:\/\//.test(e)?window.location.replace(e):location.href=e))},fetcher:function(e){var t=e.url,n=e.method,r=e.data,o=e.responseType,a=e.config,s=e.headers;return a=a||{},a.withCredentials=!0,o&&(a.responseType=o),a.cancelExecutor&&(a.cancelToken=new i.default.CancelToken(a.cancelExecutor)),a.headers=s||{},a.method=n,"get"===n&&r?a.params=r:r&&r instanceof FormData||!r||"string"==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),a.headers["Content-Type"]="application/json"),r&&(a.data=r),i.default(t,a).then(m(e))},isCancel:function(e){return i.default.isCancel(e)},copy:function(e,t){void 0===t&&(t={});var n=s.default(e,t);return n&&t.shutup!==!0&&d.toast.info("内容已拷贝到剪切板"),n},richTextToken:"",affixOffsetBottom:0},c))),e),f}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib");e("835699d");var o=r.__importDefault(e("node_modules/react/index")),a=e("node_modules/react-dom/index"),i=r.__importDefault(e("node_modules/axios/index")),s=r.__importDefault(e("node_modules/copy-to-clipboard/index")),u=r.__importDefault(e("node_modules/qs/lib/index")),d=e("d019970");t.embed=n}); -;/*!examples/loader.ts*/ -amis.define("3be4436",function(){function e(){for(var e=[],d=0;d
'}],n.default.FE.LANGUAGE.zh_cn={translation:{"Type something":"输入一些内容",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Insert:"插入",Delete:"删除",Cancel:"取消",OK:"确定",Back:"背部",Remove:"去掉",More:"更多",Update:"更新",Style:"风格","Font Family":"字体","Font Size":"字号",Colors:"颜色",Background:"背景",Text:"文字","Paragraph Format":"格式",Normal:"正常",Code:"代码","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Paragraph Style":"段落样式","Inline Style":"内联样式",Align:"对齐方式","Align Left":"左对齐","Align Center":"居中","Align Right":"右对齐","Align Justify":"两端对齐",None:"无","Ordered List":"编号列表","Unordered List":"项目符号","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Insert Link":"插入链接","Open in new tab":"开启在新标签页","Open Link":"打开链接","Edit Link":"编辑链接",Unlink:"删除链接","Choose Link":"选择链接","Insert Image":"插入图片","Upload Image":"上传图片","By URL":"通过网址",Browse:"浏览","Drop image":"图像拖放","or click":"或点击","Manage Images":"管理图像",Loading:"载入中",Deleting:"删除",Tags:"标签","Are you sure? Image will be deleted.":"你确定吗?图像将被删除。",Replace:"更换",Uploading:"上传","Loading image":"导入图像",Display:"显示",Inline:"排队","Break Text":"断开文本","Alternate Text":"备用文本","Change Size":"尺寸变化",Width:"宽度",Height:"高度","Something went wrong. Please try again.":"出了些问题。 请再试一次。","Insert Video":"插入视频","Embedded Code":"嵌入式代码","Insert Table":"插入表格","Table Header":"表头","Remove Table":"删除表","Table Style":"表格样式","Horizontal Align":"水平对齐方式",Row:"行","Insert row above":"在上方插入","Insert row below":"在下方插入","Delete row":"删除行",Column:"列","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cell:"单元格","Merge cells":"合并单元格","Horizontal split":"水平分割","Vertical split":"垂直分割","Cell Background":"单元格背景","Vertical Align":"垂直对齐方式",Top:"最佳",Middle:"中间",Bottom:"底部","Align Top":"顶部对齐","Align Middle":"中间对齐","Align Bottom":"底部对齐","Cell Style":"单元格样式","Upload File":"上传文件","Drop file":"文件拖放",Emoticons:"表情","Grinning face":"脸上笑嘻嘻","Grinning face with smiling eyes":"","Face with tears of joy":"笑嘻嘻的脸,含笑的眼睛","Smiling face with open mouth":"笑脸张开嘴","Smiling face with open mouth and smiling eyes":"笑脸张开嘴微笑的眼睛","Smiling face with open mouth and cold sweat":"笑脸张开嘴,一身冷汗","Smiling face with open mouth and tightly-closed eyes":"笑脸张开嘴,紧紧闭着眼睛","Smiling face with halo":"笑脸晕","Smiling face with horns":"微笑的脸角","Winking face":"眨眼表情","Smiling face with smiling eyes":"面带微笑的眼睛","Face savoring delicious food":"面对品尝美味的食物","Relieved face":"面对如释重负","Smiling face with heart-shaped eyes":"微笑的脸,心脏形的眼睛","Smiling face with sunglasses":"笑脸太阳镜","Smirking face":"面对面带笑容","Neutral face":"中性面","Expressionless face":"面无表情","Unamused face":"一脸不快的脸","Face with cold sweat":"面对冷汗","Pensive face":"沉思的脸","Confused face":"面对困惑","Confounded face":"该死的脸","Kissing face":"面对接吻","Face throwing a kiss":"面对投掷一个吻","Kissing face with smiling eyes":"接吻脸,含笑的眼睛","Kissing face with closed eyes":"接吻的脸闭着眼睛","Face with stuck out tongue":"面对伸出舌头","Face with stuck out tongue and winking eye":"面对伸出舌头和眨动的眼睛","Face with stuck out tongue and tightly-closed eyes":"面对伸出舌头和紧闭的眼睛","Disappointed face":"面对失望","Worried face":"面对担心","Angry face":"愤怒的脸","Pouting face":"面对噘嘴","Crying face":"哭泣的脸","Persevering face":"怎奈脸","Face with look of triumph":"面带看的胜利","Disappointed but relieved face":"失望,但脸上释然","Frowning face with open mouth":"面对皱着眉头张口","Anguished face":"面对痛苦","Fearful face":"可怕的脸","Weary face":"面对厌倦","Sleepy face":"面对困","Tired face":"疲惫的脸","Grimacing face":"狰狞的脸","Loudly crying face":"大声哭脸","Face with open mouth":"面对张开嘴","Hushed face":"安静的脸","Face with open mouth and cold sweat":"","Face screaming in fear":"面对张开嘴,一身冷汗","Astonished face":"面对惊讶","Flushed face":"红扑扑的脸蛋","Sleeping face":"熟睡的脸","Dizzy face":"面对眩","Face without mouth":"脸上没有嘴","Face with medical mask":"面对医疗口罩",Break:"破",Subscript:"下标",Superscript:"上标",Fullscreen:"全屏","Insert Horizontal Line":"插入水平线","Clear Formatting":"格式化删除",Undo:"撤消",Redo:"重复","Select All":"全选","Code View":"代码视图",Quote:"引用",Increase:"增加引用",Decrease:"删除引用","Quick Insert":"快插"},direction:"ltr"}}); -;/*!examples/loadMonacoEditor.ts*/ -amis.define("b961301",function(s,a){"use strict";function e(s){var a="https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/loader_e45cf1a.js",e=amis.require.loadJs(c(a));e.onload=function(){return i(window.require,s)}}function c(s){return s}function i(s,a){var e={"vs/nls":{availableLanguages:{"*":"zh-cn"}},paths:{vs:"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main_147bfda.js".replace(/\/vs\/.*$/,""),"vs/base/worker/workerMain":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/base/worker/workerMain_3c46a35.js","vs/basic-languages/apex/apex":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/apex/apex_d4ae4dd.js","vs/basic-languages/azcli/azcli":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/azcli/azcli_1b0ef3f.js","vs/basic-languages/clojure/clojure":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/clojure/clojure_903e94b.js","vs/basic-languages/bat/bat":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/bat/bat_9d67e6c.js","vs/basic-languages/coffee/coffee":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/coffee/coffee_ed86fc7.js","vs/basic-languages/cpp/cpp":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/cpp/cpp_4f3f527.js","vs/basic-languages/csharp/csharp":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/csharp/csharp_6d526d9.js","vs/basic-languages/css/css":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/css/css_9b5d23e.js","vs/basic-languages/dockerfile/dockerfile":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/dockerfile/dockerfile_ae15175.js","vs/basic-languages/fsharp/fsharp":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/fsharp/fsharp_899ae6c.js","vs/basic-languages/go/go":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/go/go_c9012ae.js","vs/basic-languages/handlebars/handlebars":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/handlebars/handlebars_3b4ba3a.js","vs/basic-languages/html/html":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/html/html_cae751f.js","vs/basic-languages/ini/ini":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/ini/ini_d156643.js","vs/basic-languages/java/java":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/java/java_d1eb191.js","vs/basic-languages/javascript/javascript":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/javascript/javascript_b58352d.js","vs/basic-languages/less/less":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/less/less_a309479.js","vs/basic-languages/lua/lua":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/lua/lua_c8b58eb.js","vs/basic-languages/markdown/markdown":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/markdown/markdown_7c5bc2f.js","vs/basic-languages/msdax/msdax":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/msdax/msdax_d5bc491.js","vs/basic-languages/objective-c/objective-c":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/objective-c/objective-c_1fec7dc.js","vs/basic-languages/php/php":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/php/php_b5da4f5.js","vs/basic-languages/postiats/postiats":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/postiats/postiats_20abb55.js","vs/basic-languages/powershell/powershell":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/powershell/powershell_d8ffc04.js","vs/basic-languages/pug/pug":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/pug/pug_a30d087.js","vs/basic-languages/python/python":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/python/python_5acdbdf.js","vs/basic-languages/r/r":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/r/r_079ab6e.js","vs/basic-languages/razor/razor":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/razor/razor_7730201.js","vs/basic-languages/redis/redis":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/redis/redis_26463cb.js","vs/basic-languages/redshift/redshift":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/redshift/redshift_13e3c26.js","vs/basic-languages/ruby/ruby":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/ruby/ruby_3457027.js","vs/basic-languages/rust/rust":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/rust/rust_13de2a3.js","vs/basic-languages/sb/sb":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/sb/sb_902b8f0.js","vs/basic-languages/scheme/scheme":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/scheme/scheme_3e818b9.js","vs/basic-languages/scss/scss":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/scss/scss_709c082.js","vs/basic-languages/shell/shell":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/shell/shell_c765862.js","vs/basic-languages/solidity/solidity":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/solidity/solidity_ed089ae.js","vs/basic-languages/sql/sql":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/sql/sql_0164782.js","vs/basic-languages/st/st":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/st/st_7af06b2.js","vs/basic-languages/swift/swift":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/swift/swift_ac12a14.js","vs/basic-languages/typescript/typescript":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/typescript/typescript_b47f441.js","vs/basic-languages/vb/vb":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/vb/vb_ee7309d.js","vs/basic-languages/xml/xml":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/xml/xml_9dfe430.js","vs/basic-languages/yaml/yaml":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/basic-languages/yaml/yaml_02e29fb.js","vs/editor/editor.main":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main_147bfda.js","vs/editor/editor.main.css":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main_9e19735.css","vs/editor/editor.main.nls":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main.nls_5589f51.js","vs/editor/editor.main.nls.zh-cn":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/editor/editor.main.nls.zh-cn_1c18a71.js","vs/language/typescript/tsMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/typescript/tsMode_3dc8f50.js","vs/language/typescript/tsWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/typescript/tsWorker_a0d7746.js","vs/language/json/jsonMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/json/jsonMode_999a98d.js","vs/language/json/jsonWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/json/jsonWorker_1d6259b.js","vs/language/html/htmlMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/html/htmlMode_825d6c1.js","vs/language/html/htmlWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/html/htmlWorker_9d83687.js","vs/language/css/cssMode":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/css/cssMode_b2e5099.js","vs/language/css/cssWorker":"https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/language/css/cssWorker_0c03514.js"}};Object.keys(e.paths).forEach(function(s){e.paths[s]=c(e.paths[s].replace(/\.js$/,""))}),s.config(e),/^(https?:)?\/\//.test(e.paths.vs)?window.MonacoEnvironment={getWorkerUrl:function(){return"data:text/javascript;charset=utf-8,"+encodeURIComponent("\n self.MonacoEnvironment = {\n baseUrl: '"+e.paths.vs+"',\n paths: "+JSON.stringify(e.paths)+"\n };\n importScripts('https://bce.bdstatic.com/fex/amis-gh-pages/n/monaco-editor/min/vs/base/worker/workerMain_3c46a35.js');")}}:delete window.MonacoEnvironment,s(["vs/editor/editor.main"],function(s){a(s)})}Object.defineProperty(a,"__esModule",{value:!0}),a.__mod__async__load=e}); -;/*!examples/components/Play.jsx*/ -amis.define("9b1667d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=o.__importDefault(e("node_modules/react/index")),a=e("6ae88e0"),s=e("d019970"),i=o.__importDefault(e("node_modules/axios/index")),r=o.__importDefault(e("node_modules/react-frame-component/lib/index")),d=o.__importDefault(e("node_modules/strip-json-comments/index")),l=o.__importDefault(e("997c87d")),u='{\n "$schema": "https://houtai.baidu.com/v2/schemas/page.json#",\n "type": "page",\n "title": "Title",\n "body": "Body",\n "aside": "Aside",\n "toolbar": "Toolbar"\n}',h={none:"",body:'{\n "type": "page",\n "body": SCHEMA_PLACEHOLDER\n }',form:'{\n "type": "page",\n "body": {\n "title": "",\n "type": "form",\n "autoFocus": false,\n "api": "https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=1",\n "mode": "horizontal",\n "controls": SCHEMA_PLACEHOLDER,\n "submitText": null,\n "actions": []\n }\n }',"form-item":'{\n "type": "page",\n "body": {\n "title": "",\n "type": "form",\n "mode": "horizontal",\n "autoFocus": false,\n "controls": [\n SCHEMA_PLACEHOLDER\n ],\n "submitText": null,\n "actions": []\n }\n }'},c=function(e){function t(t){var n=e.call(this,t)||this;n.state=null,n.startX=0,n.oldContents="";var s=n.buildSchema(t.code||u,t);n.state={asideWidth:t.asideWidth||Math.max(300,.3*window.innerWidth),schema:s,schemaCode:JSON.stringify(s,null,2)},n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.removeWindowEvents=n.removeWindowEvents.bind(n),n.handleChange=n.handleChange.bind(n),n.schemaProps={style:{height:"100%"}},n.env={updateLocation:function(){},fetcher:function(e){return e=o.__assign({dataType:"json"},e),"json"===e.dataType&&e.data&&(e.data=JSON.stringify(e.data),e.headers=e.headers||{},e.headers["Content-Type"]="application/json"),i.default[e.method](e.url,e.data,e)},notify:function(e,t){return a.toast[e]?a.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)}};var r=[].slice.call(document.head.querySelectorAll("link,style")).map(function(e){return e.outerHTML});return n.frameTemplate=""+r.join("")+"
",n}return o.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.code!==e.code){var o=this.buildSchema(e.code||u,e);this.setState({schema:o,schemaCode:JSON.stringify(o,null,2)})}},t.prototype.componentDidMount=function(){this.props.setAsideFolded&&this.props.setAsideFolded(!0)},t.prototype.componentWillUnmount=function(){this.props.setAsideFolded&&this.props.setAsideFolded(!1)},t.prototype.buildSchema=function(e,t){void 0===t&&(t=this.props);var o=t.location.query;try{var n=o.scope||t.scope;return n&&h[n]&&(e=h[n].replace("SCHEMA_PLACEHOLDER",e)),e=d.default(e).replace(/('|")raw:/g,"$1"),JSON.parse(e)}catch(a){console.error(this.formatMessage(a.message,e))}return{}},t.prototype.formatMessage=function(e,t){if(/position\s?(\d+)$/.test(e)){var o=t.substring(0,parseInt(RegExp.$1,10)).split(/\n|\r\n|\r/);e="Json 语法错误,请检测。出错位置:"+o.length+",列:"+o[o.length-1].length+"。"}return e},t.prototype.renderPreview=function(){var e=this.state.schema;return this.props.useIFrame?n.default.createElement(r.default,{width:"100%",height:"100%",frameBorder:0,initialContent:this.frameTemplate},s.render(e,this.schemaProps,this.env)):s.render(e,this.schemaProps,this.env)},t.prototype.handleChange=function(e){this.setState({schemaCode:e});try{var t=JSON.parse(e);this.setState({schema:t})}catch(o){}},t.prototype.handleMouseDown=function(e){return this.startX=e.clientX,this.startWidth=this.state.asideWidth,window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove),!1},t.prototype.handleMouseMove=function(e){var t=this.startX-e.clientX;e.preventDefault(),this.setState({asideWidth:Math.min(800,Math.max(200,this.startWidth+t))})},t.prototype.handleMouseUp=function(){this.removeWindowEvents()},t.prototype.removeWindowEvents=function(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)},t.prototype.renderEditor=function(){return n.default.createElement(l.default,{value:this.state.schemaCode,onChange:this.handleChange,language:"json"})},t.prototype.render=function(){var e=this.props.vertical;return e?n.default.createElement("div",{className:"vbox"},n.default.createElement("div",{className:"row-row"},n.default.createElement("div",{className:"cell pos-rlt"},n.default.createElement("div",{className:"scroll-y h-full pos-abt w-full"},this.renderPreview()))),n.default.createElement("div",{className:"row-row",style:{height:200}},n.default.createElement("div",{className:"cell"},this.renderEditor()))):n.default.createElement("div",{style:{position:"absolute",top:50,bottom:0}},n.default.createElement("div",{className:"hbox"},n.default.createElement("div",{className:"col pos-rlt"},n.default.createElement("div",{className:"scroll-y h-full pos-abt w-full"},this.renderPreview())),n.default.createElement("div",{className:"col bg-light lter b-l bg-auto pos-rlt",style:{width:this.state.asideWidth}},n.default.createElement("div",{className:"resizer",onMouseDown:this.handleMouseDown}),this.renderEditor())))},t.defaultProps={useIFrame:!1,vertical:!1},t}(n.default.Component);t.default=c}); \ No newline at end of file diff --git a/gh-pages/pkg/rich-text_6ad7fdb.js b/gh-pages/pkg/rich-text_5b6e508.js similarity index 86% rename from gh-pages/pkg/rich-text_6ad7fdb.js rename to gh-pages/pkg/rich-text_5b6e508.js index 3cc0d4229..f928cf9ab 100644 --- a/gh-pages/pkg/rich-text_6ad7fdb.js +++ b/gh-pages/pkg/rich-text_5b6e508.js @@ -1,7 +1,7 @@ ;/*!node_modules/jquery/dist/jquery.js*/ -amis.define("node_modules/jquery/dist/jquery",function(e,t,n,r){!function(e,t){"use strict";"object"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){n=n||lt;var r,i,o=n.createElement("script");if(o.text=e,t)for(r in Ct)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?gt[mt.call(e)]||"object":typeof e}function o(e){var t=!!e&&"length"in e&&e.length,n=i(e);return wt(e)||Tt(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function a(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function s(e,t,n){return wt(t)?kt.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?kt.grep(e,function(e){return e===t!==n}):"string"!=typeof t?kt.grep(e,function(e){return ht.call(t,e)>-1!==n}):kt.filter(t,e,n)}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return kt.each(e.match(Mt)||[],function(e,n){t[n]=!0}),t}function c(e){return e}function f(e){throw e}function p(e,t,n,r){var i;try{e&&wt(i=e.promise)?i.call(e).done(t).fail(n):e&&wt(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function d(){lt.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),kt.ready()}function h(e,t){return t.toUpperCase()}function g(e){return e.replace(Ft,"ms-").replace(Bt,h)}function m(){this.expando=kt.expando+m.uid++}function v(e){return"true"===e?!0:"false"===e?!1:"null"===e?null:e===+e+""?+e:Xt.test(e)?JSON.parse(e):e}function y(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Vt,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=v(n)}catch(i){}Ut.set(e,t,n)}else n=void 0;return n}function x(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return kt.css(e,t,"")},u=s(),l=n&&n[3]||(kt.cssNumber[t]?"":"px"),c=e.nodeType&&(kt.cssNumber[t]||"px"!==l&&+u)&&Yt.exec(kt.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)kt.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c=2*c,kt.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function b(e){var t,n=e.ownerDocument,r=e.nodeName,i=nn[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=kt.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),nn[r]=i,i)}function w(e,t){for(var n,r,i=[],o=0,a=e.length;a>o;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=zt.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&en(r)&&(i[o]=b(r))):"none"!==n&&(i[o]="none",zt.set(r,"display",n)));for(o=0;a>o;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function T(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&a(e,t)?kt.merge([e],n):n}function C(e,t){for(var n=0,r=e.length;r>n;n++)zt.set(e[n],"globalEval",!t||zt.get(t[n],"globalEval"))}function E(e,t,n,r,o){for(var a,s,u,l,c,f,p=t.createDocumentFragment(),d=[],h=0,g=e.length;g>h;h++)if(a=e[h],a||0===a)if("object"===i(a))kt.merge(d,a.nodeType?[a]:a);else if(un.test(a)){for(s=s||p.appendChild(t.createElement("div")),u=(on.exec(a)||["",""])[1].toLowerCase(),l=sn[u]||sn._default,s.innerHTML=l[1]+kt.htmlPrefilter(a)+l[2],f=l[0];f--;)s=s.lastChild;kt.merge(d,s.childNodes),s=p.firstChild,s.textContent=""}else d.push(t.createTextNode(a));for(p.textContent="",h=0;a=d[h++];)if(r&&kt.inArray(a,r)>-1)o&&o.push(a);else if(c=Kt(a),s=T(p.appendChild(a),"script"),c&&C(s),n)for(f=0;a=s[f++];)an.test(a.type||"")&&n.push(a);return p}function k(){return!0}function S(){return!1}function N(e,t){return e===A()==("focus"===t)}function A(){try{return lt.activeElement}catch(e){}}function D(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)D(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=S;else if(!i)return e;return 1===o&&(a=i,i=function(e){return kt().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=kt.guid++)),e.each(function(){kt.event.add(this,t,i,r,n)})}function j(e,t,n){return n?(zt.set(e,t,!1),void kt.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=zt.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(kt.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=ft.call(arguments),zt.set(this,t,o),r=n(this,t),this[t](),i=zt.get(this,t),o!==i||r?zt.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(zt.set(this,t,{value:kt.event.trigger(kt.extend(o[0],kt.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void(void 0===zt.get(e,t)&&kt.event.add(e,t,k))}function q(e,t){return a(e,"table")&&a(11!==t.nodeType?t:t.firstChild,"tr")?kt(e).children("tbody")[0]||e:e}function L(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function H(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function O(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(zt.hasData(e)&&(o=zt.access(e),a=zt.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)kt.event.add(t,i,l[i][n])}Ut.hasData(e)&&(s=Ut.access(e),u=kt.extend({},s),Ut.set(t,u))}}function P(e,t){var n=t.nodeName.toLowerCase();"input"===n&&rn.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function R(e,t,r,i){t=pt.apply([],t);var o,a,s,u,l,c,f=0,p=e.length,d=p-1,h=t[0],g=wt(h);if(g||p>1&&"string"==typeof h&&!bt.checkClone&&hn.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),R(o,t,r,i)});if(p&&(o=E(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=kt.map(T(o,"script"),L),u=s.length;p>f;f++)l=o,f!==d&&(l=kt.clone(l,!0,!0),u&&kt.merge(s,T(l,"script"))),r.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,kt.map(s,H),f=0;u>f;f++)l=s[f],an.test(l.type||"")&&!zt.access(l,"globalEval")&&kt.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?kt._evalUrl&&!l.noModule&&kt._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):n(l.textContent.replace(gn,""),l,c))}return e}function M(e,t,n){for(var r,i=t?kt.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||kt.cleanData(T(r)),r.parentNode&&(n&&Kt(r)&&C(T(r,"script")),r.parentNode.removeChild(r));return e}function I(e,t,n){var r,i,o,a,s=e.style;return n=n||vn(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||Kt(e)||(a=kt.style(e,t)),!bt.pixelBoxStyles()&&mn.test(a)&&yn.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function W(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function $(e){for(var t=e[0].toUpperCase()+e.slice(1),n=xn.length;n--;)if(e=xn[n]+t,e in bn)return e}function F(e){var t=kt.cssProps[e]||wn[e];return t?t:e in bn?e:wn[e]=$(e)||e}function B(e,t,n){var r=Yt.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function _(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;4>a;a+=2)"margin"===n&&(u+=kt.css(e,n+Qt[a],!0,i)),r?("content"===n&&(u-=kt.css(e,"padding"+Qt[a],!0,i)),"margin"!==n&&(u-=kt.css(e,"border"+Qt[a]+"Width",!0,i))):(u+=kt.css(e,"padding"+Qt[a],!0,i),"padding"!==n?u+=kt.css(e,"border"+Qt[a]+"Width",!0,i):s+=kt.css(e,"border"+Qt[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function z(e,t,n){var r=vn(e),i=!bt.boxSizingReliable()||n,o=i&&"border-box"===kt.css(e,"boxSizing",!1,r),a=o,s=I(e,t,r),u="offset"+t[0].toUpperCase()+t.slice(1);if(mn.test(s)){if(!n)return s;s="auto"}return(!bt.boxSizingReliable()&&o||"auto"===s||!parseFloat(s)&&"inline"===kt.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===kt.css(e,"boxSizing",!1,r),a=u in e,a&&(s=e[u])),s=parseFloat(s)||0,s+_(e,t,n||(o?"border":"content"),a,r,s)+"px"}function U(e,t,n,r,i){return new U.prototype.init(e,t,n,r,i)}function X(){Nn&&(lt.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(X):e.setTimeout(X,kt.fx.interval),kt.fx.tick())}function V(){return e.setTimeout(function(){Sn=void 0}),Sn=Date.now()}function G(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=Qt[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Y(e,t,n){for(var r,i=(K.tweeners[t]||[]).concat(K.tweeners["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function Q(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&en(e),m=zt.get(e,"fxshow");n.queue||(a=kt._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,kt.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(i=t[r],An.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||kt.style(e,r)}if(u=!kt.isEmptyObject(t),u||!kt.isEmptyObject(d)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],l=m&&m.display,null==l&&(l=zt.get(e,"display")),c=kt.css(e,"display"),"none"===c&&(l?c=l:(w([e],!0),l=e.style.display||l,c=kt.css(e,"display"),w([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===kt.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in d)u||(m?"hidden"in m&&(g=m.hidden):m=zt.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&w([e],!0),p.done(function(){g||w([e]),zt.remove(e,"fxshow");for(r in d)kt.style(e,r,d[r])})),u=Y(g?m[r]:0,r,p),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}function J(e,t){var n,r,i,o,a;for(n in e)if(r=g(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=kt.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function K(e,t,n){var r,i,o=0,a=K.prefilters.length,s=kt.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Sn||V(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(u||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:kt.extend({},t),opts:kt.extend(!0,{specialEasing:{},easing:kt.easing._default},n),originalProperties:t,originalOptions:n,startTime:Sn||V(),duration:n.duration,tweens:[],createTween:function(t,n){var r=kt.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(J(c,l.opts.specialEasing);a>o;o++)if(r=K.prefilters[o].call(l,e,c,l.opts))return wt(r.stop)&&(kt._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return kt.map(c,Y,l),wt(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),kt.fx.timer(kt.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function Z(e){var t=e.match(Mt)||[];return t.join(" ")}function et(e){return e.getAttribute&&e.getAttribute("class")||""}function tt(e){return Array.isArray(e)?e:"string"==typeof e?e.match(Mt)||[]:[]}function nt(e,t,n,r){var o;if(Array.isArray(t))kt.each(t,function(t,i){n||$n.test(e)?r(e,i):nt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==i(t))r(e,t);else for(o in t)nt(e+"["+o+"]",t[o],n,r)}function rt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Mt)||[];if(wt(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function it(e,t,n,r){function i(s){var u;return o[s]=!0,kt.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Kn;return i(t.dataTypes[0])||!o["*"]&&i("*")}function ot(e,t){var n,r,i=kt.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&kt.extend(!0,e,r),e}function at(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function st(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var ut=[],lt=e.document,ct=Object.getPrototypeOf,ft=ut.slice,pt=ut.concat,dt=ut.push,ht=ut.indexOf,gt={},mt=gt.toString,vt=gt.hasOwnProperty,yt=vt.toString,xt=yt.call(Object),bt={},wt=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},Tt=function(e){return null!=e&&e===e.window},Ct={type:!0,src:!0,nonce:!0,noModule:!0},Et="3.4.1",kt=function(e,t){return new kt.fn.init(e,t)},St=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;kt.fn=kt.prototype={jquery:Et,constructor:kt,length:0,toArray:function(){return ft.call(this)},get:function(e){return null==e?ft.call(this):0>e?this[e+this.length]:this[e]},pushStack:function(e){var t=kt.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return kt.each(this,e)},map:function(e){return this.pushStack(kt.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ft.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:dt,sort:ut.sort,splice:ut.splice},kt.extend=kt.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||wt(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(kt.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||kt.isPlainObject(n)?n:{},i=!1,a[t]=kt.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},kt.extend({expando:"jQuery"+(Et+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return e&&"[object Object]"===mt.call(e)?(t=ct(e))?(n=vt.call(t,"constructor")&&t.constructor,"function"==typeof n&&yt.call(n)===xt):!0:!1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){n(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(o(e))for(n=e.length;n>r&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(St,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(o(Object(e))?kt.merge(n,"string"==typeof e?[e]:e):dt.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ht.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;a>o;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,i,a=0,s=[];if(o(e))for(r=e.length;r>a;a++)i=t(e[a],a,n),null!=i&&s.push(i);else for(a in e)i=t(e[a],a,n),null!=i&&s.push(i);return pt.apply([],s)},guid:1,support:bt}),"function"==typeof Symbol&&(kt.fn[Symbol.iterator]=ut[Symbol.iterator]),kt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){gt["[object "+t+"]"]=t.toLowerCase()});var Nt=function(e){function t(e,t,n,r){var i,o,a,s,u,l,c,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:F)!==H&&L(t),t=t||H,P)){if(11!==h&&(u=xt.exec(e)))if(i=u[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&W(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&T.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(!(!T.qsa||V[e+" "]||R&&R.test(e)||1===h&&"object"===t.nodeName.toLowerCase())){if(c=e,p=t,1===h&&ft.test(e)){for((s=t.getAttribute("id"))?s=s.replace(Ct,Et):t.setAttribute("id",s=$),l=S(e),o=l.length;o--;)l[o]="#"+s+" "+d(l[o]);c=l.join(","),p=bt.test(e)&&f(t.parentNode)||t}try{return Z.apply(n,p.querySelectorAll(c)),n}catch(g){V(e,!0)}finally{s===$&&t.removeAttribute("id")}}}return A(e.replace(ut,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[$]=!0,e}function i(e){var t=H.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&St(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function d(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function h(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=_++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[B,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(f=t[$]||(t[$]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===B&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;o>i;i++)t(e,n[i],r);return r}function v(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function y(e,t,n,i,o,a){return i&&!i[$]&&(i=y(i)),o&&!o[$]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:v(g,p,e,s,u),x=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,x,s,u),i)for(l=v(x,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(x[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(y[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?tt(r,f):p[c])>-1&&(r[l]=!(a[l]=f))}}else x=v(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Z.apply(a,x)})}function x(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,u=h(function(e){return e===t},a,!0),l=h(function(e){return tt(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==D)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];i>s;s++)if(n=C.relative[e[s].type])c=[h(g(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[$]){for(r=++s;i>r&&!C.relative[e[r].type];r++);return y(s>1&&g(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&x(e.slice(s,r)),i>r&&x(e=e.slice(r)),i>r&&d(e))}c.push(n)}return g(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,p,d=0,h="0",g=r&&[],m=[],y=D,x=r||o&&C.find.TAG("*",l),b=B+=null==y?1:Math.random()||.1,w=x.length;for(l&&(D=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!P);p=e[f++];)if(p(c,a||H,s)){u.push(c);break}l&&(B=b)}i&&((c=!p&&c)&&d--,r&&g.push(c))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];)p(g,m,a,s);if(r){if(d>0)for(;h--;)g[h]||m[h]||(m[h]=J.call(u));m=v(m)}Z.apply(u,m),l&&!r&&m.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(B=b,D=y),g};return i?r(a):a}var w,T,C,E,k,S,N,A,D,j,q,L,H,O,P,R,M,I,W,$="sizzle"+1*new Date,F=e.document,B=0,_=0,z=n(),U=n(),X=n(),V=n(),G=function(e,t){return e===t&&(q=!0),0},Y={}.hasOwnProperty,Q=[],J=Q.pop,K=Q.push,Z=Q.push,et=Q.slice,tt=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",rt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\x00-\\xa0])+",ot="\\["+rt+"*("+it+")(?:"+rt+"*([*^$|!~]?=)"+rt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+rt+"*\\]",at=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",st=new RegExp(rt+"+","g"),ut=new RegExp("^"+rt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+rt+"+$","g"),lt=new RegExp("^"+rt+"*,"+rt+"*"),ct=new RegExp("^"+rt+"*([>+~]|"+rt+")"+rt+"*"),ft=new RegExp(rt+"|>"),pt=new RegExp(at),dt=new RegExp("^"+it+"$"),ht={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+rt+"*(even|odd|(([+-]|)(\\d*)n|)"+rt+"*(?:([+-]|)"+rt+"*(\\d+)|))"+rt+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+rt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+rt+"*((?:-\\d)?\\d*)"+rt+"*\\)|)(?=[^-]|$)","i")},gt=/HTML$/i,mt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,yt=/^[^{]+\{\s*\[native \w/,xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=new RegExp("\\\\([\\da-f]{1,6}"+rt+"?|("+rt+")|.)","ig"),Tt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ct=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Et=function(e,t){return t?"\x00"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},kt=function(){L()},St=h(function(e){return e.disabled===!0&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Z.apply(Q=et.call(F.childNodes),F.childNodes),Q[F.childNodes.length].nodeType}catch(Nt){Z={apply:Q.length?function(e,t){K.apply(e,et.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}T=t.support={},k=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!gt.test(t||n&&n.nodeName||"HTML")},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,O=H.documentElement,P=!k(H),F!==H&&(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",kt,!1):n.attachEvent&&n.attachEvent("onunload",kt)),T.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),T.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),T.getElementsByClassName=yt.test(H.getElementsByClassName),T.getById=i(function(e){return O.appendChild(e).id=$,!H.getElementsByName||!H.getElementsByName($).length}),T.getById?(C.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),C.find.TAG=T.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):T.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=T.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&P?t.getElementsByClassName(e):void 0},M=[],R=[],(T.qsa=yt.test(H.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+rt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+rt+"*(?:value|"+nt+")"),e.querySelectorAll("[id~="+$+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||R.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+rt+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(T.matchesSelector=yt.test(I=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){T.disconnectedMatch=I.call(e,"*"),I.call(e,"[s!='']:x"),M.push("!=",at)}),R=R.length&&new RegExp(R.join("|")),M=M.length&&new RegExp(M.join("|")),t=yt.test(O.compareDocumentPosition),W=t||yt.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return q=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!T.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===F&&W(F,e)?-1:t===H||t.ownerDocument===F&&W(F,t)?1:j?tt(j,e)-tt(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return q=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:j?tt(j,e)-tt(j,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===F?-1:u[r]===F?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),!(!T.matchesSelector||!P||V[n+" "]||M&&M.test(n)||R&&R.test(n)))try{var r=I.call(e,n);if(r||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){V(n,!0)}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),W(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=C.attrHandle[t.toLowerCase()],r=n&&Y.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:T.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Ct,Et)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(q=!T.detectDuplicates,j=!T.sortStable&&e.slice(0),e.sort(G),q){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},E=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=E(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(wt,Tt),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,Tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pt.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(wt,Tt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+rt+")"+e+"("+rt+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(st," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,x=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=m,f=p[$]||(p[$]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d&&l[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[B,d,x];break}}else if(y&&(p=t,f=p[$]||(p[$]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d),x===!1)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&(f=p[$]||(p[$]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),c[e]=[B,x]),p!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[$]?o(n):o.length>1?(i=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=tt(e,i[a]),e[r]=!(t[r]=i[a]) -}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=N(e.replace(ut,"$1"));return i[$]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(wt,Tt),function(t){return(t.textContent||E(t)).indexOf(e)>-1}}),lang:r(function(e){return dt.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(wt,Tt).toLowerCase(),function(t){var n;do if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return vt.test(e.nodeName)},input:function(e){return mt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r2&&"ID"===(a=o[0]).type&&9===t.nodeType&&P&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ht.needsContext.test(e)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);)if((u=C.find[s])&&(r=u(a.matches[0].replace(wt,Tt),bt.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Z.apply(n,r),n;break}}return(l||N(e,c))(r,t,!P,n,!t||bt.test(e)&&f(t.parentNode)||t),n},T.sortStable=$.split("").sort(G).join("")===$,T.detectDuplicates=!!q,L(),T.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),T.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(nt,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);kt.find=Nt,kt.expr=Nt.selectors,kt.expr[":"]=kt.expr.pseudos,kt.uniqueSort=kt.unique=Nt.uniqueSort,kt.text=Nt.getText,kt.isXMLDoc=Nt.isXML,kt.contains=Nt.contains,kt.escapeSelector=Nt.escape;var At=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&kt(e).is(n))break;r.push(e)}return r},Dt=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},jt=kt.expr.match.needsContext,qt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;kt.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?kt.find.matchesSelector(r,e)?[r]:[]:kt.find.matches(e,kt.grep(t,function(e){return 1===e.nodeType}))},kt.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(kt(e).filter(function(){for(t=0;r>t;t++)if(kt.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;r>t;t++)kt.find(e,i[t],n);return r>1?kt.uniqueSort(n):n},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&jt.test(e)?kt(e):e||[],!1).length}});var Lt,Ht=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ot=kt.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Lt,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ht.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof kt?t[0]:t,kt.merge(this,kt.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:lt,!0)),qt.test(r[1])&&kt.isPlainObject(t))for(r in t)wt(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=lt.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):wt(e)?void 0!==n.ready?n.ready(e):e(kt):kt.makeArray(e,this)};Ot.prototype=kt.fn,Lt=kt(lt);var Pt=/^(?:parents|prev(?:Until|All))/,Rt={children:!0,contents:!0,next:!0,prev:!0};kt.fn.extend({has:function(e){var t=kt(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(kt.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&kt(e);if(!jt.test(e))for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&kt.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?kt.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ht.call(kt(e),this[0]):ht.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(kt.uniqueSort(kt.merge(this.get(),kt(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),kt.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return At(e,"parentNode")},parentsUntil:function(e,t,n){return At(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return At(e,"nextSibling")},prevAll:function(e){return At(e,"previousSibling")},nextUntil:function(e,t,n){return At(e,"nextSibling",n)},prevUntil:function(e,t,n){return At(e,"previousSibling",n)},siblings:function(e){return Dt((e.parentNode||{}).firstChild,e)},children:function(e){return Dt(e.firstChild)},contents:function(e){return"undefined"!=typeof e.contentDocument?e.contentDocument:(a(e,"template")&&(e=e.content||e),kt.merge([],e.childNodes))}},function(e,t){kt.fn[e]=function(n,r){var i=kt.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=kt.filter(r,i)),this.length>1&&(Rt[e]||kt.uniqueSort(i),Pt.test(e)&&i.reverse()),this.pushStack(i)}});var Mt=/[^\x20\t\r\n\f]+/g;kt.Callbacks=function(e){e="string"==typeof e?l(e):kt.extend({},e);var t,n,r,o,a=[],s=[],u=-1,c=function(){for(o=o||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),u>=n&&u--}),this},has:function(e){return e?kt.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},kt.extend({Deferred:function(t){var n=[["notify","progress",kt.Callbacks("memory"),kt.Callbacks("memory"),2],["resolve","done",kt.Callbacks("once memory"),kt.Callbacks("once memory"),0,"resolved"],["reject","fail",kt.Callbacks("once memory"),kt.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return kt.Deferred(function(t){kt.each(n,function(n,r){var i=wt(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&wt(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(a>t)){if(e=r.apply(s,u),e===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,wt(l)?i?l.call(e,o(a,n,c,i),o(a,n,f,i)):(a++,l.call(e,o(a,n,c,i),o(a,n,f,i),o(a,n,c,n.notifyWith))):(r!==c&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},p=i?l:function(){try{l()}catch(e){kt.Deferred.exceptionHook&&kt.Deferred.exceptionHook(e,p.stackTrace),t+1>=a&&(r!==f&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?p():(kt.Deferred.getStackHook&&(p.stackTrace=kt.Deferred.getStackHook()),e.setTimeout(p))}}var a=0;return kt.Deferred(function(e){n[0][3].add(o(0,e,wt(i)?i:c,e.notifyWith)),n[1][3].add(o(0,e,wt(t)?t:c)),n[2][3].add(o(0,e,wt(r)?r:f))}).promise()},promise:function(e){return null!=e?kt.extend(e,i):i}},o={};return kt.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ft.call(arguments),o=kt.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ft.call(arguments):n,--t||o.resolveWith(r,i)}};if(1>=t&&(p(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||wt(i[n]&&i[n].then)))return o.then();for(;n--;)p(i[n],a(n),o.reject);return o.promise()}});var It=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;kt.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&It.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},kt.readyException=function(t){e.setTimeout(function(){throw t})};var Wt=kt.Deferred();kt.fn.ready=function(e){return Wt.then(e).catch(function(e){kt.readyException(e)}),this},kt.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--kt.readyWait:kt.isReady)||(kt.isReady=!0,e!==!0&&--kt.readyWait>0||Wt.resolveWith(lt,[kt]))}}),kt.ready.then=Wt.then,"complete"===lt.readyState||"loading"!==lt.readyState&&!lt.documentElement.doScroll?e.setTimeout(kt.ready):(lt.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var $t=function(e,t,n,r,o,a,s){var u=0,l=e.length,c=null==n;if("object"===i(n)){o=!0;for(u in n)$t(e,t,u,n[u],!0,a,s)}else if(void 0!==r&&(o=!0,wt(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(kt(e),n)})),t))for(;l>u;u++)t(e[u],n,s?r:r.call(e[u],u,t(e[u],n)));return o?e:c?t.call(e):l?t(e[0],n):a},Ft=/^-ms-/,Bt=/-([a-z])/g,_t=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};m.uid=1,m.prototype={cache:function(e){var t=e[this.expando];return t||(t={},_t(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[g(t)]=n;else for(r in t)i[g(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][g(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(g):(t=g(t),t=t in r?[t]:t.match(Mt)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||kt.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!kt.isEmptyObject(t)}};var zt=new m,Ut=new m,Xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Vt=/[A-Z]/g;kt.extend({hasData:function(e){return Ut.hasData(e)||zt.hasData(e)},data:function(e,t,n){return Ut.access(e,t,n)},removeData:function(e,t){Ut.remove(e,t)},_data:function(e,t,n){return zt.access(e,t,n)},_removeData:function(e,t){zt.remove(e,t)}}),kt.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Ut.get(o),1===o.nodeType&&!zt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=g(r.slice(5)),y(o,r,i[r])));zt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ut.set(this,e)}):$t(this,function(t){var n;if(o&&void 0===t){if(n=Ut.get(o,e),void 0!==n)return n;if(n=y(o,e),void 0!==n)return n}else this.each(function(){Ut.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ut.remove(this,e)})}}),kt.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=zt.get(e,t),n&&(!r||Array.isArray(n)?r=zt.access(e,t,kt.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=kt.queue(e,t),r=n.length,i=n.shift(),o=kt._queueHooks(e,t),a=function(){kt.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return zt.get(e,n)||zt.access(e,n,{empty:kt.Callbacks("once memory").add(function(){zt.remove(e,[t+"queue",n])})})}}),kt.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,an=/^$|^module$|\/(?:java|ecma)script/i,sn={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};sn.optgroup=sn.option,sn.tbody=sn.tfoot=sn.colgroup=sn.caption=sn.thead,sn.th=sn.td;var un=/<|&#?\w+;/;!function(){var e=lt.createDocumentFragment(),t=e.appendChild(lt.createElement("div")),n=lt.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),bt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",bt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var ln=/^key/,cn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fn=/^([^.]*)(?:\.(.+)|)/;kt.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=zt.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&kt.find.matchesSelector(Jt,i),n.guid||(n.guid=kt.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return"undefined"!=typeof kt&&kt.event.triggered!==t.type?kt.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Mt)||[""],l=t.length;l--;)s=fn.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d&&(f=kt.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=kt.event.special[d]||{},c=kt.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&kt.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),kt.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=zt.hasData(e)&&zt.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Mt)||[""],l=t.length;l--;)if(s=fn.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){for(f=kt.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||kt.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)kt.event.remove(e,d+t[l],n,r,!0);kt.isEmptyObject(u)&&zt.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=kt.event.fix(e),u=new Array(arguments.length),l=(zt.get(this,"events")||{})[s.type]||[],c=kt.event.special[s.type]||{};for(u[0]=s,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||l.disabled!==!0)){for(o=[],a={},n=0;u>n;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?kt(i,this).index(l)>-1:kt.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,dn=/\s*$/g;kt.extend({htmlPrefilter:function(e){return e.replace(pn,"<$1>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=Kt(e);if(!(bt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||kt.isXMLDoc(e)))for(a=T(s),o=T(e),r=0,i=o.length;i>r;r++)P(o[r],a[r]);if(t)if(n)for(o=o||T(e),a=a||T(s),r=0,i=o.length;i>r;r++)O(o[r],a[r]);else O(e,s);return a=T(s,"script"),a.length>0&&C(a,!u&&T(e,"script")),s},cleanData:function(e){for(var t,n,r,i=kt.event.special,o=0;void 0!==(n=e[o]);o++)if(_t(n)){if(t=n[zt.expando]){if(t.events)for(r in t.events)i[r]?kt.event.remove(n,r):kt.removeEvent(n,r,t.handle);n[zt.expando]=void 0}n[Ut.expando]&&(n[Ut.expando]=void 0)}}}),kt.fn.extend({detach:function(e){return M(this,e,!0)},remove:function(e){return M(this,e)},text:function(e){return $t(this,function(e){return void 0===e?kt.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return R(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=q(this,e);t.appendChild(e)}})},prepend:function(){return R(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=q(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return R(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return R(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(kt.cleanData(T(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return kt.clone(this,e,t)})},html:function(e){return $t(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!dn.test(e)&&!sn[(on.exec(e)||["",""])[1].toLowerCase()]){e=kt.htmlPrefilter(e);try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(kt.cleanData(T(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return R(this,arguments,function(t){var n=this.parentNode;kt.inArray(this,e)<0&&(kt.cleanData(T(this)),n&&n.replaceChild(t,this))},e)}}),kt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){kt.fn[e]=function(e){for(var n,r=[],i=kt(e),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),kt(i[a])[t](n),dt.apply(r,n.get());return this.pushStack(r)}});var mn=new RegExp("^("+Gt+")(?!px)[a-z%]+$","i"),vn=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},yn=new RegExp(Qt.join("|"),"i");!function(){function t(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Jt.appendChild(u).appendChild(l);var t=e.getComputedStyle(l);r="1%"!==t.top,s=12===n(t.marginLeft),l.style.right="60%",a=36===n(t.right),i=36===n(t.width),l.style.position="absolute",o=12===n(l.offsetWidth/3),Jt.removeChild(u),l=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u=lt.createElement("div"),l=lt.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",bt.clearCloneStyle="content-box"===l.style.backgroundClip,kt.extend(bt,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),o}}))}();var xn=["Webkit","Moz","ms"],bn=lt.createElement("div").style,wn={},Tn=/^(none|table(?!-c[ea]).+)/,Cn=/^--/,En={position:"absolute",visibility:"hidden",display:"block"},kn={letterSpacing:"0",fontWeight:"400"};kt.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=I(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=g(t),u=Cn.test(t),l=e.style;return u||(t=F(s)),a=kt.cssHooks[t]||kt.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t]:(o=typeof n,"string"===o&&(i=Yt.exec(n))&&i[1]&&(n=x(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(kt.cssNumber[s]?"":"px")),bt.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=g(t),u=Cn.test(t);return u||(t=F(s)),a=kt.cssHooks[t]||kt.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=I(e,t,r)),"normal"===i&&t in kn&&(i=kn[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),kt.each(["height","width"],function(e,t){kt.cssHooks[t]={get:function(e,n,r){return n?!Tn.test(kt.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?z(e,t,r):tn(e,En,function(){return z(e,t,r)}):void 0},set:function(e,n,r){var i,o=vn(e),a=!bt.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===kt.css(e,"boxSizing",!1,o),l=r?_(e,t,r,u,o):0;return u&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-_(e,t,"border",!1,o)-.5)),l&&(i=Yt.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=kt.css(e,t)),B(e,n,l)}}}),kt.cssHooks.marginLeft=W(bt.reliableMarginLeft,function(e,t){return t?(parseFloat(I(e,"marginLeft"))||e.getBoundingClientRect().left-tn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),kt.each({margin:"",padding:"",border:"Width"},function(e,t){kt.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Qt[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(kt.cssHooks[e+t].set=B)}),kt.fn.extend({css:function(e,t){return $t(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=vn(e),i=t.length;i>a;a++)o[t[a]]=kt.css(e,t[a],!1,r);return o}return void 0!==n?kt.style(e,t,n):kt.css(e,t)},e,t,arguments.length>1)}}),kt.Tween=U,U.prototype={constructor:U,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||kt.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(kt.cssNumber[n]?"":"px")},cur:function(){var e=U.propHooks[this.prop];return e&&e.get?e.get(this):U.propHooks._default.get(this)},run:function(e){var t,n=U.propHooks[this.prop];return this.pos=t=this.options.duration?kt.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):U.propHooks._default.set(this),this}},U.prototype.init.prototype=U.prototype,U.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=kt.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){kt.fx.step[e.prop]?kt.fx.step[e.prop](e):1!==e.elem.nodeType||!kt.cssHooks[e.prop]&&null==e.elem.style[F(e.prop)]?e.elem[e.prop]=e.now:kt.style(e.elem,e.prop,e.now+e.unit)}}},U.propHooks.scrollTop=U.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},kt.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},kt.fx=U.prototype.init,kt.fx.step={};var Sn,Nn,An=/^(?:toggle|show|hide)$/,Dn=/queueHooks$/;kt.Animation=kt.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return x(n.elem,e,Yt.exec(t),n),n}]},tweener:function(e,t){wt(e)?(t=e,e=["*"]):e=e.match(Mt); -for(var n,r=0,i=e.length;i>r;r++)n=e[r],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(t)},prefilters:[Q],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),kt.speed=function(e,t,n){var r=e&&"object"==typeof e?kt.extend({},e):{complete:n||!n&&t||wt(e)&&e,duration:e,easing:n&&t||t&&!wt(t)&&t};return kt.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in kt.fx.speeds?kt.fx.speeds[r.duration]:kt.fx.speeds._default),(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){wt(r.old)&&r.old.call(this),r.queue&&kt.dequeue(this,r.queue)},r},kt.fn.extend({fadeTo:function(e,t,n,r){return this.filter(en).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=kt.isEmptyObject(e),o=kt.speed(t,n,r),a=function(){var t=K(this,kt.extend({},e),o);(i||zt.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=kt.timers,a=zt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Dn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&kt.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=zt.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=kt.timers,a=r?r.length:0;for(n.finish=!0,kt.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),kt.each(["toggle","show","hide"],function(e,t){var n=kt.fn[t];kt.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(G(t,!0),e,r,i)}}),kt.each({slideDown:G("show"),slideUp:G("hide"),slideToggle:G("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){kt.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),kt.timers=[],kt.fx.tick=function(){var e,t=0,n=kt.timers;for(Sn=Date.now();t1)},removeAttr:function(e){return this.each(function(){kt.removeAttr(this,e)})}}),kt.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?kt.prop(e,t,n):(1===o&&kt.isXMLDoc(e)||(i=kt.attrHooks[t.toLowerCase()]||(kt.expr.match.bool.test(t)?jn:void 0)),void 0!==n?null===n?void kt.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=kt.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!bt.radioValue&&"radio"===t&&a(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Mt);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),jn={set:function(e,t,n){return t===!1?kt.removeAttr(e,n):e.setAttribute(n,n),n}},kt.each(kt.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qn[t]||kt.find.attr;qn[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=qn[a],qn[a]=i,i=null!=n(e,t,r)?a:null,qn[a]=o),i}});var Ln=/^(?:input|select|textarea|button)$/i,Hn=/^(?:a|area)$/i;kt.fn.extend({prop:function(e,t){return $t(this,kt.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[kt.propFix[e]||e]})}}),kt.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&kt.isXMLDoc(e)||(t=kt.propFix[t]||t,i=kt.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=kt.find.attr(e,"tabindex");return t?parseInt(t,10):Ln.test(e.nodeName)||Hn.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),bt.optSelected||(kt.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),kt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){kt.propFix[this.toLowerCase()]=this}),kt.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(wt(e))return this.each(function(t){kt(this).addClass(e.call(this,t,et(this)))});if(t=tt(e),t.length)for(;n=this[u++];)if(i=et(n),r=1===n.nodeType&&" "+Z(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=Z(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(wt(e))return this.each(function(t){kt(this).removeClass(e.call(this,t,et(this)))});if(!arguments.length)return this.attr("class","");if(t=tt(e),t.length)for(;n=this[u++];)if(i=et(n),r=1===n.nodeType&&" "+Z(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=Z(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):this.each(wt(e)?function(n){kt(this).toggleClass(e.call(this,n,et(this),t),t)}:function(){var t,i,o,a;if(r)for(i=0,o=kt(this),a=tt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(void 0===e||"boolean"===n)&&(t=et(this),t&&zt.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":zt.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Z(et(n))+" ").indexOf(t)>-1)return!0;return!1}});var On=/\r/g;kt.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=wt(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,kt(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=kt.map(i,function(e){return null==e?"":e+""})),t=kt.valHooks[this.type]||kt.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=kt.valHooks[i.type]||kt.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(On,""):null==n?"":n)}}}),kt.extend({valHooks:{option:{get:function(e){var t=kt.find.attr(e,"value");return null!=t?t:Z(kt.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?o+1:i.length;for(r=0>o?l:s?o:0;l>r;r++)if(n=i[r],!(!n.selected&&r!==o||n.disabled||n.parentNode.disabled&&a(n.parentNode,"optgroup"))){if(t=kt(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=kt.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=kt.inArray(kt.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),kt.each(["radio","checkbox"],function(){kt.valHooks[this]={set:function(e,t){return Array.isArray(t)?e.checked=kt.inArray(kt(e).val(),t)>-1:void 0}},bt.checkOn||(kt.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),bt.focusin="onfocusin"in e;var Pn=/^(?:focusinfocus|focusoutblur)$/,Rn=function(e){e.stopPropagation()};kt.extend(kt.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,p,d=[r||lt],h=vt.call(t,"type")?t.type:t,g=vt.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=r=r||lt,3!==r.nodeType&&8!==r.nodeType&&!Pn.test(h+kt.event.triggered)&&(h.indexOf(".")>-1&&(g=h.split("."),h=g.shift(),g.sort()),l=h.indexOf(":")<0&&"on"+h,t=t[kt.expando]?t:new kt.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:kt.makeArray(n,[t]),f=kt.event.special[h]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!Tt(r)){for(u=f.delegateType||h,Pn.test(u+h)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(r.ownerDocument||lt)&&d.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?u:f.bindType||h,c=(zt.get(a,"events")||{})[t.type]&&zt.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&_t(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||f._default&&f._default.apply(d.pop(),n)!==!1||!_t(r)||l&&wt(r[h])&&!Tt(r)&&(s=r[l],s&&(r[l]=null),kt.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,Rn),r[h](),t.isPropagationStopped()&&p.removeEventListener(h,Rn),kt.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=kt.extend(new kt.Event,n,{type:e,isSimulated:!0});kt.event.trigger(r,null,t)}}),kt.fn.extend({trigger:function(e,t){return this.each(function(){kt.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?kt.event.trigger(e,t,n,!0):void 0}}),bt.focusin||kt.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){kt.event.simulate(t,e.target,kt.event.fix(e))};kt.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=zt.access(r,t);i||r.addEventListener(e,n,!0),zt.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=zt.access(r,t)-1;i?zt.access(r,t,i):(r.removeEventListener(e,n,!0),zt.remove(r,t))}}});var Mn=e.location,In=Date.now(),Wn=/\?/;kt.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&kt.error("Invalid XML: "+t),n};var $n=/\[\]$/,Fn=/\r?\n/g,Bn=/^(?:submit|button|image|reset|file)$/i,_n=/^(?:input|select|textarea|keygen)/i;kt.param=function(e,t){var n,r=[],i=function(e,t){var n=wt(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!kt.isPlainObject(e))kt.each(e,function(){i(this.name,this.value)});else for(n in e)nt(n,e[n],t,i);return r.join("&")},kt.fn.extend({serialize:function(){return kt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=kt.prop(this,"elements");return e?kt.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!kt(this).is(":disabled")&&_n.test(this.nodeName)&&!Bn.test(e)&&(this.checked||!rn.test(e))}).map(function(e,t){var n=kt(this).val();return null==n?null:Array.isArray(n)?kt.map(n,function(e){return{name:t.name,value:e.replace(Fn,"\r\n")}}):{name:t.name,value:n.replace(Fn,"\r\n")}}).get()}});var zn=/%20/g,Un=/#.*$/,Xn=/([?&])_=[^&]*/,Vn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yn=/^(?:GET|HEAD)$/,Qn=/^\/\//,Jn={},Kn={},Zn="*/".concat("*"),er=lt.createElement("a");er.href=Mn.href,kt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mn.href,type:"GET",isLocal:Gn.test(Mn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":kt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ot(ot(e,kt.ajaxSettings),t):ot(kt.ajaxSettings,e)},ajaxPrefilter:rt(Jn),ajaxTransport:rt(Kn),ajax:function(t,n){function r(t,n,r,s){var l,p,d,b,w,T=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",C.readyState=t>0?4:0,l=t>=200&&300>t||304===t,r&&(b=at(h,C,r)),b=st(h,b,C,l),l?(h.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(kt.lastModified[o]=w),w=C.getResponseHeader("etag"),w&&(kt.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,p=b.data,d=b.error,l=!d)):(d=T,(t||!T)&&(T="error",0>t&&(t=0))),C.status=t,C.statusText=(n||T)+"",l?v.resolveWith(g,[p,T,C]):v.rejectWith(g,[C,T,d]),C.statusCode(x),x=void 0,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?p:d]),y.fireWith(g,[C,T]),f&&(m.trigger("ajaxComplete",[C,h]),--kt.active||kt.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=kt.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?kt(g):kt.event,v=kt.Deferred(),y=kt.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Vn.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(v.promise(C),h.url=((t||h.url||Mn.href)+"").replace(Qn,Mn.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Mt)||[""],null==h.crossDomain){l=lt.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=er.protocol+"//"+er.host!=l.protocol+"//"+l.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=kt.param(h.data,h.traditional)),it(Jn,h,n,C),c)return C;f=kt.event&&h.global,f&&0===kt.active++&&kt.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Yn.test(h.type),o=h.url.replace(Un,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(zn,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Wn.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(Xn,"$1"),d=(Wn.test(o)?"&":"?")+"_="+In++ +d),h.url=o+d),h.ifModified&&(kt.lastModified[o]&&C.setRequestHeader("If-Modified-Since",kt.lastModified[o]),kt.etag[o]&&C.setRequestHeader("If-None-Match",kt.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Zn+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(g,C,h)===!1||c))return C.abort();if(T="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),i=it(Kn,h,n,C)){if(C.readyState=1,f&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(u=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,i.send(b,r)}catch(E){if(c)throw E;r(-1,E)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return kt.get(e,t,n,"json")},getScript:function(e,t){return kt.get(e,void 0,t,"script")}}),kt.each(["get","post"],function(e,t){kt[t]=function(e,n,r,i){return wt(n)&&(i=i||r,r=n,n=void 0),kt.ajax(kt.extend({url:e,type:t,dataType:i,data:n,success:r},kt.isPlainObject(e)&&e))}}),kt._evalUrl=function(e,t){return kt.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){kt.globalEval(e,t)}})},kt.fn.extend({wrapAll:function(e){var t;return this[0]&&(wt(e)&&(e=e.call(this[0])),t=kt(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return this.each(wt(e)?function(t){kt(this).wrapInner(e.call(this,t))}:function(){var t=kt(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=wt(e);return this.each(function(n){kt(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){kt(this).replaceWith(this.childNodes)}),this}}),kt.expr.pseudos.hidden=function(e){return!kt.expr.pseudos.visible(e)},kt.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},kt.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var tr={0:200,1223:204},nr=kt.ajaxSettings.xhr();bt.cors=!!nr&&"withCredentials"in nr,bt.ajax=nr=!!nr,kt.ajaxTransport(function(t){var n,r;return bt.cors||nr&&!t.crossDomain?{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(tr[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}:void 0}),kt.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),kt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return kt.globalEval(e),e}}}),kt.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),kt.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=kt(" - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - diff --git a/gh-pages/services/data.html b/gh-pages/services/data.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/services/data.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/services/form.html b/gh-pages/services/form.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/services/form.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/services/schema.html b/gh-pages/services/schema.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/services/schema.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/src/icons/back_a010c56.js b/gh-pages/src/icons/back_a010c56.js new file mode 100644 index 000000000..4b87f93c4 --- /dev/null +++ b/gh-pages/src/icons/back_a010c56.js @@ -0,0 +1,15 @@ +amis.define('src/icons/back.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Back = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 9 12", "p-id": 3506, className: "icon" }, props), + react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("g", { transform: "translate(-11.000000, -9.000000)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("g", { transform: "translate(11.000000, 9.000000)" }, + react_1.default.createElement("polygon", { transform: "translate(4.294118, 6.000000) rotate(-270.000000) translate(-4.294118, -6.000000) ", points: "8.76684493 2 4.29411765 6.79999999 -0.178609633 2 -1.70588235 3.6 4.29411765 10 10.2941176 3.6" }))))); }; + exports.default = Back; + + +}); diff --git a/gh-pages/src/icons/calendar_4feb052.js b/gh-pages/src/icons/calendar_4feb052.js new file mode 100644 index 000000000..4edc5519d --- /dev/null +++ b/gh-pages/src/icons/calendar_4feb052.js @@ -0,0 +1,23 @@ +amis.define('src/icons/calendar.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Calendar = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 14", className: "icon" }, props), + react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("g", { transform: "translate(-136.000000, -8.000000)" }, + react_1.default.createElement("path", { d: "M159.5,0.5 L0.5,0.5 L0.5,29.5 L159.5,29.5 L159.5,0.5 Z", stroke: "currentColor" }), + react_1.default.createElement("g", { transform: "translate(136.000000, 8.000000)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M0,14 L14,14 L14,3 L0,3 L0,14 Z M2,5 L12,5 L12,12 L2,12 L2,5 Z", id: "Shape" }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 0, y: 0, width: 14, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 9, y: 6, width: 2, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 9, y: 9, width: 2, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 6, y: 6, width: 2, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 6, y: 9, width: 2, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 3, y: 6, width: 2, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 3, y: 9, width: 2, height: 2 }))))); }; + exports.default = Calendar; + + +}); diff --git a/gh-pages/src/icons/caret_2c1e3e2.js b/gh-pages/src/icons/caret_2c1e3e2.js new file mode 100644 index 000000000..d1ce59478 --- /dev/null +++ b/gh-pages/src/icons/caret_2c1e3e2.js @@ -0,0 +1,13 @@ +amis.define('src/icons/caret.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Caret = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 8", className: "icon" }, props), + react_1.default.createElement("g", { id: "04\\u4E0B\\u62C9/24px/\\u9ED8\\u8BA4\\u7981\\u7528", transform: "translate(-115.000000, -8.000000)" }, + react_1.default.createElement("polygon", { id: "Shape", fill: "currentColor", fillRule: "nonzero", points: "125.472727 8 121 12.8 116.527273 8 115 9.6 121 16 127 9.6" }))); }; + exports.default = Caret; + + +}); diff --git a/gh-pages/src/icons/check_ffc4744.js b/gh-pages/src/icons/check_ffc4744.js new file mode 100644 index 000000000..a92a5e57d --- /dev/null +++ b/gh-pages/src/icons/check_ffc4744.js @@ -0,0 +1,13 @@ +amis.define('src/icons/check.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Check = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 13 9", "p-id": 3506, className: "icon" }, props), + react_1.default.createElement("g", { transform: "translate(6.656854, 2.656854) scale(-1, 1) rotate(-315.000000) translate(-6.656854, -2.656854) " }, + react_1.default.createElement("polygon", { id: "path-1", points: "11.1568542 5.15685425 11.1568542 -0.843145751 12.1568542 -0.843145751 12.1568542 6.15685425 1.15685425 6.15685425 1.15685425 5.15685425" }))); }; + exports.default = Check; + + +}); diff --git a/gh-pages/src/icons/close_f877507.js b/gh-pages/src/icons/close_f877507.js new file mode 100644 index 000000000..ff7cdd449 --- /dev/null +++ b/gh-pages/src/icons/close_f877507.js @@ -0,0 +1,12 @@ +amis.define('src/icons/close.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Close = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), + react_1.default.createElement("polygon", { id: "path-1", points: "6.0003653 5.2970518 10.5993691 0.6980479600000002 11.3064759 1.4051547400000004 6.7074721 6.0041586 11.3009516 10.5976381 10.5938448 11.3047449 6.0003653 6.7112654 1.4056713299999997 11.3059593 0.6985645500000004 10.5988525 5.2932585 6.0041586 0.6956119200000002 1.4065120000000002 1.4027187000000003 0.69940522" })); }; + exports.default = Close; + + +}); diff --git a/gh-pages/src/icons/column-filter_6916c3b.js b/gh-pages/src/icons/column-filter_6916c3b.js new file mode 100644 index 000000000..e8255cf4c --- /dev/null +++ b/gh-pages/src/icons/column-filter_6916c3b.js @@ -0,0 +1,14 @@ +amis.define('src/icons/column-filter.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var ColumnFilter = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), + react_1.default.createElement("g", { id: "\\u7EC4\\u4EF6", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("g", { fill: "currentColor" }, + react_1.default.createElement("path", { d: "M0,0 L4,4.999 L4.082,10 L8,12 L8,4.999 L12,0 L0,0 Z M5.0528196,9.05445227 L4.97933146,4.82735426 L4.97320745,4.49967969 L4.75580505,4.24311339 L2,1 L10,1 L7.24419495,4.24311339 L7.02066854,4.50640615 L7.02066854,4.84272902 L7.02066854,10 L5.0528196,9.05445227 Z", id: "Page-1" })))); }; + exports.default = ColumnFilter; + + +}); diff --git a/gh-pages/src/icons/columns_a79ca1f.js b/gh-pages/src/icons/columns_a79ca1f.js new file mode 100644 index 000000000..17ae11843 --- /dev/null +++ b/gh-pages/src/icons/columns_a79ca1f.js @@ -0,0 +1,13 @@ +amis.define('src/icons/columns.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Columns = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 122 123", className: "icon" }, props), + react_1.default.createElement("g", { id: "th", transform: "translate(0.062500, 0.671875)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M5.5208334,0.078125 L27.6041666,0.078125 C29.2708332,0.078125 30.5208332,0.494791602 31.3541666,1.7447916 C32.1875,2.9947916 33.0208334,4.2447916 33.0208334,5.4947916 L33.0208334,27.578125 C33.0208334,29.2447916 32.6041666,30.4947916 31.3541666,31.328125 C30.1041666,32.1614584 28.8541666,32.9947916 27.6041666,32.9947916 L5.5208334,32.9947916 C3.8541668,32.9947916 2.6041666,32.578125 1.7708334,31.328125 C0.520833398,30.078125 0.104166602,28.828125 0.104166602,27.578125 L0.104166602,5.4947916 C0.104166602,3.828125 0.520833203,2.578125 1.7708334,1.7447916 C2.6041666,0.911458203 3.8541668,0.078125 5.5208334,0.078125 Z M49.6875,0.078125 L71.7708334,0.078125 C73.4375,0.078125 74.6875,0.494791602 75.5208334,1.7447916 C76.7708334,2.9947916 77.1875,4.2447916 77.1875,5.4947916 L77.1875,27.578125 C77.1875,29.2447916 76.7708334,30.4947916 75.5208334,31.328125 C74.2708334,32.578125 73.0208334,32.9947916 71.7708334,32.9947916 L49.6875,32.9947916 C48.0208334,32.9947916 46.7708334,32.578125 45.9375,31.328125 C44.6875,30.078125 44.2708334,28.828125 44.2708334,27.578125 L44.2708334,5.4947916 C44.2708334,3.828125 44.6875,2.578125 45.9375,1.7447916 C46.7708334,0.911458203 48.4375,0.078125 49.6875,0.078125 L49.6875,0.078125 Z M94.2708334,0.078125 L116.354167,0.078125 C118.020833,0.078125 119.270833,0.494791602 120.104167,1.7447916 C120.9375,2.9947916 121.770833,4.2447916 121.770833,5.4947916 L121.770833,27.578125 C121.770833,29.2447916 121.354167,30.4947916 120.104167,31.328125 C118.854167,32.1614584 117.604167,32.9947916 116.354167,32.9947916 L94.2708334,32.9947916 C92.6041668,32.9947916 91.3541666,32.578125 90.5208334,31.328125 C89.6875,30.078125 88.8541666,28.828125 88.8541666,27.578125 L88.8541666,5.4947916 C88.8541666,3.828125 89.2708332,2.578125 90.5208334,1.7447916 C91.7708336,0.911458203 92.6041668,0.078125 94.2708334,0.078125 Z M5.5208334,44.6614584 L27.6041666,44.6614584 C29.2708332,44.6614584 30.5208332,45.078125 31.3541666,46.328125 C32.6041666,47.578125 33.0208334,48.828125 33.0208334,50.078125 L33.0208334,72.1614584 C33.0208334,73.828125 32.6041666,75.078125 31.3541666,75.9114584 C30.1041666,76.7447918 28.8541666,77.578125 27.6041666,77.578125 L5.5208334,77.578125 C3.8541668,77.578125 2.6041666,77.1614584 1.7708334,75.9114584 C0.520833398,74.6614584 0.104166602,73.4114584 0.104166602,72.1614584 L0.104166602,50.078125 C0.104166602,48.4114584 0.520833203,47.1614584 1.7708334,46.328125 C2.6041666,45.078125 3.8541668,44.6614584 5.5208334,44.6614584 Z M49.6875,44.6614584 L71.7708334,44.6614584 C73.4375,44.6614584 74.6875,45.078125 75.5208334,46.328125 C76.7708334,47.578125 77.1875,48.828125 77.1875,50.078125 L77.1875,72.1614584 C77.1875,73.828125 76.7708334,75.078125 75.5208334,75.9114584 C74.2708334,77.1614584 73.0208334,77.578125 71.7708334,77.578125 L49.6875,77.578125 C48.0208334,77.578125 46.7708334,77.1614584 45.9375,75.9114584 C44.6875,74.6614584 44.2708334,73.4114584 44.2708334,72.1614584 L44.2708334,50.078125 C44.2708334,48.4114584 44.6875,47.1614584 45.9375,46.328125 C46.7708334,45.078125 48.4375,44.6614584 49.6875,44.6614584 L49.6875,44.6614584 Z M94.2708334,44.6614584 L116.354167,44.6614584 C118.020833,44.6614584 119.270833,45.078125 120.104167,46.328125 C121.354167,47.578125 121.770833,48.828125 121.770833,50.078125 L121.770833,72.1614584 C121.770833,73.828125 121.354167,75.078125 120.104167,75.9114584 C118.854167,76.7447918 117.604167,77.578125 116.354167,77.578125 L94.2708334,77.578125 C92.6041668,77.578125 91.3541666,77.1614584 90.5208334,75.9114584 C89.6875,74.6614584 88.8541666,73.4114584 88.8541666,72.1614584 L88.8541666,50.078125 C88.8541666,48.4114584 89.2708332,47.1614584 90.5208334,46.328125 C91.3541666,45.078125 92.6041668,44.6614584 94.2708334,44.6614584 Z M5.5208334,89.2447916 L27.6041666,89.2447916 C29.2708332,89.2447916 30.5208332,89.6614582 31.3541666,90.9114584 C32.1875,92.1614586 33.0208334,93.4114584 33.0208334,94.6614584 L33.0208334,116.744792 C33.0208334,118.411458 32.6041666,119.661458 31.3541666,120.494792 C30.1041666,121.328125 28.8541666,122.161458 27.6041666,122.161458 L5.5208334,122.161458 C3.8541668,122.161458 2.6041666,121.744792 1.7708334,120.494792 C0.520833398,119.244792 0.104166602,117.994792 0.104166602,116.744792 L0.104166602,94.6614584 C0.104166602,92.9947918 0.520833203,91.7447916 1.7708334,90.9114584 C2.6041666,89.6614584 3.8541668,89.2447916 5.5208334,89.2447916 Z M49.6875,89.2447916 L71.7708334,89.2447916 C73.4375,89.2447916 74.6875,89.6614582 75.5208334,90.9114584 C76.7708334,92.1614584 77.1875,93.4114584 77.1875,94.6614584 L77.1875,116.744792 C77.1875,118.411458 76.7708334,119.661458 75.5208334,120.494792 C74.2708334,121.744792 73.0208334,122.161458 71.7708334,122.161458 L49.6875,122.161458 C48.0208334,122.161458 46.7708334,121.744792 45.9375,120.494792 C44.6875,119.244792 44.2708334,117.994792 44.2708334,116.744792 L44.2708334,94.6614584 C44.2708334,92.9947918 44.6875,91.7447916 45.9375,90.9114584 C46.7708334,89.6614584 48.4375,89.2447916 49.6875,89.2447916 L49.6875,89.2447916 Z M94.2708334,89.2447916 L116.354167,89.2447916 C118.020833,89.2447916 119.270833,89.6614582 120.104167,90.9114584 C120.9375,92.1614586 121.770833,93.4114584 121.770833,94.6614584 L121.770833,116.744792 C121.770833,118.411458 121.354167,119.661458 120.104167,120.494792 C118.854167,121.328125 117.604167,122.161458 116.354167,122.161458 L94.2708334,122.161458 C92.6041668,122.161458 91.3541666,121.744792 90.5208334,120.494792 C89.6875,119.244792 88.8541666,117.994792 88.8541666,116.744792 L88.8541666,94.6614584 C88.8541666,92.9947918 89.2708332,91.7447916 90.5208334,90.9114584 C91.3541666,89.6614584 92.6041668,89.2447916 94.2708334,89.2447916 Z" }))); }; + exports.default = Columns; + + +}); diff --git a/gh-pages/src/icons/copy_27500da.js b/gh-pages/src/icons/copy_27500da.js new file mode 100644 index 000000000..31cd1b61d --- /dev/null +++ b/gh-pages/src/icons/copy_27500da.js @@ -0,0 +1,14 @@ +amis.define('src/icons/copy.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Copy = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), + react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("polyline", { id: "Stroke-1", stroke: "currentColor", points: "2.5 9.5 0.5 9.5 0.5 0.5 9.5 0.5 9.5 2.5" }), + react_1.default.createElement("polygon", { id: "Stroke-3", stroke: "currentColor", points: "2.5 11.5 11.5 11.5 11.5 2.5 2.5 2.5" }))); }; + exports.default = Copy; + + +}); diff --git a/gh-pages/src/icons/drag-bar_c7cfeba.js b/gh-pages/src/icons/drag-bar_c7cfeba.js new file mode 100644 index 000000000..494f126ac --- /dev/null +++ b/gh-pages/src/icons/drag-bar_c7cfeba.js @@ -0,0 +1,13 @@ +amis.define('src/icons/drag-bar.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var DragBar = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 428 684", className: "icon" }, props), + react_1.default.createElement("g", { id: "drag-bar", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M171.333333,86 C171.333333,133.128298 133.128298,171.333333 86,171.333333 C38.8717015,171.333333 0.666667,133.128298 0.666667,86 C0.666667,38.8717015 38.8717015,0.666667 86,0.666667 C133.128298,0.666667 171.333333,38.8717015 171.333333,86 L171.333333,86 Z M86,256.666667 C38.8717015,256.666667 0.666667,294.871702 0.666667,342 C0.666667,389.128298 38.8717015,427.333333 86,427.333333 C133.128298,427.333333 171.333333,389.128298 171.333333,342 C171.333333,294.871702 133.128298,256.666667 86,256.666667 L86,256.666667 Z M86,512.666667 C38.8717015,512.666667 0.666667,550.871702 0.666667,598 C0.666667,645.128298 38.8717015,683.333333 86,683.333333 C133.128298,683.333333 171.333333,645.128298 171.333333,598 C171.333333,550.871702 133.128298,512.666667 86,512.666667 L86,512.666667 Z M342,171.333333 C389.128298,171.333333 427.333333,133.128298 427.333333,86 C427.333333,38.8717015 389.128298,0.666667 342,0.666667 C294.871702,0.666667 256.666667,38.8717015 256.666667,86 C256.666667,133.128298 294.871702,171.333333 342,171.333333 L342,171.333333 Z M342,256.666667 C294.871702,256.666667 256.666667,294.871702 256.666667,342 C256.666667,389.128298 294.871702,427.333333 342,427.333333 C389.128298,427.333333 427.333333,389.128298 427.333333,342 C427.333333,294.871702 389.128298,256.666667 342,256.666667 L342,256.666667 Z M342,512.666667 C294.871702,512.666667 256.666667,550.871702 256.666667,598 C256.666667,645.128298 294.871702,683.333333 342,683.333333 C389.128298,683.333333 427.333333,645.128298 427.333333,598 C427.333333,575.368193 418.342883,553.663326 402.339778,537.660222 C386.336674,521.657117 364.631807,512.666667 342,512.666667 L342,512.666667 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = DragBar; + + +}); diff --git a/gh-pages/src/icons/enter_2f4ecd6.js b/gh-pages/src/icons/enter_2f4ecd6.js new file mode 100644 index 000000000..3ad18e7b1 --- /dev/null +++ b/gh-pages/src/icons/enter_2f4ecd6.js @@ -0,0 +1,12 @@ +amis.define('src/icons/enter.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Enter = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("path", { d: "M864 192c-19.2 0-32 12.8-32 32v224c0 89.6-70.4 160-160 160H236.8l105.6-105.6c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0l-160 160c-3.2 3.2-6.4 6.4-6.4 9.6-3.2 6.4-3.2 16 0 25.6 3.2 3.2 3.2 6.4 6.4 9.6l160 160c6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6c12.8-12.8 12.8-32 0-44.8L236.8 672H672c124.8 0 224-99.2 224-224V224c0-19.2-12.8-32-32-32z" })); }; + exports.default = Enter; + + +}); diff --git a/gh-pages/src/icons/exchange_69489aa.js b/gh-pages/src/icons/exchange_69489aa.js new file mode 100644 index 000000000..7f2258fb5 --- /dev/null +++ b/gh-pages/src/icons/exchange_69489aa.js @@ -0,0 +1,13 @@ +amis.define('src/icons/exchange.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Exchange = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 175 201", className: "icon" }, props), + react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("path", { d: "M-1.01710969,84.1828903 L176.48289,84.1828903 C182.68289,84.1828903 187.78289,79.0828903 187.78289,72.8828903 C187.78289,69.4828903 186.28289,66.3828903 183.68289,64.1828903 C183.08289,63.3828903 182.28289,62.6828903 181.48289,62.0828903 L115.18289,15.5828903 C110.08289,11.9828903 103.08289,13.1828903 99.4828903,18.2828903 C95.8828903,23.3828903 97.1828903,30.3828903 102.28289,33.9828903 L141.58289,61.5828903 L-1.01710969,61.5828903 C-7.21710969,61.6828903 -12.3171097,66.7828903 -12.3171097,72.9828903 C-12.3171097,79.1828903 -7.21710969,84.1828903 -1.01710969,84.1828903 Z M-1.01710969,117.38289 C-7.21710969,117.38289 -12.3171097,122.48289 -12.3171097,128.68289 C-12.3171097,132.08289 -10.8171097,135.18289 -8.21710969,137.38289 C-7.51710969,138.18289 -6.81710969,138.88289 -6.01710969,139.48289 L60.2828903,185.98289 C62.1828903,187.28289 64.3828903,187.98289 66.7828903,187.98289 C70.4828903,187.98289 73.8828903,186.18289 75.9828903,183.18289 C77.6828903,180.68289 78.3828903,177.78289 77.8828903,174.78289 C77.3828903,171.78289 75.6828903,169.28289 73.2828903,167.48289 L33.9828903,139.88289 L176.48289,139.88289 C182.68289,139.88289 187.78289,134.78289 187.78289,128.58289 C187.68289,122.38289 182.58289,117.38289 176.38289,117.38289 L-1.01710969,117.38289 Z", fill: "currentColor", fillRule: "nonzero", transform: "translate(87.732890, 100.745312) rotate(-270.000000) translate(-87.732890, -100.745312) " }))); }; + exports.default = Exchange; + + +}); diff --git a/gh-pages/src/icons/fail_cc798be.js b/gh-pages/src/icons/fail_cc798be.js new file mode 100644 index 000000000..368f61c86 --- /dev/null +++ b/gh-pages/src/icons/fail_cc798be.js @@ -0,0 +1,14 @@ +amis.define('src/icons/fail.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Fail = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 34 34", className: "icon" }, props), + react_1.default.createElement("g", { transform: "translate(1.000000, 1.000000)" }, + react_1.default.createElement("circle", { stroke: "currentColor", cx: 16, cy: 16, r: 16, fill: "none" }), + react_1.default.createElement("polygon", { fill: "currentColor", fillRule: "nonzero", points: "24 10.1052632 21.8947368 8 16 14.0350877 10.1052632 8 8 10.1052632 14.0350877 16 8 21.8947368 10.1052632 24 16 17.9649123 21.8947368 24 24 21.8947368 17.9649123 16" }))); }; + exports.default = Fail; + + +}); diff --git a/gh-pages/src/icons/file_85a7b87.js b/gh-pages/src/icons/file_85a7b87.js new file mode 100644 index 000000000..6981e6dd5 --- /dev/null +++ b/gh-pages/src/icons/file_85a7b87.js @@ -0,0 +1,15 @@ +amis.define('src/icons/file.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var File = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 16", className: "icon" }, props), + react_1.default.createElement("g", null, + react_1.default.createElement("path", { d: "M0,0 L0,16 L14,16 L14,4.001 L9.939,0 L0,0 Z M1,1 L9,1 L9,4.001 L9,5 L10,5 L13,5 L13,15 L1,15 L1,1 Z M10,1.464 L12.575,4.001 L10,4.001 L10,1.464 Z", id: "Fill-1" }), + react_1.default.createElement("polygon", { points: "4 12.0002 10 12.0002 10 10.9992 4 10.9992" }), + react_1.default.createElement("polygon", { points: "4 9.0002 10 9.0002 10 8.0002 4 8.0002" }))); }; + exports.default = File; + + +}); diff --git a/gh-pages/src/icons/filter_9249661.js b/gh-pages/src/icons/filter_9249661.js new file mode 100644 index 000000000..82db13deb --- /dev/null +++ b/gh-pages/src/icons/filter_9249661.js @@ -0,0 +1,13 @@ +amis.define('src/icons/filter.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Filter = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 150 100", className: "icon" }, props), + react_1.default.createElement("g", { fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M58.3333334,100 L91.6666666,100 L91.6666666,83.3333334 L58.3333334,83.3333334 L58.3333334,100 L58.3333334,100 Z M0,0 L0,16.6666666 L150,16.6666666 L150,0 L0,0 Z M25,58.3333334 L125,58.3333334 L125,41.6666666 L25,41.6666666 L25,58.3333334 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = Filter; + + +}); diff --git a/gh-pages/src/icons/folder_ee06d7d.js b/gh-pages/src/icons/folder_ee06d7d.js new file mode 100644 index 000000000..c28f8e101 --- /dev/null +++ b/gh-pages/src/icons/folder_ee06d7d.js @@ -0,0 +1,14 @@ +amis.define('src/icons/folder.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Folder = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 200 168", className: "icon" }, props), + react_1.default.createElement("g", { id: "folder-(1)", transform: "translate(0.000000, 0.601562)", fill: "currentFolder", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M166.666667,166.731771 L8.3333334,166.731771 C3.3333334,166.731771 0,163.398437 0,158.398437 L0,8.3984375 C0,3.3984375 3.3333334,0.0651041016 8.3333334,0.0651041016 L66.6666668,0.0651041016 C71.6666668,0.0651041016 75,3.3984375 75,8.3984375 L75,16.7317709 L166.666667,16.7317709 C171.666667,16.7317709 175,20.0651041 175,25.0651041 L175,58.3984377 C175,63.3984377 171.666667,66.7317711 166.666667,66.7317711 C161.666667,66.7317711 158.333333,63.3984377 158.333333,58.3984377 L158.333333,33.3984375 L66.6666666,33.3984375 C61.6666666,33.3984375 58.3333334,30.0651041 58.3333334,25.0651041 L58.3333334,16.7317709 L16.6666666,16.7317709 L16.6666666,150.065104 L166.666667,150.065104 C171.666667,150.065104 175,153.398438 175,158.398438 C175,163.398438 171.666667,166.731771 166.666667,166.731771 Z", id: "\\u8DEF\\u5F84" }), + react_1.default.createElement("path", { d: "M166.666667,166.731771 L8.3333334,166.731771 C5.8333334,166.731771 3.3333334,165.898438 1.6666668,163.398438 C0,160.898438 0,159.231771 0,156.731771 L25,56.7317709 C25.8333334,52.5651041 29.1666666,50.0651041 33.3333334,50.0651041 L191.666667,50.0651041 C194.166667,50.0651041 196.666667,50.8984375 198.333333,53.3984375 C200,55.8984375 200,57.5651041 200,60.0651041 L175,160.065104 C174.166667,164.231771 170.833333,166.731771 166.666667,166.731771 Z M19.1666666,150.065104 L160,150.065104 L180.833333,66.7317707 L40,66.7317707 L19.1666666,150.065104 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = Folder; + + +}); diff --git a/gh-pages/src/icons/home_451b4ee.js b/gh-pages/src/icons/home_451b4ee.js new file mode 100644 index 000000000..58f526d11 --- /dev/null +++ b/gh-pages/src/icons/home_451b4ee.js @@ -0,0 +1,13 @@ +amis.define('src/icons/home.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Home = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 200 189", className: "icon" }, props), + react_1.default.createElement("g", { transform: "translate(0.000000, -0.195312)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M195.85125,93.1203125 L110.60125,7.9453125 L104.91375,2.1953125 C102.202931,-0.499697856 97.8245686,-0.499697856 95.11375,2.1953125 L4.15125,93.1203125 C1.45507434,95.8051128 -0.0415864607,99.4656205 0.000355140024,103.270313 C0.158203791,111.052241 6.53032046,117.268533 14.31375,117.232812 L23.68875,117.232812 L23.68875,189.082812 L176.31375,189.082812 L176.31375,117.232812 L185.88875,117.232812 C189.65125,117.232812 193.20125,115.757812 195.87625,113.095312 C198.55125,110.420312 200.00125,106.870312 200.00125,103.095312 C200.00125,99.3453125 198.52625,95.7953125 195.85125,93.1203125 Z M112.35125,173.207812 L87.65125,173.207812 L87.65125,128.207812 L112.35125,128.207812 L112.35125,173.207812 L112.35125,173.207812 Z M160.42625,101.357812 L160.42625,173.207812 L126.47625,173.207812 L126.47625,122.907812 C126.47625,118.0339 122.525163,114.082812 117.65125,114.082812 L82.35125,114.082812 C77.4773371,114.082812 73.52625,118.0339 73.52625,122.907812 L73.52625,173.207812 L39.57625,173.207812 L39.57625,101.357812 L18.40125,101.357812 L100.02625,19.7953125 L105.11375,24.8953125 L181.61375,101.357812 L160.42625,101.357812 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = Home; + + +}); diff --git a/gh-pages/src/icons/info-circle_637cf2a.js b/gh-pages/src/icons/info-circle_637cf2a.js new file mode 100644 index 000000000..c975b0355 --- /dev/null +++ b/gh-pages/src/icons/info-circle_637cf2a.js @@ -0,0 +1,13 @@ +amis.define('src/icons/info-circle.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var InfoCircle = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 172 172", className: "icon" }, props), + react_1.default.createElement("g", { id: "info-circle", transform: "translate(0.257812, 0.257812)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M114.313616,139.313616 L114.313616,121.456473 C114.313616,120.414807 113.978795,119.559152 113.309152,118.889509 C112.639509,118.219866 111.783854,117.885045 110.742187,117.885045 L100.027902,117.885045 L100.027902,60.7421875 C100.027902,59.7005208 99.6930803,58.8448661 99.0234375,58.1752232 C98.3537947,57.5055804 97.4981399,57.170759 96.4564732,57.170759 L60.7421875,57.170759 C59.7005208,57.170759 58.8448661,57.5055804 58.1752232,58.1752232 C57.5055804,58.8448661 57.170759,59.7005208 57.170759,60.7421875 L57.170759,78.5993303 C57.170759,79.6409969 57.5055804,80.4966517 58.1752232,81.1662945 C58.8448661,81.8359374 59.7005208,82.170759 60.7421875,82.170759 L71.4564732,82.170759 L71.4564732,117.885045 L60.7421875,117.885045 C59.7005208,117.885045 58.8448661,118.219866 58.1752232,118.889509 C57.5055804,119.559152 57.170759,120.414806 57.170759,121.456473 L57.170759,139.313616 C57.170759,140.355282 57.5055804,141.210937 58.1752232,141.88058 C58.8448661,142.550223 59.7005208,142.885044 60.7421875,142.885044 L110.742187,142.885044 C111.783854,142.885044 112.639509,142.550223 113.309152,141.88058 C113.978795,141.210937 114.313616,140.355282 114.313616,139.313616 L114.313616,139.313616 Z M100.027902,39.313616 L100.027902,21.4564732 C100.027902,20.4148066 99.6930803,19.5591518 99.0234375,18.889509 C98.3537947,18.2198661 97.4981399,17.8850447 96.4564732,17.8850447 L75.0279018,17.8850447 C73.9862351,17.8850447 73.1305803,18.2198661 72.4609375,18.889509 C71.7912947,19.5591518 71.4564732,20.4148066 71.4564732,21.4564732 L71.4564732,39.313616 C71.4564732,40.3552827 71.7912947,41.2109374 72.4609375,41.8805803 C73.1305803,42.5502231 73.9862351,42.8850447 75.0279018,42.8850447 L96.4564732,42.8850447 C97.4981399,42.8850447 98.3537947,42.5502231 99.0234375,41.8805803 C99.6930803,41.2109374 100.027902,40.3552827 100.027902,39.313616 Z M171.456473,85.7421875 C171.456473,101.292783 167.624628,115.634301 159.960938,128.766741 C152.297247,141.899182 141.899182,152.297247 128.766741,159.960938 C115.634301,167.624628 101.292783,171.456473 85.7421875,171.456473 C70.1915923,171.456473 55.8500745,167.624628 42.717634,159.960938 C29.5851935,152.297247 19.187128,141.899182 11.5234375,128.766741 C3.85974701,115.634301 0.0279017578,101.292783 0.0279017578,85.7421875 C0.0279017578,70.1915923 3.85974701,55.8500745 11.5234375,42.717634 C19.187128,29.5851935 29.5851935,19.187128 42.717634,11.5234375 C55.8500745,3.85974701 70.1915923,0.0279017578 85.7421875,0.0279017578 C101.292783,0.0279017578 115.634301,3.85974701 128.766741,11.5234375 C141.899182,19.187128 152.297247,29.5851935 159.960938,42.717634 C167.624628,55.8500745 171.456473,70.1915923 171.456473,85.7421875 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = InfoCircle; + + +}); diff --git a/gh-pages/src/icons/info_c744e37.js b/gh-pages/src/icons/info_c744e37.js new file mode 100644 index 000000000..eb0355090 --- /dev/null +++ b/gh-pages/src/icons/info_c744e37.js @@ -0,0 +1,15 @@ +amis.define('src/icons/info.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Info = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("g", { id: "Group-9" }, + react_1.default.createElement("circle", { id: "Oval-7", stroke: "currentColor", fill: "transparent", cx: 8, cy: 8, r: 7.5 }), + react_1.default.createElement("rect", { id: "Rectangle-26", fill: "currentColor", x: 7, y: 3, width: 2, height: 2 }), + react_1.default.createElement("rect", { id: "Rectangle-26-Copy", fill: "currentColor", x: 7, y: 6, width: 2, height: 7 }))); }; + exports.default = Info; + + +}); diff --git a/gh-pages/src/icons/left-arrow_cdc2518.js b/gh-pages/src/icons/left-arrow_cdc2518.js new file mode 100644 index 000000000..b6bb0ce43 --- /dev/null +++ b/gh-pages/src/icons/left-arrow_cdc2518.js @@ -0,0 +1,13 @@ +amis.define('src/icons/left-arrow.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var LeftArrow = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 577 1024", className: "icon" }, props), + react_1.default.createElement("g", { id: "left-arrow", transform: "translate(-1.000000, 0.000000)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M101.211517,511.805631 L564.889594,73.082583 C581.083814,56.452218 581.083814,29.107879 564.889594,12.477515 C548.695374,-4.15285 522.393987,-4.15285 506.275618,12.477515 L12.750113,479.360302 C4.103082,488.3297 0.405338,500.295219 1.03111,511.805631 C0.386375,523.714261 4.103082,535.67978 12.750113,544.630216 L506.256655,1011.513 C522.375024,1028.16233 548.695373,1028.16233 564.870631,1011.513 C581.064851,994.427533 581.064851,967.5383 564.870631,950.907936 L101.211517,511.805631", id: "\\u8DEF\\u5F84" }))); }; + exports.default = LeftArrow; + + +}); diff --git a/gh-pages/src/icons/location_4e65b4d.js b/gh-pages/src/icons/location_4e65b4d.js new file mode 100644 index 000000000..b42d384ae --- /dev/null +++ b/gh-pages/src/icons/location_4e65b4d.js @@ -0,0 +1,14 @@ +amis.define('src/icons/location.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Location = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ t: 1585402743083, className: "icon", viewBox: "0 0 1024 1024", "p-id": 2408 }, props), + react_1.default.createElement("defs", null, + react_1.default.createElement("style", { type: "text/css" })), + react_1.default.createElement("path", { d: "M511.968 0c-207.84 0-376.96 169.12-376.96 376.992 0 54.208 11.104 105.984 32.96 153.888 94.24 206.24 274.976 424 328.128 485.824 3.968 4.608 9.792 7.296 15.904 7.296s11.904-2.656 15.904-7.296c53.12-61.824 233.856-279.552 328.128-485.824 21.888-47.904 32.96-99.648 32.96-153.888-0.032-207.872-169.152-376.992-376.992-376.992zM511.968 572.8c-107.968 0-195.808-87.84-195.808-195.808s87.84-195.84 195.808-195.84 195.808 87.84 195.808 195.84c0 107.968-87.84 195.808-195.808 195.808z", "p-id": 2409 })); }; + exports.default = Location; + + +}); diff --git a/gh-pages/src/icons/minus_680789d.js b/gh-pages/src/icons/minus_680789d.js new file mode 100644 index 000000000..0795cfee6 --- /dev/null +++ b/gh-pages/src/icons/minus_680789d.js @@ -0,0 +1,13 @@ +amis.define('src/icons/minus.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Minus = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 2", className: "icon" }, props), + react_1.default.createElement("g", { id: "minus", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("polygon", { id: "path-1", points: "0 1.6 0 0.4 12 0.4 12 1.6" }))); }; + exports.default = Minus; + + +}); diff --git a/gh-pages/src/icons/move_17f7902.js b/gh-pages/src/icons/move_17f7902.js new file mode 100644 index 000000000..a00f13a42 --- /dev/null +++ b/gh-pages/src/icons/move_17f7902.js @@ -0,0 +1,14 @@ +amis.define('src/icons/move.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Move = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", className: "icon" }, props), + react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("g", { fill: "currentColor" }, + react_1.default.createElement("polygon", { points: "8.02 0 5.161 2.859 6.161 3.859 7.02 3.001 7.02 7.02 3.001 7.02 3.859 6.16 2.859 5.161 0 8.02 2.82 10.84 3.82 9.84 3.001 9.02 7.02 9.02 7.02 13.001 6.161 12.141 5.161 13.141 8.02 16 10.839 13.18 9.839 12.181 9.02 13.001 9.02 9.02 13.001 9.02 12.18 9.84 13.18 10.84 16 8.02 13.141 5.161 12.141 6.16 13.001 7.02 9.02 7.02 9.02 3.001 9.839 3.82 10.839 2.82" })))); }; + exports.default = Move; + + +}); diff --git a/gh-pages/src/icons/mute_bec02c7.js b/gh-pages/src/icons/mute_bec02c7.js new file mode 100644 index 000000000..f9fc9750b --- /dev/null +++ b/gh-pages/src/icons/mute_bec02c7.js @@ -0,0 +1,12 @@ +amis.define('src/icons/mute.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Mute = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("path", { d: "M536.310615 5.11991a63.99888 63.99888 0 0 0-69.75878 13.439765L229.755979 255.99552H63.99888a63.99888 63.99888 0 0 0-63.99888 63.99888v383.99328a63.99888 63.99888 0 0 0 63.99888 63.99888h165.757099l236.795856 237.435845A63.99888 63.99888 0 0 0 511.99104 1023.98208a53.759059 53.759059 0 0 0 24.319575-5.11991A63.99888 63.99888 0 0 0 575.98992 959.9832V63.99888a63.99888 63.99888 0 0 0-39.679305-58.87897zM191.99664 639.9888H127.99776V383.99328h63.99888z m255.99552 165.757099l-127.99776-127.99776V346.233941l127.99776-127.99776zM914.543995 511.99104l90.87841-90.238421a63.99888 63.99888 0 1 0-90.87841-90.878409l-90.23842 90.878409-90.238421-90.878409a63.99888 63.99888 0 0 0-90.87841 90.878409L734.067154 511.99104l-90.87841 90.238421a63.99888 63.99888 0 0 0 90.87841 90.87841l90.238421-90.87841 90.23842 90.87841a63.99888 63.99888 0 1 0 90.87841-90.87841z", fill: "#606670", "p-id": 2312 })); }; + exports.default = Mute; + + +}); diff --git a/gh-pages/src/icons/pause_88232d0.js b/gh-pages/src/icons/pause_88232d0.js new file mode 100644 index 000000000..e8b49901b --- /dev/null +++ b/gh-pages/src/icons/pause_88232d0.js @@ -0,0 +1,13 @@ +amis.define('src/icons/pause.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Pause = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("path", { d: "M757.52 73.107h-62.493c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.493c34.516 0 62.502-27.968 62.502-62.493v-749.953c-0.001-34.524-27.984-62.509-62.502-62.509z", "p-id": 7567, fill: "#606670" }), + react_1.default.createElement("path", { d: "M320.054 73.107h-62.502c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.502c34.505 0 62.493-27.968 62.493-62.493v-749.953c-0.001-34.524-27.984-62.509-62.493-62.509z", "p-id": 7568, fill: "#606670" })); }; + exports.default = Pause; + + +}); diff --git a/gh-pages/src/icons/pencil_f253e3f.js b/gh-pages/src/icons/pencil_f253e3f.js new file mode 100644 index 000000000..5b2af6df1 --- /dev/null +++ b/gh-pages/src/icons/pencil_f253e3f.js @@ -0,0 +1,13 @@ +amis.define('src/icons/pencil.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Pencil = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 14", className: "icon" }, props), + react_1.default.createElement("g", { id: "pencil", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M10.496,0.834 L13.168,3.506 C13.48,3.818 13.48,4.322 13.168,4.634 L10.904,6.898 L4.4,13.402 L0.6,13.402 L0.6,9.602 L7.848,2.354 L7.848,2.354 L9.368,0.834 C9.68,0.522 10.184,0.522 10.496,0.834 Z M7.67,3.663 L1.4,9.9333708 L1.4,12.602 L4.06862915,12.602 L10.338,6.331 L7.67,3.663 Z M9.932,1.40137085 L8.23537085,3.098 L10.904,5.76662915 L12.6006292,4.07 L9.932,1.40137085 Z M7,12.6 L11.8,12.6 L11.8,13.4 L7,13.4 L7,12.6 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = Pencil; + + +}); diff --git a/gh-pages/src/icons/play_e65dfdc.js b/gh-pages/src/icons/play_e65dfdc.js new file mode 100644 index 000000000..8296b5064 --- /dev/null +++ b/gh-pages/src/icons/play_e65dfdc.js @@ -0,0 +1,12 @@ +amis.define('src/icons/play.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Play = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 14 16", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("path", { d: "M13.5722,7.254 L1.2838,0.115 C1.019,-0.038 0.6926,-0.038 0.4278,0.115 C0.163,0.269 -1.83725092e-07,0.554 -1.83725092e-07,0.861 L-1.83725092e-07,15.139 C-0.0002,15.446 0.1629,15.731 0.4278,15.885 C0.6927,16.039 1.019,16.038 1.2838,15.884 L13.5721,8.746 C13.8368,8.592 13.9999998,8.308 13.9999998,8 C13.9999998,7.692 13.837,7.408 13.5722,7.254 Z", id: "path-1" })); }; + exports.default = Play; + + +}); diff --git a/gh-pages/src/icons/plus_1fff691.js b/gh-pages/src/icons/plus_1fff691.js new file mode 100644 index 000000000..4c0cfea05 --- /dev/null +++ b/gh-pages/src/icons/plus_1fff691.js @@ -0,0 +1,14 @@ +amis.define('src/icons/plus.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Plus = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", className: "icon" }, props), + react_1.default.createElement("g", { id: "\\u9875\\u9762-1", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("g", { id: "plus", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("polygon", { id: "path-1", points: "6.6 6.6 6.6 12 5.4 12 5.4 6.6 0 6.6 0 5.4 5.4 5.4 5.4 0 6.6 0 6.6 5.4 12 5.4 12 6.6" })))); }; + exports.default = Plus; + + +}); diff --git a/gh-pages/src/icons/question_2603e42.js b/gh-pages/src/icons/question_2603e42.js new file mode 100644 index 000000000..ffb80394d --- /dev/null +++ b/gh-pages/src/icons/question_2603e42.js @@ -0,0 +1,13 @@ +amis.define('src/icons/question.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Question = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 175 175", className: "icon" }, props), + react_1.default.createElement("g", { id: "question-(1)", transform: "translate(0.304688, 0.500000)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M167.56875,53.3876953 C163.179297,43.0103516 156.89707,33.6917969 148.896094,25.6910156 C140.895312,17.6902344 131.576758,11.4078125 121.199414,7.01855469 C110.452539,2.47285156 99.0396484,0.16796875 87.2785156,0.16796875 C75.5173828,0.16796875 64.1046875,2.47285156 53.3574219,7.01855469 C42.9800781,11.4078125 33.6615234,17.6902344 25.6607422,25.6910156 C17.6599609,33.6917969 11.3775391,43.0103516 6.98828125,53.3876953 C2.44257813,64.1349609 0.137695313,75.5474609 0.137695313,87.3087891 C0.137695313,99.0701172 2.44257813,110.482617 6.98828125,121.229883 C11.3775391,131.607227 17.6599609,140.925781 25.6607422,148.926562 C33.6615234,156.927539 42.9800781,163.209766 53.3574219,167.599219 C64.1046875,172.144727 75.5171875,174.449609 87.2785156,174.449609 C99.0396484,174.449609 110.452344,172.144727 121.199609,167.599219 C131.576953,163.209766 140.895508,156.927539 148.896289,148.926562 C156.897266,140.925781 163.179492,131.607227 167.568945,121.229883 C172.114453,110.482617 174.419336,99.0699219 174.419336,87.3087891 C174.419336,75.5476562 172.114453,64.1349609 167.56875,53.3876953 L167.56875,53.3876953 Z M95.5601563,149.20625 C93.1902344,151.314648 90.4513672,152.366016 87.3447266,152.366016 C84.1318359,152.366016 81.328125,151.326172 78.9310547,149.246484 C76.5353516,147.166797 75.3375,144.256836 75.3375,140.519727 C75.3375,137.199023 76.4951172,134.409766 78.8132813,132.143359 C81.1300781,129.879883 83.9738281,128.748047 87.3447266,128.748047 C90.6625,128.748047 93.453125,129.879883 95.7181641,132.143359 C97.9816406,134.409766 99.1150391,137.199023 99.1150391,140.519727 C99.1150391,144.205273 97.9298828,147.100781 95.5601563,149.20625 Z M125.063867,76.0599609 C123.248437,79.4294922 121.088281,82.3392578 118.586328,84.7867187 C116.085742,87.2369141 111.595898,91.35625 105.118359,97.1501953 C103.327344,98.7818359 101.892578,100.218164 100.813867,101.456055 C99.7337891,102.694141 98.9294922,103.825977 98.4037109,104.851367 C97.8765625,105.879688 97.46875,106.905273 97.1800781,107.933594 C96.8900391,108.95918 96.4546875,110.763086 95.8759766,113.345508 C94.875,118.820508 91.7410156,121.560937 86.4755859,121.560937 C83.7365234,121.560937 81.4328125,120.664648 79.5628906,118.872266 C77.6943359,117.082617 76.759375,114.422656 76.759375,110.895312 C76.759375,106.47168 77.4429687,102.639648 78.8132812,99.4023437 C80.1820312,96.1621094 81.9990234,93.3183594 84.2638672,90.8708984 C86.5273437,88.4207031 89.5824219,85.5107422 93.4273437,82.1412109 C96.796875,79.1910156 99.2341797,76.9677734 100.733594,75.4654297 C102.225903,73.9792131 103.50228,72.290943 104.525391,70.45 C105.553711,68.6058594 106.066602,66.6066406 106.066602,64.4464844 C106.066602,60.2324219 104.499609,56.6791016 101.365625,53.7806641 C98.2332031,50.8851562 94.1900391,49.4373047 89.240625,49.4373047 C83.4466797,49.4373047 79.1810547,50.8994141 76.4433594,53.8207031 C73.7044922,56.7449219 71.3876953,61.0480469 69.4917969,66.7357422 C67.7007812,72.6876953 64.3039062,75.6636719 59.3015625,75.6636719 C56.3515625,75.6636719 53.8638672,74.6238281 51.8373047,72.5441406 C49.809375,70.4644531 48.7953125,68.2123047 48.7953125,65.7878906 C48.7953125,60.7867187 50.4009766,55.7167969 53.6140625,50.5835937 C56.8255859,45.4474609 61.5134766,41.1960937 67.6751953,37.8265625 C73.8367187,34.4542969 81.0253906,32.7708984 89.2408203,32.7708984 C96.8759766,32.7708984 103.617969,34.1785156 109.463477,36.9964844 C115.308984,39.8144531 119.824805,43.6435547 123.010352,48.4894531 C126.197461,53.3353516 127.790234,58.6007812 127.790234,64.2884766 C127.790234,68.7636719 126.882227,72.6875 125.063867,76.0599609 L125.063867,76.0599609 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = Question; + + +}); diff --git a/gh-pages/src/icons/redo_fd4d729.js b/gh-pages/src/icons/redo_fd4d729.js new file mode 100644 index 000000000..44fcc1fa3 --- /dev/null +++ b/gh-pages/src/icons/redo_fd4d729.js @@ -0,0 +1,13 @@ +amis.define('src/icons/redo.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Redo = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 854 768", className: "icon" }, props), + react_1.default.createElement("g", { id: "redo", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M619,0 L588.92,30.08 L771.96,213.333333 L277.666667,213.333333 C124.499696,213.333333 0.3333335,337.499696 0.3333335,490.666667 C0.3333335,643.833637 124.499696,768 277.666667,768 L491,768 L491,725.333333 L277.666667,725.333333 C148.069828,725.324873 43.0153188,620.263506 43.0153188,490.666667 C43.0153188,361.069827 148.069828,256.00846 277.666667,256 L771.96,256 L588.706667,439.253333 L619,469.333333 L853.666667,234.666667 L619,0 Z", id: "\\u8DEF\\u5F84" }))); }; + exports.default = Redo; + + +}); diff --git a/gh-pages/src/icons/reload_bb52da6.js b/gh-pages/src/icons/reload_bb52da6.js new file mode 100644 index 000000000..aafba4e18 --- /dev/null +++ b/gh-pages/src/icons/reload_bb52da6.js @@ -0,0 +1,13 @@ +amis.define('src/icons/reload.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Reload = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", className: "icon" }, props), + react_1.default.createElement("g", { fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M8.05031447,14.0555556 C5.93710692,14.0555556 4.02515723,12.9861111 2.91823899,11.2361111 L5.03144654,9.19444444 L0,9.19444444 L0,14.0555556 L1.40880503,12.6944444 C2.91823899,14.7361111 5.33333333,16 8.05031447,16 C12.0754717,16 15.4968553,13.1805556 16,9.29166667 L13.9874214,9 C13.5849057,11.9166667 11.0691824,14.0555556 8.05031447,14.0555556 Z M14.591195,3.30555556 C13.081761,1.26388889 10.6666667,0 7.94968553,0 C3.9245283,0 0.503144654,2.81944444 0,6.70833333 L2.01257862,7 C2.41509434,4.08333333 4.93081761,1.94444444 7.94968553,1.94444444 C10.0628931,1.94444444 11.9748428,3.01388889 13.081761,4.76388889 L10.9685535,6.80555556 L16,6.80555556 L16,1.94444444 L14.591195,3.30555556 Z", id: "Shape" }))); }; + exports.default = Reload; + + +}); diff --git a/gh-pages/src/icons/remove_bd754a4.js b/gh-pages/src/icons/remove_bd754a4.js new file mode 100644 index 000000000..b7377999d --- /dev/null +++ b/gh-pages/src/icons/remove_bd754a4.js @@ -0,0 +1,16 @@ +amis.define('src/icons/remove.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Remove = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 12 12", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("g", null, + react_1.default.createElement("rect", { id: "Rectangle-path", x: 4, y: 5, width: 1, height: 4 }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 7, y: 5, width: 1, height: 4 }), + react_1.default.createElement("path", { d: "M0,2 L0,3 L1,3 L1,11 L1,11.5 L1,12 L11,12 L11,11.5 L11,11 L11,3 L12,3 L12,2 L0,2 Z M10,11 L2,11 L2,3 L10,3 L10,11 Z", id: "Shape" }), + react_1.default.createElement("rect", { id: "Rectangle-path", x: 4, y: 0, width: 4, height: 1 }))); }; + exports.default = Remove; + + +}); diff --git a/gh-pages/src/icons/retry_dd12b2b.js b/gh-pages/src/icons/retry_dd12b2b.js new file mode 100644 index 000000000..dc7de8ae3 --- /dev/null +++ b/gh-pages/src/icons/retry_dd12b2b.js @@ -0,0 +1,14 @@ +amis.define('src/icons/retry.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Retry = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 15 17", className: "icon" }, props), + react_1.default.createElement("g", { transform: "translate(1.000000, 0.000000)" }, + react_1.default.createElement("polygon", { id: "Fill-1", fill: "#666666", points: "5.0003 0.0003 5.0003 7.0703 9.5353 3.5353" }), + react_1.default.createElement("path", { fill: "none", d: "M13,9.5355 C13,13.1255 10.09,16.0355 6.5,16.0355 C2.91,16.0355 0,13.1255 0,9.5355 C0,5.9455 2.91,3.0355 6.5,3.0355", stroke: "#666666", strokeWidth: 2 }))); }; + exports.default = Retry; + + +}); diff --git a/gh-pages/src/icons/right-arrow-bold_3f86372.js b/gh-pages/src/icons/right-arrow-bold_3f86372.js new file mode 100644 index 000000000..3d5453918 --- /dev/null +++ b/gh-pages/src/icons/right-arrow-bold_3f86372.js @@ -0,0 +1,13 @@ +amis.define('src/icons/right-arrow-bold.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var RightArrowBold = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 99 176", className: "icon" }, props), + react_1.default.createElement("g", { transform: "translate(-0.132812, 0.304688)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M95.6353697,79.4031346 C95.3433678,79.1111326 95.037575,78.8417152 94.7219891,78.5906854 L19.819373,3.29993262 C15.6492004,-0.870040234 8.88818437,-0.870040234 4.71821172,3.29993262 C0.548238867,7.47010527 0.548238867,14.2309215 4.71821172,18.4010939 L72.9329621,87.0041811 L3.25320488,156.617783 C-0.916767969,160.787956 -0.916767969,167.548772 3.25320488,171.719144 C7.42317773,175.889117 14.1841937,175.889117 18.3543662,171.719144 L94.7211895,95.4180764 C95.0369754,95.1668467 95.342968,94.8976293 95.6351697,94.6054273 C97.7329475,92.5076496 98.7744412,89.7539166 98.7615739,87.0043809 C98.7746414,84.2544453 97.7331475,81.5009123 95.6353697,79.4031346 Z", id: "\\u8DEF\\u5F84" }))); }; + exports.default = RightArrowBold; + + +}); diff --git a/gh-pages/src/icons/right-arrow_7dfd151.js b/gh-pages/src/icons/right-arrow_7dfd151.js new file mode 100644 index 000000000..2efc581f5 --- /dev/null +++ b/gh-pages/src/icons/right-arrow_7dfd151.js @@ -0,0 +1,13 @@ +amis.define('src/icons/right-arrow.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var RightArrow = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 513 1021", className: "icon" }, props), + react_1.default.createElement("g", { id: "right-arrow", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M56.559054,1013.77369 L512.908116,512.684524 L56.559054,12.234501 C49.4114678,2.93455912 37.6664238,-1.59188176 26.1262324,0.505948246 C14.586041,2.60377825 5.18544409,10.9741727 1.76815516,22.1946471 C-1.64913377,33.4151214 1.48980228,45.6045351 9.901516,53.778884 L424.706197,512.684524 L12.458094,969.672731 C2.45820596,982.551498 4.01297737,1000.9483 16.0324422,1011.96615 C28.0519071,1022.98399 46.5142346,1022.93619 58.476487,1011.85626 L56.559054,1013.77369 Z", id: "\\u8DEF\\u5F84" }))); }; + exports.default = RightArrow; + + +}); diff --git a/gh-pages/src/icons/schedule_6264048.js b/gh-pages/src/icons/schedule_6264048.js new file mode 100644 index 000000000..df5f77c4f --- /dev/null +++ b/gh-pages/src/icons/schedule_6264048.js @@ -0,0 +1,14 @@ +amis.define('src/icons/schedule.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Schedule = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 176 176", className: "icon" }, props), + react_1.default.createElement("g", { id: "schedule", transform: "translate(0.500000, 0.304688)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M87.4999,0.154665039 C39.4624693,0.154665039 0.159116992,39.4580174 0.159116992,87.495448 C0.159116992,135.532879 39.4624693,174.836231 87.4999,174.836231 C135.537331,174.836231 174.840683,135.532879 174.840683,87.495448 C174.840683,39.4580174 135.537131,0.154665039 87.4999,0.154665039 Z M87.4999,157.368074 C49.075152,157.368074 17.6272736,125.92879 17.6272736,87.495448 C17.6272736,49.0621059 49.075152,17.6228217 87.4999,17.6228217 C125.924648,17.6228217 157.372526,49.0621059 157.372526,87.495448 C157.372526,125.92879 125.924648,157.368074 87.4999,157.368074 Z", id: "\\u5F62\\u72B6" }), + react_1.default.createElement("polygon", { id: "\\u8DEF\\u5F84", points: "91.8667393 43.8250564 78.7656219 43.8250564 78.7656219 96.2295262 124.184628 124.180176 131.170092 112.827673 91.8667393 89.2438625" }))); }; + exports.default = Schedule; + + +}); diff --git a/gh-pages/src/icons/search_57ae5a0.js b/gh-pages/src/icons/search_57ae5a0.js new file mode 100644 index 000000000..87904a834 --- /dev/null +++ b/gh-pages/src/icons/search_57ae5a0.js @@ -0,0 +1,12 @@ +amis.define('src/icons/search.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Search = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 18 18", className: "icon" }, props), + react_1.default.createElement("path", { d: "M2,8 C2,4.691 4.691,2 8,2 C11.309,2 14,4.691 14,8 C14,11.309 11.309,14 8,14 C4.691,14 2,11.309 2,8 L2,8 Z M18,16.586 L14.314,12.9 C15.367,11.545 16,9.849 16,8 C16,3.582 12.418,0 8,0 C3.582,0 0,3.582 0,8 C0,12.418 3.582,16 8,16 C9.849,16 11.545,15.367 12.9,14.314 L16.586,18 L18,16.586 Z" })); }; + exports.default = Search; + + +}); diff --git a/gh-pages/src/icons/sort-asc_4fdf533.js b/gh-pages/src/icons/sort-asc_4fdf533.js new file mode 100644 index 000000000..a3701f290 --- /dev/null +++ b/gh-pages/src/icons/sort-asc_4fdf533.js @@ -0,0 +1,13 @@ +amis.define('src/icons/sort-asc.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var SortAsc = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 7 10", className: "icon" }, props), + react_1.default.createElement("g", { fill: "currentColor" }, + react_1.default.createElement("polygon", { points: "3.5 0 2.8 0.703 0 3.514 0.7 4.217 3.005 1.903 3.005 10 3.995 10 3.995 1.903 6.3 4.217 7 3.514 4.2 0.703" }))); }; + exports.default = SortAsc; + + +}); diff --git a/gh-pages/src/icons/sort-default_5d6d546.js b/gh-pages/src/icons/sort-default_5d6d546.js new file mode 100644 index 000000000..9a05a43fb --- /dev/null +++ b/gh-pages/src/icons/sort-default_5d6d546.js @@ -0,0 +1,14 @@ +amis.define('src/icons/sort-default.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var SortDefault = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 7 12", className: "icon" }, props), + react_1.default.createElement("g", { fill: "currentColor" }, + react_1.default.createElement("polygon", { points: "3.5354 0.0004 2.8284 0.7064 0.0004 3.5344 0.7074 4.2424 3.0354 1.9134 3.0354 5.0354 4.0354 5.0354 4.0354 1.9134 6.3634 4.2424 7.0704 3.5344 4.2424 0.7064" }), + react_1.default.createElement("polygon", { points: "3.035 7.0348 3.035 10.1558 0.708 7.8278 0 8.5348 2.828 11.3628 3.535 12.0708 4.243 11.3628 7.071 8.5348 6.363 7.8278 4.036 10.1558 4.036 7.0348" }))); }; + exports.default = SortDefault; + + +}); diff --git a/gh-pages/src/icons/sort-desc_ca5cbfd.js b/gh-pages/src/icons/sort-desc_ca5cbfd.js new file mode 100644 index 000000000..5e893c79b --- /dev/null +++ b/gh-pages/src/icons/sort-desc_ca5cbfd.js @@ -0,0 +1,13 @@ +amis.define('src/icons/sort-desc.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var SortDesc = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 7 10", className: "icon" }, props), + react_1.default.createElement("g", { id: "07icon/\\u8868\\u5934/\\u6392\\u5E8F\\u4E0B", fill: "currentColor" }, + react_1.default.createElement("polygon", { id: "07icon/\\u6392\\u5E8F/\\u6B63\\u5E8F", transform: "translate(3.500000, 5.000000) scale(1, -1) translate(-3.500000, -5.000000) ", points: "3.5 0 2.8 0.703 0 3.514 0.7 4.217 3.005 1.903 3.005 10 3.995 10 3.995 1.903 6.3 4.217 7 3.514 4.2 0.703" }))); }; + exports.default = SortDesc; + + +}); diff --git a/gh-pages/src/icons/success_70b3df3.js b/gh-pages/src/icons/success_70b3df3.js new file mode 100644 index 000000000..e00dfcbd4 --- /dev/null +++ b/gh-pages/src/icons/success_70b3df3.js @@ -0,0 +1,15 @@ +amis.define('src/icons/success.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Success = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 32 32", className: "icon" }, props), + react_1.default.createElement("g", { id: "Group-5" }, + react_1.default.createElement("circle", { stroke: "currentColor", fill: "none", cx: 16, cy: 16, r: 15.5 }), + react_1.default.createElement("g", { transform: "translate(5.647059, 7.529412)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("polygon", { id: "Shape", points: "21.1764706 2.76408669 18.7058824 0.26749226 7.41176471 11.6804954 2.47058824 6.50897833 0 9.18390093 4.94117647 14.1770898 4.94117647 14.1770898 7.41176471 16.6736842 9.88235294 14.1770898 9.88235294 14.1770898" })))); }; + exports.default = Success; + + +}); diff --git a/gh-pages/src/icons/undo_e49cfd6.js b/gh-pages/src/icons/undo_e49cfd6.js new file mode 100644 index 000000000..17c2f5a38 --- /dev/null +++ b/gh-pages/src/icons/undo_e49cfd6.js @@ -0,0 +1,13 @@ +amis.define('src/icons/undo.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Undo = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 854 768", className: "icon" }, props), + react_1.default.createElement("g", { id: "undo", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M576.333333,213.333333 L82.04,213.333333 L265.293333,30.08 L235,0 L0.333333,234.666667 L235,469.333333 L265.08,439.253333 L82.04,256 L576.333333,256 C705.930172,256.00846 810.984681,361.069827 810.984681,490.666667 C810.984681,620.263506 705.930172,725.324873 576.333333,725.333333 L363,725.333333 L363,768 L576.333333,768 C729.500304,768 853.666667,643.833637 853.666667,490.666667 C853.666667,337.499696 729.500304,213.333333 576.333333,213.333333 Z", id: "\\u8DEF\\u5F84" }))); }; + exports.default = Undo; + + +}); diff --git a/gh-pages/src/icons/upload_8d2a2ce.js b/gh-pages/src/icons/upload_8d2a2ce.js new file mode 100644 index 000000000..fab2e6813 --- /dev/null +++ b/gh-pages/src/icons/upload_8d2a2ce.js @@ -0,0 +1,18 @@ +amis.define('src/icons/upload.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Upload = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 16", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("g", { stroke: "currentColor", strokeWidth: 2, fill: "none", fillRule: "evenodd" }, + react_1.default.createElement("path", { d: "M8,12.2426 L8,1.2426" }), + react_1.default.createElement("path", { d: "M4.4648,4.9496 L8.7068,0.7076" }), + react_1.default.createElement("path", { d: "M11.5352,4.9496 L7.2932,0.7076" }), + react_1.default.createElement("path", { d: "M0,14.2426 L16,14.2426" }), + react_1.default.createElement("path", { d: "M1,9.2426 L1,15.2426" }), + react_1.default.createElement("path", { d: "M15,9.2426 L15,15.2426" }))); }; + exports.default = Upload; + + +}); diff --git a/gh-pages/src/icons/view_a74d833.js b/gh-pages/src/icons/view_a74d833.js new file mode 100644 index 000000000..15267ac53 --- /dev/null +++ b/gh-pages/src/icons/view_a74d833.js @@ -0,0 +1,14 @@ +amis.define('src/icons/view.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var View = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 16 10", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("g", null, + react_1.default.createElement("path", { d: "M8,1 C11,1 13.7,3.8 14.7,5 C13.7,6.2 11,9 8,9 C5,9 2.3,6.2 1.3,5 C2.3,3.8 5,1 8,1 L8,1 Z M8,0 C3.6,0 0,5 0,5 C0,5 3.6,10 8,10 C12.4,10 16,5 16,5 C16,5 12.4,0 8,0 L8,0 Z" }), + react_1.default.createElement("path", { d: "M8,2 C9.7,2 11,3.3 11,5 C11,6.7 9.7,8 8,8 C6.3,8 5,6.7 5,5 C5,3.3 6.3,2 8,2 L8,2 Z M8,1 C5.8,1 4,2.8 4,5 C4,7.2 5.8,9 8,9 C10.2,9 12,7.2 12,5 C12,2.8 10.2,1 8,1 L8,1 Z" }))); }; + exports.default = View; + + +}); diff --git a/gh-pages/src/icons/volume_eb7b003.js b/gh-pages/src/icons/volume_eb7b003.js new file mode 100644 index 000000000..06ae2a0ce --- /dev/null +++ b/gh-pages/src/icons/volume_eb7b003.js @@ -0,0 +1,13 @@ +amis.define('src/icons/volume.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Volume = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 1024 1024", "p-id": 1463, className: "icon" }, props), + react_1.default.createElement("path", { d: "M536.319574 5.11991a63.99888 63.99888 0 0 0-69.758779 13.439765L229.764939 255.99552H64.00784a63.99888 63.99888 0 0 0-63.99888 63.99888v383.99328a63.99888 63.99888 0 0 0 63.99888 63.99888h165.757099l236.795856 237.435845A63.99888 63.99888 0 0 0 512 1023.98208a53.759059 53.759059 0 0 0 24.319574-5.11991A63.99888 63.99888 0 0 0 575.99888 959.9832V63.99888a63.99888 63.99888 0 0 0-39.679306-58.87897zM192.0056 639.9888H128.00672V383.99328h63.99888z m255.99552 165.757099l-127.99776-127.99776V346.233941l127.99776-127.99776zM879.353571 148.477402a63.99888 63.99888 0 0 0-94.718342 87.038476 402.552955 402.552955 0 0 1 0 552.950324A63.99888 63.99888 0 0 0 831.9944 895.98432a63.99888 63.99888 0 0 0 46.719183-20.479641 531.830693 531.830693 0 0 0 0-727.027277z", fill: "#606670", "p-id": 3605 }), + react_1.default.createElement("path", { d: "M751.9958 277.11515a63.99888 63.99888 0 0 0-95.99832 85.7585A218.236181 218.236181 0 0 1 703.99664 511.99104a221.436125 221.436125 0 0 1-47.359171 149.117391 63.99888 63.99888 0 0 0 4.479921 90.23842A63.99888 63.99888 0 0 0 703.99664 767.98656a63.99888 63.99888 0 0 0 47.359171-21.11963A349.433885 349.433885 0 0 0 831.9944 511.99104a353.273818 353.273818 0 0 0-79.9986-234.87589z", fill: "#606670", "p-id": 3606 })); }; + exports.default = Volume; + + +}); diff --git a/gh-pages/src/icons/warning_ca70db3.js b/gh-pages/src/icons/warning_ca70db3.js new file mode 100644 index 000000000..7788d923c --- /dev/null +++ b/gh-pages/src/icons/warning_ca70db3.js @@ -0,0 +1,13 @@ +amis.define('src/icons/warning.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var Warning = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 150 138", className: "icon" }, props), + react_1.default.createElement("g", { id: "warning", transform: "translate(0.390625, 0.882812)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M80.6802084,1.5963541 C82.7195697,2.72968791 84.4010413,4.41115959 85.534375,6.4505209 L147.626042,118.213021 C149.777654,122.085674 149.718692,126.807897 147.471057,130.62562 C145.223423,134.443344 141.122931,136.78617 136.692708,136.783856 L12.5260416,136.783856 C8.09656245,136.783856 3.99742458,134.441281 1.75080345,130.623824 C-0.495817677,126.806367 -0.554375449,122.085024 1.596875,118.213021 L63.684375,6.4505209 C67.0377886,0.417546946 74.64639,-1.7555398 80.6802084,1.5963541 Z M74.609375,12.5213541 L12.521875,124.283854 L136.692708,124.283854 L74.609375,12.5213541 Z M80.859375,99.2838541 L80.859375,111.783854 L68.359375,111.783854 L68.359375,99.2838541 L80.859375,99.2838541 Z M80.859375,45.2921875 L80.859375,90.9505209 L68.359375,90.9505209 L68.359375,45.2921875 L80.859375,45.2921875 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = Warning; + + +}); diff --git a/gh-pages/src/icons/window-restore_9213752.js b/gh-pages/src/icons/window-restore_9213752.js new file mode 100644 index 000000000..e90a3fdd8 --- /dev/null +++ b/gh-pages/src/icons/window-restore_9213752.js @@ -0,0 +1,13 @@ +amis.define('src/icons/window-restore.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var WindowRestore = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 200 200", className: "icon" }, props), + react_1.default.createElement("g", { id: "window-restore", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M181.25,0 L56.25,0 C45.8984375,0 37.5,8.3984375 37.5,18.75 L37.5,37.5 L18.75,37.5 C8.3984375,37.5 0,45.8984375 0,56.25 L0,181.25 C0,191.601562 8.3984375,200 18.75,200 L143.75,200 C154.101562,200 162.5,191.601562 162.5,181.25 L162.5,162.5 L181.25,162.5 C191.601562,162.5 200,154.101562 200,143.75 L200,18.75 C200,8.3984375 191.601562,0 181.25,0 Z M143.75,181.25 L18.75,181.25 L18.75,100 L143.75,100 L143.75,181.25 Z M181.25,143.75 L162.5,143.75 L162.5,56.25 C162.5,45.8984375 154.101562,37.5 143.75,37.5 L56.25,37.5 L56.25,18.75 L181.25,18.75 L181.25,143.75 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = WindowRestore; + + +}); diff --git a/gh-pages/src/icons/zoom-in_f0f9c0e.js b/gh-pages/src/icons/zoom-in_f0f9c0e.js new file mode 100644 index 000000000..32d5f40f1 --- /dev/null +++ b/gh-pages/src/icons/zoom-in_f0f9c0e.js @@ -0,0 +1,13 @@ +amis.define('src/icons/zoom-in.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var ZoomIn = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 201 200", className: "icon" }, props), + react_1.default.createElement("g", { id: "Zoom-In-(1)", transform: "translate(-0.195312, 0.000000)", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M200.969037,185.426237 L186.577193,199.885458 L132.526927,145.673486 C118.265005,157.063662 100.555788,163.269253 82.3037053,163.2725 C44.3450876,163.501364 11.2373309,137.535745 2.41322763,100.616316 C-6.41087568,63.6968867 11.3773428,25.5666334 45.3369837,8.60633202 C79.2966246,-8.35396931 120.465786,0.331480961 144.679988,29.5647067 C168.894189,58.7979325 169.763336,100.864327 146.777278,131.072772 L200.969037,185.426237 Z M82.3037053,18.6663447 C56.751881,18.5686211 33.6615322,33.8854576 23.8157876,57.4644032 C13.970043,81.0433489 19.3114596,108.232298 37.3456107,126.334087 C55.3797618,144.435876 82.5485248,149.879037 106.164163,140.121629 C129.779801,130.364221 145.182969,107.331373 145.180448,81.7793602 C145.206592,47.004448 117.078472,18.7708318 82.3037053,18.6663447 L82.3037053,18.6663447 Z M91.4198871,118.452958 L73.1605725,118.452958 L73.1605725,90.9427063 L45.7783383,90.9427063 L45.7783383,72.6092764 L73.1605725,72.6092764 L73.1605725,45.1192381 L91.4198871,45.1192381 L91.4198871,72.6092764 L118.822334,72.6092764 L118.822334,90.9427063 L91.4198871,90.9427063 L91.4198871,118.452958 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = ZoomIn; + + +}); diff --git a/gh-pages/src/icons/zoom-out_76018f0.js b/gh-pages/src/icons/zoom-out_76018f0.js new file mode 100644 index 000000000..26f46e62a --- /dev/null +++ b/gh-pages/src/icons/zoom-out_76018f0.js @@ -0,0 +1,13 @@ +amis.define('src/icons/zoom-out.svg', function(require, exports, module, define) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require("node_modules/tslib/tslib"); + var react_1 = tslib_1.__importDefault(require("node_modules/react/index")); + var ZoomOut = function (props) { return react_1.default.createElement("svg", tslib_1.__assign({ viewBox: "0 0 187 187", className: "icon" }, props), + react_1.default.createElement("g", { id: "Zoom-In", fill: "currentColor", fillRule: "nonzero" }, + react_1.default.createElement("path", { d: "M45.4545455,90.9090908 L118.181818,90.9090908 L118.181818,72.7272727 L45.4545455,72.7272727 L45.4545455,90.9090908 Z M145.709091,132.854546 C157.32865,118.383803 163.653932,100.376636 163.636364,81.8181818 C163.636364,36.6272727 127.009091,0 81.8181818,0 C36.6272727,0 0,36.6272727 0,81.8181818 C0,127.009091 36.6272727,163.636364 81.8181818,163.636364 C101.136364,163.636364 118.854546,156.909091 132.854546,145.709091 L173.827273,186.681818 L186.681818,173.827273 L145.709091,132.854546 Z M81.8181818,145.454546 C46.6727886,145.454546 18.1818182,116.963575 18.1818182,81.8181818 C18.1818182,46.6727886 46.6727886,18.1818182 81.8181818,18.1818182 C116.963575,18.1818182 145.454546,46.6727886 145.454546,81.8181818 C145.454546,116.963575 116.963575,145.454546 81.8181818,145.454546 L81.8181818,145.454546 Z", id: "\\u5F62\\u72B6" }))); }; + exports.default = ZoomOut; + + +}); diff --git a/gh-pages/tabs/form.html b/gh-pages/tabs/form.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/tabs/form.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/tabs/normal.html b/gh-pages/tabs/normal.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/tabs/normal.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/tabs/tab1.html b/gh-pages/tabs/tab1.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/tabs/tab1.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/tabs/tab2.html b/gh-pages/tabs/tab2.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/tabs/tab2.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/tabs/tab3.html b/gh-pages/tabs/tab3.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/tabs/tab3.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/task.html b/gh-pages/task.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/task.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/test.html b/gh-pages/test.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/test.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/video.html b/gh-pages/video.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/video.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - - diff --git a/gh-pages/wizard.html b/gh-pages/wizard.html deleted file mode 100644 index ba5fbdd97..000000000 --- a/gh-pages/wizard.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - AMis Renderer - - - - - - - - - - - - - - -
- - - - - - - - -