oga-ui 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +72 -19
- package/packages/avatar/index.ts +8 -0
- package/packages/editor/index.ts +8 -0
- package/packages/form/index.ts +8 -0
- package/packages/form-item/index.ts +8 -0
- package/packages/i18n/base.ts +36 -0
- package/packages/i18n/lang/en.ts +78 -0
- package/packages/i18n/lang/zh-CN.ts +73 -0
- package/packages/i18n/lang/zh-TW.ts +73 -0
- package/packages/icon/index.ts +8 -0
- package/packages/icon/svg/add-location.svg +1 -0
- package/packages/icon/svg/aim.svg +1 -0
- package/packages/icon/svg/alarm-clock.svg +1 -0
- package/packages/icon/svg/apple.svg +1 -0
- package/packages/icon/svg/arrow-down-bold.svg +1 -0
- package/packages/icon/svg/arrow-down.svg +1 -0
- package/packages/icon/svg/arrow-left-bold.svg +1 -0
- package/packages/icon/svg/arrow-left.svg +1 -0
- package/packages/icon/svg/arrow-right-bold.svg +1 -0
- package/packages/icon/svg/arrow-right.svg +1 -0
- package/packages/icon/svg/arrow-up-bold.svg +1 -0
- package/packages/icon/svg/arrow-up.svg +1 -0
- package/packages/icon/svg/avatar.svg +1 -0
- package/packages/icon/svg/back.svg +1 -0
- package/packages/icon/svg/baseball.svg +1 -0
- package/packages/icon/svg/basketball.svg +1 -0
- package/packages/icon/svg/bell-filled.svg +1 -0
- package/packages/icon/svg/bell.svg +1 -0
- package/packages/icon/svg/bicycle.svg +1 -0
- package/packages/icon/svg/bottom-left.svg +1 -0
- package/packages/icon/svg/bottom-right.svg +1 -0
- package/packages/icon/svg/bottom.svg +1 -0
- package/packages/icon/svg/bowl.svg +1 -0
- package/packages/icon/svg/box.svg +1 -0
- package/packages/icon/svg/briefcase.svg +1 -0
- package/packages/icon/svg/brush-filled.svg +1 -0
- package/packages/icon/svg/brush.svg +1 -0
- package/packages/icon/svg/burger.svg +1 -0
- package/packages/icon/svg/calendar.svg +1 -0
- package/packages/icon/svg/camera-filled.svg +1 -0
- package/packages/icon/svg/camera.svg +1 -0
- package/packages/icon/svg/caret-bottom.svg +1 -0
- package/packages/icon/svg/caret-left.svg +1 -0
- package/packages/icon/svg/caret-right.svg +1 -0
- package/packages/icon/svg/caret-top.svg +1 -0
- package/packages/icon/svg/cellphone.svg +1 -0
- package/packages/icon/svg/chat-dot-round.svg +1 -0
- package/packages/icon/svg/chat-dot-square.svg +1 -0
- package/packages/icon/svg/chat-line-round.svg +1 -0
- package/packages/icon/svg/chat-line-square.svg +1 -0
- package/packages/icon/svg/chat-round.svg +1 -0
- package/packages/icon/svg/chat-square.svg +1 -0
- package/packages/icon/svg/check.svg +1 -0
- package/packages/icon/svg/checked.svg +1 -0
- package/packages/icon/svg/cherry.svg +1 -0
- package/packages/icon/svg/chicken.svg +1 -0
- package/packages/icon/svg/chrome-filled.svg +1 -0
- package/packages/icon/svg/circle-check-filled.svg +1 -0
- package/packages/icon/svg/circle-check.svg +1 -0
- package/packages/icon/svg/circle-close-filled.svg +1 -0
- package/packages/icon/svg/circle-close.svg +1 -0
- package/packages/icon/svg/circle-plus-filled.svg +1 -0
- package/packages/icon/svg/circle-plus.svg +1 -0
- package/packages/icon/svg/clock.svg +1 -0
- package/packages/icon/svg/close-bold.svg +1 -0
- package/packages/icon/svg/close.svg +1 -0
- package/packages/icon/svg/cloudy.svg +1 -0
- package/packages/icon/svg/coffee-cup.svg +1 -0
- package/packages/icon/svg/coffee.svg +1 -0
- package/packages/icon/svg/coin.svg +1 -0
- package/packages/icon/svg/cold-drink.svg +1 -0
- package/packages/icon/svg/collection-tag.svg +1 -0
- package/packages/icon/svg/collection.svg +1 -0
- package/packages/icon/svg/comment.svg +1 -0
- package/packages/icon/svg/compass.svg +1 -0
- package/packages/icon/svg/connection.svg +1 -0
- package/packages/icon/svg/coordinate.svg +1 -0
- package/packages/icon/svg/copy-document.svg +1 -0
- package/packages/icon/svg/cpu.svg +1 -0
- package/packages/icon/svg/credit-card.svg +1 -0
- package/packages/icon/svg/crop.svg +1 -0
- package/packages/icon/svg/d-arrow-left.svg +1 -0
- package/packages/icon/svg/d-arrow-right.svg +1 -0
- package/packages/icon/svg/d-caret.svg +1 -0
- package/packages/icon/svg/data-analysis.svg +1 -0
- package/packages/icon/svg/data-board.svg +1 -0
- package/packages/icon/svg/data-line.svg +1 -0
- package/packages/icon/svg/delete-filled.svg +1 -0
- package/packages/icon/svg/delete-location.svg +1 -0
- package/packages/icon/svg/delete.svg +1 -0
- package/packages/icon/svg/dessert.svg +1 -0
- package/packages/icon/svg/discount.svg +1 -0
- package/packages/icon/svg/dish-dot.svg +1 -0
- package/packages/icon/svg/dish.svg +1 -0
- package/packages/icon/svg/document-add.svg +1 -0
- package/packages/icon/svg/document-checked.svg +1 -0
- package/packages/icon/svg/document-copy.svg +1 -0
- package/packages/icon/svg/document-delete.svg +1 -0
- package/packages/icon/svg/document-remove.svg +1 -0
- package/packages/icon/svg/document.svg +1 -0
- package/packages/icon/svg/download.svg +1 -0
- package/packages/icon/svg/drizzling.svg +1 -0
- package/packages/icon/svg/edit-pen.svg +1 -0
- package/packages/icon/svg/edit.svg +1 -0
- package/packages/icon/svg/eleme-filled.svg +1 -0
- package/packages/icon/svg/eleme.svg +1 -0
- package/packages/icon/svg/element-plus.svg +1 -0
- package/packages/icon/svg/expand.svg +1 -0
- package/packages/icon/svg/failed.svg +1 -0
- package/packages/icon/svg/female.svg +1 -0
- package/packages/icon/svg/files.svg +1 -0
- package/packages/icon/svg/film.svg +1 -0
- package/packages/icon/svg/filter.svg +1 -0
- package/packages/icon/svg/finished.svg +1 -0
- package/packages/icon/svg/first-aid-kit.svg +1 -0
- package/packages/icon/svg/flag.svg +1 -0
- package/packages/icon/svg/fold.svg +1 -0
- package/packages/icon/svg/folder-add.svg +1 -0
- package/packages/icon/svg/folder-checked.svg +1 -0
- package/packages/icon/svg/folder-delete.svg +1 -0
- package/packages/icon/svg/folder-opened.svg +1 -0
- package/packages/icon/svg/folder-remove.svg +1 -0
- package/packages/icon/svg/folder.svg +1 -0
- package/packages/icon/svg/food.svg +1 -0
- package/packages/icon/svg/football.svg +1 -0
- package/packages/icon/svg/fork-spoon.svg +1 -0
- package/packages/icon/svg/fries.svg +1 -0
- package/packages/icon/svg/full-screen.svg +1 -0
- package/packages/icon/svg/goblet-full.svg +1 -0
- package/packages/icon/svg/goblet-square-full.svg +1 -0
- package/packages/icon/svg/goblet-square.svg +1 -0
- package/packages/icon/svg/goblet.svg +1 -0
- package/packages/icon/svg/gold-medal.svg +1 -0
- package/packages/icon/svg/goods-filled.svg +1 -0
- package/packages/icon/svg/goods.svg +1 -0
- package/packages/icon/svg/grape.svg +1 -0
- package/packages/icon/svg/grid.svg +1 -0
- package/packages/icon/svg/guide.svg +1 -0
- package/packages/icon/svg/handbag.svg +1 -0
- package/packages/icon/svg/headset.svg +1 -0
- package/packages/icon/svg/help-filled.svg +1 -0
- package/packages/icon/svg/help.svg +1 -0
- package/packages/icon/svg/hide.svg +1 -0
- package/packages/icon/svg/histogram.svg +1 -0
- package/packages/icon/svg/home-filled.svg +1 -0
- package/packages/icon/svg/hot-water.svg +1 -0
- package/packages/icon/svg/house.svg +1 -0
- package/packages/icon/svg/ice-cream-round.svg +1 -0
- package/packages/icon/svg/ice-cream-square.svg +1 -0
- package/packages/icon/svg/ice-cream.svg +1 -0
- package/packages/icon/svg/ice-drink.svg +1 -0
- package/packages/icon/svg/ice-tea.svg +1 -0
- package/packages/icon/svg/info-filled.svg +1 -0
- package/packages/icon/svg/iphone.svg +1 -0
- package/packages/icon/svg/key.svg +1 -0
- package/packages/icon/svg/knife-fork.svg +1 -0
- package/packages/icon/svg/lightning.svg +1 -0
- package/packages/icon/svg/link.svg +1 -0
- package/packages/icon/svg/list.svg +1 -0
- package/packages/icon/svg/loading.svg +1 -0
- package/packages/icon/svg/location-filled.svg +1 -0
- package/packages/icon/svg/location-information.svg +1 -0
- package/packages/icon/svg/location.svg +1 -0
- package/packages/icon/svg/lock.svg +1 -0
- package/packages/icon/svg/lollipop.svg +1 -0
- package/packages/icon/svg/magic-stick.svg +1 -0
- package/packages/icon/svg/magnet.svg +1 -0
- package/packages/icon/svg/male.svg +1 -0
- package/packages/icon/svg/management.svg +1 -0
- package/packages/icon/svg/map-location.svg +1 -0
- package/packages/icon/svg/medal.svg +1 -0
- package/packages/icon/svg/memo.svg +1 -0
- package/packages/icon/svg/menu.svg +1 -0
- package/packages/icon/svg/message-box.svg +1 -0
- package/packages/icon/svg/message.svg +1 -0
- package/packages/icon/svg/mic.svg +1 -0
- package/packages/icon/svg/microphone.svg +1 -0
- package/packages/icon/svg/milk-tea.svg +1 -0
- package/packages/icon/svg/minus.svg +1 -0
- package/packages/icon/svg/money.svg +1 -0
- package/packages/icon/svg/monitor.svg +1 -0
- package/packages/icon/svg/moon-night.svg +1 -0
- package/packages/icon/svg/moon.svg +1 -0
- package/packages/icon/svg/more-filled.svg +1 -0
- package/packages/icon/svg/more.svg +1 -0
- package/packages/icon/svg/mostly-cloudy.svg +1 -0
- package/packages/icon/svg/mouse.svg +1 -0
- package/packages/icon/svg/mug.svg +1 -0
- package/packages/icon/svg/mute-notification.svg +1 -0
- package/packages/icon/svg/mute.svg +1 -0
- package/packages/icon/svg/no-smoking.svg +1 -0
- package/packages/icon/svg/notebook.svg +1 -0
- package/packages/icon/svg/notification.svg +1 -0
- package/packages/icon/svg/odometer.svg +1 -0
- package/packages/icon/svg/office-building.svg +1 -0
- package/packages/icon/svg/open.svg +1 -0
- package/packages/icon/svg/operation.svg +1 -0
- package/packages/icon/svg/opportunity.svg +1 -0
- package/packages/icon/svg/orange.svg +1 -0
- package/packages/icon/svg/paperclip.svg +1 -0
- package/packages/icon/svg/partly-cloudy.svg +1 -0
- package/packages/icon/svg/pear.svg +1 -0
- package/packages/icon/svg/phone-filled.svg +1 -0
- package/packages/icon/svg/phone.svg +1 -0
- package/packages/icon/svg/picture-filled.svg +1 -0
- package/packages/icon/svg/picture-rounded.svg +1 -0
- package/packages/icon/svg/picture.svg +1 -0
- package/packages/icon/svg/pie-chart.svg +1 -0
- package/packages/icon/svg/place.svg +1 -0
- package/packages/icon/svg/platform.svg +1 -0
- package/packages/icon/svg/plus.svg +1 -0
- package/packages/icon/svg/pointer.svg +1 -0
- package/packages/icon/svg/position.svg +1 -0
- package/packages/icon/svg/postcard.svg +1 -0
- package/packages/icon/svg/pouring.svg +1 -0
- package/packages/icon/svg/present.svg +1 -0
- package/packages/icon/svg/price-tag.svg +1 -0
- package/packages/icon/svg/printer.svg +1 -0
- package/packages/icon/svg/promotion.svg +1 -0
- package/packages/icon/svg/quartz-watch.svg +1 -0
- package/packages/icon/svg/question-filled.svg +1 -0
- package/packages/icon/svg/rank.svg +1 -0
- package/packages/icon/svg/reading-lamp.svg +1 -0
- package/packages/icon/svg/reading.svg +1 -0
- package/packages/icon/svg/refresh-left.svg +1 -0
- package/packages/icon/svg/refresh-right.svg +1 -0
- package/packages/icon/svg/refresh.svg +1 -0
- package/packages/icon/svg/refrigerator.svg +1 -0
- package/packages/icon/svg/remove-filled.svg +1 -0
- package/packages/icon/svg/remove.svg +1 -0
- package/packages/icon/svg/right.svg +1 -0
- package/packages/icon/svg/scale-to-original.svg +1 -0
- package/packages/icon/svg/school.svg +1 -0
- package/packages/icon/svg/scissor.svg +1 -0
- package/packages/icon/svg/search.svg +1 -0
- package/packages/icon/svg/select.svg +1 -0
- package/packages/icon/svg/sell.svg +1 -0
- package/packages/icon/svg/semi-select.svg +1 -0
- package/packages/icon/svg/service.svg +1 -0
- package/packages/icon/svg/set-up.svg +1 -0
- package/packages/icon/svg/setting.svg +1 -0
- package/packages/icon/svg/share.svg +1 -0
- package/packages/icon/svg/ship.svg +1 -0
- package/packages/icon/svg/shop.svg +1 -0
- package/packages/icon/svg/shopping-bag.svg +1 -0
- package/packages/icon/svg/shopping-cart-full.svg +1 -0
- package/packages/icon/svg/shopping-cart.svg +1 -0
- package/packages/icon/svg/shopping-trolley.svg +1 -0
- package/packages/icon/svg/smoking.svg +1 -0
- package/packages/icon/svg/soccer.svg +1 -0
- package/packages/icon/svg/sold-out.svg +1 -0
- package/packages/icon/svg/sort-down.svg +1 -0
- package/packages/icon/svg/sort-up.svg +1 -0
- package/packages/icon/svg/sort.svg +1 -0
- package/packages/icon/svg/stamp.svg +1 -0
- package/packages/icon/svg/star-filled.svg +1 -0
- package/packages/icon/svg/star.svg +1 -0
- package/packages/icon/svg/stopwatch.svg +1 -0
- package/packages/icon/svg/success-filled.svg +1 -0
- package/packages/icon/svg/sugar.svg +1 -0
- package/packages/icon/svg/suitcase-line.svg +1 -0
- package/packages/icon/svg/suitcase.svg +1 -0
- package/packages/icon/svg/sunny.svg +1 -0
- package/packages/icon/svg/sunrise.svg +1 -0
- package/packages/icon/svg/sunset.svg +1 -0
- package/packages/icon/svg/switch-button.svg +1 -0
- package/packages/icon/svg/switch-filled.svg +1 -0
- package/packages/icon/svg/switch.svg +1 -0
- package/packages/icon/svg/takeaway-box.svg +1 -0
- package/packages/icon/svg/ticket.svg +1 -0
- package/packages/icon/svg/tickets.svg +1 -0
- package/packages/icon/svg/timer.svg +1 -0
- package/packages/icon/svg/toilet-paper.svg +1 -0
- package/packages/icon/svg/tools.svg +1 -0
- package/packages/icon/svg/top-left.svg +1 -0
- package/packages/icon/svg/top-right.svg +1 -0
- package/packages/icon/svg/top.svg +1 -0
- package/packages/icon/svg/trend-charts.svg +1 -0
- package/packages/icon/svg/trophy-base.svg +1 -0
- package/packages/icon/svg/trophy.svg +1 -0
- package/packages/icon/svg/turn-off.svg +1 -0
- package/packages/icon/svg/umbrella.svg +1 -0
- package/packages/icon/svg/unlock.svg +1 -0
- package/packages/icon/svg/upload-filled.svg +1 -0
- package/packages/icon/svg/upload.svg +1 -0
- package/packages/icon/svg/user-filled.svg +1 -0
- package/packages/icon/svg/user.svg +1 -0
- package/packages/icon/svg/van.svg +1 -0
- package/packages/icon/svg/video-camera-filled.svg +1 -0
- package/packages/icon/svg/video-camera.svg +1 -0
- package/packages/icon/svg/video-pause.svg +1 -0
- package/packages/icon/svg/video-play.svg +1 -0
- package/packages/icon/svg/view.svg +1 -0
- package/packages/icon/svg/wallet-filled.svg +1 -0
- package/packages/icon/svg/wallet.svg +1 -0
- package/packages/icon/svg/warn-triangle-filled.svg +1 -0
- package/packages/icon/svg/warning-filled.svg +1 -0
- package/packages/icon/svg/warning.svg +1 -0
- package/packages/icon/svg/watch.svg +1 -0
- package/packages/icon/svg/watermelon.svg +1 -0
- package/packages/icon/svg/wind-power.svg +1 -0
- package/packages/icon/svg/zoom-in.svg +1 -0
- package/packages/icon/svg/zoom-out.svg +1 -0
- package/packages/iconfont/iconfont.js +1 -0
- package/packages/iconfont/index.ts +8 -0
- package/packages/image-upload/index.ts +8 -0
- package/packages/index.ts +60 -0
- package/packages/input/cascader.ts +8 -0
- package/packages/input/date-picker.ts +8 -0
- package/packages/input/index.ts +8 -0
- package/packages/input/mention.ts +8 -0
- package/packages/input/number.ts +8 -0
- package/packages/input/select-v2.ts +8 -0
- package/packages/input/select.ts +8 -0
- package/packages/input/tag.ts +8 -0
- package/packages/input/time-picker.ts +8 -0
- package/packages/input/time-select.ts +8 -0
- package/packages/input/tree-select.ts +8 -0
- package/packages/layout/index.ts +8 -0
- package/packages/page/index.ts +8 -0
- package/packages/paging/index.ts +8 -0
- package/packages/plugins/utility.ts +248 -0
- package/packages/progress/index.ts +8 -0
- package/packages/section/index.ts +8 -0
- package/packages/style/index.scss +1001 -0
- package/packages/table/index.ts +8 -0
- package/packages/unsaved/index.ts +8 -0
- package/tsconfig.lib.json +11 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/assets/add-location-0jtqP1wY.mjs +0 -2
- package/assets/aim-C3rZn5C3.mjs +0 -2
- package/assets/alarm-clock-ByDeOzfQ.mjs +0 -2
- package/assets/apple-TPWbT61g.mjs +0 -2
- package/assets/arrow-down-Be42LogH.mjs +0 -2
- package/assets/arrow-down-bold-B9ZlT_dV.mjs +0 -2
- package/assets/arrow-left-CcFJ_CJL.mjs +0 -2
- package/assets/arrow-left-bold-DMVGMQTa.mjs +0 -2
- package/assets/arrow-right-BjxETpOu.mjs +0 -2
- package/assets/arrow-right-bold-CUrcpOAO.mjs +0 -2
- package/assets/arrow-up-CpaeoiaD.mjs +0 -2
- package/assets/arrow-up-bold-DHAKa9M7.mjs +0 -2
- package/assets/avatar-CLCRCe22.mjs +0 -2
- package/assets/back-CnegEGjr.mjs +0 -2
- package/assets/baseball-Byu3yeNc.mjs +0 -2
- package/assets/basketball-LT4w-ZXt.mjs +0 -2
- package/assets/bell-DrIy3d5C.mjs +0 -2
- package/assets/bell-filled-CD0zN3j7.mjs +0 -2
- package/assets/bicycle-RVzUjlqy.mjs +0 -2
- package/assets/bottom-MoDhXG36.mjs +0 -2
- package/assets/bottom-left-DUtAUdnq.mjs +0 -2
- package/assets/bottom-right-C-MFm16c.mjs +0 -2
- package/assets/bowl-D1AxMHTc.mjs +0 -2
- package/assets/box-CQYaMkxg.mjs +0 -2
- package/assets/briefcase-xIm6EWkt.mjs +0 -2
- package/assets/brush-BxG3zI2i.mjs +0 -2
- package/assets/brush-filled-C__vc4bG.mjs +0 -2
- package/assets/burger-DufHXV6M.mjs +0 -2
- package/assets/calendar-CnNoVuJ2.mjs +0 -2
- package/assets/camera-D9mZkp7Z.mjs +0 -2
- package/assets/camera-filled-CkSpvR3p.mjs +0 -2
- package/assets/caret-bottom-BjKqSCkV.mjs +0 -2
- package/assets/caret-left-CcSvbqat.mjs +0 -2
- package/assets/caret-right-DYUxhu3I.mjs +0 -2
- package/assets/caret-top-CcCj67zp.mjs +0 -2
- package/assets/cellphone-C60ExjG2.mjs +0 -2
- package/assets/chat-dot-round-DTRbpnmT.mjs +0 -2
- package/assets/chat-dot-square-BEfOursV.mjs +0 -2
- package/assets/chat-line-round-DyrYjxVp.mjs +0 -2
- package/assets/chat-line-square-BrA7fZs0.mjs +0 -2
- package/assets/chat-round-D-4msSqg.mjs +0 -2
- package/assets/chat-square-xpdH9yXw.mjs +0 -2
- package/assets/check-BuxJPWj0.mjs +0 -2
- package/assets/checked-CNqls_CY.mjs +0 -2
- package/assets/cherry-B94FZxwa.mjs +0 -2
- package/assets/chicken-BanzqQ-l.mjs +0 -2
- package/assets/chrome-filled-BOophw66.mjs +0 -2
- package/assets/circle-check-CtFAe79f.mjs +0 -2
- package/assets/circle-check-filled-CpbZJk7E.mjs +0 -2
- package/assets/circle-close-OQVtx_Tz.mjs +0 -2
- package/assets/circle-close-filled-y7er7Oi8.mjs +0 -2
- package/assets/circle-plus-CD2lDCUi.mjs +0 -2
- package/assets/circle-plus-filled-_RQjdRx7.mjs +0 -2
- package/assets/clock-CLZckGu9.mjs +0 -2
- package/assets/close-DIoDZnYX.mjs +0 -2
- package/assets/close-bold-C543aUVl.mjs +0 -2
- package/assets/cloudy-CXChAty_.mjs +0 -2
- package/assets/coffee-Cypk2fo1.mjs +0 -2
- package/assets/coffee-cup-BNl0DZK6.mjs +0 -2
- package/assets/coin-DjQSB0t6.mjs +0 -2
- package/assets/cold-drink-B_oIML9H.mjs +0 -2
- package/assets/collection-COdjUSss.mjs +0 -2
- package/assets/collection-tag-DLt90IsV.mjs +0 -2
- package/assets/comment-CieWIjNP.mjs +0 -2
- package/assets/compass-CIt2wM-O.mjs +0 -2
- package/assets/connection-BB2jfDnm.mjs +0 -2
- package/assets/coordinate-DvMBw1vR.mjs +0 -2
- package/assets/copy-document-aLiIFI7J.mjs +0 -2
- package/assets/cpu-DUSEJMW0.mjs +0 -2
- package/assets/credit-card-ClJvtCay.mjs +0 -2
- package/assets/crop-LDVoojDi.mjs +0 -2
- package/assets/d-arrow-left-DaX8eAZi.mjs +0 -2
- package/assets/d-arrow-right-DfkRm1q-.mjs +0 -2
- package/assets/d-caret-CVoHHLZf.mjs +0 -2
- package/assets/data-analysis-Q_fRYU56.mjs +0 -2
- package/assets/data-board-Zg5MndlK.mjs +0 -2
- package/assets/data-line-C46m0h2Q.mjs +0 -2
- package/assets/delete-8Li4HilX.mjs +0 -2
- package/assets/delete-filled-Dm6eRQXO.mjs +0 -2
- package/assets/delete-location-B9zalF2S.mjs +0 -2
- package/assets/dessert-CmAZbCTP.mjs +0 -2
- package/assets/discount-BS6dKMUJ.mjs +0 -2
- package/assets/dish-CJVhFYdw.mjs +0 -2
- package/assets/dish-dot-pM2LUl8z.mjs +0 -2
- package/assets/document-add-DWC-Miaj.mjs +0 -2
- package/assets/document-checked-DxO9Wq4h.mjs +0 -2
- package/assets/document-copy-aY8jhXvI.mjs +0 -2
- package/assets/document-delete-CSOO-F2X.mjs +0 -2
- package/assets/document-remove-XSbQKaxs.mjs +0 -2
- package/assets/document-wekG8Rai.mjs +0 -2
- package/assets/download-CcL0vVZp.mjs +0 -2
- package/assets/drizzling-Bd-NT8kN.mjs +0 -2
- package/assets/edit-CMHpfPVF.mjs +0 -2
- package/assets/edit-pen-BGcN91Cd.mjs +0 -2
- package/assets/eleme-BKnBsNoO.mjs +0 -2
- package/assets/eleme-filled-CAupPY0V.mjs +0 -2
- package/assets/element-plus-Du35i_Gh.mjs +0 -2
- package/assets/expand-B5vq4i7x.mjs +0 -2
- package/assets/failed-Bco9JSY8.mjs +0 -2
- package/assets/female-SGQxhXkH.mjs +0 -2
- package/assets/files-qv5Fl2Je.mjs +0 -2
- package/assets/film-CLiEAtzz.mjs +0 -2
- package/assets/filter-U_HURXIA.mjs +0 -2
- package/assets/finished-CgWQFE_G.mjs +0 -2
- package/assets/first-aid-kit-CCqKatZ4.mjs +0 -2
- package/assets/flag-BXwkQqhc.mjs +0 -2
- package/assets/fold-DePDcS_o.mjs +0 -2
- package/assets/folder-DkuqcQWI.mjs +0 -2
- package/assets/folder-add-CCvwg2p2.mjs +0 -2
- package/assets/folder-checked-DHKE3Q5M.mjs +0 -2
- package/assets/folder-delete-QO2zi54T.mjs +0 -2
- package/assets/folder-opened-GLbog4q7.mjs +0 -2
- package/assets/folder-remove-D49ZBI20.mjs +0 -2
- package/assets/food-CrfJ5cvw.mjs +0 -2
- package/assets/football-DBF6qplu.mjs +0 -2
- package/assets/fork-spoon-DEqvj6r6.mjs +0 -2
- package/assets/fries-CuxhwwJQ.mjs +0 -2
- package/assets/full-screen-Bs6Da-BW.mjs +0 -2
- package/assets/goblet-ScX-Ogxq.mjs +0 -2
- package/assets/goblet-full-CJJrxgPi.mjs +0 -2
- package/assets/goblet-square-CR6XSNI7.mjs +0 -2
- package/assets/goblet-square-full-RoeS0WNb.mjs +0 -2
- package/assets/gold-medal-2fLbiLws.mjs +0 -2
- package/assets/goods-Cc8oH4HP.mjs +0 -2
- package/assets/goods-filled-BM3wH7Hm.mjs +0 -2
- package/assets/grape-BYBAYyQc.mjs +0 -2
- package/assets/grid-CU_uRpZv.mjs +0 -2
- package/assets/guide-D2vMImrv.mjs +0 -2
- package/assets/handbag-B6ON06G5.mjs +0 -2
- package/assets/headset-D0JZNBV6.mjs +0 -2
- package/assets/help-L0kNfAzJ.mjs +0 -2
- package/assets/help-filled-DAqAyceZ.mjs +0 -2
- package/assets/hide-DQ9l3VrF.mjs +0 -2
- package/assets/histogram-C3DurfAE.mjs +0 -2
- package/assets/home-filled-DeOwSAcA.mjs +0 -2
- package/assets/hot-water-RsEdPpnL.mjs +0 -2
- package/assets/house-CQ0FzeGz.mjs +0 -2
- package/assets/ice-cream-D97n41Ol.mjs +0 -2
- package/assets/ice-cream-round-CAGa7Jr3.mjs +0 -2
- package/assets/ice-cream-square-BfmXUp7T.mjs +0 -2
- package/assets/ice-drink-P2PFwP3x.mjs +0 -2
- package/assets/ice-tea-CUN8eXZ3.mjs +0 -2
- package/assets/info-filled-C2jIxXYo.mjs +0 -2
- package/assets/iphone-pHzannhM.mjs +0 -2
- package/assets/key-Di7KQZDh.mjs +0 -2
- package/assets/knife-fork-D0A8oPxD.mjs +0 -2
- package/assets/lightning-CIcDoNou.mjs +0 -2
- package/assets/link-XU2qEwCb.mjs +0 -2
- package/assets/list-BppwfxJV.mjs +0 -2
- package/assets/loading-CiY2rW4r.mjs +0 -2
- package/assets/location-CSO9whVF.mjs +0 -2
- package/assets/location-filled-tI8Clwdo.mjs +0 -2
- package/assets/location-information-Boi5FCNQ.mjs +0 -2
- package/assets/lock-CpiDpmjp.mjs +0 -2
- package/assets/lollipop-D8_y10oW.mjs +0 -2
- package/assets/magic-stick-DAiV7zvI.mjs +0 -2
- package/assets/magnet-BJQSRkyC.mjs +0 -2
- package/assets/male-JlO6EFS2.mjs +0 -2
- package/assets/management-DQukAYso.mjs +0 -2
- package/assets/map-location-CCuX21h9.mjs +0 -2
- package/assets/medal-c5xGsE24.mjs +0 -2
- package/assets/memo-zkbZBocg.mjs +0 -2
- package/assets/menu-b5wwoVbH.mjs +0 -2
- package/assets/message-box-BPeDeE7c.mjs +0 -2
- package/assets/message-fb6NU2Up.mjs +0 -2
- package/assets/mic-DQ5zn24W.mjs +0 -2
- package/assets/microphone-CNzymjAr.mjs +0 -2
- package/assets/milk-tea-CkCV1PSI.mjs +0 -2
- package/assets/minus-BPf2YJ2R.mjs +0 -2
- package/assets/money-DHweoDrg.mjs +0 -2
- package/assets/monitor-cEsCYux-.mjs +0 -2
- package/assets/moon-night-SkRN3P7_.mjs +0 -2
- package/assets/moon-x8oqGwtM.mjs +0 -2
- package/assets/more-BK2RjYaH.mjs +0 -2
- package/assets/more-filled-49GMZRs7.mjs +0 -2
- package/assets/mostly-cloudy-DsNXalQI.mjs +0 -2
- package/assets/mouse-CccBrgLA.mjs +0 -2
- package/assets/mug-BBgzp_Mu.mjs +0 -2
- package/assets/mute-DAj_Vtv7.mjs +0 -2
- package/assets/mute-notification-D7UuMmAg.mjs +0 -2
- package/assets/no-smoking-C2ubqE7c.mjs +0 -2
- package/assets/notebook-Bc8rnGi7.mjs +0 -2
- package/assets/notification-Dy-Yc9As.mjs +0 -2
- package/assets/odometer-DTmEfOG5.mjs +0 -2
- package/assets/office-building-VV67RGva.mjs +0 -2
- package/assets/open-1sjiUcuN.mjs +0 -2
- package/assets/operation-CEqGTVKK.mjs +0 -2
- package/assets/opportunity-BI5C4nbZ.mjs +0 -2
- package/assets/orange-wJWv9n_Q.mjs +0 -2
- package/assets/paperclip-BkH-Zbgd.mjs +0 -2
- package/assets/partly-cloudy-D48PBwSD.mjs +0 -2
- package/assets/pear-DIsztN8s.mjs +0 -2
- package/assets/phone-B7VSSciF.mjs +0 -2
- package/assets/phone-filled-Lr6DqLSa.mjs +0 -2
- package/assets/picture-DV2iJqad.mjs +0 -2
- package/assets/picture-filled-C9j6LKcP.mjs +0 -2
- package/assets/picture-rounded-CDk2n32T.mjs +0 -2
- package/assets/pie-chart-1NJ48tOP.mjs +0 -2
- package/assets/place-BVSdWL6B.mjs +0 -2
- package/assets/platform-Cdx1L_9z.mjs +0 -2
- package/assets/plus-DZ2pttxa.mjs +0 -2
- package/assets/pointer-Abtq3JZ0.mjs +0 -2
- package/assets/position-BEw9Ccni.mjs +0 -2
- package/assets/postcard-D90pv_sk.mjs +0 -2
- package/assets/pouring-C4CqvYXG.mjs +0 -2
- package/assets/present-BM8jPzij.mjs +0 -2
- package/assets/price-tag-DfhLECPV.mjs +0 -2
- package/assets/printer-D-XpwhrB.mjs +0 -2
- package/assets/promotion-tSc4HLRJ.mjs +0 -2
- package/assets/quartz-watch-CY1FKHVA.mjs +0 -2
- package/assets/question-filled-BmyIzqtP.mjs +0 -2
- package/assets/rank-VdHIol05.mjs +0 -2
- package/assets/reading-DsHi4XTq.mjs +0 -2
- package/assets/reading-lamp-DdvrvnB7.mjs +0 -2
- package/assets/refresh-CIk9s6F-.mjs +0 -2
- package/assets/refresh-left-DPl9C2Ct.mjs +0 -2
- package/assets/refresh-right-D9TCGR9u.mjs +0 -2
- package/assets/refrigerator-Dnbnz6a5.mjs +0 -2
- package/assets/remove-D9q_rHio.mjs +0 -2
- package/assets/remove-filled-lYH5C0bo.mjs +0 -2
- package/assets/right-DWj-K5z0.mjs +0 -2
- package/assets/scale-to-original-CzMGPIhu.mjs +0 -2
- package/assets/school-Dpk1qtn9.mjs +0 -2
- package/assets/scissor-BpuiVQql.mjs +0 -2
- package/assets/search-BfAnzj-E.mjs +0 -2
- package/assets/select-DK5G88Il.mjs +0 -2
- package/assets/sell-BxCuOdz-.mjs +0 -2
- package/assets/semi-select-tHeL0IS8.mjs +0 -2
- package/assets/service-DWKfJyQv.mjs +0 -2
- package/assets/set-up-LUVLY-Qu.mjs +0 -2
- package/assets/setting-PcMSo9QI.mjs +0 -2
- package/assets/share-UHkmVkzi.mjs +0 -2
- package/assets/ship-Dfz-3oG5.mjs +0 -2
- package/assets/shop-DiVQ8hpO.mjs +0 -2
- package/assets/shopping-bag-DQgF7ToN.mjs +0 -2
- package/assets/shopping-cart-ClNizCL3.mjs +0 -2
- package/assets/shopping-cart-full-D5atFFjr.mjs +0 -2
- package/assets/shopping-trolley-CjpMsWIV.mjs +0 -2
- package/assets/smoking-YbV-3XXB.mjs +0 -2
- package/assets/soccer-B46gQHJl.mjs +0 -2
- package/assets/sold-out-DJBMzsVg.mjs +0 -2
- package/assets/sort-CQwNrdH2.mjs +0 -2
- package/assets/sort-down-BdaoRaj_.mjs +0 -2
- package/assets/sort-up-BjzCVYGN.mjs +0 -2
- package/assets/stamp-BK78Z7pg.mjs +0 -2
- package/assets/star-BVARWN33.mjs +0 -2
- package/assets/star-filled-rk9sTPb4.mjs +0 -2
- package/assets/stopwatch-85uHdJLQ.mjs +0 -2
- package/assets/success-filled-CThvcb8u.mjs +0 -2
- package/assets/sugar-BsIMy3d6.mjs +0 -2
- package/assets/suitcase-CtqJpUQH.mjs +0 -2
- package/assets/suitcase-line-yBK6hCZW.mjs +0 -2
- package/assets/sunny-CCSxZxdM.mjs +0 -2
- package/assets/sunrise-C8CJ7z3v.mjs +0 -2
- package/assets/sunset-DF4eJdro.mjs +0 -2
- package/assets/switch-BQYR_sAg.mjs +0 -2
- package/assets/switch-button-DtenWSId.mjs +0 -2
- package/assets/switch-filled-Hz4xc_gS.mjs +0 -2
- package/assets/takeaway-box-BJHRfE3Z.mjs +0 -2
- package/assets/ticket-DFYuDNVF.mjs +0 -2
- package/assets/tickets-CEB1735U.mjs +0 -2
- package/assets/timer-C33_x94B.mjs +0 -2
- package/assets/toilet-paper-BkB083SS.mjs +0 -2
- package/assets/tools-y807N1QC.mjs +0 -2
- package/assets/top-DSYmBky7.mjs +0 -2
- package/assets/top-left-irfVXs2o.mjs +0 -2
- package/assets/top-right-98j2VHYK.mjs +0 -2
- package/assets/trend-charts-6lTy9Jgt.mjs +0 -2
- package/assets/trophy-BDYZ45mw.mjs +0 -2
- package/assets/trophy-base-CLI-VKxL.mjs +0 -2
- package/assets/turn-off-D9XS8mll.mjs +0 -2
- package/assets/umbrella-DSWtElVK.mjs +0 -2
- package/assets/unlock-DnesHyrp.mjs +0 -2
- package/assets/upload-DKf4alPQ.mjs +0 -2
- package/assets/upload-filled-oiiBpvmb.mjs +0 -2
- package/assets/user-B4rxaN-N.mjs +0 -2
- package/assets/user-filled-DZr93cRO.mjs +0 -2
- package/assets/van-nTv5uHxZ.mjs +0 -2
- package/assets/video-camera-DtPiWRQ8.mjs +0 -2
- package/assets/video-camera-filled-C5s-Gj9h.mjs +0 -2
- package/assets/video-pause-Jy1AM_hw.mjs +0 -2
- package/assets/video-play-BwrtzSXe.mjs +0 -2
- package/assets/view-OMw-p2xv.mjs +0 -2
- package/assets/wallet-BNmkaziG.mjs +0 -2
- package/assets/wallet-filled-DyllZc1b.mjs +0 -2
- package/assets/warn-triangle-filled-Cj0re_Ry.mjs +0 -2
- package/assets/warning-Ci8rTWL3.mjs +0 -2
- package/assets/warning-filled-DfV4zZ4t.mjs +0 -2
- package/assets/watch-9KRo68q5.mjs +0 -2
- package/assets/watermelon-wNrDr6jd.mjs +0 -2
- package/assets/wind-power-DxVDd2qy.mjs +0 -2
- package/assets/zoom-in-T-xzI6o1.mjs +0 -2
- package/assets/zoom-out-HBZpa4DY.mjs +0 -2
- package/avatar/index.css +0 -2
- package/avatar/index.es.js +0 -66
- package/avatar/index.umd.cjs +0 -1
- package/editor/index.css +0 -2
- package/editor/index.es.js +0 -31674
- package/editor/index.umd.cjs +0 -81
- package/form/index.css +0 -2
- package/form/index.es.js +0 -28
- package/form/index.umd.cjs +0 -1
- package/form-item/index.css +0 -2
- package/form-item/index.es.js +0 -28
- package/form-item/index.umd.cjs +0 -1
- package/icon/assets/add-location-0jtqP1wY.mjs +0 -2
- package/icon/assets/aim-C3rZn5C3.mjs +0 -2
- package/icon/assets/alarm-clock-ByDeOzfQ.mjs +0 -2
- package/icon/assets/apple-TPWbT61g.mjs +0 -2
- package/icon/assets/arrow-down-Be42LogH.mjs +0 -2
- package/icon/assets/arrow-down-bold-B9ZlT_dV.mjs +0 -2
- package/icon/assets/arrow-left-CcFJ_CJL.mjs +0 -2
- package/icon/assets/arrow-left-bold-DMVGMQTa.mjs +0 -2
- package/icon/assets/arrow-right-BjxETpOu.mjs +0 -2
- package/icon/assets/arrow-right-bold-CUrcpOAO.mjs +0 -2
- package/icon/assets/arrow-up-CpaeoiaD.mjs +0 -2
- package/icon/assets/arrow-up-bold-DHAKa9M7.mjs +0 -2
- package/icon/assets/avatar-CLCRCe22.mjs +0 -2
- package/icon/assets/back-CnegEGjr.mjs +0 -2
- package/icon/assets/baseball-Byu3yeNc.mjs +0 -2
- package/icon/assets/basketball-LT4w-ZXt.mjs +0 -2
- package/icon/assets/bell-DrIy3d5C.mjs +0 -2
- package/icon/assets/bell-filled-CD0zN3j7.mjs +0 -2
- package/icon/assets/bicycle-RVzUjlqy.mjs +0 -2
- package/icon/assets/bottom-MoDhXG36.mjs +0 -2
- package/icon/assets/bottom-left-DUtAUdnq.mjs +0 -2
- package/icon/assets/bottom-right-C-MFm16c.mjs +0 -2
- package/icon/assets/bowl-D1AxMHTc.mjs +0 -2
- package/icon/assets/box-CQYaMkxg.mjs +0 -2
- package/icon/assets/briefcase-xIm6EWkt.mjs +0 -2
- package/icon/assets/brush-BxG3zI2i.mjs +0 -2
- package/icon/assets/brush-filled-C__vc4bG.mjs +0 -2
- package/icon/assets/burger-DufHXV6M.mjs +0 -2
- package/icon/assets/calendar-CnNoVuJ2.mjs +0 -2
- package/icon/assets/camera-D9mZkp7Z.mjs +0 -2
- package/icon/assets/camera-filled-CkSpvR3p.mjs +0 -2
- package/icon/assets/caret-bottom-BjKqSCkV.mjs +0 -2
- package/icon/assets/caret-left-CcSvbqat.mjs +0 -2
- package/icon/assets/caret-right-DYUxhu3I.mjs +0 -2
- package/icon/assets/caret-top-CcCj67zp.mjs +0 -2
- package/icon/assets/cellphone-C60ExjG2.mjs +0 -2
- package/icon/assets/chat-dot-round-DTRbpnmT.mjs +0 -2
- package/icon/assets/chat-dot-square-BEfOursV.mjs +0 -2
- package/icon/assets/chat-line-round-DyrYjxVp.mjs +0 -2
- package/icon/assets/chat-line-square-BrA7fZs0.mjs +0 -2
- package/icon/assets/chat-round-D-4msSqg.mjs +0 -2
- package/icon/assets/chat-square-xpdH9yXw.mjs +0 -2
- package/icon/assets/check-BuxJPWj0.mjs +0 -2
- package/icon/assets/checked-CNqls_CY.mjs +0 -2
- package/icon/assets/cherry-B94FZxwa.mjs +0 -2
- package/icon/assets/chicken-BanzqQ-l.mjs +0 -2
- package/icon/assets/chrome-filled-BOophw66.mjs +0 -2
- package/icon/assets/circle-check-CtFAe79f.mjs +0 -2
- package/icon/assets/circle-check-filled-CpbZJk7E.mjs +0 -2
- package/icon/assets/circle-close-OQVtx_Tz.mjs +0 -2
- package/icon/assets/circle-close-filled-y7er7Oi8.mjs +0 -2
- package/icon/assets/circle-plus-CD2lDCUi.mjs +0 -2
- package/icon/assets/circle-plus-filled-_RQjdRx7.mjs +0 -2
- package/icon/assets/clock-CLZckGu9.mjs +0 -2
- package/icon/assets/close-DIoDZnYX.mjs +0 -2
- package/icon/assets/close-bold-C543aUVl.mjs +0 -2
- package/icon/assets/cloudy-CXChAty_.mjs +0 -2
- package/icon/assets/coffee-Cypk2fo1.mjs +0 -2
- package/icon/assets/coffee-cup-BNl0DZK6.mjs +0 -2
- package/icon/assets/coin-DjQSB0t6.mjs +0 -2
- package/icon/assets/cold-drink-B_oIML9H.mjs +0 -2
- package/icon/assets/collection-COdjUSss.mjs +0 -2
- package/icon/assets/collection-tag-DLt90IsV.mjs +0 -2
- package/icon/assets/comment-CieWIjNP.mjs +0 -2
- package/icon/assets/compass-CIt2wM-O.mjs +0 -2
- package/icon/assets/connection-BB2jfDnm.mjs +0 -2
- package/icon/assets/coordinate-DvMBw1vR.mjs +0 -2
- package/icon/assets/copy-document-aLiIFI7J.mjs +0 -2
- package/icon/assets/cpu-DUSEJMW0.mjs +0 -2
- package/icon/assets/credit-card-ClJvtCay.mjs +0 -2
- package/icon/assets/crop-LDVoojDi.mjs +0 -2
- package/icon/assets/d-arrow-left-DaX8eAZi.mjs +0 -2
- package/icon/assets/d-arrow-right-DfkRm1q-.mjs +0 -2
- package/icon/assets/d-caret-CVoHHLZf.mjs +0 -2
- package/icon/assets/data-analysis-Q_fRYU56.mjs +0 -2
- package/icon/assets/data-board-Zg5MndlK.mjs +0 -2
- package/icon/assets/data-line-C46m0h2Q.mjs +0 -2
- package/icon/assets/delete-8Li4HilX.mjs +0 -2
- package/icon/assets/delete-filled-Dm6eRQXO.mjs +0 -2
- package/icon/assets/delete-location-B9zalF2S.mjs +0 -2
- package/icon/assets/dessert-CmAZbCTP.mjs +0 -2
- package/icon/assets/discount-BS6dKMUJ.mjs +0 -2
- package/icon/assets/dish-CJVhFYdw.mjs +0 -2
- package/icon/assets/dish-dot-pM2LUl8z.mjs +0 -2
- package/icon/assets/document-add-DWC-Miaj.mjs +0 -2
- package/icon/assets/document-checked-DxO9Wq4h.mjs +0 -2
- package/icon/assets/document-copy-aY8jhXvI.mjs +0 -2
- package/icon/assets/document-delete-CSOO-F2X.mjs +0 -2
- package/icon/assets/document-remove-XSbQKaxs.mjs +0 -2
- package/icon/assets/document-wekG8Rai.mjs +0 -2
- package/icon/assets/download-CcL0vVZp.mjs +0 -2
- package/icon/assets/drizzling-Bd-NT8kN.mjs +0 -2
- package/icon/assets/edit-CMHpfPVF.mjs +0 -2
- package/icon/assets/edit-pen-BGcN91Cd.mjs +0 -2
- package/icon/assets/eleme-BKnBsNoO.mjs +0 -2
- package/icon/assets/eleme-filled-CAupPY0V.mjs +0 -2
- package/icon/assets/element-plus-Du35i_Gh.mjs +0 -2
- package/icon/assets/expand-B5vq4i7x.mjs +0 -2
- package/icon/assets/failed-Bco9JSY8.mjs +0 -2
- package/icon/assets/female-SGQxhXkH.mjs +0 -2
- package/icon/assets/files-qv5Fl2Je.mjs +0 -2
- package/icon/assets/film-CLiEAtzz.mjs +0 -2
- package/icon/assets/filter-U_HURXIA.mjs +0 -2
- package/icon/assets/finished-CgWQFE_G.mjs +0 -2
- package/icon/assets/first-aid-kit-CCqKatZ4.mjs +0 -2
- package/icon/assets/flag-BXwkQqhc.mjs +0 -2
- package/icon/assets/fold-DePDcS_o.mjs +0 -2
- package/icon/assets/folder-DkuqcQWI.mjs +0 -2
- package/icon/assets/folder-add-CCvwg2p2.mjs +0 -2
- package/icon/assets/folder-checked-DHKE3Q5M.mjs +0 -2
- package/icon/assets/folder-delete-QO2zi54T.mjs +0 -2
- package/icon/assets/folder-opened-GLbog4q7.mjs +0 -2
- package/icon/assets/folder-remove-D49ZBI20.mjs +0 -2
- package/icon/assets/food-CrfJ5cvw.mjs +0 -2
- package/icon/assets/football-DBF6qplu.mjs +0 -2
- package/icon/assets/fork-spoon-DEqvj6r6.mjs +0 -2
- package/icon/assets/fries-CuxhwwJQ.mjs +0 -2
- package/icon/assets/full-screen-Bs6Da-BW.mjs +0 -2
- package/icon/assets/goblet-ScX-Ogxq.mjs +0 -2
- package/icon/assets/goblet-full-CJJrxgPi.mjs +0 -2
- package/icon/assets/goblet-square-CR6XSNI7.mjs +0 -2
- package/icon/assets/goblet-square-full-RoeS0WNb.mjs +0 -2
- package/icon/assets/gold-medal-2fLbiLws.mjs +0 -2
- package/icon/assets/goods-Cc8oH4HP.mjs +0 -2
- package/icon/assets/goods-filled-BM3wH7Hm.mjs +0 -2
- package/icon/assets/grape-BYBAYyQc.mjs +0 -2
- package/icon/assets/grid-CU_uRpZv.mjs +0 -2
- package/icon/assets/guide-D2vMImrv.mjs +0 -2
- package/icon/assets/handbag-B6ON06G5.mjs +0 -2
- package/icon/assets/headset-D0JZNBV6.mjs +0 -2
- package/icon/assets/help-L0kNfAzJ.mjs +0 -2
- package/icon/assets/help-filled-DAqAyceZ.mjs +0 -2
- package/icon/assets/hide-DQ9l3VrF.mjs +0 -2
- package/icon/assets/histogram-C3DurfAE.mjs +0 -2
- package/icon/assets/home-filled-DeOwSAcA.mjs +0 -2
- package/icon/assets/hot-water-RsEdPpnL.mjs +0 -2
- package/icon/assets/house-CQ0FzeGz.mjs +0 -2
- package/icon/assets/ice-cream-D97n41Ol.mjs +0 -2
- package/icon/assets/ice-cream-round-CAGa7Jr3.mjs +0 -2
- package/icon/assets/ice-cream-square-BfmXUp7T.mjs +0 -2
- package/icon/assets/ice-drink-P2PFwP3x.mjs +0 -2
- package/icon/assets/ice-tea-CUN8eXZ3.mjs +0 -2
- package/icon/assets/info-filled-C2jIxXYo.mjs +0 -2
- package/icon/assets/iphone-pHzannhM.mjs +0 -2
- package/icon/assets/key-Di7KQZDh.mjs +0 -2
- package/icon/assets/knife-fork-D0A8oPxD.mjs +0 -2
- package/icon/assets/lightning-CIcDoNou.mjs +0 -2
- package/icon/assets/link-XU2qEwCb.mjs +0 -2
- package/icon/assets/list-BppwfxJV.mjs +0 -2
- package/icon/assets/loading-CiY2rW4r.mjs +0 -2
- package/icon/assets/location-CSO9whVF.mjs +0 -2
- package/icon/assets/location-filled-tI8Clwdo.mjs +0 -2
- package/icon/assets/location-information-Boi5FCNQ.mjs +0 -2
- package/icon/assets/lock-CpiDpmjp.mjs +0 -2
- package/icon/assets/lollipop-D8_y10oW.mjs +0 -2
- package/icon/assets/magic-stick-DAiV7zvI.mjs +0 -2
- package/icon/assets/magnet-BJQSRkyC.mjs +0 -2
- package/icon/assets/male-JlO6EFS2.mjs +0 -2
- package/icon/assets/management-DQukAYso.mjs +0 -2
- package/icon/assets/map-location-CCuX21h9.mjs +0 -2
- package/icon/assets/medal-c5xGsE24.mjs +0 -2
- package/icon/assets/memo-zkbZBocg.mjs +0 -2
- package/icon/assets/menu-b5wwoVbH.mjs +0 -2
- package/icon/assets/message-box-BPeDeE7c.mjs +0 -2
- package/icon/assets/message-fb6NU2Up.mjs +0 -2
- package/icon/assets/mic-DQ5zn24W.mjs +0 -2
- package/icon/assets/microphone-CNzymjAr.mjs +0 -2
- package/icon/assets/milk-tea-CkCV1PSI.mjs +0 -2
- package/icon/assets/minus-BPf2YJ2R.mjs +0 -2
- package/icon/assets/money-DHweoDrg.mjs +0 -2
- package/icon/assets/monitor-cEsCYux-.mjs +0 -2
- package/icon/assets/moon-night-SkRN3P7_.mjs +0 -2
- package/icon/assets/moon-x8oqGwtM.mjs +0 -2
- package/icon/assets/more-BK2RjYaH.mjs +0 -2
- package/icon/assets/more-filled-49GMZRs7.mjs +0 -2
- package/icon/assets/mostly-cloudy-DsNXalQI.mjs +0 -2
- package/icon/assets/mouse-CccBrgLA.mjs +0 -2
- package/icon/assets/mug-BBgzp_Mu.mjs +0 -2
- package/icon/assets/mute-DAj_Vtv7.mjs +0 -2
- package/icon/assets/mute-notification-D7UuMmAg.mjs +0 -2
- package/icon/assets/no-smoking-C2ubqE7c.mjs +0 -2
- package/icon/assets/notebook-Bc8rnGi7.mjs +0 -2
- package/icon/assets/notification-Dy-Yc9As.mjs +0 -2
- package/icon/assets/odometer-DTmEfOG5.mjs +0 -2
- package/icon/assets/office-building-VV67RGva.mjs +0 -2
- package/icon/assets/open-1sjiUcuN.mjs +0 -2
- package/icon/assets/operation-CEqGTVKK.mjs +0 -2
- package/icon/assets/opportunity-BI5C4nbZ.mjs +0 -2
- package/icon/assets/orange-wJWv9n_Q.mjs +0 -2
- package/icon/assets/paperclip-BkH-Zbgd.mjs +0 -2
- package/icon/assets/partly-cloudy-D48PBwSD.mjs +0 -2
- package/icon/assets/pear-DIsztN8s.mjs +0 -2
- package/icon/assets/phone-B7VSSciF.mjs +0 -2
- package/icon/assets/phone-filled-Lr6DqLSa.mjs +0 -2
- package/icon/assets/picture-DV2iJqad.mjs +0 -2
- package/icon/assets/picture-filled-C9j6LKcP.mjs +0 -2
- package/icon/assets/picture-rounded-CDk2n32T.mjs +0 -2
- package/icon/assets/pie-chart-1NJ48tOP.mjs +0 -2
- package/icon/assets/place-BVSdWL6B.mjs +0 -2
- package/icon/assets/platform-Cdx1L_9z.mjs +0 -2
- package/icon/assets/plus-DZ2pttxa.mjs +0 -2
- package/icon/assets/pointer-Abtq3JZ0.mjs +0 -2
- package/icon/assets/position-BEw9Ccni.mjs +0 -2
- package/icon/assets/postcard-D90pv_sk.mjs +0 -2
- package/icon/assets/pouring-C4CqvYXG.mjs +0 -2
- package/icon/assets/present-BM8jPzij.mjs +0 -2
- package/icon/assets/price-tag-DfhLECPV.mjs +0 -2
- package/icon/assets/printer-D-XpwhrB.mjs +0 -2
- package/icon/assets/promotion-tSc4HLRJ.mjs +0 -2
- package/icon/assets/quartz-watch-CY1FKHVA.mjs +0 -2
- package/icon/assets/question-filled-BmyIzqtP.mjs +0 -2
- package/icon/assets/rank-VdHIol05.mjs +0 -2
- package/icon/assets/reading-DsHi4XTq.mjs +0 -2
- package/icon/assets/reading-lamp-DdvrvnB7.mjs +0 -2
- package/icon/assets/refresh-CIk9s6F-.mjs +0 -2
- package/icon/assets/refresh-left-DPl9C2Ct.mjs +0 -2
- package/icon/assets/refresh-right-D9TCGR9u.mjs +0 -2
- package/icon/assets/refrigerator-Dnbnz6a5.mjs +0 -2
- package/icon/assets/remove-D9q_rHio.mjs +0 -2
- package/icon/assets/remove-filled-lYH5C0bo.mjs +0 -2
- package/icon/assets/right-DWj-K5z0.mjs +0 -2
- package/icon/assets/scale-to-original-CzMGPIhu.mjs +0 -2
- package/icon/assets/school-Dpk1qtn9.mjs +0 -2
- package/icon/assets/scissor-BpuiVQql.mjs +0 -2
- package/icon/assets/search-BfAnzj-E.mjs +0 -2
- package/icon/assets/select-DK5G88Il.mjs +0 -2
- package/icon/assets/sell-BxCuOdz-.mjs +0 -2
- package/icon/assets/semi-select-tHeL0IS8.mjs +0 -2
- package/icon/assets/service-DWKfJyQv.mjs +0 -2
- package/icon/assets/set-up-LUVLY-Qu.mjs +0 -2
- package/icon/assets/setting-PcMSo9QI.mjs +0 -2
- package/icon/assets/share-UHkmVkzi.mjs +0 -2
- package/icon/assets/ship-Dfz-3oG5.mjs +0 -2
- package/icon/assets/shop-DiVQ8hpO.mjs +0 -2
- package/icon/assets/shopping-bag-DQgF7ToN.mjs +0 -2
- package/icon/assets/shopping-cart-ClNizCL3.mjs +0 -2
- package/icon/assets/shopping-cart-full-D5atFFjr.mjs +0 -2
- package/icon/assets/shopping-trolley-CjpMsWIV.mjs +0 -2
- package/icon/assets/smoking-YbV-3XXB.mjs +0 -2
- package/icon/assets/soccer-B46gQHJl.mjs +0 -2
- package/icon/assets/sold-out-DJBMzsVg.mjs +0 -2
- package/icon/assets/sort-CQwNrdH2.mjs +0 -2
- package/icon/assets/sort-down-BdaoRaj_.mjs +0 -2
- package/icon/assets/sort-up-BjzCVYGN.mjs +0 -2
- package/icon/assets/stamp-BK78Z7pg.mjs +0 -2
- package/icon/assets/star-BVARWN33.mjs +0 -2
- package/icon/assets/star-filled-rk9sTPb4.mjs +0 -2
- package/icon/assets/stopwatch-85uHdJLQ.mjs +0 -2
- package/icon/assets/success-filled-CThvcb8u.mjs +0 -2
- package/icon/assets/sugar-BsIMy3d6.mjs +0 -2
- package/icon/assets/suitcase-CtqJpUQH.mjs +0 -2
- package/icon/assets/suitcase-line-yBK6hCZW.mjs +0 -2
- package/icon/assets/sunny-CCSxZxdM.mjs +0 -2
- package/icon/assets/sunrise-C8CJ7z3v.mjs +0 -2
- package/icon/assets/sunset-DF4eJdro.mjs +0 -2
- package/icon/assets/switch-BQYR_sAg.mjs +0 -2
- package/icon/assets/switch-button-DtenWSId.mjs +0 -2
- package/icon/assets/switch-filled-Hz4xc_gS.mjs +0 -2
- package/icon/assets/takeaway-box-BJHRfE3Z.mjs +0 -2
- package/icon/assets/ticket-DFYuDNVF.mjs +0 -2
- package/icon/assets/tickets-CEB1735U.mjs +0 -2
- package/icon/assets/timer-C33_x94B.mjs +0 -2
- package/icon/assets/toilet-paper-BkB083SS.mjs +0 -2
- package/icon/assets/tools-y807N1QC.mjs +0 -2
- package/icon/assets/top-DSYmBky7.mjs +0 -2
- package/icon/assets/top-left-irfVXs2o.mjs +0 -2
- package/icon/assets/top-right-98j2VHYK.mjs +0 -2
- package/icon/assets/trend-charts-6lTy9Jgt.mjs +0 -2
- package/icon/assets/trophy-BDYZ45mw.mjs +0 -2
- package/icon/assets/trophy-base-CLI-VKxL.mjs +0 -2
- package/icon/assets/turn-off-D9XS8mll.mjs +0 -2
- package/icon/assets/umbrella-DSWtElVK.mjs +0 -2
- package/icon/assets/unlock-DnesHyrp.mjs +0 -2
- package/icon/assets/upload-DKf4alPQ.mjs +0 -2
- package/icon/assets/upload-filled-oiiBpvmb.mjs +0 -2
- package/icon/assets/user-B4rxaN-N.mjs +0 -2
- package/icon/assets/user-filled-DZr93cRO.mjs +0 -2
- package/icon/assets/van-nTv5uHxZ.mjs +0 -2
- package/icon/assets/video-camera-DtPiWRQ8.mjs +0 -2
- package/icon/assets/video-camera-filled-C5s-Gj9h.mjs +0 -2
- package/icon/assets/video-pause-Jy1AM_hw.mjs +0 -2
- package/icon/assets/video-play-BwrtzSXe.mjs +0 -2
- package/icon/assets/view-OMw-p2xv.mjs +0 -2
- package/icon/assets/wallet-BNmkaziG.mjs +0 -2
- package/icon/assets/wallet-filled-DyllZc1b.mjs +0 -2
- package/icon/assets/warn-triangle-filled-Cj0re_Ry.mjs +0 -2
- package/icon/assets/warning-Ci8rTWL3.mjs +0 -2
- package/icon/assets/warning-filled-DfV4zZ4t.mjs +0 -2
- package/icon/assets/watch-9KRo68q5.mjs +0 -2
- package/icon/assets/watermelon-wNrDr6jd.mjs +0 -2
- package/icon/assets/wind-power-DxVDd2qy.mjs +0 -2
- package/icon/assets/zoom-in-T-xzI6o1.mjs +0 -2
- package/icon/assets/zoom-out-HBZpa4DY.mjs +0 -2
- package/icon/index.css +0 -2
- package/icon/index.es.js +0 -338
- package/icon/index.umd.cjs +0 -1
- package/iconfont/index.css +0 -2
- package/iconfont/index.es.js +0 -93
- package/iconfont/index.umd.cjs +0 -1
- package/image-upload/index.css +0 -2
- package/image-upload/index.es.js +0 -4705
- package/image-upload/index.umd.cjs +0 -5
- package/index.css +0 -2
- package/index.d.ts +0 -57
- package/index.es.js +0 -35731
- package/index.umd.cjs +0 -81
- package/input/index.css +0 -2
- package/input/index.es.js +0 -76
- package/input/index.umd.cjs +0 -1
- package/layout/index.css +0 -2
- package/layout/index.es.js +0 -104
- package/layout/index.umd.cjs +0 -1
- package/page/index.css +0 -2
- package/page/index.es.js +0 -3218
- package/page/index.umd.cjs +0 -5
- package/paging/index.css +0 -2
- package/paging/index.es.js +0 -3191
- package/paging/index.umd.cjs +0 -5
- package/progress/index.css +0 -2
- package/progress/index.es.js +0 -36
- package/progress/index.umd.cjs +0 -1
- package/section/index.css +0 -2
- package/section/index.es.js +0 -47
- package/section/index.umd.cjs +0 -1
- package/table/assets/add-location-0jtqP1wY.mjs +0 -2
- package/table/assets/aim-C3rZn5C3.mjs +0 -2
- package/table/assets/alarm-clock-ByDeOzfQ.mjs +0 -2
- package/table/assets/apple-TPWbT61g.mjs +0 -2
- package/table/assets/arrow-down-Be42LogH.mjs +0 -2
- package/table/assets/arrow-down-bold-B9ZlT_dV.mjs +0 -2
- package/table/assets/arrow-left-CcFJ_CJL.mjs +0 -2
- package/table/assets/arrow-left-bold-DMVGMQTa.mjs +0 -2
- package/table/assets/arrow-right-BjxETpOu.mjs +0 -2
- package/table/assets/arrow-right-bold-CUrcpOAO.mjs +0 -2
- package/table/assets/arrow-up-CpaeoiaD.mjs +0 -2
- package/table/assets/arrow-up-bold-DHAKa9M7.mjs +0 -2
- package/table/assets/avatar-CLCRCe22.mjs +0 -2
- package/table/assets/back-CnegEGjr.mjs +0 -2
- package/table/assets/baseball-Byu3yeNc.mjs +0 -2
- package/table/assets/basketball-LT4w-ZXt.mjs +0 -2
- package/table/assets/bell-DrIy3d5C.mjs +0 -2
- package/table/assets/bell-filled-CD0zN3j7.mjs +0 -2
- package/table/assets/bicycle-RVzUjlqy.mjs +0 -2
- package/table/assets/bottom-MoDhXG36.mjs +0 -2
- package/table/assets/bottom-left-DUtAUdnq.mjs +0 -2
- package/table/assets/bottom-right-C-MFm16c.mjs +0 -2
- package/table/assets/bowl-D1AxMHTc.mjs +0 -2
- package/table/assets/box-CQYaMkxg.mjs +0 -2
- package/table/assets/briefcase-xIm6EWkt.mjs +0 -2
- package/table/assets/brush-BxG3zI2i.mjs +0 -2
- package/table/assets/brush-filled-C__vc4bG.mjs +0 -2
- package/table/assets/burger-DufHXV6M.mjs +0 -2
- package/table/assets/calendar-CnNoVuJ2.mjs +0 -2
- package/table/assets/camera-D9mZkp7Z.mjs +0 -2
- package/table/assets/camera-filled-CkSpvR3p.mjs +0 -2
- package/table/assets/caret-bottom-BjKqSCkV.mjs +0 -2
- package/table/assets/caret-left-CcSvbqat.mjs +0 -2
- package/table/assets/caret-right-DYUxhu3I.mjs +0 -2
- package/table/assets/caret-top-CcCj67zp.mjs +0 -2
- package/table/assets/cellphone-C60ExjG2.mjs +0 -2
- package/table/assets/chat-dot-round-DTRbpnmT.mjs +0 -2
- package/table/assets/chat-dot-square-BEfOursV.mjs +0 -2
- package/table/assets/chat-line-round-DyrYjxVp.mjs +0 -2
- package/table/assets/chat-line-square-BrA7fZs0.mjs +0 -2
- package/table/assets/chat-round-D-4msSqg.mjs +0 -2
- package/table/assets/chat-square-xpdH9yXw.mjs +0 -2
- package/table/assets/check-BuxJPWj0.mjs +0 -2
- package/table/assets/checked-CNqls_CY.mjs +0 -2
- package/table/assets/cherry-B94FZxwa.mjs +0 -2
- package/table/assets/chicken-BanzqQ-l.mjs +0 -2
- package/table/assets/chrome-filled-BOophw66.mjs +0 -2
- package/table/assets/circle-check-CtFAe79f.mjs +0 -2
- package/table/assets/circle-check-filled-CpbZJk7E.mjs +0 -2
- package/table/assets/circle-close-OQVtx_Tz.mjs +0 -2
- package/table/assets/circle-close-filled-y7er7Oi8.mjs +0 -2
- package/table/assets/circle-plus-CD2lDCUi.mjs +0 -2
- package/table/assets/circle-plus-filled-_RQjdRx7.mjs +0 -2
- package/table/assets/clock-CLZckGu9.mjs +0 -2
- package/table/assets/close-DIoDZnYX.mjs +0 -2
- package/table/assets/close-bold-C543aUVl.mjs +0 -2
- package/table/assets/cloudy-CXChAty_.mjs +0 -2
- package/table/assets/coffee-Cypk2fo1.mjs +0 -2
- package/table/assets/coffee-cup-BNl0DZK6.mjs +0 -2
- package/table/assets/coin-DjQSB0t6.mjs +0 -2
- package/table/assets/cold-drink-B_oIML9H.mjs +0 -2
- package/table/assets/collection-COdjUSss.mjs +0 -2
- package/table/assets/collection-tag-DLt90IsV.mjs +0 -2
- package/table/assets/comment-CieWIjNP.mjs +0 -2
- package/table/assets/compass-CIt2wM-O.mjs +0 -2
- package/table/assets/connection-BB2jfDnm.mjs +0 -2
- package/table/assets/coordinate-DvMBw1vR.mjs +0 -2
- package/table/assets/copy-document-aLiIFI7J.mjs +0 -2
- package/table/assets/cpu-DUSEJMW0.mjs +0 -2
- package/table/assets/credit-card-ClJvtCay.mjs +0 -2
- package/table/assets/crop-LDVoojDi.mjs +0 -2
- package/table/assets/d-arrow-left-DaX8eAZi.mjs +0 -2
- package/table/assets/d-arrow-right-DfkRm1q-.mjs +0 -2
- package/table/assets/d-caret-CVoHHLZf.mjs +0 -2
- package/table/assets/data-analysis-Q_fRYU56.mjs +0 -2
- package/table/assets/data-board-Zg5MndlK.mjs +0 -2
- package/table/assets/data-line-C46m0h2Q.mjs +0 -2
- package/table/assets/delete-8Li4HilX.mjs +0 -2
- package/table/assets/delete-filled-Dm6eRQXO.mjs +0 -2
- package/table/assets/delete-location-B9zalF2S.mjs +0 -2
- package/table/assets/dessert-CmAZbCTP.mjs +0 -2
- package/table/assets/discount-BS6dKMUJ.mjs +0 -2
- package/table/assets/dish-CJVhFYdw.mjs +0 -2
- package/table/assets/dish-dot-pM2LUl8z.mjs +0 -2
- package/table/assets/document-add-DWC-Miaj.mjs +0 -2
- package/table/assets/document-checked-DxO9Wq4h.mjs +0 -2
- package/table/assets/document-copy-aY8jhXvI.mjs +0 -2
- package/table/assets/document-delete-CSOO-F2X.mjs +0 -2
- package/table/assets/document-remove-XSbQKaxs.mjs +0 -2
- package/table/assets/document-wekG8Rai.mjs +0 -2
- package/table/assets/download-CcL0vVZp.mjs +0 -2
- package/table/assets/drizzling-Bd-NT8kN.mjs +0 -2
- package/table/assets/edit-CMHpfPVF.mjs +0 -2
- package/table/assets/edit-pen-BGcN91Cd.mjs +0 -2
- package/table/assets/eleme-BKnBsNoO.mjs +0 -2
- package/table/assets/eleme-filled-CAupPY0V.mjs +0 -2
- package/table/assets/element-plus-Du35i_Gh.mjs +0 -2
- package/table/assets/expand-B5vq4i7x.mjs +0 -2
- package/table/assets/failed-Bco9JSY8.mjs +0 -2
- package/table/assets/female-SGQxhXkH.mjs +0 -2
- package/table/assets/files-qv5Fl2Je.mjs +0 -2
- package/table/assets/film-CLiEAtzz.mjs +0 -2
- package/table/assets/filter-U_HURXIA.mjs +0 -2
- package/table/assets/finished-CgWQFE_G.mjs +0 -2
- package/table/assets/first-aid-kit-CCqKatZ4.mjs +0 -2
- package/table/assets/flag-BXwkQqhc.mjs +0 -2
- package/table/assets/fold-DePDcS_o.mjs +0 -2
- package/table/assets/folder-DkuqcQWI.mjs +0 -2
- package/table/assets/folder-add-CCvwg2p2.mjs +0 -2
- package/table/assets/folder-checked-DHKE3Q5M.mjs +0 -2
- package/table/assets/folder-delete-QO2zi54T.mjs +0 -2
- package/table/assets/folder-opened-GLbog4q7.mjs +0 -2
- package/table/assets/folder-remove-D49ZBI20.mjs +0 -2
- package/table/assets/food-CrfJ5cvw.mjs +0 -2
- package/table/assets/football-DBF6qplu.mjs +0 -2
- package/table/assets/fork-spoon-DEqvj6r6.mjs +0 -2
- package/table/assets/fries-CuxhwwJQ.mjs +0 -2
- package/table/assets/full-screen-Bs6Da-BW.mjs +0 -2
- package/table/assets/goblet-ScX-Ogxq.mjs +0 -2
- package/table/assets/goblet-full-CJJrxgPi.mjs +0 -2
- package/table/assets/goblet-square-CR6XSNI7.mjs +0 -2
- package/table/assets/goblet-square-full-RoeS0WNb.mjs +0 -2
- package/table/assets/gold-medal-2fLbiLws.mjs +0 -2
- package/table/assets/goods-Cc8oH4HP.mjs +0 -2
- package/table/assets/goods-filled-BM3wH7Hm.mjs +0 -2
- package/table/assets/grape-BYBAYyQc.mjs +0 -2
- package/table/assets/grid-CU_uRpZv.mjs +0 -2
- package/table/assets/guide-D2vMImrv.mjs +0 -2
- package/table/assets/handbag-B6ON06G5.mjs +0 -2
- package/table/assets/headset-D0JZNBV6.mjs +0 -2
- package/table/assets/help-L0kNfAzJ.mjs +0 -2
- package/table/assets/help-filled-DAqAyceZ.mjs +0 -2
- package/table/assets/hide-DQ9l3VrF.mjs +0 -2
- package/table/assets/histogram-C3DurfAE.mjs +0 -2
- package/table/assets/home-filled-DeOwSAcA.mjs +0 -2
- package/table/assets/hot-water-RsEdPpnL.mjs +0 -2
- package/table/assets/house-CQ0FzeGz.mjs +0 -2
- package/table/assets/ice-cream-D97n41Ol.mjs +0 -2
- package/table/assets/ice-cream-round-CAGa7Jr3.mjs +0 -2
- package/table/assets/ice-cream-square-BfmXUp7T.mjs +0 -2
- package/table/assets/ice-drink-P2PFwP3x.mjs +0 -2
- package/table/assets/ice-tea-CUN8eXZ3.mjs +0 -2
- package/table/assets/info-filled-C2jIxXYo.mjs +0 -2
- package/table/assets/iphone-pHzannhM.mjs +0 -2
- package/table/assets/key-Di7KQZDh.mjs +0 -2
- package/table/assets/knife-fork-D0A8oPxD.mjs +0 -2
- package/table/assets/lightning-CIcDoNou.mjs +0 -2
- package/table/assets/link-XU2qEwCb.mjs +0 -2
- package/table/assets/list-BppwfxJV.mjs +0 -2
- package/table/assets/loading-CiY2rW4r.mjs +0 -2
- package/table/assets/location-CSO9whVF.mjs +0 -2
- package/table/assets/location-filled-tI8Clwdo.mjs +0 -2
- package/table/assets/location-information-Boi5FCNQ.mjs +0 -2
- package/table/assets/lock-CpiDpmjp.mjs +0 -2
- package/table/assets/lollipop-D8_y10oW.mjs +0 -2
- package/table/assets/magic-stick-DAiV7zvI.mjs +0 -2
- package/table/assets/magnet-BJQSRkyC.mjs +0 -2
- package/table/assets/male-JlO6EFS2.mjs +0 -2
- package/table/assets/management-DQukAYso.mjs +0 -2
- package/table/assets/map-location-CCuX21h9.mjs +0 -2
- package/table/assets/medal-c5xGsE24.mjs +0 -2
- package/table/assets/memo-zkbZBocg.mjs +0 -2
- package/table/assets/menu-b5wwoVbH.mjs +0 -2
- package/table/assets/message-box-BPeDeE7c.mjs +0 -2
- package/table/assets/message-fb6NU2Up.mjs +0 -2
- package/table/assets/mic-DQ5zn24W.mjs +0 -2
- package/table/assets/microphone-CNzymjAr.mjs +0 -2
- package/table/assets/milk-tea-CkCV1PSI.mjs +0 -2
- package/table/assets/minus-BPf2YJ2R.mjs +0 -2
- package/table/assets/money-DHweoDrg.mjs +0 -2
- package/table/assets/monitor-cEsCYux-.mjs +0 -2
- package/table/assets/moon-night-SkRN3P7_.mjs +0 -2
- package/table/assets/moon-x8oqGwtM.mjs +0 -2
- package/table/assets/more-BK2RjYaH.mjs +0 -2
- package/table/assets/more-filled-49GMZRs7.mjs +0 -2
- package/table/assets/mostly-cloudy-DsNXalQI.mjs +0 -2
- package/table/assets/mouse-CccBrgLA.mjs +0 -2
- package/table/assets/mug-BBgzp_Mu.mjs +0 -2
- package/table/assets/mute-DAj_Vtv7.mjs +0 -2
- package/table/assets/mute-notification-D7UuMmAg.mjs +0 -2
- package/table/assets/no-smoking-C2ubqE7c.mjs +0 -2
- package/table/assets/notebook-Bc8rnGi7.mjs +0 -2
- package/table/assets/notification-Dy-Yc9As.mjs +0 -2
- package/table/assets/odometer-DTmEfOG5.mjs +0 -2
- package/table/assets/office-building-VV67RGva.mjs +0 -2
- package/table/assets/open-1sjiUcuN.mjs +0 -2
- package/table/assets/operation-CEqGTVKK.mjs +0 -2
- package/table/assets/opportunity-BI5C4nbZ.mjs +0 -2
- package/table/assets/orange-wJWv9n_Q.mjs +0 -2
- package/table/assets/paperclip-BkH-Zbgd.mjs +0 -2
- package/table/assets/partly-cloudy-D48PBwSD.mjs +0 -2
- package/table/assets/pear-DIsztN8s.mjs +0 -2
- package/table/assets/phone-B7VSSciF.mjs +0 -2
- package/table/assets/phone-filled-Lr6DqLSa.mjs +0 -2
- package/table/assets/picture-DV2iJqad.mjs +0 -2
- package/table/assets/picture-filled-C9j6LKcP.mjs +0 -2
- package/table/assets/picture-rounded-CDk2n32T.mjs +0 -2
- package/table/assets/pie-chart-1NJ48tOP.mjs +0 -2
- package/table/assets/place-BVSdWL6B.mjs +0 -2
- package/table/assets/platform-Cdx1L_9z.mjs +0 -2
- package/table/assets/plus-DZ2pttxa.mjs +0 -2
- package/table/assets/pointer-Abtq3JZ0.mjs +0 -2
- package/table/assets/position-BEw9Ccni.mjs +0 -2
- package/table/assets/postcard-D90pv_sk.mjs +0 -2
- package/table/assets/pouring-C4CqvYXG.mjs +0 -2
- package/table/assets/present-BM8jPzij.mjs +0 -2
- package/table/assets/price-tag-DfhLECPV.mjs +0 -2
- package/table/assets/printer-D-XpwhrB.mjs +0 -2
- package/table/assets/promotion-tSc4HLRJ.mjs +0 -2
- package/table/assets/quartz-watch-CY1FKHVA.mjs +0 -2
- package/table/assets/question-filled-BmyIzqtP.mjs +0 -2
- package/table/assets/rank-VdHIol05.mjs +0 -2
- package/table/assets/reading-DsHi4XTq.mjs +0 -2
- package/table/assets/reading-lamp-DdvrvnB7.mjs +0 -2
- package/table/assets/refresh-CIk9s6F-.mjs +0 -2
- package/table/assets/refresh-left-DPl9C2Ct.mjs +0 -2
- package/table/assets/refresh-right-D9TCGR9u.mjs +0 -2
- package/table/assets/refrigerator-Dnbnz6a5.mjs +0 -2
- package/table/assets/remove-D9q_rHio.mjs +0 -2
- package/table/assets/remove-filled-lYH5C0bo.mjs +0 -2
- package/table/assets/right-DWj-K5z0.mjs +0 -2
- package/table/assets/scale-to-original-CzMGPIhu.mjs +0 -2
- package/table/assets/school-Dpk1qtn9.mjs +0 -2
- package/table/assets/scissor-BpuiVQql.mjs +0 -2
- package/table/assets/search-BfAnzj-E.mjs +0 -2
- package/table/assets/select-DK5G88Il.mjs +0 -2
- package/table/assets/sell-BxCuOdz-.mjs +0 -2
- package/table/assets/semi-select-tHeL0IS8.mjs +0 -2
- package/table/assets/service-DWKfJyQv.mjs +0 -2
- package/table/assets/set-up-LUVLY-Qu.mjs +0 -2
- package/table/assets/setting-PcMSo9QI.mjs +0 -2
- package/table/assets/share-UHkmVkzi.mjs +0 -2
- package/table/assets/ship-Dfz-3oG5.mjs +0 -2
- package/table/assets/shop-DiVQ8hpO.mjs +0 -2
- package/table/assets/shopping-bag-DQgF7ToN.mjs +0 -2
- package/table/assets/shopping-cart-ClNizCL3.mjs +0 -2
- package/table/assets/shopping-cart-full-D5atFFjr.mjs +0 -2
- package/table/assets/shopping-trolley-CjpMsWIV.mjs +0 -2
- package/table/assets/smoking-YbV-3XXB.mjs +0 -2
- package/table/assets/soccer-B46gQHJl.mjs +0 -2
- package/table/assets/sold-out-DJBMzsVg.mjs +0 -2
- package/table/assets/sort-CQwNrdH2.mjs +0 -2
- package/table/assets/sort-down-BdaoRaj_.mjs +0 -2
- package/table/assets/sort-up-BjzCVYGN.mjs +0 -2
- package/table/assets/stamp-BK78Z7pg.mjs +0 -2
- package/table/assets/star-BVARWN33.mjs +0 -2
- package/table/assets/star-filled-rk9sTPb4.mjs +0 -2
- package/table/assets/stopwatch-85uHdJLQ.mjs +0 -2
- package/table/assets/success-filled-CThvcb8u.mjs +0 -2
- package/table/assets/sugar-BsIMy3d6.mjs +0 -2
- package/table/assets/suitcase-CtqJpUQH.mjs +0 -2
- package/table/assets/suitcase-line-yBK6hCZW.mjs +0 -2
- package/table/assets/sunny-CCSxZxdM.mjs +0 -2
- package/table/assets/sunrise-C8CJ7z3v.mjs +0 -2
- package/table/assets/sunset-DF4eJdro.mjs +0 -2
- package/table/assets/switch-BQYR_sAg.mjs +0 -2
- package/table/assets/switch-button-DtenWSId.mjs +0 -2
- package/table/assets/switch-filled-Hz4xc_gS.mjs +0 -2
- package/table/assets/takeaway-box-BJHRfE3Z.mjs +0 -2
- package/table/assets/ticket-DFYuDNVF.mjs +0 -2
- package/table/assets/tickets-CEB1735U.mjs +0 -2
- package/table/assets/timer-C33_x94B.mjs +0 -2
- package/table/assets/toilet-paper-BkB083SS.mjs +0 -2
- package/table/assets/tools-y807N1QC.mjs +0 -2
- package/table/assets/top-DSYmBky7.mjs +0 -2
- package/table/assets/top-left-irfVXs2o.mjs +0 -2
- package/table/assets/top-right-98j2VHYK.mjs +0 -2
- package/table/assets/trend-charts-6lTy9Jgt.mjs +0 -2
- package/table/assets/trophy-BDYZ45mw.mjs +0 -2
- package/table/assets/trophy-base-CLI-VKxL.mjs +0 -2
- package/table/assets/turn-off-D9XS8mll.mjs +0 -2
- package/table/assets/umbrella-DSWtElVK.mjs +0 -2
- package/table/assets/unlock-DnesHyrp.mjs +0 -2
- package/table/assets/upload-DKf4alPQ.mjs +0 -2
- package/table/assets/upload-filled-oiiBpvmb.mjs +0 -2
- package/table/assets/user-B4rxaN-N.mjs +0 -2
- package/table/assets/user-filled-DZr93cRO.mjs +0 -2
- package/table/assets/van-nTv5uHxZ.mjs +0 -2
- package/table/assets/video-camera-DtPiWRQ8.mjs +0 -2
- package/table/assets/video-camera-filled-C5s-Gj9h.mjs +0 -2
- package/table/assets/video-pause-Jy1AM_hw.mjs +0 -2
- package/table/assets/video-play-BwrtzSXe.mjs +0 -2
- package/table/assets/view-OMw-p2xv.mjs +0 -2
- package/table/assets/wallet-BNmkaziG.mjs +0 -2
- package/table/assets/wallet-filled-DyllZc1b.mjs +0 -2
- package/table/assets/warn-triangle-filled-Cj0re_Ry.mjs +0 -2
- package/table/assets/warning-Ci8rTWL3.mjs +0 -2
- package/table/assets/warning-filled-DfV4zZ4t.mjs +0 -2
- package/table/assets/watch-9KRo68q5.mjs +0 -2
- package/table/assets/watermelon-wNrDr6jd.mjs +0 -2
- package/table/assets/wind-power-DxVDd2qy.mjs +0 -2
- package/table/assets/zoom-in-T-xzI6o1.mjs +0 -2
- package/table/assets/zoom-out-HBZpa4DY.mjs +0 -2
- package/table/index.css +0 -2
- package/table/index.es.js +0 -4280
- package/table/index.umd.cjs +0 -5
- package/types/avatar/index.d.ts +0 -5
- package/types/avatar/src/index.vue.d.ts +0 -66
- package/types/editor/index.d.ts +0 -5
- package/types/editor/src/index.vue.d.ts +0 -88
- package/types/el-icon.d.ts +0 -3
- package/types/form/index.d.ts +0 -5
- package/types/form/src/index.vue.d.ts +0 -25
- package/types/form-item/index.d.ts +0 -5
- package/types/form-item/src/index.vue.d.ts +0 -25
- package/types/i18n/base.d.ts +0 -156
- package/types/i18n/lang/en.d.ts +0 -79
- package/types/i18n/lang/zh-CN.d.ts +0 -74
- package/types/i18n/lang/zh-TW.d.ts +0 -74
- package/types/icon/index.d.ts +0 -5
- package/types/icon/src/index.vue.d.ts +0 -33
- package/types/iconfont/index.d.ts +0 -5
- package/types/iconfont/src/index.vue.d.ts +0 -50
- package/types/image-upload/index.d.ts +0 -5
- package/types/image-upload/src/index.vue.d.ts +0 -116
- package/types/index.d.ts +0 -6
- package/types/input/cascader.d.ts +0 -5
- package/types/input/date-picker.d.ts +0 -5
- package/types/input/index.d.ts +0 -5
- package/types/input/mention.d.ts +0 -5
- package/types/input/number.d.ts +0 -5
- package/types/input/select-v2.d.ts +0 -5
- package/types/input/select.d.ts +0 -5
- package/types/input/src/cascader.vue.d.ts +0 -52
- package/types/input/src/date-picker.vue.d.ts +0 -61
- package/types/input/src/index.vue.d.ts +0 -70
- package/types/input/src/input-number.vue.d.ts +0 -96
- package/types/input/src/mention.vue.d.ts +0 -96
- package/types/input/src/select-v2.vue.d.ts +0 -92
- package/types/input/src/select.vue.d.ts +0 -92
- package/types/input/src/tag.vue.d.ts +0 -98
- package/types/input/src/time-picker.vue.d.ts +0 -52
- package/types/input/src/time-select.vue.d.ts +0 -52
- package/types/input/src/tree-select.vue.d.ts +0 -52
- package/types/input/src/types.d.ts +0 -9
- package/types/input/tag.d.ts +0 -5
- package/types/input/time-picker.d.ts +0 -5
- package/types/input/time-select.d.ts +0 -5
- package/types/input/tree-select.d.ts +0 -5
- package/types/layout/index.d.ts +0 -5
- package/types/layout/src/index.vue.d.ts +0 -129
- package/types/oga-avatar.d.ts +0 -3
- package/types/oga-cascader.d.ts +0 -3
- package/types/oga-date-picker.d.ts +0 -3
- package/types/oga-editor.d.ts +0 -3
- package/types/oga-form-item.d.ts +0 -3
- package/types/oga-form.d.ts +0 -3
- package/types/oga-icon.d.ts +0 -3
- package/types/oga-image-upload.d.ts +0 -3
- package/types/oga-input-number.d.ts +0 -3
- package/types/oga-input-tag.d.ts +0 -3
- package/types/oga-input.d.ts +0 -3
- package/types/oga-layout.d.ts +0 -3
- package/types/oga-mention.d.ts +0 -3
- package/types/oga-page.d.ts +0 -3
- package/types/oga-paging.d.ts +0 -3
- package/types/oga-section.d.ts +0 -3
- package/types/oga-select-v2.d.ts +0 -3
- package/types/oga-select.d.ts +0 -3
- package/types/oga-table.d.ts +0 -3
- package/types/oga-time-picker.d.ts +0 -3
- package/types/oga-time-select.d.ts +0 -3
- package/types/oga-tree-select.d.ts +0 -3
- package/types/oga-unsaved.d.ts +0 -3
- package/types/page/index.d.ts +0 -5
- package/types/page/src/index.vue.d.ts +0 -76
- package/types/paging/index.d.ts +0 -5
- package/types/paging/src/index.vue.d.ts +0 -28
- package/types/paging/src/paging-type.d.ts +0 -29
- package/types/plugins/utility.d.ts +0 -108
- package/types/progress/index.d.ts +0 -5
- package/types/progress/src/index.vue.d.ts +0 -33
- package/types/section/index.d.ts +0 -5
- package/types/section/src/index.vue.d.ts +0 -56
- package/types/table/index.d.ts +0 -5
- package/types/table/src/index.vue.d.ts +0 -21
- package/types/table/src/table.d.ts +0 -145
- package/types/unsaved/index.d.ts +0 -5
- package/types/unsaved/src/index.vue.d.ts +0 -74
- package/unsaved/index.css +0 -2
- package/unsaved/index.es.js +0 -3170
- package/unsaved/index.umd.cjs +0 -5
package/image-upload/index.es.js
DELETED
|
@@ -1,4705 +0,0 @@
|
|
|
1
|
-
import * as Vue from "vue";
|
|
2
|
-
import { Fragment, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, effectScope, getCurrentInstance, h, inject, isProxy, isRef, mergeModels, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, reactive, ref, renderList, resolveComponent, shallowRef, toDisplayString, toRefs, unref, useModel, watch, withCtx, withDirectives } from "vue";
|
|
3
|
-
import { ElMessageBox } from "element-plus";
|
|
4
|
-
var an = Object.defineProperty, Pe = Object.getOwnPropertySymbols, yt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable, bt = (e, t, n) => t in e ? an(e, t, {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
configurable: !0,
|
|
7
|
-
writable: !0,
|
|
8
|
-
value: n
|
|
9
|
-
}) : e[t] = n, fe = (e, t) => {
|
|
10
|
-
for (var n in t ||= {}) yt.call(t, n) && bt(e, n, t[n]);
|
|
11
|
-
if (Pe) for (var n of Pe(t)) wt.call(t, n) && bt(e, n, t[n]);
|
|
12
|
-
return e;
|
|
13
|
-
}, $e = (e, t) => {
|
|
14
|
-
var n = {};
|
|
15
|
-
for (var r in e) yt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
16
|
-
if (e != null && Pe) for (var r of Pe(e)) t.indexOf(r) < 0 && wt.call(e, r) && (n[r] = e[r]);
|
|
17
|
-
return n;
|
|
18
|
-
}, Ht = "[vue-draggable-plus]: ";
|
|
19
|
-
function mn(e) {
|
|
20
|
-
console.warn(Ht + e);
|
|
21
|
-
}
|
|
22
|
-
function vn(e) {
|
|
23
|
-
console.error(Ht + e);
|
|
24
|
-
}
|
|
25
|
-
function St(e, t, n) {
|
|
26
|
-
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
27
|
-
}
|
|
28
|
-
function bn(e) {
|
|
29
|
-
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
30
|
-
}
|
|
31
|
-
function yn(e) {
|
|
32
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[bn(n)] = e[n]), t), {});
|
|
33
|
-
}
|
|
34
|
-
function Dt(e, t) {
|
|
35
|
-
return Array.isArray(e) && e.splice(t, 1), e;
|
|
36
|
-
}
|
|
37
|
-
function _t(e, t, n) {
|
|
38
|
-
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
39
|
-
}
|
|
40
|
-
function wn(e) {
|
|
41
|
-
return e === void 0;
|
|
42
|
-
}
|
|
43
|
-
function En(e) {
|
|
44
|
-
return typeof e == "string";
|
|
45
|
-
}
|
|
46
|
-
function Tt(e, t, n) {
|
|
47
|
-
let r = e.children[n];
|
|
48
|
-
e.insertBefore(t, r);
|
|
49
|
-
}
|
|
50
|
-
function Ke(e) {
|
|
51
|
-
e.parentNode && e.parentNode.removeChild(e);
|
|
52
|
-
}
|
|
53
|
-
function Sn(e, t = document) {
|
|
54
|
-
let n = null;
|
|
55
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || mn(`Element not found: ${e}`), n;
|
|
56
|
-
}
|
|
57
|
-
function Dn(e, t, n = null) {
|
|
58
|
-
return function(...r) {
|
|
59
|
-
return e.apply(n, r), t.apply(n, r);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function _n(e, t) {
|
|
63
|
-
let n = fe({}, e);
|
|
64
|
-
return Object.keys(t).forEach((r) => {
|
|
65
|
-
n[r] ? n[r] = Dn(e[r], t[r]) : n[r] = t[r];
|
|
66
|
-
}), n;
|
|
67
|
-
}
|
|
68
|
-
function Tn(e) {
|
|
69
|
-
return e instanceof HTMLElement;
|
|
70
|
-
}
|
|
71
|
-
function Ct(e, t) {
|
|
72
|
-
Object.keys(e).forEach((n) => {
|
|
73
|
-
t(n, e[n]);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function Cn(e) {
|
|
77
|
-
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
78
|
-
}
|
|
79
|
-
var On = Object.assign;
|
|
80
|
-
/**!
|
|
81
|
-
* Sortable 1.15.2
|
|
82
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
83
|
-
* @author owenm <owen23355@gmail.com>
|
|
84
|
-
* @license MIT
|
|
85
|
-
*/
|
|
86
|
-
function Ot(e, t) {
|
|
87
|
-
var n = Object.keys(e);
|
|
88
|
-
if (Object.getOwnPropertySymbols) {
|
|
89
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
90
|
-
t && (r = r.filter(function(t) {
|
|
91
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
92
|
-
})), n.push.apply(n, r);
|
|
93
|
-
}
|
|
94
|
-
return n;
|
|
95
|
-
}
|
|
96
|
-
function ne(e) {
|
|
97
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
98
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
99
|
-
t % 2 ? Ot(Object(n), !0).forEach(function(t) {
|
|
100
|
-
In(e, t, n[t]);
|
|
101
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ot(Object(n)).forEach(function(t) {
|
|
102
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return e;
|
|
106
|
-
}
|
|
107
|
-
function Ye(e) {
|
|
108
|
-
"@babel/helpers - typeof";
|
|
109
|
-
return Ye = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
110
|
-
return typeof e;
|
|
111
|
-
} : function(e) {
|
|
112
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
113
|
-
}, Ye(e);
|
|
114
|
-
}
|
|
115
|
-
function In(e, t, n) {
|
|
116
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
117
|
-
value: n,
|
|
118
|
-
enumerable: !0,
|
|
119
|
-
configurable: !0,
|
|
120
|
-
writable: !0
|
|
121
|
-
}) : e[t] = n, e;
|
|
122
|
-
}
|
|
123
|
-
function ie() {
|
|
124
|
-
return ie = Object.assign || function(e) {
|
|
125
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
126
|
-
var n = arguments[t];
|
|
127
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
128
|
-
}
|
|
129
|
-
return e;
|
|
130
|
-
}, ie.apply(this, arguments);
|
|
131
|
-
}
|
|
132
|
-
function An(e, t) {
|
|
133
|
-
if (e == null) return {};
|
|
134
|
-
var n = {}, r = Object.keys(e), i, a;
|
|
135
|
-
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
136
|
-
return n;
|
|
137
|
-
}
|
|
138
|
-
function xn(e, t) {
|
|
139
|
-
if (e == null) return {};
|
|
140
|
-
var n = An(e, t), r, i;
|
|
141
|
-
if (Object.getOwnPropertySymbols) {
|
|
142
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
143
|
-
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
144
|
-
}
|
|
145
|
-
return n;
|
|
146
|
-
}
|
|
147
|
-
var Nn = "1.15.2";
|
|
148
|
-
function re(e) {
|
|
149
|
-
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
150
|
-
}
|
|
151
|
-
var ae = re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = re(/Edge/i), It = re(/firefox/i), Te = re(/safari/i) && !re(/chrome/i) && !re(/android/i), Lt = re(/iP(ad|od|hone)/i), Wt = re(/chrome/i) && re(/android/i), Gt = {
|
|
152
|
-
capture: !1,
|
|
153
|
-
passive: !1
|
|
154
|
-
};
|
|
155
|
-
function S(e, t, n) {
|
|
156
|
-
e.addEventListener(t, n, !ae && Gt);
|
|
157
|
-
}
|
|
158
|
-
function E(e, t, n) {
|
|
159
|
-
e.removeEventListener(t, n, !ae && Gt);
|
|
160
|
-
}
|
|
161
|
-
function We(e, t) {
|
|
162
|
-
if (t) {
|
|
163
|
-
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
164
|
-
if (e.matches) return e.matches(t);
|
|
165
|
-
if (e.msMatchesSelector) return e.msMatchesSelector(t);
|
|
166
|
-
if (e.webkitMatchesSelector) return e.webkitMatchesSelector(t);
|
|
167
|
-
} catch {
|
|
168
|
-
return !1;
|
|
169
|
-
}
|
|
170
|
-
return !1;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
function Pn(e) {
|
|
174
|
-
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
175
|
-
}
|
|
176
|
-
function Q(e, t, n, r) {
|
|
177
|
-
if (e) {
|
|
178
|
-
n ||= document;
|
|
179
|
-
do {
|
|
180
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n && We(e, t) : We(e, t)) || r && e === n) return e;
|
|
181
|
-
if (e === n) break;
|
|
182
|
-
} while (e = Pn(e));
|
|
183
|
-
}
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
var At = /\s+/g;
|
|
187
|
-
function V(e, t, n) {
|
|
188
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(At, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(At, " "));
|
|
189
|
-
}
|
|
190
|
-
function h$1(e, t, n) {
|
|
191
|
-
var r = e && e.style;
|
|
192
|
-
if (r) {
|
|
193
|
-
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
194
|
-
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function ye(e, t) {
|
|
198
|
-
var n = "";
|
|
199
|
-
if (typeof e == "string") n = e;
|
|
200
|
-
else do {
|
|
201
|
-
var r = h$1(e, "transform");
|
|
202
|
-
r && r !== "none" && (n = r + " " + n);
|
|
203
|
-
} while (!t && (e = e.parentNode));
|
|
204
|
-
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
205
|
-
return i && new i(n);
|
|
206
|
-
}
|
|
207
|
-
function jt(e, t, n) {
|
|
208
|
-
if (e) {
|
|
209
|
-
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
210
|
-
if (n) for (; i < a; i++) n(r[i], i);
|
|
211
|
-
return r;
|
|
212
|
-
}
|
|
213
|
-
return [];
|
|
214
|
-
}
|
|
215
|
-
function te() {
|
|
216
|
-
return document.scrollingElement || document.documentElement;
|
|
217
|
-
}
|
|
218
|
-
function P(e, t, n, r, i) {
|
|
219
|
-
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
220
|
-
var a, o, s, l, u, d, f;
|
|
221
|
-
if (e !== window && e.parentNode && e !== te() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, l = a.bottom, u = a.right, d = a.height, f = a.width) : (o = 0, s = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !ae)) do
|
|
222
|
-
if (i && i.getBoundingClientRect && (h$1(i, "transform") !== "none" || n && h$1(i, "position") !== "static")) {
|
|
223
|
-
var m = i.getBoundingClientRect();
|
|
224
|
-
o -= m.top + parseInt(h$1(i, "border-top-width")), s -= m.left + parseInt(h$1(i, "border-left-width")), l = o + a.height, u = s + a.width;
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
while (i = i.parentNode);
|
|
228
|
-
if (r && e !== window) {
|
|
229
|
-
var _ = ye(i || e), v = _ && _.a, y = _ && _.d;
|
|
230
|
-
_ && (o /= y, s /= v, f /= v, d /= y, l = o + d, u = s + f);
|
|
231
|
-
}
|
|
232
|
-
return {
|
|
233
|
-
top: o,
|
|
234
|
-
left: s,
|
|
235
|
-
bottom: l,
|
|
236
|
-
right: u,
|
|
237
|
-
width: f,
|
|
238
|
-
height: d
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function xt(e, t, n) {
|
|
243
|
-
for (var r = ce(e, !0), i = P(e)[t]; r;) {
|
|
244
|
-
var a = P(r)[n], o = void 0;
|
|
245
|
-
if (o = i >= a, !o) return r;
|
|
246
|
-
if (r === te()) break;
|
|
247
|
-
r = ce(r, !1);
|
|
248
|
-
}
|
|
249
|
-
return !1;
|
|
250
|
-
}
|
|
251
|
-
function we(e, t, n, r) {
|
|
252
|
-
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
253
|
-
if (o[a].style.display !== "none" && o[a] !== p.ghost && (r || o[a] !== p.dragged) && Q(o[a], n.draggable, e, !1)) {
|
|
254
|
-
if (i === t) return o[a];
|
|
255
|
-
i++;
|
|
256
|
-
}
|
|
257
|
-
a++;
|
|
258
|
-
}
|
|
259
|
-
return null;
|
|
260
|
-
}
|
|
261
|
-
function ht(e, t) {
|
|
262
|
-
for (var n = e.lastElementChild; n && (n === p.ghost || h$1(n, "display") === "none" || t && !We(n, t));) n = n.previousElementSibling;
|
|
263
|
-
return n || null;
|
|
264
|
-
}
|
|
265
|
-
function J(e, t) {
|
|
266
|
-
var n = 0;
|
|
267
|
-
if (!e || !e.parentNode) return -1;
|
|
268
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== p.clone && (!t || We(e, t)) && n++;
|
|
269
|
-
return n;
|
|
270
|
-
}
|
|
271
|
-
function Nt(e) {
|
|
272
|
-
var t = 0, n = 0, r = te();
|
|
273
|
-
if (e) do {
|
|
274
|
-
var i = ye(e), a = i.a, o = i.d;
|
|
275
|
-
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
276
|
-
} while (e !== r && (e = e.parentNode));
|
|
277
|
-
return [t, n];
|
|
278
|
-
}
|
|
279
|
-
function Mn(e, t) {
|
|
280
|
-
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
281
|
-
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
282
|
-
}
|
|
283
|
-
return -1;
|
|
284
|
-
}
|
|
285
|
-
function ce(e, t) {
|
|
286
|
-
if (!e || !e.getBoundingClientRect) return te();
|
|
287
|
-
var n = e, r = !1;
|
|
288
|
-
do
|
|
289
|
-
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
290
|
-
var i = h$1(n);
|
|
291
|
-
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
292
|
-
if (!n.getBoundingClientRect || n === document.body) return te();
|
|
293
|
-
if (r || t) return n;
|
|
294
|
-
r = !0;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
while (n = n.parentNode);
|
|
298
|
-
return te();
|
|
299
|
-
}
|
|
300
|
-
function Fn(e, t) {
|
|
301
|
-
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
302
|
-
return e;
|
|
303
|
-
}
|
|
304
|
-
function Je(e, t) {
|
|
305
|
-
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
306
|
-
}
|
|
307
|
-
var Ce;
|
|
308
|
-
function zt(e, t) {
|
|
309
|
-
return function() {
|
|
310
|
-
if (!Ce) {
|
|
311
|
-
var n = arguments, r = this;
|
|
312
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Ce = setTimeout(function() {
|
|
313
|
-
Ce = void 0;
|
|
314
|
-
}, t);
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
function Rn() {
|
|
319
|
-
clearTimeout(Ce), Ce = void 0;
|
|
320
|
-
}
|
|
321
|
-
function Ut(e, t, n) {
|
|
322
|
-
e.scrollLeft += t, e.scrollTop += n;
|
|
323
|
-
}
|
|
324
|
-
function Vt(e) {
|
|
325
|
-
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
326
|
-
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
327
|
-
}
|
|
328
|
-
function $t(e, t, n) {
|
|
329
|
-
var r = {};
|
|
330
|
-
return Array.from(e.children).forEach(function(i) {
|
|
331
|
-
if (!(!Q(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
332
|
-
var a = P(i);
|
|
333
|
-
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
334
|
-
}
|
|
335
|
-
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
336
|
-
}
|
|
337
|
-
var q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
338
|
-
function Xn() {
|
|
339
|
-
var e = [], t;
|
|
340
|
-
return {
|
|
341
|
-
captureAnimationState: function() {
|
|
342
|
-
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
343
|
-
if (!(h$1(t, "display") === "none" || t === p.ghost)) {
|
|
344
|
-
e.push({
|
|
345
|
-
target: t,
|
|
346
|
-
rect: P(t)
|
|
347
|
-
});
|
|
348
|
-
var n = ne({}, e[e.length - 1].rect);
|
|
349
|
-
if (t.thisAnimationDuration) {
|
|
350
|
-
var r = ye(t, !0);
|
|
351
|
-
r && (n.top -= r.f, n.left -= r.e);
|
|
352
|
-
}
|
|
353
|
-
t.fromRect = n;
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
},
|
|
357
|
-
addAnimationState: function(t) {
|
|
358
|
-
e.push(t);
|
|
359
|
-
},
|
|
360
|
-
removeAnimationState: function(t) {
|
|
361
|
-
e.splice(Mn(e, { target: t }), 1);
|
|
362
|
-
},
|
|
363
|
-
animateAll: function(n) {
|
|
364
|
-
var r = this;
|
|
365
|
-
if (!this.options.animation) {
|
|
366
|
-
clearTimeout(t), typeof n == "function" && n();
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
var i = !1, a = 0;
|
|
370
|
-
e.forEach(function(e) {
|
|
371
|
-
var t = 0, n = e.target, o = n.fromRect, s = P(n), l = n.prevFromRect, u = n.prevToRect, d = e.rect, f = ye(n, !0);
|
|
372
|
-
f && (s.top -= f.f, s.left -= f.e), n.toRect = s, n.thisAnimationDuration && Je(l, s) && !Je(o, s) && (d.top - s.top) / (d.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Bn(d, l, u, r.options)), Je(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, d, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
373
|
-
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
374
|
-
}, t), n.thisAnimationDuration = t);
|
|
375
|
-
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
376
|
-
typeof n == "function" && n();
|
|
377
|
-
}, a) : typeof n == "function" && n(), e = [];
|
|
378
|
-
},
|
|
379
|
-
animate: function(e, t, n, r) {
|
|
380
|
-
if (r) {
|
|
381
|
-
h$1(e, "transition", ""), h$1(e, "transform", "");
|
|
382
|
-
var i = ye(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), l = (t.top - n.top) / (o || 1);
|
|
383
|
-
e.animatingX = !!s, e.animatingY = !!l, h$1(e, "transform", "translate3d(" + s + "px," + l + "px,0)"), this.forRepaintDummy = Yn(e), h$1(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), h$1(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
384
|
-
h$1(e, "transition", ""), h$1(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
385
|
-
}, r);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
function Yn(e) {
|
|
391
|
-
return e.offsetWidth;
|
|
392
|
-
}
|
|
393
|
-
function Bn(e, t, n, r) {
|
|
394
|
-
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
395
|
-
}
|
|
396
|
-
var ge = [], Ze = { initializeByDefault: !0 }, Ne = {
|
|
397
|
-
mount: function(e) {
|
|
398
|
-
for (var t in Ze) Ze.hasOwnProperty(t) && !(t in e) && (e[t] = Ze[t]);
|
|
399
|
-
ge.forEach(function(t) {
|
|
400
|
-
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
401
|
-
}), ge.push(e);
|
|
402
|
-
},
|
|
403
|
-
pluginEvent: function(e, t, n) {
|
|
404
|
-
var r = this;
|
|
405
|
-
this.eventCanceled = !1, n.cancel = function() {
|
|
406
|
-
r.eventCanceled = !0;
|
|
407
|
-
};
|
|
408
|
-
var i = e + "Global";
|
|
409
|
-
ge.forEach(function(r) {
|
|
410
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ne({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ne({ sortable: t }, n)));
|
|
411
|
-
});
|
|
412
|
-
},
|
|
413
|
-
initializePlugins: function(e, t, n, r) {
|
|
414
|
-
for (var i in ge.forEach(function(r) {
|
|
415
|
-
var i = r.pluginName;
|
|
416
|
-
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
417
|
-
var a = new r(e, t, e.options);
|
|
418
|
-
a.sortable = e, a.options = e.options, e[i] = a, ie(n, a.defaults);
|
|
419
|
-
}
|
|
420
|
-
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
421
|
-
var a = this.modifyOption(e, i, e.options[i]);
|
|
422
|
-
a !== void 0 && (e.options[i] = a);
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
getEventProperties: function(e, t) {
|
|
426
|
-
var n = {};
|
|
427
|
-
return ge.forEach(function(r) {
|
|
428
|
-
typeof r.eventProperties == "function" && ie(n, r.eventProperties.call(t[r.pluginName], e));
|
|
429
|
-
}), n;
|
|
430
|
-
},
|
|
431
|
-
modifyOption: function(e, t, n) {
|
|
432
|
-
var r;
|
|
433
|
-
return ge.forEach(function(i) {
|
|
434
|
-
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
435
|
-
}), r;
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
function kn(e) {
|
|
439
|
-
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, f = e.newDraggableIndex, m = e.originalEvent, _ = e.putSortable, v = e.extraEventProperties;
|
|
440
|
-
if (t ||= n && n[q], t) {
|
|
441
|
-
var y, b = t.options, x = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
442
|
-
window.CustomEvent && !ae && !xe ? y = new CustomEvent(r, {
|
|
443
|
-
bubbles: !0,
|
|
444
|
-
cancelable: !0
|
|
445
|
-
}) : (y = document.createEvent("Event"), y.initEvent(r, !0, !0)), y.to = o || n, y.from = s || n, y.item = i || n, y.clone = a, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = f, y.originalEvent = m, y.pullMode = _ ? _.lastPutMode : void 0;
|
|
446
|
-
var w = ne(ne({}, v), Ne.getEventProperties(r, t));
|
|
447
|
-
for (var D in w) y[D] = w[D];
|
|
448
|
-
n && n.dispatchEvent(y), b[x] && b[x].call(t, y);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
var Hn = ["evt"], z = function(e, t) {
|
|
452
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = xn(n, Hn);
|
|
453
|
-
Ne.pluginEvent.bind(p)(e, t, ne({
|
|
454
|
-
dragEl: c,
|
|
455
|
-
parentEl: O,
|
|
456
|
-
ghostEl: g,
|
|
457
|
-
rootEl: T,
|
|
458
|
-
nextEl: pe,
|
|
459
|
-
lastDownEl: Be,
|
|
460
|
-
cloneEl: C,
|
|
461
|
-
cloneHidden: ue,
|
|
462
|
-
dragStarted: Se,
|
|
463
|
-
putSortable: Y,
|
|
464
|
-
activeSortable: p.active,
|
|
465
|
-
originalEvent: r,
|
|
466
|
-
oldIndex: be,
|
|
467
|
-
oldDraggableIndex: Oe,
|
|
468
|
-
newIndex: $,
|
|
469
|
-
newDraggableIndex: se,
|
|
470
|
-
hideGhostForTarget: Zt,
|
|
471
|
-
unhideGhostForTarget: Qt,
|
|
472
|
-
cloneNowHidden: function() {
|
|
473
|
-
ue = !0;
|
|
474
|
-
},
|
|
475
|
-
cloneNowShown: function() {
|
|
476
|
-
ue = !1;
|
|
477
|
-
},
|
|
478
|
-
dispatchSortableEvent: function(e) {
|
|
479
|
-
W({
|
|
480
|
-
sortable: t,
|
|
481
|
-
name: e,
|
|
482
|
-
originalEvent: r
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
}, i));
|
|
486
|
-
};
|
|
487
|
-
function W(e) {
|
|
488
|
-
kn(ne({
|
|
489
|
-
putSortable: Y,
|
|
490
|
-
cloneEl: C,
|
|
491
|
-
targetEl: c,
|
|
492
|
-
rootEl: T,
|
|
493
|
-
oldIndex: be,
|
|
494
|
-
oldDraggableIndex: Oe,
|
|
495
|
-
newIndex: $,
|
|
496
|
-
newDraggableIndex: se
|
|
497
|
-
}, e));
|
|
498
|
-
}
|
|
499
|
-
var c, O, g, T, pe, Be, C, ue, be, $, Oe, se, Me, Y, ve = !1, Ge = !1, je = [], de, Z, Qe, et, Pt, Mt, Se, me, Ie, Ae = !1, Fe = !1, ke, H, tt = [], lt = !1, ze = [], Ve = typeof document < "u", Re = Lt, Ft = xe || ae ? "cssFloat" : "float", Ln = Ve && !Wt && !Lt && "draggable" in document.createElement("div"), qt = function() {
|
|
500
|
-
if (Ve) {
|
|
501
|
-
if (ae) return !1;
|
|
502
|
-
var e = document.createElement("x");
|
|
503
|
-
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
504
|
-
}
|
|
505
|
-
}(), Kt = function(e, t) {
|
|
506
|
-
var n = h$1(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = we(e, 0, t), a = we(e, 1, t), o = i && h$1(i), s = a && h$1(a), l = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + P(i).width, u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + P(a).width;
|
|
507
|
-
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
508
|
-
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
509
|
-
if (i && o.float && o.float !== "none") {
|
|
510
|
-
var d = o.float === "left" ? "left" : "right";
|
|
511
|
-
return a && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
|
|
512
|
-
}
|
|
513
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || l >= r && n[Ft] === "none" || a && n[Ft] === "none" && l + u > r) ? "vertical" : "horizontal";
|
|
514
|
-
}, Wn = function(e, t, n) {
|
|
515
|
-
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, l = n ? t.width : t.height;
|
|
516
|
-
return r === o || i === s || r + a / 2 === o + l / 2;
|
|
517
|
-
}, Gn = function(e, t) {
|
|
518
|
-
var n;
|
|
519
|
-
return je.some(function(r) {
|
|
520
|
-
var i = r[q].options.emptyInsertThreshold;
|
|
521
|
-
if (!(!i || ht(r))) {
|
|
522
|
-
var a = P(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
523
|
-
if (o && s) return n = r;
|
|
524
|
-
}
|
|
525
|
-
}), n;
|
|
526
|
-
}, Jt = function(e) {
|
|
527
|
-
function t(e, n) {
|
|
528
|
-
return function(r, i, a, o) {
|
|
529
|
-
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
530
|
-
if (e == null && (n || s)) return !0;
|
|
531
|
-
if (e == null || e === !1) return !1;
|
|
532
|
-
if (n && e === "clone") return e;
|
|
533
|
-
if (typeof e == "function") return t(e(r, i, a, o), n)(r, i, a, o);
|
|
534
|
-
var l = (n ? r : i).options.group.name;
|
|
535
|
-
return e === !0 || typeof e == "string" && e === l || e.join && e.indexOf(l) > -1;
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
var n = {}, r = e.group;
|
|
539
|
-
(!r || Ye(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
540
|
-
}, Zt = function() {
|
|
541
|
-
!qt && g && h$1(g, "display", "none");
|
|
542
|
-
}, Qt = function() {
|
|
543
|
-
!qt && g && h$1(g, "display", "");
|
|
544
|
-
};
|
|
545
|
-
Ve && !Wt && document.addEventListener("click", function(e) {
|
|
546
|
-
if (Ge) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ge = !1, !1;
|
|
547
|
-
}, !0);
|
|
548
|
-
var he = function(e) {
|
|
549
|
-
if (c) {
|
|
550
|
-
e = e.touches ? e.touches[0] : e;
|
|
551
|
-
var t = Gn(e.clientX, e.clientY);
|
|
552
|
-
if (t) {
|
|
553
|
-
var n = {};
|
|
554
|
-
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
555
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[q]._onDragOver(n);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}, jn = function(e) {
|
|
559
|
-
c && c.parentNode[q]._isOutsideThisEl(e.target);
|
|
560
|
-
};
|
|
561
|
-
function p(e, t) {
|
|
562
|
-
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
563
|
-
this.el = e, this.options = t = ie({}, t), e[q] = this;
|
|
564
|
-
var n = {
|
|
565
|
-
group: null,
|
|
566
|
-
sort: !0,
|
|
567
|
-
disabled: !1,
|
|
568
|
-
store: null,
|
|
569
|
-
handle: null,
|
|
570
|
-
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
571
|
-
swapThreshold: 1,
|
|
572
|
-
invertSwap: !1,
|
|
573
|
-
invertedSwapThreshold: null,
|
|
574
|
-
removeCloneOnHide: !0,
|
|
575
|
-
direction: function() {
|
|
576
|
-
return Kt(e, this.options);
|
|
577
|
-
},
|
|
578
|
-
ghostClass: "sortable-ghost",
|
|
579
|
-
chosenClass: "sortable-chosen",
|
|
580
|
-
dragClass: "sortable-drag",
|
|
581
|
-
ignore: "a, img",
|
|
582
|
-
filter: null,
|
|
583
|
-
preventOnFilter: !0,
|
|
584
|
-
animation: 0,
|
|
585
|
-
easing: null,
|
|
586
|
-
setData: function(e, t) {
|
|
587
|
-
e.setData("Text", t.textContent);
|
|
588
|
-
},
|
|
589
|
-
dropBubble: !1,
|
|
590
|
-
dragoverBubble: !1,
|
|
591
|
-
dataIdAttr: "data-id",
|
|
592
|
-
delay: 0,
|
|
593
|
-
delayOnTouchOnly: !1,
|
|
594
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
595
|
-
forceFallback: !1,
|
|
596
|
-
fallbackClass: "sortable-fallback",
|
|
597
|
-
fallbackOnBody: !1,
|
|
598
|
-
fallbackTolerance: 0,
|
|
599
|
-
fallbackOffset: {
|
|
600
|
-
x: 0,
|
|
601
|
-
y: 0
|
|
602
|
-
},
|
|
603
|
-
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !Te,
|
|
604
|
-
emptyInsertThreshold: 5
|
|
605
|
-
};
|
|
606
|
-
for (var r in Ne.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
607
|
-
for (var i in Jt(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
608
|
-
this.nativeDraggable = t.forceFallback ? !1 : Ln, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? S(e, "pointerdown", this._onTapStart) : (S(e, "mousedown", this._onTapStart), S(e, "touchstart", this._onTapStart)), this.nativeDraggable && (S(e, "dragover", this), S(e, "dragenter", this)), je.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ie(this, Xn());
|
|
609
|
-
}
|
|
610
|
-
p.prototype = {
|
|
611
|
-
constructor: p,
|
|
612
|
-
_isOutsideThisEl: function(e) {
|
|
613
|
-
!this.el.contains(e) && e !== this.el && (me = null);
|
|
614
|
-
},
|
|
615
|
-
_getDirection: function(e, t) {
|
|
616
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, c) : this.options.direction;
|
|
617
|
-
},
|
|
618
|
-
_onTapStart: function(e) {
|
|
619
|
-
if (e.cancelable) {
|
|
620
|
-
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, l = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, u = r.filter;
|
|
621
|
-
if (Zn(n), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = Q(s, r.draggable, n, !1), !(s && s.animated) && Be !== s)) {
|
|
622
|
-
if (be = J(s), Oe = J(s, r.draggable), typeof u == "function") {
|
|
623
|
-
if (u.call(this, e, s, this)) {
|
|
624
|
-
W({
|
|
625
|
-
sortable: t,
|
|
626
|
-
rootEl: l,
|
|
627
|
-
name: "filter",
|
|
628
|
-
targetEl: s,
|
|
629
|
-
toEl: n,
|
|
630
|
-
fromEl: n
|
|
631
|
-
}), z("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
632
|
-
return;
|
|
633
|
-
}
|
|
634
|
-
} else if (u && (u = u.split(",").some(function(r) {
|
|
635
|
-
if (r = Q(l, r.trim(), n, !1), r) return W({
|
|
636
|
-
sortable: t,
|
|
637
|
-
rootEl: r,
|
|
638
|
-
name: "filter",
|
|
639
|
-
targetEl: s,
|
|
640
|
-
fromEl: n,
|
|
641
|
-
toEl: n
|
|
642
|
-
}), z("filter", t, { evt: e }), !0;
|
|
643
|
-
}), u)) {
|
|
644
|
-
i && e.cancelable && e.preventDefault();
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
r.handle && !Q(l, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
_prepareDragStart: function(e, t, n) {
|
|
652
|
-
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
653
|
-
if (n && !c && n.parentNode === i) {
|
|
654
|
-
var l = P(n);
|
|
655
|
-
if (T = i, c = n, O = c.parentNode, pe = c.nextSibling, Be = n, Me = a.group, p.dragged = c, de = {
|
|
656
|
-
target: c,
|
|
657
|
-
clientX: (t || e).clientX,
|
|
658
|
-
clientY: (t || e).clientY
|
|
659
|
-
}, Pt = de.clientX - l.left, Mt = de.clientY - l.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, c.style["will-change"] = "all", s = function() {
|
|
660
|
-
if (z("delayEnded", r, { evt: e }), p.eventCanceled) {
|
|
661
|
-
r._onDrop();
|
|
662
|
-
return;
|
|
663
|
-
}
|
|
664
|
-
r._disableDelayedDragEvents(), !It && r.nativeDraggable && (c.draggable = !0), r._triggerDragStart(e, t), W({
|
|
665
|
-
sortable: r,
|
|
666
|
-
name: "choose",
|
|
667
|
-
originalEvent: e
|
|
668
|
-
}), V(c, a.chosenClass, !0);
|
|
669
|
-
}, a.ignore.split(",").forEach(function(e) {
|
|
670
|
-
jt(c, e.trim(), nt);
|
|
671
|
-
}), S(o, "dragover", he), S(o, "mousemove", he), S(o, "touchmove", he), S(o, "mouseup", r._onDrop), S(o, "touchend", r._onDrop), S(o, "touchcancel", r._onDrop), It && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), z("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(xe || ae))) {
|
|
672
|
-
if (p.eventCanceled) {
|
|
673
|
-
this._onDrop();
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
S(o, "mouseup", r._disableDelayedDrag), S(o, "touchend", r._disableDelayedDrag), S(o, "touchcancel", r._disableDelayedDrag), S(o, "mousemove", r._delayedDragTouchMoveHandler), S(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && S(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
677
|
-
} else s();
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
|
-
_delayedDragTouchMoveHandler: function(e) {
|
|
681
|
-
var t = e.touches ? e.touches[0] : e;
|
|
682
|
-
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
683
|
-
},
|
|
684
|
-
_disableDelayedDrag: function() {
|
|
685
|
-
c && nt(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
686
|
-
},
|
|
687
|
-
_disableDelayedDragEvents: function() {
|
|
688
|
-
var e = this.el.ownerDocument;
|
|
689
|
-
E(e, "mouseup", this._disableDelayedDrag), E(e, "touchend", this._disableDelayedDrag), E(e, "touchcancel", this._disableDelayedDrag), E(e, "mousemove", this._delayedDragTouchMoveHandler), E(e, "touchmove", this._delayedDragTouchMoveHandler), E(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
690
|
-
},
|
|
691
|
-
_triggerDragStart: function(e, t) {
|
|
692
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : t ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(c, "dragend", this), S(T, "dragstart", this._onDragStart));
|
|
693
|
-
try {
|
|
694
|
-
document.selection ? He(function() {
|
|
695
|
-
document.selection.empty();
|
|
696
|
-
}) : window.getSelection().removeAllRanges();
|
|
697
|
-
} catch {}
|
|
698
|
-
},
|
|
699
|
-
_dragStarted: function(e, t) {
|
|
700
|
-
if (ve = !1, T && c) {
|
|
701
|
-
z("dragStarted", this, { evt: t }), this.nativeDraggable && S(document, "dragover", jn);
|
|
702
|
-
var n = this.options;
|
|
703
|
-
!e && V(c, n.dragClass, !1), V(c, n.ghostClass, !0), p.active = this, e && this._appendGhost(), W({
|
|
704
|
-
sortable: this,
|
|
705
|
-
name: "start",
|
|
706
|
-
originalEvent: t
|
|
707
|
-
});
|
|
708
|
-
} else this._nulling();
|
|
709
|
-
},
|
|
710
|
-
_emulateDragOver: function() {
|
|
711
|
-
if (Z) {
|
|
712
|
-
this._lastX = Z.clientX, this._lastY = Z.clientY, Zt();
|
|
713
|
-
for (var e = document.elementFromPoint(Z.clientX, Z.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Z.clientX, Z.clientY), e !== t);) t = e;
|
|
714
|
-
if (c.parentNode[q]._isOutsideThisEl(e), t) do {
|
|
715
|
-
if (t[q]) {
|
|
716
|
-
var n = void 0;
|
|
717
|
-
if (n = t[q]._onDragOver({
|
|
718
|
-
clientX: Z.clientX,
|
|
719
|
-
clientY: Z.clientY,
|
|
720
|
-
target: e,
|
|
721
|
-
rootEl: t
|
|
722
|
-
}), n && !this.options.dragoverBubble) break;
|
|
723
|
-
}
|
|
724
|
-
e = t;
|
|
725
|
-
} while (t = t.parentNode);
|
|
726
|
-
Qt();
|
|
727
|
-
}
|
|
728
|
-
},
|
|
729
|
-
_onTouchMove: function(e) {
|
|
730
|
-
if (de) {
|
|
731
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = g && ye(g, !0), o = g && a && a.a, s = g && a && a.d, l = Re && H && Nt(H), u = (i.clientX - de.clientX + r.x) / (o || 1) + (l ? l[0] - tt[0] : 0) / (o || 1), d = (i.clientY - de.clientY + r.y) / (s || 1) + (l ? l[1] - tt[1] : 0) / (s || 1);
|
|
732
|
-
if (!p.active && !ve) {
|
|
733
|
-
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
734
|
-
this._onDragStart(e, !0);
|
|
735
|
-
}
|
|
736
|
-
if (g) {
|
|
737
|
-
a ? (a.e += u - (Qe || 0), a.f += d - (et || 0)) : a = {
|
|
738
|
-
a: 1,
|
|
739
|
-
b: 0,
|
|
740
|
-
c: 0,
|
|
741
|
-
d: 1,
|
|
742
|
-
e: u,
|
|
743
|
-
f: d
|
|
744
|
-
};
|
|
745
|
-
var f = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
746
|
-
h$1(g, "webkitTransform", f), h$1(g, "mozTransform", f), h$1(g, "msTransform", f), h$1(g, "transform", f), Qe = u, et = d, Z = i;
|
|
747
|
-
}
|
|
748
|
-
e.cancelable && e.preventDefault();
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
_appendGhost: function() {
|
|
752
|
-
if (!g) {
|
|
753
|
-
var e = this.options.fallbackOnBody ? document.body : T, t = P(c, !0, Re, !0, e), n = this.options;
|
|
754
|
-
if (Re) {
|
|
755
|
-
for (H = e; h$1(H, "position") === "static" && h$1(H, "transform") === "none" && H !== document;) H = H.parentNode;
|
|
756
|
-
H !== document.body && H !== document.documentElement ? (H === document && (H = te()), t.top += H.scrollTop, t.left += H.scrollLeft) : H = te(), tt = Nt(H);
|
|
757
|
-
}
|
|
758
|
-
g = c.cloneNode(!0), V(g, n.ghostClass, !1), V(g, n.fallbackClass, !0), V(g, n.dragClass, !0), h$1(g, "transition", ""), h$1(g, "transform", ""), h$1(g, "box-sizing", "border-box"), h$1(g, "margin", 0), h$1(g, "top", t.top), h$1(g, "left", t.left), h$1(g, "width", t.width), h$1(g, "height", t.height), h$1(g, "opacity", "0.8"), h$1(g, "position", Re ? "absolute" : "fixed"), h$1(g, "zIndex", "100000"), h$1(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h$1(g, "transform-origin", Pt / parseInt(g.style.width) * 100 + "% " + Mt / parseInt(g.style.height) * 100 + "%");
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
_onDragStart: function(e, t) {
|
|
762
|
-
var n = this, r = e.dataTransfer, i = n.options;
|
|
763
|
-
if (z("dragStart", this, { evt: e }), p.eventCanceled) {
|
|
764
|
-
this._onDrop();
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
z("setupClone", this), p.eventCanceled || (C = Vt(c), C.removeAttribute("id"), C.draggable = !1, C.style["will-change"] = "", this._hideClone(), V(C, this.options.chosenClass, !1), p.clone = C), n.cloneId = He(function() {
|
|
768
|
-
z("clone", n), !p.eventCanceled && (n.options.removeCloneOnHide || T.insertBefore(C, c), n._hideClone(), W({
|
|
769
|
-
sortable: n,
|
|
770
|
-
name: "clone"
|
|
771
|
-
}));
|
|
772
|
-
}), !t && V(c, i.dragClass, !0), t ? (Ge = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (E(document, "mouseup", n._onDrop), E(document, "touchend", n._onDrop), E(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, c)), S(document, "drop", n), h$1(c, "transform", "translateZ(0)")), ve = !0, n._dragStartId = He(n._dragStarted.bind(n, t, e)), S(document, "selectstart", n), Se = !0, Te && h$1(document.body, "user-select", "none");
|
|
773
|
-
},
|
|
774
|
-
_onDragOver: function(e) {
|
|
775
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, l = p.active, u = Me === s, d = o.sort, f = Y || l, m, _ = this, v = !1;
|
|
776
|
-
if (lt) return;
|
|
777
|
-
function y(o, s) {
|
|
778
|
-
z(o, _, ne({
|
|
779
|
-
evt: e,
|
|
780
|
-
isOwner: u,
|
|
781
|
-
axis: m ? "vertical" : "horizontal",
|
|
782
|
-
revert: a,
|
|
783
|
-
dragRect: r,
|
|
784
|
-
targetRect: i,
|
|
785
|
-
canSort: d,
|
|
786
|
-
fromSortable: f,
|
|
787
|
-
target: n,
|
|
788
|
-
completed: x,
|
|
789
|
-
onMove: function(n, i) {
|
|
790
|
-
return Xe(T, t, c, r, n, P(n), e, i);
|
|
791
|
-
},
|
|
792
|
-
changed: w
|
|
793
|
-
}, s));
|
|
794
|
-
}
|
|
795
|
-
function b() {
|
|
796
|
-
y("dragOverAnimationCapture"), _.captureAnimationState(), _ !== f && f.captureAnimationState();
|
|
797
|
-
}
|
|
798
|
-
function x(r) {
|
|
799
|
-
return y("dragOverCompleted", { insertion: r }), r && (u ? l._hideClone() : l._showClone(_), _ !== f && (V(c, Y ? Y.options.ghostClass : l.options.ghostClass, !1), V(c, o.ghostClass, !0)), Y !== _ && _ !== p.active ? Y = _ : _ === p.active && Y && (Y = null), f === _ && (_._ignoreWhileAnimating = n), _.animateAll(function() {
|
|
800
|
-
y("dragOverAnimationComplete"), _._ignoreWhileAnimating = null;
|
|
801
|
-
}), _ !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === c && !c.animated || n === t && !n.animated) && (me = null), !o.dragoverBubble && !e.rootEl && n !== document && (c.parentNode[q]._isOutsideThisEl(e.target), !r && he(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
802
|
-
}
|
|
803
|
-
function w() {
|
|
804
|
-
$ = J(c), se = J(c, o.draggable), W({
|
|
805
|
-
sortable: _,
|
|
806
|
-
name: "change",
|
|
807
|
-
toEl: t,
|
|
808
|
-
newIndex: $,
|
|
809
|
-
newDraggableIndex: se,
|
|
810
|
-
originalEvent: e
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Q(n, o.draggable, t, !0), y("dragOver"), p.eventCanceled) return v;
|
|
814
|
-
if (c.contains(e.target) || n.animated && n.animatingX && n.animatingY || _._ignoreWhileAnimating === n) return x(!1);
|
|
815
|
-
if (Ge = !1, l && !o.disabled && (u ? d || (a = O !== T) : Y === this || (this.lastPutMode = Me.checkPull(this, l, c, e)) && s.checkPut(this, l, c, e))) {
|
|
816
|
-
if (m = this._getDirection(e, n) === "vertical", r = P(c), y("dragOverValid"), p.eventCanceled) return v;
|
|
817
|
-
if (a) return O = T, b(), this._hideClone(), y("revert"), p.eventCanceled || (pe ? T.insertBefore(c, pe) : T.appendChild(c)), x(!0);
|
|
818
|
-
var D = ht(t, o.draggable);
|
|
819
|
-
if (!D || $n(e, m, this) && !D.animated) {
|
|
820
|
-
if (D === c) return x(!1);
|
|
821
|
-
if (D && t === e.target && (n = D), n && (i = P(n)), Xe(T, t, c, r, n, i, e, !!n) !== !1) return b(), D && D.nextSibling ? t.insertBefore(c, D.nextSibling) : t.appendChild(c), O = t, w(), x(!0);
|
|
822
|
-
} else if (D && Vn(e, m, this)) {
|
|
823
|
-
var k = we(t, 0, o, !0);
|
|
824
|
-
if (k === c) return x(!1);
|
|
825
|
-
if (n = k, i = P(n), Xe(T, t, c, r, n, i, e, !1) !== !1) return b(), t.insertBefore(c, k), O = t, w(), x(!0);
|
|
826
|
-
} else if (n.parentNode === t) {
|
|
827
|
-
i = P(n);
|
|
828
|
-
var A = 0, j, M = c.parentNode !== t, F = !Wn(c.animated && c.toRect || r, n.animated && n.toRect || i, m), I = m ? "top" : "left", L = xt(n, "top", "top") || xt(c, "top", "top"), R = L ? L.scrollTop : void 0;
|
|
829
|
-
me !== n && (j = i[I], Ae = !1, Fe = !F && o.invertSwap || M), A = qn(e, n, i, m, F ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Fe, me === n);
|
|
830
|
-
var B;
|
|
831
|
-
if (A !== 0) {
|
|
832
|
-
var ed = J(c);
|
|
833
|
-
do
|
|
834
|
-
ed -= A, B = O.children[ed];
|
|
835
|
-
while (B && (h$1(B, "display") === "none" || B === g));
|
|
836
|
-
}
|
|
837
|
-
if (A === 0 || B === n) return x(!1);
|
|
838
|
-
me = n, Ie = A;
|
|
839
|
-
var U = n.nextElementSibling, G = !1;
|
|
840
|
-
G = A === 1;
|
|
841
|
-
var td = Xe(T, t, c, r, n, i, e, G);
|
|
842
|
-
if (td !== !1) return (td === 1 || td === -1) && (G = td === 1), lt = !0, setTimeout(Un, 30), b(), G && !U ? t.appendChild(c) : n.parentNode.insertBefore(c, G ? U : n), L && Ut(L, 0, R - L.scrollTop), O = c.parentNode, j !== void 0 && !Fe && (ke = Math.abs(j - P(n)[I])), w(), x(!0);
|
|
843
|
-
}
|
|
844
|
-
if (t.contains(c)) return x(!1);
|
|
845
|
-
}
|
|
846
|
-
return !1;
|
|
847
|
-
},
|
|
848
|
-
_ignoreWhileAnimating: null,
|
|
849
|
-
_offMoveEvents: function() {
|
|
850
|
-
E(document, "mousemove", this._onTouchMove), E(document, "touchmove", this._onTouchMove), E(document, "pointermove", this._onTouchMove), E(document, "dragover", he), E(document, "mousemove", he), E(document, "touchmove", he);
|
|
851
|
-
},
|
|
852
|
-
_offUpEvents: function() {
|
|
853
|
-
var e = this.el.ownerDocument;
|
|
854
|
-
E(e, "mouseup", this._onDrop), E(e, "touchend", this._onDrop), E(e, "pointerup", this._onDrop), E(e, "touchcancel", this._onDrop), E(document, "selectstart", this);
|
|
855
|
-
},
|
|
856
|
-
_onDrop: function(e) {
|
|
857
|
-
var t = this.el, n = this.options;
|
|
858
|
-
if ($ = J(c), se = J(c, n.draggable), z("drop", this, { evt: e }), O = c && c.parentNode, $ = J(c), se = J(c, n.draggable), p.eventCanceled) {
|
|
859
|
-
this._nulling();
|
|
860
|
-
return;
|
|
861
|
-
}
|
|
862
|
-
ve = !1, Fe = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), st(this.cloneId), st(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && h$1(document.body, "user-select", ""), h$1(c, "transform", ""), e && (Se && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (T === O || Y && Y.lastPutMode !== "clone") && C && C.parentNode && C.parentNode.removeChild(C), c && (this.nativeDraggable && E(c, "dragend", this), nt(c), c.style["will-change"] = "", Se && !ve && V(c, Y ? Y.options.ghostClass : this.options.ghostClass, !1), V(c, this.options.chosenClass, !1), W({
|
|
863
|
-
sortable: this,
|
|
864
|
-
name: "unchoose",
|
|
865
|
-
toEl: O,
|
|
866
|
-
newIndex: null,
|
|
867
|
-
newDraggableIndex: null,
|
|
868
|
-
originalEvent: e
|
|
869
|
-
}), T === O ? $ !== be && $ >= 0 && (W({
|
|
870
|
-
sortable: this,
|
|
871
|
-
name: "update",
|
|
872
|
-
toEl: O,
|
|
873
|
-
originalEvent: e
|
|
874
|
-
}), W({
|
|
875
|
-
sortable: this,
|
|
876
|
-
name: "sort",
|
|
877
|
-
toEl: O,
|
|
878
|
-
originalEvent: e
|
|
879
|
-
})) : ($ >= 0 && (W({
|
|
880
|
-
rootEl: O,
|
|
881
|
-
name: "add",
|
|
882
|
-
toEl: O,
|
|
883
|
-
fromEl: T,
|
|
884
|
-
originalEvent: e
|
|
885
|
-
}), W({
|
|
886
|
-
sortable: this,
|
|
887
|
-
name: "remove",
|
|
888
|
-
toEl: O,
|
|
889
|
-
originalEvent: e
|
|
890
|
-
}), W({
|
|
891
|
-
rootEl: O,
|
|
892
|
-
name: "sort",
|
|
893
|
-
toEl: O,
|
|
894
|
-
fromEl: T,
|
|
895
|
-
originalEvent: e
|
|
896
|
-
}), W({
|
|
897
|
-
sortable: this,
|
|
898
|
-
name: "sort",
|
|
899
|
-
toEl: O,
|
|
900
|
-
originalEvent: e
|
|
901
|
-
})), Y && Y.save()), p.active && (($ == null || $ === -1) && ($ = be, se = Oe), W({
|
|
902
|
-
sortable: this,
|
|
903
|
-
name: "end",
|
|
904
|
-
toEl: O,
|
|
905
|
-
originalEvent: e
|
|
906
|
-
}), this.save()))), this._nulling();
|
|
907
|
-
},
|
|
908
|
-
_nulling: function() {
|
|
909
|
-
z("nulling", this), T = c = O = g = pe = C = Be = ue = de = Z = Se = $ = se = be = Oe = me = Ie = Y = Me = p.dragged = p.ghost = p.clone = p.active = null, ze.forEach(function(e) {
|
|
910
|
-
e.checked = !0;
|
|
911
|
-
}), ze.length = Qe = et = 0;
|
|
912
|
-
},
|
|
913
|
-
handleEvent: function(e) {
|
|
914
|
-
switch (e.type) {
|
|
915
|
-
case "drop":
|
|
916
|
-
case "dragend":
|
|
917
|
-
this._onDrop(e);
|
|
918
|
-
break;
|
|
919
|
-
case "dragenter":
|
|
920
|
-
case "dragover":
|
|
921
|
-
c && (this._onDragOver(e), zn(e));
|
|
922
|
-
break;
|
|
923
|
-
case "selectstart":
|
|
924
|
-
e.preventDefault();
|
|
925
|
-
break;
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
|
-
toArray: function() {
|
|
929
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Q(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Jn(t));
|
|
930
|
-
return e;
|
|
931
|
-
},
|
|
932
|
-
sort: function(e, t) {
|
|
933
|
-
var n = {}, r = this.el;
|
|
934
|
-
this.toArray().forEach(function(e, t) {
|
|
935
|
-
var i = r.children[t];
|
|
936
|
-
Q(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
937
|
-
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
938
|
-
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
939
|
-
}), t && this.animateAll();
|
|
940
|
-
},
|
|
941
|
-
save: function() {
|
|
942
|
-
var e = this.options.store;
|
|
943
|
-
e && e.set && e.set(this);
|
|
944
|
-
},
|
|
945
|
-
closest: function(e, t) {
|
|
946
|
-
return Q(e, t || this.options.draggable, this.el, !1);
|
|
947
|
-
},
|
|
948
|
-
option: function(e, t) {
|
|
949
|
-
var n = this.options;
|
|
950
|
-
if (t === void 0) return n[e];
|
|
951
|
-
var r = Ne.modifyOption(this, e, t);
|
|
952
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" && Jt(n);
|
|
953
|
-
},
|
|
954
|
-
destroy: function() {
|
|
955
|
-
z("destroy", this);
|
|
956
|
-
var e = this.el;
|
|
957
|
-
e[q] = null, E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart), E(e, "pointerdown", this._onTapStart), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
958
|
-
e.removeAttribute("draggable");
|
|
959
|
-
}), this._onDrop(), this._disableDelayedDragEvents(), je.splice(je.indexOf(this.el), 1), this.el = e = null;
|
|
960
|
-
},
|
|
961
|
-
_hideClone: function() {
|
|
962
|
-
if (!ue) {
|
|
963
|
-
if (z("hideClone", this), p.eventCanceled) return;
|
|
964
|
-
h$1(C, "display", "none"), this.options.removeCloneOnHide && C.parentNode && C.parentNode.removeChild(C), ue = !0;
|
|
965
|
-
}
|
|
966
|
-
},
|
|
967
|
-
_showClone: function(e) {
|
|
968
|
-
if (e.lastPutMode !== "clone") {
|
|
969
|
-
this._hideClone();
|
|
970
|
-
return;
|
|
971
|
-
}
|
|
972
|
-
if (ue) {
|
|
973
|
-
if (z("showClone", this), p.eventCanceled) return;
|
|
974
|
-
c.parentNode == T && !this.options.group.revertClone ? T.insertBefore(C, c) : pe ? T.insertBefore(C, pe) : T.appendChild(C), this.options.group.revertClone && this.animate(c, C), h$1(C, "display", ""), ue = !1;
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
|
-
function zn(e) {
|
|
979
|
-
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
980
|
-
}
|
|
981
|
-
function Xe(e, t, n, r, i, a, o, s) {
|
|
982
|
-
var l, u = e[q], d = u.options.onMove, f;
|
|
983
|
-
return window.CustomEvent && !ae && !xe ? l = new CustomEvent("move", {
|
|
984
|
-
bubbles: !0,
|
|
985
|
-
cancelable: !0
|
|
986
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = r, l.related = i || t, l.relatedRect = a || P(t), l.willInsertAfter = s, l.originalEvent = o, e.dispatchEvent(l), d && (f = d.call(u, l, o)), f;
|
|
987
|
-
}
|
|
988
|
-
function nt(e) {
|
|
989
|
-
e.draggable = !1;
|
|
990
|
-
}
|
|
991
|
-
function Un() {
|
|
992
|
-
lt = !1;
|
|
993
|
-
}
|
|
994
|
-
function Vn(e, t, n) {
|
|
995
|
-
var r = P(we(n.el, 0, n.options, !0)), i = $t(n.el, n.options, g), a = 10;
|
|
996
|
-
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
997
|
-
}
|
|
998
|
-
function $n(e, t, n) {
|
|
999
|
-
var r = P(ht(n.el, n.options.draggable)), i = $t(n.el, n.options, g), a = 10;
|
|
1000
|
-
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
1001
|
-
}
|
|
1002
|
-
function qn(e, t, n, r, i, a, o, s) {
|
|
1003
|
-
var l = r ? e.clientY : e.clientX, u = r ? n.height : n.width, d = r ? n.top : n.left, f = r ? n.bottom : n.right, m = !1;
|
|
1004
|
-
if (!o) {
|
|
1005
|
-
if (s && ke < u * i) {
|
|
1006
|
-
if (!Ae && (Ie === 1 ? l > d + u * a / 2 : l < f - u * a / 2) && (Ae = !0), Ae) m = !0;
|
|
1007
|
-
else if (Ie === 1 ? l < d + ke : l > f - ke) return -Ie;
|
|
1008
|
-
} else if (l > d + u * (1 - i) / 2 && l < f - u * (1 - i) / 2) return Kn(t);
|
|
1009
|
-
}
|
|
1010
|
-
return m ||= o, m && (l < d + u * a / 2 || l > f - u * a / 2) ? l > d + u / 2 ? 1 : -1 : 0;
|
|
1011
|
-
}
|
|
1012
|
-
function Kn(e) {
|
|
1013
|
-
return J(c) < J(e) ? 1 : -1;
|
|
1014
|
-
}
|
|
1015
|
-
function Jn(e) {
|
|
1016
|
-
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
1017
|
-
return r.toString(36);
|
|
1018
|
-
}
|
|
1019
|
-
function Zn(e) {
|
|
1020
|
-
ze.length = 0;
|
|
1021
|
-
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
1022
|
-
var r = t[n];
|
|
1023
|
-
r.checked && ze.push(r);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
function He(e) {
|
|
1027
|
-
return setTimeout(e, 0);
|
|
1028
|
-
}
|
|
1029
|
-
function st(e) {
|
|
1030
|
-
return clearTimeout(e);
|
|
1031
|
-
}
|
|
1032
|
-
Ve && S(document, "touchmove", function(e) {
|
|
1033
|
-
(p.active || ve) && e.cancelable && e.preventDefault();
|
|
1034
|
-
}), p.utils = {
|
|
1035
|
-
on: S,
|
|
1036
|
-
off: E,
|
|
1037
|
-
css: h$1,
|
|
1038
|
-
find: jt,
|
|
1039
|
-
is: function(e, t) {
|
|
1040
|
-
return !!Q(e, t, e, !1);
|
|
1041
|
-
},
|
|
1042
|
-
extend: Fn,
|
|
1043
|
-
throttle: zt,
|
|
1044
|
-
closest: Q,
|
|
1045
|
-
toggleClass: V,
|
|
1046
|
-
clone: Vt,
|
|
1047
|
-
index: J,
|
|
1048
|
-
nextTick: He,
|
|
1049
|
-
cancelNextTick: st,
|
|
1050
|
-
detectDirection: Kt,
|
|
1051
|
-
getChild: we
|
|
1052
|
-
}, p.get = function(e) {
|
|
1053
|
-
return e[q];
|
|
1054
|
-
}, p.mount = function() {
|
|
1055
|
-
var e = [...arguments];
|
|
1056
|
-
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
1057
|
-
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
1058
|
-
e.utils && (p.utils = ne(ne({}, p.utils), e.utils)), Ne.mount(e);
|
|
1059
|
-
});
|
|
1060
|
-
}, p.create = function(e, t) {
|
|
1061
|
-
return new p(e, t);
|
|
1062
|
-
}, p.version = Nn;
|
|
1063
|
-
var N = [], De, ut, ct = !1, ot, rt, Ue, _e;
|
|
1064
|
-
function Qn() {
|
|
1065
|
-
function e() {
|
|
1066
|
-
for (var e in this.defaults = {
|
|
1067
|
-
scroll: !0,
|
|
1068
|
-
forceAutoScrollFallback: !1,
|
|
1069
|
-
scrollSensitivity: 30,
|
|
1070
|
-
scrollSpeed: 10,
|
|
1071
|
-
bubbleScroll: !0
|
|
1072
|
-
}, this) e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1073
|
-
}
|
|
1074
|
-
return e.prototype = {
|
|
1075
|
-
dragStarted: function(e) {
|
|
1076
|
-
var t = e.originalEvent;
|
|
1077
|
-
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? S(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? S(document, "touchmove", this._handleFallbackAutoScroll) : S(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1078
|
-
},
|
|
1079
|
-
dragOverCompleted: function(e) {
|
|
1080
|
-
var t = e.originalEvent;
|
|
1081
|
-
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1082
|
-
},
|
|
1083
|
-
drop: function() {
|
|
1084
|
-
this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Rt(), Le(), Rn();
|
|
1085
|
-
},
|
|
1086
|
-
nulling: function() {
|
|
1087
|
-
Ue = ut = De = ct = _e = ot = rt = null, N.length = 0;
|
|
1088
|
-
},
|
|
1089
|
-
_handleFallbackAutoScroll: function(e) {
|
|
1090
|
-
this._handleAutoScroll(e, !0);
|
|
1091
|
-
},
|
|
1092
|
-
_handleAutoScroll: function(e, t) {
|
|
1093
|
-
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1094
|
-
if (Ue = e, t || this.options.forceAutoScrollFallback || xe || ae || Te) {
|
|
1095
|
-
it(e, this.options, a, t);
|
|
1096
|
-
var o = ce(a, !0);
|
|
1097
|
-
ct && (!_e || r !== ot || i !== rt) && (_e && Rt(), _e = setInterval(function() {
|
|
1098
|
-
var a = ce(document.elementFromPoint(r, i), !0);
|
|
1099
|
-
a !== o && (o = a, Le()), it(e, n.options, a, t);
|
|
1100
|
-
}, 10), ot = r, rt = i);
|
|
1101
|
-
} else {
|
|
1102
|
-
if (!this.options.bubbleScroll || ce(a, !0) === te()) {
|
|
1103
|
-
Le();
|
|
1104
|
-
return;
|
|
1105
|
-
}
|
|
1106
|
-
it(e, this.options, ce(a, !1), !1);
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
}, ie(e, {
|
|
1110
|
-
pluginName: "scroll",
|
|
1111
|
-
initializeByDefault: !0
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
function Le() {
|
|
1115
|
-
N.forEach(function(e) {
|
|
1116
|
-
clearInterval(e.pid);
|
|
1117
|
-
}), N = [];
|
|
1118
|
-
}
|
|
1119
|
-
function Rt() {
|
|
1120
|
-
clearInterval(_e);
|
|
1121
|
-
}
|
|
1122
|
-
var it = zt(function(e, t, n, r) {
|
|
1123
|
-
if (t.scroll) {
|
|
1124
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, l = te(), u = !1, d;
|
|
1125
|
-
ut !== n && (ut = n, Le(), De = t.scroll, d = t.scrollFn, De === !0 && (De = ce(n, !0)));
|
|
1126
|
-
var f = 0, m = De;
|
|
1127
|
-
do {
|
|
1128
|
-
var _ = m, v = P(_), y = v.top, b = v.bottom, x = v.left, w = v.right, D = v.width, k = v.height, A = void 0, j = void 0, M = _.scrollWidth, F = _.scrollHeight, I = h$1(_), L = _.scrollLeft, R = _.scrollTop;
|
|
1129
|
-
_ === l ? (A = D < M && (I.overflowX === "auto" || I.overflowX === "scroll" || I.overflowX === "visible"), j = k < F && (I.overflowY === "auto" || I.overflowY === "scroll" || I.overflowY === "visible")) : (A = D < M && (I.overflowX === "auto" || I.overflowX === "scroll"), j = k < F && (I.overflowY === "auto" || I.overflowY === "scroll"));
|
|
1130
|
-
var B = A && (Math.abs(w - i) <= o && L + D < M) - (Math.abs(x - i) <= o && !!L), ed = j && (Math.abs(b - a) <= o && R + k < F) - (Math.abs(y - a) <= o && !!R);
|
|
1131
|
-
if (!N[f]) for (var U = 0; U <= f; U++) N[U] || (N[U] = {});
|
|
1132
|
-
(N[f].vx != B || N[f].vy != ed || N[f].el !== _) && (N[f].el = _, N[f].vx = B, N[f].vy = ed, clearInterval(N[f].pid), (B != 0 || ed != 0) && (u = !0, N[f].pid = setInterval(function() {
|
|
1133
|
-
r && this.layer === 0 && p.active._onTouchMove(Ue);
|
|
1134
|
-
var t = N[this.layer].vy ? N[this.layer].vy * s : 0, n = N[this.layer].vx ? N[this.layer].vx * s : 0;
|
|
1135
|
-
typeof d == "function" && d.call(p.dragged.parentNode[q], n, t, e, Ue, N[this.layer].el) !== "continue" || Ut(N[this.layer].el, n, t);
|
|
1136
|
-
}.bind({ layer: f }), 24))), f++;
|
|
1137
|
-
} while (t.bubbleScroll && m !== l && (m = ce(m, !1)));
|
|
1138
|
-
ct = u;
|
|
1139
|
-
}
|
|
1140
|
-
}, 30), en = function(e) {
|
|
1141
|
-
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1142
|
-
if (t) {
|
|
1143
|
-
var l = n || i;
|
|
1144
|
-
o();
|
|
1145
|
-
var u = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, d = document.elementFromPoint(u.clientX, u.clientY);
|
|
1146
|
-
s(), l && !l.el.contains(d) && (a("spill"), this.onSpill({
|
|
1147
|
-
dragEl: r,
|
|
1148
|
-
putSortable: n
|
|
1149
|
-
}));
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
|
-
function pt() {}
|
|
1153
|
-
pt.prototype = {
|
|
1154
|
-
startIndex: null,
|
|
1155
|
-
dragStart: function(e) {
|
|
1156
|
-
this.startIndex = e.oldDraggableIndex;
|
|
1157
|
-
},
|
|
1158
|
-
onSpill: function(e) {
|
|
1159
|
-
var t = e.dragEl, n = e.putSortable;
|
|
1160
|
-
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1161
|
-
var r = we(this.sortable.el, this.startIndex, this.options);
|
|
1162
|
-
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1163
|
-
},
|
|
1164
|
-
drop: en
|
|
1165
|
-
}, ie(pt, { pluginName: "revertOnSpill" });
|
|
1166
|
-
function gt() {}
|
|
1167
|
-
gt.prototype = {
|
|
1168
|
-
onSpill: function(e) {
|
|
1169
|
-
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
1170
|
-
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
1171
|
-
},
|
|
1172
|
-
drop: en
|
|
1173
|
-
}, ie(gt, { pluginName: "removeOnSpill" }), p.mount(new Qn()), p.mount(gt, pt);
|
|
1174
|
-
function eo(e) {
|
|
1175
|
-
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
1176
|
-
}
|
|
1177
|
-
function to(e) {
|
|
1178
|
-
getCurrentInstance() && onUnmounted(e);
|
|
1179
|
-
}
|
|
1180
|
-
function no(e) {
|
|
1181
|
-
getCurrentInstance() ? onMounted(e) : nextTick(e);
|
|
1182
|
-
}
|
|
1183
|
-
var tn = null, nn = null;
|
|
1184
|
-
function Xt(e = null, t = null) {
|
|
1185
|
-
tn = e, nn = t;
|
|
1186
|
-
}
|
|
1187
|
-
function oo() {
|
|
1188
|
-
return {
|
|
1189
|
-
data: tn,
|
|
1190
|
-
clonedData: nn
|
|
1191
|
-
};
|
|
1192
|
-
}
|
|
1193
|
-
var Yt = Symbol("cloneElement");
|
|
1194
|
-
function on(...e) {
|
|
1195
|
-
let t = getCurrentInstance()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
1196
|
-
Array.isArray(unref(i)) || (a = i, i = null);
|
|
1197
|
-
let o = null, { immediate: s = !0, clone: l = eo, forceFallback: u, fallbackOnBody: d, customUpdate: f } = unref(a) ?? {};
|
|
1198
|
-
function m(e) {
|
|
1199
|
-
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
1200
|
-
n = u && !d ? o.slice(0, -1) : o;
|
|
1201
|
-
let s = unref(unref(i)?.[r]), f = l(s);
|
|
1202
|
-
Xt(s, f), a[Yt] = f;
|
|
1203
|
-
}
|
|
1204
|
-
function v(e) {
|
|
1205
|
-
let t = e.item[Yt];
|
|
1206
|
-
if (!wn(t)) {
|
|
1207
|
-
if (Ke(e.item), isRef(i)) {
|
|
1208
|
-
let n = [...unref(i)];
|
|
1209
|
-
i.value = _t(n, e.newDraggableIndex, t);
|
|
1210
|
-
return;
|
|
1211
|
-
}
|
|
1212
|
-
_t(unref(i), e.newDraggableIndex, t);
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
function y(e) {
|
|
1216
|
-
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
1217
|
-
if (Tt(t, n, r), o === "clone") {
|
|
1218
|
-
Ke(s);
|
|
1219
|
-
return;
|
|
1220
|
-
}
|
|
1221
|
-
if (isRef(i)) {
|
|
1222
|
-
let e = [...unref(i)];
|
|
1223
|
-
i.value = Dt(e, a);
|
|
1224
|
-
return;
|
|
1225
|
-
}
|
|
1226
|
-
Dt(unref(i), a);
|
|
1227
|
-
}
|
|
1228
|
-
function b(e) {
|
|
1229
|
-
if (f) {
|
|
1230
|
-
f(e);
|
|
1231
|
-
return;
|
|
1232
|
-
}
|
|
1233
|
-
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
1234
|
-
if (Ke(n), Tt(t, n, r), isRef(i)) {
|
|
1235
|
-
let e = [...unref(i)];
|
|
1236
|
-
i.value = St(e, a, o);
|
|
1237
|
-
return;
|
|
1238
|
-
}
|
|
1239
|
-
St(unref(i), a, o);
|
|
1240
|
-
}
|
|
1241
|
-
function w(e) {
|
|
1242
|
-
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
1243
|
-
try {
|
|
1244
|
-
if (s) {
|
|
1245
|
-
let e = null;
|
|
1246
|
-
n?.some((t, r) => {
|
|
1247
|
-
if (e && n?.length !== a.childNodes.length) return i.insertBefore(e, t.nextSibling), !0;
|
|
1248
|
-
let o = a.childNodes[r];
|
|
1249
|
-
e = a?.replaceChild(t, o);
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
} catch (e) {
|
|
1253
|
-
o = e;
|
|
1254
|
-
} finally {
|
|
1255
|
-
n = null;
|
|
1256
|
-
}
|
|
1257
|
-
nextTick(() => {
|
|
1258
|
-
if (Xt(), o) throw o;
|
|
1259
|
-
});
|
|
1260
|
-
}
|
|
1261
|
-
let k = {
|
|
1262
|
-
onUpdate: b,
|
|
1263
|
-
onStart: m,
|
|
1264
|
-
onAdd: v,
|
|
1265
|
-
onRemove: y,
|
|
1266
|
-
onEnd: w
|
|
1267
|
-
};
|
|
1268
|
-
function A(e) {
|
|
1269
|
-
let n = unref(r);
|
|
1270
|
-
return e ||= En(n) ? Sn(n, t?.$el) : n, e && !Tn(e) && (e = e.$el), e || vn("Root element not found"), e;
|
|
1271
|
-
}
|
|
1272
|
-
function j() {
|
|
1273
|
-
let e = unref(a) ?? {}, { immediate: t, clone: n } = e, r = $e(e, ["immediate", "clone"]);
|
|
1274
|
-
return Ct(r, (e, t) => {
|
|
1275
|
-
Cn(e) && (r[e] = (e, ...n) => (On(e, oo()), t(e, ...n)));
|
|
1276
|
-
}), _n(i === null ? {} : k, r);
|
|
1277
|
-
}
|
|
1278
|
-
let M = (e) => {
|
|
1279
|
-
e = A(e), o && F.destroy(), o = new p(e, j());
|
|
1280
|
-
};
|
|
1281
|
-
watch(() => a, () => {
|
|
1282
|
-
o && Ct(j(), (e, t) => {
|
|
1283
|
-
o?.option(e, t);
|
|
1284
|
-
});
|
|
1285
|
-
}, { deep: !0 });
|
|
1286
|
-
let F = {
|
|
1287
|
-
option: (e, t) => o?.option(e, t),
|
|
1288
|
-
destroy: () => {
|
|
1289
|
-
o?.destroy(), o = null;
|
|
1290
|
-
},
|
|
1291
|
-
save: () => o?.save(),
|
|
1292
|
-
toArray: () => o?.toArray(),
|
|
1293
|
-
closest: (...e) => o?.closest(...e)
|
|
1294
|
-
};
|
|
1295
|
-
return no(() => {
|
|
1296
|
-
s && M();
|
|
1297
|
-
}), to(F.destroy), fe({
|
|
1298
|
-
start: M,
|
|
1299
|
-
pause: () => F?.option("disabled", !0),
|
|
1300
|
-
resume: () => F?.option("disabled", !1)
|
|
1301
|
-
}, F);
|
|
1302
|
-
}
|
|
1303
|
-
var ft = [
|
|
1304
|
-
"update",
|
|
1305
|
-
"start",
|
|
1306
|
-
"add",
|
|
1307
|
-
"remove",
|
|
1308
|
-
"choose",
|
|
1309
|
-
"unchoose",
|
|
1310
|
-
"end",
|
|
1311
|
-
"sort",
|
|
1312
|
-
"filter",
|
|
1313
|
-
"clone",
|
|
1314
|
-
"move",
|
|
1315
|
-
"change"
|
|
1316
|
-
];
|
|
1317
|
-
defineComponent({
|
|
1318
|
-
name: "VueDraggable",
|
|
1319
|
-
model: {
|
|
1320
|
-
prop: "modelValue",
|
|
1321
|
-
event: "update:modelValue"
|
|
1322
|
-
},
|
|
1323
|
-
props: [
|
|
1324
|
-
"clone",
|
|
1325
|
-
"animation",
|
|
1326
|
-
"ghostClass",
|
|
1327
|
-
"group",
|
|
1328
|
-
"sort",
|
|
1329
|
-
"disabled",
|
|
1330
|
-
"store",
|
|
1331
|
-
"handle",
|
|
1332
|
-
"draggable",
|
|
1333
|
-
"swapThreshold",
|
|
1334
|
-
"invertSwap",
|
|
1335
|
-
"invertedSwapThreshold",
|
|
1336
|
-
"removeCloneOnHide",
|
|
1337
|
-
"direction",
|
|
1338
|
-
"chosenClass",
|
|
1339
|
-
"dragClass",
|
|
1340
|
-
"ignore",
|
|
1341
|
-
"filter",
|
|
1342
|
-
"preventOnFilter",
|
|
1343
|
-
"easing",
|
|
1344
|
-
"setData",
|
|
1345
|
-
"dropBubble",
|
|
1346
|
-
"dragoverBubble",
|
|
1347
|
-
"dataIdAttr",
|
|
1348
|
-
"delay",
|
|
1349
|
-
"delayOnTouchOnly",
|
|
1350
|
-
"touchStartThreshold",
|
|
1351
|
-
"forceFallback",
|
|
1352
|
-
"fallbackClass",
|
|
1353
|
-
"fallbackOnBody",
|
|
1354
|
-
"fallbackTolerance",
|
|
1355
|
-
"fallbackOffset",
|
|
1356
|
-
"supportPointer",
|
|
1357
|
-
"emptyInsertThreshold",
|
|
1358
|
-
"scroll",
|
|
1359
|
-
"forceAutoScrollFallback",
|
|
1360
|
-
"scrollSensitivity",
|
|
1361
|
-
"scrollSpeed",
|
|
1362
|
-
"bubbleScroll",
|
|
1363
|
-
"modelValue",
|
|
1364
|
-
"tag",
|
|
1365
|
-
"target",
|
|
1366
|
-
"customUpdate",
|
|
1367
|
-
...ft.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
1368
|
-
],
|
|
1369
|
-
emits: ["update:modelValue", ...ft],
|
|
1370
|
-
setup(e, { slots: t, emit: n, expose: i, attrs: a }) {
|
|
1371
|
-
let o = ft.reduce((e, t) => {
|
|
1372
|
-
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
1373
|
-
return e[r] = (...e) => n(t, ...e), e;
|
|
1374
|
-
}, {}), s = computed(() => {
|
|
1375
|
-
let t = toRefs(e), { modelValue: n } = t, r = $e(t, ["modelValue"]), i = Object.entries(r).reduce((e, [t, n]) => {
|
|
1376
|
-
let r = unref(n);
|
|
1377
|
-
return r !== void 0 && (e[t] = r), e;
|
|
1378
|
-
}, {});
|
|
1379
|
-
return fe(fe({}, o), yn(fe(fe({}, a), i)));
|
|
1380
|
-
}), l = computed({
|
|
1381
|
-
get: () => e.modelValue,
|
|
1382
|
-
set: (e) => n("update:modelValue", e)
|
|
1383
|
-
}), u = ref(), d = reactive(on(e.target || u, l, s));
|
|
1384
|
-
return i(d), () => h(e.tag || "div", { ref: u }, (t?.default)?.call(t, d));
|
|
1385
|
-
}
|
|
1386
|
-
});
|
|
1387
|
-
var Bt = {
|
|
1388
|
-
mounted: "mounted",
|
|
1389
|
-
unmounted: "unmounted"
|
|
1390
|
-
}, at = /* @__PURE__ */ new WeakMap(), so = {
|
|
1391
|
-
[Bt.mounted](e, t) {
|
|
1392
|
-
let [n, r] = isProxy(t.value) ? [t.value] : t.value, i = on(e, n, r);
|
|
1393
|
-
at.set(e, i.destroy);
|
|
1394
|
-
},
|
|
1395
|
-
[Bt.unmounted](e) {
|
|
1396
|
-
var t;
|
|
1397
|
-
(t = at.get(e)) == null || t(), at.delete(e);
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
const isEmpty = (e) => e == null || e.trim().length === 0, isNotEmpty = (e) => !isEmpty(e), getSuffix = (e) => {
|
|
1401
|
-
let t = e.lastIndexOf(".");
|
|
1402
|
-
return t === -1 ? "" : e.substring(t + 1).toLowerCase();
|
|
1403
|
-
};
|
|
1404
|
-
var FILE_TYPE_MAP = {
|
|
1405
|
-
1: new Set([
|
|
1406
|
-
"bmp",
|
|
1407
|
-
"jpg",
|
|
1408
|
-
"jpeg",
|
|
1409
|
-
"png",
|
|
1410
|
-
"tif",
|
|
1411
|
-
"gif",
|
|
1412
|
-
"pcx",
|
|
1413
|
-
"tga",
|
|
1414
|
-
"exif",
|
|
1415
|
-
"fpx",
|
|
1416
|
-
"svg",
|
|
1417
|
-
"psd",
|
|
1418
|
-
"cdr",
|
|
1419
|
-
"pcd",
|
|
1420
|
-
"dxf",
|
|
1421
|
-
"ufo",
|
|
1422
|
-
"eps",
|
|
1423
|
-
"ai",
|
|
1424
|
-
"raw",
|
|
1425
|
-
"wmf",
|
|
1426
|
-
"webp",
|
|
1427
|
-
"sketch"
|
|
1428
|
-
]),
|
|
1429
|
-
2: new Set([
|
|
1430
|
-
"vob",
|
|
1431
|
-
"mpg",
|
|
1432
|
-
"avi",
|
|
1433
|
-
"mp4",
|
|
1434
|
-
"mkv",
|
|
1435
|
-
"mov"
|
|
1436
|
-
]),
|
|
1437
|
-
3: new Set([
|
|
1438
|
-
"pdf",
|
|
1439
|
-
"doc",
|
|
1440
|
-
"docx"
|
|
1441
|
-
]),
|
|
1442
|
-
4: new Set([
|
|
1443
|
-
"zip",
|
|
1444
|
-
"7z",
|
|
1445
|
-
"rar"
|
|
1446
|
-
])
|
|
1447
|
-
};
|
|
1448
|
-
const getFileType = (e) => {
|
|
1449
|
-
let t = getSuffix(e);
|
|
1450
|
-
for (let [e, n] of Object.entries(FILE_TYPE_MAP)) if (n.has(t)) return Number(e);
|
|
1451
|
-
return 0;
|
|
1452
|
-
};
|
|
1453
|
-
function warn(e, t) {
|
|
1454
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
1455
|
-
}
|
|
1456
|
-
var hasWarned = {};
|
|
1457
|
-
function warnOnce(e) {
|
|
1458
|
-
hasWarned[e] || (hasWarned[e] = !0, warn(e));
|
|
1459
|
-
}
|
|
1460
|
-
var inBrowser = typeof window < "u", mark, measure;
|
|
1461
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1462
|
-
let e = inBrowser && window.performance;
|
|
1463
|
-
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (mark = (t) => {
|
|
1464
|
-
e.mark(t);
|
|
1465
|
-
}, measure = (t, n, r) => {
|
|
1466
|
-
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
var RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
|
|
1470
|
-
function format(e, ...t) {
|
|
1471
|
-
return t.length === 1 && isObject(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(RE_ARGS, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
1472
|
-
}
|
|
1473
|
-
var makeSymbol = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), generateFormatCacheKey = (e, t, n) => friendlyJSONstringify({
|
|
1474
|
-
l: e,
|
|
1475
|
-
k: t,
|
|
1476
|
-
s: n
|
|
1477
|
-
}), friendlyJSONstringify = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), isNumber = (e) => typeof e == "number" && isFinite(e), isDate = (e) => toTypeString(e) === "[object Date]", isRegExp = (e) => toTypeString(e) === "[object RegExp]", isEmptyObject = (e) => isPlainObject(e) && Object.keys(e).length === 0, assign = Object.assign, _create = Object.create, create = (e = null) => _create(e), _globalThis, getGlobalThis = () => _globalThis ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : create();
|
|
1478
|
-
function escapeHtml(e) {
|
|
1479
|
-
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
1480
|
-
}
|
|
1481
|
-
function escapeAttributeValue(e) {
|
|
1482
|
-
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
1483
|
-
}
|
|
1484
|
-
function sanitizeTranslatedHtml(e) {
|
|
1485
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${escapeAttributeValue(n)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${escapeAttributeValue(n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && warn("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach((t) => {
|
|
1486
|
-
e = e.replace(t, "$1javascript:");
|
|
1487
|
-
}), e;
|
|
1488
|
-
}
|
|
1489
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1490
|
-
function hasOwn(e, t) {
|
|
1491
|
-
return hasOwnProperty.call(e, t);
|
|
1492
|
-
}
|
|
1493
|
-
var isArray = Array.isArray, isFunction = (e) => typeof e == "function", isString = (e) => typeof e == "string", isBoolean = (e) => typeof e == "boolean", isObject = (e) => typeof e == "object" && !!e, isPromise = (e) => isObject(e) && isFunction(e.then) && isFunction(e.catch), objectToString = Object.prototype.toString, toTypeString = (e) => objectToString.call(e), isPlainObject = (e) => toTypeString(e) === "[object Object]", toDisplayString$1 = (e) => e == null ? "" : isArray(e) || isPlainObject(e) && e.toString === objectToString ? JSON.stringify(e, null, 2) : String(e);
|
|
1494
|
-
function join(e, t = "") {
|
|
1495
|
-
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
1496
|
-
}
|
|
1497
|
-
var RANGE = 2;
|
|
1498
|
-
function generateCodeFrame(e, t = 0, n = e.length) {
|
|
1499
|
-
let r = e.split(/\r?\n/), i = 0, a = [];
|
|
1500
|
-
for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
|
|
1501
|
-
for (let o = e - RANGE; o <= e + RANGE || n > i; o++) {
|
|
1502
|
-
if (o < 0 || o >= r.length) continue;
|
|
1503
|
-
let s = o + 1;
|
|
1504
|
-
a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
|
|
1505
|
-
let l = r[o].length;
|
|
1506
|
-
if (o === e) {
|
|
1507
|
-
let e = t - (i - l) + 1, r = Math.max(1, n > i ? l - e : n - t);
|
|
1508
|
-
a.push(" | " + " ".repeat(e) + "^".repeat(r));
|
|
1509
|
-
} else if (o > e) {
|
|
1510
|
-
if (n > i) {
|
|
1511
|
-
let e = Math.max(Math.min(n - i, l), 1);
|
|
1512
|
-
a.push(" | " + "^".repeat(e));
|
|
1513
|
-
}
|
|
1514
|
-
i += l + 1;
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
break;
|
|
1518
|
-
}
|
|
1519
|
-
return a.join("\n");
|
|
1520
|
-
}
|
|
1521
|
-
function createEmitter() {
|
|
1522
|
-
let e = /* @__PURE__ */ new Map();
|
|
1523
|
-
return {
|
|
1524
|
-
events: e,
|
|
1525
|
-
on(t, n) {
|
|
1526
|
-
let r = e.get(t);
|
|
1527
|
-
r && r.push(n) || e.set(t, [n]);
|
|
1528
|
-
},
|
|
1529
|
-
off(t, n) {
|
|
1530
|
-
let r = e.get(t);
|
|
1531
|
-
r && r.splice(r.indexOf(n) >>> 0, 1);
|
|
1532
|
-
},
|
|
1533
|
-
emit(t, n) {
|
|
1534
|
-
(e.get(t) || []).slice().map((e) => e(n)), (e.get("*") || []).slice().map((e) => e(t, n));
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
}
|
|
1538
|
-
var isNotObjectOrIsArray = (e) => !isObject(e) || isArray(e);
|
|
1539
|
-
function deepCopy(e, t) {
|
|
1540
|
-
if (isNotObjectOrIsArray(e) || isNotObjectOrIsArray(t)) throw Error("Invalid value");
|
|
1541
|
-
let n = [{
|
|
1542
|
-
src: e,
|
|
1543
|
-
des: t
|
|
1544
|
-
}];
|
|
1545
|
-
for (; n.length;) {
|
|
1546
|
-
let { src: e, des: t } = n.pop();
|
|
1547
|
-
Object.keys(e).forEach((r) => {
|
|
1548
|
-
r !== "__proto__" && (isObject(e[r]) && !isObject(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : create()), isNotObjectOrIsArray(t[r]) || isNotObjectOrIsArray(e[r]) ? t[r] = e[r] : n.push({
|
|
1549
|
-
src: e[r],
|
|
1550
|
-
des: t[r]
|
|
1551
|
-
}));
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
function createPosition(e, t, n) {
|
|
1556
|
-
return {
|
|
1557
|
-
line: e,
|
|
1558
|
-
column: t,
|
|
1559
|
-
offset: n
|
|
1560
|
-
};
|
|
1561
|
-
}
|
|
1562
|
-
function createLocation(e, t, n) {
|
|
1563
|
-
let r = {
|
|
1564
|
-
start: e,
|
|
1565
|
-
end: t
|
|
1566
|
-
};
|
|
1567
|
-
return n != null && (r.source = n), r;
|
|
1568
|
-
}
|
|
1569
|
-
var CompileErrorCodes = {
|
|
1570
|
-
EXPECTED_TOKEN: 1,
|
|
1571
|
-
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
1572
|
-
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
1573
|
-
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
1574
|
-
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
1575
|
-
UNBALANCED_CLOSING_BRACE: 6,
|
|
1576
|
-
UNTERMINATED_CLOSING_BRACE: 7,
|
|
1577
|
-
EMPTY_PLACEHOLDER: 8,
|
|
1578
|
-
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
1579
|
-
INVALID_LINKED_FORMAT: 10,
|
|
1580
|
-
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
1581
|
-
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
1582
|
-
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
1583
|
-
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
1584
|
-
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
1585
|
-
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
1586
|
-
}, errorMessages$2 = {
|
|
1587
|
-
[CompileErrorCodes.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
1588
|
-
[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
1589
|
-
[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
1590
|
-
[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
1591
|
-
[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
1592
|
-
[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
1593
|
-
[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
1594
|
-
[CompileErrorCodes.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
1595
|
-
[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
1596
|
-
[CompileErrorCodes.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
1597
|
-
[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
1598
|
-
[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
1599
|
-
[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
1600
|
-
[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
1601
|
-
[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
1602
|
-
[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
1603
|
-
};
|
|
1604
|
-
function createCompileError(e, t, n = {}) {
|
|
1605
|
-
let { domain: r, messages: i, args: a } = n, o = process.env.NODE_ENV === "production" ? e : format((i || errorMessages$2)[e] || "", ...a || []), s = SyntaxError(String(o));
|
|
1606
|
-
return s.code = e, t && (s.location = t), s.domain = r, s;
|
|
1607
|
-
}
|
|
1608
|
-
function defaultOnError(e) {
|
|
1609
|
-
throw e;
|
|
1610
|
-
}
|
|
1611
|
-
var RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TAG.test(e), CHAR_SP = " ", CHAR_CR = "\r", CHAR_LF = "\n", CHAR_LS = "\u2028", CHAR_PS = "\u2029";
|
|
1612
|
-
function createScanner(e) {
|
|
1613
|
-
let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === CHAR_CR && t[e + 1] === CHAR_LF, s = (e) => t[e] === CHAR_LF, l = (e) => t[e] === CHAR_PS, u = (e) => t[e] === CHAR_LS, d = (e) => o(e) || s(e) || l(e) || u(e), f = () => n, m = () => r, _ = () => i, v = () => a, y = (e) => o(e) || l(e) || u(e) ? CHAR_LF : t[e], b = () => y(n), x = () => y(n + a);
|
|
1614
|
-
function w() {
|
|
1615
|
-
return a = 0, d(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
|
|
1616
|
-
}
|
|
1617
|
-
function D() {
|
|
1618
|
-
return o(n + a) && a++, a++, t[n + a];
|
|
1619
|
-
}
|
|
1620
|
-
function k() {
|
|
1621
|
-
n = 0, r = 1, i = 1, a = 0;
|
|
1622
|
-
}
|
|
1623
|
-
function A(e = 0) {
|
|
1624
|
-
a = e;
|
|
1625
|
-
}
|
|
1626
|
-
function j() {
|
|
1627
|
-
let e = n + a;
|
|
1628
|
-
for (; e !== n;) w();
|
|
1629
|
-
a = 0;
|
|
1630
|
-
}
|
|
1631
|
-
return {
|
|
1632
|
-
index: f,
|
|
1633
|
-
line: m,
|
|
1634
|
-
column: _,
|
|
1635
|
-
peekOffset: v,
|
|
1636
|
-
charAt: y,
|
|
1637
|
-
currentChar: b,
|
|
1638
|
-
currentPeek: x,
|
|
1639
|
-
next: w,
|
|
1640
|
-
peek: D,
|
|
1641
|
-
reset: k,
|
|
1642
|
-
resetPeek: A,
|
|
1643
|
-
skipToPeek: j
|
|
1644
|
-
};
|
|
1645
|
-
}
|
|
1646
|
-
var EOF = void 0, LITERAL_DELIMITER = "'", ERROR_DOMAIN$3 = "tokenizer";
|
|
1647
|
-
function createTokenizer(e, t = {}) {
|
|
1648
|
-
let n = t.location !== !1, r = createScanner(e), i = () => r.index(), a = () => createPosition(r.line(), r.column(), r.index()), o = a(), s = i(), l = {
|
|
1649
|
-
currentType: 13,
|
|
1650
|
-
offset: s,
|
|
1651
|
-
startLoc: o,
|
|
1652
|
-
endLoc: o,
|
|
1653
|
-
lastType: 13,
|
|
1654
|
-
lastOffset: s,
|
|
1655
|
-
lastStartLoc: o,
|
|
1656
|
-
lastEndLoc: o,
|
|
1657
|
-
braceNest: 0,
|
|
1658
|
-
inLinked: !1,
|
|
1659
|
-
text: ""
|
|
1660
|
-
}, u = () => l, { onError: d } = t;
|
|
1661
|
-
function f(e, t, r, ...i) {
|
|
1662
|
-
let a = u();
|
|
1663
|
-
t.column += r, t.offset += r, d && d(createCompileError(e, n ? createLocation(a.startLoc, t) : null, {
|
|
1664
|
-
domain: ERROR_DOMAIN$3,
|
|
1665
|
-
args: i
|
|
1666
|
-
}));
|
|
1667
|
-
}
|
|
1668
|
-
function m(e, t, r) {
|
|
1669
|
-
e.endLoc = a(), e.currentType = t;
|
|
1670
|
-
let i = { type: t };
|
|
1671
|
-
return n && (i.loc = createLocation(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
|
|
1672
|
-
}
|
|
1673
|
-
let _ = (e) => m(e, 13);
|
|
1674
|
-
function v(e, t) {
|
|
1675
|
-
return e.currentChar() === t ? (e.next(), t) : (f(CompileErrorCodes.EXPECTED_TOKEN, a(), 0, t), "");
|
|
1676
|
-
}
|
|
1677
|
-
function y(e) {
|
|
1678
|
-
let t = "";
|
|
1679
|
-
for (; e.currentPeek() === CHAR_SP || e.currentPeek() === CHAR_LF;) t += e.currentPeek(), e.peek();
|
|
1680
|
-
return t;
|
|
1681
|
-
}
|
|
1682
|
-
function b(e) {
|
|
1683
|
-
let t = y(e);
|
|
1684
|
-
return e.skipToPeek(), t;
|
|
1685
|
-
}
|
|
1686
|
-
function x(e) {
|
|
1687
|
-
if (e === EOF) return !1;
|
|
1688
|
-
let t = e.charCodeAt(0);
|
|
1689
|
-
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
|
|
1690
|
-
}
|
|
1691
|
-
function w(e) {
|
|
1692
|
-
if (e === EOF) return !1;
|
|
1693
|
-
let t = e.charCodeAt(0);
|
|
1694
|
-
return t >= 48 && t <= 57;
|
|
1695
|
-
}
|
|
1696
|
-
function D(e, t) {
|
|
1697
|
-
let { currentType: n } = t;
|
|
1698
|
-
if (n !== 2) return !1;
|
|
1699
|
-
y(e);
|
|
1700
|
-
let r = x(e.currentPeek());
|
|
1701
|
-
return e.resetPeek(), r;
|
|
1702
|
-
}
|
|
1703
|
-
function k(e, t) {
|
|
1704
|
-
let { currentType: n } = t;
|
|
1705
|
-
if (n !== 2) return !1;
|
|
1706
|
-
y(e);
|
|
1707
|
-
let r = w(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
|
|
1708
|
-
return e.resetPeek(), r;
|
|
1709
|
-
}
|
|
1710
|
-
function A(e, t) {
|
|
1711
|
-
let { currentType: n } = t;
|
|
1712
|
-
if (n !== 2) return !1;
|
|
1713
|
-
y(e);
|
|
1714
|
-
let r = e.currentPeek() === LITERAL_DELIMITER;
|
|
1715
|
-
return e.resetPeek(), r;
|
|
1716
|
-
}
|
|
1717
|
-
function j(e, t) {
|
|
1718
|
-
let { currentType: n } = t;
|
|
1719
|
-
if (n !== 7) return !1;
|
|
1720
|
-
y(e);
|
|
1721
|
-
let r = e.currentPeek() === ".";
|
|
1722
|
-
return e.resetPeek(), r;
|
|
1723
|
-
}
|
|
1724
|
-
function M(e, t) {
|
|
1725
|
-
let { currentType: n } = t;
|
|
1726
|
-
if (n !== 8) return !1;
|
|
1727
|
-
y(e);
|
|
1728
|
-
let r = x(e.currentPeek());
|
|
1729
|
-
return e.resetPeek(), r;
|
|
1730
|
-
}
|
|
1731
|
-
function F(e, t) {
|
|
1732
|
-
let { currentType: n } = t;
|
|
1733
|
-
if (!(n === 7 || n === 11)) return !1;
|
|
1734
|
-
y(e);
|
|
1735
|
-
let r = e.currentPeek() === ":";
|
|
1736
|
-
return e.resetPeek(), r;
|
|
1737
|
-
}
|
|
1738
|
-
function I(e, t) {
|
|
1739
|
-
let { currentType: n } = t;
|
|
1740
|
-
if (n !== 9) return !1;
|
|
1741
|
-
let r = () => {
|
|
1742
|
-
let t = e.currentPeek();
|
|
1743
|
-
return t === "{" ? x(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === CHAR_SP || !t ? !1 : t === CHAR_LF ? (e.peek(), r()) : R(e, !1);
|
|
1744
|
-
}, i = r();
|
|
1745
|
-
return e.resetPeek(), i;
|
|
1746
|
-
}
|
|
1747
|
-
function L(e) {
|
|
1748
|
-
y(e);
|
|
1749
|
-
let t = e.currentPeek() === "|";
|
|
1750
|
-
return e.resetPeek(), t;
|
|
1751
|
-
}
|
|
1752
|
-
function R(e, t = !0) {
|
|
1753
|
-
let n = (t = !1, r = "") => {
|
|
1754
|
-
let i = e.currentPeek();
|
|
1755
|
-
return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === CHAR_SP || r === CHAR_LF) : i === CHAR_SP ? (e.peek(), n(!0, CHAR_SP)) : i === CHAR_LF ? (e.peek(), n(!0, CHAR_LF)) : !0;
|
|
1756
|
-
}, r = n();
|
|
1757
|
-
return t && e.resetPeek(), r;
|
|
1758
|
-
}
|
|
1759
|
-
function B(e, t) {
|
|
1760
|
-
let n = e.currentChar();
|
|
1761
|
-
return n === EOF ? EOF : t(n) ? (e.next(), n) : null;
|
|
1762
|
-
}
|
|
1763
|
-
function ed(e) {
|
|
1764
|
-
let t = e.charCodeAt(0);
|
|
1765
|
-
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
|
|
1766
|
-
}
|
|
1767
|
-
function U(e) {
|
|
1768
|
-
return B(e, ed);
|
|
1769
|
-
}
|
|
1770
|
-
function G(e) {
|
|
1771
|
-
let t = e.charCodeAt(0);
|
|
1772
|
-
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
|
|
1773
|
-
}
|
|
1774
|
-
function td(e) {
|
|
1775
|
-
return B(e, G);
|
|
1776
|
-
}
|
|
1777
|
-
function nd(e) {
|
|
1778
|
-
let t = e.charCodeAt(0);
|
|
1779
|
-
return t >= 48 && t <= 57;
|
|
1780
|
-
}
|
|
1781
|
-
function rd(e) {
|
|
1782
|
-
return B(e, nd);
|
|
1783
|
-
}
|
|
1784
|
-
function id(e) {
|
|
1785
|
-
let t = e.charCodeAt(0);
|
|
1786
|
-
return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
|
|
1787
|
-
}
|
|
1788
|
-
function ad(e) {
|
|
1789
|
-
return B(e, id);
|
|
1790
|
-
}
|
|
1791
|
-
function od(e) {
|
|
1792
|
-
let t = "", n = "";
|
|
1793
|
-
for (; t = rd(e);) n += t;
|
|
1794
|
-
return n;
|
|
1795
|
-
}
|
|
1796
|
-
function sd(e) {
|
|
1797
|
-
let t = "";
|
|
1798
|
-
for (;;) {
|
|
1799
|
-
let n = e.currentChar();
|
|
1800
|
-
if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
|
|
1801
|
-
if (n === CHAR_SP || n === CHAR_LF) if (R(e)) t += n, e.next();
|
|
1802
|
-
else if (L(e)) break;
|
|
1803
|
-
else t += n, e.next();
|
|
1804
|
-
else t += n, e.next();
|
|
1805
|
-
}
|
|
1806
|
-
return t;
|
|
1807
|
-
}
|
|
1808
|
-
function K(e) {
|
|
1809
|
-
b(e);
|
|
1810
|
-
let t = "", n = "";
|
|
1811
|
-
for (; t = td(e);) n += t;
|
|
1812
|
-
let r = e.currentChar();
|
|
1813
|
-
if (r && r !== "}" && r !== EOF && r !== CHAR_SP && r !== CHAR_LF && r !== " ") {
|
|
1814
|
-
let t = md(e);
|
|
1815
|
-
return f(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
1816
|
-
}
|
|
1817
|
-
return e.currentChar() === EOF && f(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
1818
|
-
}
|
|
1819
|
-
function cd(e) {
|
|
1820
|
-
b(e);
|
|
1821
|
-
let t = "";
|
|
1822
|
-
return e.currentChar() === "-" ? (e.next(), t += `-${od(e)}`) : t += od(e), e.currentChar() === EOF && f(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
|
|
1823
|
-
}
|
|
1824
|
-
function ld(e) {
|
|
1825
|
-
return e !== LITERAL_DELIMITER && e !== CHAR_LF;
|
|
1826
|
-
}
|
|
1827
|
-
function ud(e) {
|
|
1828
|
-
b(e), v(e, "'");
|
|
1829
|
-
let t = "", n = "";
|
|
1830
|
-
for (; t = B(e, ld);) t === "\\" ? n += dd(e) : n += t;
|
|
1831
|
-
let r = e.currentChar();
|
|
1832
|
-
return r === CHAR_LF || r === EOF ? (f(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === CHAR_LF && (e.next(), v(e, "'")), n) : (v(e, "'"), n);
|
|
1833
|
-
}
|
|
1834
|
-
function dd(e) {
|
|
1835
|
-
let t = e.currentChar();
|
|
1836
|
-
switch (t) {
|
|
1837
|
-
case "\\":
|
|
1838
|
-
case "'": return e.next(), `\\${t}`;
|
|
1839
|
-
case "u": return fd(e, t, 4);
|
|
1840
|
-
case "U": return fd(e, t, 6);
|
|
1841
|
-
default: return f(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
function fd(e, t, n) {
|
|
1845
|
-
v(e, t);
|
|
1846
|
-
let r = "";
|
|
1847
|
-
for (let i = 0; i < n; i++) {
|
|
1848
|
-
let n = ad(e);
|
|
1849
|
-
if (!n) {
|
|
1850
|
-
f(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
|
|
1851
|
-
break;
|
|
1852
|
-
}
|
|
1853
|
-
r += n;
|
|
1854
|
-
}
|
|
1855
|
-
return `\\${t}${r}`;
|
|
1856
|
-
}
|
|
1857
|
-
function pd(e) {
|
|
1858
|
-
return e !== "{" && e !== "}" && e !== CHAR_SP && e !== CHAR_LF;
|
|
1859
|
-
}
|
|
1860
|
-
function md(e) {
|
|
1861
|
-
b(e);
|
|
1862
|
-
let t = "", n = "";
|
|
1863
|
-
for (; t = B(e, pd);) n += t;
|
|
1864
|
-
return n;
|
|
1865
|
-
}
|
|
1866
|
-
function hd(e) {
|
|
1867
|
-
let t = "", n = "";
|
|
1868
|
-
for (; t = U(e);) n += t;
|
|
1869
|
-
return n;
|
|
1870
|
-
}
|
|
1871
|
-
function gd(e) {
|
|
1872
|
-
let t = (n) => {
|
|
1873
|
-
let r = e.currentChar();
|
|
1874
|
-
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === CHAR_SP ? n : (n += r, e.next(), t(n));
|
|
1875
|
-
};
|
|
1876
|
-
return t("");
|
|
1877
|
-
}
|
|
1878
|
-
function _d(e) {
|
|
1879
|
-
b(e);
|
|
1880
|
-
let t = v(e, "|");
|
|
1881
|
-
return b(e), t;
|
|
1882
|
-
}
|
|
1883
|
-
function vd(e, t) {
|
|
1884
|
-
let n = null;
|
|
1885
|
-
switch (e.currentChar()) {
|
|
1886
|
-
case "{": return t.braceNest >= 1 && f(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = m(t, 2, "{"), b(e), t.braceNest++, n;
|
|
1887
|
-
case "}": return t.braceNest > 0 && t.currentType === 2 && f(CompileErrorCodes.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = m(t, 3, "}"), t.braceNest--, t.braceNest > 0 && b(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
|
|
1888
|
-
case "@": return t.braceNest > 0 && f(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), n = yd(e, t) || _(t), t.braceNest = 0, n;
|
|
1889
|
-
default: {
|
|
1890
|
-
let r = !0, i = !0, o = !0;
|
|
1891
|
-
if (L(e)) return t.braceNest > 0 && f(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), n = m(t, 1, _d(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
1892
|
-
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return f(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, bd(e, t);
|
|
1893
|
-
if (r = D(e, t)) return n = m(t, 4, K(e)), b(e), n;
|
|
1894
|
-
if (i = k(e, t)) return n = m(t, 5, cd(e)), b(e), n;
|
|
1895
|
-
if (o = A(e, t)) return n = m(t, 6, ud(e)), b(e), n;
|
|
1896
|
-
if (!r && !i && !o) return n = m(t, 12, md(e)), f(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), b(e), n;
|
|
1897
|
-
break;
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
return n;
|
|
1901
|
-
}
|
|
1902
|
-
function yd(e, t) {
|
|
1903
|
-
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
1904
|
-
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === CHAR_LF || i === CHAR_SP) && f(CompileErrorCodes.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
1905
|
-
case "@": return e.next(), r = m(t, 7, "@"), t.inLinked = !0, r;
|
|
1906
|
-
case ".": return b(e), e.next(), m(t, 8, ".");
|
|
1907
|
-
case ":": return b(e), e.next(), m(t, 9, ":");
|
|
1908
|
-
default: return L(e) ? (r = m(t, 1, _d(e)), t.braceNest = 0, t.inLinked = !1, r) : j(e, t) || F(e, t) ? (b(e), yd(e, t)) : M(e, t) ? (b(e), m(t, 11, hd(e))) : I(e, t) ? (b(e), i === "{" ? vd(e, t) || r : m(t, 10, gd(e))) : (n === 7 && f(CompileErrorCodes.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, bd(e, t));
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
function bd(e, t) {
|
|
1912
|
-
let n = { type: 13 };
|
|
1913
|
-
if (t.braceNest > 0) return vd(e, t) || _(t);
|
|
1914
|
-
if (t.inLinked) return yd(e, t) || _(t);
|
|
1915
|
-
switch (e.currentChar()) {
|
|
1916
|
-
case "{": return vd(e, t) || _(t);
|
|
1917
|
-
case "}": return f(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), m(t, 3, "}");
|
|
1918
|
-
case "@": return yd(e, t) || _(t);
|
|
1919
|
-
default:
|
|
1920
|
-
if (L(e)) return n = m(t, 1, _d(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
1921
|
-
if (R(e)) return m(t, 0, sd(e));
|
|
1922
|
-
break;
|
|
1923
|
-
}
|
|
1924
|
-
return n;
|
|
1925
|
-
}
|
|
1926
|
-
function xd() {
|
|
1927
|
-
let { currentType: e, offset: t, startLoc: n, endLoc: o } = l;
|
|
1928
|
-
return l.lastType = e, l.lastOffset = t, l.lastStartLoc = n, l.lastEndLoc = o, l.offset = i(), l.startLoc = a(), r.currentChar() === EOF ? m(l, 13) : bd(r, l);
|
|
1929
|
-
}
|
|
1930
|
-
return {
|
|
1931
|
-
nextToken: xd,
|
|
1932
|
-
currentOffset: i,
|
|
1933
|
-
currentPosition: a,
|
|
1934
|
-
context: u
|
|
1935
|
-
};
|
|
1936
|
-
}
|
|
1937
|
-
var ERROR_DOMAIN$2 = "parser", KNOWN_ESCAPES = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
1938
|
-
function fromEscapeSequence(e, t, n) {
|
|
1939
|
-
switch (e) {
|
|
1940
|
-
case "\\\\": return "\\";
|
|
1941
|
-
case "\\'": return "'";
|
|
1942
|
-
default: {
|
|
1943
|
-
let e = parseInt(t || n, 16);
|
|
1944
|
-
return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
}
|
|
1948
|
-
function createParser(e = {}) {
|
|
1949
|
-
let t = e.location !== !1, { onError: n } = e;
|
|
1950
|
-
function r(e, r, i, a, ...o) {
|
|
1951
|
-
let s = e.currentPosition();
|
|
1952
|
-
s.offset += a, s.column += a, n && n(createCompileError(r, t ? createLocation(i, s) : null, {
|
|
1953
|
-
domain: ERROR_DOMAIN$2,
|
|
1954
|
-
args: o
|
|
1955
|
-
}));
|
|
1956
|
-
}
|
|
1957
|
-
function i(e, n, r) {
|
|
1958
|
-
let i = { type: e };
|
|
1959
|
-
return t && (i.start = n, i.end = n, i.loc = {
|
|
1960
|
-
start: r,
|
|
1961
|
-
end: r
|
|
1962
|
-
}), i;
|
|
1963
|
-
}
|
|
1964
|
-
function a(e, n, r, i) {
|
|
1965
|
-
t && (e.end = n, e.loc && (e.loc.end = r));
|
|
1966
|
-
}
|
|
1967
|
-
function o(e, t) {
|
|
1968
|
-
let n = e.context(), r = i(3, n.offset, n.startLoc);
|
|
1969
|
-
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
1970
|
-
}
|
|
1971
|
-
function s(e, t) {
|
|
1972
|
-
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
|
|
1973
|
-
return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
1974
|
-
}
|
|
1975
|
-
function l(e, t) {
|
|
1976
|
-
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
|
|
1977
|
-
return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
1978
|
-
}
|
|
1979
|
-
function u(e, t) {
|
|
1980
|
-
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
|
|
1981
|
-
return o.value = t.replace(KNOWN_ESCAPES, fromEscapeSequence), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
1982
|
-
}
|
|
1983
|
-
function d(e) {
|
|
1984
|
-
let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, l = i(8, o, s);
|
|
1985
|
-
return t.type === 11 ? (t.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, getTokenCaption(t)), l.value = t.value || "", a(l, e.currentOffset(), e.currentPosition()), { node: l }) : (r(e, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), l.value = "", a(l, o, s), {
|
|
1986
|
-
nextConsumeToken: t,
|
|
1987
|
-
node: l
|
|
1988
|
-
});
|
|
1989
|
-
}
|
|
1990
|
-
function f(e, t) {
|
|
1991
|
-
let n = e.context(), r = i(7, n.offset, n.startLoc);
|
|
1992
|
-
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
1993
|
-
}
|
|
1994
|
-
function m(e) {
|
|
1995
|
-
let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
|
|
1996
|
-
if (o.type === 8) {
|
|
1997
|
-
let t = d(e);
|
|
1998
|
-
n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
|
|
1999
|
-
}
|
|
2000
|
-
switch (o.type !== 9 && r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
|
|
2001
|
-
case 10:
|
|
2002
|
-
o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = f(e, o.value || "");
|
|
2003
|
-
break;
|
|
2004
|
-
case 4:
|
|
2005
|
-
o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = l(e, o.value || "");
|
|
2006
|
-
break;
|
|
2007
|
-
case 5:
|
|
2008
|
-
o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = s(e, o.value || "");
|
|
2009
|
-
break;
|
|
2010
|
-
case 6:
|
|
2011
|
-
o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = u(e, o.value || "");
|
|
2012
|
-
break;
|
|
2013
|
-
default: {
|
|
2014
|
-
r(e, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
|
|
2015
|
-
let s = e.context(), l = i(7, s.offset, s.startLoc);
|
|
2016
|
-
return l.value = "", a(l, s.offset, s.startLoc), n.key = l, a(n, s.offset, s.startLoc), {
|
|
2017
|
-
nextConsumeToken: o,
|
|
2018
|
-
node: n
|
|
2019
|
-
};
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
return a(n, e.currentOffset(), e.currentPosition()), { node: n };
|
|
2023
|
-
}
|
|
2024
|
-
function _(e) {
|
|
2025
|
-
let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
|
|
2026
|
-
n.items = [];
|
|
2027
|
-
let d = null;
|
|
2028
|
-
do {
|
|
2029
|
-
let i = d || e.nextToken();
|
|
2030
|
-
switch (d = null, i.type) {
|
|
2031
|
-
case 0:
|
|
2032
|
-
i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(o(e, i.value || ""));
|
|
2033
|
-
break;
|
|
2034
|
-
case 5:
|
|
2035
|
-
i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(s(e, i.value || ""));
|
|
2036
|
-
break;
|
|
2037
|
-
case 4:
|
|
2038
|
-
i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(l(e, i.value || ""));
|
|
2039
|
-
break;
|
|
2040
|
-
case 6:
|
|
2041
|
-
i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(u(e, i.value || ""));
|
|
2042
|
-
break;
|
|
2043
|
-
case 7: {
|
|
2044
|
-
let t = m(e);
|
|
2045
|
-
n.items.push(t.node), d = t.nextConsumeToken || null;
|
|
2046
|
-
break;
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
} while (t.currentType !== 13 && t.currentType !== 1);
|
|
2050
|
-
return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
|
|
2051
|
-
}
|
|
2052
|
-
function v(e, t, n, o) {
|
|
2053
|
-
let s = e.context(), l = o.items.length === 0, u = i(1, t, n);
|
|
2054
|
-
u.cases = [], u.cases.push(o);
|
|
2055
|
-
do {
|
|
2056
|
-
let t = _(e);
|
|
2057
|
-
l ||= t.items.length === 0, u.cases.push(t);
|
|
2058
|
-
} while (s.currentType !== 13);
|
|
2059
|
-
return l && r(e, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(u, e.currentOffset(), e.currentPosition()), u;
|
|
2060
|
-
}
|
|
2061
|
-
function y(e) {
|
|
2062
|
-
let t = e.context(), { offset: n, startLoc: r } = t, i = _(e);
|
|
2063
|
-
return t.currentType === 13 ? i : v(e, n, r, i);
|
|
2064
|
-
}
|
|
2065
|
-
function b(n) {
|
|
2066
|
-
let o = createTokenizer(n, assign({}, e)), s = o.context(), l = i(0, s.offset, s.startLoc);
|
|
2067
|
-
return t && l.loc && (l.loc.source = n), l.body = y(o), e.onCacheKey && (l.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(l, o.currentOffset(), o.currentPosition()), l;
|
|
2068
|
-
}
|
|
2069
|
-
return { parse: b };
|
|
2070
|
-
}
|
|
2071
|
-
function getTokenCaption(e) {
|
|
2072
|
-
if (e.type === 13) return "EOF";
|
|
2073
|
-
let t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
2074
|
-
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
2075
|
-
}
|
|
2076
|
-
function createTransformer(e, t = {}) {
|
|
2077
|
-
let n = {
|
|
2078
|
-
ast: e,
|
|
2079
|
-
helpers: /* @__PURE__ */ new Set()
|
|
2080
|
-
};
|
|
2081
|
-
return {
|
|
2082
|
-
context: () => n,
|
|
2083
|
-
helper: (e) => (n.helpers.add(e), e)
|
|
2084
|
-
};
|
|
2085
|
-
}
|
|
2086
|
-
function traverseNodes(e, t) {
|
|
2087
|
-
for (let n = 0; n < e.length; n++) traverseNode(e[n], t);
|
|
2088
|
-
}
|
|
2089
|
-
function traverseNode(e, t) {
|
|
2090
|
-
switch (e.type) {
|
|
2091
|
-
case 1:
|
|
2092
|
-
traverseNodes(e.cases, t), t.helper("plural");
|
|
2093
|
-
break;
|
|
2094
|
-
case 2:
|
|
2095
|
-
traverseNodes(e.items, t);
|
|
2096
|
-
break;
|
|
2097
|
-
case 6:
|
|
2098
|
-
traverseNode(e.key, t), t.helper("linked"), t.helper("type");
|
|
2099
|
-
break;
|
|
2100
|
-
case 5:
|
|
2101
|
-
t.helper("interpolate"), t.helper("list");
|
|
2102
|
-
break;
|
|
2103
|
-
case 4:
|
|
2104
|
-
t.helper("interpolate"), t.helper("named");
|
|
2105
|
-
break;
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
function transform(e, t = {}) {
|
|
2109
|
-
let n = createTransformer(e);
|
|
2110
|
-
n.helper("normalize"), e.body && traverseNode(e.body, n);
|
|
2111
|
-
let r = n.context();
|
|
2112
|
-
e.helpers = Array.from(r.helpers);
|
|
2113
|
-
}
|
|
2114
|
-
function optimize(e) {
|
|
2115
|
-
let t = e.body;
|
|
2116
|
-
return t.type === 2 ? optimizeMessageNode(t) : t.cases.forEach((e) => optimizeMessageNode(e)), e;
|
|
2117
|
-
}
|
|
2118
|
-
function optimizeMessageNode(e) {
|
|
2119
|
-
if (e.items.length === 1) {
|
|
2120
|
-
let t = e.items[0];
|
|
2121
|
-
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
2122
|
-
} else {
|
|
2123
|
-
let t = [];
|
|
2124
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
2125
|
-
let r = e.items[n];
|
|
2126
|
-
if (!(r.type === 3 || r.type === 9) || r.value == null) break;
|
|
2127
|
-
t.push(r.value);
|
|
2128
|
-
}
|
|
2129
|
-
if (t.length === e.items.length) {
|
|
2130
|
-
e.static = join(t);
|
|
2131
|
-
for (let t = 0; t < e.items.length; t++) {
|
|
2132
|
-
let n = e.items[t];
|
|
2133
|
-
(n.type === 3 || n.type === 9) && delete n.value;
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
}
|
|
2138
|
-
var ERROR_DOMAIN$1 = "minifier";
|
|
2139
|
-
function minify(e) {
|
|
2140
|
-
switch (e.t = e.type, e.type) {
|
|
2141
|
-
case 0: {
|
|
2142
|
-
let t = e;
|
|
2143
|
-
minify(t.body), t.b = t.body, delete t.body;
|
|
2144
|
-
break;
|
|
2145
|
-
}
|
|
2146
|
-
case 1: {
|
|
2147
|
-
let t = e, n = t.cases;
|
|
2148
|
-
for (let e = 0; e < n.length; e++) minify(n[e]);
|
|
2149
|
-
t.c = n, delete t.cases;
|
|
2150
|
-
break;
|
|
2151
|
-
}
|
|
2152
|
-
case 2: {
|
|
2153
|
-
let t = e, n = t.items;
|
|
2154
|
-
for (let e = 0; e < n.length; e++) minify(n[e]);
|
|
2155
|
-
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
2156
|
-
break;
|
|
2157
|
-
}
|
|
2158
|
-
case 3:
|
|
2159
|
-
case 9:
|
|
2160
|
-
case 8:
|
|
2161
|
-
case 7: {
|
|
2162
|
-
let t = e;
|
|
2163
|
-
t.value && (t.v = t.value, delete t.value);
|
|
2164
|
-
break;
|
|
2165
|
-
}
|
|
2166
|
-
case 6: {
|
|
2167
|
-
let t = e;
|
|
2168
|
-
minify(t.key), t.k = t.key, delete t.key, t.modifier && (minify(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
2169
|
-
break;
|
|
2170
|
-
}
|
|
2171
|
-
case 5: {
|
|
2172
|
-
let t = e;
|
|
2173
|
-
t.i = t.index, delete t.index;
|
|
2174
|
-
break;
|
|
2175
|
-
}
|
|
2176
|
-
case 4: {
|
|
2177
|
-
let t = e;
|
|
2178
|
-
t.k = t.key, delete t.key;
|
|
2179
|
-
break;
|
|
2180
|
-
}
|
|
2181
|
-
default: if (process.env.NODE_ENV !== "production") throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
2182
|
-
domain: ERROR_DOMAIN$1,
|
|
2183
|
-
args: [e.type]
|
|
2184
|
-
});
|
|
2185
|
-
}
|
|
2186
|
-
delete e.type;
|
|
2187
|
-
}
|
|
2188
|
-
var ERROR_DOMAIN = "parser";
|
|
2189
|
-
function createCodeGenerator(e, t) {
|
|
2190
|
-
let { sourceMap: n, filename: r, breakLineCode: i, needIndent: a } = t, o = t.location !== !1, s = {
|
|
2191
|
-
filename: r,
|
|
2192
|
-
code: "",
|
|
2193
|
-
column: 1,
|
|
2194
|
-
line: 1,
|
|
2195
|
-
offset: 0,
|
|
2196
|
-
map: void 0,
|
|
2197
|
-
breakLineCode: i,
|
|
2198
|
-
needIndent: a,
|
|
2199
|
-
indentLevel: 0
|
|
2200
|
-
};
|
|
2201
|
-
o && e.loc && (s.source = e.loc.source);
|
|
2202
|
-
let l = () => s;
|
|
2203
|
-
function u(e, t) {
|
|
2204
|
-
s.code += e;
|
|
2205
|
-
}
|
|
2206
|
-
function d(e, t = !0) {
|
|
2207
|
-
let n = t ? i : "";
|
|
2208
|
-
u(a ? n + " ".repeat(e) : n);
|
|
2209
|
-
}
|
|
2210
|
-
function f(e = !0) {
|
|
2211
|
-
let t = ++s.indentLevel;
|
|
2212
|
-
e && d(t);
|
|
2213
|
-
}
|
|
2214
|
-
function m(e = !0) {
|
|
2215
|
-
let t = --s.indentLevel;
|
|
2216
|
-
e && d(t);
|
|
2217
|
-
}
|
|
2218
|
-
function _() {
|
|
2219
|
-
d(s.indentLevel);
|
|
2220
|
-
}
|
|
2221
|
-
return {
|
|
2222
|
-
context: l,
|
|
2223
|
-
push: u,
|
|
2224
|
-
indent: f,
|
|
2225
|
-
deindent: m,
|
|
2226
|
-
newline: _,
|
|
2227
|
-
helper: (e) => `_${e}`,
|
|
2228
|
-
needIndent: () => s.needIndent
|
|
2229
|
-
};
|
|
2230
|
-
}
|
|
2231
|
-
function generateLinkedNode(e, t) {
|
|
2232
|
-
let { helper: n } = e;
|
|
2233
|
-
e.push(`${n("linked")}(`), generateNode(e, t.key), t.modifier ? (e.push(", "), generateNode(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
2234
|
-
}
|
|
2235
|
-
function generateMessageNode(e, t) {
|
|
2236
|
-
let { helper: n, needIndent: r } = e;
|
|
2237
|
-
e.push(`${n("normalize")}([`), e.indent(r());
|
|
2238
|
-
let i = t.items.length;
|
|
2239
|
-
for (let n = 0; n < i && (generateNode(e, t.items[n]), n !== i - 1); n++) e.push(", ");
|
|
2240
|
-
e.deindent(r()), e.push("])");
|
|
2241
|
-
}
|
|
2242
|
-
function generatePluralNode(e, t) {
|
|
2243
|
-
let { helper: n, needIndent: r } = e;
|
|
2244
|
-
if (t.cases.length > 1) {
|
|
2245
|
-
e.push(`${n("plural")}([`), e.indent(r());
|
|
2246
|
-
let i = t.cases.length;
|
|
2247
|
-
for (let n = 0; n < i && (generateNode(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
|
|
2248
|
-
e.deindent(r()), e.push("])");
|
|
2249
|
-
}
|
|
2250
|
-
}
|
|
2251
|
-
function generateResource(e, t) {
|
|
2252
|
-
t.body ? generateNode(e, t.body) : e.push("null");
|
|
2253
|
-
}
|
|
2254
|
-
function generateNode(e, t) {
|
|
2255
|
-
let { helper: n } = e;
|
|
2256
|
-
switch (t.type) {
|
|
2257
|
-
case 0:
|
|
2258
|
-
generateResource(e, t);
|
|
2259
|
-
break;
|
|
2260
|
-
case 1:
|
|
2261
|
-
generatePluralNode(e, t);
|
|
2262
|
-
break;
|
|
2263
|
-
case 2:
|
|
2264
|
-
generateMessageNode(e, t);
|
|
2265
|
-
break;
|
|
2266
|
-
case 6:
|
|
2267
|
-
generateLinkedNode(e, t);
|
|
2268
|
-
break;
|
|
2269
|
-
case 8:
|
|
2270
|
-
e.push(JSON.stringify(t.value), t);
|
|
2271
|
-
break;
|
|
2272
|
-
case 7:
|
|
2273
|
-
e.push(JSON.stringify(t.value), t);
|
|
2274
|
-
break;
|
|
2275
|
-
case 5:
|
|
2276
|
-
e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t);
|
|
2277
|
-
break;
|
|
2278
|
-
case 4:
|
|
2279
|
-
e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t);
|
|
2280
|
-
break;
|
|
2281
|
-
case 9:
|
|
2282
|
-
e.push(JSON.stringify(t.value), t);
|
|
2283
|
-
break;
|
|
2284
|
-
case 3:
|
|
2285
|
-
e.push(JSON.stringify(t.value), t);
|
|
2286
|
-
break;
|
|
2287
|
-
default: if (process.env.NODE_ENV !== "production") throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
2288
|
-
domain: ERROR_DOMAIN,
|
|
2289
|
-
args: [t.type]
|
|
2290
|
-
});
|
|
2291
|
-
}
|
|
2292
|
-
}
|
|
2293
|
-
var generate = (e, t = {}) => {
|
|
2294
|
-
let n = isString(t.mode) ? t.mode : "normal", r = isString(t.filename) ? t.filename : "message.intl", i = !!t.sourceMap, a = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, o = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], l = createCodeGenerator(e, {
|
|
2295
|
-
mode: n,
|
|
2296
|
-
filename: r,
|
|
2297
|
-
sourceMap: i,
|
|
2298
|
-
breakLineCode: a,
|
|
2299
|
-
needIndent: o
|
|
2300
|
-
});
|
|
2301
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${join(s.map((e) => `${e}: _${e}`), ", ")} } = ctx`), l.newline()), l.push("return "), generateNode(l, e), l.deindent(o), l.push("}"), delete e.helpers;
|
|
2302
|
-
let { code: u, map: d } = l.context();
|
|
2303
|
-
return {
|
|
2304
|
-
ast: e,
|
|
2305
|
-
code: u,
|
|
2306
|
-
map: d ? d.toJSON() : void 0
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
function baseCompile(e, t = {}) {
|
|
2310
|
-
let n = assign({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = createParser(n).parse(e);
|
|
2311
|
-
return r ? (a && optimize(o), i && minify(o), {
|
|
2312
|
-
ast: o,
|
|
2313
|
-
code: ""
|
|
2314
|
-
}) : (transform(o, n), generate(o, n));
|
|
2315
|
-
}
|
|
2316
|
-
function initFeatureFlags$1() {
|
|
2317
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
2318
|
-
}
|
|
2319
|
-
function isMessageAST(e) {
|
|
2320
|
-
return isObject(e) && resolveType(e) === 0 && (hasOwn(e, "b") || hasOwn(e, "body"));
|
|
2321
|
-
}
|
|
2322
|
-
var PROPS_BODY = ["b", "body"];
|
|
2323
|
-
function resolveBody(e) {
|
|
2324
|
-
return resolveProps(e, PROPS_BODY);
|
|
2325
|
-
}
|
|
2326
|
-
var PROPS_CASES = ["c", "cases"];
|
|
2327
|
-
function resolveCases(e) {
|
|
2328
|
-
return resolveProps(e, PROPS_CASES, []);
|
|
2329
|
-
}
|
|
2330
|
-
var PROPS_STATIC = ["s", "static"];
|
|
2331
|
-
function resolveStatic(e) {
|
|
2332
|
-
return resolveProps(e, PROPS_STATIC);
|
|
2333
|
-
}
|
|
2334
|
-
var PROPS_ITEMS = ["i", "items"];
|
|
2335
|
-
function resolveItems(e) {
|
|
2336
|
-
return resolveProps(e, PROPS_ITEMS, []);
|
|
2337
|
-
}
|
|
2338
|
-
var PROPS_TYPE = ["t", "type"];
|
|
2339
|
-
function resolveType(e) {
|
|
2340
|
-
return resolveProps(e, PROPS_TYPE);
|
|
2341
|
-
}
|
|
2342
|
-
var PROPS_VALUE = ["v", "value"];
|
|
2343
|
-
function resolveValue$1(e, t) {
|
|
2344
|
-
let n = resolveProps(e, PROPS_VALUE);
|
|
2345
|
-
if (n != null) return n;
|
|
2346
|
-
throw createUnhandleNodeError(t);
|
|
2347
|
-
}
|
|
2348
|
-
var PROPS_MODIFIER = ["m", "modifier"];
|
|
2349
|
-
function resolveLinkedModifier(e) {
|
|
2350
|
-
return resolveProps(e, PROPS_MODIFIER);
|
|
2351
|
-
}
|
|
2352
|
-
var PROPS_KEY = ["k", "key"];
|
|
2353
|
-
function resolveLinkedKey(e) {
|
|
2354
|
-
let t = resolveProps(e, PROPS_KEY);
|
|
2355
|
-
if (t) return t;
|
|
2356
|
-
throw createUnhandleNodeError(6);
|
|
2357
|
-
}
|
|
2358
|
-
function resolveProps(e, t, n) {
|
|
2359
|
-
for (let n = 0; n < t.length; n++) {
|
|
2360
|
-
let r = t[n];
|
|
2361
|
-
if (hasOwn(e, r) && e[r] != null) return e[r];
|
|
2362
|
-
}
|
|
2363
|
-
return n;
|
|
2364
|
-
}
|
|
2365
|
-
var AST_NODE_PROPS_KEYS = [
|
|
2366
|
-
...PROPS_BODY,
|
|
2367
|
-
...PROPS_CASES,
|
|
2368
|
-
...PROPS_STATIC,
|
|
2369
|
-
...PROPS_ITEMS,
|
|
2370
|
-
...PROPS_KEY,
|
|
2371
|
-
...PROPS_MODIFIER,
|
|
2372
|
-
...PROPS_VALUE,
|
|
2373
|
-
...PROPS_TYPE
|
|
2374
|
-
];
|
|
2375
|
-
function createUnhandleNodeError(e) {
|
|
2376
|
-
return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
|
|
2377
|
-
}
|
|
2378
|
-
function format$1(e) {
|
|
2379
|
-
return (t) => formatParts(t, e);
|
|
2380
|
-
}
|
|
2381
|
-
function formatParts(e, t) {
|
|
2382
|
-
let n = resolveBody(t);
|
|
2383
|
-
if (n == null) throw createUnhandleNodeError(0);
|
|
2384
|
-
if (resolveType(n) === 1) {
|
|
2385
|
-
let t = resolveCases(n);
|
|
2386
|
-
return e.plural(t.reduce((t, n) => [...t, formatMessageParts(e, n)], []));
|
|
2387
|
-
} else return formatMessageParts(e, n);
|
|
2388
|
-
}
|
|
2389
|
-
function formatMessageParts(e, t) {
|
|
2390
|
-
let n = resolveStatic(t);
|
|
2391
|
-
if (n != null) return e.type === "text" ? n : e.normalize([n]);
|
|
2392
|
-
{
|
|
2393
|
-
let n = resolveItems(t).reduce((t, n) => [...t, formatMessagePart(e, n)], []);
|
|
2394
|
-
return e.normalize(n);
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2397
|
-
function formatMessagePart(e, t) {
|
|
2398
|
-
let n = resolveType(t);
|
|
2399
|
-
switch (n) {
|
|
2400
|
-
case 3: return resolveValue$1(t, n);
|
|
2401
|
-
case 9: return resolveValue$1(t, n);
|
|
2402
|
-
case 4: {
|
|
2403
|
-
let r = t;
|
|
2404
|
-
if (hasOwn(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
2405
|
-
if (hasOwn(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
2406
|
-
throw createUnhandleNodeError(n);
|
|
2407
|
-
}
|
|
2408
|
-
case 5: {
|
|
2409
|
-
let r = t;
|
|
2410
|
-
if (hasOwn(r, "i") && isNumber(r.i)) return e.interpolate(e.list(r.i));
|
|
2411
|
-
if (hasOwn(r, "index") && isNumber(r.index)) return e.interpolate(e.list(r.index));
|
|
2412
|
-
throw createUnhandleNodeError(n);
|
|
2413
|
-
}
|
|
2414
|
-
case 6: {
|
|
2415
|
-
let n = t, r = resolveLinkedModifier(n), i = resolveLinkedKey(n);
|
|
2416
|
-
return e.linked(formatMessagePart(e, i), r ? formatMessagePart(e, r) : void 0, e.type);
|
|
2417
|
-
}
|
|
2418
|
-
case 7: return resolveValue$1(t, n);
|
|
2419
|
-
case 8: return resolveValue$1(t, n);
|
|
2420
|
-
default: throw Error(`unhandled node on format message part: ${n}`);
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
var WARN_MESSAGE = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
2424
|
-
function checkHtmlMessage(e, t) {
|
|
2425
|
-
t && detectHtmlTag(e) && warn(format(WARN_MESSAGE, { source: e }));
|
|
2426
|
-
}
|
|
2427
|
-
var defaultOnCacheKey = (e) => e, compileCache = create();
|
|
2428
|
-
function baseCompile$1(e, t = {}) {
|
|
2429
|
-
let n = !1, r = t.onError || defaultOnError;
|
|
2430
|
-
return t.onError = (e) => {
|
|
2431
|
-
n = !0, r(e);
|
|
2432
|
-
}, {
|
|
2433
|
-
...baseCompile(e, t),
|
|
2434
|
-
detectError: n
|
|
2435
|
-
};
|
|
2436
|
-
}
|
|
2437
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
2438
|
-
function compile(e, t) {
|
|
2439
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && isString(e)) {
|
|
2440
|
-
let n = isBoolean(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
2441
|
-
process.env.NODE_ENV !== "production" && checkHtmlMessage(e, n);
|
|
2442
|
-
let r = (t.onCacheKey || defaultOnCacheKey)(e), i = compileCache[r];
|
|
2443
|
-
if (i) return i;
|
|
2444
|
-
let { ast: a, detectError: o } = baseCompile$1(e, {
|
|
2445
|
-
...t,
|
|
2446
|
-
location: process.env.NODE_ENV !== "production",
|
|
2447
|
-
jit: !0
|
|
2448
|
-
}), s = format$1(a);
|
|
2449
|
-
return o ? s : compileCache[r] = s;
|
|
2450
|
-
} else {
|
|
2451
|
-
if (process.env.NODE_ENV !== "production" && !isMessageAST(e)) return warn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
2452
|
-
let n = e.cacheKey;
|
|
2453
|
-
return n ? compileCache[n] || (compileCache[n] = format$1(e)) : format$1(e);
|
|
2454
|
-
}
|
|
2455
|
-
}
|
|
2456
|
-
var devtools = null;
|
|
2457
|
-
function setDevToolsHook(e) {
|
|
2458
|
-
devtools = e;
|
|
2459
|
-
}
|
|
2460
|
-
function initI18nDevTools(e, t, n) {
|
|
2461
|
-
devtools && devtools.emit("i18n:init", {
|
|
2462
|
-
timestamp: Date.now(),
|
|
2463
|
-
i18n: e,
|
|
2464
|
-
version: t,
|
|
2465
|
-
meta: n
|
|
2466
|
-
});
|
|
2467
|
-
}
|
|
2468
|
-
var translateDevTools = /* @__PURE__ */ createDevToolsHook("function:translate");
|
|
2469
|
-
function createDevToolsHook(e) {
|
|
2470
|
-
return (t) => devtools && devtools.emit(e, t);
|
|
2471
|
-
}
|
|
2472
|
-
var CoreErrorCodes = {
|
|
2473
|
-
INVALID_ARGUMENT: 17,
|
|
2474
|
-
INVALID_DATE_ARGUMENT: 18,
|
|
2475
|
-
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
2476
|
-
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
2477
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
2478
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
2479
|
-
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
2480
|
-
};
|
|
2481
|
-
function createCoreError(e) {
|
|
2482
|
-
return createCompileError(e, null, process.env.NODE_ENV === "production" ? void 0 : { messages: errorMessages$1 });
|
|
2483
|
-
}
|
|
2484
|
-
var errorMessages$1 = {
|
|
2485
|
-
[CoreErrorCodes.INVALID_ARGUMENT]: "Invalid arguments",
|
|
2486
|
-
[CoreErrorCodes.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
2487
|
-
[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
2488
|
-
[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
2489
|
-
[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
2490
|
-
[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
2491
|
-
[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
2492
|
-
};
|
|
2493
|
-
function getLocale(e, t) {
|
|
2494
|
-
return t.locale == null ? resolveLocale(e.locale) : resolveLocale(t.locale);
|
|
2495
|
-
}
|
|
2496
|
-
var _resolveLocale;
|
|
2497
|
-
function resolveLocale(e) {
|
|
2498
|
-
if (isString(e)) return e;
|
|
2499
|
-
if (isFunction(e)) {
|
|
2500
|
-
if (e.resolvedOnce && _resolveLocale != null) return _resolveLocale;
|
|
2501
|
-
if (e.constructor.name === "Function") {
|
|
2502
|
-
let t = e();
|
|
2503
|
-
if (isPromise(t)) throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
2504
|
-
return _resolveLocale = t;
|
|
2505
|
-
} else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
2506
|
-
} else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
|
|
2507
|
-
}
|
|
2508
|
-
function fallbackWithSimple(e, t, n) {
|
|
2509
|
-
return [...new Set([n, ...isArray(t) ? t : isObject(t) ? Object.keys(t) : isString(t) ? [t] : [n]])];
|
|
2510
|
-
}
|
|
2511
|
-
function fallbackWithLocaleChain(e, t, n) {
|
|
2512
|
-
let r = isString(n) ? n : DEFAULT_LOCALE, i = e;
|
|
2513
|
-
i.__localeChainCache ||= /* @__PURE__ */ new Map();
|
|
2514
|
-
let a = i.__localeChainCache.get(r);
|
|
2515
|
-
if (!a) {
|
|
2516
|
-
a = [];
|
|
2517
|
-
let e = [n];
|
|
2518
|
-
for (; isArray(e);) e = appendBlockToChain(a, e, t);
|
|
2519
|
-
let o = isArray(t) || !isPlainObject(t) ? t : t.default ? t.default : null;
|
|
2520
|
-
e = isString(o) ? [o] : o, isArray(e) && appendBlockToChain(a, e, !1), i.__localeChainCache.set(r, a);
|
|
2521
|
-
}
|
|
2522
|
-
return a;
|
|
2523
|
-
}
|
|
2524
|
-
function appendBlockToChain(e, t, n) {
|
|
2525
|
-
let r = !0;
|
|
2526
|
-
for (let i = 0; i < t.length && isBoolean(r); i++) {
|
|
2527
|
-
let a = t[i];
|
|
2528
|
-
isString(a) && (r = appendLocaleToChain(e, t[i], n));
|
|
2529
|
-
}
|
|
2530
|
-
return r;
|
|
2531
|
-
}
|
|
2532
|
-
function appendLocaleToChain(e, t, n) {
|
|
2533
|
-
let r, i = t.split("-");
|
|
2534
|
-
do
|
|
2535
|
-
r = appendItemToChain(e, i.join("-"), n), i.splice(-1, 1);
|
|
2536
|
-
while (i.length && r === !0);
|
|
2537
|
-
return r;
|
|
2538
|
-
}
|
|
2539
|
-
function appendItemToChain(e, t, n) {
|
|
2540
|
-
let r = !1;
|
|
2541
|
-
if (!e.includes(t) && (r = !0, t)) {
|
|
2542
|
-
r = t[t.length - 1] !== "!";
|
|
2543
|
-
let i = t.replace(/!/g, "");
|
|
2544
|
-
e.push(i), (isArray(n) || isPlainObject(n)) && n[i] && (r = n[i]);
|
|
2545
|
-
}
|
|
2546
|
-
return r;
|
|
2547
|
-
}
|
|
2548
|
-
var pathStateMachine = [];
|
|
2549
|
-
pathStateMachine[0] = {
|
|
2550
|
-
w: [0],
|
|
2551
|
-
i: [3, 0],
|
|
2552
|
-
"[": [4],
|
|
2553
|
-
o: [7]
|
|
2554
|
-
}, pathStateMachine[1] = {
|
|
2555
|
-
w: [1],
|
|
2556
|
-
".": [2],
|
|
2557
|
-
"[": [4],
|
|
2558
|
-
o: [7]
|
|
2559
|
-
}, pathStateMachine[2] = {
|
|
2560
|
-
w: [2],
|
|
2561
|
-
i: [3, 0],
|
|
2562
|
-
0: [3, 0]
|
|
2563
|
-
}, pathStateMachine[3] = {
|
|
2564
|
-
i: [3, 0],
|
|
2565
|
-
0: [3, 0],
|
|
2566
|
-
w: [1, 1],
|
|
2567
|
-
".": [2, 1],
|
|
2568
|
-
"[": [4, 1],
|
|
2569
|
-
o: [7, 1]
|
|
2570
|
-
}, pathStateMachine[4] = {
|
|
2571
|
-
"'": [5, 0],
|
|
2572
|
-
"\"": [6, 0],
|
|
2573
|
-
"[": [4, 2],
|
|
2574
|
-
"]": [1, 3],
|
|
2575
|
-
o: 8,
|
|
2576
|
-
l: [4, 0]
|
|
2577
|
-
}, pathStateMachine[5] = {
|
|
2578
|
-
"'": [4, 0],
|
|
2579
|
-
o: 8,
|
|
2580
|
-
l: [5, 0]
|
|
2581
|
-
}, pathStateMachine[6] = {
|
|
2582
|
-
"\"": [4, 0],
|
|
2583
|
-
o: 8,
|
|
2584
|
-
l: [6, 0]
|
|
2585
|
-
};
|
|
2586
|
-
var literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
2587
|
-
function isLiteral(e) {
|
|
2588
|
-
return literalValueRE.test(e);
|
|
2589
|
-
}
|
|
2590
|
-
function stripQuotes(e) {
|
|
2591
|
-
let t = e.charCodeAt(0);
|
|
2592
|
-
return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
2593
|
-
}
|
|
2594
|
-
function getPathCharType(e) {
|
|
2595
|
-
if (e == null) return "o";
|
|
2596
|
-
switch (e.charCodeAt(0)) {
|
|
2597
|
-
case 91:
|
|
2598
|
-
case 93:
|
|
2599
|
-
case 46:
|
|
2600
|
-
case 34:
|
|
2601
|
-
case 39: return e;
|
|
2602
|
-
case 95:
|
|
2603
|
-
case 36:
|
|
2604
|
-
case 45: return "i";
|
|
2605
|
-
case 9:
|
|
2606
|
-
case 10:
|
|
2607
|
-
case 13:
|
|
2608
|
-
case 160:
|
|
2609
|
-
case 65279:
|
|
2610
|
-
case 8232:
|
|
2611
|
-
case 8233: return "w";
|
|
2612
|
-
}
|
|
2613
|
-
return "i";
|
|
2614
|
-
}
|
|
2615
|
-
function formatSubPath(e) {
|
|
2616
|
-
let t = e.trim();
|
|
2617
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : isLiteral(t) ? stripQuotes(t) : "*" + t;
|
|
2618
|
-
}
|
|
2619
|
-
function parse(e) {
|
|
2620
|
-
let t = [], n = -1, r = 0, i = 0, a, o, s, l, u, d, f, m = [];
|
|
2621
|
-
m[0] = () => {
|
|
2622
|
-
o === void 0 ? o = s : o += s;
|
|
2623
|
-
}, m[1] = () => {
|
|
2624
|
-
o !== void 0 && (t.push(o), o = void 0);
|
|
2625
|
-
}, m[2] = () => {
|
|
2626
|
-
m[0](), i++;
|
|
2627
|
-
}, m[3] = () => {
|
|
2628
|
-
if (i > 0) i--, r = 4, m[0]();
|
|
2629
|
-
else {
|
|
2630
|
-
if (i = 0, o === void 0 || (o = formatSubPath(o), o === !1)) return !1;
|
|
2631
|
-
m[1]();
|
|
2632
|
-
}
|
|
2633
|
-
};
|
|
2634
|
-
function _() {
|
|
2635
|
-
let t = e[n + 1];
|
|
2636
|
-
if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, m[0](), !0;
|
|
2637
|
-
}
|
|
2638
|
-
for (; r !== null;) if (n++, a = e[n], !(a === "\\" && _())) {
|
|
2639
|
-
if (l = getPathCharType(a), f = pathStateMachine[r], u = f[l] || f.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (d = m[u[1]], d && (s = a, d() === !1)))) return;
|
|
2640
|
-
if (r === 7) return t;
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
var cache = /* @__PURE__ */ new Map();
|
|
2644
|
-
function resolveWithKeyValue(e, t) {
|
|
2645
|
-
return isObject(e) ? e[t] : null;
|
|
2646
|
-
}
|
|
2647
|
-
function resolveValue(e, t) {
|
|
2648
|
-
if (!isObject(e)) return null;
|
|
2649
|
-
let n = cache.get(t);
|
|
2650
|
-
if (n || (n = parse(t), n && cache.set(t, n)), !n) return null;
|
|
2651
|
-
let r = n.length, i = e, a = 0;
|
|
2652
|
-
for (; a < r;) {
|
|
2653
|
-
let e = n[a];
|
|
2654
|
-
if (AST_NODE_PROPS_KEYS.includes(e) && isMessageAST(i)) return null;
|
|
2655
|
-
let t = i[e];
|
|
2656
|
-
if (t === void 0 || isFunction(i)) return null;
|
|
2657
|
-
i = t, a++;
|
|
2658
|
-
}
|
|
2659
|
-
return i;
|
|
2660
|
-
}
|
|
2661
|
-
var CoreWarnCodes = {
|
|
2662
|
-
NOT_FOUND_KEY: 1,
|
|
2663
|
-
FALLBACK_TO_TRANSLATE: 2,
|
|
2664
|
-
CANNOT_FORMAT_NUMBER: 3,
|
|
2665
|
-
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
2666
|
-
CANNOT_FORMAT_DATE: 5,
|
|
2667
|
-
FALLBACK_TO_DATE_FORMAT: 6,
|
|
2668
|
-
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
2669
|
-
}, warnMessages$1 = {
|
|
2670
|
-
[CoreWarnCodes.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
2671
|
-
[CoreWarnCodes.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
2672
|
-
[CoreWarnCodes.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
2673
|
-
[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
2674
|
-
[CoreWarnCodes.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
2675
|
-
[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
2676
|
-
[CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
2677
|
-
};
|
|
2678
|
-
function getWarnMessage$1(e, ...t) {
|
|
2679
|
-
return format(warnMessages$1[e], ...t);
|
|
2680
|
-
}
|
|
2681
|
-
var VERSION$1 = "11.2.8", DEFAULT_LOCALE = "en-US", capitalize = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
2682
|
-
function getDefaultLinkedModifiers() {
|
|
2683
|
-
return {
|
|
2684
|
-
upper: (e, t) => t === "text" && isString(e) ? e.toUpperCase() : t === "vnode" && isObject(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2685
|
-
lower: (e, t) => t === "text" && isString(e) ? e.toLowerCase() : t === "vnode" && isObject(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
2686
|
-
capitalize: (e, t) => t === "text" && isString(e) ? capitalize(e) : t === "vnode" && isObject(e) && "__v_isVNode" in e ? capitalize(e.children) : e
|
|
2687
|
-
};
|
|
2688
|
-
}
|
|
2689
|
-
var _compiler;
|
|
2690
|
-
function registerMessageCompiler(e) {
|
|
2691
|
-
_compiler = e;
|
|
2692
|
-
}
|
|
2693
|
-
var _resolver;
|
|
2694
|
-
function registerMessageResolver(e) {
|
|
2695
|
-
_resolver = e;
|
|
2696
|
-
}
|
|
2697
|
-
var _fallbacker;
|
|
2698
|
-
function registerLocaleFallbacker(e) {
|
|
2699
|
-
_fallbacker = e;
|
|
2700
|
-
}
|
|
2701
|
-
var _additionalMeta = null, getAdditionalMeta = /* @__NO_SIDE_EFFECTS__ */ () => _additionalMeta, _fallbackContext = null, setFallbackContext = (e) => {
|
|
2702
|
-
_fallbackContext = e;
|
|
2703
|
-
}, getFallbackContext = () => _fallbackContext, _cid = 0;
|
|
2704
|
-
function createCoreContext(e = {}) {
|
|
2705
|
-
let t = isFunction(e.onWarn) ? e.onWarn : warn, n = isString(e.version) ? e.version : VERSION$1, r = isString(e.locale) || isFunction(e.locale) ? e.locale : DEFAULT_LOCALE, i = isFunction(r) ? DEFAULT_LOCALE : r, a = isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || isString(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = isPlainObject(e.messages) ? e.messages : createResources(i), s = isPlainObject(e.datetimeFormats) ? e.datetimeFormats : createResources(i), l = isPlainObject(e.numberFormats) ? e.numberFormats : createResources(i), u = assign(create(), e.modifiers, getDefaultLinkedModifiers()), d = e.pluralRules || create(), f = isFunction(e.missing) ? e.missing : null, m = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, _ = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, v = !!e.fallbackFormat, y = !!e.unresolving, b = isFunction(e.postTranslation) ? e.postTranslation : null, x = isPlainObject(e.processor) ? e.processor : null, w = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, D = !!e.escapeParameter, k = isFunction(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2706
|
-
process.env.NODE_ENV !== "production" && isFunction(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2707
|
-
let A = isFunction(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, j = isFunction(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, M = isObject(e.fallbackContext) ? e.fallbackContext : void 0, F = e, I = isObject(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), L = isObject(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), R = isObject(F.__meta) ? F.__meta : {};
|
|
2708
|
-
_cid++;
|
|
2709
|
-
let B = {
|
|
2710
|
-
version: n,
|
|
2711
|
-
cid: _cid,
|
|
2712
|
-
locale: r,
|
|
2713
|
-
fallbackLocale: a,
|
|
2714
|
-
messages: o,
|
|
2715
|
-
modifiers: u,
|
|
2716
|
-
pluralRules: d,
|
|
2717
|
-
missing: f,
|
|
2718
|
-
missingWarn: m,
|
|
2719
|
-
fallbackWarn: _,
|
|
2720
|
-
fallbackFormat: v,
|
|
2721
|
-
unresolving: y,
|
|
2722
|
-
postTranslation: b,
|
|
2723
|
-
processor: x,
|
|
2724
|
-
warnHtmlMessage: w,
|
|
2725
|
-
escapeParameter: D,
|
|
2726
|
-
messageCompiler: k,
|
|
2727
|
-
messageResolver: A,
|
|
2728
|
-
localeFallbacker: j,
|
|
2729
|
-
fallbackContext: M,
|
|
2730
|
-
onWarn: t,
|
|
2731
|
-
__meta: R
|
|
2732
|
-
};
|
|
2733
|
-
return B.datetimeFormats = s, B.numberFormats = l, B.__datetimeFormatters = I, B.__numberFormatters = L, process.env.NODE_ENV !== "production" && (B.__v_emitter = F.__v_emitter == null ? void 0 : F.__v_emitter), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(B, n, R), B;
|
|
2734
|
-
}
|
|
2735
|
-
var createResources = (e) => ({ [e]: create() });
|
|
2736
|
-
function isTranslateFallbackWarn(e, t) {
|
|
2737
|
-
return e instanceof RegExp ? e.test(t) : e;
|
|
2738
|
-
}
|
|
2739
|
-
function isTranslateMissingWarn(e, t) {
|
|
2740
|
-
return e instanceof RegExp ? e.test(t) : e;
|
|
2741
|
-
}
|
|
2742
|
-
function handleMissing(e, t, n, r, i) {
|
|
2743
|
-
let { missing: a, onWarn: o } = e;
|
|
2744
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2745
|
-
let r = e.__v_emitter;
|
|
2746
|
-
r && r.emit("missing", {
|
|
2747
|
-
locale: n,
|
|
2748
|
-
key: t,
|
|
2749
|
-
type: i,
|
|
2750
|
-
groupId: `${i}:${t}`
|
|
2751
|
-
});
|
|
2752
|
-
}
|
|
2753
|
-
if (a !== null) {
|
|
2754
|
-
let r = a(e, n, t, i);
|
|
2755
|
-
return isString(r) ? r : t;
|
|
2756
|
-
} else return process.env.NODE_ENV !== "production" && isTranslateMissingWarn(r, t) && o(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY, {
|
|
2757
|
-
key: t,
|
|
2758
|
-
locale: n
|
|
2759
|
-
})), t;
|
|
2760
|
-
}
|
|
2761
|
-
function updateFallbackLocale(e, t, n) {
|
|
2762
|
-
let r = e;
|
|
2763
|
-
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
2764
|
-
}
|
|
2765
|
-
function isAlmostSameLocale(e, t) {
|
|
2766
|
-
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2767
|
-
}
|
|
2768
|
-
function isImplicitFallback(e, t) {
|
|
2769
|
-
let n = t.indexOf(e);
|
|
2770
|
-
if (n === -1) return !1;
|
|
2771
|
-
for (let r = n + 1; r < t.length; r++) if (isAlmostSameLocale(e, t[r])) return !0;
|
|
2772
|
-
return !1;
|
|
2773
|
-
}
|
|
2774
|
-
var intlDefined = typeof Intl < "u", Availabilities = {
|
|
2775
|
-
dateTimeFormat: intlDefined && Intl.DateTimeFormat !== void 0,
|
|
2776
|
-
numberFormat: intlDefined && Intl.NumberFormat !== void 0
|
|
2777
|
-
};
|
|
2778
|
-
function datetime(e, ...t) {
|
|
2779
|
-
let { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: s } = e;
|
|
2780
|
-
if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat) return a(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), "";
|
|
2781
|
-
let [l, u, d, f] = parseDateTimeArgs(...t), m = isBoolean(d.missingWarn) ? d.missingWarn : e.missingWarn, _ = isBoolean(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part, y = getLocale(e, d), b = o(e, i, y);
|
|
2782
|
-
if (!isString(l) || l === "") return new Intl.DateTimeFormat(y, f).format(u);
|
|
2783
|
-
let x = {}, w, D = null, k = y, A = null, j = "datetime format";
|
|
2784
|
-
for (let t = 0; t < b.length; t++) {
|
|
2785
|
-
if (w = A = b[t], process.env.NODE_ENV !== "production" && y !== w && isTranslateFallbackWarn(_, l) && a(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
2786
|
-
key: l,
|
|
2787
|
-
target: w
|
|
2788
|
-
})), process.env.NODE_ENV !== "production" && y !== w) {
|
|
2789
|
-
let t = e.__v_emitter;
|
|
2790
|
-
t && t.emit("fallback", {
|
|
2791
|
-
type: j,
|
|
2792
|
-
key: l,
|
|
2793
|
-
from: k,
|
|
2794
|
-
to: A,
|
|
2795
|
-
groupId: `${j}:${l}`
|
|
2796
|
-
});
|
|
2797
|
-
}
|
|
2798
|
-
if (x = n[w] || {}, D = x[l], isPlainObject(D)) break;
|
|
2799
|
-
handleMissing(e, l, w, m, j), k = A;
|
|
2800
|
-
}
|
|
2801
|
-
if (!isPlainObject(D) || !isString(w)) return r ? -1 : l;
|
|
2802
|
-
let M = `${w}__${l}`;
|
|
2803
|
-
isEmptyObject(f) || (M = `${M}__${JSON.stringify(f)}`);
|
|
2804
|
-
let F = s.get(M);
|
|
2805
|
-
return F || (F = new Intl.DateTimeFormat(w, assign({}, D, f)), s.set(M, F)), v ? F.formatToParts(u) : F.format(u);
|
|
2806
|
-
}
|
|
2807
|
-
var DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2808
|
-
"localeMatcher",
|
|
2809
|
-
"weekday",
|
|
2810
|
-
"era",
|
|
2811
|
-
"year",
|
|
2812
|
-
"month",
|
|
2813
|
-
"day",
|
|
2814
|
-
"hour",
|
|
2815
|
-
"minute",
|
|
2816
|
-
"second",
|
|
2817
|
-
"timeZoneName",
|
|
2818
|
-
"formatMatcher",
|
|
2819
|
-
"hour12",
|
|
2820
|
-
"timeZone",
|
|
2821
|
-
"dateStyle",
|
|
2822
|
-
"timeStyle",
|
|
2823
|
-
"calendar",
|
|
2824
|
-
"dayPeriod",
|
|
2825
|
-
"numberingSystem",
|
|
2826
|
-
"hourCycle",
|
|
2827
|
-
"fractionalSecondDigits"
|
|
2828
|
-
];
|
|
2829
|
-
function parseDateTimeArgs(...e) {
|
|
2830
|
-
let [t, n, r, i] = e, a = create(), o = create(), s;
|
|
2831
|
-
if (isString(t)) {
|
|
2832
|
-
let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2833
|
-
if (!e) throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
2834
|
-
let n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
|
|
2835
|
-
s = new Date(n);
|
|
2836
|
-
try {
|
|
2837
|
-
s.toISOString();
|
|
2838
|
-
} catch {
|
|
2839
|
-
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
2840
|
-
}
|
|
2841
|
-
} else if (isDate(t)) {
|
|
2842
|
-
if (isNaN(t.getTime())) throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);
|
|
2843
|
-
s = t;
|
|
2844
|
-
} else if (isNumber(t)) s = t;
|
|
2845
|
-
else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
2846
|
-
return isString(n) ? a.key = n : isPlainObject(n) && Object.keys(n).forEach((e) => {
|
|
2847
|
-
DATETIME_FORMAT_OPTIONS_KEYS.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
2848
|
-
}), isString(r) ? a.locale = r : isPlainObject(r) && (o = r), isPlainObject(i) && (o = i), [
|
|
2849
|
-
a.key || "",
|
|
2850
|
-
s,
|
|
2851
|
-
a,
|
|
2852
|
-
o
|
|
2853
|
-
];
|
|
2854
|
-
}
|
|
2855
|
-
function clearDateTimeFormat(e, t, n) {
|
|
2856
|
-
let r = e;
|
|
2857
|
-
for (let e in n) {
|
|
2858
|
-
let n = `${t}__${e}`;
|
|
2859
|
-
r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
|
|
2860
|
-
}
|
|
2861
|
-
}
|
|
2862
|
-
function number(e, ...t) {
|
|
2863
|
-
let { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: s } = e;
|
|
2864
|
-
if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat) return a(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), "";
|
|
2865
|
-
let [l, u, d, f] = parseNumberArgs(...t), m = isBoolean(d.missingWarn) ? d.missingWarn : e.missingWarn, _ = isBoolean(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part, y = getLocale(e, d), b = o(e, i, y);
|
|
2866
|
-
if (!isString(l) || l === "") return new Intl.NumberFormat(y, f).format(u);
|
|
2867
|
-
let x = {}, w, D = null, k = y, A = null, j = "number format";
|
|
2868
|
-
for (let t = 0; t < b.length; t++) {
|
|
2869
|
-
if (w = A = b[t], process.env.NODE_ENV !== "production" && y !== w && isTranslateFallbackWarn(_, l) && a(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2870
|
-
key: l,
|
|
2871
|
-
target: w
|
|
2872
|
-
})), process.env.NODE_ENV !== "production" && y !== w) {
|
|
2873
|
-
let t = e.__v_emitter;
|
|
2874
|
-
t && t.emit("fallback", {
|
|
2875
|
-
type: j,
|
|
2876
|
-
key: l,
|
|
2877
|
-
from: k,
|
|
2878
|
-
to: A,
|
|
2879
|
-
groupId: `${j}:${l}`
|
|
2880
|
-
});
|
|
2881
|
-
}
|
|
2882
|
-
if (x = n[w] || {}, D = x[l], isPlainObject(D)) break;
|
|
2883
|
-
handleMissing(e, l, w, m, j), k = A;
|
|
2884
|
-
}
|
|
2885
|
-
if (!isPlainObject(D) || !isString(w)) return r ? -1 : l;
|
|
2886
|
-
let M = `${w}__${l}`;
|
|
2887
|
-
isEmptyObject(f) || (M = `${M}__${JSON.stringify(f)}`);
|
|
2888
|
-
let F = s.get(M);
|
|
2889
|
-
return F || (F = new Intl.NumberFormat(w, assign({}, D, f)), s.set(M, F)), v ? F.formatToParts(u) : F.format(u);
|
|
2890
|
-
}
|
|
2891
|
-
var NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2892
|
-
"localeMatcher",
|
|
2893
|
-
"style",
|
|
2894
|
-
"currency",
|
|
2895
|
-
"currencyDisplay",
|
|
2896
|
-
"currencySign",
|
|
2897
|
-
"useGrouping",
|
|
2898
|
-
"minimumIntegerDigits",
|
|
2899
|
-
"minimumFractionDigits",
|
|
2900
|
-
"maximumFractionDigits",
|
|
2901
|
-
"minimumSignificantDigits",
|
|
2902
|
-
"maximumSignificantDigits",
|
|
2903
|
-
"compactDisplay",
|
|
2904
|
-
"notation",
|
|
2905
|
-
"signDisplay",
|
|
2906
|
-
"unit",
|
|
2907
|
-
"unitDisplay",
|
|
2908
|
-
"roundingMode",
|
|
2909
|
-
"roundingPriority",
|
|
2910
|
-
"roundingIncrement",
|
|
2911
|
-
"trailingZeroDisplay"
|
|
2912
|
-
];
|
|
2913
|
-
function parseNumberArgs(...e) {
|
|
2914
|
-
let [t, n, r, i] = e, a = create(), o = create();
|
|
2915
|
-
if (!isNumber(t)) throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
2916
|
-
let s = t;
|
|
2917
|
-
return isString(n) ? a.key = n : isPlainObject(n) && Object.keys(n).forEach((e) => {
|
|
2918
|
-
NUMBER_FORMAT_OPTIONS_KEYS.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
2919
|
-
}), isString(r) ? a.locale = r : isPlainObject(r) && (o = r), isPlainObject(i) && (o = i), [
|
|
2920
|
-
a.key || "",
|
|
2921
|
-
s,
|
|
2922
|
-
a,
|
|
2923
|
-
o
|
|
2924
|
-
];
|
|
2925
|
-
}
|
|
2926
|
-
function clearNumberFormat(e, t, n) {
|
|
2927
|
-
let r = e;
|
|
2928
|
-
for (let e in n) {
|
|
2929
|
-
let n = `${t}__${e}`;
|
|
2930
|
-
r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
var DEFAULT_MODIFIER = (e) => e, DEFAULT_MESSAGE = (e) => "", DEFAULT_MESSAGE_DATA_TYPE = "text", DEFAULT_NORMALIZE = (e) => e.length === 0 ? "" : join(e), DEFAULT_INTERPOLATE = toDisplayString$1;
|
|
2934
|
-
function pluralDefault(e, t) {
|
|
2935
|
-
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2936
|
-
}
|
|
2937
|
-
function getPluralIndex(e) {
|
|
2938
|
-
let t = isNumber(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2939
|
-
return e.named && (isNumber(e.named.count) || isNumber(e.named.n)) ? isNumber(e.named.count) ? e.named.count : isNumber(e.named.n) ? e.named.n : t : t;
|
|
2940
|
-
}
|
|
2941
|
-
function normalizeNamed(e, t) {
|
|
2942
|
-
t.count ||= e, t.n ||= e;
|
|
2943
|
-
}
|
|
2944
|
-
function createMessageContext(e = {}) {
|
|
2945
|
-
let t = e.locale, n = getPluralIndex(e), r = isObject(e.pluralRules) && isString(t) && isFunction(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, i = isObject(e.pluralRules) && isString(t) && isFunction(e.pluralRules[t]) ? pluralDefault : void 0, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], l = e.named || create();
|
|
2946
|
-
isNumber(e.pluralIndex) && normalizeNamed(n, l);
|
|
2947
|
-
let u = (e) => l[e];
|
|
2948
|
-
function d(t, n) {
|
|
2949
|
-
return (isFunction(e.messages) ? e.messages(t, !!n) : isObject(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : DEFAULT_MESSAGE);
|
|
2950
|
-
}
|
|
2951
|
-
let f = (t) => e.modifiers ? e.modifiers[t] : DEFAULT_MODIFIER, m = isPlainObject(e.processor) && isFunction(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, _ = isPlainObject(e.processor) && isFunction(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, v = {
|
|
2952
|
-
list: s,
|
|
2953
|
-
named: u,
|
|
2954
|
-
plural: a,
|
|
2955
|
-
linked: (e, ...t) => {
|
|
2956
|
-
let [n, r] = t, i = "text", a = "";
|
|
2957
|
-
t.length === 1 ? isObject(n) ? (a = n.modifier || a, i = n.type || i) : isString(n) && (a = n || a) : t.length === 2 && (isString(n) && (a = n || a), isString(r) && (i = r || i));
|
|
2958
|
-
let o = d(e, !0)(v), s = i === "vnode" && isArray(o) && a ? o[0] : o;
|
|
2959
|
-
return a ? f(a)(s, i) : s;
|
|
2960
|
-
},
|
|
2961
|
-
message: d,
|
|
2962
|
-
type: isPlainObject(e.processor) && isString(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE,
|
|
2963
|
-
interpolate: _,
|
|
2964
|
-
normalize: m,
|
|
2965
|
-
values: assign(create(), o, l)
|
|
2966
|
-
};
|
|
2967
|
-
return v;
|
|
2968
|
-
}
|
|
2969
|
-
var NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction(e);
|
|
2970
|
-
function translate(e, ...t) {
|
|
2971
|
-
let { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: a, fallbackLocale: o, messages: s } = e, [l, u] = parseTranslateArgs(...t), d = isBoolean(u.missingWarn) ? u.missingWarn : e.missingWarn, f = isBoolean(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = isBoolean(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, _ = !!u.resolvedMessage, v = isString(u.default) || isBoolean(u.default) ? isBoolean(u.default) ? a ? l : () => l : u.default : n ? a ? l : () => l : null, y = n || v != null && (isString(v) || isFunction(v)), b = getLocale(e, u);
|
|
2972
|
-
m && escapeParams(u);
|
|
2973
|
-
let [x, w, D] = _ ? [
|
|
2974
|
-
l,
|
|
2975
|
-
b,
|
|
2976
|
-
s[b] || create()
|
|
2977
|
-
] : resolveMessageFormat(e, l, b, o, f, d), k = x, A = l;
|
|
2978
|
-
if (!_ && !(isString(k) || isMessageAST(k) || isMessageFunction(k)) && y && (k = v, A = k), !_ && (!(isString(k) || isMessageAST(k) || isMessageFunction(k)) || !isString(w))) return i ? -1 : l;
|
|
2979
|
-
if (process.env.NODE_ENV !== "production" && isString(k) && e.messageCompiler == null) return warn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
|
2980
|
-
let j = !1, M = isMessageFunction(k) ? k : compileMessageFormat(e, l, w, k, A, () => {
|
|
2981
|
-
j = !0;
|
|
2982
|
-
});
|
|
2983
|
-
if (j) return k;
|
|
2984
|
-
let F = evaluateMessage(e, M, createMessageContext(getMessageContextOptions(e, w, D, u))), I = r ? r(F, l) : F;
|
|
2985
|
-
if (m && isString(I) && (I = sanitizeTranslatedHtml(I)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2986
|
-
let t = {
|
|
2987
|
-
timestamp: Date.now(),
|
|
2988
|
-
key: isString(l) ? l : isMessageFunction(k) ? k.key : "",
|
|
2989
|
-
locale: w || (isMessageFunction(k) ? k.locale : ""),
|
|
2990
|
-
format: isString(k) ? k : isMessageFunction(k) ? k.source : "",
|
|
2991
|
-
message: I
|
|
2992
|
-
};
|
|
2993
|
-
t.meta = assign({}, e.__meta, /* @__PURE__ */ getAdditionalMeta() || {}), translateDevTools(t);
|
|
2994
|
-
}
|
|
2995
|
-
return I;
|
|
2996
|
-
}
|
|
2997
|
-
function escapeParams(e) {
|
|
2998
|
-
isArray(e.list) ? e.list = e.list.map((e) => isString(e) ? escapeHtml(e) : e) : isObject(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2999
|
-
isString(e.named[t]) && (e.named[t] = escapeHtml(e.named[t]));
|
|
3000
|
-
});
|
|
3001
|
-
}
|
|
3002
|
-
function resolveMessageFormat(e, t, n, r, i, a) {
|
|
3003
|
-
let { messages: o, onWarn: s, messageResolver: l, localeFallbacker: u } = e, d = u(e, r, n), f = create(), m, _ = null, v = n, y = null, b = "translate";
|
|
3004
|
-
for (let r = 0; r < d.length; r++) {
|
|
3005
|
-
if (m = y = d[r], process.env.NODE_ENV !== "production" && n !== m && !isAlmostSameLocale(n, m) && isTranslateFallbackWarn(i, t) && s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
3006
|
-
key: t,
|
|
3007
|
-
target: m
|
|
3008
|
-
})), process.env.NODE_ENV !== "production" && n !== m) {
|
|
3009
|
-
let n = e.__v_emitter;
|
|
3010
|
-
n && n.emit("fallback", {
|
|
3011
|
-
type: b,
|
|
3012
|
-
key: t,
|
|
3013
|
-
from: v,
|
|
3014
|
-
to: y,
|
|
3015
|
-
groupId: `${b}:${t}`
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
f = o[m] || create();
|
|
3019
|
-
let u = null, x, w;
|
|
3020
|
-
if (process.env.NODE_ENV !== "production" && inBrowser && (u = window.performance.now(), x = "intlify-message-resolve-start", w = "intlify-message-resolve-end", mark && mark(x)), (_ = l(f, t)) === null && (_ = f[t]), process.env.NODE_ENV !== "production" && inBrowser) {
|
|
3021
|
-
let n = window.performance.now(), r = e.__v_emitter;
|
|
3022
|
-
r && u && _ && r.emit("message-resolve", {
|
|
3023
|
-
type: "message-resolve",
|
|
3024
|
-
key: t,
|
|
3025
|
-
message: _,
|
|
3026
|
-
time: n - u,
|
|
3027
|
-
groupId: `${b}:${t}`
|
|
3028
|
-
}), x && w && mark && measure && (mark(w), measure("intlify message resolve", x, w));
|
|
3029
|
-
}
|
|
3030
|
-
if (isString(_) || isMessageAST(_) || isMessageFunction(_)) break;
|
|
3031
|
-
if (!isImplicitFallback(m, d)) {
|
|
3032
|
-
let n = handleMissing(e, t, m, a, b);
|
|
3033
|
-
n !== t && (_ = n);
|
|
3034
|
-
}
|
|
3035
|
-
v = y;
|
|
3036
|
-
}
|
|
3037
|
-
return [
|
|
3038
|
-
_,
|
|
3039
|
-
m,
|
|
3040
|
-
f
|
|
3041
|
-
];
|
|
3042
|
-
}
|
|
3043
|
-
function compileMessageFormat(e, t, n, r, i, a) {
|
|
3044
|
-
let { messageCompiler: o, warnHtmlMessage: s } = e;
|
|
3045
|
-
if (isMessageFunction(r)) {
|
|
3046
|
-
let e = r;
|
|
3047
|
-
return e.locale = e.locale || n, e.key = e.key || t, e;
|
|
3048
|
-
}
|
|
3049
|
-
if (o == null) {
|
|
3050
|
-
let e = (() => r);
|
|
3051
|
-
return e.locale = n, e.key = t, e;
|
|
3052
|
-
}
|
|
3053
|
-
let l = null, u, d;
|
|
3054
|
-
process.env.NODE_ENV !== "production" && inBrowser && (l = window.performance.now(), u = "intlify-message-compilation-start", d = "intlify-message-compilation-end", mark && mark(u));
|
|
3055
|
-
let f = o(r, getCompileContext(e, n, i, r, s, a));
|
|
3056
|
-
if (process.env.NODE_ENV !== "production" && inBrowser) {
|
|
3057
|
-
let n = window.performance.now(), i = e.__v_emitter;
|
|
3058
|
-
i && l && i.emit("message-compilation", {
|
|
3059
|
-
type: "message-compilation",
|
|
3060
|
-
message: r,
|
|
3061
|
-
time: n - l,
|
|
3062
|
-
groupId: `translate:${t}`
|
|
3063
|
-
}), u && d && mark && measure && (mark(d), measure("intlify message compilation", u, d));
|
|
3064
|
-
}
|
|
3065
|
-
return f.locale = n, f.key = t, f.source = r, f;
|
|
3066
|
-
}
|
|
3067
|
-
function evaluateMessage(e, t, n) {
|
|
3068
|
-
let r = null, i, a;
|
|
3069
|
-
process.env.NODE_ENV !== "production" && inBrowser && (r = window.performance.now(), i = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", mark && mark(i));
|
|
3070
|
-
let o = t(n);
|
|
3071
|
-
if (process.env.NODE_ENV !== "production" && inBrowser) {
|
|
3072
|
-
let n = window.performance.now(), s = e.__v_emitter;
|
|
3073
|
-
s && r && s.emit("message-evaluation", {
|
|
3074
|
-
type: "message-evaluation",
|
|
3075
|
-
value: o,
|
|
3076
|
-
time: n - r,
|
|
3077
|
-
groupId: `translate:${t.key}`
|
|
3078
|
-
}), i && a && mark && measure && (mark(a), measure("intlify message evaluation", i, a));
|
|
3079
|
-
}
|
|
3080
|
-
return o;
|
|
3081
|
-
}
|
|
3082
|
-
function parseTranslateArgs(...e) {
|
|
3083
|
-
let [t, n, r] = e, i = create();
|
|
3084
|
-
if (!isString(t) && !isNumber(t) && !isMessageFunction(t) && !isMessageAST(t)) throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
3085
|
-
let a = isNumber(t) ? String(t) : (isMessageFunction(t), t);
|
|
3086
|
-
return isNumber(n) ? i.plural = n : isString(n) ? i.default = n : isPlainObject(n) && !isEmptyObject(n) ? i.named = n : isArray(n) && (i.list = n), isNumber(r) ? i.plural = r : isString(r) ? i.default = r : isPlainObject(r) && assign(i, r), [a, i];
|
|
3087
|
-
}
|
|
3088
|
-
function getCompileContext(e, t, n, r, i, a) {
|
|
3089
|
-
return {
|
|
3090
|
-
locale: t,
|
|
3091
|
-
key: n,
|
|
3092
|
-
warnHtmlMessage: i,
|
|
3093
|
-
onError: (t) => {
|
|
3094
|
-
if (a && a(t), process.env.NODE_ENV !== "production") {
|
|
3095
|
-
let i = getSourceForCodeFrame(r), a = `Message compilation error: ${t.message}`, o = t.location && i && generateCodeFrame(i, t.location.start.offset, t.location.end.offset), s = e.__v_emitter;
|
|
3096
|
-
s && i && s.emit("compile-error", {
|
|
3097
|
-
message: i,
|
|
3098
|
-
error: t.message,
|
|
3099
|
-
start: t.location && t.location.start.offset,
|
|
3100
|
-
end: t.location && t.location.end.offset,
|
|
3101
|
-
groupId: `translate:${n}`
|
|
3102
|
-
}), console.error(o ? `${a}\n${o}` : a);
|
|
3103
|
-
} else throw t;
|
|
3104
|
-
},
|
|
3105
|
-
onCacheKey: (e) => generateFormatCacheKey(t, n, e)
|
|
3106
|
-
};
|
|
3107
|
-
}
|
|
3108
|
-
function getSourceForCodeFrame(e) {
|
|
3109
|
-
if (isString(e)) return e;
|
|
3110
|
-
if (e.loc && e.loc.source) return e.loc.source;
|
|
3111
|
-
}
|
|
3112
|
-
function getMessageContextOptions(e, t, n, r) {
|
|
3113
|
-
let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: l, missingWarn: u, fallbackContext: d } = e, f = {
|
|
3114
|
-
locale: t,
|
|
3115
|
-
modifiers: i,
|
|
3116
|
-
pluralRules: a,
|
|
3117
|
-
messages: (r, i) => {
|
|
3118
|
-
let a = o(n, r);
|
|
3119
|
-
if (a == null && (d || i)) {
|
|
3120
|
-
let [, , n] = resolveMessageFormat(d || e, r, t, s, l, u);
|
|
3121
|
-
a = o(n, r);
|
|
3122
|
-
}
|
|
3123
|
-
if (isString(a) || isMessageAST(a)) {
|
|
3124
|
-
let n = !1, i = compileMessageFormat(e, r, t, a, r, () => {
|
|
3125
|
-
n = !0;
|
|
3126
|
-
});
|
|
3127
|
-
return n ? NOOP_MESSAGE_FUNCTION : i;
|
|
3128
|
-
} else if (isMessageFunction(a)) return a;
|
|
3129
|
-
else return NOOP_MESSAGE_FUNCTION;
|
|
3130
|
-
}
|
|
3131
|
-
};
|
|
3132
|
-
return e.processor && (f.processor = e.processor), r.list && (f.list = r.list), r.named && (f.named = r.named), isNumber(r.plural) && (f.pluralIndex = r.plural), f;
|
|
3133
|
-
}
|
|
3134
|
-
initFeatureFlags$1();
|
|
3135
|
-
function getDevtoolsGlobalHook() {
|
|
3136
|
-
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
3137
|
-
}
|
|
3138
|
-
function getTarget() {
|
|
3139
|
-
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
3140
|
-
}
|
|
3141
|
-
const isProxyAvailable = typeof Proxy == "function";
|
|
3142
|
-
var supported, perf;
|
|
3143
|
-
function isPerformanceSupported() {
|
|
3144
|
-
return supported === void 0 && (typeof window < "u" && window.performance ? (supported = !0, perf = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (supported = !0, perf = globalThis.perf_hooks.performance) : supported = !1), supported;
|
|
3145
|
-
}
|
|
3146
|
-
function now() {
|
|
3147
|
-
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
3148
|
-
}
|
|
3149
|
-
var ApiProxy = class {
|
|
3150
|
-
constructor(e, t) {
|
|
3151
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
3152
|
-
let n = {};
|
|
3153
|
-
if (e.settings) for (let t in e.settings) n[t] = e.settings[t].defaultValue;
|
|
3154
|
-
let r = `__vue-devtools-plugin-settings__${e.id}`, i = Object.assign({}, n);
|
|
3155
|
-
try {
|
|
3156
|
-
let e = localStorage.getItem(r), t = JSON.parse(e);
|
|
3157
|
-
Object.assign(i, t);
|
|
3158
|
-
} catch {}
|
|
3159
|
-
this.fallbacks = {
|
|
3160
|
-
getSettings() {
|
|
3161
|
-
return i;
|
|
3162
|
-
},
|
|
3163
|
-
setSettings(e) {
|
|
3164
|
-
try {
|
|
3165
|
-
localStorage.setItem(r, JSON.stringify(e));
|
|
3166
|
-
} catch {}
|
|
3167
|
-
i = e;
|
|
3168
|
-
},
|
|
3169
|
-
now() {
|
|
3170
|
-
return now();
|
|
3171
|
-
}
|
|
3172
|
-
}, t && t.on("plugin:settings:set", (e, t) => {
|
|
3173
|
-
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
3174
|
-
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
3175
|
-
this.onQueue.push({
|
|
3176
|
-
method: t,
|
|
3177
|
-
args: e
|
|
3178
|
-
});
|
|
3179
|
-
} }), this.proxiedTarget = new Proxy({}, { get: (e, t) => this.target ? this.target[t] : t === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(t) ? (...e) => (this.targetQueue.push({
|
|
3180
|
-
method: t,
|
|
3181
|
-
args: e,
|
|
3182
|
-
resolve: () => {}
|
|
3183
|
-
}), this.fallbacks[t](...e)) : (...e) => new Promise((n) => {
|
|
3184
|
-
this.targetQueue.push({
|
|
3185
|
-
method: t,
|
|
3186
|
-
args: e,
|
|
3187
|
-
resolve: n
|
|
3188
|
-
});
|
|
3189
|
-
}) });
|
|
3190
|
-
}
|
|
3191
|
-
async setRealTarget(e) {
|
|
3192
|
-
this.target = e;
|
|
3193
|
-
for (let e of this.onQueue) this.target.on[e.method](...e.args);
|
|
3194
|
-
for (let e of this.targetQueue) e.resolve(await this.target[e.method](...e.args));
|
|
3195
|
-
}
|
|
3196
|
-
};
|
|
3197
|
-
function setupDevtoolsPlugin(e, t) {
|
|
3198
|
-
let n = e, r = getTarget(), i = getDevtoolsGlobalHook(), a = isProxyAvailable && n.enableEarlyProxy;
|
|
3199
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit("devtools-plugin:setup", e, t);
|
|
3200
|
-
else {
|
|
3201
|
-
let e = a ? new ApiProxy(n, i) : null;
|
|
3202
|
-
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
3203
|
-
pluginDescriptor: n,
|
|
3204
|
-
setupFn: t,
|
|
3205
|
-
proxy: e
|
|
3206
|
-
}), e && t(e.proxiedTarget);
|
|
3207
|
-
}
|
|
3208
|
-
}
|
|
3209
|
-
var VERSION = "11.2.8";
|
|
3210
|
-
function initFeatureFlags() {
|
|
3211
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (getGlobalThis().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (getGlobalThis().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
3212
|
-
}
|
|
3213
|
-
var I18nErrorCodes = {
|
|
3214
|
-
UNEXPECTED_RETURN_TYPE: 24,
|
|
3215
|
-
INVALID_ARGUMENT: 25,
|
|
3216
|
-
MUST_BE_CALL_SETUP_TOP: 26,
|
|
3217
|
-
NOT_INSTALLED: 27,
|
|
3218
|
-
REQUIRED_VALUE: 28,
|
|
3219
|
-
INVALID_VALUE: 29,
|
|
3220
|
-
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
|
|
3221
|
-
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
3222
|
-
UNEXPECTED_ERROR: 32,
|
|
3223
|
-
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
3224
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
3225
|
-
};
|
|
3226
|
-
function createI18nError(e, ...t) {
|
|
3227
|
-
return createCompileError(e, null, process.env.NODE_ENV === "production" ? void 0 : {
|
|
3228
|
-
messages: errorMessages,
|
|
3229
|
-
args: t
|
|
3230
|
-
});
|
|
3231
|
-
}
|
|
3232
|
-
var errorMessages = {
|
|
3233
|
-
[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
3234
|
-
[I18nErrorCodes.INVALID_ARGUMENT]: "Invalid argument",
|
|
3235
|
-
[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
3236
|
-
[I18nErrorCodes.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
3237
|
-
[I18nErrorCodes.UNEXPECTED_ERROR]: "Unexpected error",
|
|
3238
|
-
[I18nErrorCodes.REQUIRED_VALUE]: "Required in value: {0}",
|
|
3239
|
-
[I18nErrorCodes.INVALID_VALUE]: "Invalid value",
|
|
3240
|
-
[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
3241
|
-
[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
3242
|
-
[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
3243
|
-
[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
3244
|
-
}, TranslateVNodeSymbol = /* @__PURE__ */ makeSymbol("__translateVNode"), DatetimePartsSymbol = /* @__PURE__ */ makeSymbol("__datetimeParts"), NumberPartsSymbol = /* @__PURE__ */ makeSymbol("__numberParts"), EnableEmitter = /* @__PURE__ */ makeSymbol("__enableEmitter"), DisableEmitter = /* @__PURE__ */ makeSymbol("__disableEmitter"), SetPluralRulesSymbol = makeSymbol("__setPluralRules");
|
|
3245
|
-
makeSymbol("__intlifyMeta");
|
|
3246
|
-
var InejctWithOptionSymbol = /* @__PURE__ */ makeSymbol("__injectWithOption"), DisposeSymbol = /* @__PURE__ */ makeSymbol("__dispose"), I18nWarnCodes = {
|
|
3247
|
-
FALLBACK_TO_ROOT: 8,
|
|
3248
|
-
NOT_FOUND_PARENT_SCOPE: 9,
|
|
3249
|
-
IGNORE_OBJ_FLATTEN: 10,
|
|
3250
|
-
DEPRECATE_LEGACY_MODE: 11,
|
|
3251
|
-
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
3252
|
-
DUPLICATE_USE_I18N_CALLING: 13
|
|
3253
|
-
}, warnMessages = {
|
|
3254
|
-
[I18nWarnCodes.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
3255
|
-
[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
3256
|
-
[I18nWarnCodes.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
3257
|
-
[I18nWarnCodes.DEPRECATE_LEGACY_MODE]: "Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",
|
|
3258
|
-
[I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
3259
|
-
[I18nWarnCodes.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
3260
|
-
};
|
|
3261
|
-
function getWarnMessage(e, ...t) {
|
|
3262
|
-
return format(warnMessages[e], ...t);
|
|
3263
|
-
}
|
|
3264
|
-
function handleFlatJson(e) {
|
|
3265
|
-
if (!isObject(e) || isMessageAST(e)) return e;
|
|
3266
|
-
for (let t in e) if (hasOwn(e, t)) if (!t.includes(".")) isObject(e[t]) && handleFlatJson(e[t]);
|
|
3267
|
-
else {
|
|
3268
|
-
let n = t.split("."), r = n.length - 1, i = e, a = !1;
|
|
3269
|
-
for (let e = 0; e < r; e++) {
|
|
3270
|
-
if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
|
|
3271
|
-
if (n[e] in i || (i[n[e]] = create()), !isObject(i[n[e]])) {
|
|
3272
|
-
process.env.NODE_ENV !== "production" && warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN, { key: n[e] })), a = !0;
|
|
3273
|
-
break;
|
|
3274
|
-
}
|
|
3275
|
-
i = i[n[e]];
|
|
3276
|
-
}
|
|
3277
|
-
if (a || (isMessageAST(i) ? AST_NODE_PROPS_KEYS.includes(n[r]) || delete e[t] : (i[n[r]] = e[t], delete e[t])), !isMessageAST(i)) {
|
|
3278
|
-
let e = i[n[r]];
|
|
3279
|
-
isObject(e) && handleFlatJson(e);
|
|
3280
|
-
}
|
|
3281
|
-
}
|
|
3282
|
-
return e;
|
|
3283
|
-
}
|
|
3284
|
-
function getLocaleMessages(e, t) {
|
|
3285
|
-
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = isPlainObject(n) ? n : isArray(r) ? create() : { [e]: create() };
|
|
3286
|
-
if (isArray(r) && r.forEach((e) => {
|
|
3287
|
-
if ("locale" in e && "resource" in e) {
|
|
3288
|
-
let { locale: t, resource: n } = e;
|
|
3289
|
-
t ? (o[t] = o[t] || create(), deepCopy(n, o[t])) : deepCopy(n, o);
|
|
3290
|
-
} else isString(e) && deepCopy(JSON.parse(e), o);
|
|
3291
|
-
}), i == null && a) for (let e in o) hasOwn(o, e) && handleFlatJson(o[e]);
|
|
3292
|
-
return o;
|
|
3293
|
-
}
|
|
3294
|
-
function getComponentOptions(e) {
|
|
3295
|
-
return e.type;
|
|
3296
|
-
}
|
|
3297
|
-
function adjustI18nResources(e, t, n) {
|
|
3298
|
-
let r = isObject(t.messages) ? t.messages : create();
|
|
3299
|
-
"__i18nGlobal" in n && (r = getLocaleMessages(e.locale.value, {
|
|
3300
|
-
messages: r,
|
|
3301
|
-
__i18n: n.__i18nGlobal
|
|
3302
|
-
}));
|
|
3303
|
-
let i = Object.keys(r);
|
|
3304
|
-
if (i.length && i.forEach((t) => {
|
|
3305
|
-
e.mergeLocaleMessage(t, r[t]);
|
|
3306
|
-
}), isObject(t.datetimeFormats)) {
|
|
3307
|
-
let n = Object.keys(t.datetimeFormats);
|
|
3308
|
-
n.length && n.forEach((n) => {
|
|
3309
|
-
e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
if (isObject(t.numberFormats)) {
|
|
3313
|
-
let n = Object.keys(t.numberFormats);
|
|
3314
|
-
n.length && n.forEach((n) => {
|
|
3315
|
-
e.mergeNumberFormat(n, t.numberFormats[n]);
|
|
3316
|
-
});
|
|
3317
|
-
}
|
|
3318
|
-
}
|
|
3319
|
-
function createTextNode(e) {
|
|
3320
|
-
return createVNode(Text, null, e, 0);
|
|
3321
|
-
}
|
|
3322
|
-
function getCurrentInstance$1() {
|
|
3323
|
-
let t = "currentInstance";
|
|
3324
|
-
return t in Vue ? Vue[t] : Vue.getCurrentInstance();
|
|
3325
|
-
}
|
|
3326
|
-
var NOOP_RETURN_ARRAY = () => [], NOOP_RETURN_FALSE = () => !1, composerID = 0;
|
|
3327
|
-
function defineCoreMissingHandler(e) {
|
|
3328
|
-
return ((t, n, r, i) => e(n, r, getCurrentInstance$1() || void 0, i));
|
|
3329
|
-
}
|
|
3330
|
-
function createComposer(e = {}) {
|
|
3331
|
-
let { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = inBrowser ? ref : shallowRef, s = isBoolean(e.inheritLocale) ? e.inheritLocale : !0, l = o(t && s ? t.locale.value : isString(e.locale) ? e.locale : DEFAULT_LOCALE), u = o(t && s ? t.fallbackLocale.value : isString(e.fallbackLocale) || isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value), d = o(getLocaleMessages(l.value, e)), f = o(isPlainObject(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), m = o(isPlainObject(e.numberFormats) ? e.numberFormats : { [l.value]: {} }), _ = t ? t.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, y = t ? t.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, x = isFunction(e.missing) ? e.missing : null, w = isFunction(e.missing) ? defineCoreMissingHandler(e.missing) : null, D = isFunction(e.postTranslation) ? e.postTranslation : null, k = t ? t.warnHtmlMessage : isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, j = t ? t.modifiers : isPlainObject(e.modifiers) ? e.modifiers : {}, M = e.pluralRules || t && t.pluralRules, F;
|
|
3332
|
-
F = (() => {
|
|
3333
|
-
i && setFallbackContext(null);
|
|
3334
|
-
let t = {
|
|
3335
|
-
version: VERSION,
|
|
3336
|
-
locale: l.value,
|
|
3337
|
-
fallbackLocale: u.value,
|
|
3338
|
-
messages: d.value,
|
|
3339
|
-
modifiers: j,
|
|
3340
|
-
pluralRules: M,
|
|
3341
|
-
missing: w === null ? void 0 : w,
|
|
3342
|
-
missingWarn: _,
|
|
3343
|
-
fallbackWarn: v,
|
|
3344
|
-
fallbackFormat: b,
|
|
3345
|
-
unresolving: !0,
|
|
3346
|
-
postTranslation: D === null ? void 0 : D,
|
|
3347
|
-
warnHtmlMessage: k,
|
|
3348
|
-
escapeParameter: A,
|
|
3349
|
-
messageResolver: e.messageResolver,
|
|
3350
|
-
messageCompiler: e.messageCompiler,
|
|
3351
|
-
__meta: { framework: "vue" }
|
|
3352
|
-
};
|
|
3353
|
-
t.datetimeFormats = f.value, t.numberFormats = m.value, t.__datetimeFormatters = isPlainObject(F) ? F.__datetimeFormatters : void 0, t.__numberFormatters = isPlainObject(F) ? F.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (t.__v_emitter = isPlainObject(F) ? F.__v_emitter : void 0);
|
|
3354
|
-
let n = createCoreContext(t);
|
|
3355
|
-
return i && setFallbackContext(n), n;
|
|
3356
|
-
})(), updateFallbackLocale(F, l.value, u.value);
|
|
3357
|
-
function I() {
|
|
3358
|
-
return [
|
|
3359
|
-
l.value,
|
|
3360
|
-
u.value,
|
|
3361
|
-
d.value,
|
|
3362
|
-
f.value,
|
|
3363
|
-
m.value
|
|
3364
|
-
];
|
|
3365
|
-
}
|
|
3366
|
-
let R = computed({
|
|
3367
|
-
get: () => l.value,
|
|
3368
|
-
set: (e) => {
|
|
3369
|
-
F.locale = e, l.value = e;
|
|
3370
|
-
}
|
|
3371
|
-
}), B = computed({
|
|
3372
|
-
get: () => u.value,
|
|
3373
|
-
set: (e) => {
|
|
3374
|
-
F.fallbackLocale = e, u.value = e, updateFallbackLocale(F, l.value, e);
|
|
3375
|
-
}
|
|
3376
|
-
}), U = computed(() => d.value), G = /* @__PURE__ */ computed(() => f.value), td = /* @__PURE__ */ computed(() => m.value);
|
|
3377
|
-
function nd() {
|
|
3378
|
-
return isFunction(D) ? D : null;
|
|
3379
|
-
}
|
|
3380
|
-
function id(e) {
|
|
3381
|
-
D = e, F.postTranslation = e;
|
|
3382
|
-
}
|
|
3383
|
-
function ad() {
|
|
3384
|
-
return x;
|
|
3385
|
-
}
|
|
3386
|
-
function od(e) {
|
|
3387
|
-
e !== null && (w = defineCoreMissingHandler(e)), x = e, F.missing = w;
|
|
3388
|
-
}
|
|
3389
|
-
function sd(e, t) {
|
|
3390
|
-
return e !== "translate" || !t.resolvedMessage;
|
|
3391
|
-
}
|
|
3392
|
-
let K = (e, n, r, a, o, s) => {
|
|
3393
|
-
I();
|
|
3394
|
-
let l;
|
|
3395
|
-
try {
|
|
3396
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (F.fallbackContext = t ? getFallbackContext() : void 0), l = e(F);
|
|
3397
|
-
} finally {
|
|
3398
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (F.fallbackContext = void 0);
|
|
3399
|
-
}
|
|
3400
|
-
if (r !== "translate exists" && isNumber(l) && l === -1 || r === "translate exists" && !l) {
|
|
3401
|
-
let [e, i] = n();
|
|
3402
|
-
if (process.env.NODE_ENV !== "production" && t && isString(e) && sd(r, i) && (y && (isTranslateFallbackWarn(v, e) || isTranslateMissingWarn(_, e)) && warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
|
|
3403
|
-
key: e,
|
|
3404
|
-
type: r
|
|
3405
|
-
})), process.env.NODE_ENV !== "production")) {
|
|
3406
|
-
let { __v_emitter: t } = F;
|
|
3407
|
-
t && y && t.emit("fallback", {
|
|
3408
|
-
type: r,
|
|
3409
|
-
key: e,
|
|
3410
|
-
to: "global",
|
|
3411
|
-
groupId: `${r}:${e}`
|
|
3412
|
-
});
|
|
3413
|
-
}
|
|
3414
|
-
return t && y ? a(t) : o(e);
|
|
3415
|
-
} else if (s(l)) return l;
|
|
3416
|
-
else
|
|
3417
|
-
/* istanbul ignore next */
|
|
3418
|
-
throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE);
|
|
3419
|
-
};
|
|
3420
|
-
function cd(...e) {
|
|
3421
|
-
return K((t) => Reflect.apply(translate, null, [t, ...e]), () => parseTranslateArgs(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => isString(e));
|
|
3422
|
-
}
|
|
3423
|
-
function ld(...e) {
|
|
3424
|
-
let [t, n, r] = e;
|
|
3425
|
-
if (r && !isObject(r)) throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
3426
|
-
return cd(t, n, assign({ resolvedMessage: !0 }, r || {}));
|
|
3427
|
-
}
|
|
3428
|
-
function ud(...e) {
|
|
3429
|
-
return K((t) => Reflect.apply(datetime, null, [t, ...e]), () => parseDateTimeArgs(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => isString(e) || isArray(e));
|
|
3430
|
-
}
|
|
3431
|
-
function dd(...e) {
|
|
3432
|
-
return K((t) => Reflect.apply(number, null, [t, ...e]), () => parseNumberArgs(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => isString(e) || isArray(e));
|
|
3433
|
-
}
|
|
3434
|
-
function fd(e) {
|
|
3435
|
-
return e.map((e) => isString(e) || isNumber(e) || isBoolean(e) ? createTextNode(String(e)) : e);
|
|
3436
|
-
}
|
|
3437
|
-
let pd = {
|
|
3438
|
-
normalize: fd,
|
|
3439
|
-
interpolate: (e) => e,
|
|
3440
|
-
type: "vnode"
|
|
3441
|
-
};
|
|
3442
|
-
function md(...e) {
|
|
3443
|
-
return K((t) => {
|
|
3444
|
-
let n, r = t;
|
|
3445
|
-
try {
|
|
3446
|
-
r.processor = pd, n = Reflect.apply(translate, null, [r, ...e]);
|
|
3447
|
-
} finally {
|
|
3448
|
-
r.processor = null;
|
|
3449
|
-
}
|
|
3450
|
-
return n;
|
|
3451
|
-
}, () => parseTranslateArgs(...e), "translate", (t) => t[TranslateVNodeSymbol](...e), (e) => [createTextNode(e)], (e) => isArray(e));
|
|
3452
|
-
}
|
|
3453
|
-
function hd(...e) {
|
|
3454
|
-
return K((t) => Reflect.apply(number, null, [t, ...e]), () => parseNumberArgs(...e), "number format", (t) => t[NumberPartsSymbol](...e), NOOP_RETURN_ARRAY, (e) => isString(e) || isArray(e));
|
|
3455
|
-
}
|
|
3456
|
-
function gd(...e) {
|
|
3457
|
-
return K((t) => Reflect.apply(datetime, null, [t, ...e]), () => parseDateTimeArgs(...e), "datetime format", (t) => t[DatetimePartsSymbol](...e), NOOP_RETURN_ARRAY, (e) => isString(e) || isArray(e));
|
|
3458
|
-
}
|
|
3459
|
-
function _d(e) {
|
|
3460
|
-
M = e, F.pluralRules = M;
|
|
3461
|
-
}
|
|
3462
|
-
function vd(e, t) {
|
|
3463
|
-
return K(() => {
|
|
3464
|
-
if (!e) return !1;
|
|
3465
|
-
let n = xd(isString(t) ? t : l.value), r = F.messageResolver(n, e);
|
|
3466
|
-
return isMessageAST(r) || isMessageFunction(r) || isString(r);
|
|
3467
|
-
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), NOOP_RETURN_FALSE, (e) => isBoolean(e));
|
|
3468
|
-
}
|
|
3469
|
-
function yd(e) {
|
|
3470
|
-
let t = null, n = fallbackWithLocaleChain(F, u.value, l.value);
|
|
3471
|
-
for (let r = 0; r < n.length; r++) {
|
|
3472
|
-
let i = d.value[n[r]] || {}, a = F.messageResolver(i, e);
|
|
3473
|
-
if (a != null) {
|
|
3474
|
-
t = a;
|
|
3475
|
-
break;
|
|
3476
|
-
}
|
|
3477
|
-
}
|
|
3478
|
-
return t;
|
|
3479
|
-
}
|
|
3480
|
-
function bd(e) {
|
|
3481
|
-
return yd(e) ?? (t && t.tm(e) || {});
|
|
3482
|
-
}
|
|
3483
|
-
function xd(e) {
|
|
3484
|
-
return d.value[e] || {};
|
|
3485
|
-
}
|
|
3486
|
-
function Sd(e, t) {
|
|
3487
|
-
if (a) {
|
|
3488
|
-
let n = { [e]: t };
|
|
3489
|
-
for (let e in n) hasOwn(n, e) && handleFlatJson(n[e]);
|
|
3490
|
-
t = n[e];
|
|
3491
|
-
}
|
|
3492
|
-
d.value[e] = t, F.messages = d.value;
|
|
3493
|
-
}
|
|
3494
|
-
function Cd(e, t) {
|
|
3495
|
-
d.value[e] = d.value[e] || {};
|
|
3496
|
-
let n = { [e]: t };
|
|
3497
|
-
if (a) for (let e in n) hasOwn(n, e) && handleFlatJson(n[e]);
|
|
3498
|
-
t = n[e], deepCopy(t, d.value[e]), F.messages = d.value;
|
|
3499
|
-
}
|
|
3500
|
-
function wd(e) {
|
|
3501
|
-
return f.value[e] || {};
|
|
3502
|
-
}
|
|
3503
|
-
function Td(e, t) {
|
|
3504
|
-
f.value[e] = t, F.datetimeFormats = f.value, clearDateTimeFormat(F, e, t);
|
|
3505
|
-
}
|
|
3506
|
-
function Ed(e, t) {
|
|
3507
|
-
f.value[e] = assign(f.value[e] || {}, t), F.datetimeFormats = f.value, clearDateTimeFormat(F, e, t);
|
|
3508
|
-
}
|
|
3509
|
-
function Dd(e) {
|
|
3510
|
-
return m.value[e] || {};
|
|
3511
|
-
}
|
|
3512
|
-
function Od(e, t) {
|
|
3513
|
-
m.value[e] = t, F.numberFormats = m.value, clearNumberFormat(F, e, t);
|
|
3514
|
-
}
|
|
3515
|
-
function kd(e, t) {
|
|
3516
|
-
m.value[e] = assign(m.value[e] || {}, t), F.numberFormats = m.value, clearNumberFormat(F, e, t);
|
|
3517
|
-
}
|
|
3518
|
-
composerID++, t && inBrowser && (watch(t.locale, (e) => {
|
|
3519
|
-
s && (l.value = e, F.locale = e, updateFallbackLocale(F, l.value, u.value));
|
|
3520
|
-
}), watch(t.fallbackLocale, (e) => {
|
|
3521
|
-
s && (u.value = e, F.fallbackLocale = e, updateFallbackLocale(F, l.value, u.value));
|
|
3522
|
-
}));
|
|
3523
|
-
let X = {
|
|
3524
|
-
id: composerID,
|
|
3525
|
-
locale: R,
|
|
3526
|
-
fallbackLocale: B,
|
|
3527
|
-
get inheritLocale() {
|
|
3528
|
-
return s;
|
|
3529
|
-
},
|
|
3530
|
-
set inheritLocale(e) {
|
|
3531
|
-
s = e, e && t && (l.value = t.locale.value, u.value = t.fallbackLocale.value, updateFallbackLocale(F, l.value, u.value));
|
|
3532
|
-
},
|
|
3533
|
-
get availableLocales() {
|
|
3534
|
-
return Object.keys(d.value).sort();
|
|
3535
|
-
},
|
|
3536
|
-
messages: U,
|
|
3537
|
-
get modifiers() {
|
|
3538
|
-
return j;
|
|
3539
|
-
},
|
|
3540
|
-
get pluralRules() {
|
|
3541
|
-
return M || {};
|
|
3542
|
-
},
|
|
3543
|
-
get isGlobal() {
|
|
3544
|
-
return i;
|
|
3545
|
-
},
|
|
3546
|
-
get missingWarn() {
|
|
3547
|
-
return _;
|
|
3548
|
-
},
|
|
3549
|
-
set missingWarn(e) {
|
|
3550
|
-
_ = e, F.missingWarn = _;
|
|
3551
|
-
},
|
|
3552
|
-
get fallbackWarn() {
|
|
3553
|
-
return v;
|
|
3554
|
-
},
|
|
3555
|
-
set fallbackWarn(e) {
|
|
3556
|
-
v = e, F.fallbackWarn = v;
|
|
3557
|
-
},
|
|
3558
|
-
get fallbackRoot() {
|
|
3559
|
-
return y;
|
|
3560
|
-
},
|
|
3561
|
-
set fallbackRoot(e) {
|
|
3562
|
-
y = e;
|
|
3563
|
-
},
|
|
3564
|
-
get fallbackFormat() {
|
|
3565
|
-
return b;
|
|
3566
|
-
},
|
|
3567
|
-
set fallbackFormat(e) {
|
|
3568
|
-
b = e, F.fallbackFormat = b;
|
|
3569
|
-
},
|
|
3570
|
-
get warnHtmlMessage() {
|
|
3571
|
-
return k;
|
|
3572
|
-
},
|
|
3573
|
-
set warnHtmlMessage(e) {
|
|
3574
|
-
k = e, F.warnHtmlMessage = e;
|
|
3575
|
-
},
|
|
3576
|
-
get escapeParameter() {
|
|
3577
|
-
return A;
|
|
3578
|
-
},
|
|
3579
|
-
set escapeParameter(e) {
|
|
3580
|
-
A = e, F.escapeParameter = e;
|
|
3581
|
-
},
|
|
3582
|
-
t: cd,
|
|
3583
|
-
getLocaleMessage: xd,
|
|
3584
|
-
setLocaleMessage: Sd,
|
|
3585
|
-
mergeLocaleMessage: Cd,
|
|
3586
|
-
getPostTranslationHandler: nd,
|
|
3587
|
-
setPostTranslationHandler: id,
|
|
3588
|
-
getMissingHandler: ad,
|
|
3589
|
-
setMissingHandler: od,
|
|
3590
|
-
[SetPluralRulesSymbol]: _d
|
|
3591
|
-
};
|
|
3592
|
-
return X.datetimeFormats = G, X.numberFormats = td, X.rt = ld, X.te = vd, X.tm = bd, X.d = ud, X.n = dd, X.getDateTimeFormat = wd, X.setDateTimeFormat = Td, X.mergeDateTimeFormat = Ed, X.getNumberFormat = Dd, X.setNumberFormat = Od, X.mergeNumberFormat = kd, X[InejctWithOptionSymbol] = n, X[TranslateVNodeSymbol] = md, X[DatetimePartsSymbol] = gd, X[NumberPartsSymbol] = hd, process.env.NODE_ENV !== "production" && (X[EnableEmitter] = (e) => {
|
|
3593
|
-
F.__v_emitter = e;
|
|
3594
|
-
}, X[DisableEmitter] = () => {
|
|
3595
|
-
F.__v_emitter = void 0;
|
|
3596
|
-
}), X;
|
|
3597
|
-
}
|
|
3598
|
-
var VUE_I18N_COMPONENT_TYPES = "vue-i18n: composer properties", VueDevToolsLabels = {
|
|
3599
|
-
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
3600
|
-
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
3601
|
-
"vue-i18n-timeline": "Vue I18n"
|
|
3602
|
-
}, VueDevToolsPlaceholders = { "vue-i18n-resource-inspector": "Search for scopes ..." }, VueDevToolsTimelineColors = { "vue-i18n-timeline": 16764185 }, devtoolsApi;
|
|
3603
|
-
async function enableDevTools(e, t) {
|
|
3604
|
-
return new Promise((n, r) => {
|
|
3605
|
-
try {
|
|
3606
|
-
setupDevtoolsPlugin({
|
|
3607
|
-
id: "vue-devtools-plugin-vue-i18n",
|
|
3608
|
-
label: VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],
|
|
3609
|
-
packageName: "vue-i18n",
|
|
3610
|
-
homepage: "https://vue-i18n.intlify.dev",
|
|
3611
|
-
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
3612
|
-
componentStateTypes: [VUE_I18N_COMPONENT_TYPES],
|
|
3613
|
-
app: e
|
|
3614
|
-
}, (r) => {
|
|
3615
|
-
devtoolsApi = r, r.on.visitComponentTree(({ componentInstance: e, treeNode: n }) => {
|
|
3616
|
-
updateComponentTreeTags(e, n, t);
|
|
3617
|
-
}), r.on.inspectComponent(({ componentInstance: e, instanceData: n }) => {
|
|
3618
|
-
e.__VUE_I18N__ && n && (t.mode === "legacy" ? e.__VUE_I18N__ !== t.global.__composer && inspectComposer(n, e.__VUE_I18N__) : inspectComposer(n, e.__VUE_I18N__));
|
|
3619
|
-
}), r.addInspector({
|
|
3620
|
-
id: "vue-i18n-resource-inspector",
|
|
3621
|
-
label: VueDevToolsLabels["vue-i18n-resource-inspector"],
|
|
3622
|
-
icon: "language",
|
|
3623
|
-
treeFilterPlaceholder: VueDevToolsPlaceholders["vue-i18n-resource-inspector"]
|
|
3624
|
-
}), r.on.getInspectorTree((n) => {
|
|
3625
|
-
n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && registerScope(n, t);
|
|
3626
|
-
});
|
|
3627
|
-
let i = /* @__PURE__ */ new Map();
|
|
3628
|
-
r.on.getInspectorState(async (n) => {
|
|
3629
|
-
if (n.app === e && n.inspectorId === "vue-i18n-resource-inspector") if (r.unhighlightElement(), inspectScope(n, t), n.nodeId === "global") {
|
|
3630
|
-
if (!i.has(n.app)) {
|
|
3631
|
-
let [e] = await r.getComponentInstances(n.app);
|
|
3632
|
-
i.set(n.app, e);
|
|
3633
|
-
}
|
|
3634
|
-
r.highlightElement(i.get(n.app));
|
|
3635
|
-
} else {
|
|
3636
|
-
let e = getComponentInstance(n.nodeId, t);
|
|
3637
|
-
e && r.highlightElement(e);
|
|
3638
|
-
}
|
|
3639
|
-
}), r.on.editInspectorState((n) => {
|
|
3640
|
-
n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && editScope(n, t);
|
|
3641
|
-
}), r.addTimelineLayer({
|
|
3642
|
-
id: "vue-i18n-timeline",
|
|
3643
|
-
label: VueDevToolsLabels["vue-i18n-timeline"],
|
|
3644
|
-
color: VueDevToolsTimelineColors["vue-i18n-timeline"]
|
|
3645
|
-
}), n(!0);
|
|
3646
|
-
});
|
|
3647
|
-
} catch (e) {
|
|
3648
|
-
console.error(e), r(!1);
|
|
3649
|
-
}
|
|
3650
|
-
});
|
|
3651
|
-
}
|
|
3652
|
-
function getI18nScopeLable(e) {
|
|
3653
|
-
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3654
|
-
}
|
|
3655
|
-
function updateComponentTreeTags(e, t, n) {
|
|
3656
|
-
let r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3657
|
-
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
3658
|
-
let n = {
|
|
3659
|
-
label: `i18n (${getI18nScopeLable(e)} Scope)`,
|
|
3660
|
-
textColor: 0,
|
|
3661
|
-
backgroundColor: 16764185
|
|
3662
|
-
};
|
|
3663
|
-
t.tags.push(n);
|
|
3664
|
-
}
|
|
3665
|
-
}
|
|
3666
|
-
function inspectComposer(e, t) {
|
|
3667
|
-
let n = VUE_I18N_COMPONENT_TYPES;
|
|
3668
|
-
e.state.push({
|
|
3669
|
-
type: n,
|
|
3670
|
-
key: "locale",
|
|
3671
|
-
editable: !0,
|
|
3672
|
-
value: t.locale.value
|
|
3673
|
-
}), e.state.push({
|
|
3674
|
-
type: n,
|
|
3675
|
-
key: "availableLocales",
|
|
3676
|
-
editable: !1,
|
|
3677
|
-
value: t.availableLocales
|
|
3678
|
-
}), e.state.push({
|
|
3679
|
-
type: n,
|
|
3680
|
-
key: "fallbackLocale",
|
|
3681
|
-
editable: !0,
|
|
3682
|
-
value: t.fallbackLocale.value
|
|
3683
|
-
}), e.state.push({
|
|
3684
|
-
type: n,
|
|
3685
|
-
key: "inheritLocale",
|
|
3686
|
-
editable: !0,
|
|
3687
|
-
value: t.inheritLocale
|
|
3688
|
-
}), e.state.push({
|
|
3689
|
-
type: n,
|
|
3690
|
-
key: "messages",
|
|
3691
|
-
editable: !1,
|
|
3692
|
-
value: getLocaleMessageValue(t.messages.value)
|
|
3693
|
-
}), e.state.push({
|
|
3694
|
-
type: n,
|
|
3695
|
-
key: "datetimeFormats",
|
|
3696
|
-
editable: !1,
|
|
3697
|
-
value: t.datetimeFormats.value
|
|
3698
|
-
}), e.state.push({
|
|
3699
|
-
type: n,
|
|
3700
|
-
key: "numberFormats",
|
|
3701
|
-
editable: !1,
|
|
3702
|
-
value: t.numberFormats.value
|
|
3703
|
-
});
|
|
3704
|
-
}
|
|
3705
|
-
function getLocaleMessageValue(e) {
|
|
3706
|
-
let t = {};
|
|
3707
|
-
return Object.keys(e).forEach((n) => {
|
|
3708
|
-
let r = e[n];
|
|
3709
|
-
isFunction(r) && "source" in r ? t[n] = getMessageFunctionDetails(r) : isMessageAST(r) && r.loc && r.loc.source ? t[n] = r.loc.source : isObject(r) ? t[n] = getLocaleMessageValue(r) : t[n] = r;
|
|
3710
|
-
}), t;
|
|
3711
|
-
}
|
|
3712
|
-
var ESC = {
|
|
3713
|
-
"<": "<",
|
|
3714
|
-
">": ">",
|
|
3715
|
-
"\"": """,
|
|
3716
|
-
"&": "&"
|
|
3717
|
-
};
|
|
3718
|
-
function escape(e) {
|
|
3719
|
-
return e.replace(/[<>"&]/g, escapeChar);
|
|
3720
|
-
}
|
|
3721
|
-
function escapeChar(e) {
|
|
3722
|
-
return ESC[e] || e;
|
|
3723
|
-
}
|
|
3724
|
-
function getMessageFunctionDetails(e) {
|
|
3725
|
-
return { _custom: {
|
|
3726
|
-
type: "function",
|
|
3727
|
-
display: `<span>ƒ</span> ${e.source ? `("${escape(e.source)}")` : "(?)"}`
|
|
3728
|
-
} };
|
|
3729
|
-
}
|
|
3730
|
-
function registerScope(e, t) {
|
|
3731
|
-
e.rootNodes.push({
|
|
3732
|
-
id: "global",
|
|
3733
|
-
label: "Global Scope"
|
|
3734
|
-
});
|
|
3735
|
-
let n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
3736
|
-
for (let [r, i] of t.__instances) {
|
|
3737
|
-
let a = t.mode === "composition" ? i : i.__composer;
|
|
3738
|
-
n !== a && e.rootNodes.push({
|
|
3739
|
-
id: a.id.toString(),
|
|
3740
|
-
label: `${getI18nScopeLable(r)} Scope`
|
|
3741
|
-
});
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
function getComponentInstance(e, t) {
|
|
3745
|
-
let n = null;
|
|
3746
|
-
if (e !== "global") {
|
|
3747
|
-
for (let [r, i] of t.__instances.entries()) if (i.id.toString() === e) {
|
|
3748
|
-
n = r;
|
|
3749
|
-
break;
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
return n;
|
|
3753
|
-
}
|
|
3754
|
-
function getComposer$2(e, t) {
|
|
3755
|
-
if (e === "global") return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3756
|
-
{
|
|
3757
|
-
let n = Array.from(t.__instances.values()).find((t) => t.id.toString() === e);
|
|
3758
|
-
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3759
|
-
}
|
|
3760
|
-
}
|
|
3761
|
-
function inspectScope(e, t) {
|
|
3762
|
-
let n = getComposer$2(e.nodeId, t);
|
|
3763
|
-
return n && (e.state = makeScopeInspectState(n)), null;
|
|
3764
|
-
}
|
|
3765
|
-
function makeScopeInspectState(e) {
|
|
3766
|
-
let t = {}, n = "Locale related info";
|
|
3767
|
-
t[n] = [
|
|
3768
|
-
{
|
|
3769
|
-
type: n,
|
|
3770
|
-
key: "locale",
|
|
3771
|
-
editable: !0,
|
|
3772
|
-
value: e.locale.value
|
|
3773
|
-
},
|
|
3774
|
-
{
|
|
3775
|
-
type: n,
|
|
3776
|
-
key: "fallbackLocale",
|
|
3777
|
-
editable: !0,
|
|
3778
|
-
value: e.fallbackLocale.value
|
|
3779
|
-
},
|
|
3780
|
-
{
|
|
3781
|
-
type: n,
|
|
3782
|
-
key: "availableLocales",
|
|
3783
|
-
editable: !1,
|
|
3784
|
-
value: e.availableLocales
|
|
3785
|
-
},
|
|
3786
|
-
{
|
|
3787
|
-
type: n,
|
|
3788
|
-
key: "inheritLocale",
|
|
3789
|
-
editable: !0,
|
|
3790
|
-
value: e.inheritLocale
|
|
3791
|
-
}
|
|
3792
|
-
];
|
|
3793
|
-
let r = "Locale messages info";
|
|
3794
|
-
t[r] = [{
|
|
3795
|
-
type: r,
|
|
3796
|
-
key: "messages",
|
|
3797
|
-
editable: !1,
|
|
3798
|
-
value: getLocaleMessageValue(e.messages.value)
|
|
3799
|
-
}];
|
|
3800
|
-
{
|
|
3801
|
-
let n = "Datetime formats info";
|
|
3802
|
-
t[n] = [{
|
|
3803
|
-
type: n,
|
|
3804
|
-
key: "datetimeFormats",
|
|
3805
|
-
editable: !1,
|
|
3806
|
-
value: e.datetimeFormats.value
|
|
3807
|
-
}];
|
|
3808
|
-
let r = "Datetime formats info";
|
|
3809
|
-
t[r] = [{
|
|
3810
|
-
type: r,
|
|
3811
|
-
key: "numberFormats",
|
|
3812
|
-
editable: !1,
|
|
3813
|
-
value: e.numberFormats.value
|
|
3814
|
-
}];
|
|
3815
|
-
}
|
|
3816
|
-
return t;
|
|
3817
|
-
}
|
|
3818
|
-
function addTimelineEvent(e, t) {
|
|
3819
|
-
if (devtoolsApi) {
|
|
3820
|
-
let n;
|
|
3821
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId), devtoolsApi.addTimelineEvent({
|
|
3822
|
-
layerId: "vue-i18n-timeline",
|
|
3823
|
-
event: {
|
|
3824
|
-
title: e,
|
|
3825
|
-
groupId: n,
|
|
3826
|
-
time: Date.now(),
|
|
3827
|
-
meta: {},
|
|
3828
|
-
data: t || {},
|
|
3829
|
-
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
3830
|
-
}
|
|
3831
|
-
});
|
|
3832
|
-
}
|
|
3833
|
-
}
|
|
3834
|
-
function editScope(e, t) {
|
|
3835
|
-
let n = getComposer$2(e.nodeId, t);
|
|
3836
|
-
if (n) {
|
|
3837
|
-
let [t] = e.path;
|
|
3838
|
-
t === "locale" && isString(e.state.value) ? n.locale.value = e.state.value : t === "fallbackLocale" && (isString(e.state.value) || isArray(e.state.value) || isObject(e.state.value)) ? n.fallbackLocale.value = e.state.value : t === "inheritLocale" && isBoolean(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
function convertComposerOptions(e) {
|
|
3842
|
-
let t = isString(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString(e.fallbackLocale) || isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = isFunction(e.missing) ? e.missing : void 0, i = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, l = isPlainObject(e.modifiers) ? e.modifiers : {}, u = e.pluralizationRules, d = isFunction(e.postTranslation) ? e.postTranslation : void 0, f = isString(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, _ = isBoolean(e.sync) ? e.sync : !0, v = e.messages;
|
|
3843
|
-
if (isPlainObject(e.sharedMessages)) {
|
|
3844
|
-
let t = e.sharedMessages;
|
|
3845
|
-
v = Object.keys(t).reduce((e, n) => (assign(e[n] || (e[n] = {}), t[n]), e), v || {});
|
|
3846
|
-
}
|
|
3847
|
-
let { __i18n: y, __root: b, __injectWithOption: x } = e, w = e.datetimeFormats, D = e.numberFormats, k = e.flatJson;
|
|
3848
|
-
return {
|
|
3849
|
-
locale: t,
|
|
3850
|
-
fallbackLocale: n,
|
|
3851
|
-
messages: v,
|
|
3852
|
-
flatJson: k,
|
|
3853
|
-
datetimeFormats: w,
|
|
3854
|
-
numberFormats: D,
|
|
3855
|
-
missing: r,
|
|
3856
|
-
missingWarn: i,
|
|
3857
|
-
fallbackWarn: a,
|
|
3858
|
-
fallbackRoot: o,
|
|
3859
|
-
fallbackFormat: s,
|
|
3860
|
-
modifiers: l,
|
|
3861
|
-
pluralRules: u,
|
|
3862
|
-
postTranslation: d,
|
|
3863
|
-
warnHtmlMessage: f,
|
|
3864
|
-
escapeParameter: m,
|
|
3865
|
-
messageResolver: e.messageResolver,
|
|
3866
|
-
inheritLocale: _,
|
|
3867
|
-
__i18n: y,
|
|
3868
|
-
__root: b,
|
|
3869
|
-
__injectWithOption: x
|
|
3870
|
-
};
|
|
3871
|
-
}
|
|
3872
|
-
function createVueI18n(e = {}) {
|
|
3873
|
-
let t = createComposer(convertComposerOptions(e)), { __extender: n } = e, r = {
|
|
3874
|
-
id: t.id,
|
|
3875
|
-
get locale() {
|
|
3876
|
-
return t.locale.value;
|
|
3877
|
-
},
|
|
3878
|
-
set locale(e) {
|
|
3879
|
-
t.locale.value = e;
|
|
3880
|
-
},
|
|
3881
|
-
get fallbackLocale() {
|
|
3882
|
-
return t.fallbackLocale.value;
|
|
3883
|
-
},
|
|
3884
|
-
set fallbackLocale(e) {
|
|
3885
|
-
t.fallbackLocale.value = e;
|
|
3886
|
-
},
|
|
3887
|
-
get messages() {
|
|
3888
|
-
return t.messages.value;
|
|
3889
|
-
},
|
|
3890
|
-
get datetimeFormats() {
|
|
3891
|
-
return t.datetimeFormats.value;
|
|
3892
|
-
},
|
|
3893
|
-
get numberFormats() {
|
|
3894
|
-
return t.numberFormats.value;
|
|
3895
|
-
},
|
|
3896
|
-
get availableLocales() {
|
|
3897
|
-
return t.availableLocales;
|
|
3898
|
-
},
|
|
3899
|
-
get missing() {
|
|
3900
|
-
return t.getMissingHandler();
|
|
3901
|
-
},
|
|
3902
|
-
set missing(e) {
|
|
3903
|
-
t.setMissingHandler(e);
|
|
3904
|
-
},
|
|
3905
|
-
get silentTranslationWarn() {
|
|
3906
|
-
return isBoolean(t.missingWarn) ? !t.missingWarn : t.missingWarn;
|
|
3907
|
-
},
|
|
3908
|
-
set silentTranslationWarn(e) {
|
|
3909
|
-
t.missingWarn = isBoolean(e) ? !e : e;
|
|
3910
|
-
},
|
|
3911
|
-
get silentFallbackWarn() {
|
|
3912
|
-
return isBoolean(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
|
|
3913
|
-
},
|
|
3914
|
-
set silentFallbackWarn(e) {
|
|
3915
|
-
t.fallbackWarn = isBoolean(e) ? !e : e;
|
|
3916
|
-
},
|
|
3917
|
-
get modifiers() {
|
|
3918
|
-
return t.modifiers;
|
|
3919
|
-
},
|
|
3920
|
-
get formatFallbackMessages() {
|
|
3921
|
-
return t.fallbackFormat;
|
|
3922
|
-
},
|
|
3923
|
-
set formatFallbackMessages(e) {
|
|
3924
|
-
t.fallbackFormat = e;
|
|
3925
|
-
},
|
|
3926
|
-
get postTranslation() {
|
|
3927
|
-
return t.getPostTranslationHandler();
|
|
3928
|
-
},
|
|
3929
|
-
set postTranslation(e) {
|
|
3930
|
-
t.setPostTranslationHandler(e);
|
|
3931
|
-
},
|
|
3932
|
-
get sync() {
|
|
3933
|
-
return t.inheritLocale;
|
|
3934
|
-
},
|
|
3935
|
-
set sync(e) {
|
|
3936
|
-
t.inheritLocale = e;
|
|
3937
|
-
},
|
|
3938
|
-
get warnHtmlInMessage() {
|
|
3939
|
-
return t.warnHtmlMessage ? "warn" : "off";
|
|
3940
|
-
},
|
|
3941
|
-
set warnHtmlInMessage(e) {
|
|
3942
|
-
t.warnHtmlMessage = e !== "off";
|
|
3943
|
-
},
|
|
3944
|
-
get escapeParameterHtml() {
|
|
3945
|
-
return t.escapeParameter;
|
|
3946
|
-
},
|
|
3947
|
-
set escapeParameterHtml(e) {
|
|
3948
|
-
t.escapeParameter = e;
|
|
3949
|
-
},
|
|
3950
|
-
get pluralizationRules() {
|
|
3951
|
-
return t.pluralRules || {};
|
|
3952
|
-
},
|
|
3953
|
-
__composer: t,
|
|
3954
|
-
t(...e) {
|
|
3955
|
-
return Reflect.apply(t.t, t, [...e]);
|
|
3956
|
-
},
|
|
3957
|
-
rt(...e) {
|
|
3958
|
-
return Reflect.apply(t.rt, t, [...e]);
|
|
3959
|
-
},
|
|
3960
|
-
te(e, n) {
|
|
3961
|
-
return t.te(e, n);
|
|
3962
|
-
},
|
|
3963
|
-
tm(e) {
|
|
3964
|
-
return t.tm(e);
|
|
3965
|
-
},
|
|
3966
|
-
getLocaleMessage(e) {
|
|
3967
|
-
return t.getLocaleMessage(e);
|
|
3968
|
-
},
|
|
3969
|
-
setLocaleMessage(e, n) {
|
|
3970
|
-
t.setLocaleMessage(e, n);
|
|
3971
|
-
},
|
|
3972
|
-
mergeLocaleMessage(e, n) {
|
|
3973
|
-
t.mergeLocaleMessage(e, n);
|
|
3974
|
-
},
|
|
3975
|
-
d(...e) {
|
|
3976
|
-
return Reflect.apply(t.d, t, [...e]);
|
|
3977
|
-
},
|
|
3978
|
-
getDateTimeFormat(e) {
|
|
3979
|
-
return t.getDateTimeFormat(e);
|
|
3980
|
-
},
|
|
3981
|
-
setDateTimeFormat(e, n) {
|
|
3982
|
-
t.setDateTimeFormat(e, n);
|
|
3983
|
-
},
|
|
3984
|
-
mergeDateTimeFormat(e, n) {
|
|
3985
|
-
t.mergeDateTimeFormat(e, n);
|
|
3986
|
-
},
|
|
3987
|
-
n(...e) {
|
|
3988
|
-
return Reflect.apply(t.n, t, [...e]);
|
|
3989
|
-
},
|
|
3990
|
-
getNumberFormat(e) {
|
|
3991
|
-
return t.getNumberFormat(e);
|
|
3992
|
-
},
|
|
3993
|
-
setNumberFormat(e, n) {
|
|
3994
|
-
t.setNumberFormat(e, n);
|
|
3995
|
-
},
|
|
3996
|
-
mergeNumberFormat(e, n) {
|
|
3997
|
-
t.mergeNumberFormat(e, n);
|
|
3998
|
-
}
|
|
3999
|
-
};
|
|
4000
|
-
return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (e) => {
|
|
4001
|
-
let n = t;
|
|
4002
|
-
n[EnableEmitter] && n[EnableEmitter](e);
|
|
4003
|
-
}, r.__disableEmitter = () => {
|
|
4004
|
-
let e = t;
|
|
4005
|
-
e[DisableEmitter] && e[DisableEmitter]();
|
|
4006
|
-
}), r;
|
|
4007
|
-
}
|
|
4008
|
-
function defineMixin(e, t, n) {
|
|
4009
|
-
return {
|
|
4010
|
-
beforeCreate() {
|
|
4011
|
-
let r = getCurrentInstance$1();
|
|
4012
|
-
/* istanbul ignore if */
|
|
4013
|
-
if (!r) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4014
|
-
let i = this.$options;
|
|
4015
|
-
if (i.i18n) {
|
|
4016
|
-
let r = i.i18n;
|
|
4017
|
-
if (i.__i18n && (r.__i18n = i.__i18n), r.__root = t, this === this.$root) this.$i18n = mergeToGlobal(e, r);
|
|
4018
|
-
else {
|
|
4019
|
-
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = createVueI18n(r);
|
|
4020
|
-
let e = this.$i18n;
|
|
4021
|
-
e.__extender && (e.__disposer = e.__extender(this.$i18n));
|
|
4022
|
-
}
|
|
4023
|
-
} else if (i.__i18n) if (this === this.$root) this.$i18n = mergeToGlobal(e, i);
|
|
4024
|
-
else {
|
|
4025
|
-
this.$i18n = createVueI18n({
|
|
4026
|
-
__i18n: i.__i18n,
|
|
4027
|
-
__injectWithOption: !0,
|
|
4028
|
-
__extender: n.__vueI18nExtend,
|
|
4029
|
-
__root: t
|
|
4030
|
-
});
|
|
4031
|
-
let e = this.$i18n;
|
|
4032
|
-
e.__extender && (e.__disposer = e.__extender(this.$i18n));
|
|
4033
|
-
}
|
|
4034
|
-
else this.$i18n = e;
|
|
4035
|
-
i.__i18nGlobal && adjustI18nResources(t, i, i), this.$t = (...e) => this.$i18n.t(...e), this.$rt = (...e) => this.$i18n.rt(...e), this.$te = (e, t) => this.$i18n.te(e, t), this.$d = (...e) => this.$i18n.d(...e), this.$n = (...e) => this.$i18n.n(...e), this.$tm = (e) => this.$i18n.tm(e), n.__setInstance(r, this.$i18n);
|
|
4036
|
-
},
|
|
4037
|
-
mounted() {
|
|
4038
|
-
/* istanbul ignore if */
|
|
4039
|
-
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
4040
|
-
let e = getCurrentInstance$1();
|
|
4041
|
-
if (!e) return;
|
|
4042
|
-
let t = this.$i18n;
|
|
4043
|
-
e.__VUE_I18N__ = t.__composer;
|
|
4044
|
-
let n = this.__v_emitter = createEmitter();
|
|
4045
|
-
t.__enableEmitter && t.__enableEmitter(n), n.on("*", addTimelineEvent);
|
|
4046
|
-
}
|
|
4047
|
-
},
|
|
4048
|
-
unmounted() {
|
|
4049
|
-
let e = getCurrentInstance$1();
|
|
4050
|
-
/* istanbul ignore if */
|
|
4051
|
-
if (!e) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4052
|
-
let t = this.$i18n;
|
|
4053
|
-
process.env.NODE_ENV !== "production" && e.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", addTimelineEvent), delete this.__v_emitter), this.$i18n && (t.__disableEmitter && t.__disableEmitter(), delete e.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, t.__disposer && (t.__disposer(), delete t.__disposer, delete t.__extender), n.__deleteInstance(e), delete this.$i18n;
|
|
4054
|
-
}
|
|
4055
|
-
};
|
|
4056
|
-
}
|
|
4057
|
-
function mergeToGlobal(e, t) {
|
|
4058
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[SetPluralRulesSymbol](t.pluralizationRules || e.pluralizationRules);
|
|
4059
|
-
let n = getLocaleMessages(e.locale, {
|
|
4060
|
-
messages: t.messages,
|
|
4061
|
-
__i18n: t.__i18n
|
|
4062
|
-
});
|
|
4063
|
-
return Object.keys(n).forEach((t) => e.mergeLocaleMessage(t, n[t])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
|
|
4064
|
-
}
|
|
4065
|
-
var baseFormatProps = {
|
|
4066
|
-
tag: { type: [String, Object] },
|
|
4067
|
-
locale: { type: String },
|
|
4068
|
-
scope: {
|
|
4069
|
-
type: String,
|
|
4070
|
-
validator: (e) => e === "parent" || e === "global",
|
|
4071
|
-
default: "parent"
|
|
4072
|
-
},
|
|
4073
|
-
i18n: { type: Object }
|
|
4074
|
-
};
|
|
4075
|
-
function getInterpolateArg({ slots: e }, n) {
|
|
4076
|
-
return n.length === 1 && n[0] === "default" ? (e.default ? e.default() : []).reduce((e, n) => [...e, ...n.type === Fragment ? n.children : [n]], []) : n.reduce((t, n) => {
|
|
4077
|
-
let r = e[n];
|
|
4078
|
-
return r && (t[n] = r()), t;
|
|
4079
|
-
}, create());
|
|
4080
|
-
}
|
|
4081
|
-
function getFragmentableTag() {
|
|
4082
|
-
return Fragment;
|
|
4083
|
-
}
|
|
4084
|
-
var Translation = /* @__PURE__ */ defineComponent({
|
|
4085
|
-
name: "i18n-t",
|
|
4086
|
-
props: assign({
|
|
4087
|
-
keypath: {
|
|
4088
|
-
type: String,
|
|
4089
|
-
required: !0
|
|
4090
|
-
},
|
|
4091
|
-
plural: {
|
|
4092
|
-
type: [Number, String],
|
|
4093
|
-
validator: (e) => isNumber(e) || !isNaN(e)
|
|
4094
|
-
}
|
|
4095
|
-
}, baseFormatProps),
|
|
4096
|
-
setup(e, t) {
|
|
4097
|
-
let { slots: n, attrs: r } = t, i = e.i18n || useI18n({
|
|
4098
|
-
useScope: e.scope,
|
|
4099
|
-
__useComponent: !0
|
|
4100
|
-
});
|
|
4101
|
-
return () => {
|
|
4102
|
-
let a = Object.keys(n).filter((e) => e[0] !== "_"), o = create();
|
|
4103
|
-
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = isString(e.plural) ? +e.plural : e.plural);
|
|
4104
|
-
let s = getInterpolateArg(t, a), l = i[TranslateVNodeSymbol](e.keypath, s, o), u = assign(create(), r);
|
|
4105
|
-
return h(isString(e.tag) || isObject(e.tag) ? e.tag : getFragmentableTag(), u, l);
|
|
4106
|
-
};
|
|
4107
|
-
}
|
|
4108
|
-
});
|
|
4109
|
-
function isVNode(e) {
|
|
4110
|
-
return isArray(e) && !isString(e[0]);
|
|
4111
|
-
}
|
|
4112
|
-
function renderFormatter(e, t, n, r) {
|
|
4113
|
-
let { slots: i, attrs: a } = t;
|
|
4114
|
-
return () => {
|
|
4115
|
-
let t = { part: !0 }, o = create();
|
|
4116
|
-
e.locale && (t.locale = e.locale), isString(e.format) ? t.key = e.format : isObject(e.format) && (isString(e.format.key) && (t.key = e.format.key), o = Object.keys(e.format).reduce((t, r) => n.includes(r) ? assign(create(), t, { [r]: e.format[r] }) : t, create()));
|
|
4117
|
-
let s = r(e.value, t, o), l = [t.key];
|
|
4118
|
-
isArray(s) ? l = s.map((e, t) => {
|
|
4119
|
-
let n = i[e.type], r = n ? n({
|
|
4120
|
-
[e.type]: e.value,
|
|
4121
|
-
index: t,
|
|
4122
|
-
parts: s
|
|
4123
|
-
}) : [e.value];
|
|
4124
|
-
return isVNode(r) && (r[0].key = `${e.type}-${t}`), r;
|
|
4125
|
-
}) : isString(s) && (l = [s]);
|
|
4126
|
-
let u = assign(create(), a);
|
|
4127
|
-
return h(isString(e.tag) || isObject(e.tag) ? e.tag : getFragmentableTag(), u, l);
|
|
4128
|
-
};
|
|
4129
|
-
}
|
|
4130
|
-
var NumberFormat = /* @__PURE__ */ defineComponent({
|
|
4131
|
-
name: "i18n-n",
|
|
4132
|
-
props: assign({
|
|
4133
|
-
value: {
|
|
4134
|
-
type: Number,
|
|
4135
|
-
required: !0
|
|
4136
|
-
},
|
|
4137
|
-
format: { type: [String, Object] }
|
|
4138
|
-
}, baseFormatProps),
|
|
4139
|
-
setup(e, t) {
|
|
4140
|
-
let n = e.i18n || useI18n({
|
|
4141
|
-
useScope: e.scope,
|
|
4142
|
-
__useComponent: !0
|
|
4143
|
-
});
|
|
4144
|
-
return renderFormatter(e, t, NUMBER_FORMAT_OPTIONS_KEYS, (...e) => n[NumberPartsSymbol](...e));
|
|
4145
|
-
}
|
|
4146
|
-
});
|
|
4147
|
-
function getComposer$1(e, t) {
|
|
4148
|
-
let n = e;
|
|
4149
|
-
if (e.mode === "composition") return n.__getInstance(t) || e.global;
|
|
4150
|
-
{
|
|
4151
|
-
let r = n.__getInstance(t);
|
|
4152
|
-
return r == null ? e.global.__composer : r.__composer;
|
|
4153
|
-
}
|
|
4154
|
-
}
|
|
4155
|
-
function vTDirective(e) {
|
|
4156
|
-
let t = (t) => {
|
|
4157
|
-
process.env.NODE_ENV !== "production" && warnOnce(getWarnMessage(I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
4158
|
-
let { instance: n, value: r } = t;
|
|
4159
|
-
/* istanbul ignore if */
|
|
4160
|
-
if (!n || !n.$) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4161
|
-
let i = getComposer$1(e, n.$), a = parseValue(r);
|
|
4162
|
-
return [Reflect.apply(i.t, i, [...makeParams(a)]), i];
|
|
4163
|
-
};
|
|
4164
|
-
return {
|
|
4165
|
-
created: (n, r) => {
|
|
4166
|
-
let [i, a] = t(r);
|
|
4167
|
-
inBrowser && e.global === a && (n.__i18nWatcher = watch(a.locale, () => {
|
|
4168
|
-
r.instance && r.instance.$forceUpdate();
|
|
4169
|
-
})), n.__composer = a, n.textContent = i;
|
|
4170
|
-
},
|
|
4171
|
-
unmounted: (e) => {
|
|
4172
|
-
inBrowser && e.__i18nWatcher && (e.__i18nWatcher(), e.__i18nWatcher = void 0, delete e.__i18nWatcher), e.__composer && (e.__composer = void 0, delete e.__composer);
|
|
4173
|
-
},
|
|
4174
|
-
beforeUpdate: (e, { value: t }) => {
|
|
4175
|
-
if (e.__composer) {
|
|
4176
|
-
let n = e.__composer, r = parseValue(t);
|
|
4177
|
-
e.textContent = Reflect.apply(n.t, n, [...makeParams(r)]);
|
|
4178
|
-
}
|
|
4179
|
-
},
|
|
4180
|
-
getSSRProps: (e) => {
|
|
4181
|
-
let [n] = t(e);
|
|
4182
|
-
return { textContent: n };
|
|
4183
|
-
}
|
|
4184
|
-
};
|
|
4185
|
-
}
|
|
4186
|
-
function parseValue(e) {
|
|
4187
|
-
if (isString(e)) return { path: e };
|
|
4188
|
-
if (isPlainObject(e)) {
|
|
4189
|
-
if (!("path" in e)) throw createI18nError(I18nErrorCodes.REQUIRED_VALUE, "path");
|
|
4190
|
-
return e;
|
|
4191
|
-
} else throw createI18nError(I18nErrorCodes.INVALID_VALUE);
|
|
4192
|
-
}
|
|
4193
|
-
function makeParams(e) {
|
|
4194
|
-
let { path: t, locale: n, args: r, choice: i, plural: a } = e, o = {}, s = r || {};
|
|
4195
|
-
return isString(n) && (o.locale = n), isNumber(i) && (o.plural = i), isNumber(a) && (o.plural = a), [
|
|
4196
|
-
t,
|
|
4197
|
-
s,
|
|
4198
|
-
o
|
|
4199
|
-
];
|
|
4200
|
-
}
|
|
4201
|
-
function apply(e, t, ...n) {
|
|
4202
|
-
let r = isPlainObject(n[0]) ? n[0] : {};
|
|
4203
|
-
(!isBoolean(r.globalInstall) || r.globalInstall) && ([Translation.name, "I18nT"].forEach((t) => e.component(t, Translation)), [NumberFormat.name, "I18nN"].forEach((t) => e.component(t, NumberFormat)), [DatetimeFormat.name, "I18nD"].forEach((t) => e.component(t, DatetimeFormat))), e.directive("t", vTDirective(t));
|
|
4204
|
-
}
|
|
4205
|
-
var I18nInjectionKey = /* @__PURE__ */ makeSymbol("global-vue-i18n");
|
|
4206
|
-
function createI18n(e = {}) {
|
|
4207
|
-
let t = __VUE_I18N_LEGACY_API__ && isBoolean(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
4208
|
-
process.env.NODE_ENV !== "production" && t && warnOnce(getWarnMessage(I18nWarnCodes.DEPRECATE_LEGACY_MODE));
|
|
4209
|
-
let n = isBoolean(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [i, a] = createGlobal(e, t), o = /* @__PURE__ */ makeSymbol(process.env.NODE_ENV === "production" ? "" : "vue-i18n");
|
|
4210
|
-
function s(e) {
|
|
4211
|
-
return r.get(e) || null;
|
|
4212
|
-
}
|
|
4213
|
-
function l(e, t) {
|
|
4214
|
-
r.set(e, t);
|
|
4215
|
-
}
|
|
4216
|
-
function u(e) {
|
|
4217
|
-
r.delete(e);
|
|
4218
|
-
}
|
|
4219
|
-
let d = {
|
|
4220
|
-
get mode() {
|
|
4221
|
-
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
4222
|
-
},
|
|
4223
|
-
async install(e, ...r) {
|
|
4224
|
-
if (process.env.NODE_ENV !== "production" && (e.__VUE_I18N__ = d), e.__VUE_I18N_SYMBOL__ = o, e.provide(e.__VUE_I18N_SYMBOL__, d), isPlainObject(r[0])) {
|
|
4225
|
-
let e = r[0];
|
|
4226
|
-
d.__composerExtend = e.__composerExtend, d.__vueI18nExtend = e.__vueI18nExtend;
|
|
4227
|
-
}
|
|
4228
|
-
let i = null;
|
|
4229
|
-
!t && n && (i = injectGlobalFields(e, d.global)), __VUE_I18N_FULL_INSTALL__ && apply(e, d, ...r), __VUE_I18N_LEGACY_API__ && t && e.mixin(defineMixin(a, a.__composer, d));
|
|
4230
|
-
let s = e.unmount;
|
|
4231
|
-
if (e.unmount = () => {
|
|
4232
|
-
i && i(), d.dispose(), s();
|
|
4233
|
-
}, process.env.NODE_ENV !== "production") {
|
|
4234
|
-
if (!await enableDevTools(e, d)) throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
4235
|
-
let n = createEmitter();
|
|
4236
|
-
if (t) {
|
|
4237
|
-
let e = a;
|
|
4238
|
-
e.__enableEmitter && e.__enableEmitter(n);
|
|
4239
|
-
} else {
|
|
4240
|
-
let e = a;
|
|
4241
|
-
e[EnableEmitter] && e[EnableEmitter](n);
|
|
4242
|
-
}
|
|
4243
|
-
n.on("*", addTimelineEvent);
|
|
4244
|
-
}
|
|
4245
|
-
},
|
|
4246
|
-
get global() {
|
|
4247
|
-
return a;
|
|
4248
|
-
},
|
|
4249
|
-
dispose() {
|
|
4250
|
-
i.stop();
|
|
4251
|
-
},
|
|
4252
|
-
__instances: r,
|
|
4253
|
-
__getInstance: s,
|
|
4254
|
-
__setInstance: l,
|
|
4255
|
-
__deleteInstance: u
|
|
4256
|
-
};
|
|
4257
|
-
return d;
|
|
4258
|
-
}
|
|
4259
|
-
function useI18n(e = {}) {
|
|
4260
|
-
let t = getCurrentInstance$1();
|
|
4261
|
-
if (t == null) throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);
|
|
4262
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw createI18nError(I18nErrorCodes.NOT_INSTALLED);
|
|
4263
|
-
let n = getI18nInstance(t), r = getGlobalComposer(n), i = getComponentOptions(t), a = getScope(e, i);
|
|
4264
|
-
if (a === "global") return adjustI18nResources(r, e, i), r;
|
|
4265
|
-
if (a === "parent") {
|
|
4266
|
-
let i = getComposer(n, t, e.__useComponent);
|
|
4267
|
-
return i ??= (process.env.NODE_ENV !== "production" && warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)), r), i;
|
|
4268
|
-
}
|
|
4269
|
-
let o = n, s = o.__getInstance(t);
|
|
4270
|
-
if (s == null) {
|
|
4271
|
-
let n = assign({}, e);
|
|
4272
|
-
"__i18n" in i && (n.__i18n = i.__i18n), r && (n.__root = r), s = createComposer(n), o.__composerExtend && (s[DisposeSymbol] = o.__composerExtend(s)), setupLifeCycle(o, t, s), o.__setInstance(t, s);
|
|
4273
|
-
} else process.env.NODE_ENV !== "production" && a === "local" && warn(getWarnMessage(I18nWarnCodes.DUPLICATE_USE_I18N_CALLING));
|
|
4274
|
-
return s;
|
|
4275
|
-
}
|
|
4276
|
-
function createGlobal(e, t) {
|
|
4277
|
-
let n = effectScope(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => createVueI18n(e)) : n.run(() => createComposer(e));
|
|
4278
|
-
if (r == null) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4279
|
-
return [n, r];
|
|
4280
|
-
}
|
|
4281
|
-
function getI18nInstance(e) {
|
|
4282
|
-
let t = inject(e.isCE ? I18nInjectionKey : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
4283
|
-
/* istanbul ignore if */
|
|
4284
|
-
if (!t) throw createI18nError(e.isCE ? I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE : I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4285
|
-
return t;
|
|
4286
|
-
}
|
|
4287
|
-
function getScope(e, t) {
|
|
4288
|
-
return isEmptyObject(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
4289
|
-
}
|
|
4290
|
-
function getGlobalComposer(e) {
|
|
4291
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
4292
|
-
}
|
|
4293
|
-
function getComposer(e, t, n = !1) {
|
|
4294
|
-
let r = null, i = t.root, a = getParentComponentInstance(t, n);
|
|
4295
|
-
for (; a != null;) {
|
|
4296
|
-
let t = e;
|
|
4297
|
-
if (e.mode === "composition") r = t.__getInstance(a);
|
|
4298
|
-
else if (__VUE_I18N_LEGACY_API__) {
|
|
4299
|
-
let e = t.__getInstance(a);
|
|
4300
|
-
e != null && (r = e.__composer, n && r && !r[InejctWithOptionSymbol] && (r = null));
|
|
4301
|
-
}
|
|
4302
|
-
if (r != null || i === a) break;
|
|
4303
|
-
a = a.parent;
|
|
4304
|
-
}
|
|
4305
|
-
return r;
|
|
4306
|
-
}
|
|
4307
|
-
function getParentComponentInstance(e, t = !1) {
|
|
4308
|
-
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
4309
|
-
}
|
|
4310
|
-
function setupLifeCycle(e, t, n) {
|
|
4311
|
-
let r = null;
|
|
4312
|
-
onMounted(() => {
|
|
4313
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4314
|
-
t.__VUE_I18N__ = n, r = createEmitter();
|
|
4315
|
-
let e = n;
|
|
4316
|
-
e[EnableEmitter] && e[EnableEmitter](r), r.on("*", addTimelineEvent);
|
|
4317
|
-
}
|
|
4318
|
-
}, t), onUnmounted(() => {
|
|
4319
|
-
let i = n;
|
|
4320
|
-
process.env.NODE_ENV !== "production" && (r && r.off("*", addTimelineEvent), i[DisableEmitter] && i[DisableEmitter](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
4321
|
-
let a = i[DisposeSymbol];
|
|
4322
|
-
a && (a(), delete i[DisposeSymbol]);
|
|
4323
|
-
}, t);
|
|
4324
|
-
}
|
|
4325
|
-
var globalExportProps = [
|
|
4326
|
-
"locale",
|
|
4327
|
-
"fallbackLocale",
|
|
4328
|
-
"availableLocales"
|
|
4329
|
-
], globalExportMethods = [
|
|
4330
|
-
"t",
|
|
4331
|
-
"rt",
|
|
4332
|
-
"d",
|
|
4333
|
-
"n",
|
|
4334
|
-
"tm",
|
|
4335
|
-
"te"
|
|
4336
|
-
];
|
|
4337
|
-
function injectGlobalFields(e, t) {
|
|
4338
|
-
let n = Object.create(null);
|
|
4339
|
-
return globalExportProps.forEach((e) => {
|
|
4340
|
-
let r = Object.getOwnPropertyDescriptor(t, e);
|
|
4341
|
-
if (!r) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4342
|
-
let i = isRef(r.value) ? {
|
|
4343
|
-
get() {
|
|
4344
|
-
return r.value.value;
|
|
4345
|
-
},
|
|
4346
|
-
set(e) {
|
|
4347
|
-
r.value.value = e;
|
|
4348
|
-
}
|
|
4349
|
-
} : { get() {
|
|
4350
|
-
return r.get && r.get();
|
|
4351
|
-
} };
|
|
4352
|
-
Object.defineProperty(n, e, i);
|
|
4353
|
-
}), e.config.globalProperties.$i18n = n, globalExportMethods.forEach((n) => {
|
|
4354
|
-
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
4355
|
-
if (!r || !r.value) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
4356
|
-
Object.defineProperty(e.config.globalProperties, `$${n}`, r);
|
|
4357
|
-
}), () => {
|
|
4358
|
-
delete e.config.globalProperties.$i18n, globalExportMethods.forEach((t) => {
|
|
4359
|
-
delete e.config.globalProperties[`$${t}`];
|
|
4360
|
-
});
|
|
4361
|
-
};
|
|
4362
|
-
}
|
|
4363
|
-
var DatetimeFormat = /* @__PURE__ */ defineComponent({
|
|
4364
|
-
name: "i18n-d",
|
|
4365
|
-
props: assign({
|
|
4366
|
-
value: {
|
|
4367
|
-
type: [Number, Date],
|
|
4368
|
-
required: !0
|
|
4369
|
-
},
|
|
4370
|
-
format: { type: [String, Object] }
|
|
4371
|
-
}, baseFormatProps),
|
|
4372
|
-
setup(e, t) {
|
|
4373
|
-
let n = e.i18n || useI18n({
|
|
4374
|
-
useScope: e.scope,
|
|
4375
|
-
__useComponent: !0
|
|
4376
|
-
});
|
|
4377
|
-
return renderFormatter(e, t, DATETIME_FORMAT_OPTIONS_KEYS, (...e) => n[DatetimePartsSymbol](...e));
|
|
4378
|
-
}
|
|
4379
|
-
});
|
|
4380
|
-
if (initFeatureFlags(), registerMessageCompiler(compile), registerMessageResolver(resolveValue), registerLocaleFallbacker(fallbackWithLocaleChain), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4381
|
-
let e = getGlobalThis();
|
|
4382
|
-
e.__INTLIFY__ = !0, setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
4383
|
-
}
|
|
4384
|
-
process.env.NODE_ENV;
|
|
4385
|
-
var en_default = {
|
|
4386
|
-
unsaved: {
|
|
4387
|
-
tips: "UNSAVED CHANGES",
|
|
4388
|
-
save: "SAVE",
|
|
4389
|
-
cancel: "CANCEL"
|
|
4390
|
-
},
|
|
4391
|
-
copied: "Copied to clipboard",
|
|
4392
|
-
notData: "No data",
|
|
4393
|
-
select: {
|
|
4394
|
-
multiple: "Selected",
|
|
4395
|
-
item: "items"
|
|
4396
|
-
},
|
|
4397
|
-
confirm: {
|
|
4398
|
-
title: "OOPS",
|
|
4399
|
-
content: "Please confirm your operation."
|
|
4400
|
-
},
|
|
4401
|
-
fileUpload: {
|
|
4402
|
-
label: "Attachment",
|
|
4403
|
-
remove: "Remove",
|
|
4404
|
-
placeholder: "Choose file",
|
|
4405
|
-
maxSize: "Maximum size of attachments {size} MB",
|
|
4406
|
-
limit: "Maximum size of attachments cannot exceed",
|
|
4407
|
-
drag: "Drop the file here or <em>click to upload</em>",
|
|
4408
|
-
fileName: "Attachment name",
|
|
4409
|
-
pass: "Password",
|
|
4410
|
-
setPass: "Set download password >",
|
|
4411
|
-
confirm: "Confirm",
|
|
4412
|
-
cancel: "Cancel",
|
|
4413
|
-
image: "Image upload",
|
|
4414
|
-
delete: {
|
|
4415
|
-
heading: "Delete this image?",
|
|
4416
|
-
subheading: "Are you sure you want to delete this image? This operation cannot be undone."
|
|
4417
|
-
},
|
|
4418
|
-
deleteFile: {
|
|
4419
|
-
heading: "Delete this file?",
|
|
4420
|
-
subheading: "Are you sure you want to delete this file? This operation cannot be undone."
|
|
4421
|
-
},
|
|
4422
|
-
alt: {
|
|
4423
|
-
label: "ALT",
|
|
4424
|
-
heading: "Edit Image Alt Information",
|
|
4425
|
-
subheading: "Add a short description to the image to improve its chances of being indexed by search engines"
|
|
4426
|
-
},
|
|
4427
|
-
entity: {
|
|
4428
|
-
coverImage: {
|
|
4429
|
-
label: "Cover Image",
|
|
4430
|
-
tips: "",
|
|
4431
|
-
placeholder: "Cover Image",
|
|
4432
|
-
required: "Please enter cover image",
|
|
4433
|
-
custom: ""
|
|
4434
|
-
},
|
|
4435
|
-
title: {
|
|
4436
|
-
label: "File Name",
|
|
4437
|
-
tips: "",
|
|
4438
|
-
placeholder: "File Name",
|
|
4439
|
-
required: "Please enter file name",
|
|
4440
|
-
custom: ""
|
|
4441
|
-
},
|
|
4442
|
-
url: {
|
|
4443
|
-
label: "File Address",
|
|
4444
|
-
tips: "",
|
|
4445
|
-
placeholder: "File Address",
|
|
4446
|
-
required: "Please enter file address",
|
|
4447
|
-
custom: ""
|
|
4448
|
-
},
|
|
4449
|
-
description: {
|
|
4450
|
-
label: "Brief Introduction",
|
|
4451
|
-
tips: "",
|
|
4452
|
-
placeholder: "Brief introduction",
|
|
4453
|
-
required: "Please enter a brief introduction",
|
|
4454
|
-
custom: ""
|
|
4455
|
-
}
|
|
4456
|
-
}
|
|
4457
|
-
},
|
|
4458
|
-
editor: { placeholder: "Type or paste your content here!" },
|
|
4459
|
-
back: "Back"
|
|
4460
|
-
}, zh_CN_default = {
|
|
4461
|
-
unsaved: {
|
|
4462
|
-
tips: "未保存的更改",
|
|
4463
|
-
save: "保存",
|
|
4464
|
-
cancel: "取消"
|
|
4465
|
-
},
|
|
4466
|
-
copied: "已复制到剪贴板",
|
|
4467
|
-
notData: "数据为空",
|
|
4468
|
-
select: { multiple: "已选中 {0} 个" },
|
|
4469
|
-
fileUpload: {
|
|
4470
|
-
label: "附件",
|
|
4471
|
-
remove: "移除",
|
|
4472
|
-
placeholder: "Choose file",
|
|
4473
|
-
maxSize: "附件最大 {size} MB",
|
|
4474
|
-
limit: "附件最大不能超过",
|
|
4475
|
-
drag: "将文件拖放到这里或 <em>点击上传</em>",
|
|
4476
|
-
fileName: "附件名称",
|
|
4477
|
-
pass: "密码",
|
|
4478
|
-
setPass: "设置下载密码 >",
|
|
4479
|
-
confirm: "确定",
|
|
4480
|
-
cancel: "取消",
|
|
4481
|
-
image: "图片上传",
|
|
4482
|
-
delete: {
|
|
4483
|
-
heading: "删除此图像?",
|
|
4484
|
-
subheading: "是否确实要删除此图像?此操作无法撤消。"
|
|
4485
|
-
},
|
|
4486
|
-
deleteFile: {
|
|
4487
|
-
heading: "删除此文件?",
|
|
4488
|
-
subheading: "是否确实要删除此文件?此操作无法撤消。"
|
|
4489
|
-
},
|
|
4490
|
-
alt: {
|
|
4491
|
-
label: "ALT",
|
|
4492
|
-
heading: "编辑图片 Alt 信息",
|
|
4493
|
-
subheading: "为图片添加简短的描述,提高被搜索引擎收录机会"
|
|
4494
|
-
},
|
|
4495
|
-
entity: {
|
|
4496
|
-
coverImage: {
|
|
4497
|
-
label: "封面图片",
|
|
4498
|
-
tips: "",
|
|
4499
|
-
placeholder: "封面图片",
|
|
4500
|
-
required: "请输入封面图片",
|
|
4501
|
-
custom: ""
|
|
4502
|
-
},
|
|
4503
|
-
title: {
|
|
4504
|
-
label: "文件名称",
|
|
4505
|
-
tips: "",
|
|
4506
|
-
placeholder: "文件名称",
|
|
4507
|
-
required: "请输入文件名称",
|
|
4508
|
-
custom: ""
|
|
4509
|
-
},
|
|
4510
|
-
url: {
|
|
4511
|
-
label: "文件地址",
|
|
4512
|
-
tips: "",
|
|
4513
|
-
placeholder: "文件地址",
|
|
4514
|
-
required: "请输入文件地址",
|
|
4515
|
-
custom: ""
|
|
4516
|
-
},
|
|
4517
|
-
description: {
|
|
4518
|
-
label: "简要介绍",
|
|
4519
|
-
tips: "",
|
|
4520
|
-
placeholder: "简要介绍",
|
|
4521
|
-
required: "请输入简要介绍",
|
|
4522
|
-
custom: ""
|
|
4523
|
-
}
|
|
4524
|
-
}
|
|
4525
|
-
},
|
|
4526
|
-
editor: { placeholder: "在此处输入或粘贴您的内容!" },
|
|
4527
|
-
back: "返回"
|
|
4528
|
-
}, base_default = createI18n({
|
|
4529
|
-
fallbackLocale: "en",
|
|
4530
|
-
globalInjection: !0,
|
|
4531
|
-
locale: (() => {
|
|
4532
|
-
let e = localStorage.getItem("ogaLocale");
|
|
4533
|
-
return e ||= navigator.language, e != null && (e = "en|zh-CN".indexOf(e) > -1 ? e : "en"), localStorage.setItem("ogaLocale", e), e;
|
|
4534
|
-
})(),
|
|
4535
|
-
messages: {
|
|
4536
|
-
"zh-CN": {
|
|
4537
|
-
...zh_CN_default,
|
|
4538
|
-
main: {}
|
|
4539
|
-
},
|
|
4540
|
-
en: {
|
|
4541
|
-
...en_default,
|
|
4542
|
-
main: {}
|
|
4543
|
-
}
|
|
4544
|
-
}
|
|
4545
|
-
}), _hoisted_1 = { class: "file-grid-content" }, _hoisted_2 = ["src", "alt"], _hoisted_3 = { class: "file-grid-action" }, _hoisted_4 = ["onClick"], _hoisted_5 = ["onClick"], _hoisted_6 = {
|
|
4546
|
-
key: 0,
|
|
4547
|
-
class: "image-alt"
|
|
4548
|
-
}, _hoisted_7 = { class: "oga-image-upload-drag" }, _hoisted_8 = ["innerHTML"], _hoisted_9 = { class: "el-upload__tip" }, _hoisted_10 = { class: "oga-alt-preview" }, _hoisted_11 = ["src", "alt"], _hoisted_12 = { class: "text-secondary" }, src_default = /* @__PURE__ */ defineComponent({
|
|
4549
|
-
__name: "index",
|
|
4550
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4551
|
-
action: {
|
|
4552
|
-
type: String,
|
|
4553
|
-
default: ""
|
|
4554
|
-
},
|
|
4555
|
-
tip: {
|
|
4556
|
-
type: String,
|
|
4557
|
-
default: ""
|
|
4558
|
-
},
|
|
4559
|
-
folder: {
|
|
4560
|
-
type: String,
|
|
4561
|
-
default: ""
|
|
4562
|
-
},
|
|
4563
|
-
max: {
|
|
4564
|
-
type: Number,
|
|
4565
|
-
default: 12
|
|
4566
|
-
},
|
|
4567
|
-
radius: {
|
|
4568
|
-
type: Number,
|
|
4569
|
-
default: 6
|
|
4570
|
-
},
|
|
4571
|
-
headers: {
|
|
4572
|
-
type: String,
|
|
4573
|
-
token: ""
|
|
4574
|
-
},
|
|
4575
|
-
refId: {
|
|
4576
|
-
type: String,
|
|
4577
|
-
default: ""
|
|
4578
|
-
},
|
|
4579
|
-
resourceType: {
|
|
4580
|
-
type: Number,
|
|
4581
|
-
default: () => 1
|
|
4582
|
-
}
|
|
4583
|
-
}, {
|
|
4584
|
-
modelValue: { default: () => [] },
|
|
4585
|
-
modelModifiers: {}
|
|
4586
|
-
}),
|
|
4587
|
-
emits: ["update:modelValue"],
|
|
4588
|
-
setup(e) {
|
|
4589
|
-
let n = useModel(e, "modelValue"), r = ref(!1), f = ref({
|
|
4590
|
-
title: "",
|
|
4591
|
-
url: ""
|
|
4592
|
-
}), m = e, _ = (e) => e.indexOf(".") === -1 ? e : e.substring(0, e.lastIndexOf(".")), v = (e, t) => {
|
|
4593
|
-
n.value.push({
|
|
4594
|
-
title: _(t.name).replace(/-/gi, " "),
|
|
4595
|
-
url: e.data.url,
|
|
4596
|
-
refType: m.resourceType,
|
|
4597
|
-
refId: m.refId,
|
|
4598
|
-
fileType: getFileType(t.name),
|
|
4599
|
-
suffix: getSuffix(t.name)
|
|
4600
|
-
});
|
|
4601
|
-
}, y = (e) => {
|
|
4602
|
-
r.value = !0, f.value = e;
|
|
4603
|
-
}, b = () => {
|
|
4604
|
-
r.value = !1, f.value.title = f.value.title.replace(/(^\s*)|(\s*$)/g, "");
|
|
4605
|
-
}, x = (e) => {
|
|
4606
|
-
ElMessageBox.confirm(base_default.global.t("fileUpload.delete.subheading"), base_default.global.t("fileUpload.delete.heading"), {
|
|
4607
|
-
confirmButtonText: base_default.global.t("fileUpload.confirm"),
|
|
4608
|
-
cancelButtonText: base_default.global.t("fileUpload.cancel"),
|
|
4609
|
-
type: "warning",
|
|
4610
|
-
modalClass: "file-grid-overlay"
|
|
4611
|
-
}).then(() => {
|
|
4612
|
-
n.value.splice(e, 1);
|
|
4613
|
-
});
|
|
4614
|
-
};
|
|
4615
|
-
return (m, _) => {
|
|
4616
|
-
let w = resolveComponent("el-upload"), D = resolveComponent("el-col"), j = resolveComponent("el-input"), M = resolveComponent("el-row"), I = resolveComponent("el-button"), L = resolveComponent("el-dialog");
|
|
4617
|
-
return openBlock(), createElementBlock("div", { style: normalizeStyle({ "--radius": e.radius }) }, [withDirectives((openBlock(), createElementBlock("div", { class: normalizeClass(["file-grid", n.value.length === 0 ? "none" : ""]) }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.value, (e, t) => (openBlock(), createElementBlock("div", {
|
|
4618
|
-
class: "file-grid-item file-grid-drag",
|
|
4619
|
-
key: `file-guid-${t}`
|
|
4620
|
-
}, [createElementVNode("div", _hoisted_1, [
|
|
4621
|
-
createElementVNode("img", {
|
|
4622
|
-
src: e.url,
|
|
4623
|
-
alt: e.title
|
|
4624
|
-
}, null, 8, _hoisted_2),
|
|
4625
|
-
createElementVNode("div", _hoisted_3, [createElementVNode("p", null, [createElementVNode("label", { onClick: (t) => y(e) }, [..._[3] ||= [createElementVNode("svg", { viewBox: "0 0 1532 1024" }, [createElementVNode("path", { d: "M188.74248556 561.99248544h151.59011704l-79.47192457-219.32187142L188.74248556 561.99248544z m-174.16736806 258.02573071l210.03617041-612.81110961h165.65251927L614.48494155 820.01821615h-182.12423719l-64.51933309-181.0469794h-205.46266378L101.51688777 820.01821615H14.5751175z m670.86689983 0V207.20710654h171.58065923v530.3073816H1078.93125552V820.01821615H685.44201733z m512.37459341 0V289.71083327H1033.77675345V207.20710654h499.92485187v82.50372673h-163.57863661V820.01821615H1197.81661074z" })], -1)]], 8, _hoisted_4), createElementVNode("label", { onClick: (e) => x(t) }, [..._[4] ||= [createElementVNode("svg", {
|
|
4626
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4627
|
-
viewBox: "0 0 1024 1024"
|
|
4628
|
-
}, [createElementVNode("path", { d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32" })], -1)]], 8, _hoisted_5)])]),
|
|
4629
|
-
unref(isEmpty)(e.title) ? createCommentVNode("v-if", !0) : (openBlock(), createElementBlock("label", _hoisted_6))
|
|
4630
|
-
])]))), 128)), n.value.length < e.max ? (openBlock(), createBlock(w, {
|
|
4631
|
-
key: 0,
|
|
4632
|
-
class: normalizeClass(n.value.length === 0 ? "file-grid-none" : "file-grid-item"),
|
|
4633
|
-
drag: "",
|
|
4634
|
-
action: e.action,
|
|
4635
|
-
multiple: "",
|
|
4636
|
-
"on-success": v,
|
|
4637
|
-
"show-file-list": !1
|
|
4638
|
-
}, createSlots({
|
|
4639
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_7, [_[5] ||= createElementVNode("svg", {
|
|
4640
|
-
class: "el-icon--upload",
|
|
4641
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4642
|
-
viewBox: "0 0 1024 1024"
|
|
4643
|
-
}, [createElementVNode("path", {
|
|
4644
|
-
fill: "currentColor",
|
|
4645
|
-
d: "M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"
|
|
4646
|
-
})], -1), n.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
4647
|
-
key: 0,
|
|
4648
|
-
class: "el-upload__text",
|
|
4649
|
-
innerHTML: unref(base_default).global.tm("fileUpload.drag")
|
|
4650
|
-
}, null, 8, _hoisted_8)) : createCommentVNode("v-if", !0)])]),
|
|
4651
|
-
_: 2
|
|
4652
|
-
}, [unref(isNotEmpty)(e.tip) ? {
|
|
4653
|
-
name: "tip",
|
|
4654
|
-
fn: withCtx(() => [createElementVNode("div", _hoisted_9, toDisplayString(e.tip), 1)]),
|
|
4655
|
-
key: "0"
|
|
4656
|
-
} : void 0]), 1032, ["class", "action"])) : createCommentVNode("v-if", !0)], 2)), [[unref(so), [n.value, {
|
|
4657
|
-
animation: 150,
|
|
4658
|
-
ghostClass: "ghost"
|
|
4659
|
-
}]]]), createVNode(L, {
|
|
4660
|
-
title: unref(base_default).global.t("fileUpload.alt.heading"),
|
|
4661
|
-
"close-on-click-modal": !1,
|
|
4662
|
-
modelValue: r.value,
|
|
4663
|
-
"onUpdate:modelValue": _[2] ||= (e) => r.value = e,
|
|
4664
|
-
class: "file-grid-alt",
|
|
4665
|
-
width: "660px"
|
|
4666
|
-
}, {
|
|
4667
|
-
footer: withCtx(() => [createVNode(I, { onClick: _[1] ||= (e) => r.value = !1 }, {
|
|
4668
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(base_default).global.t("fileUpload.cancel")), 1)]),
|
|
4669
|
-
_: 1
|
|
4670
|
-
}), createVNode(I, {
|
|
4671
|
-
type: "primary",
|
|
4672
|
-
onClick: b
|
|
4673
|
-
}, {
|
|
4674
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(base_default).global.t("fileUpload.confirm")), 1)]),
|
|
4675
|
-
_: 1
|
|
4676
|
-
})]),
|
|
4677
|
-
default: withCtx(() => [createVNode(M, { gutter: 20 }, {
|
|
4678
|
-
default: withCtx(() => [createVNode(D, { span: 5 }, {
|
|
4679
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_10, [createElementVNode("img", {
|
|
4680
|
-
src: f.value.url,
|
|
4681
|
-
alt: f.value.title
|
|
4682
|
-
}, null, 8, _hoisted_11)])]),
|
|
4683
|
-
_: 1
|
|
4684
|
-
}), createVNode(D, { span: 17 }, {
|
|
4685
|
-
default: withCtx(() => [
|
|
4686
|
-
createElementVNode("p", null, toDisplayString(unref(base_default).global.t("fileUpload.alt.label")), 1),
|
|
4687
|
-
createVNode(j, {
|
|
4688
|
-
modelValue: f.value.title,
|
|
4689
|
-
"onUpdate:modelValue": _[0] ||= (e) => f.value.title = e,
|
|
4690
|
-
placeholder: unref(base_default).global.t("fileUpload.alt.placeholder")
|
|
4691
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
4692
|
-
createElementVNode("p", _hoisted_12, toDisplayString(unref(base_default).global.t("fileUpload.alt.subheading")), 1)
|
|
4693
|
-
]),
|
|
4694
|
-
_: 1
|
|
4695
|
-
})]),
|
|
4696
|
-
_: 1
|
|
4697
|
-
})]),
|
|
4698
|
-
_: 1
|
|
4699
|
-
}, 8, ["title", "modelValue"])], 4);
|
|
4700
|
-
};
|
|
4701
|
-
}
|
|
4702
|
-
}), image_upload_default = { install(e) {
|
|
4703
|
-
e.component("OgaImageUpload", src_default);
|
|
4704
|
-
} };
|
|
4705
|
-
export { image_upload_default as default };
|