ai-chat-bot-interface 1.7.11 → 1.7.13

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.
@@ -0,0 +1,90 @@
1
+ (function(ce,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(ce=typeof globalThis<"u"?globalThis:ce||self,i(ce.AiChatBotInterface={},ce.Vue))})(this,function(ce,i){"use strict";const Z=(e,t)=>{const u=e.__vccOpts||e;for(const[n,r]of t)u[n]=r;return u},Ei={},Ci={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 wi(e,t){return i.openBlock(),i.createElementBlock("svg",Ci,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 vi=Z(Ei,[["render",wi]]),Di={},Ai={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function Fi(e,t){return i.openBlock(),i.createElementBlock("svg",Ai,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 Wu=Z(Di,[["render",Fi]]),Si={},Ni={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bi(e,t){return i.openBlock(),i.createElementBlock("svg",Ni,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 Ti=Z(Si,[["render",Bi]]);function Yu(e,t={}){const n={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",n),n.method.toUpperCase()==="POST"&&!n.body)throw new Error("POST request must have a body");return fetch(e,n).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 Ii(e,t={}){return Yu(e,{...t,method:"GET"})}function Nt(e,t={},u={}){return Yu(e,{...u,method:"POST",body:JSON.stringify(t)})}/*!
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:19.116Z
9
+ */function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xu(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ku(n.key),n)}}function Li(e,t,u){return t&&Xu(e.prototype,t),u&&Xu(e,u),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oi(e,t,u){return(t=Ku(t))in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}function Gu(e,t){var u=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),u.push.apply(u,n)}return u}function ru(e){for(var t=1;t<arguments.length;t++){var u=arguments[t]!=null?arguments[t]:{};t%2?Gu(Object(u),!0).forEach(function(n){Oi(e,n,u[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(u)):Gu(Object(u)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(u,n))})}return e}function $i(e,t){if(typeof e!="object"||!e)return e;var u=e[Symbol.toPrimitive];if(u!==void 0){var n=u.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ku(e){var t=$i(e,"string");return typeof t=="symbol"?t:t+""}function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}var Ju={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},Mi='<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>',Bt=typeof window<"u"&&typeof window.document<"u",Te=Bt?window:{},Ye=Bt&&Te.document.documentElement?"ontouchstart"in Te.document.documentElement:!1,ou=Bt?"PointerEvent"in Te:!1,B="viewer",Tt="move",Qu="switch",lt="zoom",It="".concat(B,"-active"),zi="".concat(B,"-close"),Vt="".concat(B,"-fade"),au="".concat(B,"-fixed"),Pi="".concat(B,"-fullscreen"),en="".concat(B,"-fullscreen-exit"),He="".concat(B,"-hide"),Ri="".concat(B,"-hide-md-down"),qi="".concat(B,"-hide-sm-down"),ji="".concat(B,"-hide-xs-down"),ge="".concat(B,"-in"),dt="".concat(B,"-invisible"),Xe="".concat(B,"-loading"),Hi="".concat(B,"-move"),tn="".concat(B,"-open"),Ge="".concat(B,"-show"),ee="".concat(B,"-transition"),Ke="click",su="dblclick",un="dragstart",nn="focusin",rn="keydown",_e="load",Ue="error",Ui=Ye?"touchend touchcancel":"mouseup",Zi=Ye?"touchmove":"mousemove",Wi=Ye?"touchstart":"mousedown",on=ou?"pointerdown":Wi,an=ou?"pointermove":Zi,sn=ou?"pointerup pointercancel":Ui,cn="resize",Ce="transitionend",ln="wheel",dn="ready",fn="show",hn="shown",pn="hide",mn="hidden",bn="view",ft="viewed",gn="move",_n="moved",xn="rotate",kn="rotated",yn="scale",En="scaled",Cn="zoom",wn="zoomed",vn="play",Dn="stop",Lt="".concat(B,"Action"),cu=/\s\s*/,Ot=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ht(e){return typeof e=="string"}var Yi=Number.isNaN||Te.isNaN;function J(e){return typeof e=="number"&&!Yi(e)}function Je(e){return typeof e>"u"}function Qe(e){return iu(e)==="object"&&e!==null}var Xi=Object.prototype.hasOwnProperty;function et(e){if(!Qe(e))return!1;try{var t=e.constructor,u=t.prototype;return t&&u&&Xi.call(u,"isPrototypeOf")}catch{return!1}}function q(e){return typeof e=="function"}function H(e,t){if(e&&q(t))if(Array.isArray(e)||J(e.length)){var u=e.length,n;for(n=0;n<u&&t.call(e,e[n],n,e)!==!1;n+=1);}else Qe(e)&&Object.keys(e).forEach(function(r){t.call(e,e[r],r,e)});return e}var fe=Object.assign||function(t){for(var u=arguments.length,n=new Array(u>1?u-1:0),r=1;r<u;r++)n[r-1]=arguments[r];return Qe(t)&&n.length>0&&n.forEach(function(o){Qe(o)&&Object.keys(o).forEach(function(a){t[a]=o[a]})}),t},Gi=/^(?:width|height|left|top|marginLeft|marginTop)$/;function we(e,t){var u=e.style;H(t,function(n,r){Gi.test(r)&&J(n)&&(n+="px"),u[r]=n})}function Ki(e){return ht(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}function tt(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function A(e,t){if(!(!e||!t)){if(J(e.length)){H(e,function(n){A(n,t)});return}if(e.classList){e.classList.add(t);return}var u=e.className.trim();u?u.indexOf(t)<0&&(e.className="".concat(u," ").concat(t)):e.className=t}}function z(e,t){if(!(!e||!t)){if(J(e.length)){H(e,function(u){z(u,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function pt(e,t,u){if(t){if(J(e.length)){H(e,function(n){pt(n,t,u)});return}u?A(e,t):z(e,t)}}var Ji=/([a-z\d])([A-Z])/g;function lu(e){return e.replace(Ji,"$1-$2").toLowerCase()}function ut(e,t){return Qe(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(lu(t)))}function du(e,t,u){Qe(u)?e[t]=u:e.dataset?e.dataset[t]=u:e.setAttribute("data-".concat(lu(t)),u)}var An=function(){var e=!1;if(Bt){var t=!1,u=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});Te.addEventListener("test",u,n),Te.removeEventListener("test",u,n)}return e}();function j(e,t,u){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=u;t.trim().split(cu).forEach(function(o){if(!An){var a=e.listeners;a&&a[o]&&a[o][u]&&(r=a[o][u],delete a[o][u],Object.keys(a[o]).length===0&&delete a[o],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(o,r,n)})}function F(e,t,u){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=u;t.trim().split(cu).forEach(function(o){if(n.once&&!An){var a=e.listeners,s=a===void 0?{}:a;r=function(){delete s[o][u],e.removeEventListener(o,r,n);for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];u.apply(e,d)},s[o]||(s[o]={}),s[o][u]&&e.removeEventListener(o,s[o][u],n),s[o][u]=r,e.listeners=s}e.addEventListener(o,r,n)})}function ue(e,t,u,n){var r;return q(Event)&&q(CustomEvent)?r=new CustomEvent(t,ru({bubbles:!0,cancelable:!0,detail:u},n)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,u)),e.dispatchEvent(r)}function Qi(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function $t(e){var t=e.rotate,u=e.scaleX,n=e.scaleY,r=e.translateX,o=e.translateY,a=[];J(r)&&r!==0&&a.push("translateX(".concat(r,"px)")),J(o)&&o!==0&&a.push("translateY(".concat(o,"px)")),J(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),J(u)&&u!==1&&a.push("scaleX(".concat(u,")")),J(n)&&n!==1&&a.push("scaleY(".concat(n,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function eo(e){return ht(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var fu=Te.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(Te.navigator.userAgent);function Fn(e,t,u){var n=document.createElement("img");if(e.naturalWidth&&!fu)return u(e.naturalWidth,e.naturalHeight),n;var r=document.body||document.documentElement;return n.onload=function(){u(n.width,n.height),fu||r.removeChild(n)},H(t.inheritedAttributes,function(o){var a=e.getAttribute(o);a!==null&&n.setAttribute(o,a)}),n.src=e.src,fu||(n.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(n)),n}function Mt(e){switch(e){case 2:return ji;case 3:return qi;case 4:return Ri;default:return""}}function to(e){var t=ru({},e),u=[];return H(e,function(n,r){delete t[r],H(t,function(o){var a=Math.abs(n.startX-o.startX),s=Math.abs(n.startY-o.startY),c=Math.abs(n.endX-o.endX),l=Math.abs(n.endY-o.endY),d=Math.sqrt(a*a+s*s),f=Math.sqrt(c*c+l*l),p=(f-d)/d;u.push(p)})}),u.sort(function(n,r){return Math.abs(n)<Math.abs(r)}),u[0]}function zt(e,t){var u=e.pageX,n=e.pageY,r={endX:u,endY:n};return t?r:ru({timeStamp:Date.now(),startX:u,startY:n},r)}function uo(e){var t=0,u=0,n=0;return H(e,function(r){var o=r.startX,a=r.startY;t+=o,u+=a,n+=1}),t/=n,u/=n,{pageX:t,pageY:u}}var no={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,u=t.body||t.documentElement;this.body=u,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=u.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(u).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,u=this.parent,n;t.inline&&(n={width:Math.max(u.offsetWidth,t.minWidth),height:Math.max(u.offsetHeight,t.minHeight)},this.parentData=n),(this.fulled||!n)&&(n=this.containerData),this.viewerData=fe({},n)},renderViewer:function(){this.options.inline&&!this.fulled&&we(this.viewer,this.viewerData)},initList:function(){var t=this,u=this.element,n=this.options,r=this.list,o=[];r.innerHTML="",H(this.images,function(a,s){var c=a.src,l=a.alt||eo(c),d=t.getImageURL(a);if(c||d){var f=document.createElement("li"),p=document.createElement("img");H(n.inheritedAttributes,function(m){var h=a.getAttribute(m);h!==null&&p.setAttribute(m,h)}),n.navbar&&(p.src=c||d),p.alt=l,p.setAttribute("data-original-url",d||c),f.setAttribute("data-index",s),f.setAttribute("data-viewer-action","view"),f.setAttribute("role","button"),n.keyboard&&f.setAttribute("tabindex",0),f.appendChild(p),r.appendChild(f),o.push(f)}}),this.items=o,H(o,function(a){var s=a.firstElementChild,c,l;du(s,"filled",!0),n.loading&&A(a,Xe),F(s,_e,c=function(f){j(s,Ue,l),n.loading&&z(a,Xe),t.loadImage(f)},{once:!0}),F(s,Ue,l=function(){j(s,_e,c),n.loading&&z(a,Xe)},{once:!0})}),n.transition&&F(u,ft,function(){A(r,ee)},{once:!0})},renderList:function(){var t=this.index,u=this.items[t];if(u){var n=u.nextElementSibling,r=parseInt(window.getComputedStyle(n||u).marginLeft,10),o=u.offsetWidth,a=o+r;we(this.list,fe({width:a*this.length-r},$t({translateX:(this.viewerData.width-o)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",z(t,ee),we(t,$t({translateX:0}))},initImage:function(t){var u=this,n=this.options,r=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,c=Math.max(o.height-a,a),l=this.imageData||{},d;this.imageInitializing={abort:function(){d.onload=null}},d=Fn(r,n,function(f,p){var m=f/p,h=Math.max(0,Math.min(1,n.initialCoverage)),x=s,y=c;u.imageInitializing=!1,c*m>s?y=s/m:x=c*m,h=J(h)?h:.9,x=Math.min(x*h,f),y=Math.min(y*h,p);var g=(s-x)/2,_=(c-y)/2,b={left:g,top:_,x:g,y:_,width:x,height:y,oldRatio:1,ratio:x/f,aspectRatio:m,naturalWidth:f,naturalHeight:p},E=fe({},b);n.rotatable&&(b.rotate=l.rotate||0,E.rotate=0),n.scalable&&(b.scaleX=l.scaleX||1,b.scaleY=l.scaleY||1,E.scaleX=1,E.scaleY=1),u.imageData=b,u.initialImageData=E,t&&t()})},renderImage:function(t){var u=this,n=this.image,r=this.imageData;if(we(n,fe({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},$t(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&tt(n,ee)){var o=function(){u.imageRendering=!1,t()};this.imageRendering={abort:function(){j(n,Ce,o)}},F(n,Ce,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="")}},ro={bind:function(){var t=this.options,u=this.viewer,n=this.canvas,r=this.element.ownerDocument;F(u,Ke,this.onClick=this.click.bind(this)),F(u,un,this.onDragStart=this.dragstart.bind(this)),F(n,on,this.onPointerDown=this.pointerdown.bind(this)),F(r,an,this.onPointerMove=this.pointermove.bind(this)),F(r,sn,this.onPointerUp=this.pointerup.bind(this)),F(r,rn,this.onKeyDown=this.keydown.bind(this)),F(window,cn,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&F(u,ln,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&F(n,su,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,u=this.viewer,n=this.canvas,r=this.element.ownerDocument;j(u,Ke,this.onClick),j(u,un,this.onDragStart),j(n,on,this.onPointerDown),j(r,an,this.onPointerMove),j(r,sn,this.onPointerUp),j(r,rn,this.onKeyDown),j(window,cn,this.onResize),t.zoomable&&t.zoomOnWheel&&j(u,ln,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&j(n,su,this.onDblclick)}},io={click:function(t){var u=this.options,n=this.imageData,r=t.target,o=ut(r,Lt);switch(!o&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,o=ut(r,Lt)),Ye&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():u.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(ut(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(u.loop);break;case"play":this.play(u.fullscreen);break;case"next":this.next(u.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(Ye&&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 u=this.element,n=this.options,r=this.image,o=this.index,a=this.viewerData;z(r,dt),n.loading&&z(this.canvas,Xe),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(){pt(r,Hi,n.movable),pt(r,ee,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,q(n.viewed)&&F(u,ft,n.viewed,{once:!0}),ue(u,ft,{originalImage:t.images[o],index:o,image:r},{cancelable:!1})})})},loadImage:function(t){var u=t.target,n=u.parentNode,r=n.offsetWidth||30,o=n.offsetHeight||50,a=!!ut(u,"filled");Fn(u,this.options,function(s,c){var l=s/c,d=r,f=o;o*l>r?a?d=o*l:f=r/l:a?f=r/l:d=o*l,we(u,fe({width:d,height:f},$t({translateX:(r-d)/2,translateY:(o-f)/2})))})},keydown:function(t){var u=this.options;if(u.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(n){case 27:this.played?this.stop():u.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(u.loop);break;case 38:t.preventDefault(),this.zoom(u.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(u.loop);break;case 40:t.preventDefault(),this.zoom(-u.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 u=this.options,n=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")&&(J(r)&&r!==1||J(o)&&o!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?H(t.changedTouches,function(s){n[s.identifier]=zt(s)}):n[t.pointerId||0]=zt(t);var a=u.movable?Tt:!1;u.zoomOnTouch&&u.zoomable&&Object.keys(n).length>1?a=lt:u.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=Qu),u.transition&&(a===Tt||a===lt)&&z(this.image,ee),this.action=a}},pointermove:function(t){var u=this.pointers,n=this.action;!this.viewed||!n||(t.preventDefault(),t.changedTouches?H(t.changedTouches,function(r){fe(u[r.identifier]||{},zt(r,!0))}):fe(u[t.pointerId||0]||{},zt(t,!0)),this.change(t))},pointerup:function(t){var u=this,n=this.options,r=this.action,o=this.pointers,a;t.changedTouches?H(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(),n.transition&&(r===Tt||r===lt)&&A(this.image,ee),this.action=!1,Ye&&r!==lt&&a&&Date.now()-a.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),n.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){ue(u.image,su,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){u.imageClicked=!1},500)):(this.imageClicked=!1,n.backdrop&&n.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){ue(u.canvas,Ke,{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}H(this.player.getElementsByTagName("img"),function(u){F(u,_e,t.loadImage.bind(t),{once:!0}),ue(u,_e)})}},wheel:function(t){var u=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){u.wheeling=!1},50);var n=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*n,!0,null,t)}}},oo={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(q(n.show)&&F(u,fn,n.show,{once:!0}),ue(u,fn)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(z(r,He),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){j(r,Ce,o),z(r,ge)}},A(r,ee),r.initialOffsetWidth=r.offsetWidth,F(r,Ce,o,{once:!0}),A(r,ge)}else A(r,ge),this.shown();return this},hide:function(){var t=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(q(r.hide)&&F(n,pn,r.hide,{once:!0}),ue(n,pn)===!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(){z(o,ge),t.hidden()};if(r.transition&&!u){var c=function(f){f&&f.target===o&&(j(o,Ce,c),t.hidden())},l=function(){tt(o,ee)?(F(o,Ce,c),z(o,ge)):s()};this.transitioning={abort:function(){t.viewed&&tt(a,ee)?j(a,Ce,l):tt(o,ee)&&j(o,Ce,c)}},this.viewed&&tt(a,ee)?(F(a,Ce,l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}else s();return this},view:function(){var t=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(u=Number(u)||0,this.hiding||this.played||u<0||u>=this.length||this.viewed&&u===this.index)return this;if(!this.isShown)return this.index=u,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,o=this.title,a=this.canvas,s=this.items[u],c=s.querySelector("img"),l=ut(c,"originalUrl"),d=c.getAttribute("alt"),f=document.createElement("img");if(H(r.inheritedAttributes,function(y){var g=c.getAttribute(y);g!==null&&f.setAttribute(y,g)}),f.src=l,f.alt=d,q(r.view)&&F(n,bn,r.view,{once:!0}),ue(n,bn,{originalImage:this.images[u],index:u,image:f})===!1||!this.isShown||this.hiding||this.played)return this;var p=this.items[this.index];p&&(z(p,It),p.removeAttribute("aria-selected")),A(s,It),s.setAttribute("aria-selected",!0),r.focus&&s.focus(),this.image=f,this.viewed=!1,this.index=u,this.imageData={},A(f,dt),r.loading&&A(a,Xe),a.innerHTML="",a.appendChild(f),this.renderList(),o.innerHTML="";var m=function(){var g=t.imageData,_=Array.isArray(r.title)?r.title[1]:r.title;o.innerHTML=Ki(q(_)?_.call(t,f,g):"".concat(d," (").concat(g.naturalWidth," × ").concat(g.naturalHeight,")"))},h,x;return F(n,ft,m,{once:!0}),this.viewing={abort:function(){j(n,ft,m),f.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(f.src="",j(f,_e,h),t.timeout&&clearTimeout(t.timeout))}},f.complete?this.load():(F(f,_e,h=function(){j(f,Ue,x),t.load()},{once:!0}),F(f,Ue,x=function(){j(f,_e,h),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),z(f,dt),r.loading&&z(t.canvas,Xe)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){z(f,dt),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.index-1;return u<0&&(u=t?this.length-1:0),this.view(u),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.length-1,n=this.index+1;return n>u&&(n=t?0:u),this.view(n),this},move:function(t){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=this.imageData;return this.moveTo(Je(t)?t:n.x+Number(t),Je(u)?u:n.y+Number(u)),this},moveTo:function(t){var u=this,n=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),n=Number(n),this.viewed&&!this.played&&a.movable){var c=s.x,l=s.y,d=!1;if(J(t)?d=!0:t=c,J(n)?d=!0:n=l,d){if(q(a.move)&&F(o,gn,a.move,{once:!0}),ue(o,gn,{x:t,y:n,oldX:c,oldY:l,originalEvent:r})===!1)return this;s.x=t,s.y=n,s.left=t,s.top=n,this.moving=!0,this.renderImage(function(){u.moving=!1,q(a.moved)&&F(o,_n,a.moved,{once:!0}),ue(o,_n,{x:t,y:n,oldX:c,oldY:l,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var u=this,n=this.element,r=this.options,o=this.imageData;if(t=Number(t),J(t)&&this.viewed&&!this.played&&r.rotatable){var a=o.rotate;if(q(r.rotate)&&F(n,xn,r.rotate,{once:!0}),ue(n,xn,{degree:t,oldDegree:a})===!1)return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){u.rotating=!1,q(r.rotated)&&F(n,kn,r.rotated,{once:!0}),ue(n,kn,{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 u=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.element,o=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&o.scalable){var s=a.scaleX,c=a.scaleY,l=!1;if(J(t)?l=!0:t=s,J(n)?l=!0:n=c,l){if(q(o.scale)&&F(r,yn,o.scale,{once:!0}),ue(r,yn,{scaleX:t,scaleY:n,oldScaleX:s,oldScaleY:c})===!1)return this;a.scaleX=t,a.scaleY=n,this.scaling=!0,this.renderImage(function(){u.scaling=!1,q(o.scaled)&&F(r,En,o.scaled,{once:!0}),ue(r,En,{scaleX:t,scaleY:n,oldScaleX:s,oldScaleY:c},{cancelable:!1})})}}return this},zoom:function(t){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=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,u,n,r),this},zoomTo:function(t){var u=this,n=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,c=this.options,l=this.pointers,d=this.imageData,f=d.x,p=d.y,m=d.width,h=d.height,x=d.naturalWidth,y=d.naturalHeight;if(t=Math.max(0,t),J(t)&&this.viewed&&!this.played&&(a||c.zoomable)){if(!a){var g=Math.max(.01,c.minZoomRatio),_=Math.min(100,c.maxZoomRatio);t=Math.min(Math.max(t,g),_)}if(o)switch(o.type){case"wheel":c.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 b=x*t,E=y*t,C=b-m,w=E-h,S=d.ratio;if(q(c.zoom)&&F(s,Cn,c.zoom,{once:!0}),ue(s,Cn,{ratio:t,oldRatio:S,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var P=Qi(this.viewer),R=l&&Object.keys(l).length>0?uo(l):{pageX:o.pageX,pageY:o.pageY};d.x-=C*((R.pageX-P.left-f)/m),d.y-=w*((R.pageY-P.top-p)/h)}else et(r)&&J(r.x)&&J(r.y)?(d.x-=C*((r.x-f)/m),d.y-=w*((r.y-p)/h)):(d.x-=C/2,d.y-=w/2);d.left=d.x,d.top=d.y,d.width=b,d.height=E,d.oldRatio=S,d.ratio=t,this.renderImage(function(){u.zooming=!1,q(c.zoomed)&&F(s,wn,c.zoomed,{once:!0}),ue(s,wn,{ratio:t,oldRatio:S,originalEvent:o},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var t=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(q(r.play)&&F(n,vn,r.play,{once:!0}),ue(n,vn)===!1)return this;var o=this.player,a=this.loadImage.bind(this),s=[],c=0,l=0;if(this.played=!0,this.onLoadWhenPlay=a,u&&this.requestFullscreen(u),A(o,Ge),H(this.items,function(p,m){var h=p.querySelector("img"),x=document.createElement("img");x.src=ut(h,"originalUrl"),x.alt=h.getAttribute("alt"),x.referrerPolicy=h.referrerPolicy,c+=1,A(x,Vt),pt(x,ee,r.transition),tt(p,It)&&(A(x,ge),l=m),s.push(x),F(x,_e,a,{once:!0}),o.appendChild(x)}),J(r.interval)&&r.interval>0){var d=function(){clearTimeout(t.playing.timeout),z(s[l],ge),l-=1,l=l>=0?l:c-1,A(s[l],ge),t.playing.timeout=setTimeout(d,r.interval)},f=function(){clearTimeout(t.playing.timeout),z(s[l],ge),l+=1,l=l<c?l:0,A(s[l],ge),t.playing.timeout=setTimeout(f,r.interval)};c>1&&(this.playing={prev:d,next:f,timeout:setTimeout(f,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var u=this.element,n=this.options;if(q(n.stop)&&F(u,Dn,n.stop,{once:!0}),ue(u,Dn)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,H(r.getElementsByTagName("img"),function(o){j(o,_e,t.onLoadWhenPlay)}),z(r,Ge),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,u=this.options,n=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!u.inline?this:(this.fulled=!0,this.open(),A(this.button,en),u.transition&&(z(o,ee),this.viewed&&z(r,ee)),A(n,au),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),we(n,{zIndex:u.zIndex}),u.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=fe({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){u.transition&&setTimeout(function(){A(r,ee),A(o,ee)},0)})}),this)},exit:function(){var t=this,u=this.options,n=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!u.inline?this:(this.fulled=!1,this.close(),z(this.button,en),u.transition&&(z(o,ee),this.viewed&&z(r,ee)),u.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),z(n,au),we(n,{zIndex:u.zIndexInline}),this.viewerData=fe({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){u.transition&&setTimeout(function(){A(r,ee),A(o,ee)},0)})}),this)},tooltip:function(){var t=this,u=this.options,n=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!u.tooltip?this:(n.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):u.transition?(this.fading&&ue(n,Ce),A(n,Ge),A(n,Vt),A(n,ee),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,A(n,ge)):(A(n,Ge),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){u.transition?(F(n,Ce,function(){z(n,Ge),z(n,Vt),z(n,ee),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),z(n,ge),t.fading=!0):(z(n,Ge),n.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=fe({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,u=this.element,n=this.options,r=this.isImg;if(r&&!u.parentNode)return this.destroy();var o=[];if(H(r?[u]:u.querySelectorAll("img"),function(l){q(n.filter)?n.filter.call(t,l)&&o.push(l):t.getImageURL(l)&&o.push(l)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var a=[];if(H(this.items,function(l,d){var f=l.querySelector("img"),p=o[d];p&&f?(p.src!==f.src||p.alt!==f.alt)&&a.push(d):a.push(d)}),we(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 c=this.items[this.index];A(c,It),c.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,u=this.options;return t[B]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),u.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)):u.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),u.inline||j(t,Ke,this.onStart),t[B]=void 0,this):this}},ao={getImageURL:function(t){var u=this.options.url;return ht(u)?u=t.getAttribute(u):q(u)?u=u.call(this,t):u="",u},enforceFocus:function(){var t=this;this.clearEnforceFocus(),F(document,nn,this.onFocusin=function(u){var n=t.viewer,r=u.target;if(!(r===document||r===n||n.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(j(document,nn,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;A(t,tn),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;z(t,tn),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,u=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,u.focus&&(n.focus(),this.enforceFocus()),q(u.shown)&&F(t,hn,u.shown,{once:!0}),ue(t,hn)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,u=this.options,n=this.viewer;u.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),A(n,He),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(q(u.hidden)&&F(t,mn,u.hidden,{once:!0}),ue(t,mn,null,{cancelable:!1}))},requestFullscreen:function(t){var u=this.element.ownerDocument;if(this.fulled&&!(u.fullscreenElement||u.webkitFullscreenElement||u.mozFullScreenElement||u.msFullscreenElement)){var n=u.documentElement;n.requestFullscreen?et(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.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 u=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var o=r.endX-r.startX,a=r.endY-r.startY;switch(this.action){case Tt:(o!==0||a!==0)&&(this.pointerMoved=!0,this.move(o,a,t));break;case lt:this.zoom(to(n),!1,null,t);break;case Qu:{this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(u.loop):o<-1&&this.next(u.loop));break}}H(n,function(c){c.startX=c.endX,c.startY=c.endY})}},isSwitchable:function(){var t=this.imageData,u=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=u.width&&t.height<=u.height}},so=Te.Viewer,co=function(e){return function(){return e+=1,e}}(-1),hu=function(){function e(t){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Vi(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=fe({},Ju,et(u)&&u),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=co(),this.init()}return Li(e,[{key:"init",value:function(){var u=this,n=this.element,r=this.options;if(!n[B]){n[B]=this,r.focus&&!r.keyboard&&(r.focus=!1);var o=n.localName==="img",a=[];if(H(o?[n]:n.querySelectorAll("img"),function(l){q(r.filter)?r.filter.call(u,l)&&a.push(l):u.getImageURL(l)&&a.push(l)}),this.isImg=o,this.length=a.length,this.images=a,this.initBody(),Je(document.createElement(B).style.transition)&&(r.transition=!1),r.inline){var s=0,c=function(){if(s+=1,s===u.length){var d;u.initializing=!1,u.delaying={abort:function(){clearTimeout(d)}},d=setTimeout(function(){u.delaying=!1,u.build()},0)}};this.initializing={abort:function(){H(a,function(d){d.complete||(j(d,_e,c),j(d,Ue,c))})}},H(a,function(l){if(l.complete)c();else{var d,f;F(l,_e,d=function(){j(l,Ue,f),c()},{once:!0}),F(l,Ue,f=function(){j(l,_e,d),c()},{once:!0})}})}else F(n,Ke,this.onStart=function(l){var d=l.target;d.localName==="img"&&(!q(r.filter)||r.filter.call(u,d))&&u.view(u.images.indexOf(d))})}}},{key:"build",value:function(){if(!this.ready){var u=this.element,n=this.options,r=u.parentNode,o=document.createElement("div");o.innerHTML=Mi;var a=o.querySelector(".".concat(B,"-container")),s=a.querySelector(".".concat(B,"-title")),c=a.querySelector(".".concat(B,"-toolbar")),l=a.querySelector(".".concat(B,"-navbar")),d=a.querySelector(".".concat(B,"-button")),f=a.querySelector(".".concat(B,"-canvas"));if(this.parent=r,this.viewer=a,this.title=s,this.toolbar=c,this.navbar=l,this.button=d,this.canvas=f,this.footer=a.querySelector(".".concat(B,"-footer")),this.tooltipBox=a.querySelector(".".concat(B,"-tooltip")),this.player=a.querySelector(".".concat(B,"-player")),this.list=a.querySelector(".".concat(B,"-list")),a.id="".concat(B).concat(this.id),s.id="".concat(B,"Title").concat(this.id),A(s,n.title?Mt(Array.isArray(n.title)?n.title[0]:n.title):He),A(l,n.navbar?Mt(n.navbar):He),pt(d,He,!n.button),n.keyboard&&d.setAttribute("tabindex",0),n.backdrop&&(A(a,"".concat(B,"-backdrop")),!n.inline&&n.backdrop!=="static"&&du(f,Lt,"hide")),ht(n.className)&&n.className&&n.className.split(cu).forEach(function(b){A(a,b)}),n.toolbar){var p=document.createElement("ul"),m=et(n.toolbar),h=Ot.slice(0,3),x=Ot.slice(7,9),y=Ot.slice(9);m||A(c,Mt(n.toolbar)),H(m?n.toolbar:Ot,function(b,E){var C=m&&et(b),w=m?lu(E):b,S=C&&!Je(b.show)?b.show:b;if(!(!S||!n.zoomable&&h.indexOf(w)!==-1||!n.rotatable&&x.indexOf(w)!==-1||!n.scalable&&y.indexOf(w)!==-1)){var P=C&&!Je(b.size)?b.size:b,R=C&&!Je(b.click)?b.click:b,Q=document.createElement("li");n.keyboard&&Q.setAttribute("tabindex",0),Q.setAttribute("role","button"),A(Q,"".concat(B,"-").concat(w)),q(R)||du(Q,Lt,w),J(S)&&A(Q,Mt(S)),["small","large"].indexOf(P)!==-1?A(Q,"".concat(B,"-").concat(P)):w==="play"&&A(Q,"".concat(B,"-large")),q(R)&&F(Q,Ke,R),p.appendChild(Q)}}),c.appendChild(p)}else A(c,He);if(!n.rotatable){var g=c.querySelectorAll('li[class*="rotate"]');A(g,dt),H(g,function(b){c.appendChild(b)})}if(n.inline)A(d,Pi),we(a,{zIndex:n.zIndexInline}),window.getComputedStyle(r).position==="static"&&we(r,{position:"relative"}),r.insertBefore(a,u.nextSibling);else{A(d,zi),A(a,au),A(a,Vt),A(a,He),we(a,{zIndex:n.zIndex});var _=n.container;ht(_)&&(_=u.ownerDocument.querySelector(_)),_||(_=this.body),_.appendChild(a)}if(n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,q(n.ready)&&F(u,dn,n.ready,{once:!0}),ue(u,dn)===!1){this.ready=!1;return}this.ready&&n.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=so,e}},{key:"setDefaults",value:function(u){fe(Ju,et(u)&&u)}}])}();fe(hu.prototype,no,ro,io,oo,ao);var lo=typeof global=="object"&&global&&global.Object===Object&&global;const Sn=lo;var fo=typeof self=="object"&&self&&self.Object===Object&&self,ho=Sn||fo||Function("return this")();const pu=ho;var po=pu.Symbol;const Pt=po;var Nn=Object.prototype,mo=Nn.hasOwnProperty,bo=Nn.toString,mt=Pt?Pt.toStringTag:void 0;function go(e){var t=mo.call(e,mt),u=e[mt];try{e[mt]=void 0;var n=!0}catch{}var r=bo.call(e);return n&&(t?e[mt]=u:delete e[mt]),r}var _o=Object.prototype,xo=_o.toString;function ko(e){return xo.call(e)}var yo="[object Null]",Eo="[object Undefined]",Bn=Pt?Pt.toStringTag:void 0;function mu(e){return e==null?e===void 0?Eo:yo:Bn&&Bn in Object(e)?go(e):ko(e)}function bu(e){return e!=null&&typeof e=="object"}var Co=Array.isArray;const wo=Co;function Rt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Tn(e){return e}var vo="[object AsyncFunction]",Do="[object Function]",Ao="[object GeneratorFunction]",Fo="[object Proxy]";function In(e){if(!Rt(e))return!1;var t=mu(e);return t==Do||t==Ao||t==vo||t==Fo}var So=pu["__core-js_shared__"];const gu=So;var Vn=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function No(e){return!!Vn&&Vn in e}var Bo=Function.prototype,To=Bo.toString;function Io(e){if(e!=null){try{return To.call(e)}catch{}try{return e+""}catch{}}return""}var Vo=/[\\^$.*+?()[\]{}|]/g,Lo=/^\[object .+?Constructor\]$/,Oo=Function.prototype,$o=Object.prototype,Mo=Oo.toString,zo=$o.hasOwnProperty,Po=RegExp("^"+Mo.call(zo).replace(Vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ro(e){if(!Rt(e)||No(e))return!1;var t=In(e)?Po:Lo;return t.test(Io(e))}function qo(e,t){return e==null?void 0:e[t]}function jo(e,t){var u=qo(e,t);return Ro(u)?u:void 0}function Ho(e,t,u){switch(u.length){case 0:return e.call(t);case 1:return e.call(t,u[0]);case 2:return e.call(t,u[0],u[1]);case 3:return e.call(t,u[0],u[1],u[2])}return e.apply(t,u)}var Uo=800,Zo=16,Wo=Date.now;function Yo(e){var t=0,u=0;return function(){var n=Wo(),r=Zo-(n-u);if(u=n,r>0){if(++t>=Uo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Xo(e){return function(){return e}}var Go=function(){try{var e=jo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const qt=Go;var Ko=qt?function(e,t){return qt(e,"toString",{configurable:!0,enumerable:!1,value:Xo(t),writable:!0})}:Tn,Jo=Yo(Ko);const Qo=Jo;var ea=9007199254740991,ta=/^(?:0|[1-9]\d*)$/;function Ln(e,t){var u=typeof e;return t=t??ea,!!t&&(u=="number"||u!="symbol"&&ta.test(e))&&e>-1&&e%1==0&&e<t}function On(e,t,u){t=="__proto__"&&qt?qt(e,t,{configurable:!0,enumerable:!0,value:u,writable:!0}):e[t]=u}function _u(e,t){return e===t||e!==e&&t!==t}var ua=Object.prototype,na=ua.hasOwnProperty;function $n(e,t,u){var n=e[t];(!(na.call(e,t)&&_u(n,u))||u===void 0&&!(t in e))&&On(e,t,u)}function ra(e,t,u,n){var r=!u;u||(u={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=void 0;c===void 0&&(c=e[s]),r?On(u,s,c):$n(u,s,c)}return u}var Mn=Math.max;function ia(e,t,u){return t=Mn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Mn(n.length-t,0),a=Array(o);++r<o;)a[r]=n[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=n[r];return s[t]=u(a),Ho(e,this,s)}}function zn(e,t){return Qo(ia(e,t,Tn),e+"")}var oa=9007199254740991;function Pn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oa}function jt(e){return e!=null&&Pn(e.length)&&!In(e)}function Rn(e,t,u){if(!Rt(u))return!1;var n=typeof t;return(n=="number"?jt(u)&&Ln(t,u.length):n=="string"&&t in u)?_u(u[t],e):!1}function aa(e){return zn(function(t,u){var n=-1,r=u.length,o=r>1?u[r-1]:void 0,a=r>2?u[2]:void 0;for(o=e.length>3&&typeof o=="function"?(r--,o):void 0,a&&Rn(u[0],u[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=u[n];s&&e(t,s,n,o)}return t})}var sa=Object.prototype;function xu(e){var t=e&&e.constructor,u=typeof t=="function"&&t.prototype||sa;return e===u}function ca(e,t){for(var u=-1,n=Array(e);++u<e;)n[u]=t(u);return n}var la="[object Arguments]";function qn(e){return bu(e)&&mu(e)==la}var jn=Object.prototype,da=jn.hasOwnProperty,fa=jn.propertyIsEnumerable,ha=qn(function(){return arguments}())?qn:function(e){return bu(e)&&da.call(e,"callee")&&!fa.call(e,"callee")};const pa=ha;function ma(){return!1}var Hn=typeof ce=="object"&&ce&&!ce.nodeType&&ce,Un=Hn&&typeof module=="object"&&module&&!module.nodeType&&module,ba=Un&&Un.exports===Hn,Zn=ba?pu.Buffer:void 0,ga=Zn?Zn.isBuffer:void 0,_a=ga||ma;const xa=_a;var ka="[object Arguments]",ya="[object Array]",Ea="[object Boolean]",Ca="[object Date]",wa="[object Error]",va="[object Function]",Da="[object Map]",Aa="[object Number]",Fa="[object Object]",Sa="[object RegExp]",Na="[object Set]",Ba="[object String]",Ta="[object WeakMap]",Ia="[object ArrayBuffer]",Va="[object DataView]",La="[object Float32Array]",Oa="[object Float64Array]",$a="[object Int8Array]",Ma="[object Int16Array]",za="[object Int32Array]",Pa="[object Uint8Array]",Ra="[object Uint8ClampedArray]",qa="[object Uint16Array]",ja="[object Uint32Array]",W={};W[La]=W[Oa]=W[$a]=W[Ma]=W[za]=W[Pa]=W[Ra]=W[qa]=W[ja]=!0,W[ka]=W[ya]=W[Ia]=W[Ea]=W[Va]=W[Ca]=W[wa]=W[va]=W[Da]=W[Aa]=W[Fa]=W[Sa]=W[Na]=W[Ba]=W[Ta]=!1;function Ha(e){return bu(e)&&Pn(e.length)&&!!W[mu(e)]}function Ua(e){return function(t){return e(t)}}var Wn=typeof ce=="object"&&ce&&!ce.nodeType&&ce,bt=Wn&&typeof module=="object"&&module&&!module.nodeType&&module,Za=bt&&bt.exports===Wn,ku=Za&&Sn.process,Wa=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||ku&&ku.binding&&ku.binding("util")}catch{}}();const Yn=Wa;var Xn=Yn&&Yn.isTypedArray,Ya=Xn?Ua(Xn):Ha;const Xa=Ya;var Ga=Object.prototype,Ka=Ga.hasOwnProperty;function Gn(e,t){var u=wo(e),n=!u&&pa(e),r=!u&&!n&&xa(e),o=!u&&!n&&!r&&Xa(e),a=u||n||r||o,s=a?ca(e.length,String):[],c=s.length;for(var l in e)(t||Ka.call(e,l))&&!(a&&(l=="length"||r&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ln(l,c)))&&s.push(l);return s}function Ja(e,t){return function(u){return e(t(u))}}var Qa=Ja(Object.keys,Object);const e0=Qa;var t0=Object.prototype,u0=t0.hasOwnProperty;function n0(e){if(!xu(e))return e0(e);var t=[];for(var u in Object(e))u0.call(e,u)&&u!="constructor"&&t.push(u);return t}function r0(e){return jt(e)?Gn(e):n0(e)}var i0=Object.prototype,o0=i0.hasOwnProperty,a0=aa(function(e,t){if(xu(t)||jt(t)){ra(t,r0(t),e);return}for(var u in t)o0.call(t,u)&&$n(e,u,t[u])});const s0=a0;function c0(e){var t=[];if(e!=null)for(var u in Object(e))t.push(u);return t}var l0=Object.prototype,d0=l0.hasOwnProperty;function f0(e){if(!Rt(e))return c0(e);var t=xu(e),u=[];for(var n in e)n=="constructor"&&(t||!d0.call(e,n))||u.push(n);return u}function h0(e){return jt(e)?Gn(e,!0):f0(e)}var Kn=Object.prototype,p0=Kn.hasOwnProperty;zn(function(e,t){e=Object(e);var u=-1,n=t.length,r=n>2?t[2]:void 0;for(r&&Rn(t[0],t[1],r)&&(n=1);++u<n;)for(var o=t[u],a=h0(o),s=-1,c=a.length;++s<c;){var l=a[s],d=e[l];(d===void 0||_u(d,Kn[l])&&!p0.call(e,l))&&(e[l]=o[l])}return e});const Ht=({images:e=[],options:t})=>{t=s0(t,{inline:!1});const u=document.createElement("div"),n=i.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>i.h("img",typeof s=="string"?{src:s}:s)));i.render(n,u);const r=u.firstElementChild;document.body.appendChild(r);const o=new hu(r,t),a=o.destroy.bind(o);return o.destroy=function(){return a(),i.render(null,u),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 u;const n=i.ref();function r(){u=new hu(n.value,e.options),t("inited",u)}function o(){u&&u.destroy()}function a(){o(),r()}function s(){u?(u.update(),t("inited",u)):r()}function c(){e.rebuild?a():s()}const l={deep:!0};return i.watch(()=>e.images,()=>{i.nextTick(()=>{c()})},l),i.watch(()=>e.trigger,()=>{i.nextTick(()=>{c()})},l),i.watch(()=>e.options,()=>{i.nextTick(()=>{a()})},l),i.onMounted(()=>r()),i.onUnmounted(()=>o()),{root:n,createViewer:r,rebuildViewer:a,updateViewer:s,destroyViewer:o}}});const m0={},b0={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g0(e,t){return i.openBlock(),i.createElementBlock("svg",b0,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 Jn=Z(m0,[["render",g0]]),_0=["src"],x0={class:"name"},k0={class:"sub"},y0={key:0},E0=["src"],C0=["src"],w0=Z({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const t=e,u=i.ref(t.open),n=i.ref(null),r=i.ref(0),o=i.ref([]);i.onMounted(async()=>{u.value&&(await h(),await s(),setTimeout(()=>{a()},200))});const a=i.inject("triggerScrollToEnd"),s=()=>new Promise(async x=>{await i.nextTick();const y=[];o.value.hasOwnProperty("craftUrl")&&o.value.craftUrl&&y.push(o.value.craftUrl),y.length?(await c(y),await i.nextTick(),r.value=d.value?n.value.scrollHeight:0,u.value&&(r.value+=26),u.value=!0):u.value=!1,x()}),c=x=>{const y=[];return x.forEach(g=>{const _=new Image,b=new Promise((E,C)=>{_.onload=()=>E(_),_.onerror=()=>C(new Error(`加载${g}失败`)),_.src=g});y.push(b)}),Promise.all(y)},l=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 y,g;return(((g=(y=t.info)==null?void 0:y.makeMaterialList)==null?void 0:g.map(_=>_.material+_.usage+"g"))||[]).join("、")});const d=i.computed(()=>t.info.hasOwnProperty("cid")&&t.info.cid),f=i.computed(()=>{let x="92px";return d.value&&(x=u.value?r.value+66+"px":"118px"),x}),p=x=>{Ht({images:[x]})},m=async()=>{u.value?u.value=!1:(await h(),s())},h=async()=>{if(!(o.value.hasOwnProperty("makeCraftList")&&o.value.hasOwnProperty("makeMaterialList"))){const x=await Nt("/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,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({dishes_box:!0,is_open:u.value}),style:i.normalizeStyle({height:f.value})},[i.createElementVNode("div",{class:"dishes_wrap",onClick:i.withModifiers(m,["stop"])},[i.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:y[0]||(y[0]=i.withModifiers(g=>p(e.info.primaryImgUrl),["stop"]))},null,8,_0),i.createElementVNode("div",null,[i.createElementVNode("div",x0,[i.createElementVNode("span",null,i.toDisplayString(e.info.skuname),1),y[2]||(y[2]=i.createElementVNode("span",null,"×1",-1))]),i.createElementVNode("div",k0,i.toDisplayString(l.value),1)])]),d.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:n},[i.withDirectives(i.createElementVNode("div",{class:"switch_open",onClick:i.withModifiers(m,["stop"])},[y[3]||(y[3]=i.createElementVNode("span",null,"查看菜谱详情",-1)),i.createVNode(Jn,{class:"icon"})],512),[[i.vShow,!u.value]]),y[4]||(y[4]=i.createElementVNode("div",{class:"title"},"制作工艺",-1)),o.value.makeVideosUrl?(i.openBlock(),i.createElementBlock("div",y0,[i.createElementVNode("video",{src:o.value.makeVideosUrl,width:"100%",controls:"true"},null,8,E0)])):i.createCommentVNode("",!0),i.createElementVNode("img",{src:o.value.craftUrl,width:"100%",alt:"craft"},null,8,C0),i.createElementVNode("div",{class:"collapse_btn",onClick:y[1]||(y[1]=i.withModifiers(g=>u.value=!1,["stop"]))},"收起")],512)):i.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-7da603ee"]]),v0={class:"dl_wrap"},D0={key:0},A0={key:0,class:"sep_line"},F0={class:"date"},S0={key:1,style:{padding:"15px 0"}},N0={class:"title"},B0={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},T0={key:1,class:"btn_group"},I0={key:2,class:"btn_group"},V0=Z({__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 u=e,n=t;i.ref(!1);const r=i.ref(!1),o=(l,d)=>!1,a=l=>{let d=0;return((l==null?void 0:l.list)||[]).forEach(f=>{((f==null?void 0:f.getCategoryList)||[]).forEach(p=>{d+=p.energy||0})}),d},s=l=>u.skuList.slice(0,l).findIndex(d=>d.strDate===u.skuList[l].strDate)===-1,c=l=>{n("select",{type:l})};return(l,d)=>(i.openBlock(),i.createElementBlock("div",v0,[i.createElementVNode("div",{class:i.normalizeClass(["dl_list",{show_full:r.value}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.skuList,(f,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f.category},[s(p)?(i.openBlock(),i.createElementBlock("div",D0,[p>0?(i.openBlock(),i.createElementBlock("div",A0)):i.createCommentVNode("",!0),i.createElementVNode("div",F0,i.toDisplayString(f.strDate.slice(4,6))+"月"+i.toDisplayString(f.strDate.slice(6))+"日 ",1)])):i.createCommentVNode("",!0),f.list&&f.list.length?(i.openBlock(),i.createElementBlock("div",S0,[i.createElementVNode("p",N0,i.toDisplayString(f.categoryType)+" "+i.toDisplayString(a(f))+"kcal ",1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.list,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.getCategoryList,(h,x)=>(i.openBlock(),i.createBlock(w0,{key:x,info:h,"def-msg":e.defMsg,open:o(h,f.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:d[0]||(d[0]=f=>r.value=!r.value)},i.toDisplayString(r.value?"收起菜谱":"点击查看完整食谱"),3),e.isMini?(i.openBlock(),i.createElementBlock("div",B0,d[5]||(d[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",T0,[i.createElementVNode("div",{class:"btn btn_1",onClick:d[1]||(d[1]=i.withModifiers(f=>c("personalForm"),["stop"]))},d[6]||(d[6]=[i.createElementVNode("span",{class:"name"},"私人定制个性食谱",-1)])),i.createElementVNode("div",{class:"btn btn_2",onClick:d[2]||(d[2]=i.withModifiers(f=>c("ship_order"),["stop"]))},d[7]||(d[7]=[i.createElementVNode("span",{class:"name"},"去订餐",-1)]))])):(i.openBlock(),i.createElementBlock("div",I0,[e.channel!=="hft"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"btn btn_1",onClick:d[3]||(d[3]=i.withModifiers(f=>c("ship_order"),["stop"]))},d[8]||(d[8]=[i.createElementVNode("span",{class:"name"},"配送下單",-1),i.createElementVNode("span",{class:"sub"},"(直送到府)",-1)]))):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"btn btn_2",onClick:d[4]||(d[4]=i.withModifiers(f=>c("pick_order"),["stop"]))},d[9]||(d[9]=[i.createElementVNode("span",{class:"name"},"自提下單",-1),i.createElementVNode("span",{class:"sub"},"(免運費)",-1)]))]))]))}},[["__scopeId","data-v-adcdb920"]]),L0={class:"card",style:{"margin-top":"15px"}},O0={class:"row"},$0={class:"content"},M0={class:"title"},z0={class:"row"},P0={class:"name"},R0={class:"content"},q0={class:"row"},j0={class:"name"},H0={class:"content"},U0={class:"row"},Z0={class:"name"},W0={class:"content"},Y0={class:"row"},X0={class:"name"},G0={class:"content"},K0={class:"btn_group"},J0=Z({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const u={"01":"早餐","02":"午餐","03":"晚餐","04":"加餐",carbohydrateTotal:"碳水化合物",proteinTotal:"蛋白質",fatTotal:"脂肪"},n=t,r=()=>{n("select",{})};return(o,a)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",L0,[i.createElementVNode("div",O0,[a[0]||(a[0]=i.createElementVNode("div",{class:"name"},"每日攝入能量",-1)),i.createElementVNode("div",$0,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",M0,i.toDisplayString(u[s.category]),1),i.createElementVNode("div",z0,[i.createElementVNode("div",P0,i.toDisplayString(u[s.category])+"熱量",1),i.createElementVNode("div",R0,i.toDisplayString(s.totalKcal)+" kcal",1)]),a[1]||(a[1]=i.createElementVNode("div",{class:"sep"},null,-1)),i.createElementVNode("div",q0,[i.createElementVNode("div",j0,i.toDisplayString(u.carbohydrateTotal),1),i.createElementVNode("div",H0,i.toDisplayString(s.carbohydrateTotal)+" g",1)]),i.createElementVNode("div",U0,[i.createElementVNode("div",Z0,i.toDisplayString(u.proteinTotal),1),i.createElementVNode("div",W0,i.toDisplayString(s.proteinTotal)+" g",1)]),i.createElementVNode("div",Y0,[i.createElementVNode("div",X0,i.toDisplayString(u.fatTotal),1),i.createElementVNode("div",G0,i.toDisplayString(s.fatTotal)+" g",1)])]))),128)),i.createElementVNode("div",K0,[i.createElementVNode("div",{class:"btn btn_2",onClick:i.withModifiers(r,["stop"])},"用該方案配餐")])],64))}},[["__scopeId","data-v-b9dd25a1"]]),Q0={},es={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ts(e,t){return i.openBlock(),i.createElementBlock("svg",es,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 us=Z(Q0,[["render",ts]]),ns={name:"pictureIcon"},rs={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function is(e,t,u,n,r,o){return i.openBlock(),i.createElementBlock("svg",rs,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 os=Z(ns,[["render",is]]),as={},ss={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cs(e,t){return i.openBlock(),i.createElementBlock("svg",ss,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 ls=Z(as,[["render",cs]]),ds=["width","height"],fs=["stroke"],hs=["stroke","stroke-dasharray","stroke-dashoffset"],Qn={__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,u=i.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(n,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,fs),i.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
10
+ a 45 45 0 1 1 0 90\r
11
+ a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":u.value.l,"stroke-dashoffset":u.value.p},null,8,hs)],8,ds))}},ps={},ms={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bs(e,t){return i.openBlock(),i.createElementBlock("svg",ms,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 gs=Z(ps,[["render",bs]]),_s={},xs={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ks(e,t){return i.openBlock(),i.createElementBlock("svg",xs,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 ys=Z(_s,[["render",ks]]),Es={},Cs={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ws(e,t){return i.openBlock(),i.createElementBlock("svg",Cs,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 er=Z(Es,[["render",ws]]),vs={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"},Ds=["fill"],As=["fill"],Fs={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,u)=>(i.openBlock(),i.createElementBlock("svg",vs,[i.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,Ds),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"},u[0]||(u[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,As)]))}},Ss={class:"om_wrap"},Ns={class:"om_quick"},Bs=["onClick"],Ts={class:"om_operate_box"},Is={class:"om_operate_wrap"},Vs={class:"file_list"},Ls=["src"],Os={key:2,class:"process"},$s={class:"om_operate"},Ms=["placeholder"],zs={class:"btn_group"},Ps={class:"om_extra",style:{display:"none"}},Rs={class:"icon"},qs={class:"text"},js={class:"om_ai_tips"},Hs="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Us=Z({__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 u=[{name:"相冊",icon:os,type:"photo"},{name:"文件",icon:ls,type:"file"}],n=i.ref(null),r=i.ref(null),o=i.ref(null),a=i.ref(!1),s=i.ref([]),c=e,l=t,d=i.computed(()=>({headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"multipart/form-data"}}));i.watch(()=>c.modelValue,()=>{R()});const f=i.computed(()=>{switch(c.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=i.computed({get:()=>c.modelValue,set:O=>{l("update:modelValue",O),R()}});i.onMounted(()=>{R()}),i.onUnmounted(()=>{n.value&&(n.value.style.height="auto")});const m=O=>{p.value=O.target.value.replace(/^\n+|\n+$/g,"")},h=O=>{O.type==="upload"?E():l("tag",{...O})},x=()=>{if(!p.value)return;if(s.value.length&&s.value.findIndex(I=>I.percent<100)>-1){l("call",{message:c.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const O=[{content:p.value,text:p.value}];console.log("====== u file list =======",s.value),s.value.length&&(O.push({type:"object_string",content:s.value.map(I=>({type:ye(I.file_type),name:I.file.name,file_id:I.data.id,file_url:I.file_url}))}),a.value=!1),l("send",[...O]),w()},y=O=>{const I=O.target.files[0],$=new FileReader;$.onload=()=>previewUrl.value=$.result,$.readAsDataURL(I)},g=()=>{r.value&&r.value.click()},_=O=>{const I=O.target.files[0];console.log("=== file ===",O),I&&(s.value.push({file:I,file_type:I.type,file_url:URL.createObjectURL(I),size:(I.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",s.value),b(s.value.length-1))},b=async O=>{const I=s.value[O].file;console.log("========",I),p.value||(p.value=c.defMsg.fileText);const $=new FormData;$.append("file",I);const te=new XMLHttpRequest;te.open("POST","https://api.coze.cn/v1/files/upload"),te.setRequestHeader("Authorization",d.value.headers.Authorization),te.upload.onprogress=v=>{if(v.lengthComputable){const N=Math.round(v.loaded/v.total*100);console.log(`======进度======:${N}%`),s.value[O].percent=N}},te.onreadystatechange=function(){if(console.log("============",te),te.readyState===XMLHttpRequest.DONE)if(te.status===200){console.log("上传成功:",te.responseText);const v=JSON.parse(te.response);s.value[O].data=v.data}else console.error("上传失败:",te.status)},te.send($)},E=()=>{w(!0),a.value=!0},C=()=>{w(!0),a.value=!1},w=(O=!1)=>{if(O)for(let I=s.value.length-1;I>=0;I-=1)S(I);r.value&&(r.value.value=""),s.value=[]},S=O=>{URL.revokeObjectURL(s.value[O].file_url),s.value.splice(O,1),r.value&&(r.value.value="")},P=()=>{l("call",{type:"new_chat"})},R=()=>{i.nextTick(()=>{n.value&&(n.value.style.height="auto",n.value.style.height=Math.min(n.value.scrollHeight,72)+"px")})},Q=()=>{i.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},ye=O=>{if(O.includes("image"))return"image";if(O.includes("application"))return"file";if(O.includes("audio"))return"audio"},Ee=()=>{};return(O,I)=>(i.openBlock(),i.createElementBlock("div",Ss,[i.createElementVNode("div",Ns,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tagList,$=>(i.openBlock(),i.createElementBlock("div",{class:"tag",key:$.value,onClick:i.withModifiers(te=>h($),["stop"])},[i.createVNode(us,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString($.name),1)],8,Bs))),128))]),i.createElementVNode("div",Ts,[e.newChat?(i.openBlock(),i.createElementBlock("div",{key:0,class:"new_chat",onClick:i.withModifiers(P,["stop"])},[i.createVNode(er)])):i.createCommentVNode("",!0),i.createElementVNode("div",Is,[i.createElementVNode("div",{class:i.normalizeClass(["file_list_box",{hidden:!a.value}])},[i.createElementVNode("div",Vs,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,($,te)=>(i.openBlock(),i.createElementBlock("div",{key:te,class:"file_card"},[$.file_type.toLocaleLowerCase().includes("pdf")?(i.openBlock(),i.createElementBlock("img",{key:0,class:"pdf",src:Hs,width:"100%",alt:"img"})):(i.openBlock(),i.createElementBlock("img",{key:1,class:"img",src:$.file_url,width:"100%",alt:"img"},null,8,Ls)),$.percent<100?(i.openBlock(),i.createElementBlock("div",Os,[i.createVNode(Qn,{percent:$.percent},null,8,["percent"])])):(i.openBlock(),i.createBlock(ys,{key:3,class:"close",onClick:i.withModifiers(v=>S(te),["stop"])},null,8,["onClick"]))]))),128)),s.value.length<4?(i.openBlock(),i.createElementBlock("div",{key:0,class:"file_add",onClick:i.withModifiers(g,["stop"])},[i.createVNode(gs)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"file_close",onClick:i.withModifiers(C,["stop"])},[i.createVNode(Wu)])])],2),i.createElementVNode("div",$s,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":I[0]||(I[0]=$=>p.value=$),ref_key:"txtEle",ref:n,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:m,onKeyup:i.withKeys(x,["enter"]),onFocus:Q,onBlur:Ee},null,40,Ms),[[i.vModelText,p.value]]),i.createElementVNode("div",zs,[i.createElementVNode("div",{class:"btn",onClick:i.withModifiers(x,["stop"])},[e.isReq==="00"?(i.openBlock(),i.createBlock(Ti,{key:0,style:i.normalizeStyle({color:p.value?"#039938":"#ccc"})},null,8,["style"])):(i.openBlock(),i.createBlock(Fs,{key:1,bg:f.value.bg,color:f.value.color},null,8,["bg","color"]))])])])])]),i.createElementVNode("div",Ps,[i.createElementVNode("input",{ref_key:"captureInput",ref:o,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:y},null,544),i.createElementVNode("input",{ref_key:"uploadInput",ref:r,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:_},null,544),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(u,$=>i.createElementVNode("div",{key:$.type,class:"card",onClick:i.withModifiers(g,["stop"])},[i.createElementVNode("div",Rs,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent($.icon)))]),i.createElementVNode("div",qs,i.toDisplayString($.name),1)])),64)),i.createVNode(Qn,{percent:15})]),i.createElementVNode("div",js,i.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-2044a301"]]),Zs={},Ws={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 Ys(e,t){return i.openBlock(),i.createElementBlock("svg",Ws,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 Xs=Z(Zs,[["render",Ys]]),Gs={},Ks={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function Js(e,t){return i.openBlock(),i.createElementBlock("svg",Ks,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 Qs=Z(Gs,[["render",Js]]),ec=["src","alt"],tc="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",uc=Z({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,u=()=>{const r=t.list.filter(o=>o.type==="image"&&o.file_url);r.length&&Ht({images:r.map(o=>o.file_url)})},n=({type:r,name:o,file_url:a})=>{console.log(t.list);let s=a;return r==="file"&&o.toLowerCase().endsWith("pdf")&&(s=tc),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:n(a),alt:a.name,onClick:i.withModifiers(u,["stop"])},null,8,ec))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),nc={},rc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ic(e,t){return i.openBlock(),i.createElementBlock("svg",rc,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 oc=Z(nc,[["render",ic]]),ac={},sc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cc(e,t){return i.openBlock(),i.createElementBlock("svg",sc,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 lc=Z(ac,[["render",cc]]),dc={class:"text"},fc=["onClick"],hc=Z({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,u=i.ref([]),n=i.computed(()=>{const o=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,a=[...t.content.matchAll(o)];let s=t.content,c=0;const l=[];return a.length?(a.forEach((d,f)=>{l.push({type:"text",content:d.input.slice(c,d.index).replace(o,"")}),l.push({type:"link",string:d[0],...JSON.parse(d[0].replace(o,'{"content":"[$1]","url":"$2"}'))}),s=d.input.slice(d.index).replace(d[0],""),c=d.index}),s.length&&l.push({type:"text",content:s})):l.push({type:"text",content:s}),l}),r=({url:o})=>{u.value=[o],Ht({images:u.value})};return(o,a)=>(i.openBlock(),i.createElementBlock("p",dc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(s,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:c},[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(l=>r(s),["stop"])},i.toDisplayString(s.content),9,fc)):i.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),pc=e=>{Ht({images:e})},mc={class:"name"},bc={class:"address"},tr="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",gc=Z({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const u=e,n=t,r=()=>{n("select",{type:"chat",content:u.info.hpName,text:u.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||tr}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:a[0]||(a[0]=i.withModifiers(s=>i.unref(pc)([e.info.signUrl||tr]),["stop"]))},null,4),i.createElementVNode("div",null,[i.createElementVNode("div",mc,i.toDisplayString(e.info.hpName),1),i.createElementVNode("div",bc,i.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),_c={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const u=t,n=r=>{u("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(gc,{key:a.hpName,info:a,onSelect:n},null,8,["info"]))),128))],64))}},ur={};function xc(e){let t=ur[e];if(t)return t;t=ur[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);t.push(n)}for(let u=0;u<e.length;u++){const n=e.charCodeAt(u);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function nt(e,t){typeof t!="string"&&(t=nt.defaultChars);const u=xc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let r="";for(let o=0,a=n.length;o<a;o+=3){const s=parseInt(n.slice(o+1,o+3),16);if(s<128){r+=u[s];continue}if((s&224)===192&&o+3<a){const c=parseInt(n.slice(o+4,o+6),16);if((c&192)===128){const l=s<<6&1984|c&63;l<128?r+="��":r+=String.fromCharCode(l),o+=3;continue}}if((s&240)===224&&o+6<a){const c=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16);if((c&192)===128&&(l&192)===128){const d=s<<12&61440|c<<6&4032|l&63;d<2048||d>=55296&&d<=57343?r+="���":r+=String.fromCharCode(d),o+=6;continue}}if((s&248)===240&&o+9<a){const c=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16),d=parseInt(n.slice(o+10,o+12),16);if((c&192)===128&&(l&192)===128&&(d&192)===128){let f=s<<18&1835008|c<<12&258048|l<<6&4032|d&63;f<65536||f>1114111?r+="����":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),o+=9;continue}}r+="�"}return r})}nt.defaultChars=";/?:@&=+$,#",nt.componentChars="";const nr={};function kc(e){let t=nr[e];if(t)return t;t=nr[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2))}for(let u=0;u<e.length;u++)t[e.charCodeAt(u)]=e[u];return t}function gt(e,t,u){typeof t!="string"&&(u=t,t=gt.defaultChars),typeof u>"u"&&(u=!0);const n=kc(t);let r="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(u&&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+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const c=e.charCodeAt(o+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}gt.defaultChars=";/?:@&=+$,-_.!~*'()#",gt.componentChars="-_.!~*'()";function yu(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 Ut(){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 yc=/^([a-z0-9.+-]+:)/i,Ec=/:[0-9]*$/,Cc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wc=["<",">",'"',"`"," ","\r",`
12
+ `," "],vc=["{","}","|","\\","^","`"].concat(wc),Dc=["'"].concat(vc),rr=["%","/","?",";","#"].concat(Dc),ir=["/","?","#"],Ac=255,or=/^[+a-z0-9A-Z_-]{0,63}$/,Fc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ar={javascript:!0,"javascript:":!0},sr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Eu(e,t){if(e&&e instanceof Ut)return e;const u=new Ut;return u.parse(e,t),u}Ut.prototype.parse=function(e,t){let u,n,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const l=Cc.exec(o);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let a=yc.exec(o);if(a&&(a=a[0],u=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(a&&ar[a])&&(o=o.substr(2),this.slashes=!0)),!ar[a]&&(r||a&&!sr[a])){let l=-1;for(let h=0;h<ir.length;h++)n=o.indexOf(ir[h]),n!==-1&&(l===-1||n<l)&&(l=n);let d,f;l===-1?f=o.lastIndexOf("@"):f=o.lastIndexOf("@",l),f!==-1&&(d=o.slice(0,f),o=o.slice(f+1),this.auth=d),l=-1;for(let h=0;h<rr.length;h++)n=o.indexOf(rr[h]),n!==-1&&(l===-1||n<l)&&(l=n);l===-1&&(l=o.length),o[l-1]===":"&&l--;const p=o.slice(0,l);o=o.slice(l),this.parseHost(p),this.hostname=this.hostname||"";const m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){const h=this.hostname.split(/\./);for(let x=0,y=h.length;x<y;x++){const g=h[x];if(g&&!g.match(or)){let _="";for(let b=0,E=g.length;b<E;b++)g.charCodeAt(b)>127?_+="x":_+=g[b];if(!_.match(or)){const b=h.slice(0,x),E=h.slice(x+1),C=g.match(Fc);C&&(b.push(C[1]),E.unshift(C[2])),E.length&&(o=E.join(".")+o),this.hostname=b.join(".");break}}}}this.hostname.length>Ac&&(this.hostname=""),m&&(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 c=o.indexOf("?");return c!==-1&&(this.search=o.substr(c),o=o.slice(0,c)),o&&(this.pathname=o),sr[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ut.prototype.parseHost=function(e){let t=Ec.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 Sc=Object.freeze(Object.defineProperty({__proto__:null,decode:nt,encode:gt,format:yu,parse:Eu},Symbol.toStringTag,{value:"Module"})),cr=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lr=/[\0-\x1F\x7F-\x9F]/,Nc=/[\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]/,Cu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,dr=/[\$\+<->\^`\|~\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]/,fr=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Bc=Object.freeze(Object.defineProperty({__proto__:null,Any:cr,Cc:lr,Cf:Nc,P:Cu,S:dr,Z:fr},Symbol.toStringTag,{value:"Module"})),Tc=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),Ic=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var wu;const Vc=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]]),Lc=(wu=String.fromCodePoint)!==null&&wu!==void 0?wu: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 Oc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vc.get(e))!==null&&t!==void 0?t:e}var ie;(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"})(ie||(ie={}));const $c=32;var $e;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})($e||($e={}));function vu(e){return e>=ie.ZERO&&e<=ie.NINE}function Mc(e){return e>=ie.UPPER_A&&e<=ie.UPPER_F||e>=ie.LOWER_A&&e<=ie.LOWER_F}function zc(e){return e>=ie.UPPER_A&&e<=ie.UPPER_Z||e>=ie.LOWER_A&&e<=ie.LOWER_Z||vu(e)}function Pc(e){return e===ie.EQUALS||zc(e)}var oe;(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"})(oe||(oe={}));var Me;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Me||(Me={}));class Rc{constructor(t,u,n){this.decodeTree=t,this.emitCodePoint=u,this.errors=n,this.state=oe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Me.Strict}startEntity(t){this.decodeMode=t,this.state=oe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case oe.EntityStart:return t.charCodeAt(u)===ie.NUM?(this.state=oe.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=oe.NamedEntity,this.stateNamedEntity(t,u));case oe.NumericStart:return this.stateNumericStart(t,u);case oe.NumericDecimal:return this.stateNumericDecimal(t,u);case oe.NumericHex:return this.stateNumericHex(t,u);case oe.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|$c)===ie.LOWER_X?(this.state=oe.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=oe.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,n,r){if(u!==n){const o=n-u;this.result=this.result*Math.pow(r,o)+parseInt(t.substr(u,o),r),this.consumed+=o}}stateNumericHex(t,u){const n=u;for(;u<t.length;){const r=t.charCodeAt(u);if(vu(r)||Mc(r))u+=1;else return this.addToNumericResult(t,n,u,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,n,u,16),-1}stateNumericDecimal(t,u){const n=u;for(;u<t.length;){const r=t.charCodeAt(u);if(vu(r))u+=1;else return this.addToNumericResult(t,n,u,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,n,u,10),-1}emitNumericEntity(t,u){var n;if(this.consumed<=u)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ie.SEMI)this.consumed+=1;else if(this.decodeMode===Me.Strict)return 0;return this.emitCodePoint(Oc(this.result),this.consumed),this.errors&&(t!==ie.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&$e.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){const a=t.charCodeAt(u);if(this.treeIndex=qc(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Me.Attribute&&(o===0||Pc(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&$e.VALUE_LENGTH)>>14,o!==0){if(a===ie.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Me.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:n}=this,r=(n[u]&$e.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,n){const{decodeTree:r}=this;return this.emitCodePoint(u===1?r[t]&~$e.VALUE_LENGTH:r[t+1],n),u===3&&this.emitCodePoint(r[t+2],n),n}end(){var t;switch(this.state){case oe.NamedEntity:return this.result!==0&&(this.decodeMode!==Me.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case oe.NumericDecimal:return this.emitNumericEntity(0,2);case oe.NumericHex:return this.emitNumericEntity(0,3);case oe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case oe.EntityStart:return 0}}}function hr(e){let t="";const u=new Rc(e,n=>t+=Lc(n));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(a,s),u.startEntity(o);const l=u.write(r,s+1);if(l<0){a=s+u.end();break}a=s+l,s=l===0?a+1:a}const c=t+r.slice(a);return t="",c}}function qc(e,t,u,n){const r=(t&$e.BRANCH_LENGTH)>>7,o=t&$e.JUMP_TABLE;if(r===0)return o!==0&&n===o?u:-1;if(o){const c=n-o;return c<0||c>=r?-1:e[u+c]-1}let a=u,s=a+r-1;for(;a<=s;){const c=a+s>>>1,l=e[c];if(l<n)a=c+1;else if(l>n)s=c-1;else return e[c+r]}return-1}const jc=hr(Tc);hr(Ic);function pr(e,t=Me.Legacy){return jc(e,t)}function Hc(e){return Object.prototype.toString.call(e)}function Du(e){return Hc(e)==="[object String]"}const Uc=Object.prototype.hasOwnProperty;function Zc(e,t){return Uc.call(e,t)}function Zt(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(n){e[n]=u[n]})}}),e}function mr(e,t,u){return[].concat(e.slice(0,t),u,e.slice(t+1))}function Au(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 Wt(e){if(e>65535){e-=65536;const t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}const br=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Wc=/&([a-z#][a-z0-9]{1,31});/gi,Yc=new RegExp(br.source+"|"+Wc.source,"gi"),Xc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Gc(e,t){if(t.charCodeAt(0)===35&&Xc.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Au(n)?Wt(n):e}const u=pr(e);return u!==e?u:e}function Kc(e){return e.indexOf("\\")<0?e:e.replace(br,"$1")}function rt(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Yc,function(t,u,n){return u||Gc(t,n)})}const Jc=/[&<>"]/,Qc=/[&<>"]/g,el={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function tl(e){return el[e]}function ze(e){return Jc.test(e)?e.replace(Qc,tl):e}const ul=/[.?*+^$[\]\\(){}|-]/g;function nl(e){return e.replace(ul,"\\$&")}function U(e){switch(e){case 9:case 32:return!0}return!1}function _t(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 xt(e){return Cu.test(e)||dr.test(e)}function kt(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 Yt(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const rl=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:mr,assign:Zt,escapeHtml:ze,escapeRE:nl,fromCodePoint:Wt,has:Zc,isMdAsciiPunct:kt,isPunctChar:xt,isSpace:U,isString:Du,isValidEntityCode:Au,isWhiteSpace:_t,lib:{mdurl:Sc,ucmicro:Bc},normalizeReference:Yt,unescapeAll:rt,unescapeMd:Kc},Symbol.toStringTag,{value:"Module"}));function il(e,t,u){let n,r,o,a;const s=e.posMax,c=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(n--,n===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)n++;else if(u)return e.pos=c,-1}}let l=-1;return r&&(l=e.pos),e.pos=c,l}function ol(e,t,u){let n,r=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<u;){if(n=e.charCodeAt(r),n===10||n===60)return o;if(n===62)return o.pos=r+1,o.str=rt(e.slice(t+1,r)),o.ok=!0,o;if(n===92&&r+1<u){r+=2;continue}r++}return o}let a=0;for(;r<u&&(n=e.charCodeAt(r),!(n===32||n<32||n===127));){if(n===92&&r+1<u){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(n===40&&(a++,a>32))return o;if(n===41){if(a===0)break;a--}r++}return t===r||a!==0||(o.str=rt(e.slice(t,r)),o.pos=r,o.ok=!0),o}function al(e,t,u,n){let r,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(o>=u)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<u;){if(r=e.charCodeAt(o),r===a.marker)return a.pos=o+1,a.str+=rt(e.slice(t,o)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&o+1<u&&o++,o++}return a.can_continue=!0,a.str+=rt(e.slice(t,o)),a}const sl=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:ol,parseLinkLabel:il,parseLinkTitle:al},Symbol.toStringTag,{value:"Module"})),Ae={};Ae.code_inline=function(e,t,u,n,r){const o=e[t];return"<code"+r.renderAttrs(o)+">"+ze(o.content)+"</code>"},Ae.code_block=function(e,t,u,n,r){const o=e[t];return"<pre"+r.renderAttrs(o)+"><code>"+ze(e[t].content)+`</code></pre>
13
+ `},Ae.fence=function(e,t,u,n,r){const o=e[t],a=o.info?rt(o.info).trim():"";let s="",c="";if(a){const d=a.split(/(\s+)/g);s=d[0],c=d.slice(2).join("")}let l;if(u.highlight?l=u.highlight(o.content,s,c)||ze(o.content):l=ze(o.content),l.indexOf("<pre")===0)return l+`
14
+ `;if(a){const d=o.attrIndex("class"),f=o.attrs?o.attrs.slice():[];d<0?f.push(["class",u.langPrefix+s]):(f[d]=f[d].slice(),f[d][1]+=" "+u.langPrefix+s);const p={attrs:f};return`<pre><code${r.renderAttrs(p)}>${l}</code></pre>
15
+ `}return`<pre><code${r.renderAttrs(o)}>${l}</code></pre>
16
+ `},Ae.image=function(e,t,u,n,r){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,u,n),r.renderToken(e,t,u)},Ae.hardbreak=function(e,t,u){return u.xhtmlOut?`<br />
17
+ `:`<br>
18
+ `},Ae.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`<br />
19
+ `:`<br>
20
+ `:`
21
+ `},Ae.text=function(e,t){return ze(e[t].content)},Ae.html_block=function(e,t){return e[t].content},Ae.html_inline=function(e,t){return e[t].content};function it(){this.rules=Zt({},Ae)}it.prototype.renderAttrs=function(t){let u,n,r;if(!t.attrs)return"";for(r="",u=0,n=t.attrs.length;u<n;u++)r+=" "+ze(t.attrs[u][0])+'="'+ze(t.attrs[u][1])+'"';return r},it.prototype.renderToken=function(t,u,n){const r=t[u];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&u&&t[u-1].hidden&&(o+=`
22
+ `),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&u+1<t.length)){const s=t[u+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(a=!1)}return o+=a?`>
23
+ `:">",o},it.prototype.renderInline=function(e,t,u){let n="";const r=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;typeof r[s]<"u"?n+=r[s](e,o,t,u,this):n+=this.renderToken(e,o,t)}return n},it.prototype.renderInlineAsText=function(e,t,u){let n="";for(let r=0,o=e.length;r<o;r++)switch(e[r].type){case"text":n+=e[r].content;break;case"image":n+=this.renderInlineAsText(e[r].children,t,u);break;case"html_inline":case"html_block":n+=e[r].content;break;case"softbreak":case"hardbreak":n+=`
24
+ `;break}return n},it.prototype.render=function(e,t,u){let n="";const r=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;s==="inline"?n+=this.renderInline(e[o].children,t,u):typeof r[s]<"u"?n+=r[s](e,o,t,u,this):n+=this.renderToken(e,o,t,u)}return n};function le(){this.__rules__=[],this.__cache__=null}le.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},le.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(u){u.enabled&&u.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(u){e.__cache__[u]=[],e.__rules__.forEach(function(n){n.enabled&&(u&&n.alt.indexOf(u)<0||e.__cache__[u].push(n.fn))})})},le.prototype.at=function(e,t,u){const n=this.__find__(e),r=u||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=r.alt||[],this.__cache__=null},le.prototype.before=function(e,t,u,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:u,alt:o.alt||[]}),this.__cache__=null},le.prototype.after=function(e,t,u,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:u,alt:o.alt||[]}),this.__cache__=null},le.prototype.push=function(e,t,u){const n=u||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},le.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const u=[];return e.forEach(function(n){const r=this.__find__(n);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!0,u.push(n)},this),this.__cache__=null,u},le.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(u){u.enabled=!1}),this.enable(e,t)},le.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const u=[];return e.forEach(function(n){const r=this.__find__(n);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!1,u.push(n)},this),this.__cache__=null,u},le.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ve(e,t,u){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=u,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ve.prototype.attrIndex=function(t){if(!this.attrs)return-1;const u=this.attrs;for(let n=0,r=u.length;n<r;n++)if(u[n][0]===t)return n;return-1},ve.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},ve.prototype.attrSet=function(t,u){const n=this.attrIndex(t),r=[t,u];n<0?this.attrPush(r):this.attrs[n]=r},ve.prototype.attrGet=function(t){const u=this.attrIndex(t);let n=null;return u>=0&&(n=this.attrs[u][1]),n},ve.prototype.attrJoin=function(t,u){const n=this.attrIndex(t);n<0?this.attrPush([t,u]):this.attrs[n][1]=this.attrs[n][1]+" "+u};function gr(e,t,u){this.src=e,this.env=u,this.tokens=[],this.inlineMode=!1,this.md=t}gr.prototype.Token=ve;const cl=/\r\n?|\n/g,ll=/\0/g;function dl(e){let t;t=e.src.replace(cl,`
25
+ `),t=t.replace(ll,"�"),e.src=t}function fl(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 hl(e){const t=e.tokens;for(let u=0,n=t.length;u<n;u++){const r=t[u];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function pl(e){return/^<a[>\s]/i.test(e)}function ml(e){return/^<\/a\s*>/i.test(e)}function bl(e){const t=e.tokens;if(e.md.options.linkify)for(let u=0,n=t.length;u<n;u++){if(t[u].type!=="inline"||!e.md.linkify.pretest(t[u].content))continue;let r=t[u].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"&&(pl(s.content)&&o>0&&o--,ml(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const c=s.content;let l=e.md.linkify.match(c);const d=[];let f=s.level,p=0;l.length>0&&l[0].index===0&&a>0&&r[a-1].type==="text_special"&&(l=l.slice(1));for(let m=0;m<l.length;m++){const h=l[m].url,x=e.md.normalizeLink(h);if(!e.md.validateLink(x))continue;let y=l[m].text;l[m].schema?l[m].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");const g=l[m].index;if(g>p){const C=new e.Token("text","",0);C.content=c.slice(p,g),C.level=f,d.push(C)}const _=new e.Token("link_open","a",1);_.attrs=[["href",x]],_.level=f++,_.markup="linkify",_.info="auto",d.push(_);const b=new e.Token("text","",0);b.content=y,b.level=f,d.push(b);const E=new e.Token("link_close","a",-1);E.level=--f,E.markup="linkify",E.info="auto",d.push(E),p=l[m].lastIndex}if(p<c.length){const m=new e.Token("text","",0);m.content=c.slice(p),m.level=f,d.push(m)}t[u].children=r=mr(r,a,d)}}}}const _r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,gl=/\((c|tm|r)\)/i,_l=/\((c|tm|r)\)/ig,xl={c:"©",r:"®",tm:"™"};function kl(e,t){return xl[t.toLowerCase()]}function yl(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&(n.content=n.content.replace(_l,kl)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function El(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&_r.test(n.content)&&(n.content=n.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–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Cl(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(gl.test(e.tokens[t].content)&&yl(e.tokens[t].children),_r.test(e.tokens[t].content)&&El(e.tokens[t].children))}const wl=/['"]/,xr=/['"]/g,kr="’";function Xt(e,t,u){return e.slice(0,t)+u+e.slice(t+1)}function vl(e,t){let u;const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=e[r].level;for(u=n.length-1;u>=0&&!(n[u].level<=a);u--);if(n.length=u+1,o.type!=="text")continue;let s=o.content,c=0,l=s.length;e:for(;c<l;){xr.lastIndex=c;const d=xr.exec(s);if(!d)break;let f=!0,p=!0;c=d.index+1;const m=d[0]==="'";let h=32;if(d.index-1>=0)h=s.charCodeAt(d.index-1);else for(u=r-1;u>=0&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u--)if(e[u].content){h=e[u].content.charCodeAt(e[u].content.length-1);break}let x=32;if(c<l)x=s.charCodeAt(c);else for(u=r+1;u<e.length&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u++)if(e[u].content){x=e[u].content.charCodeAt(0);break}const y=kt(h)||xt(String.fromCharCode(h)),g=kt(x)||xt(String.fromCharCode(x)),_=_t(h),b=_t(x);if(b?f=!1:g&&(_||y||(f=!1)),_?p=!1:y&&(b||g||(p=!1)),x===34&&d[0]==='"'&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=y,p=g),!f&&!p){m&&(o.content=Xt(o.content,d.index,kr));continue}if(p)for(u=n.length-1;u>=0;u--){let E=n[u];if(n[u].level<a)break;if(E.single===m&&n[u].level===a){E=n[u];let C,w;m?(C=t.md.options.quotes[2],w=t.md.options.quotes[3]):(C=t.md.options.quotes[0],w=t.md.options.quotes[1]),o.content=Xt(o.content,d.index,w),e[E.token].content=Xt(e[E.token].content,E.pos,C),c+=w.length-1,E.token===r&&(c+=C.length-1),s=o.content,l=s.length,n.length=u;continue e}}f?n.push({token:r,pos:d.index,single:m,level:a}):p&&m&&(o.content=Xt(o.content,d.index,kr))}}}function Dl(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!wl.test(e.tokens[t].content)||vl(e.tokens[t].children,e)}function Al(e){let t,u;const n=e.tokens,r=n.length;for(let o=0;o<r;o++){if(n[o].type!=="inline")continue;const a=n[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=u=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!==u&&(a[u]=a[t]),u++);t!==u&&(a.length=u)}}const Fu=[["normalize",dl],["block",fl],["inline",hl],["linkify",bl],["replacements",Cl],["smartquotes",Dl],["text_join",Al]];function Su(){this.ruler=new le;for(let e=0;e<Fu.length;e++)this.ruler.push(Fu[e][0],Fu[e][1])}Su.prototype.process=function(e){const t=this.ruler.getRules("");for(let u=0,n=t.length;u<n;u++)t[u](e)},Su.prototype.State=gr;function Fe(e,t,u,n){this.src=e,this.md=t,this.env=u,this.tokens=n,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,c=0,l=r.length,d=!1;a<l;a++){const f=r.charCodeAt(a);if(!d)if(U(f)){s++,f===9?c+=4-c%4:c++;continue}else d=!0;(f===10||a===l-1)&&(f!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),d=!1,s=0,c=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}Fe.prototype.push=function(e,t,u){const n=new ve(e,t,u);return n.block=!0,u<0&&this.level--,n.level=this.level,u>0&&this.level++,this.tokens.push(n),n},Fe.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Fe.prototype.skipEmptyLines=function(t){for(let u=this.lineMax;t<u&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Fe.prototype.skipSpaces=function(t){for(let u=this.src.length;t<u;t++){const n=this.src.charCodeAt(t);if(!U(n))break}return t},Fe.prototype.skipSpacesBack=function(t,u){if(t<=u)return t;for(;t>u;)if(!U(this.src.charCodeAt(--t)))return t+1;return t},Fe.prototype.skipChars=function(t,u){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===u;t++);return t},Fe.prototype.skipCharsBack=function(t,u,n){if(t<=n)return t;for(;t>n;)if(u!==this.src.charCodeAt(--t))return t+1;return t},Fe.prototype.getLines=function(t,u,n,r){if(t>=u)return"";const o=new Array(u-t);for(let a=0,s=t;s<u;s++,a++){let c=0;const l=this.bMarks[s];let d=l,f;for(s+1<u||r?f=this.eMarks[s]+1:f=this.eMarks[s];d<f&&c<n;){const p=this.src.charCodeAt(d);if(U(p))p===9?c+=4-(c+this.bsCount[s])%4:c++;else if(d-l<this.tShift[s])c++;else break;d++}c>n?o[a]=new Array(c-n+1).join(" ")+this.src.slice(d,f):o[a]=this.src.slice(d,f)}return o.join("")},Fe.prototype.Token=ve;const Fl=65536;function Nu(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(u,n)}function yr(e){const t=[],u=e.length;let n=0,r=e.charCodeAt(n),o=!1,a=0,s="";for(;n<u;)r===124&&(o?(s+=e.substring(a,n-1),a=n):(t.push(s+e.substring(a,n)),s="",a=n+1)),o=r===92,n++,r=e.charCodeAt(n);return t.push(s+e.substring(a)),t}function Sl(e,t,u,n){if(t+2>u)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&&!U(s)||a===45&&U(s))return!1;for(;o<e.eMarks[r];){const E=e.src.charCodeAt(o);if(E!==124&&E!==45&&E!==58&&!U(E))return!1;o++}let c=Nu(e,t+1),l=c.split("|");const d=[];for(let E=0;E<l.length;E++){const C=l[E].trim();if(!C){if(E===0||E===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(C))return!1;C.charCodeAt(C.length-1)===58?d.push(C.charCodeAt(0)===58?"center":"right"):C.charCodeAt(0)===58?d.push("left"):d.push("")}if(c=Nu(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=yr(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==d.length)return!1;if(n)return!0;const p=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),x=[t,0];h.map=x;const y=e.push("thead_open","thead",1);y.map=[t,t+1];const g=e.push("tr_open","tr",1);g.map=[t,t+1];for(let E=0;E<l.length;E++){const C=e.push("th_open","th",1);d[E]&&(C.attrs=[["style","text-align:"+d[E]]]);const w=e.push("inline","",0);w.content=l[E].trim(),w.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let _,b=0;for(r=t+2;r<u&&!(e.sCount[r]<e.blkIndent);r++){let E=!1;for(let w=0,S=m.length;w<S;w++)if(m[w](e,r,u,!0)){E=!0;break}if(E||(c=Nu(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(l=yr(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),b+=f-l.length,b>Fl))break;if(r===t+2){const w=e.push("tbody_open","tbody",1);w.map=_=[t+2,0]}const C=e.push("tr_open","tr",1);C.map=[r,r+1];for(let w=0;w<f;w++){const S=e.push("td_open","td",1);d[w]&&(S.attrs=[["style","text-align:"+d[w]]]);const P=e.push("inline","",0);P.content=l[w]?l[w].trim():"",P.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return _&&(e.push("tbody_close","tbody",-1),_[1]=r),e.push("table_close","table",-1),x[1]=r,e.parentType=p,e.line=r,!0}function Nl(e,t,u){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,r=n;for(;n<u;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,r=n;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
26
+ `,o.map=[t,e.line],!0}function Bl(e,t,u,n){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 c=r-s;if(c<3)return!1;const l=e.src.slice(s,r),d=e.src.slice(r,o);if(a===96&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let f=t,p=!1;for(;f++,!(f>=u||(r=s=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],r<o&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[f]-e.blkIndent>=4)&&(r=e.skipChars(r,a),!(r-s<c)&&(r=e.skipSpaces(r),!(r<o)))){p=!0;break}c=e.sCount[t],e.line=f+(p?1:0);const m=e.push("fence","code",0);return m.info=d,m.content=e.getLines(t+1,f,c,!0),m.markup=l,m.map=[t,e.line],!0}function Tl(e,t,u,n){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(n)return!0;const s=[],c=[],l=[],d=[],f=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let m=!1,h;for(h=t;h<u;h++){const b=e.sCount[h]<e.blkIndent;if(r=e.bMarks[h]+e.tShift[h],o=e.eMarks[h],r>=o)break;if(e.src.charCodeAt(r++)===62&&!b){let C=e.sCount[h]+1,w,S;e.src.charCodeAt(r)===32?(r++,C++,S=!1,w=!0):e.src.charCodeAt(r)===9?(w=!0,(e.bsCount[h]+C)%4===3?(r++,C++,S=!1):S=!0):w=!1;let P=C;for(s.push(e.bMarks[h]),e.bMarks[h]=r;r<o;){const R=e.src.charCodeAt(r);if(U(R))R===9?P+=4-(P+e.bsCount[h]+(S?1:0))%4:P++;else break;r++}m=r>=o,c.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(w?1:0),l.push(e.sCount[h]),e.sCount[h]=P-C,d.push(e.tShift[h]),e.tShift[h]=r-e.bMarks[h];continue}if(m)break;let E=!1;for(let C=0,w=f.length;C<w;C++)if(f[C](e,h,u,!0)){E=!0;break}if(E){e.lineMax=h,e.blkIndent!==0&&(s.push(e.bMarks[h]),c.push(e.bsCount[h]),d.push(e.tShift[h]),l.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),c.push(e.bsCount[h]),d.push(e.tShift[h]),l.push(e.sCount[h]),e.sCount[h]=-1}const x=e.blkIndent;e.blkIndent=0;const y=e.push("blockquote_open","blockquote",1);y.markup=">";const g=[t,0];y.map=g,e.md.block.tokenize(e,t,h);const _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=a,e.parentType=p,g[1]=e.line;for(let b=0;b<d.length;b++)e.bMarks[b+t]=s[b],e.tShift[b+t]=d[b],e.sCount[b+t]=l[b],e.bsCount[b+t]=c[b];return e.blkIndent=x,!0}function Il(e,t,u,n){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 l=e.src.charCodeAt(o++);if(l!==a&&!U(l))return!1;l===a&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Er(e,t){const u=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(n++);if(r!==42&&r!==45&&r!==43)return-1;if(n<u){const o=e.src.charCodeAt(n);if(!U(o))return-1}return n}function Cr(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let r=u;if(r+1>=n)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-u>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<n&&(o=e.src.charCodeAt(r),!U(o))?-1:r}function Vl(e,t){const u=e.level+2;for(let n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===u&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Ll(e,t,u,n){let r,o,a,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let d=!1;n&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(d=!0);let f,p,m;if((m=Cr(e,c))>=0){if(f=!0,a=e.bMarks[c]+e.tShift[c],p=Number(e.src.slice(a,m-1)),d&&p!==1)return!1}else if((m=Er(e,c))>=0)f=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[c])return!1;if(n)return!0;const h=e.src.charCodeAt(m-1),x=e.tokens.length;f?(s=e.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);const y=[c,0];s.map=y,s.markup=String.fromCharCode(h);let g=!1;const _=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";c<u;){o=m,r=e.eMarks[c];const E=e.sCount[c]+m-(e.bMarks[c]+e.tShift[c]);let C=E;for(;o<r;){const $=e.src.charCodeAt(o);if($===9)C+=4-(C+e.bsCount[c])%4;else if($===32)C++;else break;o++}const w=o;let S;w>=r?S=1:S=C-E,S>4&&(S=1);const P=E+S;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const R=[c,0];s.map=R,f&&(s.info=e.src.slice(a,m-1));const Q=e.tight,ye=e.tShift[c],Ee=e.sCount[c],O=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=P,e.tight=!0,e.tShift[c]=w-e.bMarks[c],e.sCount[c]=C,w>=r&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,u):e.md.block.tokenize(e,c,u,!0),(!e.tight||g)&&(l=!1),g=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=O,e.tShift[c]=ye,e.sCount[c]=Ee,e.tight=Q,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),c=e.line,R[1]=c,c>=u||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let I=!1;for(let $=0,te=_.length;$<te;$++)if(_[$](e,c,u,!0)){I=!0;break}if(I)break;if(f){if(m=Cr(e,c),m<0)break;a=e.bMarks[c]+e.tShift[c]}else if(m=Er(e,c),m<0)break;if(h!==e.src.charCodeAt(m-1))break}return f?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),y[1]=c,e.line=c,e.parentType=b,l&&Vl(e,x),!0}function Ol(e,t,u,n){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(_){const b=e.lineMax;if(_>=b||e.isEmpty(_))return null;let E=!1;if(e.sCount[_]-e.blkIndent>3&&(E=!0),e.sCount[_]<0&&(E=!0),!E){const S=e.md.block.ruler.getRules("reference"),P=e.parentType;e.parentType="reference";let R=!1;for(let Q=0,ye=S.length;Q<ye;Q++)if(S[Q](e,_,b,!0)){R=!0;break}if(e.parentType=P,R)return null}const C=e.bMarks[_]+e.tShift[_],w=e.eMarks[_];return e.src.slice(C,w+1)}let c=e.src.slice(r,o+1);o=c.length;let l=-1;for(r=1;r<o;r++){const _=c.charCodeAt(r);if(_===91)return!1;if(_===93){l=r;break}else if(_===10){const b=s(a);b!==null&&(c+=b,o=c.length,a++)}else if(_===92&&(r++,r<o&&c.charCodeAt(r)===10)){const b=s(a);b!==null&&(c+=b,o=c.length,a++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<o;r++){const _=c.charCodeAt(r);if(_===10){const b=s(a);b!==null&&(c+=b,o=c.length,a++)}else if(!U(_))break}const d=e.md.helpers.parseLinkDestination(c,r,o);if(!d.ok)return!1;const f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;r=d.pos;const p=r,m=a,h=r;for(;r<o;r++){const _=c.charCodeAt(r);if(_===10){const b=s(a);b!==null&&(c+=b,o=c.length,a++)}else if(!U(_))break}let x=e.md.helpers.parseLinkTitle(c,r,o);for(;x.can_continue;){const _=s(a);if(_===null)break;c+=_,r=o,o=c.length,a++,x=e.md.helpers.parseLinkTitle(c,r,o,x)}let y;for(r<o&&h!==r&&x.ok?(y=x.str,r=x.pos):(y="",r=p,a=m);r<o;){const _=c.charCodeAt(r);if(!U(_))break;r++}if(r<o&&c.charCodeAt(r)!==10&&y)for(y="",r=p,a=m;r<o;){const _=c.charCodeAt(r);if(!U(_))break;r++}if(r<o&&c.charCodeAt(r)!==10)return!1;const g=Yt(c.slice(1,l));return g?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:y,href:f}),e.line=a),!0):!1}const $l=["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"],Ml="[a-zA-Z_:][a-zA-Z0-9:._-]*",zl="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",wr="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Ml+"(?:\\s*=\\s*"+zl+")?)")+"*\\s*\\/?>",vr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Pl="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Rl="<[?][\\s\\S]*?[?]>",ql="<![A-Za-z][^>]*>",jl="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Hl=new RegExp("^(?:"+wr+"|"+vr+"|"+Pl+"|"+Rl+"|"+ql+"|"+jl+")"),Ul=new RegExp("^(?:"+wr+"|"+vr+")"),ot=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+$l.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Ul.source+"\\s*$"),/^$/,!1]];function Zl(e,t,u,n){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<ot.length&&!ot[s][0].test(a);s++);if(s===ot.length)return!1;if(n)return ot[s][2];let c=t+1;if(!ot[s][1].test(a)){for(;c<u&&!(e.sCount[c]<e.blkIndent);c++)if(r=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],a=e.src.slice(r,o),ot[s][1].test(a)){a.length!==0&&c++;break}}e.line=c;const l=e.push("html_block","",0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function Wl(e,t,u,n){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&&!U(a))return!1;if(n)return!0;o=e.skipSpacesBack(o,r);const c=e.skipCharsBack(o,35,r);c>r&&U(e.src.charCodeAt(c-1))&&(o=c),e.line=t+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(r,o).trim(),d.map=[t,e.line],d.children=[];const f=e.push("heading_close","h"+String(s),-1);return f.markup="########".slice(0,s),!0}function Yl(e,t,u){const n=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<u&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let m=e.bMarks[s]+e.tShift[s];const h=e.eMarks[s];if(m<h&&(a=e.src.charCodeAt(m),(a===45||a===61)&&(m=e.skipChars(m,a),m=e.skipSpaces(m),m>=h))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let p=!1;for(let m=0,h=n.length;m<h;m++)if(n[m](e,s,u,!0)){p=!0;break}if(p)break}if(!o)return!1;const c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const l=e.push("heading_open","h"+String(o),1);l.markup=String.fromCharCode(a),l.map=[t,e.line];const d=e.push("inline","",0);d.content=c,d.map=[t,e.line-1],d.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup=String.fromCharCode(a),e.parentType=r,!0}function Xl(e,t,u){const n=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=t+1;for(e.parentType="paragraph";o<u&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let l=!1;for(let d=0,f=n.length;d<f;d++)if(n[d](e,o,u,!0)){l=!0;break}if(l)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 c=e.push("inline","",0);return c.content=a,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const Gt=[["table",Sl,["paragraph","reference"]],["code",Nl],["fence",Bl,["paragraph","reference","blockquote","list"]],["blockquote",Tl,["paragraph","reference","blockquote","list"]],["hr",Il,["paragraph","reference","blockquote","list"]],["list",Ll,["paragraph","reference","blockquote"]],["reference",Ol],["html_block",Zl,["paragraph","reference","blockquote"]],["heading",Wl,["paragraph","reference","blockquote"]],["lheading",Yl],["paragraph",Xl]];function Kt(){this.ruler=new le;for(let e=0;e<Gt.length;e++)this.ruler.push(Gt[e][0],Gt[e][1],{alt:(Gt[e][2]||[]).slice()})}Kt.prototype.tokenize=function(e,t,u){const n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<u&&(e.line=a=e.skipEmptyLines(a),!(a>=u||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=u;break}const c=e.line;let l=!1;for(let d=0;d<r;d++)if(l=n[d](e,a,u,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<u&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Kt.prototype.parse=function(e,t,u,n){if(!e)return;const r=new this.State(e,t,u,n);this.tokenize(r,r.line,r.lineMax)},Kt.prototype.State=Fe;function yt(e,t,u,n){this.src=e,this.env=u,this.md=t,this.tokens=n,this.tokens_meta=Array(n.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}yt.prototype.pushPending=function(){const e=new ve("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},yt.prototype.push=function(e,t,u){this.pending&&this.pushPending();const n=new ve(e,t,u);let r=null;return u<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,u>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n},yt.prototype.scanDelims=function(e,t){const u=this.posMax,n=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<u&&this.src.charCodeAt(o)===n;)o++;const a=o-e,s=o<u?this.src.charCodeAt(o):32,c=kt(r)||xt(String.fromCharCode(r)),l=kt(s)||xt(String.fromCharCode(s)),d=_t(r),f=_t(s),p=!f&&(!l||d||c),m=!d&&(!c||f||l);return{can_open:p&&(t||!m||c),can_close:m&&(t||!p||l),length:a}},yt.prototype.Token=ve;function Gl(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 Kl(e,t){let u=e.pos;for(;u<e.posMax&&!Gl(e.src.charCodeAt(u));)u++;return u===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,u)),e.pos=u,!0)}const Jl=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Ql(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const u=e.pos,n=e.posMax;if(u+3>n||e.src.charCodeAt(u)!==58||e.src.charCodeAt(u+1)!==47||e.src.charCodeAt(u+2)!==47)return!1;const r=e.pending.match(Jl);if(!r)return!1;const o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(u-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const c=e.md.normalizeLink(s);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(s);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=s.length-o.length,!0}function e1(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==10)return!1;const n=e.pending.length-1,r=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let o=n-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(u++;u<r&&U(e.src.charCodeAt(u));)u++;return e.pos=u,!0}const Bu=[];for(let e=0;e<256;e++)Bu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Bu[e.charCodeAt(0)]=1});function t1(e,t){let u=e.pos;const n=e.posMax;if(e.src.charCodeAt(u)!==92||(u++,u>=n))return!1;let r=e.src.charCodeAt(u);if(r===10){for(t||e.push("hardbreak","br",0),u++;u<n&&(r=e.src.charCodeAt(u),!!U(r));)u++;return e.pos=u,!0}let o=e.src[u];if(r>=55296&&r<=56319&&u+1<n){const s=e.src.charCodeAt(u+1);s>=56320&&s<=57343&&(o+=e.src[u+1],u++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);r<256&&Bu[r]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=u+1,!0}function u1(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==96)return!1;const r=u;u++;const o=e.posMax;for(;u<o&&e.src.charCodeAt(u)===96;)u++;const a=e.src.slice(r,u),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=a),e.pos+=s,!0;let c=u,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<o&&e.src.charCodeAt(c)===96;)c++;const d=c-l;if(d===s){if(!t){const f=e.push("code_inline","code",0);f.markup=a,f.content=e.src.slice(u,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[d]=l}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function n1(e,t){const u=e.pos,n=e.src.charCodeAt(u);if(t||n!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const a=String.fromCharCode(n);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let c=0;c<o;c+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Dr(e,t){let u;const n=[],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];u=e.tokens[a.token],u.type="s_open",u.tag="s",u.nesting=1,u.markup="~~",u.content="",u=e.tokens[s.token],u.type="s_close",u.tag="s",u.nesting=-1,u.markup="~~",u.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&n.push(s.token-1)}for(;n.length;){const o=n.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(u=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=u)}}function r1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Dr(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Dr(e,t[n].delimiters)}const Ar={tokenize:n1,postProcess:r1};function i1(e,t){const u=e.pos,n=e.src.charCodeAt(u);if(t||n!==95&&n!==42)return!1;const r=e.scanDelims(e.pos,n===42);for(let o=0;o<r.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(n),e.delimiters.push({marker:n,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 Fr(e,t){const u=t.length;for(let n=u-1;n>=0;n--){const r=t[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=a?"strong_open":"em_open",c.tag=a?"strong":"em",c.nesting=1,c.markup=a?s+s:s,c.content="";const l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}function o1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Fr(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Fr(e,t[n].delimiters)}const Sr={tokenize:i1,postProcess:o1};function a1(e,t){let u,n,r,o,a="",s="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,f=e.posMax,p=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let h=m+1;if(h<f&&e.src.charCodeAt(h)===40){for(l=!1,h++;h<f&&(u=e.src.charCodeAt(h),!(!U(u)&&u!==10));h++);if(h>=f)return!1;if(c=h,r=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),r.ok){for(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?h=r.pos:a="",c=h;h<f&&(u=e.src.charCodeAt(h),!(!U(u)&&u!==10));h++);if(r=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<f&&c!==h&&r.ok)for(s=r.str,h=r.pos;h<f&&(u=e.src.charCodeAt(h),!(!U(u)&&u!==10));h++);}(h>=f||e.src.charCodeAt(h)!==41)&&(l=!0),h++}if(l){if(typeof e.env.references>"u")return!1;if(h<f&&e.src.charCodeAt(h)===91?(c=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?n=e.src.slice(c,h++):h=m+1):h=m+1,n||(n=e.src.slice(p,m)),o=e.env.references[Yt(n)],!o)return e.pos=d,!1;a=o.href,s=o.title}if(!t){e.pos=p,e.posMax=m;const x=e.push("link_open","a",1),y=[["href",a]];x.attrs=y,s&&y.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=f,!0}function s1(e,t){let u,n,r,o,a,s,c,l,d="";const f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o<p&&e.src.charCodeAt(o)===40){for(o++;o<p&&(u=e.src.charCodeAt(o),!(!U(u)&&u!==10));o++);if(o>=p)return!1;for(l=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?o=s.pos:d=""),l=o;o<p&&(u=e.src.charCodeAt(o),!(!U(u)&&u!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&l!==o&&s.ok)for(c=s.str,o=s.pos;o<p&&(u=e.src.charCodeAt(o),!(!U(u)&&u!==10));o++);else c="";if(o>=p||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<p&&e.src.charCodeAt(o)===91?(l=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(l,o++):o=h+1):o=h+1,r||(r=e.src.slice(m,h)),a=e.env.references[Yt(r)],!a)return e.pos=f,!1;d=a.href,c=a.title}if(!t){n=e.src.slice(m,h);const x=[];e.md.inline.parse(n,e.md,e.env,x);const y=e.push("image","img",0),g=[["src",d],["alt",""]];y.attrs=g,y.children=x,y.content=n,c&&g.push(["title",c])}return e.pos=o,e.posMax=p,!0}const c1=/^([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])?)*)$/,l1=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function d1(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;const n=e.pos,r=e.posMax;for(;;){if(++u>=r)return!1;const a=e.src.charCodeAt(u);if(a===60)return!1;if(a===62)break}const o=e.src.slice(n+1,u);if(l1.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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(c1.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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function f1(e){return/^<a[>\s]/i.test(e)}function h1(e){return/^<\/a\s*>/i.test(e)}function p1(e){const t=e|32;return t>=97&&t<=122}function m1(e,t){if(!e.md.options.html)return!1;const u=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=u)return!1;const r=e.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!p1(r))return!1;const o=e.src.slice(n).match(Hl);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],f1(a.content)&&e.linkLevel++,h1(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const b1=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,g1=/^&([a-z][a-z0-9]{1,31});/i;function _1(e,t){const u=e.pos,n=e.posMax;if(e.src.charCodeAt(u)!==38||u+1>=n)return!1;if(e.src.charCodeAt(u+1)===35){const o=e.src.slice(u).match(b1);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=Au(a)?Wt(a):Wt(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(u).match(g1);if(o){const a=pr(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 Nr(e){const t={},u=e.length;if(!u)return;let n=0,r=-2;const o=[];for(let a=0;a<u;a++){const s=e[a];if(o.push(0),(e[n].marker!==s.marker||r!==s.token-1)&&(n=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 c=t[s.marker][(s.open?3:0)+s.length%3];let l=n-o[n]-1,d=l;for(;l>c;l-=o[l]+1){const f=e[l];if(f.marker===s.marker&&f.open&&f.end<0){let p=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(p=!0),!p){const m=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+m,o[l]=m,s.open=!1,f.end=a,f.close=!1,d=-1,r=-2;break}}}d!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=d)}}function x1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Nr(e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Nr(t[n].delimiters)}function k1(e){let t,u,n=0;const r=e.tokens,o=e.tokens.length;for(t=u=0;t<o;t++)r[t].nesting<0&&n--,r[t].level=n,r[t].nesting>0&&n++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==u&&(r[u]=r[t]),u++);t!==u&&(r.length=u)}const Tu=[["text",Kl],["linkify",Ql],["newline",e1],["escape",t1],["backticks",u1],["strikethrough",Ar.tokenize],["emphasis",Sr.tokenize],["link",a1],["image",s1],["autolink",d1],["html_inline",m1],["entity",_1]],Iu=[["balance_pairs",x1],["strikethrough",Ar.postProcess],["emphasis",Sr.postProcess],["fragments_join",k1]];function Et(){this.ruler=new le;for(let e=0;e<Tu.length;e++)this.ruler.push(Tu[e][0],Tu[e][1]);this.ruler2=new le;for(let e=0;e<Iu.length;e++)this.ruler2.push(Iu[e][0],Iu[e][1])}Et.prototype.skipToken=function(e){const t=e.pos,u=this.ruler.getRules(""),n=u.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<n;s++)if(e.level++,a=u[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},Et.prototype.tokenize=function(e){const t=this.ruler.getRules(""),u=t.length,n=e.posMax,r=e.md.options.maxNesting;for(;e.pos<n;){const o=e.pos;let a=!1;if(e.level<r){for(let s=0;s<u;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>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Et.prototype.parse=function(e,t,u,n){const r=new this.State(e,t,u,n);this.tokenize(r);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](r)},Et.prototype.State=yt;function y1(e){const t={};e=e||{},t.src_Any=cr.source,t.src_Cc=lr.source,t.src_Z=fr.source,t.src_P=Cu.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 u="[><|]";return t.src_pseudo_letter="(?:(?!"+u+"|"+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="(?=$|"+u+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+u+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+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="(^|"+u+'|"|\\(|'+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 Vu(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){u&&Object.keys(u).forEach(function(n){e[n]=u[n]})}),e}function Jt(e){return Object.prototype.toString.call(e)}function E1(e){return Jt(e)==="[object String]"}function C1(e){return Jt(e)==="[object Object]"}function w1(e){return Jt(e)==="[object RegExp]"}function Br(e){return Jt(e)==="[object Function]"}function v1(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Tr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function D1(e){return Object.keys(e||{}).reduce(function(t,u){return t||Tr.hasOwnProperty(u)},!1)}const A1={"http:":{validate:function(e,t,u){const n=e.slice(t);return u.re.http||(u.re.http=new RegExp("^\\/\\/"+u.re.src_auth+u.re.src_host_port_strict+u.re.src_path,"i")),u.re.http.test(n)?n.match(u.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,u){const n=e.slice(t);return u.re.no_http||(u.re.no_http=new RegExp("^"+u.re.src_auth+"(?:localhost|(?:(?:"+u.re.src_domain+")\\.)+"+u.re.src_domain_root+")"+u.re.src_port+u.re.src_host_terminator+u.re.src_path,"i")),u.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(u.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,u){const n=e.slice(t);return u.re.mailto||(u.re.mailto=new RegExp("^"+u.re.src_email_name+"@"+u.re.src_host_strict,"i")),u.re.mailto.test(n)?n.match(u.re.mailto)[0].length:0}}},F1="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]",S1="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function N1(e){e.__index__=-1,e.__text_cache__=""}function B1(e){return function(t,u){const n=t.slice(u);return e.test(n)?n.match(e)[0].length:0}}function Ir(){return function(e,t){t.normalize(e)}}function Qt(e){const t=e.re=y1(e.__opts__),u=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||u.push(F1),u.push(t.src_xn),t.src_tlds=u.join("|");function n(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(s,c){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+c)}Object.keys(e.__schemas__).forEach(function(s){const c=e.__schemas__[s];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,C1(c)){w1(c.validate)?l.validate=B1(c.validate):Br(c.validate)?l.validate=c.validate:o(s,c),Br(c.normalize)?l.normalize=c.normalize:c.normalize?o(s,c):l.normalize=Ir();return}if(E1(c)){r.push(s);return}o(s,c)}),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:Ir()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(v1).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"),N1(e)}function T1(e,t){const u=e.__index__,n=e.__last_index__,r=e.__text_cache__.slice(u,n);this.schema=e.__schema__.toLowerCase(),this.index=u+t,this.lastIndex=n+t,this.raw=r,this.text=r,this.url=r}function Lu(e,t){const u=new T1(e,t);return e.__compiled__[u.schema].normalize(u,e),u}function he(e,t){if(!(this instanceof he))return new he(e,t);t||D1(e)&&(t=e,e={}),this.__opts__=Vu({},Tr,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Vu({},A1,e),this.__compiled__={},this.__tlds__=S1,this.__tlds_replaced__=!1,this.re={},Qt(this)}he.prototype.add=function(t,u){return this.__schemas__[t]=u,Qt(this),this},he.prototype.set=function(t){return this.__opts__=Vu(this.__opts__,t),this},he.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let u,n,r,o,a,s,c,l,d;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(u=c.exec(t))!==null;)if(o=this.testSchemaAt(t,u[2],c.lastIndex),o){this.__schema__=u[2],this.__index__=u.index+u[1].length,this.__last_index__=u.index+u[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=t.indexOf("@"),d>=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},he.prototype.pretest=function(t){return this.re.pretest.test(t)},he.prototype.testSchemaAt=function(t,u,n){return this.__compiled__[u.toLowerCase()]?this.__compiled__[u.toLowerCase()].validate(t,n,this):0},he.prototype.match=function(t){const u=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(u.push(Lu(this,n)),n=this.__last_index__);let r=n?t.slice(n):t;for(;this.test(r);)u.push(Lu(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return u.length?u:null},he.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const u=this.re.schema_at_start.exec(t);if(!u)return null;const n=this.testSchemaAt(t,u[2],u[0].length);return n?(this.__schema__=u[2],this.__index__=u.index+u[1].length,this.__last_index__=u.index+u[0].length+n,Lu(this,0)):null},he.prototype.tlds=function(t,u){return t=Array.isArray(t)?t:[t],u?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,r,o){return n!==o[r-1]}).reverse(),Qt(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Qt(this),this)},he.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},he.prototype.onCompile=function(){};const at=2147483647,Se=36,Ou=1,Ct=26,I1=38,V1=700,Vr=72,Lr=128,Or="-",L1=/^xn--/,O1=/[^\0-\x7F]/,$1=/[\x2E\u3002\uFF0E\uFF61]/g,M1={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$u=Se-Ou,Ne=Math.floor,Mu=String.fromCharCode;function Pe(e){throw new RangeError(M1[e])}function z1(e,t){const u=[];let n=e.length;for(;n--;)u[n]=t(e[n]);return u}function $r(e,t){const u=e.split("@");let n="";u.length>1&&(n=u[0]+"@",e=u[1]),e=e.replace($1,".");const r=e.split("."),o=z1(r,t).join(".");return n+o}function Mr(e){const t=[];let u=0;const n=e.length;for(;u<n;){const r=e.charCodeAt(u++);if(r>=55296&&r<=56319&&u<n){const o=e.charCodeAt(u++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),u--)}else t.push(r)}return t}const P1=e=>String.fromCodePoint(...e),R1=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Se},zr=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Pr=function(e,t,u){let n=0;for(e=u?Ne(e/V1):e>>1,e+=Ne(e/t);e>$u*Ct>>1;n+=Se)e=Ne(e/$u);return Ne(n+($u+1)*e/(e+I1))},Rr=function(e){const t=[],u=e.length;let n=0,r=Lr,o=Vr,a=e.lastIndexOf(Or);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Pe("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<u;){const c=n;for(let d=1,f=Se;;f+=Se){s>=u&&Pe("invalid-input");const p=R1(e.charCodeAt(s++));p>=Se&&Pe("invalid-input"),p>Ne((at-n)/d)&&Pe("overflow"),n+=p*d;const m=f<=o?Ou:f>=o+Ct?Ct:f-o;if(p<m)break;const h=Se-m;d>Ne(at/h)&&Pe("overflow"),d*=h}const l=t.length+1;o=Pr(n-c,l,c==0),Ne(n/l)>at-r&&Pe("overflow"),r+=Ne(n/l),n%=l,t.splice(n++,0,r)}return String.fromCodePoint(...t)},qr=function(e){const t=[];e=Mr(e);const u=e.length;let n=Lr,r=0,o=Vr;for(const c of e)c<128&&t.push(Mu(c));const a=t.length;let s=a;for(a&&t.push(Or);s<u;){let c=at;for(const d of e)d>=n&&d<c&&(c=d);const l=s+1;c-n>Ne((at-r)/l)&&Pe("overflow"),r+=(c-n)*l,n=c;for(const d of e)if(d<n&&++r>at&&Pe("overflow"),d===n){let f=r;for(let p=Se;;p+=Se){const m=p<=o?Ou:p>=o+Ct?Ct:p-o;if(f<m)break;const h=f-m,x=Se-m;t.push(Mu(zr(m+h%x,0))),f=Ne(h/x)}t.push(Mu(zr(f,0))),o=Pr(r,l,s===a),r=0,++s}++r,++n}return t.join("")},jr={version:"2.3.1",ucs2:{decode:Mr,encode:P1},decode:Rr,encode:qr,toASCII:function(e){return $r(e,function(t){return O1.test(t)?"xn--"+qr(t):t})},toUnicode:function(e){return $r(e,function(t){return L1.test(t)?Rr(t.slice(4).toLowerCase()):t})}},q1={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"]}}}},j1=/^(vbscript|javascript|file|data):/,H1=/^data:image\/(gif|png|jpeg|webp);/;function U1(e){const t=e.trim().toLowerCase();return j1.test(t)?H1.test(t):!0}const Hr=["http:","https:","mailto:"];function Z1(e){const t=Eu(e,!0);if(t.hostname&&(!t.protocol||Hr.indexOf(t.protocol)>=0))try{t.hostname=jr.toASCII(t.hostname)}catch{}return gt(yu(t))}function W1(e){const t=Eu(e,!0);if(t.hostname&&(!t.protocol||Hr.indexOf(t.protocol)>=0))try{t.hostname=jr.toUnicode(t.hostname)}catch{}return nt(yu(t),nt.defaultChars+"%")}function xe(e,t){if(!(this instanceof xe))return new xe(e,t);t||Du(e)||(t=e||{},e="default"),this.inline=new Et,this.block=new Kt,this.core=new Su,this.renderer=new it,this.linkify=new he,this.validateLink=U1,this.normalizeLink=Z1,this.normalizeLinkText=W1,this.utils=rl,this.helpers=Zt({},sl),this.options={},this.configure(e),t&&this.set(t)}xe.prototype.set=function(e){return Zt(this.options,e),this},xe.prototype.configure=function(e){const t=this;if(Du(e)){const u=e;if(e=q1[u],!e)throw new Error('Wrong `markdown-it` preset "'+u+'", 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(u){e.components[u].rules&&t[u].ruler.enableOnly(e.components[u].rules),e.components[u].rules2&&t[u].ruler2.enableOnly(e.components[u].rules2)}),this},xe.prototype.enable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){u=u.concat(this[r].ruler.enable(e,!0))},this),u=u.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(r){return u.indexOf(r)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},xe.prototype.disable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){u=u.concat(this[r].ruler.disable(e,!0))},this),u=u.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(r){return u.indexOf(r)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},xe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},xe.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const u=new this.core.State(e,this,t);return this.core.process(u),u.tokens},xe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},xe.prototype.parseInline=function(e,t){const u=new this.core.State(e,this,t);return u.inlineMode=!0,this.core.process(u),u.tokens},xe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Y1=["innerHTML"],X1={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
27
+ |------------|----------|----|
28
+ | 热量:450kcal |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | 热量:450kcal |
29
+ | 碳水:62.3g | | 碳水:62.3g |
30
+ | 蛋白质:15.5g | | 蛋白质:15.5g |
31
+ | 脂肪:12.5g | | 脂肪:12.5g |
32
+
33
+ | 晚餐 | | 加餐 |
34
+ |------------|---|------------|
35
+ | | | |
36
+ | 热量:450kcal | | 热量:450kcal |
37
+ | 碳水:62.3g | | 碳水:62.3g |
38
+ | 蛋白质:15.5g | | 蛋白质:15.5g |
39
+ | 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new xe,u=e,n=i.computed(()=>t.render(u.content));return(r,o)=>(i.openBlock(),i.createElementBlock("div",{innerHTML:n.value},null,8,Y1))}},G1={},K1={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 J1(e,t){return i.openBlock(),i.createElementBlock("svg",K1,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 Q1=Z(G1,[["render",J1]]),ed={class:"pup_header"},td={class:"left"},ud={class:"title"},nd={class:"pup_content",style:{height:"calc(height - 56px)"}},rd=Z({__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 u=e,n=t,r=i.ref(!1),o=i.ref(`-${u.height}`),a=i.ref({delay:300,bottom:`-${u.height}`,opacity:0}),s=d=>{d?(a.value.bottom="0",a.value.opacity=.5):(a.value.bottom=`-${u.height}`,a.value.opacity=0)},c=()=>{n("confirm",{})};i.watch(()=>u.show,(d,f)=>{d?(o.value=`-${u.height}`,r.value=!0,setTimeout(()=>{s(!0)},0)):(s(!1),setTimeout(()=>{r.value=!1},300))});const l=()=>{n("update:show",!1),s(!1),setTimeout(()=>{r.value=!1},300)};return(d,f)=>r.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"pup_mask",style:i.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${a.value.opacity})`}),onClick:i.withModifiers(l,["stop"])},[i.createElementVNode("div",{class:"pup_wrap",style:i.normalizeStyle({height:e.height,bottom:a.value.bottom}),onClick:i.withModifiers(()=>{},["stop"])},[i.createElementVNode("div",ed,[i.createElementVNode("div",td,[i.createElementVNode("div",{class:"icon_down",onClick:i.withModifiers(l,["stop"])},[i.createVNode(Q1)])]),i.createElementVNode("div",ud,i.toDisplayString(e.title),1),i.createElementVNode("div",{class:"right"},[i.createElementVNode("div",{class:"btn",onClick:c},"确定")])]),i.createElementVNode("div",nd,[i.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):i.createCommentVNode("",!0)}},[["__scopeId","data-v-d290f544"]]);function id(){}const De=Object.assign,zu=typeof window<"u",wt=e=>e!==null&&typeof e=="object",se=e=>e!=null,eu=e=>typeof e=="function",Ur=e=>wt(e)&&eu(e.then)&&eu(e.catch),Zr=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),od=()=>zu?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Wr(e,t){const u=t.split(".");let n=e;return u.forEach(r=>{var o;n=wt(n)&&(o=n[r])!=null?o:""}),n}function ad(e,t,u){return t.reduce((n,r)=>(n[r]=e[r],n),{})}const Yr=e=>Array.isArray(e)?e:[e],Re=null,re=[Number,String],qe={type:Boolean,default:!0},sd=e=>({type:Number,default:e}),cd=e=>({type:re,default:e}),ae=e=>({type:String,default:e});var Pu=typeof window<"u";function ld(e){const t=i.inject(e,null);if(t){const u=i.getCurrentInstance(),{link:n,unlink:r,internalChildren:o}=t;n(u),i.onUnmounted(()=>r(u));const a=i.computed(()=>o.indexOf(u));return{parent:t,index:a}}return{parent:null,index:i.ref(-1)}}function Xr(e){let t;i.onMounted(()=>{e(),i.nextTick(()=>{t=!0})}),i.onActivated(()=>{t&&e()})}function Ru(e,t,u={}){if(!Pu)return;const{target:n=window,passive:r=!1,capture:o=!1}=u;let a=!1,s;const c=f=>{if(a)return;const p=i.unref(f);p&&!s&&(p.addEventListener(e,t,{capture:o,passive:r}),s=!0)},l=f=>{if(a)return;const p=i.unref(f);p&&s&&(p.removeEventListener(e,t,o),s=!1)};i.onUnmounted(()=>l(n)),i.onDeactivated(()=>l(n)),Xr(()=>c(n));let d;return i.isRef(n)&&(d=i.watch(n,(f,p)=>{l(p),c(f)})),()=>{d==null||d(),l(n),a=!0}}var tu,qu;function dd(){if(!tu&&(tu=i.ref(0),qu=i.ref(0),Pu)){const e=()=>{tu.value=window.innerWidth,qu.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:tu,height:qu}}var fd=/scroll|auto|overlay/i,hd=Pu?window:void 0;function pd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function md(e,t=hd){let u=e;for(;u&&u!==t&&pd(u);){const{overflowY:n}=window.getComputedStyle(u);if(fd.test(n))return u;u=u.parentNode}return t}var bd=Symbol("van-field");function Gr(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function Kr(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Jr(e){Gr(window,e),Gr(document.body,e)}const gd=od();function _d(){gd&&Jr(Kr())}const xd=e=>e.stopPropagation();function vt(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&xd(e)}dd();function pe(e){if(se(e))return Zr(e)?`${e}px`:String(e)}function kd(e){if(se(e)){if(Array.isArray(e))return{width:pe(e[0]),height:pe(e[1])};const t=pe(e);return{width:t,height:t}}}function yd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const Ed=/-(\w)/g,Qr=e=>e.replace(Ed,(t,u)=>u.toUpperCase()),Cd=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),wd=(e,t,u)=>Math.min(Math.max(e,t),u);function ei(e,t,u){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(u,"")}function vd(e,t=!0,u=!0){t?e=ei(e,".",/\./g):e=e.split(".")[0],u?e=ei(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}const{hasOwnProperty:Dd}=Object.prototype;function Ad(e,t,u){const n=t[u];se(n)&&(!Dd.call(e,u)||!wt(n)?e[u]=n:e[u]=ti(Object(e[u]),n))}function ti(e,t){return Object.keys(t).forEach(u=>{Ad(e,t,u)}),e}var Fd={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 ui=i.ref("zh-CN"),ni=i.reactive({"zh-CN":Fd});var Sd={messages(){return ni[ui.value]},use(e,t){ui.value=e,this.add({[e]:t})},add(e={}){ti(ni,e)}};function Nd(e){const t=Qr(e)+".";return(u,...n)=>{const r=Sd.messages(),o=Wr(r,t+u)||Wr(r,u);return eu(o)?o(...n):o}}function ju(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((u,n)=>u+ju(e,n),""):Object.keys(t).reduce((u,n)=>u+(t[n]?ju(e,n):""),""):""}function Bd(e){return(t,u)=>(t&&typeof t!="string"&&(u=t,t=""),t=t?`${e}__${t}`:e,`${t}${ju(t,u)}`)}function Ie(e){const t=`van-${e}`;return[t,Bd(t),Nd(t)]}const Td="van-haptics-feedback",Id=Symbol("van-form"),ri=5;function Vd(e,{args:t=[],done:u,canceled:n,error:r}){if(e){const o=e.apply(null,t);Ur(o)?o.then(a=>{a?u():n&&n()}).catch(r||id):o?u():n&&n()}else u()}function je(e){return e.install=t=>{const{name:u}=e;u&&(t.component(u,e),t.component(Qr(`-${u}`),e))},e}const Ld=Symbol();function Hu(e){const t=i.getCurrentInstance();t&&De(t.proxy,e)}const Od={to:[String,Object],url:String,replace:Boolean};function $d({to:e,url:t,replace:u,$router:n}){e&&n?n[u?"replace":"push"](e):t&&(u?location.replace(t):location.href=t)}function Md(){const e=i.getCurrentInstance().proxy;return()=>$d(e)}const[zd,ii]=Ie("badge"),Pd={dot:Boolean,max:re,tag:ae("div"),color:String,offset:Array,content:re,showZero:qe,position:ae("top-right")};var Rd=i.defineComponent({name:zd,props:Pd,setup(e,{slots:t}){const u=()=>{if(t.content)return!0;const{content:s,showZero:c}=e;return se(s)&&s!==""&&(c||s!==0&&s!=="0")},n=()=>{const{dot:s,max:c,content:l}=e;if(!s&&u())return t.content?t.content():se(c)&&Zr(l)&&+l>+c?`${c}+`:l},r=s=>s.startsWith("-")?s.replace("-",""):`-${s}`,o=i.computed(()=>{const s={background:e.color};if(e.offset){const[c,l]=e.offset,{position:d}=e,[f,p]=d.split("-");t.default?(typeof l=="number"?s[f]=pe(f==="top"?l:-l):s[f]=f==="top"?pe(l):r(l),typeof c=="number"?s[p]=pe(p==="left"?c:-c):s[p]=p==="left"?pe(c):r(c)):(s.marginTop=pe(l),s.marginLeft=pe(c))}return s}),a=()=>{if(u()||e.dot)return i.createVNode("div",{class:ii([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[n()])};return()=>{if(t.default){const{tag:s}=e;return i.createVNode(s,{class:ii("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const qd=je(Rd);let oi=2e3;const jd=()=>++oi,Hd=e=>{oi=e},[ai,Ud]=Ie("config-provider"),si=Symbol(ai),Zd={tag:ae("div"),theme:ae("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:ae("local"),iconPrefix:String};function Wd(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function Yd(e){const t={};return Object.keys(e).forEach(u=>{const n=Wd(Cd(u));t[`--van-${n}`]=e[u]}),t}function uu(e={},t={}){Object.keys(e).forEach(u=>{e[u]!==t[u]&&document.documentElement.style.setProperty(u,e[u])}),Object.keys(t).forEach(u=>{e[u]||document.documentElement.style.removeProperty(u)})}i.defineComponent({name:ai,props:Zd,setup(e,{slots:t}){const u=i.computed(()=>Yd(De({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(zu){const n=()=>{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),n()},{immediate:!0}),i.onActivated(n),i.onDeactivated(r),i.onBeforeUnmount(r),i.watch(u,(o,a)=>{e.themeVarsScope==="global"&&uu(o,a)}),i.watch(()=>e.themeVarsScope,(o,a)=>{a==="global"&&uu({},u.value),o==="global"&&uu(u.value,{})}),e.themeVarsScope==="global"&&uu(u.value,{})}return i.provide(si,e),i.watchEffect(()=>{e.zIndex!==void 0&&Hd(e.zIndex)}),()=>i.createVNode(e.tag,{class:Ud(),style:e.themeVarsScope==="local"?u.value:void 0},{default:()=>{var n;return[(n=t.default)==null?void 0:n.call(t)]}})}});const[Xd,ci]=Ie("icon"),Gd=e=>e==null?void 0:e.includes("/"),Kd={dot:Boolean,tag:ae("i"),name:String,size:re,badge:re,color:String,badgeProps:Object,classPrefix:String};var Jd=i.defineComponent({name:Xd,props:Kd,setup(e,{slots:t}){const u=i.inject(si,null),n=i.computed(()=>e.classPrefix||(u==null?void 0:u.iconPrefix)||ci());return()=>{const{tag:r,dot:o,name:a,size:s,badge:c,color:l}=e,d=Gd(a);return i.createVNode(qd,i.mergeProps({dot:o,tag:r,class:[n.value,d?"":`${n.value}-${a}`],style:{color:l,fontSize:pe(s)},content:c},e.badgeProps),{default:()=>{var f;return[(f=t.default)==null?void 0:f.call(t),d&&i.createVNode("img",{class:ci("image"),src:a},null)]}})}}});const Ze=je(Jd),[Qd,Dt]=Ie("loading"),ef=Array(12).fill(null).map((e,t)=>i.createVNode("i",{class:Dt("line",String(t+1))},null)),tf=i.createVNode("svg",{class:Dt("circular"),viewBox:"25 25 50 50"},[i.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),uf={size:re,type:ae("circular"),color:String,vertical:Boolean,textSize:re,textColor:String};var nf=i.defineComponent({name:Qd,props:uf,setup(e,{slots:t}){const u=i.computed(()=>De({color:e.color},kd(e.size))),n=()=>{const o=e.type==="spinner"?ef:tf;return i.createVNode("span",{class:Dt("spinner",e.type),style:u.value},[t.icon?t.icon():o])},r=()=>{var o;if(t.default)return i.createVNode("span",{class:Dt("text"),style:{fontSize:pe(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[t.default()])};return()=>{const{type:o,vertical:a}=e;return i.createVNode("div",{class:Dt([o,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[n(),r()])}}});const rf=je(nf),of={show:Boolean,zIndex:re,overlay:qe,duration:re,teleport:[String,Object],lockScroll:qe,lazyRender:qe,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Re,transitionAppear:Boolean,closeOnClickOverlay:qe};function af(e,t){return e>t?"horizontal":t>e?"vertical":""}function sf(){const e=i.ref(0),t=i.ref(0),u=i.ref(0),n=i.ref(0),r=i.ref(0),o=i.ref(0),a=i.ref(""),s=i.ref(!0),c=()=>a.value==="vertical",l=()=>a.value==="horizontal",d=()=>{u.value=0,n.value=0,r.value=0,o.value=0,a.value="",s.value=!0};return{move:m=>{const h=m.touches[0];u.value=(h.clientX<0?0:h.clientX)-e.value,n.value=h.clientY-t.value,r.value=Math.abs(u.value),o.value=Math.abs(n.value);const x=10;(!a.value||r.value<x&&o.value<x)&&(a.value=af(r.value,o.value)),s.value&&(r.value>ri||o.value>ri)&&(s.value=!1)},start:m=>{d(),e.value=m.touches[0].clientX,t.value=m.touches[0].clientY},reset:d,startX:e,startY:t,deltaX:u,deltaY:n,offsetX:r,offsetY:o,direction:a,isVertical:c,isHorizontal:l,isTap:s}}let At=0;const li="van-overflow-hidden";function cf(e,t){const u=sf(),n="01",r="10",o=d=>{u.move(d);const f=u.deltaY.value>0?r:n,p=md(d.target,e.value),{scrollHeight:m,offsetHeight:h,scrollTop:x}=p;let y="11";x===0?y=h>=m?"00":"01":x+h>=m&&(y="10"),y!=="11"&&u.isVertical()&&!(parseInt(y,2)&parseInt(f,2))&&vt(d,!0)},a=()=>{document.addEventListener("touchstart",u.start),document.addEventListener("touchmove",o,{passive:!1}),At||document.body.classList.add(li),At++},s=()=>{At&&(document.removeEventListener("touchstart",u.start),document.removeEventListener("touchmove",o),At--,At||document.body.classList.remove(li))},c=()=>t()&&a(),l=()=>t()&&s();Xr(c),i.onDeactivated(l),i.onBeforeUnmount(l),i.watch(t,d=>{d?a():s()})}function di(e){const t=i.ref(!1);return i.watch(e,u=>{u&&(t.value=u)},{immediate:!0}),u=>()=>t.value?u():null}const fi=()=>{var e;const{scopeId:t}=((e=i.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[lf,df]=Ie("overlay"),ff={show:Boolean,zIndex:re,duration:re,className:Re,lockScroll:qe,lazyRender:qe,customStyle:Object,teleport:[String,Object]};var hf=i.defineComponent({name:lf,inheritAttrs:!1,props:ff,setup(e,{attrs:t,slots:u}){const n=i.ref(),r=di(()=>e.show||!e.lazyRender),o=s=>{e.lockScroll&&vt(s,!0)},a=r(()=>{var s;const c=De(yd(e.zIndex),e.customStyle);return se(e.duration)&&(c.animationDuration=`${e.duration}s`),i.withDirectives(i.createVNode("div",i.mergeProps({ref:n,style:c,class:[df(),e.className]},t),[(s=u.default)==null?void 0:s.call(u)]),[[i.vShow,e.show]])});return Ru("touchmove",o,{target:n}),()=>{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 pf=je(hf),mf=De({},of,{round:Boolean,position:ae("center"),closeIcon:ae("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:ae("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[bf,hi]=Ie("popup");var gf=i.defineComponent({name:bf,inheritAttrs:!1,props:mf,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:u,slots:n}){let r,o;const a=i.ref(),s=i.ref(),c=di(()=>e.show||!e.lazyRender),l=i.computed(()=>{const w={zIndex:a.value};if(se(e.duration)){const S=e.position==="center"?"animationDuration":"transitionDuration";w[S]=`${e.duration}s`}return w}),d=()=>{r||(r=!0,a.value=e.zIndex!==void 0?+e.zIndex:jd(),t("open"))},f=()=>{r&&Vd(e.beforeClose,{done(){r=!1,t("close"),t("update:show",!1)}})},p=w=>{t("clickOverlay",w),e.closeOnClickOverlay&&f()},m=()=>{if(e.overlay){const w=De({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(pf,i.mergeProps(w,fi(),{onClick:p}),{default:n["overlay-content"]})}},h=w=>{t("clickCloseIcon",w),f()},x=()=>{if(e.closeable)return i.createVNode(Ze,{role:"button",tabindex:0,name:e.closeIcon,class:[hi("close-icon",e.closeIconPosition),Td],classPrefix:e.iconPrefix,onClick:h},null)};let y;const g=()=>{y&&clearTimeout(y),y=setTimeout(()=>{t("opened")})},_=()=>t("closed"),b=w=>t("keydown",w),E=c(()=>{var w;const{destroyOnClose:S,round:P,position:R,safeAreaInsetTop:Q,safeAreaInsetBottom:ye,show:Ee}=e;if(!(!Ee&&S))return i.withDirectives(i.createVNode("div",i.mergeProps({ref:s,style:l.value,role:"dialog",tabindex:0,class:[hi({round:P,[R]:R}),{"van-safe-area-top":Q,"van-safe-area-bottom":ye}],onKeydown:b},u,fi()),[(w=n.default)==null?void 0:w.call(n),x()]),[[i.vShow,Ee]])}),C=()=>{const{position:w,transition:S,transitionAppear:P}=e,R=w==="center"?"van-fade":`van-popup-slide-${w}`;return i.createVNode(i.Transition,{name:S||R,appear:P,onAfterEnter:g,onAfterLeave:_},{default:E})};return i.watch(()=>e.show,w=>{w&&!r&&(d(),u.tabindex===0&&i.nextTick(()=>{var S;(S=s.value)==null||S.focus()})),!w&&r&&(r=!1,t("close"))}),Hu({popupRef:s}),cf(s,()=>e.show&&e.lockScroll),Ru("popstate",()=>{e.closeOnPopstate&&(f(),o=!1)}),i.onMounted(()=>{e.show&&d()}),i.onActivated(()=>{o&&(t("update:show",!0),o=!1)}),i.onDeactivated(()=>{e.show&&e.teleport&&(f(),o=!0)}),i.provide(Ld,()=>e.show),()=>e.teleport?i.createVNode(i.Teleport,{to:e.teleport},{default:()=>[m(),C()]}):i.createVNode(i.Fragment,null,[m(),C()])}});const _f=je(gf);let xf=0;function kf(){const e=i.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++xf}`}const[yf,st]=Ie("cell"),pi={tag:ae("div"),icon:String,size:String,title:re,value:re,label:re,center:Boolean,isLink:Boolean,border:qe,iconPrefix:String,valueClass:Re,labelClass:Re,titleClass:Re,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Ef=De({},pi,Od);var Cf=i.defineComponent({name:yf,props:Ef,setup(e,{slots:t}){const u=Md(),n=()=>{if(t.label||se(e.label))return i.createVNode("div",{class:[st("label"),e.labelClass]},[t.label?t.label():e.label])},r=()=>{var c;if(t.title||se(e.title)){const l=(c=t.title)==null?void 0:c.call(t);return Array.isArray(l)&&l.length===0?void 0:i.createVNode("div",{class:[st("title"),e.titleClass],style:e.titleStyle},[l||i.createVNode("span",null,[e.title]),n()])}},o=()=>{const c=t.value||t.default;if(c||se(e.value))return i.createVNode("div",{class:[st("value"),e.valueClass]},[c?c():i.createVNode("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return i.createVNode(Ze,{name:e.icon,class:st("left-icon"),classPrefix:e.iconPrefix},null)},s=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const c=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return i.createVNode(Ze,{name:c,class:st("right-icon")},null)}};return()=>{var c;const{tag:l,size:d,center:f,border:p,isLink:m,required:h}=e,x=(c=e.clickable)!=null?c:m,y={center:f,required:!!h,clickable:x,borderless:!p};return d&&(y[d]=!!d),i.createVNode(l,{class:st(y),role:x?"button":void 0,tabindex:x?0:void 0,onClick:u},{default:()=>{var g;return[a(),r(),o(),s(),(g=t.extra)==null?void 0:g.call(t)]}})}}});const wf=je(Cf);function mi(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function vf(e,t){if(mi(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Df(e,t){return new Promise(u=>{const n=t.validator(e,t);if(Ur(n)){n.then(u);return}u(n)})}function bi(e,t){const{message:u}=t;return eu(u)?u(e,t):u||""}function Af({target:e}){e.composing=!0}function gi({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Ff(e,t){const u=Kr();e.style.height="auto";let n=e.scrollHeight;if(wt(t)){const{maxHeight:r,minHeight:o}=t;r!==void 0&&(n=Math.min(n,r)),o!==void 0&&(n=Math.max(n,o))}n&&(e.style.height=`${n}px`,Jr(u))}function Sf(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Ve(e){return[...e].length}function Uu(e,t){return[...e].slice(0,t).join("")}const[Nf,ke]=Ie("field"),Bf={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:re,max:Number,min:Number,formatter:Function,clearIcon:ae("clear"),modelValue:cd(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:ae("focus"),formatTrigger:ae("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Tf=De({},pi,Bf,{rows:re,type:ae("text"),rules:Array,autosize:[Boolean,Object],labelWidth:re,labelClass:Re,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var If=i.defineComponent({name:Nf,props:Tf,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:u}){const n=kf(),r=i.reactive({status:"unvalidated",focused:!1,validateMessage:""}),o=i.ref(),a=i.ref(),s=i.ref(),{parent:c}=ld(Id),l=()=>{var k;return String((k=e.modelValue)!=null?k:"")},d=k=>{if(se(e[k]))return e[k];if(c&&se(c.props[k]))return c.props[k]},f=i.computed(()=>{const k=d("readonly");if(e.clearable&&!k){const T=l()!=="",V=e.clearTrigger==="always"||e.clearTrigger==="focus"&&r.focused;return T&&V}return!1}),p=i.computed(()=>s.value&&u.input?s.value():e.modelValue),m=i.computed(()=>{var k;const T=d("required");return T==="auto"?(k=e.rules)==null?void 0:k.some(V=>V.required):T}),h=k=>k.reduce((T,V)=>T.then(()=>{if(r.status==="failed")return;let{value:L}=p;if(V.formatter&&(L=V.formatter(L,V)),!vf(L,V)){r.status="failed",r.validateMessage=bi(L,V);return}if(V.validator)return mi(L)&&V.validateEmpty===!1?void 0:Df(L,V).then(G=>{G&&typeof G=="string"?(r.status="failed",r.validateMessage=G):G===!1&&(r.status="failed",r.validateMessage=bi(L,V))})}),Promise.resolve()),x=()=>{r.status="unvalidated",r.validateMessage=""},y=()=>t("endValidate",{status:r.status,message:r.validateMessage}),g=(k=e.rules)=>new Promise(T=>{x(),k?(t("startValidate"),h(k).then(()=>{r.status==="failed"?(T({name:e.name,message:r.validateMessage}),y()):(r.status="passed",T(),y())})):T()}),_=k=>{if(c&&e.rules){const{validateTrigger:T}=c.props,V=Yr(T).includes(k),L=e.rules.filter(G=>G.trigger?Yr(G.trigger).includes(k):V);L.length&&g(L)}},b=k=>{var T;const{maxlength:V}=e;if(se(V)&&Ve(k)>+V){const L=l();if(L&&Ve(L)===+V)return L;const G=(T=o.value)==null?void 0:T.selectionEnd;if(r.focused&&G){const Oe=[...k],Be=Oe.length-+V;return Oe.splice(G-Be,Be),Oe.join("")}return Uu(k,+V)}return k},E=(k,T="onChange")=>{var V,L;const G=k;k=b(k);const Oe=Ve(G)-Ve(k);if(e.type==="number"||e.type==="digit"){const de=e.type==="number";if(k=vd(k,de,de),T==="onBlur"&&k!==""&&(e.min!==void 0||e.max!==void 0)){const be=wd(+k,(V=e.min)!=null?V:-1/0,(L=e.max)!=null?L:1/0);+k!==be&&(k=be.toString())}}let Be=0;if(e.formatter&&T===e.formatTrigger){const{formatter:de,maxlength:be}=e;if(k=de(k),se(be)&&Ve(k)>+be&&(k=Uu(k,+be)),o.value&&r.focused){const{selectionEnd:K}=o.value,We=Uu(G,K);Be=Ve(de(We))-Ve(We)}}if(o.value&&o.value.value!==k)if(r.focused){let{selectionStart:de,selectionEnd:be}=o.value;if(o.value.value=k,se(de)&&se(be)){const K=Ve(k);Oe?(de-=Oe,be-=Oe):Be&&(de+=Be,be+=Be),o.value.setSelectionRange(Math.min(de,K),Math.min(be,K))}}else o.value.value=k;k!==e.modelValue&&t("update:modelValue",k)},C=k=>{k.target.composing||E(k.target.value)},w=()=>{var k;return(k=o.value)==null?void 0:k.blur()},S=()=>{var k;return(k=o.value)==null?void 0:k.focus()},P=()=>{const k=o.value;e.type==="textarea"&&e.autosize&&k&&Ff(k,e.autosize)},R=k=>{r.focused=!0,t("focus",k),i.nextTick(P),d("readonly")&&w()},Q=k=>{r.focused=!1,E(l(),"onBlur"),t("blur",k),!d("readonly")&&(_("onBlur"),i.nextTick(P),_d())},ye=k=>t("clickInput",k),Ee=k=>t("clickLeftIcon",k),O=k=>t("clickRightIcon",k),I=k=>{vt(k),t("update:modelValue",""),t("clear",k)},$=i.computed(()=>{if(typeof e.error=="boolean")return e.error;if(c&&c.props.showError&&r.status==="failed")return!0}),te=i.computed(()=>{const k=d("labelWidth"),T=d("labelAlign");if(k&&T!=="top")return{width:pe(k)}}),v=k=>{k.keyCode===13&&(!(c&&c.props.submitOnEnter)&&e.type!=="textarea"&&vt(k),e.type==="search"&&w()),t("keypress",k)},N=()=>e.id||`${n}-input`,D=()=>r.status,ne=()=>{const k=ke("control",[d("inputAlign"),{error:$.value,custom:!!u.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(u.input)return i.createVNode("div",{class:k,onClick:ye},[u.input()]);const T={id:N(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:k,disabled:d("disabled"),readonly:d("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?`${n}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:Q,onFocus:R,onInput:C,onClick:ye,onChange:gi,onKeypress:v,onCompositionend:gi,onCompositionstart:Af};return e.type==="textarea"?i.createVNode("textarea",i.mergeProps(T,{inputmode:e.inputmode}),null):i.createVNode("input",i.mergeProps(Sf(e.type,e.inputmode),T),null)},M=()=>{const k=u["left-icon"];if(e.leftIcon||k)return i.createVNode("div",{class:ke("left-icon"),onClick:Ee},[k?k():i.createVNode(Ze,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},me=()=>{const k=u["right-icon"];if(e.rightIcon||k)return i.createVNode("div",{class:ke("right-icon"),onClick:O},[k?k():i.createVNode(Ze,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Y=()=>{if(e.showWordLimit&&e.maxlength){const k=Ve(l());return i.createVNode("div",{class:ke("word-limit")},[i.createVNode("span",{class:ke("word-num")},[k]),i.createTextVNode("/"),e.maxlength])}},St=()=>{if(c&&c.props.showErrorMessage===!1)return;const k=e.errorMessage||r.validateMessage;if(k){const T=u["error-message"],V=d("errorMessageAlign");return i.createVNode("div",{class:ke("error-message",V)},[T?T({message:k}):k])}},X=()=>{const k=d("labelWidth"),T=d("labelAlign"),V=d("colon")?":":"";if(u.label)return[u.label(),V];if(e.label)return i.createVNode("label",{id:`${n}-label`,for:u.input?void 0:N(),"data-allow-mismatch":"attribute",onClick:L=>{vt(L),S()},style:T==="top"&&k?{width:pe(k)}:void 0},[e.label+V])},Zu=()=>[i.createVNode("div",{class:ke("body")},[ne(),f.value&&i.createVNode(Ze,{ref:a,name:e.clearIcon,class:ke("clear")},null),me(),u.button&&i.createVNode("div",{class:ke("button")},[u.button()])]),Y(),St()];return Hu({blur:w,focus:S,validate:g,formValue:p,resetValidation:x,getValidationStatus:D}),i.provide(bd,{customValue:s,resetValidation:x,validateWithTrigger:_}),i.watch(()=>e.modelValue,()=>{E(l()),x(),_("onChange"),i.nextTick(P)}),i.onMounted(()=>{E(l(),e.formatTrigger),i.nextTick(P)}),Ru("touchstart",I,{target:i.computed(()=>{var k;return(k=a.value)==null?void 0:k.$el})}),()=>{const k=d("disabled"),T=d("labelAlign"),V=M(),L=()=>{const G=X();return T==="top"?[V,G].filter(Boolean):G||[]};return i.createVNode(wf,{size:e.size,class:ke({error:$.value,disabled:k,[`label-${T}`]:T}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:te.value,valueClass:ke("value"),titleClass:[ke("label",[T,{required:m.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:V&&T!=="top"?()=>V:null,title:L,value:Zu,extra:u.extra})}}});const Vf=je(If);let Ft=0;function Lf(e){e?(Ft||document.body.classList.add("van-toast--unclickable"),Ft++):Ft&&(Ft--,Ft||document.body.classList.remove("van-toast--unclickable"))}const[Of,ct]=Ie("toast"),$f=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Mf={icon:String,show:Boolean,type:ae("text"),overlay:Boolean,message:re,iconSize:re,duration:sd(2e3),position:ae("middle"),teleport:[String,Object],wordBreak:String,className:Re,iconPrefix:String,transition:ae("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Re,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:re};var _i=i.defineComponent({name:Of,props:Mf,emits:["update:show"],setup(e,{emit:t,slots:u}){let n,r=!1;const o=()=>{const f=e.show&&e.forbidClick;r!==f&&(r=f,Lf(r))},a=f=>t("update:show",f),s=()=>{e.closeOnClick&&a(!1)},c=()=>clearTimeout(n),l=()=>{const{icon:f,type:p,iconSize:m,iconPrefix:h,loadingType:x}=e;if(f||p==="success"||p==="fail")return i.createVNode(Ze,{name:f||p,size:m,class:ct("icon"),classPrefix:h},null);if(p==="loading")return i.createVNode(rf,{class:ct("loading"),size:m,type:x},null)},d=()=>{const{type:f,message:p}=e;if(u.message)return i.createVNode("div",{class:ct("text")},[u.message()]);if(se(p)&&p!=="")return f==="html"?i.createVNode("div",{key:0,class:ct("text"),innerHTML:String(p)},null):i.createVNode("div",{class:ct("text")},[p])};return i.watch(()=>[e.show,e.forbidClick],o),i.watch(()=>[e.show,e.type,e.message,e.duration],()=>{c(),e.show&&e.duration>0&&(n=setTimeout(()=>{a(!1)},e.duration))}),i.onMounted(o),i.onUnmounted(o),()=>i.createVNode(_f,i.mergeProps({class:[ct([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:c,"onUpdate:show":a},ad(e,$f)),{default:()=>[l(),d()]})}});function zf(){const e=i.reactive({show:!1}),t=r=>{e.show=r},u=r=>{De(e,r,{transitionAppear:!0}),t(!0)},n=()=>t(!1);return Hu({open:u,close:n,toggle:t}),{open:u,close:n,state:e,toggle:t}}function Pf(e){const t=i.createApp(e),u=document.createElement("div");return document.body.appendChild(u),{instance:t.mount(u),unmount(){t.unmount(),document.body.removeChild(u)}}}const Rf={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 nu=[],qf=!1,xi=De({},Rf);const jf=new Map;function Hf(e){return wt(e)?e:{message:e}}function Uf(){const{instance:e}=Pf({setup(){const t=i.ref(""),{open:u,state:n,close:r,toggle:o}=zf(),a=()=>{},s=()=>{const c={onClosed:a,"onUpdate:show":o};return i.createVNode(_i,i.mergeProps(n,c),null)};return i.watch(t,c=>{n.message=c}),i.getCurrentInstance().render=s,{open:u,close:r,message:t}}});return e}function Zf(){if(!nu.length||qf){const e=Uf();nu.push(e)}return nu[nu.length-1]}function Le(e={}){if(!zu)return{};const t=Zf(),u=Hf(e);return t.open(De({},xi,jf.get(u.type||xi.type),u)),t}je(_i);const Wf={class:"pf_wrap"},Yf={class:"pf_form"},Xf=["onClick"],Gf={key:0,class:"sex_wrap"},Kf={key:1,class:"input_wrap"},Jf={class:"unit"},Qf={key:2,class:"sport_wrap"},e2=["onClick"],t2={class:"name"},u2={class:"sub"},n2={key:3,class:"taste_wrap"},r2={class:"box"},i2=["onClick"],o2={class:"box"},a2=["onClick"],s2=Z({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const u=i.ref(!1),n=e,r=i.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",taste:[],taboo:[],title:"标题",unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),o=[{key:"rest",name:"休息状态",sub:"卧床或者坐式休息"},{key:"sedentary",name:"久坐",sub:"坐式工作"},{key:"light",name:"轻体力",sub:"站立或需要走动的工作"},{key:"medium",name:"中体力",sub:"走动多的工作"},{key:"heavy",name:"重体力",sub:"高强度体力工作"}],a=["不吃辣","不吃葱","不吃姜","不吃蒜","不吃糖","不吃鱼","不吃虾","不吃牛肉","不吃鸡肉","不吃猪肉"],s=["高GI","高饱和脂肪酸","高嘌呤","高盐","高胆固醇"],c=i.ref([{key:"sex",label:"性别",value:"",placeholder:"请输选择",required:!0},{key:"age",label:"年龄",value:"",placeholder:"请输入年龄",unit:"岁",required:!0},{key:"height",label:"身高",value:"",placeholder:"请输入身高",unit:"cm",required:!0},{key:"weight",label:"体重",value:"",placeholder:"请输入体重",unit:"kg",required:!0},{key:"sport",label:"日常运动水平",value:"久坐",placeholder:"请输入",required:!0},{key:"taste",label:"口味偏好及饮食禁忌",value:"",taste:[],taboo:[],placeholder:"无忌口",required:!1}]),l=t;i.onMounted(()=>{const g=localStorage.getItem("personalInfo");if(g){const _=JSON.parse(g);for(let b=0;b<c.value.length;b++){const E=_.findIndex(C=>C.key===c.value[b].key);c.value[b]={...c.value[b],..._[E]}}}});const d=i.computed(()=>c.value.filter(g=>g.key!=="taste").every(g=>g.value!=="")),f=g=>{switch(r.value.key=g.key,g.key){case"sex":r.value.title="选择性别",r.value.dialogHeight="300px",r.value.sex=g.value;break;case"age":r.value.title="设置年龄",r.value.dialogHeight="240px",r.value.unit=g.unit,r.value.age=g.value,r.value.min=6,r.value.max=100,r.value.type="number";break;case"height":r.value.title="设置身高",r.value.dialogHeight="240px",r.value.unit=g.unit,r.value.height=g.value,r.value.min=100,r.value.max=220,r.value.type="digit";break;case"weight":r.value.title="设置体重",r.value.dialogHeight="240px",r.value.unit=g.unit,r.value.weight=g.value,r.value.min=10,r.value.max=150,r.value.type="digit";break;case"sport":r.value.title="日常运动水平",r.value.dialogHeight="420px",r.value.unit="",r.value.sport=g.value;break;case"taste":r.value.title="口味偏好&饮食禁忌",r.value.dialogHeight="500px",r.value.unit="",r.value.taste=[...g.taste],r.value.taboo=[...g.taboo];break}console.log(r.value,g),u.value=!0},p=()=>{switch(r.value.key){case"sex":if(!r.value.sex){Le("请选择性别");return}c.value.find(g=>g.key==="sex").value=r.value.sex;break;case"age":if(!r.value.age){Le("请输入年龄");return}c.value.find(g=>g.key==="age").value=r.value.age;break;case"height":if(!r.value.height){Le("请输入身高");return}c.value.find(g=>g.key==="height").value=r.value.height;break;case"weight":if(!r.value.weight){Le("请输入体重");return}c.value.find(g=>g.key==="weight").value=r.value.weight;break;case"sport":if(!r.value.sport){Le("请选择日常运动水平");return}c.value.find(g=>g.key==="sport").value=r.value.sport;break;case"taste":c.value.find(g=>g.key==="taste").taste=r.value.taste,c.value.find(g=>g.key==="taste").taboo=r.value.taboo,c.value.find(g=>g.key==="taste").value=[...r.value.taste,...r.value.taboo].join("、");break}u.value=!1},m=()=>{if(!d.value){Le("请填写完整信息");return}const g=c.value.findIndex(C=>C.key==="age"),_=c.value.findIndex(C=>C.key==="height"),b=c.value.findIndex(C=>C.key==="weight");if(c.value[g].value<6||c.value[g].value>100){Le("年龄需要在6-100岁");return}if(c.value[_].value<100||c.value[_].value>220){Le("身高需要在100-220cm");return}if(c.value[b].value<10||c.value[b].value>150){Le("体重需要在10-150kg");return}localStorage.setItem("personalInfo",JSON.stringify(c.value));const E=`${n.query};
40
+ 性别:${c.value.find(C=>C.key==="sex").value};
41
+ 年龄:${c.value[g].value}${c.value[g].unit||""};
42
+ 身高:${c.value[_].value}${c.value[_].unit||""};
43
+ 体重:${c.value[b].value}${c.value[b].unit||""};
44
+ 日常运动水平:${c.value.find(C=>C.key==="sport").value};
45
+ 口味偏好及饮食禁忌:${c.value.find(C=>C.key==="taste").value?c.value.find(C=>C.key==="taste").value:"没有饮食禁忌"};`;console.log(E),l("submit",[{content:E,text:E}])},h=(g,_)=>{r.value[_].includes(g)?r.value[_]=r.value[_].filter(b=>b!==g):r.value[_].push(g)},x=g=>{r.value.sport=g.name,p()},y=g=>{r.value.sex=g,p()};return(g,_)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Wf,[i.createElementVNode("div",Yf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,b=>(i.openBlock(),i.createElementBlock("div",{key:b.key,class:"pf_row"},[i.createElementVNode("div",{class:i.normalizeClass(["title",{is_required:b.required}])},i.toDisplayString(b.label),3),i.createElementVNode("div",{class:"content",onClick:E=>f(b)},[i.createElementVNode("span",{class:"text_row",style:i.normalizeStyle({color:b.value?"#000":"#75759d"})},i.toDisplayString(b.value?`${b.value} ${b.unit||""}`:b.placeholder),5),i.createVNode(Jn,{class:"arrow"})],8,Xf)]))),128))]),i.createElementVNode("div",{class:i.normalizeClass(["pf_btn",{disabled:!d.value}]),onClick:i.withModifiers(m,["stop"])}," 按身体数据领取食谱 ",2)]),i.createVNode(rd,{show:u.value,"onUpdate:show":_[3]||(_[3]=b=>u.value=b),title:r.value.title,height:r.value.dialogHeight,onConfirm:p},{default:i.withCtx(()=>[r.value.key==="sex"?(i.openBlock(),i.createElementBlock("div",Gf,[i.createElementVNode("div",{class:i.normalizeClass({sex:!0,selected:r.value.sex==="男"}),onClick:_[0]||(_[0]=i.withModifiers(b=>y("男"),["stop"]))}," 男 ",2),i.createElementVNode("div",{class:i.normalizeClass({sex:!0,selected:r.value.sex==="女"}),onClick:_[1]||(_[1]=i.withModifiers(b=>y("女"),["stop"]))}," 女 ",2)])):i.createCommentVNode("",!0),["age","height","weight"].includes(r.value.key)?(i.openBlock(),i.createElementBlock("div",Kf,[i.createVNode(i.unref(Vf),{modelValue:r.value[r.value.key],"onUpdate:modelValue":_[2]||(_[2]=b=>r.value[r.value.key]=b),class:"input",type:r.value.type,min:r.value.min,max:r.value.max,onKeyup:i.withKeys(p,["enter"]),placeholder:"请输入"},null,8,["modelValue","type","min","max"]),i.createElementVNode("div",Jf,i.toDisplayString(r.value.unit),1)])):i.createCommentVNode("",!0),r.value.key==="sport"?(i.openBlock(),i.createElementBlock("div",Qf,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(o,b=>i.createElementVNode("div",{key:b.key,class:i.normalizeClass({row:!0,selected:r.value.sport===b.name}),onClick:i.withModifiers(E=>x(b),["stop"])},[i.createElementVNode("div",t2,i.toDisplayString(b.name),1),i.createElementVNode("div",u2,i.toDisplayString(b.sub),1)],10,e2)),64))])):i.createCommentVNode("",!0),r.value.key==="taste"?(i.openBlock(),i.createElementBlock("div",n2,[_[4]||(_[4]=i.createElementVNode("div",{class:"title"},"口味偏好",-1)),i.createElementVNode("div",r2,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(a,b=>i.createElementVNode("div",{class:i.normalizeClass({tag:!0,selected:r.value.taste.includes(b)}),key:b,onClick:i.withModifiers(E=>h(b,"taste"),["stop"])},i.toDisplayString(b),11,i2)),64))]),_[5]||(_[5]=i.createElementVNode("div",{class:"line"},null,-1)),_[6]||(_[6]=i.createElementVNode("div",{class:"title"},"饮食禁忌",-1)),i.createElementVNode("div",o2,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(s,b=>i.createElementVNode("div",{class:i.normalizeClass({tag:!0,selected:r.value.taboo.includes(b)}),key:b,onClick:i.withModifiers(E=>h(b,"taboo"),["stop"])},i.toDisplayString(b),11,a2)),64))])])):i.createCommentVNode("",!0)]),_:1},8,["show","title","height"])],64))}},[["__scopeId","data-v-e8c7ba82"]]),c2={class:"cui_box"},l2={class:"cui_wrap"},d2={key:0,class:"cui_header"},f2={class:"name_box"},h2={class:"name"},p2={key:0,class:"name_sub"},m2={class:"btn_group"},b2={style:{"font-size":"14px"}},g2={class:"btn"},_2={class:"btn"},x2={class:"cui_content"},k2={key:0,style:{"text-align":"left","margin-top":"50px"}},y2={style:{"text-align":"center"}},E2=["src"],C2={class:"board_name"},w2={class:"board_desc"},v2={class:"flexcss"},D2=["onClick"],A2={key:0,class:"replay role_sys"},F2={class:"replay_content"},S2={class:"name"},N2=["src"],B2={class:"box"},T2={key:0,class:"think_status"},I2={key:1,class:"think_status"},V2={class:"think_text"},L2={key:0},O2={key:4},$2={key:1},M2={key:2,class:"loading_row"},z2={key:1,class:"replay role_user"},P2={class:"replay_content"},R2={class:"name"},q2=["src"],j2={class:"box"},H2=["innerHTML"],U2={key:0},ki=Z({__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:""}},emits:["call","log"],setup(e,{emit:t}){const u=i.computed(()=>({headers:{Authorization:`Bearer ${f.token}`,"Content-Type":"application/json"}})),n=i.ref(""),r=i.ref(!1),o=i.ref("00"),a=i.ref([]),s=i.ref(!1),c=i.ref(1),l={placeholder:"發消息⋯",fileText:"請根據我上傳的體檢報告為我生成飲食方案",uploadingTips:"文件正在上傳,請稍候...",matchText:"請用以上方案為我配餐",matchContent:"請用以上方案為我配餐",energy:"熱量",protein:"蛋白質",fat:"脂肪",carbonwater:"碳水",newChat:"新對話",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用該方案配餐",aiTips:"【内容由AI生成,仅供参考】"},d={store:!0,dishes:!0,plan:!0,personalForm:!1},f=e,p=t,m=i.computed(()=>({...l,...f.defMsg})),h=i.computed(()=>({...d,...f.cardList})),x=i.ref(null),y=i.ref(""),g=i.ref({}),_={setItem:(v,N)=>{f.storage==="sessionStorage"?sessionStorage.setItem(v,N):localStorage.setItem(v,N)},getItem:v=>f.storage==="sessionStorage"?sessionStorage.getItem(v):localStorage.getItem(v)};i.onMounted(async()=>{localStorage.setItem("postToken",f.postToken||""),_.getItem("conversationId")?(n.value=_.getItem("conversationId"),await S(),await w(),s.value=!1):(await E(),f.firstMsg&&await b()),I()});const b=async()=>{const v=[{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"2",weight:"50",height:"160"}},age:25,msg:`本食谱为均衡营养版${f.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
46
+ 性别:女;
47
+ 年龄:25岁;
48
+ 身高:160cm;
49
+ 体重:50kg;
50
+ 日常运动水平:久坐;
51
+ 口味偏好及饮食禁忌:无;
52
+ 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"1",weight:"65",height:"170"}},age:25,msg:`本食谱为均衡营养版${f.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
53
+ 性别:男;
54
+ 年龄:25岁;
55
+ 身高:170cm;
56
+ 体重:65kg;
57
+ 日常运动水平:久坐;
58
+ 口味偏好及饮食禁忌:无;
59
+ 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"2",weight:"65",height:"160"}},age:35,msg:`本食谱为控卡版${f.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
60
+ 性别:女;
61
+ 年龄:35岁;
62
+ 身高:160cm;
63
+ 体重:65kg;
64
+ 日常运动水平:久坐;
65
+ 口味偏好及饮食禁忌:无;
66
+ 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"1",weight:"75",height:"170"}},age:35,msg:`本食谱为控卡版${f.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
67
+ 性别:男;
68
+ 年龄:35岁;
69
+ 身高:170cm;
70
+ 体重:75kg;
71
+ 日常运动水平:久坐;
72
+ 口味偏好及饮食禁忌:无;
73
+ 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`}];let N=localStorage.getItem("preset_point")||0;N++,N>=v.length&&(N=0),localStorage.setItem("preset_point",N);const D=v[N],M=`帮我定制${f.firstMsg}的⻝疗调养⽅案`;a.value=[{conversation_id:"",bot_id:f.botId,role:"user",content:M,reasoning_content:"",status:"ended",extra:[]}];const me=await Nt("/api/cn.weis.api.Food/bdGeneralTemp",{method:"bdGeneralTemp",params:[{...D.params}],token:f.postToken});if(me.errCode===0&&me.obj){const Y={};(me.obj.planDetails||[]).forEach(X=>{Y[X.category]={energy:`热量:${X.totalKcal}kcal`,carbonWater:`碳水:${X.carbohydrateTotal}g`,protein:`蛋白质:${X.proteinTotal}g`,fat:`脂肪:${X.fatTotal}g`}});const St=`我将为您出通用的食谱建议,如您有定制化健康诉求,请点击下方“私人订制个性食谱”来让我结合您的个人情况制定个性化配餐计划
74
+
75
+
76
+ | 早餐 | | 午餐 |
77
+ |------------|----------|----|
78
+ | ${Y["01"].energy} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["02"].energy} |
79
+ | ${Y["01"].carbonWater} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["02"].carbonWater} |
80
+ | ${Y["01"].protein} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["02"].protein} |
81
+ | ${Y["01"].fat} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["02"].fat} |
82
+
83
+ | 晚餐 | | 加餐 |
84
+ |------------|----------|----|
85
+ | ${Y["03"].energy} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["04"].energy} |
86
+ | ${Y["03"].carbonWater} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["04"].carbonWater} |
87
+ | ${Y["03"].protein} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["04"].protein} |
88
+ | ${Y["03"].fat} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${Y["04"].fat} |`;a.value.push({conversation_id:"",bot_id:f.botId,role:"assistant",content:St,reasoning_content:"",status:"ended",extra:[{...me.obj,showType:"card"}]}),p("log",{turns:c.value,info:{...a.value[a.value.length-1],question:{content:M,role:"user"}}})}},E=async()=>{const v=await Nt("https://api.coze.cn/v1/conversation/create",{bot_id:f.botId,connector_id:"999"},{...u.value});s.value=!0,c.value=0,console.log(v),v.code===0&&v.data&&(n.value=v.data.id||"",_.setItem("conversationId",n.value),a.value=[],await S())},C=async v=>{o.value="01";let N=Array.isArray(v);const D=f.botId;if(!(!r.value&&(y.value||N)))return;const ne=y.value;console.log("== user send ==",N,v,ne),r.value=!0;const M=[],me={conversation_id:n.value,bot_id:D,role:"user",content:"",reasoning_content:"",status:"ended",extra:[]},Y=`chat_${new Date().getTime()};`;v.forEach(L=>{L.hasOwnProperty("content")&&L.content&&(L.hasOwnProperty("type")&&L.type==="object_string"?(console.log("=== item ====",L),M.push({content:JSON.stringify(L.content.map(G=>({type:G.type,file_id:G.file_id}))),content_type:"object_string",role:"user",meta_data:{chat_group:Y}}),me.extra=L.content.map(G=>({...G,showType:G.type}))):(me.content=L.text,M.push({content:L.content,content_type:"text",role:"user",meta_data:{chat_group:Y}})))}),a.value.push(me),o.value="02";const St=await fetch(`https://api.coze.cn/v3/chat?conversation_id=${n.value}`,{method:"POST",headers:{...u.value.headers},body:JSON.stringify({bot_id:D,user_id:f.uid,stream:!0,connector_id:"999",additional_messages:M,custom_variables:{uid:f.uid}}),credentials:"same-origin",mode:"cors",cache:"default"});o.value="03",a.value.push({conversation_id:"",bot_id:"",role:"assistant",content:"",reasoning_content:"",status:"answering",extra:[]}),I(),y.value="";const X=a.value.length-1,Zu=St.body.getReader(),k=new TextDecoder("utf-8");let T="";const V=()=>{console.log("======= End ======",a.value,s.value),s.value&&(a.value[X].extra.findIndex(L=>L.hasOwnProperty("showType"))===-1&&a.value[X].extra.push({showType:"personalForm"}),s.value=!1,console.log("===============",a.value[X]))};for(;;){const{done:L,value:G}=await Zu.read();if(L){console.log("Stream has ended."),r.value=!1,o.value="00",a.value[X].status="ended",V(),f.needLog&&(p("log",{turns:c.value,info:{...a.value[X],question:{...me}}}),c.value+=1),I();break}const Oe=k.decode(G,{stream:!0});T+=Oe;const Be=T.split(`
89
+ `);T=Be.pop(),Be.forEach(de=>{if(de.trim().length>0&&de.trim().startsWith("data:")){const be=de.replace(/^data:\s*/,""),K=JSON.parse(be);if(console.log("Received:",K),r.value=!0,o.value="04",!a.value[X].bot_id&&K.bot_id&&(a.value[X].bot_id=K.bot_id),!a.value[X].conversation_id&&K.conversation_id&&(a.value[X].conversation_id=K.conversation_id),K.hasOwnProperty("reasoning_content")&&K.reasoning_content&&K.type==="answer")a.value[X].status="thinking",a.value[X].reasoning_content+=K.reasoning_content,I();else if(K.hasOwnProperty("content")&&K.hasOwnProperty("content_type")&&K.content_type==="text"&&K.hasOwnProperty("type")&&K.type==="answer"&&!K.hasOwnProperty("created_at"))a.value[X].status="answering",a.value[X].content=P(a.value[X].content+K.content),I();else if(K.hasOwnProperty("type")&&K.type==="tool_response"){const We=JSON.parse(K.content);if(We.hasOwnProperty("showType"))a.value[X].extra.push({...We});else if(We.hasOwnProperty("response_for_model")){const yi=JSON.parse(We.response_for_model);yi.hasOwnProperty("showType")&&a.value[X].extra.push({...yi})}I()}}})}console.log("====",a.value)},w=async()=>{const v=await Nt(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${n.value}`,{order:"asc"},{...u.value});if(v.code===0&&v.data&&v.data.length){a.value=[];const N=[];v.data.forEach(D=>{if(D.hasOwnProperty("content_type")){if(D.content_type==="text")a.value.push({chat_id:D.chat_id,conversation_id:D.conversation_id,bot_id:D.bot_id,role:D.role,meta_data:D.meta_data,content:P(D.content),reasoning_content:D.reasoning_content,status:"ended",extra:[]});else if(D.content_type==="card"&&D.role==="assistant")try{const ne=JSON.parse(D.content);if(ne.hasOwnProperty("showType"))N.push({chat_id:D.chat_id,conversation_id:D.conversation_id,bot_id:D.bot_id,role:D.role,extra:[{...ne}]});else if(ne.hasOwnProperty("response_for_model")){const M=JSON.parse(ne.response_for_model);M.hasOwnProperty("showType")&&N.push({chat_id:D.chat_id,conversation_id:D.conversation_id,bot_id:D.bot_id,role:D.role,extra:[{...M}]})}}catch{console.log("== 解析错误 sys==")}else if(D.content_type==="object_string"&&D.role==="user")try{const ne=JSON.parse(D.content);N.push({chat_id:D.chat_id,conversation_id:D.conversation_id,bot_id:D.bot_id,role:D.role,meta_data:D.meta_data,extra:ne.map(M=>({...M,showType:M.type}))})}catch{console.log("== 解析错误 user==")}}}),N.forEach(D=>{const ne=D.role==="user"?a.value.findIndex(M=>M.meta_data.chat_group===D.meta_data.chat_group&&M.role===D.role):a.value.findIndex(M=>M.chat_id===D.chat_id&&M.role===D.role);ne>-1&&(a.value[ne].extra=[...D.extra])})}console.log("== history ==",a.value,h.value)},S=async()=>{const v=await Ii(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${f.botId}`,{...u.value});console.log(v),v.code===0&&v.data&&(g.value={...v.data})},P=v=>v,R=()=>{p("call",{type:"back"})},Q=v=>{C([{content:v.content,text:v.text}])},ye=v=>{switch(console.log(v),v.type){case"chat":C([{content:v.msg,text:v.msg}]);break;case"call":p("call",{...v});break;case"simulate":te(v);break}},Ee=({type:v},N)=>{switch(v){case"change":C([{content:"換一套菜品",text:"換一套菜品"}]);break;case"match":C([{content:m.value.matchContent,text:m.value.matchText}]);break;case"personalForm":te({msg:"请为我生成一份个性化的健康的食谱",name:"用户信息",type:"simulate",value:"personalForm"});break;default:p("call",{type:v,info:N})}},O=v=>{switch(v.type){case"new_chat":E();break;default:p("call",v);break}},I=()=>{setTimeout(()=>{i.nextTick(()=>{x.value.scrollIntoView()})},100)};i.provide("triggerScrollToEnd",I);const $=v=>/#全日總熱量:(\d*?)kcal/g.test(v),te=v=>{console.log("== simulateChat == ",v),a.value.push({conversation_id:"",bot_id:f.botId,role:"user",content:v.msg,reasoning_content:"",status:"ended",extra:[]});let N={msg:"",extra:[]};switch(v.value){case"personalForm":N.msg="请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",N.extra=[{showType:"personalForm"}];break;case"contactKF":N.msg="联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",N.extra=[{showType:"contactKF"}];break}a.value.push({conversation_id:"",bot_id:f.botId,role:"assistant",content:N.msg,reasoning_content:"",status:"ended",extra:[...N.extra]}),c.value+=1,p("log",{turns:c.value,info:{...a.value[a.value.length-1],question:{content:v.msg,role:"user"}}}),I()};return(v,N)=>(i.openBlock(),i.createElementBlock("div",c2,[i.createElementVNode("div",l2,[e.showHeader?(i.openBlock(),i.createElementBlock("div",d2,[i.createElementVNode("div",{class:"title",onClick:i.withModifiers(w,["stop"])},[i.createElementVNode("div",{class:"back",onClick:i.withModifiers(R,["stop"])},[i.createVNode(Xs)]),i.createElementVNode("div",f2,[i.createElementVNode("div",h2,i.toDisplayString(e.name),1),e.nameSub?(i.openBlock(),i.createElementBlock("div",p2,i.toDisplayString(e.nameSub),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",m2,[i.createElementVNode("button",{class:"btn",onClick:i.withModifiers(E,["stop"])},[i.createVNode(er,{class:"icon"}),i.createElementVNode("span",b2,i.toDisplayString(m.value.newChat),1)]),i.withDirectives(i.createElementVNode("template",null,[i.createElementVNode("button",g2,[i.createVNode(vi)]),i.createElementVNode("button",_2,[i.createVNode(Wu)])],512),[[i.vShow,!1]])])])):i.createCommentVNode("",!0),i.createElementVNode("div",x2,[g.value&&g.value.onboarding_info?(i.openBlock(),i.createElementBlock("div",k2,[i.createElementVNode("div",y2,[i.createElementVNode("img",{src:g.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,E2),i.createElementVNode("p",C2,i.toDisplayString(g.value.name),1)]),i.createElementVNode("div",w2,i.toDisplayString(g.value.onboarding_info.prologue),1),i.createElementVNode("div",v2,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value.onboarding_info.suggested_questions,(D,ne)=>(i.openBlock(),i.createElementBlock("span",{key:ne,class:"board_sug",onClick:i.withModifiers(M=>C([{content:D,text:D}]),["stop"])},i.toDisplayString(D),9,D2))),128))])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(D,ne)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:ne},[D.role==="assistant"?(i.openBlock(),i.createElementBlock("div",A2,[i.createElementVNode("div",F2,[i.createElementVNode("div",S2,[i.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,N2),i.createTextVNode(" "+i.toDisplayString(e.name),1)]),i.createElementVNode("div",B2,[D.reasoning_content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[D.status==="thinking"?(i.openBlock(),i.createElementBlock("div",T2,[i.createVNode(oc,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(m.value.thinking),1)])):(i.openBlock(),i.createElementBlock("div",I2,[i.createVNode(lc,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(m.value.thinkCompleted),1)])),i.createElementVNode("p",V2,i.toDisplayString(D.reasoning_content),1)],64)):i.createCommentVNode("",!0),D.content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.contentTye==="text"?(i.openBlock(),i.createBlock(hc,{key:0,content:D.content},null,8,["content"])):e.contentTye==="markdown"?(i.openBlock(),i.createBlock(X1,{key:1,content:D.content},null,8,["content"])):i.createCommentVNode("",!0),r.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[D.extra.length?(i.openBlock(),i.createElementBlock("div",L2,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(D.extra,(M,me)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:me},[h.value.dishes&&M.showType==="card"?(i.openBlock(),i.createBlock(V0,{key:0,"sku-list":M.skuList,"is-mini":!e.showHeader,"def-msg":m.value,channel:e.channel,onSelect:Y=>Ee(Y,M)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):i.createCommentVNode("",!0),h.value.plan&&M.showType==="plan"?(i.openBlock(),i.createBlock(J0,{key:1,info:M,"def-msg":m.value,onSelect:Y=>Ee({type:"match"},M)},null,8,["info","def-msg","onSelect"])):i.createCommentVNode("",!0),h.value.store&&M.showType==="store"?(i.openBlock(),i.createBlock(_c,{key:2,list:M.storeList,onSelect:Q},null,8,["list"])):i.createCommentVNode("",!0),h.value.personalForm&&M.showType==="personalForm"?(i.openBlock(),i.createBlock(s2,{key:3,query:e.firstMsg,onSubmit:C},null,8,["query"])):i.createCommentVNode("",!0),M.showType==="contactKF"?(i.openBlock(),i.createElementBlock("div",O2,N[2]||(N[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))])):$(D.content)?(i.openBlock(),i.createElementBlock("div",$2,[i.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:N[0]||(N[0]=i.withModifiers(M=>Ee({type:"match"},{}),["stop"]))},i.toDisplayString(m.value.useSolution),1)])):i.createCommentVNode("",!0)],64))],64)):i.createCommentVNode("",!0),r.value&&ne===a.value.length-1?(i.openBlock(),i.createElementBlock("div",M2,[N[3]||(N[3]=i.createTextVNode(" Ai努力生成中... ")),i.createVNode(Qs)])):i.createCommentVNode("",!0)])])])):(i.openBlock(),i.createElementBlock("div",z2,[i.createElementVNode("div",P2,[i.createElementVNode("div",R2,[N[4]||(N[4]=i.createTextVNode(" 健康用户 ")),i.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,q2)]),i.createElementVNode("div",j2,[i.createElementVNode("p",{class:"text",innerHTML:D.content},null,8,H2),D.extra.length?(i.openBlock(),i.createElementBlock("div",U2,[i.createVNode(uc,{list:D.extra},null,8,["list"])])):i.createCommentVNode("",!0)])])]))],64))),128)),i.createElementVNode("div",{ref_key:"endTarget",ref:x,style:{height:"100px"}},null,512)]),i.createVNode(Us,{modelValue:y.value,"onUpdate:modelValue":N[1]||(N[1]=D=>y.value=D),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":m.value,"is-req":o.value,onSend:C,onTag:ye,onCall:O},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-13fb2476"]]),Z2={install:e=>{e.component("ChatUi",ki)}};ce.ChatUi=ki,ce.default=Z2,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
90
+ //# sourceMappingURL=index.umd.js.map