ai-chat-bot-interface 1.7.16 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +8559 -4789
- package/dist/index.umd.cjs +83 -61
- package/package.json +6 -4
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Ve,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ve=typeof globalThis<"u"?globalThis:Ve||self,o(Ve.ChatUI={},Ve.Vue))})(this,function(Ve,o){"use strict";/*!
|
|
2
|
+
* shared v9.14.5
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/function ct(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Pr={};function Vr(e){Pr[e]||(Pr[e]=!0,ct(e))}const _t=typeof window<"u";let We,Rt;if(process.env.NODE_ENV!=="production"){const e=_t&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(We=t=>{e.mark(t)},Rt=(t,n,u)=>{e.measure(t,n,u),e.clearMarks(n),e.clearMarks(u)})}const Ss=/\{([0-9a-zA-Z]+)\}/g;function Ou(e,...t){return t.length===1&&ee(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ss,(n,u)=>t.hasOwnProperty(u)?t[u]:"")}const Et=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Os=(e,t,n)=>Is({l:e,k:t,s:n}),Is=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),Ls=e=>zr(e)==="[object Date]",Gt=e=>zr(e)==="[object RegExp]",qn=e=>J(e)&&Object.keys(e).length===0,Re=Object.assign,Fs=Object.create,le=(e=null)=>Fs(e);let $r;const yt=()=>$r||($r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:le());function Rr(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Br(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ms(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(u,r,i)=>`${r}="${Br(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(u,r,i)=>`${r}='${Br(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&ct("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(u=>{e=e.replace(u,"$1javascript:")}),e}const Ps=Object.prototype.hasOwnProperty;function nt(e,t){return Ps.call(e,t)}const Te=Array.isArray,Ee=e=>typeof e=="function",P=e=>typeof e=="string",ce=e=>typeof e=="boolean",ee=e=>e!==null&&typeof e=="object",Vs=e=>ee(e)&&Ee(e.then)&&Ee(e.catch),jr=Object.prototype.toString,zr=e=>jr.call(e),J=e=>{if(!ee(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},$s=e=>e==null?"":Te(e)||J(e)&&e.toString===jr?JSON.stringify(e,null,2):String(e);function Rs(e,t=""){return e.reduce((n,u,r)=>r===0?n+u:n+t+u,"")}const Ur=2;function Bs(e,t=0,n=e.length){const u=e.split(/\r?\n/);let r=0;const i=[];for(let a=0;a<u.length;a++)if(r+=u[a].length+1,r>=t){for(let s=a-Ur;s<=a+Ur||n>r;s++){if(s<0||s>=u.length)continue;const l=s+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${u[s]}`);const c=u[s].length;if(s===a){const f=t-(r-c)+1,d=Math.max(1,n>r?c-f:n-t);i.push(" | "+" ".repeat(f)+"^".repeat(d))}else if(s>a){if(n>r){const f=Math.max(Math.min(n-r,c),1);i.push(" | "+"^".repeat(f))}r+=c+1}}break}return i.join(`
|
|
6
|
+
`)}function Hn(e){let t=e;return()=>++t}function js(){const e=new Map;return{events:e,on(n,u){const r=e.get(n);r&&r.push(u)||e.set(n,[u])},off(n,u){const r=e.get(n);r&&r.splice(r.indexOf(u)>>>0,1)},emit(n,u){(e.get(n)||[]).slice().map(r=>r(u)),(e.get("*")||[]).slice().map(r=>r(n,u))}}}const Wn=e=>!ee(e)||Te(e);function Yn(e,t){if(Wn(e)||Wn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:u,des:r}=n.pop();Object.keys(u).forEach(i=>{i!=="__proto__"&&(ee(u[i])&&!ee(r[i])&&(r[i]=Array.isArray(u[i])?[]:le()),Wn(r[i])||Wn(u[i])?r[i]=u[i]:n.push({src:u[i],des:r[i]}))})}}/*!
|
|
7
|
+
* message-compiler v9.14.5
|
|
8
|
+
* (c) 2025 kazuya kawaguchi
|
|
9
|
+
* Released under the MIT License.
|
|
10
|
+
*/function zs(e,t,n){return{line:e,column:t,offset:n}}function Gn(e,t,n){return{start:e,end:t}}const Us=/\{([0-9a-zA-Z]+)\}/g;function qr(e,...t){return t.length===1&&qs(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Us,(n,u)=>t.hasOwnProperty(u)?t[u]:"")}const Hr=Object.assign,Wr=e=>typeof e=="string",qs=e=>e!==null&&typeof e=="object";function Yr(e,t=""){return e.reduce((n,u,r)=>r===0?n+u:n+t+u,"")}const Xn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Hs={[Xn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Ws(e,t,...n){const u=qr(Hs[e],...n||[]),r={message:String(u),code:e};return t&&(r.location=t),r}const B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Ys={[B.EXPECTED_TOKEN]:"Expected token: '{0}'",[B.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[B.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[B.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[B.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[B.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[B.EMPTY_PLACEHOLDER]:"Empty placeholder",[B.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[B.INVALID_LINKED_FORMAT]:"Invalid linked format",[B.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[B.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[B.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[B.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[B.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[B.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Xt(e,t,n={}){const{domain:u,messages:r,args:i}=n,a=qr((r||Ys)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=u,s}function Gs(e){throw e}const Xs=/<\/?[\w\s="/.':;#-\/]+>/,Zs=e=>Xs.test(e),kt=" ",Ks="\r",Be=`
|
|
11
|
+
`,Js="\u2028",Qs="\u2029";function el(e){const t=e;let n=0,u=1,r=1,i=0;const a=w=>t[w]===Ks&&t[w+1]===Be,s=w=>t[w]===Be,l=w=>t[w]===Qs,c=w=>t[w]===Js,f=w=>a(w)||s(w)||l(w)||c(w),d=()=>n,h=()=>u,g=()=>r,p=()=>i,x=w=>a(w)||l(w)||c(w)?Be:t[w],C=()=>x(n),A=()=>x(n+i);function v(){return i=0,f(n)&&(u++,r=0),a(n)&&n++,n++,r++,t[n]}function m(){return a(n+i)&&i++,i++,t[n+i]}function E(){n=0,u=1,r=1,i=0}function y(w=0){i=w}function _(){const w=n+i;for(;w!==n;)v();i=0}return{index:d,line:h,column:g,peekOffset:p,charAt:x,currentChar:C,currentPeek:A,next:v,peek:m,reset:E,resetPeek:y,skipToPeek:_}}const Nt=void 0,tl=".",Gr="'",nl="tokenizer";function ul(e,t={}){const n=t.location!==!1,u=el(e),r=()=>u.index(),i=()=>zs(u.line(),u.column(),u.index()),a=i(),s=r(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:f}=t;function d(b,k,O,...$){const xe=c();if(k.column+=O,k.offset+=O,f){const me=n?Gn(xe.startLoc,k):null,se=Xt(b,me,{domain:nl,args:$});f(se)}}function h(b,k,O){b.endLoc=i(),b.currentType=k;const $={type:k};return n&&($.loc=Gn(b.startLoc,b.endLoc)),O!=null&&($.value=O),$}const g=b=>h(b,14);function p(b,k){return b.currentChar()===k?(b.next(),k):(d(B.EXPECTED_TOKEN,i(),0,k),"")}function x(b){let k="";for(;b.currentPeek()===kt||b.currentPeek()===Be;)k+=b.currentPeek(),b.peek();return k}function C(b){const k=x(b);return b.skipToPeek(),k}function A(b){if(b===Nt)return!1;const k=b.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k===95}function v(b){if(b===Nt)return!1;const k=b.charCodeAt(0);return k>=48&&k<=57}function m(b,k){const{currentType:O}=k;if(O!==2)return!1;x(b);const $=A(b.currentPeek());return b.resetPeek(),$}function E(b,k){const{currentType:O}=k;if(O!==2)return!1;x(b);const $=b.currentPeek()==="-"?b.peek():b.currentPeek(),xe=v($);return b.resetPeek(),xe}function y(b,k){const{currentType:O}=k;if(O!==2)return!1;x(b);const $=b.currentPeek()===Gr;return b.resetPeek(),$}function _(b,k){const{currentType:O}=k;if(O!==8)return!1;x(b);const $=b.currentPeek()===".";return b.resetPeek(),$}function w(b,k){const{currentType:O}=k;if(O!==9)return!1;x(b);const $=A(b.currentPeek());return b.resetPeek(),$}function D(b,k){const{currentType:O}=k;if(!(O===8||O===12))return!1;x(b);const $=b.currentPeek()===":";return b.resetPeek(),$}function T(b,k){const{currentType:O}=k;if(O!==10)return!1;const $=()=>{const me=b.currentPeek();return me==="{"?A(b.peek()):me==="@"||me==="%"||me==="|"||me===":"||me==="."||me===kt||!me?!1:me===Be?(b.peek(),$()):R(b,!1)},xe=$();return b.resetPeek(),xe}function V(b){x(b);const k=b.currentPeek()==="|";return b.resetPeek(),k}function ue(b){const k=x(b),O=b.currentPeek()==="%"&&b.peek()==="{";return b.resetPeek(),{isModulo:O,hasSpace:k.length>0}}function R(b,k=!0){const O=(xe=!1,me="",se=!1)=>{const N=b.currentPeek();return N==="{"?me==="%"?!1:xe:N==="@"||!N?me==="%"?!0:xe:N==="%"?(b.peek(),O(xe,"%",!0)):N==="|"?me==="%"||se?!0:!(me===kt||me===Be):N===kt?(b.peek(),O(!0,kt,se)):N===Be?(b.peek(),O(!0,Be,se)):!0},$=O();return k&&b.resetPeek(),$}function be(b,k){const O=b.currentChar();return O===Nt?Nt:k(O)?(b.next(),O):null}function X(b){const k=b.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36}function j(b){return be(b,X)}function K(b){const k=b.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36||k===45}function _e(b){return be(b,K)}function F(b){const k=b.charCodeAt(0);return k>=48&&k<=57}function q(b){return be(b,F)}function M(b){const k=b.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102}function he(b){return be(b,M)}function H(b){let k="",O="";for(;k=q(b);)O+=k;return O}function Oe(b){C(b);const k=b.currentChar();return k!=="%"&&d(B.EXPECTED_TOKEN,i(),0,k),b.next(),"%"}function te(b){let k="";for(;;){const O=b.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O==="%")if(R(b))k+=O,b.next();else break;else if(O===kt||O===Be)if(R(b))k+=O,b.next();else{if(V(b))break;k+=O,b.next()}else k+=O,b.next()}return k}function lt(b){C(b);let k="",O="";for(;k=_e(b);)O+=k;return b.currentChar()===Nt&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),O}function ie(b){C(b);let k="";return b.currentChar()==="-"?(b.next(),k+=`-${H(b)}`):k+=H(b),b.currentChar()===Nt&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),k}function S(b){return b!==Gr&&b!==Be}function G(b){C(b),p(b,"'");let k="",O="";for(;k=be(b,S);)k==="\\"?O+=Y(b):O+=k;const $=b.currentChar();return $===Be||$===Nt?(d(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),$===Be&&(b.next(),p(b,"'")),O):(p(b,"'"),O)}function Y(b){const k=b.currentChar();switch(k){case"\\":case"'":return b.next(),`\\${k}`;case"u":return oe(b,k,4);case"U":return oe(b,k,6);default:return d(B.UNKNOWN_ESCAPE_SEQUENCE,i(),0,k),""}}function oe(b,k,O){p(b,k);let $="";for(let xe=0;xe<O;xe++){const me=he(b);if(!me){d(B.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${k}${$}${b.currentChar()}`);break}$+=me}return`\\${k}${$}`}function Q(b){return b!=="{"&&b!=="}"&&b!==kt&&b!==Be}function Ne(b){C(b);let k="",O="";for(;k=be(b,Q);)O+=k;return O}function ze(b){let k="",O="";for(;k=j(b);)O+=k;return O}function I(b){const k=O=>{const $=b.currentChar();return $==="{"||$==="%"||$==="@"||$==="|"||$==="("||$===")"||!$||$===kt?O:(O+=$,b.next(),k(O))};return k("")}function z(b){C(b);const k=p(b,"|");return C(b),k}function tt(b,k){let O=null;switch(b.currentChar()){case"{":return k.braceNest>=1&&d(B.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),b.next(),O=h(k,2,"{"),C(b),k.braceNest++,O;case"}":return k.braceNest>0&&k.currentType===2&&d(B.EMPTY_PLACEHOLDER,i(),0),b.next(),O=h(k,3,"}"),k.braceNest--,k.braceNest>0&&C(b),k.inLinked&&k.braceNest===0&&(k.inLinked=!1),O;case"@":return k.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),O=ae(b,k)||g(k),k.braceNest=0,O;default:{let xe=!0,me=!0,se=!0;if(V(b))return k.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),O=h(k,1,z(b)),k.braceNest=0,k.inLinked=!1,O;if(k.braceNest>0&&(k.currentType===5||k.currentType===6||k.currentType===7))return d(B.UNTERMINATED_CLOSING_BRACE,i(),0),k.braceNest=0,bt(b,k);if(xe=m(b,k))return O=h(k,5,lt(b)),C(b),O;if(me=E(b,k))return O=h(k,6,ie(b)),C(b),O;if(se=y(b,k))return O=h(k,7,G(b)),C(b),O;if(!xe&&!me&&!se)return O=h(k,13,Ne(b)),d(B.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O.value),C(b),O;break}}return O}function ae(b,k){const{currentType:O}=k;let $=null;const xe=b.currentChar();switch((O===8||O===9||O===12||O===10)&&(xe===Be||xe===kt)&&d(B.INVALID_LINKED_FORMAT,i(),0),xe){case"@":return b.next(),$=h(k,8,"@"),k.inLinked=!0,$;case".":return C(b),b.next(),h(k,9,".");case":":return C(b),b.next(),h(k,10,":");default:return V(b)?($=h(k,1,z(b)),k.braceNest=0,k.inLinked=!1,$):_(b,k)||D(b,k)?(C(b),ae(b,k)):w(b,k)?(C(b),h(k,12,ze(b))):T(b,k)?(C(b),xe==="{"?tt(b,k)||$:h(k,11,I(b))):(O===8&&d(B.INVALID_LINKED_FORMAT,i(),0),k.braceNest=0,k.inLinked=!1,bt(b,k))}}function bt(b,k){let O={type:14};if(k.braceNest>0)return tt(b,k)||g(k);if(k.inLinked)return ae(b,k)||g(k);switch(b.currentChar()){case"{":return tt(b,k)||g(k);case"}":return d(B.UNBALANCED_CLOSING_BRACE,i(),0),b.next(),h(k,3,"}");case"@":return ae(b,k)||g(k);default:{if(V(b))return O=h(k,1,z(b)),k.braceNest=0,k.inLinked=!1,O;const{isModulo:xe,hasSpace:me}=ue(b);if(xe)return me?h(k,0,te(b)):h(k,4,Oe(b));if(R(b))return h(k,0,te(b));break}}return O}function bn(){const{currentType:b,offset:k,startLoc:O,endLoc:$}=l;return l.lastType=b,l.lastOffset=k,l.lastStartLoc=O,l.lastEndLoc=$,l.offset=r(),l.startLoc=i(),u.currentChar()===Nt?h(l,14):bt(u,l)}return{nextToken:bn,currentOffset:r,currentPosition:i,context:c}}const rl="parser",il=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ol(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const u=parseInt(t||n,16);return u<=55295||u>=57344?String.fromCodePoint(u):"�"}}}function al(e={}){const t=e.location!==!1,{onError:n,onWarn:u}=e;function r(m,E,y,_,...w){const D=m.currentPosition();if(D.offset+=_,D.column+=_,n){const T=t?Gn(y,D):null,V=Xt(E,T,{domain:rl,args:w});n(V)}}function i(m,E,y,_,...w){const D=m.currentPosition();if(D.offset+=_,D.column+=_,u){const T=t?Gn(y,D):null;u(Ws(E,T,w))}}function a(m,E,y){const _={type:m};return t&&(_.start=E,_.end=E,_.loc={start:y,end:y}),_}function s(m,E,y,_){t&&(m.end=E,m.loc&&(m.loc.end=y))}function l(m,E){const y=m.context(),_=a(3,y.offset,y.startLoc);return _.value=E,s(_,m.currentOffset(),m.currentPosition()),_}function c(m,E){const y=m.context(),{lastOffset:_,lastStartLoc:w}=y,D=a(5,_,w);return D.index=parseInt(E,10),m.nextToken(),s(D,m.currentOffset(),m.currentPosition()),D}function f(m,E,y){const _=m.context(),{lastOffset:w,lastStartLoc:D}=_,T=a(4,w,D);return T.key=E,y===!0&&(T.modulo=!0),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function d(m,E){const y=m.context(),{lastOffset:_,lastStartLoc:w}=y,D=a(9,_,w);return D.value=E.replace(il,ol),m.nextToken(),s(D,m.currentOffset(),m.currentPosition()),D}function h(m){const E=m.nextToken(),y=m.context(),{lastOffset:_,lastStartLoc:w}=y,D=a(8,_,w);return E.type!==12?(r(m,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),D.value="",s(D,_,w),{nextConsumeToken:E,node:D}):(E.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ut(E)),D.value=E.value||"",s(D,m.currentOffset(),m.currentPosition()),{node:D})}function g(m,E){const y=m.context(),_=a(7,y.offset,y.startLoc);return _.value=E,s(_,m.currentOffset(),m.currentPosition()),_}function p(m){const E=m.context(),y=a(6,E.offset,E.startLoc);let _=m.nextToken();if(_.type===9){const w=h(m);y.modifier=w.node,_=w.nextConsumeToken||m.nextToken()}switch(_.type!==10&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(_)),_=m.nextToken(),_.type===2&&(_=m.nextToken()),_.type){case 11:_.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(_)),y.key=g(m,_.value||"");break;case 5:_.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(_)),y.key=f(m,_.value||"");break;case 6:_.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(_)),y.key=c(m,_.value||"");break;case 7:_.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(_)),y.key=d(m,_.value||"");break;default:{r(m,B.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const w=m.context(),D=a(7,w.offset,w.startLoc);return D.value="",s(D,w.offset,w.startLoc),y.key=D,s(y,w.offset,w.startLoc),{nextConsumeToken:_,node:y}}}return s(y,m.currentOffset(),m.currentPosition()),{node:y}}function x(m){const E=m.context(),y=E.currentType===1?m.currentOffset():E.offset,_=E.currentType===1?E.endLoc:E.startLoc,w=a(2,y,_);w.items=[];let D=null,T=null;do{const R=D||m.nextToken();switch(D=null,R.type){case 0:R.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(R)),w.items.push(l(m,R.value||""));break;case 6:R.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(R)),w.items.push(c(m,R.value||""));break;case 4:T=!0;break;case 5:R.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(R)),w.items.push(f(m,R.value||"",!!T)),T&&(i(m,Xn.USE_MODULO_SYNTAX,E.lastStartLoc,0,ut(R)),T=null);break;case 7:R.value==null&&r(m,B.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(R)),w.items.push(d(m,R.value||""));break;case 8:{const be=p(m);w.items.push(be.node),D=be.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const V=E.currentType===1?E.lastOffset:m.currentOffset(),ue=E.currentType===1?E.lastEndLoc:m.currentPosition();return s(w,V,ue),w}function C(m,E,y,_){const w=m.context();let D=_.items.length===0;const T=a(1,E,y);T.cases=[],T.cases.push(_);do{const V=x(m);D||(D=V.items.length===0),T.cases.push(V)}while(w.currentType!==14);return D&&r(m,B.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),s(T,m.currentOffset(),m.currentPosition()),T}function A(m){const E=m.context(),{offset:y,startLoc:_}=E,w=x(m);return E.currentType===14?w:C(m,y,_,w)}function v(m){const E=ul(m,Hr({},e)),y=E.context(),_=a(0,y.offset,y.startLoc);return t&&_.loc&&(_.loc.source=m),_.body=A(E),e.onCacheKey&&(_.cacheKey=e.onCacheKey(m)),y.currentType!==14&&r(E,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,m[y.offset]||""),s(_,E.currentOffset(),E.currentPosition()),_}return{parse:v}}function ut(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function sl(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Xr(e,t){for(let n=0;n<e.length;n++)Iu(e[n],t)}function Iu(e,t){switch(e.type){case 1:Xr(e.cases,t),t.helper("plural");break;case 2:Xr(e.items,t);break;case 6:{Iu(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ll(e,t={}){const n=sl(e);n.helper("normalize"),e.body&&Iu(e.body,n);const u=n.context();e.helpers=Array.from(u.helpers)}function cl(e){const t=e.body;return t.type===2?Zr(t):t.cases.forEach(n=>Zr(n)),e}function Zr(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const u=e.items[n];if(!(u.type===3||u.type===9)||u.value==null)break;t.push(u.value)}if(t.length===e.items.length){e.static=Yr(t);for(let n=0;n<e.items.length;n++){const u=e.items[n];(u.type===3||u.type===9)&&delete u.value}}}}const fl="minifier";function Zt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Zt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let u=0;u<n.length;u++)Zt(n[u]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let u=0;u<n.length;u++)Zt(n[u]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Zt(t.key),t.k=t.key,delete t.key,t.modifier&&(Zt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Xt(B.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:fl,args:[e.type]})}delete e.type}const dl="parser";function hl(e,t){const{filename:n,breakLineCode:u,needIndent:r}=t,i=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:u,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const s=()=>a;function l(x,C){a.code+=x}function c(x,C=!0){const A=C?u:"";l(r?A+" ".repeat(x):A)}function f(x=!0){const C=++a.indentLevel;x&&c(C)}function d(x=!0){const C=--a.indentLevel;x&&c(C)}function h(){c(a.indentLevel)}return{context:s,push:l,indent:f,deindent:d,newline:h,helper:x=>`_${x}`,needIndent:()=>a.needIndent}}function ml(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Kt(e,t.key),t.modifier?(e.push(", "),Kt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function pl(e,t){const{helper:n,needIndent:u}=e;e.push(`${n("normalize")}([`),e.indent(u());const r=t.items.length;for(let i=0;i<r&&(Kt(e,t.items[i]),i!==r-1);i++)e.push(", ");e.deindent(u()),e.push("])")}function gl(e,t){const{helper:n,needIndent:u}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(u());const r=t.cases.length;for(let i=0;i<r&&(Kt(e,t.cases[i]),i!==r-1);i++)e.push(", ");e.deindent(u()),e.push("])")}}function bl(e,t){t.body?Kt(e,t.body):e.push("null")}function Kt(e,t){const{helper:n}=e;switch(t.type){case 0:bl(e,t);break;case 1:gl(e,t);break;case 2:pl(e,t);break;case 6:ml(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Xt(B.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:dl,args:[t.type]})}}const _l=(e,t={})=>{const n=Wr(t.mode)?t.mode:"normal",u=Wr(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],s=hl(e,{filename:u,breakLineCode:r,needIndent:i});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),a.length>0&&(s.push(`const { ${Yr(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),s.newline()),s.push("return "),Kt(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:l,map:c}=s.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function El(e,t={}){const n=Hr({},t),u=!!n.jit,r=!!n.minify,i=n.optimize==null?!0:n.optimize,s=al(n).parse(e);return u?(i&&cl(s),r&&Zt(s),{ast:s,code:""}):(ll(s,n),_l(s,n))}/*!
|
|
13
|
+
* core-base v9.14.5
|
|
14
|
+
* (c) 2025 kazuya kawaguchi
|
|
15
|
+
* Released under the MIT License.
|
|
16
|
+
*/function yl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function rt(e){return ee(e)&&Lu(e)===0&&(nt(e,"b")||nt(e,"body"))}const Kr=["b","body"];function kl(e){return At(e,Kr)}const Jr=["c","cases"];function xl(e){return At(e,Jr,[])}const Qr=["s","static"];function Cl(e){return At(e,Qr)}const ei=["i","items"];function vl(e){return At(e,ei,[])}const ti=["t","type"];function Lu(e){return At(e,ti)}const ni=["v","value"];function Zn(e,t){const n=At(e,ni);if(n!=null)return n;throw En(t)}const ui=["m","modifier"];function wl(e){return At(e,ui)}const ri=["k","key"];function Dl(e){const t=At(e,ri);if(t)return t;throw En(6)}function At(e,t,n){for(let u=0;u<t.length;u++){const r=t[u];if(nt(e,r)&&e[r]!=null)return e[r]}return n}const ii=[...Kr,...Jr,...Qr,...ei,...ri,...ui,...ni,...ti];function En(e){return new Error(`unhandled node type: ${e}`)}const Tt=[];Tt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Tt[1]={w:[1],".":[2],"[":[4],o:[7]},Tt[2]={w:[2],i:[3,0],0:[3,0]},Tt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Tt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Tt[5]={"'":[4,0],o:8,l:[5,0]},Tt[6]={'"':[4,0],o:8,l:[6,0]};const Nl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Al(e){return Nl.test(e)}function Tl(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Sl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ol(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Al(t)?Tl(t):"*"+t}function Il(e){const t=[];let n=-1,u=0,r=0,i,a,s,l,c,f,d;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,u=4,h[0]();else{if(r=0,a===void 0||(a=Ol(a),a===!1))return!1;h[1]()}};function g(){const p=e[n+1];if(u===5&&p==="'"||u===6&&p==='"')return n++,s="\\"+p,h[0](),!0}for(;u!==null;)if(n++,i=e[n],!(i==="\\"&&g())){if(l=Sl(i),d=Tt[u],c=d[l]||d.l||8,c===8||(u=c[0],c[1]!==void 0&&(f=h[c[1]],f&&(s=i,f()===!1))))return;if(u===7)return t}}const oi=new Map;function Ll(e,t){return ee(e)?e[t]:null}function Fl(e,t){if(!ee(e))return null;let n=oi.get(t);if(n||(n=Il(t),n&&oi.set(t,n)),!n)return null;const u=n.length;let r=e,i=0;for(;i<u;){const a=n[i];if(ii.includes(a)&&rt(r))return null;const s=r[a];if(s===void 0||Ee(r))return null;r=s,i++}return r}const Ml=e=>e,Pl=e=>"",Vl="text",$l=e=>e.length===0?"":Rs(e),Rl=$s;function ai(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Bl(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function jl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zl(e={}){const t=e.locale,n=Bl(e),u=ee(e.pluralRules)&&P(t)&&Ee(e.pluralRules[t])?e.pluralRules[t]:ai,r=ee(e.pluralRules)&&P(t)&&Ee(e.pluralRules[t])?ai:void 0,i=A=>A[u(n,A.length,r)],a=e.list||[],s=A=>a[A],l=e.named||le();Ie(e.pluralIndex)&&jl(n,l);const c=A=>l[A];function f(A){const v=Ee(e.messages)?e.messages(A):ee(e.messages)?e.messages[A]:!1;return v||(e.parent?e.parent.message(A):Pl)}const d=A=>e.modifiers?e.modifiers[A]:Ml,h=J(e.processor)&&Ee(e.processor.normalize)?e.processor.normalize:$l,g=J(e.processor)&&Ee(e.processor.interpolate)?e.processor.interpolate:Rl,p=J(e.processor)&&P(e.processor.type)?e.processor.type:Vl,C={list:s,named:c,plural:i,linked:(A,...v)=>{const[m,E]=v;let y="text",_="";v.length===1?ee(m)?(_=m.modifier||_,y=m.type||y):P(m)&&(_=m||_):v.length===2&&(P(m)&&(_=m||_),P(E)&&(y=E||y));const w=f(A)(C),D=y==="vnode"&&Te(w)&&_?w[0]:w;return _?d(_)(D,y):D},message:f,type:p,interpolate:g,normalize:h,values:Re(le(),a,l)};return C}let yn=null;function Ul(e){yn=e}function ql(e,t,n){yn&&yn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Hl=Wl("function:translate");function Wl(e){return t=>yn&&yn.emit(e,t)}const si=Xn.__EXTEND_POINT__,Bt=Hn(si),je={NOT_FOUND_KEY:si,FALLBACK_TO_TRANSLATE:Bt(),CANNOT_FORMAT_NUMBER:Bt(),FALLBACK_TO_NUMBER_FORMAT:Bt(),CANNOT_FORMAT_DATE:Bt(),FALLBACK_TO_DATE_FORMAT:Bt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Bt(),__EXTEND_POINT__:Bt()},Yl={[je.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[je.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[je.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[je.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function jt(e,...t){return Ou(Yl[e],...t)}const li=B.__EXTEND_POINT__,zt=Hn(li),Le={INVALID_ARGUMENT:li,INVALID_DATE_ARGUMENT:zt(),INVALID_ISO_DATE_ARGUMENT:zt(),NOT_SUPPORT_NON_STRING_MESSAGE:zt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:zt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:zt(),NOT_SUPPORT_LOCALE_TYPE:zt(),__EXTEND_POINT__:zt()};function ft(e){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:Gl}:void 0)}const Gl={[Le.INVALID_ARGUMENT]:"Invalid arguments",[Le.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Le.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Le.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Le.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Le.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Fu(e,t){return t.locale!=null?ci(t.locale):ci(e.locale)}let Mu;function ci(e){if(P(e))return e;if(Ee(e)){if(e.resolvedOnce&&Mu!=null)return Mu;if(e.constructor.name==="Function"){const t=e();if(Vs(t))throw ft(Le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Mu=t}else throw ft(Le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(Le.NOT_SUPPORT_LOCALE_TYPE)}function Xl(e,t,n){return[...new Set([n,...Te(t)?t:ee(t)?Object.keys(t):P(t)?[t]:[n]])]}function fi(e,t,n){const u=P(n)?n:kn,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(u);if(!i){i=[];let a=[n];for(;Te(a);)a=di(i,a,t);const s=Te(t)||!J(t)?t:t.default?t.default:null;a=P(s)?[s]:s,Te(a)&&di(i,a,!1),r.__localeChainCache.set(u,i)}return i}function di(e,t,n){let u=!0;for(let r=0;r<t.length&&ce(u);r++){const i=t[r];P(i)&&(u=Zl(e,t[r],n))}return u}function Zl(e,t,n){let u;const r=t.split("-");do{const i=r.join("-");u=Kl(e,i,n),r.splice(-1,1)}while(r.length&&u===!0);return u}function Kl(e,t,n){let u=!1;if(!e.includes(t)&&(u=!0,t)){u=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Te(n)||J(n))&&n[r]&&(u=n[r])}return u}const Jl="9.14.5",Kn=-1,kn="en-US",Jn="",hi=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ql(){return{upper:(e,t)=>t==="text"&&P(e)?e.toUpperCase():t==="vnode"&&ee(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&P(e)?e.toLowerCase():t==="vnode"&&ee(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&P(e)?hi(e):t==="vnode"&&ee(e)&&"__v_isVNode"in e?hi(e.children):e}}let mi;function pi(e){mi=e}let gi;function ec(e){gi=e}let bi;function tc(e){bi=e}let _i=null;const nc=e=>{_i=e},uc=()=>_i;let Ei=null;const yi=e=>{Ei=e},rc=()=>Ei;let ki=0;function ic(e={}){const t=Ee(e.onWarn)?e.onWarn:ct,n=P(e.version)?e.version:Jl,u=P(e.locale)||Ee(e.locale)?e.locale:kn,r=Ee(u)?kn:u,i=Te(e.fallbackLocale)||J(e.fallbackLocale)||P(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=J(e.messages)?e.messages:Pu(r),s=J(e.datetimeFormats)?e.datetimeFormats:Pu(r),l=J(e.numberFormats)?e.numberFormats:Pu(r),c=Re(le(),e.modifiers,Ql()),f=e.pluralRules||le(),d=Ee(e.missing)?e.missing:null,h=ce(e.missingWarn)||Gt(e.missingWarn)?e.missingWarn:!0,g=ce(e.fallbackWarn)||Gt(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,x=!!e.unresolving,C=Ee(e.postTranslation)?e.postTranslation:null,A=J(e.processor)?e.processor:null,v=ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,E=Ee(e.messageCompiler)?e.messageCompiler:mi;process.env.NODE_ENV!=="production"&&Ee(e.messageCompiler)&&Vr(jt(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const y=Ee(e.messageResolver)?e.messageResolver:gi||Ll,_=Ee(e.localeFallbacker)?e.localeFallbacker:bi||Xl,w=ee(e.fallbackContext)?e.fallbackContext:void 0,D=e,T=ee(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,V=ee(D.__numberFormatters)?D.__numberFormatters:new Map,ue=ee(D.__meta)?D.__meta:{};ki++;const R={version:n,cid:ki,locale:u,fallbackLocale:i,messages:a,modifiers:c,pluralRules:f,missing:d,missingWarn:h,fallbackWarn:g,fallbackFormat:p,unresolving:x,postTranslation:C,processor:A,warnHtmlMessage:v,escapeParameter:m,messageCompiler:E,messageResolver:y,localeFallbacker:_,fallbackContext:w,onWarn:t,__meta:ue};return R.datetimeFormats=s,R.numberFormats=l,R.__datetimeFormatters=T,R.__numberFormatters=V,process.env.NODE_ENV!=="production"&&(R.__v_emitter=D.__v_emitter!=null?D.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ql(R,n,ue),R}const Pu=e=>({[e]:le()});function Qn(e,t){return e instanceof RegExp?e.test(t):e}function xi(e,t){return e instanceof RegExp?e.test(t):e}function Vu(e,t,n,u,r){const{missing:i,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:r,groupId:`${r}:${t}`})}if(i!==null){const s=i(e,n,t,r);return P(s)?s:t}else return process.env.NODE_ENV!=="production"&&xi(u,t)&&a(jt(je.NOT_FOUND_KEY,{key:t,locale:n})),t}function xn(e,t,n){const u=e;u.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ci(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function oc(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let u=n+1;u<t.length;u++)if(Ci(e,t[u]))return!0;return!1}function $u(e){return n=>ac(n,e)}function ac(e,t){const n=kl(t);if(n==null)throw En(0);if(Lu(n)===1){const i=xl(n);return e.plural(i.reduce((a,s)=>[...a,vi(e,s)],[]))}else return vi(e,n)}function vi(e,t){const n=Cl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const u=vl(t).reduce((r,i)=>[...r,Ru(e,i)],[]);return e.normalize(u)}}function Ru(e,t){const n=Lu(t);switch(n){case 3:return Zn(t,n);case 9:return Zn(t,n);case 4:{const u=t;if(nt(u,"k")&&u.k)return e.interpolate(e.named(u.k));if(nt(u,"key")&&u.key)return e.interpolate(e.named(u.key));throw En(n)}case 5:{const u=t;if(nt(u,"i")&&Ie(u.i))return e.interpolate(e.list(u.i));if(nt(u,"index")&&Ie(u.index))return e.interpolate(e.list(u.index));throw En(n)}case 6:{const u=t,r=wl(u),i=Dl(u);return e.linked(Ru(e,i),r?Ru(e,r):void 0,e.type)}case 7:return Zn(t,n);case 8:return Zn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const sc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function wi(e,t){t&&Zs(e)&&ct(Ou(sc,{source:e}))}const Di=e=>e;let Jt=le();function Ni(e){e.code===Xn.USE_MODULO_SYNTAX&&ct(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
17
|
+
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
18
|
+
(message compiler warning message: ${e.message})`)}function Ai(e,t={}){let n=!1;const u=t.onError||Gs;return t.onError=r=>{n=!0,u(r)},{...El(e,t),detectError:n}}const lc=(e,t)=>{if(!P(e))throw ft(Le.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=Ni);{const n=ce(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&wi(e,n);const r=(t.onCacheKey||Di)(e),i=Jt[r];if(i)return i;const{code:a,detectError:s}=Ai(e,t),l=new Function(`return ${a}`)();return s?l:Jt[r]=l}};function cc(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=Ni),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&P(e)){const n=ce(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&wi(e,n);const r=(t.onCacheKey||Di)(e),i=Jt[r];if(i)return i;const{ast:a,detectError:s}=Ai(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=$u(a);return s?l:Jt[r]=l}else{if(process.env.NODE_ENV!=="production"&&!rt(e))return ct(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const u=Jt[n];return u||(Jt[n]=$u(e))}else return $u(e)}}const Ti=()=>"",Ze=e=>Ee(e);function Si(e,...t){const{fallbackFormat:n,postTranslation:u,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=Bu(...t),f=ce(c.missingWarn)?c.missingWarn:e.missingWarn,d=ce(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=ce(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,p=P(c.default)||ce(c.default)?ce(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",x=n||p!=="",C=Fu(e,c);h&&fc(c);let[A,v,m]=g?[l,C,s[C]||le()]:Oi(e,l,C,a,d,f),E=A,y=l;if(!g&&!(P(E)||rt(E)||Ze(E))&&x&&(E=p,y=E),!g&&(!(P(E)||rt(E)||Ze(E))||!P(v)))return r?Kn:l;if(process.env.NODE_ENV!=="production"&&P(E)&&e.messageCompiler==null)return ct(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let _=!1;const w=()=>{_=!0},D=Ze(E)?E:Ii(e,l,v,E,y,w);if(_)return E;const T=pc(e,v,m,c),V=zl(T),ue=dc(e,D,V);let R=u?u(ue,l):ue;if(h&&P(R)&&(R=Ms(R)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const be={timestamp:Date.now(),key:P(l)?l:Ze(E)?E.key:"",locale:v||(Ze(E)?E.locale:""),format:P(E)?E:Ze(E)?E.source:"",message:R};be.meta=Re({},e.__meta,uc()||{}),Hl(be)}return R}function fc(e){Te(e.list)?e.list=e.list.map(t=>P(t)?Rr(t):t):ee(e.named)&&Object.keys(e.named).forEach(t=>{P(e.named[t])&&(e.named[t]=Rr(e.named[t]))})}function Oi(e,t,n,u,r,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,f=c(e,u,n);let d=le(),h,g=null,p=n,x=null;const C="translate";for(let A=0;A<f.length;A++){if(h=x=f[A],process.env.NODE_ENV!=="production"&&n!==h&&!Ci(n,h)&&Qn(r,t)&&s(jt(je.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const y=e.__v_emitter;y&&y.emit("fallback",{type:C,key:t,from:p,to:x,groupId:`${C}:${t}`})}d=a[h]||le();let v=null,m,E;if(process.env.NODE_ENV!=="production"&&_t&&(v=window.performance.now(),m="intlify-message-resolve-start",E="intlify-message-resolve-end",We&&We(m)),(g=l(d,t))===null&&(g=d[t]),process.env.NODE_ENV!=="production"&&_t){const y=window.performance.now(),_=e.__v_emitter;_&&v&&g&&_.emit("message-resolve",{type:"message-resolve",key:t,message:g,time:y-v,groupId:`${C}:${t}`}),m&&E&&We&&Rt&&(We(E),Rt("intlify message resolve",m,E))}if(P(g)||rt(g)||Ze(g))break;if(!oc(h,f)){const y=Vu(e,t,h,i,C);y!==t&&(g=y)}p=x}return[g,h,d]}function Ii(e,t,n,u,r,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Ze(u)){const h=u;return h.locale=h.locale||n,h.key=h.key||t,h}if(a==null){const h=()=>u;return h.locale=n,h.key=t,h}let l=null,c,f;process.env.NODE_ENV!=="production"&&_t&&(l=window.performance.now(),c="intlify-message-compilation-start",f="intlify-message-compilation-end",We&&We(c));const d=a(u,hc(e,n,r,u,s,i));if(process.env.NODE_ENV!=="production"&&_t){const h=window.performance.now(),g=e.__v_emitter;g&&l&&g.emit("message-compilation",{type:"message-compilation",message:u,time:h-l,groupId:`translate:${t}`}),c&&f&&We&&Rt&&(We(f),Rt("intlify message compilation",c,f))}return d.locale=n,d.key=t,d.source=u,d}function dc(e,t,n){let u=null,r,i;process.env.NODE_ENV!=="production"&&_t&&(u=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",We&&We(r));const a=t(n);if(process.env.NODE_ENV!=="production"&&_t){const s=window.performance.now(),l=e.__v_emitter;l&&u&&l.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-u,groupId:`translate:${t.key}`}),r&&i&&We&&Rt&&(We(i),Rt("intlify message evaluation",r,i))}return a}function Bu(...e){const[t,n,u]=e,r=le();if(!P(t)&&!Ie(t)&&!Ze(t)&&!rt(t))throw ft(Le.INVALID_ARGUMENT);const i=Ie(t)?String(t):(Ze(t),t);return Ie(n)?r.plural=n:P(n)?r.default=n:J(n)&&!qn(n)?r.named=n:Te(n)&&(r.list=n),Ie(u)?r.plural=u:P(u)?r.default=u:J(u)&&Re(r,u),[i,r]}function hc(e,t,n,u,r,i){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{if(i&&i(a),process.env.NODE_ENV!=="production"){const s=mc(u),l=`Message compilation error: ${a.message}`,c=a.location&&s&&Bs(s,a.location.start.offset,a.location.end.offset),f=e.__v_emitter;f&&s&&f.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
|
|
19
|
+
${c}`:l)}else throw a},onCacheKey:a=>Os(t,n,a)}}function mc(e){if(P(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function pc(e,t,n,u){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:f}=e,h={locale:t,modifiers:r,pluralRules:i,messages:g=>{let p=a(n,g);if(p==null&&f){const[,,x]=Oi(f,g,t,s,l,c);p=a(x,g)}if(P(p)||rt(p)){let x=!1;const A=Ii(e,g,t,p,g,()=>{x=!0});return x?Ti:A}else return Ze(p)?p:Ti}};return e.processor&&(h.processor=e.processor),u.list&&(h.list=u.list),u.named&&(h.named=u.named),Ie(u.plural)&&(h.pluralIndex=u.plural),h}const Li=typeof Intl<"u",Fi={dateTimeFormat:Li&&typeof Intl.DateTimeFormat<"u",numberFormat:Li&&typeof Intl.NumberFormat<"u"};function Mi(e,...t){const{datetimeFormats:n,unresolving:u,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Fi.dateTimeFormat)return i(jt(je.CANNOT_FORMAT_DATE)),Jn;const[l,c,f,d]=ju(...t),h=ce(f.missingWarn)?f.missingWarn:e.missingWarn,g=ce(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,p=!!f.part,x=Fu(e,f),C=a(e,r,x);if(!P(l)||l==="")return new Intl.DateTimeFormat(x,d).format(c);let A={},v,m=null,E=x,y=null;const _="datetime format";for(let T=0;T<C.length;T++){if(v=y=C[T],process.env.NODE_ENV!=="production"&&x!==v&&Qn(g,l)&&i(jt(je.FALLBACK_TO_DATE_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&x!==v){const V=e.__v_emitter;V&&V.emit("fallback",{type:_,key:l,from:E,to:y,groupId:`${_}:${l}`})}if(A=n[v]||{},m=A[l],J(m))break;Vu(e,l,v,h,_),E=y}if(!J(m)||!P(v))return u?Kn:l;let w=`${v}__${l}`;qn(d)||(w=`${w}__${JSON.stringify(d)}`);let D=s.get(w);return D||(D=new Intl.DateTimeFormat(v,Re({},m,d)),s.set(w,D)),p?D.formatToParts(c):D.format(c)}const Pi=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ju(...e){const[t,n,u,r]=e,i=le();let a=le(),s;if(P(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(Le.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw ft(Le.INVALID_ISO_DATE_ARGUMENT)}}else if(Ls(t)){if(isNaN(t.getTime()))throw ft(Le.INVALID_DATE_ARGUMENT);s=t}else if(Ie(t))s=t;else throw ft(Le.INVALID_ARGUMENT);return P(n)?i.key=n:J(n)&&Object.keys(n).forEach(l=>{Pi.includes(l)?a[l]=n[l]:i[l]=n[l]}),P(u)?i.locale=u:J(u)&&(a=u),J(r)&&(a=r),[i.key||"",s,i,a]}function Vi(e,t,n){const u=e;for(const r in n){const i=`${t}__${r}`;u.__datetimeFormatters.has(i)&&u.__datetimeFormatters.delete(i)}}function $i(e,...t){const{numberFormats:n,unresolving:u,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Fi.numberFormat)return i(jt(je.CANNOT_FORMAT_NUMBER)),Jn;const[l,c,f,d]=zu(...t),h=ce(f.missingWarn)?f.missingWarn:e.missingWarn,g=ce(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,p=!!f.part,x=Fu(e,f),C=a(e,r,x);if(!P(l)||l==="")return new Intl.NumberFormat(x,d).format(c);let A={},v,m=null,E=x,y=null;const _="number format";for(let T=0;T<C.length;T++){if(v=y=C[T],process.env.NODE_ENV!=="production"&&x!==v&&Qn(g,l)&&i(jt(je.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&x!==v){const V=e.__v_emitter;V&&V.emit("fallback",{type:_,key:l,from:E,to:y,groupId:`${_}:${l}`})}if(A=n[v]||{},m=A[l],J(m))break;Vu(e,l,v,h,_),E=y}if(!J(m)||!P(v))return u?Kn:l;let w=`${v}__${l}`;qn(d)||(w=`${w}__${JSON.stringify(d)}`);let D=s.get(w);return D||(D=new Intl.NumberFormat(v,Re({},m,d)),s.set(w,D)),p?D.formatToParts(c):D.format(c)}const Ri=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function zu(...e){const[t,n,u,r]=e,i=le();let a=le();if(!Ie(t))throw ft(Le.INVALID_ARGUMENT);const s=t;return P(n)?i.key=n:J(n)&&Object.keys(n).forEach(l=>{Ri.includes(l)?a[l]=n[l]:i[l]=n[l]}),P(u)?i.locale=u:J(u)&&(a=u),J(r)&&(a=r),[i.key||"",s,i,a]}function Bi(e,t,n){const u=e;for(const r in n){const i=`${t}__${r}`;u.__numberFormatters.has(i)&&u.__numberFormatters.delete(i)}}yl();/*!
|
|
20
|
+
* vue-i18n v9.14.5
|
|
21
|
+
* (c) 2025 kazuya kawaguchi
|
|
22
|
+
* Released under the MIT License.
|
|
23
|
+
*/const gc="9.14.5";function bc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1)}const ji=je.__EXTEND_POINT__,xt=Hn(ji),Ue={FALLBACK_TO_ROOT:ji,NOT_SUPPORTED_PRESERVE:xt(),NOT_SUPPORTED_FORMATTER:xt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:xt(),NOT_SUPPORTED_GET_CHOICE_INDEX:xt(),COMPONENT_NAME_LEGACY_COMPATIBLE:xt(),NOT_FOUND_PARENT_SCOPE:xt(),IGNORE_OBJ_FLATTEN:xt(),NOTICE_DROP_ALLOW_COMPOSITION:xt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:xt()},_c={[Ue.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ue.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ue.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ue.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ue.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ue.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ue.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ue.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ue.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Ue.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function eu(e,...t){return Ou(_c[e],...t)}const zi=Le.__EXTEND_POINT__,qe=Hn(zi),Ce={UNEXPECTED_RETURN_TYPE:zi,INVALID_ARGUMENT:qe(),MUST_BE_CALL_SETUP_TOP:qe(),NOT_INSTALLED:qe(),NOT_AVAILABLE_IN_LEGACY_MODE:qe(),REQUIRED_VALUE:qe(),INVALID_VALUE:qe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qe(),NOT_INSTALLED_WITH_PROVIDE:qe(),UNEXPECTED_ERROR:qe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qe(),BRIDGE_SUPPORT_VUE_2_ONLY:qe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qe(),__EXTEND_POINT__:qe()};function St(e,...t){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:Ec,args:t}:void 0)}const Ec={[Ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ce.INVALID_ARGUMENT]:"Invalid argument",[Ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ce.NOT_INSTALLED]:"Need to install with `app.use` function",[Ce.UNEXPECTED_ERROR]:"Unexpected error",[Ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ce.REQUIRED_VALUE]:"Required in value: {0}",[Ce.INVALID_VALUE]:"Invalid value",[Ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ce.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Uu=Et("__translateVNode"),qu=Et("__datetimeParts"),Hu=Et("__numberParts"),Wu=Et("__enableEmitter"),Yu=Et("__disableEmitter"),yc=Et("__setPluralRules"),Ui=Et("__injectWithOption"),Gu=Et("__dispose");function Cn(e){if(!ee(e)||rt(e))return e;for(const t in e)if(nt(e,t))if(!t.includes("."))ee(e[t])&&Cn(e[t]);else{const n=t.split("."),u=n.length-1;let r=e,i=!1;for(let a=0;a<u;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in r||(r[n[a]]=le()),!ee(r[n[a]])){process.env.NODE_ENV!=="production"&&ct(eu(Ue.IGNORE_OBJ_FLATTEN,{key:n[a]})),i=!0;break}r=r[n[a]]}if(i||(rt(r)?ii.includes(n[u])||delete e[t]:(r[n[u]]=e[t],delete e[t])),!rt(r)){const a=r[n[u]];ee(a)&&Cn(a)}}return e}function Xu(e,t){const{messages:n,__i18n:u,messageResolver:r,flatJson:i}=t,a=J(n)?n:Te(u)?le():{[e]:le()};if(Te(u)&&u.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||le(),Yn(c,a[l])):Yn(c,a)}else P(s)&&Yn(JSON.parse(s),a)}),r==null&&i)for(const s in a)nt(a,s)&&Cn(a[s]);return a}function qi(e){return e.type}function kc(e,t,n){let u=ee(t.messages)?t.messages:le();"__i18nGlobal"in n&&(u=Xu(e.locale.value,{messages:u,__i18n:n.__i18nGlobal}));const r=Object.keys(u);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,u[i])});{if(ee(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ee(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Hi(e){return o.createVNode(o.Text,null,e,0)}const Wi="__INTLIFY_META__",Yi=()=>[],xc=()=>!1;let Gi=0;function Xi(e){return(t,n,u,r)=>e(n,u,o.getCurrentInstance()||void 0,r)}const Cc=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=qi(e)[Wi])?{[Wi]:t}:null};function vc(e={},t){const{__root:n,__injectWithOption:u}=e,r=n===void 0,i=e.flatJson,a=_t?o.ref:o.shallowRef,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&Vr(eu(Ue.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=ce(e.inheritLocale)?e.inheritLocale:!0;const c=a(n&&l?n.locale.value:P(e.locale)?e.locale:kn),f=a(n&&l?n.fallbackLocale.value:P(e.fallbackLocale)||Te(e.fallbackLocale)||J(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(Xu(c.value,e)),h=a(J(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),g=a(J(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:ce(e.missingWarn)||Gt(e.missingWarn)?e.missingWarn:!0,x=n?n.fallbackWarn:ce(e.fallbackWarn)||Gt(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:ce(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,v=Ee(e.missing)?e.missing:null,m=Ee(e.missing)?Xi(e.missing):null,E=Ee(e.postTranslation)?e.postTranslation:null,y=n?n.warnHtmlMessage:ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const w=n?n.modifiers:J(e.modifiers)?e.modifiers:{};let D=e.pluralRules||n&&n.pluralRules,T;T=(()=>{r&&yi(null);const N={version:gc,locale:c.value,fallbackLocale:f.value,messages:d.value,modifiers:w,pluralRules:D,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:x,fallbackFormat:A,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:y,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};N.datetimeFormats=h.value,N.numberFormats=g.value,N.__datetimeFormatters=J(T)?T.__datetimeFormatters:void 0,N.__numberFormatters=J(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(N.__v_emitter=J(T)?T.__v_emitter:void 0);const L=ic(N);return r&&yi(L),L})(),xn(T,c.value,f.value);function ue(){return[c.value,f.value,d.value,h.value,g.value]}const R=o.computed({get:()=>c.value,set:N=>{c.value=N,T.locale=c.value}}),be=o.computed({get:()=>f.value,set:N=>{f.value=N,T.fallbackLocale=f.value,xn(T,c.value,N)}}),X=o.computed(()=>d.value),j=o.computed(()=>h.value),K=o.computed(()=>g.value);function _e(){return Ee(E)?E:null}function F(N){E=N,T.postTranslation=N}function q(){return v}function M(N){N!==null&&(m=Xi(N)),v=N,T.missing=m}function he(N,L){return N!=="translate"||!L.resolvedMessage}const H=(N,L,re,Ae,$t,Su)=>{ue();let _n;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(T.fallbackContext=n?rc():void 0),_n=N(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(T.fallbackContext=void 0)}if(re!=="translate exists"&&Ie(_n)&&_n===Kn||re==="translate exists"&&!_n){const[Yt,B_]=L();if(process.env.NODE_ENV!=="production"&&n&&P(Yt)&&he(re,B_)&&(C&&(Qn(x,Yt)||xi(p,Yt))&&ct(eu(Ue.FALLBACK_TO_ROOT,{key:Yt,type:re})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ts}=T;Ts&&C&&Ts.emit("fallback",{type:re,key:Yt,to:"global",groupId:`${re}:${Yt}`})}return n&&C?Ae(n):$t(Yt)}else{if(Su(_n))return _n;throw St(Ce.UNEXPECTED_RETURN_TYPE)}};function Oe(...N){return H(L=>Reflect.apply(Si,null,[L,...N]),()=>Bu(...N),"translate",L=>Reflect.apply(L.t,L,[...N]),L=>L,L=>P(L))}function te(...N){const[L,re,Ae]=N;if(Ae&&!ee(Ae))throw St(Ce.INVALID_ARGUMENT);return Oe(L,re,Re({resolvedMessage:!0},Ae||{}))}function lt(...N){return H(L=>Reflect.apply(Mi,null,[L,...N]),()=>ju(...N),"datetime format",L=>Reflect.apply(L.d,L,[...N]),()=>Jn,L=>P(L))}function ie(...N){return H(L=>Reflect.apply($i,null,[L,...N]),()=>zu(...N),"number format",L=>Reflect.apply(L.n,L,[...N]),()=>Jn,L=>P(L))}function S(N){return N.map(L=>P(L)||Ie(L)||ce(L)?Hi(String(L)):L)}const Y={normalize:S,interpolate:N=>N,type:"vnode"};function oe(...N){return H(L=>{let re;const Ae=L;try{Ae.processor=Y,re=Reflect.apply(Si,null,[Ae,...N])}finally{Ae.processor=null}return re},()=>Bu(...N),"translate",L=>L[Uu](...N),L=>[Hi(L)],L=>Te(L))}function Q(...N){return H(L=>Reflect.apply($i,null,[L,...N]),()=>zu(...N),"number format",L=>L[Hu](...N),Yi,L=>P(L)||Te(L))}function Ne(...N){return H(L=>Reflect.apply(Mi,null,[L,...N]),()=>ju(...N),"datetime format",L=>L[qu](...N),Yi,L=>P(L)||Te(L))}function ze(N){D=N,T.pluralRules=D}function I(N,L){return H(()=>{if(!N)return!1;const re=P(L)?L:c.value,Ae=ae(re),$t=T.messageResolver(Ae,N);return s?$t!=null:rt($t)||Ze($t)||P($t)},()=>[N],"translate exists",re=>Reflect.apply(re.te,re,[N,L]),xc,re=>ce(re))}function z(N){let L=null;const re=fi(T,f.value,c.value);for(let Ae=0;Ae<re.length;Ae++){const $t=d.value[re[Ae]]||{},Su=T.messageResolver($t,N);if(Su!=null){L=Su;break}}return L}function tt(N){const L=z(N);return L??(n?n.tm(N)||{}:{})}function ae(N){return d.value[N]||{}}function bt(N,L){if(i){const re={[N]:L};for(const Ae in re)nt(re,Ae)&&Cn(re[Ae]);L=re[N]}d.value[N]=L,T.messages=d.value}function bn(N,L){d.value[N]=d.value[N]||{};const re={[N]:L};if(i)for(const Ae in re)nt(re,Ae)&&Cn(re[Ae]);L=re[N],Yn(L,d.value[N]),T.messages=d.value}function b(N){return h.value[N]||{}}function k(N,L){h.value[N]=L,T.datetimeFormats=h.value,Vi(T,N,L)}function O(N,L){h.value[N]=Re(h.value[N]||{},L),T.datetimeFormats=h.value,Vi(T,N,L)}function $(N){return g.value[N]||{}}function xe(N,L){g.value[N]=L,T.numberFormats=g.value,Bi(T,N,L)}function me(N,L){g.value[N]=Re(g.value[N]||{},L),T.numberFormats=g.value,Bi(T,N,L)}Gi++,n&&_t&&(o.watch(n.locale,N=>{l&&(c.value=N,T.locale=N,xn(T,c.value,f.value))}),o.watch(n.fallbackLocale,N=>{l&&(f.value=N,T.fallbackLocale=N,xn(T,c.value,f.value))}));const se={id:Gi,locale:R,fallbackLocale:be,get inheritLocale(){return l},set inheritLocale(N){l=N,N&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,xn(T,c.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:X,get modifiers(){return w},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(N){p=N,T.missingWarn=p},get fallbackWarn(){return x},set fallbackWarn(N){x=N,T.fallbackWarn=x},get fallbackRoot(){return C},set fallbackRoot(N){C=N},get fallbackFormat(){return A},set fallbackFormat(N){A=N,T.fallbackFormat=A},get warnHtmlMessage(){return y},set warnHtmlMessage(N){y=N,T.warnHtmlMessage=N},get escapeParameter(){return _},set escapeParameter(N){_=N,T.escapeParameter=N},t:Oe,getLocaleMessage:ae,setLocaleMessage:bt,mergeLocaleMessage:bn,getPostTranslationHandler:_e,setPostTranslationHandler:F,getMissingHandler:q,setMissingHandler:M,[yc]:ze};return se.datetimeFormats=j,se.numberFormats=K,se.rt=te,se.te=I,se.tm=tt,se.d=lt,se.n=ie,se.getDateTimeFormat=b,se.setDateTimeFormat=k,se.mergeDateTimeFormat=O,se.getNumberFormat=$,se.setNumberFormat=xe,se.mergeNumberFormat=me,se[Ui]=u,se[Uu]=oe,se[qu]=Ne,se[Hu]=Q,process.env.NODE_ENV!=="production"&&(se[Wu]=N=>{T.__v_emitter=N},se[Yu]=()=>{T.__v_emitter=void 0}),se}const Zu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((u,r)=>[...u,...r.type===o.Fragment?r.children:[r]],[]):t.reduce((n,u)=>{const r=e[u];return r&&(n[u]=r()),n},le())}function Zi(e){return o.Fragment}Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},Zu);function Dc(e){return Te(e)&&!P(e[0])}function Ki(e,t,n,u){const{slots:r,attrs:i}=t;return()=>{const a={part:!0};let s=le();e.locale&&(a.locale=e.locale),P(e.format)?a.key=e.format:ee(e.format)&&(P(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,g)=>n.includes(g)?Re(le(),h,{[g]:e.format[g]}):h,le()));const l=u(e.value,a,s);let c=[a.key];Te(l)?c=l.map((h,g)=>{const p=r[h.type],x=p?p({[h.type]:h.value,index:g,parts:l}):[h.value];return Dc(x)&&(x[0].key=`${h.type}-${g}`),x}):P(l)&&(c=[l]);const f=Re(le(),i),d=P(e.tag)||ee(e.tag)?e.tag:Zi();return o.h(d,f,c)}}Re({value:{type:Number,required:!0},format:{type:[String,Object]}},Zu),Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zu);function Ji(e,t){}const Nc=Et("global-vue-i18n");function dt(e={}){const t=o.getCurrentInstance();if(t==null)throw St(Ce.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw St(Ce.NOT_INSTALLED);const n=Ac(t),u=Sc(n),r=qi(t),i=Tc(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw St(Ce.NOT_AVAILABLE_IN_LEGACY_MODE);return Fc(t,i,u,e)}if(i==="global")return kc(u,e,r),u;if(i==="parent"){let l=Oc(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&ct(eu(Ue.NOT_FOUND_PARENT_SCOPE)),l=u),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Re({},e);"__i18n"in r&&(l.__i18n=r.__i18n),u&&(l.__root=u),s=vc(l),a.__composerExtend&&(s[Gu]=a.__composerExtend(s)),Lc(a,t,s),a.__setInstance(t,s)}return s}function Ac(e){{const t=o.inject(e.isCE?Nc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw St(e.isCE?Ce.NOT_INSTALLED_WITH_PROVIDE:Ce.UNEXPECTED_ERROR);return t}}function Tc(e,t){return qn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Sc(e){return e.mode==="composition"?e.global:e.global.__composer}function Oc(e,t,n=!1){let u=null;const r=t.root;let i=Ic(t,n);for(;i!=null;){const a=e;if(e.mode==="composition")u=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(u=s.__composer,n&&u&&!u[Ui]&&(u=null))}if(u!=null||r===i)break;i=i.parent}return u}function Ic(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Lc(e,t,n){let u=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,u=js();const r=n;r[Wu]&&r[Wu](u),u.on("*",Ji)}},t),o.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(u&&u.off("*",Ji),r[Yu]&&r[Yu](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const i=r[Gu];i&&(i(),delete r[Gu])},t)}function Fc(e,t,n,u={}){const r=t==="local",i=o.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw St(Ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=ce(u.inheritLocale)?u.inheritLocale:!P(u.locale),s=o.ref(!r||a?n.locale.value:P(u.locale)?u.locale:kn),l=o.ref(!r||a?n.fallbackLocale.value:P(u.fallbackLocale)||Te(u.fallbackLocale)||J(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:s.value),c=o.ref(Xu(s.value,u)),f=o.ref(J(u.datetimeFormats)?u.datetimeFormats:{[s.value]:{}}),d=o.ref(J(u.numberFormats)?u.numberFormats:{[s.value]:{}}),h=r?n.missingWarn:ce(u.missingWarn)||Gt(u.missingWarn)?u.missingWarn:!0,g=r?n.fallbackWarn:ce(u.fallbackWarn)||Gt(u.fallbackWarn)?u.fallbackWarn:!0,p=r?n.fallbackRoot:ce(u.fallbackRoot)?u.fallbackRoot:!0,x=!!u.fallbackFormat,C=Ee(u.missing)?u.missing:null,A=Ee(u.postTranslation)?u.postTranslation:null,v=r?n.warnHtmlMessage:ce(u.warnHtmlMessage)?u.warnHtmlMessage:!0,m=!!u.escapeParameter,E=r?n.modifiers:J(u.modifiers)?u.modifiers:{},y=u.pluralRules||r&&n.pluralRules;function _(){return[s.value,l.value,c.value,f.value,d.value]}const w=o.computed({get:()=>i.value?i.value.locale.value:s.value,set:I=>{i.value&&(i.value.locale.value=I),s.value=I}}),D=o.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),l.value=I}}),T=o.computed(()=>i.value?i.value.messages.value:c.value),V=o.computed(()=>f.value),ue=o.computed(()=>d.value);function R(){return i.value?i.value.getPostTranslationHandler():A}function be(I){i.value&&i.value.setPostTranslationHandler(I)}function X(){return i.value?i.value.getMissingHandler():C}function j(I){i.value&&i.value.setMissingHandler(I)}function K(I){return _(),I()}function _e(...I){return i.value?K(()=>Reflect.apply(i.value.t,null,[...I])):K(()=>"")}function F(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function q(...I){return i.value?K(()=>Reflect.apply(i.value.d,null,[...I])):K(()=>"")}function M(...I){return i.value?K(()=>Reflect.apply(i.value.n,null,[...I])):K(()=>"")}function he(I){return i.value?i.value.tm(I):{}}function H(I,z){return i.value?i.value.te(I,z):!1}function Oe(I){return i.value?i.value.getLocaleMessage(I):{}}function te(I,z){i.value&&(i.value.setLocaleMessage(I,z),c.value[I]=z)}function lt(I,z){i.value&&i.value.mergeLocaleMessage(I,z)}function ie(I){return i.value?i.value.getDateTimeFormat(I):{}}function S(I,z){i.value&&(i.value.setDateTimeFormat(I,z),f.value[I]=z)}function G(I,z){i.value&&i.value.mergeDateTimeFormat(I,z)}function Y(I){return i.value?i.value.getNumberFormat(I):{}}function oe(I,z){i.value&&(i.value.setNumberFormat(I,z),d.value[I]=z)}function Q(I,z){i.value&&i.value.mergeNumberFormat(I,z)}const Ne={get id(){return i.value?i.value.id:-1},locale:w,fallbackLocale:D,messages:T,datetimeFormats:V,numberFormats:ue,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:E},get pluralRules(){return i.value?i.value.pluralRules:y},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:g},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:p},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:x},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:v},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:m},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:_e,getPostTranslationHandler:R,setPostTranslationHandler:be,getMissingHandler:X,setMissingHandler:j,rt:F,d:q,n:M,tm:he,te:H,getLocaleMessage:Oe,setLocaleMessage:te,mergeLocaleMessage:lt,getDateTimeFormat:ie,setDateTimeFormat:S,mergeDateTimeFormat:G,getNumberFormat:Y,setNumberFormat:oe,mergeNumberFormat:Q};function ze(I){I.locale.value=s.value,I.fallbackLocale.value=l.value,Object.keys(c.value).forEach(z=>{I.mergeLocaleMessage(z,c.value[z])}),Object.keys(f.value).forEach(z=>{I.mergeDateTimeFormat(z,f.value[z])}),Object.keys(d.value).forEach(z=>{I.mergeNumberFormat(z,d.value[z])}),I.escapeParameter=m,I.fallbackFormat=x,I.fallbackRoot=p,I.fallbackWarn=g,I.missingWarn=h,I.warnHtmlMessage=v}return o.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw St(Ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=e.proxy.$i18n.__composer;t==="global"?(s.value=I.locale.value,l.value=I.fallbackLocale.value,c.value=I.messages.value,f.value=I.datetimeFormats.value,d.value=I.numberFormats.value):r&&ze(I)}),Ne}if(bc(),__INTLIFY_JIT_COMPILATION__?pi(cc):pi(lc),ec(Fl),tc(fi),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=yt();e.__INTLIFY__=!0,Ul(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ye=(e,t)=>{const n=e.__vccOpts||e;for(const[u,r]of t)n[u]=r;return n},Mc={},Pc={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 Vc(e,t){return o.openBlock(),o.createElementBlock("svg",Pc,t[0]||(t[0]=[o.createElementVNode("path",{d:"M9 2V6L4 6C2.89543 6 2 6.89543 2 8V21C2 22.1046 2.89543 23 4 23H20C21.1046 23 22 22.1046 22 21V8C22 6.89543 21.1046 6 20 6L15 6V2C15 0.895431 14.1046 0 13 0H11C9.89543 0 9 0.895431 9 2ZM13 2V8H20V12H4V8H11V2H13ZM4 14H20V21H9V18C9 17.4477 8.55228 17 8 17C7.44772 17 7 17.4477 7 18V21H4L4 14Z"},null,-1)]))}const $c=ye(Mc,[["render",Vc]]),Rc={},Bc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function jc(e,t){return o.openBlock(),o.createElementBlock("svg",Bc,t[0]||(t[0]=[o.createElementVNode("path",{d:"M4.96977 17.7929C4.57925 18.1834 4.57925 18.8166 4.96977 19.2071C5.3603 19.5976 5.99346 19.5976 6.38399 19.2071L12.1769 13.4142L17.9698 19.2071C18.3603 19.5976 18.9935 19.5976 19.384 19.2071C19.7745 18.8166 19.7745 18.1834 19.384 17.7929L13.5911 12L19.384 6.20711C19.7745 5.81658 19.7745 5.18342 19.384 4.79289C18.9935 4.40237 18.3603 4.40237 17.9698 4.79289L12.1769 10.5858L6.38399 4.79289C5.99347 4.40237 5.3603 4.40237 4.96978 4.79289C4.57925 5.18342 4.57925 5.81658 4.96978 6.20711L10.7627 12L4.96977 17.7929Z"},null,-1)]))}const Qi=ye(Rc,[["render",jc]]),zc={},Uc={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qc(e,t){return o.openBlock(),o.createElementBlock("svg",Uc,t[0]||(t[0]=[o.createElementVNode("path",{d:"M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M16.7066 8.29236L16 7.58578L15.2929 8.29289L9.29289 14.2929C8.90237 14.6834 8.90237 15.3166 9.29289 15.7071C9.68342 16.0976 10.3166 16.0976 10.7071 15.7071L15 11.4142L15 23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23L17 11.4142L21.2929 15.7071C21.6834 16.0976 22.3166 16.0976 22.7071 15.7071C23.0976 15.3166 23.0976 14.6834 22.7071 14.2929L16.7077 8.29351L16.7071 8.29289L16.7066 8.29236Z",fill:"#fff"},null,-1)]))}const Hc=ye(zc,[["render",qc]]);function eo(e,t={}){const u={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",u),u.method.toUpperCase()==="POST"&&!u.body)throw new Error("POST request must have a body");return fetch(e,u).then(r=>{if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return r.json()}).catch(r=>{throw console.error("Fetch error:",r),r})}function Wc(e,t={}){return eo(e,{...t,method:"GET"})}function tu(e,t={},n={}){return eo(e,{...n,method:"POST",body:JSON.stringify(t)})}/*!
|
|
2
24
|
* Viewer.js v1.11.7
|
|
3
25
|
* https://fengyuanchen.github.io/viewerjs
|
|
4
26
|
*
|
|
@@ -6,24 +28,24 @@
|
|
|
6
28
|
* Released under the MIT license
|
|
7
29
|
*
|
|
8
30
|
* Date: 2024-11-24T04:32:19.116Z
|
|
9
|
-
*/function $i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gu(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,Ju(n.key),n)}}function Mi(e,t,u){return t&&Gu(e.prototype,t),u&&Gu(e,u),Object.defineProperty(e,"prototype",{writable:!1}),e}function zi(e,t,u){return(t=Ju(t))in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e}function Ku(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 su(e){for(var t=1;t<arguments.length;t++){var u=arguments[t]!=null?arguments[t]:{};t%2?Ku(Object(u),!0).forEach(function(n){zi(e,n,u[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(u)):Ku(Object(u)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(u,n))})}return e}function Pi(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 Ju(e){var t=Pi(e,"string");return typeof t=="symbol"?t:t+""}function cu(e){"@babel/helpers - typeof";return cu=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},cu(e)}var Qu={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},Ri='<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>',Vt=typeof window<"u"&&typeof window.document<"u",Be=Vt?window:{},Xe=Vt&&Be.document.documentElement?"ontouchstart"in Be.document.documentElement:!1,lu=Vt?"PointerEvent"in Be:!1,T="viewer",Ot="move",en="switch",ft="zoom",Lt="".concat(T,"-active"),qi="".concat(T,"-close"),$t="".concat(T,"-fade"),du="".concat(T,"-fixed"),ji="".concat(T,"-fullscreen"),tn="".concat(T,"-fullscreen-exit"),He="".concat(T,"-hide"),Hi="".concat(T,"-hide-md-down"),Ui="".concat(T,"-hide-sm-down"),Wi="".concat(T,"-hide-xs-down"),ge="".concat(T,"-in"),ht="".concat(T,"-invisible"),Ge="".concat(T,"-loading"),Zi="".concat(T,"-move"),un="".concat(T,"-open"),Ke="".concat(T,"-show"),ee="".concat(T,"-transition"),Je="click",fu="dblclick",nn="dragstart",rn="focusin",on="keydown",_e="load",Ue="error",Yi=Xe?"touchend touchcancel":"mouseup",Xi=Xe?"touchmove":"mousemove",Gi=Xe?"touchstart":"mousedown",an=lu?"pointerdown":Gi,sn=lu?"pointermove":Xi,cn=lu?"pointerup pointercancel":Yi,ln="resize",Ce="transitionend",dn="wheel",fn="ready",hn="show",pn="shown",mn="hide",bn="hidden",gn="view",pt="viewed",_n="move",xn="moved",yn="rotate",kn="rotated",En="scale",Cn="scaled",wn="zoom",vn="zoomed",Dn="play",An="stop",Mt="".concat(T,"Action"),hu=/\s\s*/,zt=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function mt(e){return typeof e=="string"}var Ki=Number.isNaN||Be.isNaN;function J(e){return typeof e=="number"&&!Ki(e)}function Qe(e){return typeof e>"u"}function et(e){return cu(e)==="object"&&e!==null}var Ji=Object.prototype.hasOwnProperty;function tt(e){if(!et(e))return!1;try{var t=e.constructor,u=t.prototype;return t&&u&&Ji.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 et(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 et(t)&&n.length>0&&n.forEach(function(o){et(o)&&Object.keys(o).forEach(function(a){t[a]=o[a]})}),t},Qi=/^(?:width|height|left|top|marginLeft|marginTop)$/;function we(e,t){var u=e.style;H(t,function(n,r){Qi.test(r)&&J(n)&&(n+="px"),u[r]=n})}function eo(e){return mt(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function ut(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function F(e,t){if(!(!e||!t)){if(J(e.length)){H(e,function(n){F(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 P(e,t){if(!(!e||!t)){if(J(e.length)){H(e,function(u){P(u,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function bt(e,t,u){if(t){if(J(e.length)){H(e,function(n){bt(n,t,u)});return}u?F(e,t):P(e,t)}}var to=/([a-z\d])([A-Z])/g;function pu(e){return e.replace(to,"$1-$2").toLowerCase()}function nt(e,t){return et(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(pu(t)))}function mu(e,t,u){et(u)?e[t]=u:e.dataset?e.dataset[t]=u:e.setAttribute("data-".concat(pu(t)),u)}var Fn=function(){var e=!1;if(Vt){var t=!1,u=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});Be.addEventListener("test",u,n),Be.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(hu).forEach(function(o){if(!Fn){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 S(e,t,u){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=u;t.trim().split(hu).forEach(function(o){if(n.once&&!Fn){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,su({bubbles:!0,cancelable:!0,detail:u},n)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,u)),e.dispatchEvent(r)}function uo(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function Pt(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 no(e){return mt(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var bu=Be.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(Be.navigator.userAgent);function Sn(e,t,u){var n=document.createElement("img");if(e.naturalWidth&&!bu)return u(e.naturalWidth,e.naturalHeight),n;var r=document.body||document.documentElement;return n.onload=function(){u(n.width,n.height),bu||r.removeChild(n)},H(t.inheritedAttributes,function(o){var a=e.getAttribute(o);a!==null&&n.setAttribute(o,a)}),n.src=e.src,bu||(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 Rt(e){switch(e){case 2:return Wi;case 3:return Ui;case 4:return Hi;default:return""}}function ro(e){var t=su({},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 qt(e,t){var u=e.pageX,n=e.pageY,r={endX:u,endY:n};return t?r:su({timeStamp:Date.now(),startX:u,startY:n},r)}function io(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 oo={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||no(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;mu(s,"filled",!0),n.loading&&F(a,Ge),S(s,_e,c=function(f){j(s,Ue,l),n.loading&&P(a,Ge),t.loadImage(f)},{once:!0}),S(s,Ue,l=function(){j(s,_e,c),n.loading&&P(a,Ge)},{once:!0})}),n.transition&&S(u,pt,function(){F(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},Pt({translateX:(this.viewerData.width-o)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",P(t,ee),we(t,Pt({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=Sn(r,n,function(f,p){var m=f/p,h=Math.max(0,Math.min(1,n.initialCoverage)),x=s,k=c;u.imageInitializing=!1,c*m>s?k=s/m:x=c*m,h=J(h)?h:.9,x=Math.min(x*h,f),k=Math.min(k*h,p);var g=(s-x)/2,_=(c-k)/2,b={left:g,top:_,x:g,y:_,width:x,height:k,oldRatio:1,ratio:x/f,aspectRatio:m,naturalWidth:f,naturalHeight:p},w=fe({},b);n.rotatable&&(b.rotate=l.rotate||0,w.rotate=0),n.scalable&&(b.scaleX=l.scaleX||1,b.scaleY=l.scaleY||1,w.scaleX=1,w.scaleY=1),u.imageData=b,u.initialImageData=w,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},Pt(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&ut(n,ee)){var o=function(){u.imageRendering=!1,t()};this.imageRendering={abort:function(){j(n,Ce,o)}},S(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="")}},ao={bind:function(){var t=this.options,u=this.viewer,n=this.canvas,r=this.element.ownerDocument;S(u,Je,this.onClick=this.click.bind(this)),S(u,nn,this.onDragStart=this.dragstart.bind(this)),S(n,an,this.onPointerDown=this.pointerdown.bind(this)),S(r,sn,this.onPointerMove=this.pointermove.bind(this)),S(r,cn,this.onPointerUp=this.pointerup.bind(this)),S(r,on,this.onKeyDown=this.keydown.bind(this)),S(window,ln,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&S(u,dn,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&S(n,fu,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,u=this.viewer,n=this.canvas,r=this.element.ownerDocument;j(u,Je,this.onClick),j(u,nn,this.onDragStart),j(n,an,this.onPointerDown),j(r,sn,this.onPointerMove),j(r,cn,this.onPointerUp),j(r,on,this.onKeyDown),j(window,ln,this.onResize),t.zoomable&&t.zoomOnWheel&&j(u,dn,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&j(n,fu,this.onDblclick)}},so={click:function(t){var u=this.options,n=this.imageData,r=t.target,o=nt(r,Mt);switch(!o&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,o=nt(r,Mt)),Xe&&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(nt(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&&(Xe&&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;P(r,ht),n.loading&&P(this.canvas,Ge),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(){bt(r,Zi,n.movable),bt(r,ee,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,q(n.viewed)&&S(u,pt,n.viewed,{once:!0}),ue(u,pt,{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=!!nt(u,"filled");Sn(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},Pt({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]=qt(s)}):n[t.pointerId||0]=qt(t);var a=u.movable?Ot:!1;u.zoomOnTouch&&u.zoomable&&Object.keys(n).length>1?a=ft:u.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=en),u.transition&&(a===Ot||a===ft)&&P(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]||{},qt(r,!0))}):fe(u[t.pointerId||0]||{},qt(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===Ot||r===ft)&&F(this.image,ee),this.action=!1,Xe&&r!==ft&&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,fu,{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,Je,{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){S(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)}}},co={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)&&S(u,hn,n.show,{once:!0}),ue(u,hn)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(P(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),P(r,ge)}},F(r,ee),r.initialOffsetWidth=r.offsetWidth,S(r,Ce,o,{once:!0}),F(r,ge)}else F(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)&&S(n,mn,r.hide,{once:!0}),ue(n,mn)===!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(){P(o,ge),t.hidden()};if(r.transition&&!u){var c=function(f){f&&f.target===o&&(j(o,Ce,c),t.hidden())},l=function(){ut(o,ee)?(S(o,Ce,c),P(o,ge)):s()};this.transitioning={abort:function(){t.viewed&&ut(a,ee)?j(a,Ce,l):ut(o,ee)&&j(o,Ce,c)}},this.viewed&&ut(a,ee)?(S(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=nt(c,"originalUrl"),d=c.getAttribute("alt"),f=document.createElement("img");if(H(r.inheritedAttributes,function(k){var g=c.getAttribute(k);g!==null&&f.setAttribute(k,g)}),f.src=l,f.alt=d,q(r.view)&&S(n,gn,r.view,{once:!0}),ue(n,gn,{originalImage:this.images[u],index:u,image:f})===!1||!this.isShown||this.hiding||this.played)return this;var p=this.items[this.index];p&&(P(p,Lt),p.removeAttribute("aria-selected")),F(s,Lt),s.setAttribute("aria-selected",!0),r.focus&&s.focus(),this.image=f,this.viewed=!1,this.index=u,this.imageData={},F(f,ht),r.loading&&F(a,Ge),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=eo(q(_)?_.call(t,f,g):"".concat(d," (").concat(g.naturalWidth," × ").concat(g.naturalHeight,")"))},h,x;return S(n,pt,m,{once:!0}),this.viewing={abort:function(){j(n,pt,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():(S(f,_e,h=function(){j(f,Ue,x),t.load()},{once:!0}),S(f,Ue,x=function(){j(f,_e,h),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),P(f,ht),r.loading&&P(t.canvas,Ge)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){P(f,ht),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(Qe(t)?t:n.x+Number(t),Qe(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)&&S(o,_n,a.move,{once:!0}),ue(o,_n,{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)&&S(o,xn,a.moved,{once:!0}),ue(o,xn,{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)&&S(n,yn,r.rotate,{once:!0}),ue(n,yn,{degree:t,oldDegree:a})===!1)return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){u.rotating=!1,q(r.rotated)&&S(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)&&S(r,En,o.scale,{once:!0}),ue(r,En,{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)&&S(r,Cn,o.scaled,{once:!0}),ue(r,Cn,{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,k=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,w=k*t,C=b-m,E=w-h,A=d.ratio;if(q(c.zoom)&&S(s,wn,c.zoom,{once:!0}),ue(s,wn,{ratio:t,oldRatio:A,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var V=uo(this.viewer),R=l&&Object.keys(l).length>0?io(l):{pageX:o.pageX,pageY:o.pageY};d.x-=C*((R.pageX-V.left-f)/m),d.y-=E*((R.pageY-V.top-p)/h)}else tt(r)&&J(r.x)&&J(r.y)?(d.x-=C*((r.x-f)/m),d.y-=E*((r.y-p)/h)):(d.x-=C/2,d.y-=E/2);d.left=d.x,d.top=d.y,d.width=b,d.height=w,d.oldRatio=A,d.ratio=t,this.renderImage(function(){u.zooming=!1,q(c.zoomed)&&S(s,vn,c.zoomed,{once:!0}),ue(s,vn,{ratio:t,oldRatio:A,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)&&S(n,Dn,r.play,{once:!0}),ue(n,Dn)===!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),F(o,Ke),H(this.items,function(p,m){var h=p.querySelector("img"),x=document.createElement("img");x.src=nt(h,"originalUrl"),x.alt=h.getAttribute("alt"),x.referrerPolicy=h.referrerPolicy,c+=1,F(x,$t),bt(x,ee,r.transition),ut(p,Lt)&&(F(x,ge),l=m),s.push(x),S(x,_e,a,{once:!0}),o.appendChild(x)}),J(r.interval)&&r.interval>0){var d=function(){clearTimeout(t.playing.timeout),P(s[l],ge),l-=1,l=l>=0?l:c-1,F(s[l],ge),t.playing.timeout=setTimeout(d,r.interval)},f=function(){clearTimeout(t.playing.timeout),P(s[l],ge),l+=1,l=l<c?l:0,F(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)&&S(u,An,n.stop,{once:!0}),ue(u,An)===!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)}),P(r,Ke),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(),F(this.button,tn),u.transition&&(P(o,ee),this.viewed&&P(r,ee)),F(n,du),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(){F(r,ee),F(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(),P(this.button,tn),u.transition&&(P(o,ee),this.viewed&&P(r,ee)),u.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),P(n,du),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(){F(r,ee),F(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),F(n,Ke),F(n,$t),F(n,ee),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,F(n,ge)):(F(n,Ke),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){u.transition?(S(n,Ce,function(){P(n,Ke),P(n,$t),P(n,ee),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),P(n,ge),t.fading=!0):(P(n,Ke),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];F(c,Lt),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[T]?(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,Je,this.onStart),t[T]=void 0,this):this}},lo={getImageURL:function(t){var u=this.options.url;return mt(u)?u=t.getAttribute(u):q(u)?u=u.call(this,t):u="",u},enforceFocus:function(){var t=this;this.clearEnforceFocus(),S(document,rn,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,rn,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;F(t,un),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;P(t,un),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)&&S(t,pn,u.shown,{once:!0}),ue(t,pn)!==!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(),F(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)&&S(t,bn,u.hidden,{once:!0}),ue(t,bn,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?tt(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 Ot:(o!==0||a!==0)&&(this.pointerMoved=!0,this.move(o,a,t));break;case ft:this.zoom(ro(n),!1,null,t);break;case en:{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}},fo=Be.Viewer,ho=function(e){return function(){return e+=1,e}}(-1),rt=function(){function e(t){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if($i(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({},Qu,tt(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=ho(),this.init()}return Mi(e,[{key:"init",value:function(){var u=this,n=this.element,r=this.options;if(!n[T]){n[T]=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(),Qe(document.createElement(T).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;S(l,_e,d=function(){j(l,Ue,f),c()},{once:!0}),S(l,Ue,f=function(){j(l,_e,d),c()},{once:!0})}})}else S(n,Je,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=Ri;var a=o.querySelector(".".concat(T,"-container")),s=a.querySelector(".".concat(T,"-title")),c=a.querySelector(".".concat(T,"-toolbar")),l=a.querySelector(".".concat(T,"-navbar")),d=a.querySelector(".".concat(T,"-button")),f=a.querySelector(".".concat(T,"-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(T,"-footer")),this.tooltipBox=a.querySelector(".".concat(T,"-tooltip")),this.player=a.querySelector(".".concat(T,"-player")),this.list=a.querySelector(".".concat(T,"-list")),a.id="".concat(T).concat(this.id),s.id="".concat(T,"Title").concat(this.id),F(s,n.title?Rt(Array.isArray(n.title)?n.title[0]:n.title):He),F(l,n.navbar?Rt(n.navbar):He),bt(d,He,!n.button),n.keyboard&&d.setAttribute("tabindex",0),n.backdrop&&(F(a,"".concat(T,"-backdrop")),!n.inline&&n.backdrop!=="static"&&mu(f,Mt,"hide")),mt(n.className)&&n.className&&n.className.split(hu).forEach(function(b){F(a,b)}),n.toolbar){var p=document.createElement("ul"),m=tt(n.toolbar),h=zt.slice(0,3),x=zt.slice(7,9),k=zt.slice(9);m||F(c,Rt(n.toolbar)),H(m?n.toolbar:zt,function(b,w){var C=m&&tt(b),E=m?pu(w):b,A=C&&!Qe(b.show)?b.show:b;if(!(!A||!n.zoomable&&h.indexOf(E)!==-1||!n.rotatable&&x.indexOf(E)!==-1||!n.scalable&&k.indexOf(E)!==-1)){var V=C&&!Qe(b.size)?b.size:b,R=C&&!Qe(b.click)?b.click:b,Q=document.createElement("li");n.keyboard&&Q.setAttribute("tabindex",0),Q.setAttribute("role","button"),F(Q,"".concat(T,"-").concat(E)),q(R)||mu(Q,Mt,E),J(A)&&F(Q,Rt(A)),["small","large"].indexOf(V)!==-1?F(Q,"".concat(T,"-").concat(V)):E==="play"&&F(Q,"".concat(T,"-large")),q(R)&&S(Q,Je,R),p.appendChild(Q)}}),c.appendChild(p)}else F(c,He);if(!n.rotatable){var g=c.querySelectorAll('li[class*="rotate"]');F(g,ht),H(g,function(b){c.appendChild(b)})}if(n.inline)F(d,ji),we(a,{zIndex:n.zIndexInline}),window.getComputedStyle(r).position==="static"&&we(r,{position:"relative"}),r.insertBefore(a,u.nextSibling);else{F(d,qi),F(a,du),F(a,$t),F(a,He),we(a,{zIndex:n.zIndex});var _=n.container;mt(_)&&(_=u.ownerDocument.querySelector(_)),_||(_=this.body),_.appendChild(a)}if(n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,q(n.ready)&&S(u,fn,n.ready,{once:!0}),ue(u,fn)===!1){this.ready=!1;return}this.ready&&n.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=fo,e}},{key:"setDefaults",value:function(u){fe(Qu,tt(u)&&u)}}])}();fe(rt.prototype,oo,ao,so,co,lo);var po=typeof global=="object"&&global&&global.Object===Object&&global;const Nn=po;var mo=typeof self=="object"&&self&&self.Object===Object&&self,bo=Nn||mo||Function("return this")();const jt=bo;var go=jt.Symbol;const Ht=go;var Tn=Object.prototype,_o=Tn.hasOwnProperty,xo=Tn.toString,gt=Ht?Ht.toStringTag:void 0;function yo(e){var t=_o.call(e,gt),u=e[gt];try{e[gt]=void 0;var n=!0}catch{}var r=xo.call(e);return n&&(t?e[gt]=u:delete e[gt]),r}var ko=Object.prototype,Eo=ko.toString;function Co(e){return Eo.call(e)}var wo="[object Null]",vo="[object Undefined]",Bn=Ht?Ht.toStringTag:void 0;function Ut(e){return e==null?e===void 0?vo:wo:Bn&&Bn in Object(e)?yo(e):Co(e)}function Wt(e){return e!=null&&typeof e=="object"}var Do="[object Symbol]";function Ao(e){return typeof e=="symbol"||Wt(e)&&Ut(e)==Do}var Fo=Array.isArray;const So=Fo;var No=/\s/;function To(e){for(var t=e.length;t--&&No.test(e.charAt(t)););return t}var Bo=/^\s+/;function Io(e){return e&&e.slice(0,To(e)+1).replace(Bo,"")}function We(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var In=NaN,Vo=/^[-+]0x[0-9a-f]+$/i,Oo=/^0b[01]+$/i,Lo=/^0o[0-7]+$/i,$o=parseInt;function Vn(e){if(typeof e=="number")return e;if(Ao(e))return In;if(We(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=We(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Io(e);var u=Oo.test(e);return u||Lo.test(e)?$o(e.slice(2),u?2:8):Vo.test(e)?In:+e}function On(e){return e}var Mo="[object AsyncFunction]",zo="[object Function]",Po="[object GeneratorFunction]",Ro="[object Proxy]";function Ln(e){if(!We(e))return!1;var t=Ut(e);return t==zo||t==Po||t==Mo||t==Ro}var qo=jt["__core-js_shared__"];const gu=qo;var $n=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jo(e){return!!$n&&$n in e}var Ho=Function.prototype,Uo=Ho.toString;function Wo(e){if(e!=null){try{return Uo.call(e)}catch{}try{return e+""}catch{}}return""}var Zo=/[\\^$.*+?()[\]{}|]/g,Yo=/^\[object .+?Constructor\]$/,Xo=Function.prototype,Go=Object.prototype,Ko=Xo.toString,Jo=Go.hasOwnProperty,Qo=RegExp("^"+Ko.call(Jo).replace(Zo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ea(e){if(!We(e)||jo(e))return!1;var t=Ln(e)?Qo:Yo;return t.test(Wo(e))}function ta(e,t){return e==null?void 0:e[t]}function ua(e,t){var u=ta(e,t);return ea(u)?u:void 0}function na(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 ra=800,ia=16,oa=Date.now;function aa(e){var t=0,u=0;return function(){var n=oa(),r=ia-(n-u);if(u=n,r>0){if(++t>=ra)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function sa(e){return function(){return e}}var ca=function(){try{var e=ua(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Zt=ca;var la=Zt?function(e,t){return Zt(e,"toString",{configurable:!0,enumerable:!1,value:sa(t),writable:!0})}:On,da=aa(la);const fa=da;var ha=9007199254740991,pa=/^(?:0|[1-9]\d*)$/;function Mn(e,t){var u=typeof e;return t=t??ha,!!t&&(u=="number"||u!="symbol"&&pa.test(e))&&e>-1&&e%1==0&&e<t}function zn(e,t,u){t=="__proto__"&&Zt?Zt(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 ma=Object.prototype,ba=ma.hasOwnProperty;function Pn(e,t,u){var n=e[t];(!(ba.call(e,t)&&_u(n,u))||u===void 0&&!(t in e))&&zn(e,t,u)}function ga(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?zn(u,s,c):Pn(u,s,c)}return u}var Rn=Math.max;function _a(e,t,u){return t=Rn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Rn(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),na(e,this,s)}}function qn(e,t){return fa(_a(e,t,On),e+"")}var xa=9007199254740991;function jn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xa}function Yt(e){return e!=null&&jn(e.length)&&!Ln(e)}function Hn(e,t,u){if(!We(u))return!1;var n=typeof t;return(n=="number"?Yt(u)&&Mn(t,u.length):n=="string"&&t in u)?_u(u[t],e):!1}function ya(e){return qn(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&&Hn(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 ka=Object.prototype;function xu(e){var t=e&&e.constructor,u=typeof t=="function"&&t.prototype||ka;return e===u}function Ea(e,t){for(var u=-1,n=Array(e);++u<e;)n[u]=t(u);return n}var Ca="[object Arguments]";function Un(e){return Wt(e)&&Ut(e)==Ca}var Wn=Object.prototype,wa=Wn.hasOwnProperty,va=Wn.propertyIsEnumerable,Da=Un(function(){return arguments}())?Un:function(e){return Wt(e)&&wa.call(e,"callee")&&!va.call(e,"callee")};const Aa=Da;function Fa(){return!1}var Zn=typeof ce=="object"&&ce&&!ce.nodeType&&ce,Yn=Zn&&typeof module=="object"&&module&&!module.nodeType&&module,Sa=Yn&&Yn.exports===Zn,Xn=Sa?jt.Buffer:void 0,Na=Xn?Xn.isBuffer:void 0,Ta=Na||Fa;const Ba=Ta;var Ia="[object Arguments]",Va="[object Array]",Oa="[object Boolean]",La="[object Date]",$a="[object Error]",Ma="[object Function]",za="[object Map]",Pa="[object Number]",Ra="[object Object]",qa="[object RegExp]",ja="[object Set]",Ha="[object String]",Ua="[object WeakMap]",Wa="[object ArrayBuffer]",Za="[object DataView]",Ya="[object Float32Array]",Xa="[object Float64Array]",Ga="[object Int8Array]",Ka="[object Int16Array]",Ja="[object Int32Array]",Qa="[object Uint8Array]",e0="[object Uint8ClampedArray]",t0="[object Uint16Array]",u0="[object Uint32Array]",Z={};Z[Ya]=Z[Xa]=Z[Ga]=Z[Ka]=Z[Ja]=Z[Qa]=Z[e0]=Z[t0]=Z[u0]=!0,Z[Ia]=Z[Va]=Z[Wa]=Z[Oa]=Z[Za]=Z[La]=Z[$a]=Z[Ma]=Z[za]=Z[Pa]=Z[Ra]=Z[qa]=Z[ja]=Z[Ha]=Z[Ua]=!1;function n0(e){return Wt(e)&&jn(e.length)&&!!Z[Ut(e)]}function r0(e){return function(t){return e(t)}}var Gn=typeof ce=="object"&&ce&&!ce.nodeType&&ce,_t=Gn&&typeof module=="object"&&module&&!module.nodeType&&module,i0=_t&&_t.exports===Gn,yu=i0&&Nn.process,o0=function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||yu&&yu.binding&&yu.binding("util")}catch{}}();const Kn=o0;var Jn=Kn&&Kn.isTypedArray,a0=Jn?r0(Jn):n0;const s0=a0;var c0=Object.prototype,l0=c0.hasOwnProperty;function Qn(e,t){var u=So(e),n=!u&&Aa(e),r=!u&&!n&&Ba(e),o=!u&&!n&&!r&&s0(e),a=u||n||r||o,s=a?Ea(e.length,String):[],c=s.length;for(var l in e)(t||l0.call(e,l))&&!(a&&(l=="length"||r&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Mn(l,c)))&&s.push(l);return s}function d0(e,t){return function(u){return e(t(u))}}var f0=d0(Object.keys,Object);const h0=f0;var p0=Object.prototype,m0=p0.hasOwnProperty;function b0(e){if(!xu(e))return h0(e);var t=[];for(var u in Object(e))m0.call(e,u)&&u!="constructor"&&t.push(u);return t}function g0(e){return Yt(e)?Qn(e):b0(e)}var _0=Object.prototype,x0=_0.hasOwnProperty,y0=ya(function(e,t){if(xu(t)||Yt(t)){ga(t,g0(t),e);return}for(var u in t)x0.call(t,u)&&Pn(e,u,t[u])});const k0=y0;function E0(e){var t=[];if(e!=null)for(var u in Object(e))t.push(u);return t}var C0=Object.prototype,w0=C0.hasOwnProperty;function v0(e){if(!We(e))return E0(e);var t=xu(e),u=[];for(var n in e)n=="constructor"&&(t||!w0.call(e,n))||u.push(n);return u}function D0(e){return Yt(e)?Qn(e,!0):v0(e)}var A0=function(){return jt.Date.now()};const ku=A0;var F0="Expected a function",S0=Math.max,N0=Math.min;function T0(e,t,u){var n,r,o,a,s,c,l=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(F0);t=Vn(t)||0,We(u)&&(d=!!u.leading,f="maxWait"in u,o=f?S0(Vn(u.maxWait)||0,t):o,p="trailing"in u?!!u.trailing:p);function m(E){var A=n,V=r;return n=r=void 0,l=E,a=e.apply(V,A),a}function h(E){return l=E,s=setTimeout(g,t),d?m(E):a}function x(E){var A=E-c,V=E-l,R=t-A;return f?N0(R,o-V):R}function k(E){var A=E-c,V=E-l;return c===void 0||A>=t||A<0||f&&V>=o}function g(){var E=ku();if(k(E))return _(E);s=setTimeout(g,x(E))}function _(E){return s=void 0,p&&n?m(E):(n=r=void 0,a)}function b(){s!==void 0&&clearTimeout(s),l=0,n=c=r=s=void 0}function w(){return s===void 0?a:_(ku())}function C(){var E=ku(),A=k(E);if(n=arguments,r=this,c=E,A){if(s===void 0)return h(c);if(f)return clearTimeout(s),s=setTimeout(g,t),m(c)}return s===void 0&&(s=setTimeout(g,t)),a}return C.cancel=b,C.flush=w,C}var er=Object.prototype,B0=er.hasOwnProperty,I0=qn(function(e,t){e=Object(e);var u=-1,n=t.length,r=n>2?t[2]:void 0;for(r&&Hn(t[0],t[1],r)&&(n=1);++u<n;)for(var o=t[u],a=D0(o),s=-1,c=a.length;++s<c;){var l=a[s],d=e[l];(d===void 0||_u(d,er[l])&&!B0.call(e,l))&&(e[l]=o[l])}return e});const V0=I0,xt=({images:e=[],options:t})=>{t=k0(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 rt(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},O0=({name:e="viewer",debug:t=!1}={})=>{async function u(d,f,p=!1,m=!1){await i.nextTick(),!(m&&!n(d))&&(p||!d[`$${e}`]?(a(d),d[`$${e}`]=new rt(d,f),l("Viewer created")):(d[`$${e}`].update(),l("Viewer updated")))}function n(d){const f=d.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),p=f?f.join(""):void 0;return d.__viewerImageDiffCache===p?(l("Element change detected, but image(s) has not changed"),!1):(l("Image change detected"),d.__viewerImageDiffCache=p,!0)}function r(d,f,p,m){s(d);const h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!h){l("Observer not supported");return}const x=new h(g=>{g.forEach(_=>{l(`Viewer mutation:${_.type}`),p(d,f,m,!0)})}),k={attributes:!0,childList:!0,characterData:!0,subtree:!0};x.observe(d,k),d.__viewerMutationObserver=x,l("Observer created")}function o(d,f,p,m){d.__viewerUnwatch=i.watch(()=>f.value,(h,x)=>{l("Change detected by watcher: ",f.value),m(d,h,!0,!1)},{deep:!0}),l("Watcher created, expression: ",f.value)}function a(d){!d[`$${e}`]||(d[`$${e}`].destroy(),delete d[`$${e}`],l("Viewer destroyed"))}function s(d){!d.__viewerMutationObserver||(d.__viewerMutationObserver.disconnect(),delete d.__viewerMutationObserver,l("observer destroyed"))}function c(d){!d.__viewerUnwatch||(d.__viewerUnwatch(),delete d.__viewerUnwatch,l("Watcher destroyed"))}function l(...d){t&&console.log(...d)}return{mounted(d,f,p){l("Viewer bind");const m=T0(u,50);m(d,f.value),o(d,f,p,m),f.modifiers.static||r(d,f.value,m,f.modifiers.rebuild)},unmounted(d){l("Viewer unbind"),s(d),c(d),a(d)}}},L0=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 rt(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}}}),$0=(e,t)=>{const u=e.__vccOpts||e;for(const[n,r]of t)u[n]=r;return u},M0={ref:"root"};function z0(e,t,u,n,r,o){return i.openBlock(),i.createElementBlock("div",M0,[i.renderSlot(e.$slots,"default",{images:e.images,options:e.options})],512)}const P0=$0(L0,[["render",z0]]),R0={install(e,{name:t="viewer",debug:u=!1,defaultOptions:n}={}){n&&rt.setDefaults(n),e.config.globalProperties[`$${t}Api`]=xt,e.component(t,V0(P0,{name:t})),e.directive(t,O0({name:t,debug:u}))},setDefaults(e){rt.setDefaults(e)}},q0={},j0={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H0(e,t){return i.openBlock(),i.createElementBlock("svg",j0,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 tr=W(q0,[["render",H0]]),U0=["src"],W0={class:"name"},Z0={class:"sub"},Y0={key:0},X0=["src"],G0=["src"],K0=W({__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 k=[];o.value.hasOwnProperty("craftUrl")&&o.value.craftUrl&&k.push(o.value.craftUrl),k.length?(await c(k),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 k=[];return x.forEach(g=>{const _=new Image,b=new Promise((w,C)=>{_.onload=()=>w(_),_.onerror=()=>C(new Error(`加载${g}失败`)),_.src=g});k.push(b)}),Promise.all(k)},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 k,g;return(((g=(k=t.info)==null?void 0:k.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=>{xt({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 It("/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,k)=>(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:k[0]||(k[0]=i.withModifiers(g=>p(e.info.primaryImgUrl),["stop"]))},null,8,U0),i.createElementVNode("div",null,[i.createElementVNode("div",W0,[i.createElementVNode("span",null,i.toDisplayString(e.info.skuname),1),k[2]||(k[2]=i.createElementVNode("span",null,"×1",-1))]),i.createElementVNode("div",Z0,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"])},[k[3]||(k[3]=i.createElementVNode("span",null,"查看菜谱详情",-1)),i.createVNode(tr,{class:"icon"})],512),[[i.vShow,!u.value]]),k[4]||(k[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,X0)])):i.createCommentVNode("",!0),i.createElementVNode("img",{src:o.value.craftUrl,width:"100%",alt:"craft"},null,8,G0),i.createElementVNode("div",{class:"collapse_btn",onClick:k[1]||(k[1]=i.withModifiers(g=>u.value=!1,["stop"]))},"收起")],512)):i.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-7da603ee"]]),J0={class:"dl_wrap"},Q0={key:0},es={key:0,class:"sep_line"},ts={class:"date"},us={key:1,style:{padding:"15px 0"}},ns={class:"title"},rs={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},is={key:1,class:"btn_group"},os={key:2,class:"btn_group"},as=W({__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",J0,[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",Q0,[p>0?(i.openBlock(),i.createElementBlock("div",es)):i.createCommentVNode("",!0),i.createElementVNode("div",ts,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",us,[i.createElementVNode("p",ns,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(K0,{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",rs,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",is,[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",os,[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"]]),ss={class:"card",style:{"margin-top":"15px"}},cs={class:"row"},ls={class:"content"},ds={class:"title"},fs={class:"row"},hs={class:"name"},ps={class:"content"},ms={class:"row"},bs={class:"name"},gs={class:"content"},_s={class:"row"},xs={class:"name"},ys={class:"content"},ks={class:"row"},Es={class:"name"},Cs={class:"content"},ws={class:"btn_group"},vs=W({__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",ss,[i.createElementVNode("div",cs,[a[0]||(a[0]=i.createElementVNode("div",{class:"name"},"每日攝入能量",-1)),i.createElementVNode("div",ls,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",ds,i.toDisplayString(u[s.category]),1),i.createElementVNode("div",fs,[i.createElementVNode("div",hs,i.toDisplayString(u[s.category])+"熱量",1),i.createElementVNode("div",ps,i.toDisplayString(s.totalKcal)+" kcal",1)]),a[1]||(a[1]=i.createElementVNode("div",{class:"sep"},null,-1)),i.createElementVNode("div",ms,[i.createElementVNode("div",bs,i.toDisplayString(u.carbohydrateTotal),1),i.createElementVNode("div",gs,i.toDisplayString(s.carbohydrateTotal)+" g",1)]),i.createElementVNode("div",_s,[i.createElementVNode("div",xs,i.toDisplayString(u.proteinTotal),1),i.createElementVNode("div",ys,i.toDisplayString(s.proteinTotal)+" g",1)]),i.createElementVNode("div",ks,[i.createElementVNode("div",Es,i.toDisplayString(u.fatTotal),1),i.createElementVNode("div",Cs,i.toDisplayString(s.fatTotal)+" g",1)])]))),128)),i.createElementVNode("div",ws,[i.createElementVNode("div",{class:"btn btn_2",onClick:i.withModifiers(r,["stop"])},"用該方案配餐")])],64))}},[["__scopeId","data-v-b9dd25a1"]]),Ds={},As={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fs(e,t){return i.openBlock(),i.createElementBlock("svg",As,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 Ss=W(Ds,[["render",Fs]]),Ns={name:"pictureIcon"},Ts={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bs(e,t,u,n,r,o){return i.openBlock(),i.createElementBlock("svg",Ts,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 Is=W(Ns,[["render",Bs]]),Vs={},Os={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ls(e,t){return i.openBlock(),i.createElementBlock("svg",Os,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 $s=W(Vs,[["render",Ls]]),Ms=["width","height"],zs=["stroke"],Ps=["stroke","stroke-dasharray","stroke-dashoffset"],ur={__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,zs),i.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
|
|
31
|
+
*/function Yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function to(e,t){for(var n=0;n<t.length;n++){var u=t[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,uo(u.key),u)}}function Gc(e,t,n){return t&&to(e.prototype,t),n&&to(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xc(e,t,n){return(t=uo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,u)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(u){Xc(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function Zc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var u=n.call(e,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uo(e){var t=Zc(e,"string");return typeof t=="symbol"?t:t+""}function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}var ro={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},Kc='<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>',nu=typeof window<"u"&&typeof window.document<"u",Ct=nu?window:{},Qt=nu&&Ct.document.documentElement?"ontouchstart"in Ct.document.documentElement:!1,Qu=nu?"PointerEvent"in Ct:!1,Z="viewer",uu="move",io="switch",vn="zoom",ru="".concat(Z,"-active"),Jc="".concat(Z,"-close"),iu="".concat(Z,"-fade"),er="".concat(Z,"-fixed"),Qc="".concat(Z,"-fullscreen"),oo="".concat(Z,"-fullscreen-exit"),Ut="".concat(Z,"-hide"),e0="".concat(Z,"-hide-md-down"),t0="".concat(Z,"-hide-sm-down"),n0="".concat(Z,"-hide-xs-down"),Ke="".concat(Z,"-in"),wn="".concat(Z,"-invisible"),en="".concat(Z,"-loading"),u0="".concat(Z,"-move"),ao="".concat(Z,"-open"),tn="".concat(Z,"-show"),we="".concat(Z,"-transition"),nn="click",tr="dblclick",so="dragstart",lo="focusin",co="keydown",Je="load",qt="error",r0=Qt?"touchend touchcancel":"mouseup",i0=Qt?"touchmove":"mousemove",o0=Qt?"touchstart":"mousedown",fo=Qu?"pointerdown":o0,ho=Qu?"pointermove":i0,mo=Qu?"pointerup pointercancel":r0,po="resize",it="transitionend",go="wheel",bo="ready",_o="show",Eo="shown",yo="hide",ko="hidden",xo="view",Dn="viewed",Co="move",vo="moved",wo="rotate",Do="rotated",No="scale",Ao="scaled",To="zoom",So="zoomed",Oo="play",Io="stop",ou="".concat(Z,"Action"),nr=/\s\s*/,au=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Nn(e){return typeof e=="string"}var a0=Number.isNaN||Ct.isNaN;function ve(e){return typeof e=="number"&&!a0(e)}function un(e){return typeof e>"u"}function rn(e){return Ju(e)==="object"&&e!==null}var s0=Object.prototype.hasOwnProperty;function on(e){if(!rn(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&s0.call(n,"isPrototypeOf")}catch{return!1}}function fe(e){return typeof e=="function"}function pe(e,t){if(e&&fe(t))if(Array.isArray(e)||ve(e.length)){var n=e.length,u;for(u=0;u<n&&t.call(e,e[u],u,e)!==!1;u+=1);}else rn(e)&&Object.keys(e).forEach(function(r){t.call(e,e[r],r,e)});return e}var Ye=Object.assign||function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return rn(t)&&u.length>0&&u.forEach(function(i){rn(i)&&Object.keys(i).forEach(function(a){t[a]=i[a]})}),t},l0=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ot(e,t){var n=e.style;pe(t,function(u,r){l0.test(r)&&ve(u)&&(u+="px"),n[r]=u})}function c0(e){return Nn(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function an(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function U(e,t){if(!(!e||!t)){if(ve(e.length)){pe(e,function(u){U(u,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function ne(e,t){if(!(!e||!t)){if(ve(e.length)){pe(e,function(n){ne(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function An(e,t,n){if(t){if(ve(e.length)){pe(e,function(u){An(u,t,n)});return}n?U(e,t):ne(e,t)}}var f0=/([a-z\d])([A-Z])/g;function ur(e){return e.replace(f0,"$1-$2").toLowerCase()}function sn(e,t){return rn(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(ur(t)))}function rr(e,t,n){rn(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(ur(t)),n)}var Lo=function(){var e=!1;if(nu){var t=!1,n=function(){},u=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(i){t=i}});Ct.addEventListener("test",n,u),Ct.removeEventListener("test",n,u)}return e}();function de(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(nr).forEach(function(i){if(!Lo){var a=e.listeners;a&&a[i]&&a[i][n]&&(r=a[i][n],delete a[i][n],Object.keys(a[i]).length===0&&delete a[i],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(i,r,u)})}function W(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(nr).forEach(function(i){if(u.once&&!Lo){var a=e.listeners,s=a===void 0?{}:a;r=function(){delete s[i][n],e.removeEventListener(i,r,u);for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];n.apply(e,f)},s[i]||(s[i]={}),s[i][n]&&e.removeEventListener(i,s[i][n],u),s[i][n]=r,e.listeners=s}e.addEventListener(i,r,u)})}function De(e,t,n,u){var r;return fe(Event)&&fe(CustomEvent)?r=new CustomEvent(t,Ku({bubbles:!0,cancelable:!0,detail:n},u)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function d0(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function su(e){var t=e.rotate,n=e.scaleX,u=e.scaleY,r=e.translateX,i=e.translateY,a=[];ve(r)&&r!==0&&a.push("translateX(".concat(r,"px)")),ve(i)&&i!==0&&a.push("translateY(".concat(i,"px)")),ve(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),ve(n)&&n!==1&&a.push("scaleX(".concat(n,")")),ve(u)&&u!==1&&a.push("scaleY(".concat(u,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function h0(e){return Nn(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var ir=Ct.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(Ct.navigator.userAgent);function Fo(e,t,n){var u=document.createElement("img");if(e.naturalWidth&&!ir)return n(e.naturalWidth,e.naturalHeight),u;var r=document.body||document.documentElement;return u.onload=function(){n(u.width,u.height),ir||r.removeChild(u)},pe(t.inheritedAttributes,function(i){var a=e.getAttribute(i);a!==null&&u.setAttribute(i,a)}),u.src=e.src,ir||(u.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(u)),u}function lu(e){switch(e){case 2:return n0;case 3:return t0;case 4:return e0;default:return""}}function m0(e){var t=Ku({},e),n=[];return pe(e,function(u,r){delete t[r],pe(t,function(i){var a=Math.abs(u.startX-i.startX),s=Math.abs(u.startY-i.startY),l=Math.abs(u.endX-i.endX),c=Math.abs(u.endY-i.endY),f=Math.sqrt(a*a+s*s),d=Math.sqrt(l*l+c*c),h=(d-f)/f;n.push(h)})}),n.sort(function(u,r){return Math.abs(u)<Math.abs(r)}),n[0]}function cu(e,t){var n=e.pageX,u=e.pageY,r={endX:n,endY:u};return t?r:Ku({timeStamp:Date.now(),startX:n,startY:u},r)}function p0(e){var t=0,n=0,u=0;return pe(e,function(r){var i=r.startX,a=r.startY;t+=i,n+=a,u+=1}),t/=u,n/=u,{pageX:t,pageY:n}}var g0={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,n=t.body||t.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,n=this.parent,u;t.inline&&(u={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=u),(this.fulled||!u)&&(u=this.containerData),this.viewerData=Ye({},u)},renderViewer:function(){this.options.inline&&!this.fulled&&ot(this.viewer,this.viewerData)},initList:function(){var t=this,n=this.element,u=this.options,r=this.list,i=[];r.innerHTML="",pe(this.images,function(a,s){var l=a.src,c=a.alt||h0(l),f=t.getImageURL(a);if(l||f){var d=document.createElement("li"),h=document.createElement("img");pe(u.inheritedAttributes,function(g){var p=a.getAttribute(g);p!==null&&h.setAttribute(g,p)}),u.navbar&&(h.src=l||f),h.alt=c,h.setAttribute("data-original-url",f||l),d.setAttribute("data-index",s),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),u.keyboard&&d.setAttribute("tabindex",0),d.appendChild(h),r.appendChild(d),i.push(d)}}),this.items=i,pe(i,function(a){var s=a.firstElementChild,l,c;rr(s,"filled",!0),u.loading&&U(a,en),W(s,Je,l=function(d){de(s,qt,c),u.loading&&ne(a,en),t.loadImage(d)},{once:!0}),W(s,qt,c=function(){de(s,Je,l),u.loading&&ne(a,en)},{once:!0})}),u.transition&&W(n,Dn,function(){U(r,we)},{once:!0})},renderList:function(){var t=this.index,n=this.items[t];if(n){var u=n.nextElementSibling,r=parseInt(window.getComputedStyle(u||n).marginLeft,10),i=n.offsetWidth,a=i+r;ot(this.list,Ye({width:a*this.length-r},su({translateX:(this.viewerData.width-i)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",ne(t,we),ot(t,su({translateX:0}))},initImage:function(t){var n=this,u=this.options,r=this.image,i=this.viewerData,a=this.footer.offsetHeight,s=i.width,l=Math.max(i.height-a,a),c=this.imageData||{},f;this.imageInitializing={abort:function(){f.onload=null}},f=Fo(r,u,function(d,h){var g=d/h,p=Math.max(0,Math.min(1,u.initialCoverage)),x=s,C=l;n.imageInitializing=!1,l*g>s?C=s/g:x=l*g,p=ve(p)?p:.9,x=Math.min(x*p,d),C=Math.min(C*p,h);var A=(s-x)/2,v=(l-C)/2,m={left:A,top:v,x:A,y:v,width:x,height:C,oldRatio:1,ratio:x/d,aspectRatio:g,naturalWidth:d,naturalHeight:h},E=Ye({},m);u.rotatable&&(m.rotate=c.rotate||0,E.rotate=0),u.scalable&&(m.scaleX=c.scaleX||1,m.scaleY=c.scaleY||1,E.scaleX=1,E.scaleY=1),n.imageData=m,n.initialImageData=E,t&&t()})},renderImage:function(t){var n=this,u=this.image,r=this.imageData;if(ot(u,Ye({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},su(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&an(u,we)){var i=function(){n.imageRendering=!1,t()};this.imageRendering={abort:function(){de(u,it,i)}},W(u,it,i,{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="")}},b0={bind:function(){var t=this.options,n=this.viewer,u=this.canvas,r=this.element.ownerDocument;W(n,nn,this.onClick=this.click.bind(this)),W(n,so,this.onDragStart=this.dragstart.bind(this)),W(u,fo,this.onPointerDown=this.pointerdown.bind(this)),W(r,ho,this.onPointerMove=this.pointermove.bind(this)),W(r,mo,this.onPointerUp=this.pointerup.bind(this)),W(r,co,this.onKeyDown=this.keydown.bind(this)),W(window,po,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&W(n,go,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&W(u,tr,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,n=this.viewer,u=this.canvas,r=this.element.ownerDocument;de(n,nn,this.onClick),de(n,so,this.onDragStart),de(u,fo,this.onPointerDown),de(r,ho,this.onPointerMove),de(r,mo,this.onPointerUp),de(r,co,this.onKeyDown),de(window,po,this.onResize),t.zoomable&&t.zoomOnWheel&&de(n,go,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&de(u,tr,this.onDblclick)}},_0={click:function(t){var n=this.options,u=this.imageData,r=t.target,i=sn(r,ou);switch(!i&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,i=sn(r,ou)),Qt&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(sn(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-u.scaleX||-1);break;case"flip-vertical":this.scaleY(-u.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(Qt&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,u=this.options,r=this.image,i=this.index,a=this.viewerData;ne(r,wn),u.loading&&ne(this.canvas,en),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(){An(r,u0,u.movable),An(r,we,u.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,fe(u.viewed)&&W(n,Dn,u.viewed,{once:!0}),De(n,Dn,{originalImage:t.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(t){var n=t.target,u=n.parentNode,r=u.offsetWidth||30,i=u.offsetHeight||50,a=!!sn(n,"filled");Fo(n,this.options,function(s,l){var c=s/l,f=r,d=i;i*c>r?a?f=i*c:d=r/c:a?d=r/c:f=i*c,ot(n,Ye({width:f,height:d},su({translateX:(r-f)/2,translateY:(i-d)/2})))})},keydown:function(t){var n=this.options;if(n.keyboard){var u=t.keyCode||t.which||t.charCode;switch(u){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(u){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:t.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:t.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var n=this.options,u=this.pointers,r=t.buttons,i=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(ve(r)&&r!==1||ve(i)&&i!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?pe(t.changedTouches,function(s){u[s.identifier]=cu(s)}):u[t.pointerId||0]=cu(t);var a=n.movable?uu:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(u).length>1?a=vn:n.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=io),n.transition&&(a===uu||a===vn)&&ne(this.image,we),this.action=a}},pointermove:function(t){var n=this.pointers,u=this.action;!this.viewed||!u||(t.preventDefault(),t.changedTouches?pe(t.changedTouches,function(r){Ye(n[r.identifier]||{},cu(r,!0))}):Ye(n[t.pointerId||0]||{},cu(t,!0)),this.change(t))},pointerup:function(t){var n=this,u=this.options,r=this.action,i=this.pointers,a;t.changedTouches?pe(t.changedTouches,function(s){a=i[s.identifier],delete i[s.identifier]}):(a=i[t.pointerId||0],delete i[t.pointerId||0]),r&&(t.preventDefault(),u.transition&&(r===uu||r===vn)&&U(this.image,we),this.action=!1,Qt&&r!==vn&&a&&Date.now()-a.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),u.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){De(n.image,tr,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,u.backdrop&&u.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){De(n.canvas,nn,{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}pe(this.player.getElementsByTagName("img"),function(n){W(n,Je,t.loadImage.bind(t),{once:!0}),De(n,Je)})}},wheel:function(t){var n=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var u=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*u,!0,null,t)}}},E0={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,u=this.options;if(u.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(fe(u.show)&&W(n,_o,u.show,{once:!0}),De(n,_o)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(ne(r,Ut),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),u.transition&&!t){var i=this.shown.bind(this);this.transitioning={abort:function(){de(r,it,i),ne(r,Ke)}},U(r,we),r.initialOffsetWidth=r.offsetWidth,W(r,it,i,{once:!0}),U(r,Ke)}else U(r,Ke),this.shown();return this},hide:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(fe(r.hide)&&W(u,yo,r.hide,{once:!0}),De(u,yo)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,a=this.image,s=function(){ne(i,Ke),t.hidden()};if(r.transition&&!n){var l=function(d){d&&d.target===i&&(de(i,it,l),t.hidden())},c=function(){an(i,we)?(W(i,it,l),ne(i,Ke)):s()};this.transitioning={abort:function(){t.viewed&&an(a,we)?de(a,it,c):an(i,we)&&de(i,it,l)}},this.viewed&&an(a,we)?(W(a,it,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var u=this.element,r=this.options,i=this.title,a=this.canvas,s=this.items[n],l=s.querySelector("img"),c=sn(l,"originalUrl"),f=l.getAttribute("alt"),d=document.createElement("img");if(pe(r.inheritedAttributes,function(C){var A=l.getAttribute(C);A!==null&&d.setAttribute(C,A)}),d.src=c,d.alt=f,fe(r.view)&&W(u,xo,r.view,{once:!0}),De(u,xo,{originalImage:this.images[n],index:n,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(ne(h,ru),h.removeAttribute("aria-selected")),U(s,ru),s.setAttribute("aria-selected",!0),r.focus&&s.focus(),this.image=d,this.viewed=!1,this.index=n,this.imageData={},U(d,wn),r.loading&&U(a,en),a.innerHTML="",a.appendChild(d),this.renderList(),i.innerHTML="";var g=function(){var A=t.imageData,v=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=c0(fe(v)?v.call(t,d,A):"".concat(f," (").concat(A.naturalWidth," × ").concat(A.naturalHeight,")"))},p,x;return W(u,Dn,g,{once:!0}),this.viewing={abort:function(){de(u,Dn,g),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",de(d,Je,p),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(W(d,Je,p=function(){de(d,qt,x),t.load()},{once:!0}),W(d,qt,x=function(){de(d,Je,p),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),ne(d,wn),r.loading&&ne(t.canvas,en)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){ne(d,wn),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=t?this.length-1:0),this.view(n),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,u=this.index+1;return u>n&&(u=t?0:n),this.view(u),this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=this.imageData;return this.moveTo(un(t)?t:u.x+Number(t),un(n)?n:u.y+Number(n)),this},moveTo:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.element,a=this.options,s=this.imageData;if(t=Number(t),u=Number(u),this.viewed&&!this.played&&a.movable){var l=s.x,c=s.y,f=!1;if(ve(t)?f=!0:t=l,ve(u)?f=!0:u=c,f){if(fe(a.move)&&W(i,Co,a.move,{once:!0}),De(i,Co,{x:t,y:u,oldX:l,oldY:c,originalEvent:r})===!1)return this;s.x=t,s.y=u,s.left=t,s.top=u,this.moving=!0,this.renderImage(function(){n.moving=!1,fe(a.moved)&&W(i,vo,a.moved,{once:!0}),De(i,vo,{x:t,y:u,oldX:l,oldY:c,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var n=this,u=this.element,r=this.options,i=this.imageData;if(t=Number(t),ve(t)&&this.viewed&&!this.played&&r.rotatable){var a=i.rotate;if(fe(r.rotate)&&W(u,wo,r.rotate,{once:!0}),De(u,wo,{degree:t,oldDegree:a})===!1)return this;i.rotate=t,this.rotating=!0,this.renderImage(function(){n.rotating=!1,fe(r.rotated)&&W(u,Do,r.rotated,{once:!0}),De(u,Do,{degree:t,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.element,i=this.options,a=this.imageData;if(t=Number(t),u=Number(u),this.viewed&&!this.played&&i.scalable){var s=a.scaleX,l=a.scaleY,c=!1;if(ve(t)?c=!0:t=s,ve(u)?c=!0:u=l,c){if(fe(i.scale)&&W(r,No,i.scale,{once:!0}),De(r,No,{scaleX:t,scaleY:u,oldScaleX:s,oldScaleY:l})===!1)return this;a.scaleX=t,a.scaleY=u,this.scaling=!0,this.renderImage(function(){n.scaling=!1,fe(i.scaled)&&W(r,Ao,i.scaled,{once:!0}),De(r,Ao,{scaleX:t,scaleY:u,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(i.width*t/i.naturalWidth,n,u,r),this},zoomTo:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,f=this.imageData,d=f.x,h=f.y,g=f.width,p=f.height,x=f.naturalWidth,C=f.naturalHeight;if(t=Math.max(0,t),ve(t)&&this.viewed&&!this.played&&(a||l.zoomable)){if(!a){var A=Math.max(.01,l.minZoomRatio),v=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,A),v)}if(i)switch(i.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var m=x*t,E=C*t,y=m-g,_=E-p,w=f.ratio;if(fe(l.zoom)&&W(s,To,l.zoom,{once:!0}),De(s,To,{ratio:t,oldRatio:w,originalEvent:i})===!1)return this;if(this.zooming=!0,i){var D=d0(this.viewer),T=c&&Object.keys(c).length>0?p0(c):{pageX:i.pageX,pageY:i.pageY};f.x-=y*((T.pageX-D.left-d)/g),f.y-=_*((T.pageY-D.top-h)/p)}else on(r)&&ve(r.x)&&ve(r.y)?(f.x-=y*((r.x-d)/g),f.y-=_*((r.y-h)/p)):(f.x-=y/2,f.y-=_/2);f.left=f.x,f.top=f.y,f.width=m,f.height=E,f.oldRatio=w,f.ratio=t,this.renderImage(function(){n.zooming=!1,fe(l.zoomed)&&W(s,So,l.zoomed,{once:!0}),De(s,So,{ratio:t,oldRatio:w,originalEvent:i},{cancelable:!1})}),u&&this.tooltip()}return this},play:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var u=this.element,r=this.options;if(fe(r.play)&&W(u,Oo,r.play,{once:!0}),De(u,Oo)===!1)return this;var i=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,n&&this.requestFullscreen(n),U(i,tn),pe(this.items,function(h,g){var p=h.querySelector("img"),x=document.createElement("img");x.src=sn(p,"originalUrl"),x.alt=p.getAttribute("alt"),x.referrerPolicy=p.referrerPolicy,l+=1,U(x,iu),An(x,we,r.transition),an(h,ru)&&(U(x,Ke),c=g),s.push(x),W(x,Je,a,{once:!0}),i.appendChild(x)}),ve(r.interval)&&r.interval>0){var f=function(){clearTimeout(t.playing.timeout),ne(s[c],Ke),c-=1,c=c>=0?c:l-1,U(s[c],Ke),t.playing.timeout=setTimeout(f,r.interval)},d=function(){clearTimeout(t.playing.timeout),ne(s[c],Ke),c+=1,c=c<l?c:0,U(s[c],Ke),t.playing.timeout=setTimeout(d,r.interval)};l>1&&(this.playing={prev:f,next:d,timeout:setTimeout(d,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var n=this.element,u=this.options;if(fe(u.stop)&&W(n,Io,u.stop,{once:!0}),De(n,Io)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,pe(r.getElementsByTagName("img"),function(i){de(i,Je,t.onLoadWhenPlay)}),ne(r,tn),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,n=this.options,u=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),U(this.button,oo),n.transition&&(ne(i,we),this.viewed&&ne(r,we)),U(u,er),u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby",this.title.id),u.setAttribute("aria-modal",!0),u.removeAttribute("style"),ot(u,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Ye({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){U(r,we),U(i,we)},0)})}),this)},exit:function(){var t=this,n=this.options,u=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),ne(this.button,oo),n.transition&&(ne(i,we),this.viewed&&ne(r,we)),n.focus&&this.clearEnforceFocus(),u.removeAttribute("role"),u.removeAttribute("aria-labelledby"),u.removeAttribute("aria-modal"),ne(u,er),ot(u,{zIndex:n.zIndexInline}),this.viewerData=Ye({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){U(r,we),U(i,we)},0)})}),this)},tooltip:function(){var t=this,n=this.options,u=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(u.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&De(u,it),U(u,tn),U(u,iu),U(u,we),u.removeAttribute("aria-hidden"),u.initialOffsetWidth=u.offsetWidth,U(u,Ke)):(U(u,tn),u.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(W(u,it,function(){ne(u,tn),ne(u,iu),ne(u,we),u.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),ne(u,Ke),t.fading=!0):(ne(u,tn),u.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Ye({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,n=this.element,u=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var i=[];if(pe(r?[n]:n.querySelectorAll("img"),function(c){fe(u.filter)?u.filter.call(t,c)&&i.push(c):t.getImageURL(c)&&i.push(c)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var a=[];if(pe(this.items,function(c,f){var d=c.querySelector("img"),h=i[f];h&&d?(h.src!==d.src||h.alt!==d.alt)&&a.push(f):a.push(f)}),ot(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];U(l,ru),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,n=this.options;return t[Z]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||de(t,nn,this.onStart),t[Z]=void 0,this):this}},y0={getImageURL:function(t){var n=this.options.url;return Nn(n)?n=t.getAttribute(n):fe(n)?n=n.call(this,t):n="",n},enforceFocus:function(){var t=this;this.clearEnforceFocus(),W(document,lo,this.onFocusin=function(n){var u=t.viewer,r=n.target;if(!(r===document||r===u||u.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}u.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(de(document,lo,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;U(t,ao),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;ne(t,ao),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,n=this.options,u=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(u.focus(),this.enforceFocus()),fe(n.shown)&&W(t,Eo,n.shown,{once:!0}),De(t,Eo)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,n=this.options,u=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),U(u,Ut),u.removeAttribute("role"),u.removeAttribute("aria-labelledby"),u.removeAttribute("aria-modal"),u.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(fe(n.hidden)&&W(t,ko,n.hidden,{once:!0}),De(t,ko,null,{cancelable:!1}))},requestFullscreen:function(t){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var u=n.documentElement;u.requestFullscreen?on(t)?u.requestFullscreen(t):u.requestFullscreen():u.webkitRequestFullscreen?u.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):u.mozRequestFullScreen?u.mozRequestFullScreen():u.msRequestFullscreen&&u.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,u=this.pointers,r=u[Object.keys(u)[0]];if(r){var i=r.endX-r.startX,a=r.endY-r.startY;switch(this.action){case uu:(i!==0||a!==0)&&(this.pointerMoved=!0,this.move(i,a,t));break;case vn:this.zoom(m0(u),!1,null,t);break;case io:{this.action="switched";var s=Math.abs(i);s>1&&s>Math.abs(a)&&(this.pointers={},i>1?this.prev(n.loop):i<-1&&this.next(n.loop));break}}pe(u,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,n=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=n.width&&t.height<=n.height}},k0=Ct.Viewer,x0=function(e){return function(){return e+=1,e}}(-1),ln=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Yc(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Ye({},ro,on(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=x0(),this.init()}return Gc(e,[{key:"init",value:function(){var n=this,u=this.element,r=this.options;if(!u[Z]){u[Z]=this,r.focus&&!r.keyboard&&(r.focus=!1);var i=u.localName==="img",a=[];if(pe(i?[u]:u.querySelectorAll("img"),function(c){fe(r.filter)?r.filter.call(n,c)&&a.push(c):n.getImageURL(c)&&a.push(c)}),this.isImg=i,this.length=a.length,this.images=a,this.initBody(),un(document.createElement(Z).style.transition)&&(r.transition=!1),r.inline){var s=0,l=function(){if(s+=1,s===n.length){var f;n.initializing=!1,n.delaying={abort:function(){clearTimeout(f)}},f=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){pe(a,function(f){f.complete||(de(f,Je,l),de(f,qt,l))})}},pe(a,function(c){if(c.complete)l();else{var f,d;W(c,Je,f=function(){de(c,qt,d),l()},{once:!0}),W(c,qt,d=function(){de(c,Je,f),l()},{once:!0})}})}else W(u,nn,this.onStart=function(c){var f=c.target;f.localName==="img"&&(!fe(r.filter)||r.filter.call(n,f))&&n.view(n.images.indexOf(f))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,u=this.options,r=n.parentNode,i=document.createElement("div");i.innerHTML=Kc;var a=i.querySelector(".".concat(Z,"-container")),s=a.querySelector(".".concat(Z,"-title")),l=a.querySelector(".".concat(Z,"-toolbar")),c=a.querySelector(".".concat(Z,"-navbar")),f=a.querySelector(".".concat(Z,"-button")),d=a.querySelector(".".concat(Z,"-canvas"));if(this.parent=r,this.viewer=a,this.title=s,this.toolbar=l,this.navbar=c,this.button=f,this.canvas=d,this.footer=a.querySelector(".".concat(Z,"-footer")),this.tooltipBox=a.querySelector(".".concat(Z,"-tooltip")),this.player=a.querySelector(".".concat(Z,"-player")),this.list=a.querySelector(".".concat(Z,"-list")),a.id="".concat(Z).concat(this.id),s.id="".concat(Z,"Title").concat(this.id),U(s,u.title?lu(Array.isArray(u.title)?u.title[0]:u.title):Ut),U(c,u.navbar?lu(u.navbar):Ut),An(f,Ut,!u.button),u.keyboard&&f.setAttribute("tabindex",0),u.backdrop&&(U(a,"".concat(Z,"-backdrop")),!u.inline&&u.backdrop!=="static"&&rr(d,ou,"hide")),Nn(u.className)&&u.className&&u.className.split(nr).forEach(function(m){U(a,m)}),u.toolbar){var h=document.createElement("ul"),g=on(u.toolbar),p=au.slice(0,3),x=au.slice(7,9),C=au.slice(9);g||U(l,lu(u.toolbar)),pe(g?u.toolbar:au,function(m,E){var y=g&&on(m),_=g?ur(E):m,w=y&&!un(m.show)?m.show:m;if(!(!w||!u.zoomable&&p.indexOf(_)!==-1||!u.rotatable&&x.indexOf(_)!==-1||!u.scalable&&C.indexOf(_)!==-1)){var D=y&&!un(m.size)?m.size:m,T=y&&!un(m.click)?m.click:m,V=document.createElement("li");u.keyboard&&V.setAttribute("tabindex",0),V.setAttribute("role","button"),U(V,"".concat(Z,"-").concat(_)),fe(T)||rr(V,ou,_),ve(w)&&U(V,lu(w)),["small","large"].indexOf(D)!==-1?U(V,"".concat(Z,"-").concat(D)):_==="play"&&U(V,"".concat(Z,"-large")),fe(T)&&W(V,nn,T),h.appendChild(V)}}),l.appendChild(h)}else U(l,Ut);if(!u.rotatable){var A=l.querySelectorAll('li[class*="rotate"]');U(A,wn),pe(A,function(m){l.appendChild(m)})}if(u.inline)U(f,Qc),ot(a,{zIndex:u.zIndexInline}),window.getComputedStyle(r).position==="static"&&ot(r,{position:"relative"}),r.insertBefore(a,n.nextSibling);else{U(f,Jc),U(a,er),U(a,iu),U(a,Ut),ot(a,{zIndex:u.zIndex});var v=u.container;Nn(v)&&(v=n.ownerDocument.querySelector(v)),v||(v=this.body),v.appendChild(a)}if(u.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,fe(u.ready)&&W(n,bo,u.ready,{once:!0}),De(n,bo)===!1){this.ready=!1;return}this.ready&&u.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=k0,e}},{key:"setDefaults",value:function(n){Ye(ro,on(n)&&n)}}])}();Ye(ln.prototype,g0,b0,_0,E0,y0);var C0=typeof global=="object"&&global&&global.Object===Object&&global;const Mo=C0;var v0=typeof self=="object"&&self&&self.Object===Object&&self,w0=Mo||v0||Function("return this")();const fu=w0;var D0=fu.Symbol;const du=D0;var Po=Object.prototype,N0=Po.hasOwnProperty,A0=Po.toString,Tn=du?du.toStringTag:void 0;function T0(e){var t=N0.call(e,Tn),n=e[Tn];try{e[Tn]=void 0;var u=!0}catch{}var r=A0.call(e);return u&&(t?e[Tn]=n:delete e[Tn]),r}var S0=Object.prototype,O0=S0.toString;function I0(e){return O0.call(e)}var L0="[object Null]",F0="[object Undefined]",Vo=du?du.toStringTag:void 0;function hu(e){return e==null?e===void 0?F0:L0:Vo&&Vo in Object(e)?T0(e):I0(e)}function mu(e){return e!=null&&typeof e=="object"}var M0="[object Symbol]";function P0(e){return typeof e=="symbol"||mu(e)&&hu(e)==M0}var V0=Array.isArray;const $0=V0;var R0=/\s/;function B0(e){for(var t=e.length;t--&&R0.test(e.charAt(t)););return t}var j0=/^\s+/;function z0(e){return e&&e.slice(0,B0(e)+1).replace(j0,"")}function Ht(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $o=NaN,U0=/^[-+]0x[0-9a-f]+$/i,q0=/^0b[01]+$/i,H0=/^0o[0-7]+$/i,W0=parseInt;function Ro(e){if(typeof e=="number")return e;if(P0(e))return $o;if(Ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=z0(e);var n=q0.test(e);return n||H0.test(e)?W0(e.slice(2),n?2:8):U0.test(e)?$o:+e}function Bo(e){return e}var Y0="[object AsyncFunction]",G0="[object Function]",X0="[object GeneratorFunction]",Z0="[object Proxy]";function jo(e){if(!Ht(e))return!1;var t=hu(e);return t==G0||t==X0||t==Y0||t==Z0}var K0=fu["__core-js_shared__"];const or=K0;var zo=function(){var e=/[^.]+$/.exec(or&&or.keys&&or.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function J0(e){return!!zo&&zo in e}var Q0=Function.prototype,ef=Q0.toString;function tf(e){if(e!=null){try{return ef.call(e)}catch{}try{return e+""}catch{}}return""}var nf=/[\\^$.*+?()[\]{}|]/g,uf=/^\[object .+?Constructor\]$/,rf=Function.prototype,of=Object.prototype,af=rf.toString,sf=of.hasOwnProperty,lf=RegExp("^"+af.call(sf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cf(e){if(!Ht(e)||J0(e))return!1;var t=jo(e)?lf:uf;return t.test(tf(e))}function ff(e,t){return e==null?void 0:e[t]}function df(e,t){var n=ff(e,t);return cf(n)?n:void 0}function hf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var mf=800,pf=16,gf=Date.now;function bf(e){var t=0,n=0;return function(){var u=gf(),r=pf-(u-n);if(n=u,r>0){if(++t>=mf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _f(e){return function(){return e}}var Ef=function(){try{var e=df(Object,"defineProperty");return e({},"",{}),e}catch{}}();const pu=Ef;var yf=pu?function(e,t){return pu(e,"toString",{configurable:!0,enumerable:!1,value:_f(t),writable:!0})}:Bo,kf=bf(yf);const xf=kf;var Cf=9007199254740991,vf=/^(?:0|[1-9]\d*)$/;function Uo(e,t){var n=typeof e;return t=t??Cf,!!t&&(n=="number"||n!="symbol"&&vf.test(e))&&e>-1&&e%1==0&&e<t}function qo(e,t,n){t=="__proto__"&&pu?pu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){return e===t||e!==e&&t!==t}var wf=Object.prototype,Df=wf.hasOwnProperty;function Ho(e,t,n){var u=e[t];(!(Df.call(e,t)&&ar(u,n))||n===void 0&&!(t in e))&&qo(e,t,n)}function Nf(e,t,n,u){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),r?qo(n,s,l):Ho(n,s,l)}return n}var Wo=Math.max;function Af(e,t,n){return t=Wo(t===void 0?e.length-1:t,0),function(){for(var u=arguments,r=-1,i=Wo(u.length-t,0),a=Array(i);++r<i;)a[r]=u[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=u[r];return s[t]=n(a),hf(e,this,s)}}function Yo(e,t){return xf(Af(e,t,Bo),e+"")}var Tf=9007199254740991;function Go(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Tf}function gu(e){return e!=null&&Go(e.length)&&!jo(e)}function Xo(e,t,n){if(!Ht(n))return!1;var u=typeof t;return(u=="number"?gu(n)&&Uo(t,n.length):u=="string"&&t in n)?ar(n[t],e):!1}function Sf(e){return Yo(function(t,n){var u=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&Xo(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++u<r;){var s=n[u];s&&e(t,s,u,i)}return t})}var Of=Object.prototype;function sr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Of;return e===n}function If(e,t){for(var n=-1,u=Array(e);++n<e;)u[n]=t(n);return u}var Lf="[object Arguments]";function Zo(e){return mu(e)&&hu(e)==Lf}var Ko=Object.prototype,Ff=Ko.hasOwnProperty,Mf=Ko.propertyIsEnumerable,Pf=Zo(function(){return arguments}())?Zo:function(e){return mu(e)&&Ff.call(e,"callee")&&!Mf.call(e,"callee")};const Vf=Pf;function $f(){return!1}var Jo=typeof Ve=="object"&&Ve&&!Ve.nodeType&&Ve,Qo=Jo&&typeof module=="object"&&module&&!module.nodeType&&module,Rf=Qo&&Qo.exports===Jo,ea=Rf?fu.Buffer:void 0,Bf=ea?ea.isBuffer:void 0,jf=Bf||$f;const zf=jf;var Uf="[object Arguments]",qf="[object Array]",Hf="[object Boolean]",Wf="[object Date]",Yf="[object Error]",Gf="[object Function]",Xf="[object Map]",Zf="[object Number]",Kf="[object Object]",Jf="[object RegExp]",Qf="[object Set]",ed="[object String]",td="[object WeakMap]",nd="[object ArrayBuffer]",ud="[object DataView]",rd="[object Float32Array]",id="[object Float64Array]",od="[object Int8Array]",ad="[object Int16Array]",sd="[object Int32Array]",ld="[object Uint8Array]",cd="[object Uint8ClampedArray]",fd="[object Uint16Array]",dd="[object Uint32Array]",ke={};ke[rd]=ke[id]=ke[od]=ke[ad]=ke[sd]=ke[ld]=ke[cd]=ke[fd]=ke[dd]=!0,ke[Uf]=ke[qf]=ke[nd]=ke[Hf]=ke[ud]=ke[Wf]=ke[Yf]=ke[Gf]=ke[Xf]=ke[Zf]=ke[Kf]=ke[Jf]=ke[Qf]=ke[ed]=ke[td]=!1;function hd(e){return mu(e)&&Go(e.length)&&!!ke[hu(e)]}function md(e){return function(t){return e(t)}}var ta=typeof Ve=="object"&&Ve&&!Ve.nodeType&&Ve,Sn=ta&&typeof module=="object"&&module&&!module.nodeType&&module,pd=Sn&&Sn.exports===ta,lr=pd&&Mo.process,gd=function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||lr&&lr.binding&&lr.binding("util")}catch{}}();const na=gd;var ua=na&&na.isTypedArray,bd=ua?md(ua):hd;const _d=bd;var Ed=Object.prototype,yd=Ed.hasOwnProperty;function ra(e,t){var n=$0(e),u=!n&&Vf(e),r=!n&&!u&&zf(e),i=!n&&!u&&!r&&_d(e),a=n||u||r||i,s=a?If(e.length,String):[],l=s.length;for(var c in e)(t||yd.call(e,c))&&!(a&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Uo(c,l)))&&s.push(c);return s}function kd(e,t){return function(n){return e(t(n))}}var xd=kd(Object.keys,Object);const Cd=xd;var vd=Object.prototype,wd=vd.hasOwnProperty;function Dd(e){if(!sr(e))return Cd(e);var t=[];for(var n in Object(e))wd.call(e,n)&&n!="constructor"&&t.push(n);return t}function Nd(e){return gu(e)?ra(e):Dd(e)}var Ad=Object.prototype,Td=Ad.hasOwnProperty,Sd=Sf(function(e,t){if(sr(t)||gu(t)){Nf(t,Nd(t),e);return}for(var n in t)Td.call(t,n)&&Ho(e,n,t[n])});const Od=Sd;function Id(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Ld=Object.prototype,Fd=Ld.hasOwnProperty;function Md(e){if(!Ht(e))return Id(e);var t=sr(e),n=[];for(var u in e)u=="constructor"&&(t||!Fd.call(e,u))||n.push(u);return n}function Pd(e){return gu(e)?ra(e,!0):Md(e)}var Vd=function(){return fu.Date.now()};const cr=Vd;var $d="Expected a function",Rd=Math.max,Bd=Math.min;function jd(e,t,n){var u,r,i,a,s,l,c=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError($d);t=Ro(t)||0,Ht(n)&&(f=!!n.leading,d="maxWait"in n,i=d?Rd(Ro(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function g(_){var w=u,D=r;return u=r=void 0,c=_,a=e.apply(D,w),a}function p(_){return c=_,s=setTimeout(A,t),f?g(_):a}function x(_){var w=_-l,D=_-c,T=t-w;return d?Bd(T,i-D):T}function C(_){var w=_-l,D=_-c;return l===void 0||w>=t||w<0||d&&D>=i}function A(){var _=cr();if(C(_))return v(_);s=setTimeout(A,x(_))}function v(_){return s=void 0,h&&u?g(_):(u=r=void 0,a)}function m(){s!==void 0&&clearTimeout(s),c=0,u=l=r=s=void 0}function E(){return s===void 0?a:v(cr())}function y(){var _=cr(),w=C(_);if(u=arguments,r=this,l=_,w){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(A,t),g(l)}return s===void 0&&(s=setTimeout(A,t)),a}return y.cancel=m,y.flush=E,y}var ia=Object.prototype,zd=ia.hasOwnProperty,Ud=Yo(function(e,t){e=Object(e);var n=-1,u=t.length,r=u>2?t[2]:void 0;for(r&&Xo(t[0],t[1],r)&&(u=1);++n<u;)for(var i=t[n],a=Pd(i),s=-1,l=a.length;++s<l;){var c=a[s],f=e[c];(f===void 0||ar(f,ia[c])&&!zd.call(e,c))&&(e[c]=i[c])}return e});const qd=Ud,On=({images:e=[],options:t})=>{t=Od(t,{inline:!1});const n=document.createElement("div"),u=o.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>o.h("img",typeof s=="string"?{src:s}:s)));o.render(u,n);const r=n.firstElementChild;document.body.appendChild(r);const i=new ln(r,t),a=i.destroy.bind(i);return i.destroy=function(){return a(),o.render(null,n),i},i.show(),r.addEventListener("hidden",function(){this.viewer===i&&i.destroy()}),i},Hd=({name:e="viewer",debug:t=!1}={})=>{async function n(f,d,h=!1,g=!1){await o.nextTick(),!(g&&!u(f))&&(h||!f[`$${e}`]?(a(f),f[`$${e}`]=new ln(f,d),c("Viewer created")):(f[`$${e}`].update(),c("Viewer updated")))}function u(f){const d=f.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),h=d?d.join(""):void 0;return f.__viewerImageDiffCache===h?(c("Element change detected, but image(s) has not changed"),!1):(c("Image change detected"),f.__viewerImageDiffCache=h,!0)}function r(f,d,h,g){s(f);const p=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!p){c("Observer not supported");return}const x=new p(A=>{A.forEach(v=>{c(`Viewer mutation:${v.type}`),h(f,d,g,!0)})}),C={attributes:!0,childList:!0,characterData:!0,subtree:!0};x.observe(f,C),f.__viewerMutationObserver=x,c("Observer created")}function i(f,d,h,g){f.__viewerUnwatch=o.watch(()=>d.value,(p,x)=>{c("Change detected by watcher: ",d.value),g(f,p,!0,!1)},{deep:!0}),c("Watcher created, expression: ",d.value)}function a(f){!f[`$${e}`]||(f[`$${e}`].destroy(),delete f[`$${e}`],c("Viewer destroyed"))}function s(f){!f.__viewerMutationObserver||(f.__viewerMutationObserver.disconnect(),delete f.__viewerMutationObserver,c("observer destroyed"))}function l(f){!f.__viewerUnwatch||(f.__viewerUnwatch(),delete f.__viewerUnwatch,c("Watcher destroyed"))}function c(...f){t&&console.log(...f)}return{mounted(f,d,h){c("Viewer bind");const g=jd(n,50);g(f,d.value),i(f,d,h,g),d.modifiers.static||r(f,d.value,g,d.modifiers.rebuild)},unmounted(f){c("Viewer unbind"),s(f),l(f),a(f)}}},Wd=o.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let n;const u=o.ref();function r(){n=new ln(u.value,e.options),t("inited",n)}function i(){n&&n.destroy()}function a(){i(),r()}function s(){n?(n.update(),t("inited",n)):r()}function l(){e.rebuild?a():s()}const c={deep:!0};return o.watch(()=>e.images,()=>{o.nextTick(()=>{l()})},c),o.watch(()=>e.trigger,()=>{o.nextTick(()=>{l()})},c),o.watch(()=>e.options,()=>{o.nextTick(()=>{a()})},c),o.onMounted(()=>r()),o.onUnmounted(()=>i()),{root:u,createViewer:r,rebuildViewer:a,updateViewer:s,destroyViewer:i}}}),Yd=(e,t)=>{const n=e.__vccOpts||e;for(const[u,r]of t)n[u]=r;return n},Gd={ref:"root"};function Xd(e,t,n,u,r,i){return o.openBlock(),o.createElementBlock("div",Gd,[o.renderSlot(e.$slots,"default",{images:e.images,options:e.options})],512)}const Zd=Yd(Wd,[["render",Xd]]),Kd={install(e,{name:t="viewer",debug:n=!1,defaultOptions:u}={}){u&&ln.setDefaults(u),e.config.globalProperties[`$${t}Api`]=On,e.component(t,qd(Zd,{name:t})),e.directive(t,Hd({name:t,debug:n}))},setDefaults(e){ln.setDefaults(e)}},Jd={},Qd={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e1(e,t){return o.openBlock(),o.createElementBlock("svg",Qd,t[0]||(t[0]=[o.createElementVNode("path",{d:"M10.3193 16.5L14.8193 12L10.3193 7.5",stroke:"currentColor","stroke-linecap":"round"},null,-1)]))}const oa=ye(Jd,[["render",e1]]),t1=["src"],n1={class:"name"},u1={class:"sub"},r1={key:0},i1=["src"],o1=["src"],a1=ye({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const t=e,n=o.ref(t.open),u=o.ref(null),r=o.ref(0),i=o.ref([]);o.onMounted(async()=>{n.value&&(await p(),await s(),setTimeout(()=>{a()},200))});const a=o.inject("triggerScrollToEnd"),s=()=>new Promise(async x=>{await o.nextTick();const C=[];i.value.hasOwnProperty("craftUrl")&&i.value.craftUrl&&C.push(i.value.craftUrl),C.length?(await l(C),await o.nextTick(),r.value=f.value?u.value.scrollHeight:0,n.value&&(r.value+=26),n.value=!0):n.value=!1,x()}),l=x=>{const C=[];return x.forEach(A=>{const v=new Image,m=new Promise((E,y)=>{v.onload=()=>E(v),v.onerror=()=>y(new Error(`加载${A}失败`)),v.src=A});C.push(m)}),Promise.all(C)},c=o.computed(()=>`${t.defMsg.energy}${t.info.energy}kcal,${t.defMsg.protein}${t.info.protein}g,${t.defMsg.fat}${t.info.fat}g,${t.defMsg.carbonwater}${t.info.carbonwater}g`);o.computed(()=>{var C,A;return(((A=(C=t.info)==null?void 0:C.makeMaterialList)==null?void 0:A.map(v=>v.material+v.usage+"g"))||[]).join("、")});const f=o.computed(()=>t.info.hasOwnProperty("cid")&&t.info.cid),d=o.computed(()=>{let x="92px";return f.value&&(x=n.value?r.value+66+"px":"118px"),x}),h=x=>{On({images:[x]})},g=async()=>{n.value?n.value=!1:(await p(),s())},p=async()=>{if(!(i.value.hasOwnProperty("makeCraftList")&&i.value.hasOwnProperty("makeMaterialList"))){const x=await tu("/api/cn.weis.api.Food/makeCraft",{method:"makeCraft",params:[{cid:t.info.cid}],token:localStorage.getItem("postToken")});x.errCode===0&&x.obj&&(i.value={...x.obj})}};return(x,C)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({dishes_box:!0,is_open:n.value}),style:o.normalizeStyle({height:d.value})},[o.createElementVNode("div",{class:"dishes_wrap",onClick:o.withModifiers(g,["stop"])},[o.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:C[0]||(C[0]=o.withModifiers(A=>h(e.info.primaryImgUrl),["stop"]))},null,8,t1),o.createElementVNode("div",null,[o.createElementVNode("div",n1,[o.createElementVNode("span",null,o.toDisplayString(e.info.skuname),1),C[2]||(C[2]=o.createElementVNode("span",null,"×1",-1))]),o.createElementVNode("div",u1,o.toDisplayString(c.value),1)])]),f.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:u},[o.withDirectives(o.createElementVNode("div",{class:"switch_open",onClick:o.withModifiers(g,["stop"])},[C[3]||(C[3]=o.createElementVNode("span",null,"查看菜谱详情",-1)),o.createVNode(oa,{class:"icon"})],512),[[o.vShow,!n.value]]),C[4]||(C[4]=o.createElementVNode("div",{class:"title"},"制作工艺",-1)),i.value.makeVideosUrl?(o.openBlock(),o.createElementBlock("div",r1,[o.createElementVNode("video",{src:i.value.makeVideosUrl,width:"100%",controls:"true"},null,8,i1)])):o.createCommentVNode("",!0),o.createElementVNode("img",{src:i.value.craftUrl,width:"100%",alt:"craft"},null,8,o1),o.createElementVNode("div",{class:"collapse_btn",onClick:C[1]||(C[1]=o.withModifiers(A=>n.value=!1,["stop"]))},"收起")],512)):o.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-7da603ee"]]),s1={class:"dl_wrap"},l1={key:0},c1={key:0,class:"sep_line"},f1={class:"date"},d1={key:1,style:{padding:"15px 0"}},h1={class:"title"},m1={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},p1={key:1,class:"btn_group"},g1={class:"name"},b1={class:"name"},_1={key:2,class:"btn_group"},E1={class:"name"},y1={class:"sub"},k1={class:"name"},x1={class:"sub"},C1=ye({__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{t:n}=dt(),u=e,r=t;o.ref(!1);const i=o.ref(!1),a=(f,d)=>!1,s=f=>{let d=0;return((f==null?void 0:f.list)||[]).forEach(h=>{((h==null?void 0:h.getCategoryList)||[]).forEach(g=>{d+=g.energy||0})}),d},l=f=>u.skuList.slice(0,f).findIndex(d=>d.strDate===u.skuList[f].strDate)===-1,c=f=>{r("select",{type:f})};return(f,d)=>(o.openBlock(),o.createElementBlock("div",s1,[o.createElementVNode("div",{class:o.normalizeClass(["dl_list",{show_full:i.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.skuList,(h,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:h.category},[l(g)?(o.openBlock(),o.createElementBlock("div",l1,[g>0?(o.openBlock(),o.createElementBlock("div",c1)):o.createCommentVNode("",!0),o.createElementVNode("div",f1,o.toDisplayString(h.strDate.slice(4,6))+"月"+o.toDisplayString(h.strDate.slice(6))+"日 ",1)])):o.createCommentVNode("",!0),h.list&&h.list.length?(o.openBlock(),o.createElementBlock("div",d1,[o.createElementVNode("p",h1,o.toDisplayString(h.categoryType)+" "+o.toDisplayString(s(h))+"kcal ",1),o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.list,p=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:p.id},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.getCategoryList,(x,C)=>(o.openBlock(),o.createBlock(a1,{key:C,info:x,"def-msg":e.defMsg,open:a(x,h.category)},null,8,["info","def-msg","open"]))),128))],64))),128))])])):o.createCommentVNode("",!0)],64))),128))],2),o.createElementVNode("div",{class:o.normalizeClass(["dl_full",{show_full:i.value}]),onClick:d[0]||(d[0]=h=>i.value=!i.value)},o.toDisplayString(i.value?o.unref(n)("msg_obj.dishes.collapseMenu"):o.unref(n)("msg_obj.dishes.viewFullMenu")),3),e.isMini?(o.openBlock(),o.createElementBlock("div",m1,[o.createTextVNode(o.toDisplayString(o.unref(n)("msg_obj.dishes.warmTip")),1),d[5]||(d[5]=o.createElementVNode("br",null,null,-1)),o.createElementVNode("strong",null,o.toDisplayString(o.unref(n)("msg_obj.dishes.halfPriceSurprise")),1)])):o.createCommentVNode("",!0),e.isMini?(o.openBlock(),o.createElementBlock("div",p1,[o.createElementVNode("div",{class:"btn btn_1",onClick:d[1]||(d[1]=o.withModifiers(h=>c("personalForm"),["stop"]))},[o.createElementVNode("span",g1,o.toDisplayString(o.unref(n)("msg_obj.dishes.personalizedRecipe")),1)]),o.createElementVNode("div",{class:"btn btn_2",onClick:d[2]||(d[2]=o.withModifiers(h=>c("ship_order"),["stop"]))},[o.createElementVNode("span",b1,o.toDisplayString(o.unref(n)("msg_obj.dishes.orderNow")),1)])])):(o.openBlock(),o.createElementBlock("div",_1,[e.channel!=="hft"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"btn btn_1",onClick:d[3]||(d[3]=o.withModifiers(h=>c("ship_order"),["stop"]))},[o.createElementVNode("span",E1,o.toDisplayString(o.unref(n)("msg_obj.dishes.deliveryOrder")),1),o.createElementVNode("span",y1,o.toDisplayString(o.unref(n)("msg_obj.dishes.deliveryToDoor")),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"btn btn_2",onClick:d[4]||(d[4]=o.withModifiers(h=>c("pick_order"),["stop"]))},[o.createElementVNode("span",k1,o.toDisplayString(o.unref(n)("msg_obj.dishes.pickupOrder")),1),o.createElementVNode("span",x1,o.toDisplayString(o.unref(n)("msg_obj.dishes.freeShipping")),1)])]))]))}},[["__scopeId","data-v-619f8925"]]),v1={class:"card",style:{"margin-top":"15px"}},w1={class:"row"},D1={class:"name"},N1={class:"content"},A1={class:"title"},T1={class:"row"},S1={class:"name"},O1={class:"content"},I1={class:"row"},L1={class:"name"},F1={class:"content"},M1={class:"row"},P1={class:"name"},V1={class:"content"},$1={class:"row"},R1={class:"name"},B1={class:"content"},j1={class:"btn_group"},z1=ye({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const{t:n}=dt(),u={"01":n("msg_obj.plan.breakfast"),"02":n("msg_obj.plan.lunch"),"03":n("msg_obj.plan.dinner"),"04":n("msg_obj.plan.snack"),carbohydrateTotal:n("msg_obj.plan.carbohydrate"),proteinTotal:n("msg_obj.plan.protein"),fatTotal:n("msg_obj.plan.fat")},r=t,i=()=>{r("select",{})};return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",v1,[o.createElementVNode("div",w1,[o.createElementVNode("div",D1,o.toDisplayString(o.unref(n)("msg_obj.plan.dailyIntake")),1),o.createElementVNode("div",N1,o.toDisplayString(e.info.totalIntake)+" kcal",1)])]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.info.planDetailList,l=>(o.openBlock(),o.createElementBlock("div",{key:a.category,class:"card"},[o.createElementVNode("div",A1,o.toDisplayString(u[l.category]),1),o.createElementVNode("div",T1,[o.createElementVNode("div",S1,o.toDisplayString(u[l.category])+"熱量",1),o.createElementVNode("div",O1,o.toDisplayString(l.totalKcal)+" kcal",1)]),s[0]||(s[0]=o.createElementVNode("div",{class:"sep"},null,-1)),o.createElementVNode("div",I1,[o.createElementVNode("div",L1,o.toDisplayString(u.carbohydrateTotal),1),o.createElementVNode("div",F1,o.toDisplayString(l.carbohydrateTotal)+" g",1)]),o.createElementVNode("div",M1,[o.createElementVNode("div",P1,o.toDisplayString(u.proteinTotal),1),o.createElementVNode("div",V1,o.toDisplayString(l.proteinTotal)+" g",1)]),o.createElementVNode("div",$1,[o.createElementVNode("div",R1,o.toDisplayString(u.fatTotal),1),o.createElementVNode("div",B1,o.toDisplayString(l.fatTotal)+" g",1)])]))),128)),o.createElementVNode("div",j1,[o.createElementVNode("div",{class:"btn btn_2",onClick:o.withModifiers(i,["stop"])},o.toDisplayString(o.unref(n)("msg_obj.plan.useThisPlan")),1)])],64))}},[["__scopeId","data-v-d30afc15"]]),U1={},q1={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H1(e,t){return o.openBlock(),o.createElementBlock("svg",q1,t[0]||(t[0]=[o.createElementVNode("path",{d:"M5.75335 4.13651C5.8677 3.70974 6.31858 3.36377 6.76041 3.36377C7.20223 3.36377 7.4677 3.70974 7.35335 4.13651L7.14629 4.90928L10.3463 4.90928L10.5533 4.13651C10.6677 3.70974 11.1186 3.36377 11.5604 3.36377C12.0022 3.36377 12.2677 3.70974 12.1533 4.13651L11.9463 4.90928H12.8282C13.2701 4.90928 13.5355 5.25525 13.4212 5.68202C13.3068 6.10879 12.8559 6.45476 12.4141 6.45476H11.5322L10.704 9.54561H11.5859C12.0277 9.54561 12.2932 9.89157 12.1788 10.3183C12.0645 10.7451 11.6136 11.0911 11.1718 11.0911H10.2899L10.0828 11.8639C9.96844 12.2907 9.51757 12.6367 9.07574 12.6367C8.63391 12.6367 8.36844 12.2907 8.4828 11.8639L8.68988 11.0911L5.48986 11.0911L5.28278 11.8639C5.16843 12.2907 4.71756 12.6367 4.27573 12.6367C3.8339 12.6367 3.56843 12.2907 3.68278 11.8639L3.88986 11.0911H3.17178C2.72995 11.0911 2.46448 10.7451 2.57884 10.3183C2.69319 9.89157 3.14407 9.54561 3.58589 9.54561H4.30397L4.67327 8.16737C4.78763 7.7406 5.2385 7.39463 5.68033 7.39463C6.12215 7.39463 6.38763 7.7406 6.27327 8.16737L5.90398 9.54561L9.10399 9.54561L9.93218 6.45476L4.41412 6.45476C3.97229 6.45476 3.70682 6.10879 3.82117 5.68202C3.93553 5.25524 4.3864 4.90928 4.82823 4.90928H5.54629L5.75335 4.13651Z",fill:"currentColor"},null,-1)]))}const W1=ye(U1,[["render",H1]]),Y1={name:"pictureIcon"},G1={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X1(e,t,n,u,r,i){return o.openBlock(),o.createElementBlock("svg",G1,t[0]||(t[0]=[o.createElementVNode("path",{d:"M2.875 6C2.875 4.34315 4.21815 3 5.875 3H19.875C21.5319 3 22.875 4.34315 22.875 6V18C22.875 19.6569 21.5319 21 19.875 21H5.875C4.21815 21 2.875 19.6569 2.875 18V6ZM5.875 5C5.32272 5 4.875 5.44772 4.875 6V16.0852L10.475 11.8852C11.8972 10.8185 13.8528 10.8185 15.275 11.8852L20.875 16.0852V6C20.875 5.44772 20.4273 5 19.875 5H5.875ZM8.28442 10.0852C9.11285 10.0852 9.78442 9.41363 9.78442 8.58521C9.78442 7.75678 9.11285 7.08521 8.28442 7.08521C7.456 7.08521 6.78442 7.75678 6.78442 8.58521C6.78442 9.41363 7.456 10.0852 8.28442 10.0852Z",fill:"currentColor"},null,-1)]))}const Z1=ye(Y1,[["render",X1]]),K1={},J1={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q1(e,t){return o.openBlock(),o.createElementBlock("svg",J1,t[0]||(t[0]=[o.createElementVNode("path",{d:"M18.0849 10.6565C19.9734 8.76795 19.9734 5.70607 18.0849 3.81756C16.1964 1.92905 13.1345 1.92905 11.246 3.81756L5.05399 10.0096C2.55177 12.5118 2.55177 16.5687 5.05399 19.0709C7.55622 21.5732 11.6131 21.5732 14.1154 19.0709L20.2421 12.9442C20.6326 12.5537 20.6326 11.9205 20.2421 11.53C19.8516 11.1394 19.2184 11.1394 18.8279 11.53L12.7011 17.6567C10.98 19.3779 8.18938 19.3779 6.46821 17.6567C4.74703 15.9355 4.74703 13.145 6.4682 11.4238L12.6602 5.23178C13.7677 4.12431 15.5632 4.12431 16.6707 5.23178C17.7781 6.33924 17.7781 8.13478 16.6707 9.24224L10.5401 15.3729C10.0481 15.8648 9.25051 15.8648 8.75856 15.3729C8.26661 14.8809 8.26661 14.0833 8.75856 13.5913L13.9435 8.40645C14.334 8.01592 14.334 7.38276 13.9435 6.99223C13.5529 6.60171 12.9198 6.60171 12.5292 6.99223L7.34435 12.1771C6.07135 13.4501 6.07135 15.5141 7.34435 16.7871C8.61735 18.0601 10.6813 18.0601 11.9543 16.7871L18.0849 10.6565Z",fill:"currentColor"},null,-1)]))}const eh=ye(K1,[["render",Q1]]),th=["width","height"],nh=["stroke"],uh=["stroke","stroke-dasharray","stroke-dashoffset"],aa={__name:"progressRing",props:{percent:{type:Number,default:75},size:{type:Number,default:48},color:{type:String,default:"#fff"},bgColor:{type:String,default:"#888"}},setup(e){const t=e,n=o.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(u,r)=>(o.openBlock(),o.createElementBlock("svg",{width:e.size,height:e.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:e.bgColor,"stroke-width":"8"},null,8,nh),o.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
|
|
10
32
|
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,Ps)],8,Ms))}},Rs={},qs={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function js(e,t){return i.openBlock(),i.createElementBlock("svg",qs,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 Hs=W(Rs,[["render",js]]),Us={},Ws={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zs(e,t){return i.openBlock(),i.createElementBlock("svg",Ws,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=W(Us,[["render",Zs]]),Xs={},Gs={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ks(e,t){return i.openBlock(),i.createElementBlock("svg",Gs,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 nr=W(Xs,[["render",Ks]]),Js={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"},Qs=["fill"],ec=["fill"],tc={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,u)=>(i.openBlock(),i.createElementBlock("svg",Js,[i.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,Qs),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,ec)]))}},uc={class:"om_wrap"},nc={class:"om_quick"},rc=["onClick"],ic={class:"om_operate_box"},oc={class:"om_operate_wrap"},ac={class:"file_list"},sc=["src"],cc={key:2,class:"process"},lc={class:"om_operate"},dc=["placeholder"],fc={class:"btn_group"},hc={class:"om_extra",style:{display:"none"}},pc={class:"icon"},mc={class:"text"},bc={class:"om_ai_tips"},gc="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",_c=W({__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:Is,type:"photo"},{name:"文件",icon:$s,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:$=>{l("update:modelValue",$),R()}});i.onMounted(()=>{R()}),i.onUnmounted(()=>{n.value&&(n.value.style.height="auto")});const m=$=>{p.value=$.target.value.replace(/^\n+|\n+$/g,"")},h=$=>{$.type==="upload"?w():l("tag",{...$})},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 $=[{content:p.value,text:p.value}];console.log("====== u file list =======",s.value),s.value.length&&($.push({type:"object_string",content:s.value.map(I=>({type:ke(I.file_type),name:I.file.name,file_id:I.data.id,file_url:I.file_url}))}),a.value=!1),l("send",[...$]),E()},k=$=>{const I=$.target.files[0],M=new FileReader;M.onload=()=>previewUrl.value=M.result,M.readAsDataURL(I)},g=()=>{r.value&&r.value.click()},_=$=>{const I=$.target.files[0];console.log("=== file ===",$),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 $=>{const I=s.value[$].file;console.log("========",I),p.value||(p.value=c.defMsg.fileText);const M=new FormData;M.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[$].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[$].data=v.data}else console.error("上传失败:",te.status)},te.send(M)},w=()=>{E(!0),a.value=!0},C=()=>{E(!0),a.value=!1},E=($=!1)=>{if($)for(let I=s.value.length-1;I>=0;I-=1)A(I);r.value&&(r.value.value=""),s.value=[]},A=$=>{URL.revokeObjectURL(s.value[$].file_url),s.value.splice($,1),r.value&&(r.value.value="")},V=()=>{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"})})},ke=$=>{if($.includes("image"))return"image";if($.includes("application"))return"file";if($.includes("audio"))return"audio"},Ee=()=>{};return($,I)=>(i.openBlock(),i.createElementBlock("div",uc,[i.createElementVNode("div",nc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tagList,M=>(i.openBlock(),i.createElementBlock("div",{class:"tag",key:M.value,onClick:i.withModifiers(te=>h(M),["stop"])},[i.createVNode(Ss,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(M.name),1)],8,rc))),128))]),i.createElementVNode("div",ic,[e.newChat?(i.openBlock(),i.createElementBlock("div",{key:0,class:"new_chat",onClick:i.withModifiers(V,["stop"])},[i.createVNode(nr)])):i.createCommentVNode("",!0),i.createElementVNode("div",oc,[i.createElementVNode("div",{class:i.normalizeClass(["file_list_box",{hidden:!a.value}])},[i.createElementVNode("div",ac,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(M,te)=>(i.openBlock(),i.createElementBlock("div",{key:te,class:"file_card"},[M.file_type.toLocaleLowerCase().includes("pdf")?(i.openBlock(),i.createElementBlock("img",{key:0,class:"pdf",src:gc,width:"100%",alt:"img"})):(i.openBlock(),i.createElementBlock("img",{key:1,class:"img",src:M.file_url,width:"100%",alt:"img"},null,8,sc)),M.percent<100?(i.openBlock(),i.createElementBlock("div",cc,[i.createVNode(ur,{percent:M.percent},null,8,["percent"])])):(i.openBlock(),i.createBlock(Ys,{key:3,class:"close",onClick:i.withModifiers(v=>A(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(Hs)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"file_close",onClick:i.withModifiers(C,["stop"])},[i.createVNode(Yu)])])],2),i.createElementVNode("div",lc,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":I[0]||(I[0]=M=>p.value=M),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,dc),[[i.vModelText,p.value]]),i.createElementVNode("div",fc,[i.createElementVNode("div",{class:"btn",onClick:i.withModifiers(x,["stop"])},[e.isReq==="00"?(i.openBlock(),i.createBlock(Oi,{key:0,style:i.normalizeStyle({color:p.value?"#039938":"#ccc"})},null,8,["style"])):(i.openBlock(),i.createBlock(tc,{key:1,bg:f.value.bg,color:f.value.color},null,8,["bg","color"]))])])])])]),i.createElementVNode("div",hc,[i.createElementVNode("input",{ref_key:"captureInput",ref:o,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:k},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,M=>i.createElementVNode("div",{key:M.type,class:"card",onClick:i.withModifiers(g,["stop"])},[i.createElementVNode("div",pc,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(M.icon)))]),i.createElementVNode("div",mc,i.toDisplayString(M.name),1)])),64)),i.createVNode(ur,{percent:15})]),i.createElementVNode("div",bc,i.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-2044a301"]]),xc={},yc={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 kc(e,t){return i.openBlock(),i.createElementBlock("svg",yc,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 Ec=W(xc,[["render",kc]]),Cc={},wc={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function vc(e,t){return i.openBlock(),i.createElementBlock("svg",wc,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 Dc=W(Cc,[["render",vc]]),Ac=["src","alt"],Fc="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Sc=W({__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&&xt({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=Fc),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,Ac))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),Nc={},Tc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bc(e,t){return i.openBlock(),i.createElementBlock("svg",Tc,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 Ic=W(Nc,[["render",Bc]]),Vc={},Oc={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lc(e,t){return i.openBlock(),i.createElementBlock("svg",Oc,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 $c=W(Vc,[["render",Lc]]),Mc={class:"text"},zc=["onClick"],Pc=W({__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],xt({images:u.value})};return(o,a)=>(i.openBlock(),i.createElementBlock("p",Mc,[(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,zc)):i.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),Rc=e=>{xt({images:e})},qc={class:"name"},jc={class:"address"},rr="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",Hc=W({__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||rr}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:a[0]||(a[0]=i.withModifiers(s=>i.unref(Rc)([e.info.signUrl||rr]),["stop"]))},null,4),i.createElementVNode("div",null,[i.createElementVNode("div",qc,i.toDisplayString(e.info.hpName),1),i.createElementVNode("div",jc,i.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),Uc={__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(Hc,{key:a.hpName,info:a,onSelect:n},null,8,["info"]))),128))],64))}},ir={};function Wc(e){let t=ir[e];if(t)return t;t=ir[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 it(e,t){typeof t!="string"&&(t=it.defaultChars);const u=Wc(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})}it.defaultChars=";/?:@&=+$,#",it.componentChars="";const or={};function Zc(e){let t=or[e];if(t)return t;t=or[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 yt(e,t,u){typeof t!="string"&&(u=t,t=yt.defaultChars),typeof u>"u"&&(u=!0);const n=Zc(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}yt.defaultChars=";/?:@&=+$,-_.!~*'()#",yt.componentChars="-_.!~*'()";function Eu(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 Xt(){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,Xc=/:[0-9]*$/,Gc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Kc=["<",">",'"',"`"," ","\r",`
|
|
12
|
-
`," "],Jc=["{","}","|","\\","^","`"].concat(Kc),Qc=["'"].concat(Jc),ar=["%","/","?",";","#"].concat(Qc),sr=["/","?","#"],el=255,cr=/^[+a-z0-9A-Z_-]{0,63}$/,tl=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,lr={javascript:!0,"javascript:":!0},dr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Cu(e,t){if(e&&e instanceof Xt)return e;const u=new Xt;return u.parse(e,t),u}Xt.prototype.parse=function(e,t){let u,n,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const l=Gc.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&&lr[a])&&(o=o.substr(2),this.slashes=!0)),!lr[a]&&(r||a&&!dr[a])){let l=-1;for(let h=0;h<sr.length;h++)n=o.indexOf(sr[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<ar.length;h++)n=o.indexOf(ar[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,k=h.length;x<k;x++){const g=h[x];if(g&&!g.match(cr)){let _="";for(let b=0,w=g.length;b<w;b++)g.charCodeAt(b)>127?_+="x":_+=g[b];if(!_.match(cr)){const b=h.slice(0,x),w=h.slice(x+1),C=g.match(tl);C&&(b.push(C[1]),w.unshift(C[2])),w.length&&(o=w.join(".")+o),this.hostname=b.join(".");break}}}}this.hostname.length>el&&(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),dr[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Xt.prototype.parseHost=function(e){let t=Xc.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 ul=Object.freeze(Object.defineProperty({__proto__:null,decode:it,encode:yt,format:Eu,parse:Cu},Symbol.toStringTag,{value:"Module"})),fr=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hr=/[\0-\x1F\x7F-\x9F]/,nl=/[\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]/,wu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,pr=/[\$\+<->\^`\|~\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]/,mr=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rl=Object.freeze(Object.defineProperty({__proto__:null,Any:fr,Cc:hr,Cf:nl,P:wu,S:pr,Z:mr},Symbol.toStringTag,{value:"Module"})),il=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ol=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var vu;const al=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]]),sl=(vu=String.fromCodePoint)!==null&&vu!==void 0?vu: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 cl(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=al.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 ll=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 Du(e){return e>=ie.ZERO&&e<=ie.NINE}function dl(e){return e>=ie.UPPER_A&&e<=ie.UPPER_F||e>=ie.LOWER_A&&e<=ie.LOWER_F}function fl(e){return e>=ie.UPPER_A&&e<=ie.UPPER_Z||e>=ie.LOWER_A&&e<=ie.LOWER_Z||Du(e)}function hl(e){return e===ie.EQUALS||fl(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 pl{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)|ll)===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(Du(r)||dl(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(Du(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(cl(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=ml(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Me.Attribute&&(o===0||hl(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 br(e){let t="";const u=new pl(e,n=>t+=sl(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 ml(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 bl=br(il);br(ol);function gr(e,t=Me.Legacy){return bl(e,t)}function gl(e){return Object.prototype.toString.call(e)}function Au(e){return gl(e)==="[object String]"}const _l=Object.prototype.hasOwnProperty;function xl(e,t){return _l.call(e,t)}function Gt(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 _r(e,t,u){return[].concat(e.slice(0,t),u,e.slice(t+1))}function Fu(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 Kt(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 xr=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,yl=/&([a-z#][a-z0-9]{1,31});/gi,kl=new RegExp(xr.source+"|"+yl.source,"gi"),El=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Cl(e,t){if(t.charCodeAt(0)===35&&El.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Fu(n)?Kt(n):e}const u=gr(e);return u!==e?u:e}function wl(e){return e.indexOf("\\")<0?e:e.replace(xr,"$1")}function ot(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(kl,function(t,u,n){return u||Cl(t,n)})}const vl=/[&<>"]/,Dl=/[&<>"]/g,Al={"&":"&","<":"<",">":">",'"':"""};function Fl(e){return Al[e]}function ze(e){return vl.test(e)?e.replace(Dl,Fl):e}const Sl=/[.?*+^$[\]\\(){}|-]/g;function Nl(e){return e.replace(Sl,"\\$&")}function U(e){switch(e){case 9:case 32:return!0}return!1}function kt(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 Et(e){return wu.test(e)||pr.test(e)}function Ct(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 Jt(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Tl=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:_r,assign:Gt,escapeHtml:ze,escapeRE:Nl,fromCodePoint:Kt,has:xl,isMdAsciiPunct:Ct,isPunctChar:Et,isSpace:U,isString:Au,isValidEntityCode:Fu,isWhiteSpace:kt,lib:{mdurl:ul,ucmicro:rl},normalizeReference:Jt,unescapeAll:ot,unescapeMd:wl},Symbol.toStringTag,{value:"Module"}));function Bl(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 Il(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=ot(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=ot(e.slice(t,r)),o.pos=r,o.ok=!0),o}function Vl(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+=ot(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+=ot(e.slice(t,o)),a}const Ol=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Il,parseLinkLabel:Bl,parseLinkTitle:Vl},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
|
-
`},
|
|
14
|
-
`;if(a){const
|
|
15
|
-
`}return`<pre><code${r.renderAttrs(
|
|
16
|
-
`},
|
|
33
|
+
a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":n.value.l,"stroke-dashoffset":n.value.p},null,8,uh)],8,th))}},rh={},ih={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oh(e,t){return o.openBlock(),o.createElementBlock("svg",ih,t[0]||(t[0]=[o.createElementVNode("path",{d:"M13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5L10.5 10.5H4.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5H10.5L10.5 19.5C10.5 20.3284 11.1716 21 12 21C12.8284 21 13.5 20.3284 13.5 19.5V13.5H19.5C20.3284 13.5 21 12.8284 21 12C21 11.1716 20.3284 10.5 19.5 10.5H13.5V4.5Z",fill:"currentColor"},null,-1)]))}const ah=ye(rh,[["render",oh]]),sh={},lh={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ch(e,t){return o.openBlock(),o.createElementBlock("svg",lh,t[0]||(t[0]=[o.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"black","fill-opacity":"0.5"},null,-1),o.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",stroke:"currentColor"},null,-1),o.createElementVNode("path",{d:"M10.8284 6.58588C11.2189 6.19535 11.2189 5.56219 10.8284 5.17167C10.4379 4.78114 9.80471 4.78114 9.41419 5.17167L8 6.58586L6.58581 5.17167C6.19529 4.78114 5.56212 4.78114 5.1716 5.17167C4.78107 5.56219 4.78107 6.19535 5.1716 6.58588L6.58579 8.00007L5.17155 9.41431C4.78103 9.80483 4.78103 10.438 5.17155 10.8285C5.56207 11.219 6.19524 11.219 6.58576 10.8285L8 9.41428L9.41424 10.8285C9.80476 11.219 10.4379 11.219 10.8285 10.8285C11.219 10.438 11.219 9.80483 10.8285 9.41431L9.41421 8.00007L10.8284 6.58588Z",fill:"currentColor"},null,-1)]))}const fh=ye(sh,[["render",ch]]),dh={},hh={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mh(e,t){return o.openBlock(),o.createElementBlock("svg",hh,t[0]||(t[0]=[o.createElementVNode("path",{d:"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 sa=ye(dh,[["render",mh]]),ph={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"},gh=["fill"],bh=["fill"],_h={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",ph,[o.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,gh),o.createElementVNode("path",{fill:e.color,d:"M512.042667 213.333333v74.666667a224 224 0 1 1-195.626667 114.773333l-65.194667-36.394666A298.666667 298.666667 0 1 0 512.042667 213.333333z"},n[0]||(n[0]=[o.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 512 512",to:"360 512 512",dur:"1.5s",repeatCount:"indefinite",fill:"freeze"},null,-1)]),8,bh)]))}},Eh={class:"om_wrap"},yh={class:"om_quick"},kh=["onClick"],xh={class:"om_operate_box"},Ch={class:"om_operate_wrap"},vh={class:"file_list"},wh=["src"],Dh={key:2,class:"process"},Nh={class:"om_operate"},Ah=["placeholder"],Th={class:"btn_group"},Sh={class:"om_extra",style:{display:"none"}},Oh={class:"icon"},Ih={class:"text"},Lh={class:"om_ai_tips"},Fh="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Mh=ye({__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{t:n}=dt(),u=[{name:n("msg_obj.operate.photoAlbum"),icon:Z1,type:"photo"},{name:n("msg_obj.operate.file"),icon:eh,type:"file"}],r=o.ref(null),i=o.ref(null),a=o.ref(null),s=o.ref(!1),l=o.ref([]),c=e,f=t,d=o.computed(()=>({headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"multipart/form-data"}}));o.watch(()=>c.modelValue,()=>{V()});const h=o.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"}}}),g=o.computed({get:()=>c.modelValue,set:X=>{f("update:modelValue",X),V()}});o.onMounted(()=>{V()}),o.onUnmounted(()=>{r.value&&(r.value.style.height="auto")});const p=X=>{g.value=X.target.value.replace(/^\n+|\n+$/g,"")},x=X=>{X.type==="upload"?y():f("tag",{...X})},C=()=>{if(!g.value)return;if(l.value.length&&l.value.findIndex(j=>j.percent<100)>-1){f("call",{message:c.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const X=[{content:g.value,text:g.value}];console.log("====== u file list =======",l.value),l.value.length&&(X.push({type:"object_string",content:l.value.map(j=>({type:R(j.file_type),name:j.file.name,file_id:j.data.id,file_url:j.file_url}))}),s.value=!1),f("send",[...X]),w()},A=X=>{const j=X.target.files[0],K=new FileReader;K.onload=()=>previewUrl.value=K.result,K.readAsDataURL(j)},v=()=>{i.value&&i.value.click()},m=X=>{const j=X.target.files[0];console.log("=== file ===",X),j&&(l.value.push({file:j,file_type:j.type,file_url:URL.createObjectURL(j),size:(j.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",l.value),E(l.value.length-1))},E=async X=>{const j=l.value[X].file;console.log("========",j),g.value||(g.value=c.defMsg.fileText);const K=new FormData;K.append("file",j);const _e=new XMLHttpRequest;_e.open("POST","https://api.coze.cn/v1/files/upload"),_e.setRequestHeader("Authorization",d.value.headers.Authorization),_e.upload.onprogress=F=>{if(F.lengthComputable){const q=Math.round(F.loaded/F.total*100);console.log(`======进度======:${q}%`),l.value[X].percent=q}},_e.onreadystatechange=function(){if(console.log("============",_e),_e.readyState===XMLHttpRequest.DONE)if(_e.status===200){console.log("上传成功:",_e.responseText);const F=JSON.parse(_e.response);l.value[X].data=F.data}else console.error("上传失败:",_e.status)},_e.send(K)},y=()=>{w(!0),s.value=!0},_=()=>{w(!0),s.value=!1},w=(X=!1)=>{if(X)for(let j=l.value.length-1;j>=0;j-=1)D(j);i.value&&(i.value.value=""),l.value=[]},D=X=>{URL.revokeObjectURL(l.value[X].file_url),l.value.splice(X,1),i.value&&(i.value.value="")},T=()=>{f("call",{type:"new_chat"})},V=()=>{o.nextTick(()=>{r.value&&(r.value.style.height="auto",r.value.style.height=Math.min(r.value.scrollHeight,72)+"px")})},ue=()=>{o.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},R=X=>{if(X.includes("image"))return"image";if(X.includes("application"))return"file";if(X.includes("audio"))return"audio"},be=()=>{};return(X,j)=>(o.openBlock(),o.createElementBlock("div",Eh,[o.createElementVNode("div",yh,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tagList,K=>(o.openBlock(),o.createElementBlock("div",{class:"tag",key:K.value,onClick:o.withModifiers(_e=>x(K),["stop"])},[o.createVNode(W1,{class:"icon"}),o.createTextVNode(" "+o.toDisplayString(K.name),1)],8,kh))),128))]),o.createElementVNode("div",xh,[e.newChat?(o.openBlock(),o.createElementBlock("div",{key:0,class:"new_chat",onClick:o.withModifiers(T,["stop"])},[o.createVNode(sa)])):o.createCommentVNode("",!0),o.createElementVNode("div",Ch,[o.createElementVNode("div",{class:o.normalizeClass(["file_list_box",{hidden:!s.value}])},[o.createElementVNode("div",vh,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(K,_e)=>(o.openBlock(),o.createElementBlock("div",{key:_e,class:"file_card"},[K.file_type.toLocaleLowerCase().includes("pdf")?(o.openBlock(),o.createElementBlock("img",{key:0,class:"pdf",src:Fh,width:"100%",alt:"img"})):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:K.file_url,width:"100%",alt:"img"},null,8,wh)),K.percent<100?(o.openBlock(),o.createElementBlock("div",Dh,[o.createVNode(aa,{percent:K.percent},null,8,["percent"])])):(o.openBlock(),o.createBlock(fh,{key:3,class:"close",onClick:o.withModifiers(F=>D(_e),["stop"])},null,8,["onClick"]))]))),128)),l.value.length<4?(o.openBlock(),o.createElementBlock("div",{key:0,class:"file_add",onClick:o.withModifiers(v,["stop"])},[o.createVNode(ah)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"file_close",onClick:o.withModifiers(_,["stop"])},[o.createVNode(Qi)])])],2),o.createElementVNode("div",Nh,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":j[0]||(j[0]=K=>g.value=K),ref_key:"txtEle",ref:r,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:p,onKeyup:o.withKeys(C,["enter"]),onFocus:ue,onBlur:be},null,40,Ah),[[o.vModelText,g.value]]),o.createElementVNode("div",Th,[o.createElementVNode("div",{class:"btn",onClick:o.withModifiers(C,["stop"])},[e.isReq==="00"?(o.openBlock(),o.createBlock(Hc,{key:0,style:o.normalizeStyle({color:g.value?"#039938":"#ccc"})},null,8,["style"])):(o.openBlock(),o.createBlock(_h,{key:1,bg:h.value.bg,color:h.value.color},null,8,["bg","color"]))])])])])]),o.createElementVNode("div",Sh,[o.createElementVNode("input",{ref_key:"captureInput",ref:a,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:A},null,544),o.createElementVNode("input",{ref_key:"uploadInput",ref:i,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:m},null,544),(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(u,K=>o.createElementVNode("div",{key:K.type,class:"card",onClick:o.withModifiers(v,["stop"])},[o.createElementVNode("div",Oh,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(K.icon)))]),o.createElementVNode("div",Ih,o.toDisplayString(K.name),1)])),64)),o.createVNode(aa,{percent:15})]),o.createElementVNode("div",Lh,o.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-1c67e06f"]]),Ph={},Vh={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 $h(e,t){return o.openBlock(),o.createElementBlock("svg",Vh,t[0]||(t[0]=[o.createElementVNode("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"currentColor"},null,-1)]))}const Rh=ye(Ph,[["render",$h]]),Bh={},jh={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function zh(e,t){return o.openBlock(),o.createElementBlock("svg",jh,t[0]||(t[0]=[o.createStaticVNode('<circle id="ballA" cx="220" cy="220" r="50" fill="rgba(0,0,0,0.8)" opacity="0.1"><animate attributeName="cx" values="220; 40; 220; 400; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="50; 80; 100; 80; 50" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="0.1; 0.6; 1; 0.6; 0.1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle><circle id="ballB" cx="220" cy="220" r="100" fill="rgba(0,0,0,0.8)" opacity="1"><animate attributeName="cx" values="220; 400; 220; 40; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="100; 80; 50; 80; 100" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="1; 0.6; 0.1; 0.6; 1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle>',2)]))}const Uh=ye(Bh,[["render",zh]]),qh=["src","alt"],Hh="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Wh=ye({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,n=()=>{const r=t.list.filter(i=>i.type==="image"&&i.file_url);r.length&&On({images:r.map(i=>i.file_url)})},u=({type:r,name:i,file_url:a})=>{console.log(t.list);let s=a;return r==="file"&&i.toLowerCase().endsWith("pdf")&&(s=Hh),s};return(r,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["img_wrap",e.list.length>1?"grid_2":"grid_1"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.list,a=>(o.openBlock(),o.createElementBlock("img",{key:a.file_id,class:"img",width:"100%",src:u(a),alt:a.name,onClick:o.withModifiers(n,["stop"])},null,8,qh))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),Yh={},Gh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xh(e,t){return o.openBlock(),o.createElementBlock("svg",Gh,t[0]||(t[0]=[o.createElementVNode("path",{d:"M18.3752 6.19542C18.3663 5.84188 18.0971 5.61907 17.7113 5.62719C17.3249 5.63532 17.1259 5.87105 17.0624 6.22473C17.0295 6.40814 17.0401 6.60002 17.0382 6.78818C17.0349 7.1092 17.0373 7.43028 17.0373 7.75135C16.9871 7.77411 16.9369 7.79688 16.8867 7.81966C16.7181 7.65766 16.5524 7.4926 16.3805 7.33415C14.8317 5.90621 12.9939 5.37461 10.9359 5.69056C8.03017 6.13662 5.87726 8.55583 5.62463 11.5758C5.38764 14.4087 7.21523 17.1459 9.95849 18.0667C12.7336 18.9982 15.8214 17.914 17.3822 15.4574C17.4827 15.2992 17.5871 15.1369 17.6484 14.962C17.7675 14.6224 17.7077 14.3062 17.3722 14.1247C17.049 13.9499 16.7426 14.0201 16.5131 14.3168C16.3983 14.4652 16.3111 14.6344 16.204 14.7891C15.2363 16.1865 13.907 16.9479 12.206 17.0308C9.92842 17.1419 7.84057 15.6645 7.17679 13.487C6.49124 11.238 7.43946 8.81484 9.46764 7.6327C11.4392 6.48354 13.9702 6.81332 15.5656 8.43366C15.6825 8.55231 15.7612 8.70851 15.9506 8.98094C15.3277 8.98094 14.8482 8.95558 14.3726 8.98836C13.9335 9.01865 13.7009 9.27998 13.7045 9.64685C13.708 10.0041 13.9569 10.2996 14.3795 10.31C15.4824 10.3371 16.5866 10.3273 17.6901 10.3155C18.0536 10.3117 18.3546 10.1036 18.3656 9.74431C18.4019 8.56213 18.4048 7.37778 18.3752 6.19542Z",fill:"currentColor"},[o.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1.5s",repeatCount:"indefinite"})],-1)]))}const Zh=ye(Yh,[["render",Xh]]),Kh={},Jh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qh(e,t){return o.openBlock(),o.createElementBlock("svg",Jh,t[0]||(t[0]=[o.createElementVNode("path",{d:"M3.78271 12C3.78271 13.0792 3.99526 14.1477 4.40822 15.1447C4.82118 16.1416 5.42646 17.0475 6.18951 17.8106C6.95256 18.5736 7.85843 19.1789 8.8554 19.5919C9.85238 20.0048 10.9209 20.2174 12 20.2174C13.0792 20.2174 14.1477 20.0048 15.1447 19.5919C16.1416 19.1789 17.0475 18.5736 17.8106 17.8106C18.5736 17.0475 19.1789 16.1416 19.5919 15.1447C20.0048 14.1477 20.2174 13.0792 20.2174 12C20.2174 10.9209 20.0048 9.85238 19.5919 8.8554C19.1789 7.85843 18.5736 6.95256 17.8106 6.18951C17.0475 5.42646 16.1416 4.82118 15.1447 4.40822C14.1477 3.99526 13.0792 3.78271 12 3.78271C10.9209 3.78271 9.85238 3.99526 8.8554 4.40822C7.85843 4.82118 6.95256 5.42646 6.18951 6.18951C5.42646 6.95256 4.82118 7.85843 4.40822 8.8554C3.99526 9.85238 3.78271 10.9209 3.78271 12Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M11.0677 14.4192L8.08502 11.4365C7.87938 11.2308 7.54542 11.2308 7.33978 11.4365C7.13414 11.6421 7.13414 11.9761 7.33978 12.1817L10.3225 15.1644C10.5281 15.3701 10.8621 15.3701 11.0677 15.1644C11.2751 14.9605 11.2751 14.6266 11.0677 14.4192Z",fill:"#fff"},null,-1),o.createElementVNode("path",{d:"M16.6693 8.84027C16.4636 8.63462 16.1297 8.63462 15.924 8.84027L10.456 14.31C10.2503 14.5157 10.2503 14.8496 10.456 15.0553C10.6616 15.2609 10.9956 15.2609 11.2012 15.0553L16.6693 9.58727C16.8767 9.37986 16.8767 9.04591 16.6693 8.84027Z",fill:"#fff"},null,-1)]))}const em=ye(Kh,[["render",Qh]]),tm={class:"text"},nm=["onClick"],um=ye({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,n=o.ref([]),u=o.computed(()=>{const i=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,a=[...t.content.matchAll(i)];let s=t.content,l=0;const c=[];return a.length?(a.forEach((f,d)=>{c.push({type:"text",content:f.input.slice(l,f.index).replace(i,"")}),c.push({type:"link",string:f[0],...JSON.parse(f[0].replace(i,'{"content":"[$1]","url":"$2"}'))}),s=f.input.slice(f.index).replace(f[0],""),l=f.index}),s.length&&c.push({type:"text",content:s})):c.push({type:"text",content:s}),c}),r=({url:i})=>{n.value=[i],On({images:n.value})};return(i,a)=>(o.openBlock(),o.createElementBlock("p",tm,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:l},[s.type==="text"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.content),1)],64)):o.createCommentVNode("",!0),s.type==="link"?(o.openBlock(),o.createElementBlock("a",{key:1,class:"link",onClick:o.withModifiers(c=>r(s),["stop"])},o.toDisplayString(s.content),9,nm)):o.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),rm=e=>{On({images:e})},im={class:"name"},om={class:"address"},la="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",am=ye({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n=e,u=t,r=()=>{u("select",{type:"chat",content:n.info.hpName,text:n.info.hpName})};return(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:"sc_wrap",onClick:o.withModifiers(r,["stop"])},[o.createElementVNode("div",{class:"img",style:o.normalizeStyle({background:`url(${e.info.signUrl||la}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:a[0]||(a[0]=o.withModifiers(s=>o.unref(rm)([e.info.signUrl||la]),["stop"]))},null,4),o.createElementVNode("div",null,[o.createElementVNode("div",im,o.toDisplayString(e.info.hpName),1),o.createElementVNode("div",om,o.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),sm={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const{t:n}=dt(),u=t,r=i=>{u("select",{...i})};return(i,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("msg_obj.store.selectStore")),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.list,s=>(o.openBlock(),o.createBlock(am,{key:s.hpName,info:s,onSelect:r},null,8,["info"]))),128))],64))}},ca={};function lm(e){let t=ca[e];if(t)return t;t=ca[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function cn(e,t){typeof t!="string"&&(t=cn.defaultChars);const n=lm(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let i=0,a=u.length;i<a;i+=3){const s=parseInt(u.slice(i+1,i+3),16);if(s<128){r+=n[s];continue}if((s&224)===192&&i+3<a){const l=parseInt(u.slice(i+4,i+6),16);if((l&192)===128){const c=s<<6&1984|l&63;c<128?r+="��":r+=String.fromCharCode(c),i+=3;continue}}if((s&240)===224&&i+6<a){const l=parseInt(u.slice(i+4,i+6),16),c=parseInt(u.slice(i+7,i+9),16);if((l&192)===128&&(c&192)===128){const f=s<<12&61440|l<<6&4032|c&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),i+=6;continue}}if((s&248)===240&&i+9<a){const l=parseInt(u.slice(i+4,i+6),16),c=parseInt(u.slice(i+7,i+9),16),f=parseInt(u.slice(i+10,i+12),16);if((l&192)===128&&(c&192)===128&&(f&192)===128){let d=s<<18&1835008|l<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}r+="�"}return r})}cn.defaultChars=";/?:@&=+$,#",cn.componentChars="";const fa={};function cm(e){let t=fa[e];if(t)return t;t=fa[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function In(e,t,n){typeof t!="string"&&(n=t,t=In.defaultChars),typeof n>"u"&&(n=!0);const u=cm(t);let r="";for(let i=0,a=e.length;i<a;i++){const s=e.charCodeAt(i);if(n&&s===37&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(s<128){r+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a){const l=e.charCodeAt(i+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}In.defaultChars=";/?:@&=+$,-_.!~*'()#",In.componentChars="-_.!~*'()";function fr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function bu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const fm=/^([a-z0-9.+-]+:)/i,dm=/:[0-9]*$/,hm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mm=["<",">",'"',"`"," ","\r",`
|
|
34
|
+
`," "],pm=["{","}","|","\\","^","`"].concat(mm),gm=["'"].concat(pm),da=["%","/","?",";","#"].concat(gm),ha=["/","?","#"],bm=255,ma=/^[+a-z0-9A-Z_-]{0,63}$/,_m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pa={javascript:!0,"javascript:":!0},ga={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function dr(e,t){if(e&&e instanceof bu)return e;const n=new bu;return n.parse(e,t),n}bu.prototype.parse=function(e,t){let n,u,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const c=hm.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=fm.exec(i);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,i=i.substr(a.length)),(t||a||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(a&&pa[a])&&(i=i.substr(2),this.slashes=!0)),!pa[a]&&(r||a&&!ga[a])){let c=-1;for(let p=0;p<ha.length;p++)u=i.indexOf(ha[p]),u!==-1&&(c===-1||u<c)&&(c=u);let f,d;c===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",c),d!==-1&&(f=i.slice(0,d),i=i.slice(d+1),this.auth=f),c=-1;for(let p=0;p<da.length;p++)u=i.indexOf(da[p]),u!==-1&&(c===-1||u<c)&&(c=u);c===-1&&(c=i.length),i[c-1]===":"&&c--;const h=i.slice(0,c);i=i.slice(c),this.parseHost(h),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const p=this.hostname.split(/\./);for(let x=0,C=p.length;x<C;x++){const A=p[x];if(A&&!A.match(ma)){let v="";for(let m=0,E=A.length;m<E;m++)A.charCodeAt(m)>127?v+="x":v+=A[m];if(!v.match(ma)){const m=p.slice(0,x),E=p.slice(x+1),y=A.match(_m);y&&(m.push(y[1]),E.unshift(y[2])),E.length&&(i=E.join(".")+i),this.hostname=m.join(".");break}}}}this.hostname.length>bm&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));const l=i.indexOf("?");return l!==-1&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),ga[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bu.prototype.parseHost=function(e){let t=dm.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Em=Object.freeze(Object.defineProperty({__proto__:null,decode:cn,encode:In,format:fr,parse:dr},Symbol.toStringTag,{value:"Module"})),ba=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_a=/[\0-\x1F\x7F-\x9F]/,ym=/[\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]/,hr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Ea=/[\$\+<->\^`\|~\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]/,ya=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,km=Object.freeze(Object.defineProperty({__proto__:null,Any:ba,Cc:_a,Cf:ym,P:hr,S:Ea,Z:ya},Symbol.toStringTag,{value:"Module"})),xm=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Cm=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var mr;const vm=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]]),wm=(mr=String.fromCodePoint)!==null&&mr!==void 0?mr: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 Dm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vm.get(e))!==null&&t!==void 0?t:e}var Fe;(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"})(Fe||(Fe={}));const Nm=32;var Ot;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ot||(Ot={}));function pr(e){return e>=Fe.ZERO&&e<=Fe.NINE}function Am(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_F||e>=Fe.LOWER_A&&e<=Fe.LOWER_F}function Tm(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_Z||e>=Fe.LOWER_A&&e<=Fe.LOWER_Z||pr(e)}function Sm(e){return e===Fe.EQUALS||Tm(e)}var Me;(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"})(Me||(Me={}));var It;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(It||(It={}));class Om{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=It.Strict}startEntity(t){this.decodeMode=t,this.state=Me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Me.EntityStart:return t.charCodeAt(n)===Fe.NUM?(this.state=Me.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Me.NamedEntity,this.stateNamedEntity(t,n));case Me.NumericStart:return this.stateNumericStart(t,n);case Me.NumericDecimal:return this.stateNumericDecimal(t,n);case Me.NumericHex:return this.stateNumericHex(t,n);case Me.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Nm)===Fe.LOWER_X?(this.state=Me.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Me.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const i=u-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(pr(r)||Am(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(pr(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Fe.SEMI)this.consumed+=1;else if(this.decodeMode===It.Strict)return 0;return this.emitCodePoint(Dm(this.result),this.consumed),this.errors&&(t!==Fe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],i=(r&Ot.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Im(u,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===It.Attribute&&(i===0||Sm(a))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],i=(r&Ot.VALUE_LENGTH)>>14,i!==0){if(a===Fe.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==It.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&Ot.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~Ot.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case Me.NamedEntity:return this.result!==0&&(this.decodeMode!==It.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Me.NumericDecimal:return this.emitNumericEntity(0,2);case Me.NumericHex:return this.emitNumericEntity(0,3);case Me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Me.EntityStart:return 0}}}function ka(e){let t="";const n=new Om(e,u=>t+=wm(u));return function(r,i){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(a,s),n.startEntity(i);const c=n.write(r,s+1);if(c<0){a=s+n.end();break}a=s+c,s=c===0?a+1:a}const l=t+r.slice(a);return t="",l}}function Im(e,t,n,u){const r=(t&Ot.BRANCH_LENGTH)>>7,i=t&Ot.JUMP_TABLE;if(r===0)return i!==0&&u===i?n:-1;if(i){const l=u-i;return l<0||l>=r?-1:e[n+l]-1}let a=n,s=a+r-1;for(;a<=s;){const l=a+s>>>1,c=e[l];if(c<u)a=l+1;else if(c>u)s=l-1;else return e[l+r]}return-1}const Lm=ka(xm);ka(Cm);function xa(e,t=It.Legacy){return Lm(e,t)}function Fm(e){return Object.prototype.toString.call(e)}function gr(e){return Fm(e)==="[object String]"}const Mm=Object.prototype.hasOwnProperty;function Pm(e,t){return Mm.call(e,t)}function _u(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Ca(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function br(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 Eu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const va=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Vm=/&([a-z#][a-z0-9]{1,31});/gi,$m=new RegExp(va.source+"|"+Vm.source,"gi"),Rm=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Bm(e,t){if(t.charCodeAt(0)===35&&Rm.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return br(u)?Eu(u):e}const n=xa(e);return n!==e?n:e}function jm(e){return e.indexOf("\\")<0?e:e.replace(va,"$1")}function fn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace($m,function(t,n,u){return n||Bm(t,u)})}const zm=/[&<>"]/,Um=/[&<>"]/g,qm={"&":"&","<":"<",">":">",'"':"""};function Hm(e){return qm[e]}function Lt(e){return zm.test(e)?e.replace(Um,Hm):e}const Wm=/[.?*+^$[\]\\(){}|-]/g;function Ym(e){return e.replace(Wm,"\\$&")}function ge(e){switch(e){case 9:case 32:return!0}return!1}function Ln(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 Fn(e){return hr.test(e)||Ea.test(e)}function Mn(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 yu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Gm=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ca,assign:_u,escapeHtml:Lt,escapeRE:Ym,fromCodePoint:Eu,has:Pm,isMdAsciiPunct:Mn,isPunctChar:Fn,isSpace:ge,isString:gr,isValidEntityCode:br,isWhiteSpace:Ln,lib:{mdurl:Em,ucmicro:km},normalizeReference:yu,unescapeAll:fn,unescapeMd:jm},Symbol.toStringTag,{value:"Module"}));function Xm(e,t,n){let u,r,i,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),i===93&&(u--,u===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),i===91){if(a===e.pos-1)u++;else if(n)return e.pos=l,-1}}let c=-1;return r&&(c=e.pos),e.pos=l,c}function Zm(e,t,n){let u,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return i;if(u===62)return i.pos=r+1,i.str=fn(e.slice(t+1,r)),i.ok=!0,i;if(u===92&&r+1<n){r+=2;continue}r++}return i}let a=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(u===40&&(a++,a>32))return i;if(u===41){if(a===0)break;a--}r++}return t===r||a!==0||(i.str=fn(e.slice(t,r)),i.pos=r,i.ok=!0),i}function Km(e,t,n,u){let r,i=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)a.str=u.str,a.marker=u.marker;else{if(i>=n)return a;let s=e.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return a;t++,i++,s===40&&(s=41),a.marker=s}for(;i<n;){if(r=e.charCodeAt(i),r===a.marker)return a.pos=i+1,a.str+=fn(e.slice(t,i)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&i+1<n&&i++,i++}return a.can_continue=!0,a.str+=fn(e.slice(t,i)),a}const Jm=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Zm,parseLinkLabel:Xm,parseLinkTitle:Km},Symbol.toStringTag,{value:"Module"})),ht={};ht.code_inline=function(e,t,n,u,r){const i=e[t];return"<code"+r.renderAttrs(i)+">"+Lt(i.content)+"</code>"},ht.code_block=function(e,t,n,u,r){const i=e[t];return"<pre"+r.renderAttrs(i)+"><code>"+Lt(e[t].content)+`</code></pre>
|
|
35
|
+
`},ht.fence=function(e,t,n,u,r){const i=e[t],a=i.info?fn(i.info).trim():"";let s="",l="";if(a){const f=a.split(/(\s+)/g);s=f[0],l=f.slice(2).join("")}let c;if(n.highlight?c=n.highlight(i.content,s,l)||Lt(i.content):c=Lt(i.content),c.indexOf("<pre")===0)return c+`
|
|
36
|
+
`;if(a){const f=i.attrIndex("class"),d=i.attrs?i.attrs.slice():[];f<0?d.push(["class",n.langPrefix+s]):(d[f]=d[f].slice(),d[f][1]+=" "+n.langPrefix+s);const h={attrs:d};return`<pre><code${r.renderAttrs(h)}>${c}</code></pre>
|
|
37
|
+
`}return`<pre><code${r.renderAttrs(i)}>${c}</code></pre>
|
|
38
|
+
`},ht.image=function(e,t,n,u,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,u),r.renderToken(e,t,n)},ht.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
17
39
|
`:`<br>
|
|
18
|
-
`},
|
|
40
|
+
`},ht.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
19
41
|
`:`<br>
|
|
20
42
|
`:`
|
|
21
|
-
`},
|
|
22
|
-
`),
|
|
23
|
-
`:">",
|
|
24
|
-
`;break}return
|
|
25
|
-
`),t=t.replace($l,"�"),e.src=t}function zl(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 Pl(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 Rl(e){return/^<a[>\s]/i.test(e)}function ql(e){return/^<\/a\s*>/i.test(e)}function jl(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"&&(Rl(s.content)&&o>0&&o--,ql(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 k=l[m].text;l[m].schema?l[m].schema==="mailto:"&&!/^mailto:/i.test(k)?k=e.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=e.md.normalizeLinkText(k):k=e.md.normalizeLinkText("http://"+k).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=k,b.level=f,d.push(b);const w=new e.Token("link_close","a",-1);w.level=--f,w.markup="linkify",w.info="auto",d.push(w),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=_r(r,a,d)}}}}const kr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Hl=/\((c|tm|r)\)/i,Ul=/\((c|tm|r)\)/ig,Wl={c:"©",r:"®",tm:"™"};function Zl(e,t){return Wl[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(Ul,Zl)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Xl(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&kr.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 Gl(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Hl.test(e.tokens[t].content)&&Yl(e.tokens[t].children),kr.test(e.tokens[t].content)&&Xl(e.tokens[t].children))}const Kl=/['"]/,Er=/['"]/g,Cr="’";function Qt(e,t,u){return e.slice(0,t)+u+e.slice(t+1)}function Jl(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;){Er.lastIndex=c;const d=Er.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 k=Ct(h)||Et(String.fromCharCode(h)),g=Ct(x)||Et(String.fromCharCode(x)),_=kt(h),b=kt(x);if(b?f=!1:g&&(_||k||(f=!1)),_?p=!1:k&&(b||g||(p=!1)),x===34&&d[0]==='"'&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=k,p=g),!f&&!p){m&&(o.content=Qt(o.content,d.index,Cr));continue}if(p)for(u=n.length-1;u>=0;u--){let w=n[u];if(n[u].level<a)break;if(w.single===m&&n[u].level===a){w=n[u];let C,E;m?(C=t.md.options.quotes[2],E=t.md.options.quotes[3]):(C=t.md.options.quotes[0],E=t.md.options.quotes[1]),o.content=Qt(o.content,d.index,E),e[w.token].content=Qt(e[w.token].content,w.pos,C),c+=E.length-1,w.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=Qt(o.content,d.index,Cr))}}}function Ql(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Kl.test(e.tokens[t].content)||Jl(e.tokens[t].children,e)}function e1(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 Su=[["normalize",Ml],["block",zl],["inline",Pl],["linkify",jl],["replacements",Gl],["smartquotes",Ql],["text_join",e1]];function Nu(){this.ruler=new le;for(let e=0;e<Su.length;e++)this.ruler.push(Su[e][0],Su[e][1])}Nu.prototype.process=function(e){const t=this.ruler.getRules("");for(let u=0,n=t.length;u<n;u++)t[u](e)},Nu.prototype.State=yr;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 t1=65536;function Tu(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(u,n)}function wr(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 u1(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 w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!U(w))return!1;o++}let c=Tu(e,t+1),l=c.split("|");const d=[];for(let w=0;w<l.length;w++){const C=l[w].trim();if(!C){if(w===0||w===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=Tu(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=wr(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 k=e.push("thead_open","thead",1);k.map=[t,t+1];const g=e.push("tr_open","tr",1);g.map=[t,t+1];for(let w=0;w<l.length;w++){const C=e.push("th_open","th",1);d[w]&&(C.attrs=[["style","text-align:"+d[w]]]);const E=e.push("inline","",0);E.content=l[w].trim(),E.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 w=!1;for(let E=0,A=m.length;E<A;E++)if(m[E](e,r,u,!0)){w=!0;break}if(w||(c=Tu(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(l=wr(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),b+=f-l.length,b>t1))break;if(r===t+2){const E=e.push("tbody_open","tbody",1);E.map=_=[t+2,0]}const C=e.push("tr_open","tr",1);C.map=[r,r+1];for(let E=0;E<f;E++){const A=e.push("td_open","td",1);d[E]&&(A.attrs=[["style","text-align:"+d[E]]]);const V=e.push("inline","",0);V.content=l[E]?l[E].trim():"",V.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 n1(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 r1(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 i1(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,E,A;e.src.charCodeAt(r)===32?(r++,C++,A=!1,E=!0):e.src.charCodeAt(r)===9?(E=!0,(e.bsCount[h]+C)%4===3?(r++,C++,A=!1):A=!0):E=!1;let V=C;for(s.push(e.bMarks[h]),e.bMarks[h]=r;r<o;){const R=e.src.charCodeAt(r);if(U(R))R===9?V+=4-(V+e.bsCount[h]+(A?1:0))%4:V++;else break;r++}m=r>=o,c.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(E?1:0),l.push(e.sCount[h]),e.sCount[h]=V-C,d.push(e.tShift[h]),e.tShift[h]=r-e.bMarks[h];continue}if(m)break;let w=!1;for(let C=0,E=f.length;C<E;C++)if(f[C](e,h,u,!0)){w=!0;break}if(w){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 k=e.push("blockquote_open","blockquote",1);k.markup=">";const g=[t,0];k.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 o1(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 vr(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 Dr(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 a1(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 s1(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=Dr(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=vr(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 k=[c,0];s.map=k,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 w=e.sCount[c]+m-(e.bMarks[c]+e.tShift[c]);let C=w;for(;o<r;){const M=e.src.charCodeAt(o);if(M===9)C+=4-(C+e.bsCount[c])%4;else if(M===32)C++;else break;o++}const E=o;let A;E>=r?A=1:A=C-w,A>4&&(A=1);const V=w+A;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,ke=e.tShift[c],Ee=e.sCount[c],$=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=V,e.tight=!0,e.tShift[c]=E-e.bMarks[c],e.sCount[c]=C,E>=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=$,e.tShift[c]=ke,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 M=0,te=_.length;M<te;M++)if(_[M](e,c,u,!0)){I=!0;break}if(I)break;if(f){if(m=Dr(e,c),m<0)break;a=e.bMarks[c]+e.tShift[c]}else if(m=vr(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),k[1]=c,e.line=c,e.parentType=b,l&&a1(e,x),!0}function c1(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 w=!1;if(e.sCount[_]-e.blkIndent>3&&(w=!0),e.sCount[_]<0&&(w=!0),!w){const A=e.md.block.ruler.getRules("reference"),V=e.parentType;e.parentType="reference";let R=!1;for(let Q=0,ke=A.length;Q<ke;Q++)if(A[Q](e,_,b,!0)){R=!0;break}if(e.parentType=V,R)return null}const C=e.bMarks[_]+e.tShift[_],E=e.eMarks[_];return e.src.slice(C,E+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 k;for(r<o&&h!==r&&x.ok?(k=x.str,r=x.pos):(k="",r=p,a=m);r<o;){const _=c.charCodeAt(r);if(!U(_))break;r++}if(r<o&&c.charCodeAt(r)!==10&&k)for(k="",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=Jt(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:k,href:f}),e.line=a),!0):!1}const l1=["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"],d1="[a-zA-Z_:][a-zA-Z0-9:._-]*",f1="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ar="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+d1+"(?:\\s*=\\s*"+f1+")?)")+"*\\s*\\/?>",Fr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",h1="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",p1="<[?][\\s\\S]*?[?]>",m1="<![A-Za-z][^>]*>",b1="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",g1=new RegExp("^(?:"+Ar+"|"+Fr+"|"+h1+"|"+p1+"|"+m1+"|"+b1+")"),_1=new RegExp("^(?:"+Ar+"|"+Fr+")"),st=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+l1.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(_1.source+"\\s*$"),/^$/,!1]];function x1(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<st.length&&!st[s][0].test(a);s++);if(s===st.length)return!1;if(n)return st[s][2];let c=t+1;if(!st[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),st[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 y1(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 k1(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 E1(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 eu=[["table",u1,["paragraph","reference"]],["code",n1],["fence",r1,["paragraph","reference","blockquote","list"]],["blockquote",i1,["paragraph","reference","blockquote","list"]],["hr",o1,["paragraph","reference","blockquote","list"]],["list",s1,["paragraph","reference","blockquote"]],["reference",c1],["html_block",x1,["paragraph","reference","blockquote"]],["heading",y1,["paragraph","reference","blockquote"]],["lheading",k1],["paragraph",E1]];function tu(){this.ruler=new le;for(let e=0;e<eu.length;e++)this.ruler.push(eu[e][0],eu[e][1],{alt:(eu[e][2]||[]).slice()})}tu.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)}},tu.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)},tu.prototype.State=Fe;function wt(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}wt.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},wt.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},wt.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=Ct(r)||Et(String.fromCharCode(r)),l=Ct(s)||Et(String.fromCharCode(s)),d=kt(r),f=kt(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}},wt.prototype.Token=ve;function C1(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 w1(e,t){let u=e.pos;for(;u<e.posMax&&!C1(e.src.charCodeAt(u));)u++;return u===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,u)),e.pos=u,!0)}const v1=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function D1(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(v1);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 A1(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 F1(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 S1(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 Sr(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 T1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Sr(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Sr(e,t[n].delimiters)}const Nr={tokenize:N1,postProcess:T1};function B1(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 Tr(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 I1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Tr(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Tr(e,t[n].delimiters)}const Br={tokenize:B1,postProcess:I1};function V1(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[Jt(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),k=[["href",a]];x.attrs=k,s&&k.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 O1(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[Jt(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 k=e.push("image","img",0),g=[["src",d],["alt",""]];k.attrs=g,k.children=x,k.content=n,c&&g.push(["title",c])}return e.pos=o,e.posMax=p,!0}const L1=/^([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])?)*)$/,$1=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function M1(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($1.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(L1.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 z1(e){return/^<a[>\s]/i.test(e)}function P1(e){return/^<\/a\s*>/i.test(e)}function R1(e){const t=e|32;return t>=97&&t<=122}function q1(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&&!R1(r))return!1;const o=e.src.slice(n).match(g1);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],z1(a.content)&&e.linkLevel++,P1(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const j1=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,H1=/^&([a-z][a-z0-9]{1,31});/i;function U1(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(j1);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=Fu(a)?Kt(a):Kt(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(u).match(H1);if(o){const a=gr(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 Ir(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 W1(e){const t=e.tokens_meta,u=e.tokens_meta.length;Ir(e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Ir(t[n].delimiters)}function Z1(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 Iu=[["text",w1],["linkify",D1],["newline",A1],["escape",F1],["backticks",S1],["strikethrough",Nr.tokenize],["emphasis",Br.tokenize],["link",V1],["image",O1],["autolink",M1],["html_inline",q1],["entity",U1]],Vu=[["balance_pairs",W1],["strikethrough",Nr.postProcess],["emphasis",Br.postProcess],["fragments_join",Z1]];function vt(){this.ruler=new le;for(let e=0;e<Iu.length;e++)this.ruler.push(Iu[e][0],Iu[e][1]);this.ruler2=new le;for(let e=0;e<Vu.length;e++)this.ruler2.push(Vu[e][0],Vu[e][1])}vt.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},vt.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()},vt.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)},vt.prototype.State=wt;function Y1(e){const t={};e=e||{},t.src_Any=fr.source,t.src_Cc=hr.source,t.src_Z=mr.source,t.src_P=wu.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 Ou(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){u&&Object.keys(u).forEach(function(n){e[n]=u[n]})}),e}function uu(e){return Object.prototype.toString.call(e)}function X1(e){return uu(e)==="[object String]"}function G1(e){return uu(e)==="[object Object]"}function K1(e){return uu(e)==="[object RegExp]"}function Vr(e){return uu(e)==="[object Function]"}function J1(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Or={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Q1(e){return Object.keys(e||{}).reduce(function(t,u){return t||Or.hasOwnProperty(u)},!1)}const ed={"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}}},td="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]",ud="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function nd(e){e.__index__=-1,e.__text_cache__=""}function rd(e){return function(t,u){const n=t.slice(u);return e.test(n)?n.match(e)[0].length:0}}function Lr(){return function(e,t){t.normalize(e)}}function nu(e){const t=e.re=Y1(e.__opts__),u=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||u.push(td),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,G1(c)){K1(c.validate)?l.validate=rd(c.validate):Vr(c.validate)?l.validate=c.validate:o(s,c),Vr(c.normalize)?l.normalize=c.normalize:c.normalize?o(s,c):l.normalize=Lr();return}if(X1(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:Lr()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(J1).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"),nd(e)}function id(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 id(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||Q1(e)&&(t=e,e={}),this.__opts__=Ou({},Or,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Ou({},ed,e),this.__compiled__={},this.__tlds__=ud,this.__tlds_replaced__=!1,this.re={},nu(this)}he.prototype.add=function(t,u){return this.__schemas__[t]=u,nu(this),this},he.prototype.set=function(t){return this.__opts__=Ou(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(),nu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,nu(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 ct=2147483647,Se=36,$u=1,Dt=26,od=38,ad=700,$r=72,Mr=128,zr="-",sd=/^xn--/,cd=/[^\0-\x7F]/,ld=/[\x2E\u3002\uFF0E\uFF61]/g,dd={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mu=Se-$u,Ne=Math.floor,zu=String.fromCharCode;function Pe(e){throw new RangeError(dd[e])}function fd(e,t){const u=[];let n=e.length;for(;n--;)u[n]=t(e[n]);return u}function Pr(e,t){const u=e.split("@");let n="";u.length>1&&(n=u[0]+"@",e=u[1]),e=e.replace(ld,".");const r=e.split("."),o=fd(r,t).join(".");return n+o}function Rr(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 hd=e=>String.fromCodePoint(...e),pd=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Se},qr=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},jr=function(e,t,u){let n=0;for(e=u?Ne(e/ad):e>>1,e+=Ne(e/t);e>Mu*Dt>>1;n+=Se)e=Ne(e/Mu);return Ne(n+(Mu+1)*e/(e+od))},Hr=function(e){const t=[],u=e.length;let n=0,r=Mr,o=$r,a=e.lastIndexOf(zr);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=pd(e.charCodeAt(s++));p>=Se&&Pe("invalid-input"),p>Ne((ct-n)/d)&&Pe("overflow"),n+=p*d;const m=f<=o?$u:f>=o+Dt?Dt:f-o;if(p<m)break;const h=Se-m;d>Ne(ct/h)&&Pe("overflow"),d*=h}const l=t.length+1;o=jr(n-c,l,c==0),Ne(n/l)>ct-r&&Pe("overflow"),r+=Ne(n/l),n%=l,t.splice(n++,0,r)}return String.fromCodePoint(...t)},Ur=function(e){const t=[];e=Rr(e);const u=e.length;let n=Mr,r=0,o=$r;for(const c of e)c<128&&t.push(zu(c));const a=t.length;let s=a;for(a&&t.push(zr);s<u;){let c=ct;for(const d of e)d>=n&&d<c&&(c=d);const l=s+1;c-n>Ne((ct-r)/l)&&Pe("overflow"),r+=(c-n)*l,n=c;for(const d of e)if(d<n&&++r>ct&&Pe("overflow"),d===n){let f=r;for(let p=Se;;p+=Se){const m=p<=o?$u:p>=o+Dt?Dt:p-o;if(f<m)break;const h=f-m,x=Se-m;t.push(zu(qr(m+h%x,0))),f=Ne(h/x)}t.push(zu(qr(f,0))),o=jr(r,l,s===a),r=0,++s}++r,++n}return t.join("")},Wr={version:"2.3.1",ucs2:{decode:Rr,encode:hd},decode:Hr,encode:Ur,toASCII:function(e){return Pr(e,function(t){return cd.test(t)?"xn--"+Ur(t):t})},toUnicode:function(e){return Pr(e,function(t){return sd.test(t)?Hr(t.slice(4).toLowerCase()):t})}},md={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"]}}}},bd=/^(vbscript|javascript|file|data):/,gd=/^data:image\/(gif|png|jpeg|webp);/;function _d(e){const t=e.trim().toLowerCase();return bd.test(t)?gd.test(t):!0}const Zr=["http:","https:","mailto:"];function xd(e){const t=Cu(e,!0);if(t.hostname&&(!t.protocol||Zr.indexOf(t.protocol)>=0))try{t.hostname=Wr.toASCII(t.hostname)}catch{}return yt(Eu(t))}function yd(e){const t=Cu(e,!0);if(t.hostname&&(!t.protocol||Zr.indexOf(t.protocol)>=0))try{t.hostname=Wr.toUnicode(t.hostname)}catch{}return it(Eu(t),it.defaultChars+"%")}function xe(e,t){if(!(this instanceof xe))return new xe(e,t);t||Au(e)||(t=e||{},e="default"),this.inline=new vt,this.block=new tu,this.core=new Nu,this.renderer=new at,this.linkify=new he,this.validateLink=_d,this.normalizeLink=xd,this.normalizeLinkText=yd,this.utils=Tl,this.helpers=Gt({},Ol),this.options={},this.configure(e),t&&this.set(t)}xe.prototype.set=function(e){return Gt(this.options,e),this},xe.prototype.configure=function(e){const t=this;if(Au(e)){const u=e;if(e=md[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 kd=["innerHTML"],Ed={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
|
|
43
|
+
`},ht.text=function(e,t){return Lt(e[t].content)},ht.html_block=function(e,t){return e[t].content},ht.html_inline=function(e,t){return e[t].content};function dn(){this.rules=_u({},ht)}dn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+Lt(t.attrs[n][0])+'="'+Lt(t.attrs[n][1])+'"';return r},dn.prototype.renderToken=function(t,n,u){const r=t[n];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
44
|
+
`),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(i+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(a=!1)}return i+=a?`>
|
|
45
|
+
`:">",i},dn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let i=0,a=e.length;i<a;i++){const s=e[i].type;typeof r[s]<"u"?u+=r[s](e,i,t,n,this):u+=this.renderToken(e,i,t)}return u},dn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,i=e.length;r<i;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
|
|
46
|
+
`;break}return u},dn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let i=0,a=e.length;i<a;i++){const s=e[i].type;s==="inline"?u+=this.renderInline(e[i].children,t,n):typeof r[s]<"u"?u+=r[s](e,i,t,n,this):u+=this.renderToken(e,i,t,n)}return u};function He(){this.__rules__=[],this.__cache__=null}He.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},He.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})},He.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null},He.prototype.before=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},He.prototype.after=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},He.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null},He.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n},He.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},He.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n},He.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function at(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}at.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1},at.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},at.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r},at.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u},at.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function wa(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}wa.prototype.Token=at;const Qm=/\r\n?|\n/g,ep=/\0/g;function tp(e){let t;t=e.src.replace(Qm,`
|
|
47
|
+
`),t=t.replace(ep,"�"),e.src=t}function np(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 up(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function rp(e){return/^<a[>\s]/i.test(e)}function ip(e){return/^<\/a\s*>/i.test(e)}function op(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=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"&&(rp(s.content)&&i>0&&i--,ip(s.content)&&i++),!(i>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let c=e.md.linkify.match(l);const f=[];let d=s.level,h=0;c.length>0&&c[0].index===0&&a>0&&r[a-1].type==="text_special"&&(c=c.slice(1));for(let g=0;g<c.length;g++){const p=c[g].url,x=e.md.normalizeLink(p);if(!e.md.validateLink(x))continue;let C=c[g].text;c[g].schema?c[g].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");const A=c[g].index;if(A>h){const y=new e.Token("text","",0);y.content=l.slice(h,A),y.level=d,f.push(y)}const v=new e.Token("link_open","a",1);v.attrs=[["href",x]],v.level=d++,v.markup="linkify",v.info="auto",f.push(v);const m=new e.Token("text","",0);m.content=C,m.level=d,f.push(m);const E=new e.Token("link_close","a",-1);E.level=--d,E.markup="linkify",E.info="auto",f.push(E),h=c[g].lastIndex}if(h<l.length){const g=new e.Token("text","",0);g.content=l.slice(h),g.level=d,f.push(g)}t[n].children=r=Ca(r,a,f)}}}}const Da=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ap=/\((c|tm|r)\)/i,sp=/\((c|tm|r)\)/ig,lp={c:"©",r:"®",tm:"™"};function cp(e,t){return lp[t.toLowerCase()]}function fp(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(sp,cp)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function dp(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Da.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function hp(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(ap.test(e.tokens[t].content)&&fp(e.tokens[t].children),Da.test(e.tokens[t].content)&&dp(e.tokens[t].children))}const mp=/['"]/,Na=/['"]/g,Aa="’";function ku(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function pp(e,t){let n;const u=[];for(let r=0;r<e.length;r++){const i=e[r],a=e[r].level;for(n=u.length-1;n>=0&&!(u[n].level<=a);n--);if(u.length=n+1,i.type!=="text")continue;let s=i.content,l=0,c=s.length;e:for(;l<c;){Na.lastIndex=l;const f=Na.exec(s);if(!f)break;let d=!0,h=!0;l=f.index+1;const g=f[0]==="'";let p=32;if(f.index-1>=0)p=s.charCodeAt(f.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(l<c)x=s.charCodeAt(l);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const C=Mn(p)||Fn(String.fromCharCode(p)),A=Mn(x)||Fn(String.fromCharCode(x)),v=Ln(p),m=Ln(x);if(m?d=!1:A&&(v||C||(d=!1)),v?h=!1:C&&(m||A||(h=!1)),x===34&&f[0]==='"'&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=C,h=A),!d&&!h){g&&(i.content=ku(i.content,f.index,Aa));continue}if(h)for(n=u.length-1;n>=0;n--){let E=u[n];if(u[n].level<a)break;if(E.single===g&&u[n].level===a){E=u[n];let y,_;g?(y=t.md.options.quotes[2],_=t.md.options.quotes[3]):(y=t.md.options.quotes[0],_=t.md.options.quotes[1]),i.content=ku(i.content,f.index,_),e[E.token].content=ku(e[E.token].content,E.pos,y),l+=_.length-1,E.token===r&&(l+=y.length-1),s=i.content,c=s.length,u.length=n;continue e}}d?u.push({token:r,pos:f.index,single:g,level:a}):h&&g&&(i.content=ku(i.content,f.index,Aa))}}}function gp(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!mp.test(e.tokens[t].content)||pp(e.tokens[t].children,e)}function bp(e){let t,n;const u=e.tokens,r=u.length;for(let i=0;i<r;i++){if(u[i].type!=="inline")continue;const a=u[i].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const _r=[["normalize",tp],["block",np],["inline",up],["linkify",op],["replacements",hp],["smartquotes",gp],["text_join",bp]];function Er(){this.ruler=new He;for(let e=0;e<_r.length;e++)this.ruler.push(_r[e][0],_r[e][1])}Er.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)},Er.prototype.State=wa;function mt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let i=0,a=0,s=0,l=0,c=r.length,f=!1;a<c;a++){const d=r.charCodeAt(a);if(!f)if(ge(d)){s++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,i=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}mt.prototype.push=function(e,t,n){const u=new at(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u},mt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},mt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},mt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ge(u))break}return t},mt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ge(this.src.charCodeAt(--t)))return t+1;return t},mt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t},mt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t},mt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const i=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const c=this.bMarks[s];let f=c,d;for(s+1<n||r?d=this.eMarks[s]+1:d=this.eMarks[s];f<d&&l<u;){const h=this.src.charCodeAt(f);if(ge(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-c<this.tShift[s])l++;else break;f++}l>u?i[a]=new Array(l-u+1).join(" ")+this.src.slice(f,d):i[a]=this.src.slice(f,d)}return i.join("")},mt.prototype.Token=at;const _p=65536;function yr(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Ta(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),i=!1,a=0,s="";for(;u<n;)r===124&&(i?(s+=e.substring(a,u-1),a=u):(t.push(s+e.substring(a,u)),s="",a=u+1)),i=r===92,u++,r=e.charCodeAt(u);return t.push(s+e.substring(a)),t}function Ep(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58||i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!ge(s)||a===45&&ge(s))return!1;for(;i<e.eMarks[r];){const E=e.src.charCodeAt(i);if(E!==124&&E!==45&&E!==58&&!ge(E))return!1;i++}let l=yr(e,t+1),c=l.split("|");const f=[];for(let E=0;E<c.length;E++){const y=c[E].trim();if(!y){if(E===0||E===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?f.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=yr(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Ta(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),x=[t,0];p.map=x;const C=e.push("thead_open","thead",1);C.map=[t,t+1];const A=e.push("tr_open","tr",1);A.map=[t,t+1];for(let E=0;E<c.length;E++){const y=e.push("th_open","th",1);f[E]&&(y.attrs=[["style","text-align:"+f[E]]]);const _=e.push("inline","",0);_.content=c[E].trim(),_.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,m=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let E=!1;for(let _=0,w=g.length;_<w;_++)if(g[_](e,r,n,!0)){E=!0;break}if(E||(l=yr(e,r).trim(),!l)||e.sCount[r]-e.blkIndent>=4||(c=Ta(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),m+=d-c.length,m>_p))break;if(r===t+2){const _=e.push("tbody_open","tbody",1);_.map=v=[t+2,0]}const y=e.push("tr_open","tr",1);y.map=[r,r+1];for(let _=0;_<d;_++){const w=e.push("td_open","td",1);f[_]&&(w.attrs=[["style","text-align:"+f[_]]]);const D=e.push("inline","",0);D.content=c[_]?c[_].trim():"",D.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=r),e.push("table_close","table",-1),x[1]=r,e.parentType=h,e.line=r,!0}function yp(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
48
|
+
`,i.map=[t,e.line],!0}function kp(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const a=e.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let s=r;r=e.skipChars(r,a);let l=r-s;if(l<3)return!1;const c=e.src.slice(s,r),f=e.src.slice(r,i);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(u)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=s=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],r<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,a),!(r-s<l)&&(r=e.skipSpaces(r),!(r<i)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const g=e.push("fence","code",0);return g.info=f,g.content=e.getLines(t+1,d,l,!0),g.markup=c,g.map=[t,e.line],!0}function xp(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const s=[],l=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let g=!1,p;for(p=t;p<n;p++){const m=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],r>=i)break;if(e.src.charCodeAt(r++)===62&&!m){let y=e.sCount[p]+1,_,w;e.src.charCodeAt(r)===32?(r++,y++,w=!1,_=!0):e.src.charCodeAt(r)===9?(_=!0,(e.bsCount[p]+y)%4===3?(r++,y++,w=!1):w=!0):_=!1;let D=y;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<i;){const T=e.src.charCodeAt(r);if(ge(T))T===9?D+=4-(D+e.bsCount[p]+(w?1:0))%4:D++;else break;r++}g=r>=i,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(_?1:0),c.push(e.sCount[p]),e.sCount[p]=D-y,f.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(g)break;let E=!1;for(let y=0,_=d.length;y<_;y++)if(d[y](e,p,n,!0)){E=!0;break}if(E){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const x=e.blkIndent;e.blkIndent=0;const C=e.push("blockquote_open","blockquote",1);C.markup=">";const A=[t,0];C.map=A,e.md.block.tokenize(e,t,p);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=a,e.parentType=h,A[1]=e.line;for(let m=0;m<f.length;m++)e.bMarks[m+t]=s[m],e.tShift[m+t]=f[m],e.sCount[m+t]=c[m],e.bsCount[m+t]=l[m];return e.blkIndent=x,!0}function Cp(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(i++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;i<r;){const c=e.src.charCodeAt(i++);if(c!==a&&!ge(c))return!1;c===a&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Sa(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const i=e.src.charCodeAt(u);if(!ge(i))return-1}return u}function Oa(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=u)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<u&&(i=e.src.charCodeAt(r),!ge(i))?-1:r}function vp(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function wp(e,t,n,u){let r,i,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let d,h,g;if((g=Oa(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,g-1)),f&&h!==1)return!1}else if((g=Sa(e,l))>=0)d=!1;else return!1;if(f&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(u)return!0;const p=e.src.charCodeAt(g-1),x=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const C=[l,0];s.map=C,s.markup=String.fromCharCode(p);let A=!1;const v=e.md.block.ruler.getRules("list"),m=e.parentType;for(e.parentType="list";l<n;){i=g,r=e.eMarks[l];const E=e.sCount[l]+g-(e.bMarks[l]+e.tShift[l]);let y=E;for(;i<r;){const j=e.src.charCodeAt(i);if(j===9)y+=4-(y+e.bsCount[l])%4;else if(j===32)y++;else break;i++}const _=i;let w;_>=r?w=1:w=y-E,w>4&&(w=1);const D=E+w;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const T=[l,0];s.map=T,d&&(s.info=e.src.slice(a,g-1));const V=e.tight,ue=e.tShift[l],R=e.sCount[l],be=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=D,e.tight=!0,e.tShift[l]=_-e.bMarks[l],e.sCount[l]=y,_>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||A)&&(c=!1),A=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=be,e.tShift[l]=ue,e.sCount[l]=R,e.tight=V,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),l=e.line,T[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let X=!1;for(let j=0,K=v.length;j<K;j++)if(v[j](e,l,n,!0)){X=!0;break}if(X)break;if(d){if(g=Oa(e,l),g<0)break;a=e.bMarks[l]+e.tShift[l]}else if(g=Sa(e,l),g<0)break;if(p!==e.src.charCodeAt(g-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),C[1]=l,e.line=l,e.parentType=m,c&&vp(e,x),!0}function Dp(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(v){const m=e.lineMax;if(v>=m||e.isEmpty(v))return null;let E=!1;if(e.sCount[v]-e.blkIndent>3&&(E=!0),e.sCount[v]<0&&(E=!0),!E){const w=e.md.block.ruler.getRules("reference"),D=e.parentType;e.parentType="reference";let T=!1;for(let V=0,ue=w.length;V<ue;V++)if(w[V](e,v,m,!0)){T=!0;break}if(e.parentType=D,T)return null}const y=e.bMarks[v]+e.tShift[v],_=e.eMarks[v];return e.src.slice(y,_+1)}let l=e.src.slice(r,i+1);i=l.length;let c=-1;for(r=1;r<i;r++){const v=l.charCodeAt(r);if(v===91)return!1;if(v===93){c=r;break}else if(v===10){const m=s(a);m!==null&&(l+=m,i=l.length,a++)}else if(v===92&&(r++,r<i&&l.charCodeAt(r)===10)){const m=s(a);m!==null&&(l+=m,i=l.length,a++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<i;r++){const v=l.charCodeAt(r);if(v===10){const m=s(a);m!==null&&(l+=m,i=l.length,a++)}else if(!ge(v))break}const f=e.md.helpers.parseLinkDestination(l,r,i);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const h=r,g=a,p=r;for(;r<i;r++){const v=l.charCodeAt(r);if(v===10){const m=s(a);m!==null&&(l+=m,i=l.length,a++)}else if(!ge(v))break}let x=e.md.helpers.parseLinkTitle(l,r,i);for(;x.can_continue;){const v=s(a);if(v===null)break;l+=v,r=i,i=l.length,a++,x=e.md.helpers.parseLinkTitle(l,r,i,x)}let C;for(r<i&&p!==r&&x.ok?(C=x.str,r=x.pos):(C="",r=h,a=g);r<i;){const v=l.charCodeAt(r);if(!ge(v))break;r++}if(r<i&&l.charCodeAt(r)!==10&&C)for(C="",r=h,a=g;r<i;){const v=l.charCodeAt(r);if(!ge(v))break;r++}if(r<i&&l.charCodeAt(r)!==10)return!1;const A=yu(l.slice(1,c));return A?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[A]>"u"&&(e.env.references[A]={title:C,href:d}),e.line=a),!0):!1}const Np=["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"],Ap="[a-zA-Z_:][a-zA-Z0-9:._-]*",Tp="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ia="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Ap+"(?:\\s*=\\s*"+Tp+")?)")+"*\\s*\\/?>",La="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Sp="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Op="<[?][\\s\\S]*?[?]>",Ip="<![A-Za-z][^>]*>",Lp="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Fp=new RegExp("^(?:"+Ia+"|"+La+"|"+Sp+"|"+Op+"|"+Ip+"|"+Lp+")"),Mp=new RegExp("^(?:"+Ia+"|"+La+")"),hn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Np.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mp.source+"\\s*$"),/^$/,!1]];function Pp(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=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,i),s=0;for(;s<hn.length&&!hn[s][0].test(a);s++);if(s===hn.length)return!1;if(u)return hn[s][2];let l=t+1;if(!hn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(r=e.bMarks[l]+e.tShift[l],i=e.eMarks[l],a=e.src.slice(r,i),hn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function Vp(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(a!==35||r>=i)return!1;let s=1;for(a=e.src.charCodeAt(++r);a===35&&r<i&&s<=6;)s++,a=e.src.charCodeAt(++r);if(s>6||r<i&&!ge(a))return!1;if(u)return!0;i=e.skipSpacesBack(i,r);const l=e.skipCharsBack(i,35,r);l>r&&ge(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,i).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function $p(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let g=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(g<p&&(a=e.src.charCodeAt(g),(a===45||a===61)&&(g=e.skipChars(g,a),g=e.skipSpaces(g),g>=p))){i=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let g=0,p=u.length;g<p;g++)if(u[g](e,s,n,!0)){h=!0;break}if(h)break}if(!i)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(a),e.parentType=r,!0}function Rp(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let f=0,d=u.length;f<d;f++)if(u[f](e,i,n,!0)){c=!0;break}if(c)break}const a=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const xu=[["table",Ep,["paragraph","reference"]],["code",yp],["fence",kp,["paragraph","reference","blockquote","list"]],["blockquote",xp,["paragraph","reference","blockquote","list"]],["hr",Cp,["paragraph","reference","blockquote","list"]],["list",wp,["paragraph","reference","blockquote"]],["reference",Dp],["html_block",Pp,["paragraph","reference","blockquote"]],["heading",Vp,["paragraph","reference","blockquote"]],["lheading",$p],["paragraph",Rp]];function Cu(){this.ruler=new He;for(let e=0;e<xu.length;e++)this.ruler.push(xu[e][0],xu[e][1],{alt:(xu[e][2]||[]).slice()})}Cu.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,i=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=i){e.line=n;break}const l=e.line;let c=!1;for(let f=0;f<r;f++)if(c=u[f](e,a,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Cu.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)},Cu.prototype.State=mt;function Pn(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Pn.prototype.pushPending=function(){const e=new at("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Pn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new at(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u},Pn.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<n&&this.src.charCodeAt(i)===u;)i++;const a=i-e,s=i<n?this.src.charCodeAt(i):32,l=Mn(r)||Fn(String.fromCharCode(r)),c=Mn(s)||Fn(String.fromCharCode(s)),f=Ln(r),d=Ln(s),h=!d&&(!c||f||l),g=!f&&(!l||d||c);return{can_open:h&&(t||!g||l),can_close:g&&(t||!h||c),length:a}},Pn.prototype.Token=at;function Bp(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 jp(e,t){let n=e.pos;for(;n<e.posMax&&!Bp(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const zp=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Up(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(zp);if(!r)return!1;const i=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!a)return!1;let s=a.url;if(s.length<=i.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-i.length,!0}function qp(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let i=u-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&ge(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const kr=[];for(let e=0;e<256;e++)kr.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){kr[e.charCodeAt(0)]=1});function Hp(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!ge(r));)n++;return e.pos=n,!0}let i=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(i+=e.src[n+1],n++)}const a="\\"+i;if(!t){const s=e.push("text_special","",0);r<256&&kr[r]!==0?s.content=i:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function Wp(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(r,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=a),e.pos+=s,!0;let l=n,c;for(;(c=e.src.indexOf("`",l))!==-1;){for(l=c+1;l<i&&e.src.charCodeAt(l)===96;)l++;const f=l-c;if(f===s){if(!t){const d=e.push("code_inline","code",0);d.markup=a,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function Yp(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let i=r.length;const a=String.fromCharCode(u);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=a,i--);for(let l=0;l<i;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Fa(e,t){let n;const u=[],r=t.length;for(let i=0;i<r;i++){const a=t[i];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const i=u.pop();let a=i+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,i!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[i],e.tokens[i]=n)}}function Gp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Fa(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Fa(e,t[u].delimiters)}const Ma={tokenize:Yp,postProcess:Gp};function Xp(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let i=0;i<r.length;i++){const a=e.push("text","",0);a.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Pa(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],a=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const c=e.tokens[i.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function Zp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Pa(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Pa(e,t[u].delimiters)}const Va={tokenize:Xp,postProcess:Zp};function Kp(e,t){let n,u,r,i,a="",s="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let p=g+1;if(p<d&&e.src.charCodeAt(p)===40){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),!(!ge(n)&&n!==10));p++);if(p>=d)return!1;if(l=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?p=r.pos:a="",l=p;p<d&&(n=e.src.charCodeAt(p),!(!ge(n)&&n!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&r.ok)for(s=r.str,p=r.pos;p<d&&(n=e.src.charCodeAt(p),!(!ge(n)&&n!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?u=e.src.slice(l,p++):p=g+1):p=g+1,u||(u=e.src.slice(h,g)),i=e.env.references[yu(u)],!i)return e.pos=f,!1;a=i.href,s=i.title}if(!t){e.pos=h,e.posMax=g;const x=e.push("link_open","a",1),C=[["href",a]];x.attrs=C,s&&C.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function Jp(e,t){let n,u,r,i,a,s,l,c,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(i=p+1,i<h&&e.src.charCodeAt(i)===40){for(i++;i<h&&(n=e.src.charCodeAt(i),!(!ge(n)&&n!==10));i++);if(i>=h)return!1;for(c=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?i=s.pos:f=""),c=i;i<h&&(n=e.src.charCodeAt(i),!(!ge(n)&&n!==10));i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<h&&c!==i&&s.ok)for(l=s.str,i=s.pos;i<h&&(n=e.src.charCodeAt(i),!(!ge(n)&&n!==10));i++);else l="";if(i>=h||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<h&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?r=e.src.slice(c,i++):i=p+1):i=p+1,r||(r=e.src.slice(g,p)),a=e.env.references[yu(r)],!a)return e.pos=d,!1;f=a.href,l=a.title}if(!t){u=e.src.slice(g,p);const x=[];e.md.inline.parse(u,e.md,e.env,x);const C=e.push("image","img",0),A=[["src",f],["alt",""]];C.attrs=A,C.children=x,C.content=u,l&&A.push(["title",l])}return e.pos=i,e.posMax=h,!0}const Qp=/^([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])?)*)$/,e2=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function t2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const i=e.src.slice(u+1,n);if(e2.test(i)){const a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(Qp.test(i)){const a=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function n2(e){return/^<a[>\s]/i.test(e)}function u2(e){return/^<\/a\s*>/i.test(e)}function r2(e){const t=e|32;return t>=97&&t<=122}function i2(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!r2(r))return!1;const i=e.src.slice(u).match(Fp);if(!i)return!1;if(!t){const a=e.push("html_inline","",0);a.content=i[0],n2(a.content)&&e.linkLevel++,u2(a.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const o2=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,a2=/^&([a-z][a-z0-9]{1,31});/i;function s2(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(o2);if(i){if(!t){const a=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0);s.content=br(a)?Eu(a):Eu(65533),s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(a2);if(i){const a=xa(i[0]);if(a!==i[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function $a(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const i=[];for(let a=0;a<n;a++){const s=e[a];if(i.push(0),(e[u].marker!==s.marker||r!==s.token-1)&&(u=a),r=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let c=u-i[u]-1,f=c;for(;c>l;c-=i[c]+1){const d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let h=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(h=!0),!h){const g=c>0&&!e[c-1].open?i[c-1]+1:0;i[a]=a-c+g,i[c]=g,s.open=!1,d.end=a,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function l2(e){const t=e.tokens_meta,n=e.tokens_meta.length;$a(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&$a(t[u].delimiters)}function c2(e){let t,n,u=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const xr=[["text",jp],["linkify",Up],["newline",qp],["escape",Hp],["backticks",Wp],["strikethrough",Ma.tokenize],["emphasis",Va.tokenize],["link",Kp],["image",Jp],["autolink",t2],["html_inline",i2],["entity",s2]],Cr=[["balance_pairs",l2],["strikethrough",Ma.postProcess],["emphasis",Va.postProcess],["fragments_join",c2]];function Vn(){this.ruler=new He;for(let e=0;e<xr.length;e++)this.ruler.push(xr[e][0],xr[e][1]);this.ruler2=new He;for(let e=0;e<Cr.length;e++)this.ruler2.push(Cr[e][0],Cr[e][1])}Vn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let a=!1;if(e.level<r){for(let s=0;s<u;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,i[t]=e.pos},Vn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const i=e.pos;let a=!1;if(e.level<r){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Vn.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const i=this.ruler2.getRules(""),a=i.length;for(let s=0;s<a;s++)i[s](r)},Vn.prototype.State=Pn;function f2(e){const t={};e=e||{},t.src_Any=ba.source,t.src_Cc=_a.source,t.src_Z=ya.source,t.src_P=hr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function vr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function vu(e){return Object.prototype.toString.call(e)}function d2(e){return vu(e)==="[object String]"}function h2(e){return vu(e)==="[object Object]"}function m2(e){return vu(e)==="[object RegExp]"}function Ra(e){return vu(e)==="[object Function]"}function p2(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ba={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function g2(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ba.hasOwnProperty(n)},!1)}const b2={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},_2="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]",E2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function y2(e){e.__index__=-1,e.__text_cache__=""}function k2(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function ja(){return function(e,t){t.normalize(e)}}function wu(e){const t=e.re=f2(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(_2),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[s]=c,h2(l)){m2(l.validate)?c.validate=k2(l.validate):Ra(l.validate)?c.validate=l.validate:i(s,l),Ra(l.normalize)?c.normalize=l.normalize:l.normalize?i(s,l):c.normalize=ja();return}if(d2(l)){r.push(s);return}i(s,l)}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:ja()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(p2).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"),y2(e)}function x2(e,t){const n=e.__index__,u=e.__last_index__,r=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=r,this.text=r,this.url=r}function wr(e,t){const n=new x2(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ge(e,t){if(!(this instanceof Ge))return new Ge(e,t);t||g2(e)&&(t=e,e={}),this.__opts__=vr({},Ba,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=vr({},b2,e),this.__compiled__={},this.__tlds__=E2,this.__tlds_replaced__=!1,this.re={},wu(this)}Ge.prototype.add=function(t,n){return this.__schemas__[t]=n,wu(this),this},Ge.prototype.set=function(t){return this.__opts__=vr(this.__opts__,t),this},Ge.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,r,i,a,s,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=u.index+u[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},Ge.prototype.pretest=function(t){return this.re.pretest.test(t)},Ge.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0},Ge.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(wr(this,u)),u=this.__last_index__);let r=u?t.slice(u):t;for(;this.test(r);)n.push(wr(this,u)),r=r.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null},Ge.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,wr(this,0)):null},Ge.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,i){return u!==i[r-1]}).reverse(),wu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,wu(this),this)},Ge.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ge.prototype.onCompile=function(){};const mn=2147483647,pt=36,Dr=1,$n=26,C2=38,v2=700,za=72,Ua=128,qa="-",w2=/^xn--/,D2=/[^\0-\x7F]/,N2=/[\x2E\u3002\uFF0E\uFF61]/g,A2={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nr=pt-Dr,gt=Math.floor,Ar=String.fromCharCode;function Ft(e){throw new RangeError(A2[e])}function T2(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function Ha(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(N2,".");const r=e.split("."),i=T2(r,t).join(".");return u+i}function Wa(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const S2=e=>String.fromCodePoint(...e),O2=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:pt},Ya=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ga=function(e,t,n){let u=0;for(e=n?gt(e/v2):e>>1,e+=gt(e/t);e>Nr*$n>>1;u+=pt)e=gt(e/Nr);return gt(u+(Nr+1)*e/(e+C2))},Xa=function(e){const t=[],n=e.length;let u=0,r=Ua,i=za,a=e.lastIndexOf(qa);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ft("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=u;for(let f=1,d=pt;;d+=pt){s>=n&&Ft("invalid-input");const h=O2(e.charCodeAt(s++));h>=pt&&Ft("invalid-input"),h>gt((mn-u)/f)&&Ft("overflow"),u+=h*f;const g=d<=i?Dr:d>=i+$n?$n:d-i;if(h<g)break;const p=pt-g;f>gt(mn/p)&&Ft("overflow"),f*=p}const c=t.length+1;i=Ga(u-l,c,l==0),gt(u/c)>mn-r&&Ft("overflow"),r+=gt(u/c),u%=c,t.splice(u++,0,r)}return String.fromCodePoint(...t)},Za=function(e){const t=[];e=Wa(e);const n=e.length;let u=Ua,r=0,i=za;for(const l of e)l<128&&t.push(Ar(l));const a=t.length;let s=a;for(a&&t.push(qa);s<n;){let l=mn;for(const f of e)f>=u&&f<l&&(l=f);const c=s+1;l-u>gt((mn-r)/c)&&Ft("overflow"),r+=(l-u)*c,u=l;for(const f of e)if(f<u&&++r>mn&&Ft("overflow"),f===u){let d=r;for(let h=pt;;h+=pt){const g=h<=i?Dr:h>=i+$n?$n:h-i;if(d<g)break;const p=d-g,x=pt-g;t.push(Ar(Ya(g+p%x,0))),d=gt(p/x)}t.push(Ar(Ya(d,0))),i=Ga(r,c,s===a),r=0,++s}++r,++u}return t.join("")},Ka={version:"2.3.1",ucs2:{decode:Wa,encode:S2},decode:Xa,encode:Za,toASCII:function(e){return Ha(e,function(t){return D2.test(t)?"xn--"+Za(t):t})},toUnicode:function(e){return Ha(e,function(t){return w2.test(t)?Xa(t.slice(4).toLowerCase()):t})}},I2={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"]}}}},L2=/^(vbscript|javascript|file|data):/,F2=/^data:image\/(gif|png|jpeg|webp);/;function M2(e){const t=e.trim().toLowerCase();return L2.test(t)?F2.test(t):!0}const Ja=["http:","https:","mailto:"];function P2(e){const t=dr(e,!0);if(t.hostname&&(!t.protocol||Ja.indexOf(t.protocol)>=0))try{t.hostname=Ka.toASCII(t.hostname)}catch{}return In(fr(t))}function V2(e){const t=dr(e,!0);if(t.hostname&&(!t.protocol||Ja.indexOf(t.protocol)>=0))try{t.hostname=Ka.toUnicode(t.hostname)}catch{}return cn(fr(t),cn.defaultChars+"%")}function Qe(e,t){if(!(this instanceof Qe))return new Qe(e,t);t||gr(e)||(t=e||{},e="default"),this.inline=new Vn,this.block=new Cu,this.core=new Er,this.renderer=new dn,this.linkify=new Ge,this.validateLink=M2,this.normalizeLink=P2,this.normalizeLinkText=V2,this.utils=Gm,this.helpers=_u({},Jm),this.options={},this.configure(e),t&&this.set(t)}Qe.prototype.set=function(e){return _u(this.options,e),this},Qe.prototype.configure=function(e){const t=this;if(gr(e)){const n=e;if(e=I2[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Qe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this},Qe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this},Qe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Qe.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Qe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Qe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Qe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const $2=["innerHTML"],R2={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
|
|
27
49
|
|------------|----------|----|
|
|
28
50
|
| 热量:450kcal | | 热量:450kcal |
|
|
29
51
|
| 碳水:62.3g | | 碳水:62.3g |
|
|
@@ -36,54 +58,54 @@
|
|
|
36
58
|
| 热量:450kcal | | 热量:450kcal |
|
|
37
59
|
| 碳水:62.3g | | 碳水:62.3g |
|
|
38
60
|
| 蛋白质: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,kd))}},Cd={},wd={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 vd(e,t){return i.openBlock(),i.createElementBlock("svg",wd,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 Dd=W(Cd,[["render",vd]]),Ad={class:"pup_header"},Fd={class:"left"},Sd={class:"title"},Nd={class:"pup_content",style:{height:"calc(height - 56px)"}},Td=W({__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",Ad,[i.createElementVNode("div",Fd,[i.createElementVNode("div",{class:"icon_down",onClick:i.withModifiers(l,["stop"])},[i.createVNode(Dd)])]),i.createElementVNode("div",Sd,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 Bd(){}const De=Object.assign,Pu=typeof window<"u",At=e=>e!==null&&typeof e=="object",se=e=>e!=null,ru=e=>typeof e=="function",Yr=e=>At(e)&&ru(e.then)&&ru(e.catch),Xr=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),Id=()=>Pu?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Gr(e,t){const u=t.split(".");let n=e;return u.forEach(r=>{var o;n=At(n)&&(o=n[r])!=null?o:""}),n}function Vd(e,t,u){return t.reduce((n,r)=>(n[r]=e[r],n),{})}const Kr=e=>Array.isArray(e)?e:[e],Re=null,re=[Number,String],qe={type:Boolean,default:!0},Od=e=>({type:Number,default:e}),Ld=e=>({type:re,default:e}),ae=e=>({type:String,default:e});var Ru=typeof window<"u";function $d(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 Jr(e){let t;i.onMounted(()=>{e(),i.nextTick(()=>{t=!0})}),i.onActivated(()=>{t&&e()})}function qu(e,t,u={}){if(!Ru)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)),Jr(()=>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 iu,ju;function Md(){if(!iu&&(iu=i.ref(0),ju=i.ref(0),Ru)){const e=()=>{iu.value=window.innerWidth,ju.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:iu,height:ju}}var zd=/scroll|auto|overlay/i,Pd=Ru?window:void 0;function Rd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function qd(e,t=Pd){let u=e;for(;u&&u!==t&&Rd(u);){const{overflowY:n}=window.getComputedStyle(u);if(zd.test(n))return u;u=u.parentNode}return t}var jd=Symbol("van-field");function Qr(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function ei(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ti(e){Qr(window,e),Qr(document.body,e)}const Hd=Id();function Ud(){Hd&&ti(ei())}const Wd=e=>e.stopPropagation();function Ft(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Wd(e)}Md();function pe(e){if(se(e))return Xr(e)?`${e}px`:String(e)}function Zd(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 Xd=/-(\w)/g,ui=e=>e.replace(Xd,(t,u)=>u.toUpperCase()),Gd=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Kd=(e,t,u)=>Math.min(Math.max(e,t),u);function ni(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 Jd(e,t=!0,u=!0){t?e=ni(e,".",/\./g):e=e.split(".")[0],u?e=ni(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}const{hasOwnProperty:Qd}=Object.prototype;function ef(e,t,u){const n=t[u];se(n)&&(!Qd.call(e,u)||!At(n)?e[u]=n:e[u]=ri(Object(e[u]),n))}function ri(e,t){return Object.keys(t).forEach(u=>{ef(e,t,u)}),e}var tf={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 ii=i.ref("zh-CN"),oi=i.reactive({"zh-CN":tf});var uf={messages(){return oi[ii.value]},use(e,t){ii.value=e,this.add({[e]:t})},add(e={}){ri(oi,e)}};function nf(e){const t=ui(e)+".";return(u,...n)=>{const r=uf.messages(),o=Gr(r,t+u)||Gr(r,u);return ru(o)?o(...n):o}}function Hu(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((u,n)=>u+Hu(e,n),""):Object.keys(t).reduce((u,n)=>u+(t[n]?Hu(e,n):""),""):""}function rf(e){return(t,u)=>(t&&typeof t!="string"&&(u=t,t=""),t=t?`${e}__${t}`:e,`${t}${Hu(t,u)}`)}function Ie(e){const t=`van-${e}`;return[t,rf(t),nf(t)]}const of="van-haptics-feedback",af=Symbol("van-form"),ai=5;function sf(e,{args:t=[],done:u,canceled:n,error:r}){if(e){const o=e.apply(null,t);Yr(o)?o.then(a=>{a?u():n&&n()}).catch(r||Bd):o?u():n&&n()}else u()}function je(e){return e.install=t=>{const{name:u}=e;u&&(t.component(u,e),t.component(ui(`-${u}`),e))},e}const cf=Symbol();function Uu(e){const t=i.getCurrentInstance();t&&De(t.proxy,e)}const lf={to:[String,Object],url:String,replace:Boolean};function df({to:e,url:t,replace:u,$router:n}){e&&n?n[u?"replace":"push"](e):t&&(u?location.replace(t):location.href=t)}function ff(){const e=i.getCurrentInstance().proxy;return()=>df(e)}const[hf,si]=Ie("badge"),pf={dot:Boolean,max:re,tag:ae("div"),color:String,offset:Array,content:re,showZero:qe,position:ae("top-right")};var mf=i.defineComponent({name:hf,props:pf,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)&&Xr(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:si([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:si("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const bf=je(mf);let ci=2e3;const gf=()=>++ci,_f=e=>{ci=e},[li,xf]=Ie("config-provider"),di=Symbol(li),yf={tag:ae("div"),theme:ae("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:ae("local"),iconPrefix:String};function kf(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function Ef(e){const t={};return Object.keys(e).forEach(u=>{const n=kf(Gd(u));t[`--van-${n}`]=e[u]}),t}function ou(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:li,props:yf,setup(e,{slots:t}){const u=i.computed(()=>Ef(De({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Pu){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"&&ou(o,a)}),i.watch(()=>e.themeVarsScope,(o,a)=>{a==="global"&&ou({},u.value),o==="global"&&ou(u.value,{})}),e.themeVarsScope==="global"&&ou(u.value,{})}return i.provide(di,e),i.watchEffect(()=>{e.zIndex!==void 0&&_f(e.zIndex)}),()=>i.createVNode(e.tag,{class:xf(),style:e.themeVarsScope==="local"?u.value:void 0},{default:()=>{var n;return[(n=t.default)==null?void 0:n.call(t)]}})}});const[Cf,fi]=Ie("icon"),wf=e=>e==null?void 0:e.includes("/"),vf={dot:Boolean,tag:ae("i"),name:String,size:re,badge:re,color:String,badgeProps:Object,classPrefix:String};var Df=i.defineComponent({name:Cf,props:vf,setup(e,{slots:t}){const u=i.inject(di,null),n=i.computed(()=>e.classPrefix||(u==null?void 0:u.iconPrefix)||fi());return()=>{const{tag:r,dot:o,name:a,size:s,badge:c,color:l}=e,d=wf(a);return i.createVNode(bf,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:fi("image"),src:a},null)]}})}}});const Ze=je(Df),[Af,St]=Ie("loading"),Ff=Array(12).fill(null).map((e,t)=>i.createVNode("i",{class:St("line",String(t+1))},null)),Sf=i.createVNode("svg",{class:St("circular"),viewBox:"25 25 50 50"},[i.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Nf={size:re,type:ae("circular"),color:String,vertical:Boolean,textSize:re,textColor:String};var Tf=i.defineComponent({name:Af,props:Nf,setup(e,{slots:t}){const u=i.computed(()=>De({color:e.color},Zd(e.size))),n=()=>{const o=e.type==="spinner"?Ff:Sf;return i.createVNode("span",{class:St("spinner",e.type),style:u.value},[t.icon?t.icon():o])},r=()=>{var o;if(t.default)return i.createVNode("span",{class:St("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:St([o,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[n(),r()])}}});const Bf=je(Tf),If={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 Vf(e,t){return e>t?"horizontal":t>e?"vertical":""}function Of(){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=Vf(r.value,o.value)),s.value&&(r.value>ai||o.value>ai)&&(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 Nt=0;const hi="van-overflow-hidden";function Lf(e,t){const u=Of(),n="01",r="10",o=d=>{u.move(d);const f=u.deltaY.value>0?r:n,p=qd(d.target,e.value),{scrollHeight:m,offsetHeight:h,scrollTop:x}=p;let k="11";x===0?k=h>=m?"00":"01":x+h>=m&&(k="10"),k!=="11"&&u.isVertical()&&!(parseInt(k,2)&parseInt(f,2))&&Ft(d,!0)},a=()=>{document.addEventListener("touchstart",u.start),document.addEventListener("touchmove",o,{passive:!1}),Nt||document.body.classList.add(hi),Nt++},s=()=>{Nt&&(document.removeEventListener("touchstart",u.start),document.removeEventListener("touchmove",o),Nt--,Nt||document.body.classList.remove(hi))},c=()=>t()&&a(),l=()=>t()&&s();Jr(c),i.onDeactivated(l),i.onBeforeUnmount(l),i.watch(t,d=>{d?a():s()})}function pi(e){const t=i.ref(!1);return i.watch(e,u=>{u&&(t.value=u)},{immediate:!0}),u=>()=>t.value?u():null}const mi=()=>{var e;const{scopeId:t}=((e=i.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[$f,Mf]=Ie("overlay"),zf={show:Boolean,zIndex:re,duration:re,className:Re,lockScroll:qe,lazyRender:qe,customStyle:Object,teleport:[String,Object]};var Pf=i.defineComponent({name:$f,inheritAttrs:!1,props:zf,setup(e,{attrs:t,slots:u}){const n=i.ref(),r=pi(()=>e.show||!e.lazyRender),o=s=>{e.lockScroll&&Ft(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:[Mf(),e.className]},t),[(s=u.default)==null?void 0:s.call(u)]),[[i.vShow,e.show]])});return qu("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 Rf=je(Pf),qf=De({},If,{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}),[jf,bi]=Ie("popup");var Hf=i.defineComponent({name:jf,inheritAttrs:!1,props:qf,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=pi(()=>e.show||!e.lazyRender),l=i.computed(()=>{const E={zIndex:a.value};if(se(e.duration)){const A=e.position==="center"?"animationDuration":"transitionDuration";E[A]=`${e.duration}s`}return E}),d=()=>{r||(r=!0,a.value=e.zIndex!==void 0?+e.zIndex:gf(),t("open"))},f=()=>{r&&sf(e.beforeClose,{done(){r=!1,t("close"),t("update:show",!1)}})},p=E=>{t("clickOverlay",E),e.closeOnClickOverlay&&f()},m=()=>{if(e.overlay){const E=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(Rf,i.mergeProps(E,mi(),{onClick:p}),{default:n["overlay-content"]})}},h=E=>{t("clickCloseIcon",E),f()},x=()=>{if(e.closeable)return i.createVNode(Ze,{role:"button",tabindex:0,name:e.closeIcon,class:[bi("close-icon",e.closeIconPosition),of],classPrefix:e.iconPrefix,onClick:h},null)};let k;const g=()=>{k&&clearTimeout(k),k=setTimeout(()=>{t("opened")})},_=()=>t("closed"),b=E=>t("keydown",E),w=c(()=>{var E;const{destroyOnClose:A,round:V,position:R,safeAreaInsetTop:Q,safeAreaInsetBottom:ke,show:Ee}=e;if(!(!Ee&&A))return i.withDirectives(i.createVNode("div",i.mergeProps({ref:s,style:l.value,role:"dialog",tabindex:0,class:[bi({round:V,[R]:R}),{"van-safe-area-top":Q,"van-safe-area-bottom":ke}],onKeydown:b},u,mi()),[(E=n.default)==null?void 0:E.call(n),x()]),[[i.vShow,Ee]])}),C=()=>{const{position:E,transition:A,transitionAppear:V}=e,R=E==="center"?"van-fade":`van-popup-slide-${E}`;return i.createVNode(i.Transition,{name:A||R,appear:V,onAfterEnter:g,onAfterLeave:_},{default:w})};return i.watch(()=>e.show,E=>{E&&!r&&(d(),u.tabindex===0&&i.nextTick(()=>{var A;(A=s.value)==null||A.focus()})),!E&&r&&(r=!1,t("close"))}),Uu({popupRef:s}),Lf(s,()=>e.show&&e.lockScroll),qu("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(cf,()=>e.show),()=>e.teleport?i.createVNode(i.Teleport,{to:e.teleport},{default:()=>[m(),C()]}):i.createVNode(i.Fragment,null,[m(),C()])}});const Uf=je(Hf);let Wf=0;function Zf(){const e=i.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++Wf}`}const[Yf,lt]=Ie("cell"),gi={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}},Xf=De({},gi,lf);var Gf=i.defineComponent({name:Yf,props:Xf,setup(e,{slots:t}){const u=ff(),n=()=>{if(t.label||se(e.label))return i.createVNode("div",{class:[lt("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:[lt("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:[lt("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:lt("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:lt("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,k={center:f,required:!!h,clickable:x,borderless:!p};return d&&(k[d]=!!d),i.createVNode(l,{class:lt(k),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 Kf=je(Gf);function _i(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Jf(e,t){if(_i(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Qf(e,t){return new Promise(u=>{const n=t.validator(e,t);if(Yr(n)){n.then(u);return}u(n)})}function xi(e,t){const{message:u}=t;return ru(u)?u(e,t):u||""}function e2({target:e}){e.composing=!0}function yi({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function t2(e,t){const u=ei();e.style.height="auto";let n=e.scrollHeight;if(At(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`,ti(u))}function u2(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 Wu(e,t){return[...e].slice(0,t).join("")}const[n2,ye]=Ie("field"),r2={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:re,max:Number,min:Number,formatter:Function,clearIcon:ae("clear"),modelValue:Ld(""),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},i2=De({},gi,r2,{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 o2=i.defineComponent({name:n2,props:i2,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:u}){const n=Zf(),r=i.reactive({status:"unvalidated",focused:!1,validateMessage:""}),o=i.ref(),a=i.ref(),s=i.ref(),{parent:c}=$d(af),l=()=>{var y;return String((y=e.modelValue)!=null?y:"")},d=y=>{if(se(e[y]))return e[y];if(c&&se(c.props[y]))return c.props[y]},f=i.computed(()=>{const y=d("readonly");if(e.clearable&&!y){const B=l()!=="",O=e.clearTrigger==="always"||e.clearTrigger==="focus"&&r.focused;return B&&O}return!1}),p=i.computed(()=>s.value&&u.input?s.value():e.modelValue),m=i.computed(()=>{var y;const B=d("required");return B==="auto"?(y=e.rules)==null?void 0:y.some(O=>O.required):B}),h=y=>y.reduce((B,O)=>B.then(()=>{if(r.status==="failed")return;let{value:L}=p;if(O.formatter&&(L=O.formatter(L,O)),!Jf(L,O)){r.status="failed",r.validateMessage=xi(L,O);return}if(O.validator)return _i(L)&&O.validateEmpty===!1?void 0:Qf(L,O).then(G=>{G&&typeof G=="string"?(r.status="failed",r.validateMessage=G):G===!1&&(r.status="failed",r.validateMessage=xi(L,O))})}),Promise.resolve()),x=()=>{r.status="unvalidated",r.validateMessage=""},k=()=>t("endValidate",{status:r.status,message:r.validateMessage}),g=(y=e.rules)=>new Promise(B=>{x(),y?(t("startValidate"),h(y).then(()=>{r.status==="failed"?(B({name:e.name,message:r.validateMessage}),k()):(r.status="passed",B(),k())})):B()}),_=y=>{if(c&&e.rules){const{validateTrigger:B}=c.props,O=Kr(B).includes(y),L=e.rules.filter(G=>G.trigger?Kr(G.trigger).includes(y):O);L.length&&g(L)}},b=y=>{var B;const{maxlength:O}=e;if(se(O)&&Ve(y)>+O){const L=l();if(L&&Ve(L)===+O)return L;const G=(B=o.value)==null?void 0:B.selectionEnd;if(r.focused&&G){const Le=[...y],Te=Le.length-+O;return Le.splice(G-Te,Te),Le.join("")}return Wu(y,+O)}return y},w=(y,B="onChange")=>{var O,L;const G=y;y=b(y);const Le=Ve(G)-Ve(y);if(e.type==="number"||e.type==="digit"){const de=e.type==="number";if(y=Jd(y,de,de),B==="onBlur"&&y!==""&&(e.min!==void 0||e.max!==void 0)){const be=Kd(+y,(O=e.min)!=null?O:-1/0,(L=e.max)!=null?L:1/0);+y!==be&&(y=be.toString())}}let Te=0;if(e.formatter&&B===e.formatTrigger){const{formatter:de,maxlength:be}=e;if(y=de(y),se(be)&&Ve(y)>+be&&(y=Wu(y,+be)),o.value&&r.focused){const{selectionEnd:K}=o.value,Ye=Wu(G,K);Te=Ve(de(Ye))-Ve(Ye)}}if(o.value&&o.value.value!==y)if(r.focused){let{selectionStart:de,selectionEnd:be}=o.value;if(o.value.value=y,se(de)&&se(be)){const K=Ve(y);Le?(de-=Le,be-=Le):Te&&(de+=Te,be+=Te),o.value.setSelectionRange(Math.min(de,K),Math.min(be,K))}}else o.value.value=y;y!==e.modelValue&&t("update:modelValue",y)},C=y=>{y.target.composing||w(y.target.value)},E=()=>{var y;return(y=o.value)==null?void 0:y.blur()},A=()=>{var y;return(y=o.value)==null?void 0:y.focus()},V=()=>{const y=o.value;e.type==="textarea"&&e.autosize&&y&&t2(y,e.autosize)},R=y=>{r.focused=!0,t("focus",y),i.nextTick(V),d("readonly")&&E()},Q=y=>{r.focused=!1,w(l(),"onBlur"),t("blur",y),!d("readonly")&&(_("onBlur"),i.nextTick(V),Ud())},ke=y=>t("clickInput",y),Ee=y=>t("clickLeftIcon",y),$=y=>t("clickRightIcon",y),I=y=>{Ft(y),t("update:modelValue",""),t("clear",y)},M=i.computed(()=>{if(typeof e.error=="boolean")return e.error;if(c&&c.props.showError&&r.status==="failed")return!0}),te=i.computed(()=>{const y=d("labelWidth"),B=d("labelAlign");if(y&&B!=="top")return{width:pe(y)}}),v=y=>{y.keyCode===13&&(!(c&&c.props.submitOnEnter)&&e.type!=="textarea"&&Ft(y),e.type==="search"&&E()),t("keypress",y)},N=()=>e.id||`${n}-input`,D=()=>r.status,ne=()=>{const y=ye("control",[d("inputAlign"),{error:M.value,custom:!!u.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(u.input)return i.createVNode("div",{class:y,onClick:ke},[u.input()]);const B={id:N(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:y,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:ke,onChange:yi,onKeypress:v,onCompositionend:yi,onCompositionstart:e2};return e.type==="textarea"?i.createVNode("textarea",i.mergeProps(B,{inputmode:e.inputmode}),null):i.createVNode("input",i.mergeProps(u2(e.type,e.inputmode),B),null)},z=()=>{const y=u["left-icon"];if(e.leftIcon||y)return i.createVNode("div",{class:ye("left-icon"),onClick:Ee},[y?y():i.createVNode(Ze,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},me=()=>{const y=u["right-icon"];if(e.rightIcon||y)return i.createVNode("div",{class:ye("right-icon"),onClick:$},[y?y():i.createVNode(Ze,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Y=()=>{if(e.showWordLimit&&e.maxlength){const y=Ve(l());return i.createVNode("div",{class:ye("word-limit")},[i.createVNode("span",{class:ye("word-num")},[y]),i.createTextVNode("/"),e.maxlength])}},Bt=()=>{if(c&&c.props.showErrorMessage===!1)return;const y=e.errorMessage||r.validateMessage;if(y){const B=u["error-message"],O=d("errorMessageAlign");return i.createVNode("div",{class:ye("error-message",O)},[B?B({message:y}):y])}},X=()=>{const y=d("labelWidth"),B=d("labelAlign"),O=d("colon")?":":"";if(u.label)return[u.label(),O];if(e.label)return i.createVNode("label",{id:`${n}-label`,for:u.input?void 0:N(),"data-allow-mismatch":"attribute",onClick:L=>{Ft(L),A()},style:B==="top"&&y?{width:pe(y)}:void 0},[e.label+O])},Zu=()=>[i.createVNode("div",{class:ye("body")},[ne(),f.value&&i.createVNode(Ze,{ref:a,name:e.clearIcon,class:ye("clear")},null),me(),u.button&&i.createVNode("div",{class:ye("button")},[u.button()])]),Y(),Bt()];return Uu({blur:E,focus:A,validate:g,formValue:p,resetValidation:x,getValidationStatus:D}),i.provide(jd,{customValue:s,resetValidation:x,validateWithTrigger:_}),i.watch(()=>e.modelValue,()=>{w(l()),x(),_("onChange"),i.nextTick(V)}),i.onMounted(()=>{w(l(),e.formatTrigger),i.nextTick(V)}),qu("touchstart",I,{target:i.computed(()=>{var y;return(y=a.value)==null?void 0:y.$el})}),()=>{const y=d("disabled"),B=d("labelAlign"),O=z(),L=()=>{const G=X();return B==="top"?[O,G].filter(Boolean):G||[]};return i.createVNode(Kf,{size:e.size,class:ye({error:M.value,disabled:y,[`label-${B}`]:B}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:te.value,valueClass:ye("value"),titleClass:[ye("label",[B,{required:m.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:O&&B!=="top"?()=>O:null,title:L,value:Zu,extra:u.extra})}}});const a2=je(o2);let Tt=0;function s2(e){e?(Tt||document.body.classList.add("van-toast--unclickable"),Tt++):Tt&&(Tt--,Tt||document.body.classList.remove("van-toast--unclickable"))}const[c2,dt]=Ie("toast"),l2=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],d2={icon:String,show:Boolean,type:ae("text"),overlay:Boolean,message:re,iconSize:re,duration:Od(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 ki=i.defineComponent({name:c2,props:d2,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,s2(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:dt("icon"),classPrefix:h},null);if(p==="loading")return i.createVNode(Bf,{class:dt("loading"),size:m,type:x},null)},d=()=>{const{type:f,message:p}=e;if(u.message)return i.createVNode("div",{class:dt("text")},[u.message()]);if(se(p)&&p!=="")return f==="html"?i.createVNode("div",{key:0,class:dt("text"),innerHTML:String(p)},null):i.createVNode("div",{class:dt("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(Uf,i.mergeProps({class:[dt([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:c,"onUpdate:show":a},Vd(e,l2)),{default:()=>[l(),d()]})}});function f2(){const e=i.reactive({show:!1}),t=r=>{e.show=r},u=r=>{De(e,r,{transitionAppear:!0}),t(!0)},n=()=>t(!1);return Uu({open:u,close:n,toggle:t}),{open:u,close:n,state:e,toggle:t}}function h2(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 p2={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 au=[],m2=!1,Ei=De({},p2);const b2=new Map;function g2(e){return At(e)?e:{message:e}}function _2(){const{instance:e}=h2({setup(){const t=i.ref(""),{open:u,state:n,close:r,toggle:o}=f2(),a=()=>{},s=()=>{const c={onClosed:a,"onUpdate:show":o};return i.createVNode(ki,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 x2(){if(!au.length||m2){const e=_2();au.push(e)}return au[au.length-1]}function Oe(e={}){if(!Pu)return{};const t=x2(),u=g2(e);return t.open(De({},Ei,b2.get(u.type||Ei.type),u)),t}je(ki);const y2={class:"pf_wrap"},k2={class:"pf_form"},E2=["onClick"],C2={key:0,class:"sex_wrap"},w2={key:1,class:"input_wrap"},v2={class:"unit"},D2={key:2,class:"sport_wrap"},A2=["onClick"],F2={class:"name"},S2={class:"sub"},N2={key:3,class:"taste_wrap"},T2={class:"box"},B2=["onClick"],I2={class:"box"},V2=["onClick"],O2=W({__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 w=_.findIndex(C=>C.key===c.value[b].key);c.value[b]={...c.value[b],..._[w]}}}});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){Oe("请选择性别");return}c.value.find(g=>g.key==="sex").value=r.value.sex;break;case"age":if(!r.value.age){Oe("请输入年龄");return}c.value.find(g=>g.key==="age").value=r.value.age;break;case"height":if(!r.value.height){Oe("请输入身高");return}c.value.find(g=>g.key==="height").value=r.value.height;break;case"weight":if(!r.value.weight){Oe("请输入体重");return}c.value.find(g=>g.key==="weight").value=r.value.weight;break;case"sport":if(!r.value.sport){Oe("请选择日常运动水平");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){Oe("请填写完整信息");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){Oe("年龄需要在6-100岁");return}if(c.value[_].value<100||c.value[_].value>220){Oe("身高需要在100-220cm");return}if(c.value[b].value<10||c.value[b].value>150){Oe("体重需要在10-150kg");return}localStorage.setItem("personalInfo",JSON.stringify(c.value));const w=`${n.query};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
| 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new Qe,n=e,u=o.computed(()=>t.render(n.content));return(r,i)=>(o.openBlock(),o.createElementBlock("div",{innerHTML:u.value},null,8,$2))}},B2={},j2={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 z2(e,t){return o.openBlock(),o.createElementBlock("svg",j2,t[0]||(t[0]=[o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("g",{transform:"translate(44, 0) rotate(90)"},[o.createElementVNode("polyline",{stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",points:"16 10 28 22 16 34"})])],-1)]))}const U2=ye(B2,[["render",z2]]),q2={class:"pup_header"},H2={class:"left"},W2={class:"title"},Y2={class:"right"},G2={class:"pup_content",style:{height:"calc(height - 56px)"}},X2=ye({__name:"popup",props:{show:{type:Boolean,default:!1},height:{type:String,default:"50vh"},title:{type:String,default:""}},emits:["update:show","confirm","close"],setup(e,{emit:t}){const{t:n}=dt(),u=e,r=t,i=o.ref(!1),a=o.ref(`-${u.height}`),s=o.ref({delay:300,bottom:`-${u.height}`,opacity:0}),l=d=>{d?(s.value.bottom="0",s.value.opacity=.5):(s.value.bottom=`-${u.height}`,s.value.opacity=0)},c=()=>{r("confirm",{})};o.watch(()=>u.show,(d,h)=>{d?(a.value=`-${u.height}`,i.value=!0,setTimeout(()=>{l(!0)},0)):(l(!1),setTimeout(()=>{i.value=!1},300))});const f=()=>{r("update:show",!1),l(!1),setTimeout(()=>{i.value=!1},300)};return(d,h)=>i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"pup_mask",style:o.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${s.value.opacity})`}),onClick:o.withModifiers(f,["stop"])},[o.createElementVNode("div",{class:"pup_wrap",style:o.normalizeStyle({height:e.height,bottom:s.value.bottom}),onClick:o.withModifiers(()=>{},["stop"])},[o.createElementVNode("div",q2,[o.createElementVNode("div",H2,[o.createElementVNode("div",{class:"icon_down",onClick:o.withModifiers(f,["stop"])},[o.createVNode(U2)])]),o.createElementVNode("div",W2,o.toDisplayString(e.title),1),o.createElementVNode("div",Y2,[o.createElementVNode("div",{class:"btn",onClick:c},o.toDisplayString(o.unref(n)("common.confirm")),1)])]),o.createElementVNode("div",G2,[o.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):o.createCommentVNode("",!0)}},[["__scopeId","data-v-f8b655ee"]]);function Z2(){}const st=Object.assign,Tr=typeof window<"u",Rn=e=>e!==null&&typeof e=="object",$e=e=>e!=null,Du=e=>typeof e=="function",Qa=e=>Rn(e)&&Du(e.then)&&Du(e.catch),es=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),K2=()=>Tr?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function ts(e,t){const n=t.split(".");let u=e;return n.forEach(r=>{var i;u=Rn(u)&&(i=u[r])!=null?i:""}),u}function J2(e,t,n){return t.reduce((u,r)=>(u[r]=e[r],u),{})}const ns=e=>Array.isArray(e)?e:[e],Mt=null,Se=[Number,String],Pt={type:Boolean,default:!0},Q2=e=>({type:Number,default:e}),eg=e=>({type:Se,default:e}),Pe=e=>({type:String,default:e});var Sr=typeof window<"u";function tg(e){const t=o.inject(e,null);if(t){const n=o.getCurrentInstance(),{link:u,unlink:r,internalChildren:i}=t;u(n),o.onUnmounted(()=>r(n));const a=o.computed(()=>i.indexOf(n));return{parent:t,index:a}}return{parent:null,index:o.ref(-1)}}function us(e){let t;o.onMounted(()=>{e(),o.nextTick(()=>{t=!0})}),o.onActivated(()=>{t&&e()})}function Or(e,t,n={}){if(!Sr)return;const{target:u=window,passive:r=!1,capture:i=!1}=n;let a=!1,s;const l=d=>{if(a)return;const h=o.unref(d);h&&!s&&(h.addEventListener(e,t,{capture:i,passive:r}),s=!0)},c=d=>{if(a)return;const h=o.unref(d);h&&s&&(h.removeEventListener(e,t,i),s=!1)};o.onUnmounted(()=>c(u)),o.onDeactivated(()=>c(u)),us(()=>l(u));let f;return o.isRef(u)&&(f=o.watch(u,(d,h)=>{c(h),l(d)})),()=>{f==null||f(),c(u),a=!0}}var Nu,Ir;function ng(){if(!Nu&&(Nu=o.ref(0),Ir=o.ref(0),Sr)){const e=()=>{Nu.value=window.innerWidth,Ir.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Nu,height:Ir}}var ug=/scroll|auto|overlay/i,rg=Sr?window:void 0;function ig(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function og(e,t=rg){let n=e;for(;n&&n!==t&&ig(n);){const{overflowY:u}=window.getComputedStyle(n);if(ug.test(u))return n;n=n.parentNode}return t}var ag=Symbol("van-field");function rs(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function is(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function os(e){rs(window,e),rs(document.body,e)}const sg=K2();function lg(){sg&&os(is())}const cg=e=>e.stopPropagation();function Bn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&cg(e)}ng();function Xe(e){if($e(e))return es(e)?`${e}px`:String(e)}function fg(e){if($e(e)){if(Array.isArray(e))return{width:Xe(e[0]),height:Xe(e[1])};const t=Xe(e);return{width:t,height:t}}}function dg(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const hg=/-(\w)/g,as=e=>e.replace(hg,(t,n)=>n.toUpperCase()),mg=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),pg=(e,t,n)=>Math.min(Math.max(e,t),n);function ss(e,t,n){const u=e.indexOf(t);return u===-1?e:t==="-"&&u!==0?e.slice(0,u):e.slice(0,u+1)+e.slice(u).replace(n,"")}function gg(e,t=!0,n=!0){t?e=ss(e,".",/\./g):e=e.split(".")[0],n?e=ss(e,"-",/-/g):e=e.replace(/-/,"");const u=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(u,"")}const{hasOwnProperty:bg}=Object.prototype;function _g(e,t,n){const u=t[n];$e(u)&&(!bg.call(e,n)||!Rn(u)?e[n]=u:e[n]=ls(Object(e[n]),u))}function ls(e,t){return Object.keys(t).forEach(n=>{_g(e,t,n)}),e}var Eg={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 cs=o.ref("zh-CN"),fs=o.reactive({"zh-CN":Eg});var yg={messages(){return fs[cs.value]},use(e,t){cs.value=e,this.add({[e]:t})},add(e={}){ls(fs,e)}};function kg(e){const t=as(e)+".";return(n,...u)=>{const r=yg.messages(),i=ts(r,t+n)||ts(r,n);return Du(i)?i(...u):i}}function Lr(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,u)=>n+Lr(e,u),""):Object.keys(t).reduce((n,u)=>n+(t[u]?Lr(e,u):""),""):""}function xg(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Lr(t,n)}`)}function vt(e){const t=`van-${e}`;return[t,xg(t),kg(t)]}const Cg="van-haptics-feedback",vg=Symbol("van-form"),ds=5;function wg(e,{args:t=[],done:n,canceled:u,error:r}){if(e){const i=e.apply(null,t);Qa(i)?i.then(a=>{a?n():u&&u()}).catch(r||Z2):i?n():u&&u()}else n()}function Vt(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(as(`-${n}`),e))},e}const Dg=Symbol();function Fr(e){const t=o.getCurrentInstance();t&&st(t.proxy,e)}const Ng={to:[String,Object],url:String,replace:Boolean};function Ag({to:e,url:t,replace:n,$router:u}){e&&u?u[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function Tg(){const e=o.getCurrentInstance().proxy;return()=>Ag(e)}const[Sg,hs]=vt("badge"),Og={dot:Boolean,max:Se,tag:Pe("div"),color:String,offset:Array,content:Se,showZero:Pt,position:Pe("top-right")};var Ig=o.defineComponent({name:Sg,props:Og,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:s,showZero:l}=e;return $e(s)&&s!==""&&(l||s!==0&&s!=="0")},u=()=>{const{dot:s,max:l,content:c}=e;if(!s&&n())return t.content?t.content():$e(l)&&es(c)&&+c>+l?`${l}+`:c},r=s=>s.startsWith("-")?s.replace("-",""):`-${s}`,i=o.computed(()=>{const s={background:e.color};if(e.offset){const[l,c]=e.offset,{position:f}=e,[d,h]=f.split("-");t.default?(typeof c=="number"?s[d]=Xe(d==="top"?c:-c):s[d]=d==="top"?Xe(c):r(c),typeof l=="number"?s[h]=Xe(h==="left"?l:-l):s[h]=h==="left"?Xe(l):r(l)):(s.marginTop=Xe(c),s.marginLeft=Xe(l))}return s}),a=()=>{if(n()||e.dot)return o.createVNode("div",{class:hs([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[u()])};return()=>{if(t.default){const{tag:s}=e;return o.createVNode(s,{class:hs("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const Lg=Vt(Ig);let ms=2e3;const Fg=()=>++ms,Mg=e=>{ms=e},[ps,Pg]=vt("config-provider"),gs=Symbol(ps),Vg={tag:Pe("div"),theme:Pe("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Pe("local"),iconPrefix:String};function $g(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function Rg(e){const t={};return Object.keys(e).forEach(n=>{const u=$g(mg(n));t[`--van-${u}`]=e[n]}),t}function Au(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}o.defineComponent({name:ps,props:Vg,setup(e,{slots:t}){const n=o.computed(()=>Rg(st({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Tr){const u=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},r=(i=e.theme)=>{document.documentElement.classList.remove(`van-theme-${i}`)};o.watch(()=>e.theme,(i,a)=>{a&&r(a),u()},{immediate:!0}),o.onActivated(u),o.onDeactivated(r),o.onBeforeUnmount(r),o.watch(n,(i,a)=>{e.themeVarsScope==="global"&&Au(i,a)}),o.watch(()=>e.themeVarsScope,(i,a)=>{a==="global"&&Au({},n.value),i==="global"&&Au(n.value,{})}),e.themeVarsScope==="global"&&Au(n.value,{})}return o.provide(gs,e),o.watchEffect(()=>{e.zIndex!==void 0&&Mg(e.zIndex)}),()=>o.createVNode(e.tag,{class:Pg(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t)]}})}});const[Bg,bs]=vt("icon"),jg=e=>e==null?void 0:e.includes("/"),zg={dot:Boolean,tag:Pe("i"),name:String,size:Se,badge:Se,color:String,badgeProps:Object,classPrefix:String};var Ug=o.defineComponent({name:Bg,props:zg,setup(e,{slots:t}){const n=o.inject(gs,null),u=o.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||bs());return()=>{const{tag:r,dot:i,name:a,size:s,badge:l,color:c}=e,f=jg(a);return o.createVNode(Lg,o.mergeProps({dot:i,tag:r,class:[u.value,f?"":`${u.value}-${a}`],style:{color:c,fontSize:Xe(s)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),f&&o.createVNode("img",{class:bs("image"),src:a},null)]}})}}});const Wt=Vt(Ug),[qg,jn]=vt("loading"),Hg=Array(12).fill(null).map((e,t)=>o.createVNode("i",{class:jn("line",String(t+1))},null)),Wg=o.createVNode("svg",{class:jn("circular"),viewBox:"25 25 50 50"},[o.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Yg={size:Se,type:Pe("circular"),color:String,vertical:Boolean,textSize:Se,textColor:String};var Gg=o.defineComponent({name:qg,props:Yg,setup(e,{slots:t}){const n=o.computed(()=>st({color:e.color},fg(e.size))),u=()=>{const i=e.type==="spinner"?Hg:Wg;return o.createVNode("span",{class:jn("spinner",e.type),style:n.value},[t.icon?t.icon():i])},r=()=>{var i;if(t.default)return o.createVNode("span",{class:jn("text"),style:{fontSize:Xe(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:a}=e;return o.createVNode("div",{class:jn([i,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[u(),r()])}}});const Xg=Vt(Gg),Zg={show:Boolean,zIndex:Se,overlay:Pt,duration:Se,teleport:[String,Object],lockScroll:Pt,lazyRender:Pt,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Mt,transitionAppear:Boolean,closeOnClickOverlay:Pt};function Kg(e,t){return e>t?"horizontal":t>e?"vertical":""}function Jg(){const e=o.ref(0),t=o.ref(0),n=o.ref(0),u=o.ref(0),r=o.ref(0),i=o.ref(0),a=o.ref(""),s=o.ref(!0),l=()=>a.value==="vertical",c=()=>a.value==="horizontal",f=()=>{n.value=0,u.value=0,r.value=0,i.value=0,a.value="",s.value=!0};return{move:g=>{const p=g.touches[0];n.value=(p.clientX<0?0:p.clientX)-e.value,u.value=p.clientY-t.value,r.value=Math.abs(n.value),i.value=Math.abs(u.value);const x=10;(!a.value||r.value<x&&i.value<x)&&(a.value=Kg(r.value,i.value)),s.value&&(r.value>ds||i.value>ds)&&(s.value=!1)},start:g=>{f(),e.value=g.touches[0].clientX,t.value=g.touches[0].clientY},reset:f,startX:e,startY:t,deltaX:n,deltaY:u,offsetX:r,offsetY:i,direction:a,isVertical:l,isHorizontal:c,isTap:s}}let zn=0;const _s="van-overflow-hidden";function Qg(e,t){const n=Jg(),u="01",r="10",i=f=>{n.move(f);const d=n.deltaY.value>0?r:u,h=og(f.target,e.value),{scrollHeight:g,offsetHeight:p,scrollTop:x}=h;let C="11";x===0?C=p>=g?"00":"01":x+p>=g&&(C="10"),C!=="11"&&n.isVertical()&&!(parseInt(C,2)&parseInt(d,2))&&Bn(f,!0)},a=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),zn||document.body.classList.add(_s),zn++},s=()=>{zn&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),zn--,zn||document.body.classList.remove(_s))},l=()=>t()&&a(),c=()=>t()&&s();us(l),o.onDeactivated(c),o.onBeforeUnmount(c),o.watch(t,f=>{f?a():s()})}function Es(e){const t=o.ref(!1);return o.watch(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const ys=()=>{var e;const{scopeId:t}=((e=o.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[eb,tb]=vt("overlay"),nb={show:Boolean,zIndex:Se,duration:Se,className:Mt,lockScroll:Pt,lazyRender:Pt,customStyle:Object,teleport:[String,Object]};var ub=o.defineComponent({name:eb,inheritAttrs:!1,props:nb,setup(e,{attrs:t,slots:n}){const u=o.ref(),r=Es(()=>e.show||!e.lazyRender),i=s=>{e.lockScroll&&Bn(s,!0)},a=r(()=>{var s;const l=st(dg(e.zIndex),e.customStyle);return $e(e.duration)&&(l.animationDuration=`${e.duration}s`),o.withDirectives(o.createVNode("div",o.mergeProps({ref:u,style:l,class:[tb(),e.className]},t),[(s=n.default)==null?void 0:s.call(n)]),[[o.vShow,e.show]])});return Or("touchmove",i,{target:u}),()=>{const s=o.createVNode(o.Transition,{name:"van-fade",appear:!0},{default:a});return e.teleport?o.createVNode(o.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const rb=Vt(ub),ib=st({},Zg,{round:Boolean,position:Pe("center"),closeIcon:Pe("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Pe("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[ob,ks]=vt("popup");var ab=o.defineComponent({name:ob,inheritAttrs:!1,props:ib,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:u}){let r,i;const a=o.ref(),s=o.ref(),l=Es(()=>e.show||!e.lazyRender),c=o.computed(()=>{const _={zIndex:a.value};if($e(e.duration)){const w=e.position==="center"?"animationDuration":"transitionDuration";_[w]=`${e.duration}s`}return _}),f=()=>{r||(r=!0,a.value=e.zIndex!==void 0?+e.zIndex:Fg(),t("open"))},d=()=>{r&&wg(e.beforeClose,{done(){r=!1,t("close"),t("update:show",!1)}})},h=_=>{t("clickOverlay",_),e.closeOnClickOverlay&&d()},g=()=>{if(e.overlay){const _=st({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 o.createVNode(rb,o.mergeProps(_,ys(),{onClick:h}),{default:u["overlay-content"]})}},p=_=>{t("clickCloseIcon",_),d()},x=()=>{if(e.closeable)return o.createVNode(Wt,{role:"button",tabindex:0,name:e.closeIcon,class:[ks("close-icon",e.closeIconPosition),Cg],classPrefix:e.iconPrefix,onClick:p},null)};let C;const A=()=>{C&&clearTimeout(C),C=setTimeout(()=>{t("opened")})},v=()=>t("closed"),m=_=>t("keydown",_),E=l(()=>{var _;const{destroyOnClose:w,round:D,position:T,safeAreaInsetTop:V,safeAreaInsetBottom:ue,show:R}=e;if(!(!R&&w))return o.withDirectives(o.createVNode("div",o.mergeProps({ref:s,style:c.value,role:"dialog",tabindex:0,class:[ks({round:D,[T]:T}),{"van-safe-area-top":V,"van-safe-area-bottom":ue}],onKeydown:m},n,ys()),[(_=u.default)==null?void 0:_.call(u),x()]),[[o.vShow,R]])}),y=()=>{const{position:_,transition:w,transitionAppear:D}=e,T=_==="center"?"van-fade":`van-popup-slide-${_}`;return o.createVNode(o.Transition,{name:w||T,appear:D,onAfterEnter:A,onAfterLeave:v},{default:E})};return o.watch(()=>e.show,_=>{_&&!r&&(f(),n.tabindex===0&&o.nextTick(()=>{var w;(w=s.value)==null||w.focus()})),!_&&r&&(r=!1,t("close"))}),Fr({popupRef:s}),Qg(s,()=>e.show&&e.lockScroll),Or("popstate",()=>{e.closeOnPopstate&&(d(),i=!1)}),o.onMounted(()=>{e.show&&f()}),o.onActivated(()=>{i&&(t("update:show",!0),i=!1)}),o.onDeactivated(()=>{e.show&&e.teleport&&(d(),i=!0)}),o.provide(Dg,()=>e.show),()=>e.teleport?o.createVNode(o.Teleport,{to:e.teleport},{default:()=>[g(),y()]}):o.createVNode(o.Fragment,null,[g(),y()])}});const sb=Vt(ab);let lb=0;function cb(){const e=o.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++lb}`}const[fb,pn]=vt("cell"),xs={tag:Pe("div"),icon:String,size:String,title:Se,value:Se,label:Se,center:Boolean,isLink:Boolean,border:Pt,iconPrefix:String,valueClass:Mt,labelClass:Mt,titleClass:Mt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},db=st({},xs,Ng);var hb=o.defineComponent({name:fb,props:db,setup(e,{slots:t}){const n=Tg(),u=()=>{if(t.label||$e(e.label))return o.createVNode("div",{class:[pn("label"),e.labelClass]},[t.label?t.label():e.label])},r=()=>{var l;if(t.title||$e(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:o.createVNode("div",{class:[pn("title"),e.titleClass],style:e.titleStyle},[c||o.createVNode("span",null,[e.title]),u()])}},i=()=>{const l=t.value||t.default;if(l||$e(e.value))return o.createVNode("div",{class:[pn("value"),e.valueClass]},[l?l():o.createVNode("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return o.createVNode(Wt,{name:e.icon,class:pn("left-icon"),classPrefix:e.iconPrefix},null)},s=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return o.createVNode(Wt,{name:l,class:pn("right-icon")},null)}};return()=>{var l;const{tag:c,size:f,center:d,border:h,isLink:g,required:p}=e,x=(l=e.clickable)!=null?l:g,C={center:d,required:!!p,clickable:x,borderless:!h};return f&&(C[f]=!!f),o.createVNode(c,{class:pn(C),role:x?"button":void 0,tabindex:x?0:void 0,onClick:n},{default:()=>{var A;return[a(),r(),i(),s(),(A=t.extra)==null?void 0:A.call(t)]}})}}});const mb=Vt(hb);function Cs(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function pb(e,t){if(Cs(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function gb(e,t){return new Promise(n=>{const u=t.validator(e,t);if(Qa(u)){u.then(n);return}n(u)})}function vs(e,t){const{message:n}=t;return Du(n)?n(e,t):n||""}function bb({target:e}){e.composing=!0}function ws({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function _b(e,t){const n=is();e.style.height="auto";let u=e.scrollHeight;if(Rn(t)){const{maxHeight:r,minHeight:i}=t;r!==void 0&&(u=Math.min(u,r)),i!==void 0&&(u=Math.max(u,i))}u&&(e.style.height=`${u}px`,os(n))}function Eb(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function wt(e){return[...e].length}function Mr(e,t){return[...e].slice(0,t).join("")}const[yb,et]=vt("field"),kb={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Se,max:Number,min:Number,formatter:Function,clearIcon:Pe("clear"),modelValue:eg(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Pe("focus"),formatTrigger:Pe("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},xb=st({},xs,kb,{rows:Se,type:Pe("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Se,labelClass:Mt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Cb=o.defineComponent({name:yb,props:xb,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const u=cb(),r=o.reactive({status:"unvalidated",focused:!1,validateMessage:""}),i=o.ref(),a=o.ref(),s=o.ref(),{parent:l}=tg(vg),c=()=>{var S;return String((S=e.modelValue)!=null?S:"")},f=S=>{if($e(e[S]))return e[S];if(l&&$e(l.props[S]))return l.props[S]},d=o.computed(()=>{const S=f("readonly");if(e.clearable&&!S){const G=c()!=="",Y=e.clearTrigger==="always"||e.clearTrigger==="focus"&&r.focused;return G&&Y}return!1}),h=o.computed(()=>s.value&&n.input?s.value():e.modelValue),g=o.computed(()=>{var S;const G=f("required");return G==="auto"?(S=e.rules)==null?void 0:S.some(Y=>Y.required):G}),p=S=>S.reduce((G,Y)=>G.then(()=>{if(r.status==="failed")return;let{value:oe}=h;if(Y.formatter&&(oe=Y.formatter(oe,Y)),!pb(oe,Y)){r.status="failed",r.validateMessage=vs(oe,Y);return}if(Y.validator)return Cs(oe)&&Y.validateEmpty===!1?void 0:gb(oe,Y).then(Q=>{Q&&typeof Q=="string"?(r.status="failed",r.validateMessage=Q):Q===!1&&(r.status="failed",r.validateMessage=vs(oe,Y))})}),Promise.resolve()),x=()=>{r.status="unvalidated",r.validateMessage=""},C=()=>t("endValidate",{status:r.status,message:r.validateMessage}),A=(S=e.rules)=>new Promise(G=>{x(),S?(t("startValidate"),p(S).then(()=>{r.status==="failed"?(G({name:e.name,message:r.validateMessage}),C()):(r.status="passed",G(),C())})):G()}),v=S=>{if(l&&e.rules){const{validateTrigger:G}=l.props,Y=ns(G).includes(S),oe=e.rules.filter(Q=>Q.trigger?ns(Q.trigger).includes(S):Y);oe.length&&A(oe)}},m=S=>{var G;const{maxlength:Y}=e;if($e(Y)&&wt(S)>+Y){const oe=c();if(oe&&wt(oe)===+Y)return oe;const Q=(G=i.value)==null?void 0:G.selectionEnd;if(r.focused&&Q){const Ne=[...S],ze=Ne.length-+Y;return Ne.splice(Q-ze,ze),Ne.join("")}return Mr(S,+Y)}return S},E=(S,G="onChange")=>{var Y,oe;const Q=S;S=m(S);const Ne=wt(Q)-wt(S);if(e.type==="number"||e.type==="digit"){const I=e.type==="number";if(S=gg(S,I,I),G==="onBlur"&&S!==""&&(e.min!==void 0||e.max!==void 0)){const z=pg(+S,(Y=e.min)!=null?Y:-1/0,(oe=e.max)!=null?oe:1/0);+S!==z&&(S=z.toString())}}let ze=0;if(e.formatter&&G===e.formatTrigger){const{formatter:I,maxlength:z}=e;if(S=I(S),$e(z)&&wt(S)>+z&&(S=Mr(S,+z)),i.value&&r.focused){const{selectionEnd:tt}=i.value,ae=Mr(Q,tt);ze=wt(I(ae))-wt(ae)}}if(i.value&&i.value.value!==S)if(r.focused){let{selectionStart:I,selectionEnd:z}=i.value;if(i.value.value=S,$e(I)&&$e(z)){const tt=wt(S);Ne?(I-=Ne,z-=Ne):ze&&(I+=ze,z+=ze),i.value.setSelectionRange(Math.min(I,tt),Math.min(z,tt))}}else i.value.value=S;S!==e.modelValue&&t("update:modelValue",S)},y=S=>{S.target.composing||E(S.target.value)},_=()=>{var S;return(S=i.value)==null?void 0:S.blur()},w=()=>{var S;return(S=i.value)==null?void 0:S.focus()},D=()=>{const S=i.value;e.type==="textarea"&&e.autosize&&S&&_b(S,e.autosize)},T=S=>{r.focused=!0,t("focus",S),o.nextTick(D),f("readonly")&&_()},V=S=>{r.focused=!1,E(c(),"onBlur"),t("blur",S),!f("readonly")&&(v("onBlur"),o.nextTick(D),lg())},ue=S=>t("clickInput",S),R=S=>t("clickLeftIcon",S),be=S=>t("clickRightIcon",S),X=S=>{Bn(S),t("update:modelValue",""),t("clear",S)},j=o.computed(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&r.status==="failed")return!0}),K=o.computed(()=>{const S=f("labelWidth"),G=f("labelAlign");if(S&&G!=="top")return{width:Xe(S)}}),_e=S=>{S.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&Bn(S),e.type==="search"&&_()),t("keypress",S)},F=()=>e.id||`${u}-input`,q=()=>r.status,M=()=>{const S=et("control",[f("inputAlign"),{error:j.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return o.createVNode("div",{class:S,onClick:ue},[n.input()]);const G={id:F(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:S,disabled:f("disabled"),readonly:f("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${u}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:V,onFocus:T,onInput:y,onClick:ue,onChange:ws,onKeypress:_e,onCompositionend:ws,onCompositionstart:bb};return e.type==="textarea"?o.createVNode("textarea",o.mergeProps(G,{inputmode:e.inputmode}),null):o.createVNode("input",o.mergeProps(Eb(e.type,e.inputmode),G),null)},he=()=>{const S=n["left-icon"];if(e.leftIcon||S)return o.createVNode("div",{class:et("left-icon"),onClick:R},[S?S():o.createVNode(Wt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},H=()=>{const S=n["right-icon"];if(e.rightIcon||S)return o.createVNode("div",{class:et("right-icon"),onClick:be},[S?S():o.createVNode(Wt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Oe=()=>{if(e.showWordLimit&&e.maxlength){const S=wt(c());return o.createVNode("div",{class:et("word-limit")},[o.createVNode("span",{class:et("word-num")},[S]),o.createTextVNode("/"),e.maxlength])}},te=()=>{if(l&&l.props.showErrorMessage===!1)return;const S=e.errorMessage||r.validateMessage;if(S){const G=n["error-message"],Y=f("errorMessageAlign");return o.createVNode("div",{class:et("error-message",Y)},[G?G({message:S}):S])}},lt=()=>{const S=f("labelWidth"),G=f("labelAlign"),Y=f("colon")?":":"";if(n.label)return[n.label(),Y];if(e.label)return o.createVNode("label",{id:`${u}-label`,for:n.input?void 0:F(),"data-allow-mismatch":"attribute",onClick:oe=>{Bn(oe),w()},style:G==="top"&&S?{width:Xe(S)}:void 0},[e.label+Y])},ie=()=>[o.createVNode("div",{class:et("body")},[M(),d.value&&o.createVNode(Wt,{ref:a,name:e.clearIcon,class:et("clear")},null),H(),n.button&&o.createVNode("div",{class:et("button")},[n.button()])]),Oe(),te()];return Fr({blur:_,focus:w,validate:A,formValue:h,resetValidation:x,getValidationStatus:q}),o.provide(ag,{customValue:s,resetValidation:x,validateWithTrigger:v}),o.watch(()=>e.modelValue,()=>{E(c()),x(),v("onChange"),o.nextTick(D)}),o.onMounted(()=>{E(c(),e.formatTrigger),o.nextTick(D)}),Or("touchstart",X,{target:o.computed(()=>{var S;return(S=a.value)==null?void 0:S.$el})}),()=>{const S=f("disabled"),G=f("labelAlign"),Y=he(),oe=()=>{const Q=lt();return G==="top"?[Y,Q].filter(Boolean):Q||[]};return o.createVNode(mb,{size:e.size,class:et({error:j.value,disabled:S,[`label-${G}`]:G}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:K.value,valueClass:et("value"),titleClass:[et("label",[G,{required:g.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:Y&&G!=="top"?()=>Y:null,title:oe,value:ie,extra:n.extra})}}});const vb=Vt(Cb);let Un=0;function wb(e){e?(Un||document.body.classList.add("van-toast--unclickable"),Un++):Un&&(Un--,Un||document.body.classList.remove("van-toast--unclickable"))}const[Db,gn]=vt("toast"),Nb=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Ab={icon:String,show:Boolean,type:Pe("text"),overlay:Boolean,message:Se,iconSize:Se,duration:Q2(2e3),position:Pe("middle"),teleport:[String,Object],wordBreak:String,className:Mt,iconPrefix:String,transition:Pe("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Mt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Se};var Ds=o.defineComponent({name:Db,props:Ab,emits:["update:show"],setup(e,{emit:t,slots:n}){let u,r=!1;const i=()=>{const d=e.show&&e.forbidClick;r!==d&&(r=d,wb(r))},a=d=>t("update:show",d),s=()=>{e.closeOnClick&&a(!1)},l=()=>clearTimeout(u),c=()=>{const{icon:d,type:h,iconSize:g,iconPrefix:p,loadingType:x}=e;if(d||h==="success"||h==="fail")return o.createVNode(Wt,{name:d||h,size:g,class:gn("icon"),classPrefix:p},null);if(h==="loading")return o.createVNode(Xg,{class:gn("loading"),size:g,type:x},null)},f=()=>{const{type:d,message:h}=e;if(n.message)return o.createVNode("div",{class:gn("text")},[n.message()]);if($e(h)&&h!=="")return d==="html"?o.createVNode("div",{key:0,class:gn("text"),innerHTML:String(h)},null):o.createVNode("div",{class:gn("text")},[h])};return o.watch(()=>[e.show,e.forbidClick],i),o.watch(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(u=setTimeout(()=>{a(!1)},e.duration))}),o.onMounted(i),o.onUnmounted(i),()=>o.createVNode(sb,o.mergeProps({class:[gn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":a},J2(e,Nb)),{default:()=>[c(),f()]})}});function Tb(){const e=o.reactive({show:!1}),t=r=>{e.show=r},n=r=>{st(e,r,{transitionAppear:!0}),t(!0)},u=()=>t(!1);return Fr({open:n,close:u,toggle:t}),{open:n,close:u,state:e,toggle:t}}function Sb(e){const t=o.createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Ob={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 Tu=[],Ib=!1,Ns=st({},Ob);const Lb=new Map;function Fb(e){return Rn(e)?e:{message:e}}function Mb(){const{instance:e}=Sb({setup(){const t=o.ref(""),{open:n,state:u,close:r,toggle:i}=Tb(),a=()=>{},s=()=>{const l={onClosed:a,"onUpdate:show":i};return o.createVNode(Ds,o.mergeProps(u,l),null)};return o.watch(t,l=>{u.message=l}),o.getCurrentInstance().render=s,{open:n,close:r,message:t}}});return e}function Pb(){if(!Tu.length||Ib){const e=Mb();Tu.push(e)}return Tu[Tu.length-1]}function Dt(e={}){if(!Tr)return{};const t=Pb(),n=Fb(e);return t.open(st({},Ns,Lb.get(n.type||Ns.type),n)),t}Vt(Ds);const Vb={class:"pf_wrap"},$b={class:"pf_form"},Rb=["onClick"],Bb={key:0,class:"sex_wrap"},jb={key:1,class:"input_wrap"},zb={class:"unit"},Ub={key:2,class:"sport_wrap"},qb=["onClick"],Hb={class:"name"},Wb={class:"sub"},Yb={key:3,class:"taste_wrap"},Gb={class:"title"},Xb={class:"box"},Zb=["onClick"],Kb={class:"title"},Jb={class:"box"},Qb=["onClick"],e_=ye({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const{t:n,locale:u}=dt(),r=o.ref(!1),i=e,a=o.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",taste:[],taboo:[],title:"标题",unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),s=o.computed(()=>[{key:"rest",name:n("personal_form.sport_list.rest"),sub:n("personal_form.sport_list.rest_sub")},{key:"sedentary",name:n("personal_form.sport_list.sedentary"),sub:n("personal_form.sport_list.sedentary_sub")},{key:"light",name:n("personal_form.sport_list.light"),sub:n("personal_form.sport_list.light_sub")},{key:"medium",name:n("personal_form.sport_list.medium"),sub:n("personal_form.sport_list.medium_sub")},{key:"heavy",name:n("personal_form.sport_list.heavy"),sub:n("personal_form.sport_list.heavy_sub")}]),l=["spicy","onion","ginger","garlic","sugar","fish","shrimp","beef","chicken","pork"],c=["high_gi","high_saturated_fat","high_purine","high_salt","high_cholesterol"],f=o.ref([{key:"sex",label:n("personal_form.sex"),value:"",placeholder:n("personal_form.placeholder.sex"),required:!0},{key:"age",label:n("personal_form.age"),value:"",placeholder:n("personal_form.placeholder.age"),unit:n("personal_form.unit.age"),required:!0},{key:"height",label:n("personal_form.height"),value:"",placeholder:n("personal_form.placeholder.height"),unit:n("personal_form.unit.height"),required:!0},{key:"weight",label:n("personal_form.weight"),value:"",placeholder:n("personal_form.placeholder.weight"),unit:n("personal_form.unit.weight"),required:!0},{key:"sport",label:n("personal_form.sport"),value:"sedentary",placeholder:n("personal_form.placeholder.sport"),required:!0},{key:"taste",label:n("personal_form.taste"),value:"",taste:[],taboo:[],placeholder:n("personal_form.placeholder.taste"),required:!1}]),d=t;o.watch(()=>u.value,()=>{var E,y,_,w,D,T,V,ue;const m={};f.value.forEach(R=>{m[R.key]={value:R.value,taste:R.taste,taboo:R.taboo}}),f.value=[{key:"sex",label:n("personal_form.sex"),value:((E=m.sex)==null?void 0:E.value)||"",placeholder:n("personal_form.placeholder.sex"),required:!0},{key:"age",label:n("personal_form.age"),value:((y=m.age)==null?void 0:y.value)||"",placeholder:n("personal_form.placeholder.age"),unit:n("personal_form.unit.age"),required:!0},{key:"height",label:n("personal_form.height"),value:((_=m.height)==null?void 0:_.value)||"",placeholder:n("personal_form.placeholder.height"),unit:n("personal_form.unit.height"),required:!0},{key:"weight",label:n("personal_form.weight"),value:((w=m.weight)==null?void 0:w.value)||"",placeholder:n("personal_form.placeholder.weight"),unit:n("personal_form.unit.weight"),required:!0},{key:"sport",label:n("personal_form.sport"),value:((D=m.sport)==null?void 0:D.value)||"sedentary",placeholder:n("personal_form.placeholder.sport"),required:!0},{key:"taste",label:n("personal_form.taste"),value:((T=m.taste)==null?void 0:T.value)||"",taste:((V=m.taste)==null?void 0:V.taste)||[],taboo:((ue=m.taste)==null?void 0:ue.taboo)||[],placeholder:n("personal_form.placeholder.taste"),required:!1}]}),o.onMounted(()=>{const m=localStorage.getItem("personalInfo");if(m){const E=JSON.parse(m);for(let y=0;y<f.value.length;y++){const _=E.find(w=>w.key===f.value[y].key);_&&(f.value[y].value=_.value||"",_.taste&&(f.value[y].taste=_.taste),_.taboo&&(f.value[y].taboo=_.taboo))}}console.log("== xx ===",f.value)});const h=o.computed(()=>f.value.filter(m=>m.key!=="taste").every(m=>m.value!=="")),g=m=>{switch(a.value.key=m.key,m.key){case"sex":a.value.title=n("personal_form.dialog.sex"),a.value.dialogHeight="300px",a.value.sex=m.value;break;case"age":a.value.title=n("personal_form.dialog.age"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.age=m.value,a.value.min=6,a.value.max=100,a.value.type="number";break;case"height":a.value.title=n("personal_form.dialog.height"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.height=m.value,a.value.min=100,a.value.max=220,a.value.type="digit";break;case"weight":a.value.title=n("personal_form.dialog.weight"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.weight=m.value,a.value.min=10,a.value.max=150,a.value.type="digit";break;case"sport":a.value.title=n("personal_form.dialog.sport"),a.value.dialogHeight="420px",a.value.unit="",a.value.sport=m.value;break;case"taste":a.value.title=n("personal_form.dialog.taste"),a.value.dialogHeight="500px",a.value.unit="",a.value.taste=[...m.taste],a.value.taboo=[...m.taboo];break}console.log(a.value,m),r.value=!0},p=()=>{switch(a.value.key){case"sex":if(!a.value.sex){Dt(n("personal_form.toast.select_sex"));return}f.value.find(m=>m.key==="sex").value=a.value.sex;break;case"age":if(!a.value.age){Dt(n("personal_form.toast.input_age"));return}f.value.find(m=>m.key==="age").value=a.value.age;break;case"height":if(!a.value.height){Dt(n("personal_form.toast.input_height"));return}f.value.find(m=>m.key==="height").value=a.value.height;break;case"weight":if(!a.value.weight){Dt(n("personal_form.toast.input_weight"));return}f.value.find(m=>m.key==="weight").value=a.value.weight;break;case"sport":if(!a.value.sport){Dt(n("personal_form.toast.select_sport"));return}f.value.find(m=>m.key==="sport").value=a.value.sport;break;case"taste":f.value.find(m=>m.key==="taste").taste=a.value.taste,f.value.find(m=>m.key==="taste").taboo=a.value.taboo,f.value.find(m=>m.key==="taste").value=[...a.value.taste,...a.value.taboo].join("、");break}r.value=!1},x=()=>{if(!h.value){Dt(n("personal_form.toast.fill_all"));return}const m=f.value.findIndex(D=>D.key==="age"),E=f.value.findIndex(D=>D.key==="height"),y=f.value.findIndex(D=>D.key==="weight");if(f.value[m].value<6||f.value[m].value>100){Dt(n("personal_form.toast.age_range"));return}if(f.value[E].value<100||f.value[E].value>220){Dt(n("personal_form.toast.height_range"));return}if(f.value[y].value<10||f.value[y].value>150){Dt(n("personal_form.toast.weight_range"));return}const _=f.value.map(D=>{const{value:T,taste:V,taboo:ue}=D;return{key:D.key,value:T,taste:V,taboo:ue}});localStorage.setItem("personalInfo",JSON.stringify(_));const w=`${i.query};
|
|
62
|
+
${n("personal_form.sex")}:${n(`personal_form.sex_options.${f.value.find(D=>D.key==="sex").value}`)};
|
|
63
|
+
${n("personal_form.age")}:${f.value[m].value}${f.value[m].unit||""};
|
|
64
|
+
${n("personal_form.height")}:${f.value[E].value}${f.value[E].unit||""};
|
|
65
|
+
${n("personal_form.weight")}:${f.value[y].value}${f.value[y].unit||""};
|
|
66
|
+
${n("personal_form.sport")}:${n(`personal_form.sport_list.${f.value.find(D=>D.key==="sport").value}`)};
|
|
67
|
+
${n("personal_form.taste")}:${f.value.find(D=>D.key==="taste").value?f.value.find(D=>D.key==="taste").value:n("personal_form.no_taboo")};`;console.log(w),d("submit",[{content:w,text:w}])},C=(m,E)=>{a.value[E].includes(m)?a.value[E]=a.value[E].filter(y=>y!==m):a.value[E].push(m)},A=m=>{a.value.sport=m.key,p()},v=m=>{a.value.sex=m,p()};return(m,E)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",Vb,[o.createElementVNode("div",$b,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,y=>(o.openBlock(),o.createElementBlock("div",{key:y.key,class:"pf_row"},[o.createElementVNode("div",{class:o.normalizeClass(["title",{is_required:y.required}])},o.toDisplayString(y.label),3),o.createElementVNode("div",{class:"content",onClick:_=>g(y)},[o.createElementVNode("span",{class:"text_row",style:o.normalizeStyle({color:y.value?"#000":"#75759d"})},o.toDisplayString(y.value?y.key==="sport"?o.unref(n)(`personal_form.sport_list.${y.value}`):y.key==="sex"?o.unref(n)(`personal_form.sex_options.${y.value}`):`${y.value} ${y.unit||""}`:y.placeholder),5),o.createVNode(oa,{class:"arrow"})],8,Rb)]))),128))]),o.createElementVNode("div",{class:o.normalizeClass(["pf_btn",{disabled:!h.value}]),onClick:o.withModifiers(x,["stop"])},o.toDisplayString(o.unref(n)("personal_form.button")),3)]),o.createVNode(X2,{show:r.value,"onUpdate:show":E[3]||(E[3]=y=>r.value=y),title:a.value.title,height:a.value.dialogHeight,onConfirm:p},{default:o.withCtx(()=>[a.value.key==="sex"?(o.openBlock(),o.createElementBlock("div",Bb,[o.createElementVNode("div",{class:o.normalizeClass({sex:!0,selected:a.value.sex==="male"}),onClick:E[0]||(E[0]=o.withModifiers(y=>v("male"),["stop"]))},o.toDisplayString(o.unref(n)("personal_form.sex_options.male")),3),o.createElementVNode("div",{class:o.normalizeClass({sex:!0,selected:a.value.sex==="female"}),onClick:E[1]||(E[1]=o.withModifiers(y=>v("female"),["stop"]))},o.toDisplayString(o.unref(n)("personal_form.sex_options.female")),3)])):o.createCommentVNode("",!0),["age","height","weight"].includes(a.value.key)?(o.openBlock(),o.createElementBlock("div",jb,[o.createVNode(o.unref(vb),{modelValue:a.value[a.value.key],"onUpdate:modelValue":E[2]||(E[2]=y=>a.value[a.value.key]=y),class:"input",type:a.value.type,min:a.value.min,max:a.value.max,onKeyup:o.withKeys(p,["enter"]),placeholder:o.unref(n)("personal_form.placeholder.input")},null,8,["modelValue","type","min","max","placeholder"]),o.createElementVNode("div",zb,o.toDisplayString(a.value.unit),1)])):o.createCommentVNode("",!0),a.value.key==="sport"?(o.openBlock(),o.createElementBlock("div",Ub,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,y=>(o.openBlock(),o.createElementBlock("div",{key:y.key,class:o.normalizeClass({row:!0,selected:a.value.sport===y.key}),onClick:o.withModifiers(_=>A(y),["stop"])},[o.createElementVNode("div",Hb,o.toDisplayString(y.name),1),o.createElementVNode("div",Wb,o.toDisplayString(y.sub),1)],10,qb))),128))])):o.createCommentVNode("",!0),a.value.key==="taste"?(o.openBlock(),o.createElementBlock("div",Yb,[o.createElementVNode("div",Gb,o.toDisplayString(o.unref(n)("personal_form.taste")),1),o.createElementVNode("div",Xb,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(l,y=>o.createElementVNode("div",{class:o.normalizeClass({tag:!0,selected:a.value.taste.includes(y)}),key:y,onClick:o.withModifiers(_=>C(y,"taste"),["stop"])},o.toDisplayString(o.unref(n)(`personal_form.taste_list.${y}`)),11,Zb)),64))]),E[4]||(E[4]=o.createElementVNode("div",{class:"line"},null,-1)),o.createElementVNode("div",Kb,o.toDisplayString(o.unref(n)("personal_form.taboo")),1),o.createElementVNode("div",Jb,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(c,y=>o.createElementVNode("div",{class:o.normalizeClass({tag:!0,selected:a.value.taboo.includes(y)}),key:y,onClick:o.withModifiers(_=>C(y,"taboo"),["stop"])},o.toDisplayString(o.unref(n)(`personal_form.taboo_list.${y}`)),11,Qb)),64))])])):o.createCommentVNode("",!0)]),_:1},8,["show","title","height"])],64))}},[["__scopeId","data-v-99e0b1ca"]]),t_={class:"cui_box"},n_={class:"cui_wrap"},u_={key:0,class:"cui_header"},r_={class:"name_box"},i_={class:"name"},o_={key:0,class:"name_sub"},a_={class:"btn_group"},s_={style:{"font-size":"14px"}},l_={class:"btn"},c_={class:"btn"},f_={class:"cui_content"},d_={key:0,style:{"text-align":"left","margin-top":"50px"}},h_={style:{"text-align":"center"}},m_=["src"],p_={class:"board_name"},g_={class:"board_desc"},b_={class:"flexcss"},__=["onClick"],E_={key:0,class:"replay role_sys"},y_={class:"replay_content"},k_={class:"name"},x_=["src"],C_={class:"box"},v_={key:0,class:"think_status"},w_={key:1,class:"think_status"},D_={class:"think_text"},N_={key:0},A_={key:4},T_={key:1},S_={key:2,class:"loading_row"},O_={key:1,class:"replay role_user"},I_={class:"replay_content"},L_={class:"name"},F_=["src"],M_={class:"box"},P_=["innerHTML"],V_={key:0},As=ye({__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{t:n}=dt(),u=o.computed(()=>({headers:{Authorization:`Bearer ${h.token}`,"Content-Type":"application/json"}})),r=o.ref(""),i=o.ref(!1),a=o.ref("00"),s=o.ref([]),l=o.ref(!1),c=o.ref(1),f=o.computed(()=>({placeholder:n("msg_obj.placeholder"),fileText:n("msg_obj.fileText"),uploadingTips:n("msg_obj.uploadingTips"),matchText:n("msg_obj.matchText"),matchContent:n("msg_obj.matchContent"),energy:n("msg_obj.energy"),protein:n("msg_obj.protein"),fat:n("msg_obj.fat"),carbonwater:n("msg_obj.carbonwater"),newChat:n("msg_obj.newChat"),thinking:n("msg_obj.thinking"),thinkCompleted:n("msg_obj.thinkCompleted"),useSolution:n("msg_obj.useSolution"),aiTips:n("msg_obj.aiTips")})),d={store:!0,dishes:!0,plan:!0,personalForm:!1},h=e,g=t,p=o.computed(()=>({...f,...h.defMsg})),x=o.computed(()=>({...d,...h.cardList})),C=o.ref(null),A=o.ref(""),v=o.ref({}),m={setItem:(F,q)=>{h.storage==="sessionStorage"?sessionStorage.setItem(F,q):localStorage.setItem(F,q)},getItem:F=>h.storage==="sessionStorage"?sessionStorage.getItem(F):localStorage.getItem(F)};o.onMounted(async()=>{localStorage.setItem("postToken",h.postToken||""),m.getItem("conversationId")?(r.value=m.getItem("conversationId"),await D(),await w(),l.value=!1):(await y(),h.firstMsg&&await E()),j()});const E=async()=>{const F=[{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"2",weight:"50",height:"160"}},age:25,msg:`${n("msg_obj.firstMsg.balancedDiet")}${h.firstMsg}${n("msg_obj.firstMsg.dietExample")}${n("msg_obj.firstMsg.femaleData")}
|
|
68
|
+
${n("msg_obj.firstMsg.gender")}${n("personal_form.sex_options.female")};
|
|
69
|
+
${n("msg_obj.firstMsg.age")}25${n("personal_form.unit.age")};
|
|
70
|
+
${n("msg_obj.firstMsg.height")}160${n("personal_form.unit.height")};
|
|
71
|
+
${n("msg_obj.firstMsg.weight")}50${n("personal_form.unit.weight")};
|
|
72
|
+
${n("msg_obj.firstMsg.activityLevel")}${n("msg_obj.firstMsg.sedentary")};
|
|
73
|
+
${n("msg_obj.firstMsg.tastePreferences")}${n("msg_obj.firstMsg.noRestrictions")};
|
|
74
|
+
${n("msg_obj.firstMsg.customizePlan")}`},{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"1",weight:"65",height:"170"}},age:25,msg:`${n("msg_obj.firstMsg.balancedDiet")}${h.firstMsg}${n("msg_obj.firstMsg.dietExample")}${n("msg_obj.firstMsg.maleData")}
|
|
75
|
+
${n("msg_obj.firstMsg.gender")}${n("personal_form.sex_options.male")};
|
|
76
|
+
${n("msg_obj.firstMsg.age")}25${n("personal_form.unit.age")};
|
|
77
|
+
${n("msg_obj.firstMsg.height")}170${n("personal_form.unit.height")};
|
|
78
|
+
${n("msg_obj.firstMsg.weight")}65${n("personal_form.unit.weight")};
|
|
79
|
+
${n("msg_obj.firstMsg.activityLevel")}${n("msg_obj.firstMsg.sedentary")};
|
|
80
|
+
${n("msg_obj.firstMsg.tastePreferences")}${n("msg_obj.firstMsg.noRestrictions")};
|
|
81
|
+
${n("msg_obj.firstMsg.customizePlan")}`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"2",weight:"65",height:"160"}},age:35,msg:`${n("msg_obj.firstMsg.calorieControlledDiet")}${h.firstMsg}${n("msg_obj.firstMsg.dietExample")}${n("msg_obj.firstMsg.femaleData")}
|
|
82
|
+
${n("msg_obj.firstMsg.gender")}${n("personal_form.sex_options.female")};
|
|
83
|
+
${n("msg_obj.firstMsg.age")}35${n("personal_form.unit.age")};
|
|
84
|
+
${n("msg_obj.firstMsg.height")}160${n("personal_form.unit.height")};
|
|
85
|
+
${n("msg_obj.firstMsg.weight")}65${n("personal_form.unit.weight")};
|
|
86
|
+
${n("msg_obj.firstMsg.activityLevel")}${n("msg_obj.firstMsg.sedentary")};
|
|
87
|
+
${n("msg_obj.firstMsg.tastePreferences")}${n("msg_obj.firstMsg.noRestrictions")};
|
|
88
|
+
${n("msg_obj.firstMsg.customizePlan")}`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"1",weight:"75",height:"170"}},age:35,msg:`${n("msg_obj.firstMsg.calorieControlledDiet")}${h.firstMsg}${n("msg_obj.firstMsg.dietExample")}${n("msg_obj.firstMsg.maleData")}
|
|
89
|
+
${n("msg_obj.firstMsg.gender")}${n("personal_form.sex_options.male")};
|
|
90
|
+
${n("msg_obj.firstMsg.age")}35${n("personal_form.unit.age")};
|
|
91
|
+
${n("msg_obj.firstMsg.height")}170${n("personal_form.unit.height")};
|
|
92
|
+
${n("msg_obj.firstMsg.weight")}75${n("personal_form.unit.weight")};
|
|
93
|
+
${n("msg_obj.firstMsg.activityLevel")}${n("msg_obj.firstMsg.sedentary")};
|
|
94
|
+
${n("msg_obj.firstMsg.tastePreferences")}${n("msg_obj.firstMsg.noRestrictions")};
|
|
95
|
+
${n("msg_obj.firstMsg.customizePlan")}`}];n("msg_obj.firstMsg.breakfast"),n("msg_obj.firstMsg.lunch"),n("msg_obj.firstMsg.dinner"),n("msg_obj.firstMsg.snack");let q=localStorage.getItem("preset_point")||0;q++,q>=F.length&&(q=0),localStorage.setItem("preset_point",q);const M=F[q],H=`帮我定制${h.firstMsg}的⻝疗调养⽅案`;s.value=[{conversation_id:"",bot_id:h.botId,role:"user",content:H,reasoning_content:"",status:"ended",extra:[]}];const Oe=await tu("/api/cn.weis.api.Food/bdGeneralTemp",{method:"bdGeneralTemp",params:[{...M.params}],token:h.postToken});if(Oe.errCode===0&&Oe.obj){const te={};(Oe.obj.planDetails||[]).forEach(ie=>{te[ie.category]={energy:`热量:${ie.totalKcal}kcal`,carbonWater:`碳水:${ie.carbohydrateTotal}g`,protein:`蛋白质:${ie.proteinTotal}g`,fat:`脂肪:${ie.fatTotal}g`}});const lt=`${n("msg_obj.firstMsg.generalDietAdvice")}
|
|
74
96
|
|
|
75
97
|
|
|
76
|
-
|
|
|
98
|
+
| ${n("msg_obj.firstMsg.breakfast")} | | ${n("msg_obj.firstMsg.lunch")} |
|
|
77
99
|
|------------|----------|----|
|
|
78
|
-
| ${
|
|
79
|
-
| ${
|
|
80
|
-
| ${
|
|
81
|
-
| ${
|
|
100
|
+
| ${te["01"].energy} | | ${te["02"].energy} |
|
|
101
|
+
| ${te["01"].carbonWater} | | ${te["02"].carbonWater} |
|
|
102
|
+
| ${te["01"].protein} | | ${te["02"].protein} |
|
|
103
|
+
| ${te["01"].fat} | | ${te["02"].fat} |
|
|
82
104
|
|
|
83
|
-
|
|
|
105
|
+
| ${n("msg_obj.firstMsg.dinner")} | | ${n("msg_obj.firstMsg.snack")} |
|
|
84
106
|
|------------|----------|----|
|
|
85
|
-
| ${
|
|
86
|
-
| ${
|
|
87
|
-
| ${
|
|
88
|
-
| ${
|
|
89
|
-
`);B=Te.pop(),Te.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=V(a.value[X].content+K.content),I();else if(K.hasOwnProperty("type")&&K.type==="tool_response"){const Ye=JSON.parse(K.content);if(Ye.hasOwnProperty("showType"))a.value[X].extra.push({...Ye});else if(Ye.hasOwnProperty("response_for_model")){const wi=JSON.parse(Ye.response_for_model);wi.hasOwnProperty("showType")&&a.value[X].extra.push({...wi})}I()}}})}console.log("====",a.value)},E=async()=>{const v=await It(`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:V(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 z=JSON.parse(ne.response_for_model);z.hasOwnProperty("showType")&&N.push({chat_id:D.chat_id,conversation_id:D.conversation_id,bot_id:D.bot_id,role:D.role,extra:[{...z}]})}}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(z=>({...z,showType:z.type}))})}catch{console.log("== 解析错误 user==")}}}),N.forEach(D=>{const ne=D.role==="user"?a.value.findIndex(z=>z.meta_data.chat_group===D.meta_data.chat_group&&z.role===D.role):a.value.findIndex(z=>z.chat_id===D.chat_id&&z.role===D.role);ne>-1&&(a.value[ne].extra=[...D.extra])})}console.log("== history ==",a.value,h.value)},A=async()=>{const v=await Li(`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})},V=v=>v,R=()=>{p("call",{type:"back"})},Q=v=>{C([{content:v.content,text:v.text}])},ke=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})}},$=v=>{switch(v.type){case"new_chat":w();break;default:p("call",v);break}},I=()=>{setTimeout(()=>{i.nextTick(()=>{x.value.scrollIntoView()})},100)};i.provide("triggerScrollToEnd",I);const M=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",L2,[i.createElementVNode("div",$2,[e.showHeader?(i.openBlock(),i.createElementBlock("div",M2,[i.createElementVNode("div",{class:"title",onClick:i.withModifiers(E,["stop"])},[i.createElementVNode("div",{class:"back",onClick:i.withModifiers(R,["stop"])},[i.createVNode(Ec)]),i.createElementVNode("div",z2,[i.createElementVNode("div",P2,i.toDisplayString(e.name),1),e.nameSub?(i.openBlock(),i.createElementBlock("div",R2,i.toDisplayString(e.nameSub),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",q2,[i.createElementVNode("button",{class:"btn",onClick:i.withModifiers(w,["stop"])},[i.createVNode(nr,{class:"icon"}),i.createElementVNode("span",j2,i.toDisplayString(m.value.newChat),1)]),i.withDirectives(i.createElementVNode("template",null,[i.createElementVNode("button",H2,[i.createVNode(Fi)]),i.createElementVNode("button",U2,[i.createVNode(Yu)])],512),[[i.vShow,!1]])])])):i.createCommentVNode("",!0),i.createElementVNode("div",W2,[g.value&&g.value.onboarding_info?(i.openBlock(),i.createElementBlock("div",Z2,[i.createElementVNode("div",Y2,[i.createElementVNode("img",{src:g.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,X2),i.createElementVNode("p",G2,i.toDisplayString(g.value.name),1)]),i.createElementVNode("div",K2,i.toDisplayString(g.value.onboarding_info.prologue),1),i.createElementVNode("div",J2,[(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(z=>C([{content:D,text:D}]),["stop"])},i.toDisplayString(D),9,Q2))),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",eh,[i.createElementVNode("div",th,[i.createElementVNode("div",uh,[i.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,nh),i.createTextVNode(" "+i.toDisplayString(e.name),1)]),i.createElementVNode("div",rh,[D.reasoning_content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[D.status==="thinking"?(i.openBlock(),i.createElementBlock("div",ih,[i.createVNode(Ic,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(m.value.thinking),1)])):(i.openBlock(),i.createElementBlock("div",oh,[i.createVNode($c,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(m.value.thinkCompleted),1)])),i.createElementVNode("p",ah,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(Pc,{key:0,content:D.content},null,8,["content"])):e.contentTye==="markdown"?(i.openBlock(),i.createBlock(Ed,{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",sh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(D.extra,(z,me)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:me},[h.value.dishes&&z.showType==="card"?(i.openBlock(),i.createBlock(as,{key:0,"sku-list":z.skuList,"is-mini":!e.showHeader,"def-msg":m.value,channel:e.channel,onSelect:Y=>Ee(Y,z)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):i.createCommentVNode("",!0),h.value.plan&&z.showType==="plan"?(i.openBlock(),i.createBlock(vs,{key:1,info:z,"def-msg":m.value,onSelect:Y=>Ee({type:"match"},z)},null,8,["info","def-msg","onSelect"])):i.createCommentVNode("",!0),h.value.store&&z.showType==="store"?(i.openBlock(),i.createBlock(Uc,{key:2,list:z.storeList,onSelect:Q},null,8,["list"])):i.createCommentVNode("",!0),h.value.personalForm&&z.showType==="personalForm"?(i.openBlock(),i.createBlock(O2,{key:3,query:e.firstMsg,onSubmit:C},null,8,["query"])):i.createCommentVNode("",!0),z.showType==="contactKF"?(i.openBlock(),i.createElementBlock("div",ch,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))])):M(D.content)?(i.openBlock(),i.createElementBlock("div",lh,[i.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:N[0]||(N[0]=i.withModifiers(z=>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",dh,[N[3]||(N[3]=i.createTextVNode(" Ai努力生成中... ")),i.createVNode(Dc)])):i.createCommentVNode("",!0)])])])):(i.openBlock(),i.createElementBlock("div",fh,[i.createElementVNode("div",hh,[i.createElementVNode("div",ph,[N[4]||(N[4]=i.createTextVNode(" 健康用户 ")),i.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,mh)]),i.createElementVNode("div",bh,[i.createElementVNode("p",{class:"text",innerHTML:D.content},null,8,gh),D.extra.length?(i.openBlock(),i.createElementBlock("div",_h,[i.createVNode(Sc,{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(_c,{modelValue:k.value,"onUpdate:modelValue":N[1]||(N[1]=D=>k.value=D),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":m.value,"is-req":o.value,onSend:C,onTag:ke,onCall:$},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-13fb2476"]]),xh={install:e=>{e.component("ChatUi",Ci),e.use(R0,{defaultOptions:{navbar:!1,toolbar:{flipHorizontal:!1,flipVertical:!1,next:!1,prev:!1,play:!1,reset:!0,oneToOne:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0}}})}};ce.ChatUi=Ci,ce.default=xh,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
107
|
+
| ${te["03"].energy} | | ${te["04"].energy} |
|
|
108
|
+
| ${te["03"].carbonWater} | | ${te["04"].carbonWater} |
|
|
109
|
+
| ${te["03"].protein} | | ${te["04"].protein} |
|
|
110
|
+
| ${te["03"].fat} | | ${te["04"].fat} |`;s.value.push({conversation_id:"",bot_id:h.botId,role:"assistant",content:lt,reasoning_content:"",status:"ended",extra:[{...Oe.obj,showType:"card"}]}),g("log",{turns:c.value,info:{...s.value[s.value.length-1],question:{content:H,role:"user"}}})}},y=async()=>{const F=await tu("https://api.coze.cn/v1/conversation/create",{bot_id:h.botId,connector_id:"999"},{...u.value});l.value=!0,c.value=0,console.log(F),F.code===0&&F.data&&(r.value=F.data.id||"",m.setItem("conversationId",r.value),s.value=[],await D())},_=async F=>{a.value="01";let q=Array.isArray(F);const M=h.botId;if(!(!i.value&&(A.value||q)))return;const he=A.value;console.log("== user send ==",q,F,he),i.value=!0;const H=[],Oe={conversation_id:r.value,bot_id:M,role:"user",content:"",reasoning_content:"",status:"ended",extra:[]},te=`chat_${new Date().getTime()};`;F.forEach(Q=>{Q.hasOwnProperty("content")&&Q.content&&(Q.hasOwnProperty("type")&&Q.type==="object_string"?(console.log("=== item ====",Q),H.push({content:JSON.stringify(Q.content.map(Ne=>({type:Ne.type,file_id:Ne.file_id}))),content_type:"object_string",role:"user",meta_data:{chat_group:te}}),Oe.extra=Q.content.map(Ne=>({...Ne,showType:Ne.type}))):(Oe.content=Q.text,H.push({content:Q.content,content_type:"text",role:"user",meta_data:{chat_group:te}})))}),s.value.push(Oe),a.value="02";const lt=await fetch(`https://api.coze.cn/v3/chat?conversation_id=${r.value}`,{method:"POST",headers:{...u.value.headers},body:JSON.stringify({bot_id:M,user_id:h.uid,stream:!0,connector_id:"999",additional_messages:H,custom_variables:{uid:h.uid}}),credentials:"same-origin",mode:"cors",cache:"default"});a.value="03",s.value.push({conversation_id:"",bot_id:"",role:"assistant",content:"",reasoning_content:"",status:"answering",extra:[]}),j(),A.value="";const ie=s.value.length-1,S=lt.body.getReader(),G=new TextDecoder("utf-8");let Y="";const oe=()=>{console.log("======= End ======",s.value,l.value),l.value&&(s.value[ie].extra.findIndex(Q=>Q.hasOwnProperty("showType"))===-1&&s.value[ie].extra.push({showType:"personalForm"}),l.value=!1,console.log("===============",s.value[ie]))};for(;;){const{done:Q,value:Ne}=await S.read();if(Q){console.log("Stream has ended."),i.value=!1,a.value="00",s.value[ie].status="ended",oe(),h.needLog&&(g("log",{turns:c.value,info:{...s.value[ie],question:{...Oe}}}),c.value+=1),j();break}const ze=G.decode(Ne,{stream:!0});Y+=ze;const I=Y.split(`
|
|
111
|
+
`);Y=I.pop(),I.forEach(z=>{if(z.trim().length>0&&z.trim().startsWith("data:")){const tt=z.replace(/^data:\s*/,""),ae=JSON.parse(tt);if(console.log("Received:",ae),i.value=!0,a.value="04",!s.value[ie].bot_id&&ae.bot_id&&(s.value[ie].bot_id=ae.bot_id),!s.value[ie].conversation_id&&ae.conversation_id&&(s.value[ie].conversation_id=ae.conversation_id),ae.hasOwnProperty("reasoning_content")&&ae.reasoning_content&&ae.type==="answer")s.value[ie].status="thinking",s.value[ie].reasoning_content+=ae.reasoning_content,j();else if(ae.hasOwnProperty("content")&&ae.hasOwnProperty("content_type")&&ae.content_type==="text"&&ae.hasOwnProperty("type")&&ae.type==="answer"&&!ae.hasOwnProperty("created_at"))s.value[ie].status="answering",s.value[ie].content=T(s.value[ie].content+ae.content),j();else if(ae.hasOwnProperty("type")&&ae.type==="tool_response"){const bt=JSON.parse(ae.content);if(bt.hasOwnProperty("showType"))s.value[ie].extra.push({...bt});else if(bt.hasOwnProperty("response_for_model")){const bn=JSON.parse(bt.response_for_model);bn.hasOwnProperty("showType")&&s.value[ie].extra.push({...bn})}j()}}})}console.log("====",s.value)},w=async()=>{const F=await tu(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${r.value}`,{order:"asc"},{...u.value});if(F.code===0&&F.data&&F.data.length){s.value=[];const q=[];F.data.forEach(M=>{if(M.hasOwnProperty("content_type")){if(M.content_type==="text")s.value.push({chat_id:M.chat_id,conversation_id:M.conversation_id,bot_id:M.bot_id,role:M.role,meta_data:M.meta_data,content:T(M.content),reasoning_content:M.reasoning_content,status:"ended",extra:[]});else if(M.content_type==="card"&&M.role==="assistant")try{const he=JSON.parse(M.content);if(he.hasOwnProperty("showType"))q.push({chat_id:M.chat_id,conversation_id:M.conversation_id,bot_id:M.bot_id,role:M.role,extra:[{...he}]});else if(he.hasOwnProperty("response_for_model")){const H=JSON.parse(he.response_for_model);H.hasOwnProperty("showType")&&q.push({chat_id:M.chat_id,conversation_id:M.conversation_id,bot_id:M.bot_id,role:M.role,extra:[{...H}]})}}catch{console.log("== 解析错误 sys==")}else if(M.content_type==="object_string"&&M.role==="user")try{const he=JSON.parse(M.content);q.push({chat_id:M.chat_id,conversation_id:M.conversation_id,bot_id:M.bot_id,role:M.role,meta_data:M.meta_data,extra:he.map(H=>({...H,showType:H.type}))})}catch{console.log("== 解析错误 user==")}}}),q.forEach(M=>{const he=M.role==="user"?s.value.findIndex(H=>H.meta_data.chat_group===M.meta_data.chat_group&&H.role===M.role):s.value.findIndex(H=>H.chat_id===M.chat_id&&H.role===M.role);he>-1&&(s.value[he].extra=[...M.extra])})}console.log("== history ==",s.value,x.value)},D=async()=>{const F=await Wc(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${h.botId}`,{...u.value});console.log(F),F.code===0&&F.data&&(v.value={...F.data})},T=F=>F,V=()=>{g("call",{type:"back"})},ue=F=>{_([{content:F.content,text:F.text}])},R=F=>{switch(console.log(F),F.type){case"chat":_([{content:F.msg,text:F.msg}]);break;case"call":g("call",{...F});break;case"simulate":_e(F);break}},be=({type:F},q)=>{switch(F){case"change":_([{content:n("msg_obj.changeDishes"),text:n("msg_obj.changeDishes")}]);break;case"match":_([{content:p.value.matchContent,text:p.value.matchText}]);break;case"personalForm":_e({msg:n("msg_obj.personalizedDiet"),name:n("msg_obj.userInfo"),type:"simulate",value:"personalForm"});break;default:g("call",{type:F,info:q})}},X=F=>{switch(F.type){case"new_chat":y();break;default:g("call",F);break}},j=()=>{setTimeout(()=>{o.nextTick(()=>{C.value.scrollIntoView()})},100)};o.provide("triggerScrollToEnd",j);const K=F=>/#全日總熱量:(\d*?)kcal/g.test(F),_e=F=>{console.log("== simulateChat == ",F),s.value.push({conversation_id:"",bot_id:h.botId,role:"user",content:F.msg,reasoning_content:"",status:"ended",extra:[]});let q={msg:"",extra:[]};switch(F.value){case"personalForm":q.msg=n("msg_obj.fillPersonalData"),q.extra=[{showType:"personalForm"}];break;case"contactKF":q.msg=n("msg_obj.contactNutritionist"),q.extra=[{showType:"contactKF"}];break}s.value.push({conversation_id:"",bot_id:h.botId,role:"assistant",content:q.msg,reasoning_content:"",status:"ended",extra:[...q.extra]}),c.value+=1,g("log",{turns:c.value,info:{...s.value[s.value.length-1],question:{content:F.msg,role:"user"}}}),j()};return(F,q)=>(o.openBlock(),o.createElementBlock("div",t_,[o.createElementVNode("div",n_,[e.showHeader?(o.openBlock(),o.createElementBlock("div",u_,[o.createElementVNode("div",{class:"title",onClick:o.withModifiers(w,["stop"])},[o.createElementVNode("div",{class:"back",onClick:o.withModifiers(V,["stop"])},[o.createVNode(Rh)]),o.createElementVNode("div",r_,[o.createElementVNode("div",i_,o.toDisplayString(e.name),1),e.nameSub?(o.openBlock(),o.createElementBlock("div",o_,o.toDisplayString(e.nameSub),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",a_,[o.createElementVNode("button",{class:"btn",onClick:o.withModifiers(y,["stop"])},[o.createVNode(sa,{class:"icon"}),o.createElementVNode("span",s_,o.toDisplayString(p.value.newChat),1)]),o.withDirectives(o.createElementVNode("template",null,[o.createElementVNode("button",l_,[o.createVNode($c)]),o.createElementVNode("button",c_,[o.createVNode(Qi)])],512),[[o.vShow,!1]])])])):o.createCommentVNode("",!0),o.createElementVNode("div",f_,[v.value&&v.value.onboarding_info?(o.openBlock(),o.createElementBlock("div",d_,[o.createElementVNode("div",h_,[o.createElementVNode("img",{src:v.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,m_),o.createElementVNode("p",p_,o.toDisplayString(v.value.name),1)]),o.createElementVNode("div",g_,o.toDisplayString(v.value.onboarding_info.prologue),1),o.createElementVNode("div",b_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v.value.onboarding_info.suggested_questions,(M,he)=>(o.openBlock(),o.createElementBlock("span",{key:he,class:"board_sug",onClick:o.withModifiers(H=>_([{content:M,text:M}]),["stop"])},o.toDisplayString(M),9,__))),128))])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(M,he)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:he},[M.role==="assistant"?(o.openBlock(),o.createElementBlock("div",E_,[o.createElementVNode("div",y_,[o.createElementVNode("div",k_,[o.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,x_),o.createTextVNode(" "+o.toDisplayString(e.name),1)]),o.createElementVNode("div",C_,[M.reasoning_content?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[M.status==="thinking"?(o.openBlock(),o.createElementBlock("div",v_,[o.createVNode(Zh,{class:"icon"}),o.createTextVNode(" "+o.toDisplayString(p.value.thinking),1)])):(o.openBlock(),o.createElementBlock("div",w_,[o.createVNode(em,{class:"icon"}),o.createTextVNode(" "+o.toDisplayString(p.value.thinkCompleted),1)])),o.createElementVNode("p",D_,o.toDisplayString(M.reasoning_content),1)],64)):o.createCommentVNode("",!0),M.content?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.contentTye==="text"?(o.openBlock(),o.createBlock(um,{key:0,content:M.content},null,8,["content"])):e.contentTye==="markdown"?(o.openBlock(),o.createBlock(R2,{key:1,content:M.content},null,8,["content"])):o.createCommentVNode("",!0),i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[M.extra.length?(o.openBlock(),o.createElementBlock("div",N_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(M.extra,(H,Oe)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Oe},[x.value.dishes&&H.showType==="card"?(o.openBlock(),o.createBlock(C1,{key:0,"sku-list":H.skuList,"is-mini":!e.showHeader,"def-msg":p.value,channel:e.channel,onSelect:te=>be(te,H)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):o.createCommentVNode("",!0),x.value.plan&&H.showType==="plan"?(o.openBlock(),o.createBlock(z1,{key:1,info:H,"def-msg":p.value,onSelect:te=>be({type:"match"},H)},null,8,["info","def-msg","onSelect"])):o.createCommentVNode("",!0),x.value.store&&H.showType==="store"?(o.openBlock(),o.createBlock(sm,{key:2,list:H.storeList,onSelect:ue},null,8,["list"])):o.createCommentVNode("",!0),x.value.personalForm&&H.showType==="personalForm"?(o.openBlock(),o.createBlock(e_,{key:3,query:e.firstMsg,onSubmit:_},null,8,["query"])):o.createCommentVNode("",!0),H.showType==="contactKF"?(o.openBlock(),o.createElementBlock("div",A_,[o.createTextVNode(o.toDisplayString(o.unref(n)("msg_obj.hotline")),1),q[2]||(q[2]=o.createElementVNode("a",{href:"tel:4006681606"},"400 6681 606",-1)),q[3]||(q[3]=o.createElementVNode("img",{src:"https://prodstatic.weis1606.cn/api/smartFood/mealPlan/contact_kf.png",alt:"",width:"100%",style:{"margin-top":"10px"}},null,-1))])):o.createCommentVNode("",!0)],64))),128))])):K(M.content)?(o.openBlock(),o.createElementBlock("div",T_,[o.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:q[0]||(q[0]=o.withModifiers(H=>be({type:"match"},{}),["stop"]))},o.toDisplayString(p.value.useSolution),1)])):o.createCommentVNode("",!0)],64))],64)):o.createCommentVNode("",!0),i.value&&he===s.value.length-1?(o.openBlock(),o.createElementBlock("div",S_,[o.createTextVNode(o.toDisplayString(o.unref(n)("msg_obj.generating"))+" ",1),o.createVNode(Uh)])):o.createCommentVNode("",!0)])])])):(o.openBlock(),o.createElementBlock("div",O_,[o.createElementVNode("div",I_,[o.createElementVNode("div",L_,[o.createTextVNode(o.toDisplayString(o.unref(n)("msg_obj.userName"))+" ",1),o.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,F_)]),o.createElementVNode("div",M_,[o.createElementVNode("p",{class:"text",innerHTML:M.content},null,8,P_),M.extra.length?(o.openBlock(),o.createElementBlock("div",V_,[o.createVNode(Wh,{list:M.extra},null,8,["list"])])):o.createCommentVNode("",!0)])])]))],64))),128)),o.createElementVNode("div",{ref_key:"endTarget",ref:C,style:{height:"100px"}},null,512)]),o.createVNode(Mh,{modelValue:A.value,"onUpdate:modelValue":q[1]||(q[1]=M=>A.value=M),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":p.value,"is-req":a.value,onSend:_,onTag:R,onCall:X},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-a6883b0a"]]),$_={"zh-CN":{common:{send:"发送",cancel:"取消",confirm:"确认",close:"关闭",save:"保存",delete:"删除",edit:"编辑",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加载中...",success:"操作成功",error:"操作失败",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"历史记录",settings:"设置",help:"帮助",about:"关于",inputPlaceholder:"输入消息...",sendButton:"发送",clearButton:"清空",exportButton:"导出",importButton:"导入"},msg_obj:{placeholder:"发消息⋯",fileText:"请根据我上传的体检报告为我生成饮食方案",uploadingTips:"文件正在上传,请稍候...",matchText:"请用以上方案为我配餐",matchContent:"请用以上方案为我配餐",energy:"热量",protein:"蛋白质",fat:"脂肪",carbonwater:"碳水",newChat:"新对话",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用该方案配餐",aiTips:"【内容由AI生成,仅供参考】",userName:"健康用户",generating:"Ai努力生成中...",hotline:"电话热线:",changeDishes:"换一套菜品",personalizedDiet:"请为我生成一份个性化的健康的食谱",fillPersonalData:"请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",contactNutritionist:"联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",userInfo:"用户信息",tags:{customerService:"人工客服",viewMenu:"查看菜单",medicalReport:"体检报告"},firstMsg:{balancedDiet:"本食谱为均衡营养版",calorieControlledDiet:"本食谱为控卡版",dietExample:"的食疗调养方案示例,依据以下",femaleData:"女性常规身体数据制定:",maleData:"男性常规身体数据制定:",gender:"性别:",age:"年龄:",height:"身高:",weight:"体重:",activityLevel:"日常运动水平:",tastePreferences:"口味偏好及饮食禁忌:",noRestrictions:"无",customizePlan:"如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。",sedentary:"久坐",generalDietAdvice:"我将为您出通用的食谱建议,如您有定制化健康诉求,请点击下方'私人订制个性食谱'来让我结合您的个人情况制定个性化配餐计划",breakfast:"早餐",lunch:"午餐",dinner:"晚餐",snack:"加餐"},store:{selectStore:"请选择一个门店"},dishes:{collapseMenu:"收起菜谱",viewFullMenu:"点击查看完整食谱",warmTip:"温馨提示:维小饭AI健康食谱为日常膳食调理方案,不能替代药物治疗或专业医疗建议。如有疾病,请及时就医并遵医嘱。",halfPriceSurprise:"半价惊喜,下单即得!",personalizedRecipe:"私人定制个性食谱",orderNow:"去订餐",deliveryOrder:"配送下單",deliveryToDoor:"(直送到府)",pickupOrder:"自提下單",freeShipping:"(免運費)"},operate:{photoAlbum:"相册",file:"文件"},plan:{dailyIntake:"每日攝入能量",breakfast:"早餐",lunch:"午餐",dinner:"晚餐",snack:"加餐",carbohydrate:"碳水化合物",protein:"蛋白質",fat:"脂肪",useThisPlan:"用該方案配餐"}},personal_form:{title:"个人信息",sex:"性别",age:"年龄",height:"身高",weight:"体重",sport:"日常运动水平",taste:"口味偏好",taboo:"饮食禁忌",placeholder:{sex:"请选择",age:"请输入年龄",height:"请输入身高",weight:"请输入体重",sport:"请输入",taste:"无忌口"},unit:{age:"岁",height:"cm",weight:"kg"},sport_list:{rest:"休息状态",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"轻体力",light_sub:"站立或需要走动的工作",medium:"中体力",medium_sub:"走动多的工作",heavy:"重体力",heavy_sub:"高强度体力工作"},taste_list:{spicy:"不吃辣",onion:"不吃葱",ginger:"不吃姜",garlic:"不吃蒜",sugar:"不吃糖",fish:"不吃鱼",shrimp:"不吃虾",beef:"不吃牛肉",chicken:"不吃鸡肉",pork:"不吃猪肉"},taboo_list:{high_gi:"高GI",high_saturated_fat:"高饱和脂肪酸",high_purine:"高嘌呤",high_salt:"高盐",high_cholesterol:"高胆固醇"},button:"按身体数据领取食谱",toast:{select_sex:"请选择性别",input_age:"请输入年龄",input_height:"请输入身高",input_weight:"请输入体重",select_sport:"请选择日常运动水平",fill_all:"请填写完整信息",age_range:"年龄需要在6-100岁",height_range:"身高需要在100-220cm",weight_range:"体重需要在10-150kg"},dialog:{sex:"选择性别",age:"设置年龄",height:"设置身高",weight:"设置体重",sport:"日常运动水平",taste:"口味偏好&饮食禁忌"},no_taboo:"没有饮食禁忌",sex_options:{male:"男",female:"女"}}},"en-US":{common:{send:"Send",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",add:"Add",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info"},chat:{newChat:"New Chat",history:"History",settings:"Settings",help:"Help",about:"About",inputPlaceholder:"Type a message...",sendButton:"Send",clearButton:"Clear",exportButton:"Export",importButton:"Import"},msg_obj:{placeholder:"Type a message⋯",fileText:"Please generate a diet plan based on my uploaded medical report",uploadingTips:"File is uploading, please wait...",matchText:"Please use the above plan to prepare meals for me",matchContent:"Please use the above plan to prepare meals for me",energy:"Calories",protein:"Protein",fat:"Fat",carbonwater:"Carbs",newChat:"New Conversation",thinking:"Thinking...",thinkCompleted:"Thinking completed",useSolution:"Use this plan to prepare meals",aiTips:"[Content generated by AI, for reference only]",userName:"Healthy User",generating:"Ai is generating...",hotline:"Hotline: ",changeDishes:"Change dishes",personalizedDiet:"Please generate a personalized healthy diet plan for me",fillPersonalData:"Please fill in your body data, and Weis will intelligently generate a personalized diet plan based on your body data",contactNutritionist:"Contact a professional nutritionist team to help you quickly achieve scientifically proportioned healthy meal nutrition.",userInfo:"User Information",tags:{customerService:"Customer Service",viewMenu:"View Menu",medicalReport:"Medical Report"},firstMsg:{balancedDiet:"This recipe is a balanced nutrition version",calorieControlledDiet:"This recipe is a calorie-controlled version",dietExample:" dietary therapy plan example, based on the following",femaleData:"female regular body data:",maleData:"male regular body data:",gender:"Gender: ",age:"Age: ",height:"Height: ",weight:"Weight: ",activityLevel:"Daily activity level: ",tastePreferences:"Taste preferences and dietary restrictions: ",noRestrictions:"None",customizePlan:"To customize an exclusive plan that fits your personal situation, please go to complete your personal body data to get a personalized recipe.",sedentary:"Sedentary",generalDietAdvice:"I will provide you with general recipe suggestions. If you have customized health needs, please click 'Personalized Recipe' below to let me create a personalized meal plan based on your personal situation",breakfast:"Breakfast",lunch:"Lunch",dinner:"Dinner",snack:"Snack"},store:{selectStore:"Please select a store"},dishes:{collapseMenu:"Collapse menu",viewFullMenu:"Click to view full recipe",warmTip:"Warm tip: Weis AI healthy recipe is a daily dietary conditioning plan and cannot replace medication or professional medical advice. If you have any illness, please seek medical attention promptly and follow your doctor's advice.",halfPriceSurprise:"Half-price surprise, get it when you order!",personalizedRecipe:"Personalized recipe",orderNow:"Go to order",deliveryOrder:"Delivery order",deliveryToDoor:"(Delivered to your door)",pickupOrder:"Pickup order",freeShipping:"(Free shipping)"},operate:{photoAlbum:"Photo Album",file:"File"},plan:{dailyIntake:"Daily Intake",breakfast:"Breakfast",lunch:"Lunch",dinner:"Dinner",snack:"Snack",carbohydrate:"Carbohydrates",protein:"Protein",fat:"Fat",useThisPlan:"Use this plan for meals"}},personal_form:{title:"Personal Information",sex:"Gender",age:"Age",height:"Height",weight:"Weight",sport:"Daily Activity Level",taste:"Taste Preferences",taboo:"Dietary Restrictions",placeholder:{sex:"Please select",age:"Please enter age",height:"Please enter height",weight:"Please enter weight",sport:"Please enter",taste:"No restrictions"},unit:{age:"years",height:"cm",weight:"kg"},sport_list:{rest:"Resting",rest_sub:"Bedridden or sitting rest",sedentary:"Sedentary",sedentary_sub:"Office work",light:"Light activity",light_sub:"Standing or walking work",medium:"Moderate activity",medium_sub:"Work with frequent walking",heavy:"Heavy activity",heavy_sub:"High-intensity physical work"},taste_list:{spicy:"No spicy",onion:"No green onions",ginger:"No ginger",garlic:"No garlic",sugar:"No sugar",fish:"No fish",shrimp:"No shrimp",beef:"No beef",chicken:"No chicken",pork:"No pork"},taboo_list:{high_gi:"High GI",high_saturated_fat:"High saturated fat",high_purine:"High purine",high_salt:"High salt",high_cholesterol:"High cholesterol"},button:"Get diet plan based on body data",toast:{select_sex:"Please select gender",input_age:"Please enter age",input_height:"Please enter height",input_weight:"Please enter weight",select_sport:"Please select daily activity level",fill_all:"Please fill in all information",age_range:"Age should be between 6-100 years",height_range:"Height should be between 100-220cm",weight_range:"Weight should be between 10-150kg"},dialog:{sex:"Select Gender",age:"Set Age",height:"Set Height",weight:"Set Weight",sport:"Daily Activity Level",taste:"Taste Preferences"},no_taboo:"No dietary restrictions",sex_options:{male:"Male",female:"Female"}}},"zh-TW":{common:{send:"發送",cancel:"取消",confirm:"確認",close:"關閉",save:"保存",delete:"刪除",edit:"編輯",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加載中...",success:"操作成功",error:"操作失敗",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"歷史記錄",settings:"設置",help:"幫助",about:"關於",inputPlaceholder:"輸入消息...",sendButton:"發送",clearButton:"清空",exportButton:"導出",importButton:"導入"},msg_obj:{placeholder:"發消息⋯",fileText:"請根據我上傳的體檢報告為我生成飲食方案",uploadingTips:"文件正在上傳,請稍候...",matchText:"請用以上方案為我配餐",matchContent:"請用以上方案為我配餐",energy:"熱量",protein:"蛋白質",fat:"脂肪",carbonwater:"碳水",newChat:"新對話",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用該方案配餐",aiTips:"【内容由AI生成,僅供參考】",userName:"健康用戶",generating:"Ai努力生成中...",hotline:"電話熱線:",changeDishes:"換一套菜品",personalizedDiet:"請為我生成一份個性化的健康的食譜",fillPersonalData:"請填寫您的身體數據,維小飯將根據你的身體數據智能生成個性化食譜",contactNutritionist:"聯繫專業營養師團隊幫你快速實現科學配比的健康餐營養搭配。",userInfo:"用戶信息",tags:{customerService:"人工客服",viewMenu:"查看菜單",medicalReport:"體檢報告"},firstMsg:{balancedDiet:"本食譜為均衡營養版",calorieControlledDiet:"本食譜為控卡版",dietExample:"的食療調養方案示例,依據以下",femaleData:"女性常規身體數據制定:",maleData:"男性常規身體數據制定:",gender:"性別:",age:"年齡:",height:"身高:",weight:"體重:",activityLevel:"日常運動水平:",tastePreferences:"口味偏好及飲食禁忌:",noRestrictions:"無",customizePlan:"如需定制貼合個人情況的專屬方案,請前往完善個人身體數據,獲取個性化定制食譜。",sedentary:"久坐",generalDietAdvice:"我將為您出通用的食譜建議,如您有定制化健康訴求,請點擊下方'私人訂制個性食譜'來讓我結合您的個人情況制定個性化配餐計劃",breakfast:"早餐",lunch:"午餐",dinner:"晚餐",snack:"加餐"},store:{selectStore:"請選擇一個門店"},dishes:{collapseMenu:"收起菜譜",viewFullMenu:"點擊查看完整食譜",warmTip:"溫馨提示:維小飯AI健康食譜為日常膳食調理方案,不能替代藥物治療或專業醫療建議。如有疾病,請及時就醫並遵醫囑。",halfPriceSurprise:"半價驚喜,下單即得!",personalizedRecipe:"私人訂制個性食譜",orderNow:"去訂餐",deliveryOrder:"配送下單",deliveryToDoor:"(直送到府)",pickupOrder:"自提下單",freeShipping:"(免運費)"},operate:{photoAlbum:"相冊",file:"文件"},plan:{dailyIntake:"每日攝入能量",breakfast:"早餐",lunch:"午餐",dinner:"晚餐",snack:"加餐",carbohydrate:"碳水化合物",protein:"蛋白質",fat:"脂肪",useThisPlan:"用該方案配餐"}},personal_form:{title:"個人信息",sex:"性別",age:"年齡",height:"身高",weight:"體重",sport:"日常運動水平",taste:"口味偏好",taboo:"飲食禁忌",placeholder:{sex:"請選擇",age:"請輸入年齡",height:"請輸入身高",weight:"請輸入體重",sport:"請輸入",taste:"無禁忌"},unit:{age:"歲",height:"cm",weight:"kg"},sport_list:{rest:"休息狀態",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"輕體力",light_sub:"站立或需要走動的工作",medium:"中體力",medium_sub:"走動多的工作",heavy:"重體力",heavy_sub:"高強度體力工作"},taste_list:{spicy:"不吃辣",onion:"不吃蔥",ginger:"不吃姜",garlic:"不吃蒜",sugar:"不吃糖",fish:"不吃魚",shrimp:"不吃蝦",beef:"不吃牛肉",chicken:"不吃雞肉",pork:"不吃豬肉"},taboo_list:{high_gi:"高GI",high_saturated_fat:"高飽和脂肪酸",high_purine:"高嘌呤",high_salt:"高鹽",high_cholesterol:"高膽固醇"},button:"按身體數據領取食譜",toast:{select_sex:"請選擇性別",input_age:"請輸入年齡",input_height:"請輸入身高",input_weight:"請輸入體重",select_sport:"請選擇日常運動水平",fill_all:"請填寫完整信息",age_range:"年齡需要在6-100歲",height_range:"身高需要在100-220cm",weight_range:"體重需要在10-150kg"},dialog:{sex:"選擇性別",age:"設置年齡",height:"設置身高",weight:"設置體重",sport:"日常運動水平",taste:"口味偏好&飲食禁忌"},no_taboo:"沒有飲食禁忌",sex_options:{male:"男",female:"女"}}}},R_={install:e=>{e.component("ChatUi",As),e.use(Kd,{defaultOptions:{navbar:!1,toolbar:{flipHorizontal:!1,flipVertical:!1,next:!1,prev:!1,play:!1,reset:!0,oneToOne:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0}}})}};Ve.ChatUi=As,Ve.default=R_,Ve.messages=$_,Object.defineProperties(Ve,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|