ai-chat-bot-interface 1.7.10 → 1.7.11
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.
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
(function(ze,
|
|
1
|
+
(function(ze,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(ze=typeof globalThis<"u"?globalThis:ze||self,o(ze["ai-chat-bot-interface"]={},ze.Vue))})(this,function(ze,o){"use strict";var qr=document.createElement("style");qr.textContent=`/*!
|
|
2
|
+
* Viewer.js v1.11.7
|
|
3
|
+
* https://fengyuanchen.github.io/viewerjs
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2015-present Chen Fengyuan
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
*
|
|
8
|
+
* Date: 2024-11-24T04:32:14.526Z
|
|
9
|
+
*/.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.flexr[data-v-7da603ee]{display:flex;flex-direction:row}.flexc[data-v-7da603ee]{display:flex;flex-direction:column}.flexrss[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-7da603ee]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.dishes_details[data-v-7da603ee]{padding:1px 10px}.dishes_details .switch_open[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;cursor:pointer;height:26px;line-height:26px;font-size:10px;color:#666}.dishes_details .switch_open .icon[data-v-7da603ee]{font-size:18px}.dishes_details .tips[data-v-7da603ee]{vertical-align:middle;font-size:13px;font-weight:400;margin-top:10px}.dishes_details .tips .star[data-v-7da603ee]{color:red;vertical-align:middle;margin-right:.4em}.dishes_details .title[data-v-7da603ee]{font-weight:600;font-size:15px;color:#000;margin:15px 0}.dishes_details .text[data-v-7da603ee]{font-weight:400;font-size:13px;color:#000}.dishes_details .step_row[data-v-7da603ee]{margin-bottom:15px}.dishes_details .step_item[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.dishes_details .step_item .num[data-v-7da603ee]{width:4em;color:#666;font-size:13px}.dishes_details .step_item .desc[data-v-7da603ee]{flex:1;font-size:13px;color:#000}.dishes_details .line[data-v-7da603ee]{margin:5px 0;border-bottom:1px solid #fff}.dishes_details .data_row[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}.dishes_details .data_item[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex:1;gap:10px;line-height:26px}.dishes_details .data_item .label[data-v-7da603ee]{width:72px;font-weight:400;font-size:13px;color:#666}.dishes_details .data_item .content[data-v-7da603ee]{flex:1;width:60px;font-weight:400;font-size:13px;color:#000}.dishes_details .tag[data-v-7da603ee]{padding:0 15px;background-color:#fff;border-radius:15px;line-height:30px;font-weight:400;font-size:13px;color:#000}.dishes_details .tag_box[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}.dishes_details .collapse_btn[data-v-7da603ee]{width:100px;height:32px;line-height:32px;text-align:center;border-radius:10px 10px 0 0;background-color:#e2e2e2;color:#999;margin:20px auto 0}.dishes_box[data-v-7da603ee]{transition:height .1s ease-in-out;height:92px;background-color:#ededed;border-radius:10px;margin:10px 0;overflow:hidden}.dishes_wrap[data-v-7da603ee]{display:grid;grid-template-columns:72px 1fr;grid-column-gap:10px;background-color:#fff;border-radius:10px;padding:10px;box-sizing:border-box;min-height:92px}.dishes_wrap .img[data-v-7da603ee]{cursor:pointer;width:100%;border-radius:8px}.dishes_wrap .name[data-v-7da603ee]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;font-weight:600;font-size:14px;color:#000;line-height:16px}.dishes_wrap .sub[data-v-7da603ee]{margin-top:10px;font-weight:400;font-size:10px;color:#666;line-height:12px}.flexr[data-v-adcdb920]{display:flex;flex-direction:row}.flexc[data-v-adcdb920]{display:flex;flex-direction:column}.flexrss[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.dl_wrap[data-v-adcdb920]{max-width:320px}.dl_wrap .sep_line[data-v-adcdb920]{border-top:1px solid #d9d9d9;margin:20px auto}.dl_wrap .title[data-v-adcdb920]{font-size:16px;font-weight:700;margin:0}.dl_wrap .date[data-v-adcdb920]{font-size:16px;font-weight:700;margin:15px auto 0}.dl_wrap .btn[data-v-adcdb920]{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;width:100%;height:40px;border-radius:19px;text-align:center;color:#039938;border:1px solid #039938;background-color:#fff}.dl_wrap .btn .name[data-v-adcdb920]{font-weight:600;font-size:14px;line-height:18px}.dl_wrap .btn .sub[data-v-adcdb920]{font-weight:400;font-size:8px;line-height:10px}.dl_wrap .btn_2[data-v-adcdb920]{color:#fff;background-color:#039938}.dl_wrap .btn_group[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;margin-top:20px}.dl_list[data-v-adcdb920]{height:384px;overflow:hidden}.dl_list.show_full[data-v-adcdb920]{height:auto;overflow:initial}.dl_full[data-v-adcdb920]{display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;width:325px;height:38px;line-height:38px;margin:10px 0;background:#fff;border-radius:10px;text-align:center;font-weight:400;font-size:13px;color:#333}.dl_full[data-v-adcdb920]:after{content:"";display:inline-block;width:14px;height:14px;background:url(https://prodstatic.weis1606.cn/api/smartFood/icon/arrow_left.svg) center / contain no-repeat}.dl_full.show_full[data-v-adcdb920]:after{transform:rotate(-90deg)}.flexr[data-v-b9dd25a1]{display:flex;flex-direction:row}.flexc[data-v-b9dd25a1]{display:flex;flex-direction:column}.flexrss[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-b9dd25a1]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.card[data-v-b9dd25a1]{padding:10px 15px;margin-bottom:10px;background-color:#fff;border-radius:10px}.card .title[data-v-b9dd25a1]{font-size:14px;font-weight:600;line-height:24px}.card .row[data-v-b9dd25a1]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin:10px 0}.card .sep[data-v-b9dd25a1]{border-bottom:1px solid #ddd}.card .name[data-v-b9dd25a1]{font-weight:400;font-size:14px;color:#666;line-height:24px}.card .content[data-v-b9dd25a1]{font-weight:400;font-size:14px;color:#666;line-height:24px;color:#000;font-weight:600}.btn[data-v-b9dd25a1]{cursor:pointer;width:100%;height:38px;line-height:38px;background-color:#e6f5eb;border-radius:19px;text-align:center;font-weight:600;font-size:13px;color:#039938}.btn_2[data-v-b9dd25a1]{color:#fff;background-color:#039938}.btn_group[data-v-b9dd25a1]{display:grid;grid-template-columns:1fr;grid-column-gap:10px;margin-top:20px}.flexr[data-v-2044a301]{display:flex;flex-direction:row}.flexc[data-v-2044a301]{display:flex;flex-direction:column}.flexrss[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-2044a301]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-2044a301]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-2044a301]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-2044a301]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-2044a301]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-2044a301]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-2044a301]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-2044a301]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-2044a301]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-2044a301]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-2044a301]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-2044a301]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-2044a301]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-2044a301]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-2044a301]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-2044a301]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.om_wrap[data-v-2044a301]{box-sizing:border-box;width:100%;padding:10px 10px 5px;background-color:#fff}.om_quick[data-v-2044a301]{display:grid;grid-auto-flow:column;gap:10px;overflow-x:auto;justify-content:start;scroll-behavior:smooth;scrollbar-width:none}.om_quick[data-v-2044a301]::-webkit-scrollbar{display:none}.om_quick .tag[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;cursor:pointer;width:fit-content;white-space:nowrap;font-weight:400;font-size:14px;color:#333;line-height:16px;text-align:left;padding:6px 10px;border-radius:10px;border:1px solid #d0d0d0}.om_quick .icon[data-v-2044a301]{font-size:18px;color:#039938}.om_operate[data-v-2044a301]{display:grid;grid-template-columns:1fr auto;background:#fff;align-items:center}.om_operate_box[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}.om_operate_box .new_chat[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;width:46px;height:46px;font-size:30px;border-radius:23px;background:#fff;box-shadow:0 2px 8px #0003}.om_operate_wrap[data-v-2044a301]{margin:10px 0 5px;width:100%;min-height:48px;padding:10px;border-radius:24px;box-sizing:border-box;box-shadow:0 2px 12px #0003}.om_operate_wrap .file_card[data-v-2044a301]{width:64px;height:64px;border-radius:15px;background-color:#f7f7f7;position:relative}.om_operate_wrap .file_card .img[data-v-2044a301]{width:100%;height:100%;object-fit:contain}.om_operate_wrap .file_card .close[data-v-2044a301]{cursor:pointer;font-size:16px;color:#fff;position:absolute;top:0;right:0;z-index:5}.om_operate_wrap .file_card .process[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;height:100%;background-color:#0009;position:absolute;top:0;left:0;z-index:8}.om_operate_wrap .file_add[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:64px;height:64px;border-radius:15px;background-color:#f7f7f7;position:relative;cursor:pointer;font-size:24px}.om_operate_wrap .file_add .img[data-v-2044a301]{width:100%;height:100%;object-fit:contain}.om_operate_wrap .file_add .close[data-v-2044a301]{cursor:pointer;font-size:16px;color:#fff;position:absolute;top:0;right:0;z-index:5}.om_operate_wrap .file_add .process[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;height:100%;background-color:#0009;position:absolute;top:0;left:0;z-index:8}.om_operate_wrap .file_list[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding-bottom:10px;position:relative}.om_operate_wrap .file_list_box[data-v-2044a301]{transition:all .2s ease-in-out;overflow:hidden;height:74px;opacity:1}.om_operate_wrap .file_list_box.hidden[data-v-2044a301]{height:0;opacity:0}.om_operate_wrap .file_close[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;color:#fff;width:20px;height:20px;border-radius:50%;background-color:#00000080;position:absolute;right:0;top:0;z-index:10}.om_operate .input[data-v-2044a301]{font-size:16px;line-height:24px;overflow-y:auto;resize:none;padding:0 0 0 10px;border-radius:24px;border:none}.om_operate .input[data-v-2044a301]:focus-visible{outline:none}.om_operate .btn[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:100%;color:#039938;font-size:32px;padding:0 10px}.om_extra[data-v-2044a301]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;padding:10px 0 20px}.om_extra .card[data-v-2044a301]{text-align:center}.om_extra .text[data-v-2044a301]{color:#666;font-size:14px;line-height:24px;margin-top:6px}.om_extra .icon[data-v-2044a301]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:72px;height:72px;color:#000;font-size:24px;background-color:#f7f7f7;border-radius:15px}.om_ai_tips[data-v-2044a301]{height:24px;line-height:10px;text-align:center;font-size:10px;color:#bbb}.flexr[data-v-da7f1fd0]{display:flex;flex-direction:row}.flexc[data-v-da7f1fd0]{display:flex;flex-direction:column}.flexrss[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-da7f1fd0]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-da7f1fd0]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.img_wrap[data-v-da7f1fd0]{display:grid;gap:10px;justify-content:right;padding:10px 0}.img_wrap .img[data-v-da7f1fd0]{cursor:pointer}.img_wrap.grid_1[data-v-da7f1fd0]{grid-template-columns:200px}.img_wrap.grid_2[data-v-da7f1fd0]{display:grid;grid-template-columns:100px 100px}.flexr[data-v-9911ed82]{display:flex;flex-direction:row}.flexc[data-v-9911ed82]{display:flex;flex-direction:column}.flexrss[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-9911ed82]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-9911ed82]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.text[data-v-9911ed82]{word-break:break-all;white-space:pre-wrap;margin:0}.link[data-v-9911ed82]{cursor:pointer;color:#039938}.flexr[data-v-fd7bbf0d]{display:flex;flex-direction:row}.flexc[data-v-fd7bbf0d]{display:flex;flex-direction:column}.flexrss[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-fd7bbf0d]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.sc_wrap[data-v-fd7bbf0d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:10px;cursor:default;padding:10px;margin:10px 0;border-radius:10px;background-color:#fff}.sc_wrap .img[data-v-fd7bbf0d]{cursor:pointer;width:72px;height:72px;flex-shrink:0;border-radius:10px;background-color:#d9d9d9}.sc_wrap .name[data-v-fd7bbf0d]{font-weight:600;font-size:14px;color:#000;line-height:16px}.sc_wrap .address[data-v-fd7bbf0d]{margin-top:10px;font-weight:400;font-size:10px;color:#666;line-height:12px}.flexr[data-v-b2b0e400]{display:flex;flex-direction:row}.flexc[data-v-b2b0e400]{display:flex;flex-direction:column}.flexrss[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-b2b0e400]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-b2b0e400]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.pup_mask[data-v-b2b0e400]{transition:background-color .2s ease-in-out;width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:899}.pup_wrap[data-v-b2b0e400]{transition:bottom .2s ease-in-out;width:100%;height:50vh;background:#fff;border-radius:16px 16px 0 0;overflow:hidden;position:absolute;bottom:0;left:0;z-index:900}.pup_header[data-v-b2b0e400]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:56px;line-height:56px;background-color:#fff;position:relative}.pup_header .icon_down[data-v-b2b0e400]{padding:0 16px;font-size:24px}.pup_header .title[data-v-b2b0e400]{width:100%;text-align:center;font-size:16px;font-weight:600}.pup_header .left[data-v-b2b0e400]{height:56px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;position:absolute;left:0;top:0;z-index:5}.pup_header .right[data-v-b2b0e400]{height:56px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;position:absolute;right:0;top:0;z-index:5}.pup_header .btn[data-v-b2b0e400]{cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin-right:16px;text-align:center;border-radius:16px;background-color:#00dc4e}.flexr[data-v-06b2822d]{display:flex;flex-direction:row}.flexc[data-v-06b2822d]{display:flex;flex-direction:column}.flexrss[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-06b2822d]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-06b2822d]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.pf_wrap[data-v-06b2822d]{width:100%}.pf_form[data-v-06b2822d]{padding:0 15px;background:#fff;border-radius:8px}.pf_row[data-v-06b2822d]{display:flex;gap:6px;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid #dadada;height:54px;line-height:24px}.pf_row[data-v-06b2822d]:last-child{border-bottom:none}.pf_row .title[data-v-06b2822d]{font-size:14px;font-weight:600;position:relative;line-height:24px}.pf_row .title.is_required[data-v-06b2822d]:after{content:"*";color:red;font-size:14px;line-height:24px;position:absolute;right:-.6em}.pf_row .content[data-v-06b2822d]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.pf_row .arrow[data-v-06b2822d]{color:#000;font-size:22px}.pf_row .text_row[data-v-06b2822d]{display:inline-block;font-size:14px;text-align:right;width:156px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pf_row .input[data-v-06b2822d]{font-size:14px;text-align:right;outline:none;border:none}.pf_btn[data-v-06b2822d]{cursor:pointer;height:40px;line-height:40px;border-radius:20px;text-align:center;font-size:14px;font-weight:600;color:#000;background:#00dc4e;margin-top:15px}.pf_btn.disabled[data-v-06b2822d]{color:#fff;background:#d9d9d9}.sex_wrap[data-v-06b2822d]{padding:50px 0}.sex_wrap .sex[data-v-06b2822d]{transition:.1s ease-in-out;font-size:15px;font-weight:400;text-align:center;height:58px;line-height:58px;border-top:1px solid #fff;border-bottom:1px solid #fff}.sex_wrap .sex.selected[data-v-06b2822d]{font-size:20px;font-weight:600;color:#039938;border-color:#d9d9d9}.input_wrap[data-v-06b2822d]{text-align:center;padding:20px 0}.input_wrap .input[data-v-06b2822d]{height:64px;line-height:64px;font-size:36px;text-align:center;width:200px;outline:none;border:none;margin:auto}.input_wrap .input[data-v-06b2822d] .van-field__control{text-align:center}.input_wrap .unit[data-v-06b2822d]{font-size:15px;font-weight:400;line-height:22px}.sport_wrap[data-v-06b2822d]{padding:20px 0}.sport_wrap .row[data-v-06b2822d]{transition:.1s ease-in-out;height:58px;border-top:1px solid #fff;border-bottom:1px solid #fff}.sport_wrap .row .name[data-v-06b2822d]{font-size:15px;font-weight:400;text-align:center;line-height:28px}.sport_wrap .row .sub[data-v-06b2822d]{font-size:13px;font-weight:400;text-align:center;line-height:18px}.sport_wrap .row.selected[data-v-06b2822d]{color:#039938;border-color:#d9d9d9}.sport_wrap .row.selected .name[data-v-06b2822d]{color:#039938;font-size:16px;font-weight:600;text-align:center;line-height:32px}.sport_wrap .row.selected .sub[data-v-06b2822d]{color:#039938;font-size:12px;font-weight:400;text-align:center;line-height:16px}.taste_wrap[data-v-06b2822d]{padding:20px}.taste_wrap .title[data-v-06b2822d]{font-size:15px;font-weight:600;line-height:32px;margin-bottom:16px}.taste_wrap .box[data-v-06b2822d]{display:inline-flex;flex-wrap:wrap;gap:10px}.taste_wrap .line[data-v-06b2822d]{border-top:1px solid #e9e9e9;margin:25px 0}.taste_wrap .tag[data-v-06b2822d]{height:32px;line-height:32px;padding:0 15px;background-color:#f3f4f5;border-radius:16px;font-size:14px;text-align:center}.taste_wrap .tag.selected[data-v-06b2822d]{color:#fff;background-color:#000}.flexr[data-v-85614598]{display:flex;flex-direction:row}.flexc[data-v-85614598]{display:flex;flex-direction:column}.flexrss[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start}.flexrsc[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.flexrse[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-end}.flexrsst[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch}.flexrbs[data-v-85614598]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.flexrbc[data-v-85614598]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.flexrac[data-v-85614598]{display:flex;flex-direction:row;justify-content:space-around;align-items:center}.flexrbe[data-v-85614598]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end}.flexrcs[data-v-85614598]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.flexrcc[data-v-85614598]{display:flex;flex-direction:row;justify-content:center;align-items:center}.flexrce[data-v-85614598]{display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.flexres[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.flexrec[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.flexree[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-end}.flexcss[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.flexcsc[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.flexcse[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end}.flexccs[data-v-85614598]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.flexccc[data-v-85614598]{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexcce[data-v-85614598]{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.flexcbs[data-v-85614598]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.flexcbc[data-v-85614598]{display:flex;flex-direction:column;justify-content:space-between;align-items:center}.flexcbe[data-v-85614598]{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.flexces[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.flexcec[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.flexcee[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}.btn[data-v-85614598]{background-color:#fff;padding:8px;outline:none}.btn[data-v-85614598]:hover{border-color:transparent}.board_name[data-v-85614598]{font-size:20px;font-weight:500;margin:10px 0}.board_desc[data-v-85614598]{display:inline-block;font-size:14px;text-align:left;padding:12px 16px;background-color:#fff;border-radius:8px;margin-bottom:10px}.board_sug[data-v-85614598]{cursor:pointer;font-size:14px;margin-bottom:8px;padding:6px 16px;border-radius:8px;border:1px solid rgba(68,83,130,.25)}.board_sug[data-v-85614598]:hover{background-color:#eaeaea}.cui_btn[data-v-85614598]{cursor:pointer;width:100%;height:38px;line-height:38px;box-sizing:border-box;background-color:#e6f5eb;border-radius:19px;text-align:center;font-weight:600;font-size:13px;color:#039938;margin-top:15px}.cui_btn_2[data-v-85614598]{color:#fff;background-color:#039938}.cui_btn_group[data-v-85614598]{display:grid;grid-template-columns:1fr;grid-column-gap:10px;margin-top:20px}.cui_box[data-v-85614598]{width:100%;height:100%;font-size:14px;background-color:#fff}.cui_box .btn[data-v-85614598]{border:none}.cui_wrap[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;max-width:630px;height:100%;margin:0 auto;background-color:#fff}.cui_header[data-v-85614598]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:0 16px;height:56px;width:100%;line-height:56px;background-color:#fff;border-bottom:1px solid #1d1c2314}.cui_header .title[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}.cui_header .title .logo[data-v-85614598]{width:32px;height:32px;border-radius:50%;margin-right:16px}.cui_header .title .back[data-v-85614598]{display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;font-size:24px;width:32px;height:32px;gap:15px}.cui_header .title .name[data-v-85614598]{font-weight:600;font-size:14px;color:#000;line-height:16px}.cui_header .title .name_sub[data-v-85614598]{font-weight:400;font-size:10px;color:#666;line-height:12px}.cui_header .btn[data-v-85614598]{display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;font-size:32px;background-color:#fff}.cui_header .btn_group[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.cui_content[data-v-85614598]{flex:1;width:100%;padding:0 20px;box-sizing:border-box;background-color:#fff;overflow-y:auto}.cui_content .replay[data-v-85614598]{margin:20px 0}.cui_content .replay .name[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%;text-align:left;font-size:10px;padding-bottom:10px;gap:5px}.cui_content .replay .time[data-v-85614598]{font-size:12px;color:#999}.cui_content .replay .avatar[data-v-85614598]{width:20px;height:20px;border-radius:10px}.cui_content .replay .box[data-v-85614598]{color:#000;font-size:14px;line-height:24px;font-weight:400;text-align:left;background-color:#f3f4f5;padding:12px 16px;border-radius:2px 10px 10px}.cui_content .replay .box[data-v-85614598] .text{word-break:break-all;white-space:pre-wrap;margin:0}.cui_content .replay .box[data-v-85614598] .text a{color:#039938}.cui_content .replay .box .think_status[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:5px;font-size:14px;font-weight:500}.cui_content .replay .box .think_status .icon[data-v-85614598]{color:#999;font-size:24px}.cui_content .replay .box .think_text[data-v-85614598]{word-break:break-all;white-space:pre-wrap;color:#666;font-size:12px;font-weight:400;line-height:18px;padding-left:8px;margin:15px 0 20px;border-left:4px solid #dadada}.cui_content .replay .recm[data-v-85614598]{cursor:pointer;padding:6px 16px;border:1px solid rgba(68,83,130,.25);border-radius:10px;margin:8px 0}.cui_content .replay_content[data-v-85614598]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.cui_content .replay.role_user[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start}.cui_content .replay.role_user .name[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;text-align:right}.cui_content .replay.role_user .box[data-v-85614598]{border-radius:10px 2px 10px 10px;background-color:#28d465}.cui_operate[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%;padding:10px 16px;box-sizing:border-box}.cui_operate .btn[data-v-85614598]{font-size:16px}.cui_operate .input[data-v-85614598]{flex:1;height:38px;line-height:38px;border:none;font-size:16px;background-color:#fff}.cui_operate .input[data-v-85614598]:focus-visible{outline:none}.cui_operate .input_group[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;flex:1;margin-left:10px;box-sizing:border-box;height:48px;padding:4px 16px;border-radius:24px;border:1px solid rgba(68,83,130,.25)}.cui_operate .send[data-v-85614598]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:38px}.cui_footer[data-v-85614598]{width:100%;height:32px;line-height:32px;color:#1d1c2359;background-color:#2e2e380a;font-size:12px;text-align:center}.loading_row[data-v-85614598]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:5px;font-size:10px;margin-top:8px}
|
|
10
|
+
/*$vite$:1*/`,document.head.appendChild(qr);/*!
|
|
2
11
|
* shared v9.14.5
|
|
3
12
|
* (c) 2025 kazuya kawaguchi
|
|
4
13
|
* Released under the MIT License.
|
|
5
|
-
*/function Se(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const
|
|
6
|
-
`)}function Yn(e){let t=e;return()=>++t}function
|
|
14
|
+
*/function Se(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Wr={};function Yr(e){Wr[e]||(Wr[e]=!0,Se(e))}const ut=typeof window<"u";let Xe,Bt;if(process.env.NODE_ENV!=="production"){const e=ut&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Xe=t=>{e.mark(t)},Bt=(t,n,i)=>{e.measure(t,n,i),e.clearMarks(n),e.clearMarks(i)})}const Zl=/\{([0-9a-zA-Z]+)\}/g;function Oi(e,...t){return t.length===1&&te(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Zl,(n,i)=>t.hasOwnProperty(i)?t[i]:"")}const ht=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Kl=(e,t,n)=>Jl({l:e,k:t,s:n}),Jl=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),De=e=>typeof e=="number"&&isFinite(e),Ql=e=>Jr(e)==="[object Date]",Tt=e=>Jr(e)==="[object RegExp]",Wn=e=>U(e)&&Object.keys(e).length===0,je=Object.assign,es=Object.create,fe=(e=null)=>es(e);let Gr;const vt=()=>Gr||(Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:fe());function Xr(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Zr(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ts(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(i,r,a)=>`${r}="${Zr(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(i,r,a)=>`${r}='${Zr(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Se("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(i=>{e=e.replace(i,"$1javascript:")}),e}const ns=Object.prototype.hasOwnProperty;function ot(e,t){return ns.call(e,t)}const _e=Array.isArray,de=e=>typeof e=="function",F=e=>typeof e=="string",K=e=>typeof e=="boolean",te=e=>e!==null&&typeof e=="object",is=e=>te(e)&&de(e.then)&&de(e.catch),Kr=Object.prototype.toString,Jr=e=>Kr.call(e),U=e=>{if(!te(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},rs=e=>e==null?"":_e(e)||U(e)&&e.toString===Kr?JSON.stringify(e,null,2):String(e);function as(e,t=""){return e.reduce((n,i,r)=>r===0?n+i:n+t+i,"")}const Qr=2;function us(e,t=0,n=e.length){const i=e.split(/\r?\n/);let r=0;const a=[];for(let u=0;u<i.length;u++)if(r+=i[u].length+1,r>=t){for(let l=u-Qr;l<=u+Qr||n>r;l++){if(l<0||l>=i.length)continue;const s=l+1;a.push(`${s}${" ".repeat(3-String(s).length)}| ${i[l]}`);const c=i[l].length;if(l===u){const f=t-(r-c)+1,d=Math.max(1,n>r?c-f:n-t);a.push(" | "+" ".repeat(f)+"^".repeat(d))}else if(l>u){if(n>r){const f=Math.max(Math.min(n-r,c),1);a.push(" | "+"^".repeat(f))}r+=c+1}}break}return a.join(`
|
|
15
|
+
`)}function Yn(e){let t=e;return()=>++t}function Li(){const e=new Map;return{events:e,on(n,i){const r=e.get(n);r&&r.push(i)||e.set(n,[i])},off(n,i){const r=e.get(n);r&&r.splice(r.indexOf(i)>>>0,1)},emit(n,i){(e.get(n)||[]).slice().map(r=>r(i)),(e.get("*")||[]).slice().map(r=>r(n,i))}}}const Gn=e=>!te(e)||_e(e);function Xn(e,t){if(Gn(e)||Gn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:i,des:r}=n.pop();Object.keys(i).forEach(a=>{a!=="__proto__"&&(te(i[a])&&!te(r[a])&&(r[a]=Array.isArray(i[a])?[]:fe()),Gn(r[a])||Gn(i[a])?r[a]=i[a]:n.push({src:i[a],des:r[a]}))})}}/*!
|
|
7
16
|
* message-compiler v9.14.5
|
|
8
17
|
* (c) 2025 kazuya kawaguchi
|
|
9
18
|
* Released under the MIT License.
|
|
10
|
-
*/function
|
|
11
|
-
`,_l="\u2028",gl="\u2029";function bl(e){const t=e;let n=0,u=1,r=1,o=0;const a=w=>t[w]===pl&&t[w+1]===je,s=w=>t[w]===je,l=w=>t[w]===gl,c=w=>t[w]===_l,f=w=>a(w)||s(w)||l(w)||c(w),d=()=>n,h=()=>u,_=()=>r,p=()=>o,x=w=>a(w)||l(w)||c(w)?je:t[w],C=()=>x(n),D=()=>x(n+o);function v(){return o=0,f(n)&&(u++,r=0),a(n)&&n++,n++,r++,t[n]}function m(){return a(n+o)&&o++,o++,t[n+o]}function b(){n=0,u=1,r=1,o=0}function E(w=0){o=w}function y(){const w=n+o;for(;w!==n;)v();o=0}return{index:d,line:h,column:_,peekOffset:p,charAt:x,currentChar:C,currentPeek:D,next:v,peek:m,reset:b,resetPeek:E,skipToPeek:y}}const At=void 0,El=".",uo="'",yl="tokenizer";function kl(e,t={}){const n=t.location!==!1,u=bl(e),r=()=>u.index(),o=()=>al(u.line(),u.column(),u.index()),a=o(),s=r(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:f}=t;function d(g,k,S,...V){const ve=c();if(k.column+=S,k.offset+=S,f){const ge=n?Zn(ve.startLoc,k):null,ce=Xt(g,ge,{domain:yl,args:V});f(ce)}}function h(g,k,S){g.endLoc=o(),g.currentType=k;const V={type:k};return n&&(V.loc=Zn(g.startLoc,g.endLoc)),S!=null&&(V.value=S),V}const _=g=>h(g,14);function p(g,k){return g.currentChar()===k?(g.next(),k):(d($.EXPECTED_TOKEN,o(),0,k),"")}function x(g){let k="";for(;g.currentPeek()===xt||g.currentPeek()===je;)k+=g.currentPeek(),g.peek();return k}function C(g){const k=x(g);return g.skipToPeek(),k}function D(g){if(g===At)return!1;const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k===95}function v(g){if(g===At)return!1;const k=g.charCodeAt(0);return k>=48&&k<=57}function m(g,k){const{currentType:S}=k;if(S!==2)return!1;x(g);const V=D(g.currentPeek());return g.resetPeek(),V}function b(g,k){const{currentType:S}=k;if(S!==2)return!1;x(g);const V=g.currentPeek()==="-"?g.peek():g.currentPeek(),ve=v(V);return g.resetPeek(),ve}function E(g,k){const{currentType:S}=k;if(S!==2)return!1;x(g);const V=g.currentPeek()===uo;return g.resetPeek(),V}function y(g,k){const{currentType:S}=k;if(S!==8)return!1;x(g);const V=g.currentPeek()===".";return g.resetPeek(),V}function w(g,k){const{currentType:S}=k;if(S!==9)return!1;x(g);const V=D(g.currentPeek());return g.resetPeek(),V}function T(g,k){const{currentType:S}=k;if(!(S===8||S===12))return!1;x(g);const V=g.currentPeek()===":";return g.resetPeek(),V}function A(g,k){const{currentType:S}=k;if(S!==10)return!1;const V=()=>{const ge=g.currentPeek();return ge==="{"?D(g.peek()):ge==="@"||ge==="%"||ge==="|"||ge===":"||ge==="."||ge===xt||!ge?!1:ge===je?(g.peek(),V()):U(g,!1)},ve=V();return g.resetPeek(),ve}function B(g){x(g);const k=g.currentPeek()==="|";return g.resetPeek(),k}function he(g){const k=x(g),S=g.currentPeek()==="%"&&g.peek()==="{";return g.resetPeek(),{isModulo:S,hasSpace:k.length>0}}function U(g,k=!0){const S=(ve=!1,ge="",ce=!1)=>{const N=g.currentPeek();return N==="{"?ge==="%"?!1:ve:N==="@"||!N?ge==="%"?!0:ve:N==="%"?(g.peek(),S(ve,"%",!0)):N==="|"?ge==="%"||ce?!0:!(ge===xt||ge===je):N===xt?(g.peek(),S(!0,xt,ce)):N===je?(g.peek(),S(!0,je,ce)):!0},V=S();return k&&g.resetPeek(),V}function R(g,k){const S=g.currentChar();return S===At?At:k(S)?(g.next(),S):null}function Q(g){const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36}function q(g){return R(g,Q)}function ue(g){const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36||k===45}function Ue(g){return R(g,ue)}function M(g){const k=g.charCodeAt(0);return k>=48&&k<=57}function Y(g){return R(g,M)}function P(g){const k=g.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102}function _e(g){return R(g,P)}function W(g){let k="",S="";for(;k=Y(g);)S+=k;return S}function Le(g){C(g);const k=g.currentChar();return k!=="%"&&d($.EXPECTED_TOKEN,o(),0,k),g.next(),"%"}function re(g){let k="";for(;;){const S=g.currentChar();if(S==="{"||S==="}"||S==="@"||S==="|"||!S)break;if(S==="%")if(U(g))k+=S,g.next();else break;else if(S===xt||S===je)if(U(g))k+=S,g.next();else{if(B(g))break;k+=S,g.next()}else k+=S,g.next()}return k}function ht(g){C(g);let k="",S="";for(;k=Ue(g);)S+=k;return g.currentChar()===At&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),S}function ie(g){C(g);let k="";return g.currentChar()==="-"?(g.next(),k+=`-${W(g)}`):k+=W(g),g.currentChar()===At&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),k}function I(g){return g!==uo&&g!==je}function Z(g){C(g),p(g,"'");let k="",S="";for(;k=R(g,I);)k==="\\"?S+=X(g):S+=k;const V=g.currentChar();return V===je||V===At?(d($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),V===je&&(g.next(),p(g,"'")),S):(p(g,"'"),S)}function X(g){const k=g.currentChar();switch(k){case"\\":case"'":return g.next(),`\\${k}`;case"u":return se(g,k,4);case"U":return se(g,k,6);default:return d($.UNKNOWN_ESCAPE_SEQUENCE,o(),0,k),""}}function se(g,k,S){p(g,k);let V="";for(let ve=0;ve<S;ve++){const ge=_e(g);if(!ge){d($.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${k}${V}${g.currentChar()}`);break}V+=ge}return`\\${k}${V}`}function ee(g){return g!=="{"&&g!=="}"&&g!==xt&&g!==je}function Ae(g){C(g);let k="",S="";for(;k=R(g,ee);)S+=k;return S}function qe(g){let k="",S="";for(;k=q(g);)S+=k;return S}function O(g){const k=S=>{const V=g.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===xt?S:(S+=V,g.next(),k(S))};return k("")}function z(g){C(g);const k=p(g,"|");return C(g),k}function ot(g,k){let S=null;switch(g.currentChar()){case"{":return k.braceNest>=1&&d($.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),g.next(),S=h(k,2,"{"),C(g),k.braceNest++,S;case"}":return k.braceNest>0&&k.currentType===2&&d($.EMPTY_PLACEHOLDER,o(),0),g.next(),S=h(k,3,"}"),k.braceNest--,k.braceNest>0&&C(g),k.inLinked&&k.braceNest===0&&(k.inLinked=!1),S;case"@":return k.braceNest>0&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),S=le(g,k)||_(k),k.braceNest=0,S;default:{let ve=!0,ge=!0,ce=!0;if(B(g))return k.braceNest>0&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),S=h(k,1,z(g)),k.braceNest=0,k.inLinked=!1,S;if(k.braceNest>0&&(k.currentType===5||k.currentType===6||k.currentType===7))return d($.UNTERMINATED_CLOSING_BRACE,o(),0),k.braceNest=0,yt(g,k);if(ve=m(g,k))return S=h(k,5,ht(g)),C(g),S;if(ge=b(g,k))return S=h(k,6,ie(g)),C(g),S;if(ce=E(g,k))return S=h(k,7,Z(g)),C(g),S;if(!ve&&!ge&&!ce)return S=h(k,13,Ae(g)),d($.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,S.value),C(g),S;break}}return S}function le(g,k){const{currentType:S}=k;let V=null;const ve=g.currentChar();switch((S===8||S===9||S===12||S===10)&&(ve===je||ve===xt)&&d($.INVALID_LINKED_FORMAT,o(),0),ve){case"@":return g.next(),V=h(k,8,"@"),k.inLinked=!0,V;case".":return C(g),g.next(),h(k,9,".");case":":return C(g),g.next(),h(k,10,":");default:return B(g)?(V=h(k,1,z(g)),k.braceNest=0,k.inLinked=!1,V):y(g,k)||T(g,k)?(C(g),le(g,k)):w(g,k)?(C(g),h(k,12,qe(g))):A(g,k)?(C(g),ve==="{"?ot(g,k)||V:h(k,11,O(g))):(S===8&&d($.INVALID_LINKED_FORMAT,o(),0),k.braceNest=0,k.inLinked=!1,yt(g,k))}}function yt(g,k){let S={type:14};if(k.braceNest>0)return ot(g,k)||_(k);if(k.inLinked)return le(g,k)||_(k);switch(g.currentChar()){case"{":return ot(g,k)||_(k);case"}":return d($.UNBALANCED_CLOSING_BRACE,o(),0),g.next(),h(k,3,"}");case"@":return le(g,k)||_(k);default:{if(B(g))return S=h(k,1,z(g)),k.braceNest=0,k.inLinked=!1,S;const{isModulo:ve,hasSpace:ge}=he(g);if(ve)return ge?h(k,0,re(g)):h(k,4,Le(g));if(U(g))return h(k,0,re(g));break}}return S}function En(){const{currentType:g,offset:k,startLoc:S,endLoc:V}=l;return l.lastType=g,l.lastOffset=k,l.lastStartLoc=S,l.lastEndLoc=V,l.offset=r(),l.startLoc=o(),u.currentChar()===At?h(l,14):yt(u,l)}return{nextToken:En,currentOffset:r,currentPosition:o,context:c}}const xl="parser",Cl=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vl(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const u=parseInt(t||n,16);return u<=55295||u>=57344?String.fromCodePoint(u):"�"}}}function wl(e={}){const t=e.location!==!1,{onError:n,onWarn:u}=e;function r(m,b,E,y,...w){const T=m.currentPosition();if(T.offset+=y,T.column+=y,n){const A=t?Zn(E,T):null,B=Xt(b,A,{domain:xl,args:w});n(B)}}function o(m,b,E,y,...w){const T=m.currentPosition();if(T.offset+=y,T.column+=y,u){const A=t?Zn(E,T):null;u(cl(b,A,w))}}function a(m,b,E){const y={type:m};return t&&(y.start=b,y.end=b,y.loc={start:E,end:E}),y}function s(m,b,E,y){t&&(m.end=b,m.loc&&(m.loc.end=E))}function l(m,b){const E=m.context(),y=a(3,E.offset,E.startLoc);return y.value=b,s(y,m.currentOffset(),m.currentPosition()),y}function c(m,b){const E=m.context(),{lastOffset:y,lastStartLoc:w}=E,T=a(5,y,w);return T.index=parseInt(b,10),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function f(m,b,E){const y=m.context(),{lastOffset:w,lastStartLoc:T}=y,A=a(4,w,T);return A.key=b,E===!0&&(A.modulo=!0),m.nextToken(),s(A,m.currentOffset(),m.currentPosition()),A}function d(m,b){const E=m.context(),{lastOffset:y,lastStartLoc:w}=E,T=a(9,y,w);return T.value=b.replace(Cl,vl),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function h(m){const b=m.nextToken(),E=m.context(),{lastOffset:y,lastStartLoc:w}=E,T=a(8,y,w);return b.type!==12?(r(m,$.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),T.value="",s(T,y,w),{nextConsumeToken:b,node:T}):(b.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,st(b)),T.value=b.value||"",s(T,m.currentOffset(),m.currentPosition()),{node:T})}function _(m,b){const E=m.context(),y=a(7,E.offset,E.startLoc);return y.value=b,s(y,m.currentOffset(),m.currentPosition()),y}function p(m){const b=m.context(),E=a(6,b.offset,b.startLoc);let y=m.nextToken();if(y.type===9){const w=h(m);E.modifier=w.node,y=w.nextConsumeToken||m.nextToken()}switch(y.type!==10&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),y=m.nextToken(),y.type===2&&(y=m.nextToken()),y.type){case 11:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=_(m,y.value||"");break;case 5:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=f(m,y.value||"");break;case 6:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=c(m,y.value||"");break;case 7:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=d(m,y.value||"");break;default:{r(m,$.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=m.context(),T=a(7,w.offset,w.startLoc);return T.value="",s(T,w.offset,w.startLoc),E.key=T,s(E,w.offset,w.startLoc),{nextConsumeToken:y,node:E}}}return s(E,m.currentOffset(),m.currentPosition()),{node:E}}function x(m){const b=m.context(),E=b.currentType===1?m.currentOffset():b.offset,y=b.currentType===1?b.endLoc:b.startLoc,w=a(2,E,y);w.items=[];let T=null,A=null;do{const U=T||m.nextToken();switch(T=null,U.type){case 0:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(l(m,U.value||""));break;case 6:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(c(m,U.value||""));break;case 4:A=!0;break;case 5:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(f(m,U.value||"",!!A)),A&&(o(m,Kn.USE_MODULO_SYNTAX,b.lastStartLoc,0,st(U)),A=null);break;case 7:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(d(m,U.value||""));break;case 8:{const R=p(m);w.items.push(R.node),T=R.nextConsumeToken||null;break}}}while(b.currentType!==14&&b.currentType!==1);const B=b.currentType===1?b.lastOffset:m.currentOffset(),he=b.currentType===1?b.lastEndLoc:m.currentPosition();return s(w,B,he),w}function C(m,b,E,y){const w=m.context();let T=y.items.length===0;const A=a(1,b,E);A.cases=[],A.cases.push(y);do{const B=x(m);T||(T=B.items.length===0),A.cases.push(B)}while(w.currentType!==14);return T&&r(m,$.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),s(A,m.currentOffset(),m.currentPosition()),A}function D(m){const b=m.context(),{offset:E,startLoc:y}=b,w=x(m);return b.currentType===14?w:C(m,E,y,w)}function v(m){const b=kl(m,eo({},e)),E=b.context(),y=a(0,E.offset,E.startLoc);return t&&y.loc&&(y.loc.source=m),y.body=D(b),e.onCacheKey&&(y.cacheKey=e.onCacheKey(m)),E.currentType!==14&&r(b,$.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,m[E.offset]||""),s(y,b.currentOffset(),b.currentPosition()),y}return{parse:v}}function st(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Nl(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function ro(e,t){for(let n=0;n<e.length;n++)Fu(e[n],t)}function Fu(e,t){switch(e.type){case 1:ro(e.cases,t),t.helper("plural");break;case 2:ro(e.items,t);break;case 6:{Fu(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Dl(e,t={}){const n=Nl(e);n.helper("normalize"),e.body&&Fu(e.body,n);const u=n.context();e.helpers=Array.from(u.helpers)}function Tl(e){const t=e.body;return t.type===2?oo(t):t.cases.forEach(n=>oo(n)),e}function oo(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const u=e.items[n];if(!(u.type===3||u.type===9)||u.value==null)break;t.push(u.value)}if(t.length===e.items.length){e.static=no(t);for(let n=0;n<e.items.length;n++){const u=e.items[n];(u.type===3||u.type===9)&&delete u.value}}}}const Al="minifier";function Zt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Zt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let u=0;u<n.length;u++)Zt(n[u]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let u=0;u<n.length;u++)Zt(n[u]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Zt(t.key),t.k=t.key,delete t.key,t.modifier&&(Zt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Xt($.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Al,args:[e.type]})}delete e.type}const Il="parser";function Sl(e,t){const{filename:n,breakLineCode:u,needIndent:r}=t,o=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:u,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const s=()=>a;function l(x,C){a.code+=x}function c(x,C=!0){const D=C?u:"";l(r?D+" ".repeat(x):D)}function f(x=!0){const C=++a.indentLevel;x&&c(C)}function d(x=!0){const C=--a.indentLevel;x&&c(C)}function h(){c(a.indentLevel)}return{context:s,push:l,indent:f,deindent:d,newline:h,helper:x=>`_${x}`,needIndent:()=>a.needIndent}}function Ol(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Kt(e,t.key),t.modifier?(e.push(", "),Kt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ll(e,t){const{helper:n,needIndent:u}=e;e.push(`${n("normalize")}([`),e.indent(u());const r=t.items.length;for(let o=0;o<r&&(Kt(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(u()),e.push("])")}function Fl(e,t){const{helper:n,needIndent:u}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(u());const r=t.cases.length;for(let o=0;o<r&&(Kt(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(u()),e.push("])")}}function Pl(e,t){t.body?Kt(e,t.body):e.push("null")}function Kt(e,t){const{helper:n}=e;switch(t.type){case 0:Pl(e,t);break;case 1:Fl(e,t);break;case 2:Ll(e,t);break;case 6:Ol(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Xt($.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Il,args:[t.type]})}}const Ml=(e,t={})=>{const n=to(t.mode)?t.mode:"normal",u=to(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
-
`,
|
|
19
|
+
*/function os(e,t,n){return{line:e,column:t,offset:n}}function Zn(e,t,n){return{start:e,end:t}}const ls=/\{([0-9a-zA-Z]+)\}/g;function ea(e,...t){return t.length===1&&ss(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ls,(n,i)=>t.hasOwnProperty(i)?t[i]:"")}const ta=Object.assign,na=e=>typeof e=="string",ss=e=>e!==null&&typeof e=="object";function ia(e,t=""){return e.reduce((n,i,r)=>r===0?n+i:n+t+i,"")}const Kn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},cs={[Kn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function fs(e,t,...n){const i=ea(cs[e],...n||[]),r={message:String(i),code:e};return t&&(r.location=t),r}const B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},ds={[B.EXPECTED_TOKEN]:"Expected token: '{0}'",[B.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[B.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[B.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[B.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[B.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[B.EMPTY_PLACEHOLDER]:"Empty placeholder",[B.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[B.INVALID_LINKED_FORMAT]:"Invalid linked format",[B.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[B.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[B.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[B.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[B.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[B.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Xt(e,t,n={}){const{domain:i,messages:r,args:a}=n,u=ea((r||ds)[e]||"",...a||[]),l=new SyntaxError(String(u));return l.code=e,t&&(l.location=t),l.domain=i,l}function ps(e){throw e}const hs=/<\/?[\w\s="/.':;#-\/]+>/,ms=e=>hs.test(e),Et=" ",gs="\r",Ue=`
|
|
20
|
+
`,bs="\u2028",_s="\u2029";function xs(e){const t=e;let n=0,i=1,r=1,a=0;const u=C=>t[C]===gs&&t[C+1]===Ue,l=C=>t[C]===Ue,s=C=>t[C]===_s,c=C=>t[C]===bs,f=C=>u(C)||l(C)||s(C)||c(C),d=()=>n,p=()=>i,g=()=>r,m=()=>a,E=C=>u(C)||s(C)||c(C)?Ue:t[C],w=()=>E(n),D=()=>E(n+a);function k(){return a=0,f(n)&&(i++,r=0),u(n)&&n++,n++,r++,t[n]}function h(){return u(n+a)&&a++,a++,t[n+a]}function _(){n=0,i=1,r=1,a=0}function x(C=0){a=C}function y(){const C=n+a;for(;C!==n;)k();a=0}return{index:d,line:p,column:g,peekOffset:m,charAt:E,currentChar:w,currentPeek:D,next:k,peek:h,reset:_,resetPeek:x,skipToPeek:y}}const At=void 0,ys=".",ra="'",vs="tokenizer";function Es(e,t={}){const n=t.location!==!1,i=xs(e),r=()=>i.index(),a=()=>os(i.line(),i.column(),i.index()),u=a(),l=r(),s={currentType:14,offset:l,startLoc:u,endLoc:u,lastType:14,lastOffset:l,lastStartLoc:u,lastEndLoc:u,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:f}=t;function d(b,v,S,...V){const ke=c();if(v.column+=S,v.offset+=S,f){const be=n?Zn(ke.startLoc,v):null,ce=Xt(b,be,{domain:vs,args:V});f(ce)}}function p(b,v,S){b.endLoc=a(),b.currentType=v;const V={type:v};return n&&(V.loc=Zn(b.startLoc,b.endLoc)),S!=null&&(V.value=S),V}const g=b=>p(b,14);function m(b,v){return b.currentChar()===v?(b.next(),v):(d(B.EXPECTED_TOKEN,a(),0,v),"")}function E(b){let v="";for(;b.currentPeek()===Et||b.currentPeek()===Ue;)v+=b.currentPeek(),b.peek();return v}function w(b){const v=E(b);return b.skipToPeek(),v}function D(b){if(b===At)return!1;const v=b.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v===95}function k(b){if(b===At)return!1;const v=b.charCodeAt(0);return v>=48&&v<=57}function h(b,v){const{currentType:S}=v;if(S!==2)return!1;E(b);const V=D(b.currentPeek());return b.resetPeek(),V}function _(b,v){const{currentType:S}=v;if(S!==2)return!1;E(b);const V=b.currentPeek()==="-"?b.peek():b.currentPeek(),ke=k(V);return b.resetPeek(),ke}function x(b,v){const{currentType:S}=v;if(S!==2)return!1;E(b);const V=b.currentPeek()===ra;return b.resetPeek(),V}function y(b,v){const{currentType:S}=v;if(S!==8)return!1;E(b);const V=b.currentPeek()===".";return b.resetPeek(),V}function C(b,v){const{currentType:S}=v;if(S!==9)return!1;E(b);const V=D(b.currentPeek());return b.resetPeek(),V}function T(b,v){const{currentType:S}=v;if(!(S===8||S===12))return!1;E(b);const V=b.currentPeek()===":";return b.resetPeek(),V}function A(b,v){const{currentType:S}=v;if(S!==10)return!1;const V=()=>{const be=b.currentPeek();return be==="{"?D(b.peek()):be==="@"||be==="%"||be==="|"||be===":"||be==="."||be===Et||!be?!1:be===Ue?(b.peek(),V()):$(b,!1)},ke=V();return b.resetPeek(),ke}function j(b){E(b);const v=b.currentPeek()==="|";return b.resetPeek(),v}function pe(b){const v=E(b),S=b.currentPeek()==="%"&&b.peek()==="{";return b.resetPeek(),{isModulo:S,hasSpace:v.length>0}}function $(b,v=!0){const S=(ke=!1,be="",ce=!1)=>{const N=b.currentPeek();return N==="{"?be==="%"?!1:ke:N==="@"||!N?be==="%"?!0:ke:N==="%"?(b.peek(),S(ke,"%",!0)):N==="|"?be==="%"||ce?!0:!(be===Et||be===Ue):N===Et?(b.peek(),S(!0,Et,ce)):N===Ue?(b.peek(),S(!0,Ue,ce)):!0},V=S();return v&&b.resetPeek(),V}function R(b,v){const S=b.currentChar();return S===At?At:v(S)?(b.next(),S):null}function Q(b){const v=b.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36}function q(b){return R(b,Q)}function ie(b){const v=b.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36||v===45}function $e(b){return R(b,ie)}function M(b){const v=b.charCodeAt(0);return v>=48&&v<=57}function Y(b){return R(b,M)}function P(b){const v=b.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102}function ge(b){return R(b,P)}function W(b){let v="",S="";for(;v=Y(b);)S+=v;return S}function Le(b){w(b);const v=b.currentChar();return v!=="%"&&d(B.EXPECTED_TOKEN,a(),0,v),b.next(),"%"}function re(b){let v="";for(;;){const S=b.currentChar();if(S==="{"||S==="}"||S==="@"||S==="|"||!S)break;if(S==="%")if($(b))v+=S,b.next();else break;else if(S===Et||S===Ue)if($(b))v+=S,b.next();else{if(j(b))break;v+=S,b.next()}else v+=S,b.next()}return v}function pt(b){w(b);let v="",S="";for(;v=$e(b);)S+=v;return b.currentChar()===At&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),S}function oe(b){w(b);let v="";return b.currentChar()==="-"?(b.next(),v+=`-${W(b)}`):v+=W(b),b.currentChar()===At&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),v}function I(b){return b!==ra&&b!==Ue}function Z(b){w(b),m(b,"'");let v="",S="";for(;v=R(b,I);)v==="\\"?S+=X(b):S+=v;const V=b.currentChar();return V===Ue||V===At?(d(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),V===Ue&&(b.next(),m(b,"'")),S):(m(b,"'"),S)}function X(b){const v=b.currentChar();switch(v){case"\\":case"'":return b.next(),`\\${v}`;case"u":return le(b,v,4);case"U":return le(b,v,6);default:return d(B.UNKNOWN_ESCAPE_SEQUENCE,a(),0,v),""}}function le(b,v,S){m(b,v);let V="";for(let ke=0;ke<S;ke++){const be=ge(b);if(!be){d(B.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${v}${V}${b.currentChar()}`);break}V+=be}return`\\${v}${V}`}function ee(b){return b!=="{"&&b!=="}"&&b!==Et&&b!==Ue}function Ae(b){w(b);let v="",S="";for(;v=R(b,ee);)S+=v;return S}function qe(b){let v="",S="";for(;v=q(b);)S+=v;return S}function O(b){const v=S=>{const V=b.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===Et?S:(S+=V,b.next(),v(S))};return v("")}function z(b){w(b);const v=m(b,"|");return w(b),v}function at(b,v){let S=null;switch(b.currentChar()){case"{":return v.braceNest>=1&&d(B.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),b.next(),S=p(v,2,"{"),w(b),v.braceNest++,S;case"}":return v.braceNest>0&&v.currentType===2&&d(B.EMPTY_PLACEHOLDER,a(),0),b.next(),S=p(v,3,"}"),v.braceNest--,v.braceNest>0&&w(b),v.inLinked&&v.braceNest===0&&(v.inLinked=!1),S;case"@":return v.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),S=se(b,v)||g(v),v.braceNest=0,S;default:{let ke=!0,be=!0,ce=!0;if(j(b))return v.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),S=p(v,1,z(b)),v.braceNest=0,v.inLinked=!1,S;if(v.braceNest>0&&(v.currentType===5||v.currentType===6||v.currentType===7))return d(B.UNTERMINATED_CLOSING_BRACE,a(),0),v.braceNest=0,yt(b,v);if(ke=h(b,v))return S=p(v,5,pt(b)),w(b),S;if(be=_(b,v))return S=p(v,6,oe(b)),w(b),S;if(ce=x(b,v))return S=p(v,7,Z(b)),w(b),S;if(!ke&&!be&&!ce)return S=p(v,13,Ae(b)),d(B.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,S.value),w(b),S;break}}return S}function se(b,v){const{currentType:S}=v;let V=null;const ke=b.currentChar();switch((S===8||S===9||S===12||S===10)&&(ke===Ue||ke===Et)&&d(B.INVALID_LINKED_FORMAT,a(),0),ke){case"@":return b.next(),V=p(v,8,"@"),v.inLinked=!0,V;case".":return w(b),b.next(),p(v,9,".");case":":return w(b),b.next(),p(v,10,":");default:return j(b)?(V=p(v,1,z(b)),v.braceNest=0,v.inLinked=!1,V):y(b,v)||T(b,v)?(w(b),se(b,v)):C(b,v)?(w(b),p(v,12,qe(b))):A(b,v)?(w(b),ke==="{"?at(b,v)||V:p(v,11,O(b))):(S===8&&d(B.INVALID_LINKED_FORMAT,a(),0),v.braceNest=0,v.inLinked=!1,yt(b,v))}}function yt(b,v){let S={type:14};if(v.braceNest>0)return at(b,v)||g(v);if(v.inLinked)return se(b,v)||g(v);switch(b.currentChar()){case"{":return at(b,v)||g(v);case"}":return d(B.UNBALANCED_CLOSING_BRACE,a(),0),b.next(),p(v,3,"}");case"@":return se(b,v)||g(v);default:{if(j(b))return S=p(v,1,z(b)),v.braceNest=0,v.inLinked=!1,S;const{isModulo:ke,hasSpace:be}=pe(b);if(ke)return be?p(v,0,re(b)):p(v,4,Le(b));if($(b))return p(v,0,re(b));break}}return S}function xn(){const{currentType:b,offset:v,startLoc:S,endLoc:V}=s;return s.lastType=b,s.lastOffset=v,s.lastStartLoc=S,s.lastEndLoc=V,s.offset=r(),s.startLoc=a(),i.currentChar()===At?p(s,14):yt(i,s)}return{nextToken:xn,currentOffset:r,currentPosition:a,context:c}}const ws="parser",ks=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Cs(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(t||n,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function Ns(e={}){const t=e.location!==!1,{onError:n,onWarn:i}=e;function r(h,_,x,y,...C){const T=h.currentPosition();if(T.offset+=y,T.column+=y,n){const A=t?Zn(x,T):null,j=Xt(_,A,{domain:ws,args:C});n(j)}}function a(h,_,x,y,...C){const T=h.currentPosition();if(T.offset+=y,T.column+=y,i){const A=t?Zn(x,T):null;i(fs(_,A,C))}}function u(h,_,x){const y={type:h};return t&&(y.start=_,y.end=_,y.loc={start:x,end:x}),y}function l(h,_,x,y){t&&(h.end=_,h.loc&&(h.loc.end=x))}function s(h,_){const x=h.context(),y=u(3,x.offset,x.startLoc);return y.value=_,l(y,h.currentOffset(),h.currentPosition()),y}function c(h,_){const x=h.context(),{lastOffset:y,lastStartLoc:C}=x,T=u(5,y,C);return T.index=parseInt(_,10),h.nextToken(),l(T,h.currentOffset(),h.currentPosition()),T}function f(h,_,x){const y=h.context(),{lastOffset:C,lastStartLoc:T}=y,A=u(4,C,T);return A.key=_,x===!0&&(A.modulo=!0),h.nextToken(),l(A,h.currentOffset(),h.currentPosition()),A}function d(h,_){const x=h.context(),{lastOffset:y,lastStartLoc:C}=x,T=u(9,y,C);return T.value=_.replace(ks,Cs),h.nextToken(),l(T,h.currentOffset(),h.currentPosition()),T}function p(h){const _=h.nextToken(),x=h.context(),{lastOffset:y,lastStartLoc:C}=x,T=u(8,y,C);return _.type!==12?(r(h,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),T.value="",l(T,y,C),{nextConsumeToken:_,node:T}):(_.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,lt(_)),T.value=_.value||"",l(T,h.currentOffset(),h.currentPosition()),{node:T})}function g(h,_){const x=h.context(),y=u(7,x.offset,x.startLoc);return y.value=_,l(y,h.currentOffset(),h.currentPosition()),y}function m(h){const _=h.context(),x=u(6,_.offset,_.startLoc);let y=h.nextToken();if(y.type===9){const C=p(h);x.modifier=C.node,y=C.nextConsumeToken||h.nextToken()}switch(y.type!==10&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt(y)),y=h.nextToken(),y.type===2&&(y=h.nextToken()),y.type){case 11:y.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt(y)),x.key=g(h,y.value||"");break;case 5:y.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt(y)),x.key=f(h,y.value||"");break;case 6:y.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt(y)),x.key=c(h,y.value||"");break;case 7:y.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt(y)),x.key=d(h,y.value||"");break;default:{r(h,B.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const C=h.context(),T=u(7,C.offset,C.startLoc);return T.value="",l(T,C.offset,C.startLoc),x.key=T,l(x,C.offset,C.startLoc),{nextConsumeToken:y,node:x}}}return l(x,h.currentOffset(),h.currentPosition()),{node:x}}function E(h){const _=h.context(),x=_.currentType===1?h.currentOffset():_.offset,y=_.currentType===1?_.endLoc:_.startLoc,C=u(2,x,y);C.items=[];let T=null,A=null;do{const $=T||h.nextToken();switch(T=null,$.type){case 0:$.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt($)),C.items.push(s(h,$.value||""));break;case 6:$.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt($)),C.items.push(c(h,$.value||""));break;case 4:A=!0;break;case 5:$.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt($)),C.items.push(f(h,$.value||"",!!A)),A&&(a(h,Kn.USE_MODULO_SYNTAX,_.lastStartLoc,0,lt($)),A=null);break;case 7:$.value==null&&r(h,B.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,lt($)),C.items.push(d(h,$.value||""));break;case 8:{const R=m(h);C.items.push(R.node),T=R.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const j=_.currentType===1?_.lastOffset:h.currentOffset(),pe=_.currentType===1?_.lastEndLoc:h.currentPosition();return l(C,j,pe),C}function w(h,_,x,y){const C=h.context();let T=y.items.length===0;const A=u(1,_,x);A.cases=[],A.cases.push(y);do{const j=E(h);T||(T=j.items.length===0),A.cases.push(j)}while(C.currentType!==14);return T&&r(h,B.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),l(A,h.currentOffset(),h.currentPosition()),A}function D(h){const _=h.context(),{offset:x,startLoc:y}=_,C=E(h);return _.currentType===14?C:w(h,x,y,C)}function k(h){const _=Es(h,ta({},e)),x=_.context(),y=u(0,x.offset,x.startLoc);return t&&y.loc&&(y.loc.source=h),y.body=D(_),e.onCacheKey&&(y.cacheKey=e.onCacheKey(h)),x.currentType!==14&&r(_,B.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,h[x.offset]||""),l(y,_.currentOffset(),_.currentPosition()),y}return{parse:k}}function lt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ds(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function aa(e,t){for(let n=0;n<e.length;n++)Fi(e[n],t)}function Fi(e,t){switch(e.type){case 1:aa(e.cases,t),t.helper("plural");break;case 2:aa(e.items,t);break;case 6:{Fi(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Ts(e,t={}){const n=Ds(e);n.helper("normalize"),e.body&&Fi(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function As(e){const t=e.body;return t.type===2?ua(t):t.cases.forEach(n=>ua(n)),e}function ua(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(!(i.type===3||i.type===9)||i.value==null)break;t.push(i.value)}if(t.length===e.items.length){e.static=ia(t);for(let n=0;n<e.items.length;n++){const i=e.items[n];(i.type===3||i.type===9)&&delete i.value}}}}const Is="minifier";function Zt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Zt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let i=0;i<n.length;i++)Zt(n[i]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let i=0;i<n.length;i++)Zt(n[i]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Zt(t.key),t.k=t.key,delete t.key,t.modifier&&(Zt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Xt(B.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Is,args:[e.type]})}delete e.type}const Ss="parser";function Os(e,t){const{filename:n,breakLineCode:i,needIndent:r}=t,a=t.location!==!1,u={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};a&&e.loc&&(u.source=e.loc.source);const l=()=>u;function s(E,w){u.code+=E}function c(E,w=!0){const D=w?i:"";s(r?D+" ".repeat(E):D)}function f(E=!0){const w=++u.indentLevel;E&&c(w)}function d(E=!0){const w=--u.indentLevel;E&&c(w)}function p(){c(u.indentLevel)}return{context:l,push:s,indent:f,deindent:d,newline:p,helper:E=>`_${E}`,needIndent:()=>u.needIndent}}function Ls(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Kt(e,t.key),t.modifier?(e.push(", "),Kt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Fs(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let a=0;a<r&&(Kt(e,t.items[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}function Ps(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let a=0;a<r&&(Kt(e,t.cases[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}}function Ms(e,t){t.body?Kt(e,t.body):e.push("null")}function Kt(e,t){const{helper:n}=e;switch(t.type){case 0:Ms(e,t);break;case 1:Ps(e,t);break;case 2:Fs(e,t);break;case 6:Ls(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Xt(B.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ss,args:[t.type]})}}const Vs=(e,t={})=>{const n=na(t.mode)?t.mode:"normal",i=na(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
21
|
+
`,a=t.needIndent?t.needIndent:n!=="arrow",u=e.helpers||[],l=Os(e,{filename:i,breakLineCode:r,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),u.length>0&&(l.push(`const { ${ia(u.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Kt(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:s,map:c}=l.context();return{ast:e,code:s,map:c?c.toJSON():void 0}};function Rs(e,t={}){const n=ta({},t),i=!!n.jit,r=!!n.minify,a=n.optimize==null?!0:n.optimize,l=Ns(n).parse(e);return i?(a&&As(l),r&&Zt(l),{ast:l,code:""}):(Ts(l,n),Vs(l,n))}/*!
|
|
13
22
|
* core-base v9.14.5
|
|
14
23
|
* (c) 2025 kazuya kawaguchi
|
|
15
24
|
* Released under the MIT License.
|
|
16
|
-
*/function Rl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Qe(e){return te(e)&&Pu(e)===0&&(it(e,"b")||it(e,"body"))}const ao=["b","body"];function Bl(e){return It(e,ao)}const io=["c","cases"];function $l(e){return It(e,io,[])}const so=["s","static"];function Ul(e){return It(e,so)}const lo=["i","items"];function zl(e){return It(e,lo,[])}const co=["t","type"];function Pu(e){return It(e,co)}const fo=["v","value"];function Jn(e,t){const n=It(e,fo);if(n!=null)return n;throw kn(t)}const ho=["m","modifier"];function jl(e){return It(e,ho)}const mo=["k","key"];function Hl(e){const t=It(e,mo);if(t)return t;throw kn(6)}function It(e,t,n){for(let u=0;u<t.length;u++){const r=t[u];if(it(e,r)&&e[r]!=null)return e[r]}return n}const po=[...ao,...io,...so,...lo,...mo,...ho,...fo,...co];function kn(e){return new Error(`unhandled node type: ${e}`)}const St=[];St[0]={w:[0],i:[3,0],"[":[4],o:[7]},St[1]={w:[1],".":[2],"[":[4],o:[7]},St[2]={w:[2],i:[3,0],0:[3,0]},St[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},St[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},St[5]={"'":[4,0],o:8,l:[5,0]},St[6]={'"':[4,0],o:8,l:[6,0]};const ql=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Wl(e){return ql.test(e)}function Yl(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Gl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Xl(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Wl(t)?Yl(t):"*"+t}function Zl(e){const t=[];let n=-1,u=0,r=0,o,a,s,l,c,f,d;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,u=4,h[0]();else{if(r=0,a===void 0||(a=Xl(a),a===!1))return!1;h[1]()}};function _(){const p=e[n+1];if(u===5&&p==="'"||u===6&&p==='"')return n++,s="\\"+p,h[0](),!0}for(;u!==null;)if(n++,o=e[n],!(o==="\\"&&_())){if(l=Gl(o),d=St[u],c=d[l]||d.l||8,c===8||(u=c[0],c[1]!==void 0&&(f=h[c[1]],f&&(s=o,f()===!1))))return;if(u===7)return t}}const _o=new Map;function Kl(e,t){return te(e)?e[t]:null}function Jl(e,t){if(!te(e))return null;let n=_o.get(t);if(n||(n=Zl(t),n&&_o.set(t,n)),!n)return null;const u=n.length;let r=e,o=0;for(;o<u;){const a=n[o];if(po.includes(a)&&Qe(r))return null;const s=r[a];if(s===void 0||de(r))return null;r=s,o++}return r}const Ql=e=>e,ec=e=>"",tc="text",nc=e=>e.length===0?"":rl(e),uc=ul;function go(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function rc(e){const t=De(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(De(e.named.count)||De(e.named.n))?De(e.named.count)?e.named.count:De(e.named.n)?e.named.n:t:t}function oc(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ac(e={}){const t=e.locale,n=rc(e),u=te(e.pluralRules)&&F(t)&&de(e.pluralRules[t])?e.pluralRules[t]:go,r=te(e.pluralRules)&&F(t)&&de(e.pluralRules[t])?go:void 0,o=D=>D[u(n,D.length,r)],a=e.list||[],s=D=>a[D],l=e.named||fe();De(e.pluralIndex)&&oc(n,l);const c=D=>l[D];function f(D){const v=de(e.messages)?e.messages(D):te(e.messages)?e.messages[D]:!1;return v||(e.parent?e.parent.message(D):ec)}const d=D=>e.modifiers?e.modifiers[D]:Ql,h=j(e.processor)&&de(e.processor.normalize)?e.processor.normalize:nc,_=j(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:uc,p=j(e.processor)&&F(e.processor.type)?e.processor.type:tc,C={list:s,named:c,plural:o,linked:(D,...v)=>{const[m,b]=v;let E="text",y="";v.length===1?te(m)?(y=m.modifier||y,E=m.type||E):F(m)&&(y=m||y):v.length===2&&(F(m)&&(y=m||y),F(b)&&(E=b||E));const w=f(D)(C),T=E==="vnode"&&be(w)&&y?w[0]:w;return y?d(y)(T,E):T},message:f,type:p,interpolate:_,normalize:h,values:Be(fe(),a,l)};return C}let xn=null;function ic(e){xn=e}function sc(e,t,n){xn&&xn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const lc=cc("function:translate");function cc(e){return t=>xn&&xn.emit(e,t)}const bo=Kn.__EXTEND_POINT__,Ut=Yn(bo),He={NOT_FOUND_KEY:bo,FALLBACK_TO_TRANSLATE:Ut(),CANNOT_FORMAT_NUMBER:Ut(),FALLBACK_TO_NUMBER_FORMAT:Ut(),CANNOT_FORMAT_DATE:Ut(),FALLBACK_TO_DATE_FORMAT:Ut(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Ut(),__EXTEND_POINT__:Ut()},fc={[He.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[He.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[He.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[He.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[He.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[He.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[He.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."};function zt(e,...t){return Ou(fc[e],...t)}const Eo=$.__EXTEND_POINT__,jt=Yn(Eo),Pe={INVALID_ARGUMENT:Eo,INVALID_DATE_ARGUMENT:jt(),INVALID_ISO_DATE_ARGUMENT:jt(),NOT_SUPPORT_NON_STRING_MESSAGE:jt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:jt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:jt(),NOT_SUPPORT_LOCALE_TYPE:jt(),__EXTEND_POINT__:jt()};function pt(e){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:dc}:void 0)}const dc={[Pe.INVALID_ARGUMENT]:"Invalid arguments",[Pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Mu(e,t){return t.locale!=null?yo(t.locale):yo(e.locale)}let Vu;function yo(e){if(F(e))return e;if(de(e)){if(e.resolvedOnce&&Vu!=null)return Vu;if(e.constructor.name==="Function"){const t=e();if(nl(t))throw pt(Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vu=t}else throw pt(Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pt(Pe.NOT_SUPPORT_LOCALE_TYPE)}function hc(e,t,n){return[...new Set([n,...be(t)?t:te(t)?Object.keys(t):F(t)?[t]:[n]])]}function ko(e,t,n){const u=F(n)?n:Jt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(u);if(!o){o=[];let a=[n];for(;be(a);)a=xo(o,a,t);const s=be(t)||!j(t)?t:t.default?t.default:null;a=F(s)?[s]:s,be(a)&&xo(o,a,!1),r.__localeChainCache.set(u,o)}return o}function xo(e,t,n){let u=!0;for(let r=0;r<t.length&&K(u);r++){const o=t[r];F(o)&&(u=mc(e,t[r],n))}return u}function mc(e,t,n){let u;const r=t.split("-");do{const o=r.join("-");u=pc(e,o,n),r.splice(-1,1)}while(r.length&&u===!0);return u}function pc(e,t,n){let u=!1;if(!e.includes(t)&&(u=!0,t)){u=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(be(n)||j(n))&&n[r]&&(u=n[r])}return u}const _c="9.14.5",Qn=-1,Jt="en-US",eu="",Co=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function gc(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?Co(e):t==="vnode"&&te(e)&&"__v_isVNode"in e?Co(e.children):e}}let vo;function wo(e){vo=e}let No;function bc(e){No=e}let Do;function Ec(e){Do=e}let To=null;const yc=e=>{To=e},kc=()=>To;let Ao=null;const Io=e=>{Ao=e},xc=()=>Ao;let So=0;function Cc(e={}){const t=de(e.onWarn)?e.onWarn:Se,n=F(e.version)?e.version:_c,u=F(e.locale)||de(e.locale)?e.locale:Jt,r=de(u)?Jt:u,o=be(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=j(e.messages)?e.messages:Ru(r),s=j(e.datetimeFormats)?e.datetimeFormats:Ru(r),l=j(e.numberFormats)?e.numberFormats:Ru(r),c=Be(fe(),e.modifiers,gc()),f=e.pluralRules||fe(),d=de(e.missing)?e.missing:null,h=K(e.missingWarn)||Tt(e.missingWarn)?e.missingWarn:!0,_=K(e.fallbackWarn)||Tt(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,x=!!e.unresolving,C=de(e.postTranslation)?e.postTranslation:null,D=j(e.processor)?e.processor:null,v=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,b=de(e.messageCompiler)?e.messageCompiler:vo;process.env.NODE_ENV!=="production"&&de(e.messageCompiler)&&Wr(zt(He.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const E=de(e.messageResolver)?e.messageResolver:No||Kl,y=de(e.localeFallbacker)?e.localeFallbacker:Do||hc,w=te(e.fallbackContext)?e.fallbackContext:void 0,T=e,A=te(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,B=te(T.__numberFormatters)?T.__numberFormatters:new Map,he=te(T.__meta)?T.__meta:{};So++;const U={version:n,cid:So,locale:u,fallbackLocale:o,messages:a,modifiers:c,pluralRules:f,missing:d,missingWarn:h,fallbackWarn:_,fallbackFormat:p,unresolving:x,postTranslation:C,processor:D,warnHtmlMessage:v,escapeParameter:m,messageCompiler:b,messageResolver:E,localeFallbacker:y,fallbackContext:w,onWarn:t,__meta:he};return U.datetimeFormats=s,U.numberFormats=l,U.__datetimeFormatters=A,U.__numberFormatters=B,process.env.NODE_ENV!=="production"&&(U.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sc(U,n,he),U}const Ru=e=>({[e]:fe()});function tu(e,t){return e instanceof RegExp?e.test(t):e}function Oo(e,t){return e instanceof RegExp?e.test(t):e}function Bu(e,t,n,u,r){const{missing:o,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:r,groupId:`${r}:${t}`})}if(o!==null){const s=o(e,n,t,r);return F(s)?s:t}else return process.env.NODE_ENV!=="production"&&Oo(u,t)&&a(zt(He.NOT_FOUND_KEY,{key:t,locale:n})),t}function Cn(e,t,n){const u=e;u.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Lo(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function vc(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let u=n+1;u<t.length;u++)if(Lo(e,t[u]))return!0;return!1}function $u(e){return n=>wc(n,e)}function wc(e,t){const n=Bl(t);if(n==null)throw kn(0);if(Pu(n)===1){const o=$l(n);return e.plural(o.reduce((a,s)=>[...a,Fo(e,s)],[]))}else return Fo(e,n)}function Fo(e,t){const n=Ul(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const u=zl(t).reduce((r,o)=>[...r,Uu(e,o)],[]);return e.normalize(u)}}function Uu(e,t){const n=Pu(t);switch(n){case 3:return Jn(t,n);case 9:return Jn(t,n);case 4:{const u=t;if(it(u,"k")&&u.k)return e.interpolate(e.named(u.k));if(it(u,"key")&&u.key)return e.interpolate(e.named(u.key));throw kn(n)}case 5:{const u=t;if(it(u,"i")&&De(u.i))return e.interpolate(e.list(u.i));if(it(u,"index")&&De(u.index))return e.interpolate(e.list(u.index));throw kn(n)}case 6:{const u=t,r=jl(u),o=Hl(u);return e.linked(Uu(e,o),r?Uu(e,r):void 0,e.type)}case 7:return Jn(t,n);case 8:return Jn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Nc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Po(e,t){t&&ml(e)&&Se(Ou(Nc,{source:e}))}const Mo=e=>e;let Qt=fe();function Vo(e){e.code===Kn.USE_MODULO_SYNTAX&&Se(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
25
|
+
*/function js(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(vt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Qe(e){return te(e)&&Pi(e)===0&&(ot(e,"b")||ot(e,"body"))}const oa=["b","body"];function Bs(e){return It(e,oa)}const la=["c","cases"];function $s(e){return It(e,la,[])}const sa=["s","static"];function zs(e){return It(e,sa)}const ca=["i","items"];function Us(e){return It(e,ca,[])}const fa=["t","type"];function Pi(e){return It(e,fa)}const da=["v","value"];function Jn(e,t){const n=It(e,da);if(n!=null)return n;throw vn(t)}const pa=["m","modifier"];function Hs(e){return It(e,pa)}const ha=["k","key"];function qs(e){const t=It(e,ha);if(t)return t;throw vn(6)}function It(e,t,n){for(let i=0;i<t.length;i++){const r=t[i];if(ot(e,r)&&e[r]!=null)return e[r]}return n}const ma=[...oa,...la,...sa,...ca,...ha,...pa,...da,...fa];function vn(e){return new Error(`unhandled node type: ${e}`)}const St=[];St[0]={w:[0],i:[3,0],"[":[4],o:[7]},St[1]={w:[1],".":[2],"[":[4],o:[7]},St[2]={w:[2],i:[3,0],0:[3,0]},St[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},St[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},St[5]={"'":[4,0],o:8,l:[5,0]},St[6]={'"':[4,0],o:8,l:[6,0]};const Ws=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ys(e){return Ws.test(e)}function Gs(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Xs(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Zs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ys(t)?Gs(t):"*"+t}function Ks(e){const t=[];let n=-1,i=0,r=0,a,u,l,s,c,f,d;const p=[];p[0]=()=>{u===void 0?u=l:u+=l},p[1]=()=>{u!==void 0&&(t.push(u),u=void 0)},p[2]=()=>{p[0](),r++},p[3]=()=>{if(r>0)r--,i=4,p[0]();else{if(r=0,u===void 0||(u=Zs(u),u===!1))return!1;p[1]()}};function g(){const m=e[n+1];if(i===5&&m==="'"||i===6&&m==='"')return n++,l="\\"+m,p[0](),!0}for(;i!==null;)if(n++,a=e[n],!(a==="\\"&&g())){if(s=Xs(a),d=St[i],c=d[s]||d.l||8,c===8||(i=c[0],c[1]!==void 0&&(f=p[c[1]],f&&(l=a,f()===!1))))return;if(i===7)return t}}const ga=new Map;function Js(e,t){return te(e)?e[t]:null}function Qs(e,t){if(!te(e))return null;let n=ga.get(t);if(n||(n=Ks(t),n&&ga.set(t,n)),!n)return null;const i=n.length;let r=e,a=0;for(;a<i;){const u=n[a];if(ma.includes(u)&&Qe(r))return null;const l=r[u];if(l===void 0||de(r))return null;r=l,a++}return r}const ec=e=>e,tc=e=>"",nc="text",ic=e=>e.length===0?"":as(e),rc=rs;function ba(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ac(e){const t=De(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(De(e.named.count)||De(e.named.n))?De(e.named.count)?e.named.count:De(e.named.n)?e.named.n:t:t}function uc(e,t){t.count||(t.count=e),t.n||(t.n=e)}function oc(e={}){const t=e.locale,n=ac(e),i=te(e.pluralRules)&&F(t)&&de(e.pluralRules[t])?e.pluralRules[t]:ba,r=te(e.pluralRules)&&F(t)&&de(e.pluralRules[t])?ba:void 0,a=D=>D[i(n,D.length,r)],u=e.list||[],l=D=>u[D],s=e.named||fe();De(e.pluralIndex)&&uc(n,s);const c=D=>s[D];function f(D){const k=de(e.messages)?e.messages(D):te(e.messages)?e.messages[D]:!1;return k||(e.parent?e.parent.message(D):tc)}const d=D=>e.modifiers?e.modifiers[D]:ec,p=U(e.processor)&&de(e.processor.normalize)?e.processor.normalize:ic,g=U(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:rc,m=U(e.processor)&&F(e.processor.type)?e.processor.type:nc,w={list:l,named:c,plural:a,linked:(D,...k)=>{const[h,_]=k;let x="text",y="";k.length===1?te(h)?(y=h.modifier||y,x=h.type||x):F(h)&&(y=h||y):k.length===2&&(F(h)&&(y=h||y),F(_)&&(x=_||x));const C=f(D)(w),T=x==="vnode"&&_e(C)&&y?C[0]:C;return y?d(y)(T,x):T},message:f,type:m,interpolate:g,normalize:p,values:je(fe(),u,s)};return w}let En=null;function lc(e){En=e}function sc(e,t,n){En&&En.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const cc=fc("function:translate");function fc(e){return t=>En&&En.emit(e,t)}const _a=Kn.__EXTEND_POINT__,$t=Yn(_a),He={NOT_FOUND_KEY:_a,FALLBACK_TO_TRANSLATE:$t(),CANNOT_FORMAT_NUMBER:$t(),FALLBACK_TO_NUMBER_FORMAT:$t(),CANNOT_FORMAT_DATE:$t(),FALLBACK_TO_DATE_FORMAT:$t(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:$t(),__EXTEND_POINT__:$t()},dc={[He.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[He.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[He.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[He.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[He.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[He.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[He.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."};function zt(e,...t){return Oi(dc[e],...t)}const xa=B.__EXTEND_POINT__,Ut=Yn(xa),Pe={INVALID_ARGUMENT:xa,INVALID_DATE_ARGUMENT:Ut(),INVALID_ISO_DATE_ARGUMENT:Ut(),NOT_SUPPORT_NON_STRING_MESSAGE:Ut(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ut(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ut(),NOT_SUPPORT_LOCALE_TYPE:Ut(),__EXTEND_POINT__:Ut()};function mt(e){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:pc}:void 0)}const pc={[Pe.INVALID_ARGUMENT]:"Invalid arguments",[Pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Mi(e,t){return t.locale!=null?ya(t.locale):ya(e.locale)}let Vi;function ya(e){if(F(e))return e;if(de(e)){if(e.resolvedOnce&&Vi!=null)return Vi;if(e.constructor.name==="Function"){const t=e();if(is(t))throw mt(Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vi=t}else throw mt(Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw mt(Pe.NOT_SUPPORT_LOCALE_TYPE)}function hc(e,t,n){return[...new Set([n,..._e(t)?t:te(t)?Object.keys(t):F(t)?[t]:[n]])]}function va(e,t,n){const i=F(n)?n:Jt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(i);if(!a){a=[];let u=[n];for(;_e(u);)u=Ea(a,u,t);const l=_e(t)||!U(t)?t:t.default?t.default:null;u=F(l)?[l]:l,_e(u)&&Ea(a,u,!1),r.__localeChainCache.set(i,a)}return a}function Ea(e,t,n){let i=!0;for(let r=0;r<t.length&&K(i);r++){const a=t[r];F(a)&&(i=mc(e,t[r],n))}return i}function mc(e,t,n){let i;const r=t.split("-");do{const a=r.join("-");i=gc(e,a,n),r.splice(-1,1)}while(r.length&&i===!0);return i}function gc(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(_e(n)||U(n))&&n[r]&&(i=n[r])}return i}const bc="9.14.5",Qn=-1,Jt="en-US",ei="",wa=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _c(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?wa(e):t==="vnode"&&te(e)&&"__v_isVNode"in e?wa(e.children):e}}let ka;function Ca(e){ka=e}let Na;function xc(e){Na=e}let Da;function yc(e){Da=e}let Ta=null;const vc=e=>{Ta=e},Ec=()=>Ta;let Aa=null;const Ia=e=>{Aa=e},wc=()=>Aa;let Sa=0;function kc(e={}){const t=de(e.onWarn)?e.onWarn:Se,n=F(e.version)?e.version:bc,i=F(e.locale)||de(e.locale)?e.locale:Jt,r=de(i)?Jt:i,a=_e(e.fallbackLocale)||U(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,u=U(e.messages)?e.messages:Ri(r),l=U(e.datetimeFormats)?e.datetimeFormats:Ri(r),s=U(e.numberFormats)?e.numberFormats:Ri(r),c=je(fe(),e.modifiers,_c()),f=e.pluralRules||fe(),d=de(e.missing)?e.missing:null,p=K(e.missingWarn)||Tt(e.missingWarn)?e.missingWarn:!0,g=K(e.fallbackWarn)||Tt(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,E=!!e.unresolving,w=de(e.postTranslation)?e.postTranslation:null,D=U(e.processor)?e.processor:null,k=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,_=de(e.messageCompiler)?e.messageCompiler:ka;process.env.NODE_ENV!=="production"&&de(e.messageCompiler)&&Yr(zt(He.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const x=de(e.messageResolver)?e.messageResolver:Na||Js,y=de(e.localeFallbacker)?e.localeFallbacker:Da||hc,C=te(e.fallbackContext)?e.fallbackContext:void 0,T=e,A=te(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,j=te(T.__numberFormatters)?T.__numberFormatters:new Map,pe=te(T.__meta)?T.__meta:{};Sa++;const $={version:n,cid:Sa,locale:i,fallbackLocale:a,messages:u,modifiers:c,pluralRules:f,missing:d,missingWarn:p,fallbackWarn:g,fallbackFormat:m,unresolving:E,postTranslation:w,processor:D,warnHtmlMessage:k,escapeParameter:h,messageCompiler:_,messageResolver:x,localeFallbacker:y,fallbackContext:C,onWarn:t,__meta:pe};return $.datetimeFormats=l,$.numberFormats=s,$.__datetimeFormatters=A,$.__numberFormatters=j,process.env.NODE_ENV!=="production"&&($.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sc($,n,pe),$}const Ri=e=>({[e]:fe()});function ti(e,t){return e instanceof RegExp?e.test(t):e}function Oa(e,t){return e instanceof RegExp?e.test(t):e}function ji(e,t,n,i,r){const{missing:a,onWarn:u}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:r,groupId:`${r}:${t}`})}if(a!==null){const l=a(e,n,t,r);return F(l)?l:t}else return process.env.NODE_ENV!=="production"&&Oa(i,t)&&u(zt(He.NOT_FOUND_KEY,{key:t,locale:n})),t}function wn(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function La(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Cc(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let i=n+1;i<t.length;i++)if(La(e,t[i]))return!0;return!1}function Bi(e){return n=>Nc(n,e)}function Nc(e,t){const n=Bs(t);if(n==null)throw vn(0);if(Pi(n)===1){const a=$s(n);return e.plural(a.reduce((u,l)=>[...u,Fa(e,l)],[]))}else return Fa(e,n)}function Fa(e,t){const n=zs(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const i=Us(t).reduce((r,a)=>[...r,$i(e,a)],[]);return e.normalize(i)}}function $i(e,t){const n=Pi(t);switch(n){case 3:return Jn(t,n);case 9:return Jn(t,n);case 4:{const i=t;if(ot(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(ot(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw vn(n)}case 5:{const i=t;if(ot(i,"i")&&De(i.i))return e.interpolate(e.list(i.i));if(ot(i,"index")&&De(i.index))return e.interpolate(e.list(i.index));throw vn(n)}case 6:{const i=t,r=Hs(i),a=qs(i);return e.linked($i(e,a),r?$i(e,r):void 0,e.type)}case 7:return Jn(t,n);case 8:return Jn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Dc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Pa(e,t){t&&ms(e)&&Se(Oi(Dc,{source:e}))}const Ma=e=>e;let Qt=fe();function Va(e){e.code===Kn.USE_MODULO_SYNTAX&&Se(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
17
26
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
18
|
-
(message compiler warning message: ${e.message})`)}function
|
|
19
|
-
${c}`:
|
|
27
|
+
(message compiler warning message: ${e.message})`)}function Ra(e,t={}){let n=!1;const i=t.onError||ps;return t.onError=r=>{n=!0,i(r)},{...Rs(e,t),detectError:n}}const Tc=(e,t)=>{if(!F(e))throw mt(Pe.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=Va);{const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Pa(e,n);const r=(t.onCacheKey||Ma)(e),a=Qt[r];if(a)return a;const{code:u,detectError:l}=Ra(e,t),s=new Function(`return ${u}`)();return l?s:Qt[r]=s}};function Ac(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=Va),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Pa(e,n);const r=(t.onCacheKey||Ma)(e),a=Qt[r];if(a)return a;const{ast:u,detectError:l}=Ra(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),s=Bi(u);return l?s:Qt[r]=s}else{if(process.env.NODE_ENV!=="production"&&!Qe(e))return Se(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const i=Qt[n];return i||(Qt[n]=Bi(e))}else return Bi(e)}}const ja=()=>"",et=e=>de(e);function Ba(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:a,fallbackLocale:u,messages:l}=e,[s,c]=zi(...t),f=K(c.missingWarn)?c.missingWarn:e.missingWarn,d=K(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=K(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,m=F(c.default)||K(c.default)?K(c.default)?a?s:()=>s:c.default:n?a?s:()=>s:"",E=n||m!=="",w=Mi(e,c);p&&Ic(c);let[D,k,h]=g?[s,w,l[w]||fe()]:$a(e,s,w,u,d,f),_=D,x=s;if(!g&&!(F(_)||Qe(_)||et(_))&&E&&(_=m,x=_),!g&&(!(F(_)||Qe(_)||et(_))||!F(k)))return r?Qn:s;if(process.env.NODE_ENV!=="production"&&F(_)&&e.messageCompiler==null)return Se(`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 '${s}'.`),s;let y=!1;const C=()=>{y=!0},T=et(_)?_:za(e,s,k,_,x,C);if(y)return _;const A=Fc(e,k,h,c),j=oc(A),pe=Sc(e,T,j);let $=i?i(pe,s):pe;if(p&&F($)&&($=ts($)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:F(s)?s:et(_)?_.key:"",locale:k||(et(_)?_.locale:""),format:F(_)?_:et(_)?_.source:"",message:$};R.meta=je({},e.__meta,Ec()||{}),cc(R)}return $}function Ic(e){_e(e.list)?e.list=e.list.map(t=>F(t)?Xr(t):t):te(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=Xr(e.named[t]))})}function $a(e,t,n,i,r,a){const{messages:u,onWarn:l,messageResolver:s,localeFallbacker:c}=e,f=c(e,i,n);let d=fe(),p,g=null,m=n,E=null;const w="translate";for(let D=0;D<f.length;D++){if(p=E=f[D],process.env.NODE_ENV!=="production"&&n!==p&&!La(n,p)&&ti(r,t)&&l(zt(He.FALLBACK_TO_TRANSLATE,{key:t,target:p})),process.env.NODE_ENV!=="production"&&n!==p){const x=e.__v_emitter;x&&x.emit("fallback",{type:w,key:t,from:m,to:E,groupId:`${w}:${t}`})}d=u[p]||fe();let k=null,h,_;if(process.env.NODE_ENV!=="production"&&ut&&(k=window.performance.now(),h="intlify-message-resolve-start",_="intlify-message-resolve-end",Xe&&Xe(h)),(g=s(d,t))===null&&(g=d[t]),process.env.NODE_ENV!=="production"&&ut){const x=window.performance.now(),y=e.__v_emitter;y&&k&&g&&y.emit("message-resolve",{type:"message-resolve",key:t,message:g,time:x-k,groupId:`${w}:${t}`}),h&&_&&Xe&&Bt&&(Xe(_),Bt("intlify message resolve",h,_))}if(F(g)||Qe(g)||et(g))break;if(!Cc(p,f)){const x=ji(e,t,p,a,w);x!==t&&(g=x)}m=E}return[g,p,d]}function za(e,t,n,i,r,a){const{messageCompiler:u,warnHtmlMessage:l}=e;if(et(i)){const p=i;return p.locale=p.locale||n,p.key=p.key||t,p}if(u==null){const p=()=>i;return p.locale=n,p.key=t,p}let s=null,c,f;process.env.NODE_ENV!=="production"&&ut&&(s=window.performance.now(),c="intlify-message-compilation-start",f="intlify-message-compilation-end",Xe&&Xe(c));const d=u(i,Oc(e,n,r,i,l,a));if(process.env.NODE_ENV!=="production"&&ut){const p=window.performance.now(),g=e.__v_emitter;g&&s&&g.emit("message-compilation",{type:"message-compilation",message:i,time:p-s,groupId:`translate:${t}`}),c&&f&&Xe&&Bt&&(Xe(f),Bt("intlify message compilation",c,f))}return d.locale=n,d.key=t,d.source=i,d}function Sc(e,t,n){let i=null,r,a;process.env.NODE_ENV!=="production"&&ut&&(i=window.performance.now(),r="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Xe&&Xe(r));const u=t(n);if(process.env.NODE_ENV!=="production"&&ut){const l=window.performance.now(),s=e.__v_emitter;s&&i&&s.emit("message-evaluation",{type:"message-evaluation",value:u,time:l-i,groupId:`translate:${t.key}`}),r&&a&&Xe&&Bt&&(Xe(a),Bt("intlify message evaluation",r,a))}return u}function zi(...e){const[t,n,i]=e,r=fe();if(!F(t)&&!De(t)&&!et(t)&&!Qe(t))throw mt(Pe.INVALID_ARGUMENT);const a=De(t)?String(t):(et(t),t);return De(n)?r.plural=n:F(n)?r.default=n:U(n)&&!Wn(n)?r.named=n:_e(n)&&(r.list=n),De(i)?r.plural=i:F(i)?r.default=i:U(i)&&je(r,i),[a,r]}function Oc(e,t,n,i,r,a){return{locale:t,key:n,warnHtmlMessage:r,onError:u=>{if(a&&a(u),process.env.NODE_ENV!=="production"){const l=Lc(i),s=`Message compilation error: ${u.message}`,c=u.location&&l&&us(l,u.location.start.offset,u.location.end.offset),f=e.__v_emitter;f&&l&&f.emit("compile-error",{message:l,error:u.message,start:u.location&&u.location.start.offset,end:u.location&&u.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${s}
|
|
28
|
+
${c}`:s)}else throw u},onCacheKey:u=>Kl(t,n,u)}}function Lc(e){if(F(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Fc(e,t,n,i){const{modifiers:r,pluralRules:a,messageResolver:u,fallbackLocale:l,fallbackWarn:s,missingWarn:c,fallbackContext:f}=e,p={locale:t,modifiers:r,pluralRules:a,messages:g=>{let m=u(n,g);if(m==null&&f){const[,,E]=$a(f,g,t,l,s,c);m=u(E,g)}if(F(m)||Qe(m)){let E=!1;const D=za(e,g,t,m,g,()=>{E=!0});return E?ja:D}else return et(m)?m:ja}};return e.processor&&(p.processor=e.processor),i.list&&(p.list=i.list),i.named&&(p.named=i.named),De(i.plural)&&(p.pluralIndex=i.plural),p}const Ua=typeof Intl<"u",Ha={dateTimeFormat:Ua&&typeof Intl.DateTimeFormat<"u",numberFormat:Ua&&typeof Intl.NumberFormat<"u"};function qa(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:u}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ha.dateTimeFormat)return a(zt(He.CANNOT_FORMAT_DATE)),ei;const[s,c,f,d]=Ui(...t),p=K(f.missingWarn)?f.missingWarn:e.missingWarn,g=K(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,m=!!f.part,E=Mi(e,f),w=u(e,r,E);if(!F(s)||s==="")return new Intl.DateTimeFormat(E,d).format(c);let D={},k,h=null,_=E,x=null;const y="datetime format";for(let A=0;A<w.length;A++){if(k=x=w[A],process.env.NODE_ENV!=="production"&&E!==k&&ti(g,s)&&a(zt(He.FALLBACK_TO_DATE_FORMAT,{key:s,target:k})),process.env.NODE_ENV!=="production"&&E!==k){const j=e.__v_emitter;j&&j.emit("fallback",{type:y,key:s,from:_,to:x,groupId:`${y}:${s}`})}if(D=n[k]||{},h=D[s],U(h))break;ji(e,s,k,p,y),_=x}if(!U(h)||!F(k))return i?Qn:s;let C=`${k}__${s}`;Wn(d)||(C=`${C}__${JSON.stringify(d)}`);let T=l.get(C);return T||(T=new Intl.DateTimeFormat(k,je({},h,d)),l.set(C,T)),m?T.formatToParts(c):T.format(c)}const Wa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ui(...e){const[t,n,i,r]=e,a=fe();let u=fe(),l;if(F(t)){const s=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!s)throw mt(Pe.INVALID_ISO_DATE_ARGUMENT);const c=s[3]?s[3].trim().startsWith("T")?`${s[1].trim()}${s[3].trim()}`:`${s[1].trim()}T${s[3].trim()}`:s[1].trim();l=new Date(c);try{l.toISOString()}catch{throw mt(Pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Ql(t)){if(isNaN(t.getTime()))throw mt(Pe.INVALID_DATE_ARGUMENT);l=t}else if(De(t))l=t;else throw mt(Pe.INVALID_ARGUMENT);return F(n)?a.key=n:U(n)&&Object.keys(n).forEach(s=>{Wa.includes(s)?u[s]=n[s]:a[s]=n[s]}),F(i)?a.locale=i:U(i)&&(u=i),U(r)&&(u=r),[a.key||"",l,a,u]}function Ya(e,t,n){const i=e;for(const r in n){const a=`${t}__${r}`;i.__datetimeFormatters.has(a)&&i.__datetimeFormatters.delete(a)}}function Ga(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:u}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Ha.numberFormat)return a(zt(He.CANNOT_FORMAT_NUMBER)),ei;const[s,c,f,d]=Hi(...t),p=K(f.missingWarn)?f.missingWarn:e.missingWarn,g=K(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,m=!!f.part,E=Mi(e,f),w=u(e,r,E);if(!F(s)||s==="")return new Intl.NumberFormat(E,d).format(c);let D={},k,h=null,_=E,x=null;const y="number format";for(let A=0;A<w.length;A++){if(k=x=w[A],process.env.NODE_ENV!=="production"&&E!==k&&ti(g,s)&&a(zt(He.FALLBACK_TO_NUMBER_FORMAT,{key:s,target:k})),process.env.NODE_ENV!=="production"&&E!==k){const j=e.__v_emitter;j&&j.emit("fallback",{type:y,key:s,from:_,to:x,groupId:`${y}:${s}`})}if(D=n[k]||{},h=D[s],U(h))break;ji(e,s,k,p,y),_=x}if(!U(h)||!F(k))return i?Qn:s;let C=`${k}__${s}`;Wn(d)||(C=`${C}__${JSON.stringify(d)}`);let T=l.get(C);return T||(T=new Intl.NumberFormat(k,je({},h,d)),l.set(C,T)),m?T.formatToParts(c):T.format(c)}const Xa=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hi(...e){const[t,n,i,r]=e,a=fe();let u=fe();if(!De(t))throw mt(Pe.INVALID_ARGUMENT);const l=t;return F(n)?a.key=n:U(n)&&Object.keys(n).forEach(s=>{Xa.includes(s)?u[s]=n[s]:a[s]=n[s]}),F(i)?a.locale=i:U(i)&&(u=i),U(r)&&(u=r),[a.key||"",l,a,u]}function Za(e,t,n){const i=e;for(const r in n){const a=`${t}__${r}`;i.__numberFormatters.has(a)&&i.__numberFormatters.delete(a)}}js();function Pc(){return Ka().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ka(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Mc=typeof Proxy=="function",Vc="devtools-plugin:setup",Rc="plugin:settings:set";let en,qi;function jc(){var e;return en!==void 0||(typeof window<"u"&&window.performance?(en=!0,qi=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(en=!0,qi=globalThis.perf_hooks.performance):en=!1),en}function Bc(){return jc()?qi.now():Date.now()}class $c{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const i={};if(t.settings)for(const u in t.settings){const l=t.settings[u];i[u]=l.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},i);try{const u=localStorage.getItem(r),l=JSON.parse(u);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(u){try{localStorage.setItem(r,JSON.stringify(u))}catch{}a=u},now(){return Bc()}},n&&n.on(Rc,(u,l)=>{u===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(u,l)=>this.target?this.target.on[l]:(...s)=>{this.onQueue.push({method:l,args:s})}}),this.proxiedTarget=new Proxy({},{get:(u,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...s)=>(this.targetQueue.push({method:l,args:s,resolve:()=>{}}),this.fallbacks[l](...s)):(...s)=>new Promise(c=>{this.targetQueue.push({method:l,args:s,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function zc(e,t){const n=e,i=Ka(),r=Pc(),a=Mc&&n.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))r.emit(Vc,e,t);else{const u=a?new $c(n,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*!
|
|
20
29
|
* vue-i18n v9.14.5
|
|
21
30
|
* (c) 2025 kazuya kawaguchi
|
|
22
31
|
* Released under the MIT License.
|
|
23
|
-
*/const zc="9.14.5";function jc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Jo=He.__EXTEND_POINT__,Ct=Yn(Jo),Ce={FALLBACK_TO_ROOT:Jo,NOT_SUPPORTED_PRESERVE:Ct(),NOT_SUPPORTED_FORMATTER:Ct(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ct(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ct(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ct(),NOT_FOUND_PARENT_SCOPE:Ct(),IGNORE_OBJ_FLATTEN:Ct(),NOTICE_DROP_ALLOW_COMPOSITION:Ct(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ct()},Hc={[Ce.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ce.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ce.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ce.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ce.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ce.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ce.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ce.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Ce.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function We(e,...t){return Ou(Hc[e],...t)}const Qo=Pe.__EXTEND_POINT__,Ye=Yn(Qo),ne={UNEXPECTED_RETURN_TYPE:Qo,INVALID_ARGUMENT:Ye(),MUST_BE_CALL_SETUP_TOP:Ye(),NOT_INSTALLED:Ye(),NOT_AVAILABLE_IN_LEGACY_MODE:Ye(),REQUIRED_VALUE:Ye(),INVALID_VALUE:Ye(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ye(),NOT_INSTALLED_WITH_PROVIDE:Ye(),UNEXPECTED_ERROR:Ye(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ye(),BRIDGE_SUPPORT_VUE_2_ONLY:Ye(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ye(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ye(),__EXTEND_POINT__:Ye()};function Fe(e,...t){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:qc,args:t}:void 0)}const qc={[ne.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ne.INVALID_ARGUMENT]:"Invalid argument",[ne.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ne.NOT_INSTALLED]:"Need to install with `app.use` function",[ne.UNEXPECTED_ERROR]:"Unexpected error",[ne.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ne.REQUIRED_VALUE]:"Required in value: {0}",[ne.INVALID_VALUE]:"Invalid value",[ne.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ne.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ne.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ne.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ne.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Wu=mt("__translateVNode"),Yu=mt("__datetimeParts"),Gu=mt("__numberParts"),Ht=mt("__enableEmitter"),vn=mt("__disableEmitter"),ea=mt("__setPluralRules"),ta=mt("__injectWithOption"),Xu=mt("__dispose");function wn(e){if(!te(e)||Qe(e))return e;for(const t in e)if(it(e,t))if(!t.includes("."))te(e[t])&&wn(e[t]);else{const n=t.split("."),u=n.length-1;let r=e,o=!1;for(let a=0;a<u;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in r||(r[n[a]]=fe()),!te(r[n[a]])){process.env.NODE_ENV!=="production"&&Se(We(Ce.IGNORE_OBJ_FLATTEN,{key:n[a]})),o=!0;break}r=r[n[a]]}if(o||(Qe(r)?po.includes(n[u])||delete e[t]:(r[n[u]]=e[t],delete e[t])),!Qe(r)){const a=r[n[u]];te(a)&&wn(a)}}return e}function nu(e,t){const{messages:n,__i18n:u,messageResolver:r,flatJson:o}=t,a=j(n)?n:be(u)?fe():{[e]:fe()};if(be(u)&&u.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||fe(),Xn(c,a[l])):Xn(c,a)}else F(s)&&Xn(JSON.parse(s),a)}),r==null&&o)for(const s in a)it(a,s)&&wn(a[s]);return a}function na(e){return e.type}function ua(e,t,n){let u=te(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(u=nu(e.locale.value,{messages:u,__i18n:n.__i18nGlobal}));const r=Object.keys(u);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,u[o])});{if(te(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(te(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function ra(e){return i.createVNode(i.Text,null,e,0)}const oa="__INTLIFY_META__",aa=()=>[],Wc=()=>!1;let ia=0;function sa(e){return(t,n,u,r)=>e(n,u,i.getCurrentInstance()||void 0,r)}const Yc=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=na(e)[oa])?{[oa]:t}:null};function Zu(e={},t){const{__root:n,__injectWithOption:u}=e,r=n===void 0,o=e.flatJson,a=at?i.ref:i.shallowRef,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&Wr(We(Ce.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=K(e.inheritLocale)?e.inheritLocale:!0;const c=a(n&&l?n.locale.value:F(e.locale)?e.locale:Jt),f=a(n&&l?n.fallbackLocale.value:F(e.fallbackLocale)||be(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(nu(c.value,e)),h=a(j(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),_=a(j(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:K(e.missingWarn)||Tt(e.missingWarn)?e.missingWarn:!0,x=n?n.fallbackWarn:K(e.fallbackWarn)||Tt(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,D=!!e.fallbackFormat,v=de(e.missing)?e.missing:null,m=de(e.missing)?sa(e.missing):null,b=de(e.postTranslation)?e.postTranslation:null,E=n?n.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const w=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let T=e.pluralRules||n&&n.pluralRules,A;A=(()=>{r&&Io(null);const N={version:zc,locale:c.value,fallbackLocale:f.value,messages:d.value,modifiers:w,pluralRules:T,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:x,fallbackFormat:D,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:E,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};N.datetimeFormats=h.value,N.numberFormats=_.value,N.__datetimeFormatters=j(A)?A.__datetimeFormatters:void 0,N.__numberFormatters=j(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(N.__v_emitter=j(A)?A.__v_emitter:void 0);const L=Cc(N);return r&&Io(L),L})(),Cn(A,c.value,f.value);function he(){return[c.value,f.value,d.value,h.value,_.value]}const U=i.computed({get:()=>c.value,set:N=>{c.value=N,A.locale=c.value}}),R=i.computed({get:()=>f.value,set:N=>{f.value=N,A.fallbackLocale=f.value,Cn(A,c.value,N)}}),Q=i.computed(()=>d.value),q=i.computed(()=>h.value),ue=i.computed(()=>_.value);function Ue(){return de(b)?b:null}function M(N){b=N,A.postTranslation=N}function Y(){return v}function P(N){N!==null&&(m=sa(N)),v=N,A.missing=m}function _e(N,L){return N!=="translate"||!L.resolvedMessage}const W=(N,L,ae,Ie,Bt,Su)=>{he();let yn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=n?xc():void 0),yn=N(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(ae!=="translate exists"&&De(yn)&&yn===Qn||ae==="translate exists"&&!yn){const[Gt,Kb]=L();if(process.env.NODE_ENV!=="production"&&n&&F(Gt)&&_e(ae,Kb)&&(C&&(tu(x,Gt)||Oo(p,Gt))&&Se(We(Ce.FALLBACK_TO_ROOT,{key:Gt,type:ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:Gs}=A;Gs&&C&&Gs.emit("fallback",{type:ae,key:Gt,to:"global",groupId:`${ae}:${Gt}`})}return n&&C?Ie(n):Bt(Gt)}else{if(Su(yn))return yn;throw Fe(ne.UNEXPECTED_RETURN_TYPE)}};function Le(...N){return W(L=>Reflect.apply($o,null,[L,...N]),()=>zu(...N),"translate",L=>Reflect.apply(L.t,L,[...N]),L=>L,L=>F(L))}function re(...N){const[L,ae,Ie]=N;if(Ie&&!te(Ie))throw Fe(ne.INVALID_ARGUMENT);return Le(L,ae,Be({resolvedMessage:!0},Ie||{}))}function ht(...N){return W(L=>Reflect.apply(qo,null,[L,...N]),()=>ju(...N),"datetime format",L=>Reflect.apply(L.d,L,[...N]),()=>eu,L=>F(L))}function ie(...N){return W(L=>Reflect.apply(Go,null,[L,...N]),()=>Hu(...N),"number format",L=>Reflect.apply(L.n,L,[...N]),()=>eu,L=>F(L))}function I(N){return N.map(L=>F(L)||De(L)||K(L)?ra(String(L)):L)}const X={normalize:I,interpolate:N=>N,type:"vnode"};function se(...N){return W(L=>{let ae;const Ie=L;try{Ie.processor=X,ae=Reflect.apply($o,null,[Ie,...N])}finally{Ie.processor=null}return ae},()=>zu(...N),"translate",L=>L[Wu](...N),L=>[ra(L)],L=>be(L))}function ee(...N){return W(L=>Reflect.apply(Go,null,[L,...N]),()=>Hu(...N),"number format",L=>L[Gu](...N),aa,L=>F(L)||be(L))}function Ae(...N){return W(L=>Reflect.apply(qo,null,[L,...N]),()=>ju(...N),"datetime format",L=>L[Yu](...N),aa,L=>F(L)||be(L))}function qe(N){T=N,A.pluralRules=T}function O(N,L){return W(()=>{if(!N)return!1;const ae=F(L)?L:c.value,Ie=le(ae),Bt=A.messageResolver(Ie,N);return s?Bt!=null:Qe(Bt)||et(Bt)||F(Bt)},()=>[N],"translate exists",ae=>Reflect.apply(ae.te,ae,[N,L]),Wc,ae=>K(ae))}function z(N){let L=null;const ae=ko(A,f.value,c.value);for(let Ie=0;Ie<ae.length;Ie++){const Bt=d.value[ae[Ie]]||{},Su=A.messageResolver(Bt,N);if(Su!=null){L=Su;break}}return L}function ot(N){const L=z(N);return L??(n?n.tm(N)||{}:{})}function le(N){return d.value[N]||{}}function yt(N,L){if(o){const ae={[N]:L};for(const Ie in ae)it(ae,Ie)&&wn(ae[Ie]);L=ae[N]}d.value[N]=L,A.messages=d.value}function En(N,L){d.value[N]=d.value[N]||{};const ae={[N]:L};if(o)for(const Ie in ae)it(ae,Ie)&&wn(ae[Ie]);L=ae[N],Xn(L,d.value[N]),A.messages=d.value}function g(N){return h.value[N]||{}}function k(N,L){h.value[N]=L,A.datetimeFormats=h.value,Yo(A,N,L)}function S(N,L){h.value[N]=Be(h.value[N]||{},L),A.datetimeFormats=h.value,Yo(A,N,L)}function V(N){return _.value[N]||{}}function ve(N,L){_.value[N]=L,A.numberFormats=_.value,Zo(A,N,L)}function ge(N,L){_.value[N]=Be(_.value[N]||{},L),A.numberFormats=_.value,Zo(A,N,L)}ia++,n&&at&&(i.watch(n.locale,N=>{l&&(c.value=N,A.locale=N,Cn(A,c.value,f.value))}),i.watch(n.fallbackLocale,N=>{l&&(f.value=N,A.fallbackLocale=N,Cn(A,c.value,f.value))}));const ce={id:ia,locale:U,fallbackLocale:R,get inheritLocale(){return l},set inheritLocale(N){l=N,N&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,Cn(A,c.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:Q,get modifiers(){return w},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(N){p=N,A.missingWarn=p},get fallbackWarn(){return x},set fallbackWarn(N){x=N,A.fallbackWarn=x},get fallbackRoot(){return C},set fallbackRoot(N){C=N},get fallbackFormat(){return D},set fallbackFormat(N){D=N,A.fallbackFormat=D},get warnHtmlMessage(){return E},set warnHtmlMessage(N){E=N,A.warnHtmlMessage=N},get escapeParameter(){return y},set escapeParameter(N){y=N,A.escapeParameter=N},t:Le,getLocaleMessage:le,setLocaleMessage:yt,mergeLocaleMessage:En,getPostTranslationHandler:Ue,setPostTranslationHandler:M,getMissingHandler:Y,setMissingHandler:P,[ea]:qe};return ce.datetimeFormats=q,ce.numberFormats=ue,ce.rt=re,ce.te=O,ce.tm=ot,ce.d=ht,ce.n=ie,ce.getDateTimeFormat=g,ce.setDateTimeFormat=k,ce.mergeDateTimeFormat=S,ce.getNumberFormat=V,ce.setNumberFormat=ve,ce.mergeNumberFormat=ge,ce[ta]=u,ce[Wu]=se,ce[Yu]=Ae,ce[Gu]=ee,process.env.NODE_ENV!=="production"&&(ce[Ht]=N=>{A.__v_emitter=N},ce[vn]=()=>{A.__v_emitter=void 0}),ce}function Gc(e){const t=F(e.locale)?e.locale:Jt,n=F(e.fallbackLocale)||be(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,u=de(e.missing)?e.missing:void 0,r=K(e.silentTranslationWarn)||Tt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=K(e.silentFallbackWarn)||Tt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=K(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=j(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,d=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,_=K(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Se(We(Ce.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Se(We(Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=e.messages;if(j(e.sharedMessages)){const y=e.sharedMessages;p=Object.keys(y).reduce((T,A)=>{const B=T[A]||(T[A]={});return Be(B,y[A]),T},p||{})}const{__i18n:x,__root:C,__injectWithOption:D}=e,v=e.datetimeFormats,m=e.numberFormats,b=e.flatJson,E=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:b,datetimeFormats:v,numberFormats:m,missing:u,missingWarn:r,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:f,warnHtmlMessage:d,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:_,translateExistCompatible:E,__i18n:x,__root:C,__injectWithOption:D}}function Ku(e={},t){{const n=Zu(Gc(e)),{__extender:u}=e,r={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return K(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=K(o)?!o:o},get silentFallbackWarn(){return K(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=K(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[a,s,l]=o,c={};let f=null,d=null;if(!F(a))throw Fe(ne.INVALID_ARGUMENT);const h=a;return F(s)?c.locale=s:be(s)?f=s:j(s)&&(d=s),be(l)?f=l:j(l)&&(d=l),Reflect.apply(n.t,n,[h,f||d||{},c])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[a,s,l]=o,c={plural:1};let f=null,d=null;if(!F(a))throw Fe(ne.INVALID_ARGUMENT);const h=a;return F(s)?c.locale=s:De(s)?c.plural=s:be(s)?f=s:j(s)&&(d=s),F(l)?c.locale=l:be(l)?f=l:j(l)&&(d=l),Reflect.apply(n.t,n,[h,f||d||{},c])},te(o,a){return n.te(o,a)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,a){n.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){n.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,a){n.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){n.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,a){n.setNumberFormat(o,a)},mergeNumberFormat(o,a){n.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=u,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const a=n;a[Ht]&&a[Ht](o)},r.__disableEmitter=()=>{const o=n;o[vn]&&o[vn]()}),r}}const Ju={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((u,r)=>[...u,...r.type===i.Fragment?r.children:[r]],[]):t.reduce((n,u)=>{const r=e[u];return r&&(n[u]=r()),n},fe())}function la(e){return i.Fragment}const Qu=i.defineComponent({name:"i18n-t",props:Be({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>De(e)||!isNaN(e)}},Ju),setup(e,t){const{slots:n,attrs:u}=t,r=e.i18n||tn({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),a=fe();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=F(e.plural)?+e.plural:e.plural);const s=Xc(t,o),l=r[Wu](e.keypath,s,a),c=Be(fe(),u),f=F(e.tag)||te(e.tag)?e.tag:la();return i.h(f,c,l)}}});function Zc(e){return be(e)&&!F(e[0])}function ca(e,t,n,u){const{slots:r,attrs:o}=t;return()=>{const a={part:!0};let s=fe();e.locale&&(a.locale=e.locale),F(e.format)?a.key=e.format:te(e.format)&&(F(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,_)=>n.includes(_)?Be(fe(),h,{[_]:e.format[_]}):h,fe()));const l=u(e.value,a,s);let c=[a.key];be(l)?c=l.map((h,_)=>{const p=r[h.type],x=p?p({[h.type]:h.value,index:_,parts:l}):[h.value];return Zc(x)&&(x[0].key=`${h.type}-${_}`),x}):F(l)&&(c=[l]);const f=Be(fe(),o),d=F(e.tag)||te(e.tag)?e.tag:la();return i.h(d,f,c)}}const fa=i.defineComponent({name:"i18n-n",props:Be({value:{type:Number,required:!0},format:{type:[String,Object]}},Ju),setup(e,t){const n=e.i18n||tn({useScope:e.scope,__useComponent:!0});return ca(e,t,Xo,(...u)=>n[Gu](...u))}}),da=i.defineComponent({name:"i18n-d",props:Be({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ju),setup(e,t){const n=e.i18n||tn({useScope:e.scope,__useComponent:!0});return ca(e,t,Wo,(...u)=>n[Yu](...u))}});function Kc(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const u=n.__getInstance(t);return u!=null?u.__composer:e.global.__composer}}function Jc(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw Fe(ne.UNEXPECTED_ERROR);const f=Kc(e,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&Se(We(Ce.NOT_SUPPORTED_PRESERVE));const d=ha(c);return[Reflect.apply(f.t,f,[...ma(d)]),f]};return{created:(a,s)=>{const[l,c]=t(s);at&&e.global===c&&(a.__i18nWatcher=i.watch(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{at&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=ha(s);a.textContent=Reflect.apply(l.t,l,[...ma(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function ha(e){if(F(e))return{path:e};if(j(e)){if(!("path"in e))throw Fe(ne.REQUIRED_VALUE,"path");return e}else throw Fe(ne.INVALID_VALUE)}function ma(e){const{path:t,locale:n,args:u,choice:r,plural:o}=e,a={},s=u||{};return F(n)&&(a.locale=n),De(r)&&(a.plural=r),De(o)&&(a.plural=o),[t,s,a]}function Qc(e,t,...n){const u=j(n[0])?n[0]:{},r=!!u.useI18nComponentName,o=K(u.globalInstall)?u.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&r&&Se(We(Ce.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Qu.name})),o&&([r?"i18n":Qu.name,"I18nT"].forEach(a=>e.component(a,Qu)),[fa.name,"I18nN"].forEach(a=>e.component(a,fa)),[da.name,"I18nD"].forEach(a=>e.component(a,da))),e.directive("t",Jc(t))}const er={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},e0={"vue-i18n-resource-inspector":"Search for scopes ..."},t0={"vue-i18n-timeline":16764185},pa="vue-i18n: composer properties";let tr;async function n0(e,t){return new Promise((n,u)=>{try{Uc({id:"vue-devtools-plugin-vue-i18n",label:er["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[pa],app:e},r=>{tr=r,r.on.visitComponentTree(({componentInstance:a,treeNode:s})=>{u0(a,s,t)}),r.on.inspectComponent(({componentInstance:a,instanceData:s})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&ga(s,a.vnode.el.__VUE_I18N__):ga(s,a.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:er["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:e0["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&s0(a,t)});const o=new Map;r.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),c0(a,t),a.nodeId==="global"){if(!o.has(a.app)){const[s]=await r.getComponentInstances(a.app);o.set(a.app,s)}r.highlightElement(o.get(a.app))}else{const s=l0(a.nodeId,t);s&&r.highlightElement(s)}}),r.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&d0(a,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:er["vue-i18n-timeline"],color:t0["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),u(!1)}})}function _a(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function u0(e,t,n){const u=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==u){const r={label:`i18n (${_a(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function ga(e,t){const n=pa;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:nr(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function nr(e){const t={};return Object.keys(e).forEach(n=>{const u=e[n];de(u)&&"source"in u?t[n]=i0(u):Qe(u)&&u.loc&&u.loc.source?t[n]=u.loc.source:te(u)?t[n]=nr(u):t[n]=u}),t}const r0={"<":"<",">":">",'"':""","&":"&"};function o0(e){return e.replace(/[<>"&]/g,a0)}function a0(e){return r0[e]||e}function i0(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${o0(e.source)}")`:"(?)"}`}}}function s0(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[u,r]of t.__instances){const o=t.mode==="composition"?r:r.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${_a(u)} Scope`})}}function l0(e,t){let n=null;if(e!=="global"){for(const[u,r]of t.__instances.entries())if(r.id.toString()===e){n=u;break}}return n}function ba(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(u=>u.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function c0(e,t){const n=ba(e.nodeId,t);return n&&(e.state=f0(n)),null}function f0(e){const t={},n="Locale related info",u=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=u;const r="Locale messages info",o=[{type:r,key:"messages",editable:!1,value:nr(e.messages.value)}];t[r]=o;{const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=s;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function Nn(e,t){if(tr){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),tr.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function d0(e,t){const n=ba(e.nodeId,t);if(n){const[u]=e.path;u==="locale"&&F(e.state.value)?n.locale.value=e.state.value:u==="fallbackLocale"&&(F(e.state.value)||be(e.state.value)||te(e.state.value))?n.fallbackLocale.value=e.state.value:u==="inheritLocale"&&K(e.state.value)&&(n.inheritLocale=e.state.value)}}function h0(e,t,n){return{beforeCreate(){const u=i.getCurrentInstance();if(!u)throw Fe(ne.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=Ea(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Ku(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Ea(e,r);else{this.$i18n=Ku({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&ua(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(u,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const u=this.$i18n;this.$el.__VUE_I18N__=u.__composer;const r=this.__v_emitter=Lu();u.__enableEmitter&&u.__enableEmitter(r),r.on("*",Nn)}},unmounted(){const u=i.getCurrentInstance();if(!u)throw Fe(ne.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Nn),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(u),delete this.$i18n}}}function Ea(e,t){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[ea](t.pluralizationRules||e.pluralizationRules);const n=nu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(u=>e.mergeLocaleMessage(u,n[u])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(u=>e.mergeDateTimeFormat(u,t.datetimeFormats[u])),t.numberFormats&&Object.keys(t.numberFormats).forEach(u=>e.mergeNumberFormat(u,t.numberFormats[u])),e}const m0=mt("global-vue-i18n");function p0(e={},t){const n=__VUE_I18N_LEGACY_API__&&K(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,u=K(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[a,s]=_0(e,n),l=mt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&Se(We(Ce.NOTICE_DROP_ALLOW_COMPOSITION));function c(h){return o.get(h)||null}function f(h,_){o.set(h,_)}function d(h){o.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(_,...p){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=h),_.__VUE_I18N_SYMBOL__=l,_.provide(_.__VUE_I18N_SYMBOL__,h),j(p[0])){const D=p[0];h.__composerExtend=D.__composerExtend,h.__vueI18nExtend=D.__vueI18nExtend}let x=null;!n&&u&&(x=w0(_,h.global)),__VUE_I18N_FULL_INSTALL__&&Qc(_,h,...p),__VUE_I18N_LEGACY_API__&&n&&_.mixin(h0(s,s.__composer,h));const C=_.unmount;if(_.unmount=()=>{x&&x(),h.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await n0(_,h))throw Fe(ne.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const v=Lu();if(n){const m=s;m.__enableEmitter&&m.__enableEmitter(v)}else{const m=s;m[Ht]&&m[Ht](v)}v.on("*",Nn)}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:c,__setInstance:f,__deleteInstance:d};return h}}function tn(e={}){const t=i.getCurrentInstance();if(t==null)throw Fe(ne.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Fe(ne.NOT_INSTALLED);const n=g0(t),u=E0(n),r=na(t),o=b0(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Fe(ne.NOT_AVAILABLE_IN_LEGACY_MODE);return C0(t,o,u,e)}if(o==="global")return ua(u,e,r),u;if(o==="parent"){let l=y0(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_FOUND_PARENT_SCOPE)),l=u),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Be({},e);"__i18n"in r&&(l.__i18n=r.__i18n),u&&(l.__root=u),s=Zu(l),a.__composerExtend&&(s[Xu]=a.__composerExtend(s)),x0(a,t,s),a.__setInstance(t,s)}return s}function _0(e,t,n){const u=i.effectScope();{const r=__VUE_I18N_LEGACY_API__&&t?u.run(()=>Ku(e)):u.run(()=>Zu(e));if(r==null)throw Fe(ne.UNEXPECTED_ERROR);return[u,r]}}function g0(e){{const t=i.inject(e.isCE?m0:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Fe(e.isCE?ne.NOT_INSTALLED_WITH_PROVIDE:ne.UNEXPECTED_ERROR);return t}}function b0(e,t){return Wn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function E0(e){return e.mode==="composition"?e.global:e.global.__composer}function y0(e,t,n=!1){let u=null;const r=t.root;let o=k0(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")u=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(u=s.__composer,n&&u&&!u[ta]&&(u=null))}if(u!=null||r===o)break;o=o.parent}return u}function k0(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function x0(e,t,n){let u=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,u=Lu();const r=n;r[Ht]&&r[Ht](u),u.on("*",Nn)}},t),i.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(u&&u.off("*",Nn),r[vn]&&r[vn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=r[Xu];o&&(o(),delete r[Xu])},t)}function C0(e,t,n,u={}){const r=t==="local",o=i.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Fe(ne.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=K(u.inheritLocale)?u.inheritLocale:!F(u.locale),s=i.ref(!r||a?n.locale.value:F(u.locale)?u.locale:Jt),l=i.ref(!r||a?n.fallbackLocale.value:F(u.fallbackLocale)||be(u.fallbackLocale)||j(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:s.value),c=i.ref(nu(s.value,u)),f=i.ref(j(u.datetimeFormats)?u.datetimeFormats:{[s.value]:{}}),d=i.ref(j(u.numberFormats)?u.numberFormats:{[s.value]:{}}),h=r?n.missingWarn:K(u.missingWarn)||Tt(u.missingWarn)?u.missingWarn:!0,_=r?n.fallbackWarn:K(u.fallbackWarn)||Tt(u.fallbackWarn)?u.fallbackWarn:!0,p=r?n.fallbackRoot:K(u.fallbackRoot)?u.fallbackRoot:!0,x=!!u.fallbackFormat,C=de(u.missing)?u.missing:null,D=de(u.postTranslation)?u.postTranslation:null,v=r?n.warnHtmlMessage:K(u.warnHtmlMessage)?u.warnHtmlMessage:!0,m=!!u.escapeParameter,b=r?n.modifiers:j(u.modifiers)?u.modifiers:{},E=u.pluralRules||r&&n.pluralRules;function y(){return[s.value,l.value,c.value,f.value,d.value]}const w=i.computed({get:()=>o.value?o.value.locale.value:s.value,set:O=>{o.value&&(o.value.locale.value=O),s.value=O}}),T=i.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:O=>{o.value&&(o.value.fallbackLocale.value=O),l.value=O}}),A=i.computed(()=>o.value?o.value.messages.value:c.value),B=i.computed(()=>f.value),he=i.computed(()=>d.value);function U(){return o.value?o.value.getPostTranslationHandler():D}function R(O){o.value&&o.value.setPostTranslationHandler(O)}function Q(){return o.value?o.value.getMissingHandler():C}function q(O){o.value&&o.value.setMissingHandler(O)}function ue(O){return y(),O()}function Ue(...O){return o.value?ue(()=>Reflect.apply(o.value.t,null,[...O])):ue(()=>"")}function M(...O){return o.value?Reflect.apply(o.value.rt,null,[...O]):""}function Y(...O){return o.value?ue(()=>Reflect.apply(o.value.d,null,[...O])):ue(()=>"")}function P(...O){return o.value?ue(()=>Reflect.apply(o.value.n,null,[...O])):ue(()=>"")}function _e(O){return o.value?o.value.tm(O):{}}function W(O,z){return o.value?o.value.te(O,z):!1}function Le(O){return o.value?o.value.getLocaleMessage(O):{}}function re(O,z){o.value&&(o.value.setLocaleMessage(O,z),c.value[O]=z)}function ht(O,z){o.value&&o.value.mergeLocaleMessage(O,z)}function ie(O){return o.value?o.value.getDateTimeFormat(O):{}}function I(O,z){o.value&&(o.value.setDateTimeFormat(O,z),f.value[O]=z)}function Z(O,z){o.value&&o.value.mergeDateTimeFormat(O,z)}function X(O){return o.value?o.value.getNumberFormat(O):{}}function se(O,z){o.value&&(o.value.setNumberFormat(O,z),d.value[O]=z)}function ee(O,z){o.value&&o.value.mergeNumberFormat(O,z)}const Ae={get id(){return o.value?o.value.id:-1},locale:w,fallbackLocale:T,messages:A,datetimeFormats:B,numberFormats:he,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(O){o.value&&(o.value.inheritLocale=O)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:b},get pluralRules(){return o.value?o.value.pluralRules:E},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:h},set missingWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackWarn(){return o.value?o.value.fallbackWarn:_},set fallbackWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(O){o.value&&(o.value.fallbackRoot=O)},get fallbackFormat(){return o.value?o.value.fallbackFormat:x},set fallbackFormat(O){o.value&&(o.value.fallbackFormat=O)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:v},set warnHtmlMessage(O){o.value&&(o.value.warnHtmlMessage=O)},get escapeParameter(){return o.value?o.value.escapeParameter:m},set escapeParameter(O){o.value&&(o.value.escapeParameter=O)},t:Ue,getPostTranslationHandler:U,setPostTranslationHandler:R,getMissingHandler:Q,setMissingHandler:q,rt:M,d:Y,n:P,tm:_e,te:W,getLocaleMessage:Le,setLocaleMessage:re,mergeLocaleMessage:ht,getDateTimeFormat:ie,setDateTimeFormat:I,mergeDateTimeFormat:Z,getNumberFormat:X,setNumberFormat:se,mergeNumberFormat:ee};function qe(O){O.locale.value=s.value,O.fallbackLocale.value=l.value,Object.keys(c.value).forEach(z=>{O.mergeLocaleMessage(z,c.value[z])}),Object.keys(f.value).forEach(z=>{O.mergeDateTimeFormat(z,f.value[z])}),Object.keys(d.value).forEach(z=>{O.mergeNumberFormat(z,d.value[z])}),O.escapeParameter=m,O.fallbackFormat=x,O.fallbackRoot=p,O.fallbackWarn=_,O.missingWarn=h,O.warnHtmlMessage=v}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Fe(ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=o.value=e.proxy.$i18n.__composer;t==="global"?(s.value=O.locale.value,l.value=O.fallbackLocale.value,c.value=O.messages.value,f.value=O.datetimeFormats.value,d.value=O.numberFormats.value):r&&qe(O)}),Ae}const v0=["locale","fallbackLocale","availableLocales"],ya=["t","rt","d","n","tm","te"];function w0(e,t){const n=Object.create(null);return v0.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw Fe(ne.UNEXPECTED_ERROR);const a=i.isRef(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,ya.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Fe(ne.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,ya.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(jc(),__INTLIFY_JIT_COMPILATION__?wo(Tc):wo(Dc),bc(Jl),Ec(ko),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,ic(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const N0=p0({locale:"zh-CN",messages:{"zh-CN":{common:{send:"发送",cancel:"取消",confirm:"确认",close:"关闭",save:"保存",delete:"删除",edit:"编辑",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加载中...",success:"操作成功",error:"操作失败",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"历史记录",settings:"设置",help:"帮助",about:"关于",inputPlaceholder:"输入消息...",sendButton:"发送",clearButton:"清空",exportButton:"导出",importButton:"导入"},msg_obj:{placeholder:"发消息⋯",fileText:"请根据我上传的体检报告为我生成饮食方案",uploadingTips:"文件正在上传,请稍候...",matchText:"请用以上方案为我配餐",matchContent:"请用以上方案为我配餐",energy:"热量",protein:"蛋白质",fat:"脂肪",carbonwater:"碳水",newChat:"新对话",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用该方案配餐",aiTips:"【内容由AI生成,仅供参考】"},personal_form:{title:"个人信息",sex:"性别",age:"年龄",height:"身高",weight:"体重",sport:"日常运动水平",taste:"口味偏好及饮食禁忌",placeholder:{sex:"请选择",age:"请输入年龄",height:"请输入身高",weight:"请输入体重",sport:"请输入",taste:"无忌口"},unit:{age:"岁",height:"cm",weight:"kg"},sport_list:{rest:"休息状态",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"轻体力",light_sub:"站立或需要走动的工作",medium:"中体力",medium_sub:"走动多的工作",heavy:"重体力",heavy_sub:"高强度体力工作"},taste_list:["不吃辣","不吃葱","不吃姜","不吃蒜","不吃糖","不吃鱼","不吃虾","不吃牛肉","不吃鸡肉","不吃猪肉"],taboo_list:["高GI","高饱和脂肪酸","高嘌呤","高盐","高胆固醇"],button:"按身体数据领取食谱",toast:{select_sex:"请选择性别",input_age:"请输入年龄",input_height:"请输入身高",input_weight:"请输入体重",select_sport:"请选择日常运动水平",fill_all:"请填写完整信息",age_range:"年龄需要在6-100岁",height_range:"身高需要在100-220cm",weight_range:"体重需要在10-150kg"},dialog:{sex:"选择性别",age:"设置年龄",height:"设置身高",weight:"设置体重",sport:"日常运动水平",taste:"口味偏好&饮食禁忌"},no_taboo:"没有饮食禁忌",sex_options:{male:"男",female:"女"}}},"en-US":{common:{send:"Send",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",add:"Add",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info"},chat:{newChat:"New Chat",history:"History",settings:"Settings",help:"Help",about:"About",inputPlaceholder:"Type a message...",sendButton:"Send",clearButton:"Clear",exportButton:"Export",importButton:"Import"},msg_obj:{placeholder:"Type a message⋯",fileText:"Please generate a diet plan based on my uploaded medical report",uploadingTips:"File is uploading, please wait...",matchText:"Please use the above plan to prepare meals for me",matchContent:"Please use the above plan to prepare meals for me",energy:"Calories",protein:"Protein",fat:"Fat",carbonwater:"Carbs",newChat:"New Conversation",thinking:"Thinking...",thinkCompleted:"Thinking completed",useSolution:"Use this plan to prepare meals",aiTips:"[Content generated by AI, for reference only]"},personal_form:{title:"Personal Information",sex:"Gender",age:"Age",height:"Height",weight:"Weight",sport:"Daily Activity Level",taste:"Taste Preferences & Dietary Restrictions",placeholder:{sex:"Please select",age:"Please enter age",height:"Please enter height",weight:"Please enter weight",sport:"Please enter",taste:"No restrictions"},unit:{age:"years",height:"cm",weight:"kg"},sport_list:{rest:"Resting",rest_sub:"Bedridden or sitting rest",sedentary:"Sedentary",sedentary_sub:"Office work",light:"Light activity",light_sub:"Standing or walking work",medium:"Moderate activity",medium_sub:"Work with frequent walking",heavy:"Heavy activity",heavy_sub:"High-intensity physical work"},taste_list:["No spicy","No green onions","No ginger","No garlic","No sugar","No fish","No shrimp","No beef","No chicken","No pork"],taboo_list:["High GI","High saturated fat","High purine","High salt","High cholesterol"],button:"Get diet plan based on body data",toast:{select_sex:"Please select gender",input_age:"Please enter age",input_height:"Please enter height",input_weight:"Please enter weight",select_sport:"Please select daily activity level",fill_all:"Please fill in all information",age_range:"Age should be between 6-100 years",height_range:"Height should be between 100-220cm",weight_range:"Weight should be between 10-150kg"},dialog:{sex:"Select Gender",age:"Set Age",height:"Set Height",weight:"Set Weight",sport:"Daily Activity Level",taste:"Taste Preferences & Dietary Restrictions"},no_taboo:"No dietary restrictions",sex_options:{male:"Male",female:"Female"}}},"zh-TW":{common:{send:"發送",cancel:"取消",confirm:"確認",close:"關閉",save:"保存",delete:"刪除",edit:"編輯",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加載中...",success:"操作成功",error:"操作失敗",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"歷史記錄",settings:"設置",help:"幫助",about:"關於",inputPlaceholder:"輸入消息...",sendButton:"發送",clearButton:"清空",exportButton:"導出",importButton:"導入"},msg_obj:{placeholder:"發消息⋯",fileText:"請根據我上傳的體檢報告為我生成飲食方案",uploadingTips:"文件正在上傳,請稍候...",matchText:"請用以上方案為我配餐",matchContent:"請用以上方案為我配餐",energy:"熱量",protein:"蛋白質",fat:"脂肪",carbonwater:"碳水",newChat:"新對話",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用該方案配餐",aiTips:"【内容由AI生成,僅供參考】"},personal_form:{title:"個人信息",sex:"性別",age:"年齡",height:"身高",weight:"體重",sport:"日常運動水平",taste:"口味偏好及飲食禁忌",placeholder:{sex:"請選擇",age:"請輸入年齡",height:"請輸入身高",weight:"請輸入體重",sport:"請輸入",taste:"無禁忌"},unit:{age:"歲",height:"cm",weight:"kg"},sport_list:{rest:"休息狀態",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"輕體力",light_sub:"站立或需要走動的工作",medium:"中體力",medium_sub:"走動多的工作",heavy:"重體力",heavy_sub:"高強度體力工作"},taste_list:["不吃辣","不吃蔥","不吃姜","不吃蒜","不吃糖","不吃魚","不吃蝦","不吃牛肉","不吃雞肉","不吃豬肉"],taboo_list:["高GI","高飽和脂肪酸","高嘌呤","高鹽","高膽固醇"],button:"按身體數據領取食譜",toast:{select_sex:"請選擇性別",input_age:"請輸入年齡",input_height:"請輸入身高",input_weight:"請輸入體重",select_sport:"請選擇日常運動水平",fill_all:"請填寫完整信息",age_range:"年齡需要在6-100歲",height_range:"身高需要在100-220cm",weight_range:"體重需要在10-150kg"},dialog:{sex:"選擇性別",age:"設置年齡",height:"設置身高",weight:"設置體重",sport:"日常運動水平",taste:"口味偏好&飲食禁忌"},no_taboo:"沒有飲食禁忌",sex_options:{male:"男",female:"女"}}}},legacy:!1,globalInjection:!0}),ke=(e,t)=>{const n=e.__vccOpts||e;for(const[u,r]of t)n[u]=r;return n},D0={},T0={class:"icon-icon icon-icon-coz_broom",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function A0(e,t){return i.openBlock(),i.createElementBlock("svg",T0,t[0]||(t[0]=[i.createElementVNode("path",{d:"M9 2V6L4 6C2.89543 6 2 6.89543 2 8V21C2 22.1046 2.89543 23 4 23H20C21.1046 23 22 22.1046 22 21V8C22 6.89543 21.1046 6 20 6L15 6V2C15 0.895431 14.1046 0 13 0H11C9.89543 0 9 0.895431 9 2ZM13 2V8H20V12H4V8H11V2H13ZM4 14H20V21H9V18C9 17.4477 8.55228 17 8 17C7.44772 17 7 17.4477 7 18V21H4L4 14Z"},null,-1)]))}const I0=ke(D0,[["render",A0]]),S0={},O0={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function L0(e,t){return i.openBlock(),i.createElementBlock("svg",O0,t[0]||(t[0]=[i.createElementVNode("path",{d:"M4.96977 17.7929C4.57925 18.1834 4.57925 18.8166 4.96977 19.2071C5.3603 19.5976 5.99346 19.5976 6.38399 19.2071L12.1769 13.4142L17.9698 19.2071C18.3603 19.5976 18.9935 19.5976 19.384 19.2071C19.7745 18.8166 19.7745 18.1834 19.384 17.7929L13.5911 12L19.384 6.20711C19.7745 5.81658 19.7745 5.18342 19.384 4.79289C18.9935 4.40237 18.3603 4.40237 17.9698 4.79289L12.1769 10.5858L6.38399 4.79289C5.99347 4.40237 5.3603 4.40237 4.96978 4.79289C4.57925 5.18342 4.57925 5.81658 4.96978 6.20711L10.7627 12L4.96977 17.7929Z"},null,-1)]))}const ka=ke(S0,[["render",L0]]),F0={},P0={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(e,t){return i.openBlock(),i.createElementBlock("svg",P0,t[0]||(t[0]=[i.createElementVNode("path",{d:"M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z",fill:"currentColor"},null,-1),i.createElementVNode("path",{d:"M16.7066 8.29236L16 7.58578L15.2929 8.29289L9.29289 14.2929C8.90237 14.6834 8.90237 15.3166 9.29289 15.7071C9.68342 16.0976 10.3166 16.0976 10.7071 15.7071L15 11.4142L15 23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23L17 11.4142L21.2929 15.7071C21.6834 16.0976 22.3166 16.0976 22.7071 15.7071C23.0976 15.3166 23.0976 14.6834 22.7071 14.2929L16.7077 8.29351L16.7071 8.29289L16.7066 8.29236Z",fill:"#fff"},null,-1)]))}const V0=ke(F0,[["render",M0]]);function xa(e,t={}){const u={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",u),u.method.toUpperCase()==="POST"&&!u.body)throw new Error("POST request must have a body");return fetch(e,u).then(r=>{if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return r.json()}).catch(r=>{throw console.error("Fetch error:",r),r})}function R0(e,t={}){return xa(e,{...t,method:"GET"})}function uu(e,t={},n={}){return xa(e,{...n,method:"POST",body:JSON.stringify(t)})}/*!
|
|
32
|
+
*/const Uc="9.14.5";function Hc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(vt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(vt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(vt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ja=He.__EXTEND_POINT__,wt=Yn(Ja),we={FALLBACK_TO_ROOT:Ja,NOT_SUPPORTED_PRESERVE:wt(),NOT_SUPPORTED_FORMATTER:wt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:wt(),NOT_SUPPORTED_GET_CHOICE_INDEX:wt(),COMPONENT_NAME_LEGACY_COMPATIBLE:wt(),NOT_FOUND_PARENT_SCOPE:wt(),IGNORE_OBJ_FLATTEN:wt(),NOTICE_DROP_ALLOW_COMPOSITION:wt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:wt()},qc={[we.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[we.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[we.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[we.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[we.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[we.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[we.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[we.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[we.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[we.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function We(e,...t){return Oi(qc[e],...t)}const Qa=Pe.__EXTEND_POINT__,Ye=Yn(Qa),ne={UNEXPECTED_RETURN_TYPE:Qa,INVALID_ARGUMENT:Ye(),MUST_BE_CALL_SETUP_TOP:Ye(),NOT_INSTALLED:Ye(),NOT_AVAILABLE_IN_LEGACY_MODE:Ye(),REQUIRED_VALUE:Ye(),INVALID_VALUE:Ye(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ye(),NOT_INSTALLED_WITH_PROVIDE:Ye(),UNEXPECTED_ERROR:Ye(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ye(),BRIDGE_SUPPORT_VUE_2_ONLY:Ye(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ye(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ye(),__EXTEND_POINT__:Ye()};function Fe(e,...t){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:Wc,args:t}:void 0)}const Wc={[ne.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ne.INVALID_ARGUMENT]:"Invalid argument",[ne.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ne.NOT_INSTALLED]:"Need to install with `app.use` function",[ne.UNEXPECTED_ERROR]:"Unexpected error",[ne.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ne.REQUIRED_VALUE]:"Required in value: {0}",[ne.INVALID_VALUE]:"Invalid value",[ne.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ne.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ne.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ne.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ne.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Wi=ht("__translateVNode"),Yi=ht("__datetimeParts"),Gi=ht("__numberParts"),Ht=ht("__enableEmitter"),kn=ht("__disableEmitter"),eu=ht("__setPluralRules"),tu=ht("__injectWithOption"),Xi=ht("__dispose");function Cn(e){if(!te(e)||Qe(e))return e;for(const t in e)if(ot(e,t))if(!t.includes("."))te(e[t])&&Cn(e[t]);else{const n=t.split("."),i=n.length-1;let r=e,a=!1;for(let u=0;u<i;u++){if(n[u]==="__proto__")throw new Error(`unsafe key: ${n[u]}`);if(n[u]in r||(r[n[u]]=fe()),!te(r[n[u]])){process.env.NODE_ENV!=="production"&&Se(We(we.IGNORE_OBJ_FLATTEN,{key:n[u]})),a=!0;break}r=r[n[u]]}if(a||(Qe(r)?ma.includes(n[i])||delete e[t]:(r[n[i]]=e[t],delete e[t])),!Qe(r)){const u=r[n[i]];te(u)&&Cn(u)}}return e}function ni(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:a}=t,u=U(n)?n:_e(i)?fe():{[e]:fe()};if(_e(i)&&i.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:s,resource:c}=l;s?(u[s]=u[s]||fe(),Xn(c,u[s])):Xn(c,u)}else F(l)&&Xn(JSON.parse(l),u)}),r==null&&a)for(const l in u)ot(u,l)&&Cn(u[l]);return u}function nu(e){return e.type}function iu(e,t,n){let i=te(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(i=ni(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(a=>{e.mergeLocaleMessage(a,i[a])});{if(te(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(u=>{e.mergeDateTimeFormat(u,t.datetimeFormats[u])})}if(te(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(u=>{e.mergeNumberFormat(u,t.numberFormats[u])})}}}function ru(e){return o.createVNode(o.Text,null,e,0)}const au="__INTLIFY_META__",uu=()=>[],Yc=()=>!1;let ou=0;function lu(e){return(t,n,i,r)=>e(n,i,o.getCurrentInstance()||void 0,r)}const Gc=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=nu(e)[au])?{[au]:t}:null};function Zi(e={},t){const{__root:n,__injectWithOption:i}=e,r=n===void 0,a=e.flatJson,u=ut?o.ref:o.shallowRef,l=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&l&&Yr(We(we.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let s=K(e.inheritLocale)?e.inheritLocale:!0;const c=u(n&&s?n.locale.value:F(e.locale)?e.locale:Jt),f=u(n&&s?n.fallbackLocale.value:F(e.fallbackLocale)||_e(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=u(ni(c.value,e)),p=u(U(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),g=u(U(e.numberFormats)?e.numberFormats:{[c.value]:{}});let m=n?n.missingWarn:K(e.missingWarn)||Tt(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:K(e.fallbackWarn)||Tt(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,D=!!e.fallbackFormat,k=de(e.missing)?e.missing:null,h=de(e.missing)?lu(e.missing):null,_=de(e.postTranslation)?e.postTranslation:null,x=n?n.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const C=n?n.modifiers:U(e.modifiers)?e.modifiers:{};let T=e.pluralRules||n&&n.pluralRules,A;A=(()=>{r&&Ia(null);const N={version:Uc,locale:c.value,fallbackLocale:f.value,messages:d.value,modifiers:C,pluralRules:T,missing:h===null?void 0:h,missingWarn:m,fallbackWarn:E,fallbackFormat:D,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:x,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};N.datetimeFormats=p.value,N.numberFormats=g.value,N.__datetimeFormatters=U(A)?A.__datetimeFormatters:void 0,N.__numberFormatters=U(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(N.__v_emitter=U(A)?A.__v_emitter:void 0);const L=kc(N);return r&&Ia(L),L})(),wn(A,c.value,f.value);function pe(){return[c.value,f.value,d.value,p.value,g.value]}const $=o.computed({get:()=>c.value,set:N=>{c.value=N,A.locale=c.value}}),R=o.computed({get:()=>f.value,set:N=>{f.value=N,A.fallbackLocale=f.value,wn(A,c.value,N)}}),Q=o.computed(()=>d.value),q=o.computed(()=>p.value),ie=o.computed(()=>g.value);function $e(){return de(_)?_:null}function M(N){_=N,A.postTranslation=N}function Y(){return k}function P(N){N!==null&&(h=lu(N)),k=N,A.missing=h}function ge(N,L){return N!=="translate"||!L.resolvedMessage}const W=(N,L,ue,Ie,jt,Si)=>{pe();let yn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=n?wc():void 0),yn=N(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(ue!=="translate exists"&&De(yn)&&yn===Qn||ue==="translate exists"&&!yn){const[Gt,J_]=L();if(process.env.NODE_ENV!=="production"&&n&&F(Gt)&&ge(ue,J_)&&(w&&(ti(E,Gt)||Oa(m,Gt))&&Se(We(we.FALLBACK_TO_ROOT,{key:Gt,type:ue})),process.env.NODE_ENV!=="production")){const{__v_emitter:Xl}=A;Xl&&w&&Xl.emit("fallback",{type:ue,key:Gt,to:"global",groupId:`${ue}:${Gt}`})}return n&&w?Ie(n):jt(Gt)}else{if(Si(yn))return yn;throw Fe(ne.UNEXPECTED_RETURN_TYPE)}};function Le(...N){return W(L=>Reflect.apply(Ba,null,[L,...N]),()=>zi(...N),"translate",L=>Reflect.apply(L.t,L,[...N]),L=>L,L=>F(L))}function re(...N){const[L,ue,Ie]=N;if(Ie&&!te(Ie))throw Fe(ne.INVALID_ARGUMENT);return Le(L,ue,je({resolvedMessage:!0},Ie||{}))}function pt(...N){return W(L=>Reflect.apply(qa,null,[L,...N]),()=>Ui(...N),"datetime format",L=>Reflect.apply(L.d,L,[...N]),()=>ei,L=>F(L))}function oe(...N){return W(L=>Reflect.apply(Ga,null,[L,...N]),()=>Hi(...N),"number format",L=>Reflect.apply(L.n,L,[...N]),()=>ei,L=>F(L))}function I(N){return N.map(L=>F(L)||De(L)||K(L)?ru(String(L)):L)}const X={normalize:I,interpolate:N=>N,type:"vnode"};function le(...N){return W(L=>{let ue;const Ie=L;try{Ie.processor=X,ue=Reflect.apply(Ba,null,[Ie,...N])}finally{Ie.processor=null}return ue},()=>zi(...N),"translate",L=>L[Wi](...N),L=>[ru(L)],L=>_e(L))}function ee(...N){return W(L=>Reflect.apply(Ga,null,[L,...N]),()=>Hi(...N),"number format",L=>L[Gi](...N),uu,L=>F(L)||_e(L))}function Ae(...N){return W(L=>Reflect.apply(qa,null,[L,...N]),()=>Ui(...N),"datetime format",L=>L[Yi](...N),uu,L=>F(L)||_e(L))}function qe(N){T=N,A.pluralRules=T}function O(N,L){return W(()=>{if(!N)return!1;const ue=F(L)?L:c.value,Ie=se(ue),jt=A.messageResolver(Ie,N);return l?jt!=null:Qe(jt)||et(jt)||F(jt)},()=>[N],"translate exists",ue=>Reflect.apply(ue.te,ue,[N,L]),Yc,ue=>K(ue))}function z(N){let L=null;const ue=va(A,f.value,c.value);for(let Ie=0;Ie<ue.length;Ie++){const jt=d.value[ue[Ie]]||{},Si=A.messageResolver(jt,N);if(Si!=null){L=Si;break}}return L}function at(N){const L=z(N);return L??(n?n.tm(N)||{}:{})}function se(N){return d.value[N]||{}}function yt(N,L){if(a){const ue={[N]:L};for(const Ie in ue)ot(ue,Ie)&&Cn(ue[Ie]);L=ue[N]}d.value[N]=L,A.messages=d.value}function xn(N,L){d.value[N]=d.value[N]||{};const ue={[N]:L};if(a)for(const Ie in ue)ot(ue,Ie)&&Cn(ue[Ie]);L=ue[N],Xn(L,d.value[N]),A.messages=d.value}function b(N){return p.value[N]||{}}function v(N,L){p.value[N]=L,A.datetimeFormats=p.value,Ya(A,N,L)}function S(N,L){p.value[N]=je(p.value[N]||{},L),A.datetimeFormats=p.value,Ya(A,N,L)}function V(N){return g.value[N]||{}}function ke(N,L){g.value[N]=L,A.numberFormats=g.value,Za(A,N,L)}function be(N,L){g.value[N]=je(g.value[N]||{},L),A.numberFormats=g.value,Za(A,N,L)}ou++,n&&ut&&(o.watch(n.locale,N=>{s&&(c.value=N,A.locale=N,wn(A,c.value,f.value))}),o.watch(n.fallbackLocale,N=>{s&&(f.value=N,A.fallbackLocale=N,wn(A,c.value,f.value))}));const ce={id:ou,locale:$,fallbackLocale:R,get inheritLocale(){return s},set inheritLocale(N){s=N,N&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,wn(A,c.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:Q,get modifiers(){return C},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(N){m=N,A.missingWarn=m},get fallbackWarn(){return E},set fallbackWarn(N){E=N,A.fallbackWarn=E},get fallbackRoot(){return w},set fallbackRoot(N){w=N},get fallbackFormat(){return D},set fallbackFormat(N){D=N,A.fallbackFormat=D},get warnHtmlMessage(){return x},set warnHtmlMessage(N){x=N,A.warnHtmlMessage=N},get escapeParameter(){return y},set escapeParameter(N){y=N,A.escapeParameter=N},t:Le,getLocaleMessage:se,setLocaleMessage:yt,mergeLocaleMessage:xn,getPostTranslationHandler:$e,setPostTranslationHandler:M,getMissingHandler:Y,setMissingHandler:P,[eu]:qe};return ce.datetimeFormats=q,ce.numberFormats=ie,ce.rt=re,ce.te=O,ce.tm=at,ce.d=pt,ce.n=oe,ce.getDateTimeFormat=b,ce.setDateTimeFormat=v,ce.mergeDateTimeFormat=S,ce.getNumberFormat=V,ce.setNumberFormat=ke,ce.mergeNumberFormat=be,ce[tu]=i,ce[Wi]=le,ce[Yi]=Ae,ce[Gi]=ee,process.env.NODE_ENV!=="production"&&(ce[Ht]=N=>{A.__v_emitter=N},ce[kn]=()=>{A.__v_emitter=void 0}),ce}function Xc(e){const t=F(e.locale)?e.locale:Jt,n=F(e.fallbackLocale)||_e(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,i=de(e.missing)?e.missing:void 0,r=K(e.silentTranslationWarn)||Tt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=K(e.silentFallbackWarn)||Tt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,u=K(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,s=U(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,d=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,g=K(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Se(We(we.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Se(We(we.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let m=e.messages;if(U(e.sharedMessages)){const y=e.sharedMessages;m=Object.keys(y).reduce((T,A)=>{const j=T[A]||(T[A]={});return je(j,y[A]),T},m||{})}const{__i18n:E,__root:w,__injectWithOption:D}=e,k=e.datetimeFormats,h=e.numberFormats,_=e.flatJson,x=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:m,flatJson:_,datetimeFormats:k,numberFormats:h,missing:i,missingWarn:r,fallbackWarn:a,fallbackRoot:u,fallbackFormat:l,modifiers:s,pluralRules:c,postTranslation:f,warnHtmlMessage:d,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:x,__i18n:E,__root:w,__injectWithOption:D}}function Ki(e={},t){{const n=Zi(Xc(e)),{__extender:i}=e,r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Se(We(we.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(a){process.env.NODE_ENV!=="production"&&Se(We(we.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return K(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=K(a)?!a:a},get silentFallbackWarn(){return K(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=K(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Se(We(we.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(a){process.env.NODE_ENV!=="production"&&Se(We(we.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[u,l,s]=a,c={};let f=null,d=null;if(!F(u))throw Fe(ne.INVALID_ARGUMENT);const p=u;return F(l)?c.locale=l:_e(l)?f=l:U(l)&&(d=l),_e(s)?f=s:U(s)&&(d=s),Reflect.apply(n.t,n,[p,f||d||{},c])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[u,l,s]=a,c={plural:1};let f=null,d=null;if(!F(u))throw Fe(ne.INVALID_ARGUMENT);const p=u;return F(l)?c.locale=l:De(l)?c.plural=l:_e(l)?f=l:U(l)&&(d=l),F(s)?c.locale=s:_e(s)?f=s:U(s)&&(d=s),Reflect.apply(n.t,n,[p,f||d||{},c])},te(a,u){return n.te(a,u)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,u){n.setLocaleMessage(a,u)},mergeLocaleMessage(a,u){n.mergeLocaleMessage(a,u)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,u){n.setDateTimeFormat(a,u)},mergeDateTimeFormat(a,u){n.mergeDateTimeFormat(a,u)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,u){n.setNumberFormat(a,u)},mergeNumberFormat(a,u){n.mergeNumberFormat(a,u)},getChoiceIndex(a,u){return process.env.NODE_ENV!=="production"&&Se(We(we.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=i,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const u=n;u[Ht]&&u[Ht](a)},r.__disableEmitter=()=>{const a=n;a[kn]&&a[kn]()}),r}}const Ji={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Zc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===o.Fragment?r.children:[r]],[]):t.reduce((n,i)=>{const r=e[i];return r&&(n[i]=r()),n},fe())}function su(e){return o.Fragment}const Qi=o.defineComponent({name:"i18n-t",props:je({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>De(e)||!isNaN(e)}},Ji),setup(e,t){const{slots:n,attrs:i}=t,r=e.i18n||tn({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(d=>d!=="_"),u=fe();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=F(e.plural)?+e.plural:e.plural);const l=Zc(t,a),s=r[Wi](e.keypath,l,u),c=je(fe(),i),f=F(e.tag)||te(e.tag)?e.tag:su();return o.h(f,c,s)}}});function Kc(e){return _e(e)&&!F(e[0])}function cu(e,t,n,i){const{slots:r,attrs:a}=t;return()=>{const u={part:!0};let l=fe();e.locale&&(u.locale=e.locale),F(e.format)?u.key=e.format:te(e.format)&&(F(e.format.key)&&(u.key=e.format.key),l=Object.keys(e.format).reduce((p,g)=>n.includes(g)?je(fe(),p,{[g]:e.format[g]}):p,fe()));const s=i(e.value,u,l);let c=[u.key];_e(s)?c=s.map((p,g)=>{const m=r[p.type],E=m?m({[p.type]:p.value,index:g,parts:s}):[p.value];return Kc(E)&&(E[0].key=`${p.type}-${g}`),E}):F(s)&&(c=[s]);const f=je(fe(),a),d=F(e.tag)||te(e.tag)?e.tag:su();return o.h(d,f,c)}}const fu=o.defineComponent({name:"i18n-n",props:je({value:{type:Number,required:!0},format:{type:[String,Object]}},Ji),setup(e,t){const n=e.i18n||tn({useScope:e.scope,__useComponent:!0});return cu(e,t,Xa,(...i)=>n[Gi](...i))}}),du=o.defineComponent({name:"i18n-d",props:je({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ji),setup(e,t){const n=e.i18n||tn({useScope:e.scope,__useComponent:!0});return cu(e,t,Wa,(...i)=>n[Yi](...i))}});function Jc(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return i!=null?i.__composer:e.global.__composer}}function Qc(e){const t=u=>{const{instance:l,modifiers:s,value:c}=u;if(!l||!l.$)throw Fe(ne.UNEXPECTED_ERROR);const f=Jc(e,l.$);process.env.NODE_ENV!=="production"&&s.preserve&&Se(We(we.NOT_SUPPORTED_PRESERVE));const d=pu(c);return[Reflect.apply(f.t,f,[...hu(d)]),f]};return{created:(u,l)=>{const[s,c]=t(l);ut&&e.global===c&&(u.__i18nWatcher=o.watch(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),u.__composer=c,u.textContent=s},unmounted:u=>{ut&&u.__i18nWatcher&&(u.__i18nWatcher(),u.__i18nWatcher=void 0,delete u.__i18nWatcher),u.__composer&&(u.__composer=void 0,delete u.__composer)},beforeUpdate:(u,{value:l})=>{if(u.__composer){const s=u.__composer,c=pu(l);u.textContent=Reflect.apply(s.t,s,[...hu(c)])}},getSSRProps:u=>{const[l]=t(u);return{textContent:l}}}}function pu(e){if(F(e))return{path:e};if(U(e)){if(!("path"in e))throw Fe(ne.REQUIRED_VALUE,"path");return e}else throw Fe(ne.INVALID_VALUE)}function hu(e){const{path:t,locale:n,args:i,choice:r,plural:a}=e,u={},l=i||{};return F(n)&&(u.locale=n),De(r)&&(u.plural=r),De(a)&&(u.plural=a),[t,l,u]}function e0(e,t,...n){const i=U(n[0])?n[0]:{},r=!!i.useI18nComponentName,a=K(i.globalInstall)?i.globalInstall:!0;process.env.NODE_ENV!=="production"&&a&&r&&Se(We(we.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Qi.name})),a&&([r?"i18n":Qi.name,"I18nT"].forEach(u=>e.component(u,Qi)),[fu.name,"I18nN"].forEach(u=>e.component(u,fu)),[du.name,"I18nD"].forEach(u=>e.component(u,du))),e.directive("t",Qc(t))}const er={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},t0={"vue-i18n-resource-inspector":"Search for scopes ..."},n0={"vue-i18n-timeline":16764185},mu="vue-i18n: composer properties";let tr;async function i0(e,t){return new Promise((n,i)=>{try{zc({id:"vue-devtools-plugin-vue-i18n",label:er["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[mu],app:e},r=>{tr=r,r.on.visitComponentTree(({componentInstance:u,treeNode:l})=>{r0(u,l,t)}),r.on.inspectComponent(({componentInstance:u,instanceData:l})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?u.vnode.el.__VUE_I18N__!==t.global.__composer&&bu(l,u.vnode.el.__VUE_I18N__):bu(l,u.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:er["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:t0["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&s0(u,t)});const a=new Map;r.on.getInspectorState(async u=>{if(u.app===e&&u.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),f0(u,t),u.nodeId==="global"){if(!a.has(u.app)){const[l]=await r.getComponentInstances(u.app);a.set(u.app,l)}r.highlightElement(a.get(u.app))}else{const l=c0(u.nodeId,t);l&&r.highlightElement(l)}}),r.on.editInspectorState(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&p0(u,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:er["vue-i18n-timeline"],color:n0["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),i(!1)}})}function gu(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function r0(e,t,n){const i=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const r={label:`i18n (${gu(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function bu(e,t){const n=mu;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:nr(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function nr(e){const t={};return Object.keys(e).forEach(n=>{const i=e[n];de(i)&&"source"in i?t[n]=l0(i):Qe(i)&&i.loc&&i.loc.source?t[n]=i.loc.source:te(i)?t[n]=nr(i):t[n]=i}),t}const a0={"<":"<",">":">",'"':""","&":"&"};function u0(e){return e.replace(/[<>"&]/g,o0)}function o0(e){return a0[e]||e}function l0(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${u0(e.source)}")`:"(?)"}`}}}function s0(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[i,r]of t.__instances){const a=t.mode==="composition"?r:r.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${gu(i)} Scope`})}}function c0(e,t){let n=null;if(e!=="global"){for(const[i,r]of t.__instances.entries())if(r.id.toString()===e){n=i;break}}return n}function _u(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(i=>i.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function f0(e,t){const n=_u(e.nodeId,t);return n&&(e.state=d0(n)),null}function d0(e){const t={},n="Locale related info",i=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=i;const r="Locale messages info",a=[{type:r,key:"messages",editable:!1,value:nr(e.messages.value)}];t[r]=a;{const u="Datetime formats info",l=[{type:u,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[u]=l;const s="Datetime formats info",c=[{type:s,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[s]=c}return t}function Nn(e,t){if(tr){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),tr.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function p0(e,t){const n=_u(e.nodeId,t);if(n){const[i]=e.path;i==="locale"&&F(e.state.value)?n.locale.value=e.state.value:i==="fallbackLocale"&&(F(e.state.value)||_e(e.state.value)||te(e.state.value))?n.fallbackLocale.value=e.state.value:i==="inheritLocale"&&K(e.state.value)&&(n.inheritLocale=e.state.value)}}function h0(e,t,n){return{beforeCreate(){const i=o.getCurrentInstance();if(!i)throw Fe(ne.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const a=r.i18n;if(r.__i18n&&(a.__i18n=r.__i18n),a.__root=t,this===this.$root)this.$i18n=xu(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=Ki(a);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=xu(e,r);else{this.$i18n=Ki({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&iu(t,r,r),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,u)=>this.$i18n.te(a,u),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(i,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const i=this.$i18n;this.$el.__VUE_I18N__=i.__composer;const r=this.__v_emitter=Li();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",Nn)}},unmounted(){const i=o.getCurrentInstance();if(!i)throw Fe(ne.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Nn),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(i),delete this.$i18n}}}function xu(e,t){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[eu](t.pluralizationRules||e.pluralizationRules);const n=ni(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,t.datetimeFormats[i])),t.numberFormats&&Object.keys(t.numberFormats).forEach(i=>e.mergeNumberFormat(i,t.numberFormats[i])),e}const m0=ht("global-vue-i18n");function g0(e={},t){const n=__VUE_I18N_LEGACY_API__&&K(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=K(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,a=new Map,[u,l]=b0(e,n),s=ht(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&Se(We(we.NOTICE_DROP_ALLOW_COMPOSITION));function c(p){return a.get(p)||null}function f(p,g){a.set(p,g)}function d(p){a.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(g,...m){if(process.env.NODE_ENV!=="production"&&(g.__VUE_I18N__=p),g.__VUE_I18N_SYMBOL__=s,g.provide(g.__VUE_I18N_SYMBOL__,p),U(m[0])){const D=m[0];p.__composerExtend=D.__composerExtend,p.__vueI18nExtend=D.__vueI18nExtend}let E=null;!n&&i&&(E=N0(g,p.global)),__VUE_I18N_FULL_INSTALL__&&e0(g,p,...m),__VUE_I18N_LEGACY_API__&&n&&g.mixin(h0(l,l.__composer,p));const w=g.unmount;if(g.unmount=()=>{E&&E(),p.dispose(),w()},process.env.NODE_ENV!=="production"){if(!await i0(g,p))throw Fe(ne.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=Li();if(n){const h=l;h.__enableEmitter&&h.__enableEmitter(k)}else{const h=l;h[Ht]&&h[Ht](k)}k.on("*",Nn)}},get global(){return l},dispose(){u.stop()},__instances:a,__getInstance:c,__setInstance:f,__deleteInstance:d};return p}}function tn(e={}){const t=o.getCurrentInstance();if(t==null)throw Fe(ne.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Fe(ne.NOT_INSTALLED);const n=_0(t),i=y0(n),r=nu(t),a=x0(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Fe(ne.NOT_AVAILABLE_IN_LEGACY_MODE);return k0(t,a,i,e)}if(a==="global")return iu(i,e,r),i;if(a==="parent"){let s=v0(n,t,e.__useComponent);return s==null&&(process.env.NODE_ENV!=="production"&&Se(We(we.NOT_FOUND_PARENT_SCOPE)),s=i),s}const u=n;let l=u.__getInstance(t);if(l==null){const s=je({},e);"__i18n"in r&&(s.__i18n=r.__i18n),i&&(s.__root=i),l=Zi(s),u.__composerExtend&&(l[Xi]=u.__composerExtend(l)),w0(u,t,l),u.__setInstance(t,l)}return l}function b0(e,t,n){const i=o.effectScope();{const r=__VUE_I18N_LEGACY_API__&&t?i.run(()=>Ki(e)):i.run(()=>Zi(e));if(r==null)throw Fe(ne.UNEXPECTED_ERROR);return[i,r]}}function _0(e){{const t=o.inject(e.isCE?m0:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Fe(e.isCE?ne.NOT_INSTALLED_WITH_PROVIDE:ne.UNEXPECTED_ERROR);return t}}function x0(e,t){return Wn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function y0(e){return e.mode==="composition"?e.global:e.global.__composer}function v0(e,t,n=!1){let i=null;const r=t.root;let a=E0(t,n);for(;a!=null;){const u=e;if(e.mode==="composition")i=u.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const l=u.__getInstance(a);l!=null&&(i=l.__composer,n&&i&&!i[tu]&&(i=null))}if(i!=null||r===a)break;a=a.parent}return i}function E0(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function w0(e,t,n){let i=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,i=Li();const r=n;r[Ht]&&r[Ht](i),i.on("*",Nn)}},t),o.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(i&&i.off("*",Nn),r[kn]&&r[kn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const a=r[Xi];a&&(a(),delete r[Xi])},t)}function k0(e,t,n,i={}){const r=t==="local",a=o.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Fe(ne.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=K(i.inheritLocale)?i.inheritLocale:!F(i.locale),l=o.ref(!r||u?n.locale.value:F(i.locale)?i.locale:Jt),s=o.ref(!r||u?n.fallbackLocale.value:F(i.fallbackLocale)||_e(i.fallbackLocale)||U(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:l.value),c=o.ref(ni(l.value,i)),f=o.ref(U(i.datetimeFormats)?i.datetimeFormats:{[l.value]:{}}),d=o.ref(U(i.numberFormats)?i.numberFormats:{[l.value]:{}}),p=r?n.missingWarn:K(i.missingWarn)||Tt(i.missingWarn)?i.missingWarn:!0,g=r?n.fallbackWarn:K(i.fallbackWarn)||Tt(i.fallbackWarn)?i.fallbackWarn:!0,m=r?n.fallbackRoot:K(i.fallbackRoot)?i.fallbackRoot:!0,E=!!i.fallbackFormat,w=de(i.missing)?i.missing:null,D=de(i.postTranslation)?i.postTranslation:null,k=r?n.warnHtmlMessage:K(i.warnHtmlMessage)?i.warnHtmlMessage:!0,h=!!i.escapeParameter,_=r?n.modifiers:U(i.modifiers)?i.modifiers:{},x=i.pluralRules||r&&n.pluralRules;function y(){return[l.value,s.value,c.value,f.value,d.value]}const C=o.computed({get:()=>a.value?a.value.locale.value:l.value,set:O=>{a.value&&(a.value.locale.value=O),l.value=O}}),T=o.computed({get:()=>a.value?a.value.fallbackLocale.value:s.value,set:O=>{a.value&&(a.value.fallbackLocale.value=O),s.value=O}}),A=o.computed(()=>a.value?a.value.messages.value:c.value),j=o.computed(()=>f.value),pe=o.computed(()=>d.value);function $(){return a.value?a.value.getPostTranslationHandler():D}function R(O){a.value&&a.value.setPostTranslationHandler(O)}function Q(){return a.value?a.value.getMissingHandler():w}function q(O){a.value&&a.value.setMissingHandler(O)}function ie(O){return y(),O()}function $e(...O){return a.value?ie(()=>Reflect.apply(a.value.t,null,[...O])):ie(()=>"")}function M(...O){return a.value?Reflect.apply(a.value.rt,null,[...O]):""}function Y(...O){return a.value?ie(()=>Reflect.apply(a.value.d,null,[...O])):ie(()=>"")}function P(...O){return a.value?ie(()=>Reflect.apply(a.value.n,null,[...O])):ie(()=>"")}function ge(O){return a.value?a.value.tm(O):{}}function W(O,z){return a.value?a.value.te(O,z):!1}function Le(O){return a.value?a.value.getLocaleMessage(O):{}}function re(O,z){a.value&&(a.value.setLocaleMessage(O,z),c.value[O]=z)}function pt(O,z){a.value&&a.value.mergeLocaleMessage(O,z)}function oe(O){return a.value?a.value.getDateTimeFormat(O):{}}function I(O,z){a.value&&(a.value.setDateTimeFormat(O,z),f.value[O]=z)}function Z(O,z){a.value&&a.value.mergeDateTimeFormat(O,z)}function X(O){return a.value?a.value.getNumberFormat(O):{}}function le(O,z){a.value&&(a.value.setNumberFormat(O,z),d.value[O]=z)}function ee(O,z){a.value&&a.value.mergeNumberFormat(O,z)}const Ae={get id(){return a.value?a.value.id:-1},locale:C,fallbackLocale:T,messages:A,datetimeFormats:j,numberFormats:pe,get inheritLocale(){return a.value?a.value.inheritLocale:u},set inheritLocale(O){a.value&&(a.value.inheritLocale=O)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(c.value)},get modifiers(){return a.value?a.value.modifiers:_},get pluralRules(){return a.value?a.value.pluralRules:x},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:p},set missingWarn(O){a.value&&(a.value.missingWarn=O)},get fallbackWarn(){return a.value?a.value.fallbackWarn:g},set fallbackWarn(O){a.value&&(a.value.missingWarn=O)},get fallbackRoot(){return a.value?a.value.fallbackRoot:m},set fallbackRoot(O){a.value&&(a.value.fallbackRoot=O)},get fallbackFormat(){return a.value?a.value.fallbackFormat:E},set fallbackFormat(O){a.value&&(a.value.fallbackFormat=O)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:k},set warnHtmlMessage(O){a.value&&(a.value.warnHtmlMessage=O)},get escapeParameter(){return a.value?a.value.escapeParameter:h},set escapeParameter(O){a.value&&(a.value.escapeParameter=O)},t:$e,getPostTranslationHandler:$,setPostTranslationHandler:R,getMissingHandler:Q,setMissingHandler:q,rt:M,d:Y,n:P,tm:ge,te:W,getLocaleMessage:Le,setLocaleMessage:re,mergeLocaleMessage:pt,getDateTimeFormat:oe,setDateTimeFormat:I,mergeDateTimeFormat:Z,getNumberFormat:X,setNumberFormat:le,mergeNumberFormat:ee};function qe(O){O.locale.value=l.value,O.fallbackLocale.value=s.value,Object.keys(c.value).forEach(z=>{O.mergeLocaleMessage(z,c.value[z])}),Object.keys(f.value).forEach(z=>{O.mergeDateTimeFormat(z,f.value[z])}),Object.keys(d.value).forEach(z=>{O.mergeNumberFormat(z,d.value[z])}),O.escapeParameter=h,O.fallbackFormat=E,O.fallbackRoot=m,O.fallbackWarn=g,O.missingWarn=p,O.warnHtmlMessage=k}return o.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Fe(ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=a.value=e.proxy.$i18n.__composer;t==="global"?(l.value=O.locale.value,s.value=O.fallbackLocale.value,c.value=O.messages.value,f.value=O.datetimeFormats.value,d.value=O.numberFormats.value):r&&qe(O)}),Ae}const C0=["locale","fallbackLocale","availableLocales"],yu=["t","rt","d","n","tm","te"];function N0(e,t){const n=Object.create(null);return C0.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a)throw Fe(ne.UNEXPECTED_ERROR);const u=o.isRef(a.value)?{get(){return a.value.value},set(l){a.value.value=l}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,u)}),e.config.globalProperties.$i18n=n,yu.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a||!a.value)throw Fe(ne.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)}),()=>{delete e.config.globalProperties.$i18n,yu.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(Hc(),__INTLIFY_JIT_COMPILATION__?Ca(Ac):Ca(Tc),xc(Qs),yc(va),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=vt();e.__INTLIFY__=!0,lc(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const D0=g0({locale:"zh-CN",messages:{"zh-CN":{common:{send:"发送",cancel:"取消",confirm:"确认",close:"关闭",save:"保存",delete:"删除",edit:"编辑",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加载中...",success:"操作成功",error:"操作失败",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"历史记录",settings:"设置",help:"帮助",about:"关于",inputPlaceholder:"输入消息...",sendButton:"发送",clearButton:"清空",exportButton:"导出",importButton:"导入"},msg_obj:{placeholder:"发消息⋯",fileText:"请根据我上传的体检报告为我生成饮食方案",uploadingTips:"文件正在上传,请稍候...",matchText:"请用以上方案为我配餐",matchContent:"请用以上方案为我配餐",energy:"热量",protein:"蛋白质",fat:"脂肪",carbonwater:"碳水",newChat:"新对话",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用该方案配餐",aiTips:"【内容由AI生成,仅供参考】"},personal_form:{title:"个人信息",sex:"性别",age:"年龄",height:"身高",weight:"体重",sport:"日常运动水平",taste:"口味偏好及饮食禁忌",placeholder:{sex:"请选择",age:"请输入年龄",height:"请输入身高",weight:"请输入体重",sport:"请输入",taste:"无忌口"},unit:{age:"岁",height:"cm",weight:"kg"},sport_list:{rest:"休息状态",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"轻体力",light_sub:"站立或需要走动的工作",medium:"中体力",medium_sub:"走动多的工作",heavy:"重体力",heavy_sub:"高强度体力工作"},taste_list:["不吃辣","不吃葱","不吃姜","不吃蒜","不吃糖","不吃鱼","不吃虾","不吃牛肉","不吃鸡肉","不吃猪肉"],taboo_list:["高GI","高饱和脂肪酸","高嘌呤","高盐","高胆固醇"],button:"按身体数据领取食谱",toast:{select_sex:"请选择性别",input_age:"请输入年龄",input_height:"请输入身高",input_weight:"请输入体重",select_sport:"请选择日常运动水平",fill_all:"请填写完整信息",age_range:"年龄需要在6-100岁",height_range:"身高需要在100-220cm",weight_range:"体重需要在10-150kg"},dialog:{sex:"选择性别",age:"设置年龄",height:"设置身高",weight:"设置体重",sport:"日常运动水平",taste:"口味偏好&饮食禁忌"},no_taboo:"没有饮食禁忌",sex_options:{male:"男",female:"女"}}},"en-US":{common:{send:"Send",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",add:"Add",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info"},chat:{newChat:"New Chat",history:"History",settings:"Settings",help:"Help",about:"About",inputPlaceholder:"Type a message...",sendButton:"Send",clearButton:"Clear",exportButton:"Export",importButton:"Import"},msg_obj:{placeholder:"Type a message⋯",fileText:"Please generate a diet plan based on my uploaded medical report",uploadingTips:"File is uploading, please wait...",matchText:"Please use the above plan to prepare meals for me",matchContent:"Please use the above plan to prepare meals for me",energy:"Calories",protein:"Protein",fat:"Fat",carbonwater:"Carbs",newChat:"New Conversation",thinking:"Thinking...",thinkCompleted:"Thinking completed",useSolution:"Use this plan to prepare meals",aiTips:"[Content generated by AI, for reference only]"},personal_form:{title:"Personal Information",sex:"Gender",age:"Age",height:"Height",weight:"Weight",sport:"Daily Activity Level",taste:"Taste Preferences & Dietary Restrictions",placeholder:{sex:"Please select",age:"Please enter age",height:"Please enter height",weight:"Please enter weight",sport:"Please enter",taste:"No restrictions"},unit:{age:"years",height:"cm",weight:"kg"},sport_list:{rest:"Resting",rest_sub:"Bedridden or sitting rest",sedentary:"Sedentary",sedentary_sub:"Office work",light:"Light activity",light_sub:"Standing or walking work",medium:"Moderate activity",medium_sub:"Work with frequent walking",heavy:"Heavy activity",heavy_sub:"High-intensity physical work"},taste_list:["No spicy","No green onions","No ginger","No garlic","No sugar","No fish","No shrimp","No beef","No chicken","No pork"],taboo_list:["High GI","High saturated fat","High purine","High salt","High cholesterol"],button:"Get diet plan based on body data",toast:{select_sex:"Please select gender",input_age:"Please enter age",input_height:"Please enter height",input_weight:"Please enter weight",select_sport:"Please select daily activity level",fill_all:"Please fill in all information",age_range:"Age should be between 6-100 years",height_range:"Height should be between 100-220cm",weight_range:"Weight should be between 10-150kg"},dialog:{sex:"Select Gender",age:"Set Age",height:"Set Height",weight:"Set Weight",sport:"Daily Activity Level",taste:"Taste Preferences & Dietary Restrictions"},no_taboo:"No dietary restrictions",sex_options:{male:"Male",female:"Female"}}},"zh-TW":{common:{send:"發送",cancel:"取消",confirm:"確認",close:"關閉",save:"保存",delete:"刪除",edit:"編輯",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加載中...",success:"操作成功",error:"操作失敗",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"歷史記錄",settings:"設置",help:"幫助",about:"關於",inputPlaceholder:"輸入消息...",sendButton:"發送",clearButton:"清空",exportButton:"導出",importButton:"導入"},msg_obj:{placeholder:"發消息⋯",fileText:"請根據我上傳的體檢報告為我生成飲食方案",uploadingTips:"文件正在上傳,請稍候...",matchText:"請用以上方案為我配餐",matchContent:"請用以上方案為我配餐",energy:"熱量",protein:"蛋白質",fat:"脂肪",carbonwater:"碳水",newChat:"新對話",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用該方案配餐",aiTips:"【内容由AI生成,僅供參考】"},personal_form:{title:"個人信息",sex:"性別",age:"年齡",height:"身高",weight:"體重",sport:"日常運動水平",taste:"口味偏好及飲食禁忌",placeholder:{sex:"請選擇",age:"請輸入年齡",height:"請輸入身高",weight:"請輸入體重",sport:"請輸入",taste:"無禁忌"},unit:{age:"歲",height:"cm",weight:"kg"},sport_list:{rest:"休息狀態",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"輕體力",light_sub:"站立或需要走動的工作",medium:"中體力",medium_sub:"走動多的工作",heavy:"重體力",heavy_sub:"高強度體力工作"},taste_list:["不吃辣","不吃蔥","不吃姜","不吃蒜","不吃糖","不吃魚","不吃蝦","不吃牛肉","不吃雞肉","不吃豬肉"],taboo_list:["高GI","高飽和脂肪酸","高嘌呤","高鹽","高膽固醇"],button:"按身體數據領取食譜",toast:{select_sex:"請選擇性別",input_age:"請輸入年齡",input_height:"請輸入身高",input_weight:"請輸入體重",select_sport:"請選擇日常運動水平",fill_all:"請填寫完整信息",age_range:"年齡需要在6-100歲",height_range:"身高需要在100-220cm",weight_range:"體重需要在10-150kg"},dialog:{sex:"選擇性別",age:"設置年齡",height:"設置身高",weight:"設置體重",sport:"日常運動水平",taste:"口味偏好&飲食禁忌"},no_taboo:"沒有飲食禁忌",sex_options:{male:"男",female:"女"}}}},legacy:!1,globalInjection:!0}),ve=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},T0={},A0={class:"icon-icon icon-icon-coz_broom",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function I0(e,t){return o.openBlock(),o.createElementBlock("svg",A0,t[0]||(t[0]=[o.createElementVNode("path",{d:"M9 2V6L4 6C2.89543 6 2 6.89543 2 8V21C2 22.1046 2.89543 23 4 23H20C21.1046 23 22 22.1046 22 21V8C22 6.89543 21.1046 6 20 6L15 6V2C15 0.895431 14.1046 0 13 0H11C9.89543 0 9 0.895431 9 2ZM13 2V8H20V12H4V8H11V2H13ZM4 14H20V21H9V18C9 17.4477 8.55228 17 8 17C7.44772 17 7 17.4477 7 18V21H4L4 14Z"},null,-1)]))}const S0=ve(T0,[["render",I0]]),O0={},L0={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function F0(e,t){return o.openBlock(),o.createElementBlock("svg",L0,t[0]||(t[0]=[o.createElementVNode("path",{d:"M4.96977 17.7929C4.57925 18.1834 4.57925 18.8166 4.96977 19.2071C5.3603 19.5976 5.99346 19.5976 6.38399 19.2071L12.1769 13.4142L17.9698 19.2071C18.3603 19.5976 18.9935 19.5976 19.384 19.2071C19.7745 18.8166 19.7745 18.1834 19.384 17.7929L13.5911 12L19.384 6.20711C19.7745 5.81658 19.7745 5.18342 19.384 4.79289C18.9935 4.40237 18.3603 4.40237 17.9698 4.79289L12.1769 10.5858L6.38399 4.79289C5.99347 4.40237 5.3603 4.40237 4.96978 4.79289C4.57925 5.18342 4.57925 5.81658 4.96978 6.20711L10.7627 12L4.96977 17.7929Z"},null,-1)]))}const vu=ve(O0,[["render",F0]]),P0={},M0={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V0(e,t){return o.openBlock(),o.createElementBlock("svg",M0,t[0]||(t[0]=[o.createElementVNode("path",{d:"M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M16.7066 8.29236L16 7.58578L15.2929 8.29289L9.29289 14.2929C8.90237 14.6834 8.90237 15.3166 9.29289 15.7071C9.68342 16.0976 10.3166 16.0976 10.7071 15.7071L15 11.4142L15 23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23L17 11.4142L21.2929 15.7071C21.6834 16.0976 22.3166 16.0976 22.7071 15.7071C23.0976 15.3166 23.0976 14.6834 22.7071 14.2929L16.7077 8.29351L16.7071 8.29289L16.7066 8.29236Z",fill:"#fff"},null,-1)]))}const R0=ve(P0,[["render",V0]]);function Eu(e,t={}){const i={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",i),i.method.toUpperCase()==="POST"&&!i.body)throw new Error("POST request must have a body");return fetch(e,i).then(r=>{if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return r.json()}).catch(r=>{throw console.error("Fetch error:",r),r})}function j0(e,t={}){return Eu(e,{...t,method:"GET"})}function ii(e,t={},n={}){return Eu(e,{...n,method:"POST",body:JSON.stringify(t)})}/*!
|
|
24
33
|
* Viewer.js v1.11.7
|
|
25
34
|
* https://fengyuanchen.github.io/viewerjs
|
|
26
35
|
*
|
|
@@ -28,24 +37,24 @@ ${c}`:l)}else throw a},onCacheKey:a=>Zs(t,n,a)}}function Oc(e){if(F(e))return e;
|
|
|
28
37
|
* Released under the MIT license
|
|
29
38
|
*
|
|
30
39
|
* Date: 2024-11-24T04:32:19.116Z
|
|
31
|
-
*/function B0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(e,t){for(var n=0;n<t.length;n++){var u=t[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,wa(u.key),u)}}function $0(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U0(e,t,n){return(t=wa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,u)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(u){U0(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function z0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var u=n.call(e,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function wa(e){var t=z0(e,"string");return typeof t=="symbol"?t:t+""}function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}var Na={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},j0='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',ru=typeof window<"u"&&typeof window.document<"u",vt=ru?window:{},nn=ru&&vt.document.documentElement?"ontouchstart"in vt.document.documentElement:!1,or=ru?"PointerEvent"in vt:!1,J="viewer",ou="move",Da="switch",Dn="zoom",au="".concat(J,"-active"),H0="".concat(J,"-close"),iu="".concat(J,"-fade"),ar="".concat(J,"-fixed"),q0="".concat(J,"-fullscreen"),Ta="".concat(J,"-fullscreen-exit"),qt="".concat(J,"-hide"),W0="".concat(J,"-hide-md-down"),Y0="".concat(J,"-hide-sm-down"),G0="".concat(J,"-hide-xs-down"),tt="".concat(J,"-in"),Tn="".concat(J,"-invisible"),un="".concat(J,"-loading"),X0="".concat(J,"-move"),Aa="".concat(J,"-open"),rn="".concat(J,"-show"),Ne="".concat(J,"-transition"),on="click",ir="dblclick",Ia="dragstart",Sa="focusin",Oa="keydown",nt="load",Wt="error",Z0=nn?"touchend touchcancel":"mouseup",K0=nn?"touchmove":"mousemove",J0=nn?"touchstart":"mousedown",La=or?"pointerdown":J0,Fa=or?"pointermove":K0,Pa=or?"pointerup pointercancel":Z0,Ma="resize",lt="transitionend",Va="wheel",Ra="ready",Ba="show",$a="shown",Ua="hide",za="hidden",ja="view",An="viewed",Ha="move",qa="moved",Wa="rotate",Ya="rotated",Ga="scale",Xa="scaled",Za="zoom",Ka="zoomed",Ja="play",Qa="stop",su="".concat(J,"Action"),sr=/\s\s*/,lu=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function In(e){return typeof e=="string"}var Q0=Number.isNaN||vt.isNaN;function we(e){return typeof e=="number"&&!Q0(e)}function an(e){return typeof e>"u"}function sn(e){return rr(e)==="object"&&e!==null}var ef=Object.prototype.hasOwnProperty;function ln(e){if(!sn(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ef.call(n,"isPrototypeOf")}catch{return!1}}function me(e){return typeof e=="function"}function Ee(e,t){if(e&&me(t))if(Array.isArray(e)||we(e.length)){var n=e.length,u;for(u=0;u<n&&t.call(e,e[u],u,e)!==!1;u+=1);}else sn(e)&&Object.keys(e).forEach(function(r){t.call(e,e[r],r,e)});return e}var Ze=Object.assign||function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return sn(t)&&u.length>0&&u.forEach(function(o){sn(o)&&Object.keys(o).forEach(function(a){t[a]=o[a]})}),t},tf=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ct(e,t){var n=e.style;Ee(t,function(u,r){tf.test(r)&&we(u)&&(u+="px"),n[r]=u})}function nf(e){return In(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function cn(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function H(e,t){if(!(!e||!t)){if(we(e.length)){Ee(e,function(u){H(u,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function oe(e,t){if(!(!e||!t)){if(we(e.length)){Ee(e,function(n){oe(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Sn(e,t,n){if(t){if(we(e.length)){Ee(e,function(u){Sn(u,t,n)});return}n?H(e,t):oe(e,t)}}var uf=/([a-z\d])([A-Z])/g;function lr(e){return e.replace(uf,"$1-$2").toLowerCase()}function fn(e,t){return sn(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(lr(t)))}function cr(e,t,n){sn(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(lr(t)),n)}var ei=function(){var e=!1;if(ru){var t=!1,n=function(){},u=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});vt.addEventListener("test",n,u),vt.removeEventListener("test",n,u)}return e}();function pe(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(sr).forEach(function(o){if(!ei){var a=e.listeners;a&&a[o]&&a[o][n]&&(r=a[o][n],delete a[o][n],Object.keys(a[o]).length===0&&delete a[o],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(o,r,u)})}function G(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(sr).forEach(function(o){if(u.once&&!ei){var a=e.listeners,s=a===void 0?{}:a;r=function(){delete s[o][n],e.removeEventListener(o,r,u);for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];n.apply(e,f)},s[o]||(s[o]={}),s[o][n]&&e.removeEventListener(o,s[o][n],u),s[o][n]=r,e.listeners=s}e.addEventListener(o,r,u)})}function Te(e,t,n,u){var r;return me(Event)&&me(CustomEvent)?r=new CustomEvent(t,ur({bubbles:!0,cancelable:!0,detail:n},u)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function rf(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function cu(e){var t=e.rotate,n=e.scaleX,u=e.scaleY,r=e.translateX,o=e.translateY,a=[];we(r)&&r!==0&&a.push("translateX(".concat(r,"px)")),we(o)&&o!==0&&a.push("translateY(".concat(o,"px)")),we(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),we(n)&&n!==1&&a.push("scaleX(".concat(n,")")),we(u)&&u!==1&&a.push("scaleY(".concat(u,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function of(e){return In(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var fr=vt.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(vt.navigator.userAgent);function ti(e,t,n){var u=document.createElement("img");if(e.naturalWidth&&!fr)return n(e.naturalWidth,e.naturalHeight),u;var r=document.body||document.documentElement;return u.onload=function(){n(u.width,u.height),fr||r.removeChild(u)},Ee(t.inheritedAttributes,function(o){var a=e.getAttribute(o);a!==null&&u.setAttribute(o,a)}),u.src=e.src,fr||(u.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(u)),u}function fu(e){switch(e){case 2:return G0;case 3:return Y0;case 4:return W0;default:return""}}function af(e){var t=ur({},e),n=[];return Ee(e,function(u,r){delete t[r],Ee(t,function(o){var a=Math.abs(u.startX-o.startX),s=Math.abs(u.startY-o.startY),l=Math.abs(u.endX-o.endX),c=Math.abs(u.endY-o.endY),f=Math.sqrt(a*a+s*s),d=Math.sqrt(l*l+c*c),h=(d-f)/f;n.push(h)})}),n.sort(function(u,r){return Math.abs(u)<Math.abs(r)}),n[0]}function du(e,t){var n=e.pageX,u=e.pageY,r={endX:n,endY:u};return t?r:ur({timeStamp:Date.now(),startX:n,startY:u},r)}function sf(e){var t=0,n=0,u=0;return Ee(e,function(r){var o=r.startX,a=r.startY;t+=o,n+=a,u+=1}),t/=u,n/=u,{pageX:t,pageY:n}}var lf={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,n=t.body||t.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,n=this.parent,u;t.inline&&(u={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=u),(this.fulled||!u)&&(u=this.containerData),this.viewerData=Ze({},u)},renderViewer:function(){this.options.inline&&!this.fulled&&ct(this.viewer,this.viewerData)},initList:function(){var t=this,n=this.element,u=this.options,r=this.list,o=[];r.innerHTML="",Ee(this.images,function(a,s){var l=a.src,c=a.alt||of(l),f=t.getImageURL(a);if(l||f){var d=document.createElement("li"),h=document.createElement("img");Ee(u.inheritedAttributes,function(_){var p=a.getAttribute(_);p!==null&&h.setAttribute(_,p)}),u.navbar&&(h.src=l||f),h.alt=c,h.setAttribute("data-original-url",f||l),d.setAttribute("data-index",s),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),u.keyboard&&d.setAttribute("tabindex",0),d.appendChild(h),r.appendChild(d),o.push(d)}}),this.items=o,Ee(o,function(a){var s=a.firstElementChild,l,c;cr(s,"filled",!0),u.loading&&H(a,un),G(s,nt,l=function(d){pe(s,Wt,c),u.loading&&oe(a,un),t.loadImage(d)},{once:!0}),G(s,Wt,c=function(){pe(s,nt,l),u.loading&&oe(a,un)},{once:!0})}),u.transition&&G(n,An,function(){H(r,Ne)},{once:!0})},renderList:function(){var t=this.index,n=this.items[t];if(n){var u=n.nextElementSibling,r=parseInt(window.getComputedStyle(u||n).marginLeft,10),o=n.offsetWidth,a=o+r;ct(this.list,Ze({width:a*this.length-r},cu({translateX:(this.viewerData.width-o)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",oe(t,Ne),ct(t,cu({translateX:0}))},initImage:function(t){var n=this,u=this.options,r=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),c=this.imageData||{},f;this.imageInitializing={abort:function(){f.onload=null}},f=ti(r,u,function(d,h){var _=d/h,p=Math.max(0,Math.min(1,u.initialCoverage)),x=s,C=l;n.imageInitializing=!1,l*_>s?C=s/_:x=l*_,p=we(p)?p:.9,x=Math.min(x*p,d),C=Math.min(C*p,h);var D=(s-x)/2,v=(l-C)/2,m={left:D,top:v,x:D,y:v,width:x,height:C,oldRatio:1,ratio:x/d,aspectRatio:_,naturalWidth:d,naturalHeight:h},b=Ze({},m);u.rotatable&&(m.rotate=c.rotate||0,b.rotate=0),u.scalable&&(m.scaleX=c.scaleX||1,m.scaleY=c.scaleY||1,b.scaleX=1,b.scaleY=1),n.imageData=m,n.initialImageData=b,t&&t()})},renderImage:function(t){var n=this,u=this.image,r=this.imageData;if(ct(u,Ze({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},cu(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&cn(u,Ne)){var o=function(){n.imageRendering=!1,t()};this.imageRendering={abort:function(){pe(u,lt,o)}},G(u,lt,o,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},cf={bind:function(){var t=this.options,n=this.viewer,u=this.canvas,r=this.element.ownerDocument;G(n,on,this.onClick=this.click.bind(this)),G(n,Ia,this.onDragStart=this.dragstart.bind(this)),G(u,La,this.onPointerDown=this.pointerdown.bind(this)),G(r,Fa,this.onPointerMove=this.pointermove.bind(this)),G(r,Pa,this.onPointerUp=this.pointerup.bind(this)),G(r,Oa,this.onKeyDown=this.keydown.bind(this)),G(window,Ma,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&G(n,Va,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&G(u,ir,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,n=this.viewer,u=this.canvas,r=this.element.ownerDocument;pe(n,on,this.onClick),pe(n,Ia,this.onDragStart),pe(u,La,this.onPointerDown),pe(r,Fa,this.onPointerMove),pe(r,Pa,this.onPointerUp),pe(r,Oa,this.onKeyDown),pe(window,Ma,this.onResize),t.zoomable&&t.zoomOnWheel&&pe(n,Va,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&pe(u,ir,this.onDblclick)}},ff={click:function(t){var n=this.options,u=this.imageData,r=t.target,o=fn(r,su);switch(!o&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,o=fn(r,su)),nn&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(fn(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-u.scaleX||-1);break;case"flip-vertical":this.scaleY(-u.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(nn&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,u=this.options,r=this.image,o=this.index,a=this.viewerData;oe(r,Tn),u.loading&&oe(this.canvas,un),r.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Sn(r,X0,u.movable),Sn(r,Ne,u.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,me(u.viewed)&&G(n,An,u.viewed,{once:!0}),Te(n,An,{originalImage:t.images[o],index:o,image:r},{cancelable:!1})})})},loadImage:function(t){var n=t.target,u=n.parentNode,r=u.offsetWidth||30,o=u.offsetHeight||50,a=!!fn(n,"filled");ti(n,this.options,function(s,l){var c=s/l,f=r,d=o;o*c>r?a?f=o*c:d=r/c:a?d=r/c:f=o*c,ct(n,Ze({width:f,height:d},cu({translateX:(r-f)/2,translateY:(o-d)/2})))})},keydown:function(t){var n=this.options;if(n.keyboard){var u=t.keyCode||t.which||t.charCode;switch(u){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(u){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:t.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:t.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var n=this.options,u=this.pointers,r=t.buttons,o=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(we(r)&&r!==1||we(o)&&o!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?Ee(t.changedTouches,function(s){u[s.identifier]=du(s)}):u[t.pointerId||0]=du(t);var a=n.movable?ou:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(u).length>1?a=Dn:n.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=Da),n.transition&&(a===ou||a===Dn)&&oe(this.image,Ne),this.action=a}},pointermove:function(t){var n=this.pointers,u=this.action;!this.viewed||!u||(t.preventDefault(),t.changedTouches?Ee(t.changedTouches,function(r){Ze(n[r.identifier]||{},du(r,!0))}):Ze(n[t.pointerId||0]||{},du(t,!0)),this.change(t))},pointerup:function(t){var n=this,u=this.options,r=this.action,o=this.pointers,a;t.changedTouches?Ee(t.changedTouches,function(s){a=o[s.identifier],delete o[s.identifier]}):(a=o[t.pointerId||0],delete o[t.pointerId||0]),r&&(t.preventDefault(),u.transition&&(r===ou||r===Dn)&&H(this.image,Ne),this.action=!1,nn&&r!==Dn&&a&&Date.now()-a.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),u.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Te(n.image,ir,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,u.backdrop&&u.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Te(n.canvas,on,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}Ee(this.player.getElementsByTagName("img"),function(n){G(n,nt,t.loadImage.bind(t),{once:!0}),Te(n,nt)})}},wheel:function(t){var n=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var u=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*u,!0,null,t)}}},df={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,u=this.options;if(u.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(me(u.show)&&G(n,Ba,u.show,{once:!0}),Te(n,Ba)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(oe(r,qt),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),u.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){pe(r,lt,o),oe(r,tt)}},H(r,Ne),r.initialOffsetWidth=r.offsetWidth,G(r,lt,o,{once:!0}),H(r,tt)}else H(r,tt),this.shown();return this},hide:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(me(r.hide)&&G(u,Ua,r.hide,{once:!0}),Te(u,Ua)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,a=this.image,s=function(){oe(o,tt),t.hidden()};if(r.transition&&!n){var l=function(d){d&&d.target===o&&(pe(o,lt,l),t.hidden())},c=function(){cn(o,Ne)?(G(o,lt,l),oe(o,tt)):s()};this.transitioning={abort:function(){t.viewed&&cn(a,Ne)?pe(a,lt,c):cn(o,Ne)&&pe(o,lt,l)}},this.viewed&&cn(a,Ne)?(G(a,lt,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var u=this.element,r=this.options,o=this.title,a=this.canvas,s=this.items[n],l=s.querySelector("img"),c=fn(l,"originalUrl"),f=l.getAttribute("alt"),d=document.createElement("img");if(Ee(r.inheritedAttributes,function(C){var D=l.getAttribute(C);D!==null&&d.setAttribute(C,D)}),d.src=c,d.alt=f,me(r.view)&&G(u,ja,r.view,{once:!0}),Te(u,ja,{originalImage:this.images[n],index:n,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(oe(h,au),h.removeAttribute("aria-selected")),H(s,au),s.setAttribute("aria-selected",!0),r.focus&&s.focus(),this.image=d,this.viewed=!1,this.index=n,this.imageData={},H(d,Tn),r.loading&&H(a,un),a.innerHTML="",a.appendChild(d),this.renderList(),o.innerHTML="";var _=function(){var D=t.imageData,v=Array.isArray(r.title)?r.title[1]:r.title;o.innerHTML=nf(me(v)?v.call(t,d,D):"".concat(f," (").concat(D.naturalWidth," × ").concat(D.naturalHeight,")"))},p,x;return G(u,An,_,{once:!0}),this.viewing={abort:function(){pe(u,An,_),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",pe(d,nt,p),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(G(d,nt,p=function(){pe(d,Wt,x),t.load()},{once:!0}),G(d,Wt,x=function(){pe(d,nt,p),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),oe(d,Tn),r.loading&&oe(t.canvas,un)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){oe(d,Tn),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=t?this.length-1:0),this.view(n),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,u=this.index+1;return u>n&&(u=t?0:n),this.view(u),this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=this.imageData;return this.moveTo(an(t)?t:u.x+Number(t),an(n)?n:u.y+Number(n)),this},moveTo:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.element,a=this.options,s=this.imageData;if(t=Number(t),u=Number(u),this.viewed&&!this.played&&a.movable){var l=s.x,c=s.y,f=!1;if(we(t)?f=!0:t=l,we(u)?f=!0:u=c,f){if(me(a.move)&&G(o,Ha,a.move,{once:!0}),Te(o,Ha,{x:t,y:u,oldX:l,oldY:c,originalEvent:r})===!1)return this;s.x=t,s.y=u,s.left=t,s.top=u,this.moving=!0,this.renderImage(function(){n.moving=!1,me(a.moved)&&G(o,qa,a.moved,{once:!0}),Te(o,qa,{x:t,y:u,oldX:l,oldY:c,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var n=this,u=this.element,r=this.options,o=this.imageData;if(t=Number(t),we(t)&&this.viewed&&!this.played&&r.rotatable){var a=o.rotate;if(me(r.rotate)&&G(u,Wa,r.rotate,{once:!0}),Te(u,Wa,{degree:t,oldDegree:a})===!1)return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){n.rotating=!1,me(r.rotated)&&G(u,Ya,r.rotated,{once:!0}),Te(u,Ya,{degree:t,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.element,o=this.options,a=this.imageData;if(t=Number(t),u=Number(u),this.viewed&&!this.played&&o.scalable){var s=a.scaleX,l=a.scaleY,c=!1;if(we(t)?c=!0:t=s,we(u)?c=!0:u=l,c){if(me(o.scale)&&G(r,Ga,o.scale,{once:!0}),Te(r,Ga,{scaleX:t,scaleY:u,oldScaleX:s,oldScaleY:l})===!1)return this;a.scaleX=t,a.scaleY=u,this.scaling=!0,this.renderImage(function(){n.scaling=!1,me(o.scaled)&&G(r,Xa,o.scaled,{once:!0}),Te(r,Xa,{scaleX:t,scaleY:u,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,n,u,r),this},zoomTo:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,f=this.imageData,d=f.x,h=f.y,_=f.width,p=f.height,x=f.naturalWidth,C=f.naturalHeight;if(t=Math.max(0,t),we(t)&&this.viewed&&!this.played&&(a||l.zoomable)){if(!a){var D=Math.max(.01,l.minZoomRatio),v=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,D),v)}if(o)switch(o.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var m=x*t,b=C*t,E=m-_,y=b-p,w=f.ratio;if(me(l.zoom)&&G(s,Za,l.zoom,{once:!0}),Te(s,Za,{ratio:t,oldRatio:w,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var T=rf(this.viewer),A=c&&Object.keys(c).length>0?sf(c):{pageX:o.pageX,pageY:o.pageY};f.x-=E*((A.pageX-T.left-d)/_),f.y-=y*((A.pageY-T.top-h)/p)}else ln(r)&&we(r.x)&&we(r.y)?(f.x-=E*((r.x-d)/_),f.y-=y*((r.y-h)/p)):(f.x-=E/2,f.y-=y/2);f.left=f.x,f.top=f.y,f.width=m,f.height=b,f.oldRatio=w,f.ratio=t,this.renderImage(function(){n.zooming=!1,me(l.zoomed)&&G(s,Ka,l.zoomed,{once:!0}),Te(s,Ka,{ratio:t,oldRatio:w,originalEvent:o},{cancelable:!1})}),u&&this.tooltip()}return this},play:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var u=this.element,r=this.options;if(me(r.play)&&G(u,Ja,r.play,{once:!0}),Te(u,Ja)===!1)return this;var o=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,n&&this.requestFullscreen(n),H(o,rn),Ee(this.items,function(h,_){var p=h.querySelector("img"),x=document.createElement("img");x.src=fn(p,"originalUrl"),x.alt=p.getAttribute("alt"),x.referrerPolicy=p.referrerPolicy,l+=1,H(x,iu),Sn(x,Ne,r.transition),cn(h,au)&&(H(x,tt),c=_),s.push(x),G(x,nt,a,{once:!0}),o.appendChild(x)}),we(r.interval)&&r.interval>0){var f=function(){clearTimeout(t.playing.timeout),oe(s[c],tt),c-=1,c=c>=0?c:l-1,H(s[c],tt),t.playing.timeout=setTimeout(f,r.interval)},d=function(){clearTimeout(t.playing.timeout),oe(s[c],tt),c+=1,c=c<l?c:0,H(s[c],tt),t.playing.timeout=setTimeout(d,r.interval)};l>1&&(this.playing={prev:f,next:d,timeout:setTimeout(d,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var n=this.element,u=this.options;if(me(u.stop)&&G(n,Qa,u.stop,{once:!0}),Te(n,Qa)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Ee(r.getElementsByTagName("img"),function(o){pe(o,nt,t.onLoadWhenPlay)}),oe(r,rn),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,n=this.options,u=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),H(this.button,Ta),n.transition&&(oe(o,Ne),this.viewed&&oe(r,Ne)),H(u,ar),u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby",this.title.id),u.setAttribute("aria-modal",!0),u.removeAttribute("style"),ct(u,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Ze({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(r,Ne),H(o,Ne)},0)})}),this)},exit:function(){var t=this,n=this.options,u=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),oe(this.button,Ta),n.transition&&(oe(o,Ne),this.viewed&&oe(r,Ne)),n.focus&&this.clearEnforceFocus(),u.removeAttribute("role"),u.removeAttribute("aria-labelledby"),u.removeAttribute("aria-modal"),oe(u,ar),ct(u,{zIndex:n.zIndexInline}),this.viewerData=Ze({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(r,Ne),H(o,Ne)},0)})}),this)},tooltip:function(){var t=this,n=this.options,u=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(u.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&Te(u,lt),H(u,rn),H(u,iu),H(u,Ne),u.removeAttribute("aria-hidden"),u.initialOffsetWidth=u.offsetWidth,H(u,tt)):(H(u,rn),u.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(G(u,lt,function(){oe(u,rn),oe(u,iu),oe(u,Ne),u.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),oe(u,tt),t.fading=!0):(oe(u,rn),u.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Ze({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,n=this.element,u=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var o=[];if(Ee(r?[n]:n.querySelectorAll("img"),function(c){me(u.filter)?u.filter.call(t,c)&&o.push(c):t.getImageURL(c)&&o.push(c)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var a=[];if(Ee(this.items,function(c,f){var d=c.querySelector("img"),h=o[f];h&&d?(h.src!==d.src||h.alt!==d.alt)&&a.push(f):a.push(f)}),ct(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];H(l,au),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,n=this.options;return t[J]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||pe(t,on,this.onStart),t[J]=void 0,this):this}},hf={getImageURL:function(t){var n=this.options.url;return In(n)?n=t.getAttribute(n):me(n)?n=n.call(this,t):n="",n},enforceFocus:function(){var t=this;this.clearEnforceFocus(),G(document,Sa,this.onFocusin=function(n){var u=t.viewer,r=n.target;if(!(r===document||r===u||u.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}u.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(pe(document,Sa,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;H(t,Aa),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;oe(t,Aa),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,n=this.options,u=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(u.focus(),this.enforceFocus()),me(n.shown)&&G(t,$a,n.shown,{once:!0}),Te(t,$a)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,n=this.options,u=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),H(u,qt),u.removeAttribute("role"),u.removeAttribute("aria-labelledby"),u.removeAttribute("aria-modal"),u.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(me(n.hidden)&&G(t,za,n.hidden,{once:!0}),Te(t,za,null,{cancelable:!1}))},requestFullscreen:function(t){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var u=n.documentElement;u.requestFullscreen?ln(t)?u.requestFullscreen(t):u.requestFullscreen():u.webkitRequestFullscreen?u.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):u.mozRequestFullScreen?u.mozRequestFullScreen():u.msRequestFullscreen&&u.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,u=this.pointers,r=u[Object.keys(u)[0]];if(r){var o=r.endX-r.startX,a=r.endY-r.startY;switch(this.action){case ou:(o!==0||a!==0)&&(this.pointerMoved=!0,this.move(o,a,t));break;case Dn:this.zoom(af(u),!1,null,t);break;case Da:{this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop));break}}Ee(u,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,n=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=n.width&&t.height<=n.height}},mf=vt.Viewer,pf=function(e){return function(){return e+=1,e}}(-1),dr=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B0(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Ze({},Na,ln(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=pf(),this.init()}return $0(e,[{key:"init",value:function(){var n=this,u=this.element,r=this.options;if(!u[J]){u[J]=this,r.focus&&!r.keyboard&&(r.focus=!1);var o=u.localName==="img",a=[];if(Ee(o?[u]:u.querySelectorAll("img"),function(c){me(r.filter)?r.filter.call(n,c)&&a.push(c):n.getImageURL(c)&&a.push(c)}),this.isImg=o,this.length=a.length,this.images=a,this.initBody(),an(document.createElement(J).style.transition)&&(r.transition=!1),r.inline){var s=0,l=function(){if(s+=1,s===n.length){var f;n.initializing=!1,n.delaying={abort:function(){clearTimeout(f)}},f=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){Ee(a,function(f){f.complete||(pe(f,nt,l),pe(f,Wt,l))})}},Ee(a,function(c){if(c.complete)l();else{var f,d;G(c,nt,f=function(){pe(c,Wt,d),l()},{once:!0}),G(c,Wt,d=function(){pe(c,nt,f),l()},{once:!0})}})}else G(u,on,this.onStart=function(c){var f=c.target;f.localName==="img"&&(!me(r.filter)||r.filter.call(n,f))&&n.view(n.images.indexOf(f))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,u=this.options,r=n.parentNode,o=document.createElement("div");o.innerHTML=j0;var a=o.querySelector(".".concat(J,"-container")),s=a.querySelector(".".concat(J,"-title")),l=a.querySelector(".".concat(J,"-toolbar")),c=a.querySelector(".".concat(J,"-navbar")),f=a.querySelector(".".concat(J,"-button")),d=a.querySelector(".".concat(J,"-canvas"));if(this.parent=r,this.viewer=a,this.title=s,this.toolbar=l,this.navbar=c,this.button=f,this.canvas=d,this.footer=a.querySelector(".".concat(J,"-footer")),this.tooltipBox=a.querySelector(".".concat(J,"-tooltip")),this.player=a.querySelector(".".concat(J,"-player")),this.list=a.querySelector(".".concat(J,"-list")),a.id="".concat(J).concat(this.id),s.id="".concat(J,"Title").concat(this.id),H(s,u.title?fu(Array.isArray(u.title)?u.title[0]:u.title):qt),H(c,u.navbar?fu(u.navbar):qt),Sn(f,qt,!u.button),u.keyboard&&f.setAttribute("tabindex",0),u.backdrop&&(H(a,"".concat(J,"-backdrop")),!u.inline&&u.backdrop!=="static"&&cr(d,su,"hide")),In(u.className)&&u.className&&u.className.split(sr).forEach(function(m){H(a,m)}),u.toolbar){var h=document.createElement("ul"),_=ln(u.toolbar),p=lu.slice(0,3),x=lu.slice(7,9),C=lu.slice(9);_||H(l,fu(u.toolbar)),Ee(_?u.toolbar:lu,function(m,b){var E=_&&ln(m),y=_?lr(b):m,w=E&&!an(m.show)?m.show:m;if(!(!w||!u.zoomable&&p.indexOf(y)!==-1||!u.rotatable&&x.indexOf(y)!==-1||!u.scalable&&C.indexOf(y)!==-1)){var T=E&&!an(m.size)?m.size:m,A=E&&!an(m.click)?m.click:m,B=document.createElement("li");u.keyboard&&B.setAttribute("tabindex",0),B.setAttribute("role","button"),H(B,"".concat(J,"-").concat(y)),me(A)||cr(B,su,y),we(w)&&H(B,fu(w)),["small","large"].indexOf(T)!==-1?H(B,"".concat(J,"-").concat(T)):y==="play"&&H(B,"".concat(J,"-large")),me(A)&&G(B,on,A),h.appendChild(B)}}),l.appendChild(h)}else H(l,qt);if(!u.rotatable){var D=l.querySelectorAll('li[class*="rotate"]');H(D,Tn),Ee(D,function(m){l.appendChild(m)})}if(u.inline)H(f,q0),ct(a,{zIndex:u.zIndexInline}),window.getComputedStyle(r).position==="static"&&ct(r,{position:"relative"}),r.insertBefore(a,n.nextSibling);else{H(f,H0),H(a,ar),H(a,iu),H(a,qt),ct(a,{zIndex:u.zIndex});var v=u.container;In(v)&&(v=n.ownerDocument.querySelector(v)),v||(v=this.body),v.appendChild(a)}if(u.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,me(u.ready)&&G(n,Ra,u.ready,{once:!0}),Te(n,Ra)===!1){this.ready=!1;return}this.ready&&u.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=mf,e}},{key:"setDefaults",value:function(n){Ze(Na,ln(n)&&n)}}])}();Ze(dr.prototype,lf,cf,ff,df,hf);var _f=typeof global=="object"&&global&&global.Object===Object&&global;const ni=_f;var gf=typeof self=="object"&&self&&self.Object===Object&&self,bf=ni||gf||Function("return this")();const hr=bf;var Ef=hr.Symbol;const hu=Ef;var ui=Object.prototype,yf=ui.hasOwnProperty,kf=ui.toString,On=hu?hu.toStringTag:void 0;function xf(e){var t=yf.call(e,On),n=e[On];try{e[On]=void 0;var u=!0}catch{}var r=kf.call(e);return u&&(t?e[On]=n:delete e[On]),r}var Cf=Object.prototype,vf=Cf.toString;function wf(e){return vf.call(e)}var Nf="[object Null]",Df="[object Undefined]",ri=hu?hu.toStringTag:void 0;function mr(e){return e==null?e===void 0?Df:Nf:ri&&ri in Object(e)?xf(e):wf(e)}function pr(e){return e!=null&&typeof e=="object"}var Tf=Array.isArray;const Af=Tf;function mu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oi(e){return e}var If="[object AsyncFunction]",Sf="[object Function]",Of="[object GeneratorFunction]",Lf="[object Proxy]";function ai(e){if(!mu(e))return!1;var t=mr(e);return t==Sf||t==Of||t==If||t==Lf}var Ff=hr["__core-js_shared__"];const _r=Ff;var ii=function(){var e=/[^.]+$/.exec(_r&&_r.keys&&_r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pf(e){return!!ii&&ii in e}var Mf=Function.prototype,Vf=Mf.toString;function Rf(e){if(e!=null){try{return Vf.call(e)}catch{}try{return e+""}catch{}}return""}var Bf=/[\\^$.*+?()[\]{}|]/g,$f=/^\[object .+?Constructor\]$/,Uf=Function.prototype,zf=Object.prototype,jf=Uf.toString,Hf=zf.hasOwnProperty,qf=RegExp("^"+jf.call(Hf).replace(Bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wf(e){if(!mu(e)||Pf(e))return!1;var t=ai(e)?qf:$f;return t.test(Rf(e))}function Yf(e,t){return e==null?void 0:e[t]}function Gf(e,t){var n=Yf(e,t);return Wf(n)?n:void 0}function Xf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Zf=800,Kf=16,Jf=Date.now;function Qf(e){var t=0,n=0;return function(){var u=Jf(),r=Kf-(u-n);if(n=u,r>0){if(++t>=Zf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ed(e){return function(){return e}}var td=function(){try{var e=Gf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const pu=td;var nd=pu?function(e,t){return pu(e,"toString",{configurable:!0,enumerable:!1,value:ed(t),writable:!0})}:oi,ud=Qf(nd);const rd=ud;var od=9007199254740991,ad=/^(?:0|[1-9]\d*)$/;function si(e,t){var n=typeof e;return t=t??od,!!t&&(n=="number"||n!="symbol"&&ad.test(e))&&e>-1&&e%1==0&&e<t}function li(e,t,n){t=="__proto__"&&pu?pu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gr(e,t){return e===t||e!==e&&t!==t}var id=Object.prototype,sd=id.hasOwnProperty;function ci(e,t,n){var u=e[t];(!(sd.call(e,t)&&gr(u,n))||n===void 0&&!(t in e))&&li(e,t,n)}function ld(e,t,n,u){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),r?li(n,s,l):ci(n,s,l)}return n}var fi=Math.max;function cd(e,t,n){return t=fi(t===void 0?e.length-1:t,0),function(){for(var u=arguments,r=-1,o=fi(u.length-t,0),a=Array(o);++r<o;)a[r]=u[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=u[r];return s[t]=n(a),Xf(e,this,s)}}function di(e,t){return rd(cd(e,t,oi),e+"")}var fd=9007199254740991;function hi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fd}function _u(e){return e!=null&&hi(e.length)&&!ai(e)}function mi(e,t,n){if(!mu(n))return!1;var u=typeof t;return(u=="number"?_u(n)&&si(t,n.length):u=="string"&&t in n)?gr(n[t],e):!1}function dd(e){return di(function(t,n){var u=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(r--,o):void 0,a&&mi(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);++u<r;){var s=n[u];s&&e(t,s,u,o)}return t})}var hd=Object.prototype;function br(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hd;return e===n}function md(e,t){for(var n=-1,u=Array(e);++n<e;)u[n]=t(n);return u}var pd="[object Arguments]";function pi(e){return pr(e)&&mr(e)==pd}var _i=Object.prototype,_d=_i.hasOwnProperty,gd=_i.propertyIsEnumerable,bd=pi(function(){return arguments}())?pi:function(e){return pr(e)&&_d.call(e,"callee")&&!gd.call(e,"callee")};const Ed=bd;function yd(){return!1}var gi=typeof ze=="object"&&ze&&!ze.nodeType&&ze,bi=gi&&typeof module=="object"&&module&&!module.nodeType&&module,kd=bi&&bi.exports===gi,Ei=kd?hr.Buffer:void 0,xd=Ei?Ei.isBuffer:void 0,Cd=xd||yd;const vd=Cd;var wd="[object Arguments]",Nd="[object Array]",Dd="[object Boolean]",Td="[object Date]",Ad="[object Error]",Id="[object Function]",Sd="[object Map]",Od="[object Number]",Ld="[object Object]",Fd="[object RegExp]",Pd="[object Set]",Md="[object String]",Vd="[object WeakMap]",Rd="[object ArrayBuffer]",Bd="[object DataView]",$d="[object Float32Array]",Ud="[object Float64Array]",zd="[object Int8Array]",jd="[object Int16Array]",Hd="[object Int32Array]",qd="[object Uint8Array]",Wd="[object Uint8ClampedArray]",Yd="[object Uint16Array]",Gd="[object Uint32Array]",xe={};xe[$d]=xe[Ud]=xe[zd]=xe[jd]=xe[Hd]=xe[qd]=xe[Wd]=xe[Yd]=xe[Gd]=!0,xe[wd]=xe[Nd]=xe[Rd]=xe[Dd]=xe[Bd]=xe[Td]=xe[Ad]=xe[Id]=xe[Sd]=xe[Od]=xe[Ld]=xe[Fd]=xe[Pd]=xe[Md]=xe[Vd]=!1;function Xd(e){return pr(e)&&hi(e.length)&&!!xe[mr(e)]}function Zd(e){return function(t){return e(t)}}var yi=typeof ze=="object"&&ze&&!ze.nodeType&&ze,Ln=yi&&typeof module=="object"&&module&&!module.nodeType&&module,Kd=Ln&&Ln.exports===yi,Er=Kd&&ni.process,Jd=function(){try{var e=Ln&&Ln.require&&Ln.require("util").types;return e||Er&&Er.binding&&Er.binding("util")}catch{}}();const ki=Jd;var xi=ki&&ki.isTypedArray,Qd=xi?Zd(xi):Xd;const e1=Qd;var t1=Object.prototype,n1=t1.hasOwnProperty;function Ci(e,t){var n=Af(e),u=!n&&Ed(e),r=!n&&!u&&vd(e),o=!n&&!u&&!r&&e1(e),a=n||u||r||o,s=a?md(e.length,String):[],l=s.length;for(var c in e)(t||n1.call(e,c))&&!(a&&(c=="length"||r&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||si(c,l)))&&s.push(c);return s}function u1(e,t){return function(n){return e(t(n))}}var r1=u1(Object.keys,Object);const o1=r1;var a1=Object.prototype,i1=a1.hasOwnProperty;function s1(e){if(!br(e))return o1(e);var t=[];for(var n in Object(e))i1.call(e,n)&&n!="constructor"&&t.push(n);return t}function l1(e){return _u(e)?Ci(e):s1(e)}var c1=Object.prototype,f1=c1.hasOwnProperty,d1=dd(function(e,t){if(br(t)||_u(t)){ld(t,l1(t),e);return}for(var n in t)f1.call(t,n)&&ci(e,n,t[n])});const h1=d1;function m1(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var p1=Object.prototype,_1=p1.hasOwnProperty;function g1(e){if(!mu(e))return m1(e);var t=br(e),n=[];for(var u in e)u=="constructor"&&(t||!_1.call(e,u))||n.push(u);return n}function b1(e){return _u(e)?Ci(e,!0):g1(e)}var vi=Object.prototype,E1=vi.hasOwnProperty;di(function(e,t){e=Object(e);var n=-1,u=t.length,r=u>2?t[2]:void 0;for(r&&mi(t[0],t[1],r)&&(u=1);++n<u;)for(var o=t[n],a=b1(o),s=-1,l=a.length;++s<l;){var c=a[s],f=e[c];(f===void 0||gr(f,vi[c])&&!E1.call(e,c))&&(e[c]=o[c])}return e});const gu=({images:e=[],options:t})=>{t=h1(t,{inline:!1});const n=document.createElement("div"),u=i.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>i.h("img",typeof s=="string"?{src:s}:s)));i.render(u,n);const r=n.firstElementChild;document.body.appendChild(r);const o=new dr(r,t),a=o.destroy.bind(o);return o.destroy=function(){return a(),i.render(null,n),o},o.show(),r.addEventListener("hidden",function(){this.viewer===o&&o.destroy()}),o};i.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let n;const u=i.ref();function r(){n=new dr(u.value,e.options),t("inited",n)}function o(){n&&n.destroy()}function a(){o(),r()}function s(){n?(n.update(),t("inited",n)):r()}function l(){e.rebuild?a():s()}const c={deep:!0};return i.watch(()=>e.images,()=>{i.nextTick(()=>{l()})},c),i.watch(()=>e.trigger,()=>{i.nextTick(()=>{l()})},c),i.watch(()=>e.options,()=>{i.nextTick(()=>{a()})},c),i.onMounted(()=>r()),i.onUnmounted(()=>o()),{root:u,createViewer:r,rebuildViewer:a,updateViewer:s,destroyViewer:o}}});const y1={},k1={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x1(e,t){return i.openBlock(),i.createElementBlock("svg",k1,t[0]||(t[0]=[i.createElementVNode("path",{d:"M10.3193 16.5L14.8193 12L10.3193 7.5",stroke:"currentColor","stroke-linecap":"round"},null,-1)]))}const wi=ke(y1,[["render",x1]]),C1=["src"],v1={class:"name"},w1={class:"sub"},N1={key:0},D1=["src"],T1=["src"],A1=ke({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const t=e,n=i.ref(t.open),u=i.ref(null),r=i.ref(0),o=i.ref([]);i.onMounted(async()=>{n.value&&(await p(),await s(),setTimeout(()=>{a()},200))});const a=i.inject("triggerScrollToEnd"),s=()=>new Promise(async x=>{await i.nextTick();const C=[];o.value.hasOwnProperty("craftUrl")&&o.value.craftUrl&&C.push(o.value.craftUrl),C.length?(await l(C),await i.nextTick(),r.value=f.value?u.value.scrollHeight:0,n.value&&(r.value+=26),n.value=!0):n.value=!1,x()}),l=x=>{const C=[];return x.forEach(D=>{const v=new Image,m=new Promise((b,E)=>{v.onload=()=>b(v),v.onerror=()=>E(new Error(`加载${D}失败`)),v.src=D});C.push(m)}),Promise.all(C)},c=i.computed(()=>`${t.defMsg.energy}${t.info.energy}kcal,${t.defMsg.protein}${t.info.protein}g,${t.defMsg.fat}${t.info.fat}g,${t.defMsg.carbonwater}${t.info.carbonwater}g`);i.computed(()=>{var C,D;return(((D=(C=t.info)==null?void 0:C.makeMaterialList)==null?void 0:D.map(v=>v.material+v.usage+"g"))||[]).join("、")});const f=i.computed(()=>t.info.hasOwnProperty("cid")&&t.info.cid),d=i.computed(()=>{let x="92px";return f.value&&(x=n.value?r.value+66+"px":"118px"),x}),h=x=>{gu({images:[x]})},_=async()=>{n.value?n.value=!1:(await p(),s())},p=async()=>{if(!(o.value.hasOwnProperty("makeCraftList")&&o.value.hasOwnProperty("makeMaterialList"))){const x=await uu("/api/cn.weis.api.Food/makeCraft",{method:"makeCraft",params:[{cid:t.info.cid}],token:localStorage.getItem("postToken")});x.errCode===0&&x.obj&&(o.value={...x.obj})}};return(x,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({dishes_box:!0,is_open:n.value}),style:i.normalizeStyle({height:d.value})},[i.createElementVNode("div",{class:"dishes_wrap",onClick:i.withModifiers(_,["stop"])},[i.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:C[0]||(C[0]=i.withModifiers(D=>h(e.info.primaryImgUrl),["stop"]))},null,8,C1),i.createElementVNode("div",null,[i.createElementVNode("div",v1,[i.createElementVNode("span",null,i.toDisplayString(e.info.skuname),1),C[2]||(C[2]=i.createElementVNode("span",null,"×1",-1))]),i.createElementVNode("div",w1,i.toDisplayString(c.value),1)])]),f.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:u},[i.withDirectives(i.createElementVNode("div",{class:"switch_open",onClick:i.withModifiers(_,["stop"])},[C[3]||(C[3]=i.createElementVNode("span",null,"查看菜谱详情",-1)),i.createVNode(wi,{class:"icon"})],512),[[i.vShow,!n.value]]),C[4]||(C[4]=i.createElementVNode("div",{class:"title"},"制作工艺",-1)),o.value.makeVideosUrl?(i.openBlock(),i.createElementBlock("div",N1,[i.createElementVNode("video",{src:o.value.makeVideosUrl,width:"100%",controls:"true"},null,8,D1)])):i.createCommentVNode("",!0),i.createElementVNode("img",{src:o.value.craftUrl,width:"100%",alt:"craft"},null,8,T1),i.createElementVNode("div",{class:"collapse_btn",onClick:C[1]||(C[1]=i.withModifiers(D=>n.value=!1,["stop"]))},"收起")],512)):i.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-7da603ee"]]),I1={class:"dl_wrap"},S1={key:0},O1={key:0,class:"sep_line"},L1={class:"date"},F1={key:1,style:{padding:"15px 0"}},P1={class:"title"},M1={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},V1={key:1,class:"btn_group"},R1={key:2,class:"btn_group"},B1=ke({__name:"DishesList",props:{skuList:{type:Array,required:!0,default:()=>[]},isMini:{type:Boolean,default:!1},channel:{type:String,default:"web"},defMsg:{type:Object,default:()=>({})}},emits:["select"],setup(e,{emit:t}){const n=e,u=t;i.ref(!1);const r=i.ref(!1),o=(c,f)=>!1,a=c=>{let f=0;return((c==null?void 0:c.list)||[]).forEach(d=>{((d==null?void 0:d.getCategoryList)||[]).forEach(h=>{f+=h.energy||0})}),f},s=c=>n.skuList.slice(0,c).findIndex(f=>f.strDate===n.skuList[c].strDate)===-1,l=c=>{u("select",{type:c})};return(c,f)=>(i.openBlock(),i.createElementBlock("div",I1,[i.createElementVNode("div",{class:i.normalizeClass(["dl_list",{show_full:r.value}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.skuList,(d,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d.category},[s(h)?(i.openBlock(),i.createElementBlock("div",S1,[h>0?(i.openBlock(),i.createElementBlock("div",O1)):i.createCommentVNode("",!0),i.createElementVNode("div",L1,i.toDisplayString(d.strDate.slice(4,6))+"月"+i.toDisplayString(d.strDate.slice(6))+"日 ",1)])):i.createCommentVNode("",!0),d.list&&d.list.length?(i.openBlock(),i.createElementBlock("div",F1,[i.createElementVNode("p",P1,i.toDisplayString(d.categoryType)+" "+i.toDisplayString(a(d))+"kcal ",1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.list,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.id},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.getCategoryList,(p,x)=>(i.openBlock(),i.createBlock(A1,{key:x,info:p,"def-msg":e.defMsg,open:o(p,d.category)},null,8,["info","def-msg","open"]))),128))],64))),128))])])):i.createCommentVNode("",!0)],64))),128))],2),i.createElementVNode("div",{class:i.normalizeClass(["dl_full",{show_full:r.value}]),onClick:f[0]||(f[0]=d=>r.value=!r.value)},i.toDisplayString(r.value?"收起菜谱":"点击查看完整食谱"),3),e.isMini?(i.openBlock(),i.createElementBlock("div",M1,f[5]||(f[5]=[i.createTextVNode(" 温馨提示:维小饭AI健康食谱为日常膳食调理方案,不能替代药物治疗或专业医疗建议。如有疾病,请及时就医并遵医嘱。"),i.createElementVNode("br",null,null,-1),i.createElementVNode("strong",null,"半价惊喜,下单即得!",-1)]))):i.createCommentVNode("",!0),e.isMini?(i.openBlock(),i.createElementBlock("div",V1,[i.createElementVNode("div",{class:"btn btn_1",onClick:f[1]||(f[1]=i.withModifiers(d=>l("personalForm"),["stop"]))},f[6]||(f[6]=[i.createElementVNode("span",{class:"name"},"私人定制个性食谱",-1)])),i.createElementVNode("div",{class:"btn btn_2",onClick:f[2]||(f[2]=i.withModifiers(d=>l("ship_order"),["stop"]))},f[7]||(f[7]=[i.createElementVNode("span",{class:"name"},"去订餐",-1)]))])):(i.openBlock(),i.createElementBlock("div",R1,[e.channel!=="hft"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"btn btn_1",onClick:f[3]||(f[3]=i.withModifiers(d=>l("ship_order"),["stop"]))},f[8]||(f[8]=[i.createElementVNode("span",{class:"name"},"配送下單",-1),i.createElementVNode("span",{class:"sub"},"(直送到府)",-1)]))):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"btn btn_2",onClick:f[4]||(f[4]=i.withModifiers(d=>l("pick_order"),["stop"]))},f[9]||(f[9]=[i.createElementVNode("span",{class:"name"},"自提下單",-1),i.createElementVNode("span",{class:"sub"},"(免運費)",-1)]))]))]))}},[["__scopeId","data-v-adcdb920"]]),$1={class:"card",style:{"margin-top":"15px"}},U1={class:"row"},z1={class:"content"},j1={class:"title"},H1={class:"row"},q1={class:"name"},W1={class:"content"},Y1={class:"row"},G1={class:"name"},X1={class:"content"},Z1={class:"row"},K1={class:"name"},J1={class:"content"},Q1={class:"row"},eh={class:"name"},th={class:"content"},nh={class:"btn_group"},uh=ke({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n={"01":"早餐","02":"午餐","03":"晚餐","04":"加餐",carbohydrateTotal:"碳水化合物",proteinTotal:"蛋白質",fatTotal:"脂肪"},u=t,r=()=>{u("select",{})};return(o,a)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",$1,[i.createElementVNode("div",U1,[a[0]||(a[0]=i.createElementVNode("div",{class:"name"},"每日攝入能量",-1)),i.createElementVNode("div",z1,i.toDisplayString(e.info.totalIntake)+" kcal",1)])]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.info.planDetailList,s=>(i.openBlock(),i.createElementBlock("div",{key:o.category,class:"card"},[i.createElementVNode("div",j1,i.toDisplayString(n[s.category]),1),i.createElementVNode("div",H1,[i.createElementVNode("div",q1,i.toDisplayString(n[s.category])+"熱量",1),i.createElementVNode("div",W1,i.toDisplayString(s.totalKcal)+" kcal",1)]),a[1]||(a[1]=i.createElementVNode("div",{class:"sep"},null,-1)),i.createElementVNode("div",Y1,[i.createElementVNode("div",G1,i.toDisplayString(n.carbohydrateTotal),1),i.createElementVNode("div",X1,i.toDisplayString(s.carbohydrateTotal)+" g",1)]),i.createElementVNode("div",Z1,[i.createElementVNode("div",K1,i.toDisplayString(n.proteinTotal),1),i.createElementVNode("div",J1,i.toDisplayString(s.proteinTotal)+" g",1)]),i.createElementVNode("div",Q1,[i.createElementVNode("div",eh,i.toDisplayString(n.fatTotal),1),i.createElementVNode("div",th,i.toDisplayString(s.fatTotal)+" g",1)])]))),128)),i.createElementVNode("div",nh,[i.createElementVNode("div",{class:"btn btn_2",onClick:i.withModifiers(r,["stop"])},"用該方案配餐")])],64))}},[["__scopeId","data-v-b9dd25a1"]]),rh={},oh={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ah(e,t){return i.openBlock(),i.createElementBlock("svg",oh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M5.75335 4.13651C5.8677 3.70974 6.31858 3.36377 6.76041 3.36377C7.20223 3.36377 7.4677 3.70974 7.35335 4.13651L7.14629 4.90928L10.3463 4.90928L10.5533 4.13651C10.6677 3.70974 11.1186 3.36377 11.5604 3.36377C12.0022 3.36377 12.2677 3.70974 12.1533 4.13651L11.9463 4.90928H12.8282C13.2701 4.90928 13.5355 5.25525 13.4212 5.68202C13.3068 6.10879 12.8559 6.45476 12.4141 6.45476H11.5322L10.704 9.54561H11.5859C12.0277 9.54561 12.2932 9.89157 12.1788 10.3183C12.0645 10.7451 11.6136 11.0911 11.1718 11.0911H10.2899L10.0828 11.8639C9.96844 12.2907 9.51757 12.6367 9.07574 12.6367C8.63391 12.6367 8.36844 12.2907 8.4828 11.8639L8.68988 11.0911L5.48986 11.0911L5.28278 11.8639C5.16843 12.2907 4.71756 12.6367 4.27573 12.6367C3.8339 12.6367 3.56843 12.2907 3.68278 11.8639L3.88986 11.0911H3.17178C2.72995 11.0911 2.46448 10.7451 2.57884 10.3183C2.69319 9.89157 3.14407 9.54561 3.58589 9.54561H4.30397L4.67327 8.16737C4.78763 7.7406 5.2385 7.39463 5.68033 7.39463C6.12215 7.39463 6.38763 7.7406 6.27327 8.16737L5.90398 9.54561L9.10399 9.54561L9.93218 6.45476L4.41412 6.45476C3.97229 6.45476 3.70682 6.10879 3.82117 5.68202C3.93553 5.25524 4.3864 4.90928 4.82823 4.90928H5.54629L5.75335 4.13651Z",fill:"currentColor"},null,-1)]))}const ih=ke(rh,[["render",ah]]),sh={name:"pictureIcon"},lh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ch(e,t,n,u,r,o){return i.openBlock(),i.createElementBlock("svg",lh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M2.875 6C2.875 4.34315 4.21815 3 5.875 3H19.875C21.5319 3 22.875 4.34315 22.875 6V18C22.875 19.6569 21.5319 21 19.875 21H5.875C4.21815 21 2.875 19.6569 2.875 18V6ZM5.875 5C5.32272 5 4.875 5.44772 4.875 6V16.0852L10.475 11.8852C11.8972 10.8185 13.8528 10.8185 15.275 11.8852L20.875 16.0852V6C20.875 5.44772 20.4273 5 19.875 5H5.875ZM8.28442 10.0852C9.11285 10.0852 9.78442 9.41363 9.78442 8.58521C9.78442 7.75678 9.11285 7.08521 8.28442 7.08521C7.456 7.08521 6.78442 7.75678 6.78442 8.58521C6.78442 9.41363 7.456 10.0852 8.28442 10.0852Z",fill:"currentColor"},null,-1)]))}const fh=ke(sh,[["render",ch]]),dh={},hh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mh(e,t){return i.openBlock(),i.createElementBlock("svg",hh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M18.0849 10.6565C19.9734 8.76795 19.9734 5.70607 18.0849 3.81756C16.1964 1.92905 13.1345 1.92905 11.246 3.81756L5.05399 10.0096C2.55177 12.5118 2.55177 16.5687 5.05399 19.0709C7.55622 21.5732 11.6131 21.5732 14.1154 19.0709L20.2421 12.9442C20.6326 12.5537 20.6326 11.9205 20.2421 11.53C19.8516 11.1394 19.2184 11.1394 18.8279 11.53L12.7011 17.6567C10.98 19.3779 8.18938 19.3779 6.46821 17.6567C4.74703 15.9355 4.74703 13.145 6.4682 11.4238L12.6602 5.23178C13.7677 4.12431 15.5632 4.12431 16.6707 5.23178C17.7781 6.33924 17.7781 8.13478 16.6707 9.24224L10.5401 15.3729C10.0481 15.8648 9.25051 15.8648 8.75856 15.3729C8.26661 14.8809 8.26661 14.0833 8.75856 13.5913L13.9435 8.40645C14.334 8.01592 14.334 7.38276 13.9435 6.99223C13.5529 6.60171 12.9198 6.60171 12.5292 6.99223L7.34435 12.1771C6.07135 13.4501 6.07135 15.5141 7.34435 16.7871C8.61735 18.0601 10.6813 18.0601 11.9543 16.7871L18.0849 10.6565Z",fill:"currentColor"},null,-1)]))}const ph=ke(dh,[["render",mh]]),_h=["width","height"],gh=["stroke"],bh=["stroke","stroke-dasharray","stroke-dashoffset"],Ni={__name:"progressRing",props:{percent:{type:Number,default:75},size:{type:Number,default:48},color:{type:String,default:"#fff"},bgColor:{type:String,default:"#888"}},setup(e){const t=e,n=i.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(u,r)=>(i.openBlock(),i.createElementBlock("svg",{width:e.size,height:e.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:e.bgColor,"stroke-width":"8"},null,8,gh),i.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
|
|
40
|
+
*/function B0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Cu(i.key),i)}}function $0(e,t,n){return t&&wu(e.prototype,t),n&&wu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z0(e,t,n){return(t=Cu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ku(Object(n),!0).forEach(function(i){z0(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ku(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function U0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cu(e){var t=U0(e,"string");return typeof t=="symbol"?t:t+""}function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}var Nu={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},H0='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',ri=typeof window<"u"&&typeof window.document<"u",kt=ri?window:{},nn=ri&&kt.document.documentElement?"ontouchstart"in kt.document.documentElement:!1,ar=ri?"PointerEvent"in kt:!1,J="viewer",ai="move",Du="switch",Dn="zoom",ui="".concat(J,"-active"),q0="".concat(J,"-close"),oi="".concat(J,"-fade"),ur="".concat(J,"-fixed"),W0="".concat(J,"-fullscreen"),Tu="".concat(J,"-fullscreen-exit"),qt="".concat(J,"-hide"),Y0="".concat(J,"-hide-md-down"),G0="".concat(J,"-hide-sm-down"),X0="".concat(J,"-hide-xs-down"),tt="".concat(J,"-in"),Tn="".concat(J,"-invisible"),rn="".concat(J,"-loading"),Z0="".concat(J,"-move"),Au="".concat(J,"-open"),an="".concat(J,"-show"),Ne="".concat(J,"-transition"),un="click",or="dblclick",Iu="dragstart",Su="focusin",Ou="keydown",nt="load",Wt="error",K0=nn?"touchend touchcancel":"mouseup",J0=nn?"touchmove":"mousemove",Q0=nn?"touchstart":"mousedown",Lu=ar?"pointerdown":Q0,Fu=ar?"pointermove":J0,Pu=ar?"pointerup pointercancel":K0,Mu="resize",st="transitionend",Vu="wheel",Ru="ready",ju="show",Bu="shown",$u="hide",zu="hidden",Uu="view",An="viewed",Hu="move",qu="moved",Wu="rotate",Yu="rotated",Gu="scale",Xu="scaled",Zu="zoom",Ku="zoomed",Ju="play",Qu="stop",li="".concat(J,"Action"),lr=/\s\s*/,si=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function In(e){return typeof e=="string"}var ef=Number.isNaN||kt.isNaN;function Ce(e){return typeof e=="number"&&!ef(e)}function on(e){return typeof e>"u"}function ln(e){return rr(e)==="object"&&e!==null}var tf=Object.prototype.hasOwnProperty;function sn(e){if(!ln(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&tf.call(n,"isPrototypeOf")}catch{return!1}}function he(e){return typeof e=="function"}function xe(e,t){if(e&&he(t))if(Array.isArray(e)||Ce(e.length)){var n=e.length,i;for(i=0;i<n&&t.call(e,e[i],i,e)!==!1;i+=1);}else ln(e)&&Object.keys(e).forEach(function(r){t.call(e,e[r],r,e)});return e}var Ze=Object.assign||function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ln(t)&&i.length>0&&i.forEach(function(a){ln(a)&&Object.keys(a).forEach(function(u){t[u]=a[u]})}),t},nf=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ct(e,t){var n=e.style;xe(t,function(i,r){nf.test(r)&&Ce(i)&&(i+="px"),n[r]=i})}function rf(e){return In(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function cn(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function H(e,t){if(!(!e||!t)){if(Ce(e.length)){xe(e,function(i){H(i,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function ae(e,t){if(!(!e||!t)){if(Ce(e.length)){xe(e,function(n){ae(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Sn(e,t,n){if(t){if(Ce(e.length)){xe(e,function(i){Sn(i,t,n)});return}n?H(e,t):ae(e,t)}}var af=/([a-z\d])([A-Z])/g;function sr(e){return e.replace(af,"$1-$2").toLowerCase()}function fn(e,t){return ln(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(sr(t)))}function cr(e,t,n){ln(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(sr(t)),n)}var eo=function(){var e=!1;if(ri){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(a){t=a}});kt.addEventListener("test",n,i),kt.removeEventListener("test",n,i)}return e}();function me(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(lr).forEach(function(a){if(!eo){var u=e.listeners;u&&u[a]&&u[a][n]&&(r=u[a][n],delete u[a][n],Object.keys(u[a]).length===0&&delete u[a],Object.keys(u).length===0&&delete e.listeners)}e.removeEventListener(a,r,i)})}function G(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(lr).forEach(function(a){if(i.once&&!eo){var u=e.listeners,l=u===void 0?{}:u;r=function(){delete l[a][n],e.removeEventListener(a,r,i);for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];n.apply(e,f)},l[a]||(l[a]={}),l[a][n]&&e.removeEventListener(a,l[a][n],i),l[a][n]=r,e.listeners=l}e.addEventListener(a,r,i)})}function Te(e,t,n,i){var r;return he(Event)&&he(CustomEvent)?r=new CustomEvent(t,ir({bubbles:!0,cancelable:!0,detail:n},i)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function uf(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function ci(e){var t=e.rotate,n=e.scaleX,i=e.scaleY,r=e.translateX,a=e.translateY,u=[];Ce(r)&&r!==0&&u.push("translateX(".concat(r,"px)")),Ce(a)&&a!==0&&u.push("translateY(".concat(a,"px)")),Ce(t)&&t!==0&&u.push("rotate(".concat(t,"deg)")),Ce(n)&&n!==1&&u.push("scaleX(".concat(n,")")),Ce(i)&&i!==1&&u.push("scaleY(".concat(i,")"));var l=u.length?u.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function of(e){return In(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var fr=kt.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(kt.navigator.userAgent);function to(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!fr)return n(e.naturalWidth,e.naturalHeight),i;var r=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),fr||r.removeChild(i)},xe(t.inheritedAttributes,function(a){var u=e.getAttribute(a);u!==null&&i.setAttribute(a,u)}),i.src=e.src,fr||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(i)),i}function fi(e){switch(e){case 2:return X0;case 3:return G0;case 4:return Y0;default:return""}}function lf(e){var t=ir({},e),n=[];return xe(e,function(i,r){delete t[r],xe(t,function(a){var u=Math.abs(i.startX-a.startX),l=Math.abs(i.startY-a.startY),s=Math.abs(i.endX-a.endX),c=Math.abs(i.endY-a.endY),f=Math.sqrt(u*u+l*l),d=Math.sqrt(s*s+c*c),p=(d-f)/f;n.push(p)})}),n.sort(function(i,r){return Math.abs(i)<Math.abs(r)}),n[0]}function di(e,t){var n=e.pageX,i=e.pageY,r={endX:n,endY:i};return t?r:ir({timeStamp:Date.now(),startX:n,startY:i},r)}function sf(e){var t=0,n=0,i=0;return xe(e,function(r){var a=r.startX,u=r.startY;t+=a,n+=u,i+=1}),t/=i,n/=i,{pageX:t,pageY:n}}var cf={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,n=t.body||t.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,n=this.parent,i;t.inline&&(i={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=i),(this.fulled||!i)&&(i=this.containerData),this.viewerData=Ze({},i)},renderViewer:function(){this.options.inline&&!this.fulled&&ct(this.viewer,this.viewerData)},initList:function(){var t=this,n=this.element,i=this.options,r=this.list,a=[];r.innerHTML="",xe(this.images,function(u,l){var s=u.src,c=u.alt||of(s),f=t.getImageURL(u);if(s||f){var d=document.createElement("li"),p=document.createElement("img");xe(i.inheritedAttributes,function(g){var m=u.getAttribute(g);m!==null&&p.setAttribute(g,m)}),i.navbar&&(p.src=s||f),p.alt=c,p.setAttribute("data-original-url",f||s),d.setAttribute("data-index",l),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),i.keyboard&&d.setAttribute("tabindex",0),d.appendChild(p),r.appendChild(d),a.push(d)}}),this.items=a,xe(a,function(u){var l=u.firstElementChild,s,c;cr(l,"filled",!0),i.loading&&H(u,rn),G(l,nt,s=function(d){me(l,Wt,c),i.loading&&ae(u,rn),t.loadImage(d)},{once:!0}),G(l,Wt,c=function(){me(l,nt,s),i.loading&&ae(u,rn)},{once:!0})}),i.transition&&G(n,An,function(){H(r,Ne)},{once:!0})},renderList:function(){var t=this.index,n=this.items[t];if(n){var i=n.nextElementSibling,r=parseInt(window.getComputedStyle(i||n).marginLeft,10),a=n.offsetWidth,u=a+r;ct(this.list,Ze({width:u*this.length-r},ci({translateX:(this.viewerData.width-a)/2-u*t})))}},resetList:function(){var t=this.list;t.innerHTML="",ae(t,Ne),ct(t,ci({translateX:0}))},initImage:function(t){var n=this,i=this.options,r=this.image,a=this.viewerData,u=this.footer.offsetHeight,l=a.width,s=Math.max(a.height-u,u),c=this.imageData||{},f;this.imageInitializing={abort:function(){f.onload=null}},f=to(r,i,function(d,p){var g=d/p,m=Math.max(0,Math.min(1,i.initialCoverage)),E=l,w=s;n.imageInitializing=!1,s*g>l?w=l/g:E=s*g,m=Ce(m)?m:.9,E=Math.min(E*m,d),w=Math.min(w*m,p);var D=(l-E)/2,k=(s-w)/2,h={left:D,top:k,x:D,y:k,width:E,height:w,oldRatio:1,ratio:E/d,aspectRatio:g,naturalWidth:d,naturalHeight:p},_=Ze({},h);i.rotatable&&(h.rotate=c.rotate||0,_.rotate=0),i.scalable&&(h.scaleX=c.scaleX||1,h.scaleY=c.scaleY||1,_.scaleX=1,_.scaleY=1),n.imageData=h,n.initialImageData=_,t&&t()})},renderImage:function(t){var n=this,i=this.image,r=this.imageData;if(ct(i,Ze({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},ci(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&cn(i,Ne)){var a=function(){n.imageRendering=!1,t()};this.imageRendering={abort:function(){me(i,st,a)}},G(i,st,a,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},ff={bind:function(){var t=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;G(n,un,this.onClick=this.click.bind(this)),G(n,Iu,this.onDragStart=this.dragstart.bind(this)),G(i,Lu,this.onPointerDown=this.pointerdown.bind(this)),G(r,Fu,this.onPointerMove=this.pointermove.bind(this)),G(r,Pu,this.onPointerUp=this.pointerup.bind(this)),G(r,Ou,this.onKeyDown=this.keydown.bind(this)),G(window,Mu,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&G(n,Vu,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&G(i,or,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;me(n,un,this.onClick),me(n,Iu,this.onDragStart),me(i,Lu,this.onPointerDown),me(r,Fu,this.onPointerMove),me(r,Pu,this.onPointerUp),me(r,Ou,this.onKeyDown),me(window,Mu,this.onResize),t.zoomable&&t.zoomOnWheel&&me(n,Vu,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&me(i,or,this.onDblclick)}},df={click:function(t){var n=this.options,i=this.imageData,r=t.target,a=fn(r,li);switch(!a&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,a=fn(r,li)),nn&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),a){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(fn(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(nn&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,i=this.options,r=this.image,a=this.index,u=this.viewerData;ae(r,Tn),i.loading&&ae(this.canvas,rn),r.style.cssText="height:0;"+"margin-left:".concat(u.width/2,"px;")+"margin-top:".concat(u.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Sn(r,Z0,i.movable),Sn(r,Ne,i.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,he(i.viewed)&&G(n,An,i.viewed,{once:!0}),Te(n,An,{originalImage:t.images[a],index:a,image:r},{cancelable:!1})})})},loadImage:function(t){var n=t.target,i=n.parentNode,r=i.offsetWidth||30,a=i.offsetHeight||50,u=!!fn(n,"filled");to(n,this.options,function(l,s){var c=l/s,f=r,d=a;a*c>r?u?f=a*c:d=r/c:u?d=r/c:f=a*c,ct(n,Ze({width:f,height:d},ci({translateX:(r-f)/2,translateY:(a-d)/2})))})},keydown:function(t){var n=this.options;if(n.keyboard){var i=t.keyCode||t.which||t.charCode;switch(i){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(i){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:t.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:t.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var n=this.options,i=this.pointers,r=t.buttons,a=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(Ce(r)&&r!==1||Ce(a)&&a!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?xe(t.changedTouches,function(l){i[l.identifier]=di(l)}):i[t.pointerId||0]=di(t);var u=n.movable?ai:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(i).length>1?u=Dn:n.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(u=Du),n.transition&&(u===ai||u===Dn)&&ae(this.image,Ne),this.action=u}},pointermove:function(t){var n=this.pointers,i=this.action;!this.viewed||!i||(t.preventDefault(),t.changedTouches?xe(t.changedTouches,function(r){Ze(n[r.identifier]||{},di(r,!0))}):Ze(n[t.pointerId||0]||{},di(t,!0)),this.change(t))},pointerup:function(t){var n=this,i=this.options,r=this.action,a=this.pointers,u;t.changedTouches?xe(t.changedTouches,function(l){u=a[l.identifier],delete a[l.identifier]}):(u=a[t.pointerId||0],delete a[t.pointerId||0]),r&&(t.preventDefault(),i.transition&&(r===ai||r===Dn)&&H(this.image,Ne),this.action=!1,nn&&r!==Dn&&u&&Date.now()-u.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Te(n.image,or,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&i.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Te(n.canvas,un,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}xe(this.player.getElementsByTagName("img"),function(n){G(n,nt,t.loadImage.bind(t),{once:!0}),Te(n,nt)})}},wheel:function(t){var n=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var i=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*i,!0,null,t)}}},pf={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(he(i.show)&&G(n,ju,i.show,{once:!0}),Te(n,ju)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(ae(r,qt),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),i.transition&&!t){var a=this.shown.bind(this);this.transitioning={abort:function(){me(r,st,a),ae(r,tt)}},H(r,Ne),r.initialOffsetWidth=r.offsetWidth,G(r,st,a,{once:!0}),H(r,tt)}else H(r,tt),this.shown();return this},hide:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(he(r.hide)&&G(i,$u,r.hide,{once:!0}),Te(i,$u)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var a=this.viewer,u=this.image,l=function(){ae(a,tt),t.hidden()};if(r.transition&&!n){var s=function(d){d&&d.target===a&&(me(a,st,s),t.hidden())},c=function(){cn(a,Ne)?(G(a,st,s),ae(a,tt)):l()};this.transitioning={abort:function(){t.viewed&&cn(u,Ne)?me(u,st,c):cn(a,Ne)&&me(a,st,s)}},this.viewed&&cn(u,Ne)?(G(u,st,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else l();return this},view:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var i=this.element,r=this.options,a=this.title,u=this.canvas,l=this.items[n],s=l.querySelector("img"),c=fn(s,"originalUrl"),f=s.getAttribute("alt"),d=document.createElement("img");if(xe(r.inheritedAttributes,function(w){var D=s.getAttribute(w);D!==null&&d.setAttribute(w,D)}),d.src=c,d.alt=f,he(r.view)&&G(i,Uu,r.view,{once:!0}),Te(i,Uu,{originalImage:this.images[n],index:n,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var p=this.items[this.index];p&&(ae(p,ui),p.removeAttribute("aria-selected")),H(l,ui),l.setAttribute("aria-selected",!0),r.focus&&l.focus(),this.image=d,this.viewed=!1,this.index=n,this.imageData={},H(d,Tn),r.loading&&H(u,rn),u.innerHTML="",u.appendChild(d),this.renderList(),a.innerHTML="";var g=function(){var D=t.imageData,k=Array.isArray(r.title)?r.title[1]:r.title;a.innerHTML=rf(he(k)?k.call(t,d,D):"".concat(f," (").concat(D.naturalWidth," × ").concat(D.naturalHeight,")"))},m,E;return G(i,An,g,{once:!0}),this.viewing={abort:function(){me(i,An,g),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",me(d,nt,m),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(G(d,nt,m=function(){me(d,Wt,E),t.load()},{once:!0}),G(d,Wt,E=function(){me(d,nt,m),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),ae(d,Tn),r.loading&&ae(t.canvas,rn)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){ae(d,Tn),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=t?this.length-1:0),this.view(n),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,i=this.index+1;return i>n&&(i=t?0:n),this.view(i),this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.imageData;return this.moveTo(on(t)?t:i.x+Number(t),on(n)?n:i.y+Number(n)),this},moveTo:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.element,u=this.options,l=this.imageData;if(t=Number(t),i=Number(i),this.viewed&&!this.played&&u.movable){var s=l.x,c=l.y,f=!1;if(Ce(t)?f=!0:t=s,Ce(i)?f=!0:i=c,f){if(he(u.move)&&G(a,Hu,u.move,{once:!0}),Te(a,Hu,{x:t,y:i,oldX:s,oldY:c,originalEvent:r})===!1)return this;l.x=t,l.y=i,l.left=t,l.top=i,this.moving=!0,this.renderImage(function(){n.moving=!1,he(u.moved)&&G(a,qu,u.moved,{once:!0}),Te(a,qu,{x:t,y:i,oldX:s,oldY:c,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var n=this,i=this.element,r=this.options,a=this.imageData;if(t=Number(t),Ce(t)&&this.viewed&&!this.played&&r.rotatable){var u=a.rotate;if(he(r.rotate)&&G(i,Wu,r.rotate,{once:!0}),Te(i,Wu,{degree:t,oldDegree:u})===!1)return this;a.rotate=t,this.rotating=!0,this.renderImage(function(){n.rotating=!1,he(r.rotated)&&G(i,Yu,r.rotated,{once:!0}),Te(i,Yu,{degree:t,oldDegree:u},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.element,a=this.options,u=this.imageData;if(t=Number(t),i=Number(i),this.viewed&&!this.played&&a.scalable){var l=u.scaleX,s=u.scaleY,c=!1;if(Ce(t)?c=!0:t=l,Ce(i)?c=!0:i=s,c){if(he(a.scale)&&G(r,Gu,a.scale,{once:!0}),Te(r,Gu,{scaleX:t,scaleY:i,oldScaleX:l,oldScaleY:s})===!1)return this;u.scaleX=t,u.scaleY=i,this.scaling=!0,this.renderImage(function(){n.scaling=!1,he(a.scaled)&&G(r,Xu,a.scaled,{once:!0}),Te(r,Xu,{scaleX:t,scaleY:i,oldScaleX:l,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(a.width*t/a.naturalWidth,n,i,r),this},zoomTo:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,l=this.element,s=this.options,c=this.pointers,f=this.imageData,d=f.x,p=f.y,g=f.width,m=f.height,E=f.naturalWidth,w=f.naturalHeight;if(t=Math.max(0,t),Ce(t)&&this.viewed&&!this.played&&(u||s.zoomable)){if(!u){var D=Math.max(.01,s.minZoomRatio),k=Math.min(100,s.maxZoomRatio);t=Math.min(Math.max(t,D),k)}if(a)switch(a.type){case"wheel":s.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var h=E*t,_=w*t,x=h-g,y=_-m,C=f.ratio;if(he(s.zoom)&&G(l,Zu,s.zoom,{once:!0}),Te(l,Zu,{ratio:t,oldRatio:C,originalEvent:a})===!1)return this;if(this.zooming=!0,a){var T=uf(this.viewer),A=c&&Object.keys(c).length>0?sf(c):{pageX:a.pageX,pageY:a.pageY};f.x-=x*((A.pageX-T.left-d)/g),f.y-=y*((A.pageY-T.top-p)/m)}else sn(r)&&Ce(r.x)&&Ce(r.y)?(f.x-=x*((r.x-d)/g),f.y-=y*((r.y-p)/m)):(f.x-=x/2,f.y-=y/2);f.left=f.x,f.top=f.y,f.width=h,f.height=_,f.oldRatio=C,f.ratio=t,this.renderImage(function(){n.zooming=!1,he(s.zoomed)&&G(l,Ku,s.zoomed,{once:!0}),Te(l,Ku,{ratio:t,oldRatio:C,originalEvent:a},{cancelable:!1})}),i&&this.tooltip()}return this},play:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var i=this.element,r=this.options;if(he(r.play)&&G(i,Ju,r.play,{once:!0}),Te(i,Ju)===!1)return this;var a=this.player,u=this.loadImage.bind(this),l=[],s=0,c=0;if(this.played=!0,this.onLoadWhenPlay=u,n&&this.requestFullscreen(n),H(a,an),xe(this.items,function(p,g){var m=p.querySelector("img"),E=document.createElement("img");E.src=fn(m,"originalUrl"),E.alt=m.getAttribute("alt"),E.referrerPolicy=m.referrerPolicy,s+=1,H(E,oi),Sn(E,Ne,r.transition),cn(p,ui)&&(H(E,tt),c=g),l.push(E),G(E,nt,u,{once:!0}),a.appendChild(E)}),Ce(r.interval)&&r.interval>0){var f=function(){clearTimeout(t.playing.timeout),ae(l[c],tt),c-=1,c=c>=0?c:s-1,H(l[c],tt),t.playing.timeout=setTimeout(f,r.interval)},d=function(){clearTimeout(t.playing.timeout),ae(l[c],tt),c+=1,c=c<s?c:0,H(l[c],tt),t.playing.timeout=setTimeout(d,r.interval)};s>1&&(this.playing={prev:f,next:d,timeout:setTimeout(d,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var n=this.element,i=this.options;if(he(i.stop)&&G(n,Qu,i.stop,{once:!0}),Te(n,Qu)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,xe(r.getElementsByTagName("img"),function(a){me(a,nt,t.onLoadWhenPlay)}),ae(r,an),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,n=this.options,i=this.viewer,r=this.image,a=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),H(this.button,Tu),n.transition&&(ae(a,Ne),this.viewed&&ae(r,Ne)),H(i,ur),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),ct(i,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Ze({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(r,Ne),H(a,Ne)},0)})}),this)},exit:function(){var t=this,n=this.options,i=this.viewer,r=this.image,a=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),ae(this.button,Tu),n.transition&&(ae(a,Ne),this.viewed&&ae(r,Ne)),n.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),ae(i,ur),ct(i,{zIndex:n.zIndexInline}),this.viewerData=Ze({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(r,Ne),H(a,Ne)},0)})}),this)},tooltip:function(){var t=this,n=this.options,i=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(i.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&Te(i,st),H(i,an),H(i,oi),H(i,Ne),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,H(i,tt)):(H(i,an),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(G(i,st,function(){ae(i,an),ae(i,oi),ae(i,Ne),i.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),ae(i,tt),t.fading=!0):(ae(i,an),i.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Ze({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,n=this.element,i=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var a=[];if(xe(r?[n]:n.querySelectorAll("img"),function(c){he(i.filter)?i.filter.call(t,c)&&a.push(c):t.getImageURL(c)&&a.push(c)}),!a.length)return this;if(this.images=a,this.length=a.length,this.ready){var u=[];if(xe(this.items,function(c,f){var d=c.querySelector("img"),p=a[f];p&&d?(p.src!==d.src||p.alt!==d.alt)&&u.push(f):u.push(f)}),ct(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var l=u.indexOf(this.index);if(l>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-l,this.length-1),0));else{var s=this.items[this.index];H(s,ui),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,n=this.options;return t[J]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||me(t,un,this.onStart),t[J]=void 0,this):this}},hf={getImageURL:function(t){var n=this.options.url;return In(n)?n=t.getAttribute(n):he(n)?n=n.call(this,t):n="",n},enforceFocus:function(){var t=this;this.clearEnforceFocus(),G(document,Su,this.onFocusin=function(n){var i=t.viewer,r=n.target;if(!(r===document||r===i||i.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}i.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(me(document,Su,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;H(t,Au),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;ae(t,Au),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,n=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(i.focus(),this.enforceFocus()),he(n.shown)&&G(t,Bu,n.shown,{once:!0}),Te(t,Bu)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,n=this.options,i=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),H(i,qt),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(he(n.hidden)&&G(t,zu,n.hidden,{once:!0}),Te(t,zu,null,{cancelable:!1}))},requestFullscreen:function(t){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var i=n.documentElement;i.requestFullscreen?sn(t)?i.requestFullscreen(t):i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,i=this.pointers,r=i[Object.keys(i)[0]];if(r){var a=r.endX-r.startX,u=r.endY-r.startY;switch(this.action){case ai:(a!==0||u!==0)&&(this.pointerMoved=!0,this.move(a,u,t));break;case Dn:this.zoom(lf(i),!1,null,t);break;case Du:{this.action="switched";var l=Math.abs(a);l>1&&l>Math.abs(u)&&(this.pointers={},a>1?this.prev(n.loop):a<-1&&this.next(n.loop));break}}xe(i,function(s){s.startX=s.endX,s.startY=s.endY})}},isSwitchable:function(){var t=this.imageData,n=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=n.width&&t.height<=n.height}},mf=kt.Viewer,gf=function(e){return function(){return e+=1,e}}(-1),dr=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B0(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Ze({},Nu,sn(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=gf(),this.init()}return $0(e,[{key:"init",value:function(){var n=this,i=this.element,r=this.options;if(!i[J]){i[J]=this,r.focus&&!r.keyboard&&(r.focus=!1);var a=i.localName==="img",u=[];if(xe(a?[i]:i.querySelectorAll("img"),function(c){he(r.filter)?r.filter.call(n,c)&&u.push(c):n.getImageURL(c)&&u.push(c)}),this.isImg=a,this.length=u.length,this.images=u,this.initBody(),on(document.createElement(J).style.transition)&&(r.transition=!1),r.inline){var l=0,s=function(){if(l+=1,l===n.length){var f;n.initializing=!1,n.delaying={abort:function(){clearTimeout(f)}},f=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){xe(u,function(f){f.complete||(me(f,nt,s),me(f,Wt,s))})}},xe(u,function(c){if(c.complete)s();else{var f,d;G(c,nt,f=function(){me(c,Wt,d),s()},{once:!0}),G(c,Wt,d=function(){me(c,nt,f),s()},{once:!0})}})}else G(i,un,this.onStart=function(c){var f=c.target;f.localName==="img"&&(!he(r.filter)||r.filter.call(n,f))&&n.view(n.images.indexOf(f))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,i=this.options,r=n.parentNode,a=document.createElement("div");a.innerHTML=H0;var u=a.querySelector(".".concat(J,"-container")),l=u.querySelector(".".concat(J,"-title")),s=u.querySelector(".".concat(J,"-toolbar")),c=u.querySelector(".".concat(J,"-navbar")),f=u.querySelector(".".concat(J,"-button")),d=u.querySelector(".".concat(J,"-canvas"));if(this.parent=r,this.viewer=u,this.title=l,this.toolbar=s,this.navbar=c,this.button=f,this.canvas=d,this.footer=u.querySelector(".".concat(J,"-footer")),this.tooltipBox=u.querySelector(".".concat(J,"-tooltip")),this.player=u.querySelector(".".concat(J,"-player")),this.list=u.querySelector(".".concat(J,"-list")),u.id="".concat(J).concat(this.id),l.id="".concat(J,"Title").concat(this.id),H(l,i.title?fi(Array.isArray(i.title)?i.title[0]:i.title):qt),H(c,i.navbar?fi(i.navbar):qt),Sn(f,qt,!i.button),i.keyboard&&f.setAttribute("tabindex",0),i.backdrop&&(H(u,"".concat(J,"-backdrop")),!i.inline&&i.backdrop!=="static"&&cr(d,li,"hide")),In(i.className)&&i.className&&i.className.split(lr).forEach(function(h){H(u,h)}),i.toolbar){var p=document.createElement("ul"),g=sn(i.toolbar),m=si.slice(0,3),E=si.slice(7,9),w=si.slice(9);g||H(s,fi(i.toolbar)),xe(g?i.toolbar:si,function(h,_){var x=g&&sn(h),y=g?sr(_):h,C=x&&!on(h.show)?h.show:h;if(!(!C||!i.zoomable&&m.indexOf(y)!==-1||!i.rotatable&&E.indexOf(y)!==-1||!i.scalable&&w.indexOf(y)!==-1)){var T=x&&!on(h.size)?h.size:h,A=x&&!on(h.click)?h.click:h,j=document.createElement("li");i.keyboard&&j.setAttribute("tabindex",0),j.setAttribute("role","button"),H(j,"".concat(J,"-").concat(y)),he(A)||cr(j,li,y),Ce(C)&&H(j,fi(C)),["small","large"].indexOf(T)!==-1?H(j,"".concat(J,"-").concat(T)):y==="play"&&H(j,"".concat(J,"-large")),he(A)&&G(j,un,A),p.appendChild(j)}}),s.appendChild(p)}else H(s,qt);if(!i.rotatable){var D=s.querySelectorAll('li[class*="rotate"]');H(D,Tn),xe(D,function(h){s.appendChild(h)})}if(i.inline)H(f,W0),ct(u,{zIndex:i.zIndexInline}),window.getComputedStyle(r).position==="static"&&ct(r,{position:"relative"}),r.insertBefore(u,n.nextSibling);else{H(f,q0),H(u,ur),H(u,oi),H(u,qt),ct(u,{zIndex:i.zIndex});var k=i.container;In(k)&&(k=n.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(u)}if(i.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,he(i.ready)&&G(n,Ru,i.ready,{once:!0}),Te(n,Ru)===!1){this.ready=!1;return}this.ready&&i.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=mf,e}},{key:"setDefaults",value:function(n){Ze(Nu,sn(n)&&n)}}])}();Ze(dr.prototype,cf,ff,df,pf,hf);var bf=typeof global=="object"&&global&&global.Object===Object&&global;const no=bf;var _f=typeof self=="object"&&self&&self.Object===Object&&self,xf=no||_f||Function("return this")();const pr=xf;var yf=pr.Symbol;const pi=yf;var io=Object.prototype,vf=io.hasOwnProperty,Ef=io.toString,On=pi?pi.toStringTag:void 0;function wf(e){var t=vf.call(e,On),n=e[On];try{e[On]=void 0;var i=!0}catch{}var r=Ef.call(e);return i&&(t?e[On]=n:delete e[On]),r}var kf=Object.prototype,Cf=kf.toString;function Nf(e){return Cf.call(e)}var Df="[object Null]",Tf="[object Undefined]",ro=pi?pi.toStringTag:void 0;function hr(e){return e==null?e===void 0?Tf:Df:ro&&ro in Object(e)?wf(e):Nf(e)}function mr(e){return e!=null&&typeof e=="object"}var Af=Array.isArray;const If=Af;function hi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ao(e){return e}var Sf="[object AsyncFunction]",Of="[object Function]",Lf="[object GeneratorFunction]",Ff="[object Proxy]";function uo(e){if(!hi(e))return!1;var t=hr(e);return t==Of||t==Lf||t==Sf||t==Ff}var Pf=pr["__core-js_shared__"];const gr=Pf;var oo=function(){var e=/[^.]+$/.exec(gr&&gr.keys&&gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Mf(e){return!!oo&&oo in e}var Vf=Function.prototype,Rf=Vf.toString;function jf(e){if(e!=null){try{return Rf.call(e)}catch{}try{return e+""}catch{}}return""}var Bf=/[\\^$.*+?()[\]{}|]/g,$f=/^\[object .+?Constructor\]$/,zf=Function.prototype,Uf=Object.prototype,Hf=zf.toString,qf=Uf.hasOwnProperty,Wf=RegExp("^"+Hf.call(qf).replace(Bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yf(e){if(!hi(e)||Mf(e))return!1;var t=uo(e)?Wf:$f;return t.test(jf(e))}function Gf(e,t){return e==null?void 0:e[t]}function Xf(e,t){var n=Gf(e,t);return Yf(n)?n:void 0}function Zf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Kf=800,Jf=16,Qf=Date.now;function ed(e){var t=0,n=0;return function(){var i=Qf(),r=Jf-(i-n);if(n=i,r>0){if(++t>=Kf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function td(e){return function(){return e}}var nd=function(){try{var e=Xf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const mi=nd;var id=mi?function(e,t){return mi(e,"toString",{configurable:!0,enumerable:!1,value:td(t),writable:!0})}:ao,rd=ed(id);const ad=rd;var ud=9007199254740991,od=/^(?:0|[1-9]\d*)$/;function lo(e,t){var n=typeof e;return t=t??ud,!!t&&(n=="number"||n!="symbol"&&od.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){t=="__proto__"&&mi?mi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function br(e,t){return e===t||e!==e&&t!==t}var ld=Object.prototype,sd=ld.hasOwnProperty;function co(e,t,n){var i=e[t];(!(sd.call(e,t)&&br(i,n))||n===void 0&&!(t in e))&&so(e,t,n)}function cd(e,t,n,i){var r=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],s=void 0;s===void 0&&(s=e[l]),r?so(n,l,s):co(n,l,s)}return n}var fo=Math.max;function fd(e,t,n){return t=fo(t===void 0?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=fo(i.length-t,0),u=Array(a);++r<a;)u[r]=i[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=i[r];return l[t]=n(u),Zf(e,this,l)}}function po(e,t){return ad(fd(e,t,ao),e+"")}var dd=9007199254740991;function ho(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dd}function gi(e){return e!=null&&ho(e.length)&&!uo(e)}function mo(e,t,n){if(!hi(n))return!1;var i=typeof t;return(i=="number"?gi(n)&&lo(t,n.length):i=="string"&&t in n)?br(n[t],e):!1}function pd(e){return po(function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,u=r>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,u&&mo(n[0],n[1],u)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var l=n[i];l&&e(t,l,i,a)}return t})}var hd=Object.prototype;function _r(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hd;return e===n}function md(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var gd="[object Arguments]";function go(e){return mr(e)&&hr(e)==gd}var bo=Object.prototype,bd=bo.hasOwnProperty,_d=bo.propertyIsEnumerable,xd=go(function(){return arguments}())?go:function(e){return mr(e)&&bd.call(e,"callee")&&!_d.call(e,"callee")};const yd=xd;function vd(){return!1}var _o=typeof ze=="object"&&ze&&!ze.nodeType&&ze,xo=_o&&typeof module=="object"&&module&&!module.nodeType&&module,Ed=xo&&xo.exports===_o,yo=Ed?pr.Buffer:void 0,wd=yo?yo.isBuffer:void 0,kd=wd||vd;const Cd=kd;var Nd="[object Arguments]",Dd="[object Array]",Td="[object Boolean]",Ad="[object Date]",Id="[object Error]",Sd="[object Function]",Od="[object Map]",Ld="[object Number]",Fd="[object Object]",Pd="[object RegExp]",Md="[object Set]",Vd="[object String]",Rd="[object WeakMap]",jd="[object ArrayBuffer]",Bd="[object DataView]",$d="[object Float32Array]",zd="[object Float64Array]",Ud="[object Int8Array]",Hd="[object Int16Array]",qd="[object Int32Array]",Wd="[object Uint8Array]",Yd="[object Uint8ClampedArray]",Gd="[object Uint16Array]",Xd="[object Uint32Array]",Ee={};Ee[$d]=Ee[zd]=Ee[Ud]=Ee[Hd]=Ee[qd]=Ee[Wd]=Ee[Yd]=Ee[Gd]=Ee[Xd]=!0,Ee[Nd]=Ee[Dd]=Ee[jd]=Ee[Td]=Ee[Bd]=Ee[Ad]=Ee[Id]=Ee[Sd]=Ee[Od]=Ee[Ld]=Ee[Fd]=Ee[Pd]=Ee[Md]=Ee[Vd]=Ee[Rd]=!1;function Zd(e){return mr(e)&&ho(e.length)&&!!Ee[hr(e)]}function Kd(e){return function(t){return e(t)}}var vo=typeof ze=="object"&&ze&&!ze.nodeType&&ze,Ln=vo&&typeof module=="object"&&module&&!module.nodeType&&module,Jd=Ln&&Ln.exports===vo,xr=Jd&&no.process,Qd=function(){try{var e=Ln&&Ln.require&&Ln.require("util").types;return e||xr&&xr.binding&&xr.binding("util")}catch{}}();const Eo=Qd;var wo=Eo&&Eo.isTypedArray,e1=wo?Kd(wo):Zd;const t1=e1;var n1=Object.prototype,i1=n1.hasOwnProperty;function ko(e,t){var n=If(e),i=!n&&yd(e),r=!n&&!i&&Cd(e),a=!n&&!i&&!r&&t1(e),u=n||i||r||a,l=u?md(e.length,String):[],s=l.length;for(var c in e)(t||i1.call(e,c))&&!(u&&(c=="length"||r&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||lo(c,s)))&&l.push(c);return l}function r1(e,t){return function(n){return e(t(n))}}var a1=r1(Object.keys,Object);const u1=a1;var o1=Object.prototype,l1=o1.hasOwnProperty;function s1(e){if(!_r(e))return u1(e);var t=[];for(var n in Object(e))l1.call(e,n)&&n!="constructor"&&t.push(n);return t}function c1(e){return gi(e)?ko(e):s1(e)}var f1=Object.prototype,d1=f1.hasOwnProperty,p1=pd(function(e,t){if(_r(t)||gi(t)){cd(t,c1(t),e);return}for(var n in t)d1.call(t,n)&&co(e,n,t[n])});const h1=p1;function m1(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var g1=Object.prototype,b1=g1.hasOwnProperty;function _1(e){if(!hi(e))return m1(e);var t=_r(e),n=[];for(var i in e)i=="constructor"&&(t||!b1.call(e,i))||n.push(i);return n}function x1(e){return gi(e)?ko(e,!0):_1(e)}var Co=Object.prototype,y1=Co.hasOwnProperty;po(function(e,t){e=Object(e);var n=-1,i=t.length,r=i>2?t[2]:void 0;for(r&&mo(t[0],t[1],r)&&(i=1);++n<i;)for(var a=t[n],u=x1(a),l=-1,s=u.length;++l<s;){var c=u[l],f=e[c];(f===void 0||br(f,Co[c])&&!y1.call(e,c))&&(e[c]=a[c])}return e});const bi=({images:e=[],options:t})=>{t=h1(t,{inline:!1});const n=document.createElement("div"),i=o.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(l=>o.h("img",typeof l=="string"?{src:l}:l)));o.render(i,n);const r=n.firstElementChild;document.body.appendChild(r);const a=new dr(r,t),u=a.destroy.bind(a);return a.destroy=function(){return u(),o.render(null,n),a},a.show(),r.addEventListener("hidden",function(){this.viewer===a&&a.destroy()}),a};o.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let n;const i=o.ref();function r(){n=new dr(i.value,e.options),t("inited",n)}function a(){n&&n.destroy()}function u(){a(),r()}function l(){n?(n.update(),t("inited",n)):r()}function s(){e.rebuild?u():l()}const c={deep:!0};return o.watch(()=>e.images,()=>{o.nextTick(()=>{s()})},c),o.watch(()=>e.trigger,()=>{o.nextTick(()=>{s()})},c),o.watch(()=>e.options,()=>{o.nextTick(()=>{u()})},c),o.onMounted(()=>r()),o.onUnmounted(()=>a()),{root:i,createViewer:r,rebuildViewer:u,updateViewer:l,destroyViewer:a}}});const v1={},E1={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w1(e,t){return o.openBlock(),o.createElementBlock("svg",E1,t[0]||(t[0]=[o.createElementVNode("path",{d:"M10.3193 16.5L14.8193 12L10.3193 7.5",stroke:"currentColor","stroke-linecap":"round"},null,-1)]))}const No=ve(v1,[["render",w1]]),k1=["src"],C1={class:"name"},N1={class:"sub"},D1={key:0},T1=["src"],A1=["src"],I1=ve({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const t=e,n=o.ref(t.open),i=o.ref(null),r=o.ref(0),a=o.ref([]);o.onMounted(async()=>{n.value&&(await m(),await l(),setTimeout(()=>{u()},200))});const u=o.inject("triggerScrollToEnd"),l=()=>new Promise(async E=>{await o.nextTick();const w=[];a.value.hasOwnProperty("craftUrl")&&a.value.craftUrl&&w.push(a.value.craftUrl),w.length?(await s(w),await o.nextTick(),r.value=f.value?i.value.scrollHeight:0,n.value&&(r.value+=26),n.value=!0):n.value=!1,E()}),s=E=>{const w=[];return E.forEach(D=>{const k=new Image,h=new Promise((_,x)=>{k.onload=()=>_(k),k.onerror=()=>x(new Error(`加载${D}失败`)),k.src=D});w.push(h)}),Promise.all(w)},c=o.computed(()=>`${t.defMsg.energy}${t.info.energy}kcal,${t.defMsg.protein}${t.info.protein}g,${t.defMsg.fat}${t.info.fat}g,${t.defMsg.carbonwater}${t.info.carbonwater}g`);o.computed(()=>{var w,D;return(((D=(w=t.info)==null?void 0:w.makeMaterialList)==null?void 0:D.map(k=>k.material+k.usage+"g"))||[]).join("、")});const f=o.computed(()=>t.info.hasOwnProperty("cid")&&t.info.cid),d=o.computed(()=>{let E="92px";return f.value&&(E=n.value?r.value+66+"px":"118px"),E}),p=E=>{bi({images:[E]})},g=async()=>{n.value?n.value=!1:(await m(),l())},m=async()=>{if(!(a.value.hasOwnProperty("makeCraftList")&&a.value.hasOwnProperty("makeMaterialList"))){const E=await ii("/api/cn.weis.api.Food/makeCraft",{method:"makeCraft",params:[{cid:t.info.cid}],token:localStorage.getItem("postToken")});E.errCode===0&&E.obj&&(a.value={...E.obj})}};return(E,w)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({dishes_box:!0,is_open:n.value}),style:o.normalizeStyle({height:d.value})},[o.createElementVNode("div",{class:"dishes_wrap",onClick:o.withModifiers(g,["stop"])},[o.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:w[0]||(w[0]=o.withModifiers(D=>p(e.info.primaryImgUrl),["stop"]))},null,8,k1),o.createElementVNode("div",null,[o.createElementVNode("div",C1,[o.createElementVNode("span",null,o.toDisplayString(e.info.skuname),1),w[2]||(w[2]=o.createElementVNode("span",null,"×1",-1))]),o.createElementVNode("div",N1,o.toDisplayString(c.value),1)])]),f.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:i},[o.withDirectives(o.createElementVNode("div",{class:"switch_open",onClick:o.withModifiers(g,["stop"])},[w[3]||(w[3]=o.createElementVNode("span",null,"查看菜谱详情",-1)),o.createVNode(No,{class:"icon"})],512),[[o.vShow,!n.value]]),w[4]||(w[4]=o.createElementVNode("div",{class:"title"},"制作工艺",-1)),a.value.makeVideosUrl?(o.openBlock(),o.createElementBlock("div",D1,[o.createElementVNode("video",{src:a.value.makeVideosUrl,width:"100%",controls:"true"},null,8,T1)])):o.createCommentVNode("",!0),o.createElementVNode("img",{src:a.value.craftUrl,width:"100%",alt:"craft"},null,8,A1),o.createElementVNode("div",{class:"collapse_btn",onClick:w[1]||(w[1]=o.withModifiers(D=>n.value=!1,["stop"]))},"收起")],512)):o.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-7da603ee"]]),S1={class:"dl_wrap"},O1={key:0},L1={key:0,class:"sep_line"},F1={class:"date"},P1={key:1,style:{padding:"15px 0"}},M1={class:"title"},V1={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},R1={key:1,class:"btn_group"},j1={key:2,class:"btn_group"},B1=ve({__name:"DishesList",props:{skuList:{type:Array,required:!0,default:()=>[]},isMini:{type:Boolean,default:!1},channel:{type:String,default:"web"},defMsg:{type:Object,default:()=>({})}},emits:["select"],setup(e,{emit:t}){const n=e,i=t;o.ref(!1);const r=o.ref(!1),a=(c,f)=>!1,u=c=>{let f=0;return((c==null?void 0:c.list)||[]).forEach(d=>{((d==null?void 0:d.getCategoryList)||[]).forEach(p=>{f+=p.energy||0})}),f},l=c=>n.skuList.slice(0,c).findIndex(f=>f.strDate===n.skuList[c].strDate)===-1,s=c=>{i("select",{type:c})};return(c,f)=>(o.openBlock(),o.createElementBlock("div",S1,[o.createElementVNode("div",{class:o.normalizeClass(["dl_list",{show_full:r.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.skuList,(d,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:d.category},[l(p)?(o.openBlock(),o.createElementBlock("div",O1,[p>0?(o.openBlock(),o.createElementBlock("div",L1)):o.createCommentVNode("",!0),o.createElementVNode("div",F1,o.toDisplayString(d.strDate.slice(4,6))+"月"+o.toDisplayString(d.strDate.slice(6))+"日 ",1)])):o.createCommentVNode("",!0),d.list&&d.list.length?(o.openBlock(),o.createElementBlock("div",P1,[o.createElementVNode("p",M1,o.toDisplayString(d.categoryType)+" "+o.toDisplayString(u(d))+"kcal ",1),o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.list,g=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:g.id},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.getCategoryList,(m,E)=>(o.openBlock(),o.createBlock(I1,{key:E,info:m,"def-msg":e.defMsg,open:a(m,d.category)},null,8,["info","def-msg","open"]))),128))],64))),128))])])):o.createCommentVNode("",!0)],64))),128))],2),o.createElementVNode("div",{class:o.normalizeClass(["dl_full",{show_full:r.value}]),onClick:f[0]||(f[0]=d=>r.value=!r.value)},o.toDisplayString(r.value?"收起菜谱":"点击查看完整食谱"),3),e.isMini?(o.openBlock(),o.createElementBlock("div",V1,f[5]||(f[5]=[o.createTextVNode(" 温馨提示:维小饭AI健康食谱为日常膳食调理方案,不能替代药物治疗或专业医疗建议。如有疾病,请及时就医并遵医嘱。"),o.createElementVNode("br",null,null,-1),o.createElementVNode("strong",null,"半价惊喜,下单即得!",-1)]))):o.createCommentVNode("",!0),e.isMini?(o.openBlock(),o.createElementBlock("div",R1,[o.createElementVNode("div",{class:"btn btn_1",onClick:f[1]||(f[1]=o.withModifiers(d=>s("personalForm"),["stop"]))},f[6]||(f[6]=[o.createElementVNode("span",{class:"name"},"私人定制个性食谱",-1)])),o.createElementVNode("div",{class:"btn btn_2",onClick:f[2]||(f[2]=o.withModifiers(d=>s("ship_order"),["stop"]))},f[7]||(f[7]=[o.createElementVNode("span",{class:"name"},"去订餐",-1)]))])):(o.openBlock(),o.createElementBlock("div",j1,[e.channel!=="hft"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"btn btn_1",onClick:f[3]||(f[3]=o.withModifiers(d=>s("ship_order"),["stop"]))},f[8]||(f[8]=[o.createElementVNode("span",{class:"name"},"配送下單",-1),o.createElementVNode("span",{class:"sub"},"(直送到府)",-1)]))):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"btn btn_2",onClick:f[4]||(f[4]=o.withModifiers(d=>s("pick_order"),["stop"]))},f[9]||(f[9]=[o.createElementVNode("span",{class:"name"},"自提下單",-1),o.createElementVNode("span",{class:"sub"},"(免運費)",-1)]))]))]))}},[["__scopeId","data-v-adcdb920"]]),$1={class:"card",style:{"margin-top":"15px"}},z1={class:"row"},U1={class:"content"},H1={class:"title"},q1={class:"row"},W1={class:"name"},Y1={class:"content"},G1={class:"row"},X1={class:"name"},Z1={class:"content"},K1={class:"row"},J1={class:"name"},Q1={class:"content"},ep={class:"row"},tp={class:"name"},np={class:"content"},ip={class:"btn_group"},rp=ve({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n={"01":"早餐","02":"午餐","03":"晚餐","04":"加餐",carbohydrateTotal:"碳水化合物",proteinTotal:"蛋白質",fatTotal:"脂肪"},i=t,r=()=>{i("select",{})};return(a,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",$1,[o.createElementVNode("div",z1,[u[0]||(u[0]=o.createElementVNode("div",{class:"name"},"每日攝入能量",-1)),o.createElementVNode("div",U1,o.toDisplayString(e.info.totalIntake)+" kcal",1)])]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.info.planDetailList,l=>(o.openBlock(),o.createElementBlock("div",{key:a.category,class:"card"},[o.createElementVNode("div",H1,o.toDisplayString(n[l.category]),1),o.createElementVNode("div",q1,[o.createElementVNode("div",W1,o.toDisplayString(n[l.category])+"熱量",1),o.createElementVNode("div",Y1,o.toDisplayString(l.totalKcal)+" kcal",1)]),u[1]||(u[1]=o.createElementVNode("div",{class:"sep"},null,-1)),o.createElementVNode("div",G1,[o.createElementVNode("div",X1,o.toDisplayString(n.carbohydrateTotal),1),o.createElementVNode("div",Z1,o.toDisplayString(l.carbohydrateTotal)+" g",1)]),o.createElementVNode("div",K1,[o.createElementVNode("div",J1,o.toDisplayString(n.proteinTotal),1),o.createElementVNode("div",Q1,o.toDisplayString(l.proteinTotal)+" g",1)]),o.createElementVNode("div",ep,[o.createElementVNode("div",tp,o.toDisplayString(n.fatTotal),1),o.createElementVNode("div",np,o.toDisplayString(l.fatTotal)+" g",1)])]))),128)),o.createElementVNode("div",ip,[o.createElementVNode("div",{class:"btn btn_2",onClick:o.withModifiers(r,["stop"])},"用該方案配餐")])],64))}},[["__scopeId","data-v-b9dd25a1"]]),ap={},up={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function op(e,t){return o.openBlock(),o.createElementBlock("svg",up,t[0]||(t[0]=[o.createElementVNode("path",{d:"M5.75335 4.13651C5.8677 3.70974 6.31858 3.36377 6.76041 3.36377C7.20223 3.36377 7.4677 3.70974 7.35335 4.13651L7.14629 4.90928L10.3463 4.90928L10.5533 4.13651C10.6677 3.70974 11.1186 3.36377 11.5604 3.36377C12.0022 3.36377 12.2677 3.70974 12.1533 4.13651L11.9463 4.90928H12.8282C13.2701 4.90928 13.5355 5.25525 13.4212 5.68202C13.3068 6.10879 12.8559 6.45476 12.4141 6.45476H11.5322L10.704 9.54561H11.5859C12.0277 9.54561 12.2932 9.89157 12.1788 10.3183C12.0645 10.7451 11.6136 11.0911 11.1718 11.0911H10.2899L10.0828 11.8639C9.96844 12.2907 9.51757 12.6367 9.07574 12.6367C8.63391 12.6367 8.36844 12.2907 8.4828 11.8639L8.68988 11.0911L5.48986 11.0911L5.28278 11.8639C5.16843 12.2907 4.71756 12.6367 4.27573 12.6367C3.8339 12.6367 3.56843 12.2907 3.68278 11.8639L3.88986 11.0911H3.17178C2.72995 11.0911 2.46448 10.7451 2.57884 10.3183C2.69319 9.89157 3.14407 9.54561 3.58589 9.54561H4.30397L4.67327 8.16737C4.78763 7.7406 5.2385 7.39463 5.68033 7.39463C6.12215 7.39463 6.38763 7.7406 6.27327 8.16737L5.90398 9.54561L9.10399 9.54561L9.93218 6.45476L4.41412 6.45476C3.97229 6.45476 3.70682 6.10879 3.82117 5.68202C3.93553 5.25524 4.3864 4.90928 4.82823 4.90928H5.54629L5.75335 4.13651Z",fill:"currentColor"},null,-1)]))}const lp=ve(ap,[["render",op]]),sp={name:"pictureIcon"},cp={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fp(e,t,n,i,r,a){return o.openBlock(),o.createElementBlock("svg",cp,t[0]||(t[0]=[o.createElementVNode("path",{d:"M2.875 6C2.875 4.34315 4.21815 3 5.875 3H19.875C21.5319 3 22.875 4.34315 22.875 6V18C22.875 19.6569 21.5319 21 19.875 21H5.875C4.21815 21 2.875 19.6569 2.875 18V6ZM5.875 5C5.32272 5 4.875 5.44772 4.875 6V16.0852L10.475 11.8852C11.8972 10.8185 13.8528 10.8185 15.275 11.8852L20.875 16.0852V6C20.875 5.44772 20.4273 5 19.875 5H5.875ZM8.28442 10.0852C9.11285 10.0852 9.78442 9.41363 9.78442 8.58521C9.78442 7.75678 9.11285 7.08521 8.28442 7.08521C7.456 7.08521 6.78442 7.75678 6.78442 8.58521C6.78442 9.41363 7.456 10.0852 8.28442 10.0852Z",fill:"currentColor"},null,-1)]))}const dp=ve(sp,[["render",fp]]),pp={},hp={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mp(e,t){return o.openBlock(),o.createElementBlock("svg",hp,t[0]||(t[0]=[o.createElementVNode("path",{d:"M18.0849 10.6565C19.9734 8.76795 19.9734 5.70607 18.0849 3.81756C16.1964 1.92905 13.1345 1.92905 11.246 3.81756L5.05399 10.0096C2.55177 12.5118 2.55177 16.5687 5.05399 19.0709C7.55622 21.5732 11.6131 21.5732 14.1154 19.0709L20.2421 12.9442C20.6326 12.5537 20.6326 11.9205 20.2421 11.53C19.8516 11.1394 19.2184 11.1394 18.8279 11.53L12.7011 17.6567C10.98 19.3779 8.18938 19.3779 6.46821 17.6567C4.74703 15.9355 4.74703 13.145 6.4682 11.4238L12.6602 5.23178C13.7677 4.12431 15.5632 4.12431 16.6707 5.23178C17.7781 6.33924 17.7781 8.13478 16.6707 9.24224L10.5401 15.3729C10.0481 15.8648 9.25051 15.8648 8.75856 15.3729C8.26661 14.8809 8.26661 14.0833 8.75856 13.5913L13.9435 8.40645C14.334 8.01592 14.334 7.38276 13.9435 6.99223C13.5529 6.60171 12.9198 6.60171 12.5292 6.99223L7.34435 12.1771C6.07135 13.4501 6.07135 15.5141 7.34435 16.7871C8.61735 18.0601 10.6813 18.0601 11.9543 16.7871L18.0849 10.6565Z",fill:"currentColor"},null,-1)]))}const gp=ve(pp,[["render",mp]]),bp=["width","height"],_p=["stroke"],xp=["stroke","stroke-dasharray","stroke-dashoffset"],Do={__name:"progressRing",props:{percent:{type:Number,default:75},size:{type:Number,default:48},color:{type:String,default:"#fff"},bgColor:{type:String,default:"#888"}},setup(e){const t=e,n=o.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(i,r)=>(o.openBlock(),o.createElementBlock("svg",{width:e.size,height:e.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:e.bgColor,"stroke-width":"8"},null,8,_p),o.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
|
|
32
41
|
a 45 45 0 1 1 0 90\r
|
|
33
|
-
a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":n.value.l,"stroke-dashoffset":n.value.p},null,8,bh)],8,_h))}},Eh={},yh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kh(e,t){return i.openBlock(),i.createElementBlock("svg",yh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5L10.5 10.5H4.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5H10.5L10.5 19.5C10.5 20.3284 11.1716 21 12 21C12.8284 21 13.5 20.3284 13.5 19.5V13.5H19.5C20.3284 13.5 21 12.8284 21 12C21 11.1716 20.3284 10.5 19.5 10.5H13.5V4.5Z",fill:"currentColor"},null,-1)]))}const xh=ke(Eh,[["render",kh]]),Ch={},vh={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wh(e,t){return i.openBlock(),i.createElementBlock("svg",vh,t[0]||(t[0]=[i.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"black","fill-opacity":"0.5"},null,-1),i.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",stroke:"currentColor"},null,-1),i.createElementVNode("path",{d:"M10.8284 6.58588C11.2189 6.19535 11.2189 5.56219 10.8284 5.17167C10.4379 4.78114 9.80471 4.78114 9.41419 5.17167L8 6.58586L6.58581 5.17167C6.19529 4.78114 5.56212 4.78114 5.1716 5.17167C4.78107 5.56219 4.78107 6.19535 5.1716 6.58588L6.58579 8.00007L5.17155 9.41431C4.78103 9.80483 4.78103 10.438 5.17155 10.8285C5.56207 11.219 6.19524 11.219 6.58576 10.8285L8 9.41428L9.41424 10.8285C9.80476 11.219 10.4379 11.219 10.8285 10.8285C11.219 10.438 11.219 9.80483 10.8285 9.41431L9.41421 8.00007L10.8284 6.58588Z",fill:"currentColor"},null,-1)]))}const Nh=ke(Ch,[["render",wh]]),Dh={},Th={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ah(e,t){return i.openBlock(),i.createElementBlock("svg",Th,t[0]||(t[0]=[i.createElementVNode("path",{d:"M21 7.64355C21 7.09127 21.4477 6.64355 22 6.64355C22.5523 6.64355 23 7.09127 23 7.64355V9.64355H25C25.5523 9.64355 26 10.0913 26 10.6436C26 11.1958 25.5523 11.6436 25 11.6436H23V13.6436C23 14.1958 22.5523 14.6436 22 14.6436C21.4477 14.6436 21 14.1958 21 13.6436V11.6436H19C18.4477 11.6436 18 11.1958 18 10.6436C18 10.0913 18.4477 9.64355 19 9.64355H21V7.64355ZM9 10.6436C9 10.0913 9.44772 9.64355 10 9.64355H16.164C16.7162 9.64355 17.164 9.19584 17.164 8.64355C17.164 8.09127 16.7162 7.64355 16.164 7.64355H10C8.34315 7.64355 7 8.9867 7 10.6436V22.8527C7 24.7723 9.0737 25.9757 10.7403 25.0233L15.035 22.5693C15.1861 22.4829 15.3571 22.4375 15.5311 22.4375H22C23.6569 22.4375 25 21.0944 25 19.4375V16.32C25 15.7677 24.5523 15.32 24 15.32C23.4477 15.32 23 15.7677 23 16.32V19.4375C23 19.9898 22.5523 20.4375 22 20.4375H15.5311C15.009 20.4375 14.496 20.5737 14.0427 20.8328L9.74807 23.2869C9.41474 23.4773 9 23.2366 9 22.8527V10.6436Z",fill:"currentColor"},null,-1)]))}const Di=ke(Dh,[["render",Ah]]),Ih={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"},Sh=["fill"],Oh=["fill"],Lh={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",Ih,[i.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,Sh),i.createElementVNode("path",{fill:e.color,d:"M512.042667 213.333333v74.666667a224 224 0 1 1-195.626667 114.773333l-65.194667-36.394666A298.666667 298.666667 0 1 0 512.042667 213.333333z"},n[0]||(n[0]=[i.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 512 512",to:"360 512 512",dur:"1.5s",repeatCount:"indefinite",fill:"freeze"},null,-1)]),8,Oh)]))}},Fh={class:"om_wrap"},Ph={class:"om_quick"},Mh=["onClick"],Vh={class:"om_operate_box"},Rh={class:"om_operate_wrap"},Bh={class:"file_list"},$h=["src"],Uh={key:2,class:"process"},zh={class:"om_operate"},jh=["placeholder"],Hh={class:"btn_group"},qh={class:"om_extra",style:{display:"none"}},Wh={class:"icon"},Yh={class:"text"},Gh={class:"om_ai_tips"},Xh="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Zh=ke({__name:"OperateModule",props:{modelValue:{type:String,default:""},token:{type:String,required:!0},tagList:{type:Array,required:!0},newChat:{type:Boolean,default:!1},defMsg:{type:Object,required:!0},isReq:{type:String,default:"00"}},emits:["update:modelValue","send","tag","call"],setup(e,{emit:t}){const n=[{name:"相冊",icon:fh,type:"photo"},{name:"文件",icon:ph,type:"file"}],u=i.ref(null),r=i.ref(null),o=i.ref(null),a=i.ref(!1),s=i.ref([]),l=e,c=t,f=i.computed(()=>({headers:{Authorization:`Bearer ${l.token}`,"Content-Type":"multipart/form-data"}}));i.watch(()=>l.modelValue,()=>{A()});const d=i.computed(()=>{switch(l.isReq){case"01":return{bg:"#fff",color:"#ccc"};case"02":return{bg:"#666",color:"#CDEBD7"};case"03":return{bg:"#ccc",color:"#fff"};case"04":return{bg:"#E5F4EB",color:"#fff"}}}),h=i.computed({get:()=>l.modelValue,set:R=>{c("update:modelValue",R),A()}});i.onMounted(()=>{A()}),i.onUnmounted(()=>{u.value&&(u.value.style.height="auto")});const _=R=>{h.value=R.target.value.replace(/^\n+|\n+$/g,"")},p=R=>{R.type==="upload"?b():c("tag",{...R})},x=()=>{if(!h.value)return;if(s.value.length&&s.value.findIndex(Q=>Q.percent<100)>-1){c("call",{message:l.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const R=[{content:h.value,text:h.value}];console.log("====== u file list =======",s.value),s.value.length&&(R.push({type:"object_string",content:s.value.map(Q=>({type:he(Q.file_type),name:Q.file.name,file_id:Q.data.id,file_url:Q.file_url}))}),a.value=!1),c("send",[...R]),y()},C=R=>{const Q=R.target.files[0],q=new FileReader;q.onload=()=>previewUrl.value=q.result,q.readAsDataURL(Q)},D=()=>{r.value&&r.value.click()},v=R=>{const Q=R.target.files[0];console.log("=== file ===",R),Q&&(s.value.push({file:Q,file_type:Q.type,file_url:URL.createObjectURL(Q),size:(Q.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",s.value),m(s.value.length-1))},m=async R=>{const Q=s.value[R].file;console.log("========",Q),h.value||(h.value=l.defMsg.fileText);const q=new FormData;q.append("file",Q);const ue=new XMLHttpRequest;ue.open("POST","https://api.coze.cn/v1/files/upload"),ue.setRequestHeader("Authorization",f.value.headers.Authorization),ue.upload.onprogress=Ue=>{if(Ue.lengthComputable){const M=Math.round(Ue.loaded/Ue.total*100);console.log(`======进度======:${M}%`),s.value[R].percent=M}},ue.onreadystatechange=function(){if(console.log("============",ue),ue.readyState===XMLHttpRequest.DONE)if(ue.status===200){console.log("上传成功:",ue.responseText);const Ue=JSON.parse(ue.response);s.value[R].data=Ue.data}else console.error("上传失败:",ue.status)},ue.send(q)},b=()=>{y(!0),a.value=!0},E=()=>{y(!0),a.value=!1},y=(R=!1)=>{if(R)for(let Q=s.value.length-1;Q>=0;Q-=1)w(Q);r.value&&(r.value.value=""),s.value=[]},w=R=>{URL.revokeObjectURL(s.value[R].file_url),s.value.splice(R,1),r.value&&(r.value.value="")},T=()=>{c("call",{type:"new_chat"})},A=()=>{i.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,72)+"px")})},B=()=>{i.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},he=R=>{if(R.includes("image"))return"image";if(R.includes("application"))return"file";if(R.includes("audio"))return"audio"},U=()=>{};return(R,Q)=>(i.openBlock(),i.createElementBlock("div",Fh,[i.createElementVNode("div",Ph,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tagList,q=>(i.openBlock(),i.createElementBlock("div",{class:"tag",key:q.value,onClick:i.withModifiers(ue=>p(q),["stop"])},[i.createVNode(ih,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(q.name),1)],8,Mh))),128))]),i.createElementVNode("div",Vh,[e.newChat?(i.openBlock(),i.createElementBlock("div",{key:0,class:"new_chat",onClick:i.withModifiers(T,["stop"])},[i.createVNode(Di)])):i.createCommentVNode("",!0),i.createElementVNode("div",Rh,[i.createElementVNode("div",{class:i.normalizeClass(["file_list_box",{hidden:!a.value}])},[i.createElementVNode("div",Bh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(q,ue)=>(i.openBlock(),i.createElementBlock("div",{key:ue,class:"file_card"},[q.file_type.toLocaleLowerCase().includes("pdf")?(i.openBlock(),i.createElementBlock("img",{key:0,class:"pdf",src:Xh,width:"100%",alt:"img"})):(i.openBlock(),i.createElementBlock("img",{key:1,class:"img",src:q.file_url,width:"100%",alt:"img"},null,8,$h)),q.percent<100?(i.openBlock(),i.createElementBlock("div",Uh,[i.createVNode(Ni,{percent:q.percent},null,8,["percent"])])):(i.openBlock(),i.createBlock(Nh,{key:3,class:"close",onClick:i.withModifiers(Ue=>w(ue),["stop"])},null,8,["onClick"]))]))),128)),s.value.length<4?(i.openBlock(),i.createElementBlock("div",{key:0,class:"file_add",onClick:i.withModifiers(D,["stop"])},[i.createVNode(xh)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"file_close",onClick:i.withModifiers(E,["stop"])},[i.createVNode(ka)])])],2),i.createElementVNode("div",zh,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":Q[0]||(Q[0]=q=>h.value=q),ref_key:"txtEle",ref:u,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:_,onKeyup:i.withKeys(x,["enter"]),onFocus:B,onBlur:U},null,40,jh),[[i.vModelText,h.value]]),i.createElementVNode("div",Hh,[i.createElementVNode("div",{class:"btn",onClick:i.withModifiers(x,["stop"])},[e.isReq==="00"?(i.openBlock(),i.createBlock(V0,{key:0,style:i.normalizeStyle({color:h.value?"#039938":"#ccc"})},null,8,["style"])):(i.openBlock(),i.createBlock(Lh,{key:1,bg:d.value.bg,color:d.value.color},null,8,["bg","color"]))])])])])]),i.createElementVNode("div",qh,[i.createElementVNode("input",{ref_key:"captureInput",ref:o,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:C},null,544),i.createElementVNode("input",{ref_key:"uploadInput",ref:r,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:v},null,544),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,q=>i.createElementVNode("div",{key:q.type,class:"card",onClick:i.withModifiers(D,["stop"])},[i.createElementVNode("div",Wh,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(q.icon)))]),i.createElementVNode("div",Yh,i.toDisplayString(q.name),1)])),64)),i.createVNode(Ni,{percent:15})]),i.createElementVNode("div",Gh,i.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-2044a301"]]),Kh={},Jh={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"};function Qh(e,t){return i.openBlock(),i.createElementBlock("svg",Jh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"currentColor"},null,-1)]))}const em=ke(Kh,[["render",Qh]]),tm={},nm={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function um(e,t){return i.openBlock(),i.createElementBlock("svg",nm,t[0]||(t[0]=[i.createStaticVNode('<circle id="ballA" cx="220" cy="220" r="50" fill="rgba(0,0,0,0.8)" opacity="0.1"><animate attributeName="cx" values="220; 40; 220; 400; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="50; 80; 100; 80; 50" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="0.1; 0.6; 1; 0.6; 0.1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle><circle id="ballB" cx="220" cy="220" r="100" fill="rgba(0,0,0,0.8)" opacity="1"><animate attributeName="cx" values="220; 400; 220; 40; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="100; 80; 50; 80; 100" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="1; 0.6; 0.1; 0.6; 1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle>',2)]))}const rm=ke(tm,[["render",um]]),om=["src","alt"],am="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",im=ke({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,n=()=>{const r=t.list.filter(o=>o.type==="image"&&o.file_url);r.length&&gu({images:r.map(o=>o.file_url)})},u=({type:r,name:o,file_url:a})=>{console.log(t.list);let s=a;return r==="file"&&o.toLowerCase().endsWith("pdf")&&(s=am),s};return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["img_wrap",e.list.length>1?"grid_2":"grid_1"])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.list,a=>(i.openBlock(),i.createElementBlock("img",{key:a.file_id,class:"img",width:"100%",src:u(a),alt:a.name,onClick:i.withModifiers(n,["stop"])},null,8,om))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),sm={},lm={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cm(e,t){return i.openBlock(),i.createElementBlock("svg",lm,t[0]||(t[0]=[i.createElementVNode("path",{d:"M18.3752 6.19542C18.3663 5.84188 18.0971 5.61907 17.7113 5.62719C17.3249 5.63532 17.1259 5.87105 17.0624 6.22473C17.0295 6.40814 17.0401 6.60002 17.0382 6.78818C17.0349 7.1092 17.0373 7.43028 17.0373 7.75135C16.9871 7.77411 16.9369 7.79688 16.8867 7.81966C16.7181 7.65766 16.5524 7.4926 16.3805 7.33415C14.8317 5.90621 12.9939 5.37461 10.9359 5.69056C8.03017 6.13662 5.87726 8.55583 5.62463 11.5758C5.38764 14.4087 7.21523 17.1459 9.95849 18.0667C12.7336 18.9982 15.8214 17.914 17.3822 15.4574C17.4827 15.2992 17.5871 15.1369 17.6484 14.962C17.7675 14.6224 17.7077 14.3062 17.3722 14.1247C17.049 13.9499 16.7426 14.0201 16.5131 14.3168C16.3983 14.4652 16.3111 14.6344 16.204 14.7891C15.2363 16.1865 13.907 16.9479 12.206 17.0308C9.92842 17.1419 7.84057 15.6645 7.17679 13.487C6.49124 11.238 7.43946 8.81484 9.46764 7.6327C11.4392 6.48354 13.9702 6.81332 15.5656 8.43366C15.6825 8.55231 15.7612 8.70851 15.9506 8.98094C15.3277 8.98094 14.8482 8.95558 14.3726 8.98836C13.9335 9.01865 13.7009 9.27998 13.7045 9.64685C13.708 10.0041 13.9569 10.2996 14.3795 10.31C15.4824 10.3371 16.5866 10.3273 17.6901 10.3155C18.0536 10.3117 18.3546 10.1036 18.3656 9.74431C18.4019 8.56213 18.4048 7.37778 18.3752 6.19542Z",fill:"currentColor"},[i.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1.5s",repeatCount:"indefinite"})],-1)]))}const fm=ke(sm,[["render",cm]]),dm={},hm={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mm(e,t){return i.openBlock(),i.createElementBlock("svg",hm,t[0]||(t[0]=[i.createElementVNode("path",{d:"M3.78271 12C3.78271 13.0792 3.99526 14.1477 4.40822 15.1447C4.82118 16.1416 5.42646 17.0475 6.18951 17.8106C6.95256 18.5736 7.85843 19.1789 8.8554 19.5919C9.85238 20.0048 10.9209 20.2174 12 20.2174C13.0792 20.2174 14.1477 20.0048 15.1447 19.5919C16.1416 19.1789 17.0475 18.5736 17.8106 17.8106C18.5736 17.0475 19.1789 16.1416 19.5919 15.1447C20.0048 14.1477 20.2174 13.0792 20.2174 12C20.2174 10.9209 20.0048 9.85238 19.5919 8.8554C19.1789 7.85843 18.5736 6.95256 17.8106 6.18951C17.0475 5.42646 16.1416 4.82118 15.1447 4.40822C14.1477 3.99526 13.0792 3.78271 12 3.78271C10.9209 3.78271 9.85238 3.99526 8.8554 4.40822C7.85843 4.82118 6.95256 5.42646 6.18951 6.18951C5.42646 6.95256 4.82118 7.85843 4.40822 8.8554C3.99526 9.85238 3.78271 10.9209 3.78271 12Z",fill:"currentColor"},null,-1),i.createElementVNode("path",{d:"M11.0677 14.4192L8.08502 11.4365C7.87938 11.2308 7.54542 11.2308 7.33978 11.4365C7.13414 11.6421 7.13414 11.9761 7.33978 12.1817L10.3225 15.1644C10.5281 15.3701 10.8621 15.3701 11.0677 15.1644C11.2751 14.9605 11.2751 14.6266 11.0677 14.4192Z",fill:"#fff"},null,-1),i.createElementVNode("path",{d:"M16.6693 8.84027C16.4636 8.63462 16.1297 8.63462 15.924 8.84027L10.456 14.31C10.2503 14.5157 10.2503 14.8496 10.456 15.0553C10.6616 15.2609 10.9956 15.2609 11.2012 15.0553L16.6693 9.58727C16.8767 9.37986 16.8767 9.04591 16.6693 8.84027Z",fill:"#fff"},null,-1)]))}const pm=ke(dm,[["render",mm]]),_m={class:"text"},gm=["onClick"],bm=ke({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,n=i.ref([]),u=i.computed(()=>{const o=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,a=[...t.content.matchAll(o)];let s=t.content,l=0;const c=[];return a.length?(a.forEach((f,d)=>{c.push({type:"text",content:f.input.slice(l,f.index).replace(o,"")}),c.push({type:"link",string:f[0],...JSON.parse(f[0].replace(o,'{"content":"[$1]","url":"$2"}'))}),s=f.input.slice(f.index).replace(f[0],""),l=f.index}),s.length&&c.push({type:"text",content:s})):c.push({type:"text",content:s}),c}),r=({url:o})=>{n.value=[o],gu({images:n.value})};return(o,a)=>(i.openBlock(),i.createElementBlock("p",_m,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(s,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[s.type==="text"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(s.content),1)],64)):i.createCommentVNode("",!0),s.type==="link"?(i.openBlock(),i.createElementBlock("a",{key:1,class:"link",onClick:i.withModifiers(c=>r(s),["stop"])},i.toDisplayString(s.content),9,gm)):i.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),Em=e=>{gu({images:e})},ym={class:"name"},km={class:"address"},Ti="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",xm=ke({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n=e,u=t,r=()=>{u("select",{type:"chat",content:n.info.hpName,text:n.info.hpName})};return(o,a)=>(i.openBlock(),i.createElementBlock("div",{class:"sc_wrap",onClick:i.withModifiers(r,["stop"])},[i.createElementVNode("div",{class:"img",style:i.normalizeStyle({background:`url(${e.info.signUrl||Ti}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:a[0]||(a[0]=i.withModifiers(s=>i.unref(Em)([e.info.signUrl||Ti]),["stop"]))},null,4),i.createElementVNode("div",null,[i.createElementVNode("div",ym,i.toDisplayString(e.info.hpName),1),i.createElementVNode("div",km,i.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),Cm={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const n=t,u=r=>{n("select",{...r})};return(r,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[o[0]||(o[0]=i.createElementVNode("div",null,"请选择一个门店",-1)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.list,a=>(i.openBlock(),i.createBlock(xm,{key:a.hpName,info:a,onSelect:u},null,8,["info"]))),128))],64))}},Ai={};function vm(e){let t=Ai[e];if(t)return t;t=Ai[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function dn(e,t){typeof t!="string"&&(t=dn.defaultChars);const n=vm(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let o=0,a=u.length;o<a;o+=3){const s=parseInt(u.slice(o+1,o+3),16);if(s<128){r+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(u.slice(o+4,o+6),16);if((l&192)===128){const c=s<<6&1984|l&63;c<128?r+="��":r+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(u.slice(o+4,o+6),16),c=parseInt(u.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const f=s<<12&61440|l<<6&4032|c&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(u.slice(o+4,o+6),16),c=parseInt(u.slice(o+7,o+9),16),f=parseInt(u.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(f&192)===128){let d=s<<18&1835008|l<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}r+="�"}return r})}dn.defaultChars=";/?:@&=+$,#",dn.componentChars="";const Ii={};function wm(e){let t=Ii[e];if(t)return t;t=Ii[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Fn(e,t,n){typeof t!="string"&&(n=t,t=Fn.defaultChars),typeof n>"u"&&(n=!0);const u=wm(t);let r="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){r+=e.slice(o,o+3),o+=2;continue}if(s<128){r+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}Fn.defaultChars=";/?:@&=+$,-_.!~*'()#",Fn.componentChars="-_.!~*'()";function yr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function bu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Nm=/^([a-z0-9.+-]+:)/i,Dm=/:[0-9]*$/,Tm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Am=["<",">",'"',"`"," ","\r",`
|
|
34
|
-
`," "],Im=["{","}","|","\\","^","`"].concat(Am),Sm=["'"].concat(Im),Si=["%","/","?",";","#"].concat(Sm),Oi=["/","?","#"],Om=255,Li=/^[+a-z0-9A-Z_-]{0,63}$/,Lm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Fi={javascript:!0,"javascript:":!0},Pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kr(e,t){if(e&&e instanceof bu)return e;const n=new bu;return n.parse(e,t),n}bu.prototype.parse=function(e,t){let n,u,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=Tm.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=Nm.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(a&&Fi[a])&&(o=o.substr(2),this.slashes=!0)),!Fi[a]&&(r||a&&!Pi[a])){let c=-1;for(let p=0;p<Oi.length;p++)u=o.indexOf(Oi[p]),u!==-1&&(c===-1||u<c)&&(c=u);let f,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=f),c=-1;for(let p=0;p<Si.length;p++)u=o.indexOf(Si[p]),u!==-1&&(c===-1||u<c)&&(c=u);c===-1&&(c=o.length),o[c-1]===":"&&c--;const h=o.slice(0,c);o=o.slice(c),this.parseHost(h),this.hostname=this.hostname||"";const _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){const p=this.hostname.split(/\./);for(let x=0,C=p.length;x<C;x++){const D=p[x];if(D&&!D.match(Li)){let v="";for(let m=0,b=D.length;m<b;m++)D.charCodeAt(m)>127?v+="x":v+=D[m];if(!v.match(Li)){const m=p.slice(0,x),b=p.slice(x+1),E=D.match(Lm);E&&(m.push(E[1]),b.unshift(E[2])),b.length&&(o=b.join(".")+o),this.hostname=m.join(".");break}}}}this.hostname.length>Om&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Pi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bu.prototype.parseHost=function(e){let t=Dm.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Fm=Object.freeze(Object.defineProperty({__proto__:null,decode:dn,encode:Fn,format:yr,parse:kr},Symbol.toStringTag,{value:"Module"})),Mi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Vi=/[\0-\x1F\x7F-\x9F]/,Pm=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,xr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ri=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Bi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Mm=Object.freeze(Object.defineProperty({__proto__:null,Any:Mi,Cc:Vi,Cf:Pm,P:xr,S:Ri,Z:Bi},Symbol.toStringTag,{value:"Module"})),Vm=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Rm=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Cr;const Bm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),$m=(Cr=String.fromCodePoint)!==null&&Cr!==void 0?Cr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Um(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Bm.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const zm=32;var Ot;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ot||(Ot={}));function vr(e){return e>=Me.ZERO&&e<=Me.NINE}function jm(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function Hm(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||vr(e)}function qm(e){return e===Me.EQUALS||Hm(e)}var Ve;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ve||(Ve={}));var Lt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lt||(Lt={}));class Wm{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lt.Strict}startEntity(t){this.decodeMode=t,this.state=Ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ve.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=Ve.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ve.NamedEntity,this.stateNamedEntity(t,n));case Ve.NumericStart:return this.stateNumericStart(t,n);case Ve.NumericDecimal:return this.stateNumericDecimal(t,n);case Ve.NumericHex:return this.stateNumericHex(t,n);case Ve.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|zm)===Me.LOWER_X?(this.state=Ve.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ve.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const o=u-n;this.result=this.result*Math.pow(r,o)+parseInt(t.substr(n,o),r),this.consumed+=o}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(vr(r)||jm(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(vr(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===Lt.Strict)return 0;return this.emitCodePoint(Um(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],o=(r&Ot.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Ym(u,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Lt.Attribute&&(o===0||qm(a))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],o=(r&Ot.VALUE_LENGTH)>>14,o!==0){if(a===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Lt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&Ot.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~Ot.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case Ve.NamedEntity:return this.result!==0&&(this.decodeMode!==Lt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ve.NumericDecimal:return this.emitNumericEntity(0,2);case Ve.NumericHex:return this.emitNumericEntity(0,3);case Ve.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ve.EntityStart:return 0}}}function $i(e){let t="";const n=new Wm(e,u=>t+=$m(u));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(a,s),n.startEntity(o);const c=n.write(r,s+1);if(c<0){a=s+n.end();break}a=s+c,s=c===0?a+1:a}const l=t+r.slice(a);return t="",l}}function Ym(e,t,n,u){const r=(t&Ot.BRANCH_LENGTH)>>7,o=t&Ot.JUMP_TABLE;if(r===0)return o!==0&&u===o?n:-1;if(o){const l=u-o;return l<0||l>=r?-1:e[n+l]-1}let a=n,s=a+r-1;for(;a<=s;){const l=a+s>>>1,c=e[l];if(c<u)a=l+1;else if(c>u)s=l-1;else return e[l+r]}return-1}const Gm=$i(Vm);$i(Rm);function Ui(e,t=Lt.Legacy){return Gm(e,t)}function Xm(e){return Object.prototype.toString.call(e)}function wr(e){return Xm(e)==="[object String]"}const Zm=Object.prototype.hasOwnProperty;function Km(e,t){return Zm.call(e,t)}function Eu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function zi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Nr(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function yu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ji=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Jm=/&([a-z#][a-z0-9]{1,31});/gi,Qm=new RegExp(ji.source+"|"+Jm.source,"gi"),e2=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function t2(e,t){if(t.charCodeAt(0)===35&&e2.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Nr(u)?yu(u):e}const n=Ui(e);return n!==e?n:e}function n2(e){return e.indexOf("\\")<0?e:e.replace(ji,"$1")}function hn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qm,function(t,n,u){return n||t2(t,u)})}const u2=/[&<>"]/,r2=/[&<>"]/g,o2={"&":"&","<":"<",">":">",'"':"""};function a2(e){return o2[e]}function Ft(e){return u2.test(e)?e.replace(r2,a2):e}const i2=/[.?*+^$[\]\\(){}|-]/g;function s2(e){return e.replace(i2,"\\$&")}function ye(e){switch(e){case 9:case 32:return!0}return!1}function Pn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Mn(e){return xr.test(e)||Ri.test(e)}function Vn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ku(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const l2=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:zi,assign:Eu,escapeHtml:Ft,escapeRE:s2,fromCodePoint:yu,has:Km,isMdAsciiPunct:Vn,isPunctChar:Mn,isSpace:ye,isString:wr,isValidEntityCode:Nr,isWhiteSpace:Pn,lib:{mdurl:Fm,ucmicro:Mm},normalizeReference:ku,unescapeAll:hn,unescapeMd:n2},Symbol.toStringTag,{value:"Module"}));function c2(e,t,n){let u,r,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(u--,u===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)u++;else if(n)return e.pos=l,-1}}let c=-1;return r&&(c=e.pos),e.pos=l,c}function f2(e,t,n){let u,r=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return o;if(u===62)return o.pos=r+1,o.str=hn(e.slice(t+1,r)),o.ok=!0,o;if(u===92&&r+1<n){r+=2;continue}r++}return o}let a=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(u===40&&(a++,a>32))return o;if(u===41){if(a===0)break;a--}r++}return t===r||a!==0||(o.str=hn(e.slice(t,r)),o.pos=r,o.ok=!0),o}function d2(e,t,n,u){let r,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)a.str=u.str,a.marker=u.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(r=e.charCodeAt(o),r===a.marker)return a.pos=o+1,a.str+=hn(e.slice(t,o)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=hn(e.slice(t,o)),a}const h2=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:f2,parseLinkLabel:c2,parseLinkTitle:d2},Symbol.toStringTag,{value:"Module"})),_t={};_t.code_inline=function(e,t,n,u,r){const o=e[t];return"<code"+r.renderAttrs(o)+">"+Ft(o.content)+"</code>"},_t.code_block=function(e,t,n,u,r){const o=e[t];return"<pre"+r.renderAttrs(o)+"><code>"+Ft(e[t].content)+`</code></pre>
|
|
35
|
-
`},
|
|
36
|
-
`;if(
|
|
37
|
-
`}return`<pre><code${r.renderAttrs(
|
|
38
|
-
`},
|
|
42
|
+
a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":n.value.l,"stroke-dashoffset":n.value.p},null,8,xp)],8,bp))}},yp={},vp={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ep(e,t){return o.openBlock(),o.createElementBlock("svg",vp,t[0]||(t[0]=[o.createElementVNode("path",{d:"M13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5L10.5 10.5H4.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5H10.5L10.5 19.5C10.5 20.3284 11.1716 21 12 21C12.8284 21 13.5 20.3284 13.5 19.5V13.5H19.5C20.3284 13.5 21 12.8284 21 12C21 11.1716 20.3284 10.5 19.5 10.5H13.5V4.5Z",fill:"currentColor"},null,-1)]))}const wp=ve(yp,[["render",Ep]]),kp={},Cp={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Np(e,t){return o.openBlock(),o.createElementBlock("svg",Cp,t[0]||(t[0]=[o.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"black","fill-opacity":"0.5"},null,-1),o.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",stroke:"currentColor"},null,-1),o.createElementVNode("path",{d:"M10.8284 6.58588C11.2189 6.19535 11.2189 5.56219 10.8284 5.17167C10.4379 4.78114 9.80471 4.78114 9.41419 5.17167L8 6.58586L6.58581 5.17167C6.19529 4.78114 5.56212 4.78114 5.1716 5.17167C4.78107 5.56219 4.78107 6.19535 5.1716 6.58588L6.58579 8.00007L5.17155 9.41431C4.78103 9.80483 4.78103 10.438 5.17155 10.8285C5.56207 11.219 6.19524 11.219 6.58576 10.8285L8 9.41428L9.41424 10.8285C9.80476 11.219 10.4379 11.219 10.8285 10.8285C11.219 10.438 11.219 9.80483 10.8285 9.41431L9.41421 8.00007L10.8284 6.58588Z",fill:"currentColor"},null,-1)]))}const Dp=ve(kp,[["render",Np]]),Tp={},Ap={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ip(e,t){return o.openBlock(),o.createElementBlock("svg",Ap,t[0]||(t[0]=[o.createElementVNode("path",{d:"M21 7.64355C21 7.09127 21.4477 6.64355 22 6.64355C22.5523 6.64355 23 7.09127 23 7.64355V9.64355H25C25.5523 9.64355 26 10.0913 26 10.6436C26 11.1958 25.5523 11.6436 25 11.6436H23V13.6436C23 14.1958 22.5523 14.6436 22 14.6436C21.4477 14.6436 21 14.1958 21 13.6436V11.6436H19C18.4477 11.6436 18 11.1958 18 10.6436C18 10.0913 18.4477 9.64355 19 9.64355H21V7.64355ZM9 10.6436C9 10.0913 9.44772 9.64355 10 9.64355H16.164C16.7162 9.64355 17.164 9.19584 17.164 8.64355C17.164 8.09127 16.7162 7.64355 16.164 7.64355H10C8.34315 7.64355 7 8.9867 7 10.6436V22.8527C7 24.7723 9.0737 25.9757 10.7403 25.0233L15.035 22.5693C15.1861 22.4829 15.3571 22.4375 15.5311 22.4375H22C23.6569 22.4375 25 21.0944 25 19.4375V16.32C25 15.7677 24.5523 15.32 24 15.32C23.4477 15.32 23 15.7677 23 16.32V19.4375C23 19.9898 22.5523 20.4375 22 20.4375H15.5311C15.009 20.4375 14.496 20.5737 14.0427 20.8328L9.74807 23.2869C9.41474 23.4773 9 23.2366 9 22.8527V10.6436Z",fill:"currentColor"},null,-1)]))}const To=ve(Tp,[["render",Ip]]),Sp={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"},Op=["fill"],Lp=["fill"],Fp={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",Sp,[o.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,Op),o.createElementVNode("path",{fill:e.color,d:"M512.042667 213.333333v74.666667a224 224 0 1 1-195.626667 114.773333l-65.194667-36.394666A298.666667 298.666667 0 1 0 512.042667 213.333333z"},n[0]||(n[0]=[o.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 512 512",to:"360 512 512",dur:"1.5s",repeatCount:"indefinite",fill:"freeze"},null,-1)]),8,Lp)]))}},Pp={class:"om_wrap"},Mp={class:"om_quick"},Vp=["onClick"],Rp={class:"om_operate_box"},jp={class:"om_operate_wrap"},Bp={class:"file_list"},$p=["src"],zp={key:2,class:"process"},Up={class:"om_operate"},Hp=["placeholder"],qp={class:"btn_group"},Wp={class:"om_extra",style:{display:"none"}},Yp={class:"icon"},Gp={class:"text"},Xp={class:"om_ai_tips"},Zp="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Kp=ve({__name:"OperateModule",props:{modelValue:{type:String,default:""},token:{type:String,required:!0},tagList:{type:Array,required:!0},newChat:{type:Boolean,default:!1},defMsg:{type:Object,required:!0},isReq:{type:String,default:"00"}},emits:["update:modelValue","send","tag","call"],setup(e,{emit:t}){const n=[{name:"相冊",icon:dp,type:"photo"},{name:"文件",icon:gp,type:"file"}],i=o.ref(null),r=o.ref(null),a=o.ref(null),u=o.ref(!1),l=o.ref([]),s=e,c=t,f=o.computed(()=>({headers:{Authorization:`Bearer ${s.token}`,"Content-Type":"multipart/form-data"}}));o.watch(()=>s.modelValue,()=>{A()});const d=o.computed(()=>{switch(s.isReq){case"01":return{bg:"#fff",color:"#ccc"};case"02":return{bg:"#666",color:"#CDEBD7"};case"03":return{bg:"#ccc",color:"#fff"};case"04":return{bg:"#E5F4EB",color:"#fff"}}}),p=o.computed({get:()=>s.modelValue,set:R=>{c("update:modelValue",R),A()}});o.onMounted(()=>{A()}),o.onUnmounted(()=>{i.value&&(i.value.style.height="auto")});const g=R=>{p.value=R.target.value.replace(/^\n+|\n+$/g,"")},m=R=>{R.type==="upload"?_():c("tag",{...R})},E=()=>{if(!p.value)return;if(l.value.length&&l.value.findIndex(Q=>Q.percent<100)>-1){c("call",{message:s.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const R=[{content:p.value,text:p.value}];console.log("====== u file list =======",l.value),l.value.length&&(R.push({type:"object_string",content:l.value.map(Q=>({type:pe(Q.file_type),name:Q.file.name,file_id:Q.data.id,file_url:Q.file_url}))}),u.value=!1),c("send",[...R]),y()},w=R=>{const Q=R.target.files[0],q=new FileReader;q.onload=()=>previewUrl.value=q.result,q.readAsDataURL(Q)},D=()=>{r.value&&r.value.click()},k=R=>{const Q=R.target.files[0];console.log("=== file ===",R),Q&&(l.value.push({file:Q,file_type:Q.type,file_url:URL.createObjectURL(Q),size:(Q.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",l.value),h(l.value.length-1))},h=async R=>{const Q=l.value[R].file;console.log("========",Q),p.value||(p.value=s.defMsg.fileText);const q=new FormData;q.append("file",Q);const ie=new XMLHttpRequest;ie.open("POST","https://api.coze.cn/v1/files/upload"),ie.setRequestHeader("Authorization",f.value.headers.Authorization),ie.upload.onprogress=$e=>{if($e.lengthComputable){const M=Math.round($e.loaded/$e.total*100);console.log(`======进度======:${M}%`),l.value[R].percent=M}},ie.onreadystatechange=function(){if(console.log("============",ie),ie.readyState===XMLHttpRequest.DONE)if(ie.status===200){console.log("上传成功:",ie.responseText);const $e=JSON.parse(ie.response);l.value[R].data=$e.data}else console.error("上传失败:",ie.status)},ie.send(q)},_=()=>{y(!0),u.value=!0},x=()=>{y(!0),u.value=!1},y=(R=!1)=>{if(R)for(let Q=l.value.length-1;Q>=0;Q-=1)C(Q);r.value&&(r.value.value=""),l.value=[]},C=R=>{URL.revokeObjectURL(l.value[R].file_url),l.value.splice(R,1),r.value&&(r.value.value="")},T=()=>{c("call",{type:"new_chat"})},A=()=>{o.nextTick(()=>{i.value&&(i.value.style.height="auto",i.value.style.height=Math.min(i.value.scrollHeight,72)+"px")})},j=()=>{o.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},pe=R=>{if(R.includes("image"))return"image";if(R.includes("application"))return"file";if(R.includes("audio"))return"audio"},$=()=>{};return(R,Q)=>(o.openBlock(),o.createElementBlock("div",Pp,[o.createElementVNode("div",Mp,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tagList,q=>(o.openBlock(),o.createElementBlock("div",{class:"tag",key:q.value,onClick:o.withModifiers(ie=>m(q),["stop"])},[o.createVNode(lp,{class:"icon"}),o.createTextVNode(" "+o.toDisplayString(q.name),1)],8,Vp))),128))]),o.createElementVNode("div",Rp,[e.newChat?(o.openBlock(),o.createElementBlock("div",{key:0,class:"new_chat",onClick:o.withModifiers(T,["stop"])},[o.createVNode(To)])):o.createCommentVNode("",!0),o.createElementVNode("div",jp,[o.createElementVNode("div",{class:o.normalizeClass(["file_list_box",{hidden:!u.value}])},[o.createElementVNode("div",Bp,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(q,ie)=>(o.openBlock(),o.createElementBlock("div",{key:ie,class:"file_card"},[q.file_type.toLocaleLowerCase().includes("pdf")?(o.openBlock(),o.createElementBlock("img",{key:0,class:"pdf",src:Zp,width:"100%",alt:"img"})):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:q.file_url,width:"100%",alt:"img"},null,8,$p)),q.percent<100?(o.openBlock(),o.createElementBlock("div",zp,[o.createVNode(Do,{percent:q.percent},null,8,["percent"])])):(o.openBlock(),o.createBlock(Dp,{key:3,class:"close",onClick:o.withModifiers($e=>C(ie),["stop"])},null,8,["onClick"]))]))),128)),l.value.length<4?(o.openBlock(),o.createElementBlock("div",{key:0,class:"file_add",onClick:o.withModifiers(D,["stop"])},[o.createVNode(wp)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"file_close",onClick:o.withModifiers(x,["stop"])},[o.createVNode(vu)])])],2),o.createElementVNode("div",Up,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":Q[0]||(Q[0]=q=>p.value=q),ref_key:"txtEle",ref:i,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:g,onKeyup:o.withKeys(E,["enter"]),onFocus:j,onBlur:$},null,40,Hp),[[o.vModelText,p.value]]),o.createElementVNode("div",qp,[o.createElementVNode("div",{class:"btn",onClick:o.withModifiers(E,["stop"])},[e.isReq==="00"?(o.openBlock(),o.createBlock(R0,{key:0,style:o.normalizeStyle({color:p.value?"#039938":"#ccc"})},null,8,["style"])):(o.openBlock(),o.createBlock(Fp,{key:1,bg:d.value.bg,color:d.value.color},null,8,["bg","color"]))])])])])]),o.createElementVNode("div",Wp,[o.createElementVNode("input",{ref_key:"captureInput",ref:a,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:w},null,544),o.createElementVNode("input",{ref_key:"uploadInput",ref:r,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:k},null,544),(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,q=>o.createElementVNode("div",{key:q.type,class:"card",onClick:o.withModifiers(D,["stop"])},[o.createElementVNode("div",Yp,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(q.icon)))]),o.createElementVNode("div",Gp,o.toDisplayString(q.name),1)])),64)),o.createVNode(Do,{percent:15})]),o.createElementVNode("div",Xp,o.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-2044a301"]]),Jp={},Qp={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"};function eh(e,t){return o.openBlock(),o.createElementBlock("svg",Qp,t[0]||(t[0]=[o.createElementVNode("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"currentColor"},null,-1)]))}const th=ve(Jp,[["render",eh]]),nh={},ih={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function rh(e,t){return o.openBlock(),o.createElementBlock("svg",ih,t[0]||(t[0]=[o.createStaticVNode('<circle id="ballA" cx="220" cy="220" r="50" fill="rgba(0,0,0,0.8)" opacity="0.1"><animate attributeName="cx" values="220; 40; 220; 400; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="50; 80; 100; 80; 50" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="0.1; 0.6; 1; 0.6; 0.1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle><circle id="ballB" cx="220" cy="220" r="100" fill="rgba(0,0,0,0.8)" opacity="1"><animate attributeName="cx" values="220; 400; 220; 40; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="100; 80; 50; 80; 100" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="1; 0.6; 0.1; 0.6; 1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle>',2)]))}const ah=ve(nh,[["render",rh]]),uh=["src","alt"],oh="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",lh=ve({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,n=()=>{const r=t.list.filter(a=>a.type==="image"&&a.file_url);r.length&&bi({images:r.map(a=>a.file_url)})},i=({type:r,name:a,file_url:u})=>{console.log(t.list);let l=u;return r==="file"&&a.toLowerCase().endsWith("pdf")&&(l=oh),l};return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["img_wrap",e.list.length>1?"grid_2":"grid_1"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.list,u=>(o.openBlock(),o.createElementBlock("img",{key:u.file_id,class:"img",width:"100%",src:i(u),alt:u.name,onClick:o.withModifiers(n,["stop"])},null,8,uh))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),sh={},ch={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fh(e,t){return o.openBlock(),o.createElementBlock("svg",ch,t[0]||(t[0]=[o.createElementVNode("path",{d:"M18.3752 6.19542C18.3663 5.84188 18.0971 5.61907 17.7113 5.62719C17.3249 5.63532 17.1259 5.87105 17.0624 6.22473C17.0295 6.40814 17.0401 6.60002 17.0382 6.78818C17.0349 7.1092 17.0373 7.43028 17.0373 7.75135C16.9871 7.77411 16.9369 7.79688 16.8867 7.81966C16.7181 7.65766 16.5524 7.4926 16.3805 7.33415C14.8317 5.90621 12.9939 5.37461 10.9359 5.69056C8.03017 6.13662 5.87726 8.55583 5.62463 11.5758C5.38764 14.4087 7.21523 17.1459 9.95849 18.0667C12.7336 18.9982 15.8214 17.914 17.3822 15.4574C17.4827 15.2992 17.5871 15.1369 17.6484 14.962C17.7675 14.6224 17.7077 14.3062 17.3722 14.1247C17.049 13.9499 16.7426 14.0201 16.5131 14.3168C16.3983 14.4652 16.3111 14.6344 16.204 14.7891C15.2363 16.1865 13.907 16.9479 12.206 17.0308C9.92842 17.1419 7.84057 15.6645 7.17679 13.487C6.49124 11.238 7.43946 8.81484 9.46764 7.6327C11.4392 6.48354 13.9702 6.81332 15.5656 8.43366C15.6825 8.55231 15.7612 8.70851 15.9506 8.98094C15.3277 8.98094 14.8482 8.95558 14.3726 8.98836C13.9335 9.01865 13.7009 9.27998 13.7045 9.64685C13.708 10.0041 13.9569 10.2996 14.3795 10.31C15.4824 10.3371 16.5866 10.3273 17.6901 10.3155C18.0536 10.3117 18.3546 10.1036 18.3656 9.74431C18.4019 8.56213 18.4048 7.37778 18.3752 6.19542Z",fill:"currentColor"},[o.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1.5s",repeatCount:"indefinite"})],-1)]))}const dh=ve(sh,[["render",fh]]),ph={},hh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mh(e,t){return o.openBlock(),o.createElementBlock("svg",hh,t[0]||(t[0]=[o.createElementVNode("path",{d:"M3.78271 12C3.78271 13.0792 3.99526 14.1477 4.40822 15.1447C4.82118 16.1416 5.42646 17.0475 6.18951 17.8106C6.95256 18.5736 7.85843 19.1789 8.8554 19.5919C9.85238 20.0048 10.9209 20.2174 12 20.2174C13.0792 20.2174 14.1477 20.0048 15.1447 19.5919C16.1416 19.1789 17.0475 18.5736 17.8106 17.8106C18.5736 17.0475 19.1789 16.1416 19.5919 15.1447C20.0048 14.1477 20.2174 13.0792 20.2174 12C20.2174 10.9209 20.0048 9.85238 19.5919 8.8554C19.1789 7.85843 18.5736 6.95256 17.8106 6.18951C17.0475 5.42646 16.1416 4.82118 15.1447 4.40822C14.1477 3.99526 13.0792 3.78271 12 3.78271C10.9209 3.78271 9.85238 3.99526 8.8554 4.40822C7.85843 4.82118 6.95256 5.42646 6.18951 6.18951C5.42646 6.95256 4.82118 7.85843 4.40822 8.8554C3.99526 9.85238 3.78271 10.9209 3.78271 12Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M11.0677 14.4192L8.08502 11.4365C7.87938 11.2308 7.54542 11.2308 7.33978 11.4365C7.13414 11.6421 7.13414 11.9761 7.33978 12.1817L10.3225 15.1644C10.5281 15.3701 10.8621 15.3701 11.0677 15.1644C11.2751 14.9605 11.2751 14.6266 11.0677 14.4192Z",fill:"#fff"},null,-1),o.createElementVNode("path",{d:"M16.6693 8.84027C16.4636 8.63462 16.1297 8.63462 15.924 8.84027L10.456 14.31C10.2503 14.5157 10.2503 14.8496 10.456 15.0553C10.6616 15.2609 10.9956 15.2609 11.2012 15.0553L16.6693 9.58727C16.8767 9.37986 16.8767 9.04591 16.6693 8.84027Z",fill:"#fff"},null,-1)]))}const gh=ve(ph,[["render",mh]]),bh={class:"text"},_h=["onClick"],xh=ve({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,n=o.ref([]),i=o.computed(()=>{const a=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,u=[...t.content.matchAll(a)];let l=t.content,s=0;const c=[];return u.length?(u.forEach((f,d)=>{c.push({type:"text",content:f.input.slice(s,f.index).replace(a,"")}),c.push({type:"link",string:f[0],...JSON.parse(f[0].replace(a,'{"content":"[$1]","url":"$2"}'))}),l=f.input.slice(f.index).replace(f[0],""),s=f.index}),l.length&&c.push({type:"text",content:l})):c.push({type:"text",content:l}),c}),r=({url:a})=>{n.value=[a],bi({images:n.value})};return(a,u)=>(o.openBlock(),o.createElementBlock("p",bh,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(l,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:s},[l.type==="text"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(l.content),1)],64)):o.createCommentVNode("",!0),l.type==="link"?(o.openBlock(),o.createElementBlock("a",{key:1,class:"link",onClick:o.withModifiers(c=>r(l),["stop"])},o.toDisplayString(l.content),9,_h)):o.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),yh=e=>{bi({images:e})},vh={class:"name"},Eh={class:"address"},Ao="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",wh=ve({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n=e,i=t,r=()=>{i("select",{type:"chat",content:n.info.hpName,text:n.info.hpName})};return(a,u)=>(o.openBlock(),o.createElementBlock("div",{class:"sc_wrap",onClick:o.withModifiers(r,["stop"])},[o.createElementVNode("div",{class:"img",style:o.normalizeStyle({background:`url(${e.info.signUrl||Ao}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:u[0]||(u[0]=o.withModifiers(l=>o.unref(yh)([e.info.signUrl||Ao]),["stop"]))},null,4),o.createElementVNode("div",null,[o.createElementVNode("div",vh,o.toDisplayString(e.info.hpName),1),o.createElementVNode("div",Eh,o.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),kh={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const n=t,i=r=>{n("select",{...r})};return(r,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[a[0]||(a[0]=o.createElementVNode("div",null,"请选择一个门店",-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.list,u=>(o.openBlock(),o.createBlock(wh,{key:u.hpName,info:u,onSelect:i},null,8,["info"]))),128))],64))}},Io={};function Ch(e){let t=Io[e];if(t)return t;t=Io[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return t}function dn(e,t){typeof t!="string"&&(t=dn.defaultChars);const n=Ch(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let a=0,u=i.length;a<u;a+=3){const l=parseInt(i.slice(a+1,a+3),16);if(l<128){r+=n[l];continue}if((l&224)===192&&a+3<u){const s=parseInt(i.slice(a+4,a+6),16);if((s&192)===128){const c=l<<6&1984|s&63;c<128?r+="��":r+=String.fromCharCode(c),a+=3;continue}}if((l&240)===224&&a+6<u){const s=parseInt(i.slice(a+4,a+6),16),c=parseInt(i.slice(a+7,a+9),16);if((s&192)===128&&(c&192)===128){const f=l<<12&61440|s<<6&4032|c&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),a+=6;continue}}if((l&248)===240&&a+9<u){const s=parseInt(i.slice(a+4,a+6),16),c=parseInt(i.slice(a+7,a+9),16),f=parseInt(i.slice(a+10,a+12),16);if((s&192)===128&&(c&192)===128&&(f&192)===128){let d=l<<18&1835008|s<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),a+=9;continue}}r+="�"}return r})}dn.defaultChars=";/?:@&=+$,#",dn.componentChars="";const So={};function Nh(e){let t=So[e];if(t)return t;t=So[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Fn(e,t,n){typeof t!="string"&&(n=t,t=Fn.defaultChars),typeof n>"u"&&(n=!0);const i=Nh(t);let r="";for(let a=0,u=e.length;a<u;a++){const l=e.charCodeAt(a);if(n&&l===37&&a+2<u&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){r+=e.slice(a,a+3),a+=2;continue}if(l<128){r+=i[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&a+1<u){const s=e.charCodeAt(a+1);if(s>=56320&&s<=57343){r+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[a])}return r}Fn.defaultChars=";/?:@&=+$,-_.!~*'()#",Fn.componentChars="-_.!~*'()";function yr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function _i(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Dh=/^([a-z0-9.+-]+:)/i,Th=/:[0-9]*$/,Ah=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ih=["<",">",'"',"`"," ","\r",`
|
|
43
|
+
`," "],Sh=["{","}","|","\\","^","`"].concat(Ih),Oh=["'"].concat(Sh),Oo=["%","/","?",";","#"].concat(Oh),Lo=["/","?","#"],Lh=255,Fo=/^[+a-z0-9A-Z_-]{0,63}$/,Fh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Po={javascript:!0,"javascript:":!0},Mo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function vr(e,t){if(e&&e instanceof _i)return e;const n=new _i;return n.parse(e,t),n}_i.prototype.parse=function(e,t){let n,i,r,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const c=Ah.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let u=Dh.exec(a);if(u&&(u=u[0],n=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(t||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=a.substr(0,2)==="//",r&&!(u&&Po[u])&&(a=a.substr(2),this.slashes=!0)),!Po[u]&&(r||u&&!Mo[u])){let c=-1;for(let m=0;m<Lo.length;m++)i=a.indexOf(Lo[m]),i!==-1&&(c===-1||i<c)&&(c=i);let f,d;c===-1?d=a.lastIndexOf("@"):d=a.lastIndexOf("@",c),d!==-1&&(f=a.slice(0,d),a=a.slice(d+1),this.auth=f),c=-1;for(let m=0;m<Oo.length;m++)i=a.indexOf(Oo[m]),i!==-1&&(c===-1||i<c)&&(c=i);c===-1&&(c=a.length),a[c-1]===":"&&c--;const p=a.slice(0,c);a=a.slice(c),this.parseHost(p),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const m=this.hostname.split(/\./);for(let E=0,w=m.length;E<w;E++){const D=m[E];if(D&&!D.match(Fo)){let k="";for(let h=0,_=D.length;h<_;h++)D.charCodeAt(h)>127?k+="x":k+=D[h];if(!k.match(Fo)){const h=m.slice(0,E),_=m.slice(E+1),x=D.match(Fh);x&&(h.push(x[1]),_.unshift(x[2])),_.length&&(a=_.join(".")+a),this.hostname=h.join(".");break}}}}this.hostname.length>Lh&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=a.indexOf("#");l!==-1&&(this.hash=a.substr(l),a=a.slice(0,l));const s=a.indexOf("?");return s!==-1&&(this.search=a.substr(s),a=a.slice(0,s)),a&&(this.pathname=a),Mo[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},_i.prototype.parseHost=function(e){let t=Th.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Ph=Object.freeze(Object.defineProperty({__proto__:null,decode:dn,encode:Fn,format:yr,parse:vr},Symbol.toStringTag,{value:"Module"})),Vo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ro=/[\0-\x1F\x7F-\x9F]/,Mh=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Er=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,jo=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Bo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Vh=Object.freeze(Object.defineProperty({__proto__:null,Any:Vo,Cc:Ro,Cf:Mh,P:Er,S:jo,Z:Bo},Symbol.toStringTag,{value:"Module"})),Rh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),jh=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var wr;const Bh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),$h=(wr=String.fromCodePoint)!==null&&wr!==void 0?wr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function zh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Bh.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const Uh=32;var Ot;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ot||(Ot={}));function kr(e){return e>=Me.ZERO&&e<=Me.NINE}function Hh(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function qh(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||kr(e)}function Wh(e){return e===Me.EQUALS||qh(e)}var Ve;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ve||(Ve={}));var Lt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lt||(Lt={}));class Yh{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lt.Strict}startEntity(t){this.decodeMode=t,this.state=Ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ve.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=Ve.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ve.NamedEntity,this.stateNamedEntity(t,n));case Ve.NumericStart:return this.stateNumericStart(t,n);case Ve.NumericDecimal:return this.stateNumericDecimal(t,n);case Ve.NumericHex:return this.stateNumericHex(t,n);case Ve.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Uh)===Me.LOWER_X?(this.state=Ve.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ve.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,r){if(n!==i){const a=i-n;this.result=this.result*Math.pow(r,a)+parseInt(t.substr(n,a),r),this.consumed+=a}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(kr(r)||Hh(r))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(kr(r))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===Lt.Strict)return 0;return this.emitCodePoint(zh(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let r=i[this.treeIndex],a=(r&Ot.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=Gh(i,r,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===Lt.Attribute&&(a===0||Wh(u))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],a=(r&Ot.VALUE_LENGTH)>>14,a!==0){if(u===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Lt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,r=(i[n]&Ot.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~Ot.VALUE_LENGTH:r[t+1],i),n===3&&this.emitCodePoint(r[t+2],i),i}end(){var t;switch(this.state){case Ve.NamedEntity:return this.result!==0&&(this.decodeMode!==Lt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ve.NumericDecimal:return this.emitNumericEntity(0,2);case Ve.NumericHex:return this.emitNumericEntity(0,3);case Ve.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ve.EntityStart:return 0}}}function $o(e){let t="";const n=new Yh(e,i=>t+=$h(i));return function(r,a){let u=0,l=0;for(;(l=r.indexOf("&",l))>=0;){t+=r.slice(u,l),n.startEntity(a);const c=n.write(r,l+1);if(c<0){u=l+n.end();break}u=l+c,l=c===0?u+1:u}const s=t+r.slice(u);return t="",s}}function Gh(e,t,n,i){const r=(t&Ot.BRANCH_LENGTH)>>7,a=t&Ot.JUMP_TABLE;if(r===0)return a!==0&&i===a?n:-1;if(a){const s=i-a;return s<0||s>=r?-1:e[n+s]-1}let u=n,l=u+r-1;for(;u<=l;){const s=u+l>>>1,c=e[s];if(c<i)u=s+1;else if(c>i)l=s-1;else return e[s+r]}return-1}const Xh=$o(Rh);$o(jh);function zo(e,t=Lt.Legacy){return Xh(e,t)}function Zh(e){return Object.prototype.toString.call(e)}function Cr(e){return Zh(e)==="[object String]"}const Kh=Object.prototype.hasOwnProperty;function Jh(e,t){return Kh.call(e,t)}function xi(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(i){e[i]=n[i]})}}),e}function Uo(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Nr(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function yi(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Ho=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qh=/&([a-z#][a-z0-9]{1,31});/gi,em=new RegExp(Ho.source+"|"+Qh.source,"gi"),tm=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function nm(e,t){if(t.charCodeAt(0)===35&&tm.test(t)){const i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Nr(i)?yi(i):e}const n=zo(e);return n!==e?n:e}function im(e){return e.indexOf("\\")<0?e:e.replace(Ho,"$1")}function pn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(em,function(t,n,i){return n||nm(t,i)})}const rm=/[&<>"]/,am=/[&<>"]/g,um={"&":"&","<":"<",">":">",'"':"""};function om(e){return um[e]}function Ft(e){return rm.test(e)?e.replace(am,om):e}const lm=/[.?*+^$[\]\\(){}|-]/g;function sm(e){return e.replace(lm,"\\$&")}function ye(e){switch(e){case 9:case 32:return!0}return!1}function Pn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Mn(e){return Er.test(e)||jo.test(e)}function Vn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function vi(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const cm=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Uo,assign:xi,escapeHtml:Ft,escapeRE:sm,fromCodePoint:yi,has:Jh,isMdAsciiPunct:Vn,isPunctChar:Mn,isSpace:ye,isString:Cr,isValidEntityCode:Nr,isWhiteSpace:Pn,lib:{mdurl:Ph,ucmicro:Vh},normalizeReference:vi,unescapeAll:pn,unescapeMd:im},Symbol.toStringTag,{value:"Module"}));function fm(e,t,n){let i,r,a,u;const l=e.posMax,s=e.pos;for(e.pos=t+1,i=1;e.pos<l;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){r=!0;break}if(u=e.pos,e.md.inline.skipToken(e),a===91){if(u===e.pos-1)i++;else if(n)return e.pos=s,-1}}let c=-1;return r&&(c=e.pos),e.pos=s,c}function dm(e,t,n){let i,r=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(i=e.charCodeAt(r),i===10||i===60)return a;if(i===62)return a.pos=r+1,a.str=pn(e.slice(t+1,r)),a.ok=!0,a;if(i===92&&r+1<n){r+=2;continue}r++}return a}let u=0;for(;r<n&&(i=e.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(u++,u>32))return a;if(i===41){if(u===0)break;u--}r++}return t===r||u!==0||(a.str=pn(e.slice(t,r)),a.pos=r,a.ok=!0),a}function pm(e,t,n,i){let r,a=t;const u={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)u.str=i.str,u.marker=i.marker;else{if(a>=n)return u;let l=e.charCodeAt(a);if(l!==34&&l!==39&&l!==40)return u;t++,a++,l===40&&(l=41),u.marker=l}for(;a<n;){if(r=e.charCodeAt(a),r===u.marker)return u.pos=a+1,u.str+=pn(e.slice(t,a)),u.ok=!0,u;if(r===40&&u.marker===41)return u;r===92&&a+1<n&&a++,a++}return u.can_continue=!0,u.str+=pn(e.slice(t,a)),u}const hm=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:dm,parseLinkLabel:fm,parseLinkTitle:pm},Symbol.toStringTag,{value:"Module"})),gt={};gt.code_inline=function(e,t,n,i,r){const a=e[t];return"<code"+r.renderAttrs(a)+">"+Ft(a.content)+"</code>"},gt.code_block=function(e,t,n,i,r){const a=e[t];return"<pre"+r.renderAttrs(a)+"><code>"+Ft(e[t].content)+`</code></pre>
|
|
44
|
+
`},gt.fence=function(e,t,n,i,r){const a=e[t],u=a.info?pn(a.info).trim():"";let l="",s="";if(u){const f=u.split(/(\s+)/g);l=f[0],s=f.slice(2).join("")}let c;if(n.highlight?c=n.highlight(a.content,l,s)||Ft(a.content):c=Ft(a.content),c.indexOf("<pre")===0)return c+`
|
|
45
|
+
`;if(u){const f=a.attrIndex("class"),d=a.attrs?a.attrs.slice():[];f<0?d.push(["class",n.langPrefix+l]):(d[f]=d[f].slice(),d[f][1]+=" "+n.langPrefix+l);const p={attrs:d};return`<pre><code${r.renderAttrs(p)}>${c}</code></pre>
|
|
46
|
+
`}return`<pre><code${r.renderAttrs(a)}>${c}</code></pre>
|
|
47
|
+
`},gt.image=function(e,t,n,i,r){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=r.renderInlineAsText(a.children,n,i),r.renderToken(e,t,n)},gt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
39
48
|
`:`<br>
|
|
40
|
-
`},
|
|
49
|
+
`},gt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
41
50
|
`:`<br>
|
|
42
51
|
`:`
|
|
43
|
-
`},
|
|
44
|
-
`),
|
|
45
|
-
`:">",
|
|
46
|
-
`;break}return
|
|
47
|
-
`),t=t.replace(p2,"�"),e.src=t}function g2(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function b2(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function E2(e){return/^<a[>\s]/i.test(e)}function y2(e){return/^<\/a\s*>/i.test(e)}function k2(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let a=r.length-1;a>=0;a--){const s=r[a];if(s.type==="link_close"){for(a--;r[a].level!==s.level&&r[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(E2(s.content)&&o>0&&o--,y2(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let c=e.md.linkify.match(l);const f=[];let d=s.level,h=0;c.length>0&&c[0].index===0&&a>0&&r[a-1].type==="text_special"&&(c=c.slice(1));for(let _=0;_<c.length;_++){const p=c[_].url,x=e.md.normalizeLink(p);if(!e.md.validateLink(x))continue;let C=c[_].text;c[_].schema?c[_].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");const D=c[_].index;if(D>h){const E=new e.Token("text","",0);E.content=l.slice(h,D),E.level=d,f.push(E)}const v=new e.Token("link_open","a",1);v.attrs=[["href",x]],v.level=d++,v.markup="linkify",v.info="auto",f.push(v);const m=new e.Token("text","",0);m.content=C,m.level=d,f.push(m);const b=new e.Token("link_close","a",-1);b.level=--d,b.markup="linkify",b.info="auto",f.push(b),h=c[_].lastIndex}if(h<l.length){const _=new e.Token("text","",0);_.content=l.slice(h),_.level=d,f.push(_)}t[n].children=r=zi(r,a,f)}}}}const qi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,x2=/\((c|tm|r)\)/i,C2=/\((c|tm|r)\)/ig,v2={c:"©",r:"®",tm:"™"};function w2(e,t){return v2[t.toLowerCase()]}function N2(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(C2,w2)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function D2(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&qi.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function T2(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(x2.test(e.tokens[t].content)&&N2(e.tokens[t].children),qi.test(e.tokens[t].content)&&D2(e.tokens[t].children))}const A2=/['"]/,Wi=/['"]/g,Yi="’";function xu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function I2(e,t){let n;const u=[];for(let r=0;r<e.length;r++){const o=e[r],a=e[r].level;for(n=u.length-1;n>=0&&!(u[n].level<=a);n--);if(u.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){Wi.lastIndex=l;const f=Wi.exec(s);if(!f)break;let d=!0,h=!0;l=f.index+1;const _=f[0]==="'";let p=32;if(f.index-1>=0)p=s.charCodeAt(f.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(l<c)x=s.charCodeAt(l);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const C=Vn(p)||Mn(String.fromCharCode(p)),D=Vn(x)||Mn(String.fromCharCode(x)),v=Pn(p),m=Pn(x);if(m?d=!1:D&&(v||C||(d=!1)),v?h=!1:C&&(m||D||(h=!1)),x===34&&f[0]==='"'&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=C,h=D),!d&&!h){_&&(o.content=xu(o.content,f.index,Yi));continue}if(h)for(n=u.length-1;n>=0;n--){let b=u[n];if(u[n].level<a)break;if(b.single===_&&u[n].level===a){b=u[n];let E,y;_?(E=t.md.options.quotes[2],y=t.md.options.quotes[3]):(E=t.md.options.quotes[0],y=t.md.options.quotes[1]),o.content=xu(o.content,f.index,y),e[b.token].content=xu(e[b.token].content,b.pos,E),l+=y.length-1,b.token===r&&(l+=E.length-1),s=o.content,c=s.length,u.length=n;continue e}}d?u.push({token:r,pos:f.index,single:_,level:a}):h&&_&&(o.content=xu(o.content,f.index,Yi))}}}function S2(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!A2.test(e.tokens[t].content)||I2(e.tokens[t].children,e)}function O2(e){let t,n;const u=e.tokens,r=u.length;for(let o=0;o<r;o++){if(u[o].type!=="inline")continue;const a=u[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const Dr=[["normalize",_2],["block",g2],["inline",b2],["linkify",k2],["replacements",T2],["smartquotes",S2],["text_join",O2]];function Tr(){this.ruler=new Ge;for(let e=0;e<Dr.length;e++)this.ruler.push(Dr[e][0],Dr[e][1])}Tr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)},Tr.prototype.State=Hi;function gt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,a=0,s=0,l=0,c=r.length,f=!1;a<c;a++){const d=r.charCodeAt(a);if(!f)if(ye(d)){s++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}gt.prototype.push=function(e,t,n){const u=new ft(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u},gt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},gt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},gt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ye(u))break}return t},gt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ye(this.src.charCodeAt(--t)))return t+1;return t},gt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t},gt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t},gt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const o=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const c=this.bMarks[s];let f=c,d;for(s+1<n||r?d=this.eMarks[s]+1:d=this.eMarks[s];f<d&&l<u;){const h=this.src.charCodeAt(f);if(ye(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-c<this.tShift[s])l++;else break;f++}l>u?o[a]=new Array(l-u+1).join(" ")+this.src.slice(f,d):o[a]=this.src.slice(f,d)}return o.join("")},gt.prototype.Token=ft;const L2=65536;function Ar(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Gi(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),o=!1,a=0,s="";for(;u<n;)r===124&&(o?(s+=e.substring(a,u-1),a=u):(t.push(s+e.substring(a,u)),s="",a=u+1)),o=r===92,u++,r=e.charCodeAt(u);return t.push(s+e.substring(a)),t}function F2(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[r])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!ye(s)||a===45&&ye(s))return!1;for(;o<e.eMarks[r];){const b=e.src.charCodeAt(o);if(b!==124&&b!==45&&b!==58&&!ye(b))return!1;o++}let l=Ar(e,t+1),c=l.split("|");const f=[];for(let b=0;b<c.length;b++){const E=c[b].trim();if(!E){if(b===0||b===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?f.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Ar(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Gi(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const _=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),x=[t,0];p.map=x;const C=e.push("thead_open","thead",1);C.map=[t,t+1];const D=e.push("tr_open","tr",1);D.map=[t,t+1];for(let b=0;b<c.length;b++){const E=e.push("th_open","th",1);f[b]&&(E.attrs=[["style","text-align:"+f[b]]]);const y=e.push("inline","",0);y.content=c[b].trim(),y.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,m=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let b=!1;for(let y=0,w=_.length;y<w;y++)if(_[y](e,r,n,!0)){b=!0;break}if(b||(l=Ar(e,r).trim(),!l)||e.sCount[r]-e.blkIndent>=4||(c=Gi(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),m+=d-c.length,m>L2))break;if(r===t+2){const y=e.push("tbody_open","tbody",1);y.map=v=[t+2,0]}const E=e.push("tr_open","tr",1);E.map=[r,r+1];for(let y=0;y<d;y++){const w=e.push("td_open","td",1);f[y]&&(w.attrs=[["style","text-align:"+f[y]]]);const T=e.push("inline","",0);T.content=c[y]?c[y].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=r),e.push("table_close","table",-1),x[1]=r,e.parentType=h,e.line=r,!0}function P2(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
48
|
-
`,o.map=[t,e.line],!0}function M2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>o)return!1;const a=e.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let s=r;r=e.skipChars(r,a);let l=r-s;if(l<3)return!1;const c=e.src.slice(s,r),f=e.src.slice(r,o);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(u)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],r<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,a),!(r-s<l)&&(r=e.skipSpaces(r),!(r<o)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const _=e.push("fence","code",0);return _.info=f,_.content=e.getLines(t+1,d,l,!0),_.markup=c,_.map=[t,e.line],!0}function V2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const s=[],l=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let _=!1,p;for(p=t;p<n;p++){const m=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],r>=o)break;if(e.src.charCodeAt(r++)===62&&!m){let E=e.sCount[p]+1,y,w;e.src.charCodeAt(r)===32?(r++,E++,w=!1,y=!0):e.src.charCodeAt(r)===9?(y=!0,(e.bsCount[p]+E)%4===3?(r++,E++,w=!1):w=!0):y=!1;let T=E;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<o;){const A=e.src.charCodeAt(r);if(ye(A))A===9?T+=4-(T+e.bsCount[p]+(w?1:0))%4:T++;else break;r++}_=r>=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(y?1:0),c.push(e.sCount[p]),e.sCount[p]=T-E,f.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(_)break;let b=!1;for(let E=0,y=d.length;E<y;E++)if(d[E](e,p,n,!0)){b=!0;break}if(b){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const x=e.blkIndent;e.blkIndent=0;const C=e.push("blockquote_open","blockquote",1);C.markup=">";const D=[t,0];C.map=D,e.md.block.tokenize(e,t,p);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=a,e.parentType=h,D[1]=e.line;for(let m=0;m<f.length;m++)e.bMarks[m+t]=s[m],e.tShift[m+t]=f[m],e.sCount[m+t]=c[m],e.bsCount[m+t]=l[m];return e.blkIndent=x,!0}function R2(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<r;){const c=e.src.charCodeAt(o++);if(c!==a&&!ye(c))return!1;c===a&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Xi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const o=e.src.charCodeAt(u);if(!ye(o))return-1}return u}function Zi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=u)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<u&&(o=e.src.charCodeAt(r),!ye(o))?-1:r}function B2(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function $2(e,t,n,u){let r,o,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let d,h,_;if((_=Zi(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,_-1)),f&&h!==1)return!1}else if((_=Xi(e,l))>=0)d=!1;else return!1;if(f&&e.skipSpaces(_)>=e.eMarks[l])return!1;if(u)return!0;const p=e.src.charCodeAt(_-1),x=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const C=[l,0];s.map=C,s.markup=String.fromCharCode(p);let D=!1;const v=e.md.block.ruler.getRules("list"),m=e.parentType;for(e.parentType="list";l<n;){o=_,r=e.eMarks[l];const b=e.sCount[l]+_-(e.bMarks[l]+e.tShift[l]);let E=b;for(;o<r;){const q=e.src.charCodeAt(o);if(q===9)E+=4-(E+e.bsCount[l])%4;else if(q===32)E++;else break;o++}const y=o;let w;y>=r?w=1:w=E-b,w>4&&(w=1);const T=b+w;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const A=[l,0];s.map=A,d&&(s.info=e.src.slice(a,_-1));const B=e.tight,he=e.tShift[l],U=e.sCount[l],R=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[l]=y-e.bMarks[l],e.sCount[l]=E,y>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||D)&&(c=!1),D=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[l]=he,e.sCount[l]=U,e.tight=B,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),l=e.line,A[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let Q=!1;for(let q=0,ue=v.length;q<ue;q++)if(v[q](e,l,n,!0)){Q=!0;break}if(Q)break;if(d){if(_=Zi(e,l),_<0)break;a=e.bMarks[l]+e.tShift[l]}else if(_=Xi(e,l),_<0)break;if(p!==e.src.charCodeAt(_-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),C[1]=l,e.line=l,e.parentType=m,c&&B2(e,x),!0}function U2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(v){const m=e.lineMax;if(v>=m||e.isEmpty(v))return null;let b=!1;if(e.sCount[v]-e.blkIndent>3&&(b=!0),e.sCount[v]<0&&(b=!0),!b){const w=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let A=!1;for(let B=0,he=w.length;B<he;B++)if(w[B](e,v,m,!0)){A=!0;break}if(e.parentType=T,A)return null}const E=e.bMarks[v]+e.tShift[v],y=e.eMarks[v];return e.src.slice(E,y+1)}let l=e.src.slice(r,o+1);o=l.length;let c=-1;for(r=1;r<o;r++){const v=l.charCodeAt(r);if(v===91)return!1;if(v===93){c=r;break}else if(v===10){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}else if(v===92&&(r++,r<o&&l.charCodeAt(r)===10)){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<o;r++){const v=l.charCodeAt(r);if(v===10){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}else if(!ye(v))break}const f=e.md.helpers.parseLinkDestination(l,r,o);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const h=r,_=a,p=r;for(;r<o;r++){const v=l.charCodeAt(r);if(v===10){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}else if(!ye(v))break}let x=e.md.helpers.parseLinkTitle(l,r,o);for(;x.can_continue;){const v=s(a);if(v===null)break;l+=v,r=o,o=l.length,a++,x=e.md.helpers.parseLinkTitle(l,r,o,x)}let C;for(r<o&&p!==r&&x.ok?(C=x.str,r=x.pos):(C="",r=h,a=_);r<o;){const v=l.charCodeAt(r);if(!ye(v))break;r++}if(r<o&&l.charCodeAt(r)!==10&&C)for(C="",r=h,a=_;r<o;){const v=l.charCodeAt(r);if(!ye(v))break;r++}if(r<o&&l.charCodeAt(r)!==10)return!1;const D=ku(l.slice(1,c));return D?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[D]>"u"&&(e.env.references[D]={title:C,href:d}),e.line=a),!0):!1}const z2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],j2="[a-zA-Z_:][a-zA-Z0-9:._-]*",H2="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ki="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+j2+"(?:\\s*=\\s*"+H2+")?)")+"*\\s*\\/?>",Ji="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",q2="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",W2="<[?][\\s\\S]*?[?]>",Y2="<![A-Za-z][^>]*>",G2="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",X2=new RegExp("^(?:"+Ki+"|"+Ji+"|"+q2+"|"+W2+"|"+Y2+"|"+G2+")"),Z2=new RegExp("^(?:"+Ki+"|"+Ji+")"),pn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+z2.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Z2.source+"\\s*$"),/^$/,!1]];function K2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let a=e.src.slice(r,o),s=0;for(;s<pn.length&&!pn[s][0].test(a);s++);if(s===pn.length)return!1;if(u)return pn[s][2];let l=t+1;if(!pn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(r=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(r,o),pn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function J2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(a!==35||r>=o)return!1;let s=1;for(a=e.src.charCodeAt(++r);a===35&&r<o&&s<=6;)s++,a=e.src.charCodeAt(++r);if(s>6||r<o&&!ye(a))return!1;if(u)return!0;o=e.skipSpacesBack(o,r);const l=e.skipCharsBack(o,35,r);l>r&&ye(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,o).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function Q2(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let _=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(_<p&&(a=e.src.charCodeAt(_),(a===45||a===61)&&(_=e.skipChars(_,a),_=e.skipSpaces(_),_>=p))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let _=0,p=u.length;_<p;_++)if(u[_](e,s,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(a),e.parentType=r,!0}function ep(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let f=0,d=u.length;f<d;f++)if(u[f](e,o,n,!0)){c=!0;break}if(c)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const Cu=[["table",F2,["paragraph","reference"]],["code",P2],["fence",M2,["paragraph","reference","blockquote","list"]],["blockquote",V2,["paragraph","reference","blockquote","list"]],["hr",R2,["paragraph","reference","blockquote","list"]],["list",$2,["paragraph","reference","blockquote"]],["reference",U2],["html_block",K2,["paragraph","reference","blockquote"]],["heading",J2,["paragraph","reference","blockquote"]],["lheading",Q2],["paragraph",ep]];function vu(){this.ruler=new Ge;for(let e=0;e<Cu.length;e++)this.ruler.push(Cu[e][0],Cu[e][1],{alt:(Cu[e][2]||[]).slice()})}vu.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let f=0;f<r;f++)if(c=u[f](e,a,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},vu.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)},vu.prototype.State=gt;function Rn(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Rn.prototype.pushPending=function(){const e=new ft("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Rn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new ft(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u},Rn.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===u;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=Vn(r)||Mn(String.fromCharCode(r)),c=Vn(s)||Mn(String.fromCharCode(s)),f=Pn(r),d=Pn(s),h=!d&&(!c||f||l),_=!f&&(!l||d||c);return{can_open:h&&(t||!_||l),can_close:_&&(t||!h||c),length:a}},Rn.prototype.Token=ft;function tp(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function np(e,t){let n=e.pos;for(;n<e.posMax&&!tp(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const up=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function rp(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(up);if(!r)return!1;const o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-o.length,!0}function op(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let o=u-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&ye(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ir=[];for(let e=0;e<256;e++)Ir.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ir[e.charCodeAt(0)]=1});function ap(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!ye(r));)n++;return e.pos=n,!0}let o=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);r<256&&Ir[r]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function ip(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(r,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=a),e.pos+=s,!0;let l=n,c;for(;(c=e.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-c;if(f===s){if(!t){const d=e.push("code_inline","code",0);d.markup=a,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function sp(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const a=String.fromCharCode(u);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Qi(e,t){let n;const u=[],r=t.length;for(let o=0;o<r;o++){const a=t[o];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const o=u.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function lp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Qi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Qi(e,t[u].delimiters)}const es={tokenize:sp,postProcess:lp};function cp(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let o=0;o<r.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function ts(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=t[r.end],a=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const c=e.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function fp(e){const t=e.tokens_meta,n=e.tokens_meta.length;ts(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&ts(e,t[u].delimiters)}const ns={tokenize:cp,postProcess:fp};function dp(e,t){let n,u,r,o,a="",s="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,_=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(_<0)return!1;let p=_+1;if(p<d&&e.src.charCodeAt(p)===40){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),!(!ye(n)&&n!==10));p++);if(p>=d)return!1;if(l=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?p=r.pos:a="",l=p;p<d&&(n=e.src.charCodeAt(p),!(!ye(n)&&n!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&r.ok)for(s=r.str,p=r.pos;p<d&&(n=e.src.charCodeAt(p),!(!ye(n)&&n!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?u=e.src.slice(l,p++):p=_+1):p=_+1,u||(u=e.src.slice(h,_)),o=e.env.references[ku(u)],!o)return e.pos=f,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=_;const x=e.push("link_open","a",1),C=[["href",a]];x.attrs=C,s&&C.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function hp(e,t){let n,u,r,o,a,s,l,c,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const _=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(o=p+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!ye(n)&&n!==10));o++);if(o>=h)return!1;for(c=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),c=o;o<h&&(n=e.src.charCodeAt(o),!(!ye(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<h&&(n=e.src.charCodeAt(o),!(!ye(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(c,o++):o=p+1):o=p+1,r||(r=e.src.slice(_,p)),a=e.env.references[ku(r)],!a)return e.pos=d,!1;f=a.href,l=a.title}if(!t){u=e.src.slice(_,p);const x=[];e.md.inline.parse(u,e.md,e.env,x);const C=e.push("image","img",0),D=[["src",f],["alt",""]];C.attrs=D,C.children=x,C.content=u,l&&D.push(["title",l])}return e.pos=o,e.posMax=h,!0}const mp=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,pp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function _p(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(u+1,n);if(pp.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(mp.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function gp(e){return/^<a[>\s]/i.test(e)}function bp(e){return/^<\/a\s*>/i.test(e)}function Ep(e){const t=e|32;return t>=97&&t<=122}function yp(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!Ep(r))return!1;const o=e.src.slice(u).match(X2);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],gp(a.content)&&e.linkLevel++,bp(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const kp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xp=/^&([a-z][a-z0-9]{1,31});/i;function Cp(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(kp);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Nr(a)?yu(a):yu(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(xp);if(o){const a=Ui(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function us(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[u].marker!==s.marker||r!==s.token-1)&&(u=a),r=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let c=u-o[u]-1,f=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let h=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(h=!0),!h){const _=c>0&&!e[c-1].open?o[c-1]+1:0;o[a]=a-c+_,o[c]=_,s.open=!1,d.end=a,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function vp(e){const t=e.tokens_meta,n=e.tokens_meta.length;us(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&us(t[u].delimiters)}function wp(e){let t,n,u=0;const r=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const Sr=[["text",np],["linkify",rp],["newline",op],["escape",ap],["backticks",ip],["strikethrough",es.tokenize],["emphasis",ns.tokenize],["link",dp],["image",hp],["autolink",_p],["html_inline",yp],["entity",Cp]],Or=[["balance_pairs",vp],["strikethrough",es.postProcess],["emphasis",ns.postProcess],["fragments_join",wp]];function Bn(){this.ruler=new Ge;for(let e=0;e<Sr.length;e++)this.ruler.push(Sr[e][0],Sr[e][1]);this.ruler2=new Ge;for(let e=0;e<Or.length;e++)this.ruler2.push(Or[e][0],Or[e][1])}Bn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<r){for(let s=0;s<u;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Bn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const o=e.pos;let a=!1;if(e.level<r){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Bn.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](r)},Bn.prototype.State=Rn;function Np(e){const t={};e=e||{},t.src_Any=Mi.source,t.src_Cc=Vi.source,t.src_Z=Bi.source,t.src_P=xr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Lr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function wu(e){return Object.prototype.toString.call(e)}function Dp(e){return wu(e)==="[object String]"}function Tp(e){return wu(e)==="[object Object]"}function Ap(e){return wu(e)==="[object RegExp]"}function rs(e){return wu(e)==="[object Function]"}function Ip(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const os={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Sp(e){return Object.keys(e||{}).reduce(function(t,n){return t||os.hasOwnProperty(n)},!1)}const Op={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},Lp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Fp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Pp(e){e.__index__=-1,e.__text_cache__=""}function Mp(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function as(){return function(e,t){t.normalize(e)}}function Nu(e){const t=e.re=Np(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Lp),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[s]=c,Tp(l)){Ap(l.validate)?c.validate=Mp(l.validate):rs(l.validate)?c.validate=l.validate:o(s,l),rs(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=as();return}if(Dp(l)){r.push(s);return}o(s,l)}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:as()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Ip).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Pp(e)}function Vp(e,t){const n=e.__index__,u=e.__last_index__,r=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=r,this.text=r,this.url=r}function Fr(e,t){const n=new Vp(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||Sp(e)&&(t=e,e={}),this.__opts__=Lr({},os,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Lr({},Op,e),this.__compiled__={},this.__tlds__=Fp,this.__tlds_replaced__=!1,this.re={},Nu(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Nu(this),this},Ke.prototype.set=function(t){return this.__opts__=Lr(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,r,o,a,s,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=u.index+u[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0},Ke.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Fr(this,u)),u=this.__last_index__);let r=u?t.slice(u):t;for(;this.test(r);)n.push(Fr(this,u)),r=r.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null},Ke.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,Fr(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,o){return u!==o[r-1]}).reverse(),Nu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Nu(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const _n=2147483647,bt=36,Pr=1,$n=26,Rp=38,Bp=700,is=72,ss=128,ls="-",$p=/^xn--/,Up=/[^\0-\x7F]/,zp=/[\x2E\u3002\uFF0E\uFF61]/g,jp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mr=bt-Pr,Et=Math.floor,Vr=String.fromCharCode;function Pt(e){throw new RangeError(jp[e])}function Hp(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function cs(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(zp,".");const r=e.split("."),o=Hp(r,t).join(".");return u+o}function fs(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const qp=e=>String.fromCodePoint(...e),Wp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:bt},ds=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},hs=function(e,t,n){let u=0;for(e=n?Et(e/Bp):e>>1,e+=Et(e/t);e>Mr*$n>>1;u+=bt)e=Et(e/Mr);return Et(u+(Mr+1)*e/(e+Rp))},ms=function(e){const t=[],n=e.length;let u=0,r=ss,o=is,a=e.lastIndexOf(ls);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Pt("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=u;for(let f=1,d=bt;;d+=bt){s>=n&&Pt("invalid-input");const h=Wp(e.charCodeAt(s++));h>=bt&&Pt("invalid-input"),h>Et((_n-u)/f)&&Pt("overflow"),u+=h*f;const _=d<=o?Pr:d>=o+$n?$n:d-o;if(h<_)break;const p=bt-_;f>Et(_n/p)&&Pt("overflow"),f*=p}const c=t.length+1;o=hs(u-l,c,l==0),Et(u/c)>_n-r&&Pt("overflow"),r+=Et(u/c),u%=c,t.splice(u++,0,r)}return String.fromCodePoint(...t)},ps=function(e){const t=[];e=fs(e);const n=e.length;let u=ss,r=0,o=is;for(const l of e)l<128&&t.push(Vr(l));const a=t.length;let s=a;for(a&&t.push(ls);s<n;){let l=_n;for(const f of e)f>=u&&f<l&&(l=f);const c=s+1;l-u>Et((_n-r)/c)&&Pt("overflow"),r+=(l-u)*c,u=l;for(const f of e)if(f<u&&++r>_n&&Pt("overflow"),f===u){let d=r;for(let h=bt;;h+=bt){const _=h<=o?Pr:h>=o+$n?$n:h-o;if(d<_)break;const p=d-_,x=bt-_;t.push(Vr(ds(_+p%x,0))),d=Et(p/x)}t.push(Vr(ds(d,0))),o=hs(r,c,s===a),r=0,++s}++r,++u}return t.join("")},_s={version:"2.3.1",ucs2:{decode:fs,encode:qp},decode:ms,encode:ps,toASCII:function(e){return cs(e,function(t){return Up.test(t)?"xn--"+ps(t):t})},toUnicode:function(e){return cs(e,function(t){return $p.test(t)?ms(t.slice(4).toLowerCase()):t})}},Yp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Gp=/^(vbscript|javascript|file|data):/,Xp=/^data:image\/(gif|png|jpeg|webp);/;function Zp(e){const t=e.trim().toLowerCase();return Gp.test(t)?Xp.test(t):!0}const gs=["http:","https:","mailto:"];function Kp(e){const t=kr(e,!0);if(t.hostname&&(!t.protocol||gs.indexOf(t.protocol)>=0))try{t.hostname=_s.toASCII(t.hostname)}catch{}return Fn(yr(t))}function Jp(e){const t=kr(e,!0);if(t.hostname&&(!t.protocol||gs.indexOf(t.protocol)>=0))try{t.hostname=_s.toUnicode(t.hostname)}catch{}return dn(yr(t),dn.defaultChars+"%")}function ut(e,t){if(!(this instanceof ut))return new ut(e,t);t||wr(e)||(t=e||{},e="default"),this.inline=new Bn,this.block=new vu,this.core=new Tr,this.renderer=new mn,this.linkify=new Ke,this.validateLink=Zp,this.normalizeLink=Kp,this.normalizeLinkText=Jp,this.utils=l2,this.helpers=Eu({},h2),this.options={},this.configure(e),t&&this.set(t)}ut.prototype.set=function(e){return Eu(this.options,e),this},ut.prototype.configure=function(e){const t=this;if(wr(e)){const n=e;if(e=Yp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},ut.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this},ut.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this},ut.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},ut.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},ut.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},ut.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},ut.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Qp=["innerHTML"],e_={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
|
|
52
|
+
`},gt.text=function(e,t){return Ft(e[t].content)},gt.html_block=function(e,t){return e[t].content},gt.html_inline=function(e,t){return e[t].content};function hn(){this.rules=xi({},gt)}hn.prototype.renderAttrs=function(t){let n,i,r;if(!t.attrs)return"";for(r="",n=0,i=t.attrs.length;n<i;n++)r+=" "+Ft(t.attrs[n][0])+'="'+Ft(t.attrs[n][1])+'"';return r},hn.prototype.renderToken=function(t,n,i){const r=t[n];let a="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(a+=`
|
|
53
|
+
`),a+=(r.nesting===-1?"</":"<")+r.tag,a+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(a+=" /");let u=!1;if(r.block&&(u=!0,r.nesting===1&&n+1<t.length)){const l=t[n+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===r.tag)&&(u=!1)}return a+=u?`>
|
|
54
|
+
`:">",a},hn.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let a=0,u=e.length;a<u;a++){const l=e[a].type;typeof r[l]<"u"?i+=r[l](e,a,t,n,this):i+=this.renderToken(e,a,t)}return i},hn.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,a=e.length;r<a;r++)switch(e[r].type){case"text":i+=e[r].content;break;case"image":i+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":i+=e[r].content;break;case"softbreak":case"hardbreak":i+=`
|
|
55
|
+
`;break}return i},hn.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let a=0,u=e.length;a<u;a++){const l=e[a].type;l==="inline"?i+=this.renderInline(e[a].children,t,n):typeof r[l]<"u"?i+=r[l](e,a,t,n,this):i+=this.renderToken(e,a,t,n)}return i};function Ge(){this.__rules__=[],this.__cache__=null}Ge.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Ge.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){t.indexOf(i)<0&&t.push(i)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||e.__cache__[n].push(i.fn))})})},Ge.prototype.at=function(e,t,n){const i=this.__find__(e),r=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null},Ge.prototype.before=function(e,t,n,i){const r=this.__find__(e),a=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Ge.prototype.after=function(e,t,n,i){const r=this.__find__(e),a=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Ge.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},Ge.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!0,n.push(i)},this),this.__cache__=null,n},Ge.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},Ge.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!1,n.push(i)},this),this.__cache__=null,n},Ge.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ft(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ft.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,r=n.length;i<r;i++)if(n[i][0]===t)return i;return-1},ft.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},ft.prototype.attrSet=function(t,n){const i=this.attrIndex(t),r=[t,n];i<0?this.attrPush(r):this.attrs[i]=r},ft.prototype.attrGet=function(t){const n=this.attrIndex(t);let i=null;return n>=0&&(i=this.attrs[n][1]),i},ft.prototype.attrJoin=function(t,n){const i=this.attrIndex(t);i<0?this.attrPush([t,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};function qo(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}qo.prototype.Token=ft;const mm=/\r\n?|\n/g,gm=/\0/g;function bm(e){let t;t=e.src.replace(mm,`
|
|
56
|
+
`),t=t.replace(gm,"�"),e.src=t}function _m(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function xm(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function ym(e){return/^<a[>\s]/i.test(e)}function vm(e){return/^<\/a\s*>/i.test(e)}function Em(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,i=t.length;n<i;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,a=0;for(let u=r.length-1;u>=0;u--){const l=r[u];if(l.type==="link_close"){for(u--;r[u].level!==l.level&&r[u].type!=="link_open";)u--;continue}if(l.type==="html_inline"&&(ym(l.content)&&a>0&&a--,vm(l.content)&&a++),!(a>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const s=l.content;let c=e.md.linkify.match(s);const f=[];let d=l.level,p=0;c.length>0&&c[0].index===0&&u>0&&r[u-1].type==="text_special"&&(c=c.slice(1));for(let g=0;g<c.length;g++){const m=c[g].url,E=e.md.normalizeLink(m);if(!e.md.validateLink(E))continue;let w=c[g].text;c[g].schema?c[g].schema==="mailto:"&&!/^mailto:/i.test(w)?w=e.md.normalizeLinkText("mailto:"+w).replace(/^mailto:/,""):w=e.md.normalizeLinkText(w):w=e.md.normalizeLinkText("http://"+w).replace(/^http:\/\//,"");const D=c[g].index;if(D>p){const x=new e.Token("text","",0);x.content=s.slice(p,D),x.level=d,f.push(x)}const k=new e.Token("link_open","a",1);k.attrs=[["href",E]],k.level=d++,k.markup="linkify",k.info="auto",f.push(k);const h=new e.Token("text","",0);h.content=w,h.level=d,f.push(h);const _=new e.Token("link_close","a",-1);_.level=--d,_.markup="linkify",_.info="auto",f.push(_),p=c[g].lastIndex}if(p<s.length){const g=new e.Token("text","",0);g.content=s.slice(p),g.level=d,f.push(g)}t[n].children=r=Uo(r,u,f)}}}}const Wo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,wm=/\((c|tm|r)\)/i,km=/\((c|tm|r)\)/ig,Cm={c:"©",r:"®",tm:"™"};function Nm(e,t){return Cm[t.toLowerCase()]}function Dm(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(km,Nm)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function Tm(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&Wo.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function Am(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(wm.test(e.tokens[t].content)&&Dm(e.tokens[t].children),Wo.test(e.tokens[t].content)&&Tm(e.tokens[t].children))}const Im=/['"]/,Yo=/['"]/g,Go="’";function Ei(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Sm(e,t){let n;const i=[];for(let r=0;r<e.length;r++){const a=e[r],u=e[r].level;for(n=i.length-1;n>=0&&!(i[n].level<=u);n--);if(i.length=n+1,a.type!=="text")continue;let l=a.content,s=0,c=l.length;e:for(;s<c;){Yo.lastIndex=s;const f=Yo.exec(l);if(!f)break;let d=!0,p=!0;s=f.index+1;const g=f[0]==="'";let m=32;if(f.index-1>=0)m=l.charCodeAt(f.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let E=32;if(s<c)E=l.charCodeAt(s);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){E=e[n].content.charCodeAt(0);break}const w=Vn(m)||Mn(String.fromCharCode(m)),D=Vn(E)||Mn(String.fromCharCode(E)),k=Pn(m),h=Pn(E);if(h?d=!1:D&&(k||w||(d=!1)),k?p=!1:w&&(h||D||(p=!1)),E===34&&f[0]==='"'&&m>=48&&m<=57&&(p=d=!1),d&&p&&(d=w,p=D),!d&&!p){g&&(a.content=Ei(a.content,f.index,Go));continue}if(p)for(n=i.length-1;n>=0;n--){let _=i[n];if(i[n].level<u)break;if(_.single===g&&i[n].level===u){_=i[n];let x,y;g?(x=t.md.options.quotes[2],y=t.md.options.quotes[3]):(x=t.md.options.quotes[0],y=t.md.options.quotes[1]),a.content=Ei(a.content,f.index,y),e[_.token].content=Ei(e[_.token].content,_.pos,x),s+=y.length-1,_.token===r&&(s+=x.length-1),l=a.content,c=l.length,i.length=n;continue e}}d?i.push({token:r,pos:f.index,single:g,level:u}):p&&g&&(a.content=Ei(a.content,f.index,Go))}}}function Om(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Im.test(e.tokens[t].content)||Sm(e.tokens[t].children,e)}function Lm(e){let t,n;const i=e.tokens,r=i.length;for(let a=0;a<r;a++){if(i[a].type!=="inline")continue;const u=i[a].children,l=u.length;for(t=0;t<l;t++)u[t].type==="text_special"&&(u[t].type="text");for(t=n=0;t<l;t++)u[t].type==="text"&&t+1<l&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}}const Dr=[["normalize",bm],["block",_m],["inline",xm],["linkify",Em],["replacements",Am],["smartquotes",Om],["text_join",Lm]];function Tr(){this.ruler=new Ge;for(let e=0;e<Dr.length;e++)this.ruler.push(Dr[e][0],Dr[e][1])}Tr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)},Tr.prototype.State=qo;function bt(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let a=0,u=0,l=0,s=0,c=r.length,f=!1;u<c;u++){const d=r.charCodeAt(u);if(!f)if(ye(d)){l++,d===9?s+=4-s%4:s++;continue}else f=!0;(d===10||u===c-1)&&(d!==10&&u++,this.bMarks.push(a),this.eMarks.push(u),this.tShift.push(l),this.sCount.push(s),this.bsCount.push(0),f=!1,l=0,s=0,a=u+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}bt.prototype.push=function(e,t,n){const i=new ft(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},bt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},bt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},bt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const i=this.src.charCodeAt(t);if(!ye(i))break}return t},bt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ye(this.src.charCodeAt(--t)))return t+1;return t},bt.prototype.skipChars=function(t,n){for(let i=this.src.length;t<i&&this.src.charCodeAt(t)===n;t++);return t},bt.prototype.skipCharsBack=function(t,n,i){if(t<=i)return t;for(;t>i;)if(n!==this.src.charCodeAt(--t))return t+1;return t},bt.prototype.getLines=function(t,n,i,r){if(t>=n)return"";const a=new Array(n-t);for(let u=0,l=t;l<n;l++,u++){let s=0;const c=this.bMarks[l];let f=c,d;for(l+1<n||r?d=this.eMarks[l]+1:d=this.eMarks[l];f<d&&s<i;){const p=this.src.charCodeAt(f);if(ye(p))p===9?s+=4-(s+this.bsCount[l])%4:s++;else if(f-c<this.tShift[l])s++;else break;f++}s>i?a[u]=new Array(s-i+1).join(" ")+this.src.slice(f,d):a[u]=this.src.slice(f,d)}return a.join("")},bt.prototype.Token=ft;const Fm=65536;function Ar(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function Xo(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),a=!1,u=0,l="";for(;i<n;)r===124&&(a?(l+=e.substring(u,i-1),u=i):(t.push(l+e.substring(u,i)),l="",u=i+1)),a=r===92,i++,r=e.charCodeAt(i);return t.push(l+e.substring(u)),t}function Pm(e,t,n,i){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let a=e.bMarks[r]+e.tShift[r];if(a>=e.eMarks[r])return!1;const u=e.src.charCodeAt(a++);if(u!==124&&u!==45&&u!==58||a>=e.eMarks[r])return!1;const l=e.src.charCodeAt(a++);if(l!==124&&l!==45&&l!==58&&!ye(l)||u===45&&ye(l))return!1;for(;a<e.eMarks[r];){const _=e.src.charCodeAt(a);if(_!==124&&_!==45&&_!==58&&!ye(_))return!1;a++}let s=Ar(e,t+1),c=s.split("|");const f=[];for(let _=0;_<c.length;_++){const x=c[_].trim();if(!x){if(_===0||_===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?f.push(x.charCodeAt(0)===58?"center":"right"):x.charCodeAt(0)===58?f.push("left"):f.push("")}if(s=Ar(e,t).trim(),s.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Xo(s),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(i)return!0;const p=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),E=[t,0];m.map=E;const w=e.push("thead_open","thead",1);w.map=[t,t+1];const D=e.push("tr_open","tr",1);D.map=[t,t+1];for(let _=0;_<c.length;_++){const x=e.push("th_open","th",1);f[_]&&(x.attrs=[["style","text-align:"+f[_]]]);const y=e.push("inline","",0);y.content=c[_].trim(),y.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,h=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let _=!1;for(let y=0,C=g.length;y<C;y++)if(g[y](e,r,n,!0)){_=!0;break}if(_||(s=Ar(e,r).trim(),!s)||e.sCount[r]-e.blkIndent>=4||(c=Xo(s),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),h+=d-c.length,h>Fm))break;if(r===t+2){const y=e.push("tbody_open","tbody",1);y.map=k=[t+2,0]}const x=e.push("tr_open","tr",1);x.map=[r,r+1];for(let y=0;y<d;y++){const C=e.push("td_open","td",1);f[y]&&(C.attrs=[["style","text-align:"+f[y]]]);const T=e.push("inline","",0);T.content=c[y]?c[y].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=r),e.push("table_close","table",-1),E[1]=r,e.parentType=p,e.line=r,!0}function Mm(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,r=i;for(;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,r=i;continue}break}e.line=r;const a=e.push("code_block","code",0);return a.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
57
|
+
`,a.map=[t,e.line],!0}function Vm(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>a)return!1;const u=e.src.charCodeAt(r);if(u!==126&&u!==96)return!1;let l=r;r=e.skipChars(r,u);let s=r-l;if(s<3)return!1;const c=e.src.slice(l,r),f=e.src.slice(r,a);if(u===96&&f.indexOf(String.fromCharCode(u))>=0)return!1;if(i)return!0;let d=t,p=!1;for(;d++,!(d>=n||(r=l=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],r<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===u&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,u),!(r-l<s)&&(r=e.skipSpaces(r),!(r<a)))){p=!0;break}s=e.sCount[t],e.line=d+(p?1:0);const g=e.push("fence","code",0);return g.info=f,g.content=e.getLines(t+1,d,s,!0),g.markup=c,g.map=[t,e.line],!0}function Rm(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const u=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(i)return!0;const l=[],s=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let g=!1,m;for(m=t;m<n;m++){const h=e.sCount[m]<e.blkIndent;if(r=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],r>=a)break;if(e.src.charCodeAt(r++)===62&&!h){let x=e.sCount[m]+1,y,C;e.src.charCodeAt(r)===32?(r++,x++,C=!1,y=!0):e.src.charCodeAt(r)===9?(y=!0,(e.bsCount[m]+x)%4===3?(r++,x++,C=!1):C=!0):y=!1;let T=x;for(l.push(e.bMarks[m]),e.bMarks[m]=r;r<a;){const A=e.src.charCodeAt(r);if(ye(A))A===9?T+=4-(T+e.bsCount[m]+(C?1:0))%4:T++;else break;r++}g=r>=a,s.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(y?1:0),c.push(e.sCount[m]),e.sCount[m]=T-x,f.push(e.tShift[m]),e.tShift[m]=r-e.bMarks[m];continue}if(g)break;let _=!1;for(let x=0,y=d.length;x<y;x++)if(d[x](e,m,n,!0)){_=!0;break}if(_){e.lineMax=m,e.blkIndent!==0&&(l.push(e.bMarks[m]),s.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}l.push(e.bMarks[m]),s.push(e.bsCount[m]),f.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const E=e.blkIndent;e.blkIndent=0;const w=e.push("blockquote_open","blockquote",1);w.markup=">";const D=[t,0];w.map=D,e.md.block.tokenize(e,t,m);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=u,e.parentType=p,D[1]=e.line;for(let h=0;h<f.length;h++)e.bMarks[h+t]=l[h],e.tShift[h+t]=f[h],e.sCount[h+t]=c[h],e.bsCount[h+t]=s[h];return e.blkIndent=E,!0}function jm(e,t,n,i){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(a++);if(u!==42&&u!==45&&u!==95)return!1;let l=1;for(;a<r;){const c=e.src.charCodeAt(a++);if(c!==u&&!ye(c))return!1;c===u&&l++}if(l<3)return!1;if(i)return!0;e.line=t+1;const s=e.push("hr","hr",0);return s.map=[t,e.line],s.markup=Array(l+1).join(String.fromCharCode(u)),!0}function Zo(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<n){const a=e.src.charCodeAt(i);if(!ye(a))return-1}return i}function Ko(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let a=e.src.charCodeAt(r++);if(a<48||a>57)return-1;for(;;){if(r>=i)return-1;if(a=e.src.charCodeAt(r++),a>=48&&a<=57){if(r-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return r<i&&(a=e.src.charCodeAt(r),!ye(a))?-1:r}function Bm(e,t){const n=e.level+2;for(let i=t+2,r=e.tokens.length-2;i<r;i++)e.tokens[i].level===n&&e.tokens[i].type==="paragraph_open"&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}function $m(e,t,n,i){let r,a,u,l,s=t,c=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let f=!1;i&&e.parentType==="paragraph"&&e.sCount[s]>=e.blkIndent&&(f=!0);let d,p,g;if((g=Ko(e,s))>=0){if(d=!0,u=e.bMarks[s]+e.tShift[s],p=Number(e.src.slice(u,g-1)),f&&p!==1)return!1}else if((g=Zo(e,s))>=0)d=!1;else return!1;if(f&&e.skipSpaces(g)>=e.eMarks[s])return!1;if(i)return!0;const m=e.src.charCodeAt(g-1),E=e.tokens.length;d?(l=e.push("ordered_list_open","ol",1),p!==1&&(l.attrs=[["start",p]])):l=e.push("bullet_list_open","ul",1);const w=[s,0];l.map=w,l.markup=String.fromCharCode(m);let D=!1;const k=e.md.block.ruler.getRules("list"),h=e.parentType;for(e.parentType="list";s<n;){a=g,r=e.eMarks[s];const _=e.sCount[s]+g-(e.bMarks[s]+e.tShift[s]);let x=_;for(;a<r;){const q=e.src.charCodeAt(a);if(q===9)x+=4-(x+e.bsCount[s])%4;else if(q===32)x++;else break;a++}const y=a;let C;y>=r?C=1:C=x-_,C>4&&(C=1);const T=_+C;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(m);const A=[s,0];l.map=A,d&&(l.info=e.src.slice(u,g-1));const j=e.tight,pe=e.tShift[s],$=e.sCount[s],R=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[s]=y-e.bMarks[s],e.sCount[s]=x,y>=r&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||D)&&(c=!1),D=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[s]=pe,e.sCount[s]=$,e.tight=j,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(m),s=e.line,A[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let Q=!1;for(let q=0,ie=k.length;q<ie;q++)if(k[q](e,s,n,!0)){Q=!0;break}if(Q)break;if(d){if(g=Ko(e,s),g<0)break;u=e.bMarks[s]+e.tShift[s]}else if(g=Zo(e,s),g<0)break;if(m!==e.src.charCodeAt(g-1))break}return d?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(m),w[1]=s,e.line=s,e.parentType=h,c&&Bm(e,E),!0}function zm(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],u=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function l(k){const h=e.lineMax;if(k>=h||e.isEmpty(k))return null;let _=!1;if(e.sCount[k]-e.blkIndent>3&&(_=!0),e.sCount[k]<0&&(_=!0),!_){const C=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let A=!1;for(let j=0,pe=C.length;j<pe;j++)if(C[j](e,k,h,!0)){A=!0;break}if(e.parentType=T,A)return null}const x=e.bMarks[k]+e.tShift[k],y=e.eMarks[k];return e.src.slice(x,y+1)}let s=e.src.slice(r,a+1);a=s.length;let c=-1;for(r=1;r<a;r++){const k=s.charCodeAt(r);if(k===91)return!1;if(k===93){c=r;break}else if(k===10){const h=l(u);h!==null&&(s+=h,a=s.length,u++)}else if(k===92&&(r++,r<a&&s.charCodeAt(r)===10)){const h=l(u);h!==null&&(s+=h,a=s.length,u++)}}if(c<0||s.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<a;r++){const k=s.charCodeAt(r);if(k===10){const h=l(u);h!==null&&(s+=h,a=s.length,u++)}else if(!ye(k))break}const f=e.md.helpers.parseLinkDestination(s,r,a);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const p=r,g=u,m=r;for(;r<a;r++){const k=s.charCodeAt(r);if(k===10){const h=l(u);h!==null&&(s+=h,a=s.length,u++)}else if(!ye(k))break}let E=e.md.helpers.parseLinkTitle(s,r,a);for(;E.can_continue;){const k=l(u);if(k===null)break;s+=k,r=a,a=s.length,u++,E=e.md.helpers.parseLinkTitle(s,r,a,E)}let w;for(r<a&&m!==r&&E.ok?(w=E.str,r=E.pos):(w="",r=p,u=g);r<a;){const k=s.charCodeAt(r);if(!ye(k))break;r++}if(r<a&&s.charCodeAt(r)!==10&&w)for(w="",r=p,u=g;r<a;){const k=s.charCodeAt(r);if(!ye(k))break;r++}if(r<a&&s.charCodeAt(r)!==10)return!1;const D=vi(s.slice(1,c));return D?(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[D]>"u"&&(e.env.references[D]={title:w,href:d}),e.line=u),!0):!1}const Um=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hm="[a-zA-Z_:][a-zA-Z0-9:._-]*",qm="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Jo="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Hm+"(?:\\s*=\\s*"+qm+")?)")+"*\\s*\\/?>",Qo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Wm="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Ym="<[?][\\s\\S]*?[?]>",Gm="<![A-Za-z][^>]*>",Xm="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Zm=new RegExp("^(?:"+Jo+"|"+Qo+"|"+Wm+"|"+Ym+"|"+Gm+"|"+Xm+")"),Km=new RegExp("^(?:"+Jo+"|"+Qo+")"),mn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Um.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Km.source+"\\s*$"),/^$/,!1]];function Jm(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let u=e.src.slice(r,a),l=0;for(;l<mn.length&&!mn[l][0].test(u);l++);if(l===mn.length)return!1;if(i)return mn[l][2];let s=t+1;if(!mn[l][1].test(u)){for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(r=e.bMarks[s]+e.tShift[s],a=e.eMarks[s],u=e.src.slice(r,a),mn[l][1].test(u)){u.length!==0&&s++;break}}e.line=s;const c=e.push("html_block","",0);return c.map=[t,s],c.content=e.getLines(t,s,e.blkIndent,!0),!0}function Qm(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.src.charCodeAt(r);if(u!==35||r>=a)return!1;let l=1;for(u=e.src.charCodeAt(++r);u===35&&r<a&&l<=6;)l++,u=e.src.charCodeAt(++r);if(l>6||r<a&&!ye(u))return!1;if(i)return!0;a=e.skipSpacesBack(a,r);const s=e.skipCharsBack(a,35,r);s>r&&ye(e.src.charCodeAt(s-1))&&(a=s),e.line=t+1;const c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,a).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(l),-1);return d.markup="########".slice(0,l),!0}function e2(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let a=0,u,l=t+1;for(;l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let g=e.bMarks[l]+e.tShift[l];const m=e.eMarks[l];if(g<m&&(u=e.src.charCodeAt(g),(u===45||u===61)&&(g=e.skipChars(g,u),g=e.skipSpaces(g),g>=m))){a=u===61?1:2;break}}if(e.sCount[l]<0)continue;let p=!1;for(let g=0,m=i.length;g<m;g++)if(i[g](e,l,n,!0)){p=!0;break}if(p)break}if(!a)return!1;const s=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const c=e.push("heading_open","h"+String(a),1);c.markup=String.fromCharCode(u),c.map=[t,e.line];const f=e.push("inline","",0);f.content=s,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(a),-1);return d.markup=String.fromCharCode(u),e.parentType=r,!0}function t2(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let c=!1;for(let f=0,d=i.length;f<d;f++)if(i[f](e,a,n,!0)){c=!0;break}if(c)break}const u=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const s=e.push("inline","",0);return s.content=u,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const wi=[["table",Pm,["paragraph","reference"]],["code",Mm],["fence",Vm,["paragraph","reference","blockquote","list"]],["blockquote",Rm,["paragraph","reference","blockquote","list"]],["hr",jm,["paragraph","reference","blockquote","list"]],["list",$m,["paragraph","reference","blockquote"]],["reference",zm],["html_block",Jm,["paragraph","reference","blockquote"]],["heading",Qm,["paragraph","reference","blockquote"]],["lheading",e2],["paragraph",t2]];function ki(){this.ruler=new Ge;for(let e=0;e<wi.length;e++)this.ruler.push(wi[e][0],wi[e][1],{alt:(wi[e][2]||[]).slice()})}ki.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,a=e.md.options.maxNesting;let u=t,l=!1;for(;u<n&&(e.line=u=e.skipEmptyLines(u),!(u>=n||e.sCount[u]<e.blkIndent));){if(e.level>=a){e.line=n;break}const s=e.line;let c=!1;for(let f=0;f<r;f++)if(c=i[f](e,u,n,!1),c){if(s>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),u=e.line,u<n&&e.isEmpty(u)&&(l=!0,u++,e.line=u)}},ki.prototype.parse=function(e,t,n,i){if(!e)return;const r=new this.State(e,t,n,i);this.tokenize(r,r.line,r.lineMax)},ki.prototype.State=bt;function Rn(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Rn.prototype.pushPending=function(){const e=new ft("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Rn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new ft(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i},Rn.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===i;)a++;const u=a-e,l=a<n?this.src.charCodeAt(a):32,s=Vn(r)||Mn(String.fromCharCode(r)),c=Vn(l)||Mn(String.fromCharCode(l)),f=Pn(r),d=Pn(l),p=!d&&(!c||f||s),g=!f&&(!s||d||c);return{can_open:p&&(t||!g||s),can_close:g&&(t||!p||c),length:u}},Rn.prototype.Token=ft;function n2(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function i2(e,t){let n=e.pos;for(;n<e.posMax&&!n2(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const r2=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function a2(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(r2);if(!r)return!1;const a=r[1],u=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!u)return!1;let l=u.url;if(l.length<=a.length)return!1;l=l.replace(/\*+$/,"");const s=e.md.normalizeLink(l);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const c=e.push("link_open","a",1);c.attrs=[["href",s]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(l);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=l.length-a.length,!0}function u2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,r=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let a=i-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&ye(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ir=[];for(let e=0;e<256;e++)Ir.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ir[e.charCodeAt(0)]=1});function o2(e,t){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<i&&(r=e.src.charCodeAt(n),!!ye(r));)n++;return e.pos=n,!0}let a=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const l=e.src.charCodeAt(n+1);l>=56320&&l<=57343&&(a+=e.src[n+1],n++)}const u="\\"+a;if(!t){const l=e.push("text_special","",0);r<256&&Ir[r]!==0?l.content=a:l.content=u,l.markup=u,l.info="escape"}return e.pos=n+1,!0}function l2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const a=e.posMax;for(;n<a&&e.src.charCodeAt(n)===96;)n++;const u=e.src.slice(r,n),l=u.length;if(e.backticksScanned&&(e.backticks[l]||0)<=r)return t||(e.pending+=u),e.pos+=l,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<a&&e.src.charCodeAt(s)===96;)s++;const f=s-c;if(f===l){if(!t){const d=e.push("code_inline","code",0);d.markup=u,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[f]=c}return e.backticksScanned=!0,t||(e.pending+=u),e.pos+=l,!0}function s2(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==126)return!1;const r=e.scanDelims(e.pos,!0);let a=r.length;const u=String.fromCharCode(i);if(a<2)return!1;let l;a%2&&(l=e.push("text","",0),l.content=u,a--);for(let s=0;s<a;s+=2)l=e.push("text","",0),l.content=u+u,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function el(e,t){let n;const i=[],r=t.length;for(let a=0;a<r;a++){const u=t[a];if(u.marker!==126||u.end===-1)continue;const l=t[u.end];n=e.tokens[u.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&i.push(l.token-1)}for(;i.length;){const a=i.pop();let u=a+1;for(;u<e.tokens.length&&e.tokens[u].type==="s_close";)u++;u--,a!==u&&(n=e.tokens[u],e.tokens[u]=e.tokens[a],e.tokens[a]=n)}}function c2(e){const t=e.tokens_meta,n=e.tokens_meta.length;el(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&el(e,t[i].delimiters)}const tl={tokenize:s2,postProcess:c2};function f2(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==95&&i!==42)return!1;const r=e.scanDelims(e.pos,i===42);for(let a=0;a<r.length;a++){const u=e.push("text","",0);u.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function nl(e,t){const n=t.length;for(let i=n-1;i>=0;i--){const r=t[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const a=t[r.end],u=i>0&&t[i-1].end===r.end+1&&t[i-1].marker===r.marker&&t[i-1].token===r.token-1&&t[r.end+1].token===a.token+1,l=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=u?"strong_open":"em_open",s.tag=u?"strong":"em",s.nesting=1,s.markup=u?l+l:l,s.content="";const c=e.tokens[a.token];c.type=u?"strong_close":"em_close",c.tag=u?"strong":"em",c.nesting=-1,c.markup=u?l+l:l,c.content="",u&&(e.tokens[t[i-1].token].content="",e.tokens[t[r.end+1].token].content="",i--)}}function d2(e){const t=e.tokens_meta,n=e.tokens_meta.length;nl(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&nl(e,t[i].delimiters)}const il={tokenize:f2,postProcess:d2};function p2(e,t){let n,i,r,a,u="",l="",s=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,p=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let m=g+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!ye(n)&&n!==10));m++);if(m>=d)return!1;if(s=m,r=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),r.ok){for(u=e.md.normalizeLink(r.str),e.md.validateLink(u)?m=r.pos:u="",s=m;m<d&&(n=e.src.charCodeAt(m),!(!ye(n)&&n!==10));m++);if(r=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&s!==m&&r.ok)for(l=r.str,m=r.pos;m<d&&(n=e.src.charCodeAt(m),!(!ye(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m<d&&e.src.charCodeAt(m)===91?(s=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?i=e.src.slice(s,m++):m=g+1):m=g+1,i||(i=e.src.slice(p,g)),a=e.env.references[vi(i)],!a)return e.pos=f,!1;u=a.href,l=a.title}if(!t){e.pos=p,e.posMax=g;const E=e.push("link_open","a",1),w=[["href",u]];E.attrs=w,l&&w.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}function h2(e,t){let n,i,r,a,u,l,s,c,f="";const d=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<p&&e.src.charCodeAt(a)===40){for(a++;a<p&&(n=e.src.charCodeAt(a),!(!ye(n)&&n!==10));a++);if(a>=p)return!1;for(c=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok&&(f=e.md.normalizeLink(l.str),e.md.validateLink(f)?a=l.pos:f=""),c=a;a<p&&(n=e.src.charCodeAt(a),!(!ye(n)&&n!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&c!==a&&l.ok)for(s=l.str,a=l.pos;a<p&&(n=e.src.charCodeAt(a),!(!ye(n)&&n!==10));a++);else s="";if(a>=p||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<p&&e.src.charCodeAt(a)===91?(c=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?r=e.src.slice(c,a++):a=m+1):a=m+1,r||(r=e.src.slice(g,m)),u=e.env.references[vi(r)],!u)return e.pos=d,!1;f=u.href,s=u.title}if(!t){i=e.src.slice(g,m);const E=[];e.md.inline.parse(i,e.md,e.env,E);const w=e.push("image","img",0),D=[["src",f],["alt",""]];w.attrs=D,w.children=E,w.content=i,s&&D.push(["title",s])}return e.pos=a,e.posMax=p,!0}const m2=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,g2=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function b2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const u=e.src.charCodeAt(n);if(u===60)return!1;if(u===62)break}const a=e.src.slice(i+1,n);if(g2.test(a)){const u=e.md.normalizeLink(a);if(!e.md.validateLink(u))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="autolink",l.info="auto";const s=e.push("text","",0);s.content=e.md.normalizeLinkText(a);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=a.length+2,!0}if(m2.test(a)){const u=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(u))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="autolink",l.info="auto";const s=e.push("text","",0);s.content=e.md.normalizeLinkText(a);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=a.length+2,!0}return!1}function _2(e){return/^<a[>\s]/i.test(e)}function x2(e){return/^<\/a\s*>/i.test(e)}function y2(e){const t=e|32;return t>=97&&t<=122}function v2(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=n)return!1;const r=e.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!y2(r))return!1;const a=e.src.slice(i).match(Zm);if(!a)return!1;if(!t){const u=e.push("html_inline","",0);u.content=a[0],_2(u.content)&&e.linkLevel++,x2(u.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const E2=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,w2=/^&([a-z][a-z0-9]{1,31});/i;function k2(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const a=e.src.slice(n).match(E2);if(a){if(!t){const u=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),l=e.push("text_special","",0);l.content=Nr(u)?yi(u):yi(65533),l.markup=a[0],l.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(n).match(w2);if(a){const u=zo(a[0]);if(u!==a[0]){if(!t){const l=e.push("text_special","",0);l.content=u,l.markup=a[0],l.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function rl(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const a=[];for(let u=0;u<n;u++){const l=e[u];if(a.push(0),(e[i].marker!==l.marker||r!==l.token-1)&&(i=u),r=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[l.marker][(l.open?3:0)+l.length%3];let c=i-a[i]-1,f=c;for(;c>s;c-=a[c]+1){const d=e[c];if(d.marker===l.marker&&d.open&&d.end<0){let p=!1;if((d.close||l.open)&&(d.length+l.length)%3===0&&(d.length%3!==0||l.length%3!==0)&&(p=!0),!p){const g=c>0&&!e[c-1].open?a[c-1]+1:0;a[u]=u-c+g,a[c]=g,l.open=!1,d.end=u,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=f)}}function C2(e){const t=e.tokens_meta,n=e.tokens_meta.length;rl(e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&rl(t[i].delimiters)}function N2(e){let t,n,i=0;const r=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,r[t].type==="text"&&t+1<a&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const Sr=[["text",i2],["linkify",a2],["newline",u2],["escape",o2],["backticks",l2],["strikethrough",tl.tokenize],["emphasis",il.tokenize],["link",p2],["image",h2],["autolink",b2],["html_inline",v2],["entity",k2]],Or=[["balance_pairs",C2],["strikethrough",tl.postProcess],["emphasis",il.postProcess],["fragments_join",N2]];function jn(){this.ruler=new Ge;for(let e=0;e<Sr.length;e++)this.ruler.push(Sr[e][0],Sr[e][1]);this.ruler2=new Ge;for(let e=0;e<Or.length;e++)this.ruler2.push(Or[e][0],Or[e][1])}jn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let u=!1;if(e.level<r){for(let l=0;l<i;l++)if(e.level++,u=n[l](e,!0),e.level--,u){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;u||e.pos++,a[t]=e.pos},jn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,r=e.md.options.maxNesting;for(;e.pos<i;){const a=e.pos;let u=!1;if(e.level<r){for(let l=0;l<n;l++)if(u=t[l](e,!1),u){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(u){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},jn.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const a=this.ruler2.getRules(""),u=a.length;for(let l=0;l<u;l++)a[l](r)},jn.prototype.State=Rn;function D2(e){const t={};e=e||{},t.src_Any=Vo.source,t.src_Cc=Ro.source,t.src_Z=Bo.source,t.src_P=Er.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Lr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(i){e[i]=n[i]})}),e}function Ci(e){return Object.prototype.toString.call(e)}function T2(e){return Ci(e)==="[object String]"}function A2(e){return Ci(e)==="[object Object]"}function I2(e){return Ci(e)==="[object RegExp]"}function al(e){return Ci(e)==="[object Function]"}function S2(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ul={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function O2(e){return Object.keys(e||{}).reduce(function(t,n){return t||ul.hasOwnProperty(n)},!1)}const L2={"http:":{validate:function(e,t,n){const i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},F2="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",P2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function M2(e){e.__index__=-1,e.__text_cache__=""}function V2(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}function ol(){return function(e,t){t.normalize(e)}}function Ni(e){const t=e.re=D2(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(F2),n.push(t.src_xn),t.src_tlds=n.join("|");function i(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function a(l,s){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+s)}Object.keys(e.__schemas__).forEach(function(l){const s=e.__schemas__[l];if(s===null)return;const c={validate:null,link:null};if(e.__compiled__[l]=c,A2(s)){I2(s.validate)?c.validate=V2(s.validate):al(s.validate)?c.validate=s.validate:a(l,s),al(s.normalize)?c.normalize=s.normalize:s.normalize?a(l,s):c.normalize=ol();return}if(T2(s)){r.push(l);return}a(l,s)}),r.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:ol()};const u=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(S2).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),M2(e)}function R2(e,t){const n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function Fr(e,t){const n=new R2(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||O2(e)&&(t=e,e={}),this.__opts__=Lr({},ul,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Lr({},L2,e),this.__compiled__={},this.__tlds__=P2,this.__tlds_replaced__=!1,this.re={},Ni(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Ni(this),this},Ke.prototype.set=function(t){return this.__opts__=Lr(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,i,r,a,u,l,s,c,f;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(n=s.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],s.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(i=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(u=i.index+i[1].length,(this.__index__<0||u<this.__index__)&&(this.__schema__="",this.__index__=u,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(u=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||u<this.__index__||u===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=u,this.__last_index__=l))),this.__index__>=0},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,i,this):0},Ke.prototype.match=function(t){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Fr(this,i)),i=this.__last_index__);let r=i?t.slice(i):t;for(;this.test(r);)n.push(Fr(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null},Ke.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const i=this.testSchemaAt(t,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,Fr(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(i,r,a){return i!==a[r-1]}).reverse(),Ni(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ni(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const gn=2147483647,_t=36,Pr=1,Bn=26,j2=38,B2=700,ll=72,sl=128,cl="-",$2=/^xn--/,z2=/[^\0-\x7F]/,U2=/[\x2E\u3002\uFF0E\uFF61]/g,H2={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mr=_t-Pr,xt=Math.floor,Vr=String.fromCharCode;function Pt(e){throw new RangeError(H2[e])}function q2(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}function fl(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(U2,".");const r=e.split("."),a=q2(r,t).join(".");return i+a}function dl(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((r&1023)<<10)+(a&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const W2=e=>String.fromCodePoint(...e),Y2=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:_t},pl=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},hl=function(e,t,n){let i=0;for(e=n?xt(e/B2):e>>1,e+=xt(e/t);e>Mr*Bn>>1;i+=_t)e=xt(e/Mr);return xt(i+(Mr+1)*e/(e+j2))},ml=function(e){const t=[],n=e.length;let i=0,r=sl,a=ll,u=e.lastIndexOf(cl);u<0&&(u=0);for(let l=0;l<u;++l)e.charCodeAt(l)>=128&&Pt("not-basic"),t.push(e.charCodeAt(l));for(let l=u>0?u+1:0;l<n;){const s=i;for(let f=1,d=_t;;d+=_t){l>=n&&Pt("invalid-input");const p=Y2(e.charCodeAt(l++));p>=_t&&Pt("invalid-input"),p>xt((gn-i)/f)&&Pt("overflow"),i+=p*f;const g=d<=a?Pr:d>=a+Bn?Bn:d-a;if(p<g)break;const m=_t-g;f>xt(gn/m)&&Pt("overflow"),f*=m}const c=t.length+1;a=hl(i-s,c,s==0),xt(i/c)>gn-r&&Pt("overflow"),r+=xt(i/c),i%=c,t.splice(i++,0,r)}return String.fromCodePoint(...t)},gl=function(e){const t=[];e=dl(e);const n=e.length;let i=sl,r=0,a=ll;for(const s of e)s<128&&t.push(Vr(s));const u=t.length;let l=u;for(u&&t.push(cl);l<n;){let s=gn;for(const f of e)f>=i&&f<s&&(s=f);const c=l+1;s-i>xt((gn-r)/c)&&Pt("overflow"),r+=(s-i)*c,i=s;for(const f of e)if(f<i&&++r>gn&&Pt("overflow"),f===i){let d=r;for(let p=_t;;p+=_t){const g=p<=a?Pr:p>=a+Bn?Bn:p-a;if(d<g)break;const m=d-g,E=_t-g;t.push(Vr(pl(g+m%E,0))),d=xt(m/E)}t.push(Vr(pl(d,0))),a=hl(r,c,l===u),r=0,++l}++r,++i}return t.join("")},bl={version:"2.3.1",ucs2:{decode:dl,encode:W2},decode:ml,encode:gl,toASCII:function(e){return fl(e,function(t){return z2.test(t)?"xn--"+gl(t):t})},toUnicode:function(e){return fl(e,function(t){return $2.test(t)?ml(t.slice(4).toLowerCase()):t})}},G2={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},X2=/^(vbscript|javascript|file|data):/,Z2=/^data:image\/(gif|png|jpeg|webp);/;function K2(e){const t=e.trim().toLowerCase();return X2.test(t)?Z2.test(t):!0}const _l=["http:","https:","mailto:"];function J2(e){const t=vr(e,!0);if(t.hostname&&(!t.protocol||_l.indexOf(t.protocol)>=0))try{t.hostname=bl.toASCII(t.hostname)}catch{}return Fn(yr(t))}function Q2(e){const t=vr(e,!0);if(t.hostname&&(!t.protocol||_l.indexOf(t.protocol)>=0))try{t.hostname=bl.toUnicode(t.hostname)}catch{}return dn(yr(t),dn.defaultChars+"%")}function it(e,t){if(!(this instanceof it))return new it(e,t);t||Cr(e)||(t=e||{},e="default"),this.inline=new jn,this.block=new ki,this.core=new Tr,this.renderer=new hn,this.linkify=new Ke,this.validateLink=K2,this.normalizeLink=J2,this.normalizeLinkText=Q2,this.utils=cm,this.helpers=xi({},hm),this.options={},this.configure(e),t&&this.set(t)}it.prototype.set=function(e){return xi(this.options,e),this},it.prototype.configure=function(e){const t=this;if(Cr(e)){const n=e;if(e=G2[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},it.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},it.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},it.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},it.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},it.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},it.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},it.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const eg=["innerHTML"],tg={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
|
|
49
58
|
|------------|----------|----|
|
|
50
59
|
| 热量:450kcal | | 热量:450kcal |
|
|
51
60
|
| 碳水:62.3g | | 碳水:62.3g |
|
|
@@ -58,41 +67,41 @@ ${c}`:l)}else throw a},onCacheKey:a=>Zs(t,n,a)}}function Oc(e){if(F(e))return e;
|
|
|
58
67
|
| 热量:450kcal | | 热量:450kcal |
|
|
59
68
|
| 碳水:62.3g | | 碳水:62.3g |
|
|
60
69
|
| 蛋白质:15.5g | | 蛋白质:15.5g |
|
|
61
|
-
| 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new ut,n=e,u=i.computed(()=>t.render(n.content));return(r,o)=>(i.openBlock(),i.createElementBlock("div",{innerHTML:u.value},null,8,Qp))}},t_={},n_={width:"1em",height:"1em",viewBox:"0 0 44 44",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function u_(e,t){return i.openBlock(),i.createElementBlock("svg",n_,t[0]||(t[0]=[i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.createElementVNode("g",{transform:"translate(44, 0) rotate(90)"},[i.createElementVNode("polyline",{stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",points:"16 10 28 22 16 34"})])],-1)]))}const r_=ke(t_,[["render",u_]]),o_={class:"pup_header"},a_={class:"left"},i_={class:"title"},s_={class:"right"},l_={class:"pup_content",style:{height:"calc(height - 56px)"}},c_=ke({__name:"popup",props:{show:{type:Boolean,default:!1},height:{type:String,default:"50vh"},title:{type:String,default:""}},emits:["update:show","confirm","close"],setup(e,{emit:t}){const{t:n}=tn(),u=e,r=t,o=i.ref(!1),a=i.ref(`-${u.height}`),s=i.ref({delay:300,bottom:`-${u.height}`,opacity:0}),l=d=>{d?(s.value.bottom="0",s.value.opacity=.5):(s.value.bottom=`-${u.height}`,s.value.opacity=0)},c=()=>{r("confirm",{})};i.watch(()=>u.show,(d,h)=>{d?(a.value=`-${u.height}`,o.value=!0,setTimeout(()=>{l(!0)},0)):(l(!1),setTimeout(()=>{o.value=!1},300))});const f=()=>{r("update:show",!1),l(!1),setTimeout(()=>{o.value=!1},300)};return(d,h)=>o.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"pup_mask",style:i.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${s.value.opacity})`}),onClick:i.withModifiers(f,["stop"])},[i.createElementVNode("div",{class:"pup_wrap",style:i.normalizeStyle({height:e.height,bottom:s.value.bottom}),onClick:i.withModifiers(()=>{},["stop"])},[i.createElementVNode("div",o_,[i.createElementVNode("div",a_,[i.createElementVNode("div",{class:"icon_down",onClick:i.withModifiers(f,["stop"])},[i.createVNode(r_)])]),i.createElementVNode("div",i_,i.toDisplayString(e.title),1),i.createElementVNode("div",s_,[i.createElementVNode("div",{class:"btn",onClick:c},i.toDisplayString(i.unref(n)("common.confirm")),1)])]),i.createElementVNode("div",l_,[i.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):i.createCommentVNode("",!0)}},[["__scopeId","data-v-b2b0e400"]]);function f_(){}const dt=Object.assign,Rr=typeof window<"u",Un=e=>e!==null&&typeof e=="object",$e=e=>e!=null,Du=e=>typeof e=="function",bs=e=>Un(e)&&Du(e.then)&&Du(e.catch),Es=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),d_=()=>Rr?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function ys(e,t){const n=t.split(".");let u=e;return n.forEach(r=>{var o;u=Un(u)&&(o=u[r])!=null?o:""}),u}function h_(e,t,n){return t.reduce((u,r)=>(u[r]=e[r],u),{})}const ks=e=>Array.isArray(e)?e:[e],Mt=null,Oe=[Number,String],Vt={type:Boolean,default:!0},m_=e=>({type:Number,default:e}),p_=e=>({type:Oe,default:e}),Re=e=>({type:String,default:e});var Br=typeof window<"u";function __(e){const t=i.inject(e,null);if(t){const n=i.getCurrentInstance(),{link:u,unlink:r,internalChildren:o}=t;u(n),i.onUnmounted(()=>r(n));const a=i.computed(()=>o.indexOf(n));return{parent:t,index:a}}return{parent:null,index:i.ref(-1)}}function xs(e){let t;i.onMounted(()=>{e(),i.nextTick(()=>{t=!0})}),i.onActivated(()=>{t&&e()})}function $r(e,t,n={}){if(!Br)return;const{target:u=window,passive:r=!1,capture:o=!1}=n;let a=!1,s;const l=d=>{if(a)return;const h=i.unref(d);h&&!s&&(h.addEventListener(e,t,{capture:o,passive:r}),s=!0)},c=d=>{if(a)return;const h=i.unref(d);h&&s&&(h.removeEventListener(e,t,o),s=!1)};i.onUnmounted(()=>c(u)),i.onDeactivated(()=>c(u)),xs(()=>l(u));let f;return i.isRef(u)&&(f=i.watch(u,(d,h)=>{c(h),l(d)})),()=>{f==null||f(),c(u),a=!0}}var Tu,Ur;function g_(){if(!Tu&&(Tu=i.ref(0),Ur=i.ref(0),Br)){const e=()=>{Tu.value=window.innerWidth,Ur.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Tu,height:Ur}}var b_=/scroll|auto|overlay/i,E_=Br?window:void 0;function y_(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function k_(e,t=E_){let n=e;for(;n&&n!==t&&y_(n);){const{overflowY:u}=window.getComputedStyle(n);if(b_.test(u))return n;n=n.parentNode}return t}var x_=Symbol("van-field");function Cs(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function vs(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ws(e){Cs(window,e),Cs(document.body,e)}const C_=d_();function v_(){C_&&ws(vs())}const w_=e=>e.stopPropagation();function zn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&w_(e)}g_();function Je(e){if($e(e))return Es(e)?`${e}px`:String(e)}function N_(e){if($e(e)){if(Array.isArray(e))return{width:Je(e[0]),height:Je(e[1])};const t=Je(e);return{width:t,height:t}}}function D_(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const T_=/-(\w)/g,Ns=e=>e.replace(T_,(t,n)=>n.toUpperCase()),A_=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),I_=(e,t,n)=>Math.min(Math.max(e,t),n);function Ds(e,t,n){const u=e.indexOf(t);return u===-1?e:t==="-"&&u!==0?e.slice(0,u):e.slice(0,u+1)+e.slice(u).replace(n,"")}function S_(e,t=!0,n=!0){t?e=Ds(e,".",/\./g):e=e.split(".")[0],n?e=Ds(e,"-",/-/g):e=e.replace(/-/,"");const u=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(u,"")}const{hasOwnProperty:O_}=Object.prototype;function L_(e,t,n){const u=t[n];$e(u)&&(!O_.call(e,n)||!Un(u)?e[n]=u:e[n]=Ts(Object(e[n]),u))}function Ts(e,t){return Object.keys(t).forEach(n=>{L_(e,t,n)}),e}var F_={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const As=i.ref("zh-CN"),Is=i.reactive({"zh-CN":F_});var P_={messages(){return Is[As.value]},use(e,t){As.value=e,this.add({[e]:t})},add(e={}){Ts(Is,e)}};function M_(e){const t=Ns(e)+".";return(n,...u)=>{const r=P_.messages(),o=ys(r,t+n)||ys(r,n);return Du(o)?o(...u):o}}function zr(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,u)=>n+zr(e,u),""):Object.keys(t).reduce((n,u)=>n+(t[u]?zr(e,u):""),""):""}function V_(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${zr(t,n)}`)}function wt(e){const t=`van-${e}`;return[t,V_(t),M_(t)]}const R_="van-haptics-feedback",B_=Symbol("van-form"),Ss=5;function $_(e,{args:t=[],done:n,canceled:u,error:r}){if(e){const o=e.apply(null,t);bs(o)?o.then(a=>{a?n():u&&u()}).catch(r||f_):o?n():u&&u()}else n()}function Rt(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(Ns(`-${n}`),e))},e}const U_=Symbol();function jr(e){const t=i.getCurrentInstance();t&&dt(t.proxy,e)}const z_={to:[String,Object],url:String,replace:Boolean};function j_({to:e,url:t,replace:n,$router:u}){e&&u?u[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function H_(){const e=i.getCurrentInstance().proxy;return()=>j_(e)}const[q_,Os]=wt("badge"),W_={dot:Boolean,max:Oe,tag:Re("div"),color:String,offset:Array,content:Oe,showZero:Vt,position:Re("top-right")};var Y_=i.defineComponent({name:q_,props:W_,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:s,showZero:l}=e;return $e(s)&&s!==""&&(l||s!==0&&s!=="0")},u=()=>{const{dot:s,max:l,content:c}=e;if(!s&&n())return t.content?t.content():$e(l)&&Es(c)&&+c>+l?`${l}+`:c},r=s=>s.startsWith("-")?s.replace("-",""):`-${s}`,o=i.computed(()=>{const s={background:e.color};if(e.offset){const[l,c]=e.offset,{position:f}=e,[d,h]=f.split("-");t.default?(typeof c=="number"?s[d]=Je(d==="top"?c:-c):s[d]=d==="top"?Je(c):r(c),typeof l=="number"?s[h]=Je(h==="left"?l:-l):s[h]=h==="left"?Je(l):r(l)):(s.marginTop=Je(c),s.marginLeft=Je(l))}return s}),a=()=>{if(n()||e.dot)return i.createVNode("div",{class:Os([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[u()])};return()=>{if(t.default){const{tag:s}=e;return i.createVNode(s,{class:Os("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const G_=Rt(Y_);let Ls=2e3;const X_=()=>++Ls,Z_=e=>{Ls=e},[Fs,K_]=wt("config-provider"),Ps=Symbol(Fs),J_={tag:Re("div"),theme:Re("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Re("local"),iconPrefix:String};function Q_(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function eg(e){const t={};return Object.keys(e).forEach(n=>{const u=Q_(A_(n));t[`--van-${u}`]=e[n]}),t}function Au(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}i.defineComponent({name:Fs,props:J_,setup(e,{slots:t}){const n=i.computed(()=>eg(dt({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Rr){const u=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},r=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};i.watch(()=>e.theme,(o,a)=>{a&&r(a),u()},{immediate:!0}),i.onActivated(u),i.onDeactivated(r),i.onBeforeUnmount(r),i.watch(n,(o,a)=>{e.themeVarsScope==="global"&&Au(o,a)}),i.watch(()=>e.themeVarsScope,(o,a)=>{a==="global"&&Au({},n.value),o==="global"&&Au(n.value,{})}),e.themeVarsScope==="global"&&Au(n.value,{})}return i.provide(Ps,e),i.watchEffect(()=>{e.zIndex!==void 0&&Z_(e.zIndex)}),()=>i.createVNode(e.tag,{class:K_(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t)]}})}});const[tg,Ms]=wt("icon"),ng=e=>e==null?void 0:e.includes("/"),ug={dot:Boolean,tag:Re("i"),name:String,size:Oe,badge:Oe,color:String,badgeProps:Object,classPrefix:String};var rg=i.defineComponent({name:tg,props:ug,setup(e,{slots:t}){const n=i.inject(Ps,null),u=i.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Ms());return()=>{const{tag:r,dot:o,name:a,size:s,badge:l,color:c}=e,f=ng(a);return i.createVNode(G_,i.mergeProps({dot:o,tag:r,class:[u.value,f?"":`${u.value}-${a}`],style:{color:c,fontSize:Je(s)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),f&&i.createVNode("img",{class:Ms("image"),src:a},null)]}})}}});const Yt=Rt(rg),[og,jn]=wt("loading"),ag=Array(12).fill(null).map((e,t)=>i.createVNode("i",{class:jn("line",String(t+1))},null)),ig=i.createVNode("svg",{class:jn("circular"),viewBox:"25 25 50 50"},[i.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),sg={size:Oe,type:Re("circular"),color:String,vertical:Boolean,textSize:Oe,textColor:String};var lg=i.defineComponent({name:og,props:sg,setup(e,{slots:t}){const n=i.computed(()=>dt({color:e.color},N_(e.size))),u=()=>{const o=e.type==="spinner"?ag:ig;return i.createVNode("span",{class:jn("spinner",e.type),style:n.value},[t.icon?t.icon():o])},r=()=>{var o;if(t.default)return i.createVNode("span",{class:jn("text"),style:{fontSize:Je(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[t.default()])};return()=>{const{type:o,vertical:a}=e;return i.createVNode("div",{class:jn([o,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[u(),r()])}}});const cg=Rt(lg),fg={show:Boolean,zIndex:Oe,overlay:Vt,duration:Oe,teleport:[String,Object],lockScroll:Vt,lazyRender:Vt,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Mt,transitionAppear:Boolean,closeOnClickOverlay:Vt};function dg(e,t){return e>t?"horizontal":t>e?"vertical":""}function hg(){const e=i.ref(0),t=i.ref(0),n=i.ref(0),u=i.ref(0),r=i.ref(0),o=i.ref(0),a=i.ref(""),s=i.ref(!0),l=()=>a.value==="vertical",c=()=>a.value==="horizontal",f=()=>{n.value=0,u.value=0,r.value=0,o.value=0,a.value="",s.value=!0};return{move:_=>{const p=_.touches[0];n.value=(p.clientX<0?0:p.clientX)-e.value,u.value=p.clientY-t.value,r.value=Math.abs(n.value),o.value=Math.abs(u.value);const x=10;(!a.value||r.value<x&&o.value<x)&&(a.value=dg(r.value,o.value)),s.value&&(r.value>Ss||o.value>Ss)&&(s.value=!1)},start:_=>{f(),e.value=_.touches[0].clientX,t.value=_.touches[0].clientY},reset:f,startX:e,startY:t,deltaX:n,deltaY:u,offsetX:r,offsetY:o,direction:a,isVertical:l,isHorizontal:c,isTap:s}}let Hn=0;const Vs="van-overflow-hidden";function mg(e,t){const n=hg(),u="01",r="10",o=f=>{n.move(f);const d=n.deltaY.value>0?r:u,h=k_(f.target,e.value),{scrollHeight:_,offsetHeight:p,scrollTop:x}=h;let C="11";x===0?C=p>=_?"00":"01":x+p>=_&&(C="10"),C!=="11"&&n.isVertical()&&!(parseInt(C,2)&parseInt(d,2))&&zn(f,!0)},a=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),Hn||document.body.classList.add(Vs),Hn++},s=()=>{Hn&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),Hn--,Hn||document.body.classList.remove(Vs))},l=()=>t()&&a(),c=()=>t()&&s();xs(l),i.onDeactivated(c),i.onBeforeUnmount(c),i.watch(t,f=>{f?a():s()})}function Rs(e){const t=i.ref(!1);return i.watch(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Bs=()=>{var e;const{scopeId:t}=((e=i.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[pg,_g]=wt("overlay"),gg={show:Boolean,zIndex:Oe,duration:Oe,className:Mt,lockScroll:Vt,lazyRender:Vt,customStyle:Object,teleport:[String,Object]};var bg=i.defineComponent({name:pg,inheritAttrs:!1,props:gg,setup(e,{attrs:t,slots:n}){const u=i.ref(),r=Rs(()=>e.show||!e.lazyRender),o=s=>{e.lockScroll&&zn(s,!0)},a=r(()=>{var s;const l=dt(D_(e.zIndex),e.customStyle);return $e(e.duration)&&(l.animationDuration=`${e.duration}s`),i.withDirectives(i.createVNode("div",i.mergeProps({ref:u,style:l,class:[_g(),e.className]},t),[(s=n.default)==null?void 0:s.call(n)]),[[i.vShow,e.show]])});return $r("touchmove",o,{target:u}),()=>{const s=i.createVNode(i.Transition,{name:"van-fade",appear:!0},{default:a});return e.teleport?i.createVNode(i.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const Eg=Rt(bg),yg=dt({},fg,{round:Boolean,position:Re("center"),closeIcon:Re("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Re("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[kg,$s]=wt("popup");var xg=i.defineComponent({name:kg,inheritAttrs:!1,props:yg,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:u}){let r,o;const a=i.ref(),s=i.ref(),l=Rs(()=>e.show||!e.lazyRender),c=i.computed(()=>{const y={zIndex:a.value};if($e(e.duration)){const w=e.position==="center"?"animationDuration":"transitionDuration";y[w]=`${e.duration}s`}return y}),f=()=>{r||(r=!0,a.value=e.zIndex!==void 0?+e.zIndex:X_(),t("open"))},d=()=>{r&&$_(e.beforeClose,{done(){r=!1,t("close"),t("update:show",!1)}})},h=y=>{t("clickOverlay",y),e.closeOnClickOverlay&&d()},_=()=>{if(e.overlay){const y=dt({show:e.show,class:e.overlayClass,zIndex:a.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return i.createVNode(Eg,i.mergeProps(y,Bs(),{onClick:h}),{default:u["overlay-content"]})}},p=y=>{t("clickCloseIcon",y),d()},x=()=>{if(e.closeable)return i.createVNode(Yt,{role:"button",tabindex:0,name:e.closeIcon,class:[$s("close-icon",e.closeIconPosition),R_],classPrefix:e.iconPrefix,onClick:p},null)};let C;const D=()=>{C&&clearTimeout(C),C=setTimeout(()=>{t("opened")})},v=()=>t("closed"),m=y=>t("keydown",y),b=l(()=>{var y;const{destroyOnClose:w,round:T,position:A,safeAreaInsetTop:B,safeAreaInsetBottom:he,show:U}=e;if(!(!U&&w))return i.withDirectives(i.createVNode("div",i.mergeProps({ref:s,style:c.value,role:"dialog",tabindex:0,class:[$s({round:T,[A]:A}),{"van-safe-area-top":B,"van-safe-area-bottom":he}],onKeydown:m},n,Bs()),[(y=u.default)==null?void 0:y.call(u),x()]),[[i.vShow,U]])}),E=()=>{const{position:y,transition:w,transitionAppear:T}=e,A=y==="center"?"van-fade":`van-popup-slide-${y}`;return i.createVNode(i.Transition,{name:w||A,appear:T,onAfterEnter:D,onAfterLeave:v},{default:b})};return i.watch(()=>e.show,y=>{y&&!r&&(f(),n.tabindex===0&&i.nextTick(()=>{var w;(w=s.value)==null||w.focus()})),!y&&r&&(r=!1,t("close"))}),jr({popupRef:s}),mg(s,()=>e.show&&e.lockScroll),$r("popstate",()=>{e.closeOnPopstate&&(d(),o=!1)}),i.onMounted(()=>{e.show&&f()}),i.onActivated(()=>{o&&(t("update:show",!0),o=!1)}),i.onDeactivated(()=>{e.show&&e.teleport&&(d(),o=!0)}),i.provide(U_,()=>e.show),()=>e.teleport?i.createVNode(i.Teleport,{to:e.teleport},{default:()=>[_(),E()]}):i.createVNode(i.Fragment,null,[_(),E()])}});const Cg=Rt(xg);let vg=0;function wg(){const e=i.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++vg}`}const[Ng,gn]=wt("cell"),Us={tag:Re("div"),icon:String,size:String,title:Oe,value:Oe,label:Oe,center:Boolean,isLink:Boolean,border:Vt,iconPrefix:String,valueClass:Mt,labelClass:Mt,titleClass:Mt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Dg=dt({},Us,z_);var Tg=i.defineComponent({name:Ng,props:Dg,setup(e,{slots:t}){const n=H_(),u=()=>{if(t.label||$e(e.label))return i.createVNode("div",{class:[gn("label"),e.labelClass]},[t.label?t.label():e.label])},r=()=>{var l;if(t.title||$e(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:i.createVNode("div",{class:[gn("title"),e.titleClass],style:e.titleStyle},[c||i.createVNode("span",null,[e.title]),u()])}},o=()=>{const l=t.value||t.default;if(l||$e(e.value))return i.createVNode("div",{class:[gn("value"),e.valueClass]},[l?l():i.createVNode("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return i.createVNode(Yt,{name:e.icon,class:gn("left-icon"),classPrefix:e.iconPrefix},null)},s=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return i.createVNode(Yt,{name:l,class:gn("right-icon")},null)}};return()=>{var l;const{tag:c,size:f,center:d,border:h,isLink:_,required:p}=e,x=(l=e.clickable)!=null?l:_,C={center:d,required:!!p,clickable:x,borderless:!h};return f&&(C[f]=!!f),i.createVNode(c,{class:gn(C),role:x?"button":void 0,tabindex:x?0:void 0,onClick:n},{default:()=>{var D;return[a(),r(),o(),s(),(D=t.extra)==null?void 0:D.call(t)]}})}}});const Ag=Rt(Tg);function zs(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Ig(e,t){if(zs(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Sg(e,t){return new Promise(n=>{const u=t.validator(e,t);if(bs(u)){u.then(n);return}n(u)})}function js(e,t){const{message:n}=t;return Du(n)?n(e,t):n||""}function Og({target:e}){e.composing=!0}function Hs({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Lg(e,t){const n=vs();e.style.height="auto";let u=e.scrollHeight;if(Un(t)){const{maxHeight:r,minHeight:o}=t;r!==void 0&&(u=Math.min(u,r)),o!==void 0&&(u=Math.max(u,o))}u&&(e.style.height=`${u}px`,ws(n))}function Fg(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Nt(e){return[...e].length}function Hr(e,t){return[...e].slice(0,t).join("")}const[Pg,rt]=wt("field"),Mg={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Oe,max:Number,min:Number,formatter:Function,clearIcon:Re("clear"),modelValue:p_(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Re("focus"),formatTrigger:Re("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Vg=dt({},Us,Mg,{rows:Oe,type:Re("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Oe,labelClass:Mt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Rg=i.defineComponent({name:Pg,props:Vg,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const u=wg(),r=i.reactive({status:"unvalidated",focused:!1,validateMessage:""}),o=i.ref(),a=i.ref(),s=i.ref(),{parent:l}=__(B_),c=()=>{var I;return String((I=e.modelValue)!=null?I:"")},f=I=>{if($e(e[I]))return e[I];if(l&&$e(l.props[I]))return l.props[I]},d=i.computed(()=>{const I=f("readonly");if(e.clearable&&!I){const Z=c()!=="",X=e.clearTrigger==="always"||e.clearTrigger==="focus"&&r.focused;return Z&&X}return!1}),h=i.computed(()=>s.value&&n.input?s.value():e.modelValue),_=i.computed(()=>{var I;const Z=f("required");return Z==="auto"?(I=e.rules)==null?void 0:I.some(X=>X.required):Z}),p=I=>I.reduce((Z,X)=>Z.then(()=>{if(r.status==="failed")return;let{value:se}=h;if(X.formatter&&(se=X.formatter(se,X)),!Ig(se,X)){r.status="failed",r.validateMessage=js(se,X);return}if(X.validator)return zs(se)&&X.validateEmpty===!1?void 0:Sg(se,X).then(ee=>{ee&&typeof ee=="string"?(r.status="failed",r.validateMessage=ee):ee===!1&&(r.status="failed",r.validateMessage=js(se,X))})}),Promise.resolve()),x=()=>{r.status="unvalidated",r.validateMessage=""},C=()=>t("endValidate",{status:r.status,message:r.validateMessage}),D=(I=e.rules)=>new Promise(Z=>{x(),I?(t("startValidate"),p(I).then(()=>{r.status==="failed"?(Z({name:e.name,message:r.validateMessage}),C()):(r.status="passed",Z(),C())})):Z()}),v=I=>{if(l&&e.rules){const{validateTrigger:Z}=l.props,X=ks(Z).includes(I),se=e.rules.filter(ee=>ee.trigger?ks(ee.trigger).includes(I):X);se.length&&D(se)}},m=I=>{var Z;const{maxlength:X}=e;if($e(X)&&Nt(I)>+X){const se=c();if(se&&Nt(se)===+X)return se;const ee=(Z=o.value)==null?void 0:Z.selectionEnd;if(r.focused&&ee){const Ae=[...I],qe=Ae.length-+X;return Ae.splice(ee-qe,qe),Ae.join("")}return Hr(I,+X)}return I},b=(I,Z="onChange")=>{var X,se;const ee=I;I=m(I);const Ae=Nt(ee)-Nt(I);if(e.type==="number"||e.type==="digit"){const O=e.type==="number";if(I=S_(I,O,O),Z==="onBlur"&&I!==""&&(e.min!==void 0||e.max!==void 0)){const z=I_(+I,(X=e.min)!=null?X:-1/0,(se=e.max)!=null?se:1/0);+I!==z&&(I=z.toString())}}let qe=0;if(e.formatter&&Z===e.formatTrigger){const{formatter:O,maxlength:z}=e;if(I=O(I),$e(z)&&Nt(I)>+z&&(I=Hr(I,+z)),o.value&&r.focused){const{selectionEnd:ot}=o.value,le=Hr(ee,ot);qe=Nt(O(le))-Nt(le)}}if(o.value&&o.value.value!==I)if(r.focused){let{selectionStart:O,selectionEnd:z}=o.value;if(o.value.value=I,$e(O)&&$e(z)){const ot=Nt(I);Ae?(O-=Ae,z-=Ae):qe&&(O+=qe,z+=qe),o.value.setSelectionRange(Math.min(O,ot),Math.min(z,ot))}}else o.value.value=I;I!==e.modelValue&&t("update:modelValue",I)},E=I=>{I.target.composing||b(I.target.value)},y=()=>{var I;return(I=o.value)==null?void 0:I.blur()},w=()=>{var I;return(I=o.value)==null?void 0:I.focus()},T=()=>{const I=o.value;e.type==="textarea"&&e.autosize&&I&&Lg(I,e.autosize)},A=I=>{r.focused=!0,t("focus",I),i.nextTick(T),f("readonly")&&y()},B=I=>{r.focused=!1,b(c(),"onBlur"),t("blur",I),!f("readonly")&&(v("onBlur"),i.nextTick(T),v_())},he=I=>t("clickInput",I),U=I=>t("clickLeftIcon",I),R=I=>t("clickRightIcon",I),Q=I=>{zn(I),t("update:modelValue",""),t("clear",I)},q=i.computed(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&r.status==="failed")return!0}),ue=i.computed(()=>{const I=f("labelWidth"),Z=f("labelAlign");if(I&&Z!=="top")return{width:Je(I)}}),Ue=I=>{I.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&zn(I),e.type==="search"&&y()),t("keypress",I)},M=()=>e.id||`${u}-input`,Y=()=>r.status,P=()=>{const I=rt("control",[f("inputAlign"),{error:q.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return i.createVNode("div",{class:I,onClick:he},[n.input()]);const Z={id:M(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:I,disabled:f("disabled"),readonly:f("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${u}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:B,onFocus:A,onInput:E,onClick:he,onChange:Hs,onKeypress:Ue,onCompositionend:Hs,onCompositionstart:Og};return e.type==="textarea"?i.createVNode("textarea",i.mergeProps(Z,{inputmode:e.inputmode}),null):i.createVNode("input",i.mergeProps(Fg(e.type,e.inputmode),Z),null)},_e=()=>{const I=n["left-icon"];if(e.leftIcon||I)return i.createVNode("div",{class:rt("left-icon"),onClick:U},[I?I():i.createVNode(Yt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},W=()=>{const I=n["right-icon"];if(e.rightIcon||I)return i.createVNode("div",{class:rt("right-icon"),onClick:R},[I?I():i.createVNode(Yt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Le=()=>{if(e.showWordLimit&&e.maxlength){const I=Nt(c());return i.createVNode("div",{class:rt("word-limit")},[i.createVNode("span",{class:rt("word-num")},[I]),i.createTextVNode("/"),e.maxlength])}},re=()=>{if(l&&l.props.showErrorMessage===!1)return;const I=e.errorMessage||r.validateMessage;if(I){const Z=n["error-message"],X=f("errorMessageAlign");return i.createVNode("div",{class:rt("error-message",X)},[Z?Z({message:I}):I])}},ht=()=>{const I=f("labelWidth"),Z=f("labelAlign"),X=f("colon")?":":"";if(n.label)return[n.label(),X];if(e.label)return i.createVNode("label",{id:`${u}-label`,for:n.input?void 0:M(),"data-allow-mismatch":"attribute",onClick:se=>{zn(se),w()},style:Z==="top"&&I?{width:Je(I)}:void 0},[e.label+X])},ie=()=>[i.createVNode("div",{class:rt("body")},[P(),d.value&&i.createVNode(Yt,{ref:a,name:e.clearIcon,class:rt("clear")},null),W(),n.button&&i.createVNode("div",{class:rt("button")},[n.button()])]),Le(),re()];return jr({blur:y,focus:w,validate:D,formValue:h,resetValidation:x,getValidationStatus:Y}),i.provide(x_,{customValue:s,resetValidation:x,validateWithTrigger:v}),i.watch(()=>e.modelValue,()=>{b(c()),x(),v("onChange"),i.nextTick(T)}),i.onMounted(()=>{b(c(),e.formatTrigger),i.nextTick(T)}),$r("touchstart",Q,{target:i.computed(()=>{var I;return(I=a.value)==null?void 0:I.$el})}),()=>{const I=f("disabled"),Z=f("labelAlign"),X=_e(),se=()=>{const ee=ht();return Z==="top"?[X,ee].filter(Boolean):ee||[]};return i.createVNode(Ag,{size:e.size,class:rt({error:q.value,disabled:I,[`label-${Z}`]:Z}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:ue.value,valueClass:rt("value"),titleClass:[rt("label",[Z,{required:_.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:X&&Z!=="top"?()=>X:null,title:se,value:ie,extra:n.extra})}}});const Bg=Rt(Rg);let qn=0;function $g(e){e?(qn||document.body.classList.add("van-toast--unclickable"),qn++):qn&&(qn--,qn||document.body.classList.remove("van-toast--unclickable"))}const[Ug,bn]=wt("toast"),zg=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],jg={icon:String,show:Boolean,type:Re("text"),overlay:Boolean,message:Oe,iconSize:Oe,duration:m_(2e3),position:Re("middle"),teleport:[String,Object],wordBreak:String,className:Mt,iconPrefix:String,transition:Re("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Mt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Oe};var qs=i.defineComponent({name:Ug,props:jg,emits:["update:show"],setup(e,{emit:t,slots:n}){let u,r=!1;const o=()=>{const d=e.show&&e.forbidClick;r!==d&&(r=d,$g(r))},a=d=>t("update:show",d),s=()=>{e.closeOnClick&&a(!1)},l=()=>clearTimeout(u),c=()=>{const{icon:d,type:h,iconSize:_,iconPrefix:p,loadingType:x}=e;if(d||h==="success"||h==="fail")return i.createVNode(Yt,{name:d||h,size:_,class:bn("icon"),classPrefix:p},null);if(h==="loading")return i.createVNode(cg,{class:bn("loading"),size:_,type:x},null)},f=()=>{const{type:d,message:h}=e;if(n.message)return i.createVNode("div",{class:bn("text")},[n.message()]);if($e(h)&&h!=="")return d==="html"?i.createVNode("div",{key:0,class:bn("text"),innerHTML:String(h)},null):i.createVNode("div",{class:bn("text")},[h])};return i.watch(()=>[e.show,e.forbidClick],o),i.watch(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(u=setTimeout(()=>{a(!1)},e.duration))}),i.onMounted(o),i.onUnmounted(o),()=>i.createVNode(Cg,i.mergeProps({class:[bn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":a},h_(e,zg)),{default:()=>[c(),f()]})}});function Hg(){const e=i.reactive({show:!1}),t=r=>{e.show=r},n=r=>{dt(e,r,{transitionAppear:!0}),t(!0)},u=()=>t(!1);return jr({open:n,close:u,toggle:t}),{open:n,close:u,state:e,toggle:t}}function qg(e){const t=i.createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Wg={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Iu=[],Yg=!1,Ws=dt({},Wg);const Gg=new Map;function Xg(e){return Un(e)?e:{message:e}}function Zg(){const{instance:e}=qg({setup(){const t=i.ref(""),{open:n,state:u,close:r,toggle:o}=Hg(),a=()=>{},s=()=>{const l={onClosed:a,"onUpdate:show":o};return i.createVNode(qs,i.mergeProps(u,l),null)};return i.watch(t,l=>{u.message=l}),i.getCurrentInstance().render=s,{open:n,close:r,message:t}}});return e}function Kg(){if(!Iu.length||Yg){const e=Zg();Iu.push(e)}return Iu[Iu.length-1]}function Dt(e={}){if(!Rr)return{};const t=Kg(),n=Xg(e);return t.open(dt({},Ws,Gg.get(n.type||Ws.type),n)),t}Rt(qs);const Jg={class:"pf_wrap"},Qg={class:"pf_form"},eb=["onClick"],tb={key:0,class:"sex_wrap"},nb={key:1,class:"input_wrap"},ub={class:"unit"},rb={key:2,class:"sport_wrap"},ob=["onClick"],ab={class:"name"},ib={class:"sub"},sb={key:3,class:"taste_wrap"},lb={class:"box"},cb=["onClick"],fb={class:"box"},db=["onClick"],hb=ke({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const{t:n,locale:u}=tn(),r=i.ref(!1),o=e,a=i.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",taste:[],taboo:[],title:"标题",unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),s=i.ref([{key:"rest",name:n("personal_form.sport_list.rest"),sub:n("personal_form.sport_list.rest_sub")},{key:"sedentary",name:n("personal_form.sport_list.sedentary"),sub:n("personal_form.sport_list.sedentary_sub")},{key:"light",name:n("personal_form.sport_list.light"),sub:n("personal_form.sport_list.light_sub")},{key:"medium",name:n("personal_form.sport_list.medium"),sub:n("personal_form.sport_list.medium_sub")},{key:"heavy",name:n("personal_form.sport_list.heavy"),sub:n("personal_form.sport_list.heavy_sub")}]),l=i.computed(()=>n("personal_form.taste_list")),c=i.computed(()=>n("personal_form.taboo_list")),f=i.ref([{key:"sex",label:n("personal_form.sex"),value:"",placeholder:n("personal_form.placeholder.sex"),required:!0},{key:"age",label:n("personal_form.age"),value:"",placeholder:n("personal_form.placeholder.age"),unit:n("personal_form.unit.age"),required:!0},{key:"height",label:n("personal_form.height"),value:"",placeholder:n("personal_form.placeholder.height"),unit:n("personal_form.unit.height"),required:!0},{key:"weight",label:n("personal_form.weight"),value:"",placeholder:n("personal_form.placeholder.weight"),unit:n("personal_form.unit.weight"),required:!0},{key:"sport",label:n("personal_form.sport"),value:"sedentary",placeholder:n("personal_form.placeholder.sport"),required:!0},{key:"taste",label:n("personal_form.taste"),value:"",taste:[],taboo:[],placeholder:n("personal_form.placeholder.taste"),required:!1}]),d=t;i.onMounted(()=>{const m=localStorage.getItem("personalInfo");if(m){const b=JSON.parse(m);for(let E=0;E<f.value.length;E++){const y=b.find(w=>w.key===f.value[E].key);y&&(f.value[E].value=y.value||"",y.taste&&(f.value[E].taste=y.taste),y.taboo&&(f.value[E].taboo=y.taboo))}}console.log("== xx ===",f.value)});const h=i.computed(()=>f.value.filter(m=>m.key!=="taste").every(m=>m.value!=="")),_=m=>{switch(a.value.key=m.key,m.key){case"sex":a.value.title=n("personal_form.dialog.sex"),a.value.dialogHeight="300px",a.value.sex=m.value;break;case"age":a.value.title=n("personal_form.dialog.age"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.age=m.value,a.value.min=6,a.value.max=100,a.value.type="number";break;case"height":a.value.title=n("personal_form.dialog.height"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.height=m.value,a.value.min=100,a.value.max=220,a.value.type="digit";break;case"weight":a.value.title=n("personal_form.dialog.weight"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.weight=m.value,a.value.min=10,a.value.max=150,a.value.type="digit";break;case"sport":a.value.title=n("personal_form.dialog.sport"),a.value.dialogHeight="420px",a.value.unit="",a.value.sport=m.value;break;case"taste":a.value.title=n("personal_form.dialog.taste"),a.value.dialogHeight="500px",a.value.unit="",a.value.taste=[...m.taste],a.value.taboo=[...m.taboo];break}console.log(a.value,m),r.value=!0},p=()=>{switch(a.value.key){case"sex":if(!a.value.sex){Dt(n("personal_form.toast.select_sex"));return}f.value.find(m=>m.key==="sex").value=a.value.sex;break;case"age":if(!a.value.age){Dt(n("personal_form.toast.input_age"));return}f.value.find(m=>m.key==="age").value=a.value.age;break;case"height":if(!a.value.height){Dt(n("personal_form.toast.input_height"));return}f.value.find(m=>m.key==="height").value=a.value.height;break;case"weight":if(!a.value.weight){Dt(n("personal_form.toast.input_weight"));return}f.value.find(m=>m.key==="weight").value=a.value.weight;break;case"sport":if(!a.value.sport){Dt(n("personal_form.toast.select_sport"));return}f.value.find(m=>m.key==="sport").value=a.value.sport;break;case"taste":f.value.find(m=>m.key==="taste").taste=a.value.taste,f.value.find(m=>m.key==="taste").taboo=a.value.taboo,f.value.find(m=>m.key==="taste").value=[...a.value.taste,...a.value.taboo].join("、");break}r.value=!1},x=()=>{if(!h.value){Dt(n("personal_form.toast.fill_all"));return}const m=f.value.findIndex(T=>T.key==="age"),b=f.value.findIndex(T=>T.key==="height"),E=f.value.findIndex(T=>T.key==="weight");if(f.value[m].value<6||f.value[m].value>100){Dt(n("personal_form.toast.age_range"));return}if(f.value[b].value<100||f.value[b].value>220){Dt(n("personal_form.toast.height_range"));return}if(f.value[E].value<10||f.value[E].value>150){Dt(n("personal_form.toast.weight_range"));return}const y=f.value.map(T=>{const{value:A,taste:B,taboo:he}=T;return{key:T.key,value:A,taste:B,taboo:he}});localStorage.setItem("personalInfo",JSON.stringify(y));const w=`${o.query};
|
|
70
|
+
| 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new it,n=e,i=o.computed(()=>t.render(n.content));return(r,a)=>(o.openBlock(),o.createElementBlock("div",{innerHTML:i.value},null,8,eg))}},ng={},ig={width:"1em",height:"1em",viewBox:"0 0 44 44",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function rg(e,t){return o.openBlock(),o.createElementBlock("svg",ig,t[0]||(t[0]=[o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("g",{transform:"translate(44, 0) rotate(90)"},[o.createElementVNode("polyline",{stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",points:"16 10 28 22 16 34"})])],-1)]))}const ag=ve(ng,[["render",rg]]),ug={class:"pup_header"},og={class:"left"},lg={class:"title"},sg={class:"right"},cg={class:"pup_content",style:{height:"calc(height - 56px)"}},fg=ve({__name:"popup",props:{show:{type:Boolean,default:!1},height:{type:String,default:"50vh"},title:{type:String,default:""}},emits:["update:show","confirm","close"],setup(e,{emit:t}){const{t:n}=tn(),i=e,r=t,a=o.ref(!1),u=o.ref(`-${i.height}`),l=o.ref({delay:300,bottom:`-${i.height}`,opacity:0}),s=d=>{d?(l.value.bottom="0",l.value.opacity=.5):(l.value.bottom=`-${i.height}`,l.value.opacity=0)},c=()=>{r("confirm",{})};o.watch(()=>i.show,(d,p)=>{d?(u.value=`-${i.height}`,a.value=!0,setTimeout(()=>{s(!0)},0)):(s(!1),setTimeout(()=>{a.value=!1},300))});const f=()=>{r("update:show",!1),s(!1),setTimeout(()=>{a.value=!1},300)};return(d,p)=>a.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"pup_mask",style:o.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${l.value.opacity})`}),onClick:o.withModifiers(f,["stop"])},[o.createElementVNode("div",{class:"pup_wrap",style:o.normalizeStyle({height:e.height,bottom:l.value.bottom}),onClick:o.withModifiers(()=>{},["stop"])},[o.createElementVNode("div",ug,[o.createElementVNode("div",og,[o.createElementVNode("div",{class:"icon_down",onClick:o.withModifiers(f,["stop"])},[o.createVNode(ag)])]),o.createElementVNode("div",lg,o.toDisplayString(e.title),1),o.createElementVNode("div",sg,[o.createElementVNode("div",{class:"btn",onClick:c},o.toDisplayString(o.unref(n)("common.confirm")),1)])]),o.createElementVNode("div",cg,[o.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):o.createCommentVNode("",!0)}},[["__scopeId","data-v-b2b0e400"]]);function dg(){}const dt=Object.assign,Rr=typeof window<"u",$n=e=>e!==null&&typeof e=="object",Be=e=>e!=null,Di=e=>typeof e=="function",xl=e=>$n(e)&&Di(e.then)&&Di(e.catch),yl=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),pg=()=>Rr?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function vl(e,t){const n=t.split(".");let i=e;return n.forEach(r=>{var a;i=$n(i)&&(a=i[r])!=null?a:""}),i}function hg(e,t,n){return t.reduce((i,r)=>(i[r]=e[r],i),{})}const El=e=>Array.isArray(e)?e:[e],Mt=null,Oe=[Number,String],Vt={type:Boolean,default:!0},mg=e=>({type:Number,default:e}),gg=e=>({type:Oe,default:e}),Re=e=>({type:String,default:e});var jr=typeof window<"u";function bg(e){const t=o.inject(e,null);if(t){const n=o.getCurrentInstance(),{link:i,unlink:r,internalChildren:a}=t;i(n),o.onUnmounted(()=>r(n));const u=o.computed(()=>a.indexOf(n));return{parent:t,index:u}}return{parent:null,index:o.ref(-1)}}function wl(e){let t;o.onMounted(()=>{e(),o.nextTick(()=>{t=!0})}),o.onActivated(()=>{t&&e()})}function Br(e,t,n={}){if(!jr)return;const{target:i=window,passive:r=!1,capture:a=!1}=n;let u=!1,l;const s=d=>{if(u)return;const p=o.unref(d);p&&!l&&(p.addEventListener(e,t,{capture:a,passive:r}),l=!0)},c=d=>{if(u)return;const p=o.unref(d);p&&l&&(p.removeEventListener(e,t,a),l=!1)};o.onUnmounted(()=>c(i)),o.onDeactivated(()=>c(i)),wl(()=>s(i));let f;return o.isRef(i)&&(f=o.watch(i,(d,p)=>{c(p),s(d)})),()=>{f==null||f(),c(i),u=!0}}var Ti,$r;function _g(){if(!Ti&&(Ti=o.ref(0),$r=o.ref(0),jr)){const e=()=>{Ti.value=window.innerWidth,$r.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Ti,height:$r}}var xg=/scroll|auto|overlay/i,yg=jr?window:void 0;function vg(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Eg(e,t=yg){let n=e;for(;n&&n!==t&&vg(n);){const{overflowY:i}=window.getComputedStyle(n);if(xg.test(i))return n;n=n.parentNode}return t}var wg=Symbol("van-field");function kl(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function Cl(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Nl(e){kl(window,e),kl(document.body,e)}const kg=pg();function Cg(){kg&&Nl(Cl())}const Ng=e=>e.stopPropagation();function zn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Ng(e)}_g();function Je(e){if(Be(e))return yl(e)?`${e}px`:String(e)}function Dg(e){if(Be(e)){if(Array.isArray(e))return{width:Je(e[0]),height:Je(e[1])};const t=Je(e);return{width:t,height:t}}}function Tg(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const Ag=/-(\w)/g,Dl=e=>e.replace(Ag,(t,n)=>n.toUpperCase()),Ig=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Sg=(e,t,n)=>Math.min(Math.max(e,t),n);function Tl(e,t,n){const i=e.indexOf(t);return i===-1?e:t==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(n,"")}function Og(e,t=!0,n=!0){t?e=Tl(e,".",/\./g):e=e.split(".")[0],n?e=Tl(e,"-",/-/g):e=e.replace(/-/,"");const i=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}const{hasOwnProperty:Lg}=Object.prototype;function Fg(e,t,n){const i=t[n];Be(i)&&(!Lg.call(e,n)||!$n(i)?e[n]=i:e[n]=Al(Object(e[n]),i))}function Al(e,t){return Object.keys(t).forEach(n=>{Fg(e,t,n)}),e}var Pg={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const Il=o.ref("zh-CN"),Sl=o.reactive({"zh-CN":Pg});var Mg={messages(){return Sl[Il.value]},use(e,t){Il.value=e,this.add({[e]:t})},add(e={}){Al(Sl,e)}};function Vg(e){const t=Dl(e)+".";return(n,...i)=>{const r=Mg.messages(),a=vl(r,t+n)||vl(r,n);return Di(a)?a(...i):a}}function zr(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,i)=>n+zr(e,i),""):Object.keys(t).reduce((n,i)=>n+(t[i]?zr(e,i):""),""):""}function Rg(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${zr(t,n)}`)}function Ct(e){const t=`van-${e}`;return[t,Rg(t),Vg(t)]}const jg="van-haptics-feedback",Bg=Symbol("van-form"),Ol=5;function $g(e,{args:t=[],done:n,canceled:i,error:r}){if(e){const a=e.apply(null,t);xl(a)?a.then(u=>{u?n():i&&i()}).catch(r||dg):a?n():i&&i()}else n()}function Rt(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(Dl(`-${n}`),e))},e}const zg=Symbol();function Ur(e){const t=o.getCurrentInstance();t&&dt(t.proxy,e)}const Ug={to:[String,Object],url:String,replace:Boolean};function Hg({to:e,url:t,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function qg(){const e=o.getCurrentInstance().proxy;return()=>Hg(e)}const[Wg,Ll]=Ct("badge"),Yg={dot:Boolean,max:Oe,tag:Re("div"),color:String,offset:Array,content:Oe,showZero:Vt,position:Re("top-right")};var Gg=o.defineComponent({name:Wg,props:Yg,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:l,showZero:s}=e;return Be(l)&&l!==""&&(s||l!==0&&l!=="0")},i=()=>{const{dot:l,max:s,content:c}=e;if(!l&&n())return t.content?t.content():Be(s)&&yl(c)&&+c>+s?`${s}+`:c},r=l=>l.startsWith("-")?l.replace("-",""):`-${l}`,a=o.computed(()=>{const l={background:e.color};if(e.offset){const[s,c]=e.offset,{position:f}=e,[d,p]=f.split("-");t.default?(typeof c=="number"?l[d]=Je(d==="top"?c:-c):l[d]=d==="top"?Je(c):r(c),typeof s=="number"?l[p]=Je(p==="left"?s:-s):l[p]=p==="left"?Je(s):r(s)):(l.marginTop=Je(c),l.marginLeft=Je(s))}return l}),u=()=>{if(n()||e.dot)return o.createVNode("div",{class:Ll([e.position,{dot:e.dot,fixed:!!t.default}]),style:a.value},[i()])};return()=>{if(t.default){const{tag:l}=e;return o.createVNode(l,{class:Ll("wrapper")},{default:()=>[t.default(),u()]})}return u()}}});const Xg=Rt(Gg);let Fl=2e3;const Zg=()=>++Fl,Kg=e=>{Fl=e},[Pl,Jg]=Ct("config-provider"),Ml=Symbol(Pl),Qg={tag:Re("div"),theme:Re("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Re("local"),iconPrefix:String};function eb(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function tb(e){const t={};return Object.keys(e).forEach(n=>{const i=eb(Ig(n));t[`--van-${i}`]=e[n]}),t}function Ai(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}o.defineComponent({name:Pl,props:Qg,setup(e,{slots:t}){const n=o.computed(()=>tb(dt({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Rr){const i=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},r=(a=e.theme)=>{document.documentElement.classList.remove(`van-theme-${a}`)};o.watch(()=>e.theme,(a,u)=>{u&&r(u),i()},{immediate:!0}),o.onActivated(i),o.onDeactivated(r),o.onBeforeUnmount(r),o.watch(n,(a,u)=>{e.themeVarsScope==="global"&&Ai(a,u)}),o.watch(()=>e.themeVarsScope,(a,u)=>{u==="global"&&Ai({},n.value),a==="global"&&Ai(n.value,{})}),e.themeVarsScope==="global"&&Ai(n.value,{})}return o.provide(Ml,e),o.watchEffect(()=>{e.zIndex!==void 0&&Kg(e.zIndex)}),()=>o.createVNode(e.tag,{class:Jg(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t)]}})}});const[nb,Vl]=Ct("icon"),ib=e=>e==null?void 0:e.includes("/"),rb={dot:Boolean,tag:Re("i"),name:String,size:Oe,badge:Oe,color:String,badgeProps:Object,classPrefix:String};var ab=o.defineComponent({name:nb,props:rb,setup(e,{slots:t}){const n=o.inject(Ml,null),i=o.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Vl());return()=>{const{tag:r,dot:a,name:u,size:l,badge:s,color:c}=e,f=ib(u);return o.createVNode(Xg,o.mergeProps({dot:a,tag:r,class:[i.value,f?"":`${i.value}-${u}`],style:{color:c,fontSize:Je(l)},content:s},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),f&&o.createVNode("img",{class:Vl("image"),src:u},null)]}})}}});const Yt=Rt(ab),[ub,Un]=Ct("loading"),ob=Array(12).fill(null).map((e,t)=>o.createVNode("i",{class:Un("line",String(t+1))},null)),lb=o.createVNode("svg",{class:Un("circular"),viewBox:"25 25 50 50"},[o.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),sb={size:Oe,type:Re("circular"),color:String,vertical:Boolean,textSize:Oe,textColor:String};var cb=o.defineComponent({name:ub,props:sb,setup(e,{slots:t}){const n=o.computed(()=>dt({color:e.color},Dg(e.size))),i=()=>{const a=e.type==="spinner"?ob:lb;return o.createVNode("span",{class:Un("spinner",e.type),style:n.value},[t.icon?t.icon():a])},r=()=>{var a;if(t.default)return o.createVNode("span",{class:Un("text"),style:{fontSize:Je(e.textSize),color:(a=e.textColor)!=null?a:e.color}},[t.default()])};return()=>{const{type:a,vertical:u}=e;return o.createVNode("div",{class:Un([a,{vertical:u}]),"aria-live":"polite","aria-busy":!0},[i(),r()])}}});const fb=Rt(cb),db={show:Boolean,zIndex:Oe,overlay:Vt,duration:Oe,teleport:[String,Object],lockScroll:Vt,lazyRender:Vt,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Mt,transitionAppear:Boolean,closeOnClickOverlay:Vt};function pb(e,t){return e>t?"horizontal":t>e?"vertical":""}function hb(){const e=o.ref(0),t=o.ref(0),n=o.ref(0),i=o.ref(0),r=o.ref(0),a=o.ref(0),u=o.ref(""),l=o.ref(!0),s=()=>u.value==="vertical",c=()=>u.value==="horizontal",f=()=>{n.value=0,i.value=0,r.value=0,a.value=0,u.value="",l.value=!0};return{move:g=>{const m=g.touches[0];n.value=(m.clientX<0?0:m.clientX)-e.value,i.value=m.clientY-t.value,r.value=Math.abs(n.value),a.value=Math.abs(i.value);const E=10;(!u.value||r.value<E&&a.value<E)&&(u.value=pb(r.value,a.value)),l.value&&(r.value>Ol||a.value>Ol)&&(l.value=!1)},start:g=>{f(),e.value=g.touches[0].clientX,t.value=g.touches[0].clientY},reset:f,startX:e,startY:t,deltaX:n,deltaY:i,offsetX:r,offsetY:a,direction:u,isVertical:s,isHorizontal:c,isTap:l}}let Hn=0;const Rl="van-overflow-hidden";function mb(e,t){const n=hb(),i="01",r="10",a=f=>{n.move(f);const d=n.deltaY.value>0?r:i,p=Eg(f.target,e.value),{scrollHeight:g,offsetHeight:m,scrollTop:E}=p;let w="11";E===0?w=m>=g?"00":"01":E+m>=g&&(w="10"),w!=="11"&&n.isVertical()&&!(parseInt(w,2)&parseInt(d,2))&&zn(f,!0)},u=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",a,{passive:!1}),Hn||document.body.classList.add(Rl),Hn++},l=()=>{Hn&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",a),Hn--,Hn||document.body.classList.remove(Rl))},s=()=>t()&&u(),c=()=>t()&&l();wl(s),o.onDeactivated(c),o.onBeforeUnmount(c),o.watch(t,f=>{f?u():l()})}function jl(e){const t=o.ref(!1);return o.watch(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Bl=()=>{var e;const{scopeId:t}=((e=o.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[gb,bb]=Ct("overlay"),_b={show:Boolean,zIndex:Oe,duration:Oe,className:Mt,lockScroll:Vt,lazyRender:Vt,customStyle:Object,teleport:[String,Object]};var xb=o.defineComponent({name:gb,inheritAttrs:!1,props:_b,setup(e,{attrs:t,slots:n}){const i=o.ref(),r=jl(()=>e.show||!e.lazyRender),a=l=>{e.lockScroll&&zn(l,!0)},u=r(()=>{var l;const s=dt(Tg(e.zIndex),e.customStyle);return Be(e.duration)&&(s.animationDuration=`${e.duration}s`),o.withDirectives(o.createVNode("div",o.mergeProps({ref:i,style:s,class:[bb(),e.className]},t),[(l=n.default)==null?void 0:l.call(n)]),[[o.vShow,e.show]])});return Br("touchmove",a,{target:i}),()=>{const l=o.createVNode(o.Transition,{name:"van-fade",appear:!0},{default:u});return e.teleport?o.createVNode(o.Teleport,{to:e.teleport},{default:()=>[l]}):l}}});const yb=Rt(xb),vb=dt({},db,{round:Boolean,position:Re("center"),closeIcon:Re("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Re("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Eb,$l]=Ct("popup");var wb=o.defineComponent({name:Eb,inheritAttrs:!1,props:vb,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:i}){let r,a;const u=o.ref(),l=o.ref(),s=jl(()=>e.show||!e.lazyRender),c=o.computed(()=>{const y={zIndex:u.value};if(Be(e.duration)){const C=e.position==="center"?"animationDuration":"transitionDuration";y[C]=`${e.duration}s`}return y}),f=()=>{r||(r=!0,u.value=e.zIndex!==void 0?+e.zIndex:Zg(),t("open"))},d=()=>{r&&$g(e.beforeClose,{done(){r=!1,t("close"),t("update:show",!1)}})},p=y=>{t("clickOverlay",y),e.closeOnClickOverlay&&d()},g=()=>{if(e.overlay){const y=dt({show:e.show,class:e.overlayClass,zIndex:u.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return o.createVNode(yb,o.mergeProps(y,Bl(),{onClick:p}),{default:i["overlay-content"]})}},m=y=>{t("clickCloseIcon",y),d()},E=()=>{if(e.closeable)return o.createVNode(Yt,{role:"button",tabindex:0,name:e.closeIcon,class:[$l("close-icon",e.closeIconPosition),jg],classPrefix:e.iconPrefix,onClick:m},null)};let w;const D=()=>{w&&clearTimeout(w),w=setTimeout(()=>{t("opened")})},k=()=>t("closed"),h=y=>t("keydown",y),_=s(()=>{var y;const{destroyOnClose:C,round:T,position:A,safeAreaInsetTop:j,safeAreaInsetBottom:pe,show:$}=e;if(!(!$&&C))return o.withDirectives(o.createVNode("div",o.mergeProps({ref:l,style:c.value,role:"dialog",tabindex:0,class:[$l({round:T,[A]:A}),{"van-safe-area-top":j,"van-safe-area-bottom":pe}],onKeydown:h},n,Bl()),[(y=i.default)==null?void 0:y.call(i),E()]),[[o.vShow,$]])}),x=()=>{const{position:y,transition:C,transitionAppear:T}=e,A=y==="center"?"van-fade":`van-popup-slide-${y}`;return o.createVNode(o.Transition,{name:C||A,appear:T,onAfterEnter:D,onAfterLeave:k},{default:_})};return o.watch(()=>e.show,y=>{y&&!r&&(f(),n.tabindex===0&&o.nextTick(()=>{var C;(C=l.value)==null||C.focus()})),!y&&r&&(r=!1,t("close"))}),Ur({popupRef:l}),mb(l,()=>e.show&&e.lockScroll),Br("popstate",()=>{e.closeOnPopstate&&(d(),a=!1)}),o.onMounted(()=>{e.show&&f()}),o.onActivated(()=>{a&&(t("update:show",!0),a=!1)}),o.onDeactivated(()=>{e.show&&e.teleport&&(d(),a=!0)}),o.provide(zg,()=>e.show),()=>e.teleport?o.createVNode(o.Teleport,{to:e.teleport},{default:()=>[g(),x()]}):o.createVNode(o.Fragment,null,[g(),x()])}});const kb=Rt(wb);let Cb=0;function Nb(){const e=o.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++Cb}`}const[Db,bn]=Ct("cell"),zl={tag:Re("div"),icon:String,size:String,title:Oe,value:Oe,label:Oe,center:Boolean,isLink:Boolean,border:Vt,iconPrefix:String,valueClass:Mt,labelClass:Mt,titleClass:Mt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Tb=dt({},zl,Ug);var Ab=o.defineComponent({name:Db,props:Tb,setup(e,{slots:t}){const n=qg(),i=()=>{if(t.label||Be(e.label))return o.createVNode("div",{class:[bn("label"),e.labelClass]},[t.label?t.label():e.label])},r=()=>{var s;if(t.title||Be(e.title)){const c=(s=t.title)==null?void 0:s.call(t);return Array.isArray(c)&&c.length===0?void 0:o.createVNode("div",{class:[bn("title"),e.titleClass],style:e.titleStyle},[c||o.createVNode("span",null,[e.title]),i()])}},a=()=>{const s=t.value||t.default;if(s||Be(e.value))return o.createVNode("div",{class:[bn("value"),e.valueClass]},[s?s():o.createVNode("span",null,[e.value])])},u=()=>{if(t.icon)return t.icon();if(e.icon)return o.createVNode(Yt,{name:e.icon,class:bn("left-icon"),classPrefix:e.iconPrefix},null)},l=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const s=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return o.createVNode(Yt,{name:s,class:bn("right-icon")},null)}};return()=>{var s;const{tag:c,size:f,center:d,border:p,isLink:g,required:m}=e,E=(s=e.clickable)!=null?s:g,w={center:d,required:!!m,clickable:E,borderless:!p};return f&&(w[f]=!!f),o.createVNode(c,{class:bn(w),role:E?"button":void 0,tabindex:E?0:void 0,onClick:n},{default:()=>{var D;return[u(),r(),a(),l(),(D=t.extra)==null?void 0:D.call(t)]}})}}});const Ib=Rt(Ab);function Ul(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Sb(e,t){if(Ul(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Ob(e,t){return new Promise(n=>{const i=t.validator(e,t);if(xl(i)){i.then(n);return}n(i)})}function Hl(e,t){const{message:n}=t;return Di(n)?n(e,t):n||""}function Lb({target:e}){e.composing=!0}function ql({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Fb(e,t){const n=Cl();e.style.height="auto";let i=e.scrollHeight;if($n(t)){const{maxHeight:r,minHeight:a}=t;r!==void 0&&(i=Math.min(i,r)),a!==void 0&&(i=Math.max(i,a))}i&&(e.style.height=`${i}px`,Nl(n))}function Pb(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Nt(e){return[...e].length}function Hr(e,t){return[...e].slice(0,t).join("")}const[Mb,rt]=Ct("field"),Vb={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Oe,max:Number,min:Number,formatter:Function,clearIcon:Re("clear"),modelValue:gg(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Re("focus"),formatTrigger:Re("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Rb=dt({},zl,Vb,{rows:Oe,type:Re("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Oe,labelClass:Mt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var jb=o.defineComponent({name:Mb,props:Rb,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const i=Nb(),r=o.reactive({status:"unvalidated",focused:!1,validateMessage:""}),a=o.ref(),u=o.ref(),l=o.ref(),{parent:s}=bg(Bg),c=()=>{var I;return String((I=e.modelValue)!=null?I:"")},f=I=>{if(Be(e[I]))return e[I];if(s&&Be(s.props[I]))return s.props[I]},d=o.computed(()=>{const I=f("readonly");if(e.clearable&&!I){const Z=c()!=="",X=e.clearTrigger==="always"||e.clearTrigger==="focus"&&r.focused;return Z&&X}return!1}),p=o.computed(()=>l.value&&n.input?l.value():e.modelValue),g=o.computed(()=>{var I;const Z=f("required");return Z==="auto"?(I=e.rules)==null?void 0:I.some(X=>X.required):Z}),m=I=>I.reduce((Z,X)=>Z.then(()=>{if(r.status==="failed")return;let{value:le}=p;if(X.formatter&&(le=X.formatter(le,X)),!Sb(le,X)){r.status="failed",r.validateMessage=Hl(le,X);return}if(X.validator)return Ul(le)&&X.validateEmpty===!1?void 0:Ob(le,X).then(ee=>{ee&&typeof ee=="string"?(r.status="failed",r.validateMessage=ee):ee===!1&&(r.status="failed",r.validateMessage=Hl(le,X))})}),Promise.resolve()),E=()=>{r.status="unvalidated",r.validateMessage=""},w=()=>t("endValidate",{status:r.status,message:r.validateMessage}),D=(I=e.rules)=>new Promise(Z=>{E(),I?(t("startValidate"),m(I).then(()=>{r.status==="failed"?(Z({name:e.name,message:r.validateMessage}),w()):(r.status="passed",Z(),w())})):Z()}),k=I=>{if(s&&e.rules){const{validateTrigger:Z}=s.props,X=El(Z).includes(I),le=e.rules.filter(ee=>ee.trigger?El(ee.trigger).includes(I):X);le.length&&D(le)}},h=I=>{var Z;const{maxlength:X}=e;if(Be(X)&&Nt(I)>+X){const le=c();if(le&&Nt(le)===+X)return le;const ee=(Z=a.value)==null?void 0:Z.selectionEnd;if(r.focused&&ee){const Ae=[...I],qe=Ae.length-+X;return Ae.splice(ee-qe,qe),Ae.join("")}return Hr(I,+X)}return I},_=(I,Z="onChange")=>{var X,le;const ee=I;I=h(I);const Ae=Nt(ee)-Nt(I);if(e.type==="number"||e.type==="digit"){const O=e.type==="number";if(I=Og(I,O,O),Z==="onBlur"&&I!==""&&(e.min!==void 0||e.max!==void 0)){const z=Sg(+I,(X=e.min)!=null?X:-1/0,(le=e.max)!=null?le:1/0);+I!==z&&(I=z.toString())}}let qe=0;if(e.formatter&&Z===e.formatTrigger){const{formatter:O,maxlength:z}=e;if(I=O(I),Be(z)&&Nt(I)>+z&&(I=Hr(I,+z)),a.value&&r.focused){const{selectionEnd:at}=a.value,se=Hr(ee,at);qe=Nt(O(se))-Nt(se)}}if(a.value&&a.value.value!==I)if(r.focused){let{selectionStart:O,selectionEnd:z}=a.value;if(a.value.value=I,Be(O)&&Be(z)){const at=Nt(I);Ae?(O-=Ae,z-=Ae):qe&&(O+=qe,z+=qe),a.value.setSelectionRange(Math.min(O,at),Math.min(z,at))}}else a.value.value=I;I!==e.modelValue&&t("update:modelValue",I)},x=I=>{I.target.composing||_(I.target.value)},y=()=>{var I;return(I=a.value)==null?void 0:I.blur()},C=()=>{var I;return(I=a.value)==null?void 0:I.focus()},T=()=>{const I=a.value;e.type==="textarea"&&e.autosize&&I&&Fb(I,e.autosize)},A=I=>{r.focused=!0,t("focus",I),o.nextTick(T),f("readonly")&&y()},j=I=>{r.focused=!1,_(c(),"onBlur"),t("blur",I),!f("readonly")&&(k("onBlur"),o.nextTick(T),Cg())},pe=I=>t("clickInput",I),$=I=>t("clickLeftIcon",I),R=I=>t("clickRightIcon",I),Q=I=>{zn(I),t("update:modelValue",""),t("clear",I)},q=o.computed(()=>{if(typeof e.error=="boolean")return e.error;if(s&&s.props.showError&&r.status==="failed")return!0}),ie=o.computed(()=>{const I=f("labelWidth"),Z=f("labelAlign");if(I&&Z!=="top")return{width:Je(I)}}),$e=I=>{I.keyCode===13&&(!(s&&s.props.submitOnEnter)&&e.type!=="textarea"&&zn(I),e.type==="search"&&y()),t("keypress",I)},M=()=>e.id||`${i}-input`,Y=()=>r.status,P=()=>{const I=rt("control",[f("inputAlign"),{error:q.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return o.createVNode("div",{class:I,onClick:pe},[n.input()]);const Z={id:M(),ref:a,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:I,disabled:f("disabled"),readonly:f("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${i}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:j,onFocus:A,onInput:x,onClick:pe,onChange:ql,onKeypress:$e,onCompositionend:ql,onCompositionstart:Lb};return e.type==="textarea"?o.createVNode("textarea",o.mergeProps(Z,{inputmode:e.inputmode}),null):o.createVNode("input",o.mergeProps(Pb(e.type,e.inputmode),Z),null)},ge=()=>{const I=n["left-icon"];if(e.leftIcon||I)return o.createVNode("div",{class:rt("left-icon"),onClick:$},[I?I():o.createVNode(Yt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},W=()=>{const I=n["right-icon"];if(e.rightIcon||I)return o.createVNode("div",{class:rt("right-icon"),onClick:R},[I?I():o.createVNode(Yt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Le=()=>{if(e.showWordLimit&&e.maxlength){const I=Nt(c());return o.createVNode("div",{class:rt("word-limit")},[o.createVNode("span",{class:rt("word-num")},[I]),o.createTextVNode("/"),e.maxlength])}},re=()=>{if(s&&s.props.showErrorMessage===!1)return;const I=e.errorMessage||r.validateMessage;if(I){const Z=n["error-message"],X=f("errorMessageAlign");return o.createVNode("div",{class:rt("error-message",X)},[Z?Z({message:I}):I])}},pt=()=>{const I=f("labelWidth"),Z=f("labelAlign"),X=f("colon")?":":"";if(n.label)return[n.label(),X];if(e.label)return o.createVNode("label",{id:`${i}-label`,for:n.input?void 0:M(),"data-allow-mismatch":"attribute",onClick:le=>{zn(le),C()},style:Z==="top"&&I?{width:Je(I)}:void 0},[e.label+X])},oe=()=>[o.createVNode("div",{class:rt("body")},[P(),d.value&&o.createVNode(Yt,{ref:u,name:e.clearIcon,class:rt("clear")},null),W(),n.button&&o.createVNode("div",{class:rt("button")},[n.button()])]),Le(),re()];return Ur({blur:y,focus:C,validate:D,formValue:p,resetValidation:E,getValidationStatus:Y}),o.provide(wg,{customValue:l,resetValidation:E,validateWithTrigger:k}),o.watch(()=>e.modelValue,()=>{_(c()),E(),k("onChange"),o.nextTick(T)}),o.onMounted(()=>{_(c(),e.formatTrigger),o.nextTick(T)}),Br("touchstart",Q,{target:o.computed(()=>{var I;return(I=u.value)==null?void 0:I.$el})}),()=>{const I=f("disabled"),Z=f("labelAlign"),X=ge(),le=()=>{const ee=pt();return Z==="top"?[X,ee].filter(Boolean):ee||[]};return o.createVNode(Ib,{size:e.size,class:rt({error:q.value,disabled:I,[`label-${Z}`]:Z}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:ie.value,valueClass:rt("value"),titleClass:[rt("label",[Z,{required:g.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:X&&Z!=="top"?()=>X:null,title:le,value:oe,extra:n.extra})}}});const Bb=Rt(jb);let qn=0;function $b(e){e?(qn||document.body.classList.add("van-toast--unclickable"),qn++):qn&&(qn--,qn||document.body.classList.remove("van-toast--unclickable"))}const[zb,_n]=Ct("toast"),Ub=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Hb={icon:String,show:Boolean,type:Re("text"),overlay:Boolean,message:Oe,iconSize:Oe,duration:mg(2e3),position:Re("middle"),teleport:[String,Object],wordBreak:String,className:Mt,iconPrefix:String,transition:Re("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Mt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Oe};var Wl=o.defineComponent({name:zb,props:Hb,emits:["update:show"],setup(e,{emit:t,slots:n}){let i,r=!1;const a=()=>{const d=e.show&&e.forbidClick;r!==d&&(r=d,$b(r))},u=d=>t("update:show",d),l=()=>{e.closeOnClick&&u(!1)},s=()=>clearTimeout(i),c=()=>{const{icon:d,type:p,iconSize:g,iconPrefix:m,loadingType:E}=e;if(d||p==="success"||p==="fail")return o.createVNode(Yt,{name:d||p,size:g,class:_n("icon"),classPrefix:m},null);if(p==="loading")return o.createVNode(fb,{class:_n("loading"),size:g,type:E},null)},f=()=>{const{type:d,message:p}=e;if(n.message)return o.createVNode("div",{class:_n("text")},[n.message()]);if(Be(p)&&p!=="")return d==="html"?o.createVNode("div",{key:0,class:_n("text"),innerHTML:String(p)},null):o.createVNode("div",{class:_n("text")},[p])};return o.watch(()=>[e.show,e.forbidClick],a),o.watch(()=>[e.show,e.type,e.message,e.duration],()=>{s(),e.show&&e.duration>0&&(i=setTimeout(()=>{u(!1)},e.duration))}),o.onMounted(a),o.onUnmounted(a),()=>o.createVNode(kb,o.mergeProps({class:[_n([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:l,onClosed:s,"onUpdate:show":u},hg(e,Ub)),{default:()=>[c(),f()]})}});function qb(){const e=o.reactive({show:!1}),t=r=>{e.show=r},n=r=>{dt(e,r,{transitionAppear:!0}),t(!0)},i=()=>t(!1);return Ur({open:n,close:i,toggle:t}),{open:n,close:i,state:e,toggle:t}}function Wb(e){const t=o.createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Yb={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Ii=[],Gb=!1,Yl=dt({},Yb);const Xb=new Map;function Zb(e){return $n(e)?e:{message:e}}function Kb(){const{instance:e}=Wb({setup(){const t=o.ref(""),{open:n,state:i,close:r,toggle:a}=qb(),u=()=>{},l=()=>{const s={onClosed:u,"onUpdate:show":a};return o.createVNode(Wl,o.mergeProps(i,s),null)};return o.watch(t,s=>{i.message=s}),o.getCurrentInstance().render=l,{open:n,close:r,message:t}}});return e}function Jb(){if(!Ii.length||Gb){const e=Kb();Ii.push(e)}return Ii[Ii.length-1]}function Dt(e={}){if(!Rr)return{};const t=Jb(),n=Zb(e);return t.open(dt({},Yl,Xb.get(n.type||Yl.type),n)),t}Rt(Wl);const Qb={class:"pf_wrap"},e_={class:"pf_form"},t_=["onClick"],n_={key:0,class:"sex_wrap"},i_={key:1,class:"input_wrap"},r_={class:"unit"},a_={key:2,class:"sport_wrap"},u_=["onClick"],o_={class:"name"},l_={class:"sub"},s_={key:3,class:"taste_wrap"},c_={class:"box"},f_=["onClick"],d_={class:"box"},p_=["onClick"],h_=ve({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const{t:n,locale:i}=tn(),r=o.ref(!1),a=e,u=o.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",taste:[],taboo:[],title:"标题",unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),l=o.ref([{key:"rest",name:n("personal_form.sport_list.rest"),sub:n("personal_form.sport_list.rest_sub")},{key:"sedentary",name:n("personal_form.sport_list.sedentary"),sub:n("personal_form.sport_list.sedentary_sub")},{key:"light",name:n("personal_form.sport_list.light"),sub:n("personal_form.sport_list.light_sub")},{key:"medium",name:n("personal_form.sport_list.medium"),sub:n("personal_form.sport_list.medium_sub")},{key:"heavy",name:n("personal_form.sport_list.heavy"),sub:n("personal_form.sport_list.heavy_sub")}]),s=o.computed(()=>n("personal_form.taste_list")),c=o.computed(()=>n("personal_form.taboo_list")),f=o.ref([{key:"sex",label:n("personal_form.sex"),value:"",placeholder:n("personal_form.placeholder.sex"),required:!0},{key:"age",label:n("personal_form.age"),value:"",placeholder:n("personal_form.placeholder.age"),unit:n("personal_form.unit.age"),required:!0},{key:"height",label:n("personal_form.height"),value:"",placeholder:n("personal_form.placeholder.height"),unit:n("personal_form.unit.height"),required:!0},{key:"weight",label:n("personal_form.weight"),value:"",placeholder:n("personal_form.placeholder.weight"),unit:n("personal_form.unit.weight"),required:!0},{key:"sport",label:n("personal_form.sport"),value:"sedentary",placeholder:n("personal_form.placeholder.sport"),required:!0},{key:"taste",label:n("personal_form.taste"),value:"",taste:[],taboo:[],placeholder:n("personal_form.placeholder.taste"),required:!1}]),d=t;o.onMounted(()=>{const h=localStorage.getItem("personalInfo");if(h){const _=JSON.parse(h);for(let x=0;x<f.value.length;x++){const y=_.find(C=>C.key===f.value[x].key);y&&(f.value[x].value=y.value||"",y.taste&&(f.value[x].taste=y.taste),y.taboo&&(f.value[x].taboo=y.taboo))}}console.log("== xx ===",f.value)});const p=o.computed(()=>f.value.filter(h=>h.key!=="taste").every(h=>h.value!=="")),g=h=>{switch(u.value.key=h.key,h.key){case"sex":u.value.title=n("personal_form.dialog.sex"),u.value.dialogHeight="300px",u.value.sex=h.value;break;case"age":u.value.title=n("personal_form.dialog.age"),u.value.dialogHeight="240px",u.value.unit=h.unit,u.value.age=h.value,u.value.min=6,u.value.max=100,u.value.type="number";break;case"height":u.value.title=n("personal_form.dialog.height"),u.value.dialogHeight="240px",u.value.unit=h.unit,u.value.height=h.value,u.value.min=100,u.value.max=220,u.value.type="digit";break;case"weight":u.value.title=n("personal_form.dialog.weight"),u.value.dialogHeight="240px",u.value.unit=h.unit,u.value.weight=h.value,u.value.min=10,u.value.max=150,u.value.type="digit";break;case"sport":u.value.title=n("personal_form.dialog.sport"),u.value.dialogHeight="420px",u.value.unit="",u.value.sport=h.value;break;case"taste":u.value.title=n("personal_form.dialog.taste"),u.value.dialogHeight="500px",u.value.unit="",u.value.taste=[...h.taste],u.value.taboo=[...h.taboo];break}console.log(u.value,h),r.value=!0},m=()=>{switch(u.value.key){case"sex":if(!u.value.sex){Dt(n("personal_form.toast.select_sex"));return}f.value.find(h=>h.key==="sex").value=u.value.sex;break;case"age":if(!u.value.age){Dt(n("personal_form.toast.input_age"));return}f.value.find(h=>h.key==="age").value=u.value.age;break;case"height":if(!u.value.height){Dt(n("personal_form.toast.input_height"));return}f.value.find(h=>h.key==="height").value=u.value.height;break;case"weight":if(!u.value.weight){Dt(n("personal_form.toast.input_weight"));return}f.value.find(h=>h.key==="weight").value=u.value.weight;break;case"sport":if(!u.value.sport){Dt(n("personal_form.toast.select_sport"));return}f.value.find(h=>h.key==="sport").value=u.value.sport;break;case"taste":f.value.find(h=>h.key==="taste").taste=u.value.taste,f.value.find(h=>h.key==="taste").taboo=u.value.taboo,f.value.find(h=>h.key==="taste").value=[...u.value.taste,...u.value.taboo].join("、");break}r.value=!1},E=()=>{if(!p.value){Dt(n("personal_form.toast.fill_all"));return}const h=f.value.findIndex(T=>T.key==="age"),_=f.value.findIndex(T=>T.key==="height"),x=f.value.findIndex(T=>T.key==="weight");if(f.value[h].value<6||f.value[h].value>100){Dt(n("personal_form.toast.age_range"));return}if(f.value[_].value<100||f.value[_].value>220){Dt(n("personal_form.toast.height_range"));return}if(f.value[x].value<10||f.value[x].value>150){Dt(n("personal_form.toast.weight_range"));return}const y=f.value.map(T=>{const{value:A,taste:j,taboo:pe}=T;return{key:T.key,value:A,taste:j,taboo:pe}});localStorage.setItem("personalInfo",JSON.stringify(y));const C=`${a.query};
|
|
62
71
|
${n("personal_form.sex")}:${f.value.find(T=>T.key==="sex").value};
|
|
63
|
-
${n("personal_form.age")}:${f.value[
|
|
64
|
-
${n("personal_form.height")}:${f.value[
|
|
65
|
-
${n("personal_form.weight")}:${f.value[
|
|
72
|
+
${n("personal_form.age")}:${f.value[h].value}${f.value[h].unit||""};
|
|
73
|
+
${n("personal_form.height")}:${f.value[_].value}${f.value[_].unit||""};
|
|
74
|
+
${n("personal_form.weight")}:${f.value[x].value}${f.value[x].unit||""};
|
|
66
75
|
${n("personal_form.sport")}:${n(`personal_form.sport_list.${f.value.find(T=>T.key==="sport").value}`)};
|
|
67
|
-
${n("personal_form.taste")}:${f.value.find(T=>T.key==="taste").value?f.value.find(T=>T.key==="taste").value:n("personal_form.no_taboo")};`;console.log(
|
|
76
|
+
${n("personal_form.taste")}:${f.value.find(T=>T.key==="taste").value?f.value.find(T=>T.key==="taste").value:n("personal_form.no_taboo")};`;console.log(C),d("submit",[{content:C,text:C}])},w=(h,_)=>{u.value[_].includes(h)?u.value[_]=u.value[_].filter(x=>x!==h):u.value[_].push(h)},D=h=>{u.value.sport=h.key,m()},k=h=>{u.value.sex=h,m()};return(h,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",Qb,[o.createElementVNode("div",e_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,x=>(o.openBlock(),o.createElementBlock("div",{key:x.key,class:"pf_row"},[o.createElementVNode("div",{class:o.normalizeClass(["title",{is_required:x.required}])},o.toDisplayString(x.label),3),o.createElementVNode("div",{class:"content",onClick:y=>g(x)},[o.createElementVNode("span",{class:"text_row",style:o.normalizeStyle({color:x.value?"#000":"#75759d"})},o.toDisplayString(x.value?x.key==="sport"?o.unref(n)(`personal_form.sport_list.${x.value}`):`${x.value} ${x.unit||""}`:x.placeholder),5),o.createVNode(No,{class:"arrow"})],8,t_)]))),128))]),o.createElementVNode("div",{class:o.normalizeClass(["pf_btn",{disabled:!p.value}]),onClick:o.withModifiers(E,["stop"])},o.toDisplayString(o.unref(n)("personal_form.button")),3)]),o.createVNode(fg,{show:r.value,"onUpdate:show":_[3]||(_[3]=x=>r.value=x),title:u.value.title,height:u.value.dialogHeight,onConfirm:m},{default:o.withCtx(()=>[u.value.key==="sex"?(o.openBlock(),o.createElementBlock("div",n_,[o.createElementVNode("div",{class:o.normalizeClass({sex:!0,selected:u.value.sex==="male"}),onClick:_[0]||(_[0]=o.withModifiers(x=>k("male"),["stop"]))},o.toDisplayString(o.unref(n)("personal_form.sex_options.male")),3),o.createElementVNode("div",{class:o.normalizeClass({sex:!0,selected:u.value.sex==="female"}),onClick:_[1]||(_[1]=o.withModifiers(x=>k("female"),["stop"]))},o.toDisplayString(o.unref(n)("personal_form.sex_options.female")),3)])):o.createCommentVNode("",!0),["age","height","weight"].includes(u.value.key)?(o.openBlock(),o.createElementBlock("div",i_,[o.createVNode(o.unref(Bb),{modelValue:u.value[u.value.key],"onUpdate:modelValue":_[2]||(_[2]=x=>u.value[u.value.key]=x),class:"input",type:u.value.type,min:u.value.min,max:u.value.max,onKeyup:o.withKeys(m,["enter"]),placeholder:"请输入"},null,8,["modelValue","type","min","max"]),o.createElementVNode("div",r_,o.toDisplayString(u.value.unit),1)])):o.createCommentVNode("",!0),u.value.key==="sport"?(o.openBlock(),o.createElementBlock("div",a_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,x=>(o.openBlock(),o.createElementBlock("div",{key:x.key,class:o.normalizeClass({row:!0,selected:u.value.sport===x.key}),onClick:o.withModifiers(y=>D(x),["stop"])},[o.createElementVNode("div",o_,o.toDisplayString(x.name),1),o.createElementVNode("div",l_,o.toDisplayString(x.sub),1)],10,u_))),128))])):o.createCommentVNode("",!0),u.value.key==="taste"?(o.openBlock(),o.createElementBlock("div",s_,[_[4]||(_[4]=o.createElementVNode("div",{class:"title"},"口味偏好",-1)),o.createElementVNode("div",c_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,x=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({tag:!0,selected:u.value.taste.includes(x)}),key:x,onClick:o.withModifiers(y=>w(x,"taste"),["stop"])},o.toDisplayString(x),11,f_))),128))]),_[5]||(_[5]=o.createElementVNode("div",{class:"line"},null,-1)),_[6]||(_[6]=o.createElementVNode("div",{class:"title"},"饮食禁忌",-1)),o.createElementVNode("div",d_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,x=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({tag:!0,selected:u.value.taboo.includes(x)}),key:x,onClick:o.withModifiers(y=>w(x,"taboo"),["stop"])},o.toDisplayString(x),11,p_))),128))])])):o.createCommentVNode("",!0)]),_:1},8,["show","title","height"])],64))}},[["__scopeId","data-v-06b2822d"]]),m_={class:"cui_box"},g_={class:"cui_wrap"},b_={key:0,class:"cui_header"},__={class:"name_box"},x_={class:"name"},y_={key:0,class:"name_sub"},v_={class:"btn_group"},E_={style:{"font-size":"14px"}},w_={class:"btn"},k_={class:"btn"},C_={class:"cui_content"},N_={key:0,style:{"text-align":"left","margin-top":"50px"}},D_={style:{"text-align":"center"}},T_=["src"],A_={class:"board_name"},I_={class:"board_desc"},S_={class:"flexcss"},O_=["onClick"],L_={key:0,class:"replay role_sys"},F_={class:"replay_content"},P_={class:"name"},M_=["src"],V_={class:"box"},R_={key:0,class:"think_status"},j_={key:1,class:"think_status"},B_={class:"think_text"},$_={key:0},z_={key:4},U_={key:1},H_={key:2,class:"loading_row"},q_={key:1,class:"replay role_user"},W_={class:"replay_content"},Y_={class:"name"},G_=["src"],X_={class:"box"},Z_=["innerHTML"],K_={key:0},Gl=ve({__name:"ChatUi",props:{logo:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/weis_logo.png"},avatar:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/def_gray.svg"},name:{type:String,default:"Weis Bot"},nameSub:{type:String,default:"nutribite.com"},botId:{type:String,required:!0},uid:{type:String,required:!0,default:"user"},channel:{type:String,default:"web"},token:{type:String,required:!0},postToken:{type:String,default:""},showHeader:{type:Boolean,default:!0},tagList:{type:Array,default:()=>[{name:"人工客服",value:"kefu",type:"chat",msg:"人工客服"},{name:"查看菜单",value:"menu",type:"call",msg:"查看菜单"},{name:"体检报告",value:"exam",type:"upload",msg:"体检报告"}]},defMsg:{type:Object,default:()=>({})},contentTye:{type:String,default:"text"},cardList:{type:Object,default:()=>({store:!0,dishes:!0,plan:!0,personalForm:!1})},storage:{type:String,default:"sessionStorage"},needLog:{type:Boolean,default:!1},firstMsg:{type:String,default:""},lang:{type:String,default:"zh-CN"}},emits:["call","log"],setup(e,{emit:t}){const{t:n}=tn(),i=o.computed(()=>({headers:{Authorization:`Bearer ${p.token}`,"Content-Type":"application/json"}})),r=o.ref(""),a=o.ref(!1),u=o.ref("00"),l=o.ref([]),s=o.ref(!1),c=o.ref(1),f={placeholder:n("msg_obj.placeholder"),fileText:n("msg_obj.fileText"),uploadingTips:n("msg_obj.uploadingTips"),matchText:n("msg_obj.matchText"),matchContent:n("msg_obj.matchContent"),energy:n("msg_obj.energy"),protein:n("msg_obj.protein"),fat:n("msg_obj.fat"),carbonwater:n("msg_obj.carbonwater"),newChat:n("msg_obj.newChat"),thinking:n("msg_obj.thinking"),thinkCompleted:n("msg_obj.thinkCompleted"),useSolution:n("msg_obj.useSolution"),aiTips:n("msg_obj.aiTips")},d={store:!0,dishes:!0,plan:!0,personalForm:!1},p=e,g=t;o.watch(()=>p.lang,M=>{D0.global.locale.value=M},{immediate:!0});const m=o.computed(()=>({...f,...p.defMsg})),E=o.computed(()=>({...d,...p.cardList})),w=o.ref(null),D=o.ref(""),k=o.ref({}),h={setItem:(M,Y)=>{p.storage==="sessionStorage"?sessionStorage.setItem(M,Y):localStorage.setItem(M,Y)},getItem:M=>p.storage==="sessionStorage"?sessionStorage.getItem(M):localStorage.getItem(M)};o.onMounted(async()=>{localStorage.setItem("postToken",p.postToken||""),h.getItem("conversationId")?(r.value=h.getItem("conversationId"),await T(),await C(),s.value=!1):(await x(),p.firstMsg&&await _()),q()});const _=async()=>{const M=[{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"2",weight:"50",height:"160"}},age:25,msg:`本食谱为均衡营养版${p.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
|
|
68
77
|
性别:女;
|
|
69
78
|
年龄:25岁;
|
|
70
79
|
身高:160cm;
|
|
71
80
|
体重:50kg;
|
|
72
81
|
日常运动水平:久坐;
|
|
73
82
|
口味偏好及饮食禁忌:无;
|
|
74
|
-
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"1",weight:"65",height:"170"}},age:25,msg:`本食谱为均衡营养版${
|
|
83
|
+
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"1",weight:"65",height:"170"}},age:25,msg:`本食谱为均衡营养版${p.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
|
|
75
84
|
性别:男;
|
|
76
85
|
年龄:25岁;
|
|
77
86
|
身高:170cm;
|
|
78
87
|
体重:65kg;
|
|
79
88
|
日常运动水平:久坐;
|
|
80
89
|
口味偏好及饮食禁忌:无;
|
|
81
|
-
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"2",weight:"65",height:"160"}},age:35,msg:`本食谱为控卡版${
|
|
90
|
+
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"2",weight:"65",height:"160"}},age:35,msg:`本食谱为控卡版${p.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
|
|
82
91
|
性别:女;
|
|
83
92
|
年龄:35岁;
|
|
84
93
|
身高:160cm;
|
|
85
94
|
体重:65kg;
|
|
86
95
|
日常运动水平:久坐;
|
|
87
96
|
口味偏好及饮食禁忌:无;
|
|
88
|
-
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"1",weight:"75",height:"170"}},age:35,msg:`本食谱为控卡版${
|
|
97
|
+
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"1",weight:"75",height:"170"}},age:35,msg:`本食谱为控卡版${p.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
|
|
89
98
|
性别:男;
|
|
90
99
|
年龄:35岁;
|
|
91
100
|
身高:170cm;
|
|
92
101
|
体重:75kg;
|
|
93
102
|
日常运动水平:久坐;
|
|
94
103
|
口味偏好及饮食禁忌:无;
|
|
95
|
-
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`}];let Y=localStorage.getItem("preset_point")||0;Y++,Y>=M.length&&(Y=0),localStorage.setItem("preset_point",Y);const P=M[Y],W=`帮我定制${
|
|
104
|
+
如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`}];let Y=localStorage.getItem("preset_point")||0;Y++,Y>=M.length&&(Y=0),localStorage.setItem("preset_point",Y);const P=M[Y],W=`帮我定制${p.firstMsg}的⻝疗调养⽅案`;l.value=[{conversation_id:"",bot_id:p.botId,role:"user",content:W,reasoning_content:"",status:"ended",extra:[]}];const Le=await ii("/api/cn.weis.api.Food/bdGeneralTemp",{method:"bdGeneralTemp",params:[{...P.params}],token:p.postToken});if(Le.errCode===0&&Le.obj){const re={};(Le.obj.planDetails||[]).forEach(oe=>{re[oe.category]={energy:`热量:${oe.totalKcal}kcal`,carbonWater:`碳水:${oe.carbohydrateTotal}g`,protein:`蛋白质:${oe.proteinTotal}g`,fat:`脂肪:${oe.fatTotal}g`}});const pt=`我将为您出通用的食谱建议,如您有定制化健康诉求,请点击下方“私人订制个性食谱”来让我结合您的个人情况制定个性化配餐计划
|
|
96
105
|
|
|
97
106
|
|
|
98
107
|
| 早餐 | | 午餐 |
|
|
@@ -107,5 +116,5 @@ ${n("personal_form.taste")}:${f.value.find(T=>T.key==="taste").value?f.value.f
|
|
|
107
116
|
| ${re["03"].energy} | | ${re["04"].energy} |
|
|
108
117
|
| ${re["03"].carbonWater} | | ${re["04"].carbonWater} |
|
|
109
118
|
| ${re["03"].protein} | | ${re["04"].protein} |
|
|
110
|
-
| ${re["03"].fat} | | ${re["04"].fat} |`;
|
|
111
|
-
`);X=O.pop(),O.forEach(z=>{if(z.trim().length>0&&z.trim().startsWith("data:")){const ot=z.replace(/^data:\s*/,""),le=JSON.parse(ot);if(console.log("Received:",le),o.value=!0,a.value="04",!s.value[ie].bot_id&&le.bot_id&&(s.value[ie].bot_id=le.bot_id),!s.value[ie].conversation_id&&le.conversation_id&&(s.value[ie].conversation_id=le.conversation_id),le.hasOwnProperty("reasoning_content")&&le.reasoning_content&&le.type==="answer")s.value[ie].status="thinking",s.value[ie].reasoning_content+=le.reasoning_content,q();else if(le.hasOwnProperty("content")&&le.hasOwnProperty("content_type")&&le.content_type==="text"&&le.hasOwnProperty("type")&&le.type==="answer"&&!le.hasOwnProperty("created_at"))s.value[ie].status="answering",s.value[ie].content=A(s.value[ie].content+le.content),q();else if(le.hasOwnProperty("type")&&le.type==="tool_response"){const yt=JSON.parse(le.content);if(yt.hasOwnProperty("showType"))s.value[ie].extra.push({...yt});else if(yt.hasOwnProperty("response_for_model")){const En=JSON.parse(yt.response_for_model);En.hasOwnProperty("showType")&&s.value[ie].extra.push({...En})}q()}}})}console.log("====",s.value)},w=async()=>{const M=await uu(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${r.value}`,{order:"asc"},{...u.value});if(M.code===0&&M.data&&M.data.length){s.value=[];const Y=[];M.data.forEach(P=>{if(P.hasOwnProperty("content_type")){if(P.content_type==="text")s.value.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,meta_data:P.meta_data,content:A(P.content),reasoning_content:P.reasoning_content,status:"ended",extra:[]});else if(P.content_type==="card"&&P.role==="assistant")try{const _e=JSON.parse(P.content);if(_e.hasOwnProperty("showType"))Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,extra:[{..._e}]});else if(_e.hasOwnProperty("response_for_model")){const W=JSON.parse(_e.response_for_model);W.hasOwnProperty("showType")&&Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,extra:[{...W}]})}}catch{console.log("== 解析错误 sys==")}else if(P.content_type==="object_string"&&P.role==="user")try{const _e=JSON.parse(P.content);Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,meta_data:P.meta_data,extra:_e.map(W=>({...W,showType:W.type}))})}catch{console.log("== 解析错误 user==")}}}),Y.forEach(P=>{const _e=P.role==="user"?s.value.findIndex(W=>W.meta_data.chat_group===P.meta_data.chat_group&&W.role===P.role):s.value.findIndex(W=>W.chat_id===P.chat_id&&W.role===P.role);_e>-1&&(s.value[_e].extra=[...P.extra])})}console.log("== history ==",s.value,x.value)},T=async()=>{const M=await R0(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${h.botId}`,{...u.value});console.log(M),M.code===0&&M.data&&(v.value={...M.data})},A=M=>M,B=()=>{_("call",{type:"back"})},he=M=>{y([{content:M.content,text:M.text}])},U=M=>{switch(console.log(M),M.type){case"chat":y([{content:M.msg,text:M.msg}]);break;case"call":_("call",{...M});break;case"simulate":Ue(M);break}},R=({type:M},Y)=>{switch(M){case"change":y([{content:"換一套菜品",text:"換一套菜品"}]);break;case"match":y([{content:p.value.matchContent,text:p.value.matchText}]);break;case"personalForm":Ue({msg:"请为我生成一份个性化的健康的食谱",name:"用户信息",type:"simulate",value:"personalForm"});break;default:_("call",{type:M,info:Y})}},Q=M=>{switch(M.type){case"new_chat":E();break;default:_("call",M);break}},q=()=>{setTimeout(()=>{i.nextTick(()=>{C.value.scrollIntoView()})},100)};i.provide("triggerScrollToEnd",q);const ue=M=>/#全日總熱量:(\d*?)kcal/g.test(M),Ue=M=>{console.log("== simulateChat == ",M),s.value.push({conversation_id:"",bot_id:h.botId,role:"user",content:M.msg,reasoning_content:"",status:"ended",extra:[]});let Y={msg:"",extra:[]};switch(M.value){case"personalForm":Y.msg="请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",Y.extra=[{showType:"personalForm"}];break;case"contactKF":Y.msg="联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",Y.extra=[{showType:"contactKF"}];break}s.value.push({conversation_id:"",bot_id:h.botId,role:"assistant",content:Y.msg,reasoning_content:"",status:"ended",extra:[...Y.extra]}),c.value+=1,_("log",{turns:c.value,info:{...s.value[s.value.length-1],question:{content:M.msg,role:"user"}}}),q()};return(M,Y)=>(i.openBlock(),i.createElementBlock("div",mb,[i.createElementVNode("div",pb,[e.showHeader?(i.openBlock(),i.createElementBlock("div",_b,[i.createElementVNode("div",{class:"title",onClick:i.withModifiers(w,["stop"])},[i.createElementVNode("div",{class:"back",onClick:i.withModifiers(B,["stop"])},[i.createVNode(em)]),i.createElementVNode("div",gb,[i.createElementVNode("div",bb,i.toDisplayString(e.name),1),e.nameSub?(i.openBlock(),i.createElementBlock("div",Eb,i.toDisplayString(e.nameSub),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",yb,[i.createElementVNode("button",{class:"btn",onClick:i.withModifiers(E,["stop"])},[i.createVNode(Di,{class:"icon"}),i.createElementVNode("span",kb,i.toDisplayString(p.value.newChat),1)]),i.withDirectives(i.createElementVNode("template",null,[i.createElementVNode("button",xb,[i.createVNode(I0)]),i.createElementVNode("button",Cb,[i.createVNode(ka)])],512),[[i.vShow,!1]])])])):i.createCommentVNode("",!0),i.createElementVNode("div",vb,[v.value&&v.value.onboarding_info?(i.openBlock(),i.createElementBlock("div",wb,[i.createElementVNode("div",Nb,[i.createElementVNode("img",{src:v.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,Db),i.createElementVNode("p",Tb,i.toDisplayString(v.value.name),1)]),i.createElementVNode("div",Ab,i.toDisplayString(v.value.onboarding_info.prologue),1),i.createElementVNode("div",Ib,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.value.onboarding_info.suggested_questions,(P,_e)=>(i.openBlock(),i.createElementBlock("span",{key:_e,class:"board_sug",onClick:i.withModifiers(W=>y([{content:P,text:P}]),["stop"])},i.toDisplayString(P),9,Sb))),128))])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(P,_e)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_e},[P.role==="assistant"?(i.openBlock(),i.createElementBlock("div",Ob,[i.createElementVNode("div",Lb,[i.createElementVNode("div",Fb,[i.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,Pb),i.createTextVNode(" "+i.toDisplayString(e.name),1)]),i.createElementVNode("div",Mb,[P.reasoning_content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[P.status==="thinking"?(i.openBlock(),i.createElementBlock("div",Vb,[i.createVNode(fm,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(p.value.thinking),1)])):(i.openBlock(),i.createElementBlock("div",Rb,[i.createVNode(pm,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(p.value.thinkCompleted),1)])),i.createElementVNode("p",Bb,i.toDisplayString(P.reasoning_content),1)],64)):i.createCommentVNode("",!0),P.content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.contentTye==="text"?(i.openBlock(),i.createBlock(bm,{key:0,content:P.content},null,8,["content"])):e.contentTye==="markdown"?(i.openBlock(),i.createBlock(e_,{key:1,content:P.content},null,8,["content"])):i.createCommentVNode("",!0),o.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[P.extra.length?(i.openBlock(),i.createElementBlock("div",$b,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(P.extra,(W,Le)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Le},[x.value.dishes&&W.showType==="card"?(i.openBlock(),i.createBlock(B1,{key:0,"sku-list":W.skuList,"is-mini":!e.showHeader,"def-msg":p.value,channel:e.channel,onSelect:re=>R(re,W)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):i.createCommentVNode("",!0),x.value.plan&&W.showType==="plan"?(i.openBlock(),i.createBlock(uh,{key:1,info:W,"def-msg":p.value,onSelect:re=>R({type:"match"},W)},null,8,["info","def-msg","onSelect"])):i.createCommentVNode("",!0),x.value.store&&W.showType==="store"?(i.openBlock(),i.createBlock(Cm,{key:2,list:W.storeList,onSelect:he},null,8,["list"])):i.createCommentVNode("",!0),x.value.personalForm&&W.showType==="personalForm"?(i.openBlock(),i.createBlock(hb,{key:3,query:e.firstMsg,onSubmit:y},null,8,["query"])):i.createCommentVNode("",!0),W.showType==="contactKF"?(i.openBlock(),i.createElementBlock("div",Ub,Y[2]||(Y[2]=[i.createTextVNode(" 电话热线:"),i.createElementVNode("a",{href:"tel:4006681606"},"400 6681 606",-1),i.createElementVNode("img",{src:"https://prodstatic.weis1606.cn/api/smartFood/mealPlan/contact_kf.png",alt:"",width:"100%",style:{"margin-top":"10px"}},null,-1)]))):i.createCommentVNode("",!0)],64))),128))])):ue(P.content)?(i.openBlock(),i.createElementBlock("div",zb,[i.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:Y[0]||(Y[0]=i.withModifiers(W=>R({type:"match"},{}),["stop"]))},i.toDisplayString(p.value.useSolution),1)])):i.createCommentVNode("",!0)],64))],64)):i.createCommentVNode("",!0),o.value&&_e===s.value.length-1?(i.openBlock(),i.createElementBlock("div",jb,[Y[3]||(Y[3]=i.createTextVNode(" Ai努力生成中... ")),i.createVNode(rm)])):i.createCommentVNode("",!0)])])])):(i.openBlock(),i.createElementBlock("div",Hb,[i.createElementVNode("div",qb,[i.createElementVNode("div",Wb,[Y[4]||(Y[4]=i.createTextVNode(" 健康用户 ")),i.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,Yb)]),i.createElementVNode("div",Gb,[i.createElementVNode("p",{class:"text",innerHTML:P.content},null,8,Xb),P.extra.length?(i.openBlock(),i.createElementBlock("div",Zb,[i.createVNode(im,{list:P.extra},null,8,["list"])])):i.createCommentVNode("",!0)])])]))],64))),128)),i.createElementVNode("div",{ref_key:"endTarget",ref:C,style:{height:"100px"}},null,512)]),i.createVNode(Zh,{modelValue:D.value,"onUpdate:modelValue":Y[1]||(Y[1]=P=>D.value=P),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":p.value,"is-req":a.value,onSend:y,onTag:U,onCall:Q},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-85614598"]]);ze.ChatUi=Ys,ze.default=Ys,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
|
+
| ${re["03"].fat} | | ${re["04"].fat} |`;l.value.push({conversation_id:"",bot_id:p.botId,role:"assistant",content:pt,reasoning_content:"",status:"ended",extra:[{...Le.obj,showType:"card"}]}),g("log",{turns:c.value,info:{...l.value[l.value.length-1],question:{content:W,role:"user"}}})}},x=async()=>{const M=await ii("https://api.coze.cn/v1/conversation/create",{bot_id:p.botId,connector_id:"999"},{...i.value});s.value=!0,c.value=0,console.log(M),M.code===0&&M.data&&(r.value=M.data.id||"",h.setItem("conversationId",r.value),l.value=[],await T())},y=async M=>{u.value="01";let Y=Array.isArray(M);const P=p.botId;if(!(!a.value&&(D.value||Y)))return;const ge=D.value;console.log("== user send ==",Y,M,ge),a.value=!0;const W=[],Le={conversation_id:r.value,bot_id:P,role:"user",content:"",reasoning_content:"",status:"ended",extra:[]},re=`chat_${new Date().getTime()};`;M.forEach(ee=>{ee.hasOwnProperty("content")&&ee.content&&(ee.hasOwnProperty("type")&&ee.type==="object_string"?(console.log("=== item ====",ee),W.push({content:JSON.stringify(ee.content.map(Ae=>({type:Ae.type,file_id:Ae.file_id}))),content_type:"object_string",role:"user",meta_data:{chat_group:re}}),Le.extra=ee.content.map(Ae=>({...Ae,showType:Ae.type}))):(Le.content=ee.text,W.push({content:ee.content,content_type:"text",role:"user",meta_data:{chat_group:re}})))}),l.value.push(Le),u.value="02";const pt=await fetch(`https://api.coze.cn/v3/chat?conversation_id=${r.value}`,{method:"POST",headers:{...i.value.headers},body:JSON.stringify({bot_id:P,user_id:p.uid,stream:!0,connector_id:"999",additional_messages:W,custom_variables:{uid:p.uid}}),credentials:"same-origin",mode:"cors",cache:"default"});u.value="03",l.value.push({conversation_id:"",bot_id:"",role:"assistant",content:"",reasoning_content:"",status:"answering",extra:[]}),q(),D.value="";const oe=l.value.length-1,I=pt.body.getReader(),Z=new TextDecoder("utf-8");let X="";const le=()=>{console.log("======= End ======",l.value,s.value),s.value&&(l.value[oe].extra.findIndex(ee=>ee.hasOwnProperty("showType"))===-1&&l.value[oe].extra.push({showType:"personalForm"}),s.value=!1,console.log("===============",l.value[oe]))};for(;;){const{done:ee,value:Ae}=await I.read();if(ee){console.log("Stream has ended."),a.value=!1,u.value="00",l.value[oe].status="ended",le(),p.needLog&&(g("log",{turns:c.value,info:{...l.value[oe],question:{...Le}}}),c.value+=1),q();break}const qe=Z.decode(Ae,{stream:!0});X+=qe;const O=X.split(`
|
|
120
|
+
`);X=O.pop(),O.forEach(z=>{if(z.trim().length>0&&z.trim().startsWith("data:")){const at=z.replace(/^data:\s*/,""),se=JSON.parse(at);if(console.log("Received:",se),a.value=!0,u.value="04",!l.value[oe].bot_id&&se.bot_id&&(l.value[oe].bot_id=se.bot_id),!l.value[oe].conversation_id&&se.conversation_id&&(l.value[oe].conversation_id=se.conversation_id),se.hasOwnProperty("reasoning_content")&&se.reasoning_content&&se.type==="answer")l.value[oe].status="thinking",l.value[oe].reasoning_content+=se.reasoning_content,q();else if(se.hasOwnProperty("content")&&se.hasOwnProperty("content_type")&&se.content_type==="text"&&se.hasOwnProperty("type")&&se.type==="answer"&&!se.hasOwnProperty("created_at"))l.value[oe].status="answering",l.value[oe].content=A(l.value[oe].content+se.content),q();else if(se.hasOwnProperty("type")&&se.type==="tool_response"){const yt=JSON.parse(se.content);if(yt.hasOwnProperty("showType"))l.value[oe].extra.push({...yt});else if(yt.hasOwnProperty("response_for_model")){const xn=JSON.parse(yt.response_for_model);xn.hasOwnProperty("showType")&&l.value[oe].extra.push({...xn})}q()}}})}console.log("====",l.value)},C=async()=>{const M=await ii(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${r.value}`,{order:"asc"},{...i.value});if(M.code===0&&M.data&&M.data.length){l.value=[];const Y=[];M.data.forEach(P=>{if(P.hasOwnProperty("content_type")){if(P.content_type==="text")l.value.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,meta_data:P.meta_data,content:A(P.content),reasoning_content:P.reasoning_content,status:"ended",extra:[]});else if(P.content_type==="card"&&P.role==="assistant")try{const ge=JSON.parse(P.content);if(ge.hasOwnProperty("showType"))Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,extra:[{...ge}]});else if(ge.hasOwnProperty("response_for_model")){const W=JSON.parse(ge.response_for_model);W.hasOwnProperty("showType")&&Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,extra:[{...W}]})}}catch{console.log("== 解析错误 sys==")}else if(P.content_type==="object_string"&&P.role==="user")try{const ge=JSON.parse(P.content);Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,meta_data:P.meta_data,extra:ge.map(W=>({...W,showType:W.type}))})}catch{console.log("== 解析错误 user==")}}}),Y.forEach(P=>{const ge=P.role==="user"?l.value.findIndex(W=>W.meta_data.chat_group===P.meta_data.chat_group&&W.role===P.role):l.value.findIndex(W=>W.chat_id===P.chat_id&&W.role===P.role);ge>-1&&(l.value[ge].extra=[...P.extra])})}console.log("== history ==",l.value,E.value)},T=async()=>{const M=await j0(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${p.botId}`,{...i.value});console.log(M),M.code===0&&M.data&&(k.value={...M.data})},A=M=>M,j=()=>{g("call",{type:"back"})},pe=M=>{y([{content:M.content,text:M.text}])},$=M=>{switch(console.log(M),M.type){case"chat":y([{content:M.msg,text:M.msg}]);break;case"call":g("call",{...M});break;case"simulate":$e(M);break}},R=({type:M},Y)=>{switch(M){case"change":y([{content:"換一套菜品",text:"換一套菜品"}]);break;case"match":y([{content:m.value.matchContent,text:m.value.matchText}]);break;case"personalForm":$e({msg:"请为我生成一份个性化的健康的食谱",name:"用户信息",type:"simulate",value:"personalForm"});break;default:g("call",{type:M,info:Y})}},Q=M=>{switch(M.type){case"new_chat":x();break;default:g("call",M);break}},q=()=>{setTimeout(()=>{o.nextTick(()=>{w.value.scrollIntoView()})},100)};o.provide("triggerScrollToEnd",q);const ie=M=>/#全日總熱量:(\d*?)kcal/g.test(M),$e=M=>{console.log("== simulateChat == ",M),l.value.push({conversation_id:"",bot_id:p.botId,role:"user",content:M.msg,reasoning_content:"",status:"ended",extra:[]});let Y={msg:"",extra:[]};switch(M.value){case"personalForm":Y.msg="请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",Y.extra=[{showType:"personalForm"}];break;case"contactKF":Y.msg="联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",Y.extra=[{showType:"contactKF"}];break}l.value.push({conversation_id:"",bot_id:p.botId,role:"assistant",content:Y.msg,reasoning_content:"",status:"ended",extra:[...Y.extra]}),c.value+=1,g("log",{turns:c.value,info:{...l.value[l.value.length-1],question:{content:M.msg,role:"user"}}}),q()};return(M,Y)=>(o.openBlock(),o.createElementBlock("div",m_,[o.createElementVNode("div",g_,[e.showHeader?(o.openBlock(),o.createElementBlock("div",b_,[o.createElementVNode("div",{class:"title",onClick:o.withModifiers(C,["stop"])},[o.createElementVNode("div",{class:"back",onClick:o.withModifiers(j,["stop"])},[o.createVNode(th)]),o.createElementVNode("div",__,[o.createElementVNode("div",x_,o.toDisplayString(e.name),1),e.nameSub?(o.openBlock(),o.createElementBlock("div",y_,o.toDisplayString(e.nameSub),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",v_,[o.createElementVNode("button",{class:"btn",onClick:o.withModifiers(x,["stop"])},[o.createVNode(To,{class:"icon"}),o.createElementVNode("span",E_,o.toDisplayString(m.value.newChat),1)]),o.withDirectives(o.createElementVNode("template",null,[o.createElementVNode("button",w_,[o.createVNode(S0)]),o.createElementVNode("button",k_,[o.createVNode(vu)])],512),[[o.vShow,!1]])])])):o.createCommentVNode("",!0),o.createElementVNode("div",C_,[k.value&&k.value.onboarding_info?(o.openBlock(),o.createElementBlock("div",N_,[o.createElementVNode("div",D_,[o.createElementVNode("img",{src:k.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,T_),o.createElementVNode("p",A_,o.toDisplayString(k.value.name),1)]),o.createElementVNode("div",I_,o.toDisplayString(k.value.onboarding_info.prologue),1),o.createElementVNode("div",S_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k.value.onboarding_info.suggested_questions,(P,ge)=>(o.openBlock(),o.createElementBlock("span",{key:ge,class:"board_sug",onClick:o.withModifiers(W=>y([{content:P,text:P}]),["stop"])},o.toDisplayString(P),9,O_))),128))])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(P,ge)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:ge},[P.role==="assistant"?(o.openBlock(),o.createElementBlock("div",L_,[o.createElementVNode("div",F_,[o.createElementVNode("div",P_,[o.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,M_),o.createTextVNode(" "+o.toDisplayString(e.name),1)]),o.createElementVNode("div",V_,[P.reasoning_content?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[P.status==="thinking"?(o.openBlock(),o.createElementBlock("div",R_,[o.createVNode(dh,{class:"icon"}),o.createTextVNode(" "+o.toDisplayString(m.value.thinking),1)])):(o.openBlock(),o.createElementBlock("div",j_,[o.createVNode(gh,{class:"icon"}),o.createTextVNode(" "+o.toDisplayString(m.value.thinkCompleted),1)])),o.createElementVNode("p",B_,o.toDisplayString(P.reasoning_content),1)],64)):o.createCommentVNode("",!0),P.content?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.contentTye==="text"?(o.openBlock(),o.createBlock(xh,{key:0,content:P.content},null,8,["content"])):e.contentTye==="markdown"?(o.openBlock(),o.createBlock(tg,{key:1,content:P.content},null,8,["content"])):o.createCommentVNode("",!0),a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[P.extra.length?(o.openBlock(),o.createElementBlock("div",$_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(P.extra,(W,Le)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Le},[E.value.dishes&&W.showType==="card"?(o.openBlock(),o.createBlock(B1,{key:0,"sku-list":W.skuList,"is-mini":!e.showHeader,"def-msg":m.value,channel:e.channel,onSelect:re=>R(re,W)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):o.createCommentVNode("",!0),E.value.plan&&W.showType==="plan"?(o.openBlock(),o.createBlock(rp,{key:1,info:W,"def-msg":m.value,onSelect:re=>R({type:"match"},W)},null,8,["info","def-msg","onSelect"])):o.createCommentVNode("",!0),E.value.store&&W.showType==="store"?(o.openBlock(),o.createBlock(kh,{key:2,list:W.storeList,onSelect:pe},null,8,["list"])):o.createCommentVNode("",!0),E.value.personalForm&&W.showType==="personalForm"?(o.openBlock(),o.createBlock(h_,{key:3,query:e.firstMsg,onSubmit:y},null,8,["query"])):o.createCommentVNode("",!0),W.showType==="contactKF"?(o.openBlock(),o.createElementBlock("div",z_,Y[2]||(Y[2]=[o.createTextVNode(" 电话热线:"),o.createElementVNode("a",{href:"tel:4006681606"},"400 6681 606",-1),o.createElementVNode("img",{src:"https://prodstatic.weis1606.cn/api/smartFood/mealPlan/contact_kf.png",alt:"",width:"100%",style:{"margin-top":"10px"}},null,-1)]))):o.createCommentVNode("",!0)],64))),128))])):ie(P.content)?(o.openBlock(),o.createElementBlock("div",U_,[o.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:Y[0]||(Y[0]=o.withModifiers(W=>R({type:"match"},{}),["stop"]))},o.toDisplayString(m.value.useSolution),1)])):o.createCommentVNode("",!0)],64))],64)):o.createCommentVNode("",!0),a.value&&ge===l.value.length-1?(o.openBlock(),o.createElementBlock("div",H_,[Y[3]||(Y[3]=o.createTextVNode(" Ai努力生成中... ")),o.createVNode(ah)])):o.createCommentVNode("",!0)])])])):(o.openBlock(),o.createElementBlock("div",q_,[o.createElementVNode("div",W_,[o.createElementVNode("div",Y_,[Y[4]||(Y[4]=o.createTextVNode(" 健康用户 ")),o.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,G_)]),o.createElementVNode("div",X_,[o.createElementVNode("p",{class:"text",innerHTML:P.content},null,8,Z_),P.extra.length?(o.openBlock(),o.createElementBlock("div",K_,[o.createVNode(lh,{list:P.extra},null,8,["list"])])):o.createCommentVNode("",!0)])])]))],64))),128)),o.createElementVNode("div",{ref_key:"endTarget",ref:w,style:{height:"100px"}},null,512)]),o.createVNode(Kp,{modelValue:D.value,"onUpdate:modelValue":Y[1]||(Y[1]=P=>D.value=P),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":m.value,"is-req":u.value,onSend:y,onTag:$,onCall:Q},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-85614598"]]);ze.ChatUi=Gl,ze.default=Gl,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|