=o&&h_n((Kn-c)/S)&&On("overflow"),c+=(p-o)*S,o=p;for(const h of t)if(hKn&&On("overflow"),h===o){let C=c;for(let A=dn;;A+=dn){const N=A<=s?Ql:A>=s+_r?_r:A-s;if(C=0))try{e.hostname=Wm.toASCII(e.hostname)}catch{}return Er(ql(e))}function Mf(t){const e=zl(t,!0);if(e.hostname&&(!e.protocol||$m.indexOf(e.protocol)>=0))try{e.hostname=Wm.toUnicode(e.hostname)}catch{}return Qn(ql(e),Qn.defaultChars+"%")}function Qt(t,e){if(!(this instanceof Qt))return new Qt(t,e);e||Vl(t)||(e=t||{},t="default"),this.inline=new fr,this.block=new Xr,this.core=new $l,this.renderer=new Jn,this.linkify=new Ut,this.validateLink=Df,this.normalizeLink=xf,this.normalizeLinkText=Mf,this.utils=wE,this.helpers=Kr({},FE),this.options={},this.configure(t),e&&this.set(e)}Qt.prototype.set=function(t){return Kr(this.options,t),this};Qt.prototype.configure=function(t){const e=this;if(Vl(t)){const a=t;if(t=Af[a],!t)throw new Error('Wrong `markdown-it` preset "'+a+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(a){t.components[a].rules&&e[a].ruler.enableOnly(t.components[a].rules),t.components[a].rules2&&e[a].ruler2.enableOnly(t.components[a].rules2)}),this};Qt.prototype.enable=function(t,e){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(c){a=a.concat(this[c].ruler.enable(t,!0))},this),a=a.concat(this.inline.ruler2.enable(t,!0));const o=t.filter(function(c){return a.indexOf(c)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Qt.prototype.disable=function(t,e){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(c){a=a.concat(this[c].ruler.disable(t,!0))},this),a=a.concat(this.inline.ruler2.disable(t,!0));const o=t.filter(function(c){return a.indexOf(c)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Qt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Qt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const a=new this.core.State(t,this,e);return this.core.process(a),a.tokens};Qt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Qt.prototype.parseInline=function(t,e){const a=new this.core.State(t,this,e);return a.inlineMode=!0,this.core.process(a),a.tokens};Qt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Km={exports:{}};(function(t,e){(function(o,c){t.exports=c()})(typeof self<"u"?self:Ng,function(){return function(){var a={};(function(){a.d=function(r,n){for(var i in n)a.o(n,i)&&!a.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}})(),function(){a.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)}}();var o={};a.d(o,{default:function(){return eg}});class c{constructor(n,i){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let l="KaTeX parse error: "+n,d,E;const f=i&&i.loc;if(f&&f.start<=f.end){const y=f.lexer.input;d=f.start,E=f.end,d===y.length?l+=" at end of input: ":l+=" at position "+(d+1)+": ";const D=y.slice(d,E).replace(/[^]/g,"$&̲");let k;d>15?k="…"+y.slice(d-15,d):k=y.slice(0,d);let F;E+15":">","<":"<",'"':""","'":"'"},C=/[&><"']/g;function A(r){return String(r).replace(C,n=>h[n])}const N=function(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?N(r.body[0]):r:r.type==="font"?N(r.body):r},O=function(r){const n=N(r);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},L=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r};var x={contains:_,deflt:u,escape:A,hyphenate:S,getBaseElem:N,isCharacterBox:O,protocolFromUrl:function(r){const n=/^[\x00-\x20]*([^\\/#?]*?)(:|*58|*3a|&colon)/i.exec(r);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"}};const G={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,n)=>(n.push(r),n)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand ",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function z(r){if(r.default)return r.default;const n=r.type,i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return i.enum[0];switch(i){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Y{constructor(n){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,n=n||{};for(const i in G)if(G.hasOwnProperty(i)){const l=G[i];this[i]=n[i]!==void 0?l.processor?l.processor(n[i]):n[i]:z(l)}}reportNonstrict(n,i,l){let d=this.strict;if(typeof d=="function"&&(d=d(n,i,l)),!(!d||d==="ignore")){if(d===!0||d==="error")throw new s("LaTeX-incompatible input and strict mode is set to 'error': "+(i+" ["+n+"]"),l);d==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+n+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+d+"': "+i+" ["+n+"]"))}}useStrictBehavior(n,i,l){let d=this.strict;if(typeof d=="function")try{d=d(n,i,l)}catch{d="error"}return!d||d==="ignore"?!1:d===!0||d==="error"?!0:d==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+n+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+d+"': "+i+" ["+n+"]")),!1)}isTrusted(n){if(n.url&&!n.protocol){const l=x.protocolFromUrl(n.url);if(l==null)return!1;n.protocol=l}return!!(typeof this.trust=="function"?this.trust(n):this.trust)}}class q{constructor(n,i,l){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=n,this.size=i,this.cramped=l}sup(){return Oe[he[this.id]]}sub(){return Oe[Pe[this.id]]}fracNum(){return Oe[W[this.id]]}fracDen(){return Oe[re[this.id]]}cramp(){return Oe[pe[this.id]]}text(){return Oe[Ce[this.id]]}isTight(){return this.size>=2}}const H=0,te=1,Q=2,ne=3,Se=4,ee=5,Ne=6,Ae=7,Oe=[new q(H,0,!1),new q(te,0,!0),new q(Q,1,!1),new q(ne,1,!0),new q(Se,2,!1),new q(ee,2,!0),new q(Ne,3,!1),new q(Ae,3,!0)],he=[Se,ee,Se,ee,Ne,Ae,Ne,Ae],Pe=[ee,ee,ee,ee,Ae,Ae,Ae,Ae],W=[Q,ne,Se,ee,Ne,Ae,Ne,Ae],re=[ne,ne,ee,ee,Ae,Ae,Ae,Ae],pe=[te,te,ne,ne,ee,ee,Ae,Ae],Ce=[H,te,Q,ne,Q,ne,Q,ne];var J={DISPLAY:Oe[H],TEXT:Oe[Q],SCRIPT:Oe[Se],SCRIPTSCRIPT:Oe[Ne]};const Fe=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ve(r){for(let n=0;n=d[0]&&r<=d[1])return i.name}}return null}const ae=[];Fe.forEach(r=>r.blocks.forEach(n=>ae.push(...n)));function de(r){for(let n=0;n=ae[n]&&r<=ae[n+1])return!0;return!1}const be=80,ve=function(r,n){return"M95,"+(622+r+n)+`
+c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
+c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
+c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
+s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
+c69,-144,104.5,-217.7,106.5,-221
+l`+r/2.075+" -"+r+`
+c5.3,-9.3,12,-14,20,-14
+H400000v`+(40+r)+`H845.2724
+s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
+c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
+M`+(834+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},Ie=function(r,n){return"M263,"+(601+r+n)+`c0.7,0,18,39.7,52,119
+c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
+c340,-704.7,510.7,-1060.3,512,-1067
+l`+r/2.084+" -"+r+`
+c4.7,-7.3,11,-11,19,-11
+H40000v`+(40+r)+`H1012.3
+s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
+c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
+s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
+c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
+M`+(1001+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},Ye=function(r,n){return"M983 "+(10+r+n)+`
+l`+r/3.13+" -"+r+`
+c4,-6.7,10,-10,18,-10 H400000v`+(40+r)+`
+H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
+s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
+c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
+c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
+c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
+c53.7,-170.3,84.5,-266.8,92.5,-289.5z
+M`+(1001+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},et=function(r,n){return"M424,"+(2398+r+n)+`
+c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
+c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
+s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
+s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
+l`+r/4.223+" -"+r+`c4,-6.7,10,-10,18,-10 H400000
+v`+(40+r)+`H1014.6
+s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
+c-2,6,-10,9,-24,9
+c-8,0,-12,-0.7,-12,-2z M`+(1001+r)+" "+n+`
+h400000v`+(40+r)+"h-400000z"},ze=function(r,n){return"M473,"+(2713+r+n)+`
+c339.3,-1799.3,509.3,-2700,510,-2702 l`+r/5.298+" -"+r+`
+c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+r)+`H1017.7
+s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
+c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
+c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
+s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
+606zM`+(1001+r)+" "+n+"h400000v"+(40+r)+"H1017.7z"},st=function(r){const n=r/2;return"M400000 "+r+" H0 L"+n+" 0 l65 45 L145 "+(r-80)+" H400000z"},rt=function(r,n,i){const l=i-54-n-r;return"M702 "+(r+n)+"H400000"+(40+r)+`
+H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
+h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
+c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
+219 661 l218 661zM702 `+n+"H400000v"+(40+r)+"H742z"},Nt=function(r,n,i){n=1e3*n;let l="";switch(r){case"sqrtMain":l=ve(n,be);break;case"sqrtSize1":l=Ie(n,be);break;case"sqrtSize2":l=Ye(n,be);break;case"sqrtSize3":l=et(n,be);break;case"sqrtSize4":l=ze(n,be);break;case"sqrtTall":l=rt(n,be,i)}return l},Dt=function(r,n){switch(r){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},at={doubleleftarrow:`M262 157
+l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
+c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
+-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
+-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
+m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
+-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
+-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
+-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
+-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
+c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
+-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
+-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
+c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
+-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
+-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
+H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
+ 435 0h399565z`,leftgroupunder:`M400000 262
+H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
+-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
+-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
+-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
+-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
+-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
+m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
+-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
+-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
+v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
+-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
+-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
+M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
+M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
+-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
+c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
+M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
+c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
+-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
+c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
+-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
+-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
+m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
+60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
+-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
+m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
+c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
+-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
+m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
+85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
+-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
+m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
+c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
+-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
+-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
+-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
+-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
+s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
+c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
+-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
+-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
+-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
+-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
+m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
+-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
+-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
+-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
+m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
+-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
+M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
+-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
+-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
+-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
+-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
+-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
+c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
+-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
+-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
+-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
+-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
+c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
+-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
+-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
+3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
+10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
+-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
+-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
+H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
+c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
+c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
+-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
+-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
+-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
+-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
+-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
+-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
+-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
+c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
+c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
+s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
+121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
+s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
+c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
+M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
+-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
+13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
+-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
+-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
+-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
+151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
+c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
+c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
+c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
+c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
+M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
+c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
+-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
+c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
+M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
+c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
+1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
+-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
+M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
+c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
+-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
+c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
+M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Gt=function(r,n){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
+H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
+M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
+c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
+c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
+c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
+c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
+M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
+c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
+c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
+MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
+MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
+M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
+M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
+c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
+-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
+949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
+c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
+-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
+l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
+-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
+63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
+c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
+c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
+c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
+c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
+c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
+l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
+-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Tt{constructor(n){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=n,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(n){return x.contains(this.classes,n)}toNode(){const n=document.createDocumentFragment();for(let i=0;ii.toText();return this.children.map(n).join("")}}var _e={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const Ot={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},$e={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Be(r,n){_e[r]=n}function xt(r,n,i){if(!_e[n])throw new Error("Font metrics not found for font: "+n+".");let l=r.charCodeAt(0),d=_e[n][l];if(!d&&r[0]in $e&&(l=$e[r[0]].charCodeAt(0),d=_e[n][l]),!d&&i==="text"&&de(l)&&(d=_e[n][77]),d)return{depth:d[0],height:d[1],italic:d[2],skew:d[3],width:d[4]}}const St={};function Mt(r){let n;if(r>=5?n=0:r>=3?n=1:n=2,!St[n]){const i=St[n]={cssEmPerMu:Ot.quad[n]/18};for(const l in Ot)Ot.hasOwnProperty(l)&&(i[l]=Ot[l][n])}return St[n]}const ft=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],j=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ce=function(r,n){return n.size<2?r:ft[r-1][n.size-1]};class ge{constructor(n){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=n.style,this.color=n.color,this.size=n.size||ge.BASESIZE,this.textSize=n.textSize||this.size,this.phantom=!!n.phantom,this.font=n.font||"",this.fontFamily=n.fontFamily||"",this.fontWeight=n.fontWeight||"",this.fontShape=n.fontShape||"",this.sizeMultiplier=j[this.size-1],this.maxSize=n.maxSize,this.minRuleThickness=n.minRuleThickness,this._fontMetrics=void 0}extend(n){const i={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);return new ge(i)}havingStyle(n){return this.style===n?this:this.extend({style:n,size:ce(this.textSize,n)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(n){return this.size===n&&this.textSize===n?this:this.extend({style:this.style.text(),size:n,textSize:n,sizeMultiplier:j[n-1]})}havingBaseStyle(n){n=n||this.style.text();const i=ce(ge.BASESIZE,n);return this.size===i&&this.textSize===ge.BASESIZE&&this.style===n?this:this.extend({style:n,size:i})}havingBaseSizing(){let n;switch(this.style.id){case 4:case 5:n=3;break;case 6:case 7:n=1;break;default:n=6}return this.extend({style:this.style.text(),size:n})}withColor(n){return this.extend({color:n})}withPhantom(){return this.extend({phantom:!0})}withFont(n){return this.extend({font:n})}withTextFontFamily(n){return this.extend({fontFamily:n,font:""})}withTextFontWeight(n){return this.extend({fontWeight:n,font:""})}withTextFontShape(n){return this.extend({fontShape:n,font:""})}sizingClasses(n){return n.size!==this.size?["sizing","reset-size"+n.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ge.BASESIZE?["sizing","reset-size"+this.size,"size"+ge.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Mt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ge.BASESIZE=6;var xe=ge;const Qe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ue={ex:!0,em:!0,mu:!0},Re=function(r){return typeof r!="string"&&(r=r.unit),r in Qe||r in ue||r==="ex"},oe=function(r,n){let i;if(r.unit in Qe)i=Qe[r.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(r.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{let l;if(n.style.isTight()?l=n.havingStyle(n.style.text()):l=n,r.unit==="ex")i=l.fontMetrics().xHeight;else if(r.unit==="em")i=l.fontMetrics().quad;else throw new s("Invalid unit: '"+r.unit+"'");l!==n&&(i*=l.sizeMultiplier/n.sizeMultiplier)}return Math.min(r.number*i,n.maxSize)},X=function(r){return+r.toFixed(4)+"em"},dt=function(r){return r.filter(n=>n).join(" ")},we=function(r,n,i){if(this.classes=r||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");const l=n.getColor();l&&(this.style.color=l)}},Yt=function(r){const n=document.createElement(r);n.className=dt(this.classes);for(const i in this.style)this.style.hasOwnProperty(i)&&(n.style[i]=this.style[i]);for(const i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(let i=0;i";for(let l=0;l",n};class qt{constructor(n,i,l,d){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,we.call(this,n,l,d),this.children=i||[]}setAttribute(n,i){this.attributes[n]=i}hasClass(n){return x.contains(this.classes,n)}toNode(){return Yt.call(this,"span")}toMarkup(){return yt.call(this,"span")}}class fn{constructor(n,i,l,d){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,we.call(this,i,d),this.children=l||[],this.setAttribute("href",n)}setAttribute(n,i){this.attributes[n]=i}hasClass(n){return x.contains(this.classes,n)}toNode(){return Yt.call(this,"a")}toMarkup(){return yt.call(this,"a")}}class bn{constructor(n,i,l){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=i,this.src=n,this.classes=["mord"],this.style=l}hasClass(n){return x.contains(this.classes,n)}toNode(){const n=document.createElement("img");n.src=this.src,n.alt=this.alt,n.className="mord";for(const i in this.style)this.style.hasOwnProperty(i)&&(n.style[i]=this.style[i]);return n}toMarkup(){let n=' ",n}}const jn={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class wt{constructor(n,i,l,d,E,f,T,y){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=n,this.height=i||0,this.depth=l||0,this.italic=d||0,this.skew=E||0,this.width=f||0,this.classes=T||[],this.style=y||{},this.maxFontSize=0;const D=Ve(this.text.charCodeAt(0));D&&this.classes.push(D+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=jn[this.text])}hasClass(n){return x.contains(this.classes,n)}toNode(){const n=document.createTextNode(this.text);let i=null;this.italic>0&&(i=document.createElement("span"),i.style.marginRight=X(this.italic)),this.classes.length>0&&(i=i||document.createElement("span"),i.className=dt(this.classes));for(const l in this.style)this.style.hasOwnProperty(l)&&(i=i||document.createElement("span"),i.style[l]=this.style[l]);return i?(i.appendChild(n),i):n}toMarkup(){let n=!1,i="0&&(l+="margin-right:"+this.italic+"em;");for(const E in this.style)this.style.hasOwnProperty(E)&&(l+=x.hyphenate(E)+":"+this.style[E]+";");l&&(n=!0,i+=' style="'+x.escape(l)+'"');const d=x.escape(this.text);return n?(i+=">",i+=d,i+=" ",i):d}}class Xt{constructor(n,i){this.children=void 0,this.attributes=void 0,this.children=n||[],this.attributes=i||{}}toNode(){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg");for(const l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&i.setAttribute(l,this.attributes[l]);for(let l=0;l";for(let i=0;i",n}}class en{constructor(n,i){this.pathName=void 0,this.alternate=void 0,this.pathName=n,this.alternate=i}toNode(){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"path");return this.alternate?i.setAttribute("d",this.alternate):i.setAttribute("d",at[this.pathName]),i}toMarkup(){return this.alternate?' ':' '}}class er{constructor(n){this.attributes=void 0,this.attributes=n||{}}toNode(){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"line");for(const l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&i.setAttribute(l,this.attributes[l]);return i}toMarkup(){let n=" ",n}}function br(r){if(r instanceof wt)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function jr(r){if(r instanceof qt)return r;throw new Error("Expected span but got "+String(r)+".")}const ea={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ta={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Pn={math:{},text:{}};var tt=Pn;function m(r,n,i,l,d,E){Pn[r][d]={font:n,group:i,replace:l},E&&l&&(Pn[r][l]=Pn[r][d])}const g="math",$="text",b="main",v="ams",Xe="accent-token",se="bin",bt="close",hn="inner",Ee="mathord",lt="op-token",At="open",Fn="punct",I="rel",Zt="spacing",M="textord";m(g,b,I,"≡","\\equiv",!0),m(g,b,I,"≺","\\prec",!0),m(g,b,I,"≻","\\succ",!0),m(g,b,I,"∼","\\sim",!0),m(g,b,I,"⊥","\\perp"),m(g,b,I,"⪯","\\preceq",!0),m(g,b,I,"⪰","\\succeq",!0),m(g,b,I,"≃","\\simeq",!0),m(g,b,I,"∣","\\mid",!0),m(g,b,I,"≪","\\ll",!0),m(g,b,I,"≫","\\gg",!0),m(g,b,I,"≍","\\asymp",!0),m(g,b,I,"∥","\\parallel"),m(g,b,I,"⋈","\\bowtie",!0),m(g,b,I,"⌣","\\smile",!0),m(g,b,I,"⊑","\\sqsubseteq",!0),m(g,b,I,"⊒","\\sqsupseteq",!0),m(g,b,I,"≐","\\doteq",!0),m(g,b,I,"⌢","\\frown",!0),m(g,b,I,"∋","\\ni",!0),m(g,b,I,"∝","\\propto",!0),m(g,b,I,"⊢","\\vdash",!0),m(g,b,I,"⊣","\\dashv",!0),m(g,b,I,"∋","\\owns"),m(g,b,Fn,".","\\ldotp"),m(g,b,Fn,"⋅","\\cdotp"),m(g,b,M,"#","\\#"),m($,b,M,"#","\\#"),m(g,b,M,"&","\\&"),m($,b,M,"&","\\&"),m(g,b,M,"ℵ","\\aleph",!0),m(g,b,M,"∀","\\forall",!0),m(g,b,M,"ℏ","\\hbar",!0),m(g,b,M,"∃","\\exists",!0),m(g,b,M,"∇","\\nabla",!0),m(g,b,M,"♭","\\flat",!0),m(g,b,M,"ℓ","\\ell",!0),m(g,b,M,"♮","\\natural",!0),m(g,b,M,"♣","\\clubsuit",!0),m(g,b,M,"℘","\\wp",!0),m(g,b,M,"♯","\\sharp",!0),m(g,b,M,"♢","\\diamondsuit",!0),m(g,b,M,"ℜ","\\Re",!0),m(g,b,M,"♡","\\heartsuit",!0),m(g,b,M,"ℑ","\\Im",!0),m(g,b,M,"♠","\\spadesuit",!0),m(g,b,M,"§","\\S",!0),m($,b,M,"§","\\S"),m(g,b,M,"¶","\\P",!0),m($,b,M,"¶","\\P"),m(g,b,M,"†","\\dag"),m($,b,M,"†","\\dag"),m($,b,M,"†","\\textdagger"),m(g,b,M,"‡","\\ddag"),m($,b,M,"‡","\\ddag"),m($,b,M,"‡","\\textdaggerdbl"),m(g,b,bt,"⎱","\\rmoustache",!0),m(g,b,At,"⎰","\\lmoustache",!0),m(g,b,bt,"⟯","\\rgroup",!0),m(g,b,At,"⟮","\\lgroup",!0),m(g,b,se,"∓","\\mp",!0),m(g,b,se,"⊖","\\ominus",!0),m(g,b,se,"⊎","\\uplus",!0),m(g,b,se,"⊓","\\sqcap",!0),m(g,b,se,"∗","\\ast"),m(g,b,se,"⊔","\\sqcup",!0),m(g,b,se,"◯","\\bigcirc",!0),m(g,b,se,"∙","\\bullet",!0),m(g,b,se,"‡","\\ddagger"),m(g,b,se,"≀","\\wr",!0),m(g,b,se,"⨿","\\amalg"),m(g,b,se,"&","\\And"),m(g,b,I,"⟵","\\longleftarrow",!0),m(g,b,I,"⇐","\\Leftarrow",!0),m(g,b,I,"⟸","\\Longleftarrow",!0),m(g,b,I,"⟶","\\longrightarrow",!0),m(g,b,I,"⇒","\\Rightarrow",!0),m(g,b,I,"⟹","\\Longrightarrow",!0),m(g,b,I,"↔","\\leftrightarrow",!0),m(g,b,I,"⟷","\\longleftrightarrow",!0),m(g,b,I,"⇔","\\Leftrightarrow",!0),m(g,b,I,"⟺","\\Longleftrightarrow",!0),m(g,b,I,"↦","\\mapsto",!0),m(g,b,I,"⟼","\\longmapsto",!0),m(g,b,I,"↗","\\nearrow",!0),m(g,b,I,"↩","\\hookleftarrow",!0),m(g,b,I,"↪","\\hookrightarrow",!0),m(g,b,I,"↘","\\searrow",!0),m(g,b,I,"↼","\\leftharpoonup",!0),m(g,b,I,"⇀","\\rightharpoonup",!0),m(g,b,I,"↙","\\swarrow",!0),m(g,b,I,"↽","\\leftharpoondown",!0),m(g,b,I,"⇁","\\rightharpoondown",!0),m(g,b,I,"↖","\\nwarrow",!0),m(g,b,I,"⇌","\\rightleftharpoons",!0),m(g,v,I,"≮","\\nless",!0),m(g,v,I,"","\\@nleqslant"),m(g,v,I,"","\\@nleqq"),m(g,v,I,"⪇","\\lneq",!0),m(g,v,I,"≨","\\lneqq",!0),m(g,v,I,"","\\@lvertneqq"),m(g,v,I,"⋦","\\lnsim",!0),m(g,v,I,"⪉","\\lnapprox",!0),m(g,v,I,"⊀","\\nprec",!0),m(g,v,I,"⋠","\\npreceq",!0),m(g,v,I,"⋨","\\precnsim",!0),m(g,v,I,"⪹","\\precnapprox",!0),m(g,v,I,"≁","\\nsim",!0),m(g,v,I,"","\\@nshortmid"),m(g,v,I,"∤","\\nmid",!0),m(g,v,I,"⊬","\\nvdash",!0),m(g,v,I,"⊭","\\nvDash",!0),m(g,v,I,"⋪","\\ntriangleleft"),m(g,v,I,"⋬","\\ntrianglelefteq",!0),m(g,v,I,"⊊","\\subsetneq",!0),m(g,v,I,"","\\@varsubsetneq"),m(g,v,I,"⫋","\\subsetneqq",!0),m(g,v,I,"","\\@varsubsetneqq"),m(g,v,I,"≯","\\ngtr",!0),m(g,v,I,"","\\@ngeqslant"),m(g,v,I,"","\\@ngeqq"),m(g,v,I,"⪈","\\gneq",!0),m(g,v,I,"≩","\\gneqq",!0),m(g,v,I,"","\\@gvertneqq"),m(g,v,I,"⋧","\\gnsim",!0),m(g,v,I,"⪊","\\gnapprox",!0),m(g,v,I,"⊁","\\nsucc",!0),m(g,v,I,"⋡","\\nsucceq",!0),m(g,v,I,"⋩","\\succnsim",!0),m(g,v,I,"⪺","\\succnapprox",!0),m(g,v,I,"≆","\\ncong",!0),m(g,v,I,"","\\@nshortparallel"),m(g,v,I,"∦","\\nparallel",!0),m(g,v,I,"⊯","\\nVDash",!0),m(g,v,I,"⋫","\\ntriangleright"),m(g,v,I,"⋭","\\ntrianglerighteq",!0),m(g,v,I,"","\\@nsupseteqq"),m(g,v,I,"⊋","\\supsetneq",!0),m(g,v,I,"","\\@varsupsetneq"),m(g,v,I,"⫌","\\supsetneqq",!0),m(g,v,I,"","\\@varsupsetneqq"),m(g,v,I,"⊮","\\nVdash",!0),m(g,v,I,"⪵","\\precneqq",!0),m(g,v,I,"⪶","\\succneqq",!0),m(g,v,I,"","\\@nsubseteqq"),m(g,v,se,"⊴","\\unlhd"),m(g,v,se,"⊵","\\unrhd"),m(g,v,I,"↚","\\nleftarrow",!0),m(g,v,I,"↛","\\nrightarrow",!0),m(g,v,I,"⇍","\\nLeftarrow",!0),m(g,v,I,"⇏","\\nRightarrow",!0),m(g,v,I,"↮","\\nleftrightarrow",!0),m(g,v,I,"⇎","\\nLeftrightarrow",!0),m(g,v,I,"△","\\vartriangle"),m(g,v,M,"ℏ","\\hslash"),m(g,v,M,"▽","\\triangledown"),m(g,v,M,"◊","\\lozenge"),m(g,v,M,"Ⓢ","\\circledS"),m(g,v,M,"®","\\circledR"),m($,v,M,"®","\\circledR"),m(g,v,M,"∡","\\measuredangle",!0),m(g,v,M,"∄","\\nexists"),m(g,v,M,"℧","\\mho"),m(g,v,M,"Ⅎ","\\Finv",!0),m(g,v,M,"⅁","\\Game",!0),m(g,v,M,"‵","\\backprime"),m(g,v,M,"▲","\\blacktriangle"),m(g,v,M,"▼","\\blacktriangledown"),m(g,v,M,"■","\\blacksquare"),m(g,v,M,"⧫","\\blacklozenge"),m(g,v,M,"★","\\bigstar"),m(g,v,M,"∢","\\sphericalangle",!0),m(g,v,M,"∁","\\complement",!0),m(g,v,M,"ð","\\eth",!0),m($,b,M,"ð","ð"),m(g,v,M,"╱","\\diagup"),m(g,v,M,"╲","\\diagdown"),m(g,v,M,"□","\\square"),m(g,v,M,"□","\\Box"),m(g,v,M,"◊","\\Diamond"),m(g,v,M,"¥","\\yen",!0),m($,v,M,"¥","\\yen",!0),m(g,v,M,"✓","\\checkmark",!0),m($,v,M,"✓","\\checkmark"),m(g,v,M,"ℶ","\\beth",!0),m(g,v,M,"ℸ","\\daleth",!0),m(g,v,M,"ℷ","\\gimel",!0),m(g,v,M,"ϝ","\\digamma",!0),m(g,v,M,"ϰ","\\varkappa"),m(g,v,At,"┌","\\@ulcorner",!0),m(g,v,bt,"┐","\\@urcorner",!0),m(g,v,At,"└","\\@llcorner",!0),m(g,v,bt,"┘","\\@lrcorner",!0),m(g,v,I,"≦","\\leqq",!0),m(g,v,I,"⩽","\\leqslant",!0),m(g,v,I,"⪕","\\eqslantless",!0),m(g,v,I,"≲","\\lesssim",!0),m(g,v,I,"⪅","\\lessapprox",!0),m(g,v,I,"≊","\\approxeq",!0),m(g,v,se,"⋖","\\lessdot"),m(g,v,I,"⋘","\\lll",!0),m(g,v,I,"≶","\\lessgtr",!0),m(g,v,I,"⋚","\\lesseqgtr",!0),m(g,v,I,"⪋","\\lesseqqgtr",!0),m(g,v,I,"≑","\\doteqdot"),m(g,v,I,"≓","\\risingdotseq",!0),m(g,v,I,"≒","\\fallingdotseq",!0),m(g,v,I,"∽","\\backsim",!0),m(g,v,I,"⋍","\\backsimeq",!0),m(g,v,I,"⫅","\\subseteqq",!0),m(g,v,I,"⋐","\\Subset",!0),m(g,v,I,"⊏","\\sqsubset",!0),m(g,v,I,"≼","\\preccurlyeq",!0),m(g,v,I,"⋞","\\curlyeqprec",!0),m(g,v,I,"≾","\\precsim",!0),m(g,v,I,"⪷","\\precapprox",!0),m(g,v,I,"⊲","\\vartriangleleft"),m(g,v,I,"⊴","\\trianglelefteq"),m(g,v,I,"⊨","\\vDash",!0),m(g,v,I,"⊪","\\Vvdash",!0),m(g,v,I,"⌣","\\smallsmile"),m(g,v,I,"⌢","\\smallfrown"),m(g,v,I,"≏","\\bumpeq",!0),m(g,v,I,"≎","\\Bumpeq",!0),m(g,v,I,"≧","\\geqq",!0),m(g,v,I,"⩾","\\geqslant",!0),m(g,v,I,"⪖","\\eqslantgtr",!0),m(g,v,I,"≳","\\gtrsim",!0),m(g,v,I,"⪆","\\gtrapprox",!0),m(g,v,se,"⋗","\\gtrdot"),m(g,v,I,"⋙","\\ggg",!0),m(g,v,I,"≷","\\gtrless",!0),m(g,v,I,"⋛","\\gtreqless",!0),m(g,v,I,"⪌","\\gtreqqless",!0),m(g,v,I,"≖","\\eqcirc",!0),m(g,v,I,"≗","\\circeq",!0),m(g,v,I,"≜","\\triangleq",!0),m(g,v,I,"∼","\\thicksim"),m(g,v,I,"≈","\\thickapprox"),m(g,v,I,"⫆","\\supseteqq",!0),m(g,v,I,"⋑","\\Supset",!0),m(g,v,I,"⊐","\\sqsupset",!0),m(g,v,I,"≽","\\succcurlyeq",!0),m(g,v,I,"⋟","\\curlyeqsucc",!0),m(g,v,I,"≿","\\succsim",!0),m(g,v,I,"⪸","\\succapprox",!0),m(g,v,I,"⊳","\\vartriangleright"),m(g,v,I,"⊵","\\trianglerighteq"),m(g,v,I,"⊩","\\Vdash",!0),m(g,v,I,"∣","\\shortmid"),m(g,v,I,"∥","\\shortparallel"),m(g,v,I,"≬","\\between",!0),m(g,v,I,"⋔","\\pitchfork",!0),m(g,v,I,"∝","\\varpropto"),m(g,v,I,"◀","\\blacktriangleleft"),m(g,v,I,"∴","\\therefore",!0),m(g,v,I,"∍","\\backepsilon"),m(g,v,I,"▶","\\blacktriangleright"),m(g,v,I,"∵","\\because",!0),m(g,v,I,"⋘","\\llless"),m(g,v,I,"⋙","\\gggtr"),m(g,v,se,"⊲","\\lhd"),m(g,v,se,"⊳","\\rhd"),m(g,v,I,"≂","\\eqsim",!0),m(g,b,I,"⋈","\\Join"),m(g,v,I,"≑","\\Doteq",!0),m(g,v,se,"∔","\\dotplus",!0),m(g,v,se,"∖","\\smallsetminus"),m(g,v,se,"⋒","\\Cap",!0),m(g,v,se,"⋓","\\Cup",!0),m(g,v,se,"⩞","\\doublebarwedge",!0),m(g,v,se,"⊟","\\boxminus",!0),m(g,v,se,"⊞","\\boxplus",!0),m(g,v,se,"⋇","\\divideontimes",!0),m(g,v,se,"⋉","\\ltimes",!0),m(g,v,se,"⋊","\\rtimes",!0),m(g,v,se,"⋋","\\leftthreetimes",!0),m(g,v,se,"⋌","\\rightthreetimes",!0),m(g,v,se,"⋏","\\curlywedge",!0),m(g,v,se,"⋎","\\curlyvee",!0),m(g,v,se,"⊝","\\circleddash",!0),m(g,v,se,"⊛","\\circledast",!0),m(g,v,se,"⋅","\\centerdot"),m(g,v,se,"⊺","\\intercal",!0),m(g,v,se,"⋒","\\doublecap"),m(g,v,se,"⋓","\\doublecup"),m(g,v,se,"⊠","\\boxtimes",!0),m(g,v,I,"⇢","\\dashrightarrow",!0),m(g,v,I,"⇠","\\dashleftarrow",!0),m(g,v,I,"⇇","\\leftleftarrows",!0),m(g,v,I,"⇆","\\leftrightarrows",!0),m(g,v,I,"⇚","\\Lleftarrow",!0),m(g,v,I,"↞","\\twoheadleftarrow",!0),m(g,v,I,"↢","\\leftarrowtail",!0),m(g,v,I,"↫","\\looparrowleft",!0),m(g,v,I,"⇋","\\leftrightharpoons",!0),m(g,v,I,"↶","\\curvearrowleft",!0),m(g,v,I,"↺","\\circlearrowleft",!0),m(g,v,I,"↰","\\Lsh",!0),m(g,v,I,"⇈","\\upuparrows",!0),m(g,v,I,"↿","\\upharpoonleft",!0),m(g,v,I,"⇃","\\downharpoonleft",!0),m(g,b,I,"⊶","\\origof",!0),m(g,b,I,"⊷","\\imageof",!0),m(g,v,I,"⊸","\\multimap",!0),m(g,v,I,"↭","\\leftrightsquigarrow",!0),m(g,v,I,"⇉","\\rightrightarrows",!0),m(g,v,I,"⇄","\\rightleftarrows",!0),m(g,v,I,"↠","\\twoheadrightarrow",!0),m(g,v,I,"↣","\\rightarrowtail",!0),m(g,v,I,"↬","\\looparrowright",!0),m(g,v,I,"↷","\\curvearrowright",!0),m(g,v,I,"↻","\\circlearrowright",!0),m(g,v,I,"↱","\\Rsh",!0),m(g,v,I,"⇊","\\downdownarrows",!0),m(g,v,I,"↾","\\upharpoonright",!0),m(g,v,I,"⇂","\\downharpoonright",!0),m(g,v,I,"⇝","\\rightsquigarrow",!0),m(g,v,I,"⇝","\\leadsto"),m(g,v,I,"⇛","\\Rrightarrow",!0),m(g,v,I,"↾","\\restriction"),m(g,b,M,"‘","`"),m(g,b,M,"$","\\$"),m($,b,M,"$","\\$"),m($,b,M,"$","\\textdollar"),m(g,b,M,"%","\\%"),m($,b,M,"%","\\%"),m(g,b,M,"_","\\_"),m($,b,M,"_","\\_"),m($,b,M,"_","\\textunderscore"),m(g,b,M,"∠","\\angle",!0),m(g,b,M,"∞","\\infty",!0),m(g,b,M,"′","\\prime"),m(g,b,M,"△","\\triangle"),m(g,b,M,"Γ","\\Gamma",!0),m(g,b,M,"Δ","\\Delta",!0),m(g,b,M,"Θ","\\Theta",!0),m(g,b,M,"Λ","\\Lambda",!0),m(g,b,M,"Ξ","\\Xi",!0),m(g,b,M,"Π","\\Pi",!0),m(g,b,M,"Σ","\\Sigma",!0),m(g,b,M,"Υ","\\Upsilon",!0),m(g,b,M,"Φ","\\Phi",!0),m(g,b,M,"Ψ","\\Psi",!0),m(g,b,M,"Ω","\\Omega",!0),m(g,b,M,"A","Α"),m(g,b,M,"B","Β"),m(g,b,M,"E","Ε"),m(g,b,M,"Z","Ζ"),m(g,b,M,"H","Η"),m(g,b,M,"I","Ι"),m(g,b,M,"K","Κ"),m(g,b,M,"M","Μ"),m(g,b,M,"N","Ν"),m(g,b,M,"O","Ο"),m(g,b,M,"P","Ρ"),m(g,b,M,"T","Τ"),m(g,b,M,"X","Χ"),m(g,b,M,"¬","\\neg",!0),m(g,b,M,"¬","\\lnot"),m(g,b,M,"⊤","\\top"),m(g,b,M,"⊥","\\bot"),m(g,b,M,"∅","\\emptyset"),m(g,v,M,"∅","\\varnothing"),m(g,b,Ee,"α","\\alpha",!0),m(g,b,Ee,"β","\\beta",!0),m(g,b,Ee,"γ","\\gamma",!0),m(g,b,Ee,"δ","\\delta",!0),m(g,b,Ee,"ϵ","\\epsilon",!0),m(g,b,Ee,"ζ","\\zeta",!0),m(g,b,Ee,"η","\\eta",!0),m(g,b,Ee,"θ","\\theta",!0),m(g,b,Ee,"ι","\\iota",!0),m(g,b,Ee,"κ","\\kappa",!0),m(g,b,Ee,"λ","\\lambda",!0),m(g,b,Ee,"μ","\\mu",!0),m(g,b,Ee,"ν","\\nu",!0),m(g,b,Ee,"ξ","\\xi",!0),m(g,b,Ee,"ο","\\omicron",!0),m(g,b,Ee,"π","\\pi",!0),m(g,b,Ee,"ρ","\\rho",!0),m(g,b,Ee,"σ","\\sigma",!0),m(g,b,Ee,"τ","\\tau",!0),m(g,b,Ee,"υ","\\upsilon",!0),m(g,b,Ee,"ϕ","\\phi",!0),m(g,b,Ee,"χ","\\chi",!0),m(g,b,Ee,"ψ","\\psi",!0),m(g,b,Ee,"ω","\\omega",!0),m(g,b,Ee,"ε","\\varepsilon",!0),m(g,b,Ee,"ϑ","\\vartheta",!0),m(g,b,Ee,"ϖ","\\varpi",!0),m(g,b,Ee,"ϱ","\\varrho",!0),m(g,b,Ee,"ς","\\varsigma",!0),m(g,b,Ee,"φ","\\varphi",!0),m(g,b,se,"∗","*",!0),m(g,b,se,"+","+"),m(g,b,se,"−","-",!0),m(g,b,se,"⋅","\\cdot",!0),m(g,b,se,"∘","\\circ",!0),m(g,b,se,"÷","\\div",!0),m(g,b,se,"±","\\pm",!0),m(g,b,se,"×","\\times",!0),m(g,b,se,"∩","\\cap",!0),m(g,b,se,"∪","\\cup",!0),m(g,b,se,"∖","\\setminus",!0),m(g,b,se,"∧","\\land"),m(g,b,se,"∨","\\lor"),m(g,b,se,"∧","\\wedge",!0),m(g,b,se,"∨","\\vee",!0),m(g,b,M,"√","\\surd"),m(g,b,At,"⟨","\\langle",!0),m(g,b,At,"∣","\\lvert"),m(g,b,At,"∥","\\lVert"),m(g,b,bt,"?","?"),m(g,b,bt,"!","!"),m(g,b,bt,"⟩","\\rangle",!0),m(g,b,bt,"∣","\\rvert"),m(g,b,bt,"∥","\\rVert"),m(g,b,I,"=","="),m(g,b,I,":",":"),m(g,b,I,"≈","\\approx",!0),m(g,b,I,"≅","\\cong",!0),m(g,b,I,"≥","\\ge"),m(g,b,I,"≥","\\geq",!0),m(g,b,I,"←","\\gets"),m(g,b,I,">","\\gt",!0),m(g,b,I,"∈","\\in",!0),m(g,b,I,"","\\@not"),m(g,b,I,"⊂","\\subset",!0),m(g,b,I,"⊃","\\supset",!0),m(g,b,I,"⊆","\\subseteq",!0),m(g,b,I,"⊇","\\supseteq",!0),m(g,v,I,"⊈","\\nsubseteq",!0),m(g,v,I,"⊉","\\nsupseteq",!0),m(g,b,I,"⊨","\\models"),m(g,b,I,"←","\\leftarrow",!0),m(g,b,I,"≤","\\le"),m(g,b,I,"≤","\\leq",!0),m(g,b,I,"<","\\lt",!0),m(g,b,I,"→","\\rightarrow",!0),m(g,b,I,"→","\\to"),m(g,v,I,"≱","\\ngeq",!0),m(g,v,I,"≰","\\nleq",!0),m(g,b,Zt," ","\\ "),m(g,b,Zt," ","\\space"),m(g,b,Zt," ","\\nobreakspace"),m($,b,Zt," ","\\ "),m($,b,Zt," "," "),m($,b,Zt," ","\\space"),m($,b,Zt," ","\\nobreakspace"),m(g,b,Zt,null,"\\nobreak"),m(g,b,Zt,null,"\\allowbreak"),m(g,b,Fn,",",","),m(g,b,Fn,";",";"),m(g,v,se,"⊼","\\barwedge",!0),m(g,v,se,"⊻","\\veebar",!0),m(g,b,se,"⊙","\\odot",!0),m(g,b,se,"⊕","\\oplus",!0),m(g,b,se,"⊗","\\otimes",!0),m(g,b,M,"∂","\\partial",!0),m(g,b,se,"⊘","\\oslash",!0),m(g,v,se,"⊚","\\circledcirc",!0),m(g,v,se,"⊡","\\boxdot",!0),m(g,b,se,"△","\\bigtriangleup"),m(g,b,se,"▽","\\bigtriangledown"),m(g,b,se,"†","\\dagger"),m(g,b,se,"⋄","\\diamond"),m(g,b,se,"⋆","\\star"),m(g,b,se,"◃","\\triangleleft"),m(g,b,se,"▹","\\triangleright"),m(g,b,At,"{","\\{"),m($,b,M,"{","\\{"),m($,b,M,"{","\\textbraceleft"),m(g,b,bt,"}","\\}"),m($,b,M,"}","\\}"),m($,b,M,"}","\\textbraceright"),m(g,b,At,"{","\\lbrace"),m(g,b,bt,"}","\\rbrace"),m(g,b,At,"[","\\lbrack",!0),m($,b,M,"[","\\lbrack",!0),m(g,b,bt,"]","\\rbrack",!0),m($,b,M,"]","\\rbrack",!0),m(g,b,At,"(","\\lparen",!0),m(g,b,bt,")","\\rparen",!0),m($,b,M,"<","\\textless",!0),m($,b,M,">","\\textgreater",!0),m(g,b,At,"⌊","\\lfloor",!0),m(g,b,bt,"⌋","\\rfloor",!0),m(g,b,At,"⌈","\\lceil",!0),m(g,b,bt,"⌉","\\rceil",!0),m(g,b,M,"\\","\\backslash"),m(g,b,M,"∣","|"),m(g,b,M,"∣","\\vert"),m($,b,M,"|","\\textbar",!0),m(g,b,M,"∥","\\|"),m(g,b,M,"∥","\\Vert"),m($,b,M,"∥","\\textbardbl"),m($,b,M,"~","\\textasciitilde"),m($,b,M,"\\","\\textbackslash"),m($,b,M,"^","\\textasciicircum"),m(g,b,I,"↑","\\uparrow",!0),m(g,b,I,"⇑","\\Uparrow",!0),m(g,b,I,"↓","\\downarrow",!0),m(g,b,I,"⇓","\\Downarrow",!0),m(g,b,I,"↕","\\updownarrow",!0),m(g,b,I,"⇕","\\Updownarrow",!0),m(g,b,lt,"∐","\\coprod"),m(g,b,lt,"⋁","\\bigvee"),m(g,b,lt,"⋀","\\bigwedge"),m(g,b,lt,"⨄","\\biguplus"),m(g,b,lt,"⋂","\\bigcap"),m(g,b,lt,"⋃","\\bigcup"),m(g,b,lt,"∫","\\int"),m(g,b,lt,"∫","\\intop"),m(g,b,lt,"∬","\\iint"),m(g,b,lt,"∭","\\iiint"),m(g,b,lt,"∏","\\prod"),m(g,b,lt,"∑","\\sum"),m(g,b,lt,"⨂","\\bigotimes"),m(g,b,lt,"⨁","\\bigoplus"),m(g,b,lt,"⨀","\\bigodot"),m(g,b,lt,"∮","\\oint"),m(g,b,lt,"∯","\\oiint"),m(g,b,lt,"∰","\\oiiint"),m(g,b,lt,"⨆","\\bigsqcup"),m(g,b,lt,"∫","\\smallint"),m($,b,hn,"…","\\textellipsis"),m(g,b,hn,"…","\\mathellipsis"),m($,b,hn,"…","\\ldots",!0),m(g,b,hn,"…","\\ldots",!0),m(g,b,hn,"⋯","\\@cdots",!0),m(g,b,hn,"⋱","\\ddots",!0),m(g,b,M,"⋮","\\varvdots"),m(g,b,Xe,"ˊ","\\acute"),m(g,b,Xe,"ˋ","\\grave"),m(g,b,Xe,"¨","\\ddot"),m(g,b,Xe,"~","\\tilde"),m(g,b,Xe,"ˉ","\\bar"),m(g,b,Xe,"˘","\\breve"),m(g,b,Xe,"ˇ","\\check"),m(g,b,Xe,"^","\\hat"),m(g,b,Xe,"⃗","\\vec"),m(g,b,Xe,"˙","\\dot"),m(g,b,Xe,"˚","\\mathring"),m(g,b,Ee,"","\\@imath"),m(g,b,Ee,"","\\@jmath"),m(g,b,M,"ı","ı"),m(g,b,M,"ȷ","ȷ"),m($,b,M,"ı","\\i",!0),m($,b,M,"ȷ","\\j",!0),m($,b,M,"ß","\\ss",!0),m($,b,M,"æ","\\ae",!0),m($,b,M,"œ","\\oe",!0),m($,b,M,"ø","\\o",!0),m($,b,M,"Æ","\\AE",!0),m($,b,M,"Œ","\\OE",!0),m($,b,M,"Ø","\\O",!0),m($,b,Xe,"ˊ","\\'"),m($,b,Xe,"ˋ","\\`"),m($,b,Xe,"ˆ","\\^"),m($,b,Xe,"˜","\\~"),m($,b,Xe,"ˉ","\\="),m($,b,Xe,"˘","\\u"),m($,b,Xe,"˙","\\."),m($,b,Xe,"¸","\\c"),m($,b,Xe,"˚","\\r"),m($,b,Xe,"ˇ","\\v"),m($,b,Xe,"¨",'\\"'),m($,b,Xe,"˝","\\H"),m($,b,Xe,"◯","\\textcircled");const hr={"--":!0,"---":!0,"``":!0,"''":!0};m($,b,M,"–","--",!0),m($,b,M,"–","\\textendash"),m($,b,M,"—","---",!0),m($,b,M,"—","\\textemdash"),m($,b,M,"‘","`",!0),m($,b,M,"‘","\\textquoteleft"),m($,b,M,"’","'",!0),m($,b,M,"’","\\textquoteright"),m($,b,M,"“","``",!0),m($,b,M,"“","\\textquotedblleft"),m($,b,M,"”","''",!0),m($,b,M,"”","\\textquotedblright"),m(g,b,M,"°","\\degree",!0),m($,b,M,"°","\\degree"),m($,b,M,"°","\\textdegree",!0),m(g,b,M,"£","\\pounds"),m(g,b,M,"£","\\mathsterling",!0),m($,b,M,"£","\\pounds"),m($,b,M,"£","\\textsterling",!0),m(g,v,M,"✠","\\maltese"),m($,v,M,"✠","\\maltese");const Tr='0123456789/@."';for(let r=0;r0)return Pt(d,y,l,n,E.concat(D));if(T){let k,F;if(T==="boldsymbol"){const U=aa(d,l,n,E,i);k=U.fontName,F=[U.fontClass]}else f?(k=yr[T].fontName,F=[T]):(k=Yn(T,n.fontWeight,n.fontShape),F=[T,n.fontWeight,n.fontShape]);if(Gn(d,k,l).metrics)return Pt(d,k,l,n,E.concat(F));if(hr.hasOwnProperty(d)&&k.slice(0,10)==="Typewriter"){const U=[];for(let K=0;K{if(dt(r.classes)!==dt(n.classes)||r.skew!==n.skew||r.maxFontSize!==n.maxFontSize)return!1;if(r.classes.length===1){const i=r.classes[0];if(i==="mbin"||i==="mord")return!1}for(const i in r.style)if(r.style.hasOwnProperty(i)&&r.style[i]!==n.style[i])return!1;for(const i in n.style)if(n.style.hasOwnProperty(i)&&r.style[i]!==n.style[i])return!1;return!0},sa=r=>{for(let n=0;nn&&(n=E.height),E.depth>i&&(i=E.depth),E.maxFontSize>l&&(l=E.maxFontSize)}r.height=n,r.depth=i,r.maxFontSize=l},Ct=function(r,n,i,l){const d=new qt(r,n,i,l);return nr(d),d},Nr=(r,n,i,l)=>new qt(r,n,i,l),la=function(r,n,i){const l=Ct([r],[],n);return l.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),l.style.borderBottomWidth=X(l.height),l.maxFontSize=1,l},ca=function(r,n,i,l){const d=new fn(r,n,i,l);return nr(d),d},Or=function(r){const n=new Tt(r);return nr(n),n},ua=function(r,n){return r instanceof Tt?Ct([],[r],n):r},da=function(r){if(r.positionType==="individualShift"){const i=r.children,l=[i[0]],d=-i[0].shift-i[0].elem.depth;let E=d;for(let f=1;f{const i=Ct(["mspace"],[],n),l=oe(r,n);return i.style.marginRight=X(l),i},Yn=function(r,n,i){let l="";switch(r){case"amsrm":l="AMS";break;case"textrm":l="Main";break;case"textsf":l="SansSerif";break;case"texttt":l="Typewriter";break;default:l=r}let d;return n==="textbf"&&i==="textit"?d="BoldItalic":n==="textbf"?d="Bold":n==="textit"?d="Italic":d="Regular",l+"-"+d},yr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ar={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var B={fontMap:yr,makeSymbol:Pt,mathsym:ra,makeSpan:Ct,makeSvgSpan:Nr,makeLineSpan:la,makeAnchor:ca,makeFragment:Or,wrapFragment:ua,makeVList:_a,makeOrd:ia,makeGlue:ma,staticSvg:function(r,n){const[i,l,d]=Ar[r],E=new en(i),f=new Xt([E],{width:X(l),height:X(d),style:"width:"+X(l),viewBox:"0 0 "+1e3*l+" "+1e3*d,preserveAspectRatio:"xMinYMin"}),T=Nr(["overlay"],[f],n);return T.height=d,T.style.height=X(d),T.style.width=X(l),T},svgData:Ar,tryCombineChars:sa};const Ze={number:3,unit:"mu"},tn={number:4,unit:"mu"},zt={number:5,unit:"mu"},pa={mord:{mop:Ze,mbin:tn,mrel:zt,minner:Ze},mop:{mord:Ze,mop:Ze,mrel:zt,minner:Ze},mbin:{mord:tn,mop:tn,mopen:tn,minner:tn},mrel:{mord:zt,mop:zt,mopen:zt,minner:zt},mopen:{},mclose:{mop:Ze,mbin:tn,mrel:zt,minner:Ze},mpunct:{mord:Ze,mop:Ze,mrel:zt,mopen:Ze,mclose:Ze,mpunct:Ze,minner:Ze},minner:{mord:Ze,mop:Ze,mbin:tn,mrel:zt,mopen:Ze,mpunct:Ze,minner:Ze}},ga={mord:{mop:Ze},mop:{mord:Ze,mop:Ze},mbin:{},mrel:{},mopen:{},mclose:{mop:Ze},mpunct:{},minner:{mop:Ze}},rr={},gn={},Tn={};function ie(r){let{type:n,names:i,props:l,handler:d,htmlBuilder:E,mathmlBuilder:f}=r;const T={type:n,numArgs:l.numArgs,argTypes:l.argTypes,allowedInArgument:!!l.allowedInArgument,allowedInText:!!l.allowedInText,allowedInMath:l.allowedInMath===void 0?!0:l.allowedInMath,numOptionalArgs:l.numOptionalArgs||0,infix:!!l.infix,primitive:!!l.primitive,handler:d};for(let y=0;y{const F=k.classes[0],U=D.classes[0];F==="mbin"&&x.contains(cp,U)?k.classes[0]="mord":U==="mbin"&&x.contains(lp,F)&&(D.classes[0]="mord")},{node:f},T,y),Ea(d,(D,k)=>{const F=fa(k),U=fa(D),K=F&&U?D.hasClass("mtight")?ga[F][U]:pa[F][U]:null;if(K)return B.makeGlue(K,E)},{node:f},T,y),d},Ea=function(r,n,i,l,d){l&&r.push(l);let E=0;for(;Ek=>{r.splice(D+1,0,k),E++})(E)}l&&r.pop()},tc=function(r){return r instanceof Tt||r instanceof fn||r instanceof qt&&r.hasClass("enclosing")?r:null},Sa=function(r,n){const i=tc(r);if(i){const l=i.children;if(l.length){if(n==="right")return Sa(l[l.length-1],"right");if(n==="left")return Sa(l[0],"left")}}return r},fa=function(r,n){return r?(n&&(r=Sa(r,n)),dp[r.classes[0]]||null):null},ar=function(r,n){const i=["nulldelimiter"].concat(r.baseSizingClasses());return rn(n.concat(i))},Ue=function(r,n,i){if(!r)return rn();if(gn[r.type]){let l=gn[r.type](r,n);if(i&&n.size!==i.size){l=rn(n.sizingClasses(i),[l],n);const d=n.sizeMultiplier/i.sizeMultiplier;l.height*=d,l.depth*=d}return l}else throw new s("Got group of unknown type: '"+r.type+"'")};function vr(r,n){const i=rn(["base"],r,n),l=rn(["strut"]);return l.style.height=X(i.height+i.depth),i.depth&&(l.style.verticalAlign=X(-i.depth)),i.children.unshift(l),i}function ba(r,n){let i=null;r.length===1&&r[0].type==="tag"&&(i=r[0].tag,r=r[0].body);const l=_t(r,n,"root");let d;l.length===2&&l[1].hasClass("tag")&&(d=l.pop());const E=[];let f=[];for(let D=0;D0&&(E.push(vr(f,n)),f=[]),E.push(l[D]));f.length>0&&E.push(vr(f,n));let T;i?(T=vr(_t(i,n,!0)),T.classes=["tag"],E.push(T)):d&&E.push(d);const y=rn(["katex-html"],E);if(y.setAttribute("aria-hidden","true"),T){const D=T.children[0];D.style.height=X(y.height+y.depth),y.depth&&(D.style.verticalAlign=X(-y.depth))}return y}function nc(r){return new Tt(r)}class Ht{constructor(n,i,l){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=n,this.attributes={},this.children=i||[],this.classes=l||[]}setAttribute(n,i){this.attributes[n]=i}getAttribute(n){return this.attributes[n]}toNode(){const n=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&n.setAttribute(i,this.attributes[i]);this.classes.length>0&&(n.className=dt(this.classes));for(let i=0;i0&&(n+=' class ="'+x.escape(dt(this.classes))+'"'),n+=">";for(let i=0;i",n}toText(){return this.children.map(n=>n.toText()).join("")}}class ir{constructor(n){this.text=void 0,this.text=n}toNode(){return document.createTextNode(this.text)}toMarkup(){return x.escape(this.toText())}toText(){return this.text}}class _p{constructor(n){this.width=void 0,this.character=void 0,this.width=n,n>=.05555&&n<=.05556?this.character=" ":n>=.1666&&n<=.1667?this.character=" ":n>=.2222&&n<=.2223?this.character=" ":n>=.2777&&n<=.2778?this.character=" ":n>=-.05556&&n<=-.05555?this.character=" ":n>=-.1667&&n<=-.1666?this.character=" ":n>=-.2223&&n<=-.2222?this.character=" ":n>=-.2778&&n<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const n=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return n.setAttribute("width",X(this.width)),n}}toMarkup(){return this.character?""+this.character+" ":' '}toText(){return this.character?this.character:" "}}var Z={MathNode:Ht,TextNode:ir,SpaceNode:_p,newDocumentFragment:nc};const Vt=function(r,n,i){return tt[n][r]&&tt[n][r].replace&&r.charCodeAt(0)!==55349&&!(hr.hasOwnProperty(r)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(r=tt[n][r].replace),new Z.TextNode(r)},ha=function(r){return r.length===1?r[0]:new Z.MathNode("mrow",r)},Ta=function(r,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";const i=n.font;if(!i||i==="mathnormal")return null;const l=r.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return r.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";let d=r.text;if(x.contains(["\\imath","\\jmath"],d))return null;tt[l][d]&&tt[l][d].replace&&(d=tt[l][d].replace);const E=B.fontMap[i].fontName;return xt(d,E,l)?B.fontMap[i].variant:null},Lt=function(r,n,i){if(r.length===1){const E=Ke(r[0],n);return i&&E instanceof Ht&&E.type==="mo"&&(E.setAttribute("lspace","0em"),E.setAttribute("rspace","0em")),[E]}const l=[];let d;for(let E=0;E0&&(y.text=y.text.slice(0,1)+"̸"+y.text.slice(1),l.pop())}}}l.push(f),d=f}return l},Cn=function(r,n,i){return ha(Lt(r,n,i))},Ke=function(r,n){if(!r)return new Z.MathNode("mrow");if(Tn[r.type])return Tn[r.type](r,n);throw new s("Got group of unknown type: '"+r.type+"'")};function rc(r,n,i,l,d){const E=Lt(r,i);let f;E.length===1&&E[0]instanceof Ht&&x.contains(["mrow","mtable"],E[0].type)?f=E[0]:f=new Z.MathNode("mrow",E);const T=new Z.MathNode("annotation",[new Z.TextNode(n)]);T.setAttribute("encoding","application/x-tex");const y=new Z.MathNode("semantics",[f,T]),D=new Z.MathNode("math",[y]);D.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),l&&D.setAttribute("display","block");const k=d?"katex":"katex-mathml";return B.makeSpan([k],[D])}const ac=function(r){return new xe({style:r.displayMode?J.DISPLAY:J.TEXT,maxSize:r.maxSize,minRuleThickness:r.minRuleThickness})},ic=function(r,n){if(n.displayMode){const i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),r=B.makeSpan(i,[r])}return r},mp=function(r,n,i){const l=ac(i);let d;if(i.output==="mathml")return rc(r,n,l,i.displayMode,!0);if(i.output==="html"){const E=ba(r,l);d=B.makeSpan(["katex"],[E])}else{const E=rc(r,n,l,i.displayMode,!1),f=ba(r,l);d=B.makeSpan(["katex"],[E,f])}return ic(d,i)},pp=function(r,n,i){const l=ac(i),d=ba(r,l),E=B.makeSpan(["katex"],[d]);return ic(E,i)},gp={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ep=function(r){const n=new Z.MathNode("mo",[new Z.TextNode(gp[r.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Sp={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},fp=function(r){return r.type==="ordgroup"?r.body.length:1};var En={encloseSpan:function(r,n,i,l,d){let E;const f=r.height+r.depth+i+l;if(/fbox|color|angl/.test(n)){if(E=B.makeSpan(["stretchy",n],[],d),n==="fbox"){const T=d.color&&d.getColor();T&&(E.style.borderColor=T)}}else{const T=[];/^[bx]cancel$/.test(n)&&T.push(new er({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&T.push(new er({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const y=new Xt(T,{width:"100%",height:X(f)});E=B.makeSvgSpan([],[y],d)}return E.height=f,E.style.height=X(f),E},mathMLnode:Ep,svgSpan:function(r,n){function i(){let f=4e5;const T=r.label.slice(1);if(x.contains(["widehat","widecheck","widetilde","utilde"],T)){const D=fp(r.base);let k,F,U;if(D>5)T==="widehat"||T==="widecheck"?(k=420,f=2364,U=.42,F=T+"4"):(k=312,f=2340,U=.34,F="tilde4");else{const me=[1,1,2,2,3,3][D];T==="widehat"||T==="widecheck"?(f=[0,1062,2364,2364,2364][me],k=[0,239,300,360,420][me],U=[0,.24,.3,.3,.36,.42][me],F=T+me):(f=[0,600,1033,2339,2340][me],k=[0,260,286,306,312][me],U=[0,.26,.286,.3,.306,.34][me],F="tilde"+me)}const K=new en(F),le=new Xt([K],{width:"100%",height:X(U),viewBox:"0 0 "+f+" "+k,preserveAspectRatio:"none"});return{span:B.makeSvgSpan([],[le],n),minWidth:0,height:U}}else{const y=[],D=Sp[T],[k,F,U]=D,K=U/1e3,le=k.length;let me,Le;if(le===1){const Me=D[3];me=["hide-tail"],Le=[Me]}else if(le===2)me=["halfarrow-left","halfarrow-right"],Le=["xMinYMin","xMaxYMin"];else if(le===3)me=["brace-left","brace-center","brace-right"],Le=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
+ `+le+" children.");for(let Me=0;Me0&&(l.style.minWidth=X(d)),l}};function De(r,n){if(!r||r.type!==n)throw new Error("Expected node of type "+n+", but got "+(r?"node of type "+r.type:String(r)));return r}function Ca(r){const n=Ir(r);if(!n)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return n}function Ir(r){return r&&(r.type==="atom"||ta.hasOwnProperty(r.type))?r:null}const Ra=(r,n)=>{let i,l,d;r&&r.type==="supsub"?(l=De(r.base,"accent"),i=l.base,r.base=i,d=jr(Ue(r,n)),r.base=l):(l=De(r,"accent"),i=l.base);const E=Ue(i,n.havingCrampedStyle()),f=l.isShifty&&x.isCharacterBox(i);let T=0;if(f){const U=x.getBaseElem(i),K=Ue(U,n.havingCrampedStyle());T=br(K).skew}const y=l.label==="\\c";let D=y?E.height+E.depth:Math.min(E.height,n.fontMetrics().xHeight),k;if(l.isStretchy)k=En.svgSpan(l,n),k=B.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"elem",elem:k,wrapperClasses:["svg-align"],wrapperStyle:T>0?{width:"calc(100% - "+X(2*T)+")",marginLeft:X(2*T)}:void 0}]},n);else{let U,K;l.label==="\\vec"?(U=B.staticSvg("vec",n),K=B.svgData.vec[1]):(U=B.makeOrd({mode:l.mode,text:l.label},n,"textord"),U=br(U),U.italic=0,K=U.width,y&&(D+=U.depth)),k=B.makeSpan(["accent-body"],[U]);const le=l.label==="\\textcircled";le&&(k.classes.push("accent-full"),D=E.height);let me=T;le||(me-=K/2),k.style.left=X(me),l.label==="\\textcircled"&&(k.style.top=".2em"),k=B.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"kern",size:-D},{type:"elem",elem:k}]},n)}const F=B.makeSpan(["mord","accent"],[k],n);return d?(d.children[0]=F,d.height=Math.max(F.height,d.height),d.classes[0]="mord",d):F},oc=(r,n)=>{const i=r.isStretchy?En.mathMLnode(r.label):new Z.MathNode("mo",[Vt(r.label,r.mode)]),l=new Z.MathNode("mover",[Ke(r.base,n),i]);return l.setAttribute("accent","true"),l},bp=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));ie({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,n)=>{const i=xn(n[0]),l=!bp.test(r.funcName),d=!l||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:l,isShifty:d,base:i}},htmlBuilder:Ra,mathmlBuilder:oc}),ie({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,n)=>{const i=n[0];let l=r.parser.mode;return l==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),l="text"),{type:"accent",mode:l,label:r.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:Ra,mathmlBuilder:oc}),ie({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,n)=>{let{parser:i,funcName:l}=r;const d=n[0];return{type:"accentUnder",mode:i.mode,label:l,base:d}},htmlBuilder:(r,n)=>{const i=Ue(r.base,n),l=En.svgSpan(r,n),d=r.label==="\\utilde"?.12:0,E=B.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:d},{type:"elem",elem:i}]},n);return B.makeSpan(["mord","accentunder"],[E],n)},mathmlBuilder:(r,n)=>{const i=En.mathMLnode(r.label),l=new Z.MathNode("munder",[Ke(r.base,n),i]);return l.setAttribute("accentunder","true"),l}});const Dr=r=>{const n=new Z.MathNode("mpadded",r?[r]:[]);return n.setAttribute("width","+0.6em"),n.setAttribute("lspace","0.3em"),n};ie({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,n,i){let{parser:l,funcName:d}=r;return{type:"xArrow",mode:l.mode,label:d,body:n[0],below:i[0]}},htmlBuilder(r,n){const i=n.style;let l=n.havingStyle(i.sup());const d=B.wrapFragment(Ue(r.body,l,n),n),E=r.label.slice(0,2)==="\\x"?"x":"cd";d.classes.push(E+"-arrow-pad");let f;r.below&&(l=n.havingStyle(i.sub()),f=B.wrapFragment(Ue(r.below,l,n),n),f.classes.push(E+"-arrow-pad"));const T=En.svgSpan(r,n),y=-n.fontMetrics().axisHeight+.5*T.height;let D=-n.fontMetrics().axisHeight-.5*T.height-.111;(d.depth>.25||r.label==="\\xleftequilibrium")&&(D-=d.depth);let k;if(f){const F=-n.fontMetrics().axisHeight+f.height+.5*T.height+.111;k=B.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:D},{type:"elem",elem:T,shift:y},{type:"elem",elem:f,shift:F}]},n)}else k=B.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:D},{type:"elem",elem:T,shift:y}]},n);return k.children[0].children[0].children[1].classes.push("svg-align"),B.makeSpan(["mrel","x-arrow"],[k],n)},mathmlBuilder(r,n){const i=En.mathMLnode(r.label);i.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");let l;if(r.body){const d=Dr(Ke(r.body,n));if(r.below){const E=Dr(Ke(r.below,n));l=new Z.MathNode("munderover",[i,E,d])}else l=new Z.MathNode("mover",[i,d])}else if(r.below){const d=Dr(Ke(r.below,n));l=new Z.MathNode("munder",[i,d])}else l=Dr(),l=new Z.MathNode("mover",[i,l]);return l}});const hp=B.makeSpan;function sc(r,n){const i=_t(r.body,n,!0);return hp([r.mclass],i,n)}function lc(r,n){let i;const l=Lt(r.body,n);return r.mclass==="minner"?i=new Z.MathNode("mpadded",l):r.mclass==="mord"?r.isCharacterBox?(i=l[0],i.type="mi"):i=new Z.MathNode("mi",l):(r.isCharacterBox?(i=l[0],i.type="mo"):i=new Z.MathNode("mo",l),r.mclass==="mbin"?(i.attributes.lspace="0.22em",i.attributes.rspace="0.22em"):r.mclass==="mpunct"?(i.attributes.lspace="0em",i.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(i.attributes.lspace="0em",i.attributes.rspace="0em"):r.mclass==="minner"&&(i.attributes.lspace="0.0556em",i.attributes.width="+0.1111em")),i}ie({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,n){let{parser:i,funcName:l}=r;const d=n[0];return{type:"mclass",mode:i.mode,mclass:"m"+l.slice(5),body:ct(d),isCharacterBox:x.isCharacterBox(d)}},htmlBuilder:sc,mathmlBuilder:lc});const xr=r=>{const n=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return n.type==="atom"&&(n.family==="bin"||n.family==="rel")?"m"+n.family:"mord"};ie({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,n){let{parser:i}=r;return{type:"mclass",mode:i.mode,mclass:xr(n[0]),body:ct(n[1]),isCharacterBox:x.isCharacterBox(n[1])}}}),ie({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,n){let{parser:i,funcName:l}=r;const d=n[1],E=n[0];let f;l!=="\\stackrel"?f=xr(d):f="mrel";const T={type:"op",mode:d.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:l!=="\\stackrel",body:ct(d)},y={type:"supsub",mode:E.mode,base:T,sup:l==="\\underset"?null:E,sub:l==="\\underset"?E:null};return{type:"mclass",mode:i.mode,mclass:f,body:[y],isCharacterBox:x.isCharacterBox(y)}},htmlBuilder:sc,mathmlBuilder:lc}),ie({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,n){let{parser:i}=r;return{type:"pmb",mode:i.mode,mclass:xr(n[0]),body:ct(n[0])}},htmlBuilder(r,n){const i=_t(r.body,n,!0),l=B.makeSpan([r.mclass],i,n);return l.style.textShadow="0.02em 0.01em 0.04px",l},mathmlBuilder(r,n){const i=Lt(r.body,n),l=new Z.MathNode("mstyle",i);return l.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),l}});const Tp={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},cc=()=>({type:"styling",body:[],mode:"math",style:"display"}),uc=r=>r.type==="textord"&&r.text==="@",Cp=(r,n)=>(r.type==="mathord"||r.type==="atom")&&r.text===n;function Rp(r,n,i){const l=Tp[r];switch(l){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(l,[n[0]],[n[1]]);case"\\uparrow":case"\\downarrow":{const d=i.callFunction("\\\\cdleft",[n[0]],[]),E={type:"atom",text:l,mode:"math",family:"rel"},f=i.callFunction("\\Big",[E],[]),T=i.callFunction("\\\\cdright",[n[1]],[]),y={type:"ordgroup",mode:"math",body:[d,f,T]};return i.callFunction("\\\\cdparent",[y],[])}case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const d={type:"textord",text:"\\Vert",mode:"math"};return i.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Np(r){const n=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){n.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();const E=r.fetch().text;if(E==="&"||E==="\\\\")r.consume();else if(E==="\\end"){n[n.length-1].length===0&&n.pop();break}else throw new s("Expected \\\\ or \\cr or \\end",r.nextToken)}let i=[];const l=[i];for(let E=0;E-1))if("<>AV".indexOf(D)>-1)for(let K=0;K<2;K++){let le=!0;for(let me=y+1;meAV=|." after @',f[y]);const U={type:"styling",body:[Rp(D,k,r)],mode:"math",style:"display"};i.push(U),T=cc()}E%2===0?i.push(T):i.shift(),i=[],l.push(i)}r.gullet.endGroup(),r.gullet.endGroup();const d=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:d,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}ie({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,n){let{parser:i,funcName:l}=r;return{type:"cdlabel",mode:i.mode,side:l.slice(4),label:n[0]}},htmlBuilder(r,n){const i=n.havingStyle(n.style.sup()),l=B.wrapFragment(Ue(r.label,i,n),n);return l.classes.push("cd-label-"+r.side),l.style.bottom=X(.8-l.depth),l.height=0,l.depth=0,l},mathmlBuilder(r,n){let i=new Z.MathNode("mrow",[Ke(r.label,n)]);return i=new Z.MathNode("mpadded",[i]),i.setAttribute("width","0"),r.side==="left"&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),i=new Z.MathNode("mstyle",[i]),i.setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),ie({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,n){let{parser:i}=r;return{type:"cdlabelparent",mode:i.mode,fragment:n[0]}},htmlBuilder(r,n){const i=B.wrapFragment(Ue(r.fragment,n),n);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder(r,n){return new Z.MathNode("mrow",[Ke(r.fragment,n)])}}),ie({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,n){let{parser:i}=r;const d=De(n[0],"ordgroup").body;let E="";for(let y=0;y=1114111)throw new s("\\@char with invalid code point "+E);return f<=65535?T=String.fromCharCode(f):(f-=65536,T=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:i.mode,text:T}}});const dc=(r,n)=>{const i=_t(r.body,n.withColor(r.color),!1);return B.makeFragment(i)},_c=(r,n)=>{const i=Lt(r.body,n.withColor(r.color)),l=new Z.MathNode("mstyle",i);return l.setAttribute("mathcolor",r.color),l};ie({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,n){let{parser:i}=r;const l=De(n[0],"color-token").color,d=n[1];return{type:"color",mode:i.mode,color:l,body:ct(d)}},htmlBuilder:dc,mathmlBuilder:_c}),ie({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,n){let{parser:i,breakOnTokenText:l}=r;const d=De(n[0],"color-token").color;i.gullet.macros.set("\\current@color",d);const E=i.parseExpression(!0,l);return{type:"color",mode:i.mode,color:d,body:E}},htmlBuilder:dc,mathmlBuilder:_c}),ie({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,n,i){let{parser:l}=r;const d=l.gullet.future().text==="["?l.parseSizeGroup(!0):null,E=!l.settings.displayMode||!l.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:l.mode,newLine:E,size:d&&De(d,"size").value}},htmlBuilder(r,n){const i=B.makeSpan(["mspace"],[],n);return r.newLine&&(i.classes.push("newline"),r.size&&(i.style.marginTop=X(oe(r.size,n)))),i},mathmlBuilder(r,n){const i=new Z.MathNode("mspace");return r.newLine&&(i.setAttribute("linebreak","newline"),r.size&&i.setAttribute("height",X(oe(r.size,n)))),i}});const Na={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},mc=r=>{const n=r.text;if(/^(?:[\\{}$^_]|EOF)$/.test(n))throw new s("Expected a control sequence",r);return n},Op=r=>{let n=r.gullet.popToken();return n.text==="="&&(n=r.gullet.popToken(),n.text===" "&&(n=r.gullet.popToken())),n},pc=(r,n,i,l)=>{let d=r.gullet.macros.get(i.text);d==null&&(i.noexpand=!0,d={tokens:[i],numArgs:0,unexpandable:!r.gullet.isExpandable(i.text)}),r.gullet.macros.set(n,d,l)};ie({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){let{parser:n,funcName:i}=r;n.consumeSpaces();const l=n.fetch();if(Na[l.text])return(i==="\\global"||i==="\\\\globallong")&&(l.text=Na[l.text]),De(n.parseFunction(),"internal");throw new s("Invalid token after macro prefix",l)}}),ie({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){let{parser:n,funcName:i}=r,l=n.gullet.popToken();const d=l.text;if(/^(?:[\\{}$^_]|EOF)$/.test(d))throw new s("Expected a control sequence",l);let E=0,f;const T=[[]];for(;n.gullet.future().text!=="{";)if(l=n.gullet.popToken(),l.text==="#"){if(n.gullet.future().text==="{"){f=n.gullet.future(),T[E].push("{");break}if(l=n.gullet.popToken(),!/^[1-9]$/.test(l.text))throw new s('Invalid argument number "'+l.text+'"');if(parseInt(l.text)!==E+1)throw new s('Argument number "'+l.text+'" out of order');E++,T.push([])}else{if(l.text==="EOF")throw new s("Expected a macro definition");T[E].push(l.text)}let{tokens:y}=n.gullet.consumeArg();return f&&y.unshift(f),(i==="\\edef"||i==="\\xdef")&&(y=n.gullet.expandTokens(y),y.reverse()),n.gullet.macros.set(d,{tokens:y,numArgs:E,delimiters:T},i===Na[i]),{type:"internal",mode:n.mode}}}),ie({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){let{parser:n,funcName:i}=r;const l=mc(n.gullet.popToken());n.gullet.consumeSpaces();const d=Op(n);return pc(n,l,d,i==="\\\\globallet"),{type:"internal",mode:n.mode}}}),ie({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){let{parser:n,funcName:i}=r;const l=mc(n.gullet.popToken()),d=n.gullet.popToken(),E=n.gullet.popToken();return pc(n,l,E,i==="\\\\globalfuture"),n.gullet.pushToken(E),n.gullet.pushToken(d),{type:"internal",mode:n.mode}}});const or=function(r,n,i){const l=tt.math[r]&&tt.math[r].replace,d=xt(l||r,n,i);if(!d)throw new Error("Unsupported symbol "+r+" and font size "+n+".");return d},Oa=function(r,n,i,l){const d=i.havingBaseStyle(n),E=B.makeSpan(l.concat(d.sizingClasses(i)),[r],i),f=d.sizeMultiplier/i.sizeMultiplier;return E.height*=f,E.depth*=f,E.maxFontSize=d.sizeMultiplier,E},gc=function(r,n,i){const l=n.havingBaseStyle(i),d=(1-n.sizeMultiplier/l.sizeMultiplier)*n.fontMetrics().axisHeight;r.classes.push("delimcenter"),r.style.top=X(d),r.height-=d,r.depth+=d},yp=function(r,n,i,l,d,E){const f=B.makeSymbol(r,"Main-Regular",d,l),T=Oa(f,n,l,E);return i&&gc(T,l,n),T},Ap=function(r,n,i,l){return B.makeSymbol(r,"Size"+n+"-Regular",i,l)},Ec=function(r,n,i,l,d,E){const f=Ap(r,n,d,l),T=Oa(B.makeSpan(["delimsizing","size"+n],[f],l),J.TEXT,l,E);return i&&gc(T,l,J.TEXT),T},ya=function(r,n,i){let l;return n==="Size1-Regular"?l="delim-size1":l="delim-size4",{type:"elem",elem:B.makeSpan(["delimsizinginner",l],[B.makeSpan([],[B.makeSymbol(r,n,i)])])}},Aa=function(r,n,i){const l=_e["Size4-Regular"][r.charCodeAt(0)]?_e["Size4-Regular"][r.charCodeAt(0)][4]:_e["Size1-Regular"][r.charCodeAt(0)][4],d=new en("inner",Dt(r,Math.round(1e3*n))),E=new Xt([d],{width:X(l),height:X(n),style:"width:"+X(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),f=B.makeSvgSpan([],[E],i);return f.height=n,f.style.height=X(n),f.style.width=X(l),{type:"elem",elem:f}},va=.008,Mr={type:"kern",size:-1*va},vp=["|","\\lvert","\\rvert","\\vert"],Ip=["\\|","\\lVert","\\rVert","\\Vert"],Sc=function(r,n,i,l,d,E){let f,T,y,D,k="",F=0;f=y=D=r,T=null;let U="Size1-Regular";r==="\\uparrow"?y=D="⏐":r==="\\Uparrow"?y=D="‖":r==="\\downarrow"?f=y="⏐":r==="\\Downarrow"?f=y="‖":r==="\\updownarrow"?(f="\\uparrow",y="⏐",D="\\downarrow"):r==="\\Updownarrow"?(f="\\Uparrow",y="‖",D="\\Downarrow"):x.contains(vp,r)?(y="∣",k="vert",F=333):x.contains(Ip,r)?(y="∥",k="doublevert",F=556):r==="["||r==="\\lbrack"?(f="⎡",y="⎢",D="⎣",U="Size4-Regular",k="lbrack",F=667):r==="]"||r==="\\rbrack"?(f="⎤",y="⎥",D="⎦",U="Size4-Regular",k="rbrack",F=667):r==="\\lfloor"||r==="⌊"?(y=f="⎢",D="⎣",U="Size4-Regular",k="lfloor",F=667):r==="\\lceil"||r==="⌈"?(f="⎡",y=D="⎢",U="Size4-Regular",k="lceil",F=667):r==="\\rfloor"||r==="⌋"?(y=f="⎥",D="⎦",U="Size4-Regular",k="rfloor",F=667):r==="\\rceil"||r==="⌉"?(f="⎤",y=D="⎥",U="Size4-Regular",k="rceil",F=667):r==="("||r==="\\lparen"?(f="⎛",y="⎜",D="⎝",U="Size4-Regular",k="lparen",F=875):r===")"||r==="\\rparen"?(f="⎞",y="⎟",D="⎠",U="Size4-Regular",k="rparen",F=875):r==="\\{"||r==="\\lbrace"?(f="⎧",T="⎨",D="⎩",y="⎪",U="Size4-Regular"):r==="\\}"||r==="\\rbrace"?(f="⎫",T="⎬",D="⎭",y="⎪",U="Size4-Regular"):r==="\\lgroup"||r==="⟮"?(f="⎧",D="⎩",y="⎪",U="Size4-Regular"):r==="\\rgroup"||r==="⟯"?(f="⎫",D="⎭",y="⎪",U="Size4-Regular"):r==="\\lmoustache"||r==="⎰"?(f="⎧",D="⎭",y="⎪",U="Size4-Regular"):(r==="\\rmoustache"||r==="⎱")&&(f="⎫",D="⎩",y="⎪",U="Size4-Regular");const K=or(f,U,d),le=K.height+K.depth,me=or(y,U,d),Le=me.height+me.depth,Me=or(D,U,d),ke=Me.height+Me.depth;let qe=0,Je=1;if(T!==null){const ut=or(T,U,d);qe=ut.height+ut.depth,Je=2}const vt=le+ke+qe,mt=Math.max(0,Math.ceil((n-vt)/(Je*Le))),$t=vt+mt*Je*Le;let zn=l.fontMetrics().axisHeight;i&&(zn*=l.sizeMultiplier);const Ge=$t/2-zn,We=[];if(k.length>0){const ut=$t-le-ke,ot=Math.round($t*1e3),Kt=Gt(k,Math.round(ut*1e3)),tg=new en(k,Kt),su=(F/1e3).toFixed(3)+"em",lu=(ot/1e3).toFixed(3)+"em",ng=new Xt([tg],{width:su,height:lu,viewBox:"0 0 "+F+" "+ot}),Fr=B.makeSvgSpan([],[ng],l);Fr.height=ot/1e3,Fr.style.width=su,Fr.style.height=lu,We.push({type:"elem",elem:Fr})}else{if(We.push(ya(D,U,d)),We.push(Mr),T===null){const ut=$t-le-ke+2*va;We.push(Aa(y,ut,l))}else{const ut=($t-le-ke-qe)/2+2*va;We.push(Aa(y,ut,l)),We.push(Mr),We.push(ya(T,U,d)),We.push(Mr),We.push(Aa(y,ut,l))}We.push(Mr),We.push(ya(f,U,d))}const nt=l.havingBaseStyle(J.TEXT),it=B.makeVList({positionType:"bottom",positionData:Ge,children:We},nt);return Oa(B.makeSpan(["delimsizing","mult"],[it],nt),J.TEXT,l,E)},Ia=80,Da=.08,xa=function(r,n,i,l,d){const E=Nt(r,l,i),f=new en(r,E),T=new Xt([f],{width:"400em",height:X(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return B.makeSvgSpan(["hide-tail"],[T],d)},Dp=function(r,n){const i=n.havingBaseSizing(),l=Tc("\\surd",r*i.sizeMultiplier,hc,i);let d=i.sizeMultiplier;const E=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness);let f,T=0,y=0,D=0,k;return l.type==="small"?(D=1e3+1e3*E+Ia,r<1?d=1:r<1.4&&(d=.7),T=(1+E+Da)/d,y=(1+E)/d,f=xa("sqrtMain",T,D,E,n),f.style.minWidth="0.853em",k=.833/d):l.type==="large"?(D=(1e3+Ia)*sr[l.size],y=(sr[l.size]+E)/d,T=(sr[l.size]+E+Da)/d,f=xa("sqrtSize"+l.size,T,D,E,n),f.style.minWidth="1.02em",k=1/d):(T=r+E+Da,y=r+E,D=Math.floor(1e3*r+E)+Ia,f=xa("sqrtTall",T,D,E,n),f.style.minWidth="0.742em",k=1.056),f.height=y,f.style.height=X(T),{span:f,advanceWidth:k,ruleWidth:(n.fontMetrics().sqrtRuleThickness+E)*d}},fc=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],xp=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],bc=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],sr=[0,1.2,1.8,2.4,3],Mp=function(r,n,i,l,d){if(r==="<"||r==="\\lt"||r==="⟨"?r="\\langle":(r===">"||r==="\\gt"||r==="⟩")&&(r="\\rangle"),x.contains(fc,r)||x.contains(bc,r))return Ec(r,n,!1,i,l,d);if(x.contains(xp,r))return Sc(r,sr[n],!1,i,l,d);throw new s("Illegal delimiter: '"+r+"'")},wp=[{type:"small",style:J.SCRIPTSCRIPT},{type:"small",style:J.SCRIPT},{type:"small",style:J.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Lp=[{type:"small",style:J.SCRIPTSCRIPT},{type:"small",style:J.SCRIPT},{type:"small",style:J.TEXT},{type:"stack"}],hc=[{type:"small",style:J.SCRIPTSCRIPT},{type:"small",style:J.SCRIPT},{type:"small",style:J.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],kp=function(r){if(r.type==="small")return"Main-Regular";if(r.type==="large")return"Size"+r.size+"-Regular";if(r.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+r.type+"' here.")},Tc=function(r,n,i,l){const d=Math.min(2,3-l.style.size);for(let E=d;En)return i[E]}return i[i.length-1]},Cc=function(r,n,i,l,d,E){r==="<"||r==="\\lt"||r==="⟨"?r="\\langle":(r===">"||r==="\\gt"||r==="⟩")&&(r="\\rangle");let f;x.contains(bc,r)?f=wp:x.contains(fc,r)?f=hc:f=Lp;const T=Tc(r,n,f,l);return T.type==="small"?yp(r,T.style,i,l,d,E):T.type==="large"?Ec(r,T.size,i,l,d,E):Sc(r,n,i,l,d,E)};var Sn={sqrtImage:Dp,sizedDelim:Mp,sizeToMaxHeight:sr,customSizedDelim:Cc,leftRightDelim:function(r,n,i,l,d,E){const f=l.fontMetrics().axisHeight*l.sizeMultiplier,T=901,y=5/l.fontMetrics().ptPerEm,D=Math.max(n-f,i+f),k=Math.max(D/500*T,2*D-y);return Cc(r,k,!0,l,d,E)}};const Rc={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Pp=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function wr(r,n){const i=Ir(r);if(i&&x.contains(Pp,i.text))return i;throw i?new s("Invalid delimiter '"+i.text+"' after '"+n.funcName+"'",r):new s("Invalid delimiter type '"+r.type+"'",r)}ie({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,n)=>{const i=wr(n[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Rc[r.funcName].size,mclass:Rc[r.funcName].mclass,delim:i.text}},htmlBuilder:(r,n)=>r.delim==="."?B.makeSpan([r.mclass]):Sn.sizedDelim(r.delim,r.size,n,r.mode,[r.mclass]),mathmlBuilder:r=>{const n=[];r.delim!=="."&&n.push(Vt(r.delim,r.mode));const i=new Z.MathNode("mo",n);r.mclass==="mopen"||r.mclass==="mclose"?i.setAttribute("fence","true"):i.setAttribute("fence","false"),i.setAttribute("stretchy","true");const l=X(Sn.sizeToMaxHeight[r.size]);return i.setAttribute("minsize",l),i.setAttribute("maxsize",l),i}});function Nc(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ie({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,n)=>{const i=r.parser.gullet.macros.get("\\current@color");if(i&&typeof i!="string")throw new s("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:wr(n[0],r).text,color:i}}}),ie({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,n)=>{const i=wr(n[0],r),l=r.parser;++l.leftrightDepth;const d=l.parseExpression(!1);--l.leftrightDepth,l.expect("\\right",!1);const E=De(l.parseFunction(),"leftright-right");return{type:"leftright",mode:l.mode,body:d,left:i.text,right:E.delim,rightColor:E.color}},htmlBuilder:(r,n)=>{Nc(r);const i=_t(r.body,n,!0,["mopen","mclose"]);let l=0,d=0,E=!1;for(let y=0;y{Nc(r);const i=Lt(r.body,n);if(r.left!=="."){const l=new Z.MathNode("mo",[Vt(r.left,r.mode)]);l.setAttribute("fence","true"),i.unshift(l)}if(r.right!=="."){const l=new Z.MathNode("mo",[Vt(r.right,r.mode)]);l.setAttribute("fence","true"),r.rightColor&&l.setAttribute("mathcolor",r.rightColor),i.push(l)}return ha(i)}}),ie({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,n)=>{const i=wr(n[0],r);if(!r.parser.leftrightDepth)throw new s("\\middle without preceding \\left",i);return{type:"middle",mode:r.parser.mode,delim:i.text}},htmlBuilder:(r,n)=>{let i;if(r.delim===".")i=ar(n,[]);else{i=Sn.sizedDelim(r.delim,1,n,r.mode,[]);const l={delim:r.delim,options:n};i.isMiddle=l}return i},mathmlBuilder:(r,n)=>{const i=r.delim==="\\vert"||r.delim==="|"?Vt("|","text"):Vt(r.delim,r.mode),l=new Z.MathNode("mo",[i]);return l.setAttribute("fence","true"),l.setAttribute("lspace","0.05em"),l.setAttribute("rspace","0.05em"),l}});const Ma=(r,n)=>{const i=B.wrapFragment(Ue(r.body,n),n),l=r.label.slice(1);let d=n.sizeMultiplier,E,f=0;const T=x.isCharacterBox(r.body);if(l==="sout")E=B.makeSpan(["stretchy","sout"]),E.height=n.fontMetrics().defaultRuleThickness/d,f=-.5*n.fontMetrics().xHeight;else if(l==="phase"){const D=oe({number:.6,unit:"pt"},n),k=oe({number:.35,unit:"ex"},n),F=n.havingBaseSizing();d=d/F.sizeMultiplier;const U=i.height+i.depth+D+k;i.style.paddingLeft=X(U/2+D);const K=Math.floor(1e3*U*d),le=st(K),me=new Xt([new en("phase",le)],{width:"400em",height:X(K/1e3),viewBox:"0 0 400000 "+K,preserveAspectRatio:"xMinYMin slice"});E=B.makeSvgSpan(["hide-tail"],[me],n),E.style.height=X(U),f=i.depth+D+k}else{/cancel/.test(l)?T||i.classes.push("cancel-pad"):l==="angl"?i.classes.push("anglpad"):i.classes.push("boxpad");let D=0,k=0,F=0;/box/.test(l)?(F=Math.max(n.fontMetrics().fboxrule,n.minRuleThickness),D=n.fontMetrics().fboxsep+(l==="colorbox"?0:F),k=D):l==="angl"?(F=Math.max(n.fontMetrics().defaultRuleThickness,n.minRuleThickness),D=4*F,k=Math.max(0,.25-i.depth)):(D=T?.2:0,k=D),E=En.encloseSpan(i,l,D,k,n),/fbox|boxed|fcolorbox/.test(l)?(E.style.borderStyle="solid",E.style.borderWidth=X(F)):l==="angl"&&F!==.049&&(E.style.borderTopWidth=X(F),E.style.borderRightWidth=X(F)),f=i.depth+k,r.backgroundColor&&(E.style.backgroundColor=r.backgroundColor,r.borderColor&&(E.style.borderColor=r.borderColor))}let y;if(r.backgroundColor)y=B.makeVList({positionType:"individualShift",children:[{type:"elem",elem:E,shift:f},{type:"elem",elem:i,shift:0}]},n);else{const D=/cancel|phase/.test(l)?["svg-align"]:[];y=B.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:E,shift:f,wrapperClasses:D}]},n)}return/cancel/.test(l)&&(y.height=i.height,y.depth=i.depth),/cancel/.test(l)&&!T?B.makeSpan(["mord","cancel-lap"],[y],n):B.makeSpan(["mord"],[y],n)},wa=(r,n)=>{let i=0;const l=new Z.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ke(r.body,n)]);switch(r.label){case"\\cancel":l.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":l.setAttribute("notation","downdiagonalstrike");break;case"\\phase":l.setAttribute("notation","phasorangle");break;case"\\sout":l.setAttribute("notation","horizontalstrike");break;case"\\fbox":l.setAttribute("notation","box");break;case"\\angl":l.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=n.fontMetrics().fboxsep*n.fontMetrics().ptPerEm,l.setAttribute("width","+"+2*i+"pt"),l.setAttribute("height","+"+2*i+"pt"),l.setAttribute("lspace",i+"pt"),l.setAttribute("voffset",i+"pt"),r.label==="\\fcolorbox"){const d=Math.max(n.fontMetrics().fboxrule,n.minRuleThickness);l.setAttribute("style","border: "+d+"em solid "+String(r.borderColor))}break;case"\\xcancel":l.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&l.setAttribute("mathbackground",r.backgroundColor),l};ie({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,n,i){let{parser:l,funcName:d}=r;const E=De(n[0],"color-token").color,f=n[1];return{type:"enclose",mode:l.mode,label:d,backgroundColor:E,body:f}},htmlBuilder:Ma,mathmlBuilder:wa}),ie({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,n,i){let{parser:l,funcName:d}=r;const E=De(n[0],"color-token").color,f=De(n[1],"color-token").color,T=n[2];return{type:"enclose",mode:l.mode,label:d,backgroundColor:f,borderColor:E,body:T}},htmlBuilder:Ma,mathmlBuilder:wa}),ie({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,n){let{parser:i}=r;return{type:"enclose",mode:i.mode,label:"\\fbox",body:n[0]}}}),ie({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,n){let{parser:i,funcName:l}=r;const d=n[0];return{type:"enclose",mode:i.mode,label:l,body:d}},htmlBuilder:Ma,mathmlBuilder:wa}),ie({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,n){let{parser:i}=r;return{type:"enclose",mode:i.mode,label:"\\angl",body:n[0]}}});const Oc={};function an(r){let{type:n,names:i,props:l,handler:d,htmlBuilder:E,mathmlBuilder:f}=r;const T={type:n,numArgs:l.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:d};for(let y=0;y{if(!r.parser.settings.displayMode)throw new s("{"+r.envName+"} can be used only in display mode.")};function La(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function Rn(r,n,i){let{hskipBeforeAndAfter:l,addJot:d,cols:E,arraystretch:f,colSeparationType:T,autoTag:y,singleRow:D,emptySingleRow:k,maxNumCols:F,leqno:U}=n;if(r.gullet.beginGroup(),D||r.gullet.macros.set("\\cr","\\\\\\relax"),!f){const Je=r.gullet.expandMacroAsText("\\arraystretch");if(Je==null)f=1;else if(f=parseFloat(Je),!f||f<0)throw new s("Invalid \\arraystretch: "+Je)}r.gullet.beginGroup();let K=[];const le=[K],me=[],Le=[],Me=y!=null?[]:void 0;function ke(){y&&r.gullet.macros.set("\\@eqnsw","1",!0)}function qe(){Me&&(r.gullet.macros.get("\\df@tag")?(Me.push(r.subparse([new Wt("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):Me.push(!!y&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(ke(),Le.push(Ac(r));;){let Je=r.parseExpression(!1,D?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),Je={type:"ordgroup",mode:r.mode,body:Je},i&&(Je={type:"styling",mode:r.mode,style:i,body:[Je]}),K.push(Je);const vt=r.fetch().text;if(vt==="&"){if(F&&K.length===F){if(D||T)throw new s("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(vt==="\\end"){qe(),K.length===1&&Je.type==="styling"&&Je.body[0].body.length===0&&(le.length>1||!k)&&le.pop(),Le.length0&&(Me+=.25),y.push({pos:Me,isDashed:Ge[We]})}for(ke(E[0]),i=0;i0&&(ot+=Le,ntGe))for(i=0;i=f)continue;let nt;(l>0||r.hskipBeforeAndAfter)&&(nt=x.deflt(Ge.pregap,F),nt!==0&&(mt=B.makeSpan(["arraycolsep"],[]),mt.style.width=X(nt),vt.push(mt)));let it=[];for(i=0;i0){const Ge=B.makeLineSpan("hline",n,D),We=B.makeLineSpan("hdashline",n,D),nt=[{type:"elem",elem:T,shift:0}];for(;y.length>0;){const it=y.pop(),ut=it.pos-qe;it.isDashed?nt.push({type:"elem",elem:We,shift:ut}):nt.push({type:"elem",elem:Ge,shift:ut})}T=B.makeVList({positionType:"individualShift",children:nt},n)}if(zn.length===0)return B.makeSpan(["mord"],[T],n);{let Ge=B.makeVList({positionType:"individualShift",children:zn},n);return Ge=B.makeSpan(["tag"],[Ge],n),B.makeFragment([T,Ge])}},Fp={c:"center ",l:"left ",r:"right "},sn=function(r,n){const i=[],l=new Z.MathNode("mtd",[],["mtr-glue"]),d=new Z.MathNode("mtd",[],["mml-eqn-num"]);for(let F=0;F0){const F=r.cols;let U="",K=!1,le=0,me=F.length;F[0].type==="separator"&&(T+="top ",le=1),F[F.length-1].type==="separator"&&(T+="bottom ",me-=1);for(let Le=le;Le0?"left ":"",T+=k[k.length-1].length>0?"right ":"";for(let F=1;F-1?"alignat":"align",d=r.envName==="split",E=Rn(r.parser,{cols:i,addJot:!0,autoTag:d?void 0:La(r.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:d?2:void 0,leqno:r.parser.settings.leqno},"display");let f,T=0;const y={type:"ordgroup",mode:r.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){let k="";for(let F=0;F0&&D&&(U=1),i[k]={type:"align",align:F,pregap:U,postgap:0}}return E.colSeparationType=D?"align":"alignat",E};an({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,n){const d=(Ir(n[0])?[n[0]]:De(n[0],"ordgroup").body).map(function(f){const y=Ca(f).text;if("lcr".indexOf(y)!==-1)return{type:"align",align:y};if(y==="|")return{type:"separator",separator:"|"};if(y===":")return{type:"separator",separator:":"};throw new s("Unknown column alignment: "+y,f)}),E={cols:d,hskipBeforeAndAfter:!0,maxNumCols:d.length};return Rn(r.parser,E,ka(r.envName))},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){const n={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")];let i="c";const l={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if(r.envName.charAt(r.envName.length-1)==="*"){const f=r.parser;if(f.consumeSpaces(),f.fetch().text==="["){if(f.consume(),f.consumeSpaces(),i=f.fetch().text,"lcr".indexOf(i)===-1)throw new s("Expected l or c or r",f.nextToken);f.consume(),f.consumeSpaces(),f.expect("]"),f.consume(),l.cols=[{type:"align",align:i}]}}const d=Rn(r.parser,l,ka(r.envName)),E=Math.max(0,...d.body.map(f=>f.length));return d.cols=new Array(E).fill({type:"align",align:i}),n?{type:"leftright",mode:r.mode,body:[d],left:n[0],right:n[1],rightColor:void 0}:d},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){const n={arraystretch:.5},i=Rn(r.parser,n,"script");return i.colSeparationType="small",i},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["subarray"],props:{numArgs:1},handler(r,n){const d=(Ir(n[0])?[n[0]]:De(n[0],"ordgroup").body).map(function(f){const y=Ca(f).text;if("lc".indexOf(y)!==-1)return{type:"align",align:y};throw new s("Unknown column alignment: "+y,f)});if(d.length>1)throw new s("{subarray} can contain only one column");let E={cols:d,hskipBeforeAndAfter:!1,arraystretch:.5};if(E=Rn(r.parser,E,"script"),E.body.length>0&&E.body[0].length>1)throw new s("{subarray} can contain only one column");return E},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){const n={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},i=Rn(r.parser,n,ka(r.envName));return{type:"leftright",mode:r.mode,body:[i],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:vc,htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){x.contains(["gather","gather*"],r.envName)&&Lr(r);const n={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:La(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Rn(r.parser,n,"display")},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:vc,htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Lr(r);const n={autoTag:La(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Rn(r.parser,n,"display")},htmlBuilder:on,mathmlBuilder:sn}),an({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Lr(r),Np(r.parser)},htmlBuilder:on,mathmlBuilder:sn}),R("\\nonumber","\\gdef\\@eqnsw{0}"),R("\\notag","\\nonumber"),ie({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,n){throw new s(r.funcName+" valid only within array environment")}});var Ic=Oc;ie({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,n){let{parser:i,funcName:l}=r;const d=n[0];if(d.type!=="ordgroup")throw new s("Invalid environment name",d);let E="";for(let f=0;f{const i=r.font,l=n.withFont(i);return Ue(r.body,l)},xc=(r,n)=>{const i=r.font,l=n.withFont(i);return Ke(r.body,l)},Mc={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ie({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,n)=>{let{parser:i,funcName:l}=r;const d=xn(n[0]);let E=l;return E in Mc&&(E=Mc[E]),{type:"font",mode:i.mode,font:E.slice(1),body:d}},htmlBuilder:Dc,mathmlBuilder:xc}),ie({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,n)=>{let{parser:i}=r;const l=n[0],d=x.isCharacterBox(l);return{type:"mclass",mode:i.mode,mclass:xr(l),body:[{type:"font",mode:i.mode,font:"boldsymbol",body:l}],isCharacterBox:d}}}),ie({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,n)=>{let{parser:i,funcName:l,breakOnTokenText:d}=r;const{mode:E}=i,f=i.parseExpression(!0,d),T="math"+l.slice(1);return{type:"font",mode:E,font:T,body:{type:"ordgroup",mode:i.mode,body:f}}},htmlBuilder:Dc,mathmlBuilder:xc});const wc=(r,n)=>{let i=n;return r==="display"?i=i.id>=J.SCRIPT.id?i.text():J.DISPLAY:r==="text"&&i.size===J.DISPLAY.size?i=J.TEXT:r==="script"?i=J.SCRIPT:r==="scriptscript"&&(i=J.SCRIPTSCRIPT),i},Pa=(r,n)=>{const i=wc(r.size,n.style),l=i.fracNum(),d=i.fracDen();let E;E=n.havingStyle(l);const f=Ue(r.numer,E,n);if(r.continued){const ke=8.5/n.fontMetrics().ptPerEm,qe=3.5/n.fontMetrics().ptPerEm;f.height=f.height0?U=3*k:U=7*k,K=n.fontMetrics().denom1):(D>0?(F=n.fontMetrics().num2,U=k):(F=n.fontMetrics().num3,U=3*k),K=n.fontMetrics().denom2);let le;if(y){const ke=n.fontMetrics().axisHeight;F-f.depth-(ke+.5*D){let i=new Z.MathNode("mfrac",[Ke(r.numer,n),Ke(r.denom,n)]);if(!r.hasBarLine)i.setAttribute("linethickness","0px");else if(r.barSize){const d=oe(r.barSize,n);i.setAttribute("linethickness",X(d))}const l=wc(r.size,n.style);if(l.size!==n.style.size){i=new Z.MathNode("mstyle",[i]);const d=l.size===J.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",d),i.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){const d=[];if(r.leftDelim!=null){const E=new Z.MathNode("mo",[new Z.TextNode(r.leftDelim.replace("\\",""))]);E.setAttribute("fence","true"),d.push(E)}if(d.push(i),r.rightDelim!=null){const E=new Z.MathNode("mo",[new Z.TextNode(r.rightDelim.replace("\\",""))]);E.setAttribute("fence","true"),d.push(E)}return ha(d)}return i};ie({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,n)=>{let{parser:i,funcName:l}=r;const d=n[0],E=n[1];let f,T=null,y=null,D="auto";switch(l){case"\\dfrac":case"\\frac":case"\\tfrac":f=!0;break;case"\\\\atopfrac":f=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":f=!1,T="(",y=")";break;case"\\\\bracefrac":f=!1,T="\\{",y="\\}";break;case"\\\\brackfrac":f=!1,T="[",y="]";break;default:throw new Error("Unrecognized genfrac command")}switch(l){case"\\dfrac":case"\\dbinom":D="display";break;case"\\tfrac":case"\\tbinom":D="text";break}return{type:"genfrac",mode:i.mode,continued:!1,numer:d,denom:E,hasBarLine:f,leftDelim:T,rightDelim:y,size:D,barSize:null}},htmlBuilder:Pa,mathmlBuilder:Fa}),ie({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,n)=>{let{parser:i,funcName:l}=r;const d=n[0],E=n[1];return{type:"genfrac",mode:i.mode,continued:!0,numer:d,denom:E,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),ie({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){let{parser:n,funcName:i,token:l}=r,d;switch(i){case"\\over":d="\\frac";break;case"\\choose":d="\\binom";break;case"\\atop":d="\\\\atopfrac";break;case"\\brace":d="\\\\bracefrac";break;case"\\brack":d="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:d,token:l}}});const Lc=["display","text","script","scriptscript"],kc=function(r){let n=null;return r.length>0&&(n=r,n=n==="."?null:n),n};ie({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,n){let{parser:i}=r;const l=n[4],d=n[5],E=xn(n[0]),f=E.type==="atom"&&E.family==="open"?kc(E.text):null,T=xn(n[1]),y=T.type==="atom"&&T.family==="close"?kc(T.text):null,D=De(n[2],"size");let k,F=null;D.isBlank?k=!0:(F=D.value,k=F.number>0);let U="auto",K=n[3];if(K.type==="ordgroup"){if(K.body.length>0){const le=De(K.body[0],"textord");U=Lc[Number(le.text)]}}else K=De(K,"textord"),U=Lc[Number(K.text)];return{type:"genfrac",mode:i.mode,numer:l,denom:d,continued:!1,hasBarLine:k,barSize:F,leftDelim:f,rightDelim:y,size:U}},htmlBuilder:Pa,mathmlBuilder:Fa}),ie({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,n){let{parser:i,funcName:l,token:d}=r;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:De(n[0],"size").value,token:d}}}),ie({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,n)=>{let{parser:i,funcName:l}=r;const d=n[0],E=L(De(n[1],"infix").size),f=n[2],T=E.number>0;return{type:"genfrac",mode:i.mode,numer:d,denom:f,continued:!1,hasBarLine:T,barSize:E,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Pa,mathmlBuilder:Fa});const Pc=(r,n)=>{const i=n.style;let l,d;r.type==="supsub"?(l=r.sup?Ue(r.sup,n.havingStyle(i.sup()),n):Ue(r.sub,n.havingStyle(i.sub()),n),d=De(r.base,"horizBrace")):d=De(r,"horizBrace");const E=Ue(d.base,n.havingBaseStyle(J.DISPLAY)),f=En.svgSpan(d,n);let T;if(d.isOver?(T=B.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"kern",size:.1},{type:"elem",elem:f}]},n),T.children[0].children[0].children[1].classes.push("svg-align")):(T=B.makeVList({positionType:"bottom",positionData:E.depth+.1+f.height,children:[{type:"elem",elem:f},{type:"kern",size:.1},{type:"elem",elem:E}]},n),T.children[0].children[0].children[0].classes.push("svg-align")),l){const y=B.makeSpan(["mord",d.isOver?"mover":"munder"],[T],n);d.isOver?T=B.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:y},{type:"kern",size:.2},{type:"elem",elem:l}]},n):T=B.makeVList({positionType:"bottom",positionData:y.depth+.2+l.height+l.depth,children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:y}]},n)}return B.makeSpan(["mord",d.isOver?"mover":"munder"],[T],n)};ie({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,n){let{parser:i,funcName:l}=r;return{type:"horizBrace",mode:i.mode,label:l,isOver:/^\\over/.test(l),base:n[0]}},htmlBuilder:Pc,mathmlBuilder:(r,n)=>{const i=En.mathMLnode(r.label);return new Z.MathNode(r.isOver?"mover":"munder",[Ke(r.base,n),i])}}),ie({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,n)=>{let{parser:i}=r;const l=n[1],d=De(n[0],"url").url;return i.settings.isTrusted({command:"\\href",url:d})?{type:"href",mode:i.mode,href:d,body:ct(l)}:i.formatUnsupportedCmd("\\href")},htmlBuilder:(r,n)=>{const i=_t(r.body,n,!1);return B.makeAnchor(r.href,[],i,n)},mathmlBuilder:(r,n)=>{let i=Cn(r.body,n);return i instanceof Ht||(i=new Ht("mrow",[i])),i.setAttribute("href",r.href),i}}),ie({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,n)=>{let{parser:i}=r;const l=De(n[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:l}))return i.formatUnsupportedCmd("\\url");const d=[];for(let f=0;f{let{parser:i,funcName:l,token:d}=r;const E=De(n[0],"raw").string,f=n[1];i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let T;const y={};switch(l){case"\\htmlClass":y.class=E,T={command:"\\htmlClass",class:E};break;case"\\htmlId":y.id=E,T={command:"\\htmlId",id:E};break;case"\\htmlStyle":y.style=E,T={command:"\\htmlStyle",style:E};break;case"\\htmlData":{const D=E.split(",");for(let k=0;k{const i=_t(r.body,n,!1),l=["enclosing"];r.attributes.class&&l.push(...r.attributes.class.trim().split(/\s+/));const d=B.makeSpan(l,i,n);for(const E in r.attributes)E!=="class"&&r.attributes.hasOwnProperty(E)&&d.setAttribute(E,r.attributes[E]);return d},mathmlBuilder:(r,n)=>Cn(r.body,n)}),ie({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,n)=>{let{parser:i}=r;return{type:"htmlmathml",mode:i.mode,html:ct(n[0]),mathml:ct(n[1])}},htmlBuilder:(r,n)=>{const i=_t(r.html,n,!1);return B.makeFragment(i)},mathmlBuilder:(r,n)=>Cn(r.mathml,n)});const Ba=function(r){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(r))return{number:+r,unit:"bp"};{const n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r);if(!n)throw new s("Invalid size: '"+r+"' in \\includegraphics");const i={number:+(n[1]+n[2]),unit:n[3]};if(!Re(i))throw new s("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i}};ie({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,n,i)=>{let{parser:l}=r,d={number:0,unit:"em"},E={number:.9,unit:"em"},f={number:0,unit:"em"},T="";if(i[0]){const k=De(i[0],"raw").string.split(",");for(let F=0;F{const i=oe(r.height,n);let l=0;r.totalheight.number>0&&(l=oe(r.totalheight,n)-i);let d=0;r.width.number>0&&(d=oe(r.width,n));const E={height:X(i+l)};d>0&&(E.width=X(d)),l>0&&(E.verticalAlign=X(-l));const f=new bn(r.src,r.alt,E);return f.height=i,f.depth=l,f},mathmlBuilder:(r,n)=>{const i=new Z.MathNode("mglyph",[]);i.setAttribute("alt",r.alt);const l=oe(r.height,n);let d=0;if(r.totalheight.number>0&&(d=oe(r.totalheight,n)-l,i.setAttribute("valign",X(-d))),i.setAttribute("height",X(l+d)),r.width.number>0){const E=oe(r.width,n);i.setAttribute("width",X(E))}return i.setAttribute("src",r.src),i}}),ie({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,n){let{parser:i,funcName:l}=r;const d=De(n[0],"size");if(i.settings.strict){const E=l[1]==="m",f=d.value.unit==="mu";E?(f||i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" supports only mu units, "+("not "+d.value.unit+" units")),i.mode!=="math"&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" works only in math mode")):f&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" doesn't support mu units")}return{type:"kern",mode:i.mode,dimension:d.value}},htmlBuilder(r,n){return B.makeGlue(r.dimension,n)},mathmlBuilder(r,n){const i=oe(r.dimension,n);return new Z.SpaceNode(i)}}),ie({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,n)=>{let{parser:i,funcName:l}=r;const d=n[0];return{type:"lap",mode:i.mode,alignment:l.slice(5),body:d}},htmlBuilder:(r,n)=>{let i;r.alignment==="clap"?(i=B.makeSpan([],[Ue(r.body,n)]),i=B.makeSpan(["inner"],[i],n)):i=B.makeSpan(["inner"],[Ue(r.body,n)]);const l=B.makeSpan(["fix"],[]);let d=B.makeSpan([r.alignment],[i,l],n);const E=B.makeSpan(["strut"]);return E.style.height=X(d.height+d.depth),d.depth&&(E.style.verticalAlign=X(-d.depth)),d.children.unshift(E),d=B.makeSpan(["thinbox"],[d],n),B.makeSpan(["mord","vbox"],[d],n)},mathmlBuilder:(r,n)=>{const i=new Z.MathNode("mpadded",[Ke(r.body,n)]);if(r.alignment!=="rlap"){const l=r.alignment==="llap"?"-1":"-0.5";i.setAttribute("lspace",l+"width")}return i.setAttribute("width","0px"),i}}),ie({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,n){let{funcName:i,parser:l}=r;const d=l.mode;l.switchMode("math");const E=i==="\\("?"\\)":"$",f=l.parseExpression(!1,E);return l.expect(E),l.switchMode(d),{type:"styling",mode:l.mode,style:"text",body:f}}}),ie({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,n){throw new s("Mismatched "+r.funcName)}});const Fc=(r,n)=>{switch(n.style.size){case J.DISPLAY.size:return r.display;case J.TEXT.size:return r.text;case J.SCRIPT.size:return r.script;case J.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};ie({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,n)=>{let{parser:i}=r;return{type:"mathchoice",mode:i.mode,display:ct(n[0]),text:ct(n[1]),script:ct(n[2]),scriptscript:ct(n[3])}},htmlBuilder:(r,n)=>{const i=Fc(r,n),l=_t(i,n,!1);return B.makeFragment(l)},mathmlBuilder:(r,n)=>{const i=Fc(r,n);return Cn(i,n)}});const Bc=(r,n,i,l,d,E,f)=>{r=B.makeSpan([],[r]);const T=i&&x.isCharacterBox(i);let y,D;if(n){const U=Ue(n,l.havingStyle(d.sup()),l);D={elem:U,kern:Math.max(l.fontMetrics().bigOpSpacing1,l.fontMetrics().bigOpSpacing3-U.depth)}}if(i){const U=Ue(i,l.havingStyle(d.sub()),l);y={elem:U,kern:Math.max(l.fontMetrics().bigOpSpacing2,l.fontMetrics().bigOpSpacing4-U.height)}}let k;if(D&&y){const U=l.fontMetrics().bigOpSpacing5+y.elem.height+y.elem.depth+y.kern+r.depth+f;k=B.makeVList({positionType:"bottom",positionData:U,children:[{type:"kern",size:l.fontMetrics().bigOpSpacing5},{type:"elem",elem:y.elem,marginLeft:X(-E)},{type:"kern",size:y.kern},{type:"elem",elem:r},{type:"kern",size:D.kern},{type:"elem",elem:D.elem,marginLeft:X(E)},{type:"kern",size:l.fontMetrics().bigOpSpacing5}]},l)}else if(y){const U=r.height-f;k=B.makeVList({positionType:"top",positionData:U,children:[{type:"kern",size:l.fontMetrics().bigOpSpacing5},{type:"elem",elem:y.elem,marginLeft:X(-E)},{type:"kern",size:y.kern},{type:"elem",elem:r}]},l)}else if(D){const U=r.depth+f;k=B.makeVList({positionType:"bottom",positionData:U,children:[{type:"elem",elem:r},{type:"kern",size:D.kern},{type:"elem",elem:D.elem,marginLeft:X(E)},{type:"kern",size:l.fontMetrics().bigOpSpacing5}]},l)}else return r;const F=[k];if(y&&E!==0&&!T){const U=B.makeSpan(["mspace"],[],l);U.style.marginRight=X(E),F.unshift(U)}return B.makeSpan(["mop","op-limits"],F,l)},Uc=["\\smallint"],qn=(r,n)=>{let i,l,d=!1,E;r.type==="supsub"?(i=r.sup,l=r.sub,E=De(r.base,"op"),d=!0):E=De(r,"op");const f=n.style;let T=!1;f.size===J.DISPLAY.size&&E.symbol&&!x.contains(Uc,E.name)&&(T=!0);let y;if(E.symbol){const F=T?"Size2-Regular":"Size1-Regular";let U="";if((E.name==="\\oiint"||E.name==="\\oiiint")&&(U=E.name.slice(1),E.name=U==="oiint"?"\\iint":"\\iiint"),y=B.makeSymbol(E.name,F,"math",n,["mop","op-symbol",T?"large-op":"small-op"]),U.length>0){const K=y.italic,le=B.staticSvg(U+"Size"+(T?"2":"1"),n);y=B.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:0},{type:"elem",elem:le,shift:T?.08:0}]},n),E.name="\\"+U,y.classes.unshift("mop"),y.italic=K}}else if(E.body){const F=_t(E.body,n,!0);F.length===1&&F[0]instanceof wt?(y=F[0],y.classes[0]="mop"):y=B.makeSpan(["mop"],F,n)}else{const F=[];for(let U=1;U{let i;if(r.symbol)i=new Ht("mo",[Vt(r.name,r.mode)]),x.contains(Uc,r.name)&&i.setAttribute("largeop","false");else if(r.body)i=new Ht("mo",Lt(r.body,n));else{i=new Ht("mi",[new ir(r.name.slice(1))]);const l=new Ht("mo",[Vt("","text")]);r.parentIsSupSub?i=new Ht("mrow",[i,l]):i=nc([i,l])}return i},Bp={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ie({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,n)=>{let{parser:i,funcName:l}=r,d=l;return d.length===1&&(d=Bp[d]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:d}},htmlBuilder:qn,mathmlBuilder:lr}),ie({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,n)=>{let{parser:i}=r;const l=n[0];return{type:"op",mode:i.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ct(l)}},htmlBuilder:qn,mathmlBuilder:lr});const Up={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ie({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){let{parser:n,funcName:i}=r;return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:i}},htmlBuilder:qn,mathmlBuilder:lr}),ie({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){let{parser:n,funcName:i}=r;return{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:i}},htmlBuilder:qn,mathmlBuilder:lr}),ie({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){let{parser:n,funcName:i}=r,l=i;return l.length===1&&(l=Up[l]),{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:qn,mathmlBuilder:lr});const Gc=(r,n)=>{let i,l,d=!1,E;r.type==="supsub"?(i=r.sup,l=r.sub,E=De(r.base,"operatorname"),d=!0):E=De(r,"operatorname");let f;if(E.body.length>0){const T=E.body.map(D=>{const k=D.text;return typeof k=="string"?{type:"textord",mode:D.mode,text:k}:D}),y=_t(T,n.withFont("mathrm"),!0);for(let D=0;D{let{parser:i,funcName:l}=r;const d=n[0];return{type:"operatorname",mode:i.mode,body:ct(d),alwaysHandleSupSub:l==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Gc,mathmlBuilder:(r,n)=>{let i=Lt(r.body,n.withFont("mathrm")),l=!0;for(let f=0;fT.toText()).join("");i=[new Z.TextNode(f)]}const d=new Z.MathNode("mi",i);d.setAttribute("mathvariant","normal");const E=new Z.MathNode("mo",[Vt("","text")]);return r.parentIsSupSub?new Z.MathNode("mrow",[d,E]):Z.newDocumentFragment([d,E])}}),R("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),nn({type:"ordgroup",htmlBuilder(r,n){return r.semisimple?B.makeFragment(_t(r.body,n,!1)):B.makeSpan(["mord"],_t(r.body,n,!0),n)},mathmlBuilder(r,n){return Cn(r.body,n,!0)}}),ie({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,n){let{parser:i}=r;const l=n[0];return{type:"overline",mode:i.mode,body:l}},htmlBuilder(r,n){const i=Ue(r.body,n.havingCrampedStyle()),l=B.makeLineSpan("overline-line",n),d=n.fontMetrics().defaultRuleThickness,E=B.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:3*d},{type:"elem",elem:l},{type:"kern",size:d}]},n);return B.makeSpan(["mord","overline"],[E],n)},mathmlBuilder(r,n){const i=new Z.MathNode("mo",[new Z.TextNode("‾")]);i.setAttribute("stretchy","true");const l=new Z.MathNode("mover",[Ke(r.body,n),i]);return l.setAttribute("accent","true"),l}}),ie({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,n)=>{let{parser:i}=r;const l=n[0];return{type:"phantom",mode:i.mode,body:ct(l)}},htmlBuilder:(r,n)=>{const i=_t(r.body,n.withPhantom(),!1);return B.makeFragment(i)},mathmlBuilder:(r,n)=>{const i=Lt(r.body,n);return new Z.MathNode("mphantom",i)}}),ie({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,n)=>{let{parser:i}=r;const l=n[0];return{type:"hphantom",mode:i.mode,body:l}},htmlBuilder:(r,n)=>{let i=B.makeSpan([],[Ue(r.body,n.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(let l=0;l{const i=Lt(ct(r.body),n),l=new Z.MathNode("mphantom",i),d=new Z.MathNode("mpadded",[l]);return d.setAttribute("height","0px"),d.setAttribute("depth","0px"),d}}),ie({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,n)=>{let{parser:i}=r;const l=n[0];return{type:"vphantom",mode:i.mode,body:l}},htmlBuilder:(r,n)=>{const i=B.makeSpan(["inner"],[Ue(r.body,n.withPhantom())]),l=B.makeSpan(["fix"],[]);return B.makeSpan(["mord","rlap"],[i,l],n)},mathmlBuilder:(r,n)=>{const i=Lt(ct(r.body),n),l=new Z.MathNode("mphantom",i),d=new Z.MathNode("mpadded",[l]);return d.setAttribute("width","0px"),d}}),ie({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,n){let{parser:i}=r;const l=De(n[0],"size").value,d=n[1];return{type:"raisebox",mode:i.mode,dy:l,body:d}},htmlBuilder(r,n){const i=Ue(r.body,n),l=oe(r.dy,n);return B.makeVList({positionType:"shift",positionData:-l,children:[{type:"elem",elem:i}]},n)},mathmlBuilder(r,n){const i=new Z.MathNode("mpadded",[Ke(r.body,n)]),l=r.dy.number+r.dy.unit;return i.setAttribute("voffset",l),i}}),ie({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(r){let{parser:n}=r;return{type:"internal",mode:n.mode}}}),ie({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(r,n,i){let{parser:l}=r;const d=i[0],E=De(n[0],"size"),f=De(n[1],"size");return{type:"rule",mode:l.mode,shift:d&&De(d,"size").value,width:E.value,height:f.value}},htmlBuilder(r,n){const i=B.makeSpan(["mord","rule"],[],n),l=oe(r.width,n),d=oe(r.height,n),E=r.shift?oe(r.shift,n):0;return i.style.borderRightWidth=X(l),i.style.borderTopWidth=X(d),i.style.bottom=X(E),i.width=l,i.height=d+E,i.depth=-E,i.maxFontSize=d*1.125*n.sizeMultiplier,i},mathmlBuilder(r,n){const i=oe(r.width,n),l=oe(r.height,n),d=r.shift?oe(r.shift,n):0,E=n.color&&n.getColor()||"black",f=new Z.MathNode("mspace");f.setAttribute("mathbackground",E),f.setAttribute("width",X(i)),f.setAttribute("height",X(l));const T=new Z.MathNode("mpadded",[f]);return d>=0?T.setAttribute("height",X(d)):(T.setAttribute("height",X(d)),T.setAttribute("depth",X(-d))),T.setAttribute("voffset",X(d)),T}});function Yc(r,n,i){const l=_t(r,n,!1),d=n.sizeMultiplier/i.sizeMultiplier;for(let E=0;E{let{breakOnTokenText:i,funcName:l,parser:d}=r;const E=d.parseExpression(!1,i);return{type:"sizing",mode:d.mode,size:qc.indexOf(l)+1,body:E}},htmlBuilder:(r,n)=>{const i=n.havingSize(r.size);return Yc(r.body,i,n)},mathmlBuilder:(r,n)=>{const i=n.havingSize(r.size),l=Lt(r.body,i),d=new Z.MathNode("mstyle",l);return d.setAttribute("mathsize",X(i.sizeMultiplier)),d}}),ie({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,n,i)=>{let{parser:l}=r,d=!1,E=!1;const f=i[0]&&De(i[0],"ordgroup");if(f){let y="";for(let D=0;D{const i=B.makeSpan([],[Ue(r.body,n)]);if(!r.smashHeight&&!r.smashDepth)return i;if(r.smashHeight&&(i.height=0,i.children))for(let d=0;d{const i=new Z.MathNode("mpadded",[Ke(r.body,n)]);return r.smashHeight&&i.setAttribute("height","0px"),r.smashDepth&&i.setAttribute("depth","0px"),i}}),ie({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,n,i){let{parser:l}=r;const d=i[0],E=n[0];return{type:"sqrt",mode:l.mode,body:E,index:d}},htmlBuilder(r,n){let i=Ue(r.body,n.havingCrampedStyle());i.height===0&&(i.height=n.fontMetrics().xHeight),i=B.wrapFragment(i,n);const d=n.fontMetrics().defaultRuleThickness;let E=d;n.style.idi.height+i.depth+f&&(f=(f+F-i.height-i.depth)/2);const U=y.height-i.height-f-D;i.style.paddingLeft=X(k);const K=B.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+U)},{type:"elem",elem:y},{type:"kern",size:D}]},n);if(r.index){const le=n.havingStyle(J.SCRIPTSCRIPT),me=Ue(r.index,le,n),Le=.6*(K.height-K.depth),Me=B.makeVList({positionType:"shift",positionData:-Le,children:[{type:"elem",elem:me}]},n),ke=B.makeSpan(["root"],[Me]);return B.makeSpan(["mord","sqrt"],[ke,K],n)}else return B.makeSpan(["mord","sqrt"],[K],n)},mathmlBuilder(r,n){const{body:i,index:l}=r;return l?new Z.MathNode("mroot",[Ke(i,n),Ke(l,n)]):new Z.MathNode("msqrt",[Ke(i,n)])}});const zc={display:J.DISPLAY,text:J.TEXT,script:J.SCRIPT,scriptscript:J.SCRIPTSCRIPT};ie({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,n){let{breakOnTokenText:i,funcName:l,parser:d}=r;const E=d.parseExpression(!0,i),f=l.slice(1,l.length-5);return{type:"styling",mode:d.mode,style:f,body:E}},htmlBuilder(r,n){const i=zc[r.style],l=n.havingStyle(i).withFont("");return Yc(r.body,l,n)},mathmlBuilder(r,n){const i=zc[r.style],l=n.havingStyle(i),d=Lt(r.body,l),E=new Z.MathNode("mstyle",d),T={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[r.style];return E.setAttribute("scriptlevel",T[0]),E.setAttribute("displaystyle",T[1]),E}});const Gp=function(r,n){const i=r.base;return i?i.type==="op"?i.limits&&(n.style.size===J.DISPLAY.size||i.alwaysHandleSupSub)?qn:null:i.type==="operatorname"?i.alwaysHandleSupSub&&(n.style.size===J.DISPLAY.size||i.limits)?Gc:null:i.type==="accent"?x.isCharacterBox(i.base)?Ra:null:i.type==="horizBrace"&&!r.sub===i.isOver?Pc:null:null};nn({type:"supsub",htmlBuilder(r,n){const i=Gp(r,n);if(i)return i(r,n);const{base:l,sup:d,sub:E}=r,f=Ue(l,n);let T,y;const D=n.fontMetrics();let k=0,F=0;const U=l&&x.isCharacterBox(l);if(d){const qe=n.havingStyle(n.style.sup());T=Ue(d,qe,n),U||(k=f.height-qe.fontMetrics().supDrop*qe.sizeMultiplier/n.sizeMultiplier)}if(E){const qe=n.havingStyle(n.style.sub());y=Ue(E,qe,n),U||(F=f.depth+qe.fontMetrics().subDrop*qe.sizeMultiplier/n.sizeMultiplier)}let K;n.style===J.DISPLAY?K=D.sup1:n.style.cramped?K=D.sup3:K=D.sup2;const le=n.sizeMultiplier,me=X(.5/D.ptPerEm/le);let Le=null;if(y){const qe=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(f instanceof wt||qe)&&(Le=X(-f.italic))}let Me;if(T&&y){k=Math.max(k,K,T.depth+.25*D.xHeight),F=Math.max(F,D.sub2);const Je=4*D.defaultRuleThickness;if(k-T.depth-(y.height-F)0&&(k+=mt,F-=mt)}const vt=[{type:"elem",elem:y,shift:F,marginRight:me,marginLeft:Le},{type:"elem",elem:T,shift:-k,marginRight:me}];Me=B.makeVList({positionType:"individualShift",children:vt},n)}else if(y){F=Math.max(F,D.sub1,y.height-.8*D.xHeight);const qe=[{type:"elem",elem:y,marginLeft:Le,marginRight:me}];Me=B.makeVList({positionType:"shift",positionData:F,children:qe},n)}else if(T)k=Math.max(k,K,T.depth+.25*D.xHeight),Me=B.makeVList({positionType:"shift",positionData:-k,children:[{type:"elem",elem:T,marginRight:me}]},n);else throw new Error("supsub must have either sup or sub.");const ke=fa(f,"right")||"mord";return B.makeSpan([ke],[f,B.makeSpan(["msupsub"],[Me])],n)},mathmlBuilder(r,n){let i=!1,l,d;r.base&&r.base.type==="horizBrace"&&(d=!!r.sup,d===r.base.isOver&&(i=!0,l=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);const E=[Ke(r.base,n)];r.sub&&E.push(Ke(r.sub,n)),r.sup&&E.push(Ke(r.sup,n));let f;if(i)f=l?"mover":"munder";else if(r.sub)if(r.sup){const T=r.base;T&&T.type==="op"&&T.limits&&n.style===J.DISPLAY||T&&T.type==="operatorname"&&T.alwaysHandleSupSub&&(n.style===J.DISPLAY||T.limits)?f="munderover":f="msubsup"}else{const T=r.base;T&&T.type==="op"&&T.limits&&(n.style===J.DISPLAY||T.alwaysHandleSupSub)||T&&T.type==="operatorname"&&T.alwaysHandleSupSub&&(T.limits||n.style===J.DISPLAY)?f="munder":f="msub"}else{const T=r.base;T&&T.type==="op"&&T.limits&&(n.style===J.DISPLAY||T.alwaysHandleSupSub)||T&&T.type==="operatorname"&&T.alwaysHandleSupSub&&(T.limits||n.style===J.DISPLAY)?f="mover":f="msup"}return new Z.MathNode(f,E)}}),nn({type:"atom",htmlBuilder(r,n){return B.mathsym(r.text,r.mode,n,["m"+r.family])},mathmlBuilder(r,n){const i=new Z.MathNode("mo",[Vt(r.text,r.mode)]);if(r.family==="bin"){const l=Ta(r,n);l==="bold-italic"&&i.setAttribute("mathvariant",l)}else r.family==="punct"?i.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&i.setAttribute("stretchy","false");return i}});const Hc={mi:"italic",mn:"normal",mtext:"normal"};nn({type:"mathord",htmlBuilder(r,n){return B.makeOrd(r,n,"mathord")},mathmlBuilder(r,n){const i=new Z.MathNode("mi",[Vt(r.text,r.mode,n)]),l=Ta(r,n)||"italic";return l!==Hc[i.type]&&i.setAttribute("mathvariant",l),i}}),nn({type:"textord",htmlBuilder(r,n){return B.makeOrd(r,n,"textord")},mathmlBuilder(r,n){const i=Vt(r.text,r.mode,n),l=Ta(r,n)||"normal";let d;return r.mode==="text"?d=new Z.MathNode("mtext",[i]):/[0-9]/.test(r.text)?d=new Z.MathNode("mn",[i]):r.text==="\\prime"?d=new Z.MathNode("mo",[i]):d=new Z.MathNode("mi",[i]),l!==Hc[d.type]&&d.setAttribute("mathvariant",l),d}});const Ua={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ga={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};nn({type:"spacing",htmlBuilder(r,n){if(Ga.hasOwnProperty(r.text)){const i=Ga[r.text].className||"";if(r.mode==="text"){const l=B.makeOrd(r,n,"textord");return l.classes.push(i),l}else return B.makeSpan(["mspace",i],[B.mathsym(r.text,r.mode,n)],n)}else{if(Ua.hasOwnProperty(r.text))return B.makeSpan(["mspace",Ua[r.text]],[],n);throw new s('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,n){let i;if(Ga.hasOwnProperty(r.text))i=new Z.MathNode("mtext",[new Z.TextNode(" ")]);else{if(Ua.hasOwnProperty(r.text))return new Z.MathNode("mspace");throw new s('Unknown type of space "'+r.text+'"')}return i}});const Vc=()=>{const r=new Z.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};nn({type:"tag",mathmlBuilder(r,n){const i=new Z.MathNode("mtable",[new Z.MathNode("mtr",[Vc(),new Z.MathNode("mtd",[Cn(r.body,n)]),Vc(),new Z.MathNode("mtd",[Cn(r.tag,n)])])]);return i.setAttribute("width","100%"),i}});const Wc={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},$c={"\\textbf":"textbf","\\textmd":"textmd"},Yp={"\\textit":"textit","\\textup":"textup"},Kc=(r,n)=>{const i=r.font;return i?Wc[i]?n.withTextFontFamily(Wc[i]):$c[i]?n.withTextFontWeight($c[i]):n.withTextFontShape(Yp[i]):n};ie({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,n){let{parser:i,funcName:l}=r;const d=n[0];return{type:"text",mode:i.mode,body:ct(d),font:l}},htmlBuilder(r,n){const i=Kc(r,n),l=_t(r.body,i,!0);return B.makeSpan(["mord","text"],l,i)},mathmlBuilder(r,n){const i=Kc(r,n);return Cn(r.body,i)}}),ie({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,n){let{parser:i}=r;return{type:"underline",mode:i.mode,body:n[0]}},htmlBuilder(r,n){const i=Ue(r.body,n),l=B.makeLineSpan("underline-line",n),d=n.fontMetrics().defaultRuleThickness,E=B.makeVList({positionType:"top",positionData:i.height,children:[{type:"kern",size:d},{type:"elem",elem:l},{type:"kern",size:3*d},{type:"elem",elem:i}]},n);return B.makeSpan(["mord","underline"],[E],n)},mathmlBuilder(r,n){const i=new Z.MathNode("mo",[new Z.TextNode("‾")]);i.setAttribute("stretchy","true");const l=new Z.MathNode("munder",[Ke(r.body,n),i]);return l.setAttribute("accentunder","true"),l}}),ie({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,n){let{parser:i}=r;return{type:"vcenter",mode:i.mode,body:n[0]}},htmlBuilder(r,n){const i=Ue(r.body,n),l=n.fontMetrics().axisHeight,d=.5*(i.height-l-(i.depth+l));return B.makeVList({positionType:"shift",positionData:d,children:[{type:"elem",elem:i}]},n)},mathmlBuilder(r,n){return new Z.MathNode("mpadded",[Ke(r.body,n)],["vcenter"])}}),ie({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,n,i){throw new s("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,n){const i=Qc(r),l=[],d=n.havingStyle(n.style.text());for(let E=0;Er.body.replace(/ /g,r.star?"␣":" ");var Nn=rr;const Xc=`[ \r
+ ]`,qp="\\\\[a-zA-Z@]+",zp="\\\\[^\uD800-\uDFFF]",Hp="("+qp+")"+Xc+"*",Vp=`\\\\(
+|[ \r ]+
+?)[ \r ]*`,Ya="[̀-ͯ]",Wp=new RegExp(Ya+"+$"),$p="("+Xc+"+)|"+(Vp+"|")+"([!-\\[\\]-‧-豈-]"+(Ya+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ya+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Hp)+("|"+zp+")");class Zc{constructor(n,i){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=n,this.settings=i,this.tokenRegex=new RegExp($p,"g"),this.catcodes={"%":14,"~":13}}setCatcode(n,i){this.catcodes[n]=i}lex(){const n=this.input,i=this.tokenRegex.lastIndex;if(i===n.length)return new Wt("EOF",new Ft(this,i,i));const l=this.tokenRegex.exec(n);if(l===null||l.index!==i)throw new s("Unexpected character: '"+n[i]+"'",new Wt(n[i],new Ft(this,i,i+1)));const d=l[6]||l[3]||(l[2]?"\\ ":" ");if(this.catcodes[d]===14){const E=n.indexOf(`
+`,this.tokenRegex.lastIndex);return E===-1?(this.tokenRegex.lastIndex=n.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=E+1,this.lex()}return new Wt(d,new Ft(this,i,this.tokenRegex.lastIndex))}}class Kp{constructor(n,i){n===void 0&&(n={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=n,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const n=this.undefStack.pop();for(const i in n)n.hasOwnProperty(i)&&(n[i]==null?delete this.current[i]:this.current[i]=n[i])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(n){return this.current.hasOwnProperty(n)||this.builtins.hasOwnProperty(n)}get(n){return this.current.hasOwnProperty(n)?this.current[n]:this.builtins[n]}set(n,i,l){if(l===void 0&&(l=!1),l){for(let d=0;d0&&(this.undefStack[this.undefStack.length-1][n]=i)}else{const d=this.undefStack[this.undefStack.length-1];d&&!d.hasOwnProperty(n)&&(d[n]=this.current[n])}i==null?delete this.current[n]:this.current[n]=i}}var Qp=yc;R("\\noexpand",function(r){const n=r.popToken();return r.isExpandable(n.text)&&(n.noexpand=!0,n.treatAsRelax=!0),{tokens:[n],numArgs:0}}),R("\\expandafter",function(r){const n=r.popToken();return r.expandOnce(!0),{tokens:[n],numArgs:0}}),R("\\@firstoftwo",function(r){return{tokens:r.consumeArgs(2)[0],numArgs:0}}),R("\\@secondoftwo",function(r){return{tokens:r.consumeArgs(2)[1],numArgs:0}}),R("\\@ifnextchar",function(r){const n=r.consumeArgs(3);r.consumeSpaces();const i=r.future();return n[0].length===1&&n[0][0].text===i.text?{tokens:n[1],numArgs:0}:{tokens:n[2],numArgs:0}}),R("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),R("\\TextOrMath",function(r){const n=r.consumeArgs(2);return r.mode==="text"?{tokens:n[0],numArgs:0}:{tokens:n[1],numArgs:0}});const Jc={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};R("\\char",function(r){let n=r.popToken(),i,l="";if(n.text==="'")i=8,n=r.popToken();else if(n.text==='"')i=16,n=r.popToken();else if(n.text==="`")if(n=r.popToken(),n.text[0]==="\\")l=n.text.charCodeAt(1);else{if(n.text==="EOF")throw new s("\\char` missing argument");l=n.text.charCodeAt(0)}else i=10;if(i){if(l=Jc[n.text],l==null||l>=i)throw new s("Invalid base-"+i+" digit "+n.text);let d;for(;(d=Jc[r.future().text])!=null&&d{let l=r.consumeArg().tokens;if(l.length!==1)throw new s("\\newcommand's first argument must be a macro name");const d=l[0].text,E=r.isDefined(d);if(E&&!n)throw new s("\\newcommand{"+d+"} attempting to redefine "+(d+"; use \\renewcommand"));if(!E&&!i)throw new s("\\renewcommand{"+d+"} when command "+d+" does not yet exist; use \\newcommand");let f=0;if(l=r.consumeArg().tokens,l.length===1&&l[0].text==="["){let T="",y=r.expandNextToken();for(;y.text!=="]"&&y.text!=="EOF";)T+=y.text,y=r.expandNextToken();if(!T.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+T);f=parseInt(T),l=r.consumeArg().tokens}return r.macros.set(d,{tokens:l,numArgs:f}),""};R("\\newcommand",r=>qa(r,!1,!0)),R("\\renewcommand",r=>qa(r,!0,!1)),R("\\providecommand",r=>qa(r,!0,!0)),R("\\message",r=>{const n=r.consumeArgs(1)[0];return console.log(n.reverse().map(i=>i.text).join("")),""}),R("\\errmessage",r=>{const n=r.consumeArgs(1)[0];return console.error(n.reverse().map(i=>i.text).join("")),""}),R("\\show",r=>{const n=r.popToken(),i=n.text;return console.log(n,r.macros.get(i),Nn[i],tt.math[i],tt.text[i]),""}),R("\\bgroup","{"),R("\\egroup","}"),R("~","\\nobreakspace"),R("\\lq","`"),R("\\rq","'"),R("\\aa","\\r a"),R("\\AA","\\r A"),R("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),R("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),R("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),R("ℬ","\\mathscr{B}"),R("ℰ","\\mathscr{E}"),R("ℱ","\\mathscr{F}"),R("ℋ","\\mathscr{H}"),R("ℐ","\\mathscr{I}"),R("ℒ","\\mathscr{L}"),R("ℳ","\\mathscr{M}"),R("ℛ","\\mathscr{R}"),R("ℭ","\\mathfrak{C}"),R("ℌ","\\mathfrak{H}"),R("ℨ","\\mathfrak{Z}"),R("\\Bbbk","\\Bbb{k}"),R("·","\\cdotp"),R("\\llap","\\mathllap{\\textrm{#1}}"),R("\\rlap","\\mathrlap{\\textrm{#1}}"),R("\\clap","\\mathclap{\\textrm{#1}}"),R("\\mathstrut","\\vphantom{(}"),R("\\underbar","\\underline{\\text{#1}}"),R("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),R("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),R("\\ne","\\neq"),R("≠","\\neq"),R("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),R("∉","\\notin"),R("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),R("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),R("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),R("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),R("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),R("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),R("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),R("⟂","\\perp"),R("‼","\\mathclose{!\\mkern-0.8mu!}"),R("∌","\\notni"),R("⌜","\\ulcorner"),R("⌝","\\urcorner"),R("⌞","\\llcorner"),R("⌟","\\lrcorner"),R("©","\\copyright"),R("®","\\textregistered"),R("️","\\textregistered"),R("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),R("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),R("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),R("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),R("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),R("⋮","\\vdots"),R("\\varGamma","\\mathit{\\Gamma}"),R("\\varDelta","\\mathit{\\Delta}"),R("\\varTheta","\\mathit{\\Theta}"),R("\\varLambda","\\mathit{\\Lambda}"),R("\\varXi","\\mathit{\\Xi}"),R("\\varPi","\\mathit{\\Pi}"),R("\\varSigma","\\mathit{\\Sigma}"),R("\\varUpsilon","\\mathit{\\Upsilon}"),R("\\varPhi","\\mathit{\\Phi}"),R("\\varPsi","\\mathit{\\Psi}"),R("\\varOmega","\\mathit{\\Omega}"),R("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),R("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),R("\\boxed","\\fbox{$\\displaystyle{#1}$}"),R("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),R("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),R("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const jc={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};R("\\dots",function(r){let n="\\dotso";const i=r.expandAfterFuture().text;return i in jc?n=jc[i]:(i.slice(0,4)==="\\not"||i in tt.math&&x.contains(["bin","rel"],tt.math[i].group))&&(n="\\dotsb"),n});const za={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};R("\\dotso",function(r){return r.future().text in za?"\\ldots\\,":"\\ldots"}),R("\\dotsc",function(r){const n=r.future().text;return n in za&&n!==","?"\\ldots\\,":"\\ldots"}),R("\\cdots",function(r){return r.future().text in za?"\\@cdots\\,":"\\@cdots"}),R("\\dotsb","\\cdots"),R("\\dotsm","\\cdots"),R("\\dotsi","\\!\\cdots"),R("\\dotsx","\\ldots\\,"),R("\\DOTSI","\\relax"),R("\\DOTSB","\\relax"),R("\\DOTSX","\\relax"),R("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),R("\\,","\\tmspace+{3mu}{.1667em}"),R("\\thinspace","\\,"),R("\\>","\\mskip{4mu}"),R("\\:","\\tmspace+{4mu}{.2222em}"),R("\\medspace","\\:"),R("\\;","\\tmspace+{5mu}{.2777em}"),R("\\thickspace","\\;"),R("\\!","\\tmspace-{3mu}{.1667em}"),R("\\negthinspace","\\!"),R("\\negmedspace","\\tmspace-{4mu}{.2222em}"),R("\\negthickspace","\\tmspace-{5mu}{.277em}"),R("\\enspace","\\kern.5em "),R("\\enskip","\\hskip.5em\\relax"),R("\\quad","\\hskip1em\\relax"),R("\\qquad","\\hskip2em\\relax"),R("\\tag","\\@ifstar\\tag@literal\\tag@paren"),R("\\tag@paren","\\tag@literal{({#1})}"),R("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new s("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),R("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),R("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),R("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),R("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),R("\\newline","\\\\\\relax"),R("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const eu=X(_e["Main-Regular"]["T".charCodeAt(0)][1]-.7*_e["Main-Regular"]["A".charCodeAt(0)][1]);R("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+eu+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),R("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+eu+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),R("\\hspace","\\@ifstar\\@hspacer\\@hspace"),R("\\@hspace","\\hskip #1\\relax"),R("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),R("\\ordinarycolon",":"),R("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),R("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),R("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),R("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),R("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),R("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),R("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),R("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),R("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),R("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),R("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),R("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),R("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),R("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),R("∷","\\dblcolon"),R("∹","\\eqcolon"),R("≔","\\coloneqq"),R("≕","\\eqqcolon"),R("⩴","\\Coloneqq"),R("\\ratio","\\vcentcolon"),R("\\coloncolon","\\dblcolon"),R("\\colonequals","\\coloneqq"),R("\\coloncolonequals","\\Coloneqq"),R("\\equalscolon","\\eqqcolon"),R("\\equalscoloncolon","\\Eqqcolon"),R("\\colonminus","\\coloneq"),R("\\coloncolonminus","\\Coloneq"),R("\\minuscolon","\\eqcolon"),R("\\minuscoloncolon","\\Eqcolon"),R("\\coloncolonapprox","\\Colonapprox"),R("\\coloncolonsim","\\Colonsim"),R("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),R("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),R("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),R("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),R("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),R("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),R("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),R("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),R("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),R("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),R("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),R("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),R("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),R("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),R("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),R("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),R("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),R("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),R("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),R("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),R("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),R("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),R("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),R("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),R("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),R("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),R("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),R("\\imath","\\html@mathml{\\@imath}{ı}"),R("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),R("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),R("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),R("⟦","\\llbracket"),R("⟧","\\rrbracket"),R("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),R("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),R("⦃","\\lBrace"),R("⦄","\\rBrace"),R("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),R("⦵","\\minuso"),R("\\darr","\\downarrow"),R("\\dArr","\\Downarrow"),R("\\Darr","\\Downarrow"),R("\\lang","\\langle"),R("\\rang","\\rangle"),R("\\uarr","\\uparrow"),R("\\uArr","\\Uparrow"),R("\\Uarr","\\Uparrow"),R("\\N","\\mathbb{N}"),R("\\R","\\mathbb{R}"),R("\\Z","\\mathbb{Z}"),R("\\alef","\\aleph"),R("\\alefsym","\\aleph"),R("\\Alpha","\\mathrm{A}"),R("\\Beta","\\mathrm{B}"),R("\\bull","\\bullet"),R("\\Chi","\\mathrm{X}"),R("\\clubs","\\clubsuit"),R("\\cnums","\\mathbb{C}"),R("\\Complex","\\mathbb{C}"),R("\\Dagger","\\ddagger"),R("\\diamonds","\\diamondsuit"),R("\\empty","\\emptyset"),R("\\Epsilon","\\mathrm{E}"),R("\\Eta","\\mathrm{H}"),R("\\exist","\\exists"),R("\\harr","\\leftrightarrow"),R("\\hArr","\\Leftrightarrow"),R("\\Harr","\\Leftrightarrow"),R("\\hearts","\\heartsuit"),R("\\image","\\Im"),R("\\infin","\\infty"),R("\\Iota","\\mathrm{I}"),R("\\isin","\\in"),R("\\Kappa","\\mathrm{K}"),R("\\larr","\\leftarrow"),R("\\lArr","\\Leftarrow"),R("\\Larr","\\Leftarrow"),R("\\lrarr","\\leftrightarrow"),R("\\lrArr","\\Leftrightarrow"),R("\\Lrarr","\\Leftrightarrow"),R("\\Mu","\\mathrm{M}"),R("\\natnums","\\mathbb{N}"),R("\\Nu","\\mathrm{N}"),R("\\Omicron","\\mathrm{O}"),R("\\plusmn","\\pm"),R("\\rarr","\\rightarrow"),R("\\rArr","\\Rightarrow"),R("\\Rarr","\\Rightarrow"),R("\\real","\\Re"),R("\\reals","\\mathbb{R}"),R("\\Reals","\\mathbb{R}"),R("\\Rho","\\mathrm{P}"),R("\\sdot","\\cdot"),R("\\sect","\\S"),R("\\spades","\\spadesuit"),R("\\sub","\\subset"),R("\\sube","\\subseteq"),R("\\supe","\\supseteq"),R("\\Tau","\\mathrm{T}"),R("\\thetasym","\\vartheta"),R("\\weierp","\\wp"),R("\\Zeta","\\mathrm{Z}"),R("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),R("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),R("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),R("\\bra","\\mathinner{\\langle{#1}|}"),R("\\ket","\\mathinner{|{#1}\\rangle}"),R("\\braket","\\mathinner{\\langle{#1}\\rangle}"),R("\\Bra","\\left\\langle#1\\right|"),R("\\Ket","\\left|#1\\right\\rangle");const tu=r=>n=>{const i=n.consumeArg().tokens,l=n.consumeArg().tokens,d=n.consumeArg().tokens,E=n.consumeArg().tokens,f=n.macros.get("|"),T=n.macros.get("\\|");n.macros.beginGroup();const y=F=>U=>{r&&(U.macros.set("|",f),d.length&&U.macros.set("\\|",T));let K=F;return!F&&d.length&&U.future().text==="|"&&(U.popToken(),K=!0),{tokens:K?d:l,numArgs:0}};n.macros.set("|",y(!1)),d.length&&n.macros.set("\\|",y(!0));const D=n.consumeArg().tokens,k=n.expandTokens([...E,...D,...i]);return n.macros.endGroup(),{tokens:k.reverse(),numArgs:0}};R("\\bra@ket",tu(!1)),R("\\bra@set",tu(!0)),R("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),R("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),R("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),R("\\angln","{\\angl n}"),R("\\blue","\\textcolor{##6495ed}{#1}"),R("\\orange","\\textcolor{##ffa500}{#1}"),R("\\pink","\\textcolor{##ff00af}{#1}"),R("\\red","\\textcolor{##df0030}{#1}"),R("\\green","\\textcolor{##28ae7b}{#1}"),R("\\gray","\\textcolor{gray}{#1}"),R("\\purple","\\textcolor{##9d38bd}{#1}"),R("\\blueA","\\textcolor{##ccfaff}{#1}"),R("\\blueB","\\textcolor{##80f6ff}{#1}"),R("\\blueC","\\textcolor{##63d9ea}{#1}"),R("\\blueD","\\textcolor{##11accd}{#1}"),R("\\blueE","\\textcolor{##0c7f99}{#1}"),R("\\tealA","\\textcolor{##94fff5}{#1}"),R("\\tealB","\\textcolor{##26edd5}{#1}"),R("\\tealC","\\textcolor{##01d1c1}{#1}"),R("\\tealD","\\textcolor{##01a995}{#1}"),R("\\tealE","\\textcolor{##208170}{#1}"),R("\\greenA","\\textcolor{##b6ffb0}{#1}"),R("\\greenB","\\textcolor{##8af281}{#1}"),R("\\greenC","\\textcolor{##74cf70}{#1}"),R("\\greenD","\\textcolor{##1fab54}{#1}"),R("\\greenE","\\textcolor{##0d923f}{#1}"),R("\\goldA","\\textcolor{##ffd0a9}{#1}"),R("\\goldB","\\textcolor{##ffbb71}{#1}"),R("\\goldC","\\textcolor{##ff9c39}{#1}"),R("\\goldD","\\textcolor{##e07d10}{#1}"),R("\\goldE","\\textcolor{##a75a05}{#1}"),R("\\redA","\\textcolor{##fca9a9}{#1}"),R("\\redB","\\textcolor{##ff8482}{#1}"),R("\\redC","\\textcolor{##f9685d}{#1}"),R("\\redD","\\textcolor{##e84d39}{#1}"),R("\\redE","\\textcolor{##bc2612}{#1}"),R("\\maroonA","\\textcolor{##ffbde0}{#1}"),R("\\maroonB","\\textcolor{##ff92c6}{#1}"),R("\\maroonC","\\textcolor{##ed5fa6}{#1}"),R("\\maroonD","\\textcolor{##ca337c}{#1}"),R("\\maroonE","\\textcolor{##9e034e}{#1}"),R("\\purpleA","\\textcolor{##ddd7ff}{#1}"),R("\\purpleB","\\textcolor{##c6b9fc}{#1}"),R("\\purpleC","\\textcolor{##aa87ff}{#1}"),R("\\purpleD","\\textcolor{##7854ab}{#1}"),R("\\purpleE","\\textcolor{##543b78}{#1}"),R("\\mintA","\\textcolor{##f5f9e8}{#1}"),R("\\mintB","\\textcolor{##edf2df}{#1}"),R("\\mintC","\\textcolor{##e0e5cc}{#1}"),R("\\grayA","\\textcolor{##f6f7f7}{#1}"),R("\\grayB","\\textcolor{##f0f1f2}{#1}"),R("\\grayC","\\textcolor{##e3e5e6}{#1}"),R("\\grayD","\\textcolor{##d6d8da}{#1}"),R("\\grayE","\\textcolor{##babec2}{#1}"),R("\\grayF","\\textcolor{##888d93}{#1}"),R("\\grayG","\\textcolor{##626569}{#1}"),R("\\grayH","\\textcolor{##3b3e40}{#1}"),R("\\grayI","\\textcolor{##21242c}{#1}"),R("\\kaBlue","\\textcolor{##314453}{#1}"),R("\\kaGreen","\\textcolor{##71B307}{#1}");const nu={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Xp{constructor(n,i,l){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=i,this.expansionCount=0,this.feed(n),this.macros=new Kp(Qp,i.macros),this.mode=l,this.stack=[]}feed(n){this.lexer=new Zc(n,this.settings)}switchMode(n){this.mode=n}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(n){this.stack.push(n)}pushTokens(n){this.stack.push(...n)}scanArgument(n){let i,l,d;if(n){if(this.consumeSpaces(),this.future().text!=="[")return null;i=this.popToken(),{tokens:d,end:l}=this.consumeArg(["]"])}else({tokens:d,start:i,end:l}=this.consumeArg());return this.pushToken(new Wt("EOF",l.loc)),this.pushTokens(d),i.range(l,"")}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(n){const i=[],l=n&&n.length>0;l||this.consumeSpaces();const d=this.future();let E,f=0,T=0;do{if(E=this.popToken(),i.push(E),E.text==="{")++f;else if(E.text==="}"){if(--f,f===-1)throw new s("Extra }",E)}else if(E.text==="EOF")throw new s("Unexpected end of input in a macro argument, expected '"+(n&&l?n[T]:"}")+"'",E);if(n&&l)if((f===0||f===1&&n[T]==="{")&&E.text===n[T]){if(++T,T===n.length){i.splice(-T,T);break}}else T=0}while(f!==0||l);return d.text==="{"&&i[i.length-1].text==="}"&&(i.pop(),i.shift()),i.reverse(),{tokens:i,start:d,end:E}}consumeArgs(n,i){if(i){if(i.length!==n+1)throw new s("The length of delimiters doesn't match the number of args!");const d=i[0];for(let E=0;Ethis.settings.maxExpand)throw new s("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(n){const i=this.popToken(),l=i.text,d=i.noexpand?null:this._getExpansion(l);if(d==null||n&&d.unexpandable){if(n&&d==null&&l[0]==="\\"&&!this.isDefined(l))throw new s("Undefined control sequence: "+l);return this.pushToken(i),!1}this.countExpansion(1);let E=d.tokens;const f=this.consumeArgs(d.numArgs,d.delimiters);if(d.numArgs){E=E.slice();for(let T=E.length-1;T>=0;--T){let y=E[T];if(y.text==="#"){if(T===0)throw new s("Incomplete placeholder at end of macro body",y);if(y=E[--T],y.text==="#")E.splice(T+1,1);else if(/^[1-9]$/.test(y.text))E.splice(T,2,...f[+y.text-1]);else throw new s("Not a valid argument number",y)}}}return this.pushTokens(E),E.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const n=this.stack.pop();return n.treatAsRelax&&(n.text="\\relax"),n}throw new Error}expandMacro(n){return this.macros.has(n)?this.expandTokens([new Wt(n)]):void 0}expandTokens(n){const i=[],l=this.stack.length;for(this.pushTokens(n);this.stack.length>l;)if(this.expandOnce(!0)===!1){const d=this.stack.pop();d.treatAsRelax&&(d.noexpand=!1,d.treatAsRelax=!1),i.push(d)}return this.countExpansion(i.length),i}expandMacroAsText(n){const i=this.expandMacro(n);return i&&i.map(l=>l.text).join("")}_getExpansion(n){const i=this.macros.get(n);if(i==null)return i;if(n.length===1){const d=this.lexer.catcodes[n];if(d!=null&&d!==13)return}const l=typeof i=="function"?i(this):i;if(typeof l=="string"){let d=0;if(l.indexOf("#")!==-1){const D=l.replace(/##/g,"");for(;D.indexOf("#"+(d+1))!==-1;)++d}const E=new Zc(l,this.settings),f=[];let T=E.lex();for(;T.text!=="EOF";)f.push(T),T=E.lex();return f.reverse(),{tokens:f,numArgs:d}}return l}isDefined(n){return this.macros.has(n)||Nn.hasOwnProperty(n)||tt.math.hasOwnProperty(n)||tt.text.hasOwnProperty(n)||nu.hasOwnProperty(n)}isExpandable(n){const i=this.macros.get(n);return i!=null?typeof i=="string"||typeof i=="function"||!i.unexpandable:Nn.hasOwnProperty(n)&&!Nn[n].primitive}}const ru=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,kr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Ha={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},au={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Pr{constructor(n,i){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Xp(n,i,this.mode),this.settings=i,this.leftrightDepth=0}expect(n,i){if(i===void 0&&(i=!0),this.fetch().text!==n)throw new s("Expected '"+n+"', got '"+this.fetch().text+"'",this.fetch());i&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(n){this.mode=n,this.gullet.switchMode(n)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const n=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),n}finally{this.gullet.endGroups()}}subparse(n){const i=this.nextToken;this.consume(),this.gullet.pushToken(new Wt("}")),this.gullet.pushTokens(n);const l=this.parseExpression(!1);return this.expect("}"),this.nextToken=i,l}parseExpression(n,i){const l=[];for(;;){this.mode==="math"&&this.consumeSpaces();const d=this.fetch();if(Pr.endOfExpression.indexOf(d.text)!==-1||i&&d.text===i||n&&Nn[d.text]&&Nn[d.text].infix)break;const E=this.parseAtom(i);if(E){if(E.type==="internal")continue}else break;l.push(E)}return this.mode==="text"&&this.formLigatures(l),this.handleInfixNodes(l)}handleInfixNodes(n){let i=-1,l;for(let d=0;d=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+i[0]+'" used in math mode',n);const E=tt[this.mode][i].group,f=Ft.range(n);let T;if(ea.hasOwnProperty(E)){const y=E;T={type:"atom",mode:this.mode,family:y,loc:f,text:i}}else T={type:E,mode:this.mode,loc:f,text:i};d=T}else if(i.charCodeAt(0)>=128)this.settings.strict&&(de(i.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+i[0]+'" used in math mode',n):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+i[0]+'"'+(" ("+i.charCodeAt(0)+")"),n)),d={type:"textord",mode:"text",loc:Ft.range(n),text:i};else return null;if(this.consume(),l)for(let E=0;E0?t.src.charCodeAt(e-1):-1,o=e+1<=c?t.src.charCodeAt(e+1):-1,(a===32||a===9||o>=48&&o<=57)&&(_=!1),(o===32||o===9)&&(s=!1),{can_open:s,can_close:_}}function Lf(t,e){var a,o,c,s,_;if(t.src[t.pos]!=="$")return!1;if(s=xu(t,t.pos),!s.can_open)return e||(t.pending+="$"),t.pos+=1,!0;for(a=t.pos+1,o=a;(o=t.src.indexOf("$",o))!==-1;){for(_=o-1;t.src[_]==="\\";)_-=1;if((o-_)%2==1)break;o+=1}return o===-1?(e||(t.pending+="$"),t.pos=a,!0):o-a===0?(e||(t.pending+="$$"),t.pos=a+1,!0):(s=xu(t,o),s.can_close?(e||(c=t.push("math_inline","math",0),c.markup="$",c.content=t.src.slice(a,o)),t.pos=o+1,!0):(e||(t.pending+="$"),t.pos=a,!0))}function kf(t,e,a,o){var c,s,_,u,p=!1,S,h=t.bMarks[e]+t.tShift[e],C=t.eMarks[e];if(h+2>C||t.src.slice(h,h+2)!=="$$")return!1;if(h+=2,c=t.src.slice(h,C),o)return!0;for(c.trim().slice(-2)==="$$"&&(c=c.trim().slice(0,-2),p=!0),_=e;!p&&(_++,!(_>=a||(h=t.bMarks[_]+t.tShift[_],C=t.eMarks[_],h /g,">").replace(/"/g,""").replace(/'/g,"'")}var Pf=function(e,a){a=a||{},a.katex&&(ri=a.katex),a.blockClass||(a.blockClass="");var o=function(u){a.displayMode=!1;try{return ri.renderToString(u,a)}catch(p){return a.throwOnError&&console.log(p),`${Gr(u)} `}},c=function(u,p){return o(u[p].content)},s=function(u){a.displayMode=!0;try{return``+ri.renderToString(u,a)+"
"}catch(p){return a.throwOnError&&console.log(p),`${Gr(u)}
`}},_=function(u,p){return s(u[p].content)+`
+`};e.inline.ruler.after("escape","math_inline",Lf),e.block.ruler.after("blockquote","math_block",kf,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=c,e.renderer.rules.math_block=_};const Ff=Yl(Pf);function Bf(t,e){var a,o,c=t.attrs[t.attrIndex("href")][1];for(a=0;a{const a=t[e],o=typeof a;(o==="object"||o==="function")&&!Object.isFrozen(a)&&Xm(a)}),t}class Mu{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Zm(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function In(t,...e){const a=Object.create(null);for(const o in t)a[o]=t[o];return e.forEach(function(o){for(const c in o)a[c]=o[c]}),a}const qf="",wu=t=>!!t.scope,zf=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const a=t.split(".");return[`${e}${a.shift()}`,...a.map((o,c)=>`${o}${"_".repeat(c+1)}`)].join(" ")}return`${e}${t}`};class Hf{constructor(e,a){this.buffer="",this.classPrefix=a.classPrefix,e.walk(this)}addText(e){this.buffer+=Zm(e)}openNode(e){if(!wu(e))return;const a=zf(e.scope,{prefix:this.classPrefix});this.span(a)}closeNode(e){wu(e)&&(this.buffer+=qf)}value(){return this.buffer}span(e){this.buffer+=``}}const Lu=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Xl{constructor(){this.rootNode=Lu(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const a=Lu({scope:e});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,a){return typeof a=="string"?e.addText(a):a.children&&(e.openNode(a),a.children.forEach(o=>this._walk(e,o)),e.closeNode(a)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(a=>typeof a=="string")?e.children=[e.children.join("")]:e.children.forEach(a=>{Xl._collapse(a)}))}}class Vf extends Xl{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,a){const o=e.root;a&&(o.scope=`language:${a}`),this.add(o)}toHTML(){return new Hf(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function mr(t){return t?typeof t=="string"?t:t.source:null}function Jm(t){return kn("(?=",t,")")}function Wf(t){return kn("(?:",t,")*")}function $f(t){return kn("(?:",t,")?")}function kn(...t){return t.map(a=>mr(a)).join("")}function Kf(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Zl(...t){return"("+(Kf(t).capture?"":"?:")+t.map(o=>mr(o)).join("|")+")"}function jm(t){return new RegExp(t.toString()+"|").exec("").length-1}function Qf(t,e){const a=t&&t.exec(e);return a&&a.index===0}const Xf=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Jl(t,{joinWith:e}){let a=0;return t.map(o=>{a+=1;const c=a;let s=mr(o),_="";for(;s.length>0;){const u=Xf.exec(s);if(!u){_+=s;break}_+=s.substring(0,u.index),s=s.substring(u.index+u[0].length),u[0][0]==="\\"&&u[1]?_+="\\"+String(Number(u[1])+c):(_+=u[0],u[0]==="("&&a++)}return _}).map(o=>`(${o})`).join(e)}const Zf=/\b\B/,ep="[a-zA-Z]\\w*",jl="[a-zA-Z_]\\w*",tp="\\b\\d+(\\.\\d+)?",np="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",rp="\\b(0b[01]+)",Jf="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",jf=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=kn(e,/.*\b/,t.binary,/\b.*/)),In({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(a,o)=>{a.index!==0&&o.ignoreMatch()}},t)},pr={begin:"\\\\[\\s\\S]",relevance:0},eb={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pr]},tb={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pr]},nb={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Jr=function(t,e,a={}){const o=In({scope:"comment",begin:t,end:e,contains:[]},a);o.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const c=Zl("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return o.contains.push({begin:kn(/[ ]+/,"(",c,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),o},rb=Jr("//","$"),ab=Jr("/\\*","\\*/"),ib=Jr("#","$"),ob={scope:"number",begin:tp,relevance:0},sb={scope:"number",begin:np,relevance:0},lb={scope:"number",begin:rp,relevance:0},cb={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pr,{begin:/\[/,end:/\]/,relevance:0,contains:[pr]}]},ub={scope:"title",begin:ep,relevance:0},db={scope:"title",begin:jl,relevance:0},_b={begin:"\\.\\s*"+jl,relevance:0},mb=function(t){return Object.assign(t,{"on:begin":(e,a)=>{a.data._beginMatch=e[1]},"on:end":(e,a)=>{a.data._beginMatch!==e[1]&&a.ignoreMatch()}})};var Yr=Object.freeze({__proto__:null,APOS_STRING_MODE:eb,BACKSLASH_ESCAPE:pr,BINARY_NUMBER_MODE:lb,BINARY_NUMBER_RE:rp,COMMENT:Jr,C_BLOCK_COMMENT_MODE:ab,C_LINE_COMMENT_MODE:rb,C_NUMBER_MODE:sb,C_NUMBER_RE:np,END_SAME_AS_BEGIN:mb,HASH_COMMENT_MODE:ib,IDENT_RE:ep,MATCH_NOTHING_RE:Zf,METHOD_GUARD:_b,NUMBER_MODE:ob,NUMBER_RE:tp,PHRASAL_WORDS_MODE:nb,QUOTE_STRING_MODE:tb,REGEXP_MODE:cb,RE_STARTERS_RE:Jf,SHEBANG:jf,TITLE_MODE:ub,UNDERSCORE_IDENT_RE:jl,UNDERSCORE_TITLE_MODE:db});function pb(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function gb(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Eb(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=pb,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Sb(t,e){Array.isArray(t.illegal)&&(t.illegal=Zl(...t.illegal))}function fb(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function bb(t,e){t.relevance===void 0&&(t.relevance=1)}const hb=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const a=Object.assign({},t);Object.keys(t).forEach(o=>{delete t[o]}),t.keywords=a.keywords,t.begin=kn(a.beforeMatch,Jm(a.begin)),t.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},t.relevance=0,delete a.beforeMatch},Tb=["of","and","for","in","not","or","if","then","parent","list","value"],Cb="keyword";function ap(t,e,a=Cb){const o=Object.create(null);return typeof t=="string"?c(a,t.split(" ")):Array.isArray(t)?c(a,t):Object.keys(t).forEach(function(s){Object.assign(o,ap(t[s],e,s))}),o;function c(s,_){e&&(_=_.map(u=>u.toLowerCase())),_.forEach(function(u){const p=u.split("|");o[p[0]]=[s,Rb(p[0],p[1])]})}}function Rb(t,e){return e?Number(e):Nb(t)?0:1}function Nb(t){return Tb.includes(t.toLowerCase())}const ku={},Ln=t=>{console.error(t)},Pu=(t,...e)=>{console.log(`WARN: ${t}`,...e)},$n=(t,e)=>{ku[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),ku[`${t}/${e}`]=!0)},$r=new Error;function ip(t,e,{key:a}){let o=0;const c=t[a],s={},_={};for(let u=1;u<=e.length;u++)_[u+o]=c[u],s[u+o]=!0,o+=jm(e[u-1]);t[a]=_,t[a]._emit=s,t[a]._multi=!0}function Ob(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Ln("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$r;if(typeof t.beginScope!="object"||t.beginScope===null)throw Ln("beginScope must be object"),$r;ip(t,t.begin,{key:"beginScope"}),t.begin=Jl(t.begin,{joinWith:""})}}function yb(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Ln("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$r;if(typeof t.endScope!="object"||t.endScope===null)throw Ln("endScope must be object"),$r;ip(t,t.end,{key:"endScope"}),t.end=Jl(t.end,{joinWith:""})}}function Ab(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function vb(t){Ab(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Ob(t),yb(t)}function Ib(t){function e(_,u){return new RegExp(mr(_),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(u?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(u,p){p.position=this.position++,this.matchIndexes[this.matchAt]=p,this.regexes.push([p,u]),this.matchAt+=jm(u)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const u=this.regexes.map(p=>p[1]);this.matcherRe=e(Jl(u,{joinWith:"|"}),!0),this.lastIndex=0}exec(u){this.matcherRe.lastIndex=this.lastIndex;const p=this.matcherRe.exec(u);if(!p)return null;const S=p.findIndex((C,A)=>A>0&&C!==void 0),h=this.matchIndexes[S];return p.splice(0,S),Object.assign(p,h)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(u){if(this.multiRegexes[u])return this.multiRegexes[u];const p=new a;return this.rules.slice(u).forEach(([S,h])=>p.addRule(S,h)),p.compile(),this.multiRegexes[u]=p,p}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(u,p){this.rules.push([u,p]),p.type==="begin"&&this.count++}exec(u){const p=this.getMatcher(this.regexIndex);p.lastIndex=this.lastIndex;let S=p.exec(u);if(this.resumingScanAtSamePosition()&&!(S&&S.index===this.lastIndex)){const h=this.getMatcher(0);h.lastIndex=this.lastIndex+1,S=h.exec(u)}return S&&(this.regexIndex+=S.position+1,this.regexIndex===this.count&&this.considerAll()),S}}function c(_){const u=new o;return _.contains.forEach(p=>u.addRule(p.begin,{rule:p,type:"begin"})),_.terminatorEnd&&u.addRule(_.terminatorEnd,{type:"end"}),_.illegal&&u.addRule(_.illegal,{type:"illegal"}),u}function s(_,u){const p=_;if(_.isCompiled)return p;[gb,fb,vb,hb].forEach(h=>h(_,u)),t.compilerExtensions.forEach(h=>h(_,u)),_.__beforeBegin=null,[Eb,Sb,bb].forEach(h=>h(_,u)),_.isCompiled=!0;let S=null;return typeof _.keywords=="object"&&_.keywords.$pattern&&(_.keywords=Object.assign({},_.keywords),S=_.keywords.$pattern,delete _.keywords.$pattern),S=S||/\w+/,_.keywords&&(_.keywords=ap(_.keywords,t.case_insensitive)),p.keywordPatternRe=e(S,!0),u&&(_.begin||(_.begin=/\B|\b/),p.beginRe=e(p.begin),!_.end&&!_.endsWithParent&&(_.end=/\B|\b/),_.end&&(p.endRe=e(p.end)),p.terminatorEnd=mr(p.end)||"",_.endsWithParent&&u.terminatorEnd&&(p.terminatorEnd+=(_.end?"|":"")+u.terminatorEnd)),_.illegal&&(p.illegalRe=e(_.illegal)),_.contains||(_.contains=[]),_.contains=[].concat(..._.contains.map(function(h){return Db(h==="self"?_:h)})),_.contains.forEach(function(h){s(h,p)}),_.starts&&s(_.starts,u),p.matcher=c(p),p}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=In(t.classNameAliases||{}),s(t)}function op(t){return t?t.endsWithParent||op(t.starts):!1}function Db(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return In(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:op(t)?In(t,{starts:t.starts?In(t.starts):null}):Object.isFrozen(t)?In(t):t}var xb="11.9.0";class Mb extends Error{constructor(e,a){super(e),this.name="HTMLInjectionError",this.html=a}}const ai=Zm,Fu=In,Bu=Symbol("nomatch"),wb=7,sp=function(t){const e=Object.create(null),a=Object.create(null),o=[];let c=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",_={disableAutodetect:!0,name:"Plain text",contains:[]};let u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Vf};function p(W){return u.noHighlightRe.test(W)}function S(W){let re=W.className+" ";re+=W.parentNode?W.parentNode.className:"";const pe=u.languageDetectRe.exec(re);if(pe){const Ce=ne(pe[1]);return Ce||(Pu(s.replace("{}",pe[1])),Pu("Falling back to no-highlight mode for this block.",W)),Ce?pe[1]:"no-highlight"}return re.split(/\s+/).find(Ce=>p(Ce)||ne(Ce))}function h(W,re,pe){let Ce="",J="";typeof re=="object"?(Ce=W,pe=re.ignoreIllegals,J=re.language):($n("10.7.0","highlight(lang, code, ...args) has been deprecated."),$n("10.7.0",`Please use highlight(code, options) instead.
+https://github.com/highlightjs/highlight.js/issues/2277`),J=W,Ce=re),pe===void 0&&(pe=!0);const Fe={code:Ce,language:J};he("before:highlight",Fe);const Ve=Fe.result?Fe.result:C(Fe.language,Fe.code,pe);return Ve.code=Fe.code,he("after:highlight",Ve),Ve}function C(W,re,pe,Ce){const J=Object.create(null);function Fe(j,ce){return j.keywords[ce]}function Ve(){if(!_e.keywords){$e.addText(Be);return}let j=0;_e.keywordPatternRe.lastIndex=0;let ce=_e.keywordPatternRe.exec(Be),ge="";for(;ce;){ge+=Be.substring(j,ce.index);const xe=at.case_insensitive?ce[0].toLowerCase():ce[0],Qe=Fe(_e,xe);if(Qe){const[ue,Re]=Qe;if($e.addText(ge),ge="",J[xe]=(J[xe]||0)+1,J[xe]<=wb&&(xt+=Re),ue.startsWith("_"))ge+=ce[0];else{const oe=at.classNameAliases[ue]||ue;be(ce[0],oe)}}else ge+=ce[0];j=_e.keywordPatternRe.lastIndex,ce=_e.keywordPatternRe.exec(Be)}ge+=Be.substring(j),$e.addText(ge)}function ae(){if(Be==="")return;let j=null;if(typeof _e.subLanguage=="string"){if(!e[_e.subLanguage]){$e.addText(Be);return}j=C(_e.subLanguage,Be,!0,Ot[_e.subLanguage]),Ot[_e.subLanguage]=j._top}else j=N(Be,_e.subLanguage.length?_e.subLanguage:null);_e.relevance>0&&(xt+=j.relevance),$e.__addSublanguage(j._emitter,j.language)}function de(){_e.subLanguage!=null?ae():Ve(),Be=""}function be(j,ce){j!==""&&($e.startScope(ce),$e.addText(j),$e.endScope())}function ve(j,ce){let ge=1;const xe=ce.length-1;for(;ge<=xe;){if(!j._emit[ge]){ge++;continue}const Qe=at.classNameAliases[j[ge]]||j[ge],ue=ce[ge];Qe?be(ue,Qe):(Be=ue,Ve(),Be=""),ge++}}function Ie(j,ce){return j.scope&&typeof j.scope=="string"&&$e.openNode(at.classNameAliases[j.scope]||j.scope),j.beginScope&&(j.beginScope._wrap?(be(Be,at.classNameAliases[j.beginScope._wrap]||j.beginScope._wrap),Be=""):j.beginScope._multi&&(ve(j.beginScope,ce),Be="")),_e=Object.create(j,{parent:{value:_e}}),_e}function Ye(j,ce,ge){let xe=Qf(j.endRe,ge);if(xe){if(j["on:end"]){const Qe=new Mu(j);j["on:end"](ce,Qe),Qe.isMatchIgnored&&(xe=!1)}if(xe){for(;j.endsParent&&j.parent;)j=j.parent;return j}}if(j.endsWithParent)return Ye(j.parent,ce,ge)}function et(j){return _e.matcher.regexIndex===0?(Be+=j[0],1):(ft=!0,0)}function ze(j){const ce=j[0],ge=j.rule,xe=new Mu(ge),Qe=[ge.__beforeBegin,ge["on:begin"]];for(const ue of Qe)if(ue&&(ue(j,xe),xe.isMatchIgnored))return et(ce);return ge.skip?Be+=ce:(ge.excludeBegin&&(Be+=ce),de(),!ge.returnBegin&&!ge.excludeBegin&&(Be=ce)),Ie(ge,j),ge.returnBegin?0:ce.length}function st(j){const ce=j[0],ge=re.substring(j.index),xe=Ye(_e,j,ge);if(!xe)return Bu;const Qe=_e;_e.endScope&&_e.endScope._wrap?(de(),be(ce,_e.endScope._wrap)):_e.endScope&&_e.endScope._multi?(de(),ve(_e.endScope,j)):Qe.skip?Be+=ce:(Qe.returnEnd||Qe.excludeEnd||(Be+=ce),de(),Qe.excludeEnd&&(Be=ce));do _e.scope&&$e.closeNode(),!_e.skip&&!_e.subLanguage&&(xt+=_e.relevance),_e=_e.parent;while(_e!==xe.parent);return xe.starts&&Ie(xe.starts,j),Qe.returnEnd?0:ce.length}function rt(){const j=[];for(let ce=_e;ce!==at;ce=ce.parent)ce.scope&&j.unshift(ce.scope);j.forEach(ce=>$e.openNode(ce))}let Nt={};function Dt(j,ce){const ge=ce&&ce[0];if(Be+=j,ge==null)return de(),0;if(Nt.type==="begin"&&ce.type==="end"&&Nt.index===ce.index&&ge===""){if(Be+=re.slice(ce.index,ce.index+1),!c){const xe=new Error(`0 width match regex (${W})`);throw xe.languageName=W,xe.badRule=Nt.rule,xe}return 1}if(Nt=ce,ce.type==="begin")return ze(ce);if(ce.type==="illegal"&&!pe){const xe=new Error('Illegal lexeme "'+ge+'" for mode "'+(_e.scope||"")+'"');throw xe.mode=_e,xe}else if(ce.type==="end"){const xe=st(ce);if(xe!==Bu)return xe}if(ce.type==="illegal"&&ge==="")return 1;if(Mt>1e5&&Mt>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Be+=ge,ge.length}const at=ne(W);if(!at)throw Ln(s.replace("{}",W)),new Error('Unknown language: "'+W+'"');const Gt=Ib(at);let Tt="",_e=Ce||Gt;const Ot={},$e=new u.__emitter(u);rt();let Be="",xt=0,St=0,Mt=0,ft=!1;try{if(at.__emitTokens)at.__emitTokens(re,$e);else{for(_e.matcher.considerAll();;){Mt++,ft?ft=!1:_e.matcher.considerAll(),_e.matcher.lastIndex=St;const j=_e.matcher.exec(re);if(!j)break;const ce=re.substring(St,j.index),ge=Dt(ce,j);St=j.index+ge}Dt(re.substring(St))}return $e.finalize(),Tt=$e.toHTML(),{language:W,value:Tt,relevance:xt,illegal:!1,_emitter:$e,_top:_e}}catch(j){if(j.message&&j.message.includes("Illegal"))return{language:W,value:ai(re),illegal:!0,relevance:0,_illegalBy:{message:j.message,index:St,context:re.slice(St-100,St+100),mode:j.mode,resultSoFar:Tt},_emitter:$e};if(c)return{language:W,value:ai(re),illegal:!1,relevance:0,errorRaised:j,_emitter:$e,_top:_e};throw j}}function A(W){const re={value:ai(W),illegal:!1,relevance:0,_top:_,_emitter:new u.__emitter(u)};return re._emitter.addText(W),re}function N(W,re){re=re||u.languages||Object.keys(e);const pe=A(W),Ce=re.filter(ne).filter(ee).map(de=>C(de,W,!1));Ce.unshift(pe);const J=Ce.sort((de,be)=>{if(de.relevance!==be.relevance)return be.relevance-de.relevance;if(de.language&&be.language){if(ne(de.language).supersetOf===be.language)return 1;if(ne(be.language).supersetOf===de.language)return-1}return 0}),[Fe,Ve]=J,ae=Fe;return ae.secondBest=Ve,ae}function O(W,re,pe){const Ce=re&&a[re]||pe;W.classList.add("hljs"),W.classList.add(`language-${Ce}`)}function L(W){let re=null;const pe=S(W);if(p(pe))return;if(he("before:highlightElement",{el:W,language:pe}),W.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",W);return}if(W.children.length>0&&(u.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(W)),u.throwUnescapedHTML))throw new Mb("One of your code blocks includes unescaped HTML.",W.innerHTML);re=W;const Ce=re.textContent,J=pe?h(Ce,{language:pe,ignoreIllegals:!0}):N(Ce);W.innerHTML=J.value,W.dataset.highlighted="yes",O(W,pe,J.language),W.result={language:J.language,re:J.relevance,relevance:J.relevance},J.secondBest&&(W.secondBest={language:J.secondBest.language,relevance:J.secondBest.relevance}),he("after:highlightElement",{el:W,result:J,text:Ce})}function P(W){u=Fu(u,W)}const x=()=>{Y(),$n("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function G(){Y(),$n("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let z=!1;function Y(){if(document.readyState==="loading"){z=!0;return}document.querySelectorAll(u.cssSelector).forEach(L)}function q(){z&&Y()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",q,!1);function H(W,re){let pe=null;try{pe=re(t)}catch(Ce){if(Ln("Language definition for '{}' could not be registered.".replace("{}",W)),c)Ln(Ce);else throw Ce;pe=_}pe.name||(pe.name=W),e[W]=pe,pe.rawDefinition=re.bind(null,t),pe.aliases&&Se(pe.aliases,{languageName:W})}function te(W){delete e[W];for(const re of Object.keys(a))a[re]===W&&delete a[re]}function Q(){return Object.keys(e)}function ne(W){return W=(W||"").toLowerCase(),e[W]||e[a[W]]}function Se(W,{languageName:re}){typeof W=="string"&&(W=[W]),W.forEach(pe=>{a[pe.toLowerCase()]=re})}function ee(W){const re=ne(W);return re&&!re.disableAutodetect}function Ne(W){W["before:highlightBlock"]&&!W["before:highlightElement"]&&(W["before:highlightElement"]=re=>{W["before:highlightBlock"](Object.assign({block:re.el},re))}),W["after:highlightBlock"]&&!W["after:highlightElement"]&&(W["after:highlightElement"]=re=>{W["after:highlightBlock"](Object.assign({block:re.el},re))})}function Ae(W){Ne(W),o.push(W)}function Oe(W){const re=o.indexOf(W);re!==-1&&o.splice(re,1)}function he(W,re){const pe=W;o.forEach(function(Ce){Ce[pe]&&Ce[pe](re)})}function Pe(W){return $n("10.7.0","highlightBlock will be removed entirely in v12.0"),$n("10.7.0","Please use highlightElement now."),L(W)}Object.assign(t,{highlight:h,highlightAuto:N,highlightAll:Y,highlightElement:L,highlightBlock:Pe,configure:P,initHighlighting:x,initHighlightingOnLoad:G,registerLanguage:H,unregisterLanguage:te,listLanguages:Q,getLanguage:ne,registerAliases:Se,autoDetection:ee,inherit:Fu,addPlugin:Ae,removePlugin:Oe}),t.debugMode=function(){c=!1},t.safeMode=function(){c=!0},t.versionString=xb,t.regex={concat:kn,lookahead:Jm,either:Zl,optional:$f,anyNumberOfTimes:Wf};for(const W in Yr)typeof Yr[W]=="object"&&Xm(Yr[W]);return Object.assign(t,Yr),t},Zn=sp({});Zn.newInstance=()=>sp({});var Lb=Zn;Zn.HighlightJS=Zn;Zn.default=Zn;var ii,Uu;function kb(){if(Uu)return ii;Uu=1;function t(e){const a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",s="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",p="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",S="разделительстраниц разделительстрок символтабуляции ",h="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",C="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",A="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",N=S+h+C+A,O="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",L="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",P="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",x="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",G="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",z="отображениевремениэлементовпланировщика ",Y="типфайлаформатированногодокумента ",q="обходрезультатазапроса типзаписизапроса ",H="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",te="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",Q="типизмеренияпостроителязапроса ",ne="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",Se="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",ee="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",Ne="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",Ae="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",Oe="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",he="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",Pe="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",W="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",re="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",pe="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",Ce=O+L+P+x+G+z+Y+q+H+te+Q+ne+Se+ee+Ne+Ae+Oe+he+Pe+W+re+pe,Ve="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ae="null истина ложь неопределено",de=e.inherit(e.NUMBER_MODE),be={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},ve={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Ie=e.inherit(e.C_LINE_COMMENT_MODE),Ye={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:a,keyword:s+p},contains:[Ie]},et={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},ze={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:a,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:a,keyword:"знач",literal:ae},contains:[de,be,ve]},Ie]},e.inherit(e.TITLE_MODE,{begin:a})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:a,keyword:s,built_in:N,class:Ce,type:Ve,literal:ae},contains:[Ye,ze,Ie,et,de,be,ve]}}return ii=t,ii}var oi,Gu;function Pb(){if(Gu)return oi;Gu=1;function t(e){const a=e.regex,o=/^[a-zA-Z][a-zA-Z0-9-]*/,c=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],s=e.COMMENT(/;/,/$/),_={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},u={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},p={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},S={scope:"symbol",match:/%[si](?=".*")/},h={scope:"attribute",match:a.concat(o,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:c,contains:[{scope:"operator",match:/=\/?/},h,s,_,u,p,S,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return oi=t,oi}var si,Yu;function Fb(){if(Yu)return si;Yu=1;function t(e){const a=e.regex,o=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:a.concat(/"/,a.either(...o)),end:/"/,keywords:o,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return si=t,si}var li,qu;function Bb(){if(qu)return li;qu=1;function t(e){const a=e.regex,o=/[a-zA-Z_$][a-zA-Z0-9_$]*/,c=a.concat(o,a.concat("(\\.",o,")*")),s=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,_={className:"rest_arg",begin:/[.]{3}/,end:o,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_]},{begin:a.concat(/:\s*/,s)}]},e.METHOD_GUARD],illegal:/#/}}return li=t,li}var ci,zu;function Ub(){if(zu)return ci;zu=1;function t(e){const a="\\d(_|\\d)*",o="[eE][-+]?"+a,c=a+"(\\."+a+")?("+o+")?",s="\\w+",u="\\b("+(a+"#"+s+"(\\."+s+")?#("+o+")?")+"|"+c+")",p="[A-Za-z](_?[A-Za-z0-9.])*",S=`[]\\{\\}%#'"`,h=e.COMMENT("--","$"),C={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:S,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:p,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[h,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:u,relevance:0},{className:"symbol",begin:"'"+p},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:S},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[h,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:S},C,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:S}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:S},C]}}return ci=t,ci}var ui,Hu;function Gb(){if(Hu)return ui;Hu=1;function t(e){const a={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},o={className:"symbol",begin:"[a-zA-Z0-9_]+@"},c={className:"keyword",begin:"<",end:">",contains:[a,o]};return a.contains=[c],o.contains=[c],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},a,o,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return ui=t,ui}var di,Vu;function Yb(){if(Vu)return di;Vu=1;function t(e){const a={className:"number",begin:/[$%]\d+/},o={className:"number",begin:/\b\d+/},c={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[c,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",a]},c,o,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return di=t,di}var _i,Wu;function qb(){if(Wu)return _i;Wu=1;function t(e){const a=e.regex,o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,o]},s=e.COMMENT(/--/,/$/),_=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",s]}),u=[s,_,e.HASH_COMMENT_MODE],p=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],S=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[o,e.C_NUMBER_MODE,{className:"built_in",begin:a.concat(/\b/,a.either(...S),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:a.concat(/\b/,a.either(...p),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,c]},...u],illegal:/\/\/|->|=>|\[\[/}}return _i=t,_i}var mi,$u;function zb(){if($u)return mi;$u=1;function t(e){const a="[A-Za-z_][0-9A-Za-z_]*",o={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},c={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},s={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},u={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]};_.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,s,e.REGEXP_MODE];const p=_.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:o,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,s,{begin:/[{,]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:p}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:p}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return mi=t,mi}var pi,Ku;function Hb(){if(Ku)return pi;Ku=1;function t(a){const o=a.regex,c=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",_="[a-zA-Z_]\\w*::",u="<[^<>]+>",p="(?!struct)("+s+"|"+o.optional(_)+"[a-zA-Z_]\\w*"+o.optional(u)+")",S={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",C={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+h+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},A={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},N={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(C,{className:"string"}),{className:"string",begin:/<.*?>/},c,a.C_BLOCK_COMMENT_MODE]},O={className:"title",begin:o.optional(_)+a.IDENT_RE,relevance:0},L=o.optional(_)+a.IDENT_RE+"\\s*\\(",P=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],x=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],G=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],z=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],H={type:x,keyword:P,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:G},te={className:"function.dispatch",relevance:0,keywords:{_hint:z},begin:o.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,a.IDENT_RE,o.lookahead(/(<[^<>]+>|)\s*\(/))},Q=[te,N,S,c,a.C_BLOCK_COMMENT_MODE,A,C],ne={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:Q.concat([{begin:/\(/,end:/\)/,keywords:H,contains:Q.concat(["self"]),relevance:0}]),relevance:0},Se={className:"function",begin:"("+p+"[\\*&\\s]+)+"+L,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:H,relevance:0},{begin:L,returnBegin:!0,contains:[O],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[C,A]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[c,a.C_BLOCK_COMMENT_MODE,C,A,S,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",c,a.C_BLOCK_COMMENT_MODE,C,A,S]}]},S,c,a.C_BLOCK_COMMENT_MODE,N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:H,illegal:"",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ne,Se,te,Q,[N,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:H,contains:["self",S]},{begin:a.IDENT_RE+"::",keywords:H},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(a){const o={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},c=t(a),s=c.keywords;return s.type=[...s.type,...o.type],s.literal=[...s.literal,...o.literal],s.built_in=[...s.built_in,...o.built_in],s._hints=o._hints,c.name="Arduino",c.aliases=["ino"],c.supersetOf="cpp",c}return pi=e,pi}var gi,Qu;function Vb(){if(Qu)return gi;Qu=1;function t(e){const a={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},a,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return gi=t,gi}var Ei,Xu;function Wb(){if(Xu)return Ei;Xu=1;function t(e){const a=e.regex,o=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),c=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},_={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(_,{begin:/\(/,end:/\)/}),p=e.inherit(e.APOS_STRING_MODE,{className:"string"}),S=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",begin:c,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[_,S,p,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[_,u,S,p]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[S]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/`}function e8(e,t,r){const{styles:o,ids:n}=r;n.has(e)||o!==null&&(n.add(e),o.push(Q3(e,t)))}const t8=typeof document<"u";function Mn(){if(t8)return;const e=De(J3,null);if(e!==null)return{adapter:(t,r)=>e8(t,r,e),context:e}}function pv(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Ro}=H1(),Fc="vueuc-style";function vv(e){return e&-e}class r8{constructor(t,r){this.l=t,this.min=r;const o=new Array(t+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*o;for(;t>0;)i+=r[t],t-=vv(t);return i}getBound(t){let r=0,o=this.l;for(;o>r;){const n=Math.floor((r+o)/2),i=this.sum(n);if(i>t){o=n;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?yf("lazy-teleport",this.$slots):w(Sc,{disabled:this.disabled,to:this.mergedTo},yf("lazy-teleport",this.$slots)):null}}),ls={top:"bottom",bottom:"top",left:"right",right:"left"},mv={start:"end",center:"center",end:"start"},$d={top:"height",bottom:"height",left:"width",right:"width"},o8={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},n8={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},i8={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},bv={top:!0,bottom:!1,left:!0,right:!1},xv={top:"end",bottom:"start",left:"end",right:"start"};function a8(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l??"center",c={top:0,left:0};const d=(p,h,v)=>{let g=0,m=0;const x=r[p]-t[h]-t[p];return x>0&&o&&(v?m=bv[h]?x:-x:g=bv[h]?x:-x),{left:g,top:m}},u=a==="left"||a==="right";if(s!=="center"){const p=i8[e],h=ls[p],v=$d[p];if(r[v]>t[v]){if(t[p]+t[v]t[h]&&(s=mv[l])}else{const p=a==="bottom"||a==="top"?"left":"top",h=ls[p],v=$d[p],g=(r[v]-t[v])/2;(t[p]t[h]?(s=xv[p],c=d(v,p,u)):(s=xv[h],c=d(v,h,u)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),X0=be({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=De("VBinder"),r=Ft(()=>e.enabled!==void 0?e.enabled:e.show),o=U(null),n=U(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(s),f.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};zt(()=>{r.value&&(s(),i())});const l=Mn();c8.mount({id:"vueuc/binder",head:!0,anchorMetaName:Fc,ssr:l}),jt(()=>{a()}),K1(()=>{r.value&&s()});const s=()=>{if(!r.value)return;const f=o.value;if(f===null)return;const p=t.targetRef,{x:h,y:v,overlap:g}=e,m=h!==void 0&&v!==void 0?W3(h,v):Bd(p);f.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:x,minWidth:b,placement:y,internalShift:E,flip:C}=e;f.setAttribute("v-placement",y),g?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:_}=f;x==="target"?_.width=`${m.width}px`:x!==void 0?_.width=x:_.width="",b==="target"?_.minWidth=`${m.width}px`:b!==void 0?_.minWidth=b:_.minWidth="";const k=Bd(f),R=Bd(n.value),{left:A,top:B,placement:S}=a8(y,m,k,E,C,g),P=l8(S,g),{left:F,top:T,transform:H}=s8(S,R,m,B,A,g);f.setAttribute("v-placement",S),f.style.setProperty("--v-offset-left",`${Math.round(A)}px`),f.style.setProperty("--v-offset-top",`${Math.round(B)}px`),f.style.transform=`translateX(${F}) translateY(${T}) ${H}`,f.style.setProperty("--v-transform-origin",P),f.style.transformOrigin=P};lt(r,f=>{f?(i(),c()):a()});const c=()=>{Bt().then(s).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{lt(Re(e,f),s)}),["teleportDisabled"].forEach(f=>{lt(Re(e,f),c)}),lt(Re(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),f.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=wi(),u=Ft(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:u,syncPosition:s}},render(){return w(G0,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=w("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[w("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?$r(r,[[Ac,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var fi=[],d8=function(){return fi.some(function(e){return e.activeTargets.length>0})},u8=function(){return fi.some(function(e){return e.skippedTargets.length>0})},yv="ResizeObserver loop completed with undelivered notifications.",f8=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yv}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yv),window.dispatchEvent(e)},wl;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(wl||(wl={}));var hi=function(e){return Object.freeze(e)},h8=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,hi(this)}return e}(),ty=function(){function e(t,r,o,n){return this.x=t,this.y=r,this.width=o,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,hi(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,o=t.y,n=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:r,y:o,top:n,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Y0=function(e){return e instanceof SVGElement&&"getBBox"in e},ry=function(e){if(Y0(e)){var t=e.getBBox(),r=t.width,o=t.height;return!r&&!o}var n=e,i=n.offsetWidth,a=n.offsetHeight;return!(i||a||e.getClientRects().length)},Cv=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},p8=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ja=typeof window<"u"?window:{},ss=new WeakMap,wv=/auto|scroll/,v8=/^tb|vertical/,g8=/msie|trident/i.test(Ja.navigator&&Ja.navigator.userAgent),_o=function(e){return parseFloat(e||"0")},Xi=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new h8((r?t:e)||0,(r?e:t)||0)},Sv=hi({devicePixelContentBoxSize:Xi(),borderBoxSize:Xi(),contentBoxSize:Xi(),contentRect:new ty(0,0,0,0)}),oy=function(e,t){if(t===void 0&&(t=!1),ss.has(e)&&!t)return ss.get(e);if(ry(e))return ss.set(e,Sv),Sv;var r=getComputedStyle(e),o=Y0(e)&&e.ownerSVGElement&&e.getBBox(),n=!g8&&r.boxSizing==="border-box",i=v8.test(r.writingMode||""),a=!o&&wv.test(r.overflowY||""),l=!o&&wv.test(r.overflowX||""),s=o?0:_o(r.paddingTop),c=o?0:_o(r.paddingRight),d=o?0:_o(r.paddingBottom),u=o?0:_o(r.paddingLeft),f=o?0:_o(r.borderTopWidth),p=o?0:_o(r.borderRightWidth),h=o?0:_o(r.borderBottomWidth),v=o?0:_o(r.borderLeftWidth),g=u+c,m=s+d,x=v+p,b=f+h,y=l?e.offsetHeight-b-e.clientHeight:0,E=a?e.offsetWidth-x-e.clientWidth:0,C=n?g+x:0,_=n?m+b:0,k=o?o.width:_o(r.width)-C-E,R=o?o.height:_o(r.height)-_-y,A=k+g+E+x,B=R+m+y+b,S=hi({devicePixelContentBoxSize:Xi(Math.round(k*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:Xi(A,B,i),contentBoxSize:Xi(k,R,i),contentRect:new ty(u,s,k,R)});return ss.set(e,S),S},ny=function(e,t,r){var o=oy(e,r),n=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case wl.DEVICE_PIXEL_CONTENT_BOX:return a;case wl.BORDER_BOX:return n;default:return i}},m8=function(){function e(t){var r=oy(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=hi([r.borderBoxSize]),this.contentBoxSize=hi([r.contentBoxSize]),this.devicePixelContentBoxSize=hi([r.devicePixelContentBoxSize])}return e}(),iy=function(e){if(ry(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},b8=function(){var e=1/0,t=[];fi.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new m8(c.target),u=iy(c.target);l.push(d),c.lastReportedSize=ny(c.target,c.observedBox),ue?r.activeTargets.push(n):r.skippedTargets.push(n))})})},x8=function(){var e=0;for(_v(e);d8();)e=b8(),_v(e);return u8()&&f8(),e>0},Dd,ay=[],y8=function(){return ay.splice(0).forEach(function(e){return e()})},C8=function(e){if(!Dd){var t=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return y8()}).observe(r,o),Dd=function(){r.textContent="".concat(t?t--:t++)}}ay.push(e),Dd()},w8=function(e){C8(function(){requestAnimationFrame(e)})},As=0,S8=function(){return!!As},_8=250,E8={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ev=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],kv=function(e){return e===void 0&&(e=0),Date.now()+e},Ld=!1,k8=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=_8),!Ld){Ld=!0;var o=kv(t);w8(function(){var n=!1;try{n=x8()}finally{if(Ld=!1,t=o-kv(),!S8())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,E8)};document.body?r():Ja.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ev.forEach(function(r){return Ja.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ev.forEach(function(r){return Ja.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),wf=new k8,Pv=function(e){!As&&e>0&&wf.start(),As+=e,!As&&wf.stop()},P8=function(e){return!Y0(e)&&!p8(e)&&getComputedStyle(e).display==="inline"},T8=function(){function e(t,r){this.target=t,this.observedBox=r||wl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ny(this.target,this.observedBox,!0);return P8(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),R8=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),cs=new WeakMap,Tv=function(e,t){for(var r=0;r=0&&(i&&fi.splice(fi.indexOf(o),1),o.observationTargets.splice(n,1),Pv(-1))},e.disconnect=function(t){var r=this,o=cs.get(t);o.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),A8=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ds.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Cv(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ds.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Cv(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ds.unobserve(this,t)},e.prototype.disconnect=function(){ds.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class F8{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||A8)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const o=this.elHandlersMap.get(r.target);o!==void 0&&o(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ys=new F8,Fo=be({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=Dr().proxy;function o(n){const{onResize:i}=e;i!==void 0&&i(n)}zt(()=>{const n=r.$el;if(n===void 0){pv("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){pv("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(Ys.registerHandler(n.nextElementSibling,o),t=!0)}),jt(()=>{t&&Ys.unregisterHandler(r.$el.nextElementSibling)})},render(){return M0(this.$slots,"default")}});let us;function O8(){return typeof document>"u"?!1:(us===void 0&&("matchMedia"in window?us=window.matchMedia("(pointer:coarse)").matches:us=!1),us)}let zd;function Rv(){return typeof document>"u"?1:(zd===void 0&&(zd="chrome"in window?window.devicePixelRatio:1),zd)}const B8=Ro(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Ro("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Ro("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),ly=be({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Mn();B8.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Fc,ssr:t}),zt(()=>{const{defaultScrollIndex:B,defaultScrollKey:S}=e;B!=null?h({index:B}):S!=null&&h({key:S})});let r=!1,o=!1;z0(()=>{if(r=!1,!o){o=!0;return}h({top:u.value,left:d})}),Cc(()=>{r=!0,o||(o=!0)});const n=j(()=>{const B=new Map,{keyField:S}=e;return e.items.forEach((P,F)=>{B.set(P[S],F)}),B}),i=U(null),a=U(void 0),l=new Map,s=j(()=>{const{items:B,itemSize:S,keyField:P}=e,F=new r8(B.length,S);return B.forEach((T,H)=>{const N=T[P],W=l.get(N);W!==void 0&&F.add(H,W)}),F}),c=U(0);let d=0;const u=U(0),f=Ft(()=>Math.max(s.value.getBound(u.value-po(e.paddingTop))-1,0)),p=j(()=>{const{value:B}=a;if(B===void 0)return[];const{items:S,itemSize:P}=e,F=f.value,T=Math.min(F+Math.ceil(B/P+1),S.length-1),H=[];for(let N=F;N<=T;++N)H.push(S[N]);return H}),h=(B,S)=>{if(typeof B=="number"){x(B,S,"auto");return}const{left:P,top:F,index:T,key:H,position:N,behavior:W,debounce:re=!0}=B;if(P!==void 0||F!==void 0)x(P,F,W);else if(T!==void 0)m(T,W,re);else if(H!==void 0){const ee=n.value.get(H);ee!==void 0&&m(ee,W,re)}else N==="bottom"?x(0,Number.MAX_SAFE_INTEGER,W):N==="top"&&x(0,0,W)};let v,g=null;function m(B,S,P){const{value:F}=s,T=F.sum(B)+po(e.paddingTop);if(!P)i.value.scrollTo({left:0,top:T,behavior:S});else{v=B,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{v=void 0,g=null},16);const{scrollTop:H,offsetHeight:N}=i.value;if(T>H){const W=F.get(B);T+W<=H+N||i.value.scrollTo({left:0,top:T+W-N,behavior:S})}else i.value.scrollTo({left:0,top:T,behavior:S})}}function x(B,S,P){i.value.scrollTo({left:B,top:S,behavior:P})}function b(B,S){var P,F,T;if(r||e.ignoreItemResize||A(S.target))return;const{value:H}=s,N=n.value.get(B),W=H.get(N),re=(T=(F=(P=S.borderBoxSize)===null||P===void 0?void 0:P[0])===null||F===void 0?void 0:F.blockSize)!==null&&T!==void 0?T:S.contentRect.height;if(re===W)return;re-e.itemSize===0?l.delete(B):l.set(B,re-e.itemSize);const L=re-W;if(L===0)return;H.add(N,L);const M=i.value;if(M!=null){if(v===void 0){const G=H.sum(N);M.scrollTop>G&&M.scrollBy(0,L)}else if(NM.scrollTop+M.offsetHeight&&M.scrollBy(0,L)}R()}c.value++}const y=!O8();let E=!1;function C(B){var S;(S=e.onScroll)===null||S===void 0||S.call(e,B),(!y||!E)&&R()}function _(B){var S;if((S=e.onWheel)===null||S===void 0||S.call(e,B),y){const P=i.value;if(P!=null){if(B.deltaX===0&&(P.scrollTop===0&&B.deltaY<=0||P.scrollTop+P.offsetHeight>=P.scrollHeight&&B.deltaY>=0))return;B.preventDefault(),P.scrollTop+=B.deltaY/Rv(),P.scrollLeft+=B.deltaX/Rv(),R(),E=!0,ml(()=>{E=!1})}}}function k(B){if(r||A(B.target)||B.contentRect.height===a.value)return;a.value=B.contentRect.height;const{onResize:S}=e;S!==void 0&&S(B)}function R(){const{value:B}=i;B!=null&&(u.value=B.scrollTop,d=B.scrollLeft)}function A(B){let S=B;for(;S!==null;){if(S.style.display==="none")return!0;S=S.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:j(()=>{const{itemResizable:B}=e,S=Yo(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:B?"":S,minHeight:B?S:"",paddingTop:Yo(e.paddingTop),paddingBottom:Yo(e.paddingBottom)}]}),visibleItemsStyle:j(()=>(c.value,{transform:`translateY(${Yo(s.value.sum(f.value))})`})),viewportItems:p,listElRef:i,itemsElRef:U(null),scrollTo:h,handleListResize:k,handleListScroll:C,handleListWheel:_,handleItemResize:b}},render(){const{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:o}=this;return w(Fo,{onResize:this.handleListResize},{default:()=>{var n,i;return w("div",jr(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?w("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[w(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=r.get(l),c=this.$slots.default({item:a,index:s})[0];return e?w(Fo,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}}),I8=Ro(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Ro("&::-webkit-scrollbar",{width:0,height:0})]),$8=be({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=U(null);function t(n){!(n.currentTarget.offsetWidthf){const{updateCounter:C}=e;for(let _=b;_>=0;--_){const k=m-1-_;C!==void 0?C(k):d.textContent=`${k}`;const R=d.offsetWidth;if(v-=p[_],v+R<=f||_===0){g=!0,b=_-1,h&&(b===-1?(h.style.maxWidth=`${f-R}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:A}=e;A&&A(k);break}}}}const{onUpdateOverflow:x}=e;g?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(jo,""))}const i=Mn();return D8.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Fc,ssr:i}),zt(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:o,sync:n}},render(){const{$slots:e}=this;return Bt(()=>this.sync({showAllItemsBeforeCalculate:!1})),w("div",{class:"v-overflow",ref:"selfRef"},[M0(e,"default"),e.counter?e.counter():w("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function sy(e){return e instanceof HTMLElement}function cy(e){for(let t=0;t=0;t--){const r=e.childNodes[t];if(sy(r)&&(uy(r)||dy(r)))return!0}return!1}function uy(e){if(!L8(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function L8(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Aa=[];const fy=be({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Fn(),r=U(null),o=U(null);let n=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Aa[Aa.length-1]===t}function s(g){var m;g.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,g))}zt(()=>{lt(()=>e.active,g=>{g?(u(),kt("keydown",document,s)):(vt("keydown",document,s),n&&f())},{immediate:!0})}),jt(()=>{vt("keydown",document,s),n&&f()});function c(g){if(!i&&l()){const m=d();if(m===null||m.contains(Ji(g)))return;p("first")}}function d(){const g=r.value;if(g===null)return null;let m=g;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function u(){var g;if(!e.disabled){if(Aa.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?p("first"):(g=gv(m))===null||g===void 0||g.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",c,!0)}}function f(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),Aa=Aa.filter(x=>x!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(g=gv(m))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(g){if(l()&&e.active){const m=r.value,x=o.value;if(m!==null&&x!==null){const b=d();if(b==null||b===x){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const y=g==="first"?cy(b):dy(b);i=!1,y||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function h(g){if(i)return;const m=d();m!==null&&(g.relatedTarget!==null&&m.contains(g.relatedTarget)?p("last"):p("first"))}function v(g){i||(g.relatedTarget!==null&&g.relatedTarget===r.value?p("last"):p("first"))}return{focusableStartRef:r,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:v}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return w(rt,null,[w("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),w("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function hy(e,t){t&&(zt(()=>{const{value:r}=e;r&&Ys.registerHandler(r,t)}),jt(()=>{const{value:r}=e;r&&Ys.unregisterHandler(r)}))}let Di=0,Fv="",Ov="",Bv="",Iv="";const $v=U("0px");function z8(e){if(typeof document>"u")return;const t=document.documentElement;let r,o=!1;const n=()=>{t.style.marginRight=Fv,t.style.overflow=Ov,t.style.overflowX=Bv,t.style.overflowY=Iv,$v.value="0px"};zt(()=>{r=lt(e,i=>{if(i){if(!Di){const a=window.innerWidth-t.offsetWidth;a>0&&(Fv=t.style.marginRight,t.style.marginRight=`${a}px`,$v.value=`${a}px`),Ov=t.style.overflow,Bv=t.style.overflowX,Iv=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,Di++}else Di--,Di||n(),o=!1},{immediate:!0})}),jt(()=>{r==null||r(),o&&(Di--,Di||n(),o=!1)})}const Z0=U(!1),Dv=()=>{Z0.value=!0},Lv=()=>{Z0.value=!1};let Fa=0;const M8=()=>(Ci&&(zo(()=>{Fa||(window.addEventListener("compositionstart",Dv),window.addEventListener("compositionend",Lv)),Fa++}),jt(()=>{Fa<=1?(window.removeEventListener("compositionstart",Dv),window.removeEventListener("compositionend",Lv),Fa=0):Fa--})),Z0);function J0(e){const t={isDeactivated:!1};let r=!1;return z0(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),Cc(()=>{t.isDeactivated=!0,r||(r=!0)}),t}const py=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},Sf="n-form-item";function Si(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:o}={}){const n=De(Sf,null);ot(Sf,null);const i=j(r?()=>r(n):()=>{const{size:s}=e;if(s)return s;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),a=j(o?()=>o(n):()=>{const{disabled:s}=e;return s!==void 0?s:n?n.disabled.value:!1}),l=j(()=>{const{status:s}=e;return s||(n==null?void 0:n.mergedValidationStatus.value)});return jt(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var N8=typeof global=="object"&&global&&global.Object===Object&&global;const vy=N8;var H8=typeof self=="object"&&self&&self.Object===Object&&self,j8=vy||H8||Function("return this")();const xo=j8;var W8=xo.Symbol;const Bn=W8;var gy=Object.prototype,V8=gy.hasOwnProperty,U8=gy.toString,Oa=Bn?Bn.toStringTag:void 0;function K8(e){var t=V8.call(e,Oa),r=e[Oa];try{e[Oa]=void 0;var o=!0}catch{}var n=U8.call(e);return o&&(t?e[Oa]=r:delete e[Oa]),n}var q8=Object.prototype,G8=q8.toString;function X8(e){return G8.call(e)}var Y8="[object Null]",Z8="[object Undefined]",zv=Bn?Bn.toStringTag:void 0;function _i(e){return e==null?e===void 0?Z8:Y8:zv&&zv in Object(e)?K8(e):X8(e)}function In(e){return e!=null&&typeof e=="object"}var J8="[object Symbol]";function Oc(e){return typeof e=="symbol"||In(e)&&_i(e)==J8}function my(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r0){if(++t>=Fk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $k(e){return function(){return e}}var Dk=function(){try{var e=ki(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Zs=Dk;var Lk=Zs?function(e,t){return Zs(e,"toString",{configurable:!0,enumerable:!1,value:$k(t),writable:!0})}:Q0;const zk=Lk;var Mk=Ik(zk);const Nk=Mk;var Hk=9007199254740991,jk=/^(?:0|[1-9]\d*)$/;function th(e,t){var r=typeof e;return t=t??Hk,!!t&&(r=="number"||r!="symbol"&&jk.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Xk}function fa(e){return e!=null&&oh(e.length)&&!eh(e)}function Yk(e,t,r){if(!Jr(r))return!1;var o=typeof t;return(o=="number"?fa(r)&&th(t,r.length):o=="string"&&t in r)?jl(r[t],e):!1}function Zk(e){return Gk(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&Yk(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o-1}function pT(e,t){var r=this.__data__,o=Bc(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tn?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o=o?e:zT(e,t,r)}var NT="\\ud800-\\udfff",HT="\\u0300-\\u036f",jT="\\ufe20-\\ufe2f",WT="\\u20d0-\\u20ff",VT=HT+jT+WT,UT="\\ufe0e\\ufe0f",KT="\\u200d",qT=RegExp("["+KT+NT+VT+UT+"]");function Ry(e){return qT.test(e)}function GT(e){return e.split("")}var Ay="\\ud800-\\udfff",XT="\\u0300-\\u036f",YT="\\ufe20-\\ufe2f",ZT="\\u20d0-\\u20ff",JT=XT+YT+ZT,QT="\\ufe0e\\ufe0f",e6="["+Ay+"]",Ef="["+JT+"]",kf="\\ud83c[\\udffb-\\udfff]",t6="(?:"+Ef+"|"+kf+")",Fy="[^"+Ay+"]",Oy="(?:\\ud83c[\\udde6-\\uddff]){2}",By="[\\ud800-\\udbff][\\udc00-\\udfff]",r6="\\u200d",Iy=t6+"?",$y="["+QT+"]?",o6="(?:"+r6+"(?:"+[Fy,Oy,By].join("|")+")"+$y+Iy+")*",n6=$y+Iy+o6,i6="(?:"+[Fy+Ef+"?",Ef,Oy,By,e6].join("|")+")",a6=RegExp(kf+"(?="+kf+")|"+i6+n6,"g");function l6(e){return e.match(a6)||[]}function s6(e){return Ry(e)?l6(e):GT(e)}function c6(e){return function(t){t=$c(t);var r=Ry(t)?s6(t):void 0,o=r?r[0]:t.charAt(0),n=r?MT(r,1).join(""):t.slice(1);return o[e]()+n}}var d6=c6("toUpperCase");const u6=d6;function f6(e,t,r,o){var n=-1,i=e==null?0:e.length;for(o&&i&&(r=e[++n]);++nl))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=r&DR?new tc:void 0;for(i.set(e,t),i.set(t,e);++u=t||_<0||u&&k>=i}function m(){var C=jd();if(g(C))return x(C);l=setTimeout(m,v(C))}function x(C){return l=void 0,f&&o?p(C):(o=n=void 0,a)}function b(){l!==void 0&&clearTimeout(l),c=0,o=s=n=l=void 0}function y(){return l===void 0?a:x(jd())}function E(){var C=jd(),_=g(C);if(o=arguments,n=this,s=C,_){if(l===void 0)return h(s);if(u)return clearTimeout(l),l=setTimeout(m,t),p(s)}return l===void 0&&(l=setTimeout(m,t)),a}return E.cancel=b,E.flush=y,E}function Af(e,t,r){(r!==void 0&&!jl(e[t],r)||r===void 0&&!(t in e))&&rh(e,t,r)}function OA(e){return In(e)&&fa(e)}function Ff(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function BA(e){return Kk(e,_y(e))}function IA(e,t,r,o,n,i,a){var l=Ff(e,r),s=Ff(t,r),c=a.get(s);if(c){Af(e,r,c);return}var d=i?i(l,s,r+"",e,t,a):void 0,u=d===void 0;if(u){var f=Zr(s),p=!f&&Qs(s),h=!f&&!p&&ih(s);d=s,f||p||h?Zr(l)?d=l:OA(l)?d=Ak(l):p?(u=!1,d=cR(s,!0)):h?(u=!1,d=TR(s,!0)):d=[]:LT(s)||Js(s)?(d=l,Js(l)?d=BA(l):(!Jr(l)||eh(l))&&(d=RR(s))):u=!1}u&&(a.set(s,d),n(d,s,o,i,a),a.delete(s)),Af(e,r,d)}function eC(e,t,r,o,n){e!==t&&Qy(t,function(i,a){if(n||(n=new Oo),Jr(i))IA(e,t,a,r,eC,o,n);else{var l=o?o(Ff(e,a),i,a+"",e,t,n):void 0;l===void 0&&(l=i),Af(e,a,l)}},_y)}function $A(e,t){var r=-1,o=fa(e)?Array(e.length):[];return kA(e,function(n,i,a){o[++r]=t(n,i,a)}),o}function DA(e,t){var r=Zr(e)?my:$A;return r(e,yA(t))}var LA=tR(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const zA=LA;var MA=Zk(function(e,t,r){eC(e,t,r)});const ja=MA;var NA="Expected a function";function Wd(e,t,r){var o=!0,n=!0;if(typeof e!="function")throw new TypeError(NA);return Jr(r)&&(o="leading"in r?!!r.leading:o,n="trailing"in r?!!r.trailing:n),FA(e,t,{leading:o,maxWait:t,trailing:n})}const an={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:HA,fontFamily:jA,lineHeight:WA}=an,tC=Z("body",`
+ margin: 0;
+ font-size: ${HA};
+ font-family: ${jA};
+ line-height: ${WA};
+ -webkit-text-size-adjust: 100%;
+ -webkit-tap-highlight-color: transparent;
+`,[Z("input",`
+ font-family: inherit;
+ font-size: inherit;
+ `)]),Do="n-config-provider",Qi="naive-ui-style";function ze(e,t,r,o,n,i){const a=Mn(),l=De(Do,null);if(r){const c=()=>{const d=i==null?void 0:i.value;r.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Qi,ssr:a}),l!=null&&l.preflightStyleDisabled||tC.mount({id:"n-global",head:!0,anchorMetaName:Qi,ssr:a})};a?c():zo(c)}return j(()=>{var c;const{theme:{common:d,self:u,peers:f={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:v,peers:g}=p,{common:m=void 0,[e]:{common:x=void 0,self:b=void 0,peers:y={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:E=void 0,[e]:C={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:k={}}=C,R=ja({},d||x||m||o.common,E,_,v),A=ja((c=u||b||o.self)===null||c===void 0?void 0:c(R),h,C,p);return{common:R,self:A,peers:ja({},o.peers,y,f),peerOverrides:ja({},h.peers,k,g)}})}ze.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const kl="n";function nt(e={},t={defaultBordered:!0}){const r=De(Do,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:j(()=>{var o,n;const{bordered:i}=e;return i!==void 0?i:(n=(o=r==null?void 0:r.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:Ll(kl),namespaceRef:j(()=>r==null?void 0:r.mergedNamespaceRef.value)}}function rC(){const e=De(Do,null);return e?e.mergedClsPrefixRef:Ll(kl)}const VA={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},UA=VA,KA={name:"zh-TW",global:{undo:"復原",redo:"重做",confirm:"確定",clear:"清除"},Popconfirm:{positiveText:"確定",negativeText:"取消"},Cascader:{placeholder:"請選擇",loading:"載入中",loadingRequiredMessage:e=>`載入全部 ${e} 的子節點後才可選擇`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy 年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"清除",now:"現在",confirm:"確定",selectTime:"選擇時間",selectDate:"選擇日期",datePlaceholder:"選擇日期",datetimePlaceholder:"選擇日期時間",monthPlaceholder:"選擇月份",yearPlaceholder:"選擇年份",quarterPlaceholder:"選擇季度",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",total:e=>`共 ${e} 項`,selected:e=>`已選 ${e} 項`},Empty:{description:"無資料"},Select:{placeholder:"請選擇"},TimePicker:{placeholder:"請選擇時間",positiveText:"確定",negativeText:"取消",now:"現在",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"頁"},DynamicTags:{add:"新增"},Log:{loading:"載入中"},Input:{placeholder:"請輸入"},InputNumber:{placeholder:"請輸入"},DynamicInput:{create:"新增"},ThemeEditor:{title:"主題編輯器",clearAllVars:"清除全部變數",clearSearch:"清除搜尋",filterCompName:"過濾組件名稱",filterVarName:"過濾變數名稱",import:"匯入",export:"匯出",restore:"恢復預設"},Image:{tipPrevious:"上一張(←)",tipNext:"下一張(→)",tipCounterclockwise:"向左旋轉",tipClockwise:"向右旋轉",tipZoomOut:"縮小",tipZoomIn:"放大",tipDownload:"下載",tipClose:"關閉(Esc)",tipOriginalSize:"縮放到原始尺寸"}},qA=KA,GA={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Of=GA,XA={name:"ru-RU",global:{undo:"Отменить",redo:"Вернуть",confirm:"Подтвердить",clear:"Очистить"},Popconfirm:{positiveText:"Подтвердить",negativeText:"Отмена"},Cascader:{placeholder:"Выбрать",loading:"Загрузка",loadingRequiredMessage:e=>`Загрузите все дочерние узлы ${e} прежде чем они станут необязательными`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Очистить",now:"Сейчас",confirm:"Подтвердить",selectTime:"Выбрать время",selectDate:"Выбрать дату",datePlaceholder:"Выбрать дату",datetimePlaceholder:"Выбрать дату и время",monthPlaceholder:"Выберите месяц",yearPlaceholder:"Выберите год",quarterPlaceholder:"Выберите квартал",weekPlaceholder:"Select Week",startDatePlaceholder:"Дата начала",endDatePlaceholder:"Дата окончания",startDatetimePlaceholder:"Дата и время начала",endDatetimePlaceholder:"Дата и время окончания",startMonthPlaceholder:"Начало месяца",endMonthPlaceholder:"Конец месяца",monthBeforeYear:!0,firstDayOfWeek:0,today:"Сегодня"},DataTable:{checkTableAll:"Выбрать все в таблице",uncheckTableAll:"Отменить все в таблице",confirm:"Подтвердить",clear:"Очистить"},LegacyTransfer:{sourceTitle:"Источник",targetTitle:"Назначение"},Transfer:{selectAll:"Выбрать все",unselectAll:"Снять все",clearAll:"Очистить",total:e=>`Всего ${e} элементов`,selected:e=>`${e} выбрано элементов`},Empty:{description:"Нет данных"},Select:{placeholder:"Выбрать"},TimePicker:{placeholder:"Выбрать время",positiveText:"OK",negativeText:"Отменить",now:"Сейчас",clear:"Очистить"},Pagination:{goto:"Перейти",selectionSuffix:"страница"},DynamicTags:{add:"Добавить"},Log:{loading:"Загрузка"},Input:{placeholder:"Ввести"},InputNumber:{placeholder:"Ввести"},DynamicInput:{create:"Создать"},ThemeEditor:{title:"Редактор темы",clearAllVars:"Очистить все",clearSearch:"Очистить поиск",filterCompName:"Фильтровать по имени компонента",filterVarName:"Фильтровать имена переменных",import:"Импорт",export:"Экспорт",restore:"Сбросить"},Image:{tipPrevious:"Предыдущее изображение (←)",tipNext:"Следующее изображение (→)",tipCounterclockwise:"Против часовой стрелки",tipClockwise:"По часовой стрелке",tipZoomOut:"Отдалить",tipZoomIn:"Приблизить",tipDownload:"Скачать",tipClose:"Закрыть (Esc)",tipOriginalSize:"Вернуть исходный размер"}},YA=XA,ZA={name:"ko-KR",global:{undo:"실행 취소",redo:"다시 실행",confirm:"확인",clear:"지우기"},Popconfirm:{positiveText:"확인",negativeText:"취소"},Cascader:{placeholder:"선택해 주세요",loading:"불러오는 중",loadingRequiredMessage:e=>`${e}의 모든 하위 항목을 불러온 뒤에 선택할 수 있습니다.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy년",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"지우기",now:"현재",confirm:"확인",selectTime:"시간 선택",selectDate:"날짜 선택",datePlaceholder:"날짜 선택",datetimePlaceholder:"날짜 및 시간 선택",monthPlaceholder:"월 선택",yearPlaceholder:"년 선택",quarterPlaceholder:"분기 선택",weekPlaceholder:"Select Week",startDatePlaceholder:"시작 날짜",endDatePlaceholder:"종료 날짜",startDatetimePlaceholder:"시작 날짜 및 시간",endDatetimePlaceholder:"종료 날짜 및 시간",startMonthPlaceholder:"시작 월",endMonthPlaceholder:"종료 월",monthBeforeYear:!1,firstDayOfWeek:6,today:"오늘"},DataTable:{checkTableAll:"모두 선택",uncheckTableAll:"모두 선택 해제",confirm:"확인",clear:"지우기"},LegacyTransfer:{sourceTitle:"원본",targetTitle:"타깃"},Transfer:{selectAll:"전체 선택",unselectAll:"전체 해제",clearAll:"전체 삭제",total:e=>`총 ${e} 개`,selected:e=>`${e} 개 선택`},Empty:{description:"데이터 없음"},Select:{placeholder:"선택해 주세요"},TimePicker:{placeholder:"시간 선택",positiveText:"확인",negativeText:"취소",now:"현재 시간",clear:"지우기"},Pagination:{goto:"이동",selectionSuffix:"페이지"},DynamicTags:{add:"추가"},Log:{loading:"불러오는 중"},Input:{placeholder:"입력해 주세요"},InputNumber:{placeholder:"입력해 주세요"},DynamicInput:{create:"추가"},ThemeEditor:{title:"테마 편집기",clearAllVars:"모든 변수 지우기",clearSearch:"검색 지우기",filterCompName:"구성 요소 이름 필터",filterVarName:"변수 이름 필터",import:"가져오기",export:"내보내기",restore:"기본으로 재설정"},Image:{tipPrevious:"이전 (←)",tipNext:"다음 (→)",tipCounterclockwise:"시계 반대 방향으로 회전",tipClockwise:"시계 방향으로 회전",tipZoomOut:"축소",tipZoomIn:"확대",tipDownload:"다운로드",tipClose:"닫기 (Esc)",tipOriginalSize:"원본 크기로 확대"}},JA=ZA,QA={name:"es-AR",global:{undo:"Deshacer",redo:"Rehacer",confirm:"Confirmar",clear:"Borrar"},Popconfirm:{positiveText:"Confirmar",negativeText:"Cancelar"},Cascader:{placeholder:"Seleccionar por favor",loading:"Cargando",loadingRequiredMessage:e=>`Por favor, cargue los descendientes de ${e} antes de marcarlo.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Borrar",now:"Ahora",confirm:"Confirmar",selectTime:"Seleccionar hora",selectDate:"Seleccionar fecha",datePlaceholder:"Seleccionar fecha",datetimePlaceholder:"Seleccionar fecha y hora",monthPlaceholder:"Seleccionar mes",yearPlaceholder:"Seleccionar año",quarterPlaceholder:"Seleccionar Trimestre",weekPlaceholder:"Select Week",startDatePlaceholder:"Fecha de inicio",endDatePlaceholder:"Fecha final",startDatetimePlaceholder:"Fecha y hora de inicio",endDatetimePlaceholder:"Fecha y hora final",monthBeforeYear:!0,startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",firstDayOfWeek:6,today:"Hoy"},DataTable:{checkTableAll:"Seleccionar todo de la tabla",uncheckTableAll:"Deseleccionar todo de la tabla",confirm:"Confirmar",clear:"Limpiar"},LegacyTransfer:{sourceTitle:"Fuente",targetTitle:"Objetivo"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"Sin datos"},Select:{placeholder:"Seleccionar por favor"},TimePicker:{placeholder:"Seleccionar hora",positiveText:"OK",negativeText:"Cancelar",now:"Ahora",clear:"Borrar"},Pagination:{goto:"Ir a",selectionSuffix:"página"},DynamicTags:{add:"Agregar"},Log:{loading:"Cargando"},Input:{placeholder:"Ingrese datos por favor"},InputNumber:{placeholder:"Ingrese datos por favor"},DynamicInput:{create:"Crear"},ThemeEditor:{title:"Editor de Tema",clearAllVars:"Limpiar todas las variables",clearSearch:"Limpiar búsqueda",filterCompName:"Filtro para nombre del componente",filterVarName:"Filtro para nombre de la variable",import:"Importar",export:"Exportar",restore:"Restablecer los valores por defecto"},Image:{tipPrevious:"Imagen anterior (←)",tipNext:"Siguiente imagen (→)",tipCounterclockwise:"Sentido antihorario",tipClockwise:"Sentido horario",tipZoomOut:"Alejar",tipZoomIn:"Acercar",tipDownload:"Descargar",tipClose:"Cerrar (Esc)",tipOriginalSize:"Zoom to original size"}},eF=QA,tF={name:"vi-VN",global:{undo:"Hoàn tác",redo:"Làm lại",confirm:"Xác nhận",clear:"xóa"},Popconfirm:{positiveText:"Xác nhận",negativeText:"Hủy"},Cascader:{placeholder:"Vui lòng chọn",loading:"Đang tải",loadingRequiredMessage:e=>`Vui lòng tải tất cả thông tin con của ${e} trước.`},Time:{dateFormat:"",dateTimeFormat:"HH:mm:ss dd-MM-yyyy"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM-yyyy",dateFormat:"dd-MM-yyyy",dateTimeFormat:"HH:mm:ss dd-MM-yyyy",quarterFormat:"qqq-yyyy",weekFormat:"yyyy-w",clear:"Xóa",now:"Hôm nay",confirm:"Xác nhận",selectTime:"Chọn giờ",selectDate:"Chọn ngày",datePlaceholder:"Chọn ngày",datetimePlaceholder:"Chọn ngày giờ",monthPlaceholder:"Chọn tháng",yearPlaceholder:"Chọn năm",quarterPlaceholder:"Chọn quý",weekPlaceholder:"Select Week",startDatePlaceholder:"Ngày bắt đầu",endDatePlaceholder:"Ngày kết thúc",startDatetimePlaceholder:"Thời gian bắt đầu",endDatetimePlaceholder:"Thời gian kết thúc",startMonthPlaceholder:"Tháng bắt đầu",endMonthPlaceholder:"Tháng kết thúc",monthBeforeYear:!0,firstDayOfWeek:0,today:"Hôm nay"},DataTable:{checkTableAll:"Chọn tất cả có trong bảng",uncheckTableAll:"Bỏ chọn tất cả có trong bảng",confirm:"Xác nhận",clear:"Xóa"},LegacyTransfer:{sourceTitle:"Nguồn",targetTitle:"Đích"},Transfer:{selectAll:"Chọn tất cả",unselectAll:"Bỏ chọn tất cả",clearAll:"Xoá tất cả",total:e=>`Tổng cộng ${e} mục`,selected:e=>`${e} mục được chọn`},Empty:{description:"Không có dữ liệu"},Select:{placeholder:"Vui lòng chọn"},TimePicker:{placeholder:"Chọn thời gian",positiveText:"OK",negativeText:"Hủy",now:"Hiện tại",clear:"Xóa"},Pagination:{goto:"Đi đến trang",selectionSuffix:"trang"},DynamicTags:{add:"Thêm"},Log:{loading:"Đang tải"},Input:{placeholder:"Vui lòng nhập"},InputNumber:{placeholder:"Vui lòng nhập"},DynamicInput:{create:"Tạo"},ThemeEditor:{title:"Tùy chỉnh giao diện",clearAllVars:"Xóa tất cả các biến",clearSearch:"Xóa tìm kiếm",filterCompName:"Lọc tên component",filterVarName:"Lọc tên biến",import:"Nhập",export:"Xuất",restore:"Đặt lại mặc định"},Image:{tipPrevious:"Hình trước (←)",tipNext:"Hình tiếp (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Chiều kim đồng hồ",tipZoomOut:"Thu nhỏ",tipZoomIn:"Phóng to",tipDownload:"Tải về",tipClose:"Đóng (Esc)",tipOriginalSize:"Xem kích thước gốc"}},rF=tF;function Vd(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function Ba(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}function Ia(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?nF(l,function(u){return u.test(a)}):oF(l,function(u){return u.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function oF(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function nF(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var l=t.slice(n.length);return{value:a,rest:l}}}var aF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lF=function(t,r,o){var n,i=aF[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const sF=lF;var cF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dF={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uF={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fF={date:Vd({formats:cF,defaultWidth:"full"}),time:Vd({formats:dF,defaultWidth:"full"}),dateTime:Vd({formats:uF,defaultWidth:"full"})};const hF=fF;var pF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vF=function(t,r,o,n){return pF[t]};const gF=vF;var mF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yF={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},CF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SF=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},_F={ordinalNumber:SF,era:Ba({values:mF,defaultWidth:"wide"}),quarter:Ba({values:bF,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ba({values:xF,defaultWidth:"wide"}),day:Ba({values:yF,defaultWidth:"wide"}),dayPeriod:Ba({values:CF,defaultWidth:"wide",formattingValues:wF,defaultFormattingWidth:"wide"})};const EF=_F;var kF=/^(\d+)(th|st|nd|rd)?/i,PF=/\d+/i,TF={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},RF={any:[/^b/i,/^(a|c)/i]},AF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FF={any:[/1/i,/2/i,/3/i,/4/i]},OF={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},BF={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},IF={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$F={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},DF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},LF={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},zF={ordinalNumber:iF({matchPattern:kF,parsePattern:PF,valueCallback:function(t){return parseInt(t,10)}}),era:Ia({matchPatterns:TF,defaultMatchWidth:"wide",parsePatterns:RF,defaultParseWidth:"any"}),quarter:Ia({matchPatterns:AF,defaultMatchWidth:"wide",parsePatterns:FF,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ia({matchPatterns:OF,defaultMatchWidth:"wide",parsePatterns:BF,defaultParseWidth:"any"}),day:Ia({matchPatterns:IF,defaultMatchWidth:"wide",parsePatterns:$F,defaultParseWidth:"any"}),dayPeriod:Ia({matchPatterns:DF,defaultMatchWidth:"any",parsePatterns:LF,defaultParseWidth:"any"})};const MF=zF;var NF={code:"en-US",formatDistance:sF,formatLong:hF,formatRelative:gF,localize:EF,match:MF,options:{weekStartsOn:0,firstWeekContainsDate:1}};const HF=NF,jF={name:"en-US",locale:HF},WF=jF;function $n(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=De(Do,null)||{},o=j(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:Of[e]});return{dateLocaleRef:j(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:WF}),localeRef:o}}function Pi(e,t,r){if(!t)return;const o=Mn(),n=De(Do,null),i=()=>{const a=r.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Qi,props:{bPrefix:a?`.${a}-`:void 0},ssr:o}),n!=null&&n.preflightStyleDisabled||tC.mount({id:"n-global",head:!0,anchorMetaName:Qi,ssr:o})};o?i():zo(i)}function Ct(e,t,r,o){var n;r||yi("useThemeClass","cssVarsRef is not passed");const i=(n=De(Do,null))===null||n===void 0?void 0:n.mergedThemeHashRef,a=U(""),l=Mn();let s;const c=`__${e}`,d=()=>{let u=c;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(u+="-"+p),f&&(u+="-"+f);const{themeOverrides:h,builtinThemeOverrides:v}=o;h&&(u+="-"+xl(JSON.stringify(h))),v&&(u+="-"+xl(JSON.stringify(v))),a.value=u,s=()=>{const g=r.value;let m="";for(const x in g)m+=`${x}: ${g[x]};`;Z(`.${u}`,m).mount({id:u,ssr:l}),s=void 0}};return ar(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function dr(e,t,r){if(!t)return;const o=Mn(),n=j(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(l)return l}),i=()=>{ar(()=>{const{value:a}=r,l=`${a}${e}Rtl`;if(g3(l,o))return;const{value:s}=n;s&&s.style.mount({id:l,head:!0,anchorMetaName:Qi,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():zo(i),n}const VF=be({name:"Add",render(){return w("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),UF=be({name:"ArrowDown",render(){return w("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},w("g",{"fill-rule":"nonzero"},w("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function yo(e,t){return be({name:u6(e),setup(){var r;const o=(r=De(Do,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var n;const i=(n=o==null?void 0:o.value)===null||n===void 0?void 0:n[e];return i?i():t}}})}const gg=be({name:"Backward",render(){return w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),KF=be({name:"Checkmark",render(){return w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},w("g",{fill:"none"},w("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),dh=be({name:"ChevronRight",render(){return w("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),qF=yo("close",w("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),GF=be({name:"Eye",render(){return w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},w("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),w("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),XF=be({name:"EyeOff",render(){return w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},w("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),w("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),w("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),w("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),w("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),YF=yo("download",w("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),ZF=be({name:"Empty",render(){return w("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),w("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),uh=yo("error",w("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},w("g",{"fill-rule":"nonzero"},w("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),mg=be({name:"FastBackward",render(){return w("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),bg=be({name:"FastForward",render(){return w("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),JF=be({name:"Filter",render(){return w("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},w("g",{"fill-rule":"nonzero"},w("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),xg=be({name:"Forward",render(){return w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),rc=yo("info",w("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},w("g",{"fill-rule":"nonzero"},w("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),yg=be({name:"More",render(){return w("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),fh=yo("success",w("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},w("g",{"fill-rule":"nonzero"},w("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Lc=yo("warning",w("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},w("g",{"fill-rule":"nonzero"},w("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),oC=be({name:"ChevronDown",render(){return w("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),QF=yo("clear",w("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),eO=yo("rotateClockwise",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),w("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),tO=yo("rotateClockwise",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),w("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),rO=yo("zoomIn",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),w("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),oO=yo("zoomOut",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),w("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),nO=be({name:"ResizeSmall",render(){return w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},w("g",{fill:"none"},w("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),ha=be({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=wi();return()=>w(lr,{name:"icon-switch-transition",appear:r.value},t)}}),nC=be({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function o(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:l,width:s,appear:c,mode:d}=e,u=l?I1:lr,f={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:o,onAfterLeave:n};return l||(f.mode=d),w(u,f,t)}}}),iO=z("base-icon",`
+ height: 1em;
+ width: 1em;
+ line-height: 1em;
+ text-align: center;
+ display: inline-block;
+ position: relative;
+ fill: currentColor;
+ transform: translateZ(0);
+`,[Z("svg",`
+ height: 1em;
+ width: 1em;
+ `)]),wt=be({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Pi("-base-icon",iO,Re(e,"clsPrefix"))},render(){return w("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),aO=z("base-close",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ background-color: transparent;
+ color: var(--n-close-icon-color);
+ border-radius: var(--n-close-border-radius);
+ height: var(--n-close-size);
+ width: var(--n-close-size);
+ font-size: var(--n-close-icon-size);
+ outline: none;
+ border: none;
+ position: relative;
+ padding: 0;
+`,[Y("absolute",`
+ height: var(--n-close-icon-size);
+ width: var(--n-close-icon-size);
+ `),Z("&::before",`
+ content: "";
+ position: absolute;
+ width: var(--n-close-size);
+ height: var(--n-close-size);
+ left: 50%;
+ top: 50%;
+ transform: translateY(-50%) translateX(-50%);
+ transition: inherit;
+ border-radius: inherit;
+ `),St("disabled",[Z("&:hover",`
+ color: var(--n-close-icon-color-hover);
+ `),Z("&:hover::before",`
+ background-color: var(--n-close-color-hover);
+ `),Z("&:focus::before",`
+ background-color: var(--n-close-color-hover);
+ `),Z("&:active",`
+ color: var(--n-close-icon-color-pressed);
+ `),Z("&:active::before",`
+ background-color: var(--n-close-color-pressed);
+ `)]),Y("disabled",`
+ cursor: not-allowed;
+ color: var(--n-close-icon-color-disabled);
+ background-color: transparent;
+ `),Y("round",[Z("&::before",`
+ border-radius: 50%;
+ `)])]),pa=be({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Pi("-base-close",aO,Re(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:o,round:n,isButtonTag:i}=e;return w(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},w(wt,{clsPrefix:t},{default:()=>w(qF,null)}))}}}),lO=be({props:{onFocus:Function,onBlur:Function},setup(e){return()=>w("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:sO}=an;function so({originalTransform:e="",left:t=0,top:r=0,transition:o=`all .3s ${sO} !important`}={}){return[Z("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),Z("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),Z("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:o})]}const cO=Z([Z("@keyframes rotator",`
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }`),z("base-loading",`
+ position: relative;
+ line-height: 0;
+ width: 1em;
+ height: 1em;
+ `,[Q("transition-wrapper",`
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ `,[so()]),Q("placeholder",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ `,[so({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),Q("container",`
+ animation: rotator 3s linear infinite both;
+ `,[Q("icon",`
+ height: 1em;
+ width: 1em;
+ `)])])]),Ud="1.6s",dO={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},va=be({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},dO),setup(e){Pi("-base-loading",cO,Re(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:o,scale:n}=this,i=t/n;return w("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},w(ha,null,{default:()=>this.show?w("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},w("div",{class:`${e}-base-loading__container`},w("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},w("g",null,w("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Ud,fill:"freeze",repeatCount:"indefinite"}),w("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},w("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Ud,fill:"freeze",repeatCount:"indefinite"}),w("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Ud,fill:"freeze",repeatCount:"indefinite"})))))):w("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Cg(e){return Array.isArray(e)?e:[e]}const Bf={STOP:"STOP"};function iC(e,t){const r=t(e);e.children!==void 0&&r!==Bf.STOP&&e.children.forEach(o=>iC(o,t))}function uO(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(n)}return i(e),o}function fO(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function hO(e){return e.children}function pO(e){return e.key}function vO(){return!1}function gO(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function mO(e){return e.disabled===!0}function bO(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Kd(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function qd(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function xO(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function yO(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function CO(e){return(e==null?void 0:e.type)==="group"}function wO(e){const t=new Map;return e.forEach((r,o)=>{t.set(r.key,o)}),r=>{var o;return(o=t.get(r))!==null&&o!==void 0?o:null}}class SO extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function _O(e,t,r,o){return oc(t.concat(e),r,o,!1)}function EO(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function kO(e,t,r,o){const n=oc(t,r,o,!1),i=oc(e,r,o,!0),a=EO(e,r),l=[];return n.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>n.delete(s)),n}function Gd(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return o!==void 0?{checkedKeys:xO(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:yO(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;n!==void 0?u=kO(n,r,t,c):o!==void 0?u=_O(o,r,t,c):u=oc(r,t,c,!1);const f=s==="parent",p=s==="child"||l,h=u,v=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let m=g;m>=0;m-=1){const x=m===0,b=d.get(m);for(const y of b){if(y.isLeaf)continue;const{key:E,shallowLoaded:C}=y;if(p&&C&&y.children.forEach(A=>{!A.disabled&&!A.isLeaf&&A.shallowLoaded&&h.has(A.key)&&h.delete(A.key)}),y.disabled||!C)continue;let _=!0,k=!1,R=!0;for(const A of y.children){const B=A.key;if(!A.disabled){if(R&&(R=!1),h.has(B))k=!0;else if(v.has(B)){k=!0,_=!1;break}else if(_=!1,k)break}}_&&!R?(f&&y.children.forEach(A=>{!A.disabled&&h.has(A.key)&&h.delete(A.key)}),h.add(E)):k&&v.add(E),x&&p&&h.has(E)&&h.delete(E)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(v)}}function oc(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=n.get(s);c!==void 0&&iC(c,d=>{if(d.disabled)return Bf.STOP;const{key:u}=d;if(!a.has(u)&&(a.add(u),l.add(u),bO(d.rawNode,i))){if(o)return Bf.STOP;if(!r)throw new SO}})}),l}function PO(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let a=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),r||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function TO(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function RO(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function wg(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?AO:RO,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=hh(c,i);d!==null?l=d:s(n(c,r))}else{const d=n(c,!1);if(d!==null)s(d);else{const u=FO(c);u!=null&&u.isGroup?s(n(u,r)):r&&s(n(c,!0))}}}}return s(e),l}function AO(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function FO(e){return e.parent}function hh(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,a=r?-1:n,l=r?-1:1;for(let s=i;s!==a;s+=l){const c=o[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=hh(c,t);if(d!==null)return d}else return c}}return null}const OO={getChild(){return this.ignored?null:hh(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return wg(this,"next",e)},getPrev(e={}){return wg(this,"prev",e)}};function BO(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||r===void 0||r.has(a.key))&&n(a.children)})}return n(e),o}function IO(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function aC(e,t,r,o,n,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const u=Object.create(o);if(u.rawNode=s,u.siblings=l,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=n(s);Array.isArray(f)&&(u.children=aC(f,t,r,o,n,u,a+1))}l.push(u),t.set(u.key,u),r.has(a)||r.set(a,[]),(d=r.get(a))===null||d===void 0||d.push(u)}),l}function zc(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=mO,getIgnored:a=vO,getIsGroup:l=CO,getKey:s=pO}=t,c=(r=t.getChildren)!==null&&r!==void 0?r:hO,d=t.ignoreEmptyChildren?y=>{const E=c(y);return Array.isArray(E)?E.length?E:null:E}:c,u=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return fO(this.rawNode,d)},get shallowLoaded(){return gO(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(y){return IO(this,y)}},OO),f=aC(e,o,n,u,d);function p(y){if(y==null)return null;const E=o.get(y);return E&&!E.isGroup&&!E.ignored?E:null}function h(y){if(y==null)return null;const E=o.get(y);return E&&!E.ignored?E:null}function v(y,E){const C=h(y);return C?C.getPrev(E):null}function g(y,E){const C=h(y);return C?C.getNext(E):null}function m(y){const E=h(y);return E?E.getParent():null}function x(y){const E=h(y);return E?E.getChild():null}const b={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:d,getFlattenedNodes(y){return BO(f,y)},getNode:p,getPrev:v,getNext:g,getParent:m,getChild:x,getFirstAvailableNode(){return TO(f)},getPath(y,E={}){return PO(y,E,b)},getCheckedKeys(y,E={}){const{cascade:C=!0,leafOnly:_=!1,checkStrategy:k="all",allowNotLoaded:R=!1}=E;return Gd({checkedKeys:Kd(y),indeterminateKeys:qd(y),cascade:C,leafOnly:_,checkStrategy:k,allowNotLoaded:R},b)},check(y,E,C={}){const{cascade:_=!0,leafOnly:k=!1,checkStrategy:R="all",allowNotLoaded:A=!1}=C;return Gd({checkedKeys:Kd(E),indeterminateKeys:qd(E),keysToCheck:y==null?[]:Cg(y),cascade:_,leafOnly:k,checkStrategy:R,allowNotLoaded:A},b)},uncheck(y,E,C={}){const{cascade:_=!0,leafOnly:k=!1,checkStrategy:R="all",allowNotLoaded:A=!1}=C;return Gd({checkedKeys:Kd(E),indeterminateKeys:qd(E),keysToUncheck:y==null?[]:Cg(y),cascade:_,leafOnly:k,checkStrategy:R,allowNotLoaded:A},b)},getNonLeafKeys(y={}){return uO(f,y)}};return b}const je={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},$O=en(je.neutralBase),lC=en(je.neutralInvertBase),DO="rgba("+lC.slice(0,3).join(", ")+", ";function xt(e){return DO+String(e)+")"}function LO(e){const t=Array.from(lC);return t[3]=Number(e),Ke($O,t)}const zO=Object.assign(Object.assign({name:"common"},an),{baseColor:je.neutralBase,primaryColor:je.primaryDefault,primaryColorHover:je.primaryHover,primaryColorPressed:je.primaryActive,primaryColorSuppl:je.primarySuppl,infoColor:je.infoDefault,infoColorHover:je.infoHover,infoColorPressed:je.infoActive,infoColorSuppl:je.infoSuppl,successColor:je.successDefault,successColorHover:je.successHover,successColorPressed:je.successActive,successColorSuppl:je.successSuppl,warningColor:je.warningDefault,warningColorHover:je.warningHover,warningColorPressed:je.warningActive,warningColorSuppl:je.warningSuppl,errorColor:je.errorDefault,errorColorHover:je.errorHover,errorColorPressed:je.errorActive,errorColorSuppl:je.errorSuppl,textColorBase:je.neutralTextBase,textColor1:xt(je.alpha1),textColor2:xt(je.alpha2),textColor3:xt(je.alpha3),textColorDisabled:xt(je.alpha4),placeholderColor:xt(je.alpha4),placeholderColorDisabled:xt(je.alpha5),iconColor:xt(je.alpha4),iconColorDisabled:xt(je.alpha5),iconColorHover:xt(Number(je.alpha4)*1.25),iconColorPressed:xt(Number(je.alpha4)*.8),opacity1:je.alpha1,opacity2:je.alpha2,opacity3:je.alpha3,opacity4:je.alpha4,opacity5:je.alpha5,dividerColor:xt(je.alphaDivider),borderColor:xt(je.alphaBorder),closeIconColorHover:xt(Number(je.alphaClose)),closeIconColor:xt(Number(je.alphaClose)),closeIconColorPressed:xt(Number(je.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:xt(je.alpha4),clearColorHover:Yt(xt(je.alpha4),{alpha:1.25}),clearColorPressed:Yt(xt(je.alpha4),{alpha:.8}),scrollbarColor:xt(je.alphaScrollbar),scrollbarColorHover:xt(je.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:xt(je.alphaProgressRail),railColor:xt(je.alphaRail),popoverColor:je.neutralPopover,tableColor:je.neutralCard,cardColor:je.neutralCard,modalColor:je.neutralModal,bodyColor:je.neutralBody,tagColor:LO(je.alphaTag),avatarColor:xt(je.alphaAvatar),invertedColor:je.neutralBase,inputColor:xt(je.alphaInput),codeColor:xt(je.alphaCode),tabColor:xt(je.alphaTab),actionColor:xt(je.alphaAction),tableHeaderColor:xt(je.alphaAction),hoverColor:xt(je.alphaPending),tableColorHover:xt(je.alphaTablePending),tableColorStriped:xt(je.alphaTableStriped),pressedColor:xt(je.alphaPressed),opacityDisabled:je.alphaDisabled,inputColorDisabled:xt(je.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Fe=zO,Je={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},MO=en(Je.neutralBase),sC=en(Je.neutralInvertBase),NO="rgba("+sC.slice(0,3).join(", ")+", ";function Sg(e){return NO+String(e)+")"}function mr(e){const t=Array.from(sC);return t[3]=Number(e),Ke(MO,t)}const HO=Object.assign(Object.assign({name:"common"},an),{baseColor:Je.neutralBase,primaryColor:Je.primaryDefault,primaryColorHover:Je.primaryHover,primaryColorPressed:Je.primaryActive,primaryColorSuppl:Je.primarySuppl,infoColor:Je.infoDefault,infoColorHover:Je.infoHover,infoColorPressed:Je.infoActive,infoColorSuppl:Je.infoSuppl,successColor:Je.successDefault,successColorHover:Je.successHover,successColorPressed:Je.successActive,successColorSuppl:Je.successSuppl,warningColor:Je.warningDefault,warningColorHover:Je.warningHover,warningColorPressed:Je.warningActive,warningColorSuppl:Je.warningSuppl,errorColor:Je.errorDefault,errorColorHover:Je.errorHover,errorColorPressed:Je.errorActive,errorColorSuppl:Je.errorSuppl,textColorBase:Je.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:mr(Je.alpha4),placeholderColor:mr(Je.alpha4),placeholderColorDisabled:mr(Je.alpha5),iconColor:mr(Je.alpha4),iconColorHover:Yt(mr(Je.alpha4),{lightness:.75}),iconColorPressed:Yt(mr(Je.alpha4),{lightness:.9}),iconColorDisabled:mr(Je.alpha5),opacity1:Je.alpha1,opacity2:Je.alpha2,opacity3:Je.alpha3,opacity4:Je.alpha4,opacity5:Je.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:mr(Number(Je.alphaClose)),closeIconColorHover:mr(Number(Je.alphaClose)),closeIconColorPressed:mr(Number(Je.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:mr(Je.alpha4),clearColorHover:Yt(mr(Je.alpha4),{lightness:.75}),clearColorPressed:Yt(mr(Je.alpha4),{lightness:.9}),scrollbarColor:Sg(Je.alphaScrollbar),scrollbarColorHover:Sg(Je.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:mr(Je.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Je.neutralPopover,tableColor:Je.neutralCard,cardColor:Je.neutralCard,modalColor:Je.neutralModal,bodyColor:Je.neutralBody,tagColor:"#eee",avatarColor:mr(Je.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:mr(Je.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Je.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Oe=HO,jO={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},cC=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},jO),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:r,extraTextColor:o})},WO={name:"Empty",common:Oe,self:cC},Mo=WO,VO={name:"Empty",common:Fe,self:cC},Ti=VO,UO=z("empty",`
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ font-size: var(--n-font-size);
+`,[Q("icon",`
+ width: var(--n-icon-size);
+ height: var(--n-icon-size);
+ font-size: var(--n-icon-size);
+ line-height: var(--n-icon-size);
+ color: var(--n-icon-color);
+ transition:
+ color .3s var(--n-bezier);
+ `,[Z("+",[Q("description",`
+ margin-top: 8px;
+ `)])]),Q("description",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ `),Q("extra",`
+ text-align: center;
+ transition: color .3s var(--n-bezier);
+ margin-top: 12px;
+ color: var(--n-extra-text-color);
+ `)]),KO=Object.assign(Object.assign({},ze.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),dC=be({name:"Empty",props:KO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),o=ze("Empty","-empty",UO,Mo,e,t),{localeRef:n}=$n("Empty"),i=De(Do,null),a=j(()=>{var d,u,f;return(d=e.description)!==null&&d!==void 0?d:(f=(u=i==null?void 0:i.mergedComponentPropsRef.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.description}),l=j(()=>{var d,u;return((u=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||u===void 0?void 0:u.renderIcon)||(()=>w(ZF,null))}),s=j(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:u},self:{[ye("iconSize",d)]:f,[ye("fontSize",d)]:p,textColor:h,iconColor:v,extraTextColor:g}}=o.value;return{"--n-icon-size":f,"--n-font-size":p,"--n-bezier":u,"--n-text-color":h,"--n-icon-color":v,"--n-extra-text-color":g}}),c=r?Ct("empty",j(()=>{let d="";const{size:u}=e;return d+=u[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:j(()=>a.value||n.value.description),cssVars:r?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),w("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?w("div",{class:`${t}-empty__icon`},e.icon?e.icon():w(wt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?w("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?w("div",{class:`${t}-empty__extra`},e.extra()):null)}}),qO={railInsetHorizontal:"auto 2px 4px 2px",railInsetVertical:"2px 4px 2px auto",railColor:"transparent"},uC=e=>{const{scrollbarColor:t,scrollbarColorHover:r,scrollbarHeight:o,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},qO),{height:o,width:n,borderRadius:i,color:t,colorHover:r})},GO={name:"Scrollbar",common:Oe,self:uC},Pr=GO,XO={name:"Scrollbar",common:Fe,self:uC},Lr=XO,{cubicBezierEaseInOut:_g}=an;function Pl({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:o=_g,leaveCubicBezier:n=_g}={}){return[Z(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),Z(`&.${e}-transition-leave-active`,{transition:`all ${r} ${n}!important`}),Z(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Z(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const YO=z("scrollbar",`
+ overflow: hidden;
+ position: relative;
+ z-index: auto;
+ height: 100%;
+ width: 100%;
+`,[Z(">",[z("scrollbar-container",`
+ width: 100%;
+ overflow: scroll;
+ height: 100%;
+ min-height: inherit;
+ max-height: inherit;
+ scrollbar-width: none;
+ `,[Z("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
+ width: 0;
+ height: 0;
+ display: none;
+ `),Z(">",[z("scrollbar-content",`
+ box-sizing: border-box;
+ min-width: 100%;
+ `)])])]),Z(">, +",[z("scrollbar-rail",`
+ position: absolute;
+ pointer-events: none;
+ user-select: none;
+ background: var(--n-scrollbar-rail-color);
+ -webkit-user-select: none;
+ `,[Y("horizontal",`
+ inset: var(--n-scrollbar-rail-inset-horizontal);
+ height: var(--n-scrollbar-height);
+ `,[Z(">",[Q("scrollbar",`
+ height: var(--n-scrollbar-height);
+ border-radius: var(--n-scrollbar-border-radius);
+ right: 0;
+ `)])]),Y("vertical",`
+ inset: var(--n-scrollbar-rail-inset-vertical);
+ width: var(--n-scrollbar-width);
+ `,[Z(">",[Q("scrollbar",`
+ width: var(--n-scrollbar-width);
+ border-radius: var(--n-scrollbar-border-radius);
+ bottom: 0;
+ `)])]),Y("disabled",[Z(">",[Q("scrollbar","pointer-events: none;")])]),Z(">",[Q("scrollbar",`
+ z-index: 1;
+ position: absolute;
+ cursor: pointer;
+ pointer-events: all;
+ background-color: var(--n-scrollbar-color);
+ transition: background-color .2s var(--n-scrollbar-bezier);
+ `,[Pl(),Z("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),ZO=Object.assign(Object.assign({},ze.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),fC=be({name:"Scrollbar",props:ZO,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:o}=nt(e),n=dr("Scrollbar",o,t),i=U(null),a=U(null),l=U(null),s=U(null),c=U(null),d=U(null),u=U(null),f=U(null),p=U(null),h=U(null),v=U(null),g=U(0),m=U(0),x=U(!1),b=U(!1);let y=!1,E=!1,C,_,k=0,R=0,A=0,B=0;const S=N3(),P=ze("Scrollbar","-scrollbar",YO,Pr,e,t),F=j(()=>{const{value:K}=f,{value:fe}=d,{value:we}=h;return K===null||fe===null||we===null?0:Math.min(K,we*K/fe+po(P.value.self.width)*1.5)}),T=j(()=>`${F.value}px`),H=j(()=>{const{value:K}=p,{value:fe}=u,{value:we}=v;return K===null||fe===null||we===null?0:we*K/fe+po(P.value.self.height)*1.5}),N=j(()=>`${H.value}px`),W=j(()=>{const{value:K}=f,{value:fe}=g,{value:we}=d,{value:Le}=h;if(K===null||we===null||Le===null)return 0;{const We=we-K;return We?fe/We*(Le-F.value):0}}),re=j(()=>`${W.value}px`),ee=j(()=>{const{value:K}=p,{value:fe}=m,{value:we}=u,{value:Le}=v;if(K===null||we===null||Le===null)return 0;{const We=we-K;return We?fe/We*(Le-H.value):0}}),L=j(()=>`${ee.value}px`),M=j(()=>{const{value:K}=f,{value:fe}=d;return K!==null&&fe!==null&&fe>K}),G=j(()=>{const{value:K}=p,{value:fe}=u;return K!==null&&fe!==null&&fe>K}),J=j(()=>{const{trigger:K}=e;return K==="none"||x.value}),ge=j(()=>{const{trigger:K}=e;return K==="none"||b.value}),ve=j(()=>{const{container:K}=e;return K?K():a.value}),te=j(()=>{const{content:K}=e;return K?K():l.value}),ce=J0(()=>{e.container||Ee({top:g.value,left:m.value})}),X=()=>{ce.isDeactivated||ae()},le=K=>{if(ce.isDeactivated)return;const{onResize:fe}=e;fe&&fe(K),ae()},Ee=(K,fe)=>{if(!e.scrollable)return;if(typeof K=="number"){D(K,fe??0,0,!1,"auto");return}const{left:we,top:Le,index:We,elSize:Ue,position:qe,behavior:Xe,el:st,debounce:Ut=!0}=K;(we!==void 0||Le!==void 0)&&D(we??0,Le??0,0,!1,Xe),st!==void 0?D(0,st.offsetTop,st.offsetHeight,Ut,Xe):We!==void 0&&Ue!==void 0?D(0,We*Ue,Ue,Ut,Xe):qe==="bottom"?D(0,Number.MAX_SAFE_INTEGER,0,!1,Xe):qe==="top"&&D(0,0,0,!1,Xe)},_e=(K,fe)=>{if(!e.scrollable)return;const{value:we}=ve;we&&(typeof K=="object"?we.scrollBy(K):we.scrollBy(K,fe||0))};function D(K,fe,we,Le,We){const{value:Ue}=ve;if(Ue){if(Le){const{scrollTop:qe,offsetHeight:Xe}=Ue;if(fe>qe){fe+we<=qe+Xe||Ue.scrollTo({left:K,top:fe+we-Xe,behavior:We});return}}Ue.scrollTo({left:K,top:fe,behavior:We})}}function I(){Ce(),O(),ae()}function q(){ue()}function ue(){se(),me()}function se(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{b.value=!1},e.duration)}function me(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{x.value=!1},e.duration)}function Ce(){C!==void 0&&window.clearTimeout(C),x.value=!0}function O(){_!==void 0&&window.clearTimeout(_),b.value=!0}function $(K){const{onScroll:fe}=e;fe&&fe(K),V()}function V(){const{value:K}=ve;K&&(g.value=K.scrollTop,m.value=K.scrollLeft*(n!=null&&n.value?-1:1))}function ie(){const{value:K}=te;K&&(d.value=K.offsetHeight,u.value=K.offsetWidth);const{value:fe}=ve;fe&&(f.value=fe.offsetHeight,p.value=fe.offsetWidth);const{value:we}=c,{value:Le}=s;we&&(v.value=we.offsetWidth),Le&&(h.value=Le.offsetHeight)}function ne(){const{value:K}=ve;K&&(g.value=K.scrollTop,m.value=K.scrollLeft*(n!=null&&n.value?-1:1),f.value=K.offsetHeight,p.value=K.offsetWidth,d.value=K.scrollHeight,u.value=K.scrollWidth);const{value:fe}=c,{value:we}=s;fe&&(v.value=fe.offsetWidth),we&&(h.value=we.offsetHeight)}function ae(){e.scrollable&&(e.useUnifiedContainer?ne():(ie(),V()))}function oe(K){var fe;return!(!((fe=i.value)===null||fe===void 0)&&fe.contains(Ji(K)))}function he(K){K.preventDefault(),K.stopPropagation(),E=!0,kt("mousemove",window,$e,!0),kt("mouseup",window,He,!0),R=m.value,A=n!=null&&n.value?window.innerWidth-K.clientX:K.clientX}function $e(K){if(!E)return;C!==void 0&&window.clearTimeout(C),_!==void 0&&window.clearTimeout(_);const{value:fe}=p,{value:we}=u,{value:Le}=H;if(fe===null||we===null)return;const Ue=(n!=null&&n.value?window.innerWidth-K.clientX-A:K.clientX-A)*(we-fe)/(fe-Le),qe=we-fe;let Xe=R+Ue;Xe=Math.min(qe,Xe),Xe=Math.max(Xe,0);const{value:st}=ve;if(st){st.scrollLeft=Xe*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:Ut}=e;Ut&&Ut(Xe)}}function He(K){K.preventDefault(),K.stopPropagation(),vt("mousemove",window,$e,!0),vt("mouseup",window,He,!0),E=!1,ae(),oe(K)&&ue()}function Te(K){K.preventDefault(),K.stopPropagation(),y=!0,kt("mousemove",window,Ie,!0),kt("mouseup",window,Ge,!0),k=g.value,B=K.clientY}function Ie(K){if(!y)return;C!==void 0&&window.clearTimeout(C),_!==void 0&&window.clearTimeout(_);const{value:fe}=f,{value:we}=d,{value:Le}=F;if(fe===null||we===null)return;const Ue=(K.clientY-B)*(we-fe)/(fe-Le),qe=we-fe;let Xe=k+Ue;Xe=Math.min(qe,Xe),Xe=Math.max(Xe,0);const{value:st}=ve;st&&(st.scrollTop=Xe)}function Ge(K){K.preventDefault(),K.stopPropagation(),vt("mousemove",window,Ie,!0),vt("mouseup",window,Ge,!0),y=!1,ae(),oe(K)&&ue()}ar(()=>{const{value:K}=G,{value:fe}=M,{value:we}=t,{value:Le}=c,{value:We}=s;Le&&(K?Le.classList.remove(`${we}-scrollbar-rail--disabled`):Le.classList.add(`${we}-scrollbar-rail--disabled`)),We&&(fe?We.classList.remove(`${we}-scrollbar-rail--disabled`):We.classList.add(`${we}-scrollbar-rail--disabled`))}),zt(()=>{e.container||ae()}),jt(()=>{C!==void 0&&window.clearTimeout(C),_!==void 0&&window.clearTimeout(_),vt("mousemove",window,Ie,!0),vt("mouseup",window,Ge,!0)});const Me=j(()=>{const{common:{cubicBezierEaseInOut:K},self:{color:fe,colorHover:we,height:Le,width:We,borderRadius:Ue,railInsetHorizontal:qe,railInsetVertical:Xe,railColor:st}}=P.value;return{"--n-scrollbar-bezier":K,"--n-scrollbar-color":fe,"--n-scrollbar-color-hover":we,"--n-scrollbar-border-radius":Ue,"--n-scrollbar-width":We,"--n-scrollbar-height":Le,"--n-scrollbar-rail-inset-horizontal":qe,"--n-scrollbar-rail-inset-vertical":n!=null&&n.value?Q5(Xe):Xe,"--n-scrollbar-rail-color":st}}),Ye=r?Ct("scrollbar",void 0,Me,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ee,scrollBy:_e,sync:ae,syncUnifiedContainer:ne,handleMouseEnterWrapper:I,handleMouseLeaveWrapper:q}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:M,needXBar:G,yBarSizePx:T,xBarSizePx:N,yBarTopPx:re,xBarLeftPx:L,isShowXBar:J,isShowYBar:ge,isIos:S,handleScroll:$,handleContentResize:X,handleContainerResize:le,handleYScrollMouseDown:Te,handleXScrollMouseDown:he,cssVars:r?void 0:Me,themeClass:Ye==null?void 0:Ye.themeClass,onRender:Ye==null?void 0:Ye.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:o,rtlEnabled:n,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=(d,u)=>w("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`,d],"data-scrollbar-rail":!0,style:[u||"",this.verticalRailStyle],"aria-hidden":!0},w(a?bf:lr,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?w("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,u;return(d=this.onRender)===null||d===void 0||d.call(this),w("div",jr(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,n&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(u=t.default)===null||u===void 0?void 0:u.call(t):w("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},w(Fo,{onResize:this.handleContentResize},{default:()=>w("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),i?null:l(void 0,void 0),this.xScrollable&&w("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},w(a?bf:lr,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?w("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():w(Fo,{onResize:this.handleContainerResize},{default:s});return i?w(rt,null,c,l(this.themeClass,this.cssVars)):c}}),Nn=fC,hC=fC,JO={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},pC=e=>{const{borderRadius:t,popoverColor:r,textColor3:o,dividerColor:n,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:h,heightSmall:v,heightMedium:g,heightLarge:m,heightHuge:x}=e;return Object.assign(Object.assign({},JO),{optionFontSizeSmall:u,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:h,optionHeightSmall:v,optionHeightMedium:g,optionHeightLarge:m,optionHeightHuge:x,borderRadius:t,color:r,groupHeaderTextColor:o,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},QO={name:"InternalSelectMenu",common:Oe,peers:{Scrollbar:Pr,Empty:Mo},self:pC},ga=QO,eB={name:"InternalSelectMenu",common:Fe,peers:{Scrollbar:Lr,Empty:Ti},self:pC},Wl=eB;function tB(e,t){return w(lr,{name:"fade-in-scale-up-transition"},{default:()=>e?w(wt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>w(KF)}):null})}const Eg=be({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:r,multipleRef:o,valueSetRef:n,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:u,handleOptionMouseEnter:f}=De(U0),p=Ft(()=>{const{value:m}=r;return m?e.tmNode.key===m.key:!1});function h(m){const{tmNode:x}=e;x.disabled||u(m,x)}function v(m){const{tmNode:x}=e;x.disabled||f(m,x)}function g(m){const{tmNode:x}=e,{value:b}=p;x.disabled||b||f(m,x)}return{multiple:o,isGrouped:Ft(()=>{const{tmNode:m}=e,{parent:x}=m;return x&&x.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:p,isSelected:Ft(()=>{const{value:m}=t,{value:x}=o;if(m===null)return!1;const b=e.tmNode.rawNode[s.value];if(x){const{value:y}=n;return y.has(b)}else return m===b}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:g,handleMouseEnter:v,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:r,isPending:o,isGrouped:n,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:u}=this,f=tB(r,e),p=s?[s(t,r),i&&f]:[Vt(t[this.labelField],t,r),i&&f],h=a==null?void 0:a(t),v=w("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h==null?void 0:h.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:r,[`${e}-base-select-option--grouped`]:n,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(h==null?void 0:h.style)||"",t.style||""],onClick:Ya([c,h==null?void 0:h.onClick]),onMouseenter:Ya([d,h==null?void 0:h.onMouseenter]),onMousemove:Ya([u,h==null?void 0:h.onMousemove])}),w("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:v,option:t,selected:r}):l?l({node:v,option:t,selected:r}):v}}),kg=be({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:r,nodePropsRef:o}=De(U0);return{labelField:r,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:r,nodeProps:o,tmNode:{rawNode:n}}=this,i=o==null?void 0:o(n),a=t?t(n,!1):Vt(n[this.labelField],n,!1),l=w("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return n.render?n.render({node:l,option:n}):r?r({node:l,option:n,selected:!1}):l}}),{cubicBezierEaseIn:Pg,cubicBezierEaseOut:Tg}=an;function ma({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:o="",originalTransition:n=""}={}){return[Z("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Pg}, transform ${t} ${Pg} ${n&&","+n}`}),Z("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Tg}, transform ${t} ${Tg} ${n&&","+n}`}),Z("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${r})`}),Z("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const rB=z("base-select-menu",`
+ line-height: 1.5;
+ outline: none;
+ z-index: 0;
+ position: relative;
+ border-radius: var(--n-border-radius);
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ background-color: var(--n-color);
+`,[z("scrollbar",`
+ max-height: var(--n-height);
+ `),z("virtual-list",`
+ max-height: var(--n-height);
+ `),z("base-select-option",`
+ min-height: var(--n-option-height);
+ font-size: var(--n-option-font-size);
+ display: flex;
+ align-items: center;
+ `,[Q("content",`
+ z-index: 1;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ `)]),z("base-select-group-header",`
+ min-height: var(--n-option-height);
+ font-size: .93em;
+ display: flex;
+ align-items: center;
+ `),z("base-select-menu-option-wrapper",`
+ position: relative;
+ width: 100%;
+ `),Q("loading, empty",`
+ display: flex;
+ padding: 12px 32px;
+ flex: 1;
+ justify-content: center;
+ `),Q("loading",`
+ color: var(--n-loading-color);
+ font-size: var(--n-loading-size);
+ `),Q("header",`
+ padding: 8px var(--n-option-padding-left);
+ font-size: var(--n-option-font-size);
+ transition:
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ border-bottom: 1px solid var(--n-action-divider-color);
+ color: var(--n-action-text-color);
+ `),Q("action",`
+ padding: 8px var(--n-option-padding-left);
+ font-size: var(--n-option-font-size);
+ transition:
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ border-top: 1px solid var(--n-action-divider-color);
+ color: var(--n-action-text-color);
+ `),z("base-select-group-header",`
+ position: relative;
+ cursor: default;
+ padding: var(--n-option-padding);
+ color: var(--n-group-header-text-color);
+ `),z("base-select-option",`
+ cursor: pointer;
+ position: relative;
+ padding: var(--n-option-padding);
+ transition:
+ color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ box-sizing: border-box;
+ color: var(--n-option-text-color);
+ opacity: 1;
+ `,[Y("show-checkmark",`
+ padding-right: calc(var(--n-option-padding-right) + 20px);
+ `),Z("&::before",`
+ content: "";
+ position: absolute;
+ left: 4px;
+ right: 4px;
+ top: 0;
+ bottom: 0;
+ border-radius: var(--n-border-radius);
+ transition: background-color .3s var(--n-bezier);
+ `),Z("&:active",`
+ color: var(--n-option-text-color-pressed);
+ `),Y("grouped",`
+ padding-left: calc(var(--n-option-padding-left) * 1.5);
+ `),Y("pending",[Z("&::before",`
+ background-color: var(--n-option-color-pending);
+ `)]),Y("selected",`
+ color: var(--n-option-text-color-active);
+ `,[Z("&::before",`
+ background-color: var(--n-option-color-active);
+ `),Y("pending",[Z("&::before",`
+ background-color: var(--n-option-color-active-pending);
+ `)])]),Y("disabled",`
+ cursor: not-allowed;
+ `,[St("selected",`
+ color: var(--n-option-text-color-disabled);
+ `),Y("selected",`
+ opacity: var(--n-option-opacity-disabled);
+ `)]),Q("check",`
+ font-size: 16px;
+ position: absolute;
+ right: calc(var(--n-option-padding-right) - 4px);
+ top: calc(50% - 7px);
+ color: var(--n-option-check-color);
+ transition: color .3s var(--n-bezier);
+ `,[ma({enterScale:"0.5"})])])]),vC=be({name:"InternalSelectMenu",props:Object.assign(Object.assign({},ze.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e),o=dr("InternalSelectMenu",r,t),n=ze("InternalSelectMenu","-internal-select-menu",rB,ga,e,Re(e,"clsPrefix")),i=U(null),a=U(null),l=U(null),s=j(()=>e.treeMate.getFlattenedNodes()),c=j(()=>wO(s.value)),d=U(null);function u(){const{treeMate:M}=e;let G=null;const{value:J}=e;J===null?G=M.getFirstAvailableNode():(e.multiple?G=M.getNode((J||[])[(J||[]).length-1]):G=M.getNode(J),(!G||G.disabled)&&(G=M.getFirstAvailableNode())),F(G||null)}function f(){const{value:M}=d;M&&!e.treeMate.getNode(M.key)&&(d.value=null)}let p;lt(()=>e.show,M=>{M?p=lt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?u():f(),Bt(T)):f()},{immediate:!0}):p==null||p()},{immediate:!0}),jt(()=>{p==null||p()});const h=j(()=>po(n.value.self[ye("optionHeight",e.size)])),v=j(()=>kr(n.value.self[ye("padding",e.size)])),g=j(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),m=j(()=>{const M=s.value;return M&&M.length===0});function x(M){const{onToggle:G}=e;G&&G(M)}function b(M){const{onScroll:G}=e;G&&G(M)}function y(M){var G;(G=l.value)===null||G===void 0||G.sync(),b(M)}function E(){var M;(M=l.value)===null||M===void 0||M.sync()}function C(){const{value:M}=d;return M||null}function _(M,G){G.disabled||F(G,!1)}function k(M,G){G.disabled||x(G)}function R(M){var G;ho(M,"action")||(G=e.onKeyup)===null||G===void 0||G.call(e,M)}function A(M){var G;ho(M,"action")||(G=e.onKeydown)===null||G===void 0||G.call(e,M)}function B(M){var G;(G=e.onMousedown)===null||G===void 0||G.call(e,M),!e.focusable&&M.preventDefault()}function S(){const{value:M}=d;M&&F(M.getNext({loop:!0}),!0)}function P(){const{value:M}=d;M&&F(M.getPrev({loop:!0}),!0)}function F(M,G=!1){d.value=M,G&&T()}function T(){var M,G;const J=d.value;if(!J)return;const ge=c.value(J.key);ge!==null&&(e.virtualScroll?(M=a.value)===null||M===void 0||M.scrollTo({index:ge}):(G=l.value)===null||G===void 0||G.scrollTo({index:ge,elSize:h.value}))}function H(M){var G,J;!((G=i.value)===null||G===void 0)&&G.contains(M.target)&&((J=e.onFocus)===null||J===void 0||J.call(e,M))}function N(M){var G,J;!((G=i.value)===null||G===void 0)&&G.contains(M.relatedTarget)||(J=e.onBlur)===null||J===void 0||J.call(e,M)}ot(U0,{handleOptionMouseEnter:_,handleOptionClick:k,valueSetRef:g,pendingTmNodeRef:d,nodePropsRef:Re(e,"nodeProps"),showCheckmarkRef:Re(e,"showCheckmark"),multipleRef:Re(e,"multiple"),valueRef:Re(e,"value"),renderLabelRef:Re(e,"renderLabel"),renderOptionRef:Re(e,"renderOption"),labelFieldRef:Re(e,"labelField"),valueFieldRef:Re(e,"valueField")}),ot(Y1,i),zt(()=>{const{value:M}=l;M&&M.sync()});const W=j(()=>{const{size:M}=e,{common:{cubicBezierEaseInOut:G},self:{height:J,borderRadius:ge,color:ve,groupHeaderTextColor:te,actionDividerColor:ce,optionTextColorPressed:X,optionTextColor:le,optionTextColorDisabled:Ee,optionTextColorActive:_e,optionOpacityDisabled:D,optionCheckColor:I,actionTextColor:q,optionColorPending:ue,optionColorActive:se,loadingColor:me,loadingSize:Ce,optionColorActivePending:O,[ye("optionFontSize",M)]:$,[ye("optionHeight",M)]:V,[ye("optionPadding",M)]:ie}}=n.value;return{"--n-height":J,"--n-action-divider-color":ce,"--n-action-text-color":q,"--n-bezier":G,"--n-border-radius":ge,"--n-color":ve,"--n-option-font-size":$,"--n-group-header-text-color":te,"--n-option-check-color":I,"--n-option-color-pending":ue,"--n-option-color-active":se,"--n-option-color-active-pending":O,"--n-option-height":V,"--n-option-opacity-disabled":D,"--n-option-text-color":le,"--n-option-text-color-active":_e,"--n-option-text-color-disabled":Ee,"--n-option-text-color-pressed":X,"--n-option-padding":ie,"--n-option-padding-left":kr(ie,"left"),"--n-option-padding-right":kr(ie,"right"),"--n-loading-color":me,"--n-loading-size":Ce}}),{inlineThemeDisabled:re}=e,ee=re?Ct("internal-select-menu",j(()=>e.size[0]),W,e):void 0,L={selfRef:i,next:S,prev:P,getPendingTmNode:C};return hy(i,e.onResize),Object.assign({mergedTheme:n,mergedClsPrefix:t,rtlEnabled:o,virtualListRef:a,scrollbarRef:l,itemSize:h,padding:v,flattenedNodes:s,empty:m,virtualListContainer(){const{value:M}=a;return M==null?void 0:M.listElRef},virtualListContent(){const{value:M}=a;return M==null?void 0:M.itemsElRef},doScroll:b,handleFocusin:H,handleFocusout:N,handleKeyUp:R,handleKeyDown:A,handleMouseDown:B,handleVirtualListResize:E,handleVirtualListScroll:y,cssVars:re?void 0:W,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender},L)},render(){const{$slots:e,virtualScroll:t,clsPrefix:r,mergedTheme:o,themeClass:n,onRender:i}=this;return i==null||i(),w("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${r}-base-select-menu`,this.rtlEnabled&&`${r}-base-select-menu--rtl`,n,this.multiple&&`${r}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},Rt(e.header,a=>a&&w("div",{class:`${r}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?w("div",{class:`${r}-base-select-menu__loading`},w(va,{clsPrefix:r,strokeWidth:20})):this.empty?w("div",{class:`${r}-base-select-menu__empty`,"data-empty":!0},Br(e.empty,()=>[w(dC,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})])):w(Nn,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?w(ly,{ref:"virtualListRef",class:`${r}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?w(kg,{key:a.key,clsPrefix:r,tmNode:a}):a.ignored?null:w(Eg,{clsPrefix:r,key:a.key,tmNode:a})}):w("div",{class:`${r}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?w(kg,{key:a.key,clsPrefix:r,tmNode:a}):w(Eg,{clsPrefix:r,key:a.key,tmNode:a})))}),Rt(e.action,a=>a&&[w("div",{class:`${r}-base-select-menu__action`,"data-action":!0,key:"action"},a),w(lO,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),oB=z("base-wave",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+`),nB=be({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Pi("-base-wave",oB,Re(e,"clsPrefix"));const t=U(null),r=U(!1);let o=null;return jt(()=>{o!==null&&window.clearTimeout(o)}),{active:r,selfRef:t,play(){o!==null&&(window.clearTimeout(o),r.value=!1,o=null),Bt(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,r.value=!0,o=window.setTimeout(()=>{r.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return w("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),iB={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},gC=e=>{const{boxShadow2:t,popoverColor:r,textColor2:o,borderRadius:n,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},iB),{fontSize:i,borderRadius:n,color:r,dividerColor:a,textColor:o,boxShadow:t})},aB={name:"Popover",common:Oe,self:gC},Hn=aB,lB={name:"Popover",common:Fe,self:gC},Ri=lB,Xd={top:"bottom",bottom:"top",left:"right",right:"left"},or="var(--n-arrow-height) * 1.414",sB=Z([z("popover",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ position: relative;
+ font-size: var(--n-font-size);
+ color: var(--n-text-color);
+ box-shadow: var(--n-box-shadow);
+ word-break: break-word;
+ `,[Z(">",[z("scrollbar",`
+ height: inherit;
+ max-height: inherit;
+ `)]),St("raw",`
+ background-color: var(--n-color);
+ border-radius: var(--n-border-radius);
+ `,[St("scrollable",[St("show-header-or-footer","padding: var(--n-padding);")])]),Q("header",`
+ padding: var(--n-padding);
+ border-bottom: 1px solid var(--n-divider-color);
+ transition: border-color .3s var(--n-bezier);
+ `),Q("footer",`
+ padding: var(--n-padding);
+ border-top: 1px solid var(--n-divider-color);
+ transition: border-color .3s var(--n-bezier);
+ `),Y("scrollable, show-header-or-footer",[Q("content",`
+ padding: var(--n-padding);
+ `)])]),z("popover-shared",`
+ transform-origin: inherit;
+ `,[z("popover-arrow-wrapper",`
+ position: absolute;
+ overflow: hidden;
+ pointer-events: none;
+ `,[z("popover-arrow",`
+ transition: background-color .3s var(--n-bezier);
+ position: absolute;
+ display: block;
+ width: calc(${or});
+ height: calc(${or});
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
+ transform: rotate(45deg);
+ background-color: var(--n-color);
+ pointer-events: all;
+ `)]),Z("&.popover-transition-enter-from, &.popover-transition-leave-to",`
+ opacity: 0;
+ transform: scale(.85);
+ `),Z("&.popover-transition-enter-to, &.popover-transition-leave-from",`
+ transform: scale(1);
+ opacity: 1;
+ `),Z("&.popover-transition-enter-active",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .15s var(--n-bezier-ease-out),
+ transform .15s var(--n-bezier-ease-out);
+ `),Z("&.popover-transition-leave-active",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .15s var(--n-bezier-ease-in),
+ transform .15s var(--n-bezier-ease-in);
+ `)]),Kr("top-start",`
+ top: calc(${or} / -2);
+ left: calc(${Wo("top-start")} - var(--v-offset-left));
+ `),Kr("top",`
+ top: calc(${or} / -2);
+ transform: translateX(calc(${or} / -2)) rotate(45deg);
+ left: 50%;
+ `),Kr("top-end",`
+ top: calc(${or} / -2);
+ right: calc(${Wo("top-end")} + var(--v-offset-left));
+ `),Kr("bottom-start",`
+ bottom: calc(${or} / -2);
+ left: calc(${Wo("bottom-start")} - var(--v-offset-left));
+ `),Kr("bottom",`
+ bottom: calc(${or} / -2);
+ transform: translateX(calc(${or} / -2)) rotate(45deg);
+ left: 50%;
+ `),Kr("bottom-end",`
+ bottom: calc(${or} / -2);
+ right: calc(${Wo("bottom-end")} + var(--v-offset-left));
+ `),Kr("left-start",`
+ left: calc(${or} / -2);
+ top: calc(${Wo("left-start")} - var(--v-offset-top));
+ `),Kr("left",`
+ left: calc(${or} / -2);
+ transform: translateY(calc(${or} / -2)) rotate(45deg);
+ top: 50%;
+ `),Kr("left-end",`
+ left: calc(${or} / -2);
+ bottom: calc(${Wo("left-end")} + var(--v-offset-top));
+ `),Kr("right-start",`
+ right: calc(${or} / -2);
+ top: calc(${Wo("right-start")} - var(--v-offset-top));
+ `),Kr("right",`
+ right: calc(${or} / -2);
+ transform: translateY(calc(${or} / -2)) rotate(45deg);
+ top: 50%;
+ `),Kr("right-end",`
+ right: calc(${or} / -2);
+ bottom: calc(${Wo("right-end")} + var(--v-offset-top));
+ `),...DA({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),o=r?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",l=`calc((${`var(--v-target-${o}, 0px)`} - ${or}) / 2)`,s=Wo(n);return Z(`[v-placement="${n}"] >`,[z("popover-shared",[Y("center-arrow",[z("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Wo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Kr(e,t){const r=e.split("-")[0],o=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Z(`[v-placement="${e}"] >`,[z("popover-shared",`
+ margin-${Xd[r]}: var(--n-space);
+ `,[Y("show-arrow",`
+ margin-${Xd[r]}: var(--n-space-arrow);
+ `),Y("overlap",`
+ margin: 0;
+ `),C3("popover-arrow-wrapper",`
+ right: 0;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ ${r}: 100%;
+ ${Xd[r]}: auto;
+ ${o}
+ `,[z("popover-arrow",t)])])])}const mC=Object.assign(Object.assign({},ze.props),{to:$o.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),bC=({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:o,clsPrefix:n})=>w("div",{key:"__popover-arrow__",style:o,class:[`${n}-popover-arrow-wrapper`,r]},w("div",{class:[`${n}-popover-arrow`,e],style:t})),cB=be({name:"PopoverBody",inheritAttrs:!1,props:mC,setup(e,{slots:t,attrs:r}){const{namespaceRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:i}=nt(e),a=ze("Popover","-popover",sB,Hn,e,n),l=U(null),s=De("NPopover"),c=U(null),d=U(e.show),u=U(!1);ar(()=>{const{show:_}=e;_&&!w3()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=j(()=>{const{trigger:_,onClickoutside:k}=e,R=[],{positionManuallyRef:{value:A}}=s;return A||(_==="click"&&!k&&R.push([Cl,y,void 0,{capture:!0}]),_==="hover"&&R.push([q3,b])),k&&R.push([Cl,y,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&R.push([Qo,e.show]),R}),p=j(()=>{const _=e.width==="trigger"?void 0:Jt(e.width),k=[];_&&k.push({width:_});const{maxWidth:R,minWidth:A}=e;return R&&k.push({maxWidth:Jt(R)}),A&&k.push({maxWidth:Jt(A)}),i||k.push(h.value),k}),h=j(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:k,cubicBezierEaseOut:R},self:{space:A,spaceArrow:B,padding:S,fontSize:P,textColor:F,dividerColor:T,color:H,boxShadow:N,borderRadius:W,arrowHeight:re,arrowOffset:ee,arrowOffsetVertical:L}}=a.value;return{"--n-box-shadow":N,"--n-bezier":_,"--n-bezier-ease-in":k,"--n-bezier-ease-out":R,"--n-font-size":P,"--n-text-color":F,"--n-color":H,"--n-divider-color":T,"--n-border-radius":W,"--n-arrow-height":re,"--n-arrow-offset":ee,"--n-arrow-offset-vertical":L,"--n-padding":S,"--n-space":A,"--n-space-arrow":B}}),v=i?Ct("popover",void 0,h,e):void 0;s.setBodyInstance({syncPosition:g}),jt(()=>{s.setBodyInstance(null)}),lt(Re(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function g(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function m(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function x(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function b(_){e.trigger==="hover"&&!E().contains(Ji(_))&&s.handleMouseMoveOutside(_)}function y(_){(e.trigger==="click"&&!E().contains(Ji(_))||e.onClickoutside)&&s.handleClickOutside(_)}function E(){return s.getTriggerElement()}ot(Hl,c),ot(Rc,null),ot(Tc,null);function C(){if(v==null||v.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let k;const R=s.internalRenderBodyRef.value,{value:A}=n;if(R)k=R([`${A}-popover-shared`,v==null?void 0:v.themeClass.value,e.overlap&&`${A}-popover-shared--overlap`,e.showArrow&&`${A}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${A}-popover-shared--center-arrow`],c,p.value,m,x);else{const{value:B}=s.extraClassRef,{internalTrapFocus:S}=e,P=!mf(t.header)||!mf(t.footer),F=()=>{var T,H;const N=P?w(rt,null,Rt(t.header,ee=>ee?w("div",{class:[`${A}-popover__header`,e.headerClass],style:e.headerStyle},ee):null),Rt(t.default,ee=>ee?w("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Rt(t.footer,ee=>ee?w("div",{class:[`${A}-popover__footer`,e.footerClass],style:e.footerStyle},ee):null)):e.scrollable?(T=t.default)===null||T===void 0?void 0:T.call(t):w("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t),W=e.scrollable?w(hC,{contentClass:P?void 0:`${A}-popover__content ${(H=e.contentClass)!==null&&H!==void 0?H:""}`,contentStyle:P?void 0:e.contentStyle},{default:()=>N}):N,re=e.showArrow?bC({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:A}):null;return[W,re]};k=w("div",jr({class:[`${A}-popover`,`${A}-popover-shared`,v==null?void 0:v.themeClass.value,B.map(T=>`${A}-${T}`),{[`${A}-popover--scrollable`]:e.scrollable,[`${A}-popover--show-header-or-footer`]:P,[`${A}-popover--raw`]:e.raw,[`${A}-popover-shared--overlap`]:e.overlap,[`${A}-popover-shared--show-arrow`]:e.showArrow,[`${A}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:s.handleKeydown,onMouseenter:m,onMouseleave:x},r),S?w(fy,{active:e.show,autoFocus:!0},{default:F}):F())}return $r(k,f.value)}return{displayed:u,namespace:o,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:$o(e),followerEnabled:d,renderContentNode:C}},render(){return w(X0,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===$o.tdkey},{default:()=>this.animated?w(lr,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),dB=Object.keys(mC),uB={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function fB(e,t,r){uB[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[o],i=r[o];n?e.props[o]=(...a)=>{n(...a),i(...a)}:e.props[o]=i})}const vi={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:$o.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},hB=Object.assign(Object.assign(Object.assign({},ze.props),vi),{internalOnAfterLeave:Function,internalRenderBody:Function}),ba=be({name:"Popover",inheritAttrs:!1,props:hB,__popover__:!0,setup(e){const t=wi(),r=U(null),o=j(()=>e.show),n=U(e.defaultShow),i=Cr(o,n),a=Ft(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:T}=e;return!!(T!=null&&T())},s=()=>l()?!1:i.value,c=Xs(e,["arrow","showArrow"]),d=j(()=>e.overlap?!1:c.value);let u=null;const f=U(null),p=U(null),h=Ft(()=>e.x!==void 0&&e.y!==void 0);function v(T){const{"onUpdate:show":H,onUpdateShow:N,onShow:W,onHide:re}=e;n.value=T,H&&Pe(H,T),N&&Pe(N,T),T&&W&&Pe(W,!0),T&&re&&Pe(re,!1)}function g(){u&&u.syncPosition()}function m(){const{value:T}=f;T&&(window.clearTimeout(T),f.value=null)}function x(){const{value:T}=p;T&&(window.clearTimeout(T),p.value=null)}function b(){const T=l();if(e.trigger==="focus"&&!T){if(s())return;v(!0)}}function y(){const T=l();if(e.trigger==="focus"&&!T){if(!s())return;v(!1)}}function E(){const T=l();if(e.trigger==="hover"&&!T){if(x(),f.value!==null||s())return;const H=()=>{v(!0),f.value=null},{delay:N}=e;N===0?H():f.value=window.setTimeout(H,N)}}function C(){const T=l();if(e.trigger==="hover"&&!T){if(m(),p.value!==null||!s())return;const H=()=>{v(!1),p.value=null},{duration:N}=e;N===0?H():p.value=window.setTimeout(H,N)}}function _(){C()}function k(T){var H;s()&&(e.trigger==="click"&&(m(),x(),v(!1)),(H=e.onClickoutside)===null||H===void 0||H.call(e,T))}function R(){if(e.trigger==="click"&&!l()){m(),x();const T=!s();v(T)}}function A(T){e.internalTrapFocus&&T.key==="Escape"&&(m(),x(),v(!1))}function B(T){n.value=T}function S(){var T;return(T=r.value)===null||T===void 0?void 0:T.targetRef}function P(T){u=T}return ot("NPopover",{getTriggerElement:S,handleKeydown:A,handleMouseEnter:E,handleMouseLeave:C,handleClickOutside:k,handleMouseMoveOutside:_,setBodyInstance:P,positionManuallyRef:h,isMountedRef:t,zIndexRef:Re(e,"zIndex"),extraClassRef:Re(e,"internalExtraClass"),internalRenderBodyRef:Re(e,"internalRenderBody")}),ar(()=>{i.value&&l()&&v(!1)}),{binderInstRef:r,positionManually:h,mergedShowConsideringDisabledProp:a,uncontrolledShow:n,mergedShowArrow:d,getMergedShow:s,setShow:B,handleClick:R,handleMouseEnter:E,handleMouseLeave:C,handleFocus:b,handleBlur:y,syncPosition:g}},render(){var e;const{positionManually:t,$slots:r}=this;let o,n=!1;if(!t&&(r.activator?o=gf(r,"activator"):o=gf(r,"trigger"),o)){o=mo(o),o=o.type===sa?w("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)n=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};fB(o,a?"nested":t?"manual":this.trigger,s)}}return w(K0,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?$r(w("div",{style:{position:"fixed",inset:0}}),[[Ac,{enabled:i,zIndex:this.zIndex}]]):null,t?null:w(q0,null,{default:()=>o}),w(cB,tn(this.$props,dB,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),xC={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},pB={name:"Tag",common:Fe,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:g,closeColorPressed:m,borderRadiusSmall:x,fontSizeMini:b,fontSizeTiny:y,fontSizeSmall:E,fontSizeMedium:C,heightMini:_,heightTiny:k,heightSmall:R,heightMedium:A,buttonColor2Hover:B,buttonColor2Pressed:S,fontWeightStrong:P}=e;return Object.assign(Object.assign({},xC),{closeBorderRadius:x,heightTiny:_,heightSmall:k,heightMedium:R,heightLarge:A,borderRadius:x,opacityDisabled:f,fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:E,fontSizeLarge:C,fontWeightStrong:P,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:B,colorPressedCheckable:S,colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:g,closeColorPressed:m,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Yt(n,{lightness:.7}),closeIconColorHoverPrimary:Yt(n,{lightness:.7}),closeIconColorPressedPrimary:Yt(n,{lightness:.7}),closeColorHoverPrimary:Se(n,{alpha:.16}),closeColorPressedPrimary:Se(n,{alpha:.12}),borderInfo:`1px solid ${Se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Se(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Yt(i,{alpha:.7}),closeIconColorHoverInfo:Yt(i,{alpha:.7}),closeIconColorPressedInfo:Yt(i,{alpha:.7}),closeColorHoverInfo:Se(i,{alpha:.16}),closeColorPressedInfo:Se(i,{alpha:.12}),borderSuccess:`1px solid ${Se(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Se(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Yt(a,{alpha:.7}),closeIconColorHoverSuccess:Yt(a,{alpha:.7}),closeIconColorPressedSuccess:Yt(a,{alpha:.7}),closeColorHoverSuccess:Se(a,{alpha:.16}),closeColorPressedSuccess:Se(a,{alpha:.12}),borderWarning:`1px solid ${Se(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Yt(l,{alpha:.7}),closeIconColorHoverWarning:Yt(l,{alpha:.7}),closeIconColorPressedWarning:Yt(l,{alpha:.7}),closeColorHoverWarning:Se(l,{alpha:.16}),closeColorPressedWarning:Se(l,{alpha:.11}),borderError:`1px solid ${Se(s,{alpha:.3})}`,textColorError:s,colorError:Se(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Yt(s,{alpha:.7}),closeIconColorHoverError:Yt(s,{alpha:.7}),closeIconColorPressedError:Yt(s,{alpha:.7}),closeColorHoverError:Se(s,{alpha:.16}),closeColorPressedError:Se(s,{alpha:.12})})}},yC=pB,vB=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:v,borderRadiusSmall:g,fontSizeMini:m,fontSizeTiny:x,fontSizeSmall:b,fontSizeMedium:y,heightMini:E,heightTiny:C,heightSmall:_,heightMedium:k,closeColorHover:R,closeColorPressed:A,buttonColor2Hover:B,buttonColor2Pressed:S,fontWeightStrong:P}=e;return Object.assign(Object.assign({},xC),{closeBorderRadius:g,heightTiny:E,heightSmall:C,heightMedium:_,heightLarge:k,borderRadius:g,opacityDisabled:u,fontSizeTiny:m,fontSizeSmall:x,fontSizeMedium:b,fontSizeLarge:y,fontWeightStrong:P,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:B,colorPressedCheckable:S,colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:R,closeColorPressed:A,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.12}),colorBorderedPrimary:Se(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:Se(n,{alpha:.12}),closeColorPressedPrimary:Se(n,{alpha:.18}),borderInfo:`1px solid ${Se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Se(i,{alpha:.12}),colorBorderedInfo:Se(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Se(i,{alpha:.12}),closeColorPressedInfo:Se(i,{alpha:.18}),borderSuccess:`1px solid ${Se(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Se(a,{alpha:.12}),colorBorderedSuccess:Se(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Se(a,{alpha:.12}),closeColorPressedSuccess:Se(a,{alpha:.18}),borderWarning:`1px solid ${Se(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.15}),colorBorderedWarning:Se(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Se(l,{alpha:.12}),closeColorPressedWarning:Se(l,{alpha:.18}),borderError:`1px solid ${Se(s,{alpha:.23})}`,textColorError:s,colorError:Se(s,{alpha:.1}),colorBorderedError:Se(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:Se(s,{alpha:.12}),closeColorPressedError:Se(s,{alpha:.18})})},gB={name:"Tag",common:Oe,self:vB},ph=gB,mB={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},bB=z("tag",`
+ --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
+ white-space: nowrap;
+ position: relative;
+ box-sizing: border-box;
+ cursor: default;
+ display: inline-flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ padding: var(--n-padding);
+ border-radius: var(--n-border-radius);
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ line-height: 1;
+ height: var(--n-height);
+ font-size: var(--n-font-size);
+`,[Y("strong",`
+ font-weight: var(--n-font-weight-strong);
+ `),Q("border",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+ border: var(--n-border);
+ transition: border-color .3s var(--n-bezier);
+ `),Q("icon",`
+ display: flex;
+ margin: 0 4px 0 0;
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ font-size: var(--n-avatar-size-override);
+ `),Q("avatar",`
+ display: flex;
+ margin: 0 6px 0 0;
+ `),Q("close",`
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `),Y("round",`
+ padding: 0 calc(var(--n-height) / 3);
+ border-radius: calc(var(--n-height) / 2);
+ `,[Q("icon",`
+ margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
+ `),Q("avatar",`
+ margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
+ `),Y("closable",`
+ padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
+ `)]),Y("icon, avatar",[Y("round",`
+ padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
+ `)]),Y("disabled",`
+ cursor: not-allowed !important;
+ opacity: var(--n-opacity-disabled);
+ `),Y("checkable",`
+ cursor: pointer;
+ box-shadow: none;
+ color: var(--n-text-color-checkable);
+ background-color: var(--n-color-checkable);
+ `,[St("disabled",[Z("&:hover","background-color: var(--n-color-hover-checkable);",[St("checked","color: var(--n-text-color-hover-checkable);")]),Z("&:active","background-color: var(--n-color-pressed-checkable);",[St("checked","color: var(--n-text-color-pressed-checkable);")])]),Y("checked",`
+ color: var(--n-text-color-checked);
+ background-color: var(--n-color-checked);
+ `,[St("disabled",[Z("&:hover","background-color: var(--n-color-checked-hover);"),Z("&:active","background-color: var(--n-color-checked-pressed);")])])])]),xB=Object.assign(Object.assign(Object.assign({},ze.props),mB),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),CC="n-tag",Yd=be({name:"Tag",props:xB,setup(e){const t=U(null),{mergedBorderedRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:i}=nt(e),a=ze("Tag","-tag",bB,ph,e,o);ot(CC,{roundRef:Re(e,"round")});function l(p){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:v,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!h),m&&m(!h),v&&v(!h)}}function s(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&Pe(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},d=dr("Tag",i,o),u=j(()=>{const{type:p,size:h,color:{color:v,textColor:g}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:x,closeMargin:b,borderRadius:y,opacityDisabled:E,textColorCheckable:C,textColorHoverCheckable:_,textColorPressedCheckable:k,textColorChecked:R,colorCheckable:A,colorHoverCheckable:B,colorPressedCheckable:S,colorChecked:P,colorCheckedHover:F,colorCheckedPressed:T,closeBorderRadius:H,fontWeightStrong:N,[ye("colorBordered",p)]:W,[ye("closeSize",h)]:re,[ye("closeIconSize",h)]:ee,[ye("fontSize",h)]:L,[ye("height",h)]:M,[ye("color",p)]:G,[ye("textColor",p)]:J,[ye("border",p)]:ge,[ye("closeIconColor",p)]:ve,[ye("closeIconColorHover",p)]:te,[ye("closeIconColorPressed",p)]:ce,[ye("closeColorHover",p)]:X,[ye("closeColorPressed",p)]:le}}=a.value,Ee=kr(b);return{"--n-font-weight-strong":N,"--n-avatar-size-override":`calc(${M} - 8px)`,"--n-bezier":m,"--n-border-radius":y,"--n-border":ge,"--n-close-icon-size":ee,"--n-close-color-pressed":le,"--n-close-color-hover":X,"--n-close-border-radius":H,"--n-close-icon-color":ve,"--n-close-icon-color-hover":te,"--n-close-icon-color-pressed":ce,"--n-close-icon-color-disabled":ve,"--n-close-margin-top":Ee.top,"--n-close-margin-right":Ee.right,"--n-close-margin-bottom":Ee.bottom,"--n-close-margin-left":Ee.left,"--n-close-size":re,"--n-color":v||(r.value?W:G),"--n-color-checkable":A,"--n-color-checked":P,"--n-color-checked-hover":F,"--n-color-checked-pressed":T,"--n-color-hover-checkable":B,"--n-color-pressed-checkable":S,"--n-font-size":L,"--n-height":M,"--n-opacity-disabled":E,"--n-padding":x,"--n-text-color":g||J,"--n-text-color-checkable":C,"--n-text-color-checked":R,"--n-text-color-hover-checkable":_,"--n-text-color-pressed-checkable":k}}),f=n?Ct("tag",j(()=>{let p="";const{type:h,size:v,color:{color:g,textColor:m}={}}=e;return p+=h[0],p+=v[0],g&&(p+=`a${bl(g)}`),m&&(p+=`b${bl(m)}`),r.value&&(p+="c"),p}),u,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:o,contentRef:t,mergedBordered:r,handleClick:l,handleCloseClick:s,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:o,closable:n,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Rt(s.avatar,u=>u&&w("div",{class:`${r}-tag__avatar`},u)),d=Rt(s.icon,u=>u&&w("div",{class:`${r}-tag__icon`},u));return w("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:o,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:a,[`${r}-tag--avatar`]:c,[`${r}-tag--icon`]:d,[`${r}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,w("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?w(pa,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?w("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),yB=z("base-clear",`
+ flex-shrink: 0;
+ height: 1em;
+ width: 1em;
+ position: relative;
+`,[Z(">",[Q("clear",`
+ font-size: var(--n-clear-size);
+ height: 1em;
+ width: 1em;
+ cursor: pointer;
+ color: var(--n-clear-color);
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ `,[Z("&:hover",`
+ color: var(--n-clear-color-hover)!important;
+ `),Z("&:active",`
+ color: var(--n-clear-color-pressed)!important;
+ `)]),Q("placeholder",`
+ display: flex;
+ `),Q("clear, placeholder",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ `,[so({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),If=be({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Pi("-base-clear",yB,Re(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return w("div",{class:`${e}-base-clear`},w(ha,null,{default:()=>{var t,r;return this.show?w("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Br(this.$slots.icon,()=>[w(wt,{clsPrefix:e},{default:()=>w(QF,null)})])):w("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),wC=be({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return w(va,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?w(If,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>w(wt,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>Br(t.default,()=>[w(oC,null)])})}):null})}}}),SC={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},CB=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:f,iconColor:p,iconColorDisabled:h,clearColor:v,clearColorHover:g,clearColorPressed:m,placeholderColor:x,placeholderColorDisabled:b,fontSizeTiny:y,fontSizeSmall:E,fontSizeMedium:C,fontSizeLarge:_,heightTiny:k,heightSmall:R,heightMedium:A,heightLarge:B}=e;return Object.assign(Object.assign({},SC),{fontSizeTiny:y,fontSizeSmall:E,fontSizeMedium:C,fontSizeLarge:_,heightTiny:k,heightSmall:R,heightMedium:A,heightLarge:B,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:x,placeholderColorDisabled:b,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${f}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Se(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Se(a,{alpha:.2})}`,caretColor:a,arrowColor:p,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Se(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Se(s,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Se(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Se(d,{alpha:.2})}`,colorActiveError:n,caretColorError:d,clearColor:v,clearColorHover:g,clearColorPressed:m})},wB={name:"InternalSelection",common:Oe,peers:{Popover:Hn},self:CB},Mc=wB,SB={name:"InternalSelection",common:Fe,peers:{Popover:Ri},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:p,clearColor:h,clearColorHover:v,clearColorPressed:g,placeholderColor:m,placeholderColorDisabled:x,fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:E,fontSizeLarge:C,heightTiny:_,heightSmall:k,heightMedium:R,heightLarge:A}=e;return Object.assign(Object.assign({},SC),{fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:E,fontSizeLarge:C,heightTiny:_,heightSmall:k,heightMedium:R,heightLarge:A,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:m,placeholderColorDisabled:x,color:n,colorDisabled:i,colorActive:Se(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Se(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Se(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Se(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(s,{alpha:.4})}`,colorActiveWarning:Se(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Se(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Se(d,{alpha:.4})}`,colorActiveError:Se(d,{alpha:.1}),caretColorError:d,clearColor:h,clearColorHover:v,clearColorPressed:g})}},vh=SB,_B=Z([z("base-selection",`
+ --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
+ --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
+ position: relative;
+ z-index: auto;
+ box-shadow: none;
+ width: 100%;
+ max-width: 100%;
+ display: inline-block;
+ vertical-align: bottom;
+ border-radius: var(--n-border-radius);
+ min-height: var(--n-height);
+ line-height: 1.5;
+ font-size: var(--n-font-size);
+ `,[z("base-loading",`
+ color: var(--n-loading-color);
+ `),z("base-selection-tags","min-height: var(--n-height);"),Q("border, state-border",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ pointer-events: none;
+ border: var(--n-border);
+ border-radius: inherit;
+ transition:
+ box-shadow .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `),Q("state-border",`
+ z-index: 1;
+ border-color: #0000;
+ `),z("base-suffix",`
+ cursor: pointer;
+ position: absolute;
+ top: 50%;
+ transform: translateY(-50%);
+ right: 10px;
+ `,[Q("arrow",`
+ font-size: var(--n-arrow-size);
+ color: var(--n-arrow-color);
+ transition: color .3s var(--n-bezier);
+ `)]),z("base-selection-overlay",`
+ display: flex;
+ align-items: center;
+ white-space: nowrap;
+ pointer-events: none;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ padding: var(--n-padding-single);
+ transition: color .3s var(--n-bezier);
+ `,[Q("wrapper",`
+ flex-basis: 0;
+ flex-grow: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ `)]),z("base-selection-placeholder",`
+ color: var(--n-placeholder-color);
+ `,[Q("inner",`
+ max-width: 100%;
+ overflow: hidden;
+ `)]),z("base-selection-tags",`
+ cursor: pointer;
+ outline: none;
+ box-sizing: border-box;
+ position: relative;
+ z-index: auto;
+ display: flex;
+ padding: var(--n-padding-multiple);
+ flex-wrap: wrap;
+ align-items: center;
+ width: 100%;
+ vertical-align: bottom;
+ background-color: var(--n-color);
+ border-radius: inherit;
+ transition:
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `),z("base-selection-label",`
+ height: var(--n-height);
+ display: inline-flex;
+ width: 100%;
+ vertical-align: bottom;
+ cursor: pointer;
+ outline: none;
+ z-index: auto;
+ box-sizing: border-box;
+ position: relative;
+ transition:
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ border-radius: inherit;
+ background-color: var(--n-color);
+ align-items: center;
+ `,[z("base-selection-input",`
+ font-size: inherit;
+ line-height: inherit;
+ outline: none;
+ cursor: pointer;
+ box-sizing: border-box;
+ border:none;
+ width: 100%;
+ padding: var(--n-padding-single);
+ background-color: #0000;
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ caret-color: var(--n-caret-color);
+ `,[Q("content",`
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ `)]),Q("render-label",`
+ color: var(--n-text-color);
+ `)]),St("disabled",[Z("&:hover",[Q("state-border",`
+ box-shadow: var(--n-box-shadow-hover);
+ border: var(--n-border-hover);
+ `)]),Y("focus",[Q("state-border",`
+ box-shadow: var(--n-box-shadow-focus);
+ border: var(--n-border-focus);
+ `)]),Y("active",[Q("state-border",`
+ box-shadow: var(--n-box-shadow-active);
+ border: var(--n-border-active);
+ `),z("base-selection-label","background-color: var(--n-color-active);"),z("base-selection-tags","background-color: var(--n-color-active);")])]),Y("disabled","cursor: not-allowed;",[Q("arrow",`
+ color: var(--n-arrow-color-disabled);
+ `),z("base-selection-label",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `,[z("base-selection-input",`
+ cursor: not-allowed;
+ color: var(--n-text-color-disabled);
+ `),Q("render-label",`
+ color: var(--n-text-color-disabled);
+ `)]),z("base-selection-tags",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `),z("base-selection-placeholder",`
+ cursor: not-allowed;
+ color: var(--n-placeholder-color-disabled);
+ `)]),z("base-selection-input-tag",`
+ height: calc(var(--n-height) - 6px);
+ line-height: calc(var(--n-height) - 6px);
+ outline: none;
+ display: none;
+ position: relative;
+ margin-bottom: 3px;
+ max-width: 100%;
+ vertical-align: bottom;
+ `,[Q("input",`
+ font-size: inherit;
+ font-family: inherit;
+ min-width: 1px;
+ padding: 0;
+ background-color: #0000;
+ outline: none;
+ border: none;
+ max-width: 100%;
+ overflow: hidden;
+ width: 1em;
+ line-height: inherit;
+ cursor: pointer;
+ color: var(--n-text-color);
+ caret-color: var(--n-caret-color);
+ `),Q("mirror",`
+ position: absolute;
+ left: 0;
+ top: 0;
+ white-space: pre;
+ visibility: hidden;
+ user-select: none;
+ -webkit-user-select: none;
+ opacity: 0;
+ `)]),["warning","error"].map(e=>Y(`${e}-status`,[Q("state-border",`border: var(--n-border-${e});`),St("disabled",[Z("&:hover",[Q("state-border",`
+ box-shadow: var(--n-box-shadow-hover-${e});
+ border: var(--n-border-hover-${e});
+ `)]),Y("active",[Q("state-border",`
+ box-shadow: var(--n-box-shadow-active-${e});
+ border: var(--n-border-active-${e});
+ `),z("base-selection-label",`background-color: var(--n-color-active-${e});`),z("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Y("focus",[Q("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${e});
+ border: var(--n-border-focus-${e});
+ `)])])]))]),z("base-selection-popover",`
+ margin-bottom: -3px;
+ display: flex;
+ flex-wrap: wrap;
+ margin-right: -8px;
+ `),z("base-selection-tag-wrapper",`
+ max-width: 100%;
+ display: inline-flex;
+ padding: 0 7px 3px 0;
+ `,[Z("&:last-child","padding-right: 0;"),z("tag",`
+ font-size: 14px;
+ max-width: 100%;
+ `,[Q("content",`
+ line-height: 1.25;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ `)])])]),EB=be({name:"InternalSelection",props:Object.assign(Object.assign({},ze.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e),o=dr("InternalSelection",r,t),n=U(null),i=U(null),a=U(null),l=U(null),s=U(null),c=U(null),d=U(null),u=U(null),f=U(null),p=U(null),h=U(!1),v=U(!1),g=U(!1),m=ze("InternalSelection","-internal-selection",_B,Mc,e,Re(e,"clsPrefix")),x=j(()=>e.clearable&&!e.disabled&&(g.value||e.active)),b=j(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Vt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),y=j(()=>{const ne=e.selectedOption;if(ne)return ne[e.labelField]}),E=j(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var ne;const{value:ae}=n;if(ae){const{value:oe}=i;oe&&(oe.style.width=`${ae.offsetWidth}px`,e.maxTagCount!=="responsive"&&((ne=f.value)===null||ne===void 0||ne.sync({showAllItemsBeforeCalculate:!1})))}}function _(){const{value:ne}=p;ne&&(ne.style.display="none")}function k(){const{value:ne}=p;ne&&(ne.style.display="inline-block")}lt(Re(e,"active"),ne=>{ne||_()}),lt(Re(e,"pattern"),()=>{e.multiple&&Bt(C)});function R(ne){const{onFocus:ae}=e;ae&&ae(ne)}function A(ne){const{onBlur:ae}=e;ae&&ae(ne)}function B(ne){const{onDeleteOption:ae}=e;ae&&ae(ne)}function S(ne){const{onClear:ae}=e;ae&&ae(ne)}function P(ne){const{onPatternInput:ae}=e;ae&&ae(ne)}function F(ne){var ae;(!ne.relatedTarget||!(!((ae=a.value)===null||ae===void 0)&&ae.contains(ne.relatedTarget)))&&R(ne)}function T(ne){var ae;!((ae=a.value)===null||ae===void 0)&&ae.contains(ne.relatedTarget)||A(ne)}function H(ne){S(ne)}function N(){g.value=!0}function W(){g.value=!1}function re(ne){!e.active||!e.filterable||ne.target!==i.value&&ne.preventDefault()}function ee(ne){B(ne)}function L(ne){if(ne.key==="Backspace"&&!M.value&&!e.pattern.length){const{selectedOptions:ae}=e;ae!=null&&ae.length&&ee(ae[ae.length-1])}}const M=U(!1);let G=null;function J(ne){const{value:ae}=n;if(ae){const oe=ne.target.value;ae.textContent=oe,C()}e.ignoreComposition&&M.value?G=ne:P(ne)}function ge(){M.value=!0}function ve(){M.value=!1,e.ignoreComposition&&P(G),G=null}function te(ne){var ae;v.value=!0,(ae=e.onPatternFocus)===null||ae===void 0||ae.call(e,ne)}function ce(ne){var ae;v.value=!1,(ae=e.onPatternBlur)===null||ae===void 0||ae.call(e,ne)}function X(){var ne,ae;if(e.filterable)v.value=!1,(ne=c.value)===null||ne===void 0||ne.blur(),(ae=i.value)===null||ae===void 0||ae.blur();else if(e.multiple){const{value:oe}=l;oe==null||oe.blur()}else{const{value:oe}=s;oe==null||oe.blur()}}function le(){var ne,ae,oe;e.filterable?(v.value=!1,(ne=c.value)===null||ne===void 0||ne.focus()):e.multiple?(ae=l.value)===null||ae===void 0||ae.focus():(oe=s.value)===null||oe===void 0||oe.focus()}function Ee(){const{value:ne}=i;ne&&(k(),ne.focus())}function _e(){const{value:ne}=i;ne&&ne.blur()}function D(ne){const{value:ae}=d;ae&&ae.setTextContent(`+${ne}`)}function I(){const{value:ne}=u;return ne}function q(){return i.value}let ue=null;function se(){ue!==null&&window.clearTimeout(ue)}function me(){e.active||(se(),ue=window.setTimeout(()=>{E.value&&(h.value=!0)},100))}function Ce(){se()}function O(ne){ne||(se(),h.value=!1)}lt(E,ne=>{ne||(h.value=!1)}),zt(()=>{ar(()=>{const ne=c.value;ne&&(e.disabled?ne.removeAttribute("tabindex"):ne.tabIndex=v.value?-1:0)})}),hy(a,e.onResize);const{inlineThemeDisabled:$}=e,V=j(()=>{const{size:ne}=e,{common:{cubicBezierEaseInOut:ae},self:{borderRadius:oe,color:he,placeholderColor:$e,textColor:He,paddingSingle:Te,paddingMultiple:Ie,caretColor:Ge,colorDisabled:Me,textColorDisabled:Ye,placeholderColorDisabled:pt,colorActive:K,boxShadowFocus:fe,boxShadowActive:we,boxShadowHover:Le,border:We,borderFocus:Ue,borderHover:qe,borderActive:Xe,arrowColor:st,arrowColorDisabled:Ut,loadingColor:It,colorActiveWarning:Kt,boxShadowFocusWarning:Rr,boxShadowActiveWarning:wr,boxShadowHoverWarning:eo,borderWarning:Vr,borderFocusWarning:Wt,borderHoverWarning:rr,borderActiveWarning:de,colorActiveError:ke,boxShadowFocusError:Ze,boxShadowActiveError:Et,boxShadowHoverError:$t,borderError:_t,borderFocusError:to,borderHoverError:ro,borderActiveError:oo,clearColor:No,clearColorHover:Ho,clearColorPressed:Kn,clearSize:_a,arrowSize:Ea,[ye("height",ne)]:ka,[ye("fontSize",ne)]:Pa}}=m.value,sn=kr(Te),cn=kr(Ie);return{"--n-bezier":ae,"--n-border":We,"--n-border-active":Xe,"--n-border-focus":Ue,"--n-border-hover":qe,"--n-border-radius":oe,"--n-box-shadow-active":we,"--n-box-shadow-focus":fe,"--n-box-shadow-hover":Le,"--n-caret-color":Ge,"--n-color":he,"--n-color-active":K,"--n-color-disabled":Me,"--n-font-size":Pa,"--n-height":ka,"--n-padding-single-top":sn.top,"--n-padding-multiple-top":cn.top,"--n-padding-single-right":sn.right,"--n-padding-multiple-right":cn.right,"--n-padding-single-left":sn.left,"--n-padding-multiple-left":cn.left,"--n-padding-single-bottom":sn.bottom,"--n-padding-multiple-bottom":cn.bottom,"--n-placeholder-color":$e,"--n-placeholder-color-disabled":pt,"--n-text-color":He,"--n-text-color-disabled":Ye,"--n-arrow-color":st,"--n-arrow-color-disabled":Ut,"--n-loading-color":It,"--n-color-active-warning":Kt,"--n-box-shadow-focus-warning":Rr,"--n-box-shadow-active-warning":wr,"--n-box-shadow-hover-warning":eo,"--n-border-warning":Vr,"--n-border-focus-warning":Wt,"--n-border-hover-warning":rr,"--n-border-active-warning":de,"--n-color-active-error":ke,"--n-box-shadow-focus-error":Ze,"--n-box-shadow-active-error":Et,"--n-box-shadow-hover-error":$t,"--n-border-error":_t,"--n-border-focus-error":to,"--n-border-hover-error":ro,"--n-border-active-error":oo,"--n-clear-size":_a,"--n-clear-color":No,"--n-clear-color-hover":Ho,"--n-clear-color-pressed":Kn,"--n-arrow-size":Ea}}),ie=$?Ct("internal-selection",j(()=>e.size[0]),V,e):void 0;return{mergedTheme:m,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:v,filterablePlaceholder:b,label:y,selected:E,showTagsPanel:h,isComposing:M,counterRef:d,counterWrapperRef:u,patternInputMirrorRef:n,patternInputRef:i,selfRef:a,multipleElRef:l,singleElRef:s,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:p,handleMouseDown:re,handleFocusin:F,handleClear:H,handleMouseEnter:N,handleMouseLeave:W,handleDeleteOption:ee,handlePatternKeyDown:L,handlePatternInputInput:J,handlePatternInputBlur:ce,handlePatternInputFocus:te,handleMouseEnterCounter:me,handleMouseLeaveCounter:Ce,handleFocusout:T,handleCompositionEnd:ve,handleCompositionStart:ge,onPopoverUpdateShow:O,focus:le,focusInput:Ee,blur:X,blurInput:_e,updateCounter:D,getCounter:I,getTail:q,renderLabel:e.renderLabel,cssVars:$?void 0:V,themeClass:ie==null?void 0:ie.themeClass,onRender:ie==null?void 0:ie.onRender}},render(){const{status:e,multiple:t,size:r,disabled:o,filterable:n,maxTagCount:i,bordered:a,clsPrefix:l,ellipsisTagPopoverProps:s,onRender:c,renderTag:d,renderLabel:u}=this;c==null||c();const f=i==="responsive",p=typeof i=="number",h=f||p,v=w(bf,null,{default:()=>w(wC,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,x;return(x=(m=this.$slots).arrow)===null||x===void 0?void 0:x.call(m)}})});let g;if(t){const{labelField:m}=this,x=P=>w("div",{class:`${l}-base-selection-tag-wrapper`,key:P.value},d?d({option:P,handleClose:()=>{this.handleDeleteOption(P)}}):w(Yd,{size:r,closable:!P.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(P)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>u?u(P,!0):Vt(P[m],P,!0)})),b=()=>(p?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),y=n?w("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},w("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),w("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,E=f?()=>w("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},w(Yd,{size:r,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let C;if(p){const P=this.selectedOptions.length-i;P>0&&(C=w("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},w(Yd,{size:r,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${P}`})))}const _=f?n?w(Av,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:b,counter:E,tail:()=>y}):w(Av,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:b,counter:E}):p&&C?b().concat(C):b(),k=h?()=>w("div",{class:`${l}-base-selection-popover`},f?b():this.selectedOptions.map(x)):void 0,R=h?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,B=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?w("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},w("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,S=n?w("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},_,f?null:y,v):w("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:o?void 0:0},_,v);g=w(rt,null,h?w(ba,Object.assign({},R,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>S,default:k}):S,B)}else if(n){const m=this.pattern||this.isComposing,x=this.active?!m:!this.selected,b=this.active?!1:this.selected;g=w("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:ov(this.label)},w("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),b?w("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},w("div",{class:`${l}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):u?u(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):null,x?w("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},w("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,v)}else g=w("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?w("div",{class:`${l}-base-selection-input`,title:ov(this.label),key:"input"},w("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):u?u(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):w("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},w("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),v);return w("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},g,a?w("div",{class:`${l}-base-selection__border`}):null,a?w("div",{class:`${l}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:hn}=an;function kB({duration:e=".2s",delay:t=".1s"}={}){return[Z("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),Z("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
+ opacity: 0!important;
+ margin-left: 0!important;
+ margin-right: 0!important;
+ `),Z("&.fade-in-width-expand-transition-leave-active",`
+ overflow: hidden;
+ transition:
+ opacity ${e} ${hn},
+ max-width ${e} ${hn} ${t},
+ margin-left ${e} ${hn} ${t},
+ margin-right ${e} ${hn} ${t};
+ `),Z("&.fade-in-width-expand-transition-enter-active",`
+ overflow: hidden;
+ transition:
+ opacity ${e} ${hn} ${t},
+ max-width ${e} ${hn},
+ margin-left ${e} ${hn},
+ margin-right ${e} ${hn};
+ `)]}const _C={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},PB={name:"Alert",common:Fe,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:o,dividerColor:n,inputColor:i,textColor1:a,textColor2:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:v,errorColorSuppl:g,fontSize:m}=e;return Object.assign(Object.assign({},_C),{fontSize:m,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${n}`,color:i,titleTextColor:a,iconColor:l,contentTextColor:l,closeBorderRadius:r,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${Se(p,{alpha:.35})}`,colorInfo:Se(p,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:s,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Se(h,{alpha:.35})}`,colorSuccess:Se(h,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:h,contentTextColorSuccess:l,closeColorHoverSuccess:s,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Se(v,{alpha:.35})}`,colorWarning:Se(v,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:s,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${Se(g,{alpha:.35})}`,colorError:Se(g,{alpha:.25}),titleTextColorError:a,iconColorError:g,contentTextColorError:l,closeColorHoverError:s,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},TB=PB,RB=e=>{const{lineHeight:t,borderRadius:r,fontWeightStrong:o,baseColor:n,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:p,infoColor:h,successColor:v,warningColor:g,errorColor:m,fontSize:x}=e;return Object.assign(Object.assign({},_C),{fontSize:x,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:c,closeColorPressed:d,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:p,borderInfo:`1px solid ${Ke(n,Se(h,{alpha:.25}))}`,colorInfo:Ke(n,Se(h,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${Ke(n,Se(v,{alpha:.25}))}`,colorSuccess:Ke(n,Se(v,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:v,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${Ke(n,Se(g,{alpha:.33}))}`,colorWarning:Ke(n,Se(g,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:p,borderError:`1px solid ${Ke(n,Se(m,{alpha:.25}))}`,colorError:Ke(n,Se(m,{alpha:.08})),titleTextColorError:l,iconColorError:m,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:p})},AB={name:"Alert",common:Oe,self:RB},FB=AB,{cubicBezierEaseInOut:Eo,cubicBezierEaseOut:OB,cubicBezierEaseIn:BB}=an;function IB({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:o="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[Z(`&.fade-in-height-expand-transition-${c}-from,
+ &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),Z(`&.fade-in-height-expand-transition-${c}-to,
+ &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),Z(`&.fade-in-height-expand-transition-${c}-active`,`
+ overflow: ${e};
+ transition:
+ max-height ${t} ${Eo} ${o},
+ opacity ${t} ${OB} ${o},
+ margin-top ${t} ${Eo} ${o},
+ margin-bottom ${t} ${Eo} ${o},
+ padding-top ${t} ${Eo} ${o},
+ padding-bottom ${t} ${Eo} ${o}
+ ${r?","+r:""}
+ `),Z(`&.fade-in-height-expand-transition-${s}-active`,`
+ overflow: ${e};
+ transition:
+ max-height ${t} ${Eo},
+ opacity ${t} ${BB},
+ margin-top ${t} ${Eo},
+ margin-bottom ${t} ${Eo},
+ padding-top ${t} ${Eo},
+ padding-bottom ${t} ${Eo}
+ ${r?","+r:""}
+ `)]}const $B={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},EC=e=>{const{borderRadius:t,railColor:r,primaryColor:o,primaryColorHover:n,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},$B),{borderRadius:t,railColor:r,railColorActive:o,linkColor:Se(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:o})},DB={name:"Anchor",common:Oe,self:EC},LB=DB,zB={name:"Anchor",common:Fe,self:EC},MB=zB;function nc(e){return e.type==="group"}function kC(e){return e.type==="ignored"}function Zd(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function PC(e,t){return{getIsGroup:nc,getIgnored:kC,getKey(o){return nc(o)?o.name||o.key||"key-required":o[e]},getChildren(o){return o[t]}}}function NB(e,t,r,o){if(!t)return e;function n(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(nc(l)){const s=n(l[o]);s.length&&a.push(Object.assign({},l,{[o]:s}))}else{if(kC(l))continue;t(r,l)&&a.push(l)}return a}return n(e)}function HB(e,t,r){const o=new Map;return e.forEach(n=>{nc(n)?n[r].forEach(i=>{o.set(i[t],i)}):o.set(n[t],n)}),o}const jB=Ci&&"chrome"in window;Ci&&navigator.userAgent.includes("Firefox");const TC=Ci&&navigator.userAgent.includes("Safari")&&!jB,RC={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},WB={name:"Input",common:Fe,self(e){const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:m,heightTiny:x,heightSmall:b,heightMedium:y,heightLarge:E,clearColor:C,clearColorHover:_,clearColorPressed:k,placeholderColor:R,placeholderColorDisabled:A,iconColor:B,iconColorDisabled:S,iconColorHover:P,iconColorPressed:F}=e;return Object.assign(Object.assign({},RC),{countTextColorDisabled:o,countTextColor:r,heightTiny:x,heightSmall:b,heightMedium:y,heightLarge:E,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:m,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:R,placeholderColorDisabled:A,color:a,colorDisabled:l,colorFocus:Se(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Se(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:Se(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${Se(d,{alpha:.3})}`,caretColorError:d,clearColor:C,clearColorHover:_,clearColorPressed:k,iconColor:B,iconColorDisabled:S,iconColorHover:P,iconColorPressed:F,suffixTextColor:t})}},Qr=WB,VB=e=>{const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:v,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:x,heightTiny:b,heightSmall:y,heightMedium:E,heightLarge:C,actionColor:_,clearColor:k,clearColorHover:R,clearColorPressed:A,placeholderColor:B,placeholderColorDisabled:S,iconColor:P,iconColorDisabled:F,iconColorHover:T,iconColorPressed:H}=e;return Object.assign(Object.assign({},RC),{countTextColorDisabled:o,countTextColor:r,heightTiny:b,heightSmall:y,heightMedium:E,heightLarge:C,fontSizeTiny:v,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:x,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:n,placeholderColor:B,placeholderColorDisabled:S,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Se(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${Se(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Se(u,{alpha:.2})}`,caretColorError:u,clearColor:k,clearColorHover:R,clearColorPressed:A,iconColor:P,iconColorDisabled:F,iconColorHover:T,iconColorPressed:H,suffixTextColor:t})},UB={name:"Input",common:Oe,self:VB},Wr=UB,AC="n-input";function KB(e){let t=0;for(const r of e)t++;return t}function hs(e){return e===""||e==null}function qB(e){const t=U(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){n();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){n();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function o(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:u}=a;let f=s.length;if(s.endsWith(u))f=s.length-u.length;else if(s.startsWith(d))f=d.length;else{const p=d[c-1],h=s.indexOf(p,c-1);h!==-1&&(f=h+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,f,f)}function n(){t.value=null}return lt(e,n),{recordCursor:r,restoreCursor:o}}const Rg=be({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:o,mergedClsPrefixRef:n,countGraphemesRef:i}=De(AC),a=j(()=>{const{value:l}=r;return l===null||Array.isArray(l)?0:(i.value||KB)(l)});return()=>{const{value:l}=o,{value:s}=r;return w("span",{class:`${n.value}-input-word-count`},Z5(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),GB=z("input",`
+ max-width: 100%;
+ cursor: text;
+ line-height: 1.5;
+ z-index: auto;
+ outline: none;
+ box-sizing: border-box;
+ position: relative;
+ display: inline-flex;
+ border-radius: var(--n-border-radius);
+ background-color: var(--n-color);
+ transition: background-color .3s var(--n-bezier);
+ font-size: var(--n-font-size);
+ --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
+`,[Q("input, textarea",`
+ overflow: hidden;
+ flex-grow: 1;
+ position: relative;
+ `),Q("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
+ box-sizing: border-box;
+ font-size: inherit;
+ line-height: 1.5;
+ font-family: inherit;
+ border: none;
+ outline: none;
+ background-color: #0000;
+ text-align: inherit;
+ transition:
+ -webkit-text-fill-color .3s var(--n-bezier),
+ caret-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ text-decoration-color .3s var(--n-bezier);
+ `),Q("input-el, textarea-el",`
+ -webkit-appearance: none;
+ scrollbar-width: none;
+ width: 100%;
+ min-width: 0;
+ text-decoration-color: var(--n-text-decoration-color);
+ color: var(--n-text-color);
+ caret-color: var(--n-caret-color);
+ background-color: transparent;
+ `,[Z("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
+ width: 0;
+ height: 0;
+ display: none;
+ `),Z("&::placeholder",`
+ color: #0000;
+ -webkit-text-fill-color: transparent !important;
+ `),Z("&:-webkit-autofill ~",[Q("placeholder","display: none;")])]),Y("round",[St("textarea","border-radius: calc(var(--n-height) / 2);")]),Q("placeholder",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ color: var(--n-placeholder-color);
+ `,[Z("span",`
+ width: 100%;
+ display: inline-block;
+ `)]),Y("textarea",[Q("placeholder","overflow: visible;")]),St("autosize","width: 100%;"),Y("autosize",[Q("textarea-el, input-el",`
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ `)]),z("input-wrapper",`
+ overflow: hidden;
+ display: inline-flex;
+ flex-grow: 1;
+ position: relative;
+ padding-left: var(--n-padding-left);
+ padding-right: var(--n-padding-right);
+ `),Q("input-mirror",`
+ padding: 0;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ overflow: hidden;
+ visibility: hidden;
+ position: static;
+ white-space: pre;
+ pointer-events: none;
+ `),Q("input-el",`
+ padding: 0;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ `,[Z("&[type=password]::-ms-reveal","display: none;"),Z("+",[Q("placeholder",`
+ display: flex;
+ align-items: center;
+ `)])]),St("textarea",[Q("placeholder","white-space: nowrap;")]),Q("eye",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: color .3s var(--n-bezier);
+ `),Y("textarea","width: 100%;",[z("input-word-count",`
+ position: absolute;
+ right: var(--n-padding-right);
+ bottom: var(--n-padding-vertical);
+ `),Y("resizable",[z("input-wrapper",`
+ resize: vertical;
+ min-height: var(--n-height);
+ `)]),Q("textarea-el, textarea-mirror, placeholder",`
+ height: 100%;
+ padding-left: 0;
+ padding-right: 0;
+ padding-top: var(--n-padding-vertical);
+ padding-bottom: var(--n-padding-vertical);
+ word-break: break-word;
+ display: inline-block;
+ vertical-align: bottom;
+ box-sizing: border-box;
+ line-height: var(--n-line-height-textarea);
+ margin: 0;
+ resize: none;
+ white-space: pre-wrap;
+ scroll-padding-block-end: var(--n-padding-vertical);
+ `),Q("textarea-mirror",`
+ width: 100%;
+ pointer-events: none;
+ overflow: hidden;
+ visibility: hidden;
+ position: static;
+ white-space: pre-wrap;
+ overflow-wrap: break-word;
+ `)]),Y("pair",[Q("input-el, placeholder","text-align: center;"),Q("separator",`
+ display: flex;
+ align-items: center;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ white-space: nowrap;
+ `,[z("icon",`
+ color: var(--n-icon-color);
+ `),z("base-icon",`
+ color: var(--n-icon-color);
+ `)])]),Y("disabled",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `,[Q("border","border: var(--n-border-disabled);"),Q("input-el, textarea-el",`
+ cursor: not-allowed;
+ color: var(--n-text-color-disabled);
+ text-decoration-color: var(--n-text-color-disabled);
+ `),Q("placeholder","color: var(--n-placeholder-color-disabled);"),Q("separator","color: var(--n-text-color-disabled);",[z("icon",`
+ color: var(--n-icon-color-disabled);
+ `),z("base-icon",`
+ color: var(--n-icon-color-disabled);
+ `)]),z("input-word-count",`
+ color: var(--n-count-text-color-disabled);
+ `),Q("suffix, prefix","color: var(--n-text-color-disabled);",[z("icon",`
+ color: var(--n-icon-color-disabled);
+ `),z("internal-icon",`
+ color: var(--n-icon-color-disabled);
+ `)])]),St("disabled",[Q("eye",`
+ color: var(--n-icon-color);
+ cursor: pointer;
+ `,[Z("&:hover",`
+ color: var(--n-icon-color-hover);
+ `),Z("&:active",`
+ color: var(--n-icon-color-pressed);
+ `)]),Z("&:hover",[Q("state-border","border: var(--n-border-hover);")]),Y("focus","background-color: var(--n-color-focus);",[Q("state-border",`
+ border: var(--n-border-focus);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),Q("border, state-border",`
+ box-sizing: border-box;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ pointer-events: none;
+ border-radius: inherit;
+ border: var(--n-border);
+ transition:
+ box-shadow .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `),Q("state-border",`
+ border-color: #0000;
+ z-index: 1;
+ `),Q("prefix","margin-right: 4px;"),Q("suffix",`
+ margin-left: 4px;
+ `),Q("suffix, prefix",`
+ transition: color .3s var(--n-bezier);
+ flex-wrap: nowrap;
+ flex-shrink: 0;
+ line-height: var(--n-height);
+ white-space: nowrap;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--n-suffix-text-color);
+ `,[z("base-loading",`
+ font-size: var(--n-icon-size);
+ margin: 0 2px;
+ color: var(--n-loading-color);
+ `),z("base-clear",`
+ font-size: var(--n-icon-size);
+ `,[Q("placeholder",[z("base-icon",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size);
+ `)])]),Z(">",[z("icon",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size);
+ `)]),z("base-icon",`
+ font-size: var(--n-icon-size);
+ `)]),z("input-word-count",`
+ pointer-events: none;
+ line-height: 1.5;
+ font-size: .85em;
+ color: var(--n-count-text-color);
+ transition: color .3s var(--n-bezier);
+ margin-left: 4px;
+ font-variant: tabular-nums;
+ `),["warning","error"].map(e=>Y(`${e}-status`,[St("disabled",[z("base-loading",`
+ color: var(--n-loading-color-${e})
+ `),Q("input-el, textarea-el",`
+ caret-color: var(--n-caret-color-${e});
+ `),Q("state-border",`
+ border: var(--n-border-${e});
+ `),Z("&:hover",[Q("state-border",`
+ border: var(--n-border-hover-${e});
+ `)]),Z("&:focus",`
+ background-color: var(--n-color-focus-${e});
+ `,[Q("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${e});
+ border: var(--n-border-focus-${e});
+ `)]),Y("focus",`
+ background-color: var(--n-color-focus-${e});
+ `,[Q("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${e});
+ border: var(--n-border-focus-${e});
+ `)])])]))]),XB=z("input",[Y("disabled",[Q("input-el, textarea-el",`
+ -webkit-text-fill-color: var(--n-text-color-disabled);
+ `)])]),YB=Object.assign(Object.assign({},ze.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Go=be({name:"Input",props:YB,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),i=ze("Input","-input",GB,Wr,e,t);TC&&Pi("-input-safari",XB,t);const a=U(null),l=U(null),s=U(null),c=U(null),d=U(null),u=U(null),f=U(null),p=qB(f),h=U(null),{localeRef:v}=$n("Input"),g=U(e.defaultValue),m=Re(e,"value"),x=Cr(m,g),b=Si(e),{mergedSizeRef:y,mergedDisabledRef:E,mergedStatusRef:C}=b,_=U(!1),k=U(!1),R=U(!1),A=U(!1);let B=null;const S=j(()=>{const{placeholder:de,pair:ke}=e;return ke?Array.isArray(de)?de:de===void 0?["",""]:[de,de]:de===void 0?[v.value.placeholder]:[de]}),P=j(()=>{const{value:de}=R,{value:ke}=x,{value:Ze}=S;return!de&&(hs(ke)||Array.isArray(ke)&&hs(ke[0]))&&Ze[0]}),F=j(()=>{const{value:de}=R,{value:ke}=x,{value:Ze}=S;return!de&&Ze[1]&&(hs(ke)||Array.isArray(ke)&&hs(ke[1]))}),T=Ft(()=>e.internalForceFocus||_.value),H=Ft(()=>{if(E.value||e.readonly||!e.clearable||!T.value&&!k.value)return!1;const{value:de}=x,{value:ke}=T;return e.pair?!!(Array.isArray(de)&&(de[0]||de[1]))&&(k.value||ke):!!de&&(k.value||ke)}),N=j(()=>{const{showPasswordOn:de}=e;if(de)return de;if(e.showPasswordToggle)return"click"}),W=U(!1),re=j(()=>{const{textDecoration:de}=e;return de?Array.isArray(de)?de.map(ke=>({textDecoration:ke})):[{textDecoration:de}]:["",""]}),ee=U(void 0),L=()=>{var de,ke;if(e.type==="textarea"){const{autosize:Ze}=e;if(Ze&&(ee.value=(ke=(de=h.value)===null||de===void 0?void 0:de.$el)===null||ke===void 0?void 0:ke.offsetWidth),!l.value||typeof Ze=="boolean")return;const{paddingTop:Et,paddingBottom:$t,lineHeight:_t}=window.getComputedStyle(l.value),to=Number(Et.slice(0,-2)),ro=Number($t.slice(0,-2)),oo=Number(_t.slice(0,-2)),{value:No}=s;if(!No)return;if(Ze.minRows){const Ho=Math.max(Ze.minRows,1),Kn=`${to+ro+oo*Ho}px`;No.style.minHeight=Kn}if(Ze.maxRows){const Ho=`${to+ro+oo*Ze.maxRows}px`;No.style.maxHeight=Ho}}},M=j(()=>{const{maxlength:de}=e;return de===void 0?void 0:Number(de)});zt(()=>{const{value:de}=x;Array.isArray(de)||st(de)});const G=Dr().proxy;function J(de,ke){const{onUpdateValue:Ze,"onUpdate:value":Et,onInput:$t}=e,{nTriggerFormInput:_t}=b;Ze&&Pe(Ze,de,ke),Et&&Pe(Et,de,ke),$t&&Pe($t,de,ke),g.value=de,_t()}function ge(de,ke){const{onChange:Ze}=e,{nTriggerFormChange:Et}=b;Ze&&Pe(Ze,de,ke),g.value=de,Et()}function ve(de){const{onBlur:ke}=e,{nTriggerFormBlur:Ze}=b;ke&&Pe(ke,de),Ze()}function te(de){const{onFocus:ke}=e,{nTriggerFormFocus:Ze}=b;ke&&Pe(ke,de),Ze()}function ce(de){const{onClear:ke}=e;ke&&Pe(ke,de)}function X(de){const{onInputBlur:ke}=e;ke&&Pe(ke,de)}function le(de){const{onInputFocus:ke}=e;ke&&Pe(ke,de)}function Ee(){const{onDeactivate:de}=e;de&&Pe(de)}function _e(){const{onActivate:de}=e;de&&Pe(de)}function D(de){const{onClick:ke}=e;ke&&Pe(ke,de)}function I(de){const{onWrapperFocus:ke}=e;ke&&Pe(ke,de)}function q(de){const{onWrapperBlur:ke}=e;ke&&Pe(ke,de)}function ue(){R.value=!0}function se(de){R.value=!1,de.target===u.value?me(de,1):me(de,0)}function me(de,ke=0,Ze="input"){const Et=de.target.value;if(st(Et),de instanceof InputEvent&&!de.isComposing&&(R.value=!1),e.type==="textarea"){const{value:_t}=h;_t&&_t.syncUnifiedContainer()}if(B=Et,R.value)return;p.recordCursor();const $t=Ce(Et);if($t)if(!e.pair)Ze==="input"?J(Et,{source:ke}):ge(Et,{source:ke});else{let{value:_t}=x;Array.isArray(_t)?_t=[_t[0],_t[1]]:_t=["",""],_t[ke]=Et,Ze==="input"?J(_t,{source:ke}):ge(_t,{source:ke})}G.$forceUpdate(),$t||Bt(p.restoreCursor)}function Ce(de){const{countGraphemes:ke,maxlength:Ze,minlength:Et}=e;if(ke){let _t;if(Ze!==void 0&&(_t===void 0&&(_t=ke(de)),_t>Number(Ze))||Et!==void 0&&(_t===void 0&&(_t=ke(de)),_t{Et.preventDefault(),vt("mouseup",document,ke)};if(kt("mouseup",document,ke),N.value!=="mousedown")return;W.value=!0;const Ze=()=>{W.value=!1,vt("mouseup",document,Ze)};kt("mouseup",document,Ze)}function Ye(de){e.onKeyup&&Pe(e.onKeyup,de)}function pt(de){switch(e.onKeydown&&Pe(e.onKeydown,de),de.key){case"Escape":fe();break;case"Enter":K(de);break}}function K(de){var ke,Ze;if(e.passivelyActivated){const{value:Et}=A;if(Et){e.internalDeactivateOnEnter&&fe();return}de.preventDefault(),e.type==="textarea"?(ke=l.value)===null||ke===void 0||ke.focus():(Ze=d.value)===null||Ze===void 0||Ze.focus()}}function fe(){e.passivelyActivated&&(A.value=!1,Bt(()=>{var de;(de=a.value)===null||de===void 0||de.focus()}))}function we(){var de,ke,Ze;E.value||(e.passivelyActivated?(de=a.value)===null||de===void 0||de.focus():((ke=l.value)===null||ke===void 0||ke.focus(),(Ze=d.value)===null||Ze===void 0||Ze.focus()))}function Le(){var de;!((de=a.value)===null||de===void 0)&&de.contains(document.activeElement)&&document.activeElement.blur()}function We(){var de,ke;(de=l.value)===null||de===void 0||de.select(),(ke=d.value)===null||ke===void 0||ke.select()}function Ue(){E.value||(l.value?l.value.focus():d.value&&d.value.focus())}function qe(){const{value:de}=a;de!=null&&de.contains(document.activeElement)&&de!==document.activeElement&&fe()}function Xe(de){if(e.type==="textarea"){const{value:ke}=l;ke==null||ke.scrollTo(de)}else{const{value:ke}=d;ke==null||ke.scrollTo(de)}}function st(de){const{type:ke,pair:Ze,autosize:Et}=e;if(!Ze&&Et)if(ke==="textarea"){const{value:$t}=s;$t&&($t.textContent=(de??"")+`\r
+`)}else{const{value:$t}=c;$t&&(de?$t.textContent=de:$t.innerHTML=" ")}}function Ut(){L()}const It=U({top:"0"});function Kt(de){var ke;const{scrollTop:Ze}=de.target;It.value.top=`${-Ze}px`,(ke=h.value)===null||ke===void 0||ke.syncUnifiedContainer()}let Rr=null;ar(()=>{const{autosize:de,type:ke}=e;de&&ke==="textarea"?Rr=lt(x,Ze=>{!Array.isArray(Ze)&&Ze!==B&&st(Ze)}):Rr==null||Rr()});let wr=null;ar(()=>{e.type==="textarea"?wr=lt(x,de=>{var ke;!Array.isArray(de)&&de!==B&&((ke=h.value)===null||ke===void 0||ke.syncUnifiedContainer())}):wr==null||wr()}),ot(AC,{mergedValueRef:x,maxlengthRef:M,mergedClsPrefixRef:t,countGraphemesRef:Re(e,"countGraphemes")});const eo={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:R,clear:$e,focus:we,blur:Le,select:We,deactivate:qe,activate:Ue,scrollTo:Xe},Vr=dr("Input",n,t),Wt=j(()=>{const{value:de}=y,{common:{cubicBezierEaseInOut:ke},self:{color:Ze,borderRadius:Et,textColor:$t,caretColor:_t,caretColorError:to,caretColorWarning:ro,textDecorationColor:oo,border:No,borderDisabled:Ho,borderHover:Kn,borderFocus:_a,placeholderColor:Ea,placeholderColorDisabled:ka,lineHeightTextarea:Pa,colorDisabled:sn,colorFocus:cn,textColorDisabled:pd,boxShadowFocus:vd,iconSize:gd,colorFocusWarning:md,boxShadowFocusWarning:bd,borderWarning:xd,borderFocusWarning:j_,borderHoverWarning:W_,colorFocusError:V_,boxShadowFocusError:U_,borderError:K_,borderFocusError:q_,borderHoverError:G_,clearSize:X_,clearColor:Y_,clearColorHover:Z_,clearColorPressed:J_,iconColor:Q_,iconColorDisabled:e4,suffixTextColor:t4,countTextColor:r4,countTextColorDisabled:o4,iconColorHover:n4,iconColorPressed:i4,loadingColor:a4,loadingColorError:l4,loadingColorWarning:s4,[ye("padding",de)]:c4,[ye("fontSize",de)]:d4,[ye("height",de)]:u4}}=i.value,{left:f4,right:h4}=kr(c4);return{"--n-bezier":ke,"--n-count-text-color":r4,"--n-count-text-color-disabled":o4,"--n-color":Ze,"--n-font-size":d4,"--n-border-radius":Et,"--n-height":u4,"--n-padding-left":f4,"--n-padding-right":h4,"--n-text-color":$t,"--n-caret-color":_t,"--n-text-decoration-color":oo,"--n-border":No,"--n-border-disabled":Ho,"--n-border-hover":Kn,"--n-border-focus":_a,"--n-placeholder-color":Ea,"--n-placeholder-color-disabled":ka,"--n-icon-size":gd,"--n-line-height-textarea":Pa,"--n-color-disabled":sn,"--n-color-focus":cn,"--n-text-color-disabled":pd,"--n-box-shadow-focus":vd,"--n-loading-color":a4,"--n-caret-color-warning":ro,"--n-color-focus-warning":md,"--n-box-shadow-focus-warning":bd,"--n-border-warning":xd,"--n-border-focus-warning":j_,"--n-border-hover-warning":W_,"--n-loading-color-warning":s4,"--n-caret-color-error":to,"--n-color-focus-error":V_,"--n-box-shadow-focus-error":U_,"--n-border-error":K_,"--n-border-focus-error":q_,"--n-border-hover-error":G_,"--n-loading-color-error":l4,"--n-clear-color":Y_,"--n-clear-size":X_,"--n-clear-color-hover":Z_,"--n-clear-color-pressed":J_,"--n-icon-color":Q_,"--n-icon-color-hover":n4,"--n-icon-color-pressed":i4,"--n-icon-color-disabled":e4,"--n-suffix-text-color":t4}}),rr=o?Ct("input",j(()=>{const{value:de}=y;return de[0]}),Wt,e):void 0;return Object.assign(Object.assign({},eo),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:h,rtlEnabled:Vr,uncontrolledValue:g,mergedValue:x,passwordVisible:W,mergedPlaceholder:S,showPlaceholder1:P,showPlaceholder2:F,mergedFocus:T,isComposing:R,activated:A,showClearButton:H,mergedSize:y,mergedDisabled:E,textDecorationStyle:re,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:N,placeholderStyle:It,mergedStatus:C,textAreaScrollContainerWidth:ee,handleTextAreaScroll:Kt,handleCompositionStart:ue,handleCompositionEnd:se,handleInput:me,handleInputBlur:O,handleInputFocus:$,handleWrapperBlur:V,handleWrapperFocus:ie,handleMouseEnter:Te,handleMouseLeave:Ie,handleMouseDown:He,handleChange:ae,handleClick:oe,handleClear:he,handlePasswordToggleClick:Ge,handlePasswordToggleMousedown:Me,handleWrapperKeydown:pt,handleWrapperKeyup:Ye,handleTextAreaMirrorResize:Ut,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:o?void 0:Wt,themeClass:rr==null?void 0:rr.themeClass,onRender:rr==null?void 0:rr.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:o,themeClass:n,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),w("div",{ref:"wrapperElRef",class:[`${r}-input`,n,o&&`${r}-input--${o}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},w("div",{class:`${r}-input-wrapper`},Rt(s.prefix,c=>c&&w("div",{class:`${r}-input__prefix`},c)),i==="textarea"?w(Nn,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:u}=this,f={width:this.autosize&&u&&`${u}px`};return w(rt,null,w("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,f],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?w("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?w(Fo,{onResize:this.handleTextAreaMirrorResize},{default:()=>w("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):w("div",{class:`${r}-input__input`},w("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?w("div",{class:`${r}-input__placeholder`},w("span",null,this.mergedPlaceholder[0])):null,this.autosize?w("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Rt(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?w("div",{class:`${r}-input__suffix`},[Rt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&w(If,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var u,f;return(f=(u=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(u)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?w(wC,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?w(Rg,null,{default:d=>{var u;return(u=s.count)===null||u===void 0?void 0:u.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?w("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Br(s["password-visible-icon"],()=>[w(wt,{clsPrefix:r},{default:()=>w(GF,null)})]):Br(s["password-invisible-icon"],()=>[w(wt,{clsPrefix:r},{default:()=>w(XF,null)})])):null]):null)),this.pair?w("span",{class:`${r}-input__separator`},Br(s.separator,()=>[this.separator])):null,this.pair?w("div",{class:`${r}-input-wrapper`},w("div",{class:`${r}-input__input`},w("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?w("div",{class:`${r}-input__placeholder`},w("span",null,this.mergedPlaceholder[1])):null),Rt(s.suffix,c=>(this.clearable||c)&&w("div",{class:`${r}-input__suffix`},[this.clearable&&w(If,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?w("div",{class:`${r}-input__border`}):null,this.mergedBordered?w("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?w(Rg,null,{default:c=>{var d;const{renderCount:u}=this;return u?u(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}});function FC(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ZB={name:"AutoComplete",common:Oe,peers:{InternalSelectMenu:ga,Input:Wr},self:FC},JB=ZB,QB={name:"AutoComplete",common:Fe,peers:{InternalSelectMenu:Wl,Input:Qr},self:FC},eI=QB,OC=Ci&&"loading"in document.createElement("img"),tI=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}},Jd=new WeakMap,Qd=new WeakMap,eu=new WeakMap,BC=(e,t,r)=>{if(!e)return()=>{};const o=tI(t),{root:n}=o.options;let i;const a=Jd.get(n);a?i=a:(i=new Map,Jd.set(n,i));let l,s;i.has(o.hash)?(s=i.get(o.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(u=>{u.forEach(f=>{if(f.isIntersecting){const p=Qd.get(f.target),h=eu.get(f.target);p&&p(),h&&(h.value=!0)}})},o.options),l.observe(e),s=[l,new Set([e])],i.set(o.hash,s));let c=!1;const d=()=>{c||(Qd.delete(e),eu.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(o.hash),i.size||Jd.delete(n))};return Qd.set(e,d),eu.set(e,r),d},IC=e=>{const{borderRadius:t,avatarColor:r,cardColor:o,fontSize:n,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:Ke(o,r),colorModal:Ke(d,r),colorPopover:Ke(u,r)}},rI={name:"Avatar",common:Oe,self:IC},gh=rI,oI={name:"Avatar",common:Fe,self:IC},$C=oI,nI="n-avatar-group",iI=z("avatar",`
+ width: var(--n-merged-size);
+ height: var(--n-merged-size);
+ color: #FFF;
+ font-size: var(--n-font-size);
+ display: inline-flex;
+ position: relative;
+ overflow: hidden;
+ text-align: center;
+ border: var(--n-border);
+ border-radius: var(--n-border-radius);
+ --n-merged-color: var(--n-color);
+ background-color: var(--n-merged-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+`,[ua(Z("&","--n-merged-color: var(--n-color-modal);")),Nl(Z("&","--n-merged-color: var(--n-color-popover);")),Z("img",`
+ width: 100%;
+ height: 100%;
+ `),Q("text",`
+ white-space: nowrap;
+ display: inline-block;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ `),z("icon",`
+ vertical-align: bottom;
+ font-size: calc(var(--n-merged-size) - 6px);
+ `),Q("text","line-height: 1.25")]),aI=Object.assign(Object.assign({},ze.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Ag=be({name:"Avatar",props:aI,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),o=U(!1);let n=null;const i=U(null),a=U(null),l=()=>{const{value:x}=i;if(x&&(n===null||n!==x.innerHTML)){n=x.innerHTML;const{value:b}=a;if(b){const{offsetWidth:y,offsetHeight:E}=b,{offsetWidth:C,offsetHeight:_}=x,k=.9,R=Math.min(y/C*k,E/_*k,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=De(nI,null),c=j(()=>{const{size:x}=e;if(x)return x;const{size:b}=s||{};return b||"medium"}),d=ze("Avatar","-avatar",iI,gh,e,t),u=De(CC,null),f=j(()=>{if(s)return!0;const{round:x,circle:b}=e;return x!==void 0||b!==void 0?x||b:u?u.roundRef.value:!1}),p=j(()=>s?!0:e.bordered||!1),h=j(()=>{const x=c.value,b=f.value,y=p.value,{color:E}=e,{self:{borderRadius:C,fontSize:_,color:k,border:R,colorModal:A,colorPopover:B},common:{cubicBezierEaseInOut:S}}=d.value;let P;return typeof x=="number"?P=`${x}px`:P=d.value.self[ye("height",x)],{"--n-font-size":_,"--n-border":y?R:"none","--n-border-radius":b?"50%":C,"--n-color":E||k,"--n-color-modal":E||A,"--n-color-popover":E||B,"--n-bezier":S,"--n-merged-size":`var(--n-avatar-size-override, ${P})`}}),v=r?Ct("avatar",j(()=>{const x=c.value,b=f.value,y=p.value,{color:E}=e;let C="";return x&&(typeof x=="number"?C+=`a${x}`:C+=x[0]),b&&(C+="b"),y&&(C+="c"),E&&(C+=bl(E)),C}),h,e):void 0,g=U(!e.lazy);zt(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const b=ar(()=>{x==null||x(),x=void 0,e.lazy&&(x=BC(a.value,e.intersectionObserverOptions,g))});jt(()=>{b(),x==null||x()})}}),lt(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{o.value=!1});const m=U(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:l,cssVars:r?void 0:h,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender,hasLoadError:o,shouldStartLoading:g,loaded:m,mergedOnError:x=>{if(!g.value)return;o.value=!0;const{onError:b,imgProps:{onError:y}={}}=e;b==null||b(x),y==null||y(x)},mergedOnLoad:x=>{const{onLoad:b,imgProps:{onLoad:y}={}}=e;b==null||b(x),y==null||y(x),m.value=!0}}},render(){var e,t;const{$slots:r,src:o,mergedClsPrefix:n,lazy:i,onRender:a,loaded:l,hasLoadError:s,imgProps:c={}}=this;a==null||a();let d;const u=!l&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():Br(r.fallback,()=>[w("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=Rt(r.default,f=>{if(f)return w(Fo,{onResize:this.fitTextTransform},{default:()=>w("span",{ref:"textRef",class:`${n}-avatar__text`},f)});if(o||c.src){const p=this.src||c.src;return w("img",Object.assign(Object.assign({},c),{loading:OC&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?p:void 0:p,"data-image-src":p,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},u?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),w("span",{ref:"selfRef",class:[`${n}-avatar`,this.themeClass],style:this.cssVars},d,i&&u)}}),DC=()=>({gap:"-12px"}),lI={name:"AvatarGroup",common:Oe,peers:{Avatar:gh},self:DC},sI=lI,cI={name:"AvatarGroup",common:Fe,peers:{Avatar:$C},self:DC},dI=cI,LC={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},uI={name:"BackTop",common:Fe,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:o,primaryColorPressed:n}=e;return Object.assign(Object.assign({},LC),{color:t,textColor:r,iconColor:r,iconColorHover:o,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},fI=uI,hI=e=>{const{popoverColor:t,textColor2:r,primaryColorHover:o,primaryColorPressed:n}=e;return Object.assign(Object.assign({},LC),{color:t,textColor:r,iconColor:r,iconColorHover:o,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},pI={name:"BackTop",common:Oe,self:hI},vI=pI,gI={name:"Badge",common:Fe,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:o,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:o,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},mI=gI,bI=e=>{const{errorColor:t,infoColor:r,successColor:o,warningColor:n,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:o,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}},xI={name:"Badge",common:Oe,self:bI},yI=xI,CI={fontWeightActive:"400"},zC=e=>{const{fontSize:t,textColor3:r,textColor2:o,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},CI),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:n,itemColorHover:i,itemColorPressed:a,separatorColor:r})},wI={name:"Breadcrumb",common:Oe,self:zC},SI=wI,_I={name:"Breadcrumb",common:Fe,self:zC},EI=_I;function Yn(e){return Ke(e,[255,255,255,.16])}function ps(e){return Ke(e,[0,0,0,.12])}const kI="n-button-group",PI={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},MC=e=>{const{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:f,primaryColorHover:p,primaryColorPressed:h,borderColor:v,primaryColor:g,baseColor:m,infoColor:x,infoColorHover:b,infoColorPressed:y,successColor:E,successColorHover:C,successColorPressed:_,warningColor:k,warningColorHover:R,warningColorPressed:A,errorColor:B,errorColorHover:S,errorColorPressed:P,fontWeight:F,buttonColor2:T,buttonColor2Hover:H,buttonColor2Pressed:N,fontWeightStrong:W}=e;return Object.assign(Object.assign({},PI),{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:T,colorSecondaryHover:H,colorSecondaryPressed:N,colorTertiary:T,colorTertiaryHover:H,colorTertiaryPressed:N,colorQuaternary:"#0000",colorQuaternaryHover:H,colorQuaternaryPressed:N,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:u,textColorText:u,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:u,border:`1px solid ${v}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${v}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:u,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:x,colorHoverInfo:b,colorPressedInfo:y,colorFocusInfo:b,colorDisabledInfo:x,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:x,textColorTextHoverInfo:b,textColorTextPressedInfo:y,textColorTextFocusInfo:b,textColorTextDisabledInfo:u,textColorGhostInfo:x,textColorGhostHoverInfo:b,textColorGhostPressedInfo:y,textColorGhostFocusInfo:b,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${b}`,borderPressedInfo:`1px solid ${y}`,borderFocusInfo:`1px solid ${b}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:E,colorHoverSuccess:C,colorPressedSuccess:_,colorFocusSuccess:C,colorDisabledSuccess:E,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:E,textColorTextHoverSuccess:C,textColorTextPressedSuccess:_,textColorTextFocusSuccess:C,textColorTextDisabledSuccess:u,textColorGhostSuccess:E,textColorGhostHoverSuccess:C,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:C,textColorGhostDisabledSuccess:E,borderSuccess:`1px solid ${E}`,borderHoverSuccess:`1px solid ${C}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${C}`,borderDisabledSuccess:`1px solid ${E}`,rippleColorSuccess:E,colorWarning:k,colorHoverWarning:R,colorPressedWarning:A,colorFocusWarning:R,colorDisabledWarning:k,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:k,textColorTextHoverWarning:R,textColorTextPressedWarning:A,textColorTextFocusWarning:R,textColorTextDisabledWarning:u,textColorGhostWarning:k,textColorGhostHoverWarning:R,textColorGhostPressedWarning:A,textColorGhostFocusWarning:R,textColorGhostDisabledWarning:k,borderWarning:`1px solid ${k}`,borderHoverWarning:`1px solid ${R}`,borderPressedWarning:`1px solid ${A}`,borderFocusWarning:`1px solid ${R}`,borderDisabledWarning:`1px solid ${k}`,rippleColorWarning:k,colorError:B,colorHoverError:S,colorPressedError:P,colorFocusError:S,colorDisabledError:B,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:B,textColorTextHoverError:S,textColorTextPressedError:P,textColorTextFocusError:S,textColorTextDisabledError:u,textColorGhostError:B,textColorGhostHoverError:S,textColorGhostPressedError:P,textColorGhostFocusError:S,textColorGhostDisabledError:B,borderError:`1px solid ${B}`,borderHoverError:`1px solid ${S}`,borderPressedError:`1px solid ${P}`,borderFocusError:`1px solid ${S}`,borderDisabledError:`1px solid ${B}`,rippleColorError:B,waveOpacity:"0.6",fontWeight:F,fontWeightStrong:W})},TI={name:"Button",common:Oe,self:MC},Tr=TI,RI={name:"Button",common:Fe,self(e){const t=MC(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},zr=RI,AI=Z([z("button",`
+ margin: 0;
+ font-weight: var(--n-font-weight);
+ line-height: 1;
+ font-family: inherit;
+ padding: var(--n-padding);
+ height: var(--n-height);
+ font-size: var(--n-font-size);
+ border-radius: var(--n-border-radius);
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ width: var(--n-width);
+ white-space: nowrap;
+ outline: none;
+ position: relative;
+ z-index: auto;
+ border: none;
+ display: inline-flex;
+ flex-wrap: nowrap;
+ flex-shrink: 0;
+ align-items: center;
+ justify-content: center;
+ user-select: none;
+ -webkit-user-select: none;
+ text-align: center;
+ cursor: pointer;
+ text-decoration: none;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[Y("color",[Q("border",{borderColor:"var(--n-border-color)"}),Y("disabled",[Q("border",{borderColor:"var(--n-border-color-disabled)"})]),St("disabled",[Z("&:focus",[Q("state-border",{borderColor:"var(--n-border-color-focus)"})]),Z("&:hover",[Q("state-border",{borderColor:"var(--n-border-color-hover)"})]),Z("&:active",[Q("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Y("pressed",[Q("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Y("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[Q("border",{border:"var(--n-border-disabled)"})]),St("disabled",[Z("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[Q("state-border",{border:"var(--n-border-focus)"})]),Z("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[Q("state-border",{border:"var(--n-border-hover)"})]),Z("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Q("state-border",{border:"var(--n-border-pressed)"})]),Y("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Q("state-border",{border:"var(--n-border-pressed)"})])]),Y("loading","cursor: wait;"),z("base-wave",`
+ pointer-events: none;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ animation-iteration-count: 1;
+ animation-duration: var(--n-ripple-duration);
+ animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
+ `,[Y("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Ci&&"MozBoxSizing"in document.createElement("div").style?Z("&::moz-focus-inner",{border:0}):null,Q("border, state-border",`
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ border-radius: inherit;
+ transition: border-color .3s var(--n-bezier);
+ pointer-events: none;
+ `),Q("border",{border:"var(--n-border)"}),Q("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),Q("icon",`
+ margin: var(--n-icon-margin);
+ margin-left: 0;
+ height: var(--n-icon-size);
+ width: var(--n-icon-size);
+ max-width: var(--n-icon-size);
+ font-size: var(--n-icon-size);
+ position: relative;
+ flex-shrink: 0;
+ `,[z("icon-slot",`
+ height: var(--n-icon-size);
+ width: var(--n-icon-size);
+ position: absolute;
+ left: 0;
+ top: 50%;
+ transform: translateY(-50%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[so({top:"50%",originalTransform:"translateY(-50%)"})]),kB()]),Q("content",`
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ min-width: 0;
+ `,[Z("~",[Q("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Y("block",`
+ display: flex;
+ width: 100%;
+ `),Y("dashed",[Q("border, state-border",{borderStyle:"dashed !important"})]),Y("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),Z("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),Z("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),FI=Object.assign(Object.assign({},ze.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!TC}}),OI=be({name:"Button",props:FI,setup(e){const t=U(null),r=U(null),o=U(!1),n=Ft(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=De(kI,{}),{mergedSizeRef:a}=Si({},{defaultSize:"medium",mergedSize:y=>{const{size:E}=e;if(E)return E;const{size:C}=i;if(C)return C;const{mergedSize:_}=y||{};return _?_.value:"medium"}}),l=j(()=>e.focusable&&!e.disabled),s=y=>{var E;l.value||y.preventDefault(),!e.nativeFocusBehavior&&(y.preventDefault(),!e.disabled&&l.value&&((E=t.value)===null||E===void 0||E.focus({preventScroll:!0})))},c=y=>{var E;if(!e.disabled&&!e.loading){const{onClick:C}=e;C&&Pe(C,y),e.text||(E=r.value)===null||E===void 0||E.play()}},d=y=>{switch(y.key){case"Enter":if(!e.keyboard)return;o.value=!1}},u=y=>{switch(y.key){case"Enter":if(!e.keyboard||e.loading){y.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:v}=nt(e),g=ze("Button","-button",AI,Tr,e,h),m=dr("Button",v,h),x=j(()=>{const y=g.value,{common:{cubicBezierEaseInOut:E,cubicBezierEaseOut:C},self:_}=y,{rippleDuration:k,opacityDisabled:R,fontWeight:A,fontWeightStrong:B}=_,S=a.value,{dashed:P,type:F,ghost:T,text:H,color:N,round:W,circle:re,textColor:ee,secondary:L,tertiary:M,quaternary:G,strong:J}=e,ge={"font-weight":J?B:A};let ve={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const te=F==="tertiary",ce=F==="default",X=te?"default":F;if(H){const O=ee||N;ve={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":O||_[ye("textColorText",X)],"--n-text-color-hover":O?Yn(O):_[ye("textColorTextHover",X)],"--n-text-color-pressed":O?ps(O):_[ye("textColorTextPressed",X)],"--n-text-color-focus":O?Yn(O):_[ye("textColorTextHover",X)],"--n-text-color-disabled":O||_[ye("textColorTextDisabled",X)]}}else if(T||P){const O=ee||N;ve={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":N||_[ye("rippleColor",X)],"--n-text-color":O||_[ye("textColorGhost",X)],"--n-text-color-hover":O?Yn(O):_[ye("textColorGhostHover",X)],"--n-text-color-pressed":O?ps(O):_[ye("textColorGhostPressed",X)],"--n-text-color-focus":O?Yn(O):_[ye("textColorGhostHover",X)],"--n-text-color-disabled":O||_[ye("textColorGhostDisabled",X)]}}else if(L){const O=ce?_.textColor:te?_.textColorTertiary:_[ye("color",X)],$=N||O,V=F!=="default"&&F!=="tertiary";ve={"--n-color":V?Se($,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":V?Se($,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":V?Se($,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":V?Se($,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":$,"--n-text-color-hover":$,"--n-text-color-pressed":$,"--n-text-color-focus":$,"--n-text-color-disabled":$}}else if(M||G){const O=ce?_.textColor:te?_.textColorTertiary:_[ye("color",X)],$=N||O;M?(ve["--n-color"]=_.colorTertiary,ve["--n-color-hover"]=_.colorTertiaryHover,ve["--n-color-pressed"]=_.colorTertiaryPressed,ve["--n-color-focus"]=_.colorSecondaryHover,ve["--n-color-disabled"]=_.colorTertiary):(ve["--n-color"]=_.colorQuaternary,ve["--n-color-hover"]=_.colorQuaternaryHover,ve["--n-color-pressed"]=_.colorQuaternaryPressed,ve["--n-color-focus"]=_.colorQuaternaryHover,ve["--n-color-disabled"]=_.colorQuaternary),ve["--n-ripple-color"]="#0000",ve["--n-text-color"]=$,ve["--n-text-color-hover"]=$,ve["--n-text-color-pressed"]=$,ve["--n-text-color-focus"]=$,ve["--n-text-color-disabled"]=$}else ve={"--n-color":N||_[ye("color",X)],"--n-color-hover":N?Yn(N):_[ye("colorHover",X)],"--n-color-pressed":N?ps(N):_[ye("colorPressed",X)],"--n-color-focus":N?Yn(N):_[ye("colorFocus",X)],"--n-color-disabled":N||_[ye("colorDisabled",X)],"--n-ripple-color":N||_[ye("rippleColor",X)],"--n-text-color":ee||(N?_.textColorPrimary:te?_.textColorTertiary:_[ye("textColor",X)]),"--n-text-color-hover":ee||(N?_.textColorHoverPrimary:_[ye("textColorHover",X)]),"--n-text-color-pressed":ee||(N?_.textColorPressedPrimary:_[ye("textColorPressed",X)]),"--n-text-color-focus":ee||(N?_.textColorFocusPrimary:_[ye("textColorFocus",X)]),"--n-text-color-disabled":ee||(N?_.textColorDisabledPrimary:_[ye("textColorDisabled",X)])};let le={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};H?le={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:le={"--n-border":_[ye("border",X)],"--n-border-hover":_[ye("borderHover",X)],"--n-border-pressed":_[ye("borderPressed",X)],"--n-border-focus":_[ye("borderFocus",X)],"--n-border-disabled":_[ye("borderDisabled",X)]};const{[ye("height",S)]:Ee,[ye("fontSize",S)]:_e,[ye("padding",S)]:D,[ye("paddingRound",S)]:I,[ye("iconSize",S)]:q,[ye("borderRadius",S)]:ue,[ye("iconMargin",S)]:se,waveOpacity:me}=_,Ce={"--n-width":re&&!H?Ee:"initial","--n-height":H?"initial":Ee,"--n-font-size":_e,"--n-padding":re||H?"initial":W?I:D,"--n-icon-size":q,"--n-icon-margin":se,"--n-border-radius":H?"initial":re||W?Ee:ue};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":E,"--n-bezier-ease-out":C,"--n-ripple-duration":k,"--n-opacity-disabled":R,"--n-wave-opacity":me},ge),ve),le),Ce)}),b=p?Ct("button",j(()=>{let y="";const{dashed:E,type:C,ghost:_,text:k,color:R,round:A,circle:B,textColor:S,secondary:P,tertiary:F,quaternary:T,strong:H}=e;E&&(y+="a"),_&&(y+="b"),k&&(y+="c"),A&&(y+="d"),B&&(y+="e"),P&&(y+="f"),F&&(y+="g"),T&&(y+="h"),H&&(y+="i"),R&&(y+="j"+bl(R)),S&&(y+="k"+bl(S));const{value:N}=a;return y+="l"+N[0],y+="m"+C[0],y}),x,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:h,mergedFocusable:l,mergedSize:a,showBorder:n,enterPressed:o,rtlEnabled:m,handleMousedown:s,handleKeydown:u,handleBlur:f,handleKeyup:d,handleClick:c,customColorCssVars:j(()=>{const{color:y}=e;if(!y)return null;const E=Yn(y);return{"--n-border-color":y,"--n-border-color-hover":E,"--n-border-color-pressed":ps(y),"--n-border-color-focus":E,"--n-border-color-disabled":y}}),cssVars:p?void 0:x,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const o=Rt(this.$slots.default,n=>n&&w("span",{class:`${e}-button__content`},n));return w(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,w(nC,{width:!0},{default:()=>Rt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&w("span",{class:`${e}-button__icon`,style:{margin:mf(this.$slots.default)?"0":""}},w(ha,null,{default:()=>this.loading?w(va,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):w("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&o,this.text?null:w(nB,{ref:"waveElRef",clsPrefix:e}),this.showBorder?w("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?w("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),nr=OI,BI={titleFontSize:"22px"},NC=e=>{const{borderRadius:t,fontSize:r,lineHeight:o,textColor2:n,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:p,popoverColor:h}=e;return Object.assign(Object.assign({},BI),{borderRadius:t,borderColor:Ke(f,l),borderColorModal:Ke(p,l),borderColorPopover:Ke(h,l),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:r,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:Ke(f,u),cellColorHoverModal:Ke(p,u),cellColorHoverPopover:Ke(h,u),cellColor:f,cellColorModal:p,cellColorPopover:h,barColor:c})},II={name:"Calendar",common:Oe,peers:{Button:Tr},self:NC},$I=II,DI={name:"Calendar",common:Fe,peers:{Button:zr},self:NC},LI=DI,HC=e=>{const{fontSize:t,boxShadow2:r,popoverColor:o,textColor2:n,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:r,color:o,textColor:n,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}},zI={name:"ColorPicker",common:Oe,peers:{Input:Wr,Button:Tr},self:HC},MI=zI,NI={name:"ColorPicker",common:Fe,peers:{Input:Qr,Button:zr},self:HC},HI=NI,jI={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},jC=e=>{const{primaryColor:t,borderRadius:r,lineHeight:o,fontSize:n,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:h,modalColor:v,boxShadow1:g,popoverColor:m,actionColor:x}=e;return Object.assign(Object.assign({},jI),{lineHeight:o,color:i,colorModal:v,colorPopover:m,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:a,titleTextColor:l,borderColor:s,actionColor:x,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:r,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:g,borderRadius:r})},WI={name:"Card",common:Oe,self:jC},mh=WI,VI={name:"Card",common:Fe,self(e){const t=jC(e),{cardColor:r,modalColor:o,popoverColor:n}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=n,t}},WC=VI,UI=Z([z("card",`
+ font-size: var(--n-font-size);
+ line-height: var(--n-line-height);
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ box-sizing: border-box;
+ position: relative;
+ border-radius: var(--n-border-radius);
+ background-color: var(--n-color);
+ color: var(--n-text-color);
+ word-break: break-word;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[V1({background:"var(--n-color-modal)"}),Y("hoverable",[Z("&:hover","box-shadow: var(--n-box-shadow);")]),Y("content-segmented",[Z(">",[Q("content",{paddingTop:"var(--n-padding-bottom)"})])]),Y("content-soft-segmented",[Z(">",[Q("content",`
+ margin: 0 var(--n-padding-left);
+ padding: var(--n-padding-bottom) 0;
+ `)])]),Y("footer-segmented",[Z(">",[Q("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Y("footer-soft-segmented",[Z(">",[Q("footer",`
+ padding: var(--n-padding-bottom) 0;
+ margin: 0 var(--n-padding-left);
+ `)])]),Z(">",[z("card-header",`
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ font-size: var(--n-title-font-size);
+ padding:
+ var(--n-padding-top)
+ var(--n-padding-left)
+ var(--n-padding-bottom)
+ var(--n-padding-left);
+ `,[Q("main",`
+ font-weight: var(--n-title-font-weight);
+ transition: color .3s var(--n-bezier);
+ flex: 1;
+ min-width: 0;
+ color: var(--n-title-text-color);
+ `),Q("extra",`
+ display: flex;
+ align-items: center;
+ font-size: var(--n-font-size);
+ font-weight: 400;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ `),Q("close",`
+ margin: 0 0 0 8px;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `)]),Q("action",`
+ box-sizing: border-box;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ background-clip: padding-box;
+ background-color: var(--n-action-color);
+ `),Q("content","flex: 1; min-width: 0;"),Q("content, footer",`
+ box-sizing: border-box;
+ padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
+ font-size: var(--n-font-size);
+ `,[Z("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),Q("action",`
+ background-color: var(--n-action-color);
+ padding: var(--n-padding-bottom) var(--n-padding-left);
+ border-bottom-left-radius: var(--n-border-radius);
+ border-bottom-right-radius: var(--n-border-radius);
+ `)]),z("card-cover",`
+ overflow: hidden;
+ width: 100%;
+ border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
+ `,[Z("img",`
+ display: block;
+ width: 100%;
+ `)]),Y("bordered",`
+ border: 1px solid var(--n-border-color);
+ `,[Z("&:target","border-color: var(--n-color-target);")]),Y("action-segmented",[Z(">",[Q("action",[Z("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("content-segmented, content-soft-segmented",[Z(">",[Q("content",{transition:"border-color 0.3s var(--n-bezier)"},[Z("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("footer-segmented, footer-soft-segmented",[Z(">",[Q("footer",{transition:"border-color 0.3s var(--n-bezier)"},[Z("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("embedded",`
+ background-color: var(--n-color-embedded);
+ `)]),ua(z("card",`
+ background: var(--n-color-modal);
+ `,[Y("embedded",`
+ background-color: var(--n-color-embedded-modal);
+ `)])),Nl(z("card",`
+ background: var(--n-color-popover);
+ `,[Y("embedded",`
+ background-color: var(--n-color-embedded-popover);
+ `)]))]),bh={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},KI=On(bh),qI=Object.assign(Object.assign({},ze.props),bh),xh=be({name:"Card",props:qI,setup(e){const t=()=>{const{onClose:c}=e;c&&Pe(c)},{inlineThemeDisabled:r,mergedClsPrefixRef:o,mergedRtlRef:n}=nt(e),i=ze("Card","-card",UI,mh,e,o),a=dr("Card",n,o),l=j(()=>{const{size:c}=e,{self:{color:d,colorModal:u,colorTarget:f,textColor:p,titleTextColor:h,titleFontWeight:v,borderColor:g,actionColor:m,borderRadius:x,lineHeight:b,closeIconColor:y,closeIconColorHover:E,closeIconColorPressed:C,closeColorHover:_,closeColorPressed:k,closeBorderRadius:R,closeIconSize:A,closeSize:B,boxShadow:S,colorPopover:P,colorEmbedded:F,colorEmbeddedModal:T,colorEmbeddedPopover:H,[ye("padding",c)]:N,[ye("fontSize",c)]:W,[ye("titleFontSize",c)]:re},common:{cubicBezierEaseInOut:ee}}=i.value,{top:L,left:M,bottom:G}=kr(N);return{"--n-bezier":ee,"--n-border-radius":x,"--n-color":d,"--n-color-modal":u,"--n-color-popover":P,"--n-color-embedded":F,"--n-color-embedded-modal":T,"--n-color-embedded-popover":H,"--n-color-target":f,"--n-text-color":p,"--n-line-height":b,"--n-action-color":m,"--n-title-text-color":h,"--n-title-font-weight":v,"--n-close-icon-color":y,"--n-close-icon-color-hover":E,"--n-close-icon-color-pressed":C,"--n-close-color-hover":_,"--n-close-color-pressed":k,"--n-border-color":g,"--n-box-shadow":S,"--n-padding-top":L,"--n-padding-bottom":G,"--n-padding-left":M,"--n-font-size":W,"--n-title-font-size":re,"--n-close-size":B,"--n-close-icon-size":A,"--n-close-border-radius":R}}),s=r?Ct("card",j(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:o,rtlEnabled:n,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),w(l,{class:[`${o}-card`,this.themeClass,a&&`${o}-card--embedded`,{[`${o}-card--rtl`]:n,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:r}],style:this.cssVars,role:this.role},Rt(s.cover,c=>{const d=this.cover?ao([this.cover()]):c;return d&&w("div",{class:`${o}-card-cover`,role:"none"},d)}),Rt(s.header,c=>{const{title:d}=this,u=d?ao(typeof d=="function"?[d()]:[d]):c;return u||this.closable?w("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},w("div",{class:`${o}-card-header__main`,role:"heading"},u),Rt(s["header-extra"],f=>{const p=this.headerExtra?ao([this.headerExtra()]):f;return p&&w("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},p)}),this.closable&&w(pa,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),Rt(s.default,c=>{const{content:d}=this,u=d?ao(typeof d=="function"?[d()]:[d]):c;return u&&w("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},u)}),Rt(s.footer,c=>{const d=this.footer?ao([this.footer()]):c;return d&&w("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),Rt(s.action,c=>{const d=this.action?ao([this.action()]):c;return d&&w("div",{class:`${o}-card__action`,role:"none"},d)}))}}),VC=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),GI={name:"Carousel",common:Oe,self:VC},XI=GI,YI={name:"Carousel",common:Fe,self:VC},ZI=YI,JI={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},UC=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:o,modalColor:n,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},JI),{labelLineHeight:h,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:s,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:o,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${Se(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},QI={name:"Checkbox",common:Oe,self:UC},Ai=QI,e$={name:"Checkbox",common:Fe,self(e){const{cardColor:t}=e,r=UC(e);return r.color="#0000",r.checkMarkColor=t,r}},xa=e$,KC=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:r,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:n,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},t$={name:"Cascader",common:Oe,peers:{InternalSelectMenu:ga,InternalSelection:Mc,Scrollbar:Pr,Checkbox:Ai,Empty:Mo},self:KC},r$=t$,o$={name:"Cascader",common:Fe,peers:{InternalSelectMenu:Wl,InternalSelection:vh,Scrollbar:Lr,Checkbox:xa,Empty:Mo},self:KC},n$=o$,i$=w("svg",{viewBox:"0 0 64 64",class:"check-icon"},w("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),a$=w("svg",{viewBox:"0 0 100 100",class:"line-icon"},w("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),qC="n-checkbox-group",l$={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},s$=be({name:"CheckboxGroup",props:l$,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=Si(e),{mergedSizeRef:o,mergedDisabledRef:n}=r,i=U(e.defaultValue),a=j(()=>e.value),l=Cr(a,i),s=j(()=>{var u;return((u=l.value)===null||u===void 0?void 0:u.length)||0}),c=j(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(u,f){const{nTriggerFormInput:p,nTriggerFormChange:h}=r,{onChange:v,"onUpdate:value":g,onUpdateValue:m}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),b=x.findIndex(y=>y===f);u?~b||(x.push(f),m&&Pe(m,x,{actionType:"check",value:f}),g&&Pe(g,x,{actionType:"check",value:f}),p(),h(),i.value=x,v&&Pe(v,x)):~b&&(x.splice(b,1),m&&Pe(m,x,{actionType:"uncheck",value:f}),g&&Pe(g,x,{actionType:"uncheck",value:f}),v&&Pe(v,x),i.value=x,p(),h())}else u?(m&&Pe(m,[f],{actionType:"check",value:f}),g&&Pe(g,[f],{actionType:"check",value:f}),v&&Pe(v,[f]),i.value=[f],p(),h()):(m&&Pe(m,[],{actionType:"uncheck",value:f}),g&&Pe(g,[],{actionType:"uncheck",value:f}),v&&Pe(v,[]),i.value=[],p(),h())}return ot(qC,{checkedCountRef:s,maxRef:Re(e,"max"),minRef:Re(e,"min"),valueSetRef:c,disabledRef:n,mergedSizeRef:o,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return w("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),c$=Z([z("checkbox",`
+ font-size: var(--n-font-size);
+ outline: none;
+ cursor: pointer;
+ display: inline-flex;
+ flex-wrap: nowrap;
+ align-items: flex-start;
+ word-break: break-word;
+ line-height: var(--n-size);
+ --n-merged-color-table: var(--n-color-table);
+ `,[Y("show-label","line-height: var(--n-label-line-height);"),Z("&:hover",[z("checkbox-box",[Q("border","border: var(--n-border-checked);")])]),Z("&:focus:not(:active)",[z("checkbox-box",[Q("border",`
+ border: var(--n-border-focus);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),Y("inside-table",[z("checkbox-box",`
+ background-color: var(--n-merged-color-table);
+ `)]),Y("checked",[z("checkbox-box",`
+ background-color: var(--n-color-checked);
+ `,[z("checkbox-icon",[Z(".check-icon",`
+ opacity: 1;
+ transform: scale(1);
+ `)])])]),Y("indeterminate",[z("checkbox-box",[z("checkbox-icon",[Z(".check-icon",`
+ opacity: 0;
+ transform: scale(.5);
+ `),Z(".line-icon",`
+ opacity: 1;
+ transform: scale(1);
+ `)])])]),Y("checked, indeterminate",[Z("&:focus:not(:active)",[z("checkbox-box",[Q("border",`
+ border: var(--n-border-checked);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),z("checkbox-box",`
+ background-color: var(--n-color-checked);
+ border-left: 0;
+ border-top: 0;
+ `,[Q("border",{border:"var(--n-border-checked)"})])]),Y("disabled",{cursor:"not-allowed"},[Y("checked",[z("checkbox-box",`
+ background-color: var(--n-color-disabled-checked);
+ `,[Q("border",{border:"var(--n-border-disabled-checked)"}),z("checkbox-icon",[Z(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),z("checkbox-box",`
+ background-color: var(--n-color-disabled);
+ `,[Q("border",`
+ border: var(--n-border-disabled);
+ `),z("checkbox-icon",[Z(".check-icon, .line-icon",`
+ fill: var(--n-check-mark-color-disabled);
+ `)])]),Q("label",`
+ color: var(--n-text-color-disabled);
+ `)]),z("checkbox-box-wrapper",`
+ position: relative;
+ width: var(--n-size);
+ flex-shrink: 0;
+ flex-grow: 0;
+ user-select: none;
+ -webkit-user-select: none;
+ `),z("checkbox-box",`
+ position: absolute;
+ left: 0;
+ top: 50%;
+ transform: translateY(-50%);
+ height: var(--n-size);
+ width: var(--n-size);
+ display: inline-block;
+ box-sizing: border-box;
+ border-radius: var(--n-border-radius);
+ background-color: var(--n-color);
+ transition: background-color 0.3s var(--n-bezier);
+ `,[Q("border",`
+ transition:
+ border-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ border-radius: inherit;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border: var(--n-border);
+ `),z("checkbox-icon",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ left: 1px;
+ right: 1px;
+ top: 1px;
+ bottom: 1px;
+ `,[Z(".check-icon, .line-icon",`
+ width: 100%;
+ fill: var(--n-check-mark-color);
+ opacity: 0;
+ transform: scale(0.5);
+ transform-origin: center;
+ transition:
+ fill 0.3s var(--n-bezier),
+ transform 0.3s var(--n-bezier),
+ opacity 0.3s var(--n-bezier),
+ border-color 0.3s var(--n-bezier);
+ `),so({left:"1px",top:"1px"})])]),Q("label",`
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ user-select: none;
+ -webkit-user-select: none;
+ padding: var(--n-label-padding);
+ font-weight: var(--n-label-font-weight);
+ `,[Z("&:empty",{display:"none"})])]),ua(z("checkbox",`
+ --n-merged-color-table: var(--n-color-table-modal);
+ `)),Nl(z("checkbox",`
+ --n-merged-color-table: var(--n-color-table-popover);
+ `))]),d$=Object.assign(Object.assign({},ze.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Nc=be({name:"Checkbox",props:d$,setup(e){const t=U(null),{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),i=Si(e,{mergedSize(C){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:k}=s.mergedSizeRef;if(k!==void 0)return k}if(C){const{mergedSize:k}=C;if(k!==void 0)return k.value}return"medium"},mergedDisabled(C){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:k},checkedCountRef:R}=s;if(k!==void 0&&R.value>=k&&!f.value)return!0;const{minRef:{value:A}}=s;if(A!==void 0&&R.value<=A&&f.value)return!0}return C?C.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=De(qC,null),c=U(e.defaultChecked),d=Re(e,"checked"),u=Cr(d,c),f=Ft(()=>{if(s){const C=s.valueSetRef.value;return C&&e.value!==void 0?C.has(e.value):!1}else return u.value===e.checkedValue}),p=ze("Checkbox","-checkbox",c$,Ai,e,r);function h(C){if(s&&e.value!==void 0)s.toggleCheckbox(!f.value,e.value);else{const{onChange:_,"onUpdate:checked":k,onUpdateChecked:R}=e,{nTriggerFormInput:A,nTriggerFormChange:B}=i,S=f.value?e.uncheckedValue:e.checkedValue;k&&Pe(k,S,C),R&&Pe(R,S,C),_&&Pe(_,S,C),A(),B(),c.value=S}}function v(C){a.value||h(C)}function g(C){if(!a.value)switch(C.key){case" ":case"Enter":h(C)}}function m(C){switch(C.key){case" ":C.preventDefault()}}const x={focus:()=>{var C;(C=t.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=t.value)===null||C===void 0||C.blur()}},b=dr("Checkbox",n,r),y=j(()=>{const{value:C}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:k,color:R,colorChecked:A,colorDisabled:B,colorTableHeader:S,colorTableHeaderModal:P,colorTableHeaderPopover:F,checkMarkColor:T,checkMarkColorDisabled:H,border:N,borderFocus:W,borderDisabled:re,borderChecked:ee,boxShadowFocus:L,textColor:M,textColorDisabled:G,checkMarkColorDisabledChecked:J,colorDisabledChecked:ge,borderDisabledChecked:ve,labelPadding:te,labelLineHeight:ce,labelFontWeight:X,[ye("fontSize",C)]:le,[ye("size",C)]:Ee}}=p.value;return{"--n-label-line-height":ce,"--n-label-font-weight":X,"--n-size":Ee,"--n-bezier":_,"--n-border-radius":k,"--n-border":N,"--n-border-checked":ee,"--n-border-focus":W,"--n-border-disabled":re,"--n-border-disabled-checked":ve,"--n-box-shadow-focus":L,"--n-color":R,"--n-color-checked":A,"--n-color-table":S,"--n-color-table-modal":P,"--n-color-table-popover":F,"--n-color-disabled":B,"--n-color-disabled-checked":ge,"--n-text-color":M,"--n-text-color-disabled":G,"--n-check-mark-color":T,"--n-check-mark-color-disabled":H,"--n-check-mark-color-disabled-checked":J,"--n-font-size":le,"--n-label-padding":te}}),E=o?Ct("checkbox",j(()=>l.value[0]),y,e):void 0;return Object.assign(i,x,{rtlEnabled:b,selfRef:t,mergedClsPrefix:r,mergedDisabled:a,renderedChecked:f,mergedTheme:p,labelId:Fn(),handleClick:v,handleKeyUp:g,handleKeyDown:m,cssVars:o?void 0:y,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender})},render(){var e;const{$slots:t,renderedChecked:r,mergedDisabled:o,indeterminate:n,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:u,handleKeyDown:f,handleClick:p}=this;(e=this.onRender)===null||e===void 0||e.call(this);const h=Rt(t.default,v=>s||v?w("span",{class:`${c}-checkbox__label`,id:l},s||v):null);return w("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,r&&`${c}-checkbox--checked`,o&&`${c}-checkbox--disabled`,n&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,h&&`${c}-checkbox--show-label`],tabindex:o||!d?void 0:0,role:"checkbox","aria-checked":n?"mixed":r,"aria-labelledby":l,style:a,onKeyup:u,onKeydown:f,onClick:p,onMousedown:()=>{kt("selectstart",window,v=>{v.preventDefault()},{once:!0})}},w("div",{class:`${c}-checkbox-box-wrapper`}," ",w("div",{class:`${c}-checkbox-box`},w(ha,null,{default:()=>this.indeterminate?w("div",{key:"indeterminate",class:`${c}-checkbox-icon`},a$):w("div",{key:"check",class:`${c}-checkbox-icon`},i$)}),w("div",{class:`${c}-checkbox-box__border`}))),h)}}),u$={name:"Code",common:Fe,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:o,textColor3:n}=e;return{textColor:t,fontSize:r,fontWeightStrong:o,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}},GC=u$,f$=e=>{const{textColor2:t,fontSize:r,fontWeightStrong:o,textColor3:n}=e;return{textColor:t,fontSize:r,fontWeightStrong:o,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:n}},h$={name:"Code",common:Oe,self:f$},XC=h$,YC=e=>{const{fontWeight:t,textColor1:r,textColor2:o,textColorDisabled:n,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:r,titleTextColorDisabled:n,fontSize:a,textColor:o,arrowColor:o,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},p$={name:"Collapse",common:Oe,self:YC},v$=p$,g$={name:"Collapse",common:Fe,self:YC},m$=g$,ZC=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},b$={name:"CollapseTransition",common:Oe,self:ZC},x$=b$,y$={name:"CollapseTransition",common:Fe,self:ZC},C$=y$,w$={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:kl},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Io("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},S$=be({name:"ConfigProvider",alias:["App"],props:w$,setup(e){const t=De(Do,null),r=j(()=>{const{theme:h}=e;if(h===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return h===void 0?v:v===void 0?h:Object.assign({},v,h)}),o=j(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?h:ja({},v,h)}}}),n=Ft(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),i=Ft(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),a=j(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),l=j(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),s=j(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t?t.mergedClsPrefixRef.value:kl}),c=j(()=>{var h;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const g={};for(const m of v)g[m.name]=sl(m),(h=m.peers)===null||h===void 0||h.forEach(x=>{x.name in g||(g[x.name]=sl(x))});return g}),d=j(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=j(()=>{const{value:h}=r,{value:v}=o,g=v&&Object.keys(v).length!==0,m=h==null?void 0:h.name;return m?g?`${m}-${xl(JSON.stringify(o.value))}`:m:g?xl(JSON.stringify(o.value)):""});return ot(Do,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:j(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:j(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:j(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedKatexRef:j(()=>{const{katex:h}=e;return h===void 0?t==null?void 0:t.mergedKatexRef.value:h}),mergedThemeRef:r,mergedThemeOverridesRef:o,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:r,mergedThemeOverrides:o}},render(){var e,t,r,o;return this.abstract?(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r):w(this.as||this.tag,{class:`${this.mergedClsPrefix||kl}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),_$={name:"Popselect",common:Fe,peers:{Popover:Ri,InternalSelectMenu:Wl}},JC=_$;function E$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const k$={name:"Popselect",common:Oe,peers:{Popover:Hn,InternalSelectMenu:ga},self:E$},Hc=k$,QC="n-popselect",P$=z("popselect-menu",`
+ box-shadow: var(--n-menu-box-shadow);
+`),yh={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Fg=On(yh),T$=be({name:"PopselectPanel",props:yh,setup(e){const t=De(QC),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=nt(e),n=ze("Popselect","-pop-select",P$,Hc,t.props,r),i=j(()=>zc(e.options,PC("value","children")));function a(f,p){const{onUpdateValue:h,"onUpdate:value":v,onChange:g}=e;h&&Pe(h,f,p),v&&Pe(v,f,p),g&&Pe(g,f,p)}function l(f){c(f.key)}function s(f){!ho(f,"action")&&!ho(f,"empty")&&!ho(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:p}}=i;if(e.multiple)if(Array.isArray(e.value)){const h=[],v=[];let g=!0;e.value.forEach(m=>{if(m===f){g=!1;return}const x=p(m);x&&(h.push(x.key),v.push(x.rawNode))}),g&&(h.push(f),v.push(p(f).rawNode)),a(h,v)}else{const h=p(f);h&&a([f],[h.rawNode])}else if(e.value===f&&e.cancelable)a(null,null);else{const h=p(f);h&&a(f,h.rawNode);const{"onUpdate:show":v,onUpdateShow:g}=t.props;v&&Pe(v,!1),g&&Pe(g,!1),t.setShow(!1)}Bt(()=>{t.syncPosition()})}lt(Re(e,"options"),()=>{Bt(()=>{t.syncPosition()})});const d=j(()=>{const{self:{menuBoxShadow:f}}=n.value;return{"--n-menu-box-shadow":f}}),u=o?Ct("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:o?void 0:d,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),w(vC,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,r;return((r=(t=this.$slots).header)===null||r===void 0?void 0:r.call(t))||[]},action:()=>{var t,r;return((r=(t=this.$slots).action)===null||r===void 0?void 0:r.call(t))||[]},empty:()=>{var t,r;return((r=(t=this.$slots).empty)===null||r===void 0?void 0:r.call(t))||[]}})}}),R$=Object.assign(Object.assign(Object.assign(Object.assign({},ze.props),xi(vi,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},vi.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),yh),A$=be({name:"Popselect",props:R$,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=ze("Popselect","-popselect",void 0,Hc,e,t),o=U(null);function n(){var l;(l=o.value)===null||l===void 0||l.syncPosition()}function i(l){var s;(s=o.value)===null||s===void 0||s.setShow(l)}return ot(QC,{props:e,mergedThemeRef:r,syncPosition:n,setShow:i}),Object.assign(Object.assign({},{syncPosition:n,setShow:i}),{popoverInstRef:o,mergedTheme:r})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,o,n,i,a)=>{const{$attrs:l}=this;return w(T$,Object.assign({},l,{class:[l.class,r],style:[l.style,...n]},tn(this.$props,Fg),{ref:L1(o),onMouseenter:Ya([i,l.onMouseenter]),onMouseleave:Ya([a,l.onMouseleave])}),{header:()=>{var s,c;return(c=(s=this.$slots).header)===null||c===void 0?void 0:c.call(s)},action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return w(ba,Object.assign({},xi(this.$props,Fg),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}});function ew(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const F$={name:"Select",common:Oe,peers:{InternalSelection:Mc,InternalSelectMenu:ga},self:ew},Ch=F$,O$={name:"Select",common:Fe,peers:{InternalSelection:vh,InternalSelectMenu:Wl},self:ew},tw=O$,B$=Z([z("select",`
+ z-index: auto;
+ outline: none;
+ width: 100%;
+ position: relative;
+ `),z("select-menu",`
+ margin: 4px 0;
+ box-shadow: var(--n-menu-box-shadow);
+ `,[ma({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),I$=Object.assign(Object.assign({},ze.props),{to:$o.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),$$=be({name:"Select",props:I$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,namespaceRef:o,inlineThemeDisabled:n}=nt(e),i=ze("Select","-select",B$,Ch,e,t),a=U(e.defaultValue),l=Re(e,"value"),s=Cr(l,a),c=U(!1),d=U(""),u=j(()=>{const{valueField:K,childrenField:fe}=e,we=PC(K,fe);return zc(S.value,we)}),f=j(()=>HB(A.value,e.valueField,e.childrenField)),p=U(!1),h=Cr(Re(e,"show"),p),v=U(null),g=U(null),m=U(null),{localeRef:x}=$n("Select"),b=j(()=>{var K;return(K=e.placeholder)!==null&&K!==void 0?K:x.value.placeholder}),y=Xs(e,["items","options"]),E=[],C=U([]),_=U([]),k=U(new Map),R=j(()=>{const{fallbackOption:K}=e;if(K===void 0){const{labelField:fe,valueField:we}=e;return Le=>({[fe]:String(Le),[we]:Le})}return K===!1?!1:fe=>Object.assign(K(fe),{value:fe})}),A=j(()=>_.value.concat(C.value).concat(y.value)),B=j(()=>{const{filter:K}=e;if(K)return K;const{labelField:fe,valueField:we}=e;return(Le,We)=>{if(!We)return!1;const Ue=We[fe];if(typeof Ue=="string")return Zd(Le,Ue);const qe=We[we];return typeof qe=="string"?Zd(Le,qe):typeof qe=="number"?Zd(Le,String(qe)):!1}}),S=j(()=>{if(e.remote)return y.value;{const{value:K}=A,{value:fe}=d;return!fe.length||!e.filterable?K:NB(K,B.value,fe,e.childrenField)}});function P(K){const fe=e.remote,{value:we}=k,{value:Le}=f,{value:We}=R,Ue=[];return K.forEach(qe=>{if(Le.has(qe))Ue.push(Le.get(qe));else if(fe&&we.has(qe))Ue.push(we.get(qe));else if(We){const Xe=We(qe);Xe&&Ue.push(Xe)}}),Ue}const F=j(()=>{if(e.multiple){const{value:K}=s;return Array.isArray(K)?P(K):[]}return null}),T=j(()=>{const{value:K}=s;return!e.multiple&&!Array.isArray(K)?K===null?null:P([K])[0]||null:null}),H=Si(e),{mergedSizeRef:N,mergedDisabledRef:W,mergedStatusRef:re}=H;function ee(K,fe){const{onChange:we,"onUpdate:value":Le,onUpdateValue:We}=e,{nTriggerFormChange:Ue,nTriggerFormInput:qe}=H;we&&Pe(we,K,fe),We&&Pe(We,K,fe),Le&&Pe(Le,K,fe),a.value=K,Ue(),qe()}function L(K){const{onBlur:fe}=e,{nTriggerFormBlur:we}=H;fe&&Pe(fe,K),we()}function M(){const{onClear:K}=e;K&&Pe(K)}function G(K){const{onFocus:fe,showOnFocus:we}=e,{nTriggerFormFocus:Le}=H;fe&&Pe(fe,K),Le(),we&&ce()}function J(K){const{onSearch:fe}=e;fe&&Pe(fe,K)}function ge(K){const{onScroll:fe}=e;fe&&Pe(fe,K)}function ve(){var K;const{remote:fe,multiple:we}=e;if(fe){const{value:Le}=k;if(we){const{valueField:We}=e;(K=F.value)===null||K===void 0||K.forEach(Ue=>{Le.set(Ue[We],Ue)})}else{const We=T.value;We&&Le.set(We[e.valueField],We)}}}function te(K){const{onUpdateShow:fe,"onUpdate:show":we}=e;fe&&Pe(fe,K),we&&Pe(we,K),p.value=K}function ce(){W.value||(te(!0),p.value=!0,e.filterable&&Ie())}function X(){te(!1)}function le(){d.value="",_.value=E}const Ee=U(!1);function _e(){e.filterable&&(Ee.value=!0)}function D(){e.filterable&&(Ee.value=!1,h.value||le())}function I(){W.value||(h.value?e.filterable?Ie():X():ce())}function q(K){var fe,we;!((we=(fe=m.value)===null||fe===void 0?void 0:fe.selfRef)===null||we===void 0)&&we.contains(K.relatedTarget)||(c.value=!1,L(K),X())}function ue(K){G(K),c.value=!0}function se(K){c.value=!0}function me(K){var fe;!((fe=v.value)===null||fe===void 0)&&fe.$el.contains(K.relatedTarget)||(c.value=!1,L(K),X())}function Ce(){var K;(K=v.value)===null||K===void 0||K.focus(),X()}function O(K){var fe;h.value&&(!((fe=v.value)===null||fe===void 0)&&fe.$el.contains(Ji(K))||X())}function $(K){if(!Array.isArray(K))return[];if(R.value)return Array.from(K);{const{remote:fe}=e,{value:we}=f;if(fe){const{value:Le}=k;return K.filter(We=>we.has(We)||Le.has(We))}else return K.filter(Le=>we.has(Le))}}function V(K){ie(K.rawNode)}function ie(K){if(W.value)return;const{tag:fe,remote:we,clearFilterAfterSelect:Le,valueField:We}=e;if(fe&&!we){const{value:Ue}=_,qe=Ue[0]||null;if(qe){const Xe=C.value;Xe.length?Xe.push(qe):C.value=[qe],_.value=E}}if(we&&k.value.set(K[We],K),e.multiple){const Ue=$(s.value),qe=Ue.findIndex(Xe=>Xe===K[We]);if(~qe){if(Ue.splice(qe,1),fe&&!we){const Xe=ne(K[We]);~Xe&&(C.value.splice(Xe,1),Le&&(d.value=""))}}else Ue.push(K[We]),Le&&(d.value="");ee(Ue,P(Ue))}else{if(fe&&!we){const Ue=ne(K[We]);~Ue?C.value=[C.value[Ue]]:C.value=E}Te(),X(),ee(K[We],K)}}function ne(K){return C.value.findIndex(we=>we[e.valueField]===K)}function ae(K){h.value||ce();const{value:fe}=K.target;d.value=fe;const{tag:we,remote:Le}=e;if(J(fe),we&&!Le){if(!fe){_.value=E;return}const{onCreate:We}=e,Ue=We?We(fe):{[e.labelField]:fe,[e.valueField]:fe},{valueField:qe,labelField:Xe}=e;y.value.some(st=>st[qe]===Ue[qe]||st[Xe]===Ue[Xe])||C.value.some(st=>st[qe]===Ue[qe]||st[Xe]===Ue[Xe])?_.value=E:_.value=[Ue]}}function oe(K){K.stopPropagation();const{multiple:fe}=e;!fe&&e.filterable&&X(),M(),fe?ee([],[]):ee(null,null)}function he(K){!ho(K,"action")&&!ho(K,"empty")&&K.preventDefault()}function $e(K){ge(K)}function He(K){var fe,we,Le,We,Ue;if(!e.keyboard){K.preventDefault();return}switch(K.key){case" ":if(e.filterable)break;K.preventDefault();case"Enter":if(!(!((fe=v.value)===null||fe===void 0)&&fe.isComposing)){if(h.value){const qe=(we=m.value)===null||we===void 0?void 0:we.getPendingTmNode();qe?V(qe):e.filterable||(X(),Te())}else if(ce(),e.tag&&Ee.value){const qe=_.value[0];if(qe){const Xe=qe[e.valueField],{value:st}=s;e.multiple&&Array.isArray(st)&&st.some(Ut=>Ut===Xe)||ie(qe)}}}K.preventDefault();break;case"ArrowUp":if(K.preventDefault(),e.loading)return;h.value&&((Le=m.value)===null||Le===void 0||Le.prev());break;case"ArrowDown":if(K.preventDefault(),e.loading)return;h.value?(We=m.value)===null||We===void 0||We.next():ce();break;case"Escape":h.value&&(S3(K),X()),(Ue=v.value)===null||Ue===void 0||Ue.focus();break}}function Te(){var K;(K=v.value)===null||K===void 0||K.focus()}function Ie(){var K;(K=v.value)===null||K===void 0||K.focusInput()}function Ge(){var K;h.value&&((K=g.value)===null||K===void 0||K.syncPosition())}ve(),lt(Re(e,"options"),ve);const Me={focus:()=>{var K;(K=v.value)===null||K===void 0||K.focus()},focusInput:()=>{var K;(K=v.value)===null||K===void 0||K.focusInput()},blur:()=>{var K;(K=v.value)===null||K===void 0||K.blur()},blurInput:()=>{var K;(K=v.value)===null||K===void 0||K.blurInput()}},Ye=j(()=>{const{self:{menuBoxShadow:K}}=i.value;return{"--n-menu-box-shadow":K}}),pt=n?Ct("select",void 0,Ye,e):void 0;return Object.assign(Object.assign({},Me),{mergedStatus:re,mergedClsPrefix:t,mergedBordered:r,namespace:o,treeMate:u,isMounted:wi(),triggerRef:v,menuRef:m,pattern:d,uncontrolledShow:p,mergedShow:h,adjustedTo:$o(e),uncontrolledValue:a,mergedValue:s,followerRef:g,localizedPlaceholder:b,selectedOption:T,selectedOptions:F,mergedSize:N,mergedDisabled:W,focused:c,activeWithoutMenuOpen:Ee,inlineThemeDisabled:n,onTriggerInputFocus:_e,onTriggerInputBlur:D,handleTriggerOrMenuResize:Ge,handleMenuFocus:se,handleMenuBlur:me,handleMenuTabOut:Ce,handleTriggerClick:I,handleToggle:V,handleDeleteOption:ie,handlePatternInput:ae,handleClear:oe,handleTriggerBlur:q,handleTriggerFocus:ue,handleKeydown:He,handleMenuAfterLeave:le,handleMenuClickOutside:O,handleMenuScroll:$e,handleMenuKeydown:He,handleMenuMousedown:he,mergedTheme:i,cssVars:n?void 0:Ye,themeClass:pt==null?void 0:pt.themeClass,onRender:pt==null?void 0:pt.onRender})},render(){return w("div",{class:`${this.mergedClsPrefix}-select`},w(K0,null,{default:()=>[w(q0,null,{default:()=>w(EB,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),w(X0,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===$o.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>w(lr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,r;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),$r(w(vC,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(r=this.menuProps)===null||r===void 0?void 0:r.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var o,n;return[(n=(o=this.$slots).empty)===null||n===void 0?void 0:n.call(o)]},header:()=>{var o,n;return[(n=(o=this.$slots).header)===null||n===void 0?void 0:n.call(o)]},action:()=>{var o,n;return[(n=(o=this.$slots).action)===null||n===void 0?void 0:n.call(o)]}}),this.displayDirective==="show"?[[Qo,this.mergedShow],[Cl,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Cl,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),D$={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},rw=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:o,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},D$),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})},L$={name:"Pagination",common:Oe,peers:{Select:Ch,Input:Wr,Popselect:Hc},self:rw},wh=L$,z$={name:"Pagination",common:Fe,peers:{Select:tw,Input:Qr,Popselect:JC},self(e){const{primaryColor:t,opacity3:r}=e,o=Se(t,{alpha:Number(r)}),n=rw(e);return n.itemBorderActive=`1px solid ${o}`,n.itemBorderDisabled="1px solid #0000",n}},ow=z$,nw=e=>{var t;if(!e)return 10;const{defaultPageSize:r}=e;if(r!==void 0)return r;const o=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof o=="number"?o:(o==null?void 0:o.value)||10};function M$(e,t,r,o){let n=!1,i=!1,a=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,c=t;let d=e,u=e;const f=(r-5)/2;u+=Math.ceil(f),u=Math.min(Math.max(u,s+r-3),c-2),d-=Math.floor(f),d=Math.max(Math.min(d,c-r+3),s+2);let p=!1,h=!1;d>s+2&&(p=!0),u=s+1&&v.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let g=d;g<=u;++g)v.push({type:"page",label:g,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===g});return h?(i=!0,l=u+1,v.push({type:"fast-forward",active:!1,label:void 0,options:o?Og(u+1,c-1):null})):u===c-2&&v[v.length-1].label!==c-1&&v.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),v[v.length-1].label!==c&&v.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:n,hasFastForward:i,fastBackwardTo:a,fastForwardTo:l,items:v}}function Og(e,t){const r=[];for(let o=e;o<=t;++o)r.push({label:`${o}`,value:o});return r}const Bg=`
+ background: var(--n-item-color-hover);
+ color: var(--n-item-text-color-hover);
+ border: var(--n-item-border-hover);
+`,Ig=[Y("button",`
+ background: var(--n-button-color-hover);
+ border: var(--n-button-border-hover);
+ color: var(--n-button-icon-color-hover);
+ `)],N$=z("pagination",`
+ display: flex;
+ vertical-align: middle;
+ font-size: var(--n-item-font-size);
+ flex-wrap: nowrap;
+`,[z("pagination-prefix",`
+ display: flex;
+ align-items: center;
+ margin: var(--n-prefix-margin);
+ `),z("pagination-suffix",`
+ display: flex;
+ align-items: center;
+ margin: var(--n-suffix-margin);
+ `),Z("> *:not(:first-child)",`
+ margin: var(--n-item-margin);
+ `),z("select",`
+ width: var(--n-select-width);
+ `),Z("&.transition-disabled",[z("pagination-item","transition: none!important;")]),z("pagination-quick-jumper",`
+ white-space: nowrap;
+ display: flex;
+ color: var(--n-jumper-text-color);
+ transition: color .3s var(--n-bezier);
+ align-items: center;
+ font-size: var(--n-jumper-font-size);
+ `,[z("input",`
+ margin: var(--n-input-margin);
+ width: var(--n-input-width);
+ `)]),z("pagination-item",`
+ position: relative;
+ cursor: pointer;
+ user-select: none;
+ -webkit-user-select: none;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ box-sizing: border-box;
+ min-width: var(--n-item-size);
+ height: var(--n-item-size);
+ padding: var(--n-item-padding);
+ background-color: var(--n-item-color);
+ color: var(--n-item-text-color);
+ border-radius: var(--n-item-border-radius);
+ border: var(--n-item-border);
+ fill: var(--n-button-icon-color);
+ transition:
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ fill .3s var(--n-bezier);
+ `,[Y("button",`
+ background: var(--n-button-color);
+ color: var(--n-button-icon-color);
+ border: var(--n-button-border);
+ padding: 0;
+ `,[z("base-icon",`
+ font-size: var(--n-button-icon-size);
+ `)]),St("disabled",[Y("hover",Bg,Ig),Z("&:hover",Bg,Ig),Z("&:active",`
+ background: var(--n-item-color-pressed);
+ color: var(--n-item-text-color-pressed);
+ border: var(--n-item-border-pressed);
+ `,[Y("button",`
+ background: var(--n-button-color-pressed);
+ border: var(--n-button-border-pressed);
+ color: var(--n-button-icon-color-pressed);
+ `)]),Y("active",`
+ background: var(--n-item-color-active);
+ color: var(--n-item-text-color-active);
+ border: var(--n-item-border-active);
+ `,[Z("&:hover",`
+ background: var(--n-item-color-active-hover);
+ `)])]),Y("disabled",`
+ cursor: not-allowed;
+ color: var(--n-item-text-color-disabled);
+ `,[Y("active, button",`
+ background-color: var(--n-item-color-disabled);
+ border: var(--n-item-border-disabled);
+ `)])]),Y("disabled",`
+ cursor: not-allowed;
+ `,[z("pagination-quick-jumper",`
+ color: var(--n-jumper-text-color-disabled);
+ `)]),Y("simple",`
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ `,[z("pagination-quick-jumper",[z("input",`
+ margin: 0;
+ `)])])]),H$=Object.assign(Object.assign({},ze.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:$o.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),j$=be({name:"Pagination",props:H$,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),i=ze("Pagination","-pagination",N$,wh,e,r),{localeRef:a}=$n("Pagination"),l=U(null),s=U(e.defaultPage),c=U(nw(e)),d=Cr(Re(e,"page"),s),u=Cr(Re(e,"pageSize"),c),f=j(()=>{const{itemCount:X}=e;if(X!==void 0)return Math.max(1,Math.ceil(X/u.value));const{pageCount:le}=e;return le!==void 0?Math.max(le,1):1}),p=U("");ar(()=>{e.simple,p.value=String(d.value)});const h=U(!1),v=U(!1),g=U(!1),m=U(!1),x=()=>{e.disabled||(h.value=!0,T())},b=()=>{e.disabled||(h.value=!1,T())},y=()=>{v.value=!0,T()},E=()=>{v.value=!1,T()},C=X=>{H(X)},_=j(()=>M$(d.value,f.value,e.pageSlot,e.showQuickJumpDropdown));ar(()=>{_.value.hasFastBackward?_.value.hasFastForward||(h.value=!1,g.value=!1):(v.value=!1,m.value=!1)});const k=j(()=>{const X=a.value.selectionSuffix;return e.pageSizes.map(le=>typeof le=="number"?{label:`${le} / ${X}`,value:le}:le)}),R=j(()=>{var X,le;return((le=(X=t==null?void 0:t.value)===null||X===void 0?void 0:X.Pagination)===null||le===void 0?void 0:le.inputSize)||rv(e.size)}),A=j(()=>{var X,le;return((le=(X=t==null?void 0:t.value)===null||X===void 0?void 0:X.Pagination)===null||le===void 0?void 0:le.selectSize)||rv(e.size)}),B=j(()=>(d.value-1)*u.value),S=j(()=>{const X=d.value*u.value-1,{itemCount:le}=e;return le!==void 0&&X>le-1?le-1:X}),P=j(()=>{const{itemCount:X}=e;return X!==void 0?X:(e.pageCount||1)*u.value}),F=dr("Pagination",n,r),T=()=>{Bt(()=>{var X;const{value:le}=l;le&&(le.classList.add("transition-disabled"),(X=l.value)===null||X===void 0||X.offsetWidth,le.classList.remove("transition-disabled"))})};function H(X){if(X===d.value)return;const{"onUpdate:page":le,onUpdatePage:Ee,onChange:_e,simple:D}=e;le&&Pe(le,X),Ee&&Pe(Ee,X),_e&&Pe(_e,X),s.value=X,D&&(p.value=String(X))}function N(X){if(X===u.value)return;const{"onUpdate:pageSize":le,onUpdatePageSize:Ee,onPageSizeChange:_e}=e;le&&Pe(le,X),Ee&&Pe(Ee,X),_e&&Pe(_e,X),c.value=X,f.value{d.value,u.value,T()});const te=j(()=>{const{size:X}=e,{self:{buttonBorder:le,buttonBorderHover:Ee,buttonBorderPressed:_e,buttonIconColor:D,buttonIconColorHover:I,buttonIconColorPressed:q,itemTextColor:ue,itemTextColorHover:se,itemTextColorPressed:me,itemTextColorActive:Ce,itemTextColorDisabled:O,itemColor:$,itemColorHover:V,itemColorPressed:ie,itemColorActive:ne,itemColorActiveHover:ae,itemColorDisabled:oe,itemBorder:he,itemBorderHover:$e,itemBorderPressed:He,itemBorderActive:Te,itemBorderDisabled:Ie,itemBorderRadius:Ge,jumperTextColor:Me,jumperTextColorDisabled:Ye,buttonColor:pt,buttonColorHover:K,buttonColorPressed:fe,[ye("itemPadding",X)]:we,[ye("itemMargin",X)]:Le,[ye("inputWidth",X)]:We,[ye("selectWidth",X)]:Ue,[ye("inputMargin",X)]:qe,[ye("selectMargin",X)]:Xe,[ye("jumperFontSize",X)]:st,[ye("prefixMargin",X)]:Ut,[ye("suffixMargin",X)]:It,[ye("itemSize",X)]:Kt,[ye("buttonIconSize",X)]:Rr,[ye("itemFontSize",X)]:wr,[`${ye("itemMargin",X)}Rtl`]:eo,[`${ye("inputMargin",X)}Rtl`]:Vr},common:{cubicBezierEaseInOut:Wt}}=i.value;return{"--n-prefix-margin":Ut,"--n-suffix-margin":It,"--n-item-font-size":wr,"--n-select-width":Ue,"--n-select-margin":Xe,"--n-input-width":We,"--n-input-margin":qe,"--n-input-margin-rtl":Vr,"--n-item-size":Kt,"--n-item-text-color":ue,"--n-item-text-color-disabled":O,"--n-item-text-color-hover":se,"--n-item-text-color-active":Ce,"--n-item-text-color-pressed":me,"--n-item-color":$,"--n-item-color-hover":V,"--n-item-color-disabled":oe,"--n-item-color-active":ne,"--n-item-color-active-hover":ae,"--n-item-color-pressed":ie,"--n-item-border":he,"--n-item-border-hover":$e,"--n-item-border-disabled":Ie,"--n-item-border-active":Te,"--n-item-border-pressed":He,"--n-item-padding":we,"--n-item-border-radius":Ge,"--n-bezier":Wt,"--n-jumper-font-size":st,"--n-jumper-text-color":Me,"--n-jumper-text-color-disabled":Ye,"--n-item-margin":Le,"--n-item-margin-rtl":eo,"--n-button-icon-size":Rr,"--n-button-icon-color":D,"--n-button-icon-color-hover":I,"--n-button-icon-color-pressed":q,"--n-button-color-hover":K,"--n-button-color":pt,"--n-button-color-pressed":fe,"--n-button-border":le,"--n-button-border-hover":Ee,"--n-button-border-pressed":_e}}),ce=o?Ct("pagination",j(()=>{let X="";const{size:le}=e;return X+=le[0],X}),te,e):void 0;return{rtlEnabled:F,mergedClsPrefix:r,locale:a,selfRef:l,mergedPage:d,pageItems:j(()=>_.value.items),mergedItemCount:P,jumperValue:p,pageSizeOptions:k,mergedPageSize:u,inputSize:R,selectSize:A,mergedTheme:i,mergedPageCount:f,startIndex:B,endIndex:S,showFastForwardMenu:g,showFastBackwardMenu:m,fastForwardActive:h,fastBackwardActive:v,handleMenuSelect:C,handleFastForwardMouseenter:x,handleFastForwardMouseleave:b,handleFastBackwardMouseenter:y,handleFastBackwardMouseleave:E,handleJumperInput:ve,handleBackwardClick:re,handleForwardClick:W,handlePageItemClick:ge,handleSizePickerChange:M,handleQuickJumperChange:J,cssVars:o?void 0:te,themeClass:ce==null?void 0:ce.themeClass,onRender:ce==null?void 0:ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:r,cssVars:o,mergedPage:n,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:u,selectSize:f,mergedPageSize:p,pageSizeOptions:h,jumperValue:v,simple:g,prev:m,next:x,prefix:b,suffix:y,label:E,goto:C,handleJumperInput:_,handleSizePickerChange:k,handleBackwardClick:R,handlePageItemClick:A,handleForwardClick:B,handleQuickJumperChange:S,onRender:P}=this;P==null||P();const F=e.prefix||b,T=e.suffix||y,H=m||e.prev,N=x||e.next,W=E||e.label;return w("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,r&&`${t}-pagination--disabled`,g&&`${t}-pagination--simple`],style:o},F?w("div",{class:`${t}-pagination-prefix`},F({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(re=>{switch(re){case"pages":return w(rt,null,w("div",{class:[`${t}-pagination-item`,!H&&`${t}-pagination-item--button`,(n<=1||n>i||r)&&`${t}-pagination-item--disabled`],onClick:R},H?H({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):w(wt,{clsPrefix:t},{default:()=>this.rtlEnabled?w(xg,null):w(gg,null)})),g?w(rt,null,w("div",{class:`${t}-pagination-quick-jumper`},w(Go,{value:v,onUpdateValue:_,size:u,placeholder:"",disabled:r,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:S}))," / ",i):a.map((ee,L)=>{let M,G,J;const{type:ge}=ee;switch(ge){case"page":const te=ee.label;W?M=W({type:"page",node:te,active:ee.active}):M=te;break;case"fast-forward":const ce=this.fastForwardActive?w(wt,{clsPrefix:t},{default:()=>this.rtlEnabled?w(mg,null):w(bg,null)}):w(wt,{clsPrefix:t},{default:()=>w(yg,null)});W?M=W({type:"fast-forward",node:ce,active:this.fastForwardActive||this.showFastForwardMenu}):M=ce,G=this.handleFastForwardMouseenter,J=this.handleFastForwardMouseleave;break;case"fast-backward":const X=this.fastBackwardActive?w(wt,{clsPrefix:t},{default:()=>this.rtlEnabled?w(bg,null):w(mg,null)}):w(wt,{clsPrefix:t},{default:()=>w(yg,null)});W?M=W({type:"fast-backward",node:X,active:this.fastBackwardActive||this.showFastBackwardMenu}):M=X,G=this.handleFastBackwardMouseenter,J=this.handleFastBackwardMouseleave;break}const ve=w("div",{key:L,class:[`${t}-pagination-item`,ee.active&&`${t}-pagination-item--active`,ge!=="page"&&(ge==="fast-backward"&&this.showFastBackwardMenu||ge==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,r&&`${t}-pagination-item--disabled`,ge==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{A(ee)},onMouseenter:G,onMouseleave:J},M);if(ge==="page"&&!ee.mayBeFastBackward&&!ee.mayBeFastForward)return ve;{const te=ee.type==="page"?ee.mayBeFastBackward?"fast-backward":"fast-forward":ee.type;return ee.type!=="page"&&!ee.options?ve:w(A$,{to:this.to,key:te,disabled:r,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:ge==="page"?!1:ge==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:ce=>{ge!=="page"&&(ce?ge==="fast-backward"?this.showFastBackwardMenu=ce:this.showFastForwardMenu=ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ee.type!=="page"&&ee.options?ee.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>ve})}}),w("div",{class:[`${t}-pagination-item`,!N&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:n<1||n>=i||r}],onClick:B},N?N({page:n,pageSize:p,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):w(wt,{clsPrefix:t},{default:()=>this.rtlEnabled?w(gg,null):w(xg,null)})));case"size-picker":return!g&&l?w($$,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:h,value:p,disabled:r,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:k})):null;case"quick-jumper":return!g&&s?w("div",{class:`${t}-pagination-quick-jumper`},C?C():Br(this.$slots.goto,()=>[d.goto]),w(Go,{value:v,onUpdateValue:_,size:u,placeholder:"",disabled:r,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:S})):null;default:return null}}),T?w("div",{class:`${t}-pagination-suffix`},T({page:n,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),iw={padding:"8px 14px"},W$={name:"Tooltip",common:Fe,peers:{Popover:Ri},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n}=e;return Object.assign(Object.assign({},iw),{borderRadius:t,boxShadow:r,color:o,textColor:n})}},jc=W$,V$=e=>{const{borderRadius:t,boxShadow2:r,baseColor:o}=e;return Object.assign(Object.assign({},iw),{borderRadius:t,boxShadow:r,color:Ke(o,"rgba(0, 0, 0, .85)"),textColor:o})},U$={name:"Tooltip",common:Oe,peers:{Popover:Hn},self:V$},Vl=U$,K$={name:"Ellipsis",common:Fe,peers:{Tooltip:jc}},aw=K$,q$={name:"Ellipsis",common:Oe,peers:{Tooltip:Vl}},Sh=q$,lw={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},G$={name:"Radio",common:Fe,self(e){const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:v}=e;return Object.assign(Object.assign({},lw),{labelLineHeight:v,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Se(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:r,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Se(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},sw=G$,X$=e=>{const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:v}=e;return Object.assign(Object.assign({},lw),{labelLineHeight:v,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Se(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Se(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},Y$={name:"Radio",common:Oe,self:X$},Wc=Y$,Z$={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},cw=e=>{const{primaryColor:t,textColor2:r,dividerColor:o,hoverColor:n,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:p,heightLarge:h,heightHuge:v,textColor3:g,opacityDisabled:m}=e;return Object.assign(Object.assign({},Z$),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:v,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:r,prefixColor:r,optionColorHover:n,optionColorActive:Se(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})},J$={name:"Dropdown",common:Oe,peers:{Popover:Hn},self:cw},Vc=J$,Q$={name:"Dropdown",common:Fe,peers:{Popover:Ri},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:o}=e,n=cw(e);return n.colorInverted=o,n.optionColorActive=Se(r,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},_h=Q$,eD={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},dw=e=>{const{cardColor:t,modalColor:r,popoverColor:o,textColor2:n,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:v,dividerColor:g,heightSmall:m,opacityDisabled:x,tableColorStriped:b}=e;return Object.assign(Object.assign({},eD),{actionDividerColor:g,lineHeight:f,borderRadius:u,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:v,borderColor:Ke(t,g),tdColorHover:Ke(t,l),tdColorStriped:Ke(t,b),thColor:Ke(t,a),thColorHover:Ke(Ke(t,a),l),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:Ke(r,g),tdColorHoverModal:Ke(r,l),tdColorStripedModal:Ke(r,b),thColorModal:Ke(r,a),thColorHoverModal:Ke(Ke(r,a),l),tdColorModal:r,borderColorPopover:Ke(o,g),tdColorHoverPopover:Ke(o,l),tdColorStripedPopover:Ke(o,b),thColorPopover:Ke(o,a),thColorHoverPopover:Ke(Ke(o,a),l),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:x})},tD={name:"DataTable",common:Oe,peers:{Button:Tr,Checkbox:Ai,Radio:Wc,Pagination:wh,Scrollbar:Pr,Empty:Mo,Popover:Hn,Ellipsis:Sh,Dropdown:Vc},self:dw},uw=tD,rD={name:"DataTable",common:Fe,peers:{Button:zr,Checkbox:xa,Radio:sw,Pagination:ow,Scrollbar:Lr,Empty:Ti,Popover:Ri,Ellipsis:aw,Dropdown:_h},self(e){const t=dw(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},oD=rD,nD=Object.assign(Object.assign({},vi),ze.props),fw=be({name:"Tooltip",props:nD,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=ze("Tooltip","-tooltip",void 0,Vl,e,t),o=U(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:r,popoverThemeOverrides:j(()=>r.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return w(ba,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),hw=z("ellipsis",{overflow:"hidden"},[St("line-clamp",`
+ white-space: nowrap;
+ display: inline-block;
+ vertical-align: bottom;
+ max-width: 100%;
+ `),Y("line-clamp",`
+ display: -webkit-inline-box;
+ -webkit-box-orient: vertical;
+ `),Y("cursor-pointer",`
+ cursor: pointer;
+ `)]);function $f(e){return`${e}-ellipsis--line-clamp`}function Df(e,t){return`${e}-ellipsis--cursor-${t}`}const pw=Object.assign(Object.assign({},ze.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Eh=be({name:"Ellipsis",inheritAttrs:!1,props:pw,setup(e,{slots:t,attrs:r}){const o=rC(),n=ze("Ellipsis","-ellipsis",hw,Sh,e,o),i=U(null),a=U(null),l=U(null),s=U(!1),c=j(()=>{const{lineClamp:g}=e,{value:m}=s;return g!==void 0?{textOverflow:"","-webkit-line-clamp":m?"":g}:{textOverflow:m?"":"ellipsis","-webkit-line-clamp":""}});function d(){let g=!1;const{value:m}=s;if(m)return!0;const{value:x}=i;if(x){const{lineClamp:b}=e;if(p(x),b!==void 0)g=x.scrollHeight<=x.offsetHeight;else{const{value:y}=a;y&&(g=y.getBoundingClientRect().width<=x.getBoundingClientRect().width)}h(x,g)}return g}const u=j(()=>e.expandTrigger==="click"?()=>{var g;const{value:m}=s;m&&((g=l.value)===null||g===void 0||g.setShow(!1)),s.value=!m}:void 0);Cc(()=>{var g;e.tooltip&&((g=l.value)===null||g===void 0||g.setShow(!1))});const f=()=>w("span",Object.assign({},jr(r,{class:[`${o.value}-ellipsis`,e.lineClamp!==void 0?$f(o.value):void 0,e.expandTrigger==="click"?Df(o.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:u.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:w("span",{ref:"triggerInnerRef"},t));function p(g){if(!g)return;const m=c.value,x=$f(o.value);e.lineClamp!==void 0?v(g,x,"add"):v(g,x,"remove");for(const b in m)g.style[b]!==m[b]&&(g.style[b]=m[b])}function h(g,m){const x=Df(o.value,"pointer");e.expandTrigger==="click"&&!m?v(g,x,"add"):v(g,x,"remove")}function v(g,m,x){x==="add"?g.classList.contains(m)||g.classList.add(m):g.classList.contains(m)&&g.classList.remove(m)}return{mergedTheme:n,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:u,renderTrigger:f,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:o}=this;if(t){const{mergedTheme:n}=this;return w(fw,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip}),{trigger:r,default:(e=o.tooltip)!==null&&e!==void 0?e:o.default})}else return r()}}),iD=be({name:"PerformantEllipsis",props:pw,inheritAttrs:!1,setup(e,{attrs:t,slots:r}){const o=U(!1),n=rC();return Pi("-ellipsis",hw,n),{mouseEntered:o,renderTrigger:()=>{const{lineClamp:a}=e,l=n.value;return w("span",Object.assign({},jr(t,{class:[`${l}-ellipsis`,a!==void 0?$f(l):void 0,e.expandTrigger==="click"?Df(l,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{o.value=!0}}),a?r:w("span",null,r))}}},render(){return this.mouseEntered?w(Eh,jr({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),aD=be({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),lD=Object.assign(Object.assign({},ze.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Co="n-data-table",sD=be({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedSortStateRef:r,mergedClsPrefixRef:o}=De(Co),n=j(()=>r.value.find(s=>s.columnKey===e.column.key)),i=j(()=>n.value!==void 0),a=j(()=>{const{value:s}=n;return s&&i.value?s.order:!1}),l=j(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:o,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:r}=this,{renderSorterIcon:o}=this.column;return e?w(aD,{render:e,order:t}):w("span",{class:[`${r}-data-table-sorter`,t==="ascend"&&`${r}-data-table-sorter--asc`,t==="descend"&&`${r}-data-table-sorter--desc`]},o?o({order:t}):w(wt,{clsPrefix:r},{default:()=>w(UF,null)}))}}),cD=be({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:r}=this;return e({active:t,show:r})}}),dD={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},vw="n-radio-group";function uD(e){const t=Si(e,{mergedSize(x){const{size:b}=e;if(b!==void 0)return b;if(a){const{mergedSizeRef:{value:y}}=a;if(y!==void 0)return y}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||a!=null&&a.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:o}=t,n=U(null),i=U(null),a=De(vw,null),l=U(e.defaultChecked),s=Re(e,"checked"),c=Cr(s,l),d=Ft(()=>a?a.valueRef.value===e.value:c.value),u=Ft(()=>{const{name:x}=e;if(x!==void 0)return x;if(a)return a.nameRef.value}),f=U(!1);function p(){if(a){const{doUpdateValue:x}=a,{value:b}=e;Pe(x,b)}else{const{onUpdateChecked:x,"onUpdate:checked":b}=e,{nTriggerFormInput:y,nTriggerFormChange:E}=t;x&&Pe(x,!0),b&&Pe(b,!0),y(),E(),l.value=!0}}function h(){o.value||d.value||p()}function v(){h(),n.value&&(n.value.checked=d.value)}function g(){f.value=!1}function m(){f.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:nt(e).mergedClsPrefixRef,inputRef:n,labelRef:i,mergedName:u,mergedDisabled:o,renderSafeChecked:d,focus:f,mergedSize:r,handleRadioInputChange:v,handleRadioInputBlur:g,handleRadioInputFocus:m}}const fD=z("radio",`
+ line-height: var(--n-label-line-height);
+ outline: none;
+ position: relative;
+ user-select: none;
+ -webkit-user-select: none;
+ display: inline-flex;
+ align-items: flex-start;
+ flex-wrap: nowrap;
+ font-size: var(--n-font-size);
+ word-break: break-word;
+`,[Y("checked",[Q("dot",`
+ background-color: var(--n-color-active);
+ `)]),Q("dot-wrapper",`
+ position: relative;
+ flex-shrink: 0;
+ flex-grow: 0;
+ width: var(--n-radio-size);
+ `),z("radio-input",`
+ position: absolute;
+ border: 0;
+ border-radius: inherit;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ opacity: 0;
+ z-index: 1;
+ cursor: pointer;
+ `),Q("dot",`
+ position: absolute;
+ top: 50%;
+ left: 0;
+ transform: translateY(-50%);
+ height: var(--n-radio-size);
+ width: var(--n-radio-size);
+ background: var(--n-color);
+ box-shadow: var(--n-box-shadow);
+ border-radius: 50%;
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ `,[Z("&::before",`
+ content: "";
+ opacity: 0;
+ position: absolute;
+ left: 4px;
+ top: 4px;
+ height: calc(100% - 8px);
+ width: calc(100% - 8px);
+ border-radius: 50%;
+ transform: scale(.8);
+ background: var(--n-dot-color-active);
+ transition:
+ opacity .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ transform .3s var(--n-bezier);
+ `),Y("checked",{boxShadow:"var(--n-box-shadow-active)"},[Z("&::before",`
+ opacity: 1;
+ transform: scale(1);
+ `)])]),Q("label",`
+ color: var(--n-text-color);
+ padding: var(--n-label-padding);
+ font-weight: var(--n-label-font-weight);
+ display: inline-block;
+ transition: color .3s var(--n-bezier);
+ `),St("disabled",`
+ cursor: pointer;
+ `,[Z("&:hover",[Q("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Y("focus",[Z("&:not(:active)",[Q("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Y("disabled",`
+ cursor: not-allowed;
+ `,[Q("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[Z("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Y("checked",`
+ opacity: 1;
+ `)]),Q("label",{color:"var(--n-text-color-disabled)"}),z("radio-input",`
+ cursor: not-allowed;
+ `)])]),hD=Object.assign(Object.assign({},ze.props),dD),kh=be({name:"Radio",props:hD,setup(e){const t=uD(e),r=ze("Radio","-radio",fD,Wc,e,t.mergedClsPrefix),o=j(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:u,boxShadowActive:f,boxShadowDisabled:p,boxShadowFocus:h,boxShadowHover:v,color:g,colorDisabled:m,colorActive:x,textColor:b,textColorDisabled:y,dotColorActive:E,dotColorDisabled:C,labelPadding:_,labelLineHeight:k,labelFontWeight:R,[ye("fontSize",c)]:A,[ye("radioSize",c)]:B}}=r.value;return{"--n-bezier":d,"--n-label-line-height":k,"--n-label-font-weight":R,"--n-box-shadow":u,"--n-box-shadow-active":f,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":h,"--n-box-shadow-hover":v,"--n-color":g,"--n-color-active":x,"--n-color-disabled":m,"--n-dot-color-active":E,"--n-dot-color-disabled":C,"--n-font-size":A,"--n-radio-size":B,"--n-text-color":b,"--n-text-color-disabled":y,"--n-label-padding":_}}),{inlineThemeDisabled:n,mergedClsPrefixRef:i,mergedRtlRef:a}=nt(e),l=dr("Radio",a,i),s=n?Ct("radio",j(()=>t.mergedSize.value[0]),o,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:n?void 0:o,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:r,label:o}=this;return r==null||r(),w("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},w("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),w("div",{class:`${t}-radio__dot-wrapper`}," ",w("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Rt(e.default,n=>!n&&!o?null:w("div",{ref:"labelRef",class:`${t}-radio__label`},n||o)))}}),pD=z("radio-group",`
+ display: inline-block;
+ font-size: var(--n-font-size);
+`,[Q("splitor",`
+ display: inline-block;
+ vertical-align: bottom;
+ width: 1px;
+ transition:
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ background: var(--n-button-border-color);
+ `,[Y("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Y("disabled",{opacity:"var(--n-opacity-disabled)"})]),Y("button-group",`
+ white-space: nowrap;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ `,[z("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),Q("splitor",{height:"var(--n-height)"})]),z("radio-button",`
+ vertical-align: bottom;
+ outline: none;
+ position: relative;
+ user-select: none;
+ -webkit-user-select: none;
+ display: inline-block;
+ box-sizing: border-box;
+ padding-left: 14px;
+ padding-right: 14px;
+ white-space: nowrap;
+ transition:
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ background: var(--n-button-color);
+ color: var(--n-button-text-color);
+ border-top: 1px solid var(--n-button-border-color);
+ border-bottom: 1px solid var(--n-button-border-color);
+ `,[z("radio-input",`
+ pointer-events: none;
+ position: absolute;
+ border: 0;
+ border-radius: inherit;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ opacity: 0;
+ z-index: 1;
+ `),Q("state-border",`
+ z-index: 1;
+ pointer-events: none;
+ position: absolute;
+ box-shadow: var(--n-button-box-shadow);
+ transition: box-shadow .3s var(--n-bezier);
+ left: -1px;
+ bottom: -1px;
+ right: -1px;
+ top: -1px;
+ `),Z("&:first-child",`
+ border-top-left-radius: var(--n-button-border-radius);
+ border-bottom-left-radius: var(--n-button-border-radius);
+ border-left: 1px solid var(--n-button-border-color);
+ `,[Q("state-border",`
+ border-top-left-radius: var(--n-button-border-radius);
+ border-bottom-left-radius: var(--n-button-border-radius);
+ `)]),Z("&:last-child",`
+ border-top-right-radius: var(--n-button-border-radius);
+ border-bottom-right-radius: var(--n-button-border-radius);
+ border-right: 1px solid var(--n-button-border-color);
+ `,[Q("state-border",`
+ border-top-right-radius: var(--n-button-border-radius);
+ border-bottom-right-radius: var(--n-button-border-radius);
+ `)]),St("disabled",`
+ cursor: pointer;
+ `,[Z("&:hover",[Q("state-border",`
+ transition: box-shadow .3s var(--n-bezier);
+ box-shadow: var(--n-button-box-shadow-hover);
+ `),St("checked",{color:"var(--n-button-text-color-hover)"})]),Y("focus",[Z("&:not(:active)",[Q("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Y("checked",`
+ background: var(--n-button-color-active);
+ color: var(--n-button-text-color-active);
+ border-color: var(--n-button-border-color-active);
+ `),Y("disabled",`
+ cursor: not-allowed;
+ opacity: var(--n-opacity-disabled);
+ `)])]);function vD(e,t,r){var o;const n=[];let i=!1;for(let a=0;a{const{value:E}=r,{common:{cubicBezierEaseInOut:C},self:{buttonBorderColor:_,buttonBorderColorActive:k,buttonBorderRadius:R,buttonBoxShadow:A,buttonBoxShadowFocus:B,buttonBoxShadowHover:S,buttonColor:P,buttonColorActive:F,buttonTextColor:T,buttonTextColorActive:H,buttonTextColorHover:N,opacityDisabled:W,[ye("buttonHeight",E)]:re,[ye("fontSize",E)]:ee}}=u.value;return{"--n-font-size":ee,"--n-bezier":C,"--n-button-border-color":_,"--n-button-border-color-active":k,"--n-button-border-radius":R,"--n-button-box-shadow":A,"--n-button-box-shadow-focus":B,"--n-button-box-shadow-hover":S,"--n-button-color":P,"--n-button-color-active":F,"--n-button-text-color":T,"--n-button-text-color-hover":N,"--n-button-text-color-active":H,"--n-height":re,"--n-opacity-disabled":W}}),y=c?Ct("radio-group",j(()=>r.value[0]),b,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:h,handleFocusout:m,handleFocusin:g,cssVars:c?void 0:b,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:r,handleFocusin:o,handleFocusout:n}=this,{children:i,isButtonGroup:a}=vD(Rn(D1(this)),t,r);return(e=this.onRender)===null||e===void 0||e.call(this),w("div",{onFocusin:o,onFocusout:n,ref:"selfElRef",class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,a&&`${r}-radio-group--button-group`],style:this.cssVars},i)}}),mw=40,bw=40;function $g(e){if(e.type==="selection")return e.width===void 0?mw:po(e.width);if(e.type==="expand")return e.width===void 0?bw:po(e.width);if(!("children"in e))return typeof e.width=="string"?po(e.width):e.width}function mD(e){var t,r;if(e.type==="selection")return Jt((t=e.width)!==null&&t!==void 0?t:mw);if(e.type==="expand")return Jt((r=e.width)!==null&&r!==void 0?r:bw);if(!("children"in e))return Jt(e.width)}function io(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Dg(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function bD(e){return e==="ascend"?1:e==="descend"?-1:0}function xD(e,t,r){return r!==void 0&&(e=Math.min(e,typeof r=="number"?r:parseFloat(r))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function yD(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const r=mD(e),{minWidth:o,maxWidth:n}=e;return{width:r,minWidth:Jt(o)||r,maxWidth:Jt(n)}}function CD(e,t,r){return typeof r=="function"?r(e,t):r||""}function tu(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function ru(e){return"children"in e?!1:!!e.sorter}function xw(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Lg(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function zg(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wD(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:zg(!1)}:Object.assign(Object.assign({},t),{order:zg(t.order)})}function yw(e,t){return t.find(r=>r.columnKey===e.key&&r.order)!==void 0}function SD(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function _D(e,t){const r=e.filter(i=>i.type!=="expand"&&i.type!=="selection"),o=r.map(i=>i.title).join(","),n=t.map(i=>r.map(a=>SD(i[a.key])).join(","));return[o,...n].join(`
+`)}const ED=be({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e),o=dr("DataTable",r,t),{mergedClsPrefixRef:n,mergedThemeRef:i,localeRef:a}=De(Co),l=U(e.value),s=j(()=>{const{value:h}=l;return Array.isArray(h)?h:null}),c=j(()=>{const{value:h}=l;return tu(e.column)?Array.isArray(h)&&h.length&&h[0]||null:Array.isArray(h)?null:h});function d(h){e.onChange(h)}function u(h){e.multiple&&Array.isArray(h)?l.value=h:tu(e.column)&&!Array.isArray(h)?l.value=[h]:l.value=h}function f(){d(l.value),e.onConfirm()}function p(){e.multiple||tu(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:n,rtlEnabled:o,mergedTheme:i,locale:a,checkboxGroupValue:s,radioGroupValue:c,handleChange:u,handleConfirmClick:f,handleClearClick:p}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:r}=this;return w("div",{class:[`${r}-data-table-filter-menu`,this.rtlEnabled&&`${r}-data-table-filter-menu--rtl`]},w(Nn,null,{default:()=>{const{checkboxGroupValue:o,handleChange:n}=this;return this.multiple?w(s$,{value:o,class:`${r}-data-table-filter-menu__group`,onUpdateValue:n},{default:()=>this.options.map(i=>w(Nc,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):w(gw,{name:this.radioGroupName,class:`${r}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>w(kh,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),w("div",{class:`${r}-data-table-filter-menu__action`},w(nr,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),w(nr,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function kD(e,t,r){const o=Object.assign({},e);return o[t]=r,o}const PD=be({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedThemeRef:r,mergedClsPrefixRef:o,mergedFilterStateRef:n,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=De(Co),c=U(!1),d=n,u=j(()=>e.column.filterMultiple!==!1),f=j(()=>{const x=d.value[e.column.key];if(x===void 0){const{value:b}=u;return b?[]:null}return x}),p=j(()=>{const{value:x}=f;return Array.isArray(x)?x.length>0:x!==null}),h=j(()=>{var x,b;return((b=(x=t==null?void 0:t.value)===null||x===void 0?void 0:x.DataTable)===null||b===void 0?void 0:b.renderFilter)||e.column.renderFilter});function v(x){const b=kD(d.value,e.column.key,x);s(b,e.column),a.value==="first"&&l(1)}function g(){c.value=!1}function m(){c.value=!1}return{mergedTheme:r,mergedClsPrefix:o,active:p,showPopover:c,mergedRenderFilter:h,filterMultiple:u,mergedFilterValue:f,filterMenuCssVars:i,handleFilterChange:v,handleFilterMenuConfirm:m,handleFilterMenuCancel:g}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:r}=this;return w(ba,{show:this.showPopover,onUpdateShow:o=>this.showPopover=o,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:o}=this;if(o)return w(cD,{"data-data-table-filter":!0,render:o,active:this.active,show:this.showPopover});const{renderFilterIcon:n}=this.column;return w("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},n?n({active:this.active,show:this.showPopover}):w(wt,{clsPrefix:t},{default:()=>w(JF,null)}))},default:()=>{const{renderFilterMenu:o}=this.column;return o?o({hide:r}):w(ED,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),TD=be({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=De(Co),r=U(!1);let o=0;function n(s){return s.clientX}function i(s){var c;s.preventDefault();const d=r.value;o=n(s),r.value=!0,d||(kt("mousemove",window,a),kt("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,n(s)-o)}function l(){var s;r.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),vt("mousemove",window,a),vt("mouseup",window,l)}return jt(()=>{vt("mousemove",window,a),vt("mouseup",window,l)}),{mergedClsPrefix:t,active:r,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return w("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Cw=be({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return w("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),ww=e=>{const{textColorBase:t,opacity1:r,opacity2:o,opacity3:n,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:o,opacity3Depth:n,opacity4Depth:i,opacity5Depth:a}},RD={name:"Icon",common:Oe,self:ww},Sw=RD,AD={name:"Icon",common:Fe,self:ww},FD=AD,OD=z("icon",`
+ height: 1em;
+ width: 1em;
+ line-height: 1em;
+ text-align: center;
+ display: inline-block;
+ position: relative;
+ fill: currentColor;
+ transform: translateZ(0);
+`,[Y("color-transition",{transition:"color .3s var(--n-bezier)"}),Y("depth",{color:"var(--n-color)"},[Z("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),Z("svg",{height:"1em",width:"1em"})]),BD=Object.assign(Object.assign({},ze.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),ID=be({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:BD,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),o=ze("Icon","-icon",OD,Sw,e,t),n=j(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=o.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=r?Ct("icon",j(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:j(()=>{const{size:a,color:l}=e;return{fontSize:Jt(a),color:l}}),cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:o,component:n,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Io("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),w("i",jr(this.$attrs,{role:"img",class:[`${o}-icon`,a,{[`${o}-icon--depth`]:r,[`${o}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?w(n):this.$slots)}}),Ph="n-dropdown-menu",Uc="n-dropdown",Mg="n-dropdown-option";function Lf(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function $D(e){return e.type==="group"}function _w(e){return e.type==="divider"}function DD(e){return e.type==="render"}const Ew=be({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=De(Uc),{hoverKeyRef:r,keyboardKeyRef:o,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:p,nodePropsRef:h,menuPropsRef:v}=t,g=De(Mg,null),m=De(Ph),x=De(Hl),b=j(()=>e.tmNode.rawNode),y=j(()=>{const{value:N}=f;return Lf(e.tmNode.rawNode,N)}),E=j(()=>{const{disabled:N}=e.tmNode;return N}),C=j(()=>{if(!y.value)return!1;const{key:N,disabled:W}=e.tmNode;if(W)return!1;const{value:re}=r,{value:ee}=o,{value:L}=n,{value:M}=i;return re!==null?M.includes(N):ee!==null?M.includes(N)&&M[M.length-1]!==N:L!==null?M.includes(N):!1}),_=j(()=>o.value===null&&!l.value),k=k3(C,300,_),R=j(()=>!!(g!=null&&g.enteringSubmenuRef.value)),A=U(!1);ot(Mg,{enteringSubmenuRef:A});function B(){A.value=!0}function S(){A.value=!1}function P(){const{parentKey:N,tmNode:W}=e;W.disabled||s.value&&(n.value=N,o.value=null,r.value=W.key)}function F(){const{tmNode:N}=e;N.disabled||s.value&&r.value!==N.key&&P()}function T(N){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:W}=N;W&&!ho({target:W},"dropdownOption")&&!ho({target:W},"scrollbarRail")&&(r.value=null)}function H(){const{value:N}=y,{tmNode:W}=e;s.value&&!N&&!W.disabled&&(t.doSelect(W.key,W.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:v,popoverBody:x,animated:l,mergedShowSubmenu:j(()=>k.value&&!R.value),rawNode:b,hasSubmenu:y,pending:Ft(()=>{const{value:N}=i,{key:W}=e.tmNode;return N.includes(W)}),childActive:Ft(()=>{const{value:N}=a,{key:W}=e.tmNode,re=N.findIndex(ee=>W===ee);return re===-1?!1:re{const{value:N}=a,{key:W}=e.tmNode,re=N.findIndex(ee=>W===ee);return re===-1?!1:re===N.length-1}),mergedDisabled:E,renderOption:p,nodeProps:h,handleClick:H,handleMouseMove:F,handleMouseEnter:P,handleMouseLeave:T,handleSubmenuBeforeEnter:B,handleSubmenuAfterEnter:S}},render(){var e,t;const{animated:r,rawNode:o,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:p}=this;let h=null;if(n){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);h=w(kw,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const v={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=u==null?void 0:u(o),m=w("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),w("div",jr(v,f),[w("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Vt(o.icon)]),w("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(o):Vt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),w("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?w(ID,null,{default:()=>w(dh,null)}):null)]),this.hasSubmenu?w(K0,null,{default:()=>[w(q0,null,{default:()=>w("div",{class:`${i}-dropdown-offset-container`},w(X0,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>w("div",{class:`${i}-dropdown-menu-wrapper`},r?w(lr,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return d?d({node:m,option:o}):m}}),LD=be({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=De(Ph),{renderLabelRef:r,labelFieldRef:o,nodePropsRef:n,renderOptionRef:i}=De(Uc);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:n,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:o,nodeProps:n,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=w("div",Object.assign({class:`${t}-dropdown-option`},n==null?void 0:n(l)),w("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},w("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Vt(l.icon)),w("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Vt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),w("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),zD=be({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:o}=e;return w(rt,null,w(LD,{clsPrefix:r,tmNode:e,key:e.key}),o==null?void 0:o.map(n=>{const{rawNode:i}=n;return i.show===!1?null:_w(i)?w(Cw,{clsPrefix:r,key:n.key}):n.isGroup?(Io("dropdown","`group` node is not allowed to be put in `group` node."),null):w(Ew,{clsPrefix:r,tmNode:n,parentKey:t,key:n.key})}))}}),MD=be({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return w("div",t,[e==null?void 0:e()])}}),kw=be({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=De(Uc);ot(Ph,{showIconRef:j(()=>{const n=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>n?n(s):s.icon);const{rawNode:l}=i;return n?n(l):l.icon})}),hasSubmenuRef:j(()=>{const{value:n}=r;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Lf(s,n));const{rawNode:l}=i;return Lf(l,n)})})});const o=U(null);return ot(Tc,null),ot(Rc,null),ot(Hl,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,o=this.tmNodes.map(n=>{const{rawNode:i}=n;return i.show===!1?null:DD(i)?w(MD,{tmNode:n,key:n.key}):_w(i)?w(Cw,{clsPrefix:t,key:n.key}):$D(i)?w(zD,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):w(Ew,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:i.props,scrollable:r})});return w("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?w(hC,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?bC({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),ND=z("dropdown-menu",`
+ transform-origin: var(--v-transform-origin);
+ background-color: var(--n-color);
+ border-radius: var(--n-border-radius);
+ box-shadow: var(--n-box-shadow);
+ position: relative;
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+`,[ma(),z("dropdown-option",`
+ position: relative;
+ `,[Z("a",`
+ text-decoration: none;
+ color: inherit;
+ outline: none;
+ `,[Z("&::before",`
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `)]),z("dropdown-option-body",`
+ display: flex;
+ cursor: pointer;
+ position: relative;
+ height: var(--n-option-height);
+ line-height: var(--n-option-height);
+ font-size: var(--n-font-size);
+ color: var(--n-option-text-color);
+ transition: color .3s var(--n-bezier);
+ `,[Z("&::before",`
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 4px;
+ right: 4px;
+ transition: background-color .3s var(--n-bezier);
+ border-radius: var(--n-border-radius);
+ `),St("disabled",[Y("pending",`
+ color: var(--n-option-text-color-hover);
+ `,[Q("prefix, suffix",`
+ color: var(--n-option-text-color-hover);
+ `),Z("&::before","background-color: var(--n-option-color-hover);")]),Y("active",`
+ color: var(--n-option-text-color-active);
+ `,[Q("prefix, suffix",`
+ color: var(--n-option-text-color-active);
+ `),Z("&::before","background-color: var(--n-option-color-active);")]),Y("child-active",`
+ color: var(--n-option-text-color-child-active);
+ `,[Q("prefix, suffix",`
+ color: var(--n-option-text-color-child-active);
+ `)])]),Y("disabled",`
+ cursor: not-allowed;
+ opacity: var(--n-option-opacity-disabled);
+ `),Y("group",`
+ font-size: calc(var(--n-font-size) - 1px);
+ color: var(--n-group-header-text-color);
+ `,[Q("prefix",`
+ width: calc(var(--n-option-prefix-width) / 2);
+ `,[Y("show-icon",`
+ width: calc(var(--n-option-icon-prefix-width) / 2);
+ `)])]),Q("prefix",`
+ width: var(--n-option-prefix-width);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: var(--n-prefix-color);
+ transition: color .3s var(--n-bezier);
+ z-index: 1;
+ `,[Y("show-icon",`
+ width: var(--n-option-icon-prefix-width);
+ `),z("icon",`
+ font-size: var(--n-option-icon-size);
+ `)]),Q("label",`
+ white-space: nowrap;
+ flex: 1;
+ z-index: 1;
+ `),Q("suffix",`
+ box-sizing: border-box;
+ flex-grow: 0;
+ flex-shrink: 0;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ min-width: var(--n-option-suffix-width);
+ padding: 0 8px;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-suffix-color);
+ z-index: 1;
+ `,[Y("has-submenu",`
+ width: var(--n-option-icon-suffix-width);
+ `),z("icon",`
+ font-size: var(--n-option-icon-size);
+ `)]),z("dropdown-menu","pointer-events: all;")]),z("dropdown-offset-container",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: -4px;
+ bottom: -4px;
+ `)]),z("dropdown-divider",`
+ transition: background-color .3s var(--n-bezier);
+ background-color: var(--n-divider-color);
+ height: 1px;
+ margin: 4px 0;
+ `),z("dropdown-menu-wrapper",`
+ transform-origin: var(--v-transform-origin);
+ width: fit-content;
+ `),Z(">",[z("scrollbar",`
+ height: inherit;
+ max-height: inherit;
+ `)]),St("scrollable",`
+ padding: var(--n-padding);
+ `),Y("scrollable",[Q("content",`
+ padding: var(--n-padding);
+ `)])]),HD={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},jD=Object.keys(vi),WD=Object.assign(Object.assign(Object.assign({},vi),HD),ze.props),VD=be({name:"Dropdown",inheritAttrs:!1,props:WD,setup(e){const t=U(!1),r=Cr(Re(e,"show"),t),o=j(()=>{const{keyField:S,childrenField:P}=e;return zc(e.options,{getKey(F){return F[S]},getDisabled(F){return F.disabled===!0},getIgnored(F){return F.type==="divider"||F.type==="render"},getChildren(F){return F[P]}})}),n=j(()=>o.value.treeNodes),i=U(null),a=U(null),l=U(null),s=j(()=>{var S,P,F;return(F=(P=(S=i.value)!==null&&S!==void 0?S:a.value)!==null&&P!==void 0?P:l.value)!==null&&F!==void 0?F:null}),c=j(()=>o.value.getPath(s.value).keyPath),d=j(()=>o.value.getPath(e.value).keyPath),u=Ft(()=>e.keyboard&&r.value);H3({keydown:{ArrowUp:{prevent:!0,handler:E},ArrowRight:{prevent:!0,handler:y},ArrowDown:{prevent:!0,handler:C},ArrowLeft:{prevent:!0,handler:b},Enter:{prevent:!0,handler:_},Escape:x}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:p}=nt(e),h=ze("Dropdown","-dropdown",ND,Vc,e,f);ot(Uc,{labelFieldRef:Re(e,"labelField"),childrenFieldRef:Re(e,"childrenField"),renderLabelRef:Re(e,"renderLabel"),renderIconRef:Re(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:Re(e,"animated"),mergedShowRef:r,nodePropsRef:Re(e,"nodeProps"),renderOptionRef:Re(e,"renderOption"),menuPropsRef:Re(e,"menuProps"),doSelect:v,doUpdateShow:g}),lt(r,S=>{!e.animated&&!S&&m()});function v(S,P){const{onSelect:F}=e;F&&Pe(F,S,P)}function g(S){const{"onUpdate:show":P,onUpdateShow:F}=e;P&&Pe(P,S),F&&Pe(F,S),t.value=S}function m(){i.value=null,a.value=null,l.value=null}function x(){g(!1)}function b(){R("left")}function y(){R("right")}function E(){R("up")}function C(){R("down")}function _(){const S=k();S!=null&&S.isLeaf&&r.value&&(v(S.key,S.rawNode),g(!1))}function k(){var S;const{value:P}=o,{value:F}=s;return!P||F===null?null:(S=P.getNode(F))!==null&&S!==void 0?S:null}function R(S){const{value:P}=s,{value:{getFirstAvailableNode:F}}=o;let T=null;if(P===null){const H=F();H!==null&&(T=H.key)}else{const H=k();if(H){let N;switch(S){case"down":N=H.getNext();break;case"up":N=H.getPrev();break;case"right":N=H.getChild();break;case"left":N=H.getParent();break}N&&(T=N.key)}}T!==null&&(i.value=null,a.value=T)}const A=j(()=>{const{size:S,inverted:P}=e,{common:{cubicBezierEaseInOut:F},self:T}=h.value,{padding:H,dividerColor:N,borderRadius:W,optionOpacityDisabled:re,[ye("optionIconSuffixWidth",S)]:ee,[ye("optionSuffixWidth",S)]:L,[ye("optionIconPrefixWidth",S)]:M,[ye("optionPrefixWidth",S)]:G,[ye("fontSize",S)]:J,[ye("optionHeight",S)]:ge,[ye("optionIconSize",S)]:ve}=T,te={"--n-bezier":F,"--n-font-size":J,"--n-padding":H,"--n-border-radius":W,"--n-option-height":ge,"--n-option-prefix-width":G,"--n-option-icon-prefix-width":M,"--n-option-suffix-width":L,"--n-option-icon-suffix-width":ee,"--n-option-icon-size":ve,"--n-divider-color":N,"--n-option-opacity-disabled":re};return P?(te["--n-color"]=T.colorInverted,te["--n-option-color-hover"]=T.optionColorHoverInverted,te["--n-option-color-active"]=T.optionColorActiveInverted,te["--n-option-text-color"]=T.optionTextColorInverted,te["--n-option-text-color-hover"]=T.optionTextColorHoverInverted,te["--n-option-text-color-active"]=T.optionTextColorActiveInverted,te["--n-option-text-color-child-active"]=T.optionTextColorChildActiveInverted,te["--n-prefix-color"]=T.prefixColorInverted,te["--n-suffix-color"]=T.suffixColorInverted,te["--n-group-header-text-color"]=T.groupHeaderTextColorInverted):(te["--n-color"]=T.color,te["--n-option-color-hover"]=T.optionColorHover,te["--n-option-color-active"]=T.optionColorActive,te["--n-option-text-color"]=T.optionTextColor,te["--n-option-text-color-hover"]=T.optionTextColorHover,te["--n-option-text-color-active"]=T.optionTextColorActive,te["--n-option-text-color-child-active"]=T.optionTextColorChildActive,te["--n-prefix-color"]=T.prefixColor,te["--n-suffix-color"]=T.suffixColor,te["--n-group-header-text-color"]=T.groupHeaderTextColor),te}),B=p?Ct("dropdown",j(()=>`${e.size[0]}${e.inverted?"i":""}`),A,e):void 0;return{mergedClsPrefix:f,mergedTheme:h,tmNodes:n,mergedShow:r,handleAfterLeave:()=>{e.animated&&m()},doUpdateShow:g,cssVars:p?void 0:A,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const e=(o,n,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},f={ref:L1(n),class:[o,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return w(kw,jr(this.$attrs,f,u))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return w(ba,Object.assign({},tn(this.$props,jD),r),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}}),Pw="_n_all__",Tw="_n_none__";function UD(e,t,r,o){return e?n=>{for(const i of e)switch(n){case Pw:r(!0);return;case Tw:o(!0);return;default:if(typeof i=="object"&&i.key===n){i.onSelect(t.value);return}}}:()=>{}}function KD(e,t){return e?e.map(r=>{switch(r){case"all":return{label:t.checkTableAll,key:Pw};case"none":return{label:t.uncheckTableAll,key:Tw};default:return r}}):[]}const qD=be({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:r,checkOptionsRef:o,rawPaginatedDataRef:n,doCheckAll:i,doUncheckAll:a}=De(Co),l=j(()=>UD(o.value,n,i,a)),s=j(()=>KD(o.value,r.value));return()=>{var c,d,u,f;const{clsPrefix:p}=e;return w(VD,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(f=(u=t.themeOverrides)===null||u===void 0?void 0:u.peers)===null||f===void 0?void 0:f.Dropdown,options:s.value,onSelect:l.value},{default:()=>w(wt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>w(oC,null)})})}}});function ou(e){return typeof e.title=="function"?e.title(e):e.title}const Rw=be({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:r,fixedColumnRightMapRef:o,mergedCurrentPageRef:n,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:u,componentId:f,mergedTableLayoutRef:p,headerCheckboxDisabledRef:h,onUnstableColumnResize:v,doUpdateResizableWidth:g,handleTableHeaderScroll:m,deriveNextSorter:x,doUncheckAll:b,doCheckAll:y}=De(Co),E=U({});function C(S){const P=E.value[S];return P==null?void 0:P.getBoundingClientRect().width}function _(){i.value?b():y()}function k(S,P){if(ho(S,"dataTableFilter")||ho(S,"dataTableResizable")||!ru(P))return;const F=u.value.find(H=>H.columnKey===P.key)||null,T=wD(P,F);x(T)}const R=new Map;function A(S){R.set(S.key,C(S.key))}function B(S,P){const F=R.get(S.key);if(F===void 0)return;const T=F+P,H=xD(T,S.minWidth,S.maxWidth);v(T,H,S,C),g(S,H)}return{cellElsRef:E,componentId:f,mergedSortState:u,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:r,fixedColumnRightMap:o,currentPage:n,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:h,handleCheckboxUpdateChecked:_,handleColHeaderClick:k,handleTableHeaderScroll:m,handleColumnResizeStart:A,handleColumnResize:B}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:r,fixedColumnRightMap:o,currentPage:n,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:u,discrete:f,mergedTableLayout:p,headerCheckboxDisabled:h,mergedSortState:v,handleColHeaderClick:g,handleCheckboxUpdateChecked:m,handleColumnResizeStart:x,handleColumnResize:b}=this,y=w("thead",{class:`${t}-data-table-thead`,"data-n-id":u},l.map(_=>w("tr",{class:`${t}-data-table-tr`},_.map(({column:k,colSpan:R,rowSpan:A,isLast:B})=>{var S,P;const F=io(k),{ellipsis:T}=k,H=()=>k.type==="selection"?k.multiple!==!1?w(rt,null,w(Nc,{key:n,privateInsideTable:!0,checked:i,indeterminate:a,disabled:h,onUpdateChecked:m}),d?w(qD,{clsPrefix:t}):null):null:w(rt,null,w("div",{class:`${t}-data-table-th__title-wrapper`},w("div",{class:`${t}-data-table-th__title`},T===!0||T&&!T.tooltip?w("div",{class:`${t}-data-table-th__ellipsis`},ou(k)):T&&typeof T=="object"?w(Eh,Object.assign({},T,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>ou(k)}):ou(k)),ru(k)?w(sD,{column:k}):null),Lg(k)?w(PD,{column:k,options:k.filterOptions}):null,xw(k)?w(TD,{onResizeStart:()=>{x(k)},onResize:re=>{b(k,re)}}):null),N=F in r,W=F in o;return w("th",{ref:re=>e[F]=re,key:F,style:{textAlign:k.titleAlign||k.align,left:Yo((S=r[F])===null||S===void 0?void 0:S.start),right:Yo((P=o[F])===null||P===void 0?void 0:P.start)},colspan:R,rowspan:A,"data-col-key":F,class:[`${t}-data-table-th`,(N||W)&&`${t}-data-table-th--fixed-${N?"left":"right"}`,{[`${t}-data-table-th--hover`]:yw(k,v),[`${t}-data-table-th--filterable`]:Lg(k),[`${t}-data-table-th--sortable`]:ru(k),[`${t}-data-table-th--selection`]:k.type==="selection",[`${t}-data-table-th--last`]:B},k.className],onClick:k.type!=="selection"&&k.type!=="expand"&&!("children"in k)?re=>{g(re,k)}:void 0},H())}))));if(!f)return y;const{handleTableHeaderScroll:E,scrollX:C}=this;return w("div",{class:`${t}-data-table-base-table-header`,onScroll:E},w("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Jt(C),tableLayout:p}},w("colgroup",null,s.map(_=>w("col",{key:_.key,style:_.style}))),y))}}),GD=be({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:r,row:o,renderCell:n}=this;let i;const{render:a,key:l,ellipsis:s}=r;if(a&&!t?i=a(o,this.index):t?i=(e=o[l])===null||e===void 0?void 0:e.value:i=n?n(El(o,l),o,r):El(o,l),s)if(typeof s=="object"){const{mergedTheme:c}=this;return r.ellipsisComponent==="performant-ellipsis"?w(iD,Object.assign({},s,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):w(Eh,Object.assign({},s,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return w("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),Ng=be({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return w("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},w(ha,null,{default:()=>this.loading?w(va,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded}):w(wt,{clsPrefix:e,key:"base-icon"},{default:()=>w(dh,null)})}))}}),XD=be({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:r}=De(Co);return()=>{const{rowKey:o}=e;return w(Nc,{privateInsideTable:!0,disabled:e.disabled,indeterminate:r.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}}),YD=be({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:r}=De(Co);return()=>{const{rowKey:o}=e;return w(kh,{name:r,disabled:e.disabled,checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}});function ZD(e,t){const r=[];function o(n,i){n.forEach(a=>{a.children&&t.has(a.key)?(r.push({tmNode:a,striped:!1,key:a.key,index:i}),o(a.children,i)):r.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(n=>{r.push(n);const{children:i}=n.tmNode;i&&t.has(n.key)&&o(i,n.index)}),r}const JD=be({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:r,onMouseenter:o,onMouseleave:n}=this;return w("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:n},w("colgroup",null,r.map(i=>w("col",{key:i.key,style:i.style}))),w("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),QD=be({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:r,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:n,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:u,mergedCurrentPageRef:f,rowClassNameRef:p,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:v,rightActiveFixedColKeyRef:g,rightActiveFixedChildrenColKeysRef:m,renderExpandRef:x,hoverKeyRef:b,summaryRef:y,mergedSortStateRef:E,virtualScrollRef:C,componentId:_,mergedTableLayoutRef:k,childTriggerColIndexRef:R,indentRef:A,rowPropsRef:B,maxHeightRef:S,stripedRef:P,loadingRef:F,onLoadRef:T,loadingKeySetRef:H,expandableRef:N,stickyExpandedRowsRef:W,renderExpandIconRef:re,summaryPlacementRef:ee,treeMateRef:L,scrollbarPropsRef:M,setHeaderScrollLeft:G,doUpdateExpandedRowKeys:J,handleTableBodyScroll:ge,doCheck:ve,doUncheck:te,renderCell:ce}=De(Co),X=U(null),le=U(null),Ee=U(null),_e=Ft(()=>s.value.length===0),D=Ft(()=>e.showHeader||!_e.value),I=Ft(()=>e.showHeader||_e.value);let q="";const ue=j(()=>new Set(o.value));function se(Te){var Ie;return(Ie=L.value.getNode(Te))===null||Ie===void 0?void 0:Ie.rawNode}function me(Te,Ie,Ge){const Me=se(Te.key);if(!Me){Io("data-table",`fail to get row data with key ${Te.key}`);return}if(Ge){const Ye=s.value.findIndex(pt=>pt.key===q);if(Ye!==-1){const pt=s.value.findIndex(Le=>Le.key===Te.key),K=Math.min(Ye,pt),fe=Math.max(Ye,pt),we=[];s.value.slice(K,fe+1).forEach(Le=>{Le.disabled||we.push(Le.key)}),Ie?ve(we,!1,Me):te(we,Me),q=Te.key;return}}Ie?ve(Te.key,!1,Me):te(Te.key,Me),q=Te.key}function Ce(Te){const Ie=se(Te.key);if(!Ie){Io("data-table",`fail to get row data with key ${Te.key}`);return}ve(Te.key,!0,Ie)}function O(){if(!D.value){const{value:Ie}=Ee;return Ie||null}if(C.value)return ie();const{value:Te}=X;return Te?Te.containerRef:null}function $(Te,Ie){var Ge;if(H.value.has(Te))return;const{value:Me}=o,Ye=Me.indexOf(Te),pt=Array.from(Me);~Ye?(pt.splice(Ye,1),J(pt)):Ie&&!Ie.isLeaf&&!Ie.shallowLoaded?(H.value.add(Te),(Ge=T.value)===null||Ge===void 0||Ge.call(T,Ie.rawNode).then(()=>{const{value:K}=o,fe=Array.from(K);~fe.indexOf(Te)||fe.push(Te),J(fe)}).finally(()=>{H.value.delete(Te)})):(pt.push(Te),J(pt))}function V(){b.value=null}function ie(){const{value:Te}=le;return(Te==null?void 0:Te.listElRef)||null}function ne(){const{value:Te}=le;return(Te==null?void 0:Te.itemsElRef)||null}function ae(Te){var Ie;ge(Te),(Ie=X.value)===null||Ie===void 0||Ie.sync()}function oe(Te){var Ie;const{onResize:Ge}=e;Ge&&Ge(Te),(Ie=X.value)===null||Ie===void 0||Ie.sync()}const he={getScrollContainer:O,scrollTo(Te,Ie){var Ge,Me;C.value?(Ge=le.value)===null||Ge===void 0||Ge.scrollTo(Te,Ie):(Me=X.value)===null||Me===void 0||Me.scrollTo(Te,Ie)}},$e=Z([({props:Te})=>{const Ie=Me=>Me===null?null:Z(`[data-n-id="${Te.componentId}"] [data-col-key="${Me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ge=Me=>Me===null?null:Z(`[data-n-id="${Te.componentId}"] [data-col-key="${Me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return Z([Ie(Te.leftActiveFixedColKey),Ge(Te.rightActiveFixedColKey),Te.leftActiveFixedChildrenColKeys.map(Me=>Ie(Me)),Te.rightActiveFixedChildrenColKeys.map(Me=>Ge(Me))])}]);let He=!1;return ar(()=>{const{value:Te}=h,{value:Ie}=v,{value:Ge}=g,{value:Me}=m;if(!He&&Te===null&&Ge===null)return;const Ye={leftActiveFixedColKey:Te,leftActiveFixedChildrenColKeys:Ie,rightActiveFixedColKey:Ge,rightActiveFixedChildrenColKeys:Me,componentId:_};$e.mount({id:`n-${_}`,force:!0,props:Ye,anchorMetaName:Qi}),He=!0}),zl(()=>{$e.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:r,summaryPlacement:ee,dataTableSlots:t,componentId:_,scrollbarInstRef:X,virtualListRef:le,emptyElRef:Ee,summary:y,mergedClsPrefix:n,mergedTheme:i,scrollX:a,cols:l,loading:F,bodyShowHeaderOnly:I,shouldDisplaySomeTablePart:D,empty:_e,paginatedDataAndInfo:j(()=>{const{value:Te}=P;let Ie=!1;return{data:s.value.map(Te?(Me,Ye)=>(Me.isLeaf||(Ie=!0),{tmNode:Me,key:Me.key,striped:Ye%2===1,index:Ye}):(Me,Ye)=>(Me.isLeaf||(Ie=!0),{tmNode:Me,key:Me.key,striped:!1,index:Ye})),hasChildren:Ie}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:u,currentPage:f,rowClassName:p,renderExpand:x,mergedExpandedRowKeySet:ue,hoverKey:b,mergedSortState:E,virtualScroll:C,mergedTableLayout:k,childTriggerColIndex:R,indent:A,rowProps:B,maxHeight:S,loadingKeySet:H,expandable:N,stickyExpandedRows:W,renderExpandIcon:re,scrollbarProps:M,setHeaderScrollLeft:G,handleVirtualListScroll:ae,handleVirtualListResize:oe,handleMouseleaveTable:V,virtualListContainer:ie,virtualListContent:ne,handleTableBodyScroll:ge,handleCheckboxUpdateChecked:me,handleRadioUpdateChecked:Ce,handleUpdateExpanded:$,renderCell:ce},he)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:r,virtualScroll:o,maxHeight:n,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||n!==void 0||a,u=!d&&i==="auto",f=t!==void 0||u,p={minWidth:Jt(t)||"100%"};t&&(p.width="100%");const h=w(Nn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||u,class:`${r}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const v={},g={},{cols:m,paginatedDataAndInfo:x,mergedTheme:b,fixedColumnLeftMap:y,fixedColumnRightMap:E,currentPage:C,rowClassName:_,mergedSortState:k,mergedExpandedRowKeySet:R,stickyExpandedRows:A,componentId:B,childTriggerColIndex:S,expandable:P,rowProps:F,handleMouseleaveTable:T,renderExpand:H,summary:N,handleCheckboxUpdateChecked:W,handleRadioUpdateChecked:re,handleUpdateExpanded:ee}=this,{length:L}=m;let M;const{data:G,hasChildren:J}=x,ge=J?ZD(G,R):G;if(N){const D=N(this.rawPaginatedData);if(Array.isArray(D)){const I=D.map((q,ue)=>({isSummaryRow:!0,key:`__n_summary__${ue}`,tmNode:{rawNode:q,disabled:!0},index:-1}));M=this.summaryPlacement==="top"?[...I,...ge]:[...ge,...I]}else{const I={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:D,disabled:!0},index:-1};M=this.summaryPlacement==="top"?[I,...ge]:[...ge,I]}}else M=ge;const ve=J?{width:Yo(this.indent)}:void 0,te=[];M.forEach(D=>{H&&R.has(D.key)&&(!P||P(D.tmNode.rawNode))?te.push(D,{isExpandedRow:!0,key:`${D.key}-expand`,tmNode:D.tmNode,index:D.index}):te.push(D)});const{length:ce}=te,X={};G.forEach(({tmNode:D},I)=>{X[I]=D.key});const le=A?this.bodyWidth:null,Ee=le===null?void 0:`${le}px`,_e=(D,I,q)=>{const{index:ue}=D;if("isExpandedRow"in D){const{tmNode:{key:oe,rawNode:he}}=D;return w("tr",{class:`${r}-data-table-tr ${r}-data-table-tr--expanded`,key:`${oe}__expand`},w("td",{class:[`${r}-data-table-td`,`${r}-data-table-td--last-col`,I+1===ce&&`${r}-data-table-td--last-row`],colspan:L},A?w("div",{class:`${r}-data-table-expand`,style:{width:Ee}},H(he,ue)):H(he,ue)))}const se="isSummaryRow"in D,me=!se&&D.striped,{tmNode:Ce,key:O}=D,{rawNode:$}=Ce,V=R.has(O),ie=F?F($,ue):void 0,ne=typeof _=="string"?_:CD($,ue,_);return w("tr",Object.assign({onMouseenter:()=>{this.hoverKey=O},key:O,class:[`${r}-data-table-tr`,se&&`${r}-data-table-tr--summary`,me&&`${r}-data-table-tr--striped`,V&&`${r}-data-table-tr--expanded`,ne]},ie),m.map((oe,he)=>{var $e,He,Te,Ie,Ge;if(I in v){const It=v[I],Kt=It.indexOf(he);if(~Kt)return It.splice(Kt,1),null}const{column:Me}=oe,Ye=io(oe),{rowSpan:pt,colSpan:K}=Me,fe=se?(($e=D.tmNode.rawNode[Ye])===null||$e===void 0?void 0:$e.colSpan)||1:K?K($,ue):1,we=se?((He=D.tmNode.rawNode[Ye])===null||He===void 0?void 0:He.rowSpan)||1:pt?pt($,ue):1,Le=he+fe===L,We=I+we===ce,Ue=we>1;if(Ue&&(g[I]={[he]:[]}),fe>1||Ue)for(let It=I;It{ee(O,D.tmNode)}})]:null,Me.type==="selection"?se?null:Me.multiple===!1?w(YD,{key:C,rowKey:O,disabled:D.tmNode.disabled,onUpdateChecked:()=>{re(D.tmNode)}}):w(XD,{key:C,rowKey:O,disabled:D.tmNode.disabled,onUpdateChecked:(It,Kt)=>{W(D.tmNode,It,Kt.shiftKey)}}):Me.type==="expand"?se?null:!Me.expandable||!((Ge=Me.expandable)===null||Ge===void 0)&&Ge.call(Me,$)?w(Ng,{clsPrefix:r,expanded:V,renderExpandIcon:this.renderExpandIcon,onClick:()=>{ee(O,null)}}):null:w(GD,{clsPrefix:r,index:ue,row:$,column:Me,isSummary:se,mergedTheme:b,renderCell:this.renderCell}))}))};return o?w(ly,{ref:"virtualListRef",items:te,itemSize:28,visibleItemsTag:JD,visibleItemsProps:{clsPrefix:r,id:B,cols:m,onMouseleave:T},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!0},{default:({item:D,index:I})=>_e(D,I,!0)}):w("table",{class:`${r}-data-table-table`,onMouseleave:T,style:{tableLayout:this.mergedTableLayout}},w("colgroup",null,m.map(D=>w("col",{key:D.key,style:D.style}))),this.showHeader?w(Rw,{discrete:!1}):null,this.empty?null:w("tbody",{"data-n-id":B,class:`${r}-data-table-tbody`},te.map((D,I)=>_e(D,I,!1))))}});if(this.empty){const v=()=>w("div",{class:[`${r}-data-table-empty`,this.loading&&`${r}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},Br(this.dataTableSlots.empty,()=>[w(dC,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?w(rt,null,h,v()):w(Fo,{onResize:this.onResize},{default:v})}return h}}),eL=be({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:r,bodyWidthRef:o,maxHeightRef:n,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=De(Co),s=U(null),c=U(null),d=U(null),u=U(!(r.value.length||t.value.length)),f=j(()=>({maxHeight:Jt(n.value),minHeight:Jt(i.value)}));function p(m){o.value=m.contentRect.width,l(),u.value||(u.value=!0)}function h(){const{value:m}=s;return m?m.$el:null}function v(){const{value:m}=c;return m?m.getScrollContainer():null}const g={getBodyElement:v,getHeaderElement:h,scrollTo(m,x){var b;(b=c.value)===null||b===void 0||b.scrollTo(m,x)}};return ar(()=>{const{value:m}=d;if(!m)return;const x=`${e.value}-data-table-base-table--transition-disabled`;u.value?setTimeout(()=>{m.classList.remove(x)},0):m.classList.add(x)}),Object.assign({maxHeight:n,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:f,flexHeight:a,handleBodyResize:p},g)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:r}=this,o=t===void 0&&!r;return w("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:w(Rw,{ref:"headerInstRef"}),w(QD,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:o,flexHeight:r,onResize:this.handleBodyResize}))}});function tL(e,t){const{paginatedDataRef:r,treeMateRef:o,selectionColumnRef:n}=t,i=U(e.defaultCheckedRowKeys),a=j(()=>{var E;const{checkedRowKeys:C}=e,_=C===void 0?i.value:C;return((E=n.value)===null||E===void 0?void 0:E.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=j(()=>a.value.checkedKeys),s=j(()=>a.value.indeterminateKeys),c=j(()=>new Set(l.value)),d=j(()=>new Set(s.value)),u=j(()=>{const{value:E}=c;return r.value.reduce((C,_)=>{const{key:k,disabled:R}=_;return C+(!R&&E.has(k)?1:0)},0)}),f=j(()=>r.value.filter(E=>E.disabled).length),p=j(()=>{const{length:E}=r.value,{value:C}=d;return u.value>0&&u.valueC.has(_.key))}),h=j(()=>{const{length:E}=r.value;return u.value!==0&&u.value===E-f.value}),v=j(()=>r.value.length===0);function g(E,C,_){const{"onUpdate:checkedRowKeys":k,onUpdateCheckedRowKeys:R,onCheckedRowKeysChange:A}=e,B=[],{value:{getNode:S}}=o;E.forEach(P=>{var F;const T=(F=S(P))===null||F===void 0?void 0:F.rawNode;B.push(T)}),k&&Pe(k,E,B,{row:C,action:_}),R&&Pe(R,E,B,{row:C,action:_}),A&&Pe(A,E,B,{row:C,action:_}),i.value=E}function m(E,C=!1,_){if(!e.loading){if(C){g(Array.isArray(E)?E.slice(0,1):[E],_,"check");return}g(o.value.check(E,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function x(E,C){e.loading||g(o.value.uncheck(E,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,C,"uncheck")}function b(E=!1){const{value:C}=n;if(!C||e.loading)return;const _=[];(E?o.value.treeNodes:r.value).forEach(k=>{k.disabled||_.push(k.key)}),g(o.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function y(E=!1){const{value:C}=n;if(!C||e.loading)return;const _=[];(E?o.value.treeNodes:r.value).forEach(k=>{k.disabled||_.push(k.key)}),g(o.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:p,allRowsCheckedRef:h,headerCheckboxDisabledRef:v,doUpdateCheckedRowKeys:g,doCheckAll:b,doUncheckAll:y,doCheck:m,doUncheck:x}}function vs(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function rL(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?oL(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function oL(e){return(t,r)=>{const o=t[e],n=r[e];return o==null?n==null?0:-1:n==null?1:typeof o=="number"&&typeof n=="number"?o-n:typeof o=="string"&&typeof n=="string"?o.localeCompare(n):0}}function nL(e,{dataRelatedColsRef:t,filteredDataRef:r}){const o=[];t.value.forEach(p=>{var h;p.sorter!==void 0&&f(o,{columnKey:p.key,sorter:p.sorter,order:(h=p.defaultSortOrder)!==null&&h!==void 0?h:!1})});const n=U(o),i=j(()=>{const p=t.value.filter(g=>g.type!=="selection"&&g.sorter!==void 0&&(g.sortOrder==="ascend"||g.sortOrder==="descend"||g.sortOrder===!1)),h=p.filter(g=>g.sortOrder!==!1);if(h.length)return h.map(g=>({columnKey:g.key,order:g.sortOrder,sorter:g.sorter}));if(p.length)return[];const{value:v}=n;return Array.isArray(v)?v:v?[v]:[]}),a=j(()=>{const p=i.value.slice().sort((h,v)=>{const g=vs(h.sorter)||0;return(vs(v.sorter)||0)-g});return p.length?r.value.slice().sort((v,g)=>{let m=0;return p.some(x=>{const{columnKey:b,sorter:y,order:E}=x,C=rL(y,b);return C&&E&&(m=C(v.rawNode,g.rawNode),m!==0)?(m=m*bD(E),!0):!1}),m}):r.value});function l(p){let h=i.value.slice();return p&&vs(p.sorter)!==!1?(h=h.filter(v=>vs(v.sorter)!==!1),f(h,p),h):p||null}function s(p){const h=l(p);c(h)}function c(p){const{"onUpdate:sorter":h,onUpdateSorter:v,onSorterChange:g}=e;h&&Pe(h,p),v&&Pe(v,p),g&&Pe(g,p),n.value=p}function d(p,h="ascend"){if(!p)u();else{const v=t.value.find(m=>m.type!=="selection"&&m.type!=="expand"&&m.key===p);if(!(v!=null&&v.sorter))return;const g=v.sorter;s({columnKey:p,sorter:g,order:h})}}function u(){c(null)}function f(p,h){const v=p.findIndex(g=>(h==null?void 0:h.columnKey)&&g.columnKey===h.columnKey);v!==void 0&&v>=0?p[v]=h:p.push(h)}return{clearSorter:u,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function iL(e,{dataRelatedColsRef:t}){const r=j(()=>{const L=M=>{for(let G=0;G{const{childrenKey:L}=e;return zc(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:M=>M[L],getDisabled:M=>{var G,J;return!!(!((J=(G=r.value)===null||G===void 0?void 0:G.disabled)===null||J===void 0)&&J.call(G,M))}})}),n=Ft(()=>{const{columns:L}=e,{length:M}=L;let G=null;for(let J=0;J{const L=t.value.filter(J=>J.filterOptionValues!==void 0||J.filterOptionValue!==void 0),M={};return L.forEach(J=>{var ge;J.type==="selection"||J.type==="expand"||(J.filterOptionValues===void 0?M[J.key]=(ge=J.filterOptionValue)!==null&&ge!==void 0?ge:null:M[J.key]=J.filterOptionValues)}),Object.assign(Dg(i.value),M)}),d=j(()=>{const L=c.value,{columns:M}=e;function G(ve){return(te,ce)=>!!~String(ce[ve]).indexOf(String(te))}const{value:{treeNodes:J}}=o,ge=[];return M.forEach(ve=>{ve.type==="selection"||ve.type==="expand"||"children"in ve||ge.push([ve.key,ve])}),J?J.filter(ve=>{const{rawNode:te}=ve;for(const[ce,X]of ge){let le=L[ce];if(le==null||(Array.isArray(le)||(le=[le]),!le.length))continue;const Ee=X.filter==="default"?G(ce):X.filter;if(X&&typeof Ee=="function")if(X.filterMode==="and"){if(le.some(_e=>!Ee(_e,te)))return!1}else{if(le.some(_e=>Ee(_e,te)))continue;return!1}}return!0}):[]}),{sortedDataRef:u,deriveNextSorter:f,mergedSortStateRef:p,sort:h,clearSorter:v}=nL(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(L=>{var M;if(L.filter){const G=L.defaultFilterOptionValues;L.filterMultiple?i.value[L.key]=G||[]:G!==void 0?i.value[L.key]=G===null?[]:G:i.value[L.key]=(M=L.defaultFilterOptionValue)!==null&&M!==void 0?M:null}});const g=j(()=>{const{pagination:L}=e;if(L!==!1)return L.page}),m=j(()=>{const{pagination:L}=e;if(L!==!1)return L.pageSize}),x=Cr(g,l),b=Cr(m,s),y=Ft(()=>{const L=x.value;return e.remote?L:Math.max(1,Math.min(Math.ceil(d.value.length/b.value),L))}),E=j(()=>{const{pagination:L}=e;if(L){const{pageCount:M}=L;if(M!==void 0)return M}}),C=j(()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return u.value;const L=b.value,M=(y.value-1)*L;return u.value.slice(M,M+L)}),_=j(()=>C.value.map(L=>L.rawNode));function k(L){const{pagination:M}=e;if(M){const{onChange:G,"onUpdate:page":J,onUpdatePage:ge}=M;G&&Pe(G,L),ge&&Pe(ge,L),J&&Pe(J,L),S(L)}}function R(L){const{pagination:M}=e;if(M){const{onPageSizeChange:G,"onUpdate:pageSize":J,onUpdatePageSize:ge}=M;G&&Pe(G,L),ge&&Pe(ge,L),J&&Pe(J,L),P(L)}}const A=j(()=>{if(e.remote){const{pagination:L}=e;if(L){const{itemCount:M}=L;if(M!==void 0)return M}return}return d.value.length}),B=j(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":k,"onUpdate:pageSize":R,page:y.value,pageSize:b.value,pageCount:A.value===void 0?E.value:void 0,itemCount:A.value}));function S(L){const{"onUpdate:page":M,onPageChange:G,onUpdatePage:J}=e;J&&Pe(J,L),M&&Pe(M,L),G&&Pe(G,L),l.value=L}function P(L){const{"onUpdate:pageSize":M,onPageSizeChange:G,onUpdatePageSize:J}=e;G&&Pe(G,L),J&&Pe(J,L),M&&Pe(M,L),s.value=L}function F(L,M){const{onUpdateFilters:G,"onUpdate:filters":J,onFiltersChange:ge}=e;G&&Pe(G,L,M),J&&Pe(J,L,M),ge&&Pe(ge,L,M),i.value=L}function T(L,M,G,J){var ge;(ge=e.onUnstableColumnResize)===null||ge===void 0||ge.call(e,L,M,G,J)}function H(L){S(L)}function N(){W()}function W(){re({})}function re(L){ee(L)}function ee(L){L?L&&(i.value=Dg(L)):i.value={}}return{treeMateRef:o,mergedCurrentPageRef:y,mergedPaginationRef:B,paginatedDataRef:C,rawPaginatedDataRef:_,mergedFilterStateRef:c,mergedSortStateRef:p,hoverKeyRef:U(null),selectionColumnRef:r,childTriggerColIndexRef:n,doUpdateFilters:F,deriveNextSorter:f,doUpdatePageSize:P,doUpdatePage:S,onUnstableColumnResize:T,filter:ee,filters:re,clearFilter:N,clearFilters:W,clearSorter:v,page:H,sort:h}}function aL(e,{mainTableInstRef:t,mergedCurrentPageRef:r,bodyWidthRef:o}){let n=0;const i=U(),a=U(null),l=U([]),s=U(null),c=U([]),d=j(()=>Jt(e.scrollX)),u=j(()=>e.columns.filter(R=>R.fixed==="left")),f=j(()=>e.columns.filter(R=>R.fixed==="right")),p=j(()=>{const R={};let A=0;function B(S){S.forEach(P=>{const F={start:A,end:0};R[io(P)]=F,"children"in P?(B(P.children),F.end=A):(A+=$g(P)||0,F.end=A)})}return B(u.value),R}),h=j(()=>{const R={};let A=0;function B(S){for(let P=S.length-1;P>=0;--P){const F=S[P],T={start:A,end:0};R[io(F)]=T,"children"in F?(B(F.children),T.end=A):(A+=$g(F)||0,T.end=A)}}return B(f.value),R});function v(){var R,A;const{value:B}=u;let S=0;const{value:P}=p;let F=null;for(let T=0;T(((R=P[H])===null||R===void 0?void 0:R.start)||0)-S)F=H,S=((A=P[H])===null||A===void 0?void 0:A.end)||0;else break}a.value=F}function g(){l.value=[];let R=e.columns.find(A=>io(A)===a.value);for(;R&&"children"in R;){const A=R.children.length;if(A===0)break;const B=R.children[A-1];l.value.push(io(B)),R=B}}function m(){var R,A;const{value:B}=f,S=Number(e.scrollX),{value:P}=o;if(P===null)return;let F=0,T=null;const{value:H}=h;for(let N=B.length-1;N>=0;--N){const W=io(B[N]);if(Math.round(n+(((R=H[W])===null||R===void 0?void 0:R.start)||0)+P-F)io(A)===s.value);for(;R&&"children"in R&&R.children.length;){const A=R.children[0];c.value.push(io(A)),R=A}}function b(){const R=t.value?t.value.getHeaderElement():null,A=t.value?t.value.getBodyElement():null;return{header:R,body:A}}function y(){const{body:R}=b();R&&(R.scrollTop=0)}function E(){i.value!=="body"?ml(_):i.value=void 0}function C(R){var A;(A=e.onScroll)===null||A===void 0||A.call(e,R),i.value!=="head"?ml(_):i.value=void 0}function _(){const{header:R,body:A}=b();if(!A)return;const{value:B}=o;if(B!==null){if(e.maxHeight||e.flexHeight){if(!R)return;const S=n-R.scrollLeft;i.value=S!==0?"head":"body",i.value==="head"?(n=R.scrollLeft,A.scrollLeft=n):(n=A.scrollLeft,R.scrollLeft=n)}else n=A.scrollLeft;v(),g(),m(),x()}}function k(R){const{header:A}=b();A&&(A.scrollLeft=R,_())}return lt(r,()=>{y()}),{styleScrollXRef:d,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:h,leftFixedColumnsRef:u,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:C,handleTableHeaderScroll:E,setHeaderScrollLeft:k}}function lL(){const e=U({});function t(n){return e.value[n]}function r(n,i){xw(n)&&"key"in n&&(e.value[n.key]=i)}function o(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:r,clearResizableWidth:o}}function sL(e,t){const r=[],o=[],n=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(f,p){p>a&&(r[p]=[],a=p);for(const h of f)if("children"in h)c(h.children,p+1);else{const v="key"in h?h.key:void 0;o.push({key:io(h),style:yD(h,v!==void 0?Jt(t(v)):void 0),column:h}),l+=1,s||(s=!!h.ellipsis),n.push(h)}}c(e,0);let d=0;function u(f,p){let h=0;f.forEach((v,g)=>{var m;if("children"in v){const x=d,b={column:v,colSpan:0,rowSpan:1,isLast:!1};u(v.children,p+1),v.children.forEach(y=>{var E,C;b.colSpan+=(C=(E=i.get(y))===null||E===void 0?void 0:E.colSpan)!==null&&C!==void 0?C:0}),x+b.colSpan===l&&(b.isLast=!0),i.set(v,b),r[p].push(b)}else{if(d1&&(h=d+x);const b=d+x===l,y={column:v,colSpan:x,rowSpan:a-p+1,isLast:b};i.set(v,y),r[p].push(y),d+=1}})}return u(e,0),{hasEllipsis:s,rows:r,cols:o,dataRelatedCols:n}}function cL(e,t){const r=j(()=>sL(e.columns,t));return{rowsRef:j(()=>r.value.rows),colsRef:j(()=>r.value.cols),hasEllipsisRef:j(()=>r.value.hasEllipsis),dataRelatedColsRef:j(()=>r.value.dataRelatedCols)}}function dL(e,t){const r=Ft(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),o=Ft(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),n=U(e.defaultExpandAll?r!=null&&r.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var u;!((u=o.value)===null||u===void 0)&&u.call(o,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Re(e,"expandedRowKeys"),a=Re(e,"stickyExpandedRows"),l=Cr(i,n);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":u}=e;d&&Pe(d,c),u&&Pe(u,c),n.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:r,expandableRef:o,doUpdateExpandedRowKeys:s}}const Hg=fL(),uL=Z([z("data-table",`
+ width: 100%;
+ font-size: var(--n-font-size);
+ display: flex;
+ flex-direction: column;
+ position: relative;
+ --n-merged-th-color: var(--n-th-color);
+ --n-merged-td-color: var(--n-td-color);
+ --n-merged-border-color: var(--n-border-color);
+ --n-merged-th-color-hover: var(--n-th-color-hover);
+ --n-merged-td-color-hover: var(--n-td-color-hover);
+ --n-merged-td-color-striped: var(--n-td-color-striped);
+ `,[z("data-table-wrapper",`
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ `),Y("flex-height",[Z(">",[z("data-table-wrapper",[Z(">",[z("data-table-base-table",`
+ display: flex;
+ flex-direction: column;
+ flex-grow: 1;
+ `,[Z(">",[z("data-table-base-table-body","flex-basis: 0;",[Z("&:last-child","flex-grow: 1;")])])])])])])]),Z(">",[z("data-table-loading-wrapper",`
+ color: var(--n-loading-color);
+ font-size: var(--n-loading-size);
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[ma({originalTransform:"translateX(-50%) translateY(-50%)"})])]),z("data-table-expand-placeholder",`
+ margin-right: 8px;
+ display: inline-block;
+ width: 16px;
+ height: 1px;
+ `),z("data-table-indent",`
+ display: inline-block;
+ height: 1px;
+ `),z("data-table-expand-trigger",`
+ display: inline-flex;
+ margin-right: 8px;
+ cursor: pointer;
+ font-size: 16px;
+ vertical-align: -0.2em;
+ position: relative;
+ width: 16px;
+ height: 16px;
+ color: var(--n-td-text-color);
+ transition: color .3s var(--n-bezier);
+ `,[Y("expanded",[z("icon","transform: rotate(90deg);",[so({originalTransform:"rotate(90deg)"})]),z("base-icon","transform: rotate(90deg);",[so({originalTransform:"rotate(90deg)"})])]),z("base-loading",`
+ color: var(--n-loading-color);
+ transition: color .3s var(--n-bezier);
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[so()]),z("icon",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[so()]),z("base-icon",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[so()])]),z("data-table-thead",`
+ transition: background-color .3s var(--n-bezier);
+ background-color: var(--n-merged-th-color);
+ `),z("data-table-tr",`
+ box-sizing: border-box;
+ background-clip: padding-box;
+ transition: background-color .3s var(--n-bezier);
+ `,[z("data-table-expand",`
+ position: sticky;
+ left: 0;
+ overflow: hidden;
+ margin: calc(var(--n-th-padding) * -1);
+ padding: var(--n-th-padding);
+ box-sizing: border-box;
+ `),Y("striped","background-color: var(--n-merged-td-color-striped);",[z("data-table-td","background-color: var(--n-merged-td-color-striped);")]),St("summary",[Z("&:hover","background-color: var(--n-merged-td-color-hover);",[Z(">",[z("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),z("data-table-th",`
+ padding: var(--n-th-padding);
+ position: relative;
+ text-align: start;
+ box-sizing: border-box;
+ background-color: var(--n-merged-th-color);
+ border-color: var(--n-merged-border-color);
+ border-bottom: 1px solid var(--n-merged-border-color);
+ color: var(--n-th-text-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ font-weight: var(--n-th-font-weight);
+ `,[Y("filterable",`
+ padding-right: 36px;
+ `,[Y("sortable",`
+ padding-right: calc(var(--n-th-padding) + 36px);
+ `)]),Hg,Y("selection",`
+ padding: 0;
+ text-align: center;
+ line-height: 0;
+ z-index: 3;
+ `),Q("title-wrapper",`
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ max-width: 100%;
+ `,[Q("title",`
+ flex: 1;
+ min-width: 0;
+ `)]),Q("ellipsis",`
+ display: inline-block;
+ vertical-align: bottom;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: 100%;
+ `),Y("hover",`
+ background-color: var(--n-merged-th-color-hover);
+ `),Y("sortable",`
+ cursor: pointer;
+ `,[Q("ellipsis",`
+ max-width: calc(100% - 18px);
+ `),Z("&:hover",`
+ background-color: var(--n-merged-th-color-hover);
+ `)]),z("data-table-sorter",`
+ height: var(--n-sorter-size);
+ width: var(--n-sorter-size);
+ margin-left: 4px;
+ position: relative;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ vertical-align: -0.2em;
+ color: var(--n-th-icon-color);
+ transition: color .3s var(--n-bezier);
+ `,[z("base-icon","transition: transform .3s var(--n-bezier)"),Y("desc",[z("base-icon",`
+ transform: rotate(0deg);
+ `)]),Y("asc",[z("base-icon",`
+ transform: rotate(-180deg);
+ `)]),Y("asc, desc",`
+ color: var(--n-th-icon-color-active);
+ `)]),z("data-table-resize-button",`
+ width: var(--n-resizable-container-size);
+ position: absolute;
+ top: 0;
+ right: calc(var(--n-resizable-container-size) / 2);
+ bottom: 0;
+ cursor: col-resize;
+ user-select: none;
+ `,[Z("&::after",`
+ width: var(--n-resizable-size);
+ height: 50%;
+ position: absolute;
+ top: 50%;
+ left: calc(var(--n-resizable-container-size) / 2);
+ bottom: 0;
+ background-color: var(--n-merged-border-color);
+ transform: translateY(-50%);
+ transition: background-color .3s var(--n-bezier);
+ z-index: 1;
+ content: '';
+ `),Y("active",[Z("&::after",`
+ background-color: var(--n-th-icon-color-active);
+ `)]),Z("&:hover::after",`
+ background-color: var(--n-th-icon-color-active);
+ `)]),z("data-table-filter",`
+ position: absolute;
+ z-index: auto;
+ right: 0;
+ width: 36px;
+ top: 0;
+ bottom: 0;
+ cursor: pointer;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ font-size: var(--n-filter-size);
+ color: var(--n-th-icon-color);
+ `,[Z("&:hover",`
+ background-color: var(--n-th-button-color-hover);
+ `),Y("show",`
+ background-color: var(--n-th-button-color-hover);
+ `),Y("active",`
+ background-color: var(--n-th-button-color-hover);
+ color: var(--n-th-icon-color-active);
+ `)])]),z("data-table-td",`
+ padding: var(--n-td-padding);
+ text-align: start;
+ box-sizing: border-box;
+ border: none;
+ background-color: var(--n-merged-td-color);
+ color: var(--n-td-text-color);
+ border-bottom: 1px solid var(--n-merged-border-color);
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `,[Y("expand",[z("data-table-expand-trigger",`
+ margin-right: 0;
+ `)]),Y("last-row",`
+ border-bottom: 0 solid var(--n-merged-border-color);
+ `,[Z("&::after",`
+ bottom: 0 !important;
+ `),Z("&::before",`
+ bottom: 0 !important;
+ `)]),Y("summary",`
+ background-color: var(--n-merged-th-color);
+ `),Y("hover",`
+ background-color: var(--n-merged-td-color-hover);
+ `),Q("ellipsis",`
+ display: inline-block;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: 100%;
+ vertical-align: bottom;
+ max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);
+ `),Y("selection, expand",`
+ text-align: center;
+ padding: 0;
+ line-height: 0;
+ `),Hg]),z("data-table-empty",`
+ box-sizing: border-box;
+ padding: var(--n-empty-padding);
+ flex-grow: 1;
+ flex-shrink: 0;
+ opacity: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: opacity .3s var(--n-bezier);
+ `,[Y("hide",`
+ opacity: 0;
+ `)]),Q("pagination",`
+ margin: var(--n-pagination-margin);
+ display: flex;
+ justify-content: flex-end;
+ `),z("data-table-wrapper",`
+ position: relative;
+ opacity: 1;
+ transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
+ border-top-left-radius: var(--n-border-radius);
+ border-top-right-radius: var(--n-border-radius);
+ line-height: var(--n-line-height);
+ `),Y("loading",[z("data-table-wrapper",`
+ opacity: var(--n-opacity-loading);
+ pointer-events: none;
+ `)]),Y("single-column",[z("data-table-td",`
+ border-bottom: 0 solid var(--n-merged-border-color);
+ `,[Z("&::after, &::before",`
+ bottom: 0 !important;
+ `)])]),St("single-line",[z("data-table-th",`
+ border-right: 1px solid var(--n-merged-border-color);
+ `,[Y("last",`
+ border-right: 0 solid var(--n-merged-border-color);
+ `)]),z("data-table-td",`
+ border-right: 1px solid var(--n-merged-border-color);
+ `,[Y("last-col",`
+ border-right: 0 solid var(--n-merged-border-color);
+ `)])]),Y("bordered",[z("data-table-wrapper",`
+ border: 1px solid var(--n-merged-border-color);
+ border-bottom-left-radius: var(--n-border-radius);
+ border-bottom-right-radius: var(--n-border-radius);
+ overflow: hidden;
+ `)]),z("data-table-base-table",[Y("transition-disabled",[z("data-table-th",[Z("&::after, &::before","transition: none;")]),z("data-table-td",[Z("&::after, &::before","transition: none;")])])]),Y("bottom-bordered",[z("data-table-td",[Y("last-row",`
+ border-bottom: 1px solid var(--n-merged-border-color);
+ `)])]),z("data-table-table",`
+ font-variant-numeric: tabular-nums;
+ width: 100%;
+ word-break: break-word;
+ transition: background-color .3s var(--n-bezier);
+ border-collapse: separate;
+ border-spacing: 0;
+ background-color: var(--n-merged-td-color);
+ `),z("data-table-base-table-header",`
+ border-top-left-radius: calc(var(--n-border-radius) - 1px);
+ border-top-right-radius: calc(var(--n-border-radius) - 1px);
+ z-index: 3;
+ overflow: scroll;
+ flex-shrink: 0;
+ transition: border-color .3s var(--n-bezier);
+ scrollbar-width: none;
+ `,[Z("&::-webkit-scrollbar",`
+ width: 0;
+ height: 0;
+ `)]),z("data-table-check-extra",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-th-icon-color);
+ position: absolute;
+ font-size: 14px;
+ right: -4px;
+ top: 50%;
+ transform: translateY(-50%);
+ z-index: 1;
+ `)]),z("data-table-filter-menu",[z("scrollbar",`
+ max-height: 240px;
+ `),Q("group",`
+ display: flex;
+ flex-direction: column;
+ padding: 12px 12px 0 12px;
+ `,[z("checkbox",`
+ margin-bottom: 12px;
+ margin-right: 0;
+ `),z("radio",`
+ margin-bottom: 12px;
+ margin-right: 0;
+ `)]),Q("action",`
+ padding: var(--n-action-padding);
+ display: flex;
+ flex-wrap: nowrap;
+ justify-content: space-evenly;
+ border-top: 1px solid var(--n-action-divider-color);
+ `,[z("button",[Z("&:not(:last-child)",`
+ margin: var(--n-action-button-margin);
+ `),Z("&:last-child",`
+ margin-right: 0;
+ `)])]),z("divider",`
+ margin: 0 !important;
+ `)]),ua(z("data-table",`
+ --n-merged-th-color: var(--n-th-color-modal);
+ --n-merged-td-color: var(--n-td-color-modal);
+ --n-merged-border-color: var(--n-border-color-modal);
+ --n-merged-th-color-hover: var(--n-th-color-hover-modal);
+ --n-merged-td-color-hover: var(--n-td-color-hover-modal);
+ --n-merged-td-color-striped: var(--n-td-color-striped-modal);
+ `)),Nl(z("data-table",`
+ --n-merged-th-color: var(--n-th-color-popover);
+ --n-merged-td-color: var(--n-td-color-popover);
+ --n-merged-border-color: var(--n-border-color-popover);
+ --n-merged-th-color-hover: var(--n-th-color-hover-popover);
+ --n-merged-td-color-hover: var(--n-td-color-hover-popover);
+ --n-merged-td-color-striped: var(--n-td-color-striped-popover);
+ `))]);function fL(){return[Y("fixed-left",`
+ left: 0;
+ position: sticky;
+ z-index: 2;
+ `,[Z("&::after",`
+ pointer-events: none;
+ content: "";
+ width: 36px;
+ display: inline-block;
+ position: absolute;
+ top: 0;
+ bottom: -1px;
+ transition: box-shadow .2s var(--n-bezier);
+ right: -36px;
+ `)]),Y("fixed-right",`
+ right: 0;
+ position: sticky;
+ z-index: 1;
+ `,[Z("&::before",`
+ pointer-events: none;
+ content: "";
+ width: 36px;
+ display: inline-block;
+ position: absolute;
+ top: 0;
+ bottom: -1px;
+ transition: box-shadow .2s var(--n-bezier);
+ left: -36px;
+ `)])]}const hL=be({name:"DataTable",alias:["AdvancedTable"],props:lD,setup(e,{slots:t}){const{mergedBorderedRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:i}=nt(e),a=dr("DataTable",i,o),l=j(()=>{const{bottomBordered:K}=e;return r.value?!1:K!==void 0?K:!0}),s=ze("DataTable","-data-table",uL,uw,e,o),c=U(null),d=U(null),{getResizableWidth:u,clearResizableWidth:f,doUpdateResizableWidth:p}=lL(),{rowsRef:h,colsRef:v,dataRelatedColsRef:g,hasEllipsisRef:m}=cL(e,u),x=K=>{const{fileName:fe="data.csv",keepOriginalData:we=!1}=K||{},Le=we?e.data:C.value,We=_D(e.columns,Le),Ue=new Blob([We],{type:"text/csv;charset=utf-8"}),qe=URL.createObjectURL(Ue);py(qe,fe.endsWith(".csv")?fe:`${fe}.csv`),URL.revokeObjectURL(qe)},{treeMateRef:b,mergedCurrentPageRef:y,paginatedDataRef:E,rawPaginatedDataRef:C,selectionColumnRef:_,hoverKeyRef:k,mergedPaginationRef:R,mergedFilterStateRef:A,mergedSortStateRef:B,childTriggerColIndexRef:S,doUpdatePage:P,doUpdateFilters:F,onUnstableColumnResize:T,deriveNextSorter:H,filter:N,filters:W,clearFilter:re,clearFilters:ee,clearSorter:L,page:M,sort:G}=iL(e,{dataRelatedColsRef:g}),{doCheckAll:J,doUncheckAll:ge,doCheck:ve,doUncheck:te,headerCheckboxDisabledRef:ce,someRowsCheckedRef:X,allRowsCheckedRef:le,mergedCheckedRowKeySetRef:Ee,mergedInderminateRowKeySetRef:_e}=tL(e,{selectionColumnRef:_,treeMateRef:b,paginatedDataRef:E}),{stickyExpandedRowsRef:D,mergedExpandedRowKeysRef:I,renderExpandRef:q,expandableRef:ue,doUpdateExpandedRowKeys:se}=dL(e,b),{handleTableBodyScroll:me,handleTableHeaderScroll:Ce,syncScrollState:O,setHeaderScrollLeft:$,leftActiveFixedColKeyRef:V,leftActiveFixedChildrenColKeysRef:ie,rightActiveFixedColKeyRef:ne,rightActiveFixedChildrenColKeysRef:ae,leftFixedColumnsRef:oe,rightFixedColumnsRef:he,fixedColumnLeftMapRef:$e,fixedColumnRightMapRef:He}=aL(e,{bodyWidthRef:c,mainTableInstRef:d,mergedCurrentPageRef:y}),{localeRef:Te}=$n("DataTable"),Ie=j(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);ot(Co,{props:e,treeMateRef:b,renderExpandIconRef:Re(e,"renderExpandIcon"),loadingKeySetRef:U(new Set),slots:t,indentRef:Re(e,"indent"),childTriggerColIndexRef:S,bodyWidthRef:c,componentId:Fn(),hoverKeyRef:k,mergedClsPrefixRef:o,mergedThemeRef:s,scrollXRef:j(()=>e.scrollX),rowsRef:h,colsRef:v,paginatedDataRef:E,leftActiveFixedColKeyRef:V,leftActiveFixedChildrenColKeysRef:ie,rightActiveFixedColKeyRef:ne,rightActiveFixedChildrenColKeysRef:ae,leftFixedColumnsRef:oe,rightFixedColumnsRef:he,fixedColumnLeftMapRef:$e,fixedColumnRightMapRef:He,mergedCurrentPageRef:y,someRowsCheckedRef:X,allRowsCheckedRef:le,mergedSortStateRef:B,mergedFilterStateRef:A,loadingRef:Re(e,"loading"),rowClassNameRef:Re(e,"rowClassName"),mergedCheckedRowKeySetRef:Ee,mergedExpandedRowKeysRef:I,mergedInderminateRowKeySetRef:_e,localeRef:Te,expandableRef:ue,stickyExpandedRowsRef:D,rowKeyRef:Re(e,"rowKey"),renderExpandRef:q,summaryRef:Re(e,"summary"),virtualScrollRef:Re(e,"virtualScroll"),rowPropsRef:Re(e,"rowProps"),stripedRef:Re(e,"striped"),checkOptionsRef:j(()=>{const{value:K}=_;return K==null?void 0:K.options}),rawPaginatedDataRef:C,filterMenuCssVarsRef:j(()=>{const{self:{actionDividerColor:K,actionPadding:fe,actionButtonMargin:we}}=s.value;return{"--n-action-padding":fe,"--n-action-button-margin":we,"--n-action-divider-color":K}}),onLoadRef:Re(e,"onLoad"),mergedTableLayoutRef:Ie,maxHeightRef:Re(e,"maxHeight"),minHeightRef:Re(e,"minHeight"),flexHeightRef:Re(e,"flexHeight"),headerCheckboxDisabledRef:ce,paginationBehaviorOnFilterRef:Re(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Re(e,"summaryPlacement"),scrollbarPropsRef:Re(e,"scrollbarProps"),syncScrollState:O,doUpdatePage:P,doUpdateFilters:F,getResizableWidth:u,onUnstableColumnResize:T,clearResizableWidth:f,doUpdateResizableWidth:p,deriveNextSorter:H,doCheck:ve,doUncheck:te,doCheckAll:J,doUncheckAll:ge,doUpdateExpandedRowKeys:se,handleTableHeaderScroll:Ce,handleTableBodyScroll:me,setHeaderScrollLeft:$,renderCell:Re(e,"renderCell")});const Ge={filter:N,filters:W,clearFilters:ee,clearSorter:L,page:M,sort:G,clearFilter:re,downloadCsv:x,scrollTo:(K,fe)=>{var we;(we=d.value)===null||we===void 0||we.scrollTo(K,fe)}},Me=j(()=>{const{size:K}=e,{common:{cubicBezierEaseInOut:fe},self:{borderColor:we,tdColorHover:Le,thColor:We,thColorHover:Ue,tdColor:qe,tdTextColor:Xe,thTextColor:st,thFontWeight:Ut,thButtonColorHover:It,thIconColor:Kt,thIconColorActive:Rr,filterSize:wr,borderRadius:eo,lineHeight:Vr,tdColorModal:Wt,thColorModal:rr,borderColorModal:de,thColorHoverModal:ke,tdColorHoverModal:Ze,borderColorPopover:Et,thColorPopover:$t,tdColorPopover:_t,tdColorHoverPopover:to,thColorHoverPopover:ro,paginationMargin:oo,emptyPadding:No,boxShadowAfter:Ho,boxShadowBefore:Kn,sorterSize:_a,resizableContainerSize:Ea,resizableSize:ka,loadingColor:Pa,loadingSize:sn,opacityLoading:cn,tdColorStriped:pd,tdColorStripedModal:vd,tdColorStripedPopover:gd,[ye("fontSize",K)]:md,[ye("thPadding",K)]:bd,[ye("tdPadding",K)]:xd}}=s.value;return{"--n-font-size":md,"--n-th-padding":bd,"--n-td-padding":xd,"--n-bezier":fe,"--n-border-radius":eo,"--n-line-height":Vr,"--n-border-color":we,"--n-border-color-modal":de,"--n-border-color-popover":Et,"--n-th-color":We,"--n-th-color-hover":Ue,"--n-th-color-modal":rr,"--n-th-color-hover-modal":ke,"--n-th-color-popover":$t,"--n-th-color-hover-popover":ro,"--n-td-color":qe,"--n-td-color-hover":Le,"--n-td-color-modal":Wt,"--n-td-color-hover-modal":Ze,"--n-td-color-popover":_t,"--n-td-color-hover-popover":to,"--n-th-text-color":st,"--n-td-text-color":Xe,"--n-th-font-weight":Ut,"--n-th-button-color-hover":It,"--n-th-icon-color":Kt,"--n-th-icon-color-active":Rr,"--n-filter-size":wr,"--n-pagination-margin":oo,"--n-empty-padding":No,"--n-box-shadow-before":Kn,"--n-box-shadow-after":Ho,"--n-sorter-size":_a,"--n-resizable-container-size":Ea,"--n-resizable-size":ka,"--n-loading-size":sn,"--n-loading-color":Pa,"--n-opacity-loading":cn,"--n-td-color-striped":pd,"--n-td-color-striped-modal":vd,"--n-td-color-striped-popover":gd}}),Ye=n?Ct("data-table",j(()=>e.size[0]),Me,e):void 0,pt=j(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const K=R.value,{pageCount:fe}=K;return fe!==void 0?fe>1:K.itemCount&&K.pageSize&&K.itemCount>K.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:o,rtlEnabled:a,mergedTheme:s,paginatedData:E,mergedBordered:r,mergedBottomBordered:l,mergedPagination:R,mergedShowPagination:pt,cssVars:n?void 0:Me,themeClass:Ye==null?void 0:Ye.themeClass,onRender:Ye==null?void 0:Ye.onRender},Ge)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:r,$slots:o,spinProps:n}=this;return r==null||r(),w("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},w("div",{class:`${e}-data-table-wrapper`},w(eL,{ref:"mainTableInstRef"})),this.mergedShowPagination?w("div",{class:`${e}-data-table__pagination`},w(j$,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,w(lr,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?w("div",{class:`${e}-data-table-loading-wrapper`},Br(o.loading,()=>[w(va,Object.assign({clsPrefix:e,strokeWidth:20},n))])):null}))}}),pL={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},Aw=e=>{const{popoverColor:t,textColor2:r,primaryColor:o,hoverColor:n,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},pL),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:r,itemTextColorActive:o,itemColorHover:n,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},vL={name:"TimePicker",common:Oe,peers:{Scrollbar:Pr,Button:Tr,Input:Wr},self:Aw},Fw=vL,gL={name:"TimePicker",common:Fe,peers:{Scrollbar:Lr,Button:zr,Input:Qr},self:Aw},Ow=gL,mL={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"},Bw=e=>{const{hoverColor:t,fontSize:r,textColor2:o,textColorDisabled:n,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},mL),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:o,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Se(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:o,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c})},bL={name:"DatePicker",common:Oe,peers:{Input:Wr,Button:Tr,TimePicker:Fw,Scrollbar:Pr},self:Bw},xL=bL,yL={name:"DatePicker",common:Fe,peers:{Input:Qr,Button:zr,TimePicker:Ow,Scrollbar:Lr},self(e){const{popoverColor:t,hoverColor:r,primaryColor:o}=e,n=Bw(e);return n.itemColorDisabled=Ke(t,r),n.itemColorIncluded=Se(o,{alpha:.15}),n.itemColorHover=Ke(t,r),n}},CL=yL;var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),r}const _L={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},Iw=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:o,cardColor:n,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},_L),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:o,thColor:Ke(n,t),thColorModal:Ke(i,t),thColorPopover:Ke(a,t),thTextColor:o,thFontWeight:c,tdTextColor:r,tdColor:n,tdColorModal:i,tdColorPopover:a,borderColor:Ke(n,l),borderColorModal:Ke(i,l),borderColorPopover:Ke(a,l),borderRadius:s})},EL={name:"Descriptions",common:Oe,self:Iw},kL=EL,PL={name:"Descriptions",common:Fe,self:Iw},TL=PL,RL={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},$w=e=>{const{textColor1:t,textColor2:r,modalColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:p,dividerColor:h,borderRadius:v,fontWeightStrong:g,lineHeight:m,fontSize:x}=e;return Object.assign(Object.assign({},RL),{fontSize:x,lineHeight:m,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:o,closeColorHover:l,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:v,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:v,titleFontWeight:g})},AL={name:"Dialog",common:Oe,peers:{Button:Tr},self:$w},Th=AL,FL={name:"Dialog",common:Fe,peers:{Button:zr},self:$w},Dw=FL,Kc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},Lw=On(Kc),OL=Z([z("dialog",`
+ --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
+ word-break: break-word;
+ line-height: var(--n-line-height);
+ position: relative;
+ background: var(--n-color);
+ color: var(--n-text-color);
+ box-sizing: border-box;
+ margin: auto;
+ border-radius: var(--n-border-radius);
+ padding: var(--n-padding);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `,[Q("icon",{color:"var(--n-icon-color)"}),Y("bordered",{border:"var(--n-border)"}),Y("icon-top",[Q("close",{margin:"var(--n-close-margin)"}),Q("icon",{margin:"var(--n-icon-margin)"}),Q("content",{textAlign:"center"}),Q("title",{justifyContent:"center"}),Q("action",{justifyContent:"center"})]),Y("icon-left",[Q("icon",{margin:"var(--n-icon-margin)"}),Y("closable",[Q("title",`
+ padding-right: calc(var(--n-close-size) + 6px);
+ `)])]),Q("close",`
+ position: absolute;
+ right: 0;
+ top: 0;
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ z-index: 1;
+ `),Q("content",`
+ font-size: var(--n-font-size);
+ margin: var(--n-content-margin);
+ position: relative;
+ word-break: break-word;
+ `,[Y("last","margin-bottom: 0;")]),Q("action",`
+ display: flex;
+ justify-content: flex-end;
+ `,[Z("> *:not(:last-child)",`
+ margin-right: var(--n-action-space);
+ `)]),Q("icon",`
+ font-size: var(--n-icon-size);
+ transition: color .3s var(--n-bezier);
+ `),Q("title",`
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ font-size: var(--n-title-font-size);
+ font-weight: var(--n-title-font-weight);
+ color: var(--n-title-text-color);
+ `),z("dialog-icon-container",`
+ display: flex;
+ justify-content: center;
+ `)]),ua(z("dialog",`
+ width: 446px;
+ max-width: calc(100vw - 32px);
+ `)),z("dialog",[V1(`
+ width: 446px;
+ max-width: calc(100vw - 32px);
+ `)])]),BL={default:()=>w(rc,null),info:()=>w(rc,null),success:()=>w(fh,null),warning:()=>w(Lc,null),error:()=>w(uh,null)},zw=be({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ze.props),Kc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),i=dr("Dialog",n,r),a=j(()=>{var p,h;const{iconPlacement:v}=e;return v||((h=(p=t==null?void 0:t.value)===null||p===void 0?void 0:p.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function l(p){const{onPositiveClick:h}=e;h&&h(p)}function s(p){const{onNegativeClick:h}=e;h&&h(p)}function c(){const{onClose:p}=e;p&&p()}const d=ze("Dialog","-dialog",OL,Th,e,r),u=j(()=>{const{type:p}=e,h=a.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:g,lineHeight:m,border:x,titleTextColor:b,textColor:y,color:E,closeBorderRadius:C,closeColorHover:_,closeColorPressed:k,closeIconColor:R,closeIconColorHover:A,closeIconColorPressed:B,closeIconSize:S,borderRadius:P,titleFontWeight:F,titleFontSize:T,padding:H,iconSize:N,actionSpace:W,contentMargin:re,closeSize:ee,[h==="top"?"iconMarginIconTop":"iconMargin"]:L,[h==="top"?"closeMarginIconTop":"closeMargin"]:M,[ye("iconColor",p)]:G}}=d.value,J=kr(L);return{"--n-font-size":g,"--n-icon-color":G,"--n-bezier":v,"--n-close-margin":M,"--n-icon-margin-top":J.top,"--n-icon-margin-right":J.right,"--n-icon-margin-bottom":J.bottom,"--n-icon-margin-left":J.left,"--n-icon-size":N,"--n-close-size":ee,"--n-close-icon-size":S,"--n-close-border-radius":C,"--n-close-color-hover":_,"--n-close-color-pressed":k,"--n-close-icon-color":R,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":B,"--n-color":E,"--n-text-color":y,"--n-border-radius":P,"--n-padding":H,"--n-line-height":m,"--n-border":x,"--n-content-margin":re,"--n-title-font-size":T,"--n-title-font-weight":F,"--n-title-text-color":b,"--n-action-space":W}}),f=o?Ct("dialog",j(()=>`${e.type[0]}${a.value[0]}`),u,e):void 0;return{mergedClsPrefix:r,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:l,handleNegativeClick:s,handleCloseClick:c,cssVars:o?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:r,cssVars:o,closable:n,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:u,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:v,loading:g,type:m,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const b=i?w(wt,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>Rt(this.$slots.icon,E=>E||(this.icon?Vt(this.icon):BL[this.type]()))}):null,y=Rt(this.$slots.action,E=>E||d||c||s?w("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},E||(s?[Vt(s)]:[this.negativeText&&w(nr,Object.assign({theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,ghost:!0,size:"small",onClick:h},f),{default:()=>Vt(this.negativeText)}),this.positiveText&&w(nr,Object.assign({theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:g,loading:g,onClick:p},u),{default:()=>Vt(this.positiveText)})])):null);return w("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${r}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:o,role:"dialog"},n?Rt(this.$slots.close,E=>{const C=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return E?w("div",{class:C},E):w(pa,{clsPrefix:x,class:C,onClick:this.handleCloseClick})}):null,i&&r==="top"?w("div",{class:`${x}-dialog-icon-container`},b):null,w("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},i&&r==="left"?b:null,Br(this.$slots.header,()=>[Vt(a)])),w("div",{class:[`${x}-dialog__content`,y?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},Br(this.$slots.default,()=>[Vt(l)])),y)}}),Mw="n-dialog-provider",Nw="n-dialog-api",IL="n-dialog-reactive-list",Hw=e=>{const{modalColor:t,textColor2:r,boxShadow3:o}=e;return{color:t,textColor:r,boxShadow:o}},$L={name:"Modal",common:Oe,peers:{Scrollbar:Pr,Dialog:Th,Card:mh},self:Hw},jw=$L,DL={name:"Modal",common:Fe,peers:{Scrollbar:Lr,Dialog:Dw,Card:WC},self:Hw},LL=DL,Rh=Object.assign(Object.assign({},bh),Kc),zL=On(Rh),ML=be({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Rh),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=U(null),r=U(null),o=U(e.show),n=U(null),i=U(null);lt(Re(e,"show"),g=>{g&&(o.value=!0)}),z8(j(()=>e.blockScroll&&o.value));const a=De(Z1);function l(){if(a.transformOriginRef.value==="center")return"";const{value:g}=n,{value:m}=i;if(g===null||m===null)return"";if(r.value){const x=r.value.containerScrollTop;return`${g}px ${m+x}px`}return""}function s(g){if(a.transformOriginRef.value==="center")return;const m=a.getMousePosition();if(!m||!r.value)return;const x=r.value.containerScrollTop,{offsetLeft:b,offsetTop:y}=g;if(m){const E=m.y,C=m.x;n.value=-(b-C),i.value=-(y-E-x)}g.style.transformOrigin=l()}function c(g){Bt(()=>{s(g)})}function d(g){g.style.transformOrigin=l(),e.onBeforeLeave()}function u(){o.value=!1,n.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:g}=e;g&&g()}function p(){e.onNegativeClick()}function h(){e.onPositiveClick()}const v=U(null);return lt(v,g=>{g&&Bt(()=>{const m=g.el;m&&t.value!==m&&(t.value=m)})}),ot(Tc,t),ot(Rc,null),ot(Hl,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:r,displayed:o,childNodeRef:v,handlePositiveClick:h,handleNegativeClick:p,handleCloseClick:f,handleAfterLeave:u,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:r,handleAfterLeave:o,handleBeforeLeave:n,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=gf(e),!l){Io("modal","default slot is empty");return}l=mo(l),l.props=jr({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?$r(w("div",{role:"none",class:`${a}-modal-body-wrapper`},w(Nn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),w(fy,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return w(lr,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:r,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:n},{default:()=>{const d=[[Qo,this.show]],{onClickoutside:u}=this;return u&&d.push([Cl,this.onClickoutside,void 0,{capture:!0}]),$r(this.preset==="confirm"||this.preset==="dialog"?w(zw,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},tn(this.$props,Lw),{"aria-modal":"true"}),e):this.preset==="card"?w(xh,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},tn(this.$props,KI),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[Qo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),NL=Z([z("modal-container",`
+ position: fixed;
+ left: 0;
+ top: 0;
+ height: 0;
+ width: 0;
+ display: flex;
+ `),z("modal-mask",`
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, .4);
+ `,[Pl({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),z("modal-body-wrapper",`
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow: visible;
+ `,[z("modal-scroll-content",`
+ min-height: 100%;
+ display: flex;
+ position: relative;
+ `)]),z("modal",`
+ position: relative;
+ align-self: center;
+ color: var(--n-text-color);
+ margin: auto;
+ box-shadow: var(--n-box-shadow);
+ `,[ma({duration:".25s",enterScale:".5"})])]),HL=Object.assign(Object.assign(Object.assign(Object.assign({},ze.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Rh),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),Yi=be({name:"Modal",inheritAttrs:!1,props:HL,setup(e){const t=U(null),{mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:n}=nt(e),i=ze("Modal","-modal",NL,jw,e,r),a=X1(64),l=G1(),s=wi(),c=e.internalDialog?De(Mw,null):null,d=e.internalModal?De(j3,null):null,u=M8();function f(C){const{onUpdateShow:_,"onUpdate:show":k,onHide:R}=e;_&&Pe(_,C),k&&Pe(k,C),R&&!C&&R(C)}function p(){const{onClose:C}=e;C?Promise.resolve(C()).then(_=>{_!==!1&&f(!1)}):f(!1)}function h(){const{onPositiveClick:C}=e;C?Promise.resolve(C()).then(_=>{_!==!1&&f(!1)}):f(!1)}function v(){const{onNegativeClick:C}=e;C?Promise.resolve(C()).then(_=>{_!==!1&&f(!1)}):f(!1)}function g(){const{onBeforeLeave:C,onBeforeHide:_}=e;C&&Pe(C),_&&_()}function m(){const{onAfterLeave:C,onAfterHide:_}=e;C&&Pe(C),_&&_()}function x(C){var _;const{onMaskClick:k}=e;k&&k(C),e.maskClosable&&!((_=t.value)===null||_===void 0)&&_.contains(Ji(C))&&f(!1)}function b(C){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&_3(C)&&!u.value&&f(!1)}ot(Z1,{getMousePosition:()=>{const C=c||d;if(C){const{clickedRef:_,clickedPositionRef:k}=C;if(_.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:r,mergedThemeRef:i,isMountedRef:s,appearRef:Re(e,"internalAppear"),transformOriginRef:Re(e,"transformOrigin")});const y=j(()=>{const{common:{cubicBezierEaseOut:C},self:{boxShadow:_,color:k,textColor:R}}=i.value;return{"--n-bezier-ease-out":C,"--n-box-shadow":_,"--n-color":k,"--n-text-color":R}}),E=n?Ct("theme-class",void 0,y,e):void 0;return{mergedClsPrefix:r,namespace:o,isMounted:s,containerRef:t,presetProps:j(()=>tn(e,zL)),handleEsc:b,handleAfterLeave:m,handleClickoutside:x,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:v,handlePositiveClick:h,handleCloseClick:p,cssVars:n?void 0:y,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{mergedClsPrefix:e}=this;return w(G0,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:r}=this;return $r(w("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},w(ML,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:r?void 0:this.handleClickoutside,renderMask:r?()=>{var o;return w(lr,{name:"fade-in-transition",key:"mask",appear:(o=this.internalAppear)!==null&&o!==void 0?o:this.isMounted},{default:()=>this.show?w("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),jL=Object.assign(Object.assign({},Kc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),WL=be({name:"DialogEnvironment",props:Object.assign(Object.assign({},jL),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=U(!0);function r(){const{onInternalAfterLeave:d,internalKey:u,onAfterLeave:f}=e;d&&d(u),f&&f()}function o(d){const{onPositiveClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&s()}):s()}function n(d){const{onNegativeClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(u=>{u!==!1&&s()}):s()}function a(d){const{onMaskClick:u,maskClosable:f}=e;u&&(u(d),f&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:r,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:o,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:r,handleCloseClick:o,handleAfterLeave:n,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return w(Yi,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>w(zw,Object.assign({},tn(this.$props,Lw),{style:this.internalStyle,onClose:o,onNegativeClick:r,onPositiveClick:e}))})}}),VL={injectionKey:String,to:[String,Object]},UL=be({name:"DialogProvider",props:VL,setup(){const e=U([]),t={};function r(l={}){const s=Fn(),c=Lo(Object.assign(Object.assign({},l),{key:s,destroy:()=>{var d;(d=t[`n-dialog-${s}`])===null||d===void 0||d.hide()}}));return e.value.push(c),c}const o=["info","success","warning","error"].map(l=>s=>r(Object.assign(Object.assign({},s),{type:l})));function n(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>{l==null||l.hide()})}const a={create:r,destroyAll:i,info:o[0],success:o[1],warning:o[2],error:o[3]};return ot(Nw,a),ot(Mw,{clickedRef:X1(64),clickedPositionRef:G1()}),ot(IL,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return w(rt,null,[this.dialogList.map(r=>w(WL,xi(r,["destroy","style"],{internalStyle:r.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${r.key}`]:this.dialogInstRefs[`n-dialog-${r.key}`]=o},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function Ww(){const e=De(Nw,null);return e===null&&yi("use-dialog","No outer founded."),e}const Vw=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:o}=e;return{textColor:t,color:r,fontWeight:o}},KL={name:"Divider",common:Oe,self:Vw},Uw=KL,qL={name:"Divider",common:Fe,self:Vw},GL=qL,XL=z("divider",`
+ position: relative;
+ display: flex;
+ width: 100%;
+ box-sizing: border-box;
+ font-size: 16px;
+ color: var(--n-text-color);
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+`,[St("vertical",`
+ margin-top: 24px;
+ margin-bottom: 24px;
+ `,[St("no-title",`
+ display: flex;
+ align-items: center;
+ `)]),Q("title",`
+ display: flex;
+ align-items: center;
+ margin-left: 12px;
+ margin-right: 12px;
+ white-space: nowrap;
+ font-weight: var(--n-font-weight);
+ `),Y("title-position-left",[Q("line",[Y("left",{width:"28px"})])]),Y("title-position-right",[Q("line",[Y("right",{width:"28px"})])]),Y("dashed",[Q("line",`
+ background-color: #0000;
+ height: 0px;
+ width: 100%;
+ border-style: dashed;
+ border-width: 1px 0 0;
+ `)]),Y("vertical",`
+ display: inline-block;
+ height: 1em;
+ margin: 0 8px;
+ vertical-align: middle;
+ width: 1px;
+ `),Q("line",`
+ border: none;
+ transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
+ height: 1px;
+ width: 100%;
+ margin: 0;
+ `),St("dashed",[Q("line",{backgroundColor:"var(--n-color)"})]),Y("dashed",[Q("line",{borderColor:"var(--n-color)"})]),Y("vertical",{backgroundColor:"var(--n-color)"})]),YL=Object.assign(Object.assign({},ze.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),ZL=be({name:"Divider",props:YL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),o=ze("Divider","-divider",XL,Uw,e,t),n=j(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=o.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=r?Ct("divider",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:r,vertical:o,dashed:n,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),w("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:o,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:n,[`${a}-divider--title-position-${r}`]:t.default&&r}],style:i},o?null:w("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!o&&t.default?w(rt,null,w("div",{class:`${a}-divider__title`},this.$slots),w("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),Kw=e=>{const{modalColor:t,textColor1:r,textColor2:o,boxShadow3:n,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:r,titleFontSize:"18px",titleFontWeight:a,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}},JL={name:"Drawer",common:Oe,peers:{Scrollbar:Pr},self:Kw},QL=JL,e7={name:"Drawer",common:Fe,peers:{Scrollbar:Lr},self:Kw},t7=e7,qw={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},r7={name:"DynamicInput",common:Fe,peers:{Input:Qr,Button:zr},self(){return qw}},o7=r7,n7=()=>qw,i7={name:"DynamicInput",common:Oe,peers:{Input:Wr,Button:Tr},self:n7},a7=i7,Gw={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},l7={name:"Space",self(){return Gw}},Xw=l7,s7=()=>Gw,c7={name:"Space",self:s7},Ah=c7;let nu;const d7=()=>{if(!Ci)return!0;if(nu===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),nu=t}return nu},u7=Object.assign(Object.assign({},ze.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),zf=be({name:"Space",props:u7,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=nt(e),o=ze("Space","-space",void 0,Ah,e,t),n=dr("Space",r,t);return{useGap:d7(),rtlEnabled:n,mergedClsPrefix:t,margin:j(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=o.value,{row:l,col:s}=H5(a);return{horizontal:po(s),vertical:po(l)}})}},render(){const{vertical:e,reverse:t,align:r,inline:o,justify:n,itemClass:i,itemStyle:a,margin:l,wrap:s,mergedClsPrefix:c,rtlEnabled:d,useGap:u,wrapItem:f,internalUseGap:p}=this,h=Rn(D1(this),!1);if(!h.length)return null;const v=`${l.horizontal}px`,g=`${l.horizontal/2}px`,m=`${l.vertical}px`,x=`${l.vertical/2}px`,b=h.length-1,y=n.startsWith("space-");return w("div",{role:"none",class:[`${c}-space`,d&&`${c}-space--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!s||e?"nowrap":"wrap",marginTop:u||e?"":`-${x}`,marginBottom:u||e?"":`-${x}`,alignItems:r,gap:u?`${l.vertical}px ${l.horizontal}px`:""}},!f&&(u||p)?h:h.map((E,C)=>E.type===vr?E:w("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},u?"":e?{marginBottom:C!==b?m:""}:d?{marginLeft:y?n==="space-between"&&C===b?"":g:C!==b?v:"",marginRight:y?n==="space-between"&&C===0?"":g:"",paddingTop:x,paddingBottom:x}:{marginRight:y?n==="space-between"&&C===b?"":g:C!==b?v:"",marginLeft:y?n==="space-between"&&C===0?"":g:"",paddingTop:x,paddingBottom:x}]},E)))}}),f7={name:"DynamicTags",common:Fe,peers:{Input:Qr,Button:zr,Tag:yC,Space:Xw},self(){return{inputWidth:"64px"}}},h7=f7,p7={name:"DynamicTags",common:Oe,peers:{Input:Wr,Button:Tr,Tag:ph,Space:Ah},self(){return{inputWidth:"64px"}}},v7=p7,g7={name:"Element",common:Fe},m7=g7,b7={name:"Element",common:Oe},x7=b7,Yw={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},y7={name:"Flex",self(){return Yw}},C7=y7,w7=()=>Yw,S7={name:"Flex",self:w7},_7=S7,E7={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},Zw=e=>{const{heightSmall:t,heightMedium:r,heightLarge:o,textColor1:n,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},E7),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:o,lineHeight:l,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},k7={name:"Form",common:Oe,self:Zw},Fh=k7,P7={name:"Form",common:Fe,self:Zw},T7=P7,R7=z("form",[Y("inline",`
+ width: 100%;
+ display: inline-flex;
+ align-items: flex-start;
+ align-content: space-around;
+ `,[z("form-item",{width:"auto",marginRight:"18px"},[Z("&:last-child",{marginRight:0})])])]),Ul="n-form",Jw="n-form-item-insts";var A7=globalThis&&globalThis.__awaiter||function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};const F7=Object.assign(Object.assign({},ze.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),O7=be({name:"Form",props:F7,setup(e){const{mergedClsPrefixRef:t}=nt(e);ze("Form","-form",R7,Fh,e,t);const r={},o=U(void 0),n=s=>{const c=o.value;(c===void 0||s>=c)&&(o.value=s)};function i(s){return A7(this,arguments,void 0,function*(c,d=()=>!0){return yield new Promise((u,f)=>{const p=[];for(const h of On(r)){const v=r[h];for(const g of v)g.path&&p.push(g.internalValidate(null,d))}Promise.all(p).then(h=>{const v=h.some(x=>!x.valid),g=[],m=[];h.forEach(x=>{var b,y;!((b=x.errors)===null||b===void 0)&&b.length&&g.push(x.errors),!((y=x.warnings)===null||y===void 0)&&y.length&&m.push(x.warnings)}),c&&c(g.length?g:void 0,{warnings:m.length?m:void 0}),v?f(g.length?g:void 0):u({warnings:m.length?m:void 0})})})})}function a(){for(const s of On(r)){const c=r[s];for(const d of c)d.restoreValidation()}}return ot(Ul,{props:e,maxChildLabelWidthRef:o,deriveMaxChildLabelWidth:n}),ot(Jw,{formItems:r}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return w("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fs(e,t,r){return I7()?Fs=Reflect.construct.bind():Fs=function(n,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(n,l),c=new s;return a&&Tl(c,a.prototype),c},Fs.apply(null,arguments)}function $7(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Nf(e){var t=typeof Map=="function"?new Map:void 0;return Nf=function(o){if(o===null||!$7(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return Fs(o,arguments,Mf(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tl(n,o)},Nf(e)}var D7=/%[sdj%]/g,L7=function(){};typeof process<"u"&&process.env;function Hf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var o=r.field;t[o]=t[o]||[],t[o].push(r)}),t}function Hr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=i)return l;switch(l){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function z7(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function cr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||z7(t)&&typeof e=="string"&&!e)}function M7(e,t,r){var o=[],n=0,i=e.length;function a(l){o.push.apply(o,l||[]),n++,n===i&&r(o)}e.forEach(function(l){t(l,a)})}function jg(e,t,r){var o=0,n=e.length;function i(a){if(a&&a.length){r(a);return}var l=o;o=o+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wa={integer:function(t){return Wa.number(t)&&parseInt(t,10)===t},float:function(t){return Wa.number(t)&&!Wa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Wa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Kg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(U7())},hex:function(t){return typeof t=="string"&&!!t.match(Kg.hex)}},K7=function(t,r,o,n,i){if(t.required&&r===void 0){Qw(t,r,o,n,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Wa[l](r)||n.push(Hr(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&n.push(Hr(i.messages.types[l],t.fullField,t.type))},q7=function(t,r,o,n,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,u=null,f=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(f?u="number":p?u="string":h&&(u="array"),!u)return!1;h&&(d=r.length),p&&(d=r.replace(c,"_").length),a?d!==t.len&&n.push(Hr(i.messages[u].len,t.fullField,t.len)):l&&!s&&dt.max?n.push(Hr(i.messages[u].max,t.fullField,t.max)):l&&s&&(dt.max)&&n.push(Hr(i.messages[u].range,t.fullField,t.min,t.max))},Li="enum",G7=function(t,r,o,n,i){t[Li]=Array.isArray(t[Li])?t[Li]:[],t[Li].indexOf(r)===-1&&n.push(Hr(i.messages[Li],t.fullField,t[Li].join(", ")))},X7=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Hr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(Hr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},gt={required:Qw,whitespace:V7,type:K7,range:q7,enum:G7,pattern:X7},Y7=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r,"string")&&!t.required)return o();gt.required(t,r,n,a,i,"string"),cr(r,"string")||(gt.type(t,r,n,a,i),gt.range(t,r,n,a,i),gt.pattern(t,r,n,a,i),t.whitespace===!0&>.whitespace(t,r,n,a,i))}o(a)},Z7=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&>.type(t,r,n,a,i)}o(a)},J7=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&&(gt.type(t,r,n,a,i),gt.range(t,r,n,a,i))}o(a)},Q7=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&>.type(t,r,n,a,i)}o(a)},ez=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),cr(r)||gt.type(t,r,n,a,i)}o(a)},tz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&&(gt.type(t,r,n,a,i),gt.range(t,r,n,a,i))}o(a)},rz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&&(gt.type(t,r,n,a,i),gt.range(t,r,n,a,i))}o(a)},oz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return o();gt.required(t,r,n,a,i,"array"),r!=null&&(gt.type(t,r,n,a,i),gt.range(t,r,n,a,i))}o(a)},nz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&>.type(t,r,n,a,i)}o(a)},iz="enum",az=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i),r!==void 0&>[iz](t,r,n,a,i)}o(a)},lz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r,"string")&&!t.required)return o();gt.required(t,r,n,a,i),cr(r,"string")||gt.pattern(t,r,n,a,i)}o(a)},sz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r,"date")&&!t.required)return o();if(gt.required(t,r,n,a,i),!cr(r,"date")){var s;r instanceof Date?s=r:s=new Date(r),gt.type(t,s,n,a,i),s&>.range(t,s.getTime(),n,a,i)}}o(a)},cz=function(t,r,o,n,i){var a=[],l=Array.isArray(r)?"array":typeof r;gt.required(t,r,n,a,i,l),o(a)},iu=function(t,r,o,n,i){var a=t.type,l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(cr(r,a)&&!t.required)return o();gt.required(t,r,n,l,i,a),cr(r,a)||gt.type(t,r,n,l,i)}o(l)},dz=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(cr(r)&&!t.required)return o();gt.required(t,r,n,a,i)}o(a)},el={string:Y7,method:Z7,number:J7,boolean:Q7,regexp:ez,integer:tz,float:rz,array:oz,object:nz,enum:az,pattern:lz,date:sz,url:iu,hex:iu,email:iu,required:cz,any:dz};function jf(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Wf=jf(),ea=function(){function e(r){this.rules=null,this._messages=Wf,this.define(r)}var t=e.prototype;return t.define=function(o){var n=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var a=o[i];n.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(o){return o&&(this._messages=Ug(jf(),o)),this._messages},t.validate=function(o,n,i){var a=this;n===void 0&&(n={}),i===void 0&&(i=function(){});var l=o,s=n,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(v){var g=[],m={};function x(y){if(Array.isArray(y)){var E;g=(E=g).concat.apply(E,y)}else g.push(y)}for(var b=0;be.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function fz(e){const t=De(Ul,null),r=j(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),o=j(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),n=j(()=>{if(r.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return Jt(h);if(o.value){const v=t==null?void 0:t.maxChildLabelWidthRef.value;return v!==void 0?Jt(v):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Jt(t.props.labelWidth)}),i=j(()=>{const{labelAlign:h}=e;if(h)return h;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=j(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:n.value}]}),l=j(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.props.showRequireMark}),s=j(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=U(!1),d=U(!1),u=j(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(d.value)return"warning"}),f=j(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),p=j(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:d,mergedLabelStyle:a,mergedLabelPlacement:r,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:u,mergedShowFeedback:f,mergedShowLabel:p,isAutoLabelWidth:o}}function hz(e){const t=De(Ul,null),r=j(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),o=j(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=r;if(s!==void 0&&c!==void 0){const d=El(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),n=j(()=>o.value.some(a=>a.required)),i=j(()=>n.value||e.required);return{mergedRules:o,mergedRequired:i}}const{cubicBezierEaseInOut:qg}=an;function pz({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:o=".3s",enterCubicBezier:n=qg,leaveCubicBezier:i=qg}={}){return[Z(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),Z(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),Z(`&.${e}-transition-leave-active`,{transition:`opacity ${o} ${i}, transform ${o} ${i}`}),Z(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${n}, transform ${r} ${n}`})]}const vz=z("form-item",`
+ display: grid;
+ line-height: var(--n-line-height);
+`,[z("form-item-label",`
+ grid-area: label;
+ align-items: center;
+ line-height: 1.25;
+ text-align: var(--n-label-text-align);
+ font-size: var(--n-label-font-size);
+ min-height: var(--n-label-height);
+ padding: var(--n-label-padding);
+ color: var(--n-label-text-color);
+ transition: color .3s var(--n-bezier);
+ box-sizing: border-box;
+ font-weight: var(--n-label-font-weight);
+ `,[Q("asterisk",`
+ white-space: nowrap;
+ user-select: none;
+ -webkit-user-select: none;
+ color: var(--n-asterisk-color);
+ transition: color .3s var(--n-bezier);
+ `),Q("asterisk-placeholder",`
+ grid-area: mark;
+ user-select: none;
+ -webkit-user-select: none;
+ visibility: hidden;
+ `)]),z("form-item-blank",`
+ grid-area: blank;
+ min-height: var(--n-blank-height);
+ `),Y("auto-label-width",[z("form-item-label","white-space: nowrap;")]),Y("left-labelled",`
+ grid-template-areas:
+ "label blank"
+ "label feedback";
+ grid-template-columns: auto minmax(0, 1fr);
+ grid-template-rows: auto 1fr;
+ align-items: flex-start;
+ `,[z("form-item-label",`
+ display: grid;
+ grid-template-columns: 1fr auto;
+ min-height: var(--n-blank-height);
+ height: auto;
+ box-sizing: border-box;
+ flex-shrink: 0;
+ flex-grow: 0;
+ `,[Y("reverse-columns-space",`
+ grid-template-columns: auto 1fr;
+ `),Y("left-mark",`
+ grid-template-areas:
+ "mark text"
+ ". text";
+ `),Y("right-mark",`
+ grid-template-areas:
+ "text mark"
+ "text .";
+ `),Y("right-hanging-mark",`
+ grid-template-areas:
+ "text mark"
+ "text .";
+ `),Q("text",`
+ grid-area: text;
+ `),Q("asterisk",`
+ grid-area: mark;
+ align-self: end;
+ `)])]),Y("top-labelled",`
+ grid-template-areas:
+ "label"
+ "blank"
+ "feedback";
+ grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
+ grid-template-columns: minmax(0, 100%);
+ `,[Y("no-label",`
+ grid-template-areas:
+ "blank"
+ "feedback";
+ grid-template-rows: 1fr;
+ `),z("form-item-label",`
+ display: flex;
+ align-items: flex-start;
+ justify-content: var(--n-label-text-align);
+ `)]),z("form-item-blank",`
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ position: relative;
+ `),z("form-item-feedback-wrapper",`
+ grid-area: feedback;
+ box-sizing: border-box;
+ min-height: var(--n-feedback-height);
+ font-size: var(--n-feedback-font-size);
+ line-height: 1.25;
+ transform-origin: top left;
+ `,[Z("&:not(:empty)",`
+ padding: var(--n-feedback-padding);
+ `),z("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[Y("warning",{color:"var(--n-feedback-text-color-warning)"}),Y("error",{color:"var(--n-feedback-text-color-error)"}),pz({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var Gg=globalThis&&globalThis.__awaiter||function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};const gz=Object.assign(Object.assign({},ze.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object});function Xg(e,t){return(...r)=>{try{const o=e(...r);return!t&&(typeof o=="boolean"||o instanceof Error||Array.isArray(o))||o!=null&&o.then?o:(o===void 0||Io("form-item/validate",`You return a ${typeof o} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(o){Io("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(o);return}}}const au=be({name:"FormItem",props:gz,setup(e){E3(Jw,"formItems",Re(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=nt(e),o=De(Ul,null),n=uz(e),i=fz(e),{validationErrored:a,validationWarned:l}=i,{mergedRequired:s,mergedRules:c}=hz(e),{mergedSize:d}=n,{mergedLabelPlacement:u,mergedLabelAlign:f,mergedRequireMarkPlacement:p}=i,h=U([]),v=U(Fn()),g=o?Re(o.props,"disabled"):U(!1),m=ze("Form","-form-item",vz,Fh,e,t);lt(Re(e,"path"),()=>{e.ignorePathChange||x()});function x(){h.value=[],a.value=!1,l.value=!1,e.feedback&&(v.value=Fn())}function b(){k("blur")}function y(){k("change")}function E(){k("focus")}function C(){k("input")}function _(F,T){return Gg(this,void 0,void 0,function*(){let H,N,W,re;return typeof F=="string"?(H=F,N=T):F!==null&&typeof F=="object"&&(H=F.trigger,N=F.callback,W=F.shouldRuleBeApplied,re=F.options),yield new Promise((ee,L)=>{k(H,W,re).then(({valid:M,errors:G,warnings:J})=>{M?(N&&N(void 0,{warnings:J}),ee({warnings:J})):(N&&N(G,{warnings:J}),L(G))})})})}const k=(...F)=>Gg(this,[...F],void 0,function*(T=null,H=()=>!0,N={suppressWarning:!0}){const{path:W}=e;N?N.first||(N.first=e.first):N={};const{value:re}=c,ee=o?El(o.props.model,W||""):void 0,L={},M={},G=(T?re.filter(_e=>Array.isArray(_e.trigger)?_e.trigger.includes(T):_e.trigger===T):re).filter(H).map((_e,D)=>{const I=Object.assign({},_e);if(I.validator&&(I.validator=Xg(I.validator,!1)),I.asyncValidator&&(I.asyncValidator=Xg(I.asyncValidator,!0)),I.renderMessage){const q=`__renderMessage__${D}`;M[q]=I.message,I.message=q,L[q]=I.renderMessage}return I}),J=G.filter(_e=>_e.level!=="warning"),ge=G.filter(_e=>_e.level==="warning"),ve=W??"__n_no_path__",te=new ea({[ve]:J}),ce=new ea({[ve]:ge}),{validateMessages:X}=(o==null?void 0:o.props)||{};X&&(te.messages(X),ce.messages(X));const le=_e=>{h.value=_e.map(D=>{const I=(D==null?void 0:D.message)||"";return{key:I,render:()=>I.startsWith("__renderMessage__")?L[I]():I}}),_e.forEach(D=>{var I;!((I=D.message)===null||I===void 0)&&I.startsWith("__renderMessage__")&&(D.message=M[D.message])})},Ee={valid:!0,errors:void 0,warnings:void 0};if(J.length){const _e=yield new Promise(D=>{te.validate({[ve]:ee},N,D)});_e!=null&&_e.length&&(a.value=!0,Ee.valid=!1,Ee.errors=_e,le(_e))}if(ge.length&&!Ee.errors){const _e=yield new Promise(D=>{ce.validate({[ve]:ee},N,D)});_e!=null&&_e.length&&(le(_e),l.value=!0,Ee.warnings=_e)}return J.length+ge.length>0&&!Ee.errors&&!Ee.warnings&&x(),Ee});ot(Sf,{path:Re(e,"path"),disabled:g,mergedSize:n.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:x,handleContentBlur:b,handleContentChange:y,handleContentFocus:E,handleContentInput:C});const R={validate:_,restoreValidation:x,internalValidate:k},A=U(null);zt(()=>{if(!i.isAutoLabelWidth.value)return;const F=A.value;if(F!==null){const T=F.style.whiteSpace;F.style.whiteSpace="nowrap",F.style.width="",o==null||o.deriveMaxChildLabelWidth(Number(getComputedStyle(F).width.slice(0,-2))),F.style.whiteSpace=T}});const B=j(()=>{var F;const{value:T}=d,{value:H}=u,N=H==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:re,asteriskColor:ee,lineHeight:L,feedbackTextColor:M,feedbackTextColorWarning:G,feedbackTextColorError:J,feedbackPadding:ge,labelFontWeight:ve,[ye("labelHeight",T)]:te,[ye("blankHeight",T)]:ce,[ye("feedbackFontSize",T)]:X,[ye("feedbackHeight",T)]:le,[ye("labelPadding",N)]:Ee,[ye("labelTextAlign",N)]:_e,[ye(ye("labelFontSize",H),T)]:D}}=m.value;let I=(F=f.value)!==null&&F!==void 0?F:_e;return H==="top"&&(I=I==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":L,"--n-blank-height":ce,"--n-label-font-size":D,"--n-label-text-align":I,"--n-label-height":te,"--n-label-padding":Ee,"--n-label-font-weight":ve,"--n-asterisk-color":ee,"--n-label-text-color":re,"--n-feedback-padding":ge,"--n-feedback-font-size":X,"--n-feedback-height":le,"--n-feedback-text-color":M,"--n-feedback-text-color-warning":G,"--n-feedback-text-color-error":J}}),S=r?Ct("form-item",j(()=>{var F;return`${d.value[0]}${u.value[0]}${((F=f.value)===null||F===void 0?void 0:F[0])||""}`}),B,e):void 0,P=j(()=>u.value==="left"&&p.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:A,mergedClsPrefix:t,mergedRequired:s,feedbackId:v,renderExplains:h,reverseColSpace:P},i),n),R),{cssVars:r?void 0:B,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:o,mergedRequireMarkPlacement:n,onRender:i}=this,a=o!==void 0?o:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=w("span",{class:`${t}-form-item-label__text`},s),d=a?w("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&w("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:u}=this;return w("label",Object.assign({},u,{class:[u==null?void 0:u.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[d,c]:[c,d])};return w("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&l(),w("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?w("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},w(lr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Rt(e.feedback,c=>{var d;const{feedback:u}=this,f=c||u?w("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||u):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:p,render:h})=>w("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return f?s==="warning"?w("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},f):s==="error"?w("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},f):s==="success"?w("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},f):w("div",{key:"controlled-default",class:`${t}-form-item-feedback`},f):null})}})):null)}}),mz={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},e2=e=>{const{textColor2:t,successColor:r,infoColor:o,warningColor:n,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:p,borderRadius:h,fontWeightStrong:v,boxShadow2:g,lineHeight:m,fontSize:x}=e;return Object.assign(Object.assign({},mz),{borderRadius:h,lineHeight:m,fontSize:x,headerFontWeight:v,iconColor:t,iconColorSuccess:r,iconColorInfo:o,iconColorWarning:n,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})},bz={name:"Notification",common:Oe,peers:{Scrollbar:Pr},self:e2},t2=bz,xz={name:"Notification",common:Fe,peers:{Scrollbar:Lr},self:e2},yz=xz,Cz={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},r2=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:o,closeIconColorPressed:n,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:p,closeColorHover:h,closeColorPressed:v}=e;return Object.assign(Object.assign({},Cz),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:u,closeColorHover:h,closeColorPressed:v,closeIconColor:r,closeIconColorHover:o,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:v,closeIconColorInfo:r,closeIconColorHoverInfo:o,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:v,closeIconColorSuccess:r,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:v,closeIconColorError:r,closeIconColorHoverError:o,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:v,closeIconColorWarning:r,closeIconColorHoverWarning:o,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:v,closeIconColorLoading:r,closeIconColorHoverLoading:o,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:f,borderRadius:p})},wz={name:"Message",common:Oe,self:r2},o2=wz,Sz={name:"Message",common:Fe,self:r2},_z=Sz,Ez={name:"ButtonGroup",common:Fe},kz=Ez,Pz={name:"ButtonGroup",common:Oe},Tz=Pz,Rz={name:"GradientText",common:Fe,self(e){const{primaryColor:t,successColor:r,warningColor:o,errorColor:n,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:o,colorEndWarning:s,colorStartError:n,colorEndError:c,colorStartSuccess:r,colorEndSuccess:l}}},Az=Rz,Fz=e=>{const{primaryColor:t,successColor:r,warningColor:o,errorColor:n,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:Se(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Se(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Se(o,{alpha:.6}),colorEndWarning:o,colorStartError:Se(n,{alpha:.6}),colorEndError:n,colorStartSuccess:Se(r,{alpha:.6}),colorEndSuccess:r}},Oz={name:"GradientText",common:Oe,self:Fz},Bz=Oz,Iz={name:"InputNumber",common:Fe,peers:{Button:zr,Input:Qr},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},$z=Iz,Dz=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Lz={name:"InputNumber",common:Oe,peers:{Button:Tr,Input:Wr},self:Dz},zz=Lz,Mz={name:"Layout",common:Fe,peers:{Scrollbar:Lr},self(e){const{textColor2:t,bodyColor:r,popoverColor:o,cardColor:n,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ke(r,a),siderToggleBarColorHover:Ke(r,l),__invertScrollbar:"false"}}},Nz=Mz,Hz=e=>{const{baseColor:t,textColor2:r,bodyColor:o,cardColor:n,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:r,textColorInverted:"#FFF",color:o,colorEmbedded:a,headerColor:n,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Ke(o,l),siderToggleBarColorHover:Ke(o,s),__invertScrollbar:"true"}},jz={name:"Layout",common:Oe,peers:{Scrollbar:Pr},self:Hz},Oh=jz,n2=e=>{const{textColor2:t,cardColor:r,modalColor:o,popoverColor:n,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:r,colorHover:s,colorModal:o,colorHoverModal:Ke(o,s),colorPopover:n,colorHoverPopover:Ke(n,s),borderColor:i,borderColorModal:Ke(o,i),borderColorPopover:Ke(n,i),borderRadius:a,fontSize:l}},Wz={name:"List",common:Oe,self:n2},i2=Wz,Vz={name:"List",common:Fe,self:n2},Uz=Vz,Kz={name:"LoadingBar",common:Fe,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},qz=Kz,Gz=e=>{const{primaryColor:t,errorColor:r}=e;return{colorError:r,colorLoading:t,height:"2px"}},Xz={name:"LoadingBar",common:Oe,self:Gz},a2=Xz,Yz={name:"Log",common:Fe,peers:{Scrollbar:Lr,Code:GC},self(e){const{textColor2:t,inputColor:r,fontSize:o,primaryColor:n}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:n}}},Zz=Yz,Jz=e=>{const{textColor2:t,modalColor:r,borderColor:o,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:r,loaderBorder:`1px solid ${o}`,loadingColor:i}},Qz={name:"Log",common:Oe,peers:{Scrollbar:Pr,Code:XC},self:Jz},eM=Qz,tM={name:"Mention",common:Fe,peers:{InternalSelectMenu:Wl,Input:Qr},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},rM=tM,oM=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},nM={name:"Mention",common:Oe,peers:{InternalSelectMenu:ga,Input:Wr},self:oM},iM=nM;function aM(e,t,r,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:o}}const l2=e=>{const{borderRadius:t,textColor3:r,primaryColor:o,textColor2:n,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:s,itemColorActive:Se(o,{alpha:.1}),itemColorActiveHover:Se(o,{alpha:.1}),itemColorActiveCollapsed:Se(o,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},aM("#BBB",o,"#FFF","#AAA"))},lM={name:"Menu",common:Oe,peers:{Tooltip:Vl,Dropdown:Vc},self:l2},sM=lM,cM={name:"Menu",common:Fe,peers:{Tooltip:jc,Dropdown:_h},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,o=l2(e);return o.itemColorActive=Se(t,{alpha:.15}),o.itemColorActiveHover=Se(t,{alpha:.15}),o.itemColorActiveCollapsed=Se(t,{alpha:.15}),o.itemColorActiveInverted=r,o.itemColorActiveHoverInverted=r,o.itemColorActiveCollapsedInverted=r,o}},dM=cM,uM={titleFontSize:"18px",backSize:"22px"};function s2(e){const{textColor1:t,textColor2:r,textColor3:o,fontSize:n,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},uM),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:r,backColorHover:a,backColorPressed:l,subtitleTextColor:o})}const fM={name:"PageHeader",common:Oe,self:s2},hM={name:"PageHeader",common:Fe,self:s2},pM={iconSize:"22px"},c2=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},pM),{fontSize:t,iconColor:r})},vM={name:"Popconfirm",common:Oe,peers:{Button:Tr,Popover:Hn},self:c2},d2=vM,gM={name:"Popconfirm",common:Fe,peers:{Button:zr,Popover:Ri},self:c2},mM=gM,u2=e=>{const{infoColor:t,successColor:r,warningColor:o,errorColor:n,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:o,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:o,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},bM={name:"Progress",common:Oe,self:u2},f2=bM,xM={name:"Progress",common:Fe,self(e){const t=u2(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},h2=xM,yM={name:"Rate",common:Fe,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},CM=yM,wM=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},SM={name:"Rate",common:Oe,self:wM},_M=SM,EM={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},p2=e=>{const{textColor2:t,textColor1:r,errorColor:o,successColor:n,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},EM),{lineHeight:l,titleFontWeight:s,titleTextColor:r,textColor:t,iconColorError:o,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:a})},kM={name:"Result",common:Oe,self:p2},PM=kM,TM={name:"Result",common:Fe,self:p2},RM=TM,v2={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},AM={name:"Slider",common:Fe,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:o,primaryColorSuppl:n,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},v2),{fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:o,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}},FM=AM,OM=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,primaryColor:n,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:u}=e;return Object.assign(Object.assign({},v2),{fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})},BM={name:"Slider",common:Oe,self:OM},IM=BM,g2=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:o,heightMedium:n,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:r,sizeSmall:o,sizeMedium:n,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},$M={name:"Spin",common:Oe,self:g2},DM=$M,LM={name:"Spin",common:Fe,self:g2},zM=LM,m2=e=>{const{textColor2:t,textColor3:r,fontSize:o,fontWeight:n}=e;return{labelFontSize:o,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},MM={name:"Statistic",common:Oe,self:m2},NM=MM,HM={name:"Statistic",common:Fe,self:m2},jM=HM,WM={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},b2=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:o,primaryColor:n,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},WM),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:o,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:o,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:n,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})},VM={name:"Steps",common:Oe,self:b2},UM=VM,KM={name:"Steps",common:Fe,self:b2},qM=KM,x2={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},GM={name:"Switch",common:Fe,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:o,primaryColor:n,textColor2:i,baseColor:a}=e,l="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},x2),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:r,railColor:l,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`})}},XM=GM,YM=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:o,textColor3:n}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},x2),{iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:r,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${Se(t,{alpha:.2})}`})},ZM={name:"Switch",common:Oe,self:YM},JM=ZM,QM={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},y2=e=>{const{dividerColor:t,cardColor:r,modalColor:o,popoverColor:n,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},QM),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,lineHeight:u,borderRadius:c,borderColor:Ke(r,t),borderColorModal:Ke(o,t),borderColorPopover:Ke(n,t),tdColor:r,tdColorModal:o,tdColorPopover:n,tdColorStriped:Ke(r,a),tdColorStripedModal:Ke(o,a),tdColorStripedPopover:Ke(n,a),thColor:Ke(r,i),thColorModal:Ke(o,i),thColorPopover:Ke(n,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},e9={name:"Table",common:Oe,self:y2},t9=e9,r9={name:"Table",common:Fe,self:y2},o9=r9,n9={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},C2=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:p,borderRadius:h,fontSize:v,fontWeightStrong:g}=e;return Object.assign(Object.assign({},n9),{colorSegment:c,tabFontSizeCard:v,tabTextColorLine:p,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:o,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:p,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:o,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:r,tabTextColorDisabledCard:o,barColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:h,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:g})},i9={name:"Tabs",common:Oe,self:C2},w2=i9,a9={name:"Tabs",common:Fe,self(e){const t=C2(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},l9=a9,S2=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:o,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:r,titleFontWeight:o}},s9={name:"Thing",common:Oe,self:S2},_2=s9,c9={name:"Thing",common:Fe,self:S2},d9=c9,E2={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},u9={name:"Timeline",common:Fe,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:o,successColorSuppl:n,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},E2),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:o,iconColorSuccess:n,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}},f9=u9,h9=e=>{const{textColor3:t,infoColor:r,errorColor:o,successColor:n,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},E2),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:o,iconColorSuccess:n,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},p9={name:"Timeline",common:Oe,self:h9},v9=p9,k2={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},g9={name:"Transfer",common:Fe,peers:{Checkbox:xa,Scrollbar:Lr,Input:Qr,Empty:Ti,Button:zr},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:o,fontSizeSmall:n,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:p,hoverColor:h,closeColorHover:v,closeColorPressed:g,closeIconColor:m,closeIconColorHover:x,closeIconColorPressed:b,dividerColor:y}=e;return Object.assign(Object.assign({},k2),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:o,fontSizeLarge:r,borderRadius:l,dividerColor:y,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:p,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:h,titleFontWeight:t,closeColorHover:v,closeColorPressed:g,closeIconColor:m,closeIconColorHover:x,closeIconColorPressed:b})}},m9=g9,b9=e=>{const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:o,fontSizeSmall:n,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:p,borderColor:h,hoverColor:v,closeColorHover:g,closeColorPressed:m,closeIconColor:x,closeIconColorHover:b,closeIconColorPressed:y}=e;return Object.assign(Object.assign({},k2),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:o,fontSizeLarge:r,borderRadius:l,dividerColor:h,borderColor:h,listColor:s,headerColor:Ke(s,c),titleTextColor:d,titleTextColorDisabled:u,extraTextColor:p,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:v,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:x,closeIconColorHover:b,closeIconColorPressed:y})},x9={name:"Transfer",common:Oe,peers:{Checkbox:Ai,Scrollbar:Pr,Input:Wr,Empty:Mo,Button:Tr},self:b9},y9=x9,P2=e=>{const{borderRadiusSmall:t,dividerColor:r,hoverColor:o,pressedColor:n,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:s,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:n,nodeColorActive:Se(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:r}},C9={name:"Tree",common:Oe,peers:{Checkbox:Ai,Scrollbar:Pr,Empty:Mo},self:P2},T2=C9,w9={name:"Tree",common:Fe,peers:{Checkbox:xa,Scrollbar:Lr,Empty:Ti},self(e){const{primaryColor:t}=e,r=P2(e);return r.nodeColorActive=Se(t,{alpha:.15}),r}},R2=w9,S9={name:"TreeSelect",common:Fe,peers:{Tree:R2,Empty:Ti,InternalSelection:vh}},_9=S9,E9=e=>{const{popoverColor:t,boxShadow2:r,borderRadius:o,heightMedium:n,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:r,menuBorderRadius:o,menuHeight:`calc(${n} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},k9={name:"TreeSelect",common:Oe,peers:{Tree:T2,Empty:Mo,InternalSelection:Mc},self:E9},P9=k9,T9={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},A2=e=>{const{primaryColor:t,textColor2:r,borderColor:o,lineHeight:n,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:p,successColor:h,codeColor:v}=e;return Object.assign(Object.assign({},T9),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:o,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:n,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:r,pTextColor1Depth:c,pTextColor2Depth:r,pTextColor3Depth:d,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:r,textColor1Depth:c,textColor2Depth:r,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:h,textColorWarning:f,textColorError:p,codeTextColor:r,codeColor:v,codeBorder:"1px solid #0000"})},R9={name:"Typography",common:Oe,self:A2},A9=R9,F9={name:"Typography",common:Fe,self:A2},O9=F9,F2=e=>{const{iconColor:t,primaryColor:r,errorColor:o,textColor2:n,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:c,itemColorHoverError:Se(o,{alpha:.06}),itemTextColor:n,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${s}`}},B9={name:"Upload",common:Oe,peers:{Button:Tr,Progress:f2},self:F2},I9=B9,$9={name:"Upload",common:Fe,peers:{Button:zr,Progress:h2},self(e){const{errorColor:t}=e,r=F2(e);return r.itemColorHoverError=Se(t,{alpha:.09}),r}},D9=$9,L9={name:"Watermark",common:Fe,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},z9=L9,M9={name:"Watermark",common:Oe,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},N9=M9,H9={name:"Row",common:Oe},j9=H9,W9={name:"Row",common:Fe},V9=W9,U9=e=>{const{popoverColor:t,dividerColor:r,borderRadius:o}=e;return{color:t,buttonBorderColor:r,borderRadiusSquare:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}},K9={name:"FloatButtonGroup",common:Oe,self:U9},q9=K9,G9={name:"FloatButton",common:Fe,self(e){const{popoverColor:t,textColor2:r,buttonColor2Hover:o,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,baseColor:s,borderRadius:c}=e;return{color:t,textColor:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:o,colorPressed:n,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColorPrimary:s,borderRadiusSquare:c}}},X9=G9,Y9=e=>{const{popoverColor:t,textColor2:r,buttonColor2Hover:o,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,borderRadius:s}=e;return{color:t,colorHover:o,colorPressed:n,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColor:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}},Z9={name:"FloatButton",common:Oe,self:Y9},J9=Z9,O2=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},Q9={name:"IconWrapper",common:Oe,self:O2},eN=Q9,tN={name:"IconWrapper",common:Fe,self:O2},rN=tN,B2=Object.assign(Object.assign({},ze.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),I2="n-image";function oN(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const $2={name:"Image",common:Oe,peers:{Tooltip:Vl},self:oN},nN={name:"Image",common:Fe,peers:{Tooltip:jc},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},iN=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),aN=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),lN=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),sN=Z([Z("body >",[z("image-container","position: fixed;")]),z("image-preview-container",`
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ `),z("image-preview-overlay",`
+ z-index: -1;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ background: rgba(0, 0, 0, .3);
+ `,[Pl()]),z("image-preview-toolbar",`
+ z-index: 1;
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ border-radius: var(--n-toolbar-border-radius);
+ height: 48px;
+ bottom: 40px;
+ padding: 0 12px;
+ background: var(--n-toolbar-color);
+ box-shadow: var(--n-toolbar-box-shadow);
+ color: var(--n-toolbar-icon-color);
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ `,[z("base-icon",`
+ padding: 0 8px;
+ font-size: 28px;
+ cursor: pointer;
+ `),Pl()]),z("image-preview-wrapper",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ pointer-events: none;
+ `,[ma()]),z("image-preview",`
+ user-select: none;
+ -webkit-user-select: none;
+ pointer-events: all;
+ margin: auto;
+ max-height: calc(100vh - 32px);
+ max-width: calc(100vw - 32px);
+ transition: transform .3s var(--n-bezier);
+ `),z("image",`
+ display: inline-flex;
+ max-height: 100%;
+ max-width: 100%;
+ `,[St("preview-disabled",`
+ cursor: pointer;
+ `),Z("img",`
+ border-radius: inherit;
+ `)])]),ms=32,cN=be({name:"ImagePreview",props:Object.assign(Object.assign({},B2),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=ze("Image","-image",sN,$2,e,Re(e,"clsPrefix"));let r=null;const o=U(null),n=U(null),i=U(void 0),a=U(!1),l=U(!1),{localeRef:s}=$n("Image");function c(){const{value:D}=n;if(!r||!D)return;const{style:I}=D,q=r.getBoundingClientRect(),ue=q.left+q.width/2,se=q.top+q.height/2;I.transformOrigin=`${ue}px ${se}px`}function d(D){var I,q;switch(D.key){case" ":D.preventDefault();break;case"ArrowLeft":(I=e.onPrev)===null||I===void 0||I.call(e);break;case"ArrowRight":(q=e.onNext)===null||q===void 0||q.call(e);break;case"Escape":ve();break}}lt(a,D=>{D?kt("keydown",document,d):vt("keydown",document,d)}),jt(()=>{vt("keydown",document,d)});let u=0,f=0,p=0,h=0,v=0,g=0,m=0,x=0,b=!1;function y(D){const{clientX:I,clientY:q}=D;p=I-u,h=q-f,ml(ge)}function E(D){const{mouseUpClientX:I,mouseUpClientY:q,mouseDownClientX:ue,mouseDownClientY:se}=D,me=ue-I,Ce=se-q,O=`vertical${Ce>0?"Top":"Bottom"}`,$=`horizontal${me>0?"Left":"Right"}`;return{moveVerticalDirection:O,moveHorizontalDirection:$,deltaHorizontal:me,deltaVertical:Ce}}function C(D){const{value:I}=o;if(!I)return{offsetX:0,offsetY:0};const q=I.getBoundingClientRect(),{moveVerticalDirection:ue,moveHorizontalDirection:se,deltaHorizontal:me,deltaVertical:Ce}=D||{};let O=0,$=0;return q.width<=window.innerWidth?O=0:q.left>0?O=(q.width-window.innerWidth)/2:q.right0?$=(q.height-window.innerHeight)/2:q.bottom.5){const D=P;S-=1,P=Math.max(.5,Math.pow(B,S));const I=D-P;ge(!1);const q=C();P+=I,ge(!1),P-=I,p=q.offsetX,h=q.offsetY,ge()}}function J(){const D=i.value;D&&py(D,void 0)}function ge(D=!0){var I;const{value:q}=o;if(!q)return;const{style:ue}=q,se=En((I=k==null?void 0:k.previewedImgPropsRef.value)===null||I===void 0?void 0:I.style);let me="";if(typeof se=="string")me=se+";";else for(const O in se)me+=`${zA(O)}: ${se[O]};`;const Ce=`transform-origin: center; transform: translateX(${p}px) translateY(${h}px) rotate(${F}deg) scale(${P});`;b?ue.cssText=me+"cursor: grabbing; transition: none;"+Ce:ue.cssText=me+"cursor: grab;"+Ce+(D?"":"transition: none;"),D||q.offsetHeight}function ve(){a.value=!a.value,l.value=!0}function te(){P=L(),S=Math.ceil(Math.log(P)/Math.log(B)),p=0,h=0,ge()}const ce={setPreviewSrc:D=>{i.value=D},setThumbnailEl:D=>{r=D},toggleShow:ve};function X(D,I){if(e.showToolbarTooltip){const{value:q}=t;return w(fw,{to:!1,theme:q.peers.Tooltip,themeOverrides:q.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[I],trigger:()=>D})}else return D}const le=j(()=>{const{common:{cubicBezierEaseInOut:D},self:{toolbarIconColor:I,toolbarBorderRadius:q,toolbarBoxShadow:ue,toolbarColor:se}}=t.value;return{"--n-bezier":D,"--n-toolbar-icon-color":I,"--n-toolbar-color":se,"--n-toolbar-border-radius":q,"--n-toolbar-box-shadow":ue}}),{inlineThemeDisabled:Ee}=nt(),_e=Ee?Ct("image-preview",void 0,le,e):void 0;return Object.assign({previewRef:o,previewWrapperRef:n,previewSrc:i,show:a,appear:wi(),displayed:l,previewedImgProps:k==null?void 0:k.previewedImgPropsRef,handleWheel(D){D.preventDefault()},handlePreviewMousedown:R,handlePreviewDblclick:A,syncTransformOrigin:c,handleAfterLeave:()=>{T(),F=0,l.value=!1},handleDragStart:D=>{var I,q;(q=(I=k==null?void 0:k.previewedImgPropsRef.value)===null||I===void 0?void 0:I.onDragstart)===null||q===void 0||q.call(I,D),D.preventDefault()},zoomIn:M,zoomOut:G,handleDownloadClick:J,rotateCounterclockwise:W,rotateClockwise:re,handleSwitchPrev:H,handleSwitchNext:N,withTooltip:X,resizeToOrignalImageSize:te,cssVars:Ee?void 0:le,themeClass:_e==null?void 0:_e.themeClass,onRender:_e==null?void 0:_e.onRender},ce)},render(){var e,t;const{clsPrefix:r,renderToolbar:o,withTooltip:n}=this,i=n(w(wt,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>iN}),"tipPrevious"),a=n(w(wt,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>aN}),"tipNext"),l=n(w(wt,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>w(tO,null)}),"tipCounterclockwise"),s=n(w(wt,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>w(eO,null)}),"tipClockwise"),c=n(w(wt,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>w(nO,null)}),"tipOriginalSize"),d=n(w(wt,{clsPrefix:r,onClick:this.zoomOut},{default:()=>w(oO,null)}),"tipZoomOut"),u=n(w(wt,{clsPrefix:r,onClick:this.handleDownloadClick},{default:()=>w(YF,null)}),"tipDownload"),f=n(w(wt,{clsPrefix:r,onClick:this.toggleShow},{default:()=>lN}),"tipClose"),p=n(w(wt,{clsPrefix:r,onClick:this.zoomIn},{default:()=>w(rO,null)}),"tipZoomIn");return w(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),w(G0,{show:this.show},{default:()=>{var h;return this.show||this.displayed?((h=this.onRender)===null||h===void 0||h.call(this),$r(w("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},w(lr,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?w("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?w(lr,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?w("div",{class:`${r}-image-preview-toolbar`},o?o({nodes:{prev:i,next:a,rotateCounterclockwise:l,rotateClockwise:s,resizeToOriginalSize:c,zoomOut:d,zoomIn:p,download:u,close:f}}):w(rt,null,this.onPrev?w(rt,null,i,a):null,l,s,c,d,p,u,f)):null}):null,w(lr,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:v={}}=this;return $r(w("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},w("img",Object.assign({},v,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,v.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Qo,this.show]])}})),[[Ac,{enabled:this.show}]])):null}}))}}),dN="n-image-group",uN=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},B2),Zo=be({name:"Image",props:uN,inheritAttrs:!1,setup(e){const t=U(null),r=U(!1),o=U(null),n=De(dN,null),{mergedClsPrefixRef:i}=n||nt(e),a={click:()=>{if(e.previewDisabled||r.value)return;const c=e.previewSrc||e.src;if(n){n.setPreviewSrc(c),n.setThumbnailEl(t.value),n.toggleShow();return}const{value:d}=o;d&&(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=U(!e.lazy);zt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(n==null?void 0:n.groupId)||"")}),zt(()=>{if(e.lazy&&e.intersectionObserverOptions){let c;const d=ar(()=>{c==null||c(),c=void 0,c=BC(t.value,e.intersectionObserverOptions,l)});jt(()=>{d(),c==null||c()})}}),ar(()=>{var c;e.src||((c=e.imgProps)===null||c===void 0||c.src),r.value=!1});const s=U(!1);return ot(I2,{previewedImgPropsRef:Re(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:n==null?void 0:n.groupId,previewInstRef:o,imageRef:t,showError:r,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,u;a.click(),(u=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||u===void 0||u.call(d,c)},mergedOnError:c=>{if(!l.value)return;r.value=!0;const{onError:d,imgProps:{onError:u}={}}=e;d==null||d(c),u==null||u(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:u}={}}=e;d==null||d(c),u==null||u(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:r,imgProps:o={},loaded:n,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||o.src,c=w("img",Object.assign(Object.assign({},o),{ref:"imageRef",width:this.width||o.width,height:this.height||o.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?s:void 0:s,alt:this.alt||o.alt,"aria-label":this.alt||o.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:OC&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[o.style||"",l&&!n?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return w("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?c:w(cN,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>c,toolbar:()=>{var d,u;return(u=(d=this.$slots).toolbar)===null||u===void 0?void 0:u.call(d)}}),!n&&l)}}),fN="n-layout-sider",D2={type:String,default:"static"},hN=z("layout",`
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ box-sizing: border-box;
+ position: relative;
+ z-index: auto;
+ flex: auto;
+ overflow: hidden;
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+`,[z("layout-scroll-container",`
+ overflow-x: hidden;
+ box-sizing: border-box;
+ height: 100%;
+ `),Y("absolute-positioned",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `)]),pN={embedded:Boolean,position:D2,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},L2="n-layout";function z2(e){return be({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},ze.props),pN),setup(t){const r=U(null),o=U(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=nt(t),a=ze("Layout","-layout",hN,Oh,t,n);function l(v,g){if(t.nativeScrollbar){const{value:m}=r;m&&(g===void 0?m.scrollTo(v):m.scrollTo(v,g))}else{const{value:m}=o;m&&m.scrollTo(v,g)}}ot(L2,t);let s=0,c=0;const d=v=>{var g;const m=v.target;s=m.scrollLeft,c=m.scrollTop,(g=t.onScroll)===null||g===void 0||g.call(t,v)};J0(()=>{if(t.nativeScrollbar){const v=r.value;v&&(v.scrollTop=c,v.scrollLeft=s)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:l},p=j(()=>{const{common:{cubicBezierEaseInOut:v},self:g}=a.value;return{"--n-bezier":v,"--n-color":t.embedded?g.colorEmbedded:g.color,"--n-text-color":g.textColor}}),h=i?Ct("layout",j(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:r,scrollbarInstRef:o,hasSiderStyle:u,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return w("div",{class:i,style:this.cssVars},this.nativeScrollbar?w("div",{ref:"scrollableElRef",class:[`${r}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):w(Nn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const M2=z2(!1),N2=z2(!0),vN=z("layout-sider",`
+ flex-shrink: 0;
+ box-sizing: border-box;
+ position: relative;
+ z-index: 1;
+ color: var(--n-text-color);
+ transition:
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ min-width .3s var(--n-bezier),
+ max-width .3s var(--n-bezier),
+ transform .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ background-color: var(--n-color);
+ display: flex;
+ justify-content: flex-end;
+`,[Y("bordered",[Q("border",`
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 1px;
+ background-color: var(--n-border-color);
+ transition: background-color .3s var(--n-bezier);
+ `)]),Q("left-placement",[Y("bordered",[Q("border",`
+ right: 0;
+ `)])]),Y("right-placement",`
+ justify-content: flex-start;
+ `,[Y("bordered",[Q("border",`
+ left: 0;
+ `)]),Y("collapsed",[z("layout-toggle-button",[z("base-icon",`
+ transform: rotate(180deg);
+ `)]),z("layout-toggle-bar",[Z("&:hover",[Q("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),z("layout-toggle-button",`
+ left: 0;
+ transform: translateX(-50%) translateY(-50%);
+ `,[z("base-icon",`
+ transform: rotate(0);
+ `)]),z("layout-toggle-bar",`
+ left: -28px;
+ transform: rotate(180deg);
+ `,[Z("&:hover",[Q("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),Y("collapsed",[z("layout-toggle-bar",[Z("&:hover",[Q("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),z("layout-toggle-button",[z("base-icon",`
+ transform: rotate(0);
+ `)])]),z("layout-toggle-button",`
+ transition:
+ color .3s var(--n-bezier),
+ right .3s var(--n-bezier),
+ left .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ cursor: pointer;
+ width: 24px;
+ height: 24px;
+ position: absolute;
+ top: 50%;
+ right: 0;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 18px;
+ color: var(--n-toggle-button-icon-color);
+ border: var(--n-toggle-button-border);
+ background-color: var(--n-toggle-button-color);
+ box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
+ transform: translateX(50%) translateY(-50%);
+ z-index: 1;
+ `,[z("base-icon",`
+ transition: transform .3s var(--n-bezier);
+ transform: rotate(180deg);
+ `)]),z("layout-toggle-bar",`
+ cursor: pointer;
+ height: 72px;
+ width: 32px;
+ position: absolute;
+ top: calc(50% - 36px);
+ right: -28px;
+ `,[Q("top, bottom",`
+ position: absolute;
+ width: 4px;
+ border-radius: 2px;
+ height: 38px;
+ left: 14px;
+ transition:
+ background-color .3s var(--n-bezier),
+ transform .3s var(--n-bezier);
+ `),Q("bottom",`
+ position: absolute;
+ top: 34px;
+ `),Z("&:hover",[Q("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),Q("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),Z("&:hover",[Q("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),Q("border",`
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ width: 1px;
+ transition: background-color .3s var(--n-bezier);
+ `),z("layout-sider-scroll-container",`
+ flex-grow: 1;
+ flex-shrink: 0;
+ box-sizing: border-box;
+ height: 100%;
+ opacity: 0;
+ transition: opacity .3s var(--n-bezier);
+ max-width: 100%;
+ `),Y("show-content",[z("layout-sider-scroll-container",{opacity:1})]),Y("absolute-positioned",`
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ `)]),gN=be({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return w("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},w(wt,{clsPrefix:e},{default:()=>w(dh,null)}))}}),mN=be({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return w("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},w("div",{class:`${e}-layout-toggle-bar__top`}),w("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),bN={position:D2,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},xN=be({name:"LayoutSider",props:Object.assign(Object.assign({},ze.props),bN),setup(e){const t=De(L2),r=U(null),o=U(null),n=j(()=>Jt(s.value?e.collapsedWidth:e.width)),i=j(()=>e.collapseMode!=="transform"?{}:{minWidth:Jt(e.width)}),a=j(()=>t?t.siderPlacement:"left"),l=U(e.defaultCollapsed),s=Cr(Re(e,"collapsed"),l);function c(E,C){if(e.nativeScrollbar){const{value:_}=r;_&&(C===void 0?_.scrollTo(E):_.scrollTo(E,C))}else{const{value:_}=o;_&&_.scrollTo(E,C)}}function d(){const{"onUpdate:collapsed":E,onUpdateCollapsed:C,onExpand:_,onCollapse:k}=e,{value:R}=s;C&&Pe(C,!R),E&&Pe(E,!R),l.value=!R,R?_&&Pe(_):k&&Pe(k)}let u=0,f=0;const p=E=>{var C;const _=E.target;u=_.scrollLeft,f=_.scrollTop,(C=e.onScroll)===null||C===void 0||C.call(e,E)};J0(()=>{if(e.nativeScrollbar){const E=r.value;E&&(E.scrollTop=f,E.scrollLeft=u)}}),ot(fN,{collapsedRef:s,collapseModeRef:Re(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=nt(e),g=ze("Layout","-layout-sider",vN,Oh,e,h);function m(E){var C,_;E.propertyName==="max-width"&&(s.value?(C=e.onAfterLeave)===null||C===void 0||C.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const x={scrollTo:c},b=j(()=>{const{common:{cubicBezierEaseInOut:E},self:C}=g.value,{siderToggleButtonColor:_,siderToggleButtonBorder:k,siderToggleBarColor:R,siderToggleBarColorHover:A}=C,B={"--n-bezier":E,"--n-toggle-button-color":_,"--n-toggle-button-border":k,"--n-toggle-bar-color":R,"--n-toggle-bar-color-hover":A};return e.inverted?(B["--n-color"]=C.siderColorInverted,B["--n-text-color"]=C.textColorInverted,B["--n-border-color"]=C.siderBorderColorInverted,B["--n-toggle-button-icon-color"]=C.siderToggleButtonIconColorInverted,B.__invertScrollbar=C.__invertScrollbar):(B["--n-color"]=C.siderColor,B["--n-text-color"]=C.textColor,B["--n-border-color"]=C.siderBorderColor,B["--n-toggle-button-icon-color"]=C.siderToggleButtonIconColor),B}),y=v?Ct("layout-sider",j(()=>e.inverted?"a":"b"),b,e):void 0;return Object.assign({scrollableElRef:r,scrollbarInstRef:o,mergedClsPrefix:h,mergedTheme:g,styleMaxWidth:n,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:p,handleTransitionend:m,handleTriggerClick:d,inlineThemeDisabled:v,cssVars:b,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender},x)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:r,showTrigger:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),w("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,r&&`${t}-layout-sider--collapsed`,(!r||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Jt(this.width)}]},this.nativeScrollbar?w("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):w(Nn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),o?o==="bar"?w(mN,{clsPrefix:t,class:r?this.collapsedTriggerClass:this.triggerClass,style:r?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):w(gN,{clsPrefix:t,class:r?this.collapsedTriggerClass:this.triggerClass,style:r?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?w("div",{class:`${t}-layout-sider__border`}):null)}}),H2={extraFontSize:"12px",width:"440px"},yN={name:"Transfer",common:Fe,peers:{Checkbox:xa,Scrollbar:Lr,Input:Qr,Empty:Ti,Button:zr},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:o,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:v,hoverColor:g}=e;return Object.assign(Object.assign({},H2),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:n,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:v,filterDividerColor:"#0000",itemTextColor:v,itemTextColorDisabled:h,itemColorPending:g,titleFontWeight:o,iconColor:r,iconColorDisabled:t})}},CN=yN,wN=e=>{const{fontWeight:t,iconColorDisabled:r,iconColor:o,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:u,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:v,borderColor:g,hoverColor:m}=e;return Object.assign(Object.assign({},H2),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:n,borderRadius:d,borderColor:g,listColor:u,headerColor:Ke(u,f),titleTextColor:p,titleTextColorDisabled:h,extraTextColor:v,filterDividerColor:g,itemTextColor:v,itemTextColorDisabled:h,itemColorPending:m,titleFontWeight:t,iconColor:o,iconColorDisabled:r})},SN={name:"Transfer",common:Oe,peers:{Checkbox:Ai,Scrollbar:Pr,Input:Wr,Empty:Mo,Button:Tr},self:wN},_N=SN,EN=Z([z("list",`
+ --n-merged-border-color: var(--n-border-color);
+ --n-merged-color: var(--n-color);
+ --n-merged-color-hover: var(--n-color-hover);
+ margin: 0;
+ font-size: var(--n-font-size);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ padding: 0;
+ list-style-type: none;
+ color: var(--n-text-color);
+ background-color: var(--n-merged-color);
+ `,[Y("show-divider",[z("list-item",[Z("&:not(:last-child)",[Q("divider",`
+ background-color: var(--n-merged-border-color);
+ `)])])]),Y("clickable",[z("list-item",`
+ cursor: pointer;
+ `)]),Y("bordered",`
+ border: 1px solid var(--n-merged-border-color);
+ border-radius: var(--n-border-radius);
+ `),Y("hoverable",[z("list-item",`
+ border-radius: var(--n-border-radius);
+ `,[Z("&:hover",`
+ background-color: var(--n-merged-color-hover);
+ `,[Q("divider",`
+ background-color: transparent;
+ `)])])]),Y("bordered, hoverable",[z("list-item",`
+ padding: 12px 20px;
+ `),Q("header, footer",`
+ padding: 12px 20px;
+ `)]),Q("header, footer",`
+ padding: 12px 0;
+ box-sizing: border-box;
+ transition: border-color .3s var(--n-bezier);
+ `,[Z("&:not(:last-child)",`
+ border-bottom: 1px solid var(--n-merged-border-color);
+ `)]),z("list-item",`
+ position: relative;
+ padding: 12px 0;
+ box-sizing: border-box;
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[Q("prefix",`
+ margin-right: 20px;
+ flex: 0;
+ `),Q("suffix",`
+ margin-left: 20px;
+ flex: 0;
+ `),Q("main",`
+ flex: 1;
+ `),Q("divider",`
+ height: 1px;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ background-color: transparent;
+ transition: background-color .3s var(--n-bezier);
+ pointer-events: none;
+ `)])]),ua(z("list",`
+ --n-merged-color-hover: var(--n-color-hover-modal);
+ --n-merged-color: var(--n-color-modal);
+ --n-merged-border-color: var(--n-border-color-modal);
+ `)),Nl(z("list",`
+ --n-merged-color-hover: var(--n-color-hover-popover);
+ --n-merged-color: var(--n-color-popover);
+ --n-merged-border-color: var(--n-border-color-popover);
+ `))]),kN=Object.assign(Object.assign({},ze.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),j2="n-list",PN=be({name:"List",props:kN,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:o}=nt(e),n=dr("List",o,t),i=ze("List","-list",EN,i2,e,t);ot(j2,{showDividerRef:Re(e,"showDivider"),mergedClsPrefixRef:t});const a=j(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:u,colorModal:f,colorPopover:p,borderColor:h,borderColorModal:v,borderColorPopover:g,borderRadius:m,colorHover:x,colorHoverModal:b,colorHoverPopover:y}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":u,"--n-border-radius":m,"--n-border-color":h,"--n-border-color-modal":v,"--n-border-color-popover":g,"--n-color-modal":f,"--n-color-popover":p,"--n-color-hover":x,"--n-color-hover-modal":b,"--n-color-hover-popover":y}}),l=r?Ct("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:n,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),w("ul",{class:[`${r}-list`,this.rtlEnabled&&`${r}-list--rtl`,this.bordered&&`${r}-list--bordered`,this.showDivider&&`${r}-list--show-divider`,this.hoverable&&`${r}-list--hoverable`,this.clickable&&`${r}-list--clickable`,this.themeClass],style:this.cssVars},t.header?w("div",{class:`${r}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?w("div",{class:`${r}-list__footer`},t.footer()):null)}}),TN=be({name:"ListItem",setup(){const e=De(j2,null);return e||yi("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return w("li",{class:`${t}-list-item`},e.prefix?w("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?w("div",{class:`${t}-list-item__main`},e):null,e.suffix?w("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&w("div",{class:`${t}-list-item__divider`}))}}),W2="n-loading-bar",V2="n-loading-bar-api",RN=z("loading-bar-container",`
+ z-index: 5999;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 2px;
+`,[Pl({enterDuration:"0.3s",leaveDuration:"0.8s"}),z("loading-bar",`
+ width: 100%;
+ transition:
+ max-width 4s linear,
+ background .2s linear;
+ height: var(--n-height);
+ `,[Y("starting",`
+ background: var(--n-color-loading);
+ `),Y("finishing",`
+ background: var(--n-color-loading);
+ transition:
+ max-width .2s linear,
+ background .2s linear;
+ `),Y("error",`
+ background: var(--n-color-error);
+ transition:
+ max-width .2s linear,
+ background .2s linear;
+ `)])]);var bs=globalThis&&globalThis.__awaiter||function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};function xs(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const AN=be({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=nt(),{props:t,mergedClsPrefixRef:r}=De(W2),o=U(null),n=U(!1),i=U(!1),a=U(!1),l=U(!1);let s=!1;const c=U(!1),d=j(()=>{const{loadingBarStyle:E}=t;return E?E[c.value?"error":"loading"]:""});function u(){return bs(this,void 0,void 0,function*(){n.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield Bt(),l.value=!1})}function f(){return bs(this,arguments,void 0,function*(E=0,C=80,_="starting"){if(i.value=!0,yield u(),s)return;a.value=!0,yield Bt();const k=o.value;k&&(k.style.maxWidth=`${E}%`,k.style.transition="none",k.offsetWidth,k.className=xs(_,r.value),k.style.transition="",k.style.maxWidth=`${C}%`)})}function p(){return bs(this,void 0,void 0,function*(){if(s||c.value)return;i.value&&(yield Bt()),s=!0;const E=o.value;E&&(E.className=xs("finishing",r.value),E.style.maxWidth="100%",E.offsetWidth,a.value=!1)})}function h(){if(!(s||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const E=o.value;E&&(E.className=xs("error",r.value),E.offsetWidth,a.value=!1)});else{c.value=!0;const E=o.value;if(!E)return;E.className=xs("error",r.value),E.style.maxWidth="100%",E.offsetWidth,a.value=!1}}function v(){n.value=!0}function g(){n.value=!1}function m(){return bs(this,void 0,void 0,function*(){yield u()})}const x=ze("LoadingBar","-loading-bar",RN,a2,t,r),b=j(()=>{const{self:{height:E,colorError:C,colorLoading:_}}=x.value;return{"--n-height":E,"--n-color-loading":_,"--n-color-error":C}}),y=e?Ct("loading-bar",void 0,b,t):void 0;return{mergedClsPrefix:r,loadingBarRef:o,started:i,loading:a,entering:n,transitionDisabled:l,start:f,error:h,finish:p,handleEnter:v,handleAfterEnter:g,handleAfterLeave:m,mergedLoadingBarStyle:d,cssVars:e?void 0:b,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return w(lr,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),$r(w("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},w("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Qo,this.loading||!this.loading&&this.entering]])}})}}),FN=Object.assign(Object.assign({},ze.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),ON=be({name:"LoadingBarProvider",props:FN,setup(e){const t=wi(),r=U(null),o={start(){var i;t.value?(i=r.value)===null||i===void 0||i.start():Bt(()=>{var a;(a=r.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=r.value)===null||i===void 0||i.error():Bt(()=>{var a;(a=r.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=r.value)===null||i===void 0||i.finish():Bt(()=>{var a;(a=r.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:n}=nt(e);return ot(V2,o),ot(W2,{props:e,mergedClsPrefixRef:n}),Object.assign(o,{loadingBarRef:r})},render(){var e,t;return w(rt,null,w(Sc,{disabled:this.to===!1,to:this.to||"body"},w(AN,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function BN(){const e=De(V2,null);return e===null&&yi("use-loading-bar","No outer founded."),e}const U2={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},K2="n-message-api",q2="n-message-provider",IN=Z([z("message-wrapper",`
+ margin: var(--n-margin);
+ z-index: 0;
+ transform-origin: top center;
+ display: flex;
+ `,[IB({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),z("message",`
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ transition:
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ transform .3s var(--n-bezier),
+ margin-bottom .3s var(--n-bezier);
+ padding: var(--n-padding);
+ border-radius: var(--n-border-radius);
+ flex-wrap: nowrap;
+ overflow: hidden;
+ max-width: var(--n-max-width);
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ box-shadow: var(--n-box-shadow);
+ `,[Q("content",`
+ display: inline-block;
+ line-height: var(--n-line-height);
+ font-size: var(--n-font-size);
+ `),Q("icon",`
+ position: relative;
+ margin: var(--n-icon-margin);
+ height: var(--n-icon-size);
+ width: var(--n-icon-size);
+ font-size: var(--n-icon-size);
+ flex-shrink: 0;
+ `,[["default","info","success","warning","error","loading"].map(e=>Y(`${e}-type`,[Z("> *",`
+ color: var(--n-icon-color-${e});
+ transition: color .3s var(--n-bezier);
+ `)])),Z("> *",`
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ `,[so()])]),Q("close",`
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ flex-shrink: 0;
+ `,[Z("&:hover",`
+ color: var(--n-close-icon-color-hover);
+ `),Z("&:active",`
+ color: var(--n-close-icon-color-pressed);
+ `)])]),z("message-container",`
+ z-index: 6000;
+ position: fixed;
+ height: 0;
+ overflow: visible;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ `,[Y("top",`
+ top: 12px;
+ left: 0;
+ right: 0;
+ `),Y("top-left",`
+ top: 12px;
+ left: 12px;
+ right: 0;
+ align-items: flex-start;
+ `),Y("top-right",`
+ top: 12px;
+ left: 0;
+ right: 12px;
+ align-items: flex-end;
+ `),Y("bottom",`
+ bottom: 4px;
+ left: 0;
+ right: 0;
+ justify-content: flex-end;
+ `),Y("bottom-left",`
+ bottom: 4px;
+ left: 12px;
+ right: 0;
+ justify-content: flex-end;
+ align-items: flex-start;
+ `),Y("bottom-right",`
+ bottom: 4px;
+ left: 0;
+ right: 12px;
+ justify-content: flex-end;
+ align-items: flex-end;
+ `)])]),$N={info:()=>w(rc,null),success:()=>w(fh,null),warning:()=>w(Lc,null),error:()=>w(uh,null),default:()=>null},DN=be({name:"Message",props:Object.assign(Object.assign({},U2),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=nt(e),{props:o,mergedClsPrefixRef:n}=De(q2),i=dr("Message",r,n),a=ze("Message","-message",IN,o2,o,n),l=j(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:p,iconMargin:h,closeMargin:v,closeSize:g,iconSize:m,fontSize:x,lineHeight:b,borderRadius:y,iconColorInfo:E,iconColorSuccess:C,iconColorWarning:_,iconColorError:k,iconColorLoading:R,closeIconSize:A,closeBorderRadius:B,[ye("textColor",c)]:S,[ye("boxShadow",c)]:P,[ye("color",c)]:F,[ye("closeColorHover",c)]:T,[ye("closeColorPressed",c)]:H,[ye("closeIconColor",c)]:N,[ye("closeIconColorPressed",c)]:W,[ye("closeIconColorHover",c)]:re}}=a.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":p,"--n-font-size":x,"--n-icon-margin":h,"--n-icon-size":m,"--n-close-icon-size":A,"--n-close-border-radius":B,"--n-close-size":g,"--n-close-margin":v,"--n-text-color":S,"--n-color":F,"--n-box-shadow":P,"--n-icon-color-info":E,"--n-icon-color-success":C,"--n-icon-color-warning":_,"--n-icon-color-error":k,"--n-icon-color-loading":R,"--n-close-color-hover":T,"--n-close-color-pressed":H,"--n-close-icon-color":N,"--n-close-icon-color-pressed":W,"--n-close-icon-color-hover":re,"--n-line-height":b,"--n-border-radius":y}}),s=t?Ct("message",j(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:r,content:o,mergedClsPrefix:n,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let u;return w("div",{class:[`${n}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):w("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(u=LN(s,t,n))&&d?w("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},w(ha,null,{default:()=>u})):null,w("div",{class:`${n}-message__content`},Vt(o)),r?w(pa,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function LN(e,t,r){if(typeof e=="function")return e();{const o=t==="loading"?w(va,{clsPrefix:r,strokeWidth:24,scale:.85}):$N[t]();return o?w(wt,{clsPrefix:r,key:t},{default:()=>o}):null}}const zN=be({name:"MessageEnvironment",props:Object.assign(Object.assign({},U2),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=U(!0);zt(()=>{o()});function o(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function n(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&o()}function a(){const{onHide:d}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:p}=e;d&&d(),u&&u(p),f&&f()}function c(){a()}return{show:r,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return w(nC,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?w(DN,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),MN=Object.assign(Object.assign({},ze.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),NN=be({name:"MessageProvider",props:MN,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=U([]),o=U({}),n={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};ot(q2,{props:e,mergedClsPrefixRef:t}),ot(K2,n);function i(s,c){const d=Fn(),u=Lo(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var p;(p=o.value[d])===null||p===void 0||p.hide()}})),{max:f}=e;return f&&r.value.length>=f&&r.value.shift(),r.value.push(u),u}function a(s){r.value.splice(r.value.findIndex(c=>c.key===s),1),delete o.value[s]}function l(){Object.values(o.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:r,handleAfterLeave:a},n)},render(){var e,t,r;return w(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?w(Sc,{to:(r=this.to)!==null&&r!==void 0?r:"body"},w("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>w(zN,Object.assign({ref:n=>{n&&(this.messageRefs[o.key]=n)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},xi(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function Kl(){const e=De(K2,null);return e===null&&yi("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const qc="n-notification-provider",HN=be({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=De(qc),o=U(null);return ar(()=>{var n,i;r.value>0?(n=o==null?void 0:o.value)===null||n===void 0||n.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:o,placement:n}=this;return w("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${n}`]},t?w(Nn,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),jN={info:()=>w(rc,null),success:()=>w(fh,null),warning:()=>w(Lc,null),error:()=>w(uh,null),default:()=>null},Bh={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},WN=On(Bh),VN=be({name:"Notification",props:Bh,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:o}=De(qc),{inlineThemeDisabled:n,mergedRtlRef:i}=nt(),a=dr("Notification",i,t),l=j(()=>{const{type:c}=e,{self:{color:d,textColor:u,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:v,descriptionTextColor:g,actionTextColor:m,borderRadius:x,headerFontWeight:b,boxShadow:y,lineHeight:E,fontSize:C,closeMargin:_,closeSize:k,width:R,padding:A,closeIconSize:B,closeBorderRadius:S,closeColorHover:P,closeColorPressed:F,titleFontSize:T,metaFontSize:H,descriptionFontSize:N,[ye("iconColor",c)]:W},common:{cubicBezierEaseOut:re,cubicBezierEaseIn:ee,cubicBezierEaseInOut:L}}=r.value,{left:M,right:G,top:J,bottom:ge}=kr(A);return{"--n-color":d,"--n-font-size":C,"--n-text-color":u,"--n-description-text-color":g,"--n-action-text-color":m,"--n-title-text-color":v,"--n-title-font-weight":b,"--n-bezier":L,"--n-bezier-ease-out":re,"--n-bezier-ease-in":ee,"--n-border-radius":x,"--n-box-shadow":y,"--n-close-border-radius":S,"--n-close-color-hover":P,"--n-close-color-pressed":F,"--n-close-icon-color":f,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":E,"--n-icon-color":W,"--n-close-margin":_,"--n-close-size":k,"--n-close-icon-size":B,"--n-width":R,"--n-padding-left":M,"--n-padding-right":G,"--n-padding-top":J,"--n-padding-bottom":ge,"--n-title-font-size":T,"--n-meta-font-size":H,"--n-description-font-size":N}}),s=n?Ct("notification",j(()=>e.type[0]),l,o):void 0;return{mergedClsPrefix:t,showAvatar:j(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),w("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},w("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?w("div",{class:`${t}-notification__avatar`},this.avatar?Vt(this.avatar):this.type!=="default"?w(wt,{clsPrefix:t},{default:()=>jN[this.type]()}):null):null,this.closable?w(pa,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,w("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?w("div",{class:`${t}-notification-main__header`},Vt(this.title)):null,this.description?w("div",{class:`${t}-notification-main__description`},Vt(this.description)):null,this.content?w("pre",{class:`${t}-notification-main__content`},Vt(this.content)):null,this.meta||this.action?w("div",{class:`${t}-notification-main-footer`},this.meta?w("div",{class:`${t}-notification-main-footer__meta`},Vt(this.meta)):null,this.action?w("div",{class:`${t}-notification-main-footer__action`},Vt(this.action)):null):null)))}}),UN=Object.assign(Object.assign({},Bh),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),KN=be({name:"NotificationEnvironment",props:Object.assign(Object.assign({},UN),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=De(qc),r=U(!0);let o=null;function n(){r.value=!1,o&&window.clearTimeout(o)}function i(h){t.value++,Bt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function a(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:v,onAfterShow:g}=e;v&&v(),g&&g()}function l(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function s(h){const{onHide:v}=e;v&&v(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:v,onAfterHide:g,internalKey:m}=e;h&&h(),v(m),g&&g()}function d(){const{duration:h}=e;h&&(o=window.setTimeout(n,h))}function u(h){h.currentTarget===h.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(h){h.currentTarget===h.target&&d()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(v=>{v!==!1&&n()}):n()}return zt(()=>{e.duration&&(o=window.setTimeout(n,e.duration))}),{show:r,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:u,handleMouseleave:f}},render(){return w(lr,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?w(VN,Object.assign({},tn(this.$props,WN),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),qN=Z([z("notification-container",`
+ z-index: 4000;
+ position: fixed;
+ overflow: visible;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ `,[Z(">",[z("scrollbar",`
+ width: initial;
+ overflow: visible;
+ height: -moz-fit-content !important;
+ height: fit-content !important;
+ max-height: 100vh !important;
+ `,[Z(">",[z("scrollbar-container",`
+ height: -moz-fit-content !important;
+ height: fit-content !important;
+ max-height: 100vh !important;
+ `,[z("scrollbar-content",`
+ padding-top: 12px;
+ padding-bottom: 33px;
+ `)])])])]),Y("top, top-right, top-left",`
+ top: 12px;
+ `,[Z("&.transitioning >",[z("scrollbar",[Z(">",[z("scrollbar-container",`
+ min-height: 100vh !important;
+ `)])])])]),Y("bottom, bottom-right, bottom-left",`
+ bottom: 12px;
+ `,[Z(">",[z("scrollbar",[Z(">",[z("scrollbar-container",[z("scrollbar-content",`
+ padding-bottom: 12px;
+ `)])])])]),z("notification-wrapper",`
+ display: flex;
+ align-items: flex-end;
+ margin-bottom: 0;
+ margin-top: 12px;
+ `)]),Y("top, bottom",`
+ left: 50%;
+ transform: translateX(-50%);
+ `,[z("notification-wrapper",[Z("&.notification-transition-enter-from, &.notification-transition-leave-to",`
+ transform: scale(0.85);
+ `),Z("&.notification-transition-leave-from, &.notification-transition-enter-to",`
+ transform: scale(1);
+ `)])]),Y("top",[z("notification-wrapper",`
+ transform-origin: top center;
+ `)]),Y("bottom",[z("notification-wrapper",`
+ transform-origin: bottom center;
+ `)]),Y("top-right, bottom-right",[z("notification",`
+ margin-left: 28px;
+ margin-right: 16px;
+ `)]),Y("top-left, bottom-left",[z("notification",`
+ margin-left: 16px;
+ margin-right: 28px;
+ `)]),Y("top-right",`
+ right: 0;
+ `,[ys("top-right")]),Y("top-left",`
+ left: 0;
+ `,[ys("top-left")]),Y("bottom-right",`
+ right: 0;
+ `,[ys("bottom-right")]),Y("bottom-left",`
+ left: 0;
+ `,[ys("bottom-left")]),Y("scrollable",[Y("top-right",`
+ top: 0;
+ `),Y("top-left",`
+ top: 0;
+ `),Y("bottom-right",`
+ bottom: 0;
+ `),Y("bottom-left",`
+ bottom: 0;
+ `)]),z("notification-wrapper",`
+ margin-bottom: 12px;
+ `,[Z("&.notification-transition-enter-from, &.notification-transition-leave-to",`
+ opacity: 0;
+ margin-top: 0 !important;
+ margin-bottom: 0 !important;
+ `),Z("&.notification-transition-leave-from, &.notification-transition-enter-to",`
+ opacity: 1;
+ `),Z("&.notification-transition-leave-active",`
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ transform .3s var(--n-bezier-ease-in),
+ max-height .3s var(--n-bezier),
+ margin-top .3s linear,
+ margin-bottom .3s linear,
+ box-shadow .3s var(--n-bezier);
+ `),Z("&.notification-transition-enter-active",`
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ transform .3s var(--n-bezier-ease-out),
+ max-height .3s var(--n-bezier),
+ margin-top .3s linear,
+ margin-bottom .3s linear,
+ box-shadow .3s var(--n-bezier);
+ `)]),z("notification",`
+ background-color: var(--n-color);
+ color: var(--n-text-color);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ font-family: inherit;
+ font-size: var(--n-font-size);
+ font-weight: 400;
+ position: relative;
+ display: flex;
+ overflow: hidden;
+ flex-shrink: 0;
+ padding-left: var(--n-padding-left);
+ padding-right: var(--n-padding-right);
+ width: var(--n-width);
+ max-width: calc(100vw - 16px - 16px);
+ border-radius: var(--n-border-radius);
+ box-shadow: var(--n-box-shadow);
+ box-sizing: border-box;
+ opacity: 1;
+ `,[Q("avatar",[z("icon",`
+ color: var(--n-icon-color);
+ `),z("base-icon",`
+ color: var(--n-icon-color);
+ `)]),Y("show-avatar",[z("notification-main",`
+ margin-left: 40px;
+ width: calc(100% - 40px);
+ `)]),Y("closable",[z("notification-main",[Z("> *:first-child",`
+ padding-right: 20px;
+ `)]),Q("close",`
+ position: absolute;
+ top: 0;
+ right: 0;
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `)]),Q("avatar",`
+ position: absolute;
+ top: var(--n-padding-top);
+ left: var(--n-padding-left);
+ width: 28px;
+ height: 28px;
+ font-size: 28px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[z("icon","transition: color .3s var(--n-bezier);")]),z("notification-main",`
+ padding-top: var(--n-padding-top);
+ padding-bottom: var(--n-padding-bottom);
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ margin-left: 8px;
+ width: calc(100% - 8px);
+ `,[z("notification-main-footer",`
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 12px;
+ `,[Q("meta",`
+ font-size: var(--n-meta-font-size);
+ transition: color .3s var(--n-bezier-ease-out);
+ color: var(--n-description-text-color);
+ `),Q("action",`
+ cursor: pointer;
+ transition: color .3s var(--n-bezier-ease-out);
+ color: var(--n-action-text-color);
+ `)]),Q("header",`
+ font-weight: var(--n-title-font-weight);
+ font-size: var(--n-title-font-size);
+ transition: color .3s var(--n-bezier-ease-out);
+ color: var(--n-title-text-color);
+ `),Q("description",`
+ margin-top: 8px;
+ font-size: var(--n-description-font-size);
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ transition: color .3s var(--n-bezier-ease-out);
+ color: var(--n-description-text-color);
+ `),Q("content",`
+ line-height: var(--n-line-height);
+ margin: 12px 0 0 0;
+ font-family: inherit;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ transition: color .3s var(--n-bezier-ease-out);
+ color: var(--n-text-color);
+ `,[Z("&:first-child","margin: 0;")])])])])]);function ys(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",o="0";return z("notification-wrapper",[Z("&.notification-transition-enter-from, &.notification-transition-leave-to",`
+ transform: translate(${r}, 0);
+ `),Z("&.notification-transition-leave-from, &.notification-transition-enter-to",`
+ transform: translate(${o}, 0);
+ `)])}const G2="n-notification-api",GN=Object.assign(Object.assign({},ze.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),XN=be({name:"NotificationProvider",props:GN,setup(e){const{mergedClsPrefixRef:t}=nt(e),r=U([]),o={},n=new Set;function i(p){const h=Fn(),v=()=>{n.add(h),o[h]&&o[h].hide()},g=Lo(Object.assign(Object.assign({},p),{key:h,destroy:v,hide:v,deactivate:v})),{max:m}=e;if(m&&r.value.length-n.size>=m){let x=!1,b=0;for(const y of r.value){if(!n.has(y.key)){o[y.key]&&(y.destroy(),x=!0);break}b++}x||r.value.splice(b,1)}return r.value.push(g),g}const a=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function l(p){n.delete(p),r.value.splice(r.value.findIndex(h=>h.key===p),1)}const s=ze("Notification","-notification",qN,t2,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:u,destroyAll:f},d=U(0);ot(G2,c),ot(qc,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function u(p){return i(p)}function f(){Object.values(r.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:o,handleAfterLeave:l},c)},render(){var e,t,r;const{placement:o}=this;return w(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?w(Sc,{to:(r=this.to)!==null&&r!==void 0?r:"body"},w(HN,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(n=>w(KN,Object.assign({ref:i=>{const a=n.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},xi(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function YN(){const e=De(G2,null);return e===null&&yi("use-notification","No outer `n-notification-provider` found."),e}const X2="n-popconfirm",Y2={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},Yg=On(Y2),ZN=be({name:"NPopconfirmPanel",props:Y2,setup(e){const{localeRef:t}=$n("Popconfirm"),{inlineThemeDisabled:r}=nt(),{mergedClsPrefixRef:o,mergedThemeRef:n,props:i}=De(X2),a=j(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:u}}=n.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":u}}),l=r?Ct("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},$n("Popconfirm")),{mergedClsPrefix:o,cssVars:r?void 0:a,localizedPositiveText:j(()=>e.positiveText||t.value.positiveText),localizedNegativeText:j(()=>e.negativeText||t.value.negativeText),positiveButtonProps:Re(i,"positiveButtonProps"),negativeButtonProps:Re(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:r,$slots:o}=this,n=Br(o.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&w(nr,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&w(nr,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),w("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Rt(o.default,i=>r||i?w("div",{class:`${t}-popconfirm__body`},r?w("div",{class:`${t}-popconfirm__icon`},Br(o.icon,()=>[w(wt,{clsPrefix:t},{default:()=>w(Lc,null)})])):null,i):null),n?w("div",{class:[`${t}-popconfirm__action`]},n):null)}}),JN=z("popconfirm",[Q("body",`
+ font-size: var(--n-font-size);
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ position: relative;
+ `,[Q("icon",`
+ display: flex;
+ font-size: var(--n-icon-size);
+ color: var(--n-icon-color);
+ transition: color .3s var(--n-bezier);
+ margin: 0 8px 0 0;
+ `)]),Q("action",`
+ display: flex;
+ justify-content: flex-end;
+ `,[Z("&:not(:first-child)","margin-top: 8px"),z("button",[Z("&:not(:last-child)","margin-right: 8px;")])])]),QN=Object.assign(Object.assign(Object.assign({},ze.props),vi),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),eH=be({name:"Popconfirm",props:QN,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(),r=ze("Popconfirm","-popconfirm",JN,d2,e,t),o=U(null);function n(l){var s;if(!(!((s=o.value)===null||s===void 0)&&s.getMergedShow()))return;const{onPositiveClick:c,"onUpdate:show":d}=e;Promise.resolve(c?c(l):!0).then(u=>{var f;u!==!1&&((f=o.value)===null||f===void 0||f.setShow(!1),d&&Pe(d,!1))})}function i(l){var s;if(!(!((s=o.value)===null||s===void 0)&&s.getMergedShow()))return;const{onNegativeClick:c,"onUpdate:show":d}=e;Promise.resolve(c?c(l):!0).then(u=>{var f;u!==!1&&((f=o.value)===null||f===void 0||f.setShow(!1),d&&Pe(d,!1))})}return ot(X2,{mergedThemeRef:r,mergedClsPrefixRef:t,props:e}),{setShow(l){var s;(s=o.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=o.value)===null||l===void 0||l.syncPosition()},mergedTheme:r,popoverInstRef:o,handlePositiveClick:n,handleNegativeClick:i}},render(){const{$slots:e,$props:t,mergedTheme:r}=this;return w(ba,xi(t,Yg,{theme:r.peers.Popover,themeOverrides:r.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const o=tn(t,Yg);return w(ZN,Object.assign(Object.assign({},o),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),tH={name:"QrCode",common:Fe,self:e=>({borderRadius:e.borderRadius})},rH=tH,oH=e=>({borderRadius:e.borderRadius}),nH={name:"QrCode",common:Oe,self:oH},iH=nH,aH={name:"Skeleton",common:Fe,self(e){const{heightSmall:t,heightMedium:r,heightLarge:o,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:r,heightLarge:o}}},lH=e=>{const{heightSmall:t,heightMedium:r,heightLarge:o,borderRadius:n}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:n,heightSmall:t,heightMedium:r,heightLarge:o}},sH={name:"Skeleton",common:Oe,self:lH},cH={name:"Split",common:Fe},dH=cH,uH=e=>{const{primaryColorHover:t,borderColor:r}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:r}},fH={name:"Split",common:Oe,self:uH},hH=fH,Ih="n-tabs",Z2={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Zg=be({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Z2,setup(e){const t=De(Ih,null);return t||yi("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return w("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),pH=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},xi(Z2,["displayDirective"])),Vf=be({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:pH,setup(e){const{mergedClsPrefixRef:t,valueRef:r,typeRef:o,closableRef:n,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:s,tabChangeIdRef:c,onBeforeLeaveRef:d,triggerRef:u,handleAdd:f,activateTab:p,handleClose:h}=De(Ih);return{trigger:u,mergedClosable:j(()=>{if(e.internalAddable)return!1;const{closable:v}=e;return v===void 0?n.value:v}),style:i,addStyle:a,tabClass:l,addTabClass:s,clsPrefix:t,value:r,type:o,handleClose(v){v.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}const{name:v}=e,g=++c.id;if(v!==r.value){const{value:m}=d;m?Promise.resolve(m(e.name,r.value)).then(x=>{x&&c.id===g&&p(v)}):p(v)}}}},render(){const{internalAddable:e,clsPrefix:t,name:r,disabled:o,label:n,tab:i,value:a,mergedClosable:l,trigger:s,$slots:{default:c}}=this,d=n??i;return w("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?w("div",{class:`${t}-tabs-tab-pad`}):null,w("div",Object.assign({key:r,"data-name":r,"data-disabled":o?!0:void 0},jr({class:[`${t}-tabs-tab`,a===r&&`${t}-tabs-tab--active`,o&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:s==="click"?this.activateTab:void 0,onMouseenter:s==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),w("span",{class:`${t}-tabs-tab__label`},e?w(rt,null,w("div",{class:`${t}-tabs-tab__height-placeholder`}," "),w(wt,{clsPrefix:t},{default:()=>w(VF,null)})):c?c():typeof d=="object"?d:Vt(d??r)),l&&this.type==="card"?w(pa,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:o}):null))}}),vH=z("tabs",`
+ box-sizing: border-box;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+`,[Y("segment-type",[z("tabs-rail",[Z("&.transition-disabled",[z("tabs-capsule",`
+ transition: none;
+ `)])])]),Y("top",[z("tab-pane",`
+ padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
+ `)]),Y("left",[z("tab-pane",`
+ padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
+ `)]),Y("left, right",`
+ flex-direction: row;
+ `,[z("tabs-bar",`
+ width: 2px;
+ right: 0;
+ transition:
+ top .2s var(--n-bezier),
+ max-height .2s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `),z("tabs-tab",`
+ padding: var(--n-tab-padding-vertical);
+ `)]),Y("right",`
+ flex-direction: row-reverse;
+ `,[z("tab-pane",`
+ padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
+ `),z("tabs-bar",`
+ left: 0;
+ `)]),Y("bottom",`
+ flex-direction: column-reverse;
+ justify-content: flex-end;
+ `,[z("tab-pane",`
+ padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
+ `),z("tabs-bar",`
+ top: 0;
+ `)]),z("tabs-rail",`
+ position: relative;
+ padding: 3px;
+ border-radius: var(--n-tab-border-radius);
+ width: 100%;
+ background-color: var(--n-color-segment);
+ transition: background-color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ `,[z("tabs-capsule",`
+ border-radius: var(--n-tab-border-radius);
+ position: absolute;
+ pointer-events: none;
+ background-color: var(--n-tab-color-segment);
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
+ transition: transform 0.3s var(--n-bezier);
+ `),z("tabs-tab-wrapper",`
+ flex-basis: 0;
+ flex-grow: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[z("tabs-tab",`
+ overflow: hidden;
+ border-radius: var(--n-tab-border-radius);
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[Y("active",`
+ font-weight: var(--n-font-weight-strong);
+ color: var(--n-tab-text-color-active);
+ `),Z("&:hover",`
+ color: var(--n-tab-text-color-hover);
+ `)])])]),Y("flex",[z("tabs-nav",`
+ width: 100%;
+ position: relative;
+ `,[z("tabs-wrapper",`
+ width: 100%;
+ `,[z("tabs-tab",`
+ margin-right: 0;
+ `)])])]),z("tabs-nav",`
+ box-sizing: border-box;
+ line-height: 1.5;
+ display: flex;
+ transition: border-color .3s var(--n-bezier);
+ `,[Q("prefix, suffix",`
+ display: flex;
+ align-items: center;
+ `),Q("prefix","padding-right: 16px;"),Q("suffix","padding-left: 16px;")]),Y("top, bottom",[z("tabs-nav-scroll-wrapper",[Z("&::before",`
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: 20px;
+ `),Z("&::after",`
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: 20px;
+ `),Y("shadow-start",[Z("&::before",`
+ box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
+ `)]),Y("shadow-end",[Z("&::after",`
+ box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
+ `)])])]),Y("left, right",[z("tabs-nav-scroll-content",`
+ flex-direction: column;
+ `),z("tabs-nav-scroll-wrapper",[Z("&::before",`
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 20px;
+ `),Z("&::after",`
+ bottom: 0;
+ left: 0;
+ right: 0;
+ height: 20px;
+ `),Y("shadow-start",[Z("&::before",`
+ box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
+ `)]),Y("shadow-end",[Z("&::after",`
+ box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
+ `)])])]),z("tabs-nav-scroll-wrapper",`
+ flex: 1;
+ position: relative;
+ overflow: hidden;
+ `,[z("tabs-nav-y-scroll",`
+ height: 100%;
+ width: 100%;
+ overflow-y: auto;
+ scrollbar-width: none;
+ `,[Z("&::-webkit-scrollbar",`
+ width: 0;
+ height: 0;
+ `)]),Z("&::before, &::after",`
+ transition: box-shadow .3s var(--n-bezier);
+ pointer-events: none;
+ content: "";
+ position: absolute;
+ z-index: 1;
+ `)]),z("tabs-nav-scroll-content",`
+ display: flex;
+ position: relative;
+ min-width: 100%;
+ min-height: 100%;
+ width: fit-content;
+ box-sizing: border-box;
+ `),z("tabs-wrapper",`
+ display: inline-flex;
+ flex-wrap: nowrap;
+ position: relative;
+ `),z("tabs-tab-wrapper",`
+ display: flex;
+ flex-wrap: nowrap;
+ flex-shrink: 0;
+ flex-grow: 0;
+ `),z("tabs-tab",`
+ cursor: pointer;
+ white-space: nowrap;
+ flex-wrap: nowrap;
+ display: inline-flex;
+ align-items: center;
+ color: var(--n-tab-text-color);
+ font-size: var(--n-tab-font-size);
+ background-clip: padding-box;
+ padding: var(--n-tab-padding);
+ transition:
+ box-shadow .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[Y("disabled",{cursor:"not-allowed"}),Q("close",`
+ margin-left: 6px;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `),Q("label",`
+ display: flex;
+ align-items: center;
+ z-index: 1;
+ `)]),z("tabs-bar",`
+ position: absolute;
+ bottom: 0;
+ height: 2px;
+ border-radius: 1px;
+ background-color: var(--n-bar-color);
+ transition:
+ left .2s var(--n-bezier),
+ max-width .2s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `,[Z("&.transition-disabled",`
+ transition: none;
+ `),Y("disabled",`
+ background-color: var(--n-tab-text-color-disabled)
+ `)]),z("tabs-pane-wrapper",`
+ position: relative;
+ overflow: hidden;
+ transition: max-height .2s var(--n-bezier);
+ `),z("tab-pane",`
+ color: var(--n-pane-text-color);
+ width: 100%;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ opacity .2s var(--n-bezier);
+ left: 0;
+ right: 0;
+ top: 0;
+ `,[Z("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ transform .2s var(--n-bezier),
+ opacity .2s var(--n-bezier);
+ `),Z("&.next-transition-leave-active, &.prev-transition-leave-active",`
+ position: absolute;
+ `),Z("&.next-transition-enter-from, &.prev-transition-leave-to",`
+ transform: translateX(32px);
+ opacity: 0;
+ `),Z("&.next-transition-leave-to, &.prev-transition-enter-from",`
+ transform: translateX(-32px);
+ opacity: 0;
+ `),Z("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
+ transform: translateX(0);
+ opacity: 1;
+ `)]),z("tabs-tab-pad",`
+ box-sizing: border-box;
+ width: var(--n-tab-gap);
+ flex-grow: 0;
+ flex-shrink: 0;
+ `),Y("line-type, bar-type",[z("tabs-tab",`
+ font-weight: var(--n-tab-font-weight);
+ box-sizing: border-box;
+ vertical-align: bottom;
+ `,[Z("&:hover",{color:"var(--n-tab-text-color-hover)"}),Y("active",`
+ color: var(--n-tab-text-color-active);
+ font-weight: var(--n-tab-font-weight-active);
+ `),Y("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),z("tabs-nav",[Y("line-type",[Y("top",[Q("prefix, suffix",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),z("tabs-nav-scroll-content",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),z("tabs-bar",`
+ bottom: -1px;
+ `)]),Y("left",[Q("prefix, suffix",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `),z("tabs-nav-scroll-content",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `),z("tabs-bar",`
+ right: -1px;
+ `)]),Y("right",[Q("prefix, suffix",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `),z("tabs-nav-scroll-content",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `),z("tabs-bar",`
+ left: -1px;
+ `)]),Y("bottom",[Q("prefix, suffix",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `),z("tabs-nav-scroll-content",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `),z("tabs-bar",`
+ top: -1px;
+ `)]),Q("prefix, suffix",`
+ transition: border-color .3s var(--n-bezier);
+ `),z("tabs-nav-scroll-content",`
+ transition: border-color .3s var(--n-bezier);
+ `),z("tabs-bar",`
+ border-radius: 0;
+ `)]),Y("card-type",[Q("prefix, suffix",`
+ transition: border-color .3s var(--n-bezier);
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),z("tabs-pad",`
+ flex-grow: 1;
+ transition: border-color .3s var(--n-bezier);
+ `),z("tabs-tab-pad",`
+ transition: border-color .3s var(--n-bezier);
+ `),z("tabs-tab",`
+ font-weight: var(--n-tab-font-weight);
+ border: 1px solid var(--n-tab-border-color);
+ background-color: var(--n-tab-color);
+ box-sizing: border-box;
+ position: relative;
+ vertical-align: bottom;
+ display: flex;
+ justify-content: space-between;
+ font-size: var(--n-tab-font-size);
+ color: var(--n-tab-text-color);
+ `,[Y("addable",`
+ padding-left: 8px;
+ padding-right: 8px;
+ font-size: 16px;
+ `,[Q("height-placeholder",`
+ width: 0;
+ font-size: var(--n-tab-font-size);
+ `),St("disabled",[Z("&:hover",`
+ color: var(--n-tab-text-color-hover);
+ `)])]),Y("closable","padding-right: 8px;"),Y("active",`
+ background-color: #0000;
+ font-weight: var(--n-tab-font-weight-active);
+ color: var(--n-tab-text-color-active);
+ `),Y("disabled","color: var(--n-tab-text-color-disabled);")]),z("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),Y("left, right",[z("tabs-wrapper",`
+ flex-direction: column;
+ `,[z("tabs-tab-wrapper",`
+ flex-direction: column;
+ `,[z("tabs-tab-pad",`
+ height: var(--n-tab-gap-vertical);
+ width: 100%;
+ `)])])]),Y("top",[Y("card-type",[z("tabs-tab",`
+ border-top-left-radius: var(--n-tab-border-radius);
+ border-top-right-radius: var(--n-tab-border-radius);
+ `,[Y("active",`
+ border-bottom: 1px solid #0000;
+ `)]),z("tabs-tab-pad",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),z("tabs-pad",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `)])]),Y("left",[Y("card-type",[z("tabs-tab",`
+ border-top-left-radius: var(--n-tab-border-radius);
+ border-bottom-left-radius: var(--n-tab-border-radius);
+ `,[Y("active",`
+ border-right: 1px solid #0000;
+ `)]),z("tabs-tab-pad",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `),z("tabs-pad",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `)])]),Y("right",[Y("card-type",[z("tabs-tab",`
+ border-top-right-radius: var(--n-tab-border-radius);
+ border-bottom-right-radius: var(--n-tab-border-radius);
+ `,[Y("active",`
+ border-left: 1px solid #0000;
+ `)]),z("tabs-tab-pad",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `),z("tabs-pad",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `)])]),Y("bottom",[Y("card-type",[z("tabs-tab",`
+ border-bottom-left-radius: var(--n-tab-border-radius);
+ border-bottom-right-radius: var(--n-tab-border-radius);
+ `,[Y("active",`
+ border-top: 1px solid #0000;
+ `)]),z("tabs-tab-pad",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `),z("tabs-pad",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `)])])])]),gH=Object.assign(Object.assign({},ze.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),mH=be({name:"Tabs",props:gH,setup(e,{slots:t}){var r,o,n,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=nt(e),s=ze("Tabs","-tabs",vH,w2,e,a),c=U(null),d=U(null),u=U(null),f=U(null),p=U(null),h=U(null),v=U(!0),g=U(!0),m=Xs(e,["labelSize","size"]),x=Xs(e,["activeName","value"]),b=U((o=(r=x.value)!==null&&r!==void 0?r:e.defaultValue)!==null&&o!==void 0?o:t.default?(i=(n=Rn(t.default())[0])===null||n===void 0?void 0:n.props)===null||i===void 0?void 0:i.name:null),y=Cr(x,b),E={id:0},C=j(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});lt(y,()=>{E.id=0,B(),S()});function _(){var O;const{value:$}=y;return $===null?null:(O=c.value)===null||O===void 0?void 0:O.querySelector(`[data-name="${$}"]`)}function k(O){if(e.type==="card")return;const{value:$}=d;if(!$)return;const V=$.style.opacity==="0";if(O){const ie=`${a.value}-tabs-bar--disabled`,{barWidth:ne,placement:ae}=e;if(O.dataset.disabled==="true"?$.classList.add(ie):$.classList.remove(ie),["top","bottom"].includes(ae)){if(A(["top","maxHeight","height"]),typeof ne=="number"&&O.offsetWidth>=ne){const oe=Math.floor((O.offsetWidth-ne)/2)+O.offsetLeft;$.style.left=`${oe}px`,$.style.maxWidth=`${ne}px`}else $.style.left=`${O.offsetLeft}px`,$.style.maxWidth=`${O.offsetWidth}px`;$.style.width="8192px",V&&($.style.transition="none"),$.offsetWidth,V&&($.style.transition="",$.style.opacity="1")}else{if(A(["left","maxWidth","width"]),typeof ne=="number"&&O.offsetHeight>=ne){const oe=Math.floor((O.offsetHeight-ne)/2)+O.offsetTop;$.style.top=`${oe}px`,$.style.maxHeight=`${ne}px`}else $.style.top=`${O.offsetTop}px`,$.style.maxHeight=`${O.offsetHeight}px`;$.style.height="8192px",V&&($.style.transition="none"),$.offsetHeight,V&&($.style.transition="",$.style.opacity="1")}}}function R(){if(e.type==="card")return;const{value:O}=d;O&&(O.style.opacity="0")}function A(O){const{value:$}=d;if($)for(const V of O)$.style[V]=""}function B(){if(e.type==="card")return;const O=_();O?k(O):R()}function S(O){var $;const V=($=p.value)===null||$===void 0?void 0:$.$el;if(!V)return;const ie=_();if(!ie)return;const{scrollLeft:ne,offsetWidth:ae}=V,{offsetLeft:oe,offsetWidth:he}=ie;ne>oe?V.scrollTo({top:0,left:oe,behavior:"smooth"}):oe+he>ne+ae&&V.scrollTo({top:0,left:oe+he-ae,behavior:"smooth"})}const P=U(null);let F=0,T=null;function H(O){const $=P.value;if($){F=O.getBoundingClientRect().height;const V=`${F}px`,ie=()=>{$.style.height=V,$.style.maxHeight=V};T?(ie(),T(),T=null):T=ie}}function N(O){const $=P.value;if($){const V=O.getBoundingClientRect().height,ie=()=>{document.body.offsetHeight,$.style.maxHeight=`${V}px`,$.style.height=`${Math.max(F,V)}px`};T?(T(),T=null,ie()):T=ie}}function W(){const O=P.value;if(O){O.style.maxHeight="",O.style.height="";const{paneWrapperStyle:$}=e;if(typeof $=="string")O.style.cssText=$;else if($){const{maxHeight:V,height:ie}=$;V!==void 0&&(O.style.maxHeight=V),ie!==void 0&&(O.style.height=ie)}}}const re={value:[]},ee=U("next");function L(O){const $=y.value;let V="next";for(const ie of re.value){if(ie===$)break;if(ie===O){V="prev";break}}ee.value=V,M(O)}function M(O){const{onActiveNameChange:$,onUpdateValue:V,"onUpdate:value":ie}=e;$&&Pe($,O),V&&Pe(V,O),ie&&Pe(ie,O),b.value=O}function G(O){const{onClose:$}=e;$&&Pe($,O)}function J(){const{value:O}=d;if(!O)return;const $="transition-disabled";O.classList.add($),B(),O.classList.remove($)}const ge=U(null);function ve({transitionDisabled:O}){const $=c.value;if(!$)return;O&&$.classList.add("transition-disabled");const V=_();V&&ge.value&&(ge.value.style.width=`${V.offsetWidth}px`,ge.value.style.height=`${V.offsetHeight}px`,ge.value.style.transform=`translateX(${V.offsetLeft-po(getComputedStyle($).paddingLeft)}px)`,O&&ge.value.offsetWidth),O&&$.classList.remove("transition-disabled")}lt([y],()=>{e.type==="segment"&&Bt(()=>{ve({transitionDisabled:!1})})}),zt(()=>{e.type==="segment"&&ve({transitionDisabled:!0})});let te=0;function ce(O){var $;if(O.contentRect.width===0&&O.contentRect.height===0||te===O.contentRect.width)return;te=O.contentRect.width;const{type:V}=e;if((V==="line"||V==="bar")&&J(),V!=="segment"){const{placement:ie}=e;I((ie==="top"||ie==="bottom"?($=p.value)===null||$===void 0?void 0:$.$el:h.value)||null)}}const X=Wd(ce,64);lt([()=>e.justifyContent,()=>e.size],()=>{Bt(()=>{const{type:O}=e;(O==="line"||O==="bar")&&J()})});const le=U(!1);function Ee(O){var $;const{target:V,contentRect:{width:ie}}=O,ne=V.parentElement.offsetWidth;if(!le.value)neae.$el.offsetWidth&&(le.value=!1)}I((($=p.value)===null||$===void 0?void 0:$.$el)||null)}const _e=Wd(Ee,64);function D(){const{onAdd:O}=e;O&&O(),Bt(()=>{const $=_(),{value:V}=p;!$||!V||V.scrollTo({left:$.offsetLeft,top:0,behavior:"smooth"})})}function I(O){if(!O)return;const{placement:$}=e;if($==="top"||$==="bottom"){const{scrollLeft:V,scrollWidth:ie,offsetWidth:ne}=O;v.value=V<=0,g.value=V+ne>=ie}else{const{scrollTop:V,scrollHeight:ie,offsetHeight:ne}=O;v.value=V<=0,g.value=V+ne>=ie}}const q=Wd(O=>{I(O.target)},64);ot(Ih,{triggerRef:Re(e,"trigger"),tabStyleRef:Re(e,"tabStyle"),tabClassRef:Re(e,"tabClass"),addTabStyleRef:Re(e,"addTabStyle"),addTabClassRef:Re(e,"addTabClass"),paneClassRef:Re(e,"paneClass"),paneStyleRef:Re(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Re(e,"type"),closableRef:Re(e,"closable"),valueRef:y,tabChangeIdRef:E,onBeforeLeaveRef:Re(e,"onBeforeLeave"),activateTab:L,handleClose:G,handleAdd:D}),K1(()=>{B(),S()}),ar(()=>{const{value:O}=u;if(!O)return;const{value:$}=a,V=`${$}-tabs-nav-scroll-wrapper--shadow-start`,ie=`${$}-tabs-nav-scroll-wrapper--shadow-end`;v.value?O.classList.remove(V):O.classList.add(V),g.value?O.classList.remove(ie):O.classList.add(ie)});const ue={syncBarPosition:()=>{B()}},se=()=>{ve({transitionDisabled:!0})},me=j(()=>{const{value:O}=m,{type:$}=e,V={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[$],ie=`${O}${V}`,{self:{barColor:ne,closeIconColor:ae,closeIconColorHover:oe,closeIconColorPressed:he,tabColor:$e,tabBorderColor:He,paneTextColor:Te,tabFontWeight:Ie,tabBorderRadius:Ge,tabFontWeightActive:Me,colorSegment:Ye,fontWeightStrong:pt,tabColorSegment:K,closeSize:fe,closeIconSize:we,closeColorHover:Le,closeColorPressed:We,closeBorderRadius:Ue,[ye("panePadding",O)]:qe,[ye("tabPadding",ie)]:Xe,[ye("tabPaddingVertical",ie)]:st,[ye("tabGap",ie)]:Ut,[ye("tabGap",`${ie}Vertical`)]:It,[ye("tabTextColor",$)]:Kt,[ye("tabTextColorActive",$)]:Rr,[ye("tabTextColorHover",$)]:wr,[ye("tabTextColorDisabled",$)]:eo,[ye("tabFontSize",O)]:Vr},common:{cubicBezierEaseInOut:Wt}}=s.value;return{"--n-bezier":Wt,"--n-color-segment":Ye,"--n-bar-color":ne,"--n-tab-font-size":Vr,"--n-tab-text-color":Kt,"--n-tab-text-color-active":Rr,"--n-tab-text-color-disabled":eo,"--n-tab-text-color-hover":wr,"--n-pane-text-color":Te,"--n-tab-border-color":He,"--n-tab-border-radius":Ge,"--n-close-size":fe,"--n-close-icon-size":we,"--n-close-color-hover":Le,"--n-close-color-pressed":We,"--n-close-border-radius":Ue,"--n-close-icon-color":ae,"--n-close-icon-color-hover":oe,"--n-close-icon-color-pressed":he,"--n-tab-color":$e,"--n-tab-font-weight":Ie,"--n-tab-font-weight-active":Me,"--n-tab-padding":Xe,"--n-tab-padding-vertical":st,"--n-tab-gap":Ut,"--n-tab-gap-vertical":It,"--n-pane-padding-left":kr(qe,"left"),"--n-pane-padding-right":kr(qe,"right"),"--n-pane-padding-top":kr(qe,"top"),"--n-pane-padding-bottom":kr(qe,"bottom"),"--n-font-weight-strong":pt,"--n-tab-color-segment":K}}),Ce=l?Ct("tabs",j(()=>`${m.value[0]}${e.type[0]}`),me,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:y,renderedNames:new Set,segmentCapsuleElRef:ge,tabsPaneWrapperRef:P,tabsElRef:c,barElRef:d,addTabInstRef:f,xScrollInstRef:p,scrollWrapperElRef:u,addTabFixed:le,tabWrapperStyle:C,handleNavResize:X,mergedSize:m,handleScroll:q,handleTabsResize:_e,cssVars:l?void 0:me,themeClass:Ce==null?void 0:Ce.themeClass,animationDirection:ee,renderNameListRef:re,yScrollElRef:h,handleSegmentResize:se,onAnimationBeforeLeave:H,onAnimationEnter:N,onAnimationAfterEnter:W,onRender:Ce==null?void 0:Ce.onRender},ue)},render(){const{mergedClsPrefix:e,type:t,placement:r,addTabFixed:o,addable:n,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:s,paneWrapperStyle:c,$slots:{default:d,prefix:u,suffix:f}}=this;l==null||l();const p=d?Rn(d()).filter(E=>E.type.__TAB_PANE__===!0):[],h=d?Rn(d()).filter(E=>E.type.__TAB__===!0):[],v=!h.length,g=t==="card",m=t==="segment",x=!g&&!m&&this.justifyContent;a.value=[];const b=()=>{const E=w("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},x?null:w("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?p.map((C,_)=>(a.value.push(C.props.name),lu(w(Vf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0&&(!x||x==="center"||x==="start"||x==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,_)=>(a.value.push(C.props.name),lu(_!==0&&!x?em(C):C))),!o&&n&&g?Qg(n,(v?p.length:h.length)!==0):null,x?null:w("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return w("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},g&&n?w(Fo,{onResize:this.handleTabsResize},{default:()=>E}):E,g?w("div",{class:`${e}-tabs-pad`}):null,g?null:w("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},y=m?"top":r;return w("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${y}`],style:this.cssVars},w("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${y}`,`${e}-tabs-nav`]},Rt(u,E=>E&&w("div",{class:`${e}-tabs-nav__prefix`},E)),m?w(Fo,{onResize:this.handleSegmentResize},{default:()=>w("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},w("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},w("div",{class:`${e}-tabs-wrapper`},w("div",{class:`${e}-tabs-tab`}))),v?p.map((E,C)=>(a.value.push(E.props.name),w(Vf,Object.assign({},E.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),E.children?{default:E.children.tab}:void 0))):h.map((E,C)=>(a.value.push(E.props.name),C===0?E:em(E))))}):w(Fo,{onResize:this.handleNavResize},{default:()=>w("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(y)?w($8,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:b}):w("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},b()))}),o&&n&&g?Qg(n,!0):null,Rt(f,E=>E&&w("div",{class:`${e}-tabs-nav__suffix`},E))),v&&(this.animated&&(y==="top"||y==="bottom")?w("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,s]},Jg(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Jg(p,this.mergedValue,this.renderedNames)))}});function Jg(e,t,r,o,n,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":u}=s.props,f=h=>d===h||u===h,p=t===c;if(s.key!==void 0&&(s.key=c),p||f("show")||f("show:lazy")&&r.has(c)){r.has(c)||r.add(c);const h=!f("if");l.push(h?$r(s,[[Qo,p]]):s)}}),a?w(I1,{name:`${a}-transition`,onBeforeLeave:o,onEnter:n,onAfterEnter:i},{default:()=>l}):l}function Qg(e,t){return w(Vf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function em(e){const t=mo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function lu(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const bH=z("thing",`
+ display: flex;
+ transition: color .3s var(--n-bezier);
+ font-size: var(--n-font-size);
+ color: var(--n-text-color);
+`,[z("thing-avatar",`
+ margin-right: 12px;
+ margin-top: 2px;
+ `),z("thing-avatar-header-wrapper",`
+ display: flex;
+ flex-wrap: nowrap;
+ `,[z("thing-header-wrapper",`
+ flex: 1;
+ `)]),z("thing-main",`
+ flex-grow: 1;
+ `,[z("thing-header",`
+ display: flex;
+ margin-bottom: 4px;
+ justify-content: space-between;
+ align-items: center;
+ `,[Q("title",`
+ font-size: 16px;
+ font-weight: var(--n-title-font-weight);
+ transition: color .3s var(--n-bezier);
+ color: var(--n-title-text-color);
+ `)]),Q("description",[Z("&:not(:last-child)",`
+ margin-bottom: 4px;
+ `)]),Q("content",[Z("&:not(:first-child)",`
+ margin-top: 12px;
+ `)]),Q("footer",[Z("&:not(:first-child)",`
+ margin-top: 12px;
+ `)]),Q("action",[Z("&:not(:first-child)",`
+ margin-top: 12px;
+ `)])])]),xH=Object.assign(Object.assign({},ze.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),yH=be({name:"Thing",props:xH,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),i=ze("Thing","-thing",bH,_2,e,r),a=dr("Thing",n,r),l=j(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:u,fontSize:f},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":f,"--n-text-color":d,"--n-title-font-weight":u,"--n-title-text-color":c}}),s=o?Ct("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=r,u=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),w("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,u&&`${d}-thing--rtl`],style:o?void 0:l.value},t.avatar&&e.contentIndented?w("div",{class:`${d}-thing-avatar`},t.avatar()):null,w("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?w("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?w("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?w("div",{class:`${d}-thing-header-wrapper`},w("div",{class:`${d}-thing-header`},t.header||e.title?w("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?w("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?w("div",{class:[`${d}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null):null):w(rt,null,t.header||e.title||t["header-extra"]||e.titleExtra?w("div",{class:`${d}-thing-header`},t.header||e.title?w("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?w("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?w("div",{class:[`${d}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?w("div",{class:[`${d}-thing-main__content`,e.contentClass],style:e.contentStyle},t.default?t.default():e.content):null,t.footer?w("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?w("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),J2=()=>({}),CH={name:"Equation",common:Oe,self:J2},wH=CH,SH={name:"Equation",common:Fe,self:J2},_H=SH,EH={name:"FloatButtonGroup",common:Fe,self(e){const{popoverColor:t,dividerColor:r,borderRadius:o}=e;return{color:t,buttonBorderColor:r,borderRadiusSquare:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},kH=EH,su={name:"dark",common:Fe,Alert:TB,Anchor:MB,AutoComplete:eI,Avatar:$C,AvatarGroup:dI,BackTop:fI,Badge:mI,Breadcrumb:EI,Button:zr,ButtonGroup:kz,Calendar:LI,Card:WC,Carousel:ZI,Cascader:n$,Checkbox:xa,Code:GC,Collapse:m$,CollapseTransition:C$,ColorPicker:HI,DataTable:oD,DatePicker:CL,Descriptions:TL,Dialog:Dw,Divider:GL,Drawer:t7,Dropdown:_h,DynamicInput:o7,DynamicTags:h7,Element:m7,Empty:Ti,Ellipsis:aw,Equation:_H,Flex:C7,Form:T7,GradientText:Az,Icon:FD,IconWrapper:rN,Image:nN,Input:Qr,InputNumber:$z,LegacyTransfer:CN,Layout:Nz,List:Uz,LoadingBar:qz,Log:Zz,Menu:dM,Mention:rM,Message:_z,Modal:LL,Notification:yz,PageHeader:hM,Pagination:ow,Popconfirm:mM,Popover:Ri,Popselect:JC,Progress:h2,QrCode:rH,Radio:sw,Rate:CM,Result:RM,Row:V9,Scrollbar:Lr,Select:tw,Skeleton:aH,Slider:FM,Space:Xw,Spin:zM,Statistic:jM,Steps:qM,Switch:XM,Table:o9,Tabs:l9,Tag:yC,Thing:d9,TimePicker:Ow,Timeline:f9,Tooltip:jc,Transfer:m9,Tree:R2,TreeSelect:_9,Typography:O9,Upload:D9,Watermark:z9,Split:dH,FloatButton:X9,FloatButtonGroup:kH},tl={name:"light",common:Oe,Alert:FB,Anchor:LB,AutoComplete:JB,Avatar:gh,AvatarGroup:sI,BackTop:vI,Badge:yI,Breadcrumb:SI,Button:Tr,ButtonGroup:Tz,Calendar:$I,Card:mh,Carousel:XI,Cascader:r$,Checkbox:Ai,Code:XC,Collapse:v$,CollapseTransition:x$,ColorPicker:MI,DataTable:uw,DatePicker:xL,Descriptions:kL,Dialog:Th,Divider:Uw,Drawer:QL,Dropdown:Vc,DynamicInput:a7,DynamicTags:v7,Element:x7,Empty:Mo,Equation:wH,Ellipsis:Sh,Flex:_7,Form:Fh,GradientText:Bz,Icon:Sw,IconWrapper:eN,Image:$2,Input:Wr,InputNumber:zz,Layout:Oh,LegacyTransfer:_N,List:i2,LoadingBar:a2,Log:eM,Menu:sM,Mention:iM,Message:o2,Modal:jw,Notification:t2,PageHeader:fM,Pagination:wh,Popconfirm:d2,Popover:Hn,Popselect:Hc,Progress:f2,QrCode:iH,Radio:Wc,Rate:_M,Row:j9,Result:PM,Scrollbar:Pr,Skeleton:sH,Select:Ch,Slider:IM,Space:Ah,Spin:DM,Statistic:NM,Steps:UM,Switch:JM,Table:t9,Tabs:w2,Tag:ph,Thing:_2,TimePicker:Fw,Timeline:v9,Tooltip:Vl,Transfer:y9,Tree:T2,TreeSelect:P9,Typography:A9,Upload:I9,Watermark:N9,Split:hH,FloatButton:J9,FloatButtonGroup:q9},PH=be({__name:"index",setup(e){function t(){window.$loadingBar=BN(),window.$dialog=Ww(),window.$message=Kl(),window.$notification=YN()}const r=be({name:"NaiveProviderContent",setup(){t()},render(){return w("div")}});return(o,n)=>(ct(),Er(pe(ON),null,{default:Qe(()=>[Be(pe(UL),null,{default:Qe(()=>[Be(pe(XN),null,{default:Qe(()=>[Be(pe(NN),null,{default:Qe(()=>[M0(o.$slots,"default"),Be(pe(r))]),_:3})]),_:3})]),_:3})]),_:3}))}}),rl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Gc=(e,t,r,o="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const l=n.pop(),s=n.pop(),c={provider:n.length>0?n[0]:o,prefix:s,name:l};return t&&!Os(c)?null:c}const i=n[0],a=i.split("-");if(a.length>1){const l={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!Os(l)?null:l}if(r&&o===""){const l={provider:o,prefix:"",name:i};return t&&!Os(l,r)?null:l}return null},Os=(e,t)=>e?!!((e.provider===""||e.provider.match(rl))&&(t&&e.prefix===""||e.prefix.match(rl))&&e.name.match(rl)):!1,Q2=Object.freeze({left:0,top:0,width:16,height:16}),ic=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xc=Object.freeze({...Q2,...ic}),Uf=Object.freeze({...Xc,body:"",hidden:!1});function TH(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(r.rotate=o),r}function tm(e,t){const r=TH(e,t);for(const o in Uf)o in ic?o in e&&!(o in r)&&(r[o]=ic[o]):o in t?r[o]=t[o]:o in e&&(r[o]=e[o]);return r}function RH(e,t){const r=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);function i(a){if(r[a])return n[a]=[];if(!(a in n)){n[a]=null;const l=o[a]&&o[a].parent,s=l&&i(l);s&&(n[a]=[l].concat(s))}return n[a]}return(t||Object.keys(r).concat(Object.keys(o))).forEach(i),n}function AH(e,t,r){const o=e.icons,n=e.aliases||Object.create(null);let i={};function a(l){i=tm(o[l]||n[l],i)}return a(t),r.forEach(a),tm(e,i)}function eS(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),r.push(n)});const o=RH(e);for(const n in o){const i=o[n];i&&(t(n,AH(e,n,i)),r.push(n))}return r}const FH={provider:"",aliases:{},not_found:{},...Q2};function cu(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function tS(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!cu(e,FH))return null;const r=t.icons;for(const n in r){const i=r[n];if(!n.match(rl)||typeof i.body!="string"||!cu(i,Uf))return null}const o=t.aliases||Object.create(null);for(const n in o){const i=o[n],a=i.parent;if(!n.match(rl)||typeof a!="string"||!r[a]&&!o[a]||!cu(i,Uf))return null}return t}const rm=Object.create(null);function OH(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function gi(e,t){const r=rm[e]||(rm[e]=Object.create(null));return r[t]||(r[t]=OH(e,t))}function $h(e,t){return tS(t)?eS(t,(r,o)=>{o?e.icons[r]=o:e.missing.add(r)}):[]}function BH(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Rl=!1;function rS(e){return typeof e=="boolean"&&(Rl=e),Rl}function IH(e){const t=typeof e=="string"?Gc(e,!0,Rl):e;if(t){const r=gi(t.provider,t.prefix),o=t.name;return r.icons[o]||(r.missing.has(o)?null:void 0)}}function $H(e,t){const r=Gc(e,!0,Rl);if(!r)return!1;const o=gi(r.provider,r.prefix);return BH(o,r.name,t)}function DH(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Rl&&!t&&!e.prefix){let n=!1;return tS(e)&&(e.prefix="",eS(e,(i,a)=>{a&&$H(i,a)&&(n=!0)})),n}const r=e.prefix;if(!Os({provider:t,prefix:r,name:"a"}))return!1;const o=gi(t,r);return!!$h(o,e)}const oS=Object.freeze({width:null,height:null}),nS=Object.freeze({...oS,...ic}),LH=/(-?[0-9.]*[0-9]+[0-9.]*)/g,zH=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function om(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const o=e.split(LH);if(o===null||!o.length)return e;const n=[];let i=o.shift(),a=zH.test(i);for(;;){if(a){const l=parseFloat(i);isNaN(l)?n.push(i):n.push(Math.ceil(l*t*r)/r)}else n.push(i);if(i=o.shift(),i===void 0)return n.join("");a=!a}}function MH(e,t="defs"){let r="";const o=e.indexOf("<"+t);for(;o>=0;){const n=e.indexOf(">",o),i=e.indexOf(""+t);if(n===-1||i===-1)break;const a=e.indexOf(">",i);if(a===-1)break;r+=e.slice(n+1,i).trim(),e=e.slice(0,o).trim()+e.slice(a+1)}return{defs:r,content:e}}function NH(e,t){return e?""+e+" "+t:t}function HH(e,t,r){const o=MH(e);return NH(o.defs,t+o.content+r)}const jH=e=>e==="unset"||e==="undefined"||e==="none";function WH(e,t){const r={...Xc,...e},o={...nS,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,o].forEach(v=>{const g=[],m=v.hFlip,x=v.vFlip;let b=v.rotate;m?x?b+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):x&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.push("scale(1 -1)"),n.top=n.left=0);let y;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:y=n.height/2+n.top,g.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:y=n.width/2+n.left,g.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}b%2===1&&(n.left!==n.top&&(y=n.left,n.left=n.top,n.top=y),n.width!==n.height&&(y=n.width,n.width=n.height,n.height=y)),g.length&&(i=HH(i,''," "))});const a=o.width,l=o.height,s=n.width,c=n.height;let d,u;a===null?(u=l===null?"1em":l==="auto"?c:l,d=om(u,s/c)):(d=a==="auto"?s:a,u=l===null?om(d,c/s):l==="auto"?c:l);const f={},p=(v,g)=>{jH(g)||(f[v]=g.toString())};p("width",d),p("height",u);const h=[n.left,n.top,s,c];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:i}}const VH=/\sid="(\S+)"/g,UH="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let KH=0;function qH(e,t=UH){const r=[];let o;for(;o=VH.exec(e);)r.push(o[1]);if(!r.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(i=>{const a=typeof t=="function"?t(i):t+(KH++).toString(),l=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const Kf=Object.create(null);function GH(e,t){Kf[e]=t}function qf(e){return Kf[e]||Kf[""]}function Dh(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Lh=Object.create(null),$a=["https://api.simplesvg.com","https://api.unisvg.com"],Bs=[];for(;$a.length>0;)$a.length===1||Math.random()>.5?Bs.push($a.shift()):Bs.push($a.pop());Lh[""]=Dh({resources:["https://api.iconify.design"].concat(Bs)});function XH(e,t){const r=Dh(t);return r===null?!1:(Lh[e]=r,!0)}function zh(e){return Lh[e]}const YH=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let nm=YH();function ZH(e,t){const r=zh(e);if(!r)return 0;let o;if(!r.maxURL)o=0;else{let n=0;r.resources.forEach(a=>{n=Math.max(n,a.length)});const i=t+".json?icons=";o=r.maxURL-n-r.path.length-i.length}return o}function JH(e){return e===404}const QH=(e,t,r)=>{const o=[],n=ZH(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return r.forEach((s,c)=>{l+=s.length+1,l>=n&&c>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),o.push(a),o};function ej(e){if(typeof e=="string"){const t=zh(e);if(t)return t.path}return"/"}const tj=(e,t,r)=>{if(!nm){r("abort",424);return}let o=ej(t.provider);switch(t.type){case"icons":{const i=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});o+=i+".json?"+s.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let n=503;nm(e+o).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{r(JH(a)?"abort":"next",a)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?r("abort",i):r("next",n)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",n)})},rj={prepare:QH,send:tj};function oj(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(n=>{if(o.name===n.name&&o.prefix===n.prefix&&o.provider===n.provider)return;o=n;const i=n.provider,a=n.prefix,l=n.name,s=r[i]||(r[i]=Object.create(null)),c=s[a]||(s[a]=gi(i,a));let d;l in c.icons?d=t.loaded:a===""||c.missing.has(l)?d=t.missing:d=t.pending;const u={provider:i,prefix:a,name:l};d.push(u)}),t}function iS(e,t){e.forEach(r=>{const o=r.loaderCallbacks;o&&(r.loaderCallbacks=o.filter(n=>n.id!==t))})}function nj(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const o=e.provider,n=e.prefix;t.forEach(i=>{const a=i.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==n)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:o,prefix:n,name:c});else if(e.missing.has(c))a.missing.push({provider:o,prefix:n,name:c});else return r=!0,!0;return!1}),a.pending.length!==l&&(r||iS([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let ij=0;function aj(e,t,r){const o=ij++,n=iS.bind(null,r,o);if(!t.pending.length)return n;const i={id:o,icons:t,callback:e,abort:n};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),n}function lj(e,t=!0,r=!1){const o=[];return e.forEach(n=>{const i=typeof n=="string"?Gc(n,t,r):n;i&&o.push(i)}),o}var sj={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function cj(e,t,r,o){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const _=Math.floor(Math.random()*C.length);a.push(C[_]),C=C.slice(0,_).concat(C.slice(_+1))}a=a.concat(C)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let s="pending",c=0,d,u=null,f=[],p=[];typeof o=="function"&&p.push(o);function h(){u&&(clearTimeout(u),u=null)}function v(){s==="pending"&&(s="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function g(C,_){_&&(p=[]),typeof C=="function"&&p.push(C)}function m(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:g,abort:v}}function x(){s="failed",p.forEach(C=>{C(void 0,d)})}function b(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function y(C,_,k){const R=_!=="success";switch(f=f.filter(A=>A!==C),s){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(_==="abort"){d=k,x();return}if(R){d=k,f.length||(a.length?E():x());return}if(h(),b(),!e.random){const A=e.resources.indexOf(C.resource);A!==-1&&A!==e.index&&(e.index=A)}s="completed",p.forEach(A=>{A(k)})}function E(){if(s!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){u=setTimeout(()=>{h(),s==="pending"&&(b(),x())},e.timeout);return}x();return}const _={status:"pending",resource:C,callback:(k,R)=>{y(_,k,R)}};f.push(_),c++,u=setTimeout(E,e.rotate),r(C,t,_.callback)}return setTimeout(E),m}function aS(e){const t={...sj,...e};let r=[];function o(){r=r.filter(l=>l().status==="pending")}function n(l,s,c){const d=cj(t,l,s,(u,f)=>{o(),c&&c(u,f)});return r.push(d),d}function i(l){return r.find(s=>l(s))||null}return{query:n,find:i,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:o}}function im(){}const du=Object.create(null);function dj(e){if(!du[e]){const t=zh(e);if(!t)return;const r=aS(t),o={config:t,redundancy:r};du[e]=o}return du[e]}function uj(e,t,r){let o,n;if(typeof e=="string"){const i=qf(e);if(!i)return r(void 0,424),im;n=i.send;const a=dj(e);a&&(o=a.redundancy)}else{const i=Dh(e);if(i){o=aS(i);const a=e.resources?e.resources[0]:"",l=qf(a);l&&(n=l.send)}}return!o||!n?(r(void 0,424),im):o.query(t,n,r)().abort}const am="iconify2",Al="iconify",lS=Al+"-count",lm=Al+"-version",sS=36e5,fj=168,hj=50;function Gf(e,t){try{return e.getItem(t)}catch{}}function Mh(e,t,r){try{return e.setItem(t,r),!0}catch{}}function sm(e,t){try{e.removeItem(t)}catch{}}function Xf(e,t){return Mh(e,lS,t.toString())}function Yf(e){return parseInt(Gf(e,lS))||0}const Yc={local:!0,session:!0},cS={local:new Set,session:new Set};let Nh=!1;function pj(e){Nh=e}let Cs=typeof window>"u"?{}:window;function dS(e){const t=e+"Storage";try{if(Cs&&Cs[t]&&typeof Cs[t].length=="number")return Cs[t]}catch{}Yc[e]=!1}function uS(e,t){const r=dS(e);if(!r)return;const o=Gf(r,lm);if(o!==am){if(o){const l=Yf(r);for(let s=0;s{const s=Al+l.toString(),c=Gf(r,s);if(typeof c=="string"){try{const d=JSON.parse(c);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>n&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,l))return!0}catch{}sm(r,s)}};let a=Yf(r);for(let l=a-1;l>=0;l--)i(l)||(l===a-1?(a--,Xf(r,a)):cS[e].add(l))}function fS(){if(!Nh){pj(!0);for(const e in Yc)uS(e,t=>{const r=t.data,o=t.provider,n=r.prefix,i=gi(o,n);if(!$h(i,r).length)return!1;const a=r.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function vj(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const o in Yc)uS(o,n=>{const i=n.data;return n.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function gj(e,t){Nh||fS();function r(o){let n;if(!Yc[o]||!(n=dS(o)))return;const i=cS[o];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Yf(n),a>=hj||!Xf(n,a+1))return;const l={cached:Math.floor(Date.now()/sS),provider:e.provider,data:t};return Mh(n,Al+a.toString(),JSON.stringify(l))}t.lastModified&&!vj(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function cm(){}function mj(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,nj(e)}))}function bj(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:o}=e,n=e.iconsToLoad;delete e.iconsToLoad;let i;if(!n||!(i=qf(r)))return;i.prepare(r,o,n).forEach(l=>{uj(r,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=$h(e,s);if(!c.length)return;const d=e.pendingIcons;d&&c.forEach(u=>{d.delete(u)}),gj(e,s)}catch(c){console.error(c)}mj(e)})})}))}const xj=(e,t)=>{const r=lj(e,!0,rS()),o=oj(r);if(!o.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(o.loaded,o.missing,o.pending,cm)}),()=>{s=!1}}const n=Object.create(null),i=[];let a,l;return o.pending.forEach(s=>{const{provider:c,prefix:d}=s;if(d===l&&c===a)return;a=c,l=d,i.push(gi(c,d));const u=n[c]||(n[c]=Object.create(null));u[d]||(u[d]=[])}),o.pending.forEach(s=>{const{provider:c,prefix:d,name:u}=s,f=gi(c,d),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(u)||(p.add(u),n[c][d].push(u))}),i.forEach(s=>{const{provider:c,prefix:d}=s;n[c][d].length&&bj(s,n[c][d])}),t?aj(t,o,i):cm};function yj(e,t){const r={...e};for(const o in t){const n=t[o],i=typeof n;o in oS?(n===null||n&&(i==="string"||i==="number"))&&(r[o]=n):i===typeof r[o]&&(r[o]=o==="rotate"?n%4:n)}return r}const Cj=/[\s,]+/;function wj(e,t){t.split(Cj).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Sj(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function o(n){for(;n<0;)n+=4;return n%4}if(r===""){const n=parseInt(e);return isNaN(n)?0:o(n)}else if(r!==e){let n=0;switch(r){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/n,i%1===0?o(i):0)}}return t}function _j(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)r+=" "+o+'="'+t[o]+'"';return'"+e+" "}function Ej(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/ /g,"%3E").replace(/\s+/g," ")}function kj(e){return"data:image/svg+xml,"+Ej(e)}function Pj(e){return'url("'+kj(e)+'")'}const dm={...nS,inline:!1},Tj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Rj={display:"inline-block"},Zf={backgroundColor:"currentColor"},hS={backgroundColor:"transparent"},um={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},fm={webkitMask:Zf,mask:Zf,background:hS};for(const e in fm){const t=fm[e];for(const r in um)t[e+r]=um[r]}const Is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Is[e+"-flip"]=t,Is[e.slice(0,1)+"-flip"]=t,Is[e+"Flip"]=t});function hm(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const pm=(e,t)=>{const r=yj(dm,t),o={...Tj},n=t.mode||"svg",i={},a=t.style,l=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const g=t[v];if(g!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[v]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&wj(r,g);break;case"color":i.color=g;break;case"rotate":typeof g=="string"?r[v]=Sj(g):typeof g=="number"&&(r[v]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete o["aria-hidden"];break;default:{const m=Is[v];m?(g===!0||g==="true"||g===1)&&(r[m]=!0):dm[v]===void 0&&(o[v]=g)}}}const s=WH(e,r),c=s.attributes;if(r.inline&&(i.verticalAlign="-0.125em"),n==="svg"){o.style={...i,...l},Object.assign(o,c);let v=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),o.innerHTML=qH(s.body,g?()=>g+"ID"+v++:"iconifyVue"),w("svg",o)}const{body:d,width:u,height:f}=e,p=n==="mask"||(n==="bg"?!1:d.indexOf("currentColor")!==-1),h=_j(d,{...c,width:u+"",height:f+""});return o.style={...i,"--svg":Pj(h),width:hm(c.width),height:hm(c.height),...Rj,...p?Zf:hS,...l},w("span",o)};rS(!0);GH("",rj);if(typeof document<"u"&&typeof window<"u"){fS();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!DH(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const o="IconifyProviders["+r+"] is invalid.";try{const n=t[r];if(typeof n!="object"||!n||n.resources===void 0)continue;XH(r,n)||console.error(o)}catch{console.error(o)}}}}const Aj={...Xc,body:""},Fj=be({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=Gc(e,!1,!0))===null)return this.abortLoading(),null;const o=IH(r);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:xj([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const n=["iconify"];return r.prefix!==""&&n.push("iconify--"+r.prefix),r.provider!==""&&n.push("iconify--"+r.provider),{data:o,classes:n}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return pm(Aj,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),pm({...Xc,...t.data},r)}}),vm=be({__name:"index",props:{icon:{}},setup(e){const t=PE(),r=j(()=>({class:t.class||"",style:t.style||""}));return(o,n)=>(ct(),Er(pe(Fj),jr({icon:o.icon||""},r.value),null,16,["icon"]))}});var Oj=!1;/*!
+ * pinia v2.1.7
+ * (c) 2023 Eduardo San Martin Morote
+ * @license MIT
+ */let pS;const Zc=e=>pS=e,vS=Symbol();function Jf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ol;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ol||(ol={}));function Bj(){const e=_0(!0),t=e.run(()=>U({}));let r=[],o=[];const n=sl({install(i){Zc(n),n._a=i,i.provide(vS,n),i.config.globalProperties.$pinia=n,o.forEach(a=>r.push(a)),o=[]},use(i){return!this._a&&!Oj?o.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return n}const gS=()=>{};function gm(e,t,r,o=gS){e.push(t);const n=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!r&&E0()&&Tx(n),n}function zi(e,...t){e.slice().forEach(r=>{r(...t)})}const Ij=e=>e();function Qf(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,o)=>e.set(o,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const o=t[r],n=e[r];Jf(n)&&Jf(o)&&e.hasOwnProperty(r)&&!Gt(o)&&!Pn(o)?e[r]=Qf(n,o):e[r]=o}return e}const $j=Symbol();function Dj(e){return!Jf(e)||!e.hasOwnProperty($j)}const{assign:xn}=Object;function Lj(e){return!!(Gt(e)&&e.effect)}function zj(e,t,r,o){const{state:n,actions:i,getters:a}=t,l=r.state.value[e];let s;function c(){l||(r.state.value[e]=n?n():{});const d=eE(r.state.value[e]);return xn(d,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=sl(j(()=>{Zc(r);const p=r._s.get(e);return a[f].call(p,p)})),u),{}))}return s=mS(e,c,t,r,o,!0),s}function mS(e,t,r={},o,n,i){let a;const l=xn({actions:{}},r),s={deep:!0};let c,d,u=[],f=[],p;const h=o.state.value[e];!i&&!h&&(o.state.value[e]={}),U({});let v;function g(k){let R;c=d=!1,typeof k=="function"?(k(o.state.value[e]),R={type:ol.patchFunction,storeId:e,events:p}):(Qf(o.state.value[e],k),R={type:ol.patchObject,payload:k,storeId:e,events:p});const A=v=Symbol();Bt().then(()=>{v===A&&(c=!0)}),d=!0,zi(u,R,o.state.value[e])}const m=i?function(){const{state:R}=r,A=R?R():{};this.$patch(B=>{xn(B,A)})}:gS;function x(){a.stop(),u=[],f=[],o._s.delete(e)}function b(k,R){return function(){Zc(o);const A=Array.from(arguments),B=[],S=[];function P(H){B.push(H)}function F(H){S.push(H)}zi(f,{args:A,name:k,store:E,after:P,onError:F});let T;try{T=R.apply(this&&this.$id===e?this:E,A)}catch(H){throw zi(S,H),H}return T instanceof Promise?T.then(H=>(zi(B,H),H)).catch(H=>(zi(S,H),Promise.reject(H))):(zi(B,T),T)}}const y={_p:o,$id:e,$onAction:gm.bind(null,f),$patch:g,$reset:m,$subscribe(k,R={}){const A=gm(u,k,R.detached,()=>B()),B=a.run(()=>lt(()=>o.state.value[e],S=>{(R.flush==="sync"?d:c)&&k({storeId:e,type:ol.direct,events:p},S)},xn({},s,R)));return A},$dispose:x},E=Lo(y);o._s.set(e,E);const _=(o._a&&o._a.runWithContext||Ij)(()=>o._e.run(()=>(a=_0()).run(t)));for(const k in _){const R=_[k];if(Gt(R)&&!Lj(R)||Pn(R))i||(h&&Dj(R)&&(Gt(R)?R.value=h[k]:Qf(R,h[k])),o.state.value[e][k]=R);else if(typeof R=="function"){const A=b(k,R);_[k]=A,l.actions[k]=R}}return xn(E,_),xn(mt(E),_),Object.defineProperty(E,"$state",{get:()=>o.state.value[e],set:k=>{g(R=>{xn(R,k)})}}),o._p.forEach(k=>{xn(E,a.run(()=>k({store:E,app:o._a,pinia:o,options:l})))}),h&&i&&r.hydrate&&r.hydrate(E.$state,h),c=!0,d=!0,E}function ya(e,t,r){let o,n;const i=typeof t=="function";typeof e=="string"?(o=e,n=i?r:t):(n=e,o=e.id);function a(l,s){const c=DE();return l=l||(c?De(vS,null):null),l&&Zc(l),l=pS,l._s.has(o)||(i?mS(o,t,n,l):zj(o,n,l)),l._s.get(o)}return a.$id=o,a}function xZ(e){{e=mt(e);const t={};for(const r in e){const o=e[r];(Gt(o)||Pn(o))&&(t[r]=Re(e,r))}return t}}const Hh=Bj();function bS(e){const{expire:r}=Object.assign({expire:604800},e);function o(l,s){const c={data:s,expire:r!==null?new Date().getTime()+r*1e3:null},d=JSON.stringify(c);window.localStorage.setItem(l,d)}function n(l){const s=window.localStorage.getItem(l);if(s){let c=null;try{c=JSON.parse(s)}catch{}if(c){const{data:d,expire:u}=c;if(u===null||u>=Date.now())return d}return i(l),null}}function i(l){window.localStorage.removeItem(l)}function a(){window.localStorage.clear()}return{set:o,get:n,remove:i,clear:a}}bS();const Xt=bS({expire:null}),xS="appSetting",Mj={en:"en-US","en-US":"en-US",es:"es-ES","es-ES":"es-ES",ko:"ko-KR","ko-KR":"ko-KR",ru:"ru-RU","ru-RU":"ru-RU",vi:"vi-VN","vi-VN":"vi-VN",zh:"zh-CN","zh-CN":"zh-CN","zh-TW":"zh-TW"};function Nj(){return{siderCollapsed:!1,theme:"light",language:Mj["zh-CN"]}}function Hj(){const e=Xt.get(xS);return e&&(e.language="zh-CN"),{...Nj(),...e}}function jj(e){Xt.set(xS,e)}const Jc=ya("app-store",{state:()=>Hj(),actions:{setSiderCollapsed(e){this.siderCollapsed=e,this.recordState()},setTheme(e){this.theme=e,this.recordState()},setLanguage(e){this.language!==e&&(this.language=e,this.recordState())},recordState(){jj(this.$state)}}});function Wj(){return Jc(Hh)}/*!
+ * shared v9.13.1
+ * (c) 2024 kazuya kawaguchi
+ * Released under the MIT License.
+ */const ac=typeof window<"u",jn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Vj=(e,t,r)=>Uj({l:e,k:t,s:r}),Uj=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ir=e=>typeof e=="number"&&isFinite(e),Kj=e=>CS(e)==="[object Date]",Dn=e=>CS(e)==="[object RegExp]",Qc=e=>it(e)&&Object.keys(e).length===0,gr=Object.assign;let mm;const Xo=()=>mm||(mm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bm(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const qj=Object.prototype.hasOwnProperty;function lc(e,t){return qj.call(e,t)}const Ht=Array.isArray,Dt=e=>typeof e=="function",Ne=e=>typeof e=="string",ht=e=>typeof e=="boolean",Pt=e=>e!==null&&typeof e=="object",Gj=e=>Pt(e)&&Dt(e.then)&&Dt(e.catch),yS=Object.prototype.toString,CS=e=>yS.call(e),it=e=>{if(!Pt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Xj=e=>e==null?"":Ht(e)||it(e)&&e.toString===yS?JSON.stringify(e,null,2):String(e);function Yj(e,t=""){return e.reduce((r,o,n)=>n===0?r+o:r+t+o,"")}function ed(e){let t=e;return()=>++t}function Zj(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ws=e=>!Pt(e)||Ht(e);function $s(e,t){if(ws(e)||ws(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:o,des:n}=r.pop();Object.keys(o).forEach(i=>{ws(o[i])||ws(n[i])?n[i]=o[i]:r.push({src:o[i],des:n[i]})})}}/*!
+ * message-compiler v9.13.1
+ * (c) 2024 kazuya kawaguchi
+ * Released under the MIT License.
+ */function Jj(e,t,r){return{line:e,column:t,offset:r}}function sc(e,t,r){const o={start:e,end:t};return r!=null&&(o.source=r),o}const Qj=/\{([0-9a-zA-Z]+)\}/g;function wS(e,...t){return t.length===1&&eW(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Qj,(r,o)=>t.hasOwnProperty(o)?t[o]:"")}const SS=Object.assign,xm=e=>typeof e=="string",eW=e=>e!==null&&typeof e=="object";function _S(e,t=""){return e.reduce((r,o,n)=>n===0?r+o:r+t+o,"")}const jh={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},tW={[jh.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function rW(e,t,...r){const o=wS(tW[e]||"",...r||[]),n={message:String(o),code:e};return t&&(n.location=t),n}const tt={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},oW={[tt.EXPECTED_TOKEN]:"Expected token: '{0}'",[tt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[tt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[tt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[tt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[tt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[tt.EMPTY_PLACEHOLDER]:"Empty placeholder",[tt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[tt.INVALID_LINKED_FORMAT]:"Invalid linked format",[tt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[tt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[tt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[tt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[tt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[tt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ca(e,t,r={}){const{domain:o,messages:n,args:i}=r,a=wS((n||oW)[e]||"",...i||[]),l=new SyntaxError(String(a));return l.code=e,t&&(l.location=t),l.domain=o,l}function nW(e){throw e}const Vo=" ",iW="\r",_r=`
+`,aW=String.fromCharCode(8232),lW=String.fromCharCode(8233);function sW(e){const t=e;let r=0,o=1,n=1,i=0;const a=_=>t[_]===iW&&t[_+1]===_r,l=_=>t[_]===_r,s=_=>t[_]===lW,c=_=>t[_]===aW,d=_=>a(_)||l(_)||s(_)||c(_),u=()=>r,f=()=>o,p=()=>n,h=()=>i,v=_=>a(_)||s(_)||c(_)?_r:t[_],g=()=>v(r),m=()=>v(r+i);function x(){return i=0,d(r)&&(o++,n=0),a(r)&&r++,r++,n++,t[r]}function b(){return a(r+i)&&i++,i++,t[r+i]}function y(){r=0,o=1,n=1,i=0}function E(_=0){i=_}function C(){const _=r+i;for(;_!==r;)x();i=0}return{index:u,line:f,column:p,peekOffset:h,charAt:v,currentChar:g,currentPeek:m,next:x,peek:b,reset:y,resetPeek:E,skipToPeek:C}}const pn=void 0,cW=".",ym="'",dW="tokenizer";function uW(e,t={}){const r=t.location!==!1,o=sW(e),n=()=>o.index(),i=()=>Jj(o.line(),o.column(),o.index()),a=i(),l=n(),s={currentType:14,offset:l,startLoc:a,endLoc:a,lastType:14,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:d}=t;function u(O,$,V,...ie){const ne=c();if($.column+=V,$.offset+=V,d){const ae=r?sc(ne.startLoc,$):null,oe=Ca(O,ae,{domain:dW,args:ie});d(oe)}}function f(O,$,V){O.endLoc=i(),O.currentType=$;const ie={type:$};return r&&(ie.loc=sc(O.startLoc,O.endLoc)),V!=null&&(ie.value=V),ie}const p=O=>f(O,14);function h(O,$){return O.currentChar()===$?(O.next(),$):(u(tt.EXPECTED_TOKEN,i(),0,$),"")}function v(O){let $="";for(;O.currentPeek()===Vo||O.currentPeek()===_r;)$+=O.currentPeek(),O.peek();return $}function g(O){const $=v(O);return O.skipToPeek(),$}function m(O){if(O===pn)return!1;const $=O.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$===95}function x(O){if(O===pn)return!1;const $=O.charCodeAt(0);return $>=48&&$<=57}function b(O,$){const{currentType:V}=$;if(V!==2)return!1;v(O);const ie=m(O.currentPeek());return O.resetPeek(),ie}function y(O,$){const{currentType:V}=$;if(V!==2)return!1;v(O);const ie=O.currentPeek()==="-"?O.peek():O.currentPeek(),ne=x(ie);return O.resetPeek(),ne}function E(O,$){const{currentType:V}=$;if(V!==2)return!1;v(O);const ie=O.currentPeek()===ym;return O.resetPeek(),ie}function C(O,$){const{currentType:V}=$;if(V!==8)return!1;v(O);const ie=O.currentPeek()===".";return O.resetPeek(),ie}function _(O,$){const{currentType:V}=$;if(V!==9)return!1;v(O);const ie=m(O.currentPeek());return O.resetPeek(),ie}function k(O,$){const{currentType:V}=$;if(!(V===8||V===12))return!1;v(O);const ie=O.currentPeek()===":";return O.resetPeek(),ie}function R(O,$){const{currentType:V}=$;if(V!==10)return!1;const ie=()=>{const ae=O.currentPeek();return ae==="{"?m(O.peek()):ae==="@"||ae==="%"||ae==="|"||ae===":"||ae==="."||ae===Vo||!ae?!1:ae===_r?(O.peek(),ie()):S(O,!1)},ne=ie();return O.resetPeek(),ne}function A(O){v(O);const $=O.currentPeek()==="|";return O.resetPeek(),$}function B(O){const $=v(O),V=O.currentPeek()==="%"&&O.peek()==="{";return O.resetPeek(),{isModulo:V,hasSpace:$.length>0}}function S(O,$=!0){const V=(ne=!1,ae="",oe=!1)=>{const he=O.currentPeek();return he==="{"?ae==="%"?!1:ne:he==="@"||!he?ae==="%"?!0:ne:he==="%"?(O.peek(),V(ne,"%",!0)):he==="|"?ae==="%"||oe?!0:!(ae===Vo||ae===_r):he===Vo?(O.peek(),V(!0,Vo,oe)):he===_r?(O.peek(),V(!0,_r,oe)):!0},ie=V();return $&&O.resetPeek(),ie}function P(O,$){const V=O.currentChar();return V===pn?pn:$(V)?(O.next(),V):null}function F(O){const $=O.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36}function T(O){return P(O,F)}function H(O){const $=O.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36||$===45}function N(O){return P(O,H)}function W(O){const $=O.charCodeAt(0);return $>=48&&$<=57}function re(O){return P(O,W)}function ee(O){const $=O.charCodeAt(0);return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102}function L(O){return P(O,ee)}function M(O){let $="",V="";for(;$=re(O);)V+=$;return V}function G(O){g(O);const $=O.currentChar();return $!=="%"&&u(tt.EXPECTED_TOKEN,i(),0,$),O.next(),"%"}function J(O){let $="";for(;;){const V=O.currentChar();if(V==="{"||V==="}"||V==="@"||V==="|"||!V)break;if(V==="%")if(S(O))$+=V,O.next();else break;else if(V===Vo||V===_r)if(S(O))$+=V,O.next();else{if(A(O))break;$+=V,O.next()}else $+=V,O.next()}return $}function ge(O){g(O);let $="",V="";for(;$=N(O);)V+=$;return O.currentChar()===pn&&u(tt.UNTERMINATED_CLOSING_BRACE,i(),0),V}function ve(O){g(O);let $="";return O.currentChar()==="-"?(O.next(),$+=`-${M(O)}`):$+=M(O),O.currentChar()===pn&&u(tt.UNTERMINATED_CLOSING_BRACE,i(),0),$}function te(O){return O!==ym&&O!==_r}function ce(O){g(O),h(O,"'");let $="",V="";for(;$=P(O,te);)$==="\\"?V+=X(O):V+=$;const ie=O.currentChar();return ie===_r||ie===pn?(u(tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ie===_r&&(O.next(),h(O,"'")),V):(h(O,"'"),V)}function X(O){const $=O.currentChar();switch($){case"\\":case"'":return O.next(),`\\${$}`;case"u":return le(O,$,4);case"U":return le(O,$,6);default:return u(tt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,$),""}}function le(O,$,V){h(O,$);let ie="";for(let ne=0;ne{const ie=O.currentChar();return ie==="{"||ie==="%"||ie==="@"||ie==="|"||ie==="("||ie===")"||!ie||ie===Vo?V:(V+=ie,O.next(),$(V))};return $("")}function q(O){g(O);const $=h(O,"|");return g(O),$}function ue(O,$){let V=null;switch(O.currentChar()){case"{":return $.braceNest>=1&&u(tt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),O.next(),V=f($,2,"{"),g(O),$.braceNest++,V;case"}":return $.braceNest>0&&$.currentType===2&&u(tt.EMPTY_PLACEHOLDER,i(),0),O.next(),V=f($,3,"}"),$.braceNest--,$.braceNest>0&&g(O),$.inLinked&&$.braceNest===0&&($.inLinked=!1),V;case"@":return $.braceNest>0&&u(tt.UNTERMINATED_CLOSING_BRACE,i(),0),V=se(O,$)||p($),$.braceNest=0,V;default:{let ne=!0,ae=!0,oe=!0;if(A(O))return $.braceNest>0&&u(tt.UNTERMINATED_CLOSING_BRACE,i(),0),V=f($,1,q(O)),$.braceNest=0,$.inLinked=!1,V;if($.braceNest>0&&($.currentType===5||$.currentType===6||$.currentType===7))return u(tt.UNTERMINATED_CLOSING_BRACE,i(),0),$.braceNest=0,me(O,$);if(ne=b(O,$))return V=f($,5,ge(O)),g(O),V;if(ae=y(O,$))return V=f($,6,ve(O)),g(O),V;if(oe=E(O,$))return V=f($,7,ce(O)),g(O),V;if(!ne&&!ae&&!oe)return V=f($,13,_e(O)),u(tt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,V.value),g(O),V;break}}return V}function se(O,$){const{currentType:V}=$;let ie=null;const ne=O.currentChar();switch((V===8||V===9||V===12||V===10)&&(ne===_r||ne===Vo)&&u(tt.INVALID_LINKED_FORMAT,i(),0),ne){case"@":return O.next(),ie=f($,8,"@"),$.inLinked=!0,ie;case".":return g(O),O.next(),f($,9,".");case":":return g(O),O.next(),f($,10,":");default:return A(O)?(ie=f($,1,q(O)),$.braceNest=0,$.inLinked=!1,ie):C(O,$)||k(O,$)?(g(O),se(O,$)):_(O,$)?(g(O),f($,12,D(O))):R(O,$)?(g(O),ne==="{"?ue(O,$)||ie:f($,11,I(O))):(V===8&&u(tt.INVALID_LINKED_FORMAT,i(),0),$.braceNest=0,$.inLinked=!1,me(O,$))}}function me(O,$){let V={type:14};if($.braceNest>0)return ue(O,$)||p($);if($.inLinked)return se(O,$)||p($);switch(O.currentChar()){case"{":return ue(O,$)||p($);case"}":return u(tt.UNBALANCED_CLOSING_BRACE,i(),0),O.next(),f($,3,"}");case"@":return se(O,$)||p($);default:{if(A(O))return V=f($,1,q(O)),$.braceNest=0,$.inLinked=!1,V;const{isModulo:ne,hasSpace:ae}=B(O);if(ne)return ae?f($,0,J(O)):f($,4,G(O));if(S(O))return f($,0,J(O));break}}return V}function Ce(){const{currentType:O,offset:$,startLoc:V,endLoc:ie}=s;return s.lastType=O,s.lastOffset=$,s.lastStartLoc=V,s.lastEndLoc=ie,s.offset=n(),s.startLoc=i(),o.currentChar()===pn?f(s,14):me(o,s)}return{nextToken:Ce,currentOffset:n,currentPosition:i,context:c}}const fW="parser",hW=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pW(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||r,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function vW(e={}){const t=e.location!==!1,{onError:r,onWarn:o}=e;function n(b,y,E,C,..._){const k=b.currentPosition();if(k.offset+=C,k.column+=C,r){const R=t?sc(E,k):null,A=Ca(y,R,{domain:fW,args:_});r(A)}}function i(b,y,E,C,..._){const k=b.currentPosition();if(k.offset+=C,k.column+=C,o){const R=t?sc(E,k):null;o(rW(y,R,_))}}function a(b,y,E){const C={type:b};return t&&(C.start=y,C.end=y,C.loc={start:E,end:E}),C}function l(b,y,E,C){C&&(b.type=C),t&&(b.end=y,b.loc&&(b.loc.end=E))}function s(b,y){const E=b.context(),C=a(3,E.offset,E.startLoc);return C.value=y,l(C,b.currentOffset(),b.currentPosition()),C}function c(b,y){const E=b.context(),{lastOffset:C,lastStartLoc:_}=E,k=a(5,C,_);return k.index=parseInt(y,10),b.nextToken(),l(k,b.currentOffset(),b.currentPosition()),k}function d(b,y,E){const C=b.context(),{lastOffset:_,lastStartLoc:k}=C,R=a(4,_,k);return R.key=y,E===!0&&(R.modulo=!0),b.nextToken(),l(R,b.currentOffset(),b.currentPosition()),R}function u(b,y){const E=b.context(),{lastOffset:C,lastStartLoc:_}=E,k=a(9,C,_);return k.value=y.replace(hW,pW),b.nextToken(),l(k,b.currentOffset(),b.currentPosition()),k}function f(b){const y=b.nextToken(),E=b.context(),{lastOffset:C,lastStartLoc:_}=E,k=a(8,C,_);return y.type!==12?(n(b,tt.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),k.value="",l(k,C,_),{nextConsumeToken:y,node:k}):(y.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,no(y)),k.value=y.value||"",l(k,b.currentOffset(),b.currentPosition()),{node:k})}function p(b,y){const E=b.context(),C=a(7,E.offset,E.startLoc);return C.value=y,l(C,b.currentOffset(),b.currentPosition()),C}function h(b){const y=b.context(),E=a(6,y.offset,y.startLoc);let C=b.nextToken();if(C.type===9){const _=f(b);E.modifier=_.node,C=_.nextConsumeToken||b.nextToken()}switch(C.type!==10&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(C)),C=b.nextToken(),C.type===2&&(C=b.nextToken()),C.type){case 11:C.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(C)),E.key=p(b,C.value||"");break;case 5:C.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(C)),E.key=d(b,C.value||"");break;case 6:C.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(C)),E.key=c(b,C.value||"");break;case 7:C.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(C)),E.key=u(b,C.value||"");break;default:{n(b,tt.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const _=b.context(),k=a(7,_.offset,_.startLoc);return k.value="",l(k,_.offset,_.startLoc),E.key=k,l(E,_.offset,_.startLoc),{nextConsumeToken:C,node:E}}}return l(E,b.currentOffset(),b.currentPosition()),{node:E}}function v(b){const y=b.context(),E=y.currentType===1?b.currentOffset():y.offset,C=y.currentType===1?y.endLoc:y.startLoc,_=a(2,E,C);_.items=[];let k=null,R=null;do{const S=k||b.nextToken();switch(k=null,S.type){case 0:S.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(S)),_.items.push(s(b,S.value||""));break;case 6:S.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(S)),_.items.push(c(b,S.value||""));break;case 4:R=!0;break;case 5:S.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(S)),_.items.push(d(b,S.value||"",!!R)),R&&(i(b,jh.USE_MODULO_SYNTAX,y.lastStartLoc,0,no(S)),R=null);break;case 7:S.value==null&&n(b,tt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,no(S)),_.items.push(u(b,S.value||""));break;case 8:{const P=h(b);_.items.push(P.node),k=P.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const A=y.currentType===1?y.lastOffset:b.currentOffset(),B=y.currentType===1?y.lastEndLoc:b.currentPosition();return l(_,A,B),_}function g(b,y,E,C){const _=b.context();let k=C.items.length===0;const R=a(1,y,E);R.cases=[],R.cases.push(C);do{const A=v(b);k||(k=A.items.length===0),R.cases.push(A)}while(_.currentType!==14);return k&&n(b,tt.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),l(R,b.currentOffset(),b.currentPosition()),R}function m(b){const y=b.context(),{offset:E,startLoc:C}=y,_=v(b);return y.currentType===14?_:g(b,E,C,_)}function x(b){const y=uW(b,SS({},e)),E=y.context(),C=a(0,E.offset,E.startLoc);return t&&C.loc&&(C.loc.source=b),C.body=m(y),e.onCacheKey&&(C.cacheKey=e.onCacheKey(b)),E.currentType!==14&&n(y,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,b[E.offset]||""),l(C,y.currentOffset(),y.currentPosition()),C}return{parse:x}}function no(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 gW(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function Cm(e,t){for(let r=0;rwm(r)),e}function wm(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 r=0;rl;function c(g,m){l.code+=g}function d(g,m=!0){const x=m?n:"";c(i?x+" ".repeat(g):x)}function u(g=!0){const m=++l.indentLevel;g&&d(m)}function f(g=!0){const m=--l.indentLevel;g&&d(m)}function p(){d(l.indentLevel)}return{context:s,push:c,indent:u,deindent:f,newline:p,helper:g=>`_${g}`,needIndent:()=>l.needIndent}}function wW(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),ta(e,t.key),t.modifier?(e.push(", "),ta(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function SW(e,t){const{helper:r,needIndent:o}=e;e.push(`${r("normalize")}([`),e.indent(o());const n=t.items.length;for(let i=0;i1){e.push(`${r("plural")}([`),e.indent(o());const n=t.cases.length;for(let i=0;i{const r=xm(t.mode)?t.mode:"normal",o=xm(t.filename)?t.filename:"message.intl",n=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
+`,a=t.needIndent?t.needIndent:r!=="arrow",l=e.helpers||[],s=CW(e,{mode:r,filename:o,sourceMap:n,breakLineCode:i,needIndent:a});s.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(a),l.length>0&&(s.push(`const { ${_S(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),s.newline()),s.push("return "),ta(s,e),s.deindent(a),s.push("}"),delete e.helpers;const{code:c,map:d}=s.context();return{ast:e,code:c,map:d?d.toJSON():void 0}};function PW(e,t={}){const r=SS({},t),o=!!r.jit,n=!!r.minify,i=r.optimize==null?!0:r.optimize,l=vW(r).parse(e);return o?(i&&bW(l),n&&Hi(l),{ast:l,code:""}):(mW(l,r),kW(l,r))}/*!
+ * core-base v9.13.1
+ * (c) 2024 kazuya kawaguchi
+ * Released under the MIT License.
+ */function TW(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Xo().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Xo().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Xo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Wn=[];Wn[0]={w:[0],i:[3,0],"[":[4],o:[7]};Wn[1]={w:[1],".":[2],"[":[4],o:[7]};Wn[2]={w:[2],i:[3,0],0:[3,0]};Wn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Wn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Wn[5]={"'":[4,0],o:8,l:[5,0]};Wn[6]={'"':[4,0],o:8,l:[6,0]};const RW=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function AW(e){return RW.test(e)}function FW(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function OW(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 BW(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:AW(t)?FW(t):"*"+t}function IW(e){const t=[];let r=-1,o=0,n=0,i,a,l,s,c,d,u;const f=[];f[0]=()=>{a===void 0?a=l:a+=l},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),n++},f[3]=()=>{if(n>0)n--,o=4,f[0]();else{if(n=0,a===void 0||(a=BW(a),a===!1))return!1;f[1]()}};function p(){const h=e[r+1];if(o===5&&h==="'"||o===6&&h==='"')return r++,l="\\"+h,f[0](),!0}for(;o!==null;)if(r++,i=e[r],!(i==="\\"&&p())){if(s=OW(i),u=Wn[o],c=u[s]||u.l||8,c===8||(o=c[0],c[1]!==void 0&&(d=f[c[1]],d&&(l=i,d()===!1))))return;if(o===7)return t}}const Sm=new Map;function $W(e,t){return Pt(e)?e[t]:null}function DW(e,t){if(!Pt(e))return null;let r=Sm.get(t);if(r||(r=IW(t),r&&Sm.set(t,r)),!r)return null;const o=r.length;let n=e,i=0;for(;ie,zW=e=>"",MW="text",NW=e=>e.length===0?"":Yj(e),HW=Xj;function _m(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function jW(e){const t=ir(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ir(e.named.count)||ir(e.named.n))?ir(e.named.count)?e.named.count:ir(e.named.n)?e.named.n:t:t}function WW(e,t){t.count||(t.count=e),t.n||(t.n=e)}function VW(e={}){const t=e.locale,r=jW(e),o=Pt(e.pluralRules)&&Ne(t)&&Dt(e.pluralRules[t])?e.pluralRules[t]:_m,n=Pt(e.pluralRules)&&Ne(t)&&Dt(e.pluralRules[t])?_m:void 0,i=m=>m[o(r,m.length,n)],a=e.list||[],l=m=>a[m],s=e.named||{};ir(e.pluralIndex)&&WW(r,s);const c=m=>s[m];function d(m){const x=Dt(e.messages)?e.messages(m):Pt(e.messages)?e.messages[m]:!1;return x||(e.parent?e.parent.message(m):zW)}const u=m=>e.modifiers?e.modifiers[m]:LW,f=it(e.processor)&&Dt(e.processor.normalize)?e.processor.normalize:NW,p=it(e.processor)&&Dt(e.processor.interpolate)?e.processor.interpolate:HW,h=it(e.processor)&&Ne(e.processor.type)?e.processor.type:MW,g={list:l,named:c,plural:i,linked:(m,...x)=>{const[b,y]=x;let E="text",C="";x.length===1?Pt(b)?(C=b.modifier||C,E=b.type||E):Ne(b)&&(C=b||C):x.length===2&&(Ne(b)&&(C=b||C),Ne(y)&&(E=y||E));const _=d(m)(g),k=E==="vnode"&&Ht(_)&&C?_[0]:_;return C?u(C)(k,E):k},message:d,type:h,interpolate:p,normalize:f,values:gr({},a,s)};return g}let Fl=null;function UW(e){Fl=e}function KW(e,t,r){Fl&&Fl.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const qW=GW("function:translate");function GW(e){return t=>Fl&&Fl.emit(e,t)}const ES=jh.__EXTEND_POINT__,Zn=ed(ES),XW={NOT_FOUND_KEY:ES,FALLBACK_TO_TRANSLATE:Zn(),CANNOT_FORMAT_NUMBER:Zn(),FALLBACK_TO_NUMBER_FORMAT:Zn(),CANNOT_FORMAT_DATE:Zn(),FALLBACK_TO_DATE_FORMAT:Zn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Zn(),__EXTEND_POINT__:Zn()},kS=tt.__EXTEND_POINT__,Jn=ed(kS),uo={INVALID_ARGUMENT:kS,INVALID_DATE_ARGUMENT:Jn(),INVALID_ISO_DATE_ARGUMENT:Jn(),NOT_SUPPORT_NON_STRING_MESSAGE:Jn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Jn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Jn(),NOT_SUPPORT_LOCALE_TYPE:Jn(),__EXTEND_POINT__:Jn()};function Ao(e){return Ca(e,null,void 0)}function Vh(e,t){return t.locale!=null?Em(t.locale):Em(e.locale)}let uu;function Em(e){if(Ne(e))return e;if(Dt(e)){if(e.resolvedOnce&&uu!=null)return uu;if(e.constructor.name==="Function"){const t=e();if(Gj(t))throw Ao(uo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return uu=t}else throw Ao(uo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ao(uo.NOT_SUPPORT_LOCALE_TYPE)}function YW(e,t,r){return[...new Set([r,...Ht(t)?t:Pt(t)?Object.keys(t):Ne(t)?[t]:[r]])]}function PS(e,t,r){const o=Ne(r)?r:ra,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let i=n.__localeChainCache.get(o);if(!i){i=[];let a=[r];for(;Ht(a);)a=km(i,a,t);const l=Ht(t)||!it(t)?t:t.default?t.default:null;a=Ne(l)?[l]:l,Ht(a)&&km(i,a,!1),n.__localeChainCache.set(o,i)}return i}function km(e,t,r){let o=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function eV(){return{upper:(e,t)=>t==="text"&&Ne(e)?e.toUpperCase():t==="vnode"&&Pt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ne(e)?e.toLowerCase():t==="vnode"&&Pt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ne(e)?Tm(e):t==="vnode"&&Pt(e)&&"__v_isVNode"in e?Tm(e.children):e}}let TS;function Rm(e){TS=e}let RS;function tV(e){RS=e}let AS;function rV(e){AS=e}let FS=null;const oV=e=>{FS=e},nV=()=>FS;let OS=null;const Am=e=>{OS=e},iV=()=>OS;let Fm=0;function aV(e={}){const t=Dt(e.onWarn)?e.onWarn:Zj,r=Ne(e.version)?e.version:QW,o=Ne(e.locale)||Dt(e.locale)?e.locale:ra,n=Dt(o)?ra:o,i=Ht(e.fallbackLocale)||it(e.fallbackLocale)||Ne(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,a=it(e.messages)?e.messages:{[n]:{}},l=it(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=it(e.numberFormats)?e.numberFormats:{[n]:{}},c=gr({},e.modifiers||{},eV()),d=e.pluralRules||{},u=Dt(e.missing)?e.missing:null,f=ht(e.missingWarn)||Dn(e.missingWarn)?e.missingWarn:!0,p=ht(e.fallbackWarn)||Dn(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,v=!!e.unresolving,g=Dt(e.postTranslation)?e.postTranslation:null,m=it(e.processor)?e.processor:null,x=ht(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,y=Dt(e.messageCompiler)?e.messageCompiler:TS,E=Dt(e.messageResolver)?e.messageResolver:RS||$W,C=Dt(e.localeFallbacker)?e.localeFallbacker:AS||YW,_=Pt(e.fallbackContext)?e.fallbackContext:void 0,k=e,R=Pt(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,A=Pt(k.__numberFormatters)?k.__numberFormatters:new Map,B=Pt(k.__meta)?k.__meta:{};Fm++;const S={version:r,cid:Fm,locale:o,fallbackLocale:i,messages:a,modifiers:c,pluralRules:d,missing:u,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:v,postTranslation:g,processor:m,warnHtmlMessage:x,escapeParameter:b,messageCompiler:y,messageResolver:E,localeFallbacker:C,fallbackContext:_,onWarn:t,__meta:B};return S.datetimeFormats=l,S.numberFormats=s,S.__datetimeFormatters=R,S.__numberFormatters=A,__INTLIFY_PROD_DEVTOOLS__&&KW(S,r,B),S}function Uh(e,t,r,o,n){const{missing:i,onWarn:a}=e;if(i!==null){const l=i(e,r,t,n);return Ne(l)?l:t}else return t}function Da(e,t,r){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function lV(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function sV(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let o=r+1;ocV(r,e)}function cV(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const o=r,n=o.c||o.cases;return e.plural(n.reduce((i,a)=>[...i,Om(e,a)],[]))}else return Om(e,r)}function Om(e,t){const r=t.s||t.static;if(r)return e.type==="text"?r:e.normalize([r]);{const o=(t.i||t.items).reduce((n,i)=>[...n,e0(e,i)],[]);return e.normalize(o)}}function e0(e,t){const r=t.t||t.type;switch(r){case 3:{const o=t;return o.v||o.value}case 9:{const o=t;return o.v||o.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index))}case 6:{const o=t,n=o.m||o.modifier;return e.linked(e0(e,o.k||o.key),n?e0(e,n):void 0,e.type)}case 7:{const o=t;return o.v||o.value}case 8:{const o=t;return o.v||o.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const BS=e=>e;let Wi=Object.create(null);const oa=e=>Pt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function IS(e,t={}){let r=!1;const o=t.onError||nW;return t.onError=n=>{r=!0,o(n)},{...PW(e,t),detectError:r}}const dV=(e,t)=>{if(!Ne(e))throw Ao(uo.NOT_SUPPORT_NON_STRING_MESSAGE);{ht(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||BS)(e),n=Wi[o];if(n)return n;const{code:i,detectError:a}=IS(e,t),l=new Function(`return ${i}`)();return a?l:Wi[o]=l}};function uV(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ne(e)){ht(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||BS)(e),n=Wi[o];if(n)return n;const{ast:i,detectError:a}=IS(e,{...t,location:!1,jit:!0}),l=fu(i);return a?l:Wi[o]=l}else{const r=e.cacheKey;if(r){const o=Wi[r];return o||(Wi[r]=fu(e))}else return fu(e)}}const Bm=()=>"",qr=e=>Dt(e);function Im(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:n,messageCompiler:i,fallbackLocale:a,messages:l}=e,[s,c]=t0(...t),d=ht(c.missingWarn)?c.missingWarn:e.missingWarn,u=ht(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=ht(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=Ne(c.default)||ht(c.default)?ht(c.default)?i?s:()=>s:c.default:r?i?s:()=>s:"",v=r||h!=="",g=Vh(e,c);f&&fV(c);let[m,x,b]=p?[s,g,l[g]||{}]:$S(e,s,g,a,u,d),y=m,E=s;if(!p&&!(Ne(y)||oa(y)||qr(y))&&v&&(y=h,E=y),!p&&(!(Ne(y)||oa(y)||qr(y))||!Ne(x)))return n?td:s;let C=!1;const _=()=>{C=!0},k=qr(y)?y:DS(e,s,x,y,E,_);if(C)return y;const R=vV(e,x,b,c),A=VW(R),B=hV(e,k,A),S=o?o(B,s):B;if(__INTLIFY_PROD_DEVTOOLS__){const P={timestamp:Date.now(),key:Ne(s)?s:qr(y)?y.key:"",locale:x||(qr(y)?y.locale:""),format:Ne(y)?y:qr(y)?y.source:"",message:S};P.meta=gr({},e.__meta,nV()||{}),qW(P)}return S}function fV(e){Ht(e.list)?e.list=e.list.map(t=>Ne(t)?bm(t):t):Pt(e.named)&&Object.keys(e.named).forEach(t=>{Ne(e.named[t])&&(e.named[t]=bm(e.named[t]))})}function $S(e,t,r,o,n,i){const{messages:a,onWarn:l,messageResolver:s,localeFallbacker:c}=e,d=c(e,o,r);let u={},f,p=null;const h="translate";for(let v=0;vo;return c.locale=r,c.key=t,c}const s=a(o,pV(e,r,n,o,l,i));return s.locale=r,s.key=t,s.source=o,s}function hV(e,t,r){return t(r)}function t0(...e){const[t,r,o]=e,n={};if(!Ne(t)&&!ir(t)&&!qr(t)&&!oa(t))throw Ao(uo.INVALID_ARGUMENT);const i=ir(t)?String(t):(qr(t),t);return ir(r)?n.plural=r:Ne(r)?n.default=r:it(r)&&!Qc(r)?n.named=r:Ht(r)&&(n.list=r),ir(o)?n.plural=o:Ne(o)?n.default=o:it(o)&&gr(n,o),[i,n]}function pV(e,t,r,o,n,i){return{locale:t,key:r,warnHtmlMessage:n,onError:a=>{throw i&&i(a),a},onCacheKey:a=>Vj(t,r,a)}}function vV(e,t,r,o){const{modifiers:n,pluralRules:i,messageResolver:a,fallbackLocale:l,fallbackWarn:s,missingWarn:c,fallbackContext:d}=e,f={locale:t,modifiers:n,pluralRules:i,messages:p=>{let h=a(r,p);if(h==null&&d){const[,,v]=$S(d,p,t,l,s,c);h=a(v,p)}if(Ne(h)||oa(h)){let v=!1;const m=DS(e,p,t,h,p,()=>{v=!0});return v?Bm:m}else return qr(h)?h:Bm}};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),ir(o.plural)&&(f.pluralIndex=o.plural),f}function $m(e,...t){const{datetimeFormats:r,unresolving:o,fallbackLocale:n,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:l}=e,[s,c,d,u]=r0(...t),f=ht(d.missingWarn)?d.missingWarn:e.missingWarn;ht(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Vh(e,d),v=a(e,n,h);if(!Ne(s)||s==="")return new Intl.DateTimeFormat(h,u).format(c);let g={},m,x=null;const b="datetime format";for(let C=0;C{LS.includes(s)?a[s]=r[s]:i[s]=r[s]}),Ne(o)?i.locale=o:it(o)&&(a=o),it(n)&&(a=n),[i.key||"",l,i,a]}function Dm(e,t,r){const o=e;for(const n in r){const i=`${t}__${n}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function Lm(e,...t){const{numberFormats:r,unresolving:o,fallbackLocale:n,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:l}=e,[s,c,d,u]=o0(...t),f=ht(d.missingWarn)?d.missingWarn:e.missingWarn;ht(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Vh(e,d),v=a(e,n,h);if(!Ne(s)||s==="")return new Intl.NumberFormat(h,u).format(c);let g={},m,x=null;const b="number format";for(let C=0;C{zS.includes(s)?a[s]=r[s]:i[s]=r[s]}),Ne(o)?i.locale=o:it(o)&&(a=o),it(n)&&(a=n),[i.key||"",l,i,a]}function zm(e,t,r){const o=e;for(const n in r){const i=`${t}__${n}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}TW();/*!
+ * vue-i18n v9.13.1
+ * (c) 2024 kazuya kawaguchi
+ * Released under the MIT License.
+ */const gV="9.13.1";function mV(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Xo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Xo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Xo().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Xo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Xo().__INTLIFY_PROD_DEVTOOLS__=!1)}const MS=XW.__EXTEND_POINT__,Uo=ed(MS);Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Uo();const NS=uo.__EXTEND_POINT__,Fr=ed(NS),sr={UNEXPECTED_RETURN_TYPE:NS,INVALID_ARGUMENT:Fr(),MUST_BE_CALL_SETUP_TOP:Fr(),NOT_INSTALLED:Fr(),NOT_AVAILABLE_IN_LEGACY_MODE:Fr(),REQUIRED_VALUE:Fr(),INVALID_VALUE:Fr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fr(),NOT_INSTALLED_WITH_PROVIDE:Fr(),UNEXPECTED_ERROR:Fr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fr(),BRIDGE_SUPPORT_VUE_2_ONLY:Fr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fr(),__EXTEND_POINT__:Fr()};function fr(e,...t){return Ca(e,null,void 0)}const n0=jn("__translateVNode"),i0=jn("__datetimeParts"),a0=jn("__numberParts"),HS=jn("__setPluralRules"),jS=jn("__injectWithOption"),l0=jn("__dispose");function Ol(e){if(!Pt(e))return e;for(const t in e)if(lc(e,t))if(!t.includes("."))Pt(e[t])&&Ol(e[t]);else{const r=t.split("."),o=r.length-1;let n=e,i=!1;for(let a=0;a{if("locale"in l&&"resource"in l){const{locale:s,resource:c}=l;s?(a[s]=a[s]||{},$s(c,a[s])):$s(c,a)}else Ne(l)&&$s(JSON.parse(l),a)}),n==null&&i)for(const l in a)lc(a,l)&&Ol(a[l]);return a}function WS(e){return e.type}function VS(e,t,r){let o=Pt(t.messages)?t.messages:{};"__i18nGlobal"in r&&(o=rd(e.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const n=Object.keys(o);n.length&&n.forEach(i=>{e.mergeLocaleMessage(i,o[i])});{if(Pt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Pt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Mm(e){return Be(sa,null,e,0)}const Nm="__INTLIFY_META__",Hm=()=>[],bV=()=>!1;let jm=0;function Wm(e){return(t,r,o,n)=>e(r,o,Dr()||void 0,n)}const xV=()=>{const e=Dr();let t=null;return e&&(t=WS(e)[Nm])?{[Nm]:t}:null};function Kh(e={},t){const{__root:r,__injectWithOption:o}=e,n=r===void 0,i=e.flatJson,a=ac?U:Ll,l=!!e.translateExistCompatible;let s=ht(e.inheritLocale)?e.inheritLocale:!0;const c=a(r&&s?r.locale.value:Ne(e.locale)?e.locale:ra),d=a(r&&s?r.fallbackLocale.value:Ne(e.fallbackLocale)||Ht(e.fallbackLocale)||it(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=a(rd(c.value,e)),f=a(it(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=a(it(e.numberFormats)?e.numberFormats:{[c.value]:{}});let h=r?r.missingWarn:ht(e.missingWarn)||Dn(e.missingWarn)?e.missingWarn:!0,v=r?r.fallbackWarn:ht(e.fallbackWarn)||Dn(e.fallbackWarn)?e.fallbackWarn:!0,g=r?r.fallbackRoot:ht(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,x=Dt(e.missing)?e.missing:null,b=Dt(e.missing)?Wm(e.missing):null,y=Dt(e.postTranslation)?e.postTranslation:null,E=r?r.warnHtmlMessage:ht(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const _=r?r.modifiers:it(e.modifiers)?e.modifiers:{};let k=e.pluralRules||r&&r.pluralRules,R;R=(()=>{n&&Am(null);const oe={version:gV,locale:c.value,fallbackLocale:d.value,messages:u.value,modifiers:_,pluralRules:k,missing:b===null?void 0:b,missingWarn:h,fallbackWarn:v,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:E,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};oe.datetimeFormats=f.value,oe.numberFormats=p.value,oe.__datetimeFormatters=it(R)?R.__datetimeFormatters:void 0,oe.__numberFormatters=it(R)?R.__numberFormatters:void 0;const he=aV(oe);return n&&Am(he),he})(),Da(R,c.value,d.value);function B(){return[c.value,d.value,u.value,f.value,p.value]}const S=j({get:()=>c.value,set:oe=>{c.value=oe,R.locale=c.value}}),P=j({get:()=>d.value,set:oe=>{d.value=oe,R.fallbackLocale=d.value,Da(R,c.value,oe)}}),F=j(()=>u.value),T=j(()=>f.value),H=j(()=>p.value);function N(){return Dt(y)?y:null}function W(oe){y=oe,R.postTranslation=oe}function re(){return x}function ee(oe){oe!==null&&(b=Wm(oe)),x=oe,R.missing=b}const L=(oe,he,$e,He,Te,Ie)=>{B();let Ge;try{__INTLIFY_PROD_DEVTOOLS__,n||(R.fallbackContext=r?iV():void 0),Ge=oe(R)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(R.fallbackContext=void 0)}if($e!=="translate exists"&&ir(Ge)&&Ge===td||$e==="translate exists"&&!Ge){const[Me,Ye]=he();return r&&g?He(r):Te(Me)}else{if(Ie(Ge))return Ge;throw fr(sr.UNEXPECTED_RETURN_TYPE)}};function M(...oe){return L(he=>Reflect.apply(Im,null,[he,...oe]),()=>t0(...oe),"translate",he=>Reflect.apply(he.t,he,[...oe]),he=>he,he=>Ne(he))}function G(...oe){const[he,$e,He]=oe;if(He&&!Pt(He))throw fr(sr.INVALID_ARGUMENT);return M(he,$e,gr({resolvedMessage:!0},He||{}))}function J(...oe){return L(he=>Reflect.apply($m,null,[he,...oe]),()=>r0(...oe),"datetime format",he=>Reflect.apply(he.d,he,[...oe]),()=>Pm,he=>Ne(he))}function ge(...oe){return L(he=>Reflect.apply(Lm,null,[he,...oe]),()=>o0(...oe),"number format",he=>Reflect.apply(he.n,he,[...oe]),()=>Pm,he=>Ne(he))}function ve(oe){return oe.map(he=>Ne(he)||ir(he)||ht(he)?Mm(String(he)):he)}const ce={normalize:ve,interpolate:oe=>oe,type:"vnode"};function X(...oe){return L(he=>{let $e;const He=he;try{He.processor=ce,$e=Reflect.apply(Im,null,[He,...oe])}finally{He.processor=null}return $e},()=>t0(...oe),"translate",he=>he[n0](...oe),he=>[Mm(he)],he=>Ht(he))}function le(...oe){return L(he=>Reflect.apply(Lm,null,[he,...oe]),()=>o0(...oe),"number format",he=>he[a0](...oe),Hm,he=>Ne(he)||Ht(he))}function Ee(...oe){return L(he=>Reflect.apply($m,null,[he,...oe]),()=>r0(...oe),"datetime format",he=>he[i0](...oe),Hm,he=>Ne(he)||Ht(he))}function _e(oe){k=oe,R.pluralRules=k}function D(oe,he){return L(()=>{if(!oe)return!1;const $e=Ne(he)?he:c.value,He=ue($e),Te=R.messageResolver(He,oe);return l?Te!=null:oa(Te)||qr(Te)||Ne(Te)},()=>[oe],"translate exists",$e=>Reflect.apply($e.te,$e,[oe,he]),bV,$e=>ht($e))}function I(oe){let he=null;const $e=PS(R,d.value,c.value);for(let He=0;He<$e.length;He++){const Te=u.value[$e[He]]||{},Ie=R.messageResolver(Te,oe);if(Ie!=null){he=Ie;break}}return he}function q(oe){const he=I(oe);return he??(r?r.tm(oe)||{}:{})}function ue(oe){return u.value[oe]||{}}function se(oe,he){if(i){const $e={[oe]:he};for(const He in $e)lc($e,He)&&Ol($e[He]);he=$e[oe]}u.value[oe]=he,R.messages=u.value}function me(oe,he){u.value[oe]=u.value[oe]||{};const $e={[oe]:he};if(i)for(const He in $e)lc($e,He)&&Ol($e[He]);he=$e[oe],$s(he,u.value[oe]),R.messages=u.value}function Ce(oe){return f.value[oe]||{}}function O(oe,he){f.value[oe]=he,R.datetimeFormats=f.value,Dm(R,oe,he)}function $(oe,he){f.value[oe]=gr(f.value[oe]||{},he),R.datetimeFormats=f.value,Dm(R,oe,he)}function V(oe){return p.value[oe]||{}}function ie(oe,he){p.value[oe]=he,R.numberFormats=p.value,zm(R,oe,he)}function ne(oe,he){p.value[oe]=gr(p.value[oe]||{},he),R.numberFormats=p.value,zm(R,oe,he)}jm++,r&&ac&&(lt(r.locale,oe=>{s&&(c.value=oe,R.locale=oe,Da(R,c.value,d.value))}),lt(r.fallbackLocale,oe=>{s&&(d.value=oe,R.fallbackLocale=oe,Da(R,c.value,d.value))}));const ae={id:jm,locale:S,fallbackLocale:P,get inheritLocale(){return s},set inheritLocale(oe){s=oe,oe&&r&&(c.value=r.locale.value,d.value=r.fallbackLocale.value,Da(R,c.value,d.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:F,get modifiers(){return _},get pluralRules(){return k||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(oe){h=oe,R.missingWarn=h},get fallbackWarn(){return v},set fallbackWarn(oe){v=oe,R.fallbackWarn=v},get fallbackRoot(){return g},set fallbackRoot(oe){g=oe},get fallbackFormat(){return m},set fallbackFormat(oe){m=oe,R.fallbackFormat=m},get warnHtmlMessage(){return E},set warnHtmlMessage(oe){E=oe,R.warnHtmlMessage=oe},get escapeParameter(){return C},set escapeParameter(oe){C=oe,R.escapeParameter=oe},t:M,getLocaleMessage:ue,setLocaleMessage:se,mergeLocaleMessage:me,getPostTranslationHandler:N,setPostTranslationHandler:W,getMissingHandler:re,setMissingHandler:ee,[HS]:_e};return ae.datetimeFormats=T,ae.numberFormats=H,ae.rt=G,ae.te=D,ae.tm=q,ae.d=J,ae.n=ge,ae.getDateTimeFormat=Ce,ae.setDateTimeFormat=O,ae.mergeDateTimeFormat=$,ae.getNumberFormat=V,ae.setNumberFormat=ie,ae.mergeNumberFormat=ne,ae[jS]=o,ae[n0]=X,ae[i0]=Ee,ae[a0]=le,ae}function yV(e){const t=Ne(e.locale)?e.locale:ra,r=Ne(e.fallbackLocale)||Ht(e.fallbackLocale)||it(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Dt(e.missing)?e.missing:void 0,n=ht(e.silentTranslationWarn)||Dn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ht(e.silentFallbackWarn)||Dn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=ht(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,s=it(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=Dt(e.postTranslation)?e.postTranslation:void 0,u=Ne(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,p=ht(e.sync)?e.sync:!0;let h=e.messages;if(it(e.sharedMessages)){const C=e.sharedMessages;h=Object.keys(C).reduce((k,R)=>{const A=k[R]||(k[R]={});return gr(A,C[R]),k},h||{})}const{__i18n:v,__root:g,__injectWithOption:m}=e,x=e.datetimeFormats,b=e.numberFormats,y=e.flatJson,E=e.translateExistCompatible;return{locale:t,fallbackLocale:r,messages:h,flatJson:y,datetimeFormats:x,numberFormats:b,missing:o,missingWarn:n,fallbackWarn:i,fallbackRoot:a,fallbackFormat:l,modifiers:s,pluralRules:c,postTranslation:d,warnHtmlMessage:u,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:E,__i18n:v,__root:g,__injectWithOption:m}}function s0(e={},t){{const r=Kh(yV(e)),{__extender:o}=e,n={id:r.id,get locale(){return r.locale.value},set locale(i){r.locale.value=i},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(i){r.fallbackLocale.value=i},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return r.getMissingHandler()},set missing(i){r.setMissingHandler(i)},get silentTranslationWarn(){return ht(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(i){r.missingWarn=ht(i)?!i:i},get silentFallbackWarn(){return ht(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(i){r.fallbackWarn=ht(i)?!i:i},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(i){r.fallbackFormat=i},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(i){r.setPostTranslationHandler(i)},get sync(){return r.inheritLocale},set sync(i){r.inheritLocale=i},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){r.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(i){r.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...i){const[a,l,s]=i,c={};let d=null,u=null;if(!Ne(a))throw fr(sr.INVALID_ARGUMENT);const f=a;return Ne(l)?c.locale=l:Ht(l)?d=l:it(l)&&(u=l),Ht(s)?d=s:it(s)&&(u=s),Reflect.apply(r.t,r,[f,d||u||{},c])},rt(...i){return Reflect.apply(r.rt,r,[...i])},tc(...i){const[a,l,s]=i,c={plural:1};let d=null,u=null;if(!Ne(a))throw fr(sr.INVALID_ARGUMENT);const f=a;return Ne(l)?c.locale=l:ir(l)?c.plural=l:Ht(l)?d=l:it(l)&&(u=l),Ne(s)?c.locale=s:Ht(s)?d=s:it(s)&&(u=s),Reflect.apply(r.t,r,[f,d||u||{},c])},te(i,a){return r.te(i,a)},tm(i){return r.tm(i)},getLocaleMessage(i){return r.getLocaleMessage(i)},setLocaleMessage(i,a){r.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){r.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(r.d,r,[...i])},getDateTimeFormat(i){return r.getDateTimeFormat(i)},setDateTimeFormat(i,a){r.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){r.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(r.n,r,[...i])},getNumberFormat(i){return r.getNumberFormat(i)},setNumberFormat(i,a){r.setNumberFormat(i,a)},mergeNumberFormat(i,a){r.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return n.__extender=o,n}}const qh={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function CV({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,n)=>[...o,...n.type===rt?n.children:[n]],[]):t.reduce((r,o)=>{const n=e[o];return n&&(r[o]=n()),r},{})}function US(e){return rt}const wV=be({name:"i18n-t",props:gr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ir(e)||!isNaN(e)}},qh),setup(e,t){const{slots:r,attrs:o}=t,n=e.i18n||Gh({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(u=>u!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Ne(e.plural)?+e.plural:e.plural);const l=CV(t,i),s=n[n0](e.keypath,l,a),c=gr({},o),d=Ne(e.tag)||Pt(e.tag)?e.tag:US();return w(d,c,s)}}}),Vm=wV;function SV(e){return Ht(e)&&!Ne(e[0])}function KS(e,t,r,o){const{slots:n,attrs:i}=t;return()=>{const a={part:!0};let l={};e.locale&&(a.locale=e.locale),Ne(e.format)?a.key=e.format:Pt(e.format)&&(Ne(e.format.key)&&(a.key=e.format.key),l=Object.keys(e.format).reduce((f,p)=>r.includes(p)?gr({},f,{[p]:e.format[p]}):f,{}));const s=o(e.value,a,l);let c=[a.key];Ht(s)?c=s.map((f,p)=>{const h=n[f.type],v=h?h({[f.type]:f.value,index:p,parts:s}):[f.value];return SV(v)&&(v[0].key=`${f.type}-${p}`),v}):Ne(s)&&(c=[s]);const d=gr({},i),u=Ne(e.tag)||Pt(e.tag)?e.tag:US();return w(u,d,c)}}const _V=be({name:"i18n-n",props:gr({value:{type:Number,required:!0},format:{type:[String,Object]}},qh),setup(e,t){const r=e.i18n||Gh({useScope:e.scope,__useComponent:!0});return KS(e,t,zS,(...o)=>r[a0](...o))}}),Um=_V,EV=be({name:"i18n-d",props:gr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qh),setup(e,t){const r=e.i18n||Gh({useScope:e.scope,__useComponent:!0});return KS(e,t,LS,(...o)=>r[i0](...o))}}),Km=EV;function kV(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const o=r.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function PV(e){const t=a=>{const{instance:l,modifiers:s,value:c}=a;if(!l||!l.$)throw fr(sr.UNEXPECTED_ERROR);const d=kV(e,l.$),u=qm(c);return[Reflect.apply(d.t,d,[...Gm(u)]),d]};return{created:(a,l)=>{const[s,c]=t(l);ac&&e.global===c&&(a.__i18nWatcher=lt(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=c,a.textContent=s},unmounted:a=>{ac&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const s=a.__composer,c=qm(l);a.textContent=Reflect.apply(s.t,s,[...Gm(c)])}},getSSRProps:a=>{const[l]=t(a);return{textContent:l}}}}function qm(e){if(Ne(e))return{path:e};if(it(e)){if(!("path"in e))throw fr(sr.REQUIRED_VALUE,"path");return e}else throw fr(sr.INVALID_VALUE)}function Gm(e){const{path:t,locale:r,args:o,choice:n,plural:i}=e,a={},l=o||{};return Ne(r)&&(a.locale=r),ir(n)&&(a.plural=n),ir(i)&&(a.plural=i),[t,l,a]}function TV(e,t,...r){const o=it(r[0])?r[0]:{},n=!!o.useI18nComponentName;(ht(o.globalInstall)?o.globalInstall:!0)&&([n?"i18n":Vm.name,"I18nT"].forEach(a=>e.component(a,Vm)),[Um.name,"I18nN"].forEach(a=>e.component(a,Um)),[Km.name,"I18nD"].forEach(a=>e.component(a,Km))),e.directive("t",PV(t))}function RV(e,t,r){return{beforeCreate(){const o=Dr();if(!o)throw fr(sr.UNEXPECTED_ERROR);const n=this.$options;if(n.i18n){const i=n.i18n;if(n.__i18n&&(i.__i18n=n.__i18n),i.__root=t,this===this.$root)this.$i18n=Xm(e,i);else{i.__injectWithOption=!0,i.__extender=r.__vueI18nExtend,this.$i18n=s0(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(n.__i18n)if(this===this.$root)this.$i18n=Xm(e,n);else{this.$i18n=s0({__i18n:n.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;n.__i18nGlobal&&VS(t,n,n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),r.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=Dr();if(!o)throw fr(sr.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(o),delete this.$i18n}}}function Xm(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[HS](t.pluralizationRules||e.pluralizationRules);const r=rd(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(o=>e.mergeLocaleMessage(o,r[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const AV=jn("global-vue-i18n");function FV(e={},t){const r=__VUE_I18N_LEGACY_API__&&ht(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=ht(e.globalInjection)?e.globalInjection:!0,n=__VUE_I18N_LEGACY_API__&&r?!!e.allowComposition:!0,i=new Map,[a,l]=OV(e,r),s=jn("");function c(f){return i.get(f)||null}function d(f,p){i.set(f,p)}function u(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return n},async install(p,...h){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,f),it(h[0])){const m=h[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let v=null;!r&&o&&(v=HV(p,f.global)),__VUE_I18N_FULL_INSTALL__&&TV(p,f,...h),__VUE_I18N_LEGACY_API__&&r&&p.mixin(RV(l,l.__composer,f));const g=p.unmount;p.unmount=()=>{v&&v(),f.dispose(),g()}},get global(){return l},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:d,__deleteInstance:u};return f}}function Gh(e={}){const t=Dr();if(t==null)throw fr(sr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw fr(sr.NOT_INSTALLED);const r=BV(t),o=$V(r),n=WS(t),i=IV(e,n);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!e.__useComponent){if(!r.allowComposition)throw fr(sr.NOT_AVAILABLE_IN_LEGACY_MODE);return MV(t,i,o,e)}if(i==="global")return VS(o,e,n),o;if(i==="parent"){let s=DV(r,t,e.__useComponent);return s==null&&(s=o),s}const a=r;let l=a.__getInstance(t);if(l==null){const s=gr({},e);"__i18n"in n&&(s.__i18n=n.__i18n),o&&(s.__root=o),l=Kh(s),a.__composerExtend&&(l[l0]=a.__composerExtend(l)),zV(a,t,l),a.__setInstance(t,l)}return l}function OV(e,t,r){const o=_0();{const n=__VUE_I18N_LEGACY_API__&&t?o.run(()=>s0(e)):o.run(()=>Kh(e));if(n==null)throw fr(sr.UNEXPECTED_ERROR);return[o,n]}}function BV(e){{const t=De(e.isCE?AV:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw fr(e.isCE?sr.NOT_INSTALLED_WITH_PROVIDE:sr.UNEXPECTED_ERROR);return t}}function IV(e,t){return Qc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function $V(e){return e.mode==="composition"?e.global:e.global.__composer}function DV(e,t,r=!1){let o=null;const n=t.root;let i=LV(t,r);for(;i!=null;){const a=e;if(e.mode==="composition")o=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=a.__getInstance(i);l!=null&&(o=l.__composer,r&&o&&!o[jS]&&(o=null))}if(o!=null||n===i)break;i=i.parent}return o}function LV(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function zV(e,t,r){zt(()=>{},t),zl(()=>{const o=r;e.__deleteInstance(t);const n=o[l0];n&&(n(),delete o[l0])},t)}function MV(e,t,r,o={}){const n=t==="local",i=Ll(null);if(n&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw fr(sr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=ht(o.inheritLocale)?o.inheritLocale:!Ne(o.locale),l=U(!n||a?r.locale.value:Ne(o.locale)?o.locale:ra),s=U(!n||a?r.fallbackLocale.value:Ne(o.fallbackLocale)||Ht(o.fallbackLocale)||it(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:l.value),c=U(rd(l.value,o)),d=U(it(o.datetimeFormats)?o.datetimeFormats:{[l.value]:{}}),u=U(it(o.numberFormats)?o.numberFormats:{[l.value]:{}}),f=n?r.missingWarn:ht(o.missingWarn)||Dn(o.missingWarn)?o.missingWarn:!0,p=n?r.fallbackWarn:ht(o.fallbackWarn)||Dn(o.fallbackWarn)?o.fallbackWarn:!0,h=n?r.fallbackRoot:ht(o.fallbackRoot)?o.fallbackRoot:!0,v=!!o.fallbackFormat,g=Dt(o.missing)?o.missing:null,m=Dt(o.postTranslation)?o.postTranslation:null,x=n?r.warnHtmlMessage:ht(o.warnHtmlMessage)?o.warnHtmlMessage:!0,b=!!o.escapeParameter,y=n?r.modifiers:it(o.modifiers)?o.modifiers:{},E=o.pluralRules||n&&r.pluralRules;function C(){return[l.value,s.value,c.value,d.value,u.value]}const _=j({get:()=>i.value?i.value.locale.value:l.value,set:I=>{i.value&&(i.value.locale.value=I),l.value=I}}),k=j({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),s.value=I}}),R=j(()=>i.value?i.value.messages.value:c.value),A=j(()=>d.value),B=j(()=>u.value);function S(){return i.value?i.value.getPostTranslationHandler():m}function P(I){i.value&&i.value.setPostTranslationHandler(I)}function F(){return i.value?i.value.getMissingHandler():g}function T(I){i.value&&i.value.setMissingHandler(I)}function H(I){return C(),I()}function N(...I){return i.value?H(()=>Reflect.apply(i.value.t,null,[...I])):H(()=>"")}function W(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function re(...I){return i.value?H(()=>Reflect.apply(i.value.d,null,[...I])):H(()=>"")}function ee(...I){return i.value?H(()=>Reflect.apply(i.value.n,null,[...I])):H(()=>"")}function L(I){return i.value?i.value.tm(I):{}}function M(I,q){return i.value?i.value.te(I,q):!1}function G(I){return i.value?i.value.getLocaleMessage(I):{}}function J(I,q){i.value&&(i.value.setLocaleMessage(I,q),c.value[I]=q)}function ge(I,q){i.value&&i.value.mergeLocaleMessage(I,q)}function ve(I){return i.value?i.value.getDateTimeFormat(I):{}}function te(I,q){i.value&&(i.value.setDateTimeFormat(I,q),d.value[I]=q)}function ce(I,q){i.value&&i.value.mergeDateTimeFormat(I,q)}function X(I){return i.value?i.value.getNumberFormat(I):{}}function le(I,q){i.value&&(i.value.setNumberFormat(I,q),u.value[I]=q)}function Ee(I,q){i.value&&i.value.mergeNumberFormat(I,q)}const _e={get id(){return i.value?i.value.id:-1},locale:_,fallbackLocale:k,messages:R,datetimeFormats:A,numberFormats:B,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:y},get pluralRules(){return i.value?i.value.pluralRules:E},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:h},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:v},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:x},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:N,getPostTranslationHandler:S,setPostTranslationHandler:P,getMissingHandler:F,setMissingHandler:T,rt:W,d:re,n:ee,tm:L,te:M,getLocaleMessage:G,setLocaleMessage:J,mergeLocaleMessage:ge,getDateTimeFormat:ve,setDateTimeFormat:te,mergeDateTimeFormat:ce,getNumberFormat:X,setNumberFormat:le,mergeNumberFormat:Ee};function D(I){I.locale.value=l.value,I.fallbackLocale.value=s.value,Object.keys(c.value).forEach(q=>{I.mergeLocaleMessage(q,c.value[q])}),Object.keys(d.value).forEach(q=>{I.mergeDateTimeFormat(q,d.value[q])}),Object.keys(u.value).forEach(q=>{I.mergeNumberFormat(q,u.value[q])}),I.escapeParameter=b,I.fallbackFormat=v,I.fallbackRoot=h,I.fallbackWarn=p,I.missingWarn=f,I.warnHtmlMessage=x}return zo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw fr(sr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=e.proxy.$i18n.__composer;t==="global"?(l.value=I.locale.value,s.value=I.fallbackLocale.value,c.value=I.messages.value,d.value=I.datetimeFormats.value,u.value=I.numberFormats.value):n&&D(I)}),_e}const NV=["locale","fallbackLocale","availableLocales"],Ym=["t","rt","d","n","tm","te"];function HV(e,t){const r=Object.create(null);return NV.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i)throw fr(sr.UNEXPECTED_ERROR);const a=Gt(i.value)?{get(){return i.value.value},set(l){i.value.value=l}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,n,a)}),e.config.globalProperties.$i18n=r,Ym.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw fr(sr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}),()=>{delete e.config.globalProperties.$i18n,Ym.forEach(n=>{delete e.config.globalProperties[`$${n}`]})}}mV();__INTLIFY_JIT_COMPILATION__?Rm(uV):Rm(dV);tV(DW);rV(PS);if(__INTLIFY_PROD_DEVTOOLS__){const e=Xo();e.__INTLIFY__=!0,UW(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const jV={common:{add:"Add",addSuccess:"Add Success",edit:"Edit",editSuccess:"Edit Success",delete:"Delete",deleteSuccess:"Delete Success",save:"Save",saveSuccess:"Save Success",reset:"Reset",action:"Action",export:"Export",exportSuccess:"Export Success",import:"Import",importSuccess:"Import Success",clear:"Clear",clearSuccess:"Clear Success",yes:"Yes",no:"No",confirm:"Confirm",download:"Download",noData:"No Data",wrong:"Something went wrong, please try again later.",success:"Success",failed:"Failed",verify:"Verify",unauthorizedTips:"Unauthorized, please verify first.",stopResponding:"Stop Responding"},chat:{newChatButton:"New Chat",newChatTitle:"New Chat",placeholder:"Ask me anything...(Shift + Enter = line break)",placeholderMobile:"Ask me anything...",copy:"Copy",copied:"Copied",copyCode:"Copy Code",copyFailed:"Copy Failed",clearChat:"Clear Chat",clearChatConfirm:"Are you sure to clear this chat?",exportImage:"Export Image",exportImageConfirm:"Are you sure to export this chat to png?",exportSuccess:"Export Success",exportFailed:"Export Failed",usingContext:"Context Mode",turnOnContext:"In the current mode, sending messages will carry previous chat records.",turnOffContext:"In the current mode, sending messages will not carry previous chat records.",deleteMessage:"Delete Message",deleteMessageConfirm:"Are you sure to delete this message?",deleteHistoryConfirm:"Are you sure to clear this history?",clearHistoryConfirm:"Are you sure to clear chat history?",preview:"Preview",showRawText:"Show as raw text",thinking:"Thinking...",Receive:"Receive",visitMore:"if you want to learn more,please visit"},setting:{setting:"Setting",general:"General",advanced:"Advanced",config:"Config",avatarLink:"Avatar Link",name:"Name",description:"Description",role:"Role",temperature:"Temperature",top_p:"Top_p",resetUserInfo:"Reset UserInfo",chatHistory:"ChatHistory",theme:"Theme",language:"Language",api:"API",reverseProxy:"Reverse Proxy",timeout:"Timeout",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API Balance",monthlyUsage:"Monthly Usage",openSource:"This project is open sourced at",freeMIT:"free and based on the MIT license, without any form of paid behavior!",stars:"If you find this project helpful, please give me a Star on GitHub or give a little sponsorship, thank you!"},store:{siderButton:"Prompt Store",local:"Local",online:"Online",title:"Title",description:"Description",clearStoreConfirm:"Whether to clear the data?",importPlaceholder:"Please paste the JSON data here",addRepeatTitleTips:"Title duplicate, please re-enter",addRepeatContentTips:"Content duplicate: {msg}, please re-enter",editRepeatTitleTips:"Title conflict, please revise",editRepeatContentTips:"Content conflict {msg} , please re-modify",importError:"Key value mismatch",importRepeatTitle:"Title repeatedly skipped: {msg}",importRepeatContent:"Content is repeatedly skipped: {msg}",onlineImportWarning:"Note: Please check the JSON file source!",downloadError:"Please check the network status and JSON file validity"},user:{text1:"Sign up",text2:"Login",text3:"Email Address",text4:"New Password",text5:"Invitation Code(Optional)",text6:"I have read and agree the",text7:"User Agreement",text8:"and",text9:"Privacy Policy",text10:"Already have an account?",text11:"log in",text12:"Verify Email",text13:"The verification code has been sent to",text14:"Re-send",text15:"in",text16:"Next",text17:"Setup Password",text18:"To improve account security and prevent login failures due to the failure to obtain the verification code, set the login password. The password can consist of only digits, letters, and special symbols, and must contain at least two types of digits and at least eight characters in length",text19:"Please input Email adress",text20:"Please input password",text21:"Please input confirm password",text22:"The value contains as least 6 characters",text23:"At least 1 number",text24:"At least 1 capital letter",text25:"Have No account?",text26:"Forgot Password?",text27:"The two password inputs are inconsistent",text28:"Please input Invitation Code",text29:"Confirm New Password",text30:"Password",text31:"Reset Password",text32:"Input Verification Code",text33:"Password reset succeeded!",text34:"Please log in with your new password",text35:"Please input Inviter Code"}},WV={common:{add:"Agregar",addSuccess:"Agregado con éxito",edit:"Editar",editSuccess:"Edición exitosa",delete:"Borrar",deleteSuccess:"Borrado con éxito",save:"Guardar",saveSuccess:"Guardado con éxito",reset:"Reiniciar",action:"Acción",export:"Exportar",exportSuccess:"Exportación exitosa",import:"Importar",importSuccess:"Importación exitosa",clear:"Limpiar",clearSuccess:"Limpieza exitosa",yes:"Sí",no:"No",confirm:"Confirmar",download:"Descargar",noData:"Sin datos",wrong:"Algo salió mal, inténtalo de nuevo más tarde.",success:"Exitoso",failed:"Fallido",verify:"Verificar",unauthorizedTips:"No autorizado, por favor verifique primero.",stopResponding:"No responde"},chat:{newChatButton:"Nueva conversación",newChatTitle:"Nueva conversación",placeholder:'Pregúntame lo que sea...(Shift + Enter = salto de línea, "/" para activar avisos)',placeholderMobile:"Pregúntame lo que sea...",copy:"Copiar",copied:"Copiado",copyCode:"Copiar código",copyFailed:"Copia fallida",clearChat:"Limpiar chat",clearChatConfirm:"¿Estás seguro de borrar este chat?",exportImage:"Exportar imagen",exportImageConfirm:"¿Estás seguro de exportar este chat a png?",exportSuccess:"Exportación exitosa",exportFailed:"Exportación fallida",usingContext:"Modo de contexto",turnOnContext:"En el modo actual, el envío de mensajes llevará registros de chat anteriores.",turnOffContext:"En el modo actual, el envío de mensajes no incluirá registros de conversaciones anteriores.",deleteMessage:"Borrar mensaje",deleteMessageConfirm:"¿Estás seguro de eliminar este mensaje?",deleteHistoryConfirm:"¿Estás seguro de borrar esta historia?",clearHistoryConfirm:"¿Estás seguro de borrar el historial de chat?",preview:"Avance",showRawText:"Mostrar como texto sin formato"},setting:{setting:"Configuración",general:"General",advanced:"Avanzado",config:"Configurar",avatarLink:"Enlace de avatar",name:"Nombre",description:"Descripción",role:"Rol",temperature:"Temperatura",top_p:"Top_p",resetUserInfo:"Restablecer información de usuario",chatHistory:"Historial de chat",theme:"Tema",language:"Idioma",api:"API",reverseProxy:"Reverse Proxy",timeout:"Tiempo de espera",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"Saldo de API",monthlyUsage:"Uso mensual de API",openSource:"Este proyecto es de código abierto en",freeMIT:"gratis y basado en la licencia MIT, ¡sin ningún tipo de comportamiento de pago!",stars:"Si encuentras este proyecto útil, por favor dame una Estrella en GitHub o da un pequeño patrocinio, ¡gracias!"},store:{siderButton:"Tienda rápida",local:"Local",online:"En línea",title:"Título",description:"Descripción",clearStoreConfirm:"¿Estás seguro de borrar los datos?",importPlaceholder:"Pegue los datos JSON aquí",addRepeatTitleTips:"Título duplicado, vuelva a ingresar",addRepeatContentTips:"Contenido duplicado: {msg}, por favor vuelva a entrar",editRepeatTitleTips:"Conflicto de título, revíselo",editRepeatContentTips:"Conflicto de contenido {msg} , por favor vuelva a modificar",importError:"Discrepancia de valor clave",importRepeatTitle:"Título saltado repetidamente: {msg}",importRepeatContent:"El contenido se salta repetidamente: {msg}",onlineImportWarning:"Nota: ¡Compruebe la fuente del archivo JSON!",downloadError:"Verifique el estado de la red y la validez del archivo JSON"}},VV={common:{add:"추가",addSuccess:"추가 성공",edit:"편집",editSuccess:"편집 성공",delete:"삭제",deleteSuccess:"삭제 성공",save:"저장",saveSuccess:"저장 성공",reset:"초기화",action:"액션",export:"내보내기",exportSuccess:"내보내기 성공",import:"가져오기",importSuccess:"가져오기 성공",clear:"비우기",clearSuccess:"비우기 성공",yes:"예",no:"아니오",confirm:"확인",download:"다운로드",noData:"데이터 없음",wrong:"문제가 발생했습니다. 나중에 다시 시도하십시오.",success:"성공",failed:"실패",verify:"검증",unauthorizedTips:"인증되지 않았습니다. 먼저 확인하십시오.",stopResponding:"응답 중지"},chat:{newChatButton:"새로운 채팅",newChatTitle:"새로운 채팅",placeholder:'무엇이든 물어보세요...(Shift + Enter = 줄바꿈, "/"를 눌러서 힌트를 보세요)',placeholderMobile:"무엇이든 물어보세요...",copy:"복사",copied:"복사됨",copyCode:"코드 복사",copyFailed:"복사 실패",clearChat:"채팅 비우기",clearChatConfirm:"이 채팅을 비우시겠습니까?",exportImage:"이미지 내보내기",exportImageConfirm:"이 채팅을 png로 내보내시겠습니까?",exportSuccess:"내보내기 성공",exportFailed:"내보내기 실패",usingContext:"컨텍스트 모드",turnOnContext:"현재 모드에서는 이전 대화 기록을 포함하여 메시지를 보낼 수 있습니다.",turnOffContext:"현재 모드에서는 이전 대화 기록을 포함하지 않고 메시지를 보낼 수 있습니다.",deleteMessage:"메시지 삭제",deleteMessageConfirm:"이 메시지를 삭제하시겠습니까?",deleteHistoryConfirm:"이 기록을 삭제하시겠습니까?",clearHistoryConfirm:"채팅 기록을 삭제하시겠습니까?",preview:"미리보기",showRawText:"원본 텍스트로 보기",thinking:"생각 중..."},setting:{setting:"설정",general:"일반",advanced:"고급",config:"설정",avatarLink:"아바타 링크",name:"이름",description:"설명",role:"역할",temperature:"온도",top_p:"Top_p",resetUserInfo:"사용자 정보 초기화",chatHistory:"채팅 기록",theme:"테마",language:"언어",api:"API",reverseProxy:"리버스 프록시",timeout:"타임아웃",socks:"Socks",httpsProxy:"HTTPS 프록시",balance:"API 잔액",monthlyUsage:"월 사용량",openSource:"이 프로젝트는 다음에서 오픈 소스로 제공됩니다:",freeMIT:"무료이며 MIT 라이선스에 기반하며, 어떠한 형태의 유료 행동도 없습니다!",stars:"이 프로젝트가 도움이 되었다면, GitHub에서 별을 주거나 조금의 후원을 해주시면 감사하겠습니다!"},store:{siderButton:"프롬프트 저장소",local:"로컬",online:"온라인",title:"제목",description:"설명",clearStoreConfirm:"데이터를 삭제하시겠습니까?",importPlaceholder:"여기에 JSON 데이터를 붙여넣으십시오",addRepeatTitleTips:"제목 중복됨, 다시 입력하십시오",addRepeatContentTips:"내용 중복됨: {msg}, 다시 입력하십시오",editRepeatTitleTips:"제목 충돌, 수정하십시오",editRepeatContentTips:"내용 충돌 {msg} , 수정하십시오",importError:"키 값 불일치",importRepeatTitle:"제목이 반복되어 건너뜀: {msg}",importRepeatContent:"내용이 반복되어 건너뜀: {msg}",onlineImportWarning:"참고: JSON 파일 소스를 확인하십시오!"}},UV={common:{add:"Добавить",addSuccess:"Добавлено успешно",edit:"Редактировать",editSuccess:"Изменено успешно",delete:"Удалить",deleteSuccess:"Удалено успешно",save:"Сохранить",saveSuccess:"Сохранено успешно",reset:"Сбросить",action:"Действие",export:"Экспортировать",exportSuccess:"Экспорт выполнен успешно",import:"Импортировать",importSuccess:"Импорт выполнен успешно",clear:"Очистить",clearSuccess:"Очищено успешно",yes:"Да",no:"Нет",confirm:"Подтвердить",download:"Загрузить",noData:"Нет данных",wrong:"Что-то пошло не так, пожалуйста, повторите попытку позже.",success:"Успех",failed:"Не удалось",verify:"Проверить",unauthorizedTips:"Не авторизован, сначала подтвердите свою личность.",stopResponding:"Прекращение отклика"},chat:{newChatButton:"Новый чат",newChatTitle:"Новый чат",placeholder:'Спросите меня о чем-нибудь ... (Shift + Enter = перенос строки, "/" для вызова подсказок)',placeholderMobile:"Спросите меня о чем-нибудь ...",copy:"Копировать",copied:"Скопировано",copyCode:"Копировать код",copyFailed:"Не удалось скопировать",clearChat:"Очистить чат",clearChatConfirm:"Вы уверены, что хотите очистить этот чат?",exportImage:"Экспорт в изображение",exportImageConfirm:"Вы уверены, что хотите экспортировать этот чат в формате PNG?",exportSuccess:"Экспортировано успешно",exportFailed:"Не удалось выполнить экспорт",usingContext:"Режим контекста",turnOnContext:"В текущем режиме отправка сообщений будет включать предыдущие записи чата.",turnOffContext:"В текущем режиме отправка сообщений не будет включать предыдущие записи чата.",deleteMessage:"Удалить сообщение",deleteMessageConfirm:"Вы уверены, что хотите удалить это сообщение?",deleteHistoryConfirm:"Вы уверены, что хотите очистить эту историю?",clearHistoryConfirm:"Вы уверены, что хотите очистить историю чата?",preview:"Предварительный просмотр",showRawText:"Показать как обычный текст",thinking:"Думаю..."},setting:{setting:"Настройки",general:"Общее",advanced:"Дополнительно",config:"Конфигурация",avatarLink:"Ссылка на аватар",name:"Имя",description:"Описание",role:"Роль",temperature:"Температура",top_p:"Top_p",resetUserInfo:"Сбросить информацию о пользователе",chatHistory:"История чата",theme:"Тема",language:"Язык",api:"API",reverseProxy:"Обратный прокси-сервер",timeout:"Время ожидания",socks:"Socks",httpsProxy:"HTTPS-прокси",balance:"Баланс API",monthlyUsage:"Ежемесячное использование",openSource:"Этот проект опубликован в открытом доступе на",freeMIT:"бесплатно и основан на лицензии MIT, без каких-либо форм оплаты!",stars:"Если вы считаете этот проект полезным, пожалуйста, поставьте мне звезду на GitHub или сделайте небольшое пожертвование, спасибо!"},store:{siderButton:"Хранилище подсказок",local:"Локальное",online:"Онлайн",title:"Название",description:"Описание",clearStoreConfirm:"Вы действительно хотите очистить данные?",importPlaceholder:"Пожалуйста, вставьте здесь JSON-данные",addRepeatTitleTips:"Дубликат названия, пожалуйста, введите другое название",addRepeatContentTips:"Дубликат содержимого: {msg}, пожалуйста, введите другой текст",editRepeatTitleTips:"Конфликт названий, пожалуйста, измените название",editRepeatContentTips:"Конфликт содержимого {msg}, пожалуйста, измените текст",importError:"Не совпадает ключ-значение",importRepeatTitle:"Название повторяющееся, пропускается: {msg}",importRepeatContent:"Содержание повторяющееся, пропускается: {msg}",onlineImportWarning:"Внимание! Проверьте источник JSON-файла!",downloadError:"Проверьте состояние сети и правильность JSON-файла"}},KV={common:{add:"Thêm",addSuccess:"Thêm thành công",edit:"Sửa",editSuccess:"Sửa thành công",delete:"Xóa",deleteSuccess:"Xóa thành công",save:"Lưu",saveSuccess:"Lưu thành công",reset:"Đặt lại",action:"Hành động",export:"Xuất",exportSuccess:"Xuất thành công",import:"Nhập",importSuccess:"Nhập thành công",clear:"Dọn dẹp",clearSuccess:"Dọn dẹp thành công",yes:"Có",no:"Không",confirm:"Xác nhận",download:"Tải xuống",noData:"Không có dữ liệu",wrong:"Đã xảy ra lỗi, vui lòng thử lại sau.",success:"Thành công",failed:"Thất bại",verify:"Xác minh",unauthorizedTips:"Không được ủy quyền, vui lòng xác minh trước."},chat:{newChatButton:"Tạo hội thoại",newChatTitle:"Tạo hội thoại",placeholder:'Hỏi tôi bất cứ điều gì...(Shift + Enter = ngắt dòng, "/" to trigger prompts)',placeholderMobile:"Hỏi tôi bất cứ điều gì...",copy:"Sao chép",copied:"Đã sao chép",copyCode:"Sao chép Code",copyFailed:"Sao chép thất bại",clearChat:"Clear Chat",clearChatConfirm:"Bạn có chắc chắn xóa cuộc trò chuyện này?",exportImage:"Xuất hình ảnh",exportImageConfirm:"Bạn có chắc chắn xuất cuộc trò chuyện này sang png không?",exportSuccess:"Xuất thành công",exportFailed:"Xuất thất bại",usingContext:"Context Mode",turnOnContext:"Ở chế độ hiện tại, việc gửi tin nhắn sẽ mang theo các bản ghi trò chuyện trước đó.",turnOffContext:"Ở chế độ hiện tại, việc gửi tin nhắn sẽ không mang theo các bản ghi trò chuyện trước đó.",deleteMessage:"Xóa tin nhắn",deleteMessageConfirm:"Bạn có chắc chắn xóa tin nhắn này?",deleteHistoryConfirm:"Bạn có chắc chắn để xóa lịch sử này?",clearHistoryConfirm:"Bạn có chắc chắn để xóa lịch sử trò chuyện?",preview:"Xem trước",showRawText:"Hiển thị dưới dạng văn bản thô",thinking:"Đang suy nghĩ..."},setting:{setting:"Cài đặt",general:"Chung",advanced:"Nâng cao",config:"Cấu hình",avatarLink:"Avatar Link",name:"Tên",description:"Miêu tả",role:"Vai trò",temperature:"Nhiệt độ",top_p:"Top_p",resetUserInfo:"Đặt lại thông tin người dùng",chatHistory:"Lịch sử trò chuyện",theme:"Giao diện",language:"Ngôn ngữ",api:"API",reverseProxy:"Reverse Proxy",timeout:"Timeout",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API Balance",monthlyUsage:"Sử dụng hàng tháng",openSource:"Dự án này được mở nguồn tại",freeMIT:"miễn phí và dựa trên giấy phép MIT, không có bất kỳ hình thức hành vi trả phí nào!",stars:"Nếu bạn thấy dự án này hữu ích, vui lòng cho tôi một Star trên GitHub hoặc tài trợ một chút, cảm ơn bạn!"},store:{siderButton:"Prompt Store",local:"Local",online:"Online",title:"Tiêu đề",description:"Miêu tả",clearStoreConfirm:"Cho dù để xóa dữ liệu?",importPlaceholder:"Vui lòng dán dữ liệu JSON vào đây",addRepeatTitleTips:"Tiêu đề trùng lặp, vui lòng nhập lại",addRepeatContentTips:"Nội dung trùng lặp: {msg}, vui lòng nhập lại",editRepeatTitleTips:"Xung đột tiêu đề, vui lòng sửa lại",editRepeatContentTips:"Xung đột nội dung {msg} , vui lòng sửa đổi lại",importError:"Key value mismatch",importRepeatTitle:"Tiêu đề liên tục bị bỏ qua: {msg}",importRepeatContent:"Nội dung liên tục bị bỏ qua: {msg}",onlineImportWarning:"Lưu ý: Vui lòng kiểm tra nguồn tệp JSON!",downloadError:"Vui lòng kiểm tra trạng thái mạng và tính hợp lệ của tệp JSON"}},qV={common:{add:"添加",addSuccess:"添加成功",edit:"编辑",editSuccess:"编辑成功",delete:"删除",deleteSuccess:"删除成功",save:"保存",saveSuccess:"保存成功",reset:"重置",action:"操作",export:"导出",exportSuccess:"导出成功",import:"导入",importSuccess:"导入成功",clear:"清除",clearSuccess:"清除成功",yes:"是",no:"否",confirm:"确认",download:"下载",noData:"无数据",wrong:"发生错误,请稍后再试。",success:"成功",failed:"失败",verify:"验证",unauthorizedTips:"未授权,请先验证。",stopResponding:"停止响应"},chat:{newChatButton:"新聊天",newChatTitle:"新聊天",placeholder:"问我任何问题...(Shift + Enter = 换行)",placeholderMobile:"问我任何问题...",copy:"复制",copied:"已复制",copyCode:"复制代码",copyFailed:"复制失败",clearChat:"清除聊天",clearChatConfirm:"确定要清除此聊天吗?",exportImage:"导出图片",exportImageConfirm:"确定要将此聊天导出为png吗?",exportSuccess:"导出成功",exportFailed:"导出失败",usingContext:"上下文模式",turnOnContext:"在当前模式下,发送消息将携带之前的聊天记录。",turnOffContext:"在当前模式下,发送消息将不携带之前的聊天记录。",deleteMessage:"删除消息",deleteMessageConfirm:"确定要删除此消息吗?",deleteHistoryConfirm:"确定要清除此历史记录吗?",clearHistoryConfirm:"确定要清除聊天记录吗?",preview:"预览",showRawText:"显示为原始文本",thinking:"思考中...",Receive:"接收",visitMore:"如果你想了解更多,请访问"},setting:{setting:"设置",general:"常规",advanced:"高级",config:"配置",avatarLink:"头像链接",name:"名称",description:"描述",role:"角色",temperature:"温度",top_p:"Top_p",resetUserInfo:"重置用户信息",chatHistory:"聊天记录",theme:"主题",language:"语言",api:"API",reverseProxy:"反向代理",timeout:"超时",socks:"Socks",httpsProxy:"HTTPS 代理",balance:"API 余额",monthlyUsage:"月使用量",openSource:"该项目是开源的,地址在",freeMIT:"免费且基于 MIT 许可证,没有任何形式的付费行为!",stars:"如果你觉得这个项目有帮助,请在 GitHub 上给我一个 Star 或者给予一点赞助,谢谢!"},store:{siderButton:"提示商店",local:"本地",online:"在线",title:"标题",description:"描述",clearStoreConfirm:"是否清除数据?",importPlaceholder:"请在此粘贴 JSON 数据",addRepeatTitleTips:"标题重复,请重新输入",addRepeatContentTips:"内容重复: {msg},请重新输入",editRepeatTitleTips:"标题冲突,请修改",editRepeatContentTips:"内容冲突 {msg},请重新修改",importError:"键值不匹配",importRepeatTitle:"标题重复跳过: {msg}",importRepeatContent:"内容重复跳过: {msg}",onlineImportWarning:"注意:请检查 JSON 文件来源!",downloadError:"请检查网络状态和 JSON 文件的有效性"},user:{text1:"注册",text2:"您好!",text3:"账号",text4:"新密码",text5:"邀请码(可选)",text6:"我已阅读并同意",text7:"用户协议",text8:"和",text9:"隐私政策",text10:"已经有账号了?",text11:"登 录",text12:"验证码",text13:"验证码已发送至",text14:"重新发送",text15:"在",text16:"下一步",text17:"设置密码",text18:"为了提高账户安全性并防止因无法获取验证码而导致的登录失败,请设置登录密码。密码只能包含数字、字母和特殊符号,且必须包含至少两种类型的字符,并且长度至少为八个字符",text19:"请输入您的手机号/邮箱",text20:"请输入您的密码",text21:"请输入确认密码",text22:"值包含至少6个字符",text23:"至少1个数字",text24:"至少1个大写字母",text25:"没有账号?",text26:"忘记密码?",text27:"两次输入的密码不一致",text28:"请输入邀请码",text29:"确认新密码",text30:"密码",text31:"重置密码",text32:"输入验证码",text33:"密码重置成功!",text34:"请使用新密码登录",text35:"请输入邀请人代码",text36:"请输入验证码",tetx37:"欢迎使用数字医生初诊系统",tetx38:"登录"}},GV={common:{add:"新增",addSuccess:"新增成功",edit:"編輯",editSuccess:"編輯成功",delete:"刪除",deleteSuccess:"刪除成功",save:"儲存",saveSuccess:"儲存成功",reset:"重設",action:"操作",export:"匯出",exportSuccess:"匯出成功",import:"匯入",importSuccess:"匯入成功",clear:"清除",clearSuccess:"清除成功",yes:"是",no:"否",confirm:"確認",download:"下載",noData:"目前無資料",wrong:"發生錯誤,請稍後再試。",success:"操作成功",failed:"操作失敗",verify:"驗證",unauthorizedTips:"未經授權,請先進行驗證。",stopResponding:"停止回應"},chat:{newChatButton:"新增對話",newChatTitle:"新增對話",placeholder:'來說點什麼...(Shift + Enter = 換行,"/" 觸發提示詞)',placeholderMobile:"來說點什麼...",copy:"複製",copied:"複製成功",copyCode:"複製代碼",copyFailed:"複製失敗",clearChat:"清除對話",clearChatConfirm:"是否清空對話?",exportImage:"儲存對話為圖片",exportImageConfirm:"是否將對話儲存為圖片?",exportSuccess:"儲存成功",exportFailed:"儲存失敗",usingContext:"上下文模式",turnOnContext:"啟用上下文模式,在此模式下,發送訊息會包含之前的聊天記錄。",turnOffContext:"關閉上下文模式,在此模式下,發送訊息不會包含之前的聊天記錄。",deleteMessage:"刪除訊息",deleteMessageConfirm:"是否刪除此訊息?",deleteHistoryConfirm:"確定刪除此紀錄?",clearHistoryConfirm:"確定清除紀錄?",preview:"預覽",showRawText:"顯示原文",thinking:"思考中..."},setting:{setting:"設定",general:"總覽",advanced:"進階",config:"設定",avatarLink:"頭貼連結",name:"名稱",description:"描述",role:"角色設定",temperature:"Temperature",top_p:"Top_p",resetUserInfo:"重設使用者資訊",chatHistory:"紀錄",theme:"主題",language:"語言",api:"API",reverseProxy:"反向代理",timeout:"逾時",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API Credit 餘額",monthlyUsage:"本月使用量",openSource:"此專案在此開源:",freeMIT:"免費且基於 MIT 授權,沒有任何形式的付費行為!",stars:"如果你覺得此專案對你有幫助,請在 GitHub 上給我一顆星,或者贊助我,謝謝!"},store:{siderButton:"提示詞商店",local:"本機",online:"線上",title:"標題",description:"描述",clearStoreConfirm:"是否清除資料?",importPlaceholder:"請將 JSON 資料貼在此處",addRepeatTitleTips:"標題重複,請重新輸入",addRepeatContentTips:"內容重複:{msg},請重新輸入",editRepeatTitleTips:"標題衝突,請重新修改",editRepeatContentTips:"內容衝突{msg} ,請重新修改",importError:"鍵值不符合",importRepeatTitle:"因標題重複跳過:{msg}",importRepeatContent:"因內容重複跳過:{msg}",onlineImportWarning:"注意:請檢查 JSON 檔案來源!",downloadError:"請檢查網路狀態與 JSON 檔案有效性"}},XV=Wj(),YV=XV.language||"en-US",Xh=FV({locale:YV,fallbackLocale:"en-US",allowComposition:!0,messages:{"en-US":jV,"es-ES":WV,"ko-KR":VV,"ru-RU":UV,"vi-VN":KV,"zh-CN":qV,"zh-TW":GV}}),ut=Xh.global.t;function ZV(e){Xh.global.locale=e}function JV(e){e.use(Xh)}function qS(e,t){return function(){return e.apply(t,arguments)}}const{toString:QV}=Object.prototype,{getPrototypeOf:Yh}=Object,od=(e=>t=>{const r=QV.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wo=e=>(e=e.toLowerCase(),t=>od(t)===e),nd=e=>t=>typeof t===e,{isArray:wa}=Array,Bl=nd("undefined");function eU(e){return e!==null&&!Bl(e)&&e.constructor!==null&&!Bl(e.constructor)&&Xr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GS=wo("ArrayBuffer");function tU(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GS(e.buffer),t}const rU=nd("string"),Xr=nd("function"),XS=nd("number"),id=e=>e!==null&&typeof e=="object",oU=e=>e===!0||e===!1,Ds=e=>{if(od(e)!=="object")return!1;const t=Yh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nU=wo("Date"),iU=wo("File"),aU=wo("Blob"),lU=wo("FileList"),sU=e=>id(e)&&Xr(e.pipe),cU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xr(e.append)&&((t=od(e))==="formdata"||t==="object"&&Xr(e.toString)&&e.toString()==="[object FormData]"))},dU=wo("URLSearchParams"),[uU,fU,hU,pU]=["ReadableStream","Request","Response","Headers"].map(wo),vU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ql(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,n;if(typeof e!="object"&&(e=[e]),wa(e))for(o=0,n=e.length;o0;)if(n=r[o],t===n.toLowerCase())return n;return null}const ZS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),JS=e=>!Bl(e)&&e!==ZS;function c0(){const{caseless:e}=JS(this)&&this||{},t={},r=(o,n)=>{const i=e&&YS(t,n)||n;Ds(t[i])&&Ds(o)?t[i]=c0(t[i],o):Ds(o)?t[i]=c0({},o):wa(o)?t[i]=o.slice():t[i]=o};for(let o=0,n=arguments.length;o(ql(t,(n,i)=>{r&&Xr(n)?e[i]=qS(n,r):e[i]=n},{allOwnKeys:o}),e),mU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bU=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},xU=(e,t,r,o)=>{let n,i,a;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&&Yh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},yU=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},CU=e=>{if(!e)return null;if(wa(e))return e;let t=e.length;if(!XS(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yh(Uint8Array)),SU=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},_U=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},EU=wo("HTMLFormElement"),kU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,n){return o.toUpperCase()+n}),Zm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),PU=wo("RegExp"),QS=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};ql(r,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(o[i]=a||n)}),Object.defineProperties(e,o)},TU=e=>{QS(e,(t,r)=>{if(Xr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(Xr(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},RU=(e,t)=>{const r={},o=n=>{n.forEach(i=>{r[i]=!0})};return wa(e)?o(e):o(String(e).split(t)),r},AU=()=>{},FU=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,hu="abcdefghijklmnopqrstuvwxyz",Jm="0123456789",e_={DIGIT:Jm,ALPHA:hu,ALPHA_DIGIT:hu+hu.toUpperCase()+Jm},OU=(e=16,t=e_.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r};function BU(e){return!!(e&&Xr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IU=e=>{const t=new Array(10),r=(o,n)=>{if(id(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[n]=o;const i=wa(o)?[]:{};return ql(o,(a,l)=>{const s=r(a,n+1);!Bl(s)&&(i[l]=s)}),t[n]=void 0,i}}return o};return r(e,0)},$U=wo("AsyncFunction"),DU=e=>e&&(id(e)||Xr(e))&&Xr(e.then)&&Xr(e.catch),xe={isArray:wa,isArrayBuffer:GS,isBuffer:eU,isFormData:cU,isArrayBufferView:tU,isString:rU,isNumber:XS,isBoolean:oU,isObject:id,isPlainObject:Ds,isReadableStream:uU,isRequest:fU,isResponse:hU,isHeaders:pU,isUndefined:Bl,isDate:nU,isFile:iU,isBlob:aU,isRegExp:PU,isFunction:Xr,isStream:sU,isURLSearchParams:dU,isTypedArray:wU,isFileList:lU,forEach:ql,merge:c0,extend:gU,trim:vU,stripBOM:mU,inherits:bU,toFlatObject:xU,kindOf:od,kindOfTest:wo,endsWith:yU,toArray:CU,forEachEntry:SU,matchAll:_U,isHTMLForm:EU,hasOwnProperty:Zm,hasOwnProp:Zm,reduceDescriptors:QS,freezeMethods:TU,toObjectSet:RU,toCamelCase:kU,noop:AU,toFiniteNumber:FU,findKey:YS,global:ZS,isContextDefined:JS,ALPHABET:e_,generateString:OU,isSpecCompliantForm:BU,toJSONObject:IU,isAsyncFn:$U,isThenable:DU};function dt(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n)}xe.inherits(dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:xe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const t_=dt.prototype,r_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{r_[e]={value:e}});Object.defineProperties(dt,r_);Object.defineProperty(t_,"isAxiosError",{value:!0});dt.from=(e,t,r,o,n,i)=>{const a=Object.create(t_);return xe.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),dt.call(a,e.message,t,r,o,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const LU=null;function d0(e){return xe.isPlainObject(e)||xe.isArray(e)}function o_(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function Qm(e,t,r){return e?e.concat(t).map(function(n,i){return n=o_(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function zU(e){return xe.isArray(e)&&!e.some(d0)}const MU=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function ad(e,t,r){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=xe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!xe.isUndefined(g[v])});const o=r.metaTokens,n=r.visitor||d,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(t);if(!xe.isFunction(n))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(xe.isDate(h))return h.toISOString();if(!s&&xe.isBlob(h))throw new dt("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(h)||xe.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,v,g){let m=h;if(h&&!g&&typeof h=="object"){if(xe.endsWith(v,"{}"))v=o?v:v.slice(0,-2),h=JSON.stringify(h);else if(xe.isArray(h)&&zU(h)||(xe.isFileList(h)||xe.endsWith(v,"[]"))&&(m=xe.toArray(h)))return v=o_(v),m.forEach(function(b,y){!(xe.isUndefined(b)||b===null)&&t.append(a===!0?Qm([v],y,i):a===null?v:v+"[]",c(b))}),!1}return d0(h)?!0:(t.append(Qm(g,v,i),c(h)),!1)}const u=[],f=Object.assign(MU,{defaultVisitor:d,convertValue:c,isVisitable:d0});function p(h,v){if(!xe.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));u.push(h),xe.forEach(h,function(m,x){(!(xe.isUndefined(m)||m===null)&&n.call(t,m,xe.isString(x)?x.trim():x,v,f))===!0&&p(m,v?v.concat(x):[x])}),u.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return p(e),t}function eb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Zh(e,t){this._pairs=[],e&&ad(e,this,t)}const n_=Zh.prototype;n_.append=function(t,r){this._pairs.push([t,r])};n_.toString=function(t){const r=t?function(o){return t.call(this,o,eb)}:eb;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function NU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function i_(e,t,r){if(!t)return e;const o=r&&r.encode||NU,n=r&&r.serialize;let i;if(n?i=n(t,r):i=xe.isURLSearchParams(t)?t.toString():new Zh(t,r).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class HU{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){xe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const tb=HU,a_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jU=typeof URLSearchParams<"u"?URLSearchParams:Zh,WU=typeof FormData<"u"?FormData:null,VU=typeof Blob<"u"?Blob:null,UU={isBrowser:!0,classes:{URLSearchParams:jU,FormData:WU,Blob:VU},protocols:["http","https","file","blob","url","data"]},Jh=typeof window<"u"&&typeof document<"u",KU=(e=>Jh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),qU=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),GU=Jh&&window.location.href||"http://localhost",XU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jh,hasStandardBrowserEnv:KU,hasStandardBrowserWebWorkerEnv:qU,origin:GU},Symbol.toStringTag,{value:"Module"})),vo={...XU,...UU};function YU(e,t){return ad(e,new vo.classes.URLSearchParams,Object.assign({visitor:function(r,o,n,i){return vo.isNode&&xe.isBuffer(r)?(this.append(o,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ZU(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JU(e){const t={},r=Object.keys(e);let o;const n=r.length;let i;for(o=0;o=r.length;return a=!a&&xe.isArray(n)?n.length:a,s?(xe.hasOwnProp(n,a)?n[a]=[n[a],o]:n[a]=o,!l):((!n[a]||!xe.isObject(n[a]))&&(n[a]=[]),t(r,o,n[a],i)&&xe.isArray(n[a])&&(n[a]=JU(n[a])),!l)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const r={};return xe.forEachEntry(e,(o,n)=>{t(ZU(o),n,r,0)}),r}return null}function QU(e,t,r){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const Qh={transitional:a_,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",n=o.indexOf("application/json")>-1,i=xe.isObject(t);if(i&&xe.isHTMLForm(t)&&(t=new FormData(t)),xe.isFormData(t))return n?JSON.stringify(l_(t)):t;if(xe.isArrayBuffer(t)||xe.isBuffer(t)||xe.isStream(t)||xe.isFile(t)||xe.isBlob(t)||xe.isReadableStream(t))return t;if(xe.isArrayBufferView(t))return t.buffer;if(xe.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return YU(t,this.formSerializer).toString();if((l=xe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ad(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||n?(r.setContentType("application/json",!1),QU(t)):t}],transformResponse:[function(t){const r=this.transitional||Qh.transitional,o=r&&r.forcedJSONParsing,n=this.responseType==="json";if(xe.isResponse(t)||xe.isReadableStream(t))return t;if(t&&xe.isString(t)&&(o&&!this.responseType||n)){const a=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?dt.from(l,dt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vo.classes.FormData,Blob:vo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch"],e=>{Qh.headers[e]={}});const ep=Qh,eK=xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),tK=e=>{const t={};let r,o,n;return e&&e.split(`
+`).forEach(function(a){n=a.indexOf(":"),r=a.substring(0,n).trim().toLowerCase(),o=a.substring(n+1).trim(),!(!r||t[r]&&eK[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},rb=Symbol("internals");function La(e){return e&&String(e).trim().toLowerCase()}function Ls(e){return e===!1||e==null?e:xe.isArray(e)?e.map(Ls):String(e)}function rK(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const oK=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pu(e,t,r,o,n){if(xe.isFunction(o))return o.call(this,t,r);if(n&&(t=r),!!xe.isString(t)){if(xe.isString(o))return t.indexOf(o)!==-1;if(xe.isRegExp(o))return o.test(t)}}function nK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function iK(e,t){const r=xe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(n,i,a){return this[o].call(this,t,n,i,a)},configurable:!0})})}class ld{constructor(t){t&&this.set(t)}set(t,r,o){const n=this;function i(l,s,c){const d=La(s);if(!d)throw new Error("header name must be a non-empty string");const u=xe.findKey(n,d);(!u||n[u]===void 0||c===!0||c===void 0&&n[u]!==!1)&&(n[u||s]=Ls(l))}const a=(l,s)=>xe.forEach(l,(c,d)=>i(c,d,s));if(xe.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(xe.isString(t)&&(t=t.trim())&&!oK(t))a(tK(t),r);else if(xe.isHeaders(t))for(const[l,s]of t.entries())i(s,l,o);else t!=null&&i(r,t,o);return this}get(t,r){if(t=La(t),t){const o=xe.findKey(this,t);if(o){const n=this[o];if(!r)return n;if(r===!0)return rK(n);if(xe.isFunction(r))return r.call(this,n,o);if(xe.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=La(t),t){const o=xe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||pu(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let n=!1;function i(a){if(a=La(a),a){const l=xe.findKey(o,a);l&&(!r||pu(o,o[l],l,r))&&(delete o[l],n=!0)}}return xe.isArray(t)?t.forEach(i):i(t),n}clear(t){const r=Object.keys(this);let o=r.length,n=!1;for(;o--;){const i=r[o];(!t||pu(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const r=this,o={};return xe.forEach(this,(n,i)=>{const a=xe.findKey(o,i);if(a){r[a]=Ls(n),delete r[i];return}const l=t?nK(i):String(i).trim();l!==i&&delete r[i],r[l]=Ls(n),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return xe.forEach(this,(o,n)=>{o!=null&&o!==!1&&(r[n]=t&&xe.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
+`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(n=>o.set(n)),o}static accessor(t){const o=(this[rb]=this[rb]={accessors:{}}).accessors,n=this.prototype;function i(a){const l=La(a);o[l]||(iK(n,a),o[l]=!0)}return xe.isArray(t)?t.forEach(i):i(t),this}}ld.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(ld.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});xe.freezeMethods(ld);const go=ld;function vu(e,t){const r=this||ep,o=t||r,n=go.from(o.headers);let i=o.data;return xe.forEach(e,function(l){i=l.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function s_(e){return!!(e&&e.__CANCEL__)}function Sa(e,t,r){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,r),this.name="CanceledError"}xe.inherits(Sa,dt,{__CANCEL__:!0});function c_(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new dt("Request failed with status code "+r.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function aK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lK(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),d=o[i];a||(a=c),r[n]=s,o[n]=c;let u=i,f=0;for(;u!==n;)f+=r[u++],u=u%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),c-ao)return n&&(clearTimeout(n),n=null),r=l,e.apply(null,arguments);n||(n=setTimeout(()=>(n=null,r=Date.now(),e.apply(null,arguments)),o-(l-r)))}}const cc=(e,t,r=3)=>{let o=0;const n=lK(50,250);return sK(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-o,c=n(s),d=a<=l;o=a;const u={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null};u[t?"download":"upload"]=!0,e(u)},r)},cK=vo.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let o;function n(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=n(window.location.href),function(a){const l=xe.isString(a)?n(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),dK=vo.hasStandardBrowserEnv?{write(e,t,r,o,n,i){const a=[e+"="+encodeURIComponent(t)];xe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),xe.isString(o)&&a.push("path="+o),xe.isString(n)&&a.push("domain="+n),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function uK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function d_(e,t){return e&&!uK(t)?fK(e,t):t}const ob=e=>e instanceof go?{...e}:e;function mi(e,t){t=t||{};const r={};function o(c,d,u){return xe.isPlainObject(c)&&xe.isPlainObject(d)?xe.merge.call({caseless:u},c,d):xe.isPlainObject(d)?xe.merge({},d):xe.isArray(d)?d.slice():d}function n(c,d,u){if(xe.isUndefined(d)){if(!xe.isUndefined(c))return o(void 0,c,u)}else return o(c,d,u)}function i(c,d){if(!xe.isUndefined(d))return o(void 0,d)}function a(c,d){if(xe.isUndefined(d)){if(!xe.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,u){if(u in t)return o(c,d);if(u in e)return o(void 0,c)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,d)=>n(ob(c),ob(d),!0)};return xe.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=s[d]||n,f=u(e[d],t[d],d);xe.isUndefined(f)&&u!==l||(r[d]=f)}),r}const u_=e=>{const t=mi({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:n,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=go.from(a),t.url=i_(d_(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(xe.isFormData(r)){if(vo.hasStandardBrowserEnv||vo.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((s=a.getContentType())!==!1){const[c,...d]=s?s.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(vo.hasStandardBrowserEnv&&(o&&xe.isFunction(o)&&(o=o(t)),o||o!==!1&&cK(t.url))){const c=n&&i&&dK.read(i);c&&a.set(n,c)}return t},hK=typeof XMLHttpRequest<"u",pK=hK&&function(e){return new Promise(function(r,o){const n=u_(e);let i=n.data;const a=go.from(n.headers).normalize();let{responseType:l}=n,s;function c(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let d=new XMLHttpRequest;d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout;function u(){if(!d)return;const p=go.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:p,config:e,request:d};c_(function(m){r(m),c()},function(m){o(m),c()},v),d=null}"onloadend"in d?d.onloadend=u:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(u)},d.onabort=function(){d&&(o(new dt("Request aborted",dt.ECONNABORTED,n,d)),d=null)},d.onerror=function(){o(new dt("Network Error",dt.ERR_NETWORK,n,d)),d=null},d.ontimeout=function(){let h=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||a_;n.timeoutErrorMessage&&(h=n.timeoutErrorMessage),o(new dt(h,v.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,n,d)),d=null},i===void 0&&a.setContentType(null),"setRequestHeader"in d&&xe.forEach(a.toJSON(),function(h,v){d.setRequestHeader(v,h)}),xe.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),l&&l!=="json"&&(d.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&d.addEventListener("progress",cc(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",cc(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=p=>{d&&(o(!p||p.type?new Sa(null,e,d):p),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const f=aK(n.url);if(f&&vo.protocols.indexOf(f)===-1){o(new dt("Unsupported protocol "+f+":",dt.ERR_BAD_REQUEST,e));return}d.send(i||null)})},vK=(e,t)=>{let r=new AbortController,o;const n=function(s){if(!o){o=!0,a();const c=s instanceof Error?s:this.reason;r.abort(c instanceof dt?c:new Sa(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{n(new dt(`timeout ${t} of ms exceeded`,dt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s&&(s.removeEventListener?s.removeEventListener("abort",n):s.unsubscribe(n))}),e=null)};e.forEach(s=>s&&s.addEventListener&&s.addEventListener("abort",n));const{signal:l}=r;return l.unsubscribe=a,[l,()=>{i&&clearTimeout(i),i=null}]},gK=vK,mK=function*(e,t){let r=e.byteLength;if(!t||r{const i=bK(e,t,n);let a=0;return new ReadableStream({type:"bytes",async pull(l){const{done:s,value:c}=await i.next();if(s){l.close(),o();return}let d=c.byteLength;r&&r(a+=d),l.enqueue(new Uint8Array(c))},cancel(l){return o(l),i.return()}},{highWaterMark:2})},ib=(e,t)=>{const r=e!=null;return o=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:o}))},sd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",f_=sd&&typeof ReadableStream=="function",u0=sd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xK=f_&&(()=>{let e=!1;const t=new Request(vo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ab=64*1024,f0=f_&&!!(()=>{try{return xe.isReadableStream(new Response("").body)}catch{}})(),dc={stream:f0&&(e=>e.body)};sd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!dc[t]&&(dc[t]=xe.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new dt(`Response type '${t}' is not supported`,dt.ERR_NOT_SUPPORT,o)})})})(new Response);const yK=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(xe.isArrayBufferView(e))return e.byteLength;if(xe.isURLSearchParams(e)&&(e=e+""),xe.isString(e))return(await u0(e)).byteLength},CK=async(e,t)=>{const r=xe.toFiniteNumber(e.getContentLength());return r??yK(t)},wK=sd&&(async e=>{let{url:t,method:r,data:o,signal:n,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:f}=u_(e);c=c?(c+"").toLowerCase():"text";let[p,h]=n||i||a?gK([n,i],a):[],v,g;const m=()=>{!v&&setTimeout(()=>{p&&p.unsubscribe()}),v=!0};let x;try{if(s&&xK&&r!=="get"&&r!=="head"&&(x=await CK(d,o))!==0){let C=new Request(t,{method:"POST",body:o,duplex:"half"}),_;xe.isFormData(o)&&(_=C.headers.get("content-type"))&&d.setContentType(_),C.body&&(o=nb(C.body,ab,ib(x,cc(s)),null,u0))}xe.isString(u)||(u=u?"cors":"omit"),g=new Request(t,{...f,signal:p,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",withCredentials:u});let b=await fetch(g);const y=f0&&(c==="stream"||c==="response");if(f0&&(l||y)){const C={};["status","statusText","headers"].forEach(k=>{C[k]=b[k]});const _=xe.toFiniteNumber(b.headers.get("content-length"));b=new Response(nb(b.body,ab,l&&ib(_,cc(l,!0)),y&&m,u0),C)}c=c||"text";let E=await dc[xe.findKey(dc,c)||"text"](b,e);return!y&&m(),h&&h(),await new Promise((C,_)=>{c_(C,_,{data:E,headers:go.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(b){throw m(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new dt("Network Error",dt.ERR_NETWORK,e,g),{cause:b.cause||b}):dt.from(b,b&&b.code,e,g)}}),h0={http:LU,xhr:pK,fetch:wK};xe.forEach(h0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lb=e=>`- ${e}`,SK=e=>xe.isFunction(e)||e===null||e===!1,h_={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let i=0;i`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
+`+i.map(lb).join(`
+`):" "+lb(i[0]):"as no adapter specified";throw new dt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:h0};function gu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sa(null,e)}function sb(e){return gu(e),e.headers=go.from(e.headers),e.data=vu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),h_.getAdapter(e.adapter||ep.adapter)(e).then(function(o){return gu(e),o.data=vu.call(e,e.transformResponse,o),o.headers=go.from(o.headers),o},function(o){return s_(o)||(gu(e),o&&o.response&&(o.response.data=vu.call(e,e.transformResponse,o.response),o.response.headers=go.from(o.response.headers))),Promise.reject(o)})}const p_="1.7.2",tp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tp[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const cb={};tp.transitional=function(t,r,o){function n(i,a){return"[Axios v"+p_+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,l)=>{if(t===!1)throw new dt(n(a," has been removed"+(r?" in "+r:"")),dt.ERR_DEPRECATED);return r&&!cb[a]&&(cb[a]=!0,console.warn(n(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,l):!0}};function _K(e,t,r){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const i=o[n],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new dt("option "+i+" must be "+s,dt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new dt("Unknown option "+i,dt.ERR_BAD_OPTION)}}const p0={assertOptions:_K,validators:tp},vn=p0.validators;class uc{constructor(t){this.defaults=t,this.interceptors={request:new tb,response:new tb}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
+`+i):o.stack=i}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mi(this.defaults,r);const{transitional:o,paramsSerializer:n,headers:i}=r;o!==void 0&&p0.assertOptions(o,{silentJSONParsing:vn.transitional(vn.boolean),forcedJSONParsing:vn.transitional(vn.boolean),clarifyTimeoutError:vn.transitional(vn.boolean)},!1),n!=null&&(xe.isFunction(n)?r.paramsSerializer={serialize:n}:p0.assertOptions(n,{encode:vn.function,serialize:vn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&xe.merge(i.common,i[r.method]);i&&xe.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),r.headers=go.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(s=s&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,u=0,f;if(!s){const h=[sb.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,d=Promise.resolve(r);u{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](n);o._listeners=null}),this.promise.then=n=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(n);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new Sa(i,a,l),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new rp(function(n){t=n}),cancel:t}}}const EK=rp;function kK(e){return function(r){return e.apply(null,r)}}function PK(e){return xe.isObject(e)&&e.isAxiosError===!0}const v0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(v0).forEach(([e,t])=>{v0[t]=e});const TK=v0;function v_(e){const t=new zs(e),r=qS(zs.prototype.request,t);return xe.extend(r,zs.prototype,t,{allOwnKeys:!0}),xe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return v_(mi(e,n))},r}const tr=v_(ep);tr.Axios=zs;tr.CanceledError=Sa;tr.CancelToken=EK;tr.isCancel=s_;tr.VERSION=p_;tr.toFormData=ad;tr.AxiosError=dt;tr.Cancel=tr.CanceledError;tr.all=function(t){return Promise.all(t)};tr.spread=kK;tr.isAxiosError=PK;tr.mergeConfig=mi;tr.AxiosHeaders=go;tr.formToJSON=e=>l_(xe.isHTMLForm(e)?new FormData(e):e);tr.getAdapter=h_.getAdapter;tr.HttpStatusCode=TK;tr.default=tr;const RK=tr,nl=RK.create({baseURL:"https://ybx_prediagnosis.excn.top/api"});nl.interceptors.request.use(e=>{const t=Vn().token;return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e.response));nl.interceptors.response.use(e=>{if(e.status===200)return e;throw new Error(e.status.toString())},e=>Promise.reject(e));function op({url:e,data:t,method:r,headers:o,onDownloadProgress:n,signal:i,beforeRequest:a,afterRequest:l}){const s=u=>u.data.code==500&&u.data.msg=="登录失效"?Promise.reject(u.data):u.status==200||typeof u.data=="string"?Promise.resolve(u.data):(u.status===401&&console.log("res",u),Promise.reject(u.data)),c=u=>{if(console.log(u),u.response.data.code==401)return console.log("res",u.response.data),Vn().removeToken(),Promise.resolve(u.response.data);throw l==null||l(),new Error((u==null?void 0:u.message)||"Error")};a==null||a(),r=r||"GET";const d=Object.assign(typeof t=="function"?t():t??{},{});switch(console.log("params",d),r){case"GET":return nl.get(e,{params:d,signal:i,onDownloadProgress:n}).then(s,c);case"POST":return nl.post(e,d,{headers:o,signal:i,onDownloadProgress:n}).then(s,c);case"DELETE":return nl.delete(e,{params:d,signal:i,onDownloadProgress:n}).then(s,c)}}function cd({url:e,data:t,method:r="GET",onDownloadProgress:o,signal:n,beforeRequest:i,afterRequest:a}){return op({url:e,method:r,data:t,onDownloadProgress:o,signal:n,beforeRequest:i,afterRequest:a})}function ln({url:e,data:t,method:r="POST",headers:o,onDownloadProgress:n,signal:i,beforeRequest:a,afterRequest:l}){return op({url:e,method:r,data:t,headers:o,onDownloadProgress:n,signal:i,beforeRequest:a,afterRequest:l})}function AK({url:e,data:t,method:r="DELETE",headers:o,onDownloadProgress:n,signal:i,beforeRequest:a,afterRequest:l}){return op({url:e,method:r,data:t,headers:o,onDownloadProgress:n,signal:i,beforeRequest:a,afterRequest:l})}var g_={exports:{}};const FK={},OK=Object.freeze(Object.defineProperty({__proto__:null,default:FK},Symbol.toStringTag,{value:"Module"})),g0=SL(OK);/**
+ * [js-md5]{@link https://github.com/emn178/js-md5}
+ *
+ * @namespace md5
+ * @version 0.8.3
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
+ * @copyright Chen, Yi-Cyuan 2014-2023
+ * @license MIT
+ */(function(e){(function(){var t="input is invalid type",r="finalize already called",o=typeof window=="object",n=o?window:{};n.JS_MD5_NO_WINDOW&&(o=!1);var i=!o&&typeof self=="object",a=!n.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?n=ft:i&&(n=self);var l=!n.JS_MD5_NO_COMMON_JS&&!0&&e.exports,s=!n.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),d=[128,32768,8388608,-2147483648],u=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=[],v;if(s){var g=new ArrayBuffer(68);v=new Uint8Array(g),h=new Uint32Array(g)}var m=Array.isArray;(n.JS_MD5_NO_NODE_JS||!m)&&(m=function(S){return Object.prototype.toString.call(S)==="[object Array]"});var x=ArrayBuffer.isView;s&&(n.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!x)&&(x=function(S){return typeof S=="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});var b=function(S){var P=typeof S;if(P==="string")return[S,!0];if(P!=="object"||S===null)throw new Error(t);if(s&&S.constructor===ArrayBuffer)return[new Uint8Array(S),!1];if(!m(S)&&!x(S))throw new Error(t);return[S,!1]},y=function(S){return function(P){return new R(!0).update(P)[S]()}},E=function(){var S=y("hex");a&&(S=C(S)),S.create=function(){return new R},S.update=function(T){return S.create().update(T)};for(var P=0;P>>6,ee[N++]=128|T&63):T<55296||T>=57344?(ee[N++]=224|T>>>12,ee[N++]=128|T>>>6&63,ee[N++]=128|T&63):(T=65536+((T&1023)<<10|S.charCodeAt(++H)&1023),ee[N++]=240|T>>>18,ee[N++]=128|T>>>12&63,ee[N++]=128|T>>>6&63,ee[N++]=128|T&63);else for(N=this.start;H>>2]|=T<>>2]|=(192|T>>>6)<>>2]|=(128|T&63)<=57344?(re[N>>>2]|=(224|T>>>12)<>>2]|=(128|T>>>6&63)<>>2]|=(128|T&63)<>>2]|=(240|T>>>18)<>>2]|=(128|T>>>12&63)<>>2]|=(128|T>>>6&63)<>>2]|=(128|T&63)<>>2]|=S[H]<=64?(this.start=N-64,this.hash(),this.hashed=!0):this.start=N}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,P=this.lastByteIndex;S[P>>>2]|=d[P&3],P>=56&&(this.hashed||this.hash(),S[0]=S[16],S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0),S[14]=this.bytes<<3,S[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},R.prototype.hash=function(){var S,P,F,T,H,N,W=this.blocks;this.first?(S=W[0]-680876937,S=(S<<7|S>>>25)-271733879<<0,T=(-1732584194^S&2004318071)+W[1]-117830708,T=(T<<12|T>>>20)+S<<0,F=(-271733879^T&(S^-271733879))+W[2]-1126478375,F=(F<<17|F>>>15)+T<<0,P=(S^F&(T^S))+W[3]-1316259209,P=(P<<22|P>>>10)+F<<0):(S=this.h0,P=this.h1,F=this.h2,T=this.h3,S+=(T^P&(F^T))+W[0]-680876936,S=(S<<7|S>>>25)+P<<0,T+=(F^S&(P^F))+W[1]-389564586,T=(T<<12|T>>>20)+S<<0,F+=(P^T&(S^P))+W[2]+606105819,F=(F<<17|F>>>15)+T<<0,P+=(S^F&(T^S))+W[3]-1044525330,P=(P<<22|P>>>10)+F<<0),S+=(T^P&(F^T))+W[4]-176418897,S=(S<<7|S>>>25)+P<<0,T+=(F^S&(P^F))+W[5]+1200080426,T=(T<<12|T>>>20)+S<<0,F+=(P^T&(S^P))+W[6]-1473231341,F=(F<<17|F>>>15)+T<<0,P+=(S^F&(T^S))+W[7]-45705983,P=(P<<22|P>>>10)+F<<0,S+=(T^P&(F^T))+W[8]+1770035416,S=(S<<7|S>>>25)+P<<0,T+=(F^S&(P^F))+W[9]-1958414417,T=(T<<12|T>>>20)+S<<0,F+=(P^T&(S^P))+W[10]-42063,F=(F<<17|F>>>15)+T<<0,P+=(S^F&(T^S))+W[11]-1990404162,P=(P<<22|P>>>10)+F<<0,S+=(T^P&(F^T))+W[12]+1804603682,S=(S<<7|S>>>25)+P<<0,T+=(F^S&(P^F))+W[13]-40341101,T=(T<<12|T>>>20)+S<<0,F+=(P^T&(S^P))+W[14]-1502002290,F=(F<<17|F>>>15)+T<<0,P+=(S^F&(T^S))+W[15]+1236535329,P=(P<<22|P>>>10)+F<<0,S+=(F^T&(P^F))+W[1]-165796510,S=(S<<5|S>>>27)+P<<0,T+=(P^F&(S^P))+W[6]-1069501632,T=(T<<9|T>>>23)+S<<0,F+=(S^P&(T^S))+W[11]+643717713,F=(F<<14|F>>>18)+T<<0,P+=(T^S&(F^T))+W[0]-373897302,P=(P<<20|P>>>12)+F<<0,S+=(F^T&(P^F))+W[5]-701558691,S=(S<<5|S>>>27)+P<<0,T+=(P^F&(S^P))+W[10]+38016083,T=(T<<9|T>>>23)+S<<0,F+=(S^P&(T^S))+W[15]-660478335,F=(F<<14|F>>>18)+T<<0,P+=(T^S&(F^T))+W[4]-405537848,P=(P<<20|P>>>12)+F<<0,S+=(F^T&(P^F))+W[9]+568446438,S=(S<<5|S>>>27)+P<<0,T+=(P^F&(S^P))+W[14]-1019803690,T=(T<<9|T>>>23)+S<<0,F+=(S^P&(T^S))+W[3]-187363961,F=(F<<14|F>>>18)+T<<0,P+=(T^S&(F^T))+W[8]+1163531501,P=(P<<20|P>>>12)+F<<0,S+=(F^T&(P^F))+W[13]-1444681467,S=(S<<5|S>>>27)+P<<0,T+=(P^F&(S^P))+W[2]-51403784,T=(T<<9|T>>>23)+S<<0,F+=(S^P&(T^S))+W[7]+1735328473,F=(F<<14|F>>>18)+T<<0,P+=(T^S&(F^T))+W[12]-1926607734,P=(P<<20|P>>>12)+F<<0,H=P^F,S+=(H^T)+W[5]-378558,S=(S<<4|S>>>28)+P<<0,T+=(H^S)+W[8]-2022574463,T=(T<<11|T>>>21)+S<<0,N=T^S,F+=(N^P)+W[11]+1839030562,F=(F<<16|F>>>16)+T<<0,P+=(N^F)+W[14]-35309556,P=(P<<23|P>>>9)+F<<0,H=P^F,S+=(H^T)+W[1]-1530992060,S=(S<<4|S>>>28)+P<<0,T+=(H^S)+W[4]+1272893353,T=(T<<11|T>>>21)+S<<0,N=T^S,F+=(N^P)+W[7]-155497632,F=(F<<16|F>>>16)+T<<0,P+=(N^F)+W[10]-1094730640,P=(P<<23|P>>>9)+F<<0,H=P^F,S+=(H^T)+W[13]+681279174,S=(S<<4|S>>>28)+P<<0,T+=(H^S)+W[0]-358537222,T=(T<<11|T>>>21)+S<<0,N=T^S,F+=(N^P)+W[3]-722521979,F=(F<<16|F>>>16)+T<<0,P+=(N^F)+W[6]+76029189,P=(P<<23|P>>>9)+F<<0,H=P^F,S+=(H^T)+W[9]-640364487,S=(S<<4|S>>>28)+P<<0,T+=(H^S)+W[12]-421815835,T=(T<<11|T>>>21)+S<<0,N=T^S,F+=(N^P)+W[15]+530742520,F=(F<<16|F>>>16)+T<<0,P+=(N^F)+W[2]-995338651,P=(P<<23|P>>>9)+F<<0,S+=(F^(P|~T))+W[0]-198630844,S=(S<<6|S>>>26)+P<<0,T+=(P^(S|~F))+W[7]+1126891415,T=(T<<10|T>>>22)+S<<0,F+=(S^(T|~P))+W[14]-1416354905,F=(F<<15|F>>>17)+T<<0,P+=(T^(F|~S))+W[5]-57434055,P=(P<<21|P>>>11)+F<<0,S+=(F^(P|~T))+W[12]+1700485571,S=(S<<6|S>>>26)+P<<0,T+=(P^(S|~F))+W[3]-1894986606,T=(T<<10|T>>>22)+S<<0,F+=(S^(T|~P))+W[10]-1051523,F=(F<<15|F>>>17)+T<<0,P+=(T^(F|~S))+W[1]-2054922799,P=(P<<21|P>>>11)+F<<0,S+=(F^(P|~T))+W[8]+1873313359,S=(S<<6|S>>>26)+P<<0,T+=(P^(S|~F))+W[15]-30611744,T=(T<<10|T>>>22)+S<<0,F+=(S^(T|~P))+W[6]-1560198380,F=(F<<15|F>>>17)+T<<0,P+=(T^(F|~S))+W[13]+1309151649,P=(P<<21|P>>>11)+F<<0,S+=(F^(P|~T))+W[4]-145523070,S=(S<<6|S>>>26)+P<<0,T+=(P^(S|~F))+W[11]-1120210379,T=(T<<10|T>>>22)+S<<0,F+=(S^(T|~P))+W[2]+718787259,F=(F<<15|F>>>17)+T<<0,P+=(T^(F|~S))+W[9]-343485551,P=(P<<21|P>>>11)+F<<0,this.first?(this.h0=S+1732584193<<0,this.h1=P-271733879<<0,this.h2=F-1732584194<<0,this.h3=T+271733878<<0,this.first=!1):(this.h0=this.h0+S<<0,this.h1=this.h1+P<<0,this.h2=this.h2+F<<0,this.h3=this.h3+T<<0)},R.prototype.hex=function(){this.finalize();var S=this.h0,P=this.h1,F=this.h2,T=this.h3;return c[S>>>4&15]+c[S&15]+c[S>>>12&15]+c[S>>>8&15]+c[S>>>20&15]+c[S>>>16&15]+c[S>>>28&15]+c[S>>>24&15]+c[P>>>4&15]+c[P&15]+c[P>>>12&15]+c[P>>>8&15]+c[P>>>20&15]+c[P>>>16&15]+c[P>>>28&15]+c[P>>>24&15]+c[F>>>4&15]+c[F&15]+c[F>>>12&15]+c[F>>>8&15]+c[F>>>20&15]+c[F>>>16&15]+c[F>>>28&15]+c[F>>>24&15]+c[T>>>4&15]+c[T&15]+c[T>>>12&15]+c[T>>>8&15]+c[T>>>20&15]+c[T>>>16&15]+c[T>>>28&15]+c[T>>>24&15]},R.prototype.toString=R.prototype.hex,R.prototype.digest=function(){this.finalize();var S=this.h0,P=this.h1,F=this.h2,T=this.h3;return[S&255,S>>>8&255,S>>>16&255,S>>>24&255,P&255,P>>>8&255,P>>>16&255,P>>>24&255,F&255,F>>>8&255,F>>>16&255,F>>>24&255,T&255,T>>>8&255,T>>>16&255,T>>>24&255]},R.prototype.array=R.prototype.digest,R.prototype.arrayBuffer=function(){this.finalize();var S=new ArrayBuffer(16),P=new Uint32Array(S);return P[0]=this.h0,P[1]=this.h1,P[2]=this.h2,P[3]=this.h3,S},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.base64=function(){for(var S,P,F,T="",H=this.array(),N=0;N<15;)S=H[N++],P=H[N++],F=H[N++],T+=p[S>>>2]+p[(S<<4|P>>>4)&63]+p[(P<<2|F>>>6)&63]+p[F&63];return S=H[N],T+=p[S>>>2]+p[S<<4&63]+"==",T};function A(S,P){var F,T=b(S);if(S=T[0],T[1]){var H=[],N=S.length,W=0,re;for(F=0;F>>6,H[W++]=128|re&63):re<55296||re>=57344?(H[W++]=224|re>>>12,H[W++]=128|re>>>6&63,H[W++]=128|re&63):(re=65536+((re&1023)<<10|S.charCodeAt(++F)&1023),H[W++]=240|re>>>18,H[W++]=128|re>>>12&63,H[W++]=128|re>>>6&63,H[W++]=128|re&63);S=H}S.length>64&&(S=new R(!0).update(S).array());var ee=[],L=[];for(F=0;F<64;++F){var M=S[F]||0;ee[F]=92^M,L[F]=54^M}R.call(this,P),this.update(L),this.oKeyPad=ee,this.inner=!0,this.sharedMemory=P}A.prototype=new R,A.prototype.finalize=function(){if(R.prototype.finalize.call(this),this.inner){this.inner=!1;var S=this.array();R.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(S),R.prototype.finalize.call(this)}};var B=E();B.md5=B,B.md5.hmac=k(),l?e.exports=B:n.md5=B})()})(g_);var Il=g_.exports;function m_(){var e=new Date,t=e.getFullYear()+"-",r=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",o=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",i=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",a=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t+r+o+n+i+a}function b_(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r="",o=0;o{r[o]=e[o]}),r}function x_(e){let t=BK(e),r="";console.log(t);for(let o in t)r+=o+e[o];return Il.md5(Il.md5(r))}function IK(e){return ln({url:"/user/sendCode",data:{phone:e}})}function yZ(e){e.invite_code==""&&delete e.invite_code,e.password=Il.md5(e.password);let t=m_(),r=b_(8);e.timestamp=t,e.noncestr=r;let o=x_(e);return e.sign=o,ln({url:"/reg/reg",data:e})}function $K(e){return e.password=Il.md5(e.password),ln({url:"/Userstt/login",data:e})}function CZ(e){const t=Vn();return e.username=t.token,ln({url:"/Reporttt/createReport",data:e})}function wZ(e){e.password=Il.md5(e.password);let t=m_(),r=b_(8);e.timestamp=t,e.noncestr=r;let o=x_(e);return e.sign=o,ln({url:"/users/forgot",data:e})}function DK(){return cd({url:"/Userstt/getUserById",data:{}})}function SZ(e){return ln({url:"/email/check",data:e})}function LK(){return cd({url:"/Configuration",data:{page:1,limit:999}})}function zK(e){return ln({url:"/pay/wechatPay",data:{configurations_id:e}})}function MK(e){return cd({url:"/pay/poll",data:{order_id:e}})}function _Z(e){return AK({url:"/aiGeneratedImages/delete/"+e,data:{}})}function NK(){const e=Vn();return ln({url:"/chat/createWindow",data:{ticket:e.token}})}function HK(e){const t=Vn();return ln({url:"/chat/delWindow",data:{ticket:t.token,chatwin_id:e}})}function EZ(){return cd({url:"/coin/getall",data:{}})}const jK="chatStorage",y_="chatActive",C_="coinList";function WK(){return{active:1001,coinList:[],usingContext:!0,history:[{uuid:1001,title:ut("chat.newChatTitle"),isEdit:!1,month:"",date:""}],chat:[{uuid:1001,data:[]}],generating:!1,step:0,talkEnd:!1,isTalking:!0,isPlaying:!1,isFreeTalking:!0,freeTalkText:"",prompt:"",curTalkText:[],curTalkOptions:[],reportContent:[],chatVideos:[],stayVideo:null,talkVideo:null}}function VK(e){Xt.set(jK,e)}function UK(){return Xt.get(y_)}function db(e){return Xt.set(y_,e)}function KK(){let e=Xt.get(C_);return e?JSON.parse(e):null}function qK(e){return Xt.set(C_,JSON.stringify(e))}/*!
+ * vue-router v4.3.2
+ * (c) 2024 Eduardo San Martin Morote
+ * @license MIT
+ */const ji=typeof document<"u";function GK(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Tt=Object.assign;function mu(e,t){const r={};for(const o in t){const n=t[o];r[o]=bo(n)?n.map(e):e(n)}return r}const il=()=>{},bo=Array.isArray,w_=/#/g,XK=/&/g,YK=/\//g,ZK=/=/g,JK=/\?/g,S_=/\+/g,QK=/%5B/g,eq=/%5D/g,__=/%5E/g,tq=/%60/g,E_=/%7B/g,rq=/%7C/g,k_=/%7D/g,oq=/%20/g;function np(e){return encodeURI(""+e).replace(rq,"|").replace(QK,"[").replace(eq,"]")}function nq(e){return np(e).replace(E_,"{").replace(k_,"}").replace(__,"^")}function m0(e){return np(e).replace(S_,"%2B").replace(oq,"+").replace(w_,"%23").replace(XK,"%26").replace(tq,"`").replace(E_,"{").replace(k_,"}").replace(__,"^")}function iq(e){return m0(e).replace(ZK,"%3D")}function aq(e){return np(e).replace(w_,"%23").replace(JK,"%3F")}function lq(e){return e==null?"":aq(e).replace(YK,"%2F")}function $l(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const sq=/\/$/,cq=e=>e.replace(sq,"");function bu(e,t,r="/"){let o,n={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l=0&&(s=-1),s>-1&&(o=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),n=e(i)),l>-1&&(o=o||t.slice(0,l),a=t.slice(l,t.length)),o=hq(o??t,r),{fullPath:o+(i&&"?")+i+a,path:o,query:n,hash:$l(a)}}function dq(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function ub(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uq(e,t,r){const o=t.matched.length-1,n=r.matched.length-1;return o>-1&&o===n&&na(t.matched[o],r.matched[n])&&P_(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function na(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function P_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!fq(e[r],t[r]))return!1;return!0}function fq(e,t){return bo(e)?fb(e,t):bo(t)?fb(t,e):e===t}function fb(e,t){return bo(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function hq(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),n=o[o.length-1];(n===".."||n===".")&&o.push("");let i=r.length-1,a,l;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+o.slice(a).join("/")}var Dl;(function(e){e.pop="pop",e.push="push"})(Dl||(Dl={}));var al;(function(e){e.back="back",e.forward="forward",e.unknown=""})(al||(al={}));function pq(e){if(!e)if(ji){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cq(e)}const vq=/^[^#]+#/;function gq(e,t){return e.replace(vq,"#")+t}function mq(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const dd=()=>({left:window.scrollX,top:window.scrollY});function bq(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;t=mq(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hb(e,t){return(history.state?history.state.position-t:-1)+e}const b0=new Map;function xq(e,t){b0.set(e,t)}function yq(e){const t=b0.get(e);return b0.delete(e),t}let Cq=()=>location.protocol+"//"+location.host;function T_(e,t){const{pathname:r,search:o,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,s=n.slice(l);return s[0]!=="/"&&(s="/"+s),ub(s,"")}return ub(r,e)+o+n}function wq(e,t,r,o){let n=[],i=[],a=null;const l=({state:f})=>{const p=T_(e,location),h=r.value,v=t.value;let g=0;if(f){if(r.value=p,t.value=f,a&&a===h){a=null;return}g=v?f.position-v.position:0}else o(p);n.forEach(m=>{m(r.value,h,{delta:g,type:Dl.pop,direction:g?g>0?al.forward:al.back:al.unknown})})};function s(){a=r.value}function c(f){n.push(f);const p=()=>{const h=n.indexOf(f);h>-1&&n.splice(h,1)};return i.push(p),p}function d(){const{history:f}=window;f.state&&f.replaceState(Tt({},f.state,{scroll:dd()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:s,listen:c,destroy:u}}function pb(e,t,r,o=!1,n=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:n?dd():null}}function Sq(e){const{history:t,location:r}=window,o={value:T_(e,r)},n={value:t.state};n.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),f=u>-1?(r.host&&document.querySelector("base")?e:e.slice(u))+s:Cq()+e+s;try{t[d?"replaceState":"pushState"](c,"",f),n.value=c}catch(p){console.error(p),r[d?"replace":"assign"](f)}}function a(s,c){const d=Tt({},t.state,pb(n.value.back,s,n.value.forward,!0),c,{position:n.value.position});i(s,d,!0),o.value=s}function l(s,c){const d=Tt({},n.value,t.state,{forward:s,scroll:dd()});i(d.current,d,!0);const u=Tt({},pb(o.value,s,null),{position:d.position+1},c);i(s,u,!1),o.value=s}return{location:o,state:n,push:l,replace:a}}function _q(e){e=pq(e);const t=Sq(e),r=wq(e,t.state,t.location,t.replace);function o(i,a=!0){a||r.pauseListeners(),history.go(i)}const n=Tt({location:"",base:e,go:o,createHref:gq.bind(null,e)},t,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function Eq(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),_q(e)}function kq(e){return typeof e=="string"||e&&typeof e=="object"}function R_(e){return typeof e=="string"||typeof e=="symbol"}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},A_=Symbol("");var vb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(vb||(vb={}));function ia(e,t){return Tt(new Error,{type:e,[A_]:!0},t)}function Ko(e,t){return e instanceof Error&&A_ in e&&(t==null||!!(e.type&t))}const gb="[^/]+?",Pq={sensitive:!1,strict:!1,start:!0,end:!0},Tq=/[.+*?^${}()[\]/\\]/g;function Rq(e,t){const r=Tt({},Pq,t),o=[];let n=r.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];r.strict&&!c.length&&(n+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function Fq(e,t){let r=0;const o=e.score,n=t.score;for(;r0&&t[t.length-1]<0}const Oq={type:0,value:""},Bq=/[a-zA-Z0-9_]/;function Iq(e){if(!e)return[[]];if(e==="/")return[[Oq]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${c}": ${p}`)}let r=0,o=r;const n=[];let i;function a(){i&&n.push(i),i=[]}let l=0,s,c="",d="";function u(){c&&(r===0?i.push({type:0,value:c}):r===1||r===2||r===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;l{a(x)}:il}function a(d){if(R_(d)){const u=o.get(d);u&&(o.delete(d),r.splice(r.indexOf(u),1),u.children.forEach(a),u.alias.forEach(a))}else{const u=r.indexOf(d);u>-1&&(r.splice(u,1),d.record.name&&o.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function l(){return r}function s(d){let u=0;for(;u=0&&(d.record.path!==r[u].record.path||!F_(d,r[u]));)u++;r.splice(u,0,d),d.record.name&&!xb(d)&&o.set(d.record.name,d)}function c(d,u){let f,p={},h,v;if("name"in d&&d.name){if(f=o.get(d.name),!f)throw ia(1,{location:d});v=f.record.name,p=Tt(bb(u.params,f.keys.filter(x=>!x.optional).concat(f.parent?f.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),d.params&&bb(d.params,f.keys.map(x=>x.name))),h=f.stringify(p)}else if(d.path!=null)h=d.path,f=r.find(x=>x.re.test(h)),f&&(p=f.parse(h),v=f.record.name);else{if(f=u.name?o.get(u.name):r.find(x=>x.re.test(u.path)),!f)throw ia(1,{location:d,currentLocation:u});v=f.record.name,p=Tt({},u.params,d.params),h=f.stringify(p)}const g=[];let m=f;for(;m;)g.unshift(m.record),m=m.parent;return{name:v,path:h,params:p,matched:g,meta:Mq(g)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:c,removeRoute:a,getRoutes:l,getRecordMatcher:n}}function bb(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function Lq(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:zq(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function zq(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function xb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mq(e){return e.reduce((t,r)=>Tt(t,r.meta),{})}function yb(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function F_(e,t){return t.children.some(r=>r===e||F_(e,r))}function Nq(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&m0(i)):[o&&m0(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function Hq(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=bo(o)?o.map(n=>n==null?null:""+n):o==null?o:""+o)}return t}const jq=Symbol(""),wb=Symbol(""),ud=Symbol(""),O_=Symbol(""),x0=Symbol("");function za(){let e=[];function t(o){return e.push(o),()=>{const n=e.indexOf(o);n>-1&&e.splice(n,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function _n(e,t,r,o,n,i=a=>a()){const a=o&&(o.enterCallbacks[n]=o.enterCallbacks[n]||[]);return()=>new Promise((l,s)=>{const c=f=>{f===!1?s(ia(4,{from:r,to:t})):f instanceof Error?s(f):kq(f)?s(ia(2,{from:t,to:f})):(a&&o.enterCallbacks[n]===a&&typeof f=="function"&&a.push(f),l())},d=i(()=>e.call(o&&o.instances[n],t,r,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>s(f))})}function xu(e,t,r,o,n=i=>i()){const i=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(Wq(s)){const d=(s.__vccOpts||s)[t];d&&i.push(_n(d,r,o,a,l,n))}else{let c=s();i.push(()=>c.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${a.path}"`));const u=GK(d)?d.default:d;a.components[l]=u;const p=(u.__vccOpts||u)[t];return p&&_n(p,r,o,a,l,n)()}))}}return i}function Wq(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Sb(e){const t=De(ud),r=De(O_),o=j(()=>{const s=pe(e.to);return t.resolve(s)}),n=j(()=>{const{matched:s}=o.value,{length:c}=s,d=s[c-1],u=r.matched;if(!d||!u.length)return-1;const f=u.findIndex(na.bind(null,d));if(f>-1)return f;const p=_b(s[c-2]);return c>1&&_b(d)===p&&u[u.length-1].path!==p?u.findIndex(na.bind(null,s[c-2])):f}),i=j(()=>n.value>-1&&qq(r.params,o.value.params)),a=j(()=>n.value>-1&&n.value===r.matched.length-1&&P_(r.params,o.value.params));function l(s={}){return Kq(s)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch(il):Promise.resolve()}return{route:o,href:j(()=>o.value.href),isActive:i,isExactActive:a,navigate:l}}const Vq=be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Sb,setup(e,{slots:t}){const r=Lo(Sb(e)),{options:o}=De(ud),n=j(()=>({[Eb(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Eb(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:w("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:n.value},i)}}}),Uq=Vq;function Kq(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function qq(e,t){for(const r in t){const o=t[r],n=e[r];if(typeof o=="string"){if(o!==n)return!1}else if(!bo(n)||n.length!==o.length||o.some((i,a)=>i!==n[a]))return!1}return!0}function _b(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Eb=(e,t,r)=>e??t??r,Gq=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=De(x0),n=j(()=>e.route||o.value),i=De(wb,0),a=j(()=>{let c=pe(i);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),l=j(()=>n.value.matched[a.value]);ot(wb,j(()=>a.value+1)),ot(jq,l),ot(x0,n);const s=U();return lt(()=>[s.value,l.value,e.name],([c,d,u],[f,p,h])=>{d&&(d.instances[u]=c,p&&p!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!na(d,p)||!f)&&(d.enterCallbacks[u]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=n.value,d=e.name,u=l.value,f=u&&u.components[d];if(!f)return kb(r.default,{Component:f,route:c});const p=u.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=w(f,Tt({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return kb(r.default,{Component:g,route:c})||g}}});function kb(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Xq=Gq;function Yq(e){const t=Dq(e.routes,e),r=e.parseQuery||Nq,o=e.stringifyQuery||Cb,n=e.history,i=za(),a=za(),l=za(),s=Ll(gn);let c=gn;ji&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=mu.bind(null,te=>""+te),u=mu.bind(null,lq),f=mu.bind(null,$l);function p(te,ce){let X,le;return R_(te)?(X=t.getRecordMatcher(te),le=ce):le=te,t.addRoute(le,X)}function h(te){const ce=t.getRecordMatcher(te);ce&&t.removeRoute(ce)}function v(){return t.getRoutes().map(te=>te.record)}function g(te){return!!t.getRecordMatcher(te)}function m(te,ce){if(ce=Tt({},ce||s.value),typeof te=="string"){const I=bu(r,te,ce.path),q=t.resolve({path:I.path},ce),ue=n.createHref(I.fullPath);return Tt(I,q,{params:f(q.params),hash:$l(I.hash),redirectedFrom:void 0,href:ue})}let X;if(te.path!=null)X=Tt({},te,{path:bu(r,te.path,ce.path).path});else{const I=Tt({},te.params);for(const q in I)I[q]==null&&delete I[q];X=Tt({},te,{params:u(I)}),ce.params=u(ce.params)}const le=t.resolve(X,ce),Ee=te.hash||"";le.params=d(f(le.params));const _e=dq(o,Tt({},te,{hash:nq(Ee),path:le.path})),D=n.createHref(_e);return Tt({fullPath:_e,hash:Ee,query:o===Cb?Hq(te.query):te.query||{}},le,{redirectedFrom:void 0,href:D})}function x(te){return typeof te=="string"?bu(r,te,s.value.path):Tt({},te)}function b(te,ce){if(c!==te)return ia(8,{from:ce,to:te})}function y(te){return _(te)}function E(te){return y(Tt(x(te),{replace:!0}))}function C(te){const ce=te.matched[te.matched.length-1];if(ce&&ce.redirect){const{redirect:X}=ce;let le=typeof X=="function"?X(te):X;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=x(le):{path:le},le.params={}),Tt({query:te.query,hash:te.hash,params:le.path!=null?{}:te.params},le)}}function _(te,ce){const X=c=m(te),le=s.value,Ee=te.state,_e=te.force,D=te.replace===!0,I=C(X);if(I)return _(Tt(x(I),{state:typeof I=="object"?Tt({},Ee,I.state):Ee,force:_e,replace:D}),ce||X);const q=X;q.redirectedFrom=ce;let ue;return!_e&&uq(o,le,X)&&(ue=ia(16,{to:q,from:le}),L(le,le,!0,!1)),(ue?Promise.resolve(ue):A(q,le)).catch(se=>Ko(se)?Ko(se,2)?se:ee(se):W(se,q,le)).then(se=>{if(se){if(Ko(se,2))return _(Tt({replace:D},x(se.to),{state:typeof se.to=="object"?Tt({},Ee,se.to.state):Ee,force:_e}),ce||q)}else se=S(q,le,!0,D,Ee);return B(q,le,se),se})}function k(te,ce){const X=b(te,ce);return X?Promise.reject(X):Promise.resolve()}function R(te){const ce=J.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(te):te()}function A(te,ce){let X;const[le,Ee,_e]=Zq(te,ce);X=xu(le.reverse(),"beforeRouteLeave",te,ce);for(const I of le)I.leaveGuards.forEach(q=>{X.push(_n(q,te,ce))});const D=k.bind(null,te,ce);return X.push(D),ve(X).then(()=>{X=[];for(const I of i.list())X.push(_n(I,te,ce));return X.push(D),ve(X)}).then(()=>{X=xu(Ee,"beforeRouteUpdate",te,ce);for(const I of Ee)I.updateGuards.forEach(q=>{X.push(_n(q,te,ce))});return X.push(D),ve(X)}).then(()=>{X=[];for(const I of _e)if(I.beforeEnter)if(bo(I.beforeEnter))for(const q of I.beforeEnter)X.push(_n(q,te,ce));else X.push(_n(I.beforeEnter,te,ce));return X.push(D),ve(X)}).then(()=>(te.matched.forEach(I=>I.enterCallbacks={}),X=xu(_e,"beforeRouteEnter",te,ce,R),X.push(D),ve(X))).then(()=>{X=[];for(const I of a.list())X.push(_n(I,te,ce));return X.push(D),ve(X)}).catch(I=>Ko(I,8)?I:Promise.reject(I))}function B(te,ce,X){l.list().forEach(le=>R(()=>le(te,ce,X)))}function S(te,ce,X,le,Ee){const _e=b(te,ce);if(_e)return _e;const D=ce===gn,I=ji?history.state:{};X&&(le||D?n.replace(te.fullPath,Tt({scroll:D&&I&&I.scroll},Ee)):n.push(te.fullPath,Ee)),s.value=te,L(te,ce,X,D),ee()}let P;function F(){P||(P=n.listen((te,ce,X)=>{if(!ge.listening)return;const le=m(te),Ee=C(le);if(Ee){_(Tt(Ee,{replace:!0}),le).catch(il);return}c=le;const _e=s.value;ji&&xq(hb(_e.fullPath,X.delta),dd()),A(le,_e).catch(D=>Ko(D,12)?D:Ko(D,2)?(_(D.to,le).then(I=>{Ko(I,20)&&!X.delta&&X.type===Dl.pop&&n.go(-1,!1)}).catch(il),Promise.reject()):(X.delta&&n.go(-X.delta,!1),W(D,le,_e))).then(D=>{D=D||S(le,_e,!1),D&&(X.delta&&!Ko(D,8)?n.go(-X.delta,!1):X.type===Dl.pop&&Ko(D,20)&&n.go(-1,!1)),B(le,_e,D)}).catch(il)}))}let T=za(),H=za(),N;function W(te,ce,X){ee(te);const le=H.list();return le.length?le.forEach(Ee=>Ee(te,ce,X)):console.error(te),Promise.reject(te)}function re(){return N&&s.value!==gn?Promise.resolve():new Promise((te,ce)=>{T.add([te,ce])})}function ee(te){return N||(N=!te,F(),T.list().forEach(([ce,X])=>te?X(te):ce()),T.reset()),te}function L(te,ce,X,le){const{scrollBehavior:Ee}=e;if(!ji||!Ee)return Promise.resolve();const _e=!X&&yq(hb(te.fullPath,0))||(le||!X)&&history.state&&history.state.scroll||null;return Bt().then(()=>Ee(te,ce,_e)).then(D=>D&&bq(D)).catch(D=>W(D,te,ce))}const M=te=>n.go(te);let G;const J=new Set,ge={currentRoute:s,listening:!0,addRoute:p,removeRoute:h,hasRoute:g,getRoutes:v,resolve:m,options:e,push:y,replace:E,go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:H.add,isReady:re,install(te){const ce=this;te.component("RouterLink",Uq),te.component("RouterView",Xq),te.config.globalProperties.$router=ce,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(s)}),ji&&!G&&s.value===gn&&(G=!0,y(n.location).catch(Ee=>{}));const X={};for(const Ee in gn)Object.defineProperty(X,Ee,{get:()=>s.value[Ee],enumerable:!0});te.provide(ud,ce),te.provide(O_,Nx(X)),te.provide(x0,s);const le=te.unmount;J.add(te),te.unmount=function(){J.delete(te),J.size<1&&(c=gn,P&&P(),P=null,s.value=gn,G=!1,N=!1),le()}}};function ve(te){return te.reduce((ce,X)=>ce.then(()=>R(X)),Promise.resolve())}return ge}function Zq(e,t){const r=[],o=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;ana(c,l))?o.push(l):r.push(l));const s=e.matched[a];s&&(t.matched.find(c=>na(c,s))||n.push(s))}return[r,o,n]}function B_(){return De(ud)}const ip="SECRET_TOKEN",ap="TWITTER_INFO",lp="TELEGRAM_INFO";function Jq(){return Xt.get(ip)}function Qq(e){return Xt.set(ip,e)}function eG(){return Xt.remove(ip)}function tG(){let e=Xt.get(ap);return e?JSON.parse(e):null}function rG(e){return Xt.set(ap,JSON.stringify(e))}function oG(){return Xt.remove(ap)}function nG(){let e=Xt.get(lp);return e?JSON.parse(e):null}function iG(e){return Xt.set(lp,JSON.stringify(e))}function aG(){return Xt.remove(lp)}const Vn=ya("auth-store",{state:()=>({token:Jq(),twitterInfo:tG(),telegramInfo:nG(),session:null}),getters:{isChatGPTAPI(e){var t;return((t=e.session)==null?void 0:t.model)==="ChatGPTAPI"}},actions:{async getSession(){console.log("getSession");try{return Promise.resolve(123)}catch(e){return Promise.reject(e)}},setToken(e){this.token=e,console.log("this.token",this.token),Qq(e)},removeToken(){this.token=void 0,eG()},setTwitterInfo(e){this.twitterInfo=e,rG(e)},removeTwitterInfo(){this.twitterInfo=void 0,oG()},setTelegramInfo(e){this.telegramInfo=e,iG(e)},removeTelegramInfo(){this.telegramInfo=void 0,aG()}}});function lG(){return Vn(Hh)}function sG(e){e.beforeEach(async(t,r,o)=>{if(lG().token)o();else try{t.path!=="/user/login"?o({name:"login"}):o()}catch{t.path!=="/500"?o({name:"500"}):o()}})}const cG=""+new URL("bg3-5f10fa86.png",import.meta.url).href;var Pb;const I_=typeof window<"u";I_&&((Pb=window==null?void 0:window.navigator)!=null&&Pb.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function dG(e){return e}function uG(e,t){var r;if(typeof e=="number")return e+t;const o=((r=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:r[0])||"",n=e.slice(o.length),i=parseFloat(o)+t;return Number.isNaN(i)?e:i+n}function fG(e){return E0()?(Tx(e),!0):!1}function hG(e){return typeof e=="function"?j(e):U(e)}function pG(e,t=!0){Dr()?zt(e):t?e():Bt(e)}const $_=I_?window:void 0;function vG(e,t=!1){const r=U(),o=()=>r.value=!!e();return o(),pG(o,t),r}function Ma(e,t={}){const{window:r=$_}=t,o=vG(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let n;const i=U(!1),a=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",l):n.removeListener(l))},l=()=>{o.value&&(a(),n=r.matchMedia(hG(e).value),i.value=n.matches,"addEventListener"in n?n.addEventListener("change",l):n.addListener(l))};return ar(l),fG(()=>a()),i}const gG={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var mG=Object.defineProperty,Tb=Object.getOwnPropertySymbols,bG=Object.prototype.hasOwnProperty,xG=Object.prototype.propertyIsEnumerable,Rb=(e,t,r)=>t in e?mG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yG=(e,t)=>{for(var r in t||(t={}))bG.call(t,r)&&Rb(e,r,t[r]);if(Tb)for(var r of Tb(t))xG.call(t,r)&&Rb(e,r,t[r]);return e};function CG(e,t={}){function r(l,s){let c=e[l];return s!=null&&(c=uG(c,s)),typeof c=="number"&&(c=`${c}px`),c}const{window:o=$_}=t;function n(l){return o?o.matchMedia(l).matches:!1}const i=l=>Ma(`(min-width: ${r(l)})`,t),a=Object.keys(e).reduce((l,s)=>(Object.defineProperty(l,s,{get:()=>i(s),enumerable:!0,configurable:!0}),l),{});return yG({greater(l){return Ma(`(min-width: ${r(l,.1)})`,t)},greaterOrEqual:i,smaller(l){return Ma(`(max-width: ${r(l,-.1)})`,t)},smallerOrEqual(l){return Ma(`(max-width: ${r(l)})`,t)},between(l,s){return Ma(`(min-width: ${r(l)}) and (max-width: ${r(s,-.1)})`,t)},isGreater(l){return n(`(min-width: ${r(l,.1)})`)},isGreaterOrEqual(l){return n(`(min-width: ${r(l)})`)},isSmaller(l){return n(`(max-width: ${r(l,-.1)})`)},isSmallerOrEqual(l){return n(`(max-width: ${r(l)})`)},isInBetween(l,s){return n(`(min-width: ${r(l)}) and (max-width: ${r(s,-.1)})`)}},a)}const Ab=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fb="__vueuse_ssr_handlers__";Ab[Fb]=Ab[Fb]||{};var Ob;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ob||(Ob={}));var wG=Object.defineProperty,Bb=Object.getOwnPropertySymbols,SG=Object.prototype.hasOwnProperty,_G=Object.prototype.propertyIsEnumerable,Ib=(e,t,r)=>t in e?wG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EG=(e,t)=>{for(var r in t||(t={}))SG.call(t,r)&&Ib(e,r,t[r]);if(Bb)for(var r of Bb(t))_G.call(t,r)&&Ib(e,r,t[r]);return e};const kG={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};EG({linear:dG},kG);function fd(){return{isMobile:CG(gG).smaller("sm")}}const PG=""+new URL("forword-15bf4aaa.png",import.meta.url).href,TG=""+new URL("back-71f47591.png",import.meta.url).href,$b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAABANJREFUWEfNmE1oXFUUx3/nzmiD2Ik0qZTYgnUh0lLEEEoRkQhFK25EYq0kKS6kiAtbXbkRAu41cSXFhTQNxhqKG2mVgEFEShgCIgnBhRWMIdSkpDOljHXmHrlv5k1npjPv3kwT0rd73HPO/d/zfY7QxnfiH+1J7+BxLHtV6DZCRoQOJ0qVglVyoqyKZfm/En9M7pbljV4joQz9V7VjXxd9KL1i2BXKF4G1rKswu7TG3Mx+KYTw+oGNqBn6gCMCz8daCRHcjKaizZm/58jOvCDFJDmJwN5c1u70QwxIij3tgmkKsMRK8RZTX/XIaiu5LYGdzOmTKhwXSG8mqFiWQlEKXDi3W35vJr8psMG8HjAwIGC2AlQNOGtvMzXRJQuN99wFrKKpE1sNqhacFJhs1FwdsMindvLOVpmvlfadWYt5Pq/1uSqw/h81ve8Z3t5sRw91BS2xMj7KWUbEOp4qsMEbeiRlOBYqyFqMpDmoylPAXhEejniVHLCCsohlXgyJaaH2Pqv8cD4jv1SBVZLnmdA8pYZDqhwVIZP0EIWbwGVjmQ95sMtzqTVGv9wvhUhjQzl91ggv+pgrWnoJOOyjrTtXslrikjFEZkp8jDI9npGfI2DDN/SMGB7xMgmvIPT56JqeK7OiXPLxquX6eKd8Jq4gP9jBKR+DNRwUGPDRJZ5bLgr85pNxu8BZGc7pcyIcTVSvJa1pTgsVB/dJbnGuLjBKjPlM6oJAhvJ63MABjxM/jeHVNvE0sl0Um6w1W2JBBvP6bgoeTQQmvIFEaeGeP1UWjPJNkqCS5Zoz5Ye+NKHCacQfHEGoy03kp57ILMjJvI74BKrhIzavoFuxfOy78/4FFmJKK7zvy/I+DVTPlXVRxrymDHF+K7wukhy5GwC2KMrXic4P18LSheEQ8Frw5cmE34rl1yQSCwsSUictGClHZmLR9gF3RV0sY0Jyx6HKdHBJch3FvWpNYSqk04hKknvlcF7fE/yzohpe3nBncUeNWbF859WqZX28U0bLwALqpaOLTFoGt9EOY1Yt35tIRPIXN4sRsLeuakepi+BG0XUawDFvUXdFW5j21cYY6l2NojsICYLat6qbNx3Acmu9pxoYGnWtSwiLapkP0VIst2S5PNEpV9z/nSlJ1Qzf5JS4S7bhU1j5K8sX8eqgfnzLaXda7rPxLVbStgy8yuS5TP2qYPtXBDA1sTNgRdCgua1dqigXGjUV35+8hir7nFuubGpAOEcv5ttcQ8XI3ergsV76jNDv63R9wezylMJP5z/hSrwKaMXj3yhWOF0SLnbRK8rhkBm0IeddR5lLrZF1U7bvAfV5LIS6QuNm0Qd28IQKPQrdRhuWw0JOYBVlqfgvf7azHP4flSWz3NvvH+EAAAAASUVORK5CYII=";class RG{constructor(){yd(this,"items",[]);yd(this,"resolves",[])}async put(t){if(this.resolves.length>0){const r=this.resolves.shift();r==null||r(t)}else this.items.push(t)}async get(){return this.items.length>0?Promise.resolve(this.items.shift()):new Promise(t=>this.resolves.push(t))}size(){return this.items.length}}let Db=new RG,Ss="",pr=0,mn=!1,br=[];function AG(){const e=aa(),t=(f,p)=>e.getChatByUuidAndIndex(f,p),r=(f,p)=>{e.addChatByUuid(f,p)},o=(f,p,h)=>{e.updateChatByUuid(f,p,h)},n=(f,p,h)=>{e.updateChatSomeByUuid(f,p,h)};async function i(f){await Bt(),f&&(f.scrollTop=f.scrollHeight)}const a=f=>{let p="",h=f.indexOf("**end-searching**");return h!=-1?p=f.slice((h??0)+17)??"":p=f??"",p};function l(){return"Bearer fastgpt-kqh7EpxQWQFI6xDrZH8ZTqSccP4zYOD8ZwF2l2Be8AFo5WzJRrmZpQErU9xe9p9r"}const s=async(f,p)=>{var C;const h=aa(),v=j(()=>h.getChatByUuid(h.active));if(console.log(h.generating),h.generating){(C=window.$message)==null||C.info("Generating, please wait a moment");return}h.setGeneratingState(!0);let g=document.getElementById("scrollRef"),m=h.active,x="https://ue-ai.excn.top/api/v1/chat/completions",b="";h.updateHistoryTitle(m,f),r(m,{dateTime:new Date().toLocaleString(),text:f,questionText:"",replyText:"",inversion:!0,error:!1,conversationOptions:null,requestOptions:{prompt:f,options:null}}),r(m,{dateTime:new Date().toLocaleString(),text:"",questionText:f,replyText:"",loading:!0,inversion:!1,generated:!1,error:!1,conversationOptions:null,requestOptions:{prompt:f,options:null}}),i(g);let y="";const E={chatId:void 0,stream:!1,detail:!1,messages:[{content:f,role:"user"}]};try{const _=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json",Authorization:l()},body:JSON.stringify({...E,stream:!0})}),k=_.body.getReader();console.log("fetch--",_);async function R(){const{value:A}=await k.read();let B=new TextDecoder().decode(A);const P=B.split(`
+
+`).filter(T=>T).map(T=>{const H=T.split(`
+`);return H.length===2?{event:H[0].replace("event: ",""),data:H[1].replace("data: ","")}:{event:"",data:H[0].replace("data: ","")}});if(console.log(B,"----str2",P),B.indexOf("[DONE]")!=-1){let T=P;for(let H=0;H1;){let M=ee.shift();M&&c(M)}let L=ee.shift();L&&(b+=L)}}else if(N.data.indexOf("[DONE]")!=-1){c("[DONE]"),h.setGeneratingState(!1),p&&p();break}}return}let F=P;if(!F||F.length==0){p&&p();return}for(let T=0;T1;){let L=re.shift();L&&c(L)}let ee=re.shift();ee&&(b+=ee)}}}R()}R()}catch(_){const k=(_==null?void 0:_.message)??ut("common.failed");if(h.setGeneratingState(!1),p&&p(),_.message==="canceled")return n(m,v.value.length-1,{loading:!1}),i(g),Promise.resolve(k);const R=t(m,v.value.length-1);return R!=null&&R.text&&R.text!==""?(n(m,v.value.length-1,{text:`${R.text}
+[${k}]`,error:!1,loading:!1}),Promise.resolve(k)):(o(m,v.value.length-1,{dateTime:new Date().toLocaleString(),text:k,questionText:f,replyText:"",inversion:!1,error:!0,loading:!1,conversationOptions:null,requestOptions:{prompt:f,options:null}}),i(g),Promise.resolve(k))}};function c(f){console.log("添加字符",f),f&&Db.put(f),Ss||(Ss="establishing",d())}async function d(){let f=null,p=!1;for(;;){let h=await Db.get();if(h.endsWith("[DONE]")&&(h=h.replaceAll("[DONE]",""),p=!0),h){f=new Audio;let v={ad:f,loaded:!1,playId:br.length,isEnded:!1,text:h};f.addEventListener("ended",f.remove),f.addEventListener("ended",()=>{if(console.log(`Text:${h} played.`),!v.isEnded&&v.ad.currentTime>=v.ad.duration-.1){if(console.log("音频播放结束"),v.isEnded=!0,pr>=br.length-1&&p){pr=0,br=[],mn=!1,Ss="",e.freeTalkText="",e.isPlaying=!1,e.isFreeTalking=!1,e.setIsTalking(!0),r(1001,{dateTime:new Date().toLocaleString(),text:e.curTalkText[e.step],questionText:"",replyText:"",loading:!1,inversion:!1,generated:!1,error:!1,conversationOptions:null,denoisingStrength:.75,requestOptions:{prompt:"",options:null}});return}mn=!1,pr++,br[pr].loaded&&(console.log("audioList[playId]",br[pr]),br[pr].ad.play().then(g=>{mn=!0,console.log("开始播放",br[pr].text)}))}}),f.addEventListener("canplaythrough",()=>{console.log(`Text:${v.text} 加载完毕.`),v.loaded=!0,!mn&&v.playId==pr&&br[pr].ad.play().then(g=>{mn=!0,pr==0&&(e.isTalking=!0,e.isFreeTalking=!0),console.log("开始播放",v.text)})}),f.addEventListener("timeupdate",()=>{if(!v.isEnded&&v.ad.currentTime>=v.ad.duration-.1){if(console.log("音频播放结束"),v.isEnded=!0,pr>=br.length-1&&p){pr=0,br=[],mn=!1,Ss="",e.freeTalkText="",e.isPlaying=!1,e.isFreeTalking=!1,e.setIsTalking(!0),r(1001,{dateTime:new Date().toLocaleString(),text:e.curTalkText[e.step],questionText:"",replyText:"",loading:!1,inversion:!1,generated:!1,error:!1,conversationOptions:null,denoisingStrength:.75,requestOptions:{prompt:"",options:null}});return}mn=!1,pr++,br[pr].loaded&&(console.log("audioList[playId]",br[pr]),br[pr].ad.play().then(g=>{mn=!0,console.log("开始播放",br[pr].text)}))}}),f.src=`https://vits_simple.excn.top/voice/bert-vits2?id=0&length=0.7&text=${h}`,br.push(v),console.log("audioList",br),f.load()}if(p)break}}function u(f){return/[。,,;;??!!]+/.test(f)}return{addChat:r,updateChat:o,updateChatSome:n,getChatByUuidAndIndex:t,sendMessage:s,removeSearchStr:a}}const FG={class:"flex flex-col flex-1 min-h-0"},OG={class:"d-c-c h-full"},BG={class:"relative w-full h-full"},IG={key:0,class:"absolute top-[140px]",src:cG,alt:""},$G=["src"],DG=["src"],LG={key:1,class:"w-[80%] p-[28px] absolute bottom-[0] left-[10%] text-[#000] d-c-c",style:{background:"rgba(255,255,255,0.7)","box-shadow":"0px 4px 4px 0px rgba(88,135,255,0.25)","border-radius":"20px"}},zG=Ae("div",{class:"time-box"},[Ae("span",{class:"start-taste-line"},[Ae("hr",{class:"hr1"}),Ae("hr",{class:"hr2"}),Ae("hr",{class:"hr3"}),Ae("hr",{class:"hr4"}),Ae("hr",{class:"hr5"}),Ae("hr",{class:"hr6"}),Ae("hr",{class:"hr7"}),Ae("hr",{class:"hr8"}),Ae("hr",{class:"hr9"}),Ae("hr",{class:"hr10"})])],-1),MG={key:0,class:"ml-[20px] max-w-[80%]"},NG={key:1,class:"ml-[20px] max-w-[80%]"},HG={key:2,class:"d-c-e h-full w-full absolute top-0 left-0"},jG={class:"d-c-c flex-wrap w-full"},WG=["onClick"],VG={key:0,class:"d-c-c h-full"},UG=["onClick"],KG={class:"relative ml-[60px]"},qG=["onClick"],GG=be({__name:"index",setup(e){const t=U(["左侧头部(前侧包含面部)","右侧头部(前侧包含面部)","颈部","左侧肩部","右侧肩部","左上臂","右上臂","左前臂","右前臂","左手","右手","左胸","右胸","左腹部","右腹部","会阴部","左大腿(前)","右大腿(前)","左小腿","右小腿","左足","右足"]),r=U(["左头部(后部)","右头部(后部)","颈部(后部)","左肩胛骨","右肩胛骨","左上臂(后部)","右上臂(后部)","左前臂(后部)","右前臂(后部)","左手(后部)","右手(后部)","左背部(后部)","右背部(后部)","左腰部(后部)","右腰部(后部)","左臀部","右臀部","左大腿(上半部分,后部)","右大腿(上半部分,后部)","左小腿(上半部分,后部)","右小腿(下半部分,后部)","左足(后部)","右足(后部)"]),o=U(null),{addChat:n}=AG(),i=aa(),a=Jc(),l=j(()=>{if(i.isTalking&&o.value)return o.value.loop=!1,o.value.muted=!1,i.isFreeTalking?o.value.src=i.talkVideo:o.value.src=i.chatVideos[i.step-1],o.value.addEventListener("loadedmetadata",()=>{var B;(B=o.value)==null||B.play(),i.isPlaying=!0,console.log("视频加载完成")}),o.value.addEventListener("ended",()=>{if(o.value){if(i.isPlaying=!1,i.step==13){i.setStep(14),o.value.src=i.chatVideos[i.step-1],o.value.addEventListener("loadedmetadata",()=>{var B;(B=o.value)==null||B.play(),i.isPlaying=!0,console.log("视频加载完成")});return}i.isFreeTalking?(o.value.src=i.talkVideo,o.value.play()):(i.setIsTalking(!1),o.value.removeEventListener("ended",()=>{}))}}),i.isTalking}),s=j(()=>i.step>13?13:i.step),{isMobile:c}=fd(),d=U(!1),u=U([{top:"9.6px",left:"96.6px"},{top:"9.6px",left:"122.4px"},{top:"68.4px",left:"109.8px"},{top:"84.6px",left:"67.2px"},{top:"84.6px",left:"151.2px"},{top:"116.4px",left:"81.6px"},{top:"116.4px",left:"136.2px"},{top:"132.6px",left:"43.2px"},{top:"132.6px",left:"174.6px"},{top:"188.4px",left:"23.4px"},{top:"188.4px",left:"193.2px"},{top:"189.6px",left:"87.6px"},{top:"189.6px",left:"130.2px"},{top:"249.6px",left:"1.2px"},{top:"249.6px",left:"217.2px"},{top:"248.4px",left:"109.2px"},{top:"297.6px",left:"82.2px"},{top:"297.6px",left:"139.8px"},{top:"400.2px",left:"76.8px"},{top:"400.2px",left:"142.2px"},{top:"502.2px",left:"73.2px"},{top:"502.2px",left:"145.8px"}]),f=U([{top:"9.6px",left:"96.6px"},{top:"9.6px",left:"122.4px"},{top:"68.4px",left:"109.8px"},{top:"84.6px",left:"67.2px"},{top:"84.6px",left:"151.2px"},{top:"116.4px",left:"81.6px"},{top:"116.4px",left:"136.2px"},{top:"132.6px",left:"43.2px"},{top:"132.6px",left:"174.6px"},{top:"188.4px",left:"23.4px"},{top:"188.4px",left:"193.2px"},{top:"177.6px",left:"87.6px"},{top:"177.6px",left:"130.2px"},{top:"249.6px",left:"1.2px"},{top:"249.6px",left:"217.2px"},{top:"230.4px",left:"80.4px"},{top:"230.4px",left:"138px"},{top:"279.6px",left:"80.4px"},{top:"279.6px",left:"138px"},{top:"400.2px",left:"76.8px"},{top:"400.2px",left:"142.2px"},{top:"502.2px",left:"73.2px"},{top:"502.2px",left:"145.8px"}]),p=j(()=>a.siderCollapsed),h=j(()=>{let B=" ";for(let S=0;Sc.value?{paddingBottom:"env(safe-area-inset-bottom)"}:{});function m(B,S){let P="";S==0?P=t.value[B]:P=r.value[B],n(1001,{dateTime:new Date().toLocaleString(),text:"疼痛部位为:"+P,questionText:"",replyText:"",loading:!1,inversion:!0,generated:!1,error:!1,conversationOptions:null,denoisingStrength:.75,requestOptions:{prompt:"",options:null}}),i.setStep(i.step+1),i.setIsTalking(!0),n(1001,{dateTime:new Date().toLocaleString(),text:i.curTalkText[i.step],questionText:"",replyText:"",loading:!1,inversion:!1,generated:!1,error:!1,conversationOptions:null,denoisingStrength:.75,requestOptions:{prompt:"",options:null}})}function x(B){i.curTalkOptions[s.value-1][0].isSingleChoice&&(i.curTalkOptions[s.value-1].forEach(S=>{S.selected=!1}),i.prompt=""),B.selected?(B.selected=!1,i.prompt.indexOf(B.value+"、")>-1?i.prompt=i.prompt.replace(B.value+"、",""):i.prompt=i.prompt.replace(B.value,"")):(B.selected=!0,i.prompt?i.prompt=i.prompt+"、"+B.value:i.prompt=B.value)}lt(c,B=>{a.setSiderCollapsed(B)},{immediate:!0,flush:"post"});const b=U(window.innerWidth),y=U(900),E=U(241.2),C=U(241.2),_=U(1),k=U(null),R=()=>{var B;y.value=b.value*.6,k.value&&(C.value=((B=k.value)==null?void 0:B.offsetHeight)*.74,E.value=C.value*.51,_.value=E.value/241.2,console.log("imageHeight",_.value))},A=()=>{b.value=window.innerWidth,R()};return zt(()=>{window.addEventListener("resize",A),R()}),zl(()=>{window.removeEventListener("resize",A)}),(B,S)=>(ct(),Ot(rt,null,[Be(pe(xN),{collapsed:p.value,"collapsed-width":0,width:y.value,"collapse-mode":"transform",bordered:"",onUpdateCollapsed:v},{default:Qe(()=>[Ae("div",{ref_key:"container",ref:k,class:"flex flex-col h-full p-[20px]",style:En([{"background-image":"linear-gradient(to bottom, #EDF4FE, #C5D7FE)"},g.value])},[Ae("div",FG,[Ae("div",OG,[Ae("div",BG,[pe(i).step!=1?(ct(),Ot("img",IG)):To("",!0),$r(Ae("video",{class:"absolute top-[140px]",src:pe(i).stayVideo,muted:"",autoplay:""},null,8,$G),[[Qo,!pe(i).isPlaying&&(pe(i).step!=1||l.value)]]),$r(Ae("video",{class:"absolute top-[140px]",ref_key:"videoPlayer",ref:o,src:pe(i).stayVideo,loop:""},null,8,DG),[[Qo,l.value&&pe(i).isPlaying]]),pe(i).talkEnd||l.value?(ct(),Ot("div",LG,[zG,pe(i).talkEnd?(ct(),Ot("div",MG," 正在生成初诊报告 ")):(ct(),Ot("div",NG,At(pe(i).isPlaying?pe(i).freeTalkText||pe(i).curTalkText[pe(i).step]+h.value:"正在加载中..."),1))])):To("",!0),!pe(i).talkEnd&&!l.value&&pe(i).step!=1?(ct(),Ot("div",HG,[Ae("div",jG,[(ct(!0),Ot(rt,null,di(pe(i).curTalkOptions[s.value-1],P=>(ct(),Ot("div",{class:fo(["w-[16%] h-[67px] d-c-c ml-[20px] mt-[20px]",P.selected?"check-box-seleced":"check-box"]),onClick:F=>x(P)},At(P.value),11,WG))),256))])])):To("",!0)])]),!l.value&&pe(i).step==1?(ct(),Ot("div",VG,[Ae("div",{class:"relative",style:En("transform: scale("+_.value+");")},[Be(pe(Zo),{width:"241.2",height:"468.6",src:pe(PG),"preview-disabled":!0},null,8,["src"]),(ct(!0),Ot(rt,null,di(u.value,(P,F)=>(ct(),Ot("div",{class:"absolute",style:En("top:"+P.top+";left:"+P.left+";"),onClick:T=>m(F,0)},[Be(pe(Zo),{width:"22.8",height:"22.8",src:pe($b),"preview-disabled":!0},null,8,["src"])],12,UG))),256))],4),Ae("div",KG,[Be(pe(Zo),{width:"241.2",height:"468.6",src:pe(TG),"preview-disabled":!0},null,8,["src"]),(ct(!0),Ot(rt,null,di(f.value,(P,F)=>(ct(),Ot("div",{class:"absolute",style:En("top:"+P.top+";left:"+P.left+";"),onClick:T=>m(F,1)},[Be(pe(Zo),{width:"22.8",height:"22.8",src:pe($b),"preview-disabled":!0},null,8,["src"])],12,qG))),256))])])):To("",!0)])],4)]),_:1},8,["collapsed","width"]),Be(pe(iZ),{visible:d.value,"onUpdate:visible":S[0]||(S[0]=P=>d.value=P)},null,8,["visible"])],64))}});function XG(){const e=Kl(),t=aa(),r=j(()=>t.usingContext);function o(){t.setUsingContext(!r.value),r.value?e.success(ut("chat.turnOnContext")):e.warning(ut("chat.turnOffContext"))}return{usingContext:r,toggleUsingContext:o}}const YG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAYAAABzJ5OsAAAAAXNSR0IArs4c6QAADmRJREFUaEOtWmlwVNeV/u5bul8v6pZaG5IQkkBywCxmByMwOOPEEOMkzjiuGpezjUl5KbvKqdTUJK75MduP/JlkpuKK7XFmyiljz9hmHGeMHcg4NcYYCzBmCZjFCSABQlvvy+u33+Hc18ICA2qJuZQkuvvdc79zznfOPffcZrjJwTlXACwHsB7AgsrPTAC1AOgzB0ASwDCAPwE4AOADAPsYY/TZtAeb7kzOOQF+BMD9yYxVOzRmYCRpIJO3USg5MC0PnAOMAaGgjEhYRn1tQPy0NGloSgSzlxTdBuCXjLF908ExZfCcc7Lw3+YK9oZP/ljA6fMlAXaqoyaioLsjgvndMcSiyt5LXvpHxtjbU5FTNXjOeQeAZ3IFe/OBY1l82l8Ulv3/GF0zw1i5qI688iaApxhjA9XIrQo85/w7jsuf2X8kEz1yKlcVaF7RjBFvqhiyxLBobgwrFtYZisweZYz9arJpN5RcCcafZfL2E7/dNYJswZ5MHlKjZ/GHvW9g4MwRMCZh1uxFmL/sXjS2dKMaRWpjKu5Z34x4jfocgCdvFNTXBc851wD8euCivnHnB6NwnBtzhCx9dP+bOLb3vwDXgmnZKDsOJCaBSRJWbngIi1fdJ/4/2SAvbLqjCbNawzsA3McYM64155rgKxZ/6/S50sZ3PxyD601O7tPH38eBnc9idUcjWhO1GMvmkS9byOgGUmUTw6UyVt35bSxc+TUAk1OJFLhrTSPmzIqQAvdeywPXA//swEX90R3vj1YF3HUdvLP1R1jXHkDvgh4wKQTPNlE2dBiOh5Lt4o09B3GxaOEbD/8LorHGyYwvPp/ggWcYY09ePelz4Ck4cwX7xf98e7Aq4CQwnxnCx9v/Hk98pReyHISsBBCQGTzXhgMPpssxPDqGV3ftx5zeLZg9b11V4OkhRWH45t1tqIur3706iK8AT+nQcfnJ194Z1KoJznEEYxc/RfH4VmxesRCjGQNmuYSmRB20gIKBoREQYduaG7Dv+ClkYqsx97YvVQ2eHqQgfmBTW1GR2ULGWP/45KvB/7rvcPrrh47npiS8MHwc4eHfYeXcHpz+0yCsQhZzZrfC5ByFrIGUZWDW7C6cGBjAKb0dC1Z8dUry6eHF8+JYsySxnTF27+fAc87vSWWt7dt2XKyaLuNCmnMn0BbqR1hVYZs2rGIRiuSJbGOYLrikIBALYyCZxnm3G/Xdd0wZPG0XD26eSSl0A2NsFwm4bHnOed8774+s7r+gT1nw7PxhNMdzCAUCKA4PopzXIYUjcGWGUmoEjW1tkGK1yBVLGB6JIdPRO+U1aMIXuqL4s9sb37sE/s7L4Dnnq/NFu2/rf1+YltCO8km0N+RhJ0eRz5fgeBIMw0LetKDJHHWxICIzWlAaHsGosgTp+rnTWmeC9Vcwxg4Iy3POX+g7nN4yVa6PIwjCwJL4HyEXshgcvAg+ooOVbZjMQyEENHbMQLw2BhgWjqnr4cihaYGfwH2qRL/PKhvS2Eu/OV87nepwHEWb1Yc2OY9C2YNqGMiP5eAwDlYXRSCqQQtKOCctQUFqnTZwmkjV6Le+1k7ldCOBXzuaMndv23nxpoQGnCTayrvgOgxhNQSrmIfHACMYgiTZYFotBtUv+gX+TY4HNrWioS54O4H/6yMncz/ZczB9UyIV5mCBtAvZbA7pZAb5dBq2JKGxpQWxmjC8ugW4YHXf1Brjk9ctr8fCW2I/IvCv/75v7P5TZ4s3Jbgt4aDL/khsUOlUGoPnz0MOBtA0cybi0ShCzT04mulCsTx5nTQZkFs6I7hrTdNWAn/o9R2Di8fS1mRzrvk5saAhLmHZHAmFE7sAz0apUEA6OQoXQLyhEZoWQnjmQoQaOzEwZGAoDRTK01pOTGpMBPDNjW2HCfzQi2+cm6EbtFT1g0B3NEvoaZGhBWVQpXt299uo0QDHcVEs5uAyBi0UQblQxKy19yEYqYFt2+Iwk8x76B/myBY5qiharwBGwf+Xf96RJPD2s/9xVpnKkS4eYbh1lioszj0PsiKDgeFo33sIWUnEIhpKhRwkSYbpeMgZwNJ7HhTPeJ4H23EgMyZq+7IFZAouUnkPIxkX5uTnHRHzj/1Fl0Pg+S9eOVuVyWMRhu5WBa31itiaSQhZmYaqKtB1HU899SQSUQ2RgArdMjE4ksYjjz+J3t51KOo6AmpA7OsSgScZkgQOPw4yJY4P/2BUXt0Y0uMPdqFqy89tV9DTpkKqnITo5ESLu54nVlGE9YFXX38NL738srAwHftCmoZ/e+GXiMXi8DiH47qQJRke92hx/2TFOTgDPDDsO24glfNlXm9MtPzYv28baDCs60+QJeDLy0MIqmQt9hlHOfGVQ5aZOO6RQplsFt/b8jA81+/brFq5Ak//+GnhJlJINwyhkKCp5/rnWsbgkiKMIVPk6Dt2zVPfZV1CmozvfWPWcFXZpr1JxtLu4OUmEq1Lbndd37rC8rIPnj77p5/+FO/v3gPXsfHDH/4Ad24QdRTSuQJkSUIkEgFjvKIgvwxckWWQCfcfN5C8gfUnZpuX3v1w9KFP+0vXddMdi4KojciCIkQbSRjrM/CWZUMLquI9Av/J8eP48dNPoyYaxb8+/7wAa7sucoUiYtGooEqlqILnurCISrIqTk1EnfMjDo6duX7qrlSX28QOe/RU/ie7P05dE3woyPClpX4hRW4n5JQpxqtpcr9lmZBlGaoqCwU8j+P7jzyCpUsW4/HHHodhWiLrqDKDoqhChq8mg+c4MB0XqqJAJu8B0A2O3UeM66bQ3qUJ3DY3LnbY1cm02ffajmvXNj1tCua2qwIQ/SO3SxKrUIj+Eu89uI4HRZGEEqTQy69sxcqVq9DZ2YnRVBaJujgCigLb8SDJElyXQ1YYGAfKpomAoor3KYbINns/sZAtXjsO77+7FU31wbWTVpVrFwSRqJFFSiTwRBtFpDefOv7gAozjOsKC9H42m0FNLI5kJodgIIBoJCQUF3FB8ypVAskkzyiSDCYxOJ4LTVVxesjByYHPJ/0rqkqxNOcvfHgwveXwySvPrqoCfHkZLUr8dn0rA8KCZH2fIr51yNr0DL32rc9Rth2Ypil4LlpN9ItD0MEPbXrDg2W7Io4o4wQVBYqqoFj2sOtw+XOtxSW3xnH74oRfz1fAL88V7I9e2X7hiodbG2Qs6wkKZJSfiamu5wpLEnjKNuSJ8SxDu63YQS0bHuVXTu3tAFxqddMLDhw+VcLFtIPGhIqlt0QA7sGw/eDkric8BNFlY+g7VkY6fyV1HvpqO3WVV1NbfOIZ9n9/3ze2YWJ1uaBTxewWVZjLdlyR2kReJ+qo/vuUMgV4TtShvE0e8GB7HJGQJuxL8ULPjiZNfPBxDvN7IjBdoOxJWDInCMMy4TouIloQAZJLGxdjODdi4diZz6jT1RbGpvXNexljt5OyE8Gvv9Rzf2+i9dfMD6AxrvrAPA+GYQrg+UIBsViNoMf4jkvCHNv2XwtK0y/aQSkD+ZFxul/H4IiJ9hkB5HQHJYdh5bwITMeBXtKRiMXETs2F1xh008WuQ/6GRdS9f2MrtcE3j/fxr+7bvLXnYGrzkZN5odVdyzSEAj4tyPKO41tB5HPOoQjuE2/paQ7XcS7ncE5HQIoQpvolAFGKM+w6lEciIiFbdNHeqmFmkwLLtlEq6mioq/XlyZIwku1y7Nzn7z8Vrr/JGLtvPKdfDb7TcfnR194ZjBqWjS8u1kTVSJsQVYLcc0WlqKqqgEvUmXiqow1HKCf5KZN2Uc5JBZ/vFNRUhgwlLWgBGU31ijBCsVhCuWygqT7he1OVoUhCdbz7UQnBgIIHvtJGfft51+2YVYL3O5mc9eK7e4awam5ALCgsb9tiAWFxWUEkEhZBNR6sIm94VM/4xdZ4vhdZhTxFWYkCsZKxxH2VCHYP6UwWZb2MtuYmMFkS1BFGkCV8et7C8kVN1Gy6ca9y3B2c859nc8YTuWRGBOF47qa0Z9sOsrk8Zra1+KmTAPtcEgDpR6TQXBp2WYcnMQQTTZACQRG4vsJUy/tFHu3O+w8cwLreNSJx5vIF4c3hVFqUDmt7lyIc1p5jjD02ju+atJkAnq4g38plCxuHLowJ8AJg5XZvLJlCS8sMwUu/d0/8JlAeHMuCPnIORjqJ8pkzCNXUwLJKkGoiiPXchkhLp7C4SKm2LcoDTQtCkmU4pJyIL1tQM1YbRn19fGr9+Qp9xM1IPlfcODqUFguFQxpKun/4pKKLcj0NsaXTReuJwygPngY3dZjDGTimI1zvhaljVg+PMdR23YrG7oV+/U5M4h5Kuo6gFoJhWZVymaO5OY5INDT1m5GrPPBz27IfPd8/BAmSAJPPFxCPxS57kWhiG2Wc3vmqKNoU1y93qTdPqVIOhkQngVKgJwfQsW6TAE61DD2fzeWgaRoM20EoFEBnRzOdzJ65xKIfTOtOaiK/6MKBe/y5TDqvpVM5GGUToZB2xeVMevAc0vv/B6ZtgnlAsVTCwMVhmKaNoKYhGAph5oxWZPQCNmz5K8F5cQjxfKoFAioisTBmNCeKksSeuOnbwKsU6LzUyfiZaVhfz6TyKBV0mJYl8rJjOyikk+h/+yVEIxEE5RAshQnL5ws6nGIZSkCGx1wcOnEG3/qHfxY1vkPBDSBRG0FDYy0psL1yA3j5AuHqIJ34esq9N+rjX9pM/8a27NWZdB75bBF6qQxdL+HYb34FyaabERNZwxRBqDAJSiiMUDiEumANBh2O7g13IxoJo6ujjSyNYDDw3qV89XeMMfpb9Zgy+AnxsBrAw/Tdg3yuUJtKZXHq4EcY/uQQCqkURkZH0FyfEHU6D4TEPVX7rfPR+IV5mH1LD+pqY+PfPXie2tVVI57w4LTBXxXUpAjdGNCXKaghOePSVX/DhG99EFBq/h+r/NDNxoGb/dbH/wG/jCiIXtZyKwAAAABJRU5ErkJggg==",ZG={class:"sticky top-0 left-0 right-0 z-30 border-b dark:border-neutral-800 bg-white/80 dark:bg-black/20 backdrop-blur"},JG={class:"relative flex items-center justify-between min-w-0 overflow-hidden h-[76px] pr-6"},QG={class:"py-[18px] px-4 d-b-c"},eX=Ae("p",{style:{"font-size":"18px","font-family":"'Courier New', Courier, monospace","font-weight":"600"}},"疼痛科杨教授",-1),tX=Ae("div",{class:"line-l mr-[20px]"},null,-1),rX={key:1,class:"d-c-c"},oX=Ae("text",{class:"text-[16px] font-bold"},"退 出",-1),nX=[oX],iX=be({__name:"index",props:{usingContext:{type:Boolean}},setup(e){const t=dp(),r=Vn(),o=B_(),n=Kl(),i=Ww();function a(){i.info({title:"系统提示",content:"请确认是否退出用户123456",positiveText:"确 认",negativeText:"取 消",onPositiveClick:()=>{n.success("退出成功!"),o.replace("/user/login")},onNegativeClick:()=>{n.info("取消退出!")}})}return(l,s)=>{const c=fl("UserAvatar");return ct(),Ot("header",ZG,[Ae("div",JG,[Ae("div",QG,[Be(pe(Zo),{width:"45",height:"45",style:{"border-radius":"50%"},src:pe(YG)},null,8,["src"]),eX]),pe(r).token&&pe(t).userInfo.avatar?(ct(),Ot("div",{key:0,class:"d-c-c",onClick:a},[tX,Be(c)])):(ct(),Ot("div",rX,[Ae("button",{class:"w-[87px] h-[36.8px] rounded-[5px]",block:!0,"attr-type":"button",onClick:a},nX)]))])])}}}),yu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAAAXNSR0IArs4c6QAABAVJREFUWEfFmb9PGzEUx22OFURnGK65IMFUMjEmDMxtxcjQ9B8AusCCRJBggIUfCyPpwAj9A0DiMrJQOrGQy1WCuRGMyHb5uneny3Fn+y5ALbEQv/c++dp+fn6hpI9h2/bI4ODgFOf8AyHEJoSMJNz5lNJfjLEr3/f9oqFoXkOADQwMfKGUfiKE1EzthRBXT/NdzvleXmBjyEC1JSHEYopipqxynhCiyTlfN4U1giyXy4Bb6xcu+U1MYZWQExMT9uPj42GeZc0l6T9Vfc75jErVTMgA8Dw4EHljF5lfb7fb39MMUyEDwJ8vvbwG5KmgzyD/g4I97JTSmZubGzf+z2eQjuN03nCJ08TtMsYq8T3aA1kulxvBKTZYmVed4rbb7ZkwQgQZLDNUVI7h4WEyOTkp51xcXOim93wOO9jf3d2R29tbpa0Q4pvnebuYFEE6joNUU1dZzs7Oku3tbTI0NCSnIdj8/Lw2IMAODg7I9PR05H5jY4M0m01VOCz7e9/3uxLSVMVWq0VGR0d7HOtAAXh0dBSpHzeuVCrk4eEhE1QIseR53p6ENFERKiBY2sgCVQHCz/LyMjk5OVGpKfdmCKk90Qh4eXmZ6TAJqgOEI2wV3b7mnNt0fHwcpRYSt3YsLCwQ/GWNEPT+/j5ziUPbw8NDsrm5qY2JJaelUmmRUipPkckwAQVkmAHSfB4fH5OVlRWTcLJiAuQOpXTJyCKYpANV+coDCD+oQ6njOCgijIvXEKAIaF7AIFa3MCQc5AEtCCg5+4KEg9XVVVKvK+8A0g9g35BjY2PyFCcTfHJP6hK+7jxASe11mObEFDC0LQqKyr3Q6c4LGIIiNSGBX19f68SLf+5CSWwoqGk0igIWBRVC7FI8VS3L+mNCaAK4v78vXalupjyKPjUWPoV3t1GuTKuC4l8OgCEkTjxOftYAaLVaVVZBsGWMvZOQpVJpjVLaUKmpqoJgFwcM/czNzZGtra1Mt7oqCFei53lfJWSw5KiEkr2cKACW2nV73kfRZ2mAJqC6KogxVvN9vxVV5iZqIifGq+ssBZPSpSmK50OtpryNo3dOBGmiJmpEHAiAYk+h3Do7OzM5c9IGtkj8p6encnuoqvLg6SA7cT2vRcdx0Cn7YRT1FScJIRqe562HIZ69u4uUbi/Ji9LM87xK3Gdqm6Vo+dYvbFbzKhUyaJSeU0qn+g1saq/qrilbf2+19FhizvnnrPaftokaNFB3TBXJOw93c9D17WbZaiFhGDQP0OlVV7f5CF3GWAPJWmdmBBk6sW27alkWQPuBNYbLTEG6bxVTFtfFx+ARl3mdEkKwjFdCCBd3cafT+W0SQ5uC8jpBNni6BPBbDrEsy2aMAaxLKfWLQCXj/wX7OkPqWc2IFQAAAABJRU5ErkJggg==",aX=""+new URL("wc-7984fe3d.png",import.meta.url).href;var D_={exports:{}};function lX(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cu={exports:{}},Lb;function bt(){return Lb||(Lb=1,function(e,t){(function(r,o){e.exports=o()})(ft,function(){var r=r||function(o,n){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof ft<"u"&&ft.crypto&&(i=ft.crypto),!i&&typeof lX=="function")try{i=g0}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function x(){}return function(b){var y;return x.prototype=b,y=new x,x.prototype=null,y}}(),s={},c=s.lib={},d=c.Base=function(){return{extend:function(x){var b=l(this);return x&&b.mixIn(x),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(x,b){x=this.words=x||[],b!=n?this.sigBytes=b:this.sigBytes=x.length*4},toString:function(x){return(x||p).stringify(this)},concat:function(x){var b=this.words,y=x.words,E=this.sigBytes,C=x.sigBytes;if(this.clamp(),E%4)for(var _=0;_>>2]>>>24-_%4*8&255;b[E+_>>>2]|=k<<24-(E+_)%4*8}else for(var R=0;R>>2]=y[R>>>2];return this.sigBytes+=C,this},clamp:function(){var x=this.words,b=this.sigBytes;x[b>>>2]&=4294967295<<32-b%4*8,x.length=o.ceil(b/4)},clone:function(){var x=d.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var b=[],y=0;y>>2]>>>24-C%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(x){for(var b=x.length,y=[],E=0;E>>3]|=parseInt(x.substr(E,2),16)<<24-E%8*4;return new u.init(y,b/2)}},h=f.Latin1={stringify:function(x){for(var b=x.words,y=x.sigBytes,E=[],C=0;C>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(x){for(var b=x.length,y=[],E=0;E>>2]|=(x.charCodeAt(E)&255)<<24-E%4*8;return new u.init(y,b)}},v=f.Utf8={stringify:function(x){try{return decodeURIComponent(escape(h.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return h.parse(unescape(encodeURIComponent(x)))}},g=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=v.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var b,y=this._data,E=y.words,C=y.sigBytes,_=this.blockSize,k=_*4,R=C/k;x?R=o.ceil(R):R=o.max((R|0)-this._minBufferSize,0);var A=R*_,B=o.min(A*4,C);if(A){for(var S=0;S>>2]|=s[u]<<24-u%4*8;a.call(this,d,c)}else a.apply(this,arguments)};l.prototype=i}}(),r.lib.WordArray})}(Su)),Su.exports}var _u={exports:{}},Nb;function cX(){return Nb||(Nb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.WordArray,a=o.enc;a.Utf16=a.Utf16BE={stringify:function(s){for(var c=s.words,d=s.sigBytes,u=[],f=0;f>>2]>>>16-f%4*8&65535;u.push(String.fromCharCode(p))}return u.join("")},parse:function(s){for(var c=s.length,d=[],u=0;u>>1]|=s.charCodeAt(u)<<16-u%2*16;return i.create(d,c*2)}},a.Utf16LE={stringify:function(s){for(var c=s.words,d=s.sigBytes,u=[],f=0;f>>2]>>>16-f%4*8&65535);u.push(String.fromCharCode(p))}return u.join("")},parse:function(s){for(var c=s.length,d=[],u=0;u>>1]|=l(s.charCodeAt(u)<<16-u%2*16);return i.create(d,c*2)}};function l(s){return s<<8&4278255360|s>>>8&16711935}}(),r.enc.Utf16})}(_u)),_u.exports}var Eu={exports:{}},Hb;function Fi(){return Hb||(Hb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.WordArray,a=o.enc;a.Base64={stringify:function(s){var c=s.words,d=s.sigBytes,u=this._map;s.clamp();for(var f=[],p=0;p>>2]>>>24-p%4*8&255,v=c[p+1>>>2]>>>24-(p+1)%4*8&255,g=c[p+2>>>2]>>>24-(p+2)%4*8&255,m=h<<16|v<<8|g,x=0;x<4&&p+x*.75>>6*(3-x)&63));var b=u.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(s){var c=s.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var f=0;f>>6-p%4*2,g=h|v;u[f>>>2]|=g<<24-f%4*8,f++}return i.create(u,f)}}(),r.enc.Base64})}(Eu)),Eu.exports}var ku={exports:{}},jb;function dX(){return jb||(jb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.WordArray,a=o.enc;a.Base64url={stringify:function(s,c){c===void 0&&(c=!0);var d=s.words,u=s.sigBytes,f=c?this._safe_map:this._map;s.clamp();for(var p=[],h=0;h>>2]>>>24-h%4*8&255,g=d[h+1>>>2]>>>24-(h+1)%4*8&255,m=d[h+2>>>2]>>>24-(h+2)%4*8&255,x=v<<16|g<<8|m,b=0;b<4&&h+b*.75>>6*(3-b)&63));var y=f.charAt(64);if(y)for(;p.length%4;)p.push(y);return p.join("")},parse:function(s,c){c===void 0&&(c=!0);var d=s.length,u=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p>>6-p%4*2,g=h|v;u[f>>>2]|=g<<24-f%4*8,f++}return i.create(u,f)}}(),r.enc.Base64url})}(ku)),ku.exports}var Pu={exports:{}},Wb;function Oi(){return Wb||(Wb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){return function(o){var n=r,i=n.lib,a=i.WordArray,l=i.Hasher,s=n.algo,c=[];(function(){for(var v=0;v<64;v++)c[v]=o.abs(o.sin(v+1))*4294967296|0})();var d=s.MD5=l.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var m=0;m<16;m++){var x=g+m,b=v[x];v[x]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var y=this._hash.words,E=v[g+0],C=v[g+1],_=v[g+2],k=v[g+3],R=v[g+4],A=v[g+5],B=v[g+6],S=v[g+7],P=v[g+8],F=v[g+9],T=v[g+10],H=v[g+11],N=v[g+12],W=v[g+13],re=v[g+14],ee=v[g+15],L=y[0],M=y[1],G=y[2],J=y[3];L=u(L,M,G,J,E,7,c[0]),J=u(J,L,M,G,C,12,c[1]),G=u(G,J,L,M,_,17,c[2]),M=u(M,G,J,L,k,22,c[3]),L=u(L,M,G,J,R,7,c[4]),J=u(J,L,M,G,A,12,c[5]),G=u(G,J,L,M,B,17,c[6]),M=u(M,G,J,L,S,22,c[7]),L=u(L,M,G,J,P,7,c[8]),J=u(J,L,M,G,F,12,c[9]),G=u(G,J,L,M,T,17,c[10]),M=u(M,G,J,L,H,22,c[11]),L=u(L,M,G,J,N,7,c[12]),J=u(J,L,M,G,W,12,c[13]),G=u(G,J,L,M,re,17,c[14]),M=u(M,G,J,L,ee,22,c[15]),L=f(L,M,G,J,C,5,c[16]),J=f(J,L,M,G,B,9,c[17]),G=f(G,J,L,M,H,14,c[18]),M=f(M,G,J,L,E,20,c[19]),L=f(L,M,G,J,A,5,c[20]),J=f(J,L,M,G,T,9,c[21]),G=f(G,J,L,M,ee,14,c[22]),M=f(M,G,J,L,R,20,c[23]),L=f(L,M,G,J,F,5,c[24]),J=f(J,L,M,G,re,9,c[25]),G=f(G,J,L,M,k,14,c[26]),M=f(M,G,J,L,P,20,c[27]),L=f(L,M,G,J,W,5,c[28]),J=f(J,L,M,G,_,9,c[29]),G=f(G,J,L,M,S,14,c[30]),M=f(M,G,J,L,N,20,c[31]),L=p(L,M,G,J,A,4,c[32]),J=p(J,L,M,G,P,11,c[33]),G=p(G,J,L,M,H,16,c[34]),M=p(M,G,J,L,re,23,c[35]),L=p(L,M,G,J,C,4,c[36]),J=p(J,L,M,G,R,11,c[37]),G=p(G,J,L,M,S,16,c[38]),M=p(M,G,J,L,T,23,c[39]),L=p(L,M,G,J,W,4,c[40]),J=p(J,L,M,G,E,11,c[41]),G=p(G,J,L,M,k,16,c[42]),M=p(M,G,J,L,B,23,c[43]),L=p(L,M,G,J,F,4,c[44]),J=p(J,L,M,G,N,11,c[45]),G=p(G,J,L,M,ee,16,c[46]),M=p(M,G,J,L,_,23,c[47]),L=h(L,M,G,J,E,6,c[48]),J=h(J,L,M,G,S,10,c[49]),G=h(G,J,L,M,re,15,c[50]),M=h(M,G,J,L,A,21,c[51]),L=h(L,M,G,J,N,6,c[52]),J=h(J,L,M,G,k,10,c[53]),G=h(G,J,L,M,T,15,c[54]),M=h(M,G,J,L,C,21,c[55]),L=h(L,M,G,J,P,6,c[56]),J=h(J,L,M,G,ee,10,c[57]),G=h(G,J,L,M,B,15,c[58]),M=h(M,G,J,L,W,21,c[59]),L=h(L,M,G,J,R,6,c[60]),J=h(J,L,M,G,H,10,c[61]),G=h(G,J,L,M,_,15,c[62]),M=h(M,G,J,L,F,21,c[63]),y[0]=y[0]+L|0,y[1]=y[1]+M|0,y[2]=y[2]+G|0,y[3]=y[3]+J|0},_doFinalize:function(){var v=this._data,g=v.words,m=this._nDataBytes*8,x=v.sigBytes*8;g[x>>>5]|=128<<24-x%32;var b=o.floor(m/4294967296),y=m;g[(x+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g[(x+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var E=this._hash,C=E.words,_=0;_<4;_++){var k=C[_];C[_]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return E},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function u(v,g,m,x,b,y,E){var C=v+(g&m|~g&x)+b+E;return(C<>>32-y)+g}function f(v,g,m,x,b,y,E){var C=v+(g&x|m&~x)+b+E;return(C<>>32-y)+g}function p(v,g,m,x,b,y,E){var C=v+(g^m^x)+b+E;return(C<>>32-y)+g}function h(v,g,m,x,b,y,E){var C=v+(m^(g|~x))+b+E;return(C<>>32-y)+g}n.MD5=l._createHelper(d),n.HmacMD5=l._createHmacHelper(d)}(Math),r.MD5})}(Pu)),Pu.exports}var Tu={exports:{}},Vb;function L_(){return Vb||(Vb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.WordArray,a=n.Hasher,l=o.algo,s=[],c=l.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var f=this._hash.words,p=f[0],h=f[1],v=f[2],g=f[3],m=f[4],x=0;x<80;x++){if(x<16)s[x]=d[u+x]|0;else{var b=s[x-3]^s[x-8]^s[x-14]^s[x-16];s[x]=b<<1|b>>>31}var y=(p<<5|p>>>27)+m+s[x];x<20?y+=(h&v|~h&g)+1518500249:x<40?y+=(h^v^g)+1859775393:x<60?y+=(h&v|h&g|v&g)-1894007588:y+=(h^v^g)-899497514,m=g,g=v,v=h<<30|h>>>2,h=p,p=y}f[0]=f[0]+p|0,f[1]=f[1]+h|0,f[2]=f[2]+v|0,f[3]=f[3]+g|0,f[4]=f[4]+m|0},_doFinalize:function(){var d=this._data,u=d.words,f=this._nDataBytes*8,p=d.sigBytes*8;return u[p>>>5]|=128<<24-p%32,u[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),u[(p+64>>>9<<4)+15]=f,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=a.clone.call(this);return d._hash=this._hash.clone(),d}});o.SHA1=a._createHelper(c),o.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})}(Tu)),Tu.exports}var Ru={exports:{}},Ub;function sp(){return Ub||(Ub=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){return function(o){var n=r,i=n.lib,a=i.WordArray,l=i.Hasher,s=n.algo,c=[],d=[];(function(){function p(m){for(var x=o.sqrt(m),b=2;b<=x;b++)if(!(m%b))return!1;return!0}function h(m){return(m-(m|0))*4294967296|0}for(var v=2,g=0;g<64;)p(v)&&(g<8&&(c[g]=h(o.pow(v,1/2))),d[g]=h(o.pow(v,1/3)),g++),v++})();var u=[],f=s.SHA256=l.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(p,h){for(var v=this._hash.words,g=v[0],m=v[1],x=v[2],b=v[3],y=v[4],E=v[5],C=v[6],_=v[7],k=0;k<64;k++){if(k<16)u[k]=p[h+k]|0;else{var R=u[k-15],A=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,B=u[k-2],S=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;u[k]=A+u[k-7]+S+u[k-16]}var P=y&E^~y&C,F=g&m^g&x^m&x,T=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),H=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),N=_+H+P+d[k]+u[k],W=T+F;_=C,C=E,E=y,y=b+N|0,b=x,x=m,m=g,g=N+W|0}v[0]=v[0]+g|0,v[1]=v[1]+m|0,v[2]=v[2]+x|0,v[3]=v[3]+b|0,v[4]=v[4]+y|0,v[5]=v[5]+E|0,v[6]=v[6]+C|0,v[7]=v[7]+_|0},_doFinalize:function(){var p=this._data,h=p.words,v=this._nDataBytes*8,g=p.sigBytes*8;return h[g>>>5]|=128<<24-g%32,h[(g+64>>>9<<4)+14]=o.floor(v/4294967296),h[(g+64>>>9<<4)+15]=v,p.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var p=l.clone.call(this);return p._hash=this._hash.clone(),p}});n.SHA256=l._createHelper(f),n.HmacSHA256=l._createHmacHelper(f)}(Math),r.SHA256})}(Ru)),Ru.exports}var Au={exports:{}},Kb;function uX(){return Kb||(Kb=1,function(e,t){(function(r,o,n){e.exports=o(bt(),sp())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.WordArray,a=o.algo,l=a.SHA256,s=a.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=l._createHelper(s),o.HmacSHA224=l._createHmacHelper(s)}(),r.SHA224})}(Au)),Au.exports}var Fu={exports:{}},qb;function z_(){return qb||(qb=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hd())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.Hasher,a=o.x64,l=a.Word,s=a.WordArray,c=o.algo;function d(){return l.create.apply(l,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],f=[];(function(){for(var h=0;h<80;h++)f[h]=d()})();var p=c.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(h,v){for(var g=this._hash.words,m=g[0],x=g[1],b=g[2],y=g[3],E=g[4],C=g[5],_=g[6],k=g[7],R=m.high,A=m.low,B=x.high,S=x.low,P=b.high,F=b.low,T=y.high,H=y.low,N=E.high,W=E.low,re=C.high,ee=C.low,L=_.high,M=_.low,G=k.high,J=k.low,ge=R,ve=A,te=B,ce=S,X=P,le=F,Ee=T,_e=H,D=N,I=W,q=re,ue=ee,se=L,me=M,Ce=G,O=J,$=0;$<80;$++){var V,ie,ne=f[$];if($<16)ie=ne.high=h[v+$*2]|0,V=ne.low=h[v+$*2+1]|0;else{var ae=f[$-15],oe=ae.high,he=ae.low,$e=(oe>>>1|he<<31)^(oe>>>8|he<<24)^oe>>>7,He=(he>>>1|oe<<31)^(he>>>8|oe<<24)^(he>>>7|oe<<25),Te=f[$-2],Ie=Te.high,Ge=Te.low,Me=(Ie>>>19|Ge<<13)^(Ie<<3|Ge>>>29)^Ie>>>6,Ye=(Ge>>>19|Ie<<13)^(Ge<<3|Ie>>>29)^(Ge>>>6|Ie<<26),pt=f[$-7],K=pt.high,fe=pt.low,we=f[$-16],Le=we.high,We=we.low;V=He+fe,ie=$e+K+(V>>>0>>0?1:0),V=V+Ye,ie=ie+Me+(V>>>0>>0?1:0),V=V+We,ie=ie+Le+(V>>>0>>0?1:0),ne.high=ie,ne.low=V}var Ue=D&q^~D&se,qe=I&ue^~I&me,Xe=ge&te^ge&X^te&X,st=ve&ce^ve&le^ce&le,Ut=(ge>>>28|ve<<4)^(ge<<30|ve>>>2)^(ge<<25|ve>>>7),It=(ve>>>28|ge<<4)^(ve<<30|ge>>>2)^(ve<<25|ge>>>7),Kt=(D>>>14|I<<18)^(D>>>18|I<<14)^(D<<23|I>>>9),Rr=(I>>>14|D<<18)^(I>>>18|D<<14)^(I<<23|D>>>9),wr=u[$],eo=wr.high,Vr=wr.low,Wt=O+Rr,rr=Ce+Kt+(Wt>>>0>>0?1:0),Wt=Wt+qe,rr=rr+Ue+(Wt>>>0>>0?1:0),Wt=Wt+Vr,rr=rr+eo+(Wt>>>0>>0?1:0),Wt=Wt+V,rr=rr+ie+(Wt>>>0>>0?1:0),de=It+st,ke=Ut+Xe+(de>>>0>>0?1:0);Ce=se,O=me,se=q,me=ue,q=D,ue=I,I=_e+Wt|0,D=Ee+rr+(I>>>0<_e>>>0?1:0)|0,Ee=X,_e=le,X=te,le=ce,te=ge,ce=ve,ve=Wt+de|0,ge=rr+ke+(ve>>>0>>0?1:0)|0}A=m.low=A+ve,m.high=R+ge+(A>>>0>>0?1:0),S=x.low=S+ce,x.high=B+te+(S>>>0>>0?1:0),F=b.low=F+le,b.high=P+X+(F>>>0>>0?1:0),H=y.low=H+_e,y.high=T+Ee+(H>>>0<_e>>>0?1:0),W=E.low=W+I,E.high=N+D+(W>>>0>>0?1:0),ee=C.low=ee+ue,C.high=re+q+(ee>>>0>>0?1:0),M=_.low=M+me,_.high=L+se+(M>>>0>>0?1:0),J=k.low=J+O,k.high=G+Ce+(J>>>0>>0?1:0)},_doFinalize:function(){var h=this._data,v=h.words,g=this._nDataBytes*8,m=h.sigBytes*8;v[m>>>5]|=128<<24-m%32,v[(m+128>>>10<<5)+30]=Math.floor(g/4294967296),v[(m+128>>>10<<5)+31]=g,h.sigBytes=v.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});o.SHA512=i._createHelper(p),o.HmacSHA512=i._createHmacHelper(p)}(),r.SHA512})}(Fu)),Fu.exports}var Ou={exports:{}},Gb;function fX(){return Gb||(Gb=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hd(),z_())})(ft,function(r){return function(){var o=r,n=o.x64,i=n.Word,a=n.WordArray,l=o.algo,s=l.SHA512,c=l.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=s._doFinalize.call(this);return d.sigBytes-=16,d}});o.SHA384=s._createHelper(c),o.HmacSHA384=s._createHmacHelper(c)}(),r.SHA384})}(Ou)),Ou.exports}var Bu={exports:{}},Xb;function hX(){return Xb||(Xb=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hd())})(ft,function(r){return function(o){var n=r,i=n.lib,a=i.WordArray,l=i.Hasher,s=n.x64,c=s.Word,d=n.algo,u=[],f=[],p=[];(function(){for(var g=1,m=0,x=0;x<24;x++){u[g+5*m]=(x+1)*(x+2)/2%64;var b=m%5,y=(2*g+3*m)%5;g=b,m=y}for(var g=0;g<5;g++)for(var m=0;m<5;m++)f[g+5*m]=m+(2*g+3*m)%5*5;for(var E=1,C=0;C<24;C++){for(var _=0,k=0,R=0;R<7;R++){if(E&1){var A=(1<>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var _=x[y];_.high^=C,_.low^=E}for(var k=0;k<24;k++){for(var R=0;R<5;R++){for(var A=0,B=0,S=0;S<5;S++){var _=x[R+5*S];A^=_.high,B^=_.low}var P=h[R];P.high=A,P.low=B}for(var R=0;R<5;R++)for(var F=h[(R+4)%5],T=h[(R+1)%5],H=T.high,N=T.low,A=F.high^(H<<1|N>>>31),B=F.low^(N<<1|H>>>31),S=0;S<5;S++){var _=x[R+5*S];_.high^=A,_.low^=B}for(var W=1;W<25;W++){var A,B,_=x[W],re=_.high,ee=_.low,L=u[W];L<32?(A=re<>>32-L,B=ee<>>32-L):(A=ee<>>64-L,B=re<>>64-L);var M=h[f[W]];M.high=A,M.low=B}var G=h[0],J=x[0];G.high=J.high,G.low=J.low;for(var R=0;R<5;R++)for(var S=0;S<5;S++){var W=R+5*S,_=x[W],ge=h[W],ve=h[(R+1)%5+5*S],te=h[(R+2)%5+5*S];_.high=ge.high^~ve.high&te.high,_.low=ge.low^~ve.low&te.low}var _=x[0],ce=p[k];_.high^=ce.high,_.low^=ce.low}},_doFinalize:function(){var g=this._data,m=g.words;this._nDataBytes*8;var x=g.sigBytes*8,b=this.blockSize*32;m[x>>>5]|=1<<24-x%32,m[(o.ceil((x+1)/b)*b>>>5)-1]|=128,g.sigBytes=m.length*4,this._process();for(var y=this._state,E=this.cfg.outputLength/8,C=E/8,_=[],k=0;k>>24)&16711935|(A<<24|A>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,_.push(B),_.push(A)}return new a.init(_,E)},clone:function(){for(var g=l.clone.call(this),m=g._state=this._state.slice(0),x=0;x<25;x++)m[x]=m[x].clone();return g}});n.SHA3=l._createHelper(v),n.HmacSHA3=l._createHmacHelper(v)}(Math),r.SHA3})}(Bu)),Bu.exports}var Iu={exports:{}},Yb;function pX(){return Yb||(Yb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){/** @preserve
+ (c) 2012 by Cédric Mesnil. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */return function(o){var n=r,i=n.lib,a=i.WordArray,l=i.Hasher,s=n.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),v=s.RIPEMD160=l.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,_){for(var k=0;k<16;k++){var R=_+k,A=C[R];C[R]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var B=this._hash.words,S=p.words,P=h.words,F=c.words,T=d.words,H=u.words,N=f.words,W,re,ee,L,M,G,J,ge,ve,te;G=W=B[0],J=re=B[1],ge=ee=B[2],ve=L=B[3],te=M=B[4];for(var ce,k=0;k<80;k+=1)ce=W+C[_+F[k]]|0,k<16?ce+=g(re,ee,L)+S[0]:k<32?ce+=m(re,ee,L)+S[1]:k<48?ce+=x(re,ee,L)+S[2]:k<64?ce+=b(re,ee,L)+S[3]:ce+=y(re,ee,L)+S[4],ce=ce|0,ce=E(ce,H[k]),ce=ce+M|0,W=M,M=L,L=E(ee,10),ee=re,re=ce,ce=G+C[_+T[k]]|0,k<16?ce+=y(J,ge,ve)+P[0]:k<32?ce+=b(J,ge,ve)+P[1]:k<48?ce+=x(J,ge,ve)+P[2]:k<64?ce+=m(J,ge,ve)+P[3]:ce+=g(J,ge,ve)+P[4],ce=ce|0,ce=E(ce,N[k]),ce=ce+te|0,G=te,te=ve,ve=E(ge,10),ge=J,J=ce;ce=B[1]+ee+ve|0,B[1]=B[2]+L+te|0,B[2]=B[3]+M+G|0,B[3]=B[4]+W+J|0,B[4]=B[0]+re+ge|0,B[0]=ce},_doFinalize:function(){var C=this._data,_=C.words,k=this._nDataBytes*8,R=C.sigBytes*8;_[R>>>5]|=128<<24-R%32,_[(R+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,C.sigBytes=(_.length+1)*4,this._process();for(var A=this._hash,B=A.words,S=0;S<5;S++){var P=B[S];B[S]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return A},clone:function(){var C=l.clone.call(this);return C._hash=this._hash.clone(),C}});function g(C,_,k){return C^_^k}function m(C,_,k){return C&_|~C&k}function x(C,_,k){return(C|~_)^k}function b(C,_,k){return C&k|_&~k}function y(C,_,k){return C^(_|~k)}function E(C,_){return C<<_|C>>>32-_}n.RIPEMD160=l._createHelper(v),n.HmacRIPEMD160=l._createHmacHelper(v)}(),r.RIPEMD160})}(Iu)),Iu.exports}var $u={exports:{}},Zb;function cp(){return Zb||(Zb=1,function(e,t){(function(r,o){e.exports=o(bt())})(ft,function(r){(function(){var o=r,n=o.lib,i=n.Base,a=o.enc,l=a.Utf8,s=o.algo;s.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=l.parse(d));var u=c.blockSize,f=u*4;d.sigBytes>f&&(d=c.finalize(d)),d.clamp();for(var p=this._oKey=d.clone(),h=this._iKey=d.clone(),v=p.words,g=h.words,m=0;m>>2]&255;A.sigBytes-=B}};i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:g,padding:x}),reset:function(){var A;p.reset.call(this);var B=this.cfg,S=B.iv,P=B.mode;this._xformMode==this._ENC_XFORM_MODE?A=P.createEncryptor:(A=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,S&&S.words):(this._mode=A.call(P,this,S&&S.words),this._mode.__creator=A)},_doProcessBlock:function(A,B){this._mode.processBlock(A,B)},_doFinalize:function(){var A,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),B.unpad(A)),A},blockSize:128/32});var b=i.CipherParams=a.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),y=n.format={},E=y.OpenSSL={stringify:function(A){var B,S=A.ciphertext,P=A.salt;return P?B=l.create([1398893684,1701076831]).concat(P).concat(S):B=S,B.toString(d)},parse:function(A){var B,S=d.parse(A),P=S.words;return P[0]==1398893684&&P[1]==1701076831&&(B=l.create(P.slice(2,4)),P.splice(0,4),S.sigBytes-=16),b.create({ciphertext:S,salt:B})}},C=i.SerializableCipher=a.extend({cfg:a.extend({format:E}),encrypt:function(A,B,S,P){P=this.cfg.extend(P);var F=A.createEncryptor(S,P),T=F.finalize(B),H=F.cfg;return b.create({ciphertext:T,key:S,iv:H.iv,algorithm:A,mode:H.mode,padding:H.padding,blockSize:A.blockSize,formatter:P.format})},decrypt:function(A,B,S,P){P=this.cfg.extend(P),B=this._parse(B,P.format);var F=A.createDecryptor(S,P).finalize(B.ciphertext);return F},_parse:function(A,B){return typeof A=="string"?B.parse(A,this):A}}),_=n.kdf={},k=_.OpenSSL={execute:function(A,B,S,P,F){if(P||(P=l.random(64/8)),F)var T=f.create({keySize:B+S,hasher:F}).compute(A,P);else var T=f.create({keySize:B+S}).compute(A,P);var H=l.create(T.words.slice(B),S*4);return T.sigBytes=B*4,b.create({key:T,iv:H,salt:P})}},R=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:k}),encrypt:function(A,B,S,P){P=this.cfg.extend(P);var F=P.kdf.execute(S,A.keySize,A.ivSize,P.salt,P.hasher);P.iv=F.iv;var T=C.encrypt.call(this,A,B,F.key,P);return T.mixIn(F),T},decrypt:function(A,B,S,P){P=this.cfg.extend(P),B=this._parse(B,P.format);var F=P.kdf.execute(S,A.keySize,A.ivSize,B.salt,P.hasher);P.iv=F.iv;var T=C.decrypt.call(this,A,B,F.key,P);return T}})}()})}(zu)),zu.exports}var Mu={exports:{}},tx;function gX(){return tx||(tx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hr())})(ft,function(r){return r.mode.CFB=function(){var o=r.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,a){var l=this._cipher,s=l.blockSize;n.call(this,i,a,s,l),this._prevBlock=i.slice(a,a+s)}}),o.Decryptor=o.extend({processBlock:function(i,a){var l=this._cipher,s=l.blockSize,c=i.slice(a,a+s);n.call(this,i,a,s,l),this._prevBlock=c}});function n(i,a,l,s){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,s.encryptBlock(c,0);for(var u=0;u>24&255)===255){var s=l>>16&255,c=l>>8&255,d=l&255;s===255?(s=0,c===255?(c=0,d===255?d=0:++d):++c):++s,l=0,l+=s<<16,l+=c<<8,l+=d}else l+=1<<24;return l}function i(l){return(l[0]=n(l[0]))===0&&(l[1]=n(l[1])),l}var a=o.Encryptor=o.extend({processBlock:function(l,s){var c=this._cipher,d=c.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0),i(f);var p=f.slice(0);c.encryptBlock(p,0);for(var h=0;h>>2]|=l<<24-s%4*8,o.sigBytes+=l},unpad:function(o){var n=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=n}},r.pad.Ansix923})}(Vu)),Vu.exports}var Uu={exports:{}},lx;function wX(){return lx||(lx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hr())})(ft,function(r){return r.pad.Iso10126={pad:function(o,n){var i=n*4,a=i-o.sigBytes%i;o.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(o){var n=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=n}},r.pad.Iso10126})}(Uu)),Uu.exports}var Ku={exports:{}},sx;function SX(){return sx||(sx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hr())})(ft,function(r){return r.pad.Iso97971={pad:function(o,n){o.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(o,n)},unpad:function(o){r.pad.ZeroPadding.unpad(o),o.sigBytes--}},r.pad.Iso97971})}(Ku)),Ku.exports}var qu={exports:{}},cx;function _X(){return cx||(cx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hr())})(ft,function(r){return r.pad.ZeroPadding={pad:function(o,n){var i=n*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var n=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(n[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(qu)),qu.exports}var Gu={exports:{}},dx;function EX(){return dx||(dx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hr())})(ft,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Gu)),Gu.exports}var Xu={exports:{}},ux;function kX(){return ux||(ux=1,function(e,t){(function(r,o,n){e.exports=o(bt(),hr())})(ft,function(r){return function(o){var n=r,i=n.lib,a=i.CipherParams,l=n.enc,s=l.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(s)},parse:function(d){var u=s.parse(d);return a.create({ciphertext:u})}}}(),r.format.Hex})}(Xu)),Xu.exports}var Yu={exports:{}},fx;function PX(){return fx||(fx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),Fi(),Oi(),Un(),hr())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.BlockCipher,a=o.algo,l=[],s=[],c=[],d=[],u=[],f=[],p=[],h=[],v=[],g=[];(function(){for(var b=[],y=0;y<256;y++)y<128?b[y]=y<<1:b[y]=y<<1^283;for(var E=0,C=0,y=0;y<256;y++){var _=C^C<<1^C<<2^C<<3^C<<4;_=_>>>8^_&255^99,l[E]=_,s[_]=E;var k=b[E],R=b[k],A=b[R],B=b[_]*257^_*16843008;c[E]=B<<24|B>>>8,d[E]=B<<16|B>>>16,u[E]=B<<8|B>>>24,f[E]=B;var B=A*16843009^R*65537^k*257^E*16843008;p[_]=B<<24|B>>>8,h[_]=B<<16|B>>>16,v[_]=B<<8|B>>>24,g[_]=B,E?(E=k^b[b[b[A^k]]],C^=b[b[C]]):E=C=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],x=a.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,E=y.words,C=y.sigBytes/4,_=this._nRounds=C+6,k=(_+1)*4,R=this._keySchedule=[],A=0;A6&&A%C==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=m[A/C|0]<<24),R[A]=R[A-C]^b);for(var B=this._invKeySchedule=[],S=0;S>>24]]^h[l[b>>>16&255]]^v[l[b>>>8&255]]^g[l[b&255]]}}},encryptBlock:function(b,y){this._doCryptBlock(b,y,this._keySchedule,c,d,u,f,l)},decryptBlock:function(b,y){var E=b[y+1];b[y+1]=b[y+3],b[y+3]=E,this._doCryptBlock(b,y,this._invKeySchedule,p,h,v,g,s);var E=b[y+1];b[y+1]=b[y+3],b[y+3]=E},_doCryptBlock:function(b,y,E,C,_,k,R,A){for(var B=this._nRounds,S=b[y]^E[0],P=b[y+1]^E[1],F=b[y+2]^E[2],T=b[y+3]^E[3],H=4,N=1;N>>24]^_[P>>>16&255]^k[F>>>8&255]^R[T&255]^E[H++],re=C[P>>>24]^_[F>>>16&255]^k[T>>>8&255]^R[S&255]^E[H++],ee=C[F>>>24]^_[T>>>16&255]^k[S>>>8&255]^R[P&255]^E[H++],L=C[T>>>24]^_[S>>>16&255]^k[P>>>8&255]^R[F&255]^E[H++];S=W,P=re,F=ee,T=L}var W=(A[S>>>24]<<24|A[P>>>16&255]<<16|A[F>>>8&255]<<8|A[T&255])^E[H++],re=(A[P>>>24]<<24|A[F>>>16&255]<<16|A[T>>>8&255]<<8|A[S&255])^E[H++],ee=(A[F>>>24]<<24|A[T>>>16&255]<<16|A[S>>>8&255]<<8|A[P&255])^E[H++],L=(A[T>>>24]<<24|A[S>>>16&255]<<16|A[P>>>8&255]<<8|A[F&255])^E[H++];b[y]=W,b[y+1]=re,b[y+2]=ee,b[y+3]=L},keySize:256/32});o.AES=i._createHelper(x)}(),r.AES})}(Yu)),Yu.exports}var Zu={exports:{}},hx;function TX(){return hx||(hx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),Fi(),Oi(),Un(),hr())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.WordArray,a=n.BlockCipher,l=o.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=l.DES=a.extend({_doReset:function(){for(var m=this._key,x=m.words,b=[],y=0;y<56;y++){var E=s[y]-1;b[y]=x[E>>>5]>>>31-E%32&1}for(var C=this._subKeys=[],_=0;_<16;_++){for(var k=C[_]=[],R=d[_],y=0;y<24;y++)k[y/6|0]|=b[(c[y]-1+R)%28]<<31-y%6,k[4+(y/6|0)]|=b[28+(c[y+24]-1+R)%28]<<31-y%6;k[0]=k[0]<<1|k[0]>>>31;for(var y=1;y<7;y++)k[y]=k[y]>>>(y-1)*4+3;k[7]=k[7]<<5|k[7]>>>27}for(var A=this._invSubKeys=[],y=0;y<16;y++)A[y]=C[15-y]},encryptBlock:function(m,x){this._doCryptBlock(m,x,this._subKeys)},decryptBlock:function(m,x){this._doCryptBlock(m,x,this._invSubKeys)},_doCryptBlock:function(m,x,b){this._lBlock=m[x],this._rBlock=m[x+1],h.call(this,4,252645135),h.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),h.call(this,1,1431655765);for(var y=0;y<16;y++){for(var E=b[y],C=this._lBlock,_=this._rBlock,k=0,R=0;R<8;R++)k|=u[R][((_^E[R])&f[R])>>>0];this._lBlock=_,this._rBlock=C^k}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,h.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),m[x]=this._lBlock,m[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(m,x){var b=(this._lBlock>>>m^this._rBlock)&x;this._rBlock^=b,this._lBlock^=b<>>m^this._lBlock)&x;this._lBlock^=b,this._rBlock^=b<192.");var b=x.slice(0,2),y=x.length<4?x.slice(0,2):x.slice(2,4),E=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=p.createEncryptor(i.create(b)),this._des2=p.createEncryptor(i.create(y)),this._des3=p.createEncryptor(i.create(E))},encryptBlock:function(m,x){this._des1.encryptBlock(m,x),this._des2.decryptBlock(m,x),this._des3.encryptBlock(m,x)},decryptBlock:function(m,x){this._des3.decryptBlock(m,x),this._des2.encryptBlock(m,x),this._des1.decryptBlock(m,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=a._createHelper(g)}(),r.TripleDES})}(Zu)),Zu.exports}var Ju={exports:{}},px;function RX(){return px||(px=1,function(e,t){(function(r,o,n){e.exports=o(bt(),Fi(),Oi(),Un(),hr())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.StreamCipher,a=o.algo,l=a.RC4=i.extend({_doReset:function(){for(var d=this._key,u=d.words,f=d.sigBytes,p=this._S=[],h=0;h<256;h++)p[h]=h;for(var h=0,v=0;h<256;h++){var g=h%f,m=u[g>>>2]>>>24-g%4*8&255;v=(v+p[h]+m)%256;var x=p[h];p[h]=p[v],p[v]=x}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var d=this._S,u=this._i,f=this._j,p=0,h=0;h<4;h++){u=(u+1)%256,f=(f+d[u])%256;var v=d[u];d[u]=d[f],d[f]=v,p|=d[(d[u]+d[f])%256]<<24-h*8}return this._i=u,this._j=f,p}o.RC4=i._createHelper(l);var c=a.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)s.call(this)}});o.RC4Drop=i._createHelper(c)}(),r.RC4})}(Ju)),Ju.exports}var Qu={exports:{}},vx;function AX(){return vx||(vx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),Fi(),Oi(),Un(),hr())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.StreamCipher,a=o.algo,l=[],s=[],c=[],d=a.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,p=this.cfg.iv,h=0;h<4;h++)f[h]=(f[h]<<8|f[h]>>>24)&16711935|(f[h]<<24|f[h]>>>8)&4278255360;var v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)u.call(this);for(var h=0;h<8;h++)g[h]^=v[h+4&7];if(p){var m=p.words,x=m[0],b=m[1],y=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,C=y>>>16|E&4294901760,_=E<<16|y&65535;g[0]^=y,g[1]^=C,g[2]^=E,g[3]^=_,g[4]^=y,g[5]^=C,g[6]^=E,g[7]^=_;for(var h=0;h<4;h++)u.call(this)}},_doProcessBlock:function(f,p){var h=this._X;u.call(this),l[0]=h[0]^h[5]>>>16^h[3]<<16,l[1]=h[2]^h[7]>>>16^h[5]<<16,l[2]=h[4]^h[1]>>>16^h[7]<<16,l[3]=h[6]^h[3]>>>16^h[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,f[p+v]^=l[v]},blockSize:128/32,ivSize:64/32});function u(){for(var f=this._X,p=this._C,h=0;h<8;h++)s[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var h=0;h<8;h++){var v=f[h]+p[h],g=v&65535,m=v>>>16,x=((g*g>>>17)+g*m>>>15)+m*m,b=((v&4294901760)*v|0)+((v&65535)*v|0);c[h]=x^b}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(d)}(),r.Rabbit})}(Qu)),Qu.exports}var ef={exports:{}},gx;function FX(){return gx||(gx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),Fi(),Oi(),Un(),hr())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.StreamCipher,a=o.algo,l=[],s=[],c=[],d=a.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,p=this.cfg.iv,h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var g=0;g<4;g++)u.call(this);for(var g=0;g<8;g++)v[g]^=h[g+4&7];if(p){var m=p.words,x=m[0],b=m[1],y=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,C=y>>>16|E&4294901760,_=E<<16|y&65535;v[0]^=y,v[1]^=C,v[2]^=E,v[3]^=_,v[4]^=y,v[5]^=C,v[6]^=E,v[7]^=_;for(var g=0;g<4;g++)u.call(this)}},_doProcessBlock:function(f,p){var h=this._X;u.call(this),l[0]=h[0]^h[5]>>>16^h[3]<<16,l[1]=h[2]^h[7]>>>16^h[5]<<16,l[2]=h[4]^h[1]>>>16^h[7]<<16,l[3]=h[6]^h[3]>>>16^h[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,f[p+v]^=l[v]},blockSize:128/32,ivSize:64/32});function u(){for(var f=this._X,p=this._C,h=0;h<8;h++)s[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var h=0;h<8;h++){var v=f[h]+p[h],g=v&65535,m=v>>>16,x=((g*g>>>17)+g*m>>>15)+m*m,b=((v&4294901760)*v|0)+((v&65535)*v|0);c[h]=x^b}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(d)}(),r.RabbitLegacy})}(ef)),ef.exports}var tf={exports:{}},mx;function OX(){return mx||(mx=1,function(e,t){(function(r,o,n){e.exports=o(bt(),Fi(),Oi(),Un(),hr())})(ft,function(r){return function(){var o=r,n=o.lib,i=n.BlockCipher,a=o.algo;const l=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(g,m){let x=m>>24&255,b=m>>16&255,y=m>>8&255,E=m&255,C=g.sbox[0][x]+g.sbox[1][b];return C=C^g.sbox[2][y],C=C+g.sbox[3][E],C}function f(g,m,x){let b=m,y=x,E;for(let C=0;C1;--C)b=b^g.pbox[C],y=u(g,b)^y,E=b,b=y,y=E;return E=b,b=y,y=E,y=y^g.pbox[1],b=b^g.pbox[0],{left:b,right:y}}function h(g,m,x){for(let _=0;_<4;_++){g.sbox[_]=[];for(let k=0;k<256;k++)g.sbox[_][k]=c[_][k]}let b=0;for(let _=0;_=x&&(b=0);let y=0,E=0,C=0;for(let _=0;_s.value?["rounded-none","shadow-none"]:["border","rounded-md","shadow-md","dark:border-neutral-800"]),h=j(()=>["h-full"]);let v=U("发送验证码"),g=U(0);const m=dp(),x=U(null),b=Kl(),y=U("medium"),E=Lo({fontSize:"14px",fontWeight:700});let C=U({username:"",password:""}),_={phone:{required:!0,message:ut("user.text19"),trigger:["input","blur"]},code:{required:!0,message:ut("user.text36"),trigger:["input","blur"]}},k=U(!1),R=U(!0),A=U(!1),B=U(!1);function S(){C.value.username&&(k.value=!0),T()}function P(){T()}function F(ve){A.value=ve,T()}function T(){A.value&&C.value.username&&C.value.password?R.value=!1:R.value=!0}function H(ve){var te;ve.preventDefault(),(te=x.value)==null||te.validate(async ce=>{if(ce)console.log(ce),b.error("Invalid");else{let X={username:C.value.username,password:IX.MD5(C.value.password).toString()},le=b.loading("loading",{duration:0}),Ee=await $K(X);if(Ee.code!=200){le.destroy(),b.error(Ee.msg);return}r.setToken(Ee.data.current_token),le.destroy(),b.success("Login Success");let _e=Ee.data,D={avatar:_e.avatar,name:_e.nickname,username:_e.username,invite_code:_e.invite_code,ai_usage_count:_e.ai_usage_count,description:""};console.log("userInfo",D),m.updateUserInfo(D),await o.getChatList(),i.value=!1}})}function N(){let ve=r.token;if(console.log(ve),ve){a.value=!0;return}t.push({name:"login"})}function W(){a.value=!1,r.removeToken(),o.clearAllChat()}async function re(){if(g.value>0)return;let ve=b.loading("loading",{duration:0});B.value=!0;let te=await IK(C.value.username);if(ve.destroy(),B.value=!1,te.code!=200){b.error(te.msg);return}b.success("Success"),g.value=60;const ce=setInterval(()=>{g.value--,g.value<=0&&(v.value="重新发送",g.value=0,clearInterval(ce))},1e3)}const ee=U(null),L=U(null);async function M(){let ve=b.loading("loading",{duration:0}),te=await LK();if(ve.destroy(),te.code!=200){b.error(te.msg);return}c.value=te.data.data,c.value.sort((ce,X)=>ce.recharge_amount-X.recharge_amount),b.success("Success"),l.value=!0,G(0)}async function G(ve){d.value=ve;let te=b.loading("loading",{duration:0}),ce=await zK(c.value[d.value].id);if(te.destroy(),ce.code!=200){b.error(ce.msg);return}console.log(ce.data),ge(ce.data.code_url,ce.data.order_id)}function J(){l.value=!1,L.value=null}function ge(ve,te){if(L.value){L.value.clear(),L.value.makeCode(ve);return}L.value=new QRCode(document.getElementById("qrcode"),{text:ve,width:120,height:120,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRCode.CorrectLevel.H}),ee.value&&clearInterval(ee.value),ee.value=setInterval(async()=>{if((await MK(te)).code==200){clearInterval(ee.value),b.success("支付成功"),l.value=!1,L.value=null;let X=b.loading("正在获取用户信息",{duration:0}),le=await DK();if(X.destroy(),le.code!=200){if(le.code==401)return;b.error(le.message);return}let Ee=le.data,_e={avatar:Ee.avatar,name:Ee.nickname,username:Ee.username,invite_code:Ee.invite_code,description:"",ai_usage_count:Ee.ai_usage_count};console.log("userInfo",_e),m.updateUserInfo(_e)}},2e3)}return(ve,te)=>{const ce=fl("RouterView"),X=fl("router-link");return ct(),Ot("div",$X,[Be(iX,{"using-context":pe(n),onHandleClickAvatar:N},null,8,["using-context"]),Ae("div",{class:fo(["h-[87%] overflow-hidden mx-8 my-4",p.value])},[Be(pe(M2),{class:fo(["z-40 transition",h.value]),"has-sider":"","sider-placement":"right"},{default:Qe(()=>[Be(pe(N2),{class:"h-full"},{default:Qe(()=>[Be(ce,null,{default:Qe(({Component:le,route:Ee})=>[(ct(),Er(e1(le),{key:Ee.fullPath}))]),_:1})]),_:1}),Be(GG)]),_:1},8,["class"])],2),Be(pe(Yi),{show:i.value,"onUpdate:show":te[3]||(te[3]=le=>i.value=le),"trap-focus":!1},{default:Qe(()=>[Ae("div",DX,[Ae("div",LX,[Ae("button",{onClick:te[0]||(te[0]=le=>i.value=!1)},[Be(pe(Zo),{width:"20",height:"20",src:pe(yu)},null,8,["src"])])]),Ae("div",zX,At(pe(ut)("user.text2")),1),MX,Be(pe(O7),{ref_key:"formRef",ref:x,"label-width":80,model:pe(C),rules:pe(_),size:y.value},{default:Qe(()=>[Be(pe(au),{label:pe(ut)("user.text3"),path:"phone","label-style":E},{default:Qe(()=>[Be(pe(Go),{value:pe(C).username,"onUpdate:value":te[1]||(te[1]=le=>pe(C).username=le),placeholder:pe(ut)("user.text19"),class:"input-style",onInput:S},null,8,["value","placeholder"])]),_:1},8,["label","label-style"]),Be(pe(au),{label:pe(ut)("user.text12"),path:"code","label-style":E},{default:Qe(()=>[Ae("div",NX,[Be(pe(Go),{value:pe(C).password,"onUpdate:value":te[2]||(te[2]=le=>pe(C).password=le),placeholder:pe(ut)("user.text32"),class:"input-style",onInput:P},null,8,["value","placeholder"]),Ae("button",{onClick:re,disabled:pe(g)>0,class:fo([pe(g)>0?"bg-[#E9E9E9FF]":"bg-[#000]","w-[90px] rounded-[5px] absolute right-[8px] top-[6px] h-[32px] py-[4px] px-[10px] text-white text-[14px]"])},[pe(g)<=0?(ct(),Ot("text",jX,At(pe(v)),1)):To("",!0),pe(g)>0?(ct(),Ot("text",WX,At(pe(g))+"s",1)):To("",!0)],10,HX)])]),_:1},8,["label","label-style"]),Ae("div",VX,[Be(pe(Nc),{checked:pe(A),size:"small",label:"","onUpdate:checked":F},null,8,["checked"]),Zt(" "+At(pe(ut)("user.text6"))+" ",1),Be(X,{target:"_blank",to:"/user/userAgreement",class:"primary-text-color"},{default:Qe(()=>[Zt(At(pe(ut)("user.text7")),1)]),_:1}),Zt(At(pe(ut)("user.text8")),1),Be(X,{target:"_blank",to:"/user/privacyPolicy",class:"primary-text-color"},{default:Qe(()=>[Zt(At(pe(ut)("user.text9")),1)]),_:1})]),Be(pe(au),null,{default:Qe(()=>[Ae("div",UX,[Ae("button",{disabled:pe(R)&&pe(B),class:"button-style gradient-common w-[80%]",block:!0,"attr-type":"button",onClick:H},GX,8,KX)])]),_:1})]),_:1},8,["model","rules","size"])])]),_:1},8,["show"]),Be(pe(Yi),{show:a.value,"onUpdate:show":te[5]||(te[5]=le=>a.value=le),"trap-focus":!1},{default:Qe(()=>[Be(pe(xh),{"content-style":"padding: 20px;",bordered:!1,size:"huge",role:"dialog","aria-modal":"true",style:{width:"280px",height:"230px",position:"fixed",right:"0px",top:"0px","background-color":"rgba(253, 255, 140, 0.50)"}},{default:Qe(()=>[Ae("div",XX,[Ae("div",YX,[Ae("button",{onClick:te[4]||(te[4]=le=>a.value=!1)},[Be(pe(Zo),{width:"20",height:"20",src:pe(yu),"preview-disabled":""},null,8,["src"])])]),Ae("div",ZX,[Be(pe(qY)),Ae("div",JX,At(pe(m).userInfo.username),1)]),Ae("div",QX,[Ae("div",eY,[tY,Ae("div",null,At(pe(m).userInfo.ai_usage_count)+"次",1)]),Ae("button",{class:"recharge-btn w-[100%]",block:!0,"attr-type":"button",onClick:M},oY)]),Ae("div",{class:"d-c-c w-full"},[Ae("button",{class:"button-signout bg-black w-[100%]",block:!0,"attr-type":"button",onClick:W},iY)])])]),_:1})]),_:1},8,["show"]),Be(pe(Yi),{show:l.value,"onUpdate:show":te[7]||(te[7]=le=>l.value=le),"trap-focus":!1},{default:Qe(()=>[Ae("div",aY,[Ae("div",lY,[sY,Ae("button",{onClick:J},[Be(pe(Zo),{width:"20",height:"20",src:pe(yu)},null,8,["src"])])]),cY,dY,Ae("div",uY,[(ct(!0),Ot(rt,null,di(c.value,(le,Ee)=>(ct(),Ot("div",fY,[Ae("div",hY,[Ae("div",pY,At(le.usable_count),1),vY]),Ae("button",{class:"price-btn w-[100%]",block:!0,"attr-type":"button",onClick:_e=>G(Ee)},[Ae("text",mY,At(le.recharge_amount)+"¥",1)],8,gY)]))),256))]),bY,Ae("div",xY,[yY,Ae("div",CY,[Ae("div",wY,"¥"+At(c.value[d.value].recharge_amount),1),SY,Ae("div",_Y,[Be(pe(gw),{value:u.value,"onUpdate:value":te[6]||(te[6]=le=>u.value=le),name:"radiogroup"},{default:Qe(()=>[Be(pe(zf),null,{default:Qe(()=>[(ct(),Ot(rt,null,di(f,le=>Be(pe(kh),{key:le.value,value:le.value},{default:Qe(()=>[Be(pe(Zo),{width:"67.08",height:"30",src:pe(aX)},null,8,["src"])]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["value"])])])]),Ae("div",EY,[Ae("button",{disabled:pe(R),class:"price-btn w-[50%]",block:!0,"attr-type":"button",onClick:H},TY,8,kY)])])]),_:1},8,["show"])])}}});const AY=be({__name:"Layout",setup(e){const{isMobile:t}=fd(),r=j(()=>t.value?["rounded-none","shadow-none"]:["border","rounded-md","shadow-md","dark:border-neutral-800"]),o=j(()=>["h-full"]);return(n,i)=>{const a=fl("RouterView");return ct(),Ot("div",{class:fo(["h-full transition-all",[(pe(t),"p-0")]])},[Ae("div",{class:fo(["h-full",r.value])},[Be(pe(M2),{class:fo(["z-40 transition bg-bottom",o.value]),"has-sider":""},{default:Qe(()=>[Be(pe(N2),{class:"h-full w-1/2 bg-transparent"},{default:Qe(()=>[Be(a,null,{default:Qe(({Component:l,route:s})=>[(ct(),Er(e1(l),{key:s.fullPath}))]),_:1})]),_:1})]),_:1},8,["class"])],2)],2)}}});const FY=[{path:"/user",name:"user",component:AY,redirect:"/user",children:[{path:"/user/login",name:"login",component:()=>Ve(()=>import("./index-09299d1f.js"),["./index-09299d1f.js","./validator-3b4c866c.js","./index-803330a9.css"],import.meta.url)},{path:"/user/register/:inviterCode?",name:"register",component:()=>Ve(()=>import("./index-8b3f8a02.js"),["./index-8b3f8a02.js","./validator-3b4c866c.js","./copy-ee710165.js","./index-803330a9.css"],import.meta.url)}]},{path:"/user/forget/stepFirst",name:"VerifyEmail",component:()=>Ve(()=>import("./stepFirst-5c45f90c.js"),["./stepFirst-5c45f90c.js","./validator-3b4c866c.js","./stepFirst-3a1168aa.css"],import.meta.url)},{path:"/user/forget/stepSecond/:email",name:"VerifyCode",component:()=>Ve(()=>import("./stepSecond-83f88fb3.js"),["./stepSecond-83f88fb3.js","./index-803330a9.css"],import.meta.url)},{path:"/user/forget/stepThird/:email/:code",name:"SetupPassword",component:()=>Ve(()=>import("./stepThird-bc2c7d06.js"),["./stepThird-bc2c7d06.js","./validator-3b4c866c.js","./stepFirst-3a1168aa.css"],import.meta.url)},{path:"/user/forget/stepSuccess",name:"StepSuccess",component:()=>Ve(()=>import("./stepSuccess-02b9f49f.js"),["./stepSuccess-02b9f49f.js","./stepFirst-3a1168aa.css"],import.meta.url)},{path:"/user/privacyPolicy",name:"privacyPolicy",component:()=>Ve(()=>import("./index-27f48626.js"),["./index-27f48626.js","./stepFirst-3a1168aa.css"],import.meta.url)},{path:"/user/userAgreement",name:"userAgreement",component:()=>Ve(()=>import("./index-efa0c534.js"),["./index-efa0c534.js","./stepFirst-3a1168aa.css"],import.meta.url)},{path:"/",name:"Root",component:RY,children:[{path:"/chat/:isRegister?",name:"Chat",component:()=>Ve(()=>import("./index-8ab81e6c.js"),["./index-8ab81e6c.js","./copy-ee710165.js","./index-6f8d3206.css"],import.meta.url)},{path:"/report",name:"report",component:()=>Ve(()=>import("./Generatereports-1ca07921.js"),["./Generatereports-1ca07921.js","./Generatereports-bf82ee9c.css"],import.meta.url)},{path:"/results",name:"results",component:()=>Ve(()=>import("./Results-f3239de2.js"),["./Results-f3239de2.js","./Generatereports-bf82ee9c.css"],import.meta.url)}]},{path:"/404",name:"404",component:()=>Ve(()=>import("./index-82905dcb.js"),[],import.meta.url)},{path:"/500",name:"500",component:()=>Ve(()=>import("./index-58443c2f.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",name:"notFound",redirect:"/404"}],fc=Yq({history:Eq(),routes:FY,scrollBehavior:()=>({left:0,top:0})});sG(fc);async function OY(e){e.use(fc),await fc.isReady()}const BY=["January","February","March","April","May","June","July","August","September","October","November","December"],aa=ya("chat-store",{state:()=>({active:UK()||0,coinList:KK(),usingContext:!0,history:[],chat:[],generating:!1,step:0,talkEnd:!1,isTalking:!1,isPlaying:!1,isFreeTalking:!1,freeTalkText:"",prompt:"",curTalkText:["您好,我是疼痛科的杨教授,请问请问您今天哪里不舒服?","你好,请在右图上标记疼痛部位","请问您的疼痛性质有哪些?","请问您的疼痛发作情况有哪些?","请问您的伴随症状是以下有哪些?","您认为您的病情加重因素有哪些?","您认为您的病情减轻因素有哪些?","您认为您的疼痛的程度是以下哪种?","请选择您的自我照护(饮食、起居、穿衣、洗漱、如厕)受影响程度?","请选择您的家务及社会活动受影响程度?","请选择您的工作及学习受影响程度?","请选择您的睡眠受影响程度?","请选择您的情绪受影响程度?"],curTalkOptions:[[],[{value:"酸胀",selected:!1,isSingleChoice:!1},{value:"牵掣痛",selected:!1},{value:"刀割痛",selected:!1},{value:"闪电痛",selected:!1},{value:"麻木/瘙痒",selected:!1},{value:"跳痛",selected:!1},{value:"刺痛",selected:!1},{value:"烧灼痛",selected:!1},{value:"绞痛",selected:!1},{value:"其他",selected:!1}],[{value:"持续性",selected:!1,isSingleChoice:!0},{value:"间断加重",selected:!1},{value:"间断发作性",selected:!1}],[{value:"恶心",selected:!1,isSingleChoice:!1},{value:"呕吐",selected:!1},{value:"头晕",selected:!1},{value:"麻木",selected:!1},{value:"呼吸困难",selected:!1},{value:"站立不稳",selected:!1},{value:"其它",selected:!1}],[{value:"天气",selected:!1,isSingleChoice:!1},{value:"劳累",selected:!1},{value:"饮食",selected:!1},{value:"站",selected:!1},{value:"坐",selected:!1},{value:"行",selected:!1},{value:"体位变动",selected:!1},{value:"咳嗽",selected:!1},{value:"其它",selected:!1}],[{value:"休息",selected:!1,isSingleChoice:!1},{value:"活动",selected:!1},{value:"药物",selected:!1},{value:"其它",selected:!1}],[{value:"完全不痛",selected:!1,isSingleChoice:!0},{value:"轻度,可以忽略",selected:!1},{value:"中度,可以耐受",selected:!1},{value:"重度,不能耐受,需处理",selected:!1}],[{value:"完全受限",selected:!1,isSingleChoice:!0},{value:"大部分受限",selected:!1},{value:"小部分受限",selected:!1},{value:"完全自如",selected:!1}],[{value:"完全受限",selected:!1,isSingleChoice:!0},{value:"大部分受限",selected:!1},{value:"小部分受限",selected:!1},{value:"完全自如",selected:!1}],[{value:"完全受限",selected:!1,isSingleChoice:!0},{value:"大部分受限",selected:!1},{value:"小部分受限",selected:!1},{value:"完全自如",selected:!1}],[{value:"根本无法睡觉",selected:!1,isSingleChoice:!0},{value:"中度障碍",selected:!1},{value:"轻度障碍",selected:!1},{value:"正常睡眠",selected:!1}],[{value:"完全失控",selected:!1,isSingleChoice:!0},{value:"很差",selected:!1},{value:"有些不好",selected:!1},{value:"基本正常",selected:!1}],[{value:"1",selected:!1,isSingleChoice:!0},{value:"2",selected:!1},{value:"3",selected:!1},{value:"4",selected:!1},{value:"5",selected:!1},{value:"6",selected:!1}]],reportContent:[],chatVideos:[],stayVideo:null,talkVideo:null}),getters:{getChatHistoryByCurrentActive(e){const t=e.history.findIndex(r=>r.uuid===e.active);return t!==-1?e.history[t]:null},getChatByUuid(e){return console.log("chat",e.chat),t=>{var r,o;return t?((r=e.chat.find(n=>n.uuid===t))==null?void 0:r.data)??[]:((o=e.chat.find(n=>n.uuid===e.active))==null?void 0:o.data)??[]}}},actions:{initTalkOptions(){this.curTalkOptions.forEach(e=>{e.forEach(t=>{t.selected=!1})})},setStep(e){this.step=e},setIsTalking(e){this.isTalking=e},setGeneratingState(e){this.generating=e},async getChatList(){try{this.active=1001;let e=[{uuid:1001,title:"",isEdit:!1,data:[]}],t={conversationOptions:null,dateTime:new Date,inversion:!1,text:"你好,请在右图上标记疼痛部位"};e[0].data.push(t);let r=[];return this.history=r,this.chat=e,this.setActive(this.active),Promise.resolve("success")}catch(e){return Promise.reject(e)}},setCoinList(e){this.coinList=e,qK(e)},setUsingContext(e){this.usingContext=e,this.recordState()},async addHistory(e,t=[]){let r=await NK();if(r.code!=200)return Promise.resolve(r);let o=new Date,n=o.getFullYear(),i=BY[o.getMonth()],a=o.getMonth()+1,l=o.getDate();return a<10&&(a="0"+(o.getMonth()+1)),l<10&&(l="0"+o.getDate()),e.uuid=r.data.chatwin_id,e.month=`${n} ${i}`,e.date=`${a}/${l}`,this.history.unshift(e),this.chat.unshift({uuid:e.uuid,data:t}),this.active=e.uuid,this.reloadRoute(),Promise.resolve(r)},updateHistory(e,t){const r=this.history.findIndex(o=>o.uuid===e);r!==-1&&(this.history[r]={...this.history[r],...t},this.recordState())},updateHistoryTitle(e,t){const r=this.history.findIndex(o=>o.uuid===e);r!==-1&&(this.history[r].title=t,this.recordState())},async deleteHistory(e){var o;let t=await HK(this.history[e].uuid);if(t.code!=200)return Promise.resolve(t);if(this.history.splice(e,1),this.chat.splice(e,1),this.history.length===0)return this.active=0,Promise.resolve(t);if(e>0&&e<=this.history.length){const n=this.history[e-1].uuid;return this.active=n,Promise.resolve(t)}if(e===0&&this.history.length>0){const n=this.history[0].uuid;this.active=n}if(e>this.history.length){const n=this.history[this.history.length-1].uuid;this.active=n}db(this.active);let r=(o=window.$message)==null?void 0:o.loading("loading",{duration:0});return await this.setActive(this.active),r==null||r.destroy(),Promise.resolve(t)},async setActive(e){return this.active=e,db(e),this.reloadRoute(),Promise.resolve()},getChatByUuidAndIndex(e,t){if(!e||e===0)return this.chat.length?this.chat[0].data[t]:null;const r=this.chat.findIndex(o=>o.uuid===e);return r!==-1?this.chat[r].data[t]:null},async addChatByUuid(e,t){if(!e||e===0)if(this.history.length===0){const o=Date.now();this.history.push({uuid:o,title:t.text,isEdit:!1,month:"",date:""}),this.chat.push({uuid:o,data:[t]}),this.active=o,this.recordState()}else this.chat[0].data.push(t),this.history[0].title===ut("chat.newChatTitle")&&(this.history[0].title=t.text),this.recordState();const r=this.chat.findIndex(o=>o.uuid===e);r!==-1&&(this.chat[r].data.push(t),this.recordState())},updateChatByUuid(e,t,r){if(!e||e===0){this.chat.length&&(this.chat[0].data[t]=r,this.recordState());return}const o=this.chat.findIndex(n=>n.uuid===e);o!==-1&&(this.chat[o].data[t]=r,this.recordState())},updateChatSomeByUuid(e,t,r){if(!e||e===0){this.chat.length&&(this.chat[0].data[t]={...this.chat[0].data[t],...r},this.recordState());return}const o=this.chat.findIndex(n=>n.uuid===e);console.warn("chatIndex",o),o!==-1&&(this.chat[o].data[t]={...this.chat[o].data[t],...r},this.recordState())},deleteChatByUuid(e,t){if(!e||e===0){this.chat.length&&(this.chat[0].data.splice(t,1),this.recordState());return}const r=this.chat.findIndex(o=>o.uuid===e);r!==-1&&(this.chat[r].data.splice(t,1),this.recordState())},clearChatByUuid(e){let t={conversationOptions:null,dateTime:new Date,inversion:!1,text:"你好,请在右图上标记疼痛部位"};if(!e||e===0){this.chat.length&&(this.chat[0].data=[t],this.recordState());return}const r=this.chat.findIndex(o=>o.uuid===e);r!==-1&&(this.chat[r].data=[t],this.recordState())},clearAllChat(){this.chat=[],this.recordState()},clearHistory(){this.$state={...WK()},this.recordState()},async reloadRoute(){this.recordState(),await fc.replace({name:"Chat"})},recordState(){VK(this.$state)}}}),IY="userStorage";function M_(){return{userInfo:{avatar:"",name:"ChenZhaoYu",username:"",description:"",ai_usage_count:0}}}function $Y(){return{...M_()}}function DY(e){Xt.set(IY,e)}const dp=ya("user-store",{state:()=>$Y(),actions:{updateUserInfo(e){this.userInfo={...this.userInfo,...e},this.recordState()},resetUserInfo(){this.userInfo={...M_().userInfo},this.recordState()},recordState(){DY(this.$state)}}}),N_="promptStore";function LY(){return Xt.get(N_)??{promptList:[]}}function zY(e){Xt.set(N_,e)}const MY=ya("prompt-store",{state:()=>LY(),actions:{updatePromptList(e){this.$patch({promptList:e}),zY({promptList:e})},getPromptList(){return this.$state}}}),up="settingsStorage";function H_(){return{systemMessage:"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.",temperature:.8,top_p:1}}function NY(){const e=Xt.get(up);return{...H_(),...e}}function HY(e){Xt.set(up,e)}function jY(){Xt.remove(up)}ya("setting-store",{state:()=>NY(),actions:{updateSetting(e){this.$state={...this.$state,...e},this.recordState()},resetSetting(){this.$state=H_(),jY()},recordState(){HY(this.$state)}}});function WY(e){e.use(Hh)}const bx=""+new URL("avatar-ceeb03f6.jpg",import.meta.url).href;function VY(e){return Object.prototype.toString.call(e)==="[object String]"}const UY={class:"flex items-center overflow-hidden"},KY={class:"w-10 h-10 overflow-hidden rounded-full shrink-0"},qY=be({__name:"index",setup(e){const t=dp(),r=j(()=>t.userInfo);return(o,n)=>(ct(),Ot("div",UY,[Ae("div",KY,[pe(VY)(r.value.avatar)&&r.value.avatar.length>0?(ct(),Er(pe(Ag),{key:0,size:"large",round:"",bordered:!0,src:r.value.avatar,"fallback-src":pe(bx)},null,8,["src","fallback-src"])):(ct(),Er(pe(Ag),{key:1,bordered:!0,size:"large",round:"",src:pe(bx)},null,8,["src"]))])]))}}),GY=[{key:"awesome-chatgpt-prompts-zh",desc:"ChatGPT 中文调教指南",downloadUrl:"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json",url:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{key:"awesome-chatgpt-prompts-zh-TW",desc:"ChatGPT 中文調教指南 (透過 OpenAI / OpenCC 協助,從簡體中文轉換為繁體中文的版本)",downloadUrl:"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh-TW.json",url:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"}],XY={class:"space-y-4"},YY={class:"flex items-center space-x-4"},ZY={class:"flex items-center"},JY={class:"flex flex-col items-center gap-2"},QY={class:"mb-4"},eZ={class:"flex items-center gap-4"},tZ={class:"max-h-[360px] overflow-y-auto space-y-4"},rZ=["title"],oZ={class:"flex items-center justify-end space-x-4"},nZ=["href"],iZ=be({__name:"index",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=e,o=t,n=Kl(),i=j({get:()=>r.visible,set:re=>o("update:visible",re)}),a=U(!1),l=U(!1),s=U(!1),c=U(""),{isMobile:d}=fd(),u=MY(),f=GY,p=U(u.promptList),h=U(""),v=U(""),g=U(""),m=U({}),x=(re,ee={key:"",value:""})=>{re==="add"?(h.value="",v.value=""):re==="modify"?(m.value={...ee},h.value=ee.key,v.value=ee.value):re==="local_import"&&(h.value="local_import",v.value=""),a.value=!a.value,g.value=re},b=U(""),y=j(()=>b.value.trim().length<1),E=re=>{b.value=re},C=j(()=>h.value.trim().length<1||v.value.trim().length<1),_=()=>{for(const re of p.value){if(re.key===h.value){n.error(ut("store.addRepeatTitleTips"));return}if(re.value===v.value){n.error(ut("store.addRepeatContentTips",{msg:h.value}));return}}p.value.unshift({key:h.value,value:v.value}),n.success(ut("common.addSuccess")),x("add")},k=()=>{let re=0;for(const L of p.value){if(L.key===m.value.key&&L.value===m.value.value)break;re=re+1}const ee=p.value.filter((L,M)=>M!==re);for(const L of ee){if(L.key===h.value){n.error(ut("store.editRepeatTitleTips"));return}if(L.value===v.value){n.error(ut("store.editRepeatContentTips",{msg:L.key}));return}}p.value=[{key:h.value,value:v.value},...ee],n.success(ut("common.editSuccess")),x("modify")},R=re=>{p.value=[...p.value.filter(ee=>ee.key!==re.key)],n.success(ut("common.deleteSuccess"))},A=()=>{p.value=[],n.success(ut("common.clearSuccess"))},B=(re="online")=>{try{const ee=JSON.parse(v.value);let L="",M="";if("key"in ee[0])L="key",M="value";else if("act"in ee[0])L="act",M="prompt";else throw n.warning("prompt key not supported."),new Error("prompt key not supported.");for(const G of ee){if(!(L in G)||!(M in G))throw new Error(ut("store.importError"));let J=!0;for(const ge of p.value){if(ge.key===G[L]){n.warning(ut("store.importRepeatTitle",{msg:G[L]})),J=!1;break}if(ge.value===G[M]){n.warning(ut("store.importRepeatContent",{msg:G[L]})),J=!1;break}}J&&p.value.unshift({key:G[L],value:G[M]})}n.success(ut("common.importSuccess"))}catch{n.error("JSON 格式错误,请检查 JSON 格式")}re==="local"&&(a.value=!a.value)},S=()=>{s.value=!0;const re=JSON.stringify(p.value),ee=new Blob([re],{type:"application/json"}),L=URL.createObjectURL(ee),M=document.createElement("a");M.href=L,M.download="ChatGPTPromptTemplate.json",M.click(),URL.revokeObjectURL(L),s.value=!1},P=async()=>{try{l.value=!0;const ee=await(await fetch(b.value)).json();if("key"in ee[0]&&"value"in ee[0]&&(v.value=JSON.stringify(ee)),"act"in ee[0]&&"prompt"in ee[0]){const L=ee.map(M=>({key:M.act,value:M.prompt}));v.value=JSON.stringify(L)}B(),b.value=""}catch{n.error(ut("store.downloadError")),b.value=""}finally{l.value=!1}},F=()=>{const[re,ee]=d.value?[10,30]:[15,50];return p.value.map(L=>({renderKey:L.key.length<=re?L.key:`${L.key.substring(0,re)}...`,renderValue:L.value.length<=ee?L.value:`${L.value.substring(0,ee)}...`,key:L.key,value:L.value}))},T=j(()=>{const[re,ee]=d.value?[6,5]:[7,15];return{pageSize:re,pageSlot:ee}}),N=(()=>[{title:ut("store.title"),key:"renderKey"},{title:ut("store.description"),key:"renderValue"},{title:ut("common.action"),key:"actions",width:100,align:"center",render(re){return w("div",{class:"flex items-center flex-col gap-2"},{default:()=>[w(nr,{tertiary:!0,size:"small",type:"info",onClick:()=>x("modify",re)},{default:()=>ut("common.edit")}),w(nr,{tertiary:!0,size:"small",type:"error",onClick:()=>R(re)},{default:()=>ut("common.delete")})]})}}])();lt(()=>p,()=>{u.updatePromptList(p.value)},{deep:!0});const W=j(()=>{const re=F(),ee=c.value;return ee&&ee!==""?re.filter(L=>L.renderKey.includes(ee)||L.renderValue.includes(ee)):re});return(re,ee)=>(ct(),Ot(rt,null,[Be(pe(Yi),{show:i.value,"onUpdate:show":ee[6]||(ee[6]=L=>i.value=L),style:{width:"90%","max-width":"900px"},preset:"card"},{default:Qe(()=>[Ae("div",XY,[Be(pe(mH),{type:"segment"},{default:Qe(()=>[Be(pe(Zg),{name:"local",tab:re.$t("store.local")},{default:Qe(()=>[Ae("div",{class:fo(["flex gap-3 mb-4",[pe(d)?"flex-col":"flex-row justify-between"]])},[Ae("div",YY,[Be(pe(nr),{type:"primary",size:"small",onClick:ee[0]||(ee[0]=L=>x("add"))},{default:Qe(()=>[Zt(At(re.$t("common.add")),1)]),_:1}),Be(pe(nr),{size:"small",onClick:ee[1]||(ee[1]=L=>x("local_import"))},{default:Qe(()=>[Zt(At(re.$t("common.import")),1)]),_:1}),Be(pe(nr),{size:"small",loading:s.value,onClick:ee[2]||(ee[2]=L=>S())},{default:Qe(()=>[Zt(At(re.$t("common.export")),1)]),_:1},8,["loading"]),Be(pe(eH),{onPositiveClick:A},{trigger:Qe(()=>[Be(pe(nr),{size:"small"},{default:Qe(()=>[Zt(At(re.$t("common.clear")),1)]),_:1})]),default:Qe(()=>[Zt(" "+At(re.$t("store.clearStoreConfirm")),1)]),_:1})]),Ae("div",ZY,[Be(pe(Go),{value:c.value,"onUpdate:value":ee[3]||(ee[3]=L=>c.value=L),style:{width:"100%"}},null,8,["value"])])],2),pe(d)?To("",!0):(ct(),Er(pe(hL),{key:0,"max-height":400,columns:pe(N),data:W.value,pagination:T.value,bordered:!1},null,8,["columns","data","pagination"])),pe(d)?(ct(),Er(pe(PN),{key:1,style:{"max-height":"400px","overflow-y":"auto"}},{default:Qe(()=>[(ct(!0),Ot(rt,null,di(W.value,(L,M)=>(ct(),Er(pe(TN),{key:M},{suffix:Qe(()=>[Ae("div",JY,[Be(pe(nr),{tertiary:"",size:"small",type:"info",onClick:G=>x("modify",L)},{default:Qe(()=>[Zt(At(pe(ut)("common.edit")),1)]),_:2},1032,["onClick"]),Be(pe(nr),{tertiary:"",size:"small",type:"error",onClick:G=>R(L)},{default:Qe(()=>[Zt(At(pe(ut)("common.delete")),1)]),_:2},1032,["onClick"])])]),default:Qe(()=>[Be(pe(yH),{title:L.renderKey,description:L.renderValue},null,8,["title","description"])]),_:2},1024))),128))]),_:1})):To("",!0)]),_:1},8,["tab"]),Be(pe(Zg),{name:"download",tab:re.$t("store.online")},{default:Qe(()=>[Ae("p",QY,At(re.$t("store.onlineImportWarning")),1),Ae("div",eZ,[Be(pe(Go),{value:b.value,"onUpdate:value":ee[4]||(ee[4]=L=>b.value=L),placeholder:""},null,8,["value"]),Be(pe(nr),{strong:"",secondary:"",disabled:y.value,loading:l.value,onClick:ee[5]||(ee[5]=L=>P())},{default:Qe(()=>[Zt(At(re.$t("common.download")),1)]),_:1},8,["disabled","loading"])]),Be(pe(ZL)),Ae("div",tZ,[(ct(!0),Ot(rt,null,di(pe(f),L=>(ct(),Er(pe(xh),{key:L.key,title:L.key,bordered:!0,embedded:""},{footer:Qe(()=>[Ae("div",oZ,[Be(pe(nr),{text:""},{default:Qe(()=>[Ae("a",{href:L.url,target:"_blank"},[Be(pe(vm),{class:"text-xl",icon:"ri:link"})],8,nZ)]),_:2},1024),Be(pe(nr),{text:"",onClick:M=>E(L.downloadUrl)},{default:Qe(()=>[Be(pe(vm),{class:"text-xl",icon:"ri:add-fill"})]),_:2},1032,["onClick"])])]),default:Qe(()=>[Ae("p",{class:"overflow-hidden text-ellipsis whitespace-nowrap",title:L.desc},At(L.desc),9,rZ)]),_:2},1032,["title"]))),128))])]),_:1},8,["tab"])]),_:1})])]),_:1},8,["show"]),Be(pe(Yi),{show:a.value,"onUpdate:show":ee[12]||(ee[12]=L=>a.value=L),style:{width:"90%","max-width":"600px"},preset:"card"},{default:Qe(()=>[g.value==="add"||g.value==="modify"?(ct(),Er(pe(zf),{key:0,vertical:""},{default:Qe(()=>[Zt(At(pe(ut)("store.title"))+" ",1),Be(pe(Go),{value:h.value,"onUpdate:value":ee[7]||(ee[7]=L=>h.value=L)},null,8,["value"]),Zt(" "+At(pe(ut)("store.description"))+" ",1),Be(pe(Go),{value:v.value,"onUpdate:value":ee[8]||(ee[8]=L=>v.value=L),type:"textarea"},null,8,["value"]),Be(pe(nr),{block:"",type:"primary",disabled:C.value,onClick:ee[9]||(ee[9]=()=>{g.value==="add"?_():k()})},{default:Qe(()=>[Zt(At(pe(ut)("common.confirm")),1)]),_:1},8,["disabled"])]),_:1})):To("",!0),g.value==="local_import"?(ct(),Er(pe(zf),{key:1,vertical:""},{default:Qe(()=>[Be(pe(Go),{value:v.value,"onUpdate:value":ee[10]||(ee[10]=L=>v.value=L),placeholder:pe(ut)("store.importPlaceholder"),autosize:{minRows:3,maxRows:15},type:"textarea"},null,8,["value","placeholder"]),Be(pe(nr),{block:"",type:"primary",disabled:C.value,onClick:ee[11]||(ee[11]=()=>{B("local")})},{default:Qe(()=>[Zt(At(pe(ut)("common.import")),1)]),_:1},8,["disabled"])]),_:1})):To("",!0)]),_:1},8,["show"])],64))}});function aZ(){const e=Jc(),t=z3(),r=j(()=>e.theme==="auto"?t.value===void 0:e.theme===void 0),o=j(()=>(r.value,tl)),n=j(()=>r.value?{common:{popoverColor:"#1A1A1A",bodyColor:"#0A0A0A",primaryColor:"#00DEDE",borderColor:"#000"},Avatar:{border:"2px solid #19C675"},Input:{inputColor:"#000"}}:{Avatar:{border:"2px solid #B6F600"}}),i={common:{borderHover:"none",borderFocus:"none",border:"none",colorFocus:"transparent",boxShadowFocus:"#fff"}};return lt(()=>r.value,a=>{document.documentElement.classList.remove("dark")},{immediate:!0}),{theme:o,themeOverrides:n,inputOverrides:i}}function lZ(){const e=Jc();return{language:j(()=>{switch(ZV(e.language),e.language){case"en-US":return Of;case"es-ES":return eF;case"ko-KR":return JA;case"vi-VN":return rF;case"ru-RU":return YA;case"zh-CN":return UA;case"zh-TW":return qA;default:return Of}})}}const sZ=be({__name:"App",setup(e){const{theme:t,themeOverrides:r}=aZ(),{language:o}=lZ();return console.log("theme",t),(n,i)=>{const a=fl("RouterView");return ct(),Er(pe(S$),{class:"h-full",theme:pe(t),"theme-overrides":pe(r),locale:pe(o)},{default:Qe(()=>[Be(pe(PH),null,{default:Qe(()=>[Be(a)]),_:1})]),_:1},8,["theme","theme-overrides","locale"])}}});function cZ(){const e=document.createElement("meta");e.name="naive-ui-style",document.head.appendChild(e)}function dZ(){cZ()}const uZ=()=>{var r,o,n,i,a,l;const e=document.createElement("style"),t=`
+ ::-webkit-scrollbar {
+ background-color: transparent;
+ width: ${(r=tl.Scrollbar.common)==null?void 0:r.scrollbarWidth};
+ }
+ ::-webkit-scrollbar-thumb {
+ background-color: ${(o=tl.Scrollbar.common)==null?void 0:o.scrollbarColor};
+ border-radius: ${(n=tl.Scrollbar.common)==null?void 0:n.scrollbarBorderRadius};
+ }
+ html.dark ::-webkit-scrollbar {
+ background-color: transparent;
+ width: ${(i=su.Scrollbar.common)==null?void 0:i.scrollbarWidth};
+ }
+ html.dark ::-webkit-scrollbar-thumb {
+ background-color: ${(a=su.Scrollbar.common)==null?void 0:a.scrollbarColor};
+ border-radius: ${(l=su.Scrollbar.common)==null?void 0:l.scrollbarBorderRadius};
+ }
+ `;e.innerHTML=t,document.head.appendChild(e)},fZ=async()=>{const e=await Object.assign({"/src/assets/video/output_01.mp4":()=>Ve(()=>import("./output_01-95b77f02.js"),[],import.meta.url),"/src/assets/video/output_02.mp4":()=>Ve(()=>import("./output_02-0cffc8c4.js"),[],import.meta.url),"/src/assets/video/output_03.mp4":()=>Ve(()=>import("./output_03-d7f26077.js"),[],import.meta.url),"/src/assets/video/output_04.mp4":()=>Ve(()=>import("./output_04-c7ab55a6.js"),[],import.meta.url),"/src/assets/video/output_05.mp4":()=>Ve(()=>import("./output_05-ea9a76ee.js"),[],import.meta.url),"/src/assets/video/output_06.mp4":()=>Ve(()=>import("./output_06-613e3914.js"),[],import.meta.url),"/src/assets/video/output_07.mp4":()=>Ve(()=>import("./output_07-b1ec978f.js"),[],import.meta.url),"/src/assets/video/output_08.mp4":()=>Ve(()=>import("./output_08-1438f50d.js"),[],import.meta.url),"/src/assets/video/output_09.mp4":()=>Ve(()=>import("./output_09-668c7bfb.js"),[],import.meta.url),"/src/assets/video/output_10.mp4":()=>Ve(()=>import("./output_10-28b5677e.js"),[],import.meta.url),"/src/assets/video/output_11.mp4":()=>Ve(()=>import("./output_11-3a690964.js"),[],import.meta.url),"/src/assets/video/output_12.mp4":()=>Ve(()=>import("./output_12-f44016e9.js"),[],import.meta.url),"/src/assets/video/output_13.mp4":()=>Ve(()=>import("./output_13-4ba498e1.js"),[],import.meta.url),"/src/assets/video/output_13_01.mp4":()=>Ve(()=>import("./output_13_01-be5fa943.js"),[],import.meta.url),"/src/assets/video/output_13_02.mp4":()=>Ve(()=>import("./output_13_02-fe2cb2aa.js"),[],import.meta.url),"/src/assets/video/output_13_03.mp4":()=>Ve(()=>import("./output_13_03-bc055d69.js"),[],import.meta.url),"/src/assets/video/output_13_04.mp4":()=>Ve(()=>import("./output_13_04-2145a44b.js"),[],import.meta.url),"/src/assets/video/output_13_05.mp4":()=>Ve(()=>import("./output_13_05-5d745b20.js"),[],import.meta.url),"/src/assets/video/output_13_06.mp4":()=>Ve(()=>import("./output_13_06-12f3d912.js"),[],import.meta.url),"/src/assets/video/output_13_07.mp4":()=>Ve(()=>import("./output_13_07-34bb60a3.js"),[],import.meta.url),"/src/assets/video/output_13_08.mp4":()=>Ve(()=>import("./output_13_08-7cfd1a9f.js"),[],import.meta.url),"/src/assets/video/output_13_09.mp4":()=>Ve(()=>import("./output_13_09-f965dd55.js"),[],import.meta.url),"/src/assets/video/output_13_10.mp4":()=>Ve(()=>import("./output_13_10-8d4e211a.js"),[],import.meta.url),"/src/assets/video/output_13_11.mp4":()=>Ve(()=>import("./output_13_11-37182595.js"),[],import.meta.url),"/src/assets/video/output_13_12.mp4":()=>Ve(()=>import("./output_13_12-e1bce9ec.js"),[],import.meta.url),"/src/assets/video/output_13_13.mp4":()=>Ve(()=>import("./output_13_13-f32f3a2e.js"),[],import.meta.url),"/src/assets/video/output_13_14.mp4":()=>Ve(()=>import("./output_13_14-16e5c3c3.js"),[],import.meta.url),"/src/assets/video/output_13_15.mp4":()=>Ve(()=>import("./output_13_15-60f7de8e.js"),[],import.meta.url),"/src/assets/video/output_13_16.mp4":()=>Ve(()=>import("./output_13_16-c8083263.js"),[],import.meta.url),"/src/assets/video/output_13_17.mp4":()=>Ve(()=>import("./output_13_17-03e71e71.js"),[],import.meta.url),"/src/assets/video/output_13_18.mp4":()=>Ve(()=>import("./output_13_18-27c20f8b.js"),[],import.meta.url),"/src/assets/video/output_13_19.mp4":()=>Ve(()=>import("./output_13_19-5c1ff05e.js"),[],import.meta.url),"/src/assets/video/output_13_20.mp4":()=>Ve(()=>import("./output_13_20-255e899c.js"),[],import.meta.url),"/src/assets/video/output_13_21.mp4":()=>Ve(()=>import("./output_13_21-a47c4a8c.js"),[],import.meta.url),"/src/assets/video/output_13_22.mp4":()=>Ve(()=>import("./output_13_22-65f7453c.js"),[],import.meta.url),"/src/assets/video/output_13_23.mp4":()=>Ve(()=>import("./output_13_23-bcbdbe26.js"),[],import.meta.url),"/src/assets/video/output_13_24.mp4":()=>Ve(()=>import("./output_13_24-1d0287bd.js"),[],import.meta.url),"/src/assets/video/output_13_25.mp4":()=>Ve(()=>import("./output_13_25-7e9b3e1e.js"),[],import.meta.url),"/src/assets/video/output_13_26.mp4":()=>Ve(()=>import("./output_13_26-4f5b8348.js"),[],import.meta.url),"/src/assets/video/output_13_27.mp4":()=>Ve(()=>import("./output_13_27-c8ccd359.js"),[],import.meta.url),"/src/assets/video/output_13_28.mp4":()=>Ve(()=>import("./output_13_28-76607b06.js"),[],import.meta.url),"/src/assets/video/output_13_29.mp4":()=>Ve(()=>import("./output_13_29-3cdf4085.js"),[],import.meta.url),"/src/assets/video/output_13_30.mp4":()=>Ve(()=>import("./output_13_30-ca7632f6.js"),[],import.meta.url),"/src/assets/video/output_13_31.mp4":()=>Ve(()=>import("./output_13_31-4f180d67.js"),[],import.meta.url),"/src/assets/video/output_13_32.mp4":()=>Ve(()=>import("./output_13_32-1449e83e.js"),[],import.meta.url),"/src/assets/video/output_13_33.mp4":()=>Ve(()=>import("./output_13_33-99d8648d.js"),[],import.meta.url),"/src/assets/video/output_13_34.mp4":()=>Ve(()=>import("./output_13_34-f8d37aeb.js"),[],import.meta.url),"/src/assets/video/output_13_35.mp4":()=>Ve(()=>import("./output_13_35-3cd1ad7a.js"),[],import.meta.url),"/src/assets/video/output_13_36.mp4":()=>Ve(()=>import("./output_13_36-d2e7ad18.js"),[],import.meta.url),"/src/assets/video/output_13_37.mp4":()=>Ve(()=>import("./output_13_37-de95a257.js"),[],import.meta.url),"/src/assets/video/output_13_38.mp4":()=>Ve(()=>import("./output_13_38-84ffebed.js"),[],import.meta.url),"/src/assets/video/output_13_39.mp4":()=>Ve(()=>import("./output_13_39-f9431935.js"),[],import.meta.url),"/src/assets/video/output_13_40.mp4":()=>Ve(()=>import("./output_13_40-7fd811da.js"),[],import.meta.url)}),t=[],r=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push(new Promise(async n=>{const i=await e[o]();t.push(i.default||i),n()}));return await Promise.all(r),t};async function hZ(){const e=L5(sZ);dZ(),uZ(),WY(e),JV(e),await OY(e);const t=aa();await t.getChatList(),t.chatVideos=await fZ();let r=await Object.assign({"/src/assets/video/stay.mp4":()=>Ve(()=>import("./stay-4c5a2ffc.js"),[],import.meta.url)}),o=await Object.assign({"/src/assets/video/talk.mp4":()=>Ve(()=>import("./talk-6e1ec931.js"),[],import.meta.url)});const n=Object.keys(r)[0];r[n]().then(s=>{t.stayVideo=s.default||s,console.log("第一个视频资源路径:",t.stayVideo)}).catch(s=>{console.error("加载视频资源时发生错误:",s)});const a=Object.keys(o)[0];o[a]().then(s=>{t.talkVideo=s.default||s,console.log("第一个视频资源路径:",t.talkVideo)}).catch(s=>{console.error("加载视频资源时发生错误:",s)}),e.mount("#app")}hZ();export{K0 as $,gZ as A,En as B,IK as C,fl as D,Nc as E,Zo as F,yZ as G,EZ as H,SZ as I,wZ as J,w as K,aX as L,Z as M,au as N,z as O,ma as P,nt as Q,Si as R,Re as S,Cr as T,ze as U,j as V,zc as W,Ct as X,wi as Y,$o as Z,vm as _,Vn as a,q0 as a0,gf as a1,X0 as a2,lr as a3,Cl as a4,vC as a5,JB as a6,PC as a7,Ji as a8,Pe as a9,ot as aA,mZ as aB,Jt as aC,De as aD,yi as aE,vZ as aF,Er as aa,bx as ab,YG as ac,Ag as ad,zt as ae,l1 as af,zl as ag,ft as ah,wL as ai,dp as aj,AG as ak,rt as al,di as am,Bt as an,fd as ao,MY as ap,xZ as aq,CZ as ar,Yi as as,_Z as at,Q as au,Y5 as av,Y as aw,Pi as ax,dr as ay,Ft as az,Kl as b,Lo as c,be as d,Ot as e,Ae as f,At as g,pe as h,Be as i,Go as j,VD as k,Gt as l,nr as m,O7 as n,ct as o,$K as p,aa as q,U as r,aZ as s,ut as t,B_ as u,To as v,Qe as w,Zt as x,fo as y,$r as z};
diff --git a/digital_doctor/public/ai/assets/output_01-95b77f02.js b/digital_doctor/public/ai/assets/output_01-95b77f02.js
new file mode 100755
index 0000000..a1b2ff7
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_01-95b77f02.js
@@ -0,0 +1 @@
+const t=""+new URL("output_01-d6790369.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_01-d6790369.mp4 b/digital_doctor/public/ai/assets/output_01-d6790369.mp4
new file mode 100755
index 0000000..e22e34a
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_01-d6790369.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_02-0cffc8c4.js b/digital_doctor/public/ai/assets/output_02-0cffc8c4.js
new file mode 100755
index 0000000..b0016c8
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_02-0cffc8c4.js
@@ -0,0 +1 @@
+const t=""+new URL("output_02-dd0a80d3.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_02-dd0a80d3.mp4 b/digital_doctor/public/ai/assets/output_02-dd0a80d3.mp4
new file mode 100755
index 0000000..29ae5d0
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_02-dd0a80d3.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_03-792edbc0.mp4 b/digital_doctor/public/ai/assets/output_03-792edbc0.mp4
new file mode 100755
index 0000000..ba7987c
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_03-792edbc0.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_03-d7f26077.js b/digital_doctor/public/ai/assets/output_03-d7f26077.js
new file mode 100755
index 0000000..2ba0fe6
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_03-d7f26077.js
@@ -0,0 +1 @@
+const t=""+new URL("output_03-792edbc0.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_04-c7ab55a6.js b/digital_doctor/public/ai/assets/output_04-c7ab55a6.js
new file mode 100755
index 0000000..7d3d4e6
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_04-c7ab55a6.js
@@ -0,0 +1 @@
+const t=""+new URL("output_04-cfc1d3f1.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_04-cfc1d3f1.mp4 b/digital_doctor/public/ai/assets/output_04-cfc1d3f1.mp4
new file mode 100755
index 0000000..3d214e7
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_04-cfc1d3f1.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_05-36ba4e25.mp4 b/digital_doctor/public/ai/assets/output_05-36ba4e25.mp4
new file mode 100755
index 0000000..20e0ed7
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_05-36ba4e25.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_05-ea9a76ee.js b/digital_doctor/public/ai/assets/output_05-ea9a76ee.js
new file mode 100755
index 0000000..1fdc3f0
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_05-ea9a76ee.js
@@ -0,0 +1 @@
+const t=""+new URL("output_05-36ba4e25.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_06-613e3914.js b/digital_doctor/public/ai/assets/output_06-613e3914.js
new file mode 100755
index 0000000..200ef00
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_06-613e3914.js
@@ -0,0 +1 @@
+const t=""+new URL("output_06-a433c481.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_06-a433c481.mp4 b/digital_doctor/public/ai/assets/output_06-a433c481.mp4
new file mode 100755
index 0000000..a44105f
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_06-a433c481.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_07-b1ec978f.js b/digital_doctor/public/ai/assets/output_07-b1ec978f.js
new file mode 100755
index 0000000..d11fed3
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_07-b1ec978f.js
@@ -0,0 +1 @@
+const t=""+new URL("output_07-dffe09c8.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_07-dffe09c8.mp4 b/digital_doctor/public/ai/assets/output_07-dffe09c8.mp4
new file mode 100755
index 0000000..f6e0d11
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_07-dffe09c8.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_08-1438f50d.js b/digital_doctor/public/ai/assets/output_08-1438f50d.js
new file mode 100755
index 0000000..c0df133
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_08-1438f50d.js
@@ -0,0 +1 @@
+const t=""+new URL("output_08-64e1d031.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_08-64e1d031.mp4 b/digital_doctor/public/ai/assets/output_08-64e1d031.mp4
new file mode 100755
index 0000000..2e90092
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_08-64e1d031.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_09-149646f2.mp4 b/digital_doctor/public/ai/assets/output_09-149646f2.mp4
new file mode 100755
index 0000000..94857c8
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_09-149646f2.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_09-668c7bfb.js b/digital_doctor/public/ai/assets/output_09-668c7bfb.js
new file mode 100755
index 0000000..598b763
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_09-668c7bfb.js
@@ -0,0 +1 @@
+const t=""+new URL("output_09-149646f2.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_10-28b5677e.js b/digital_doctor/public/ai/assets/output_10-28b5677e.js
new file mode 100755
index 0000000..d1d8560
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_10-28b5677e.js
@@ -0,0 +1 @@
+const t=""+new URL("output_10-8c01162a.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_10-8c01162a.mp4 b/digital_doctor/public/ai/assets/output_10-8c01162a.mp4
new file mode 100755
index 0000000..d4b8013
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_10-8c01162a.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_11-3a690964.js b/digital_doctor/public/ai/assets/output_11-3a690964.js
new file mode 100755
index 0000000..dd50994
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_11-3a690964.js
@@ -0,0 +1 @@
+const t=""+new URL("output_11-62063697.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_11-62063697.mp4 b/digital_doctor/public/ai/assets/output_11-62063697.mp4
new file mode 100755
index 0000000..f6ff209
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_11-62063697.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_12-ed4f3794.mp4 b/digital_doctor/public/ai/assets/output_12-ed4f3794.mp4
new file mode 100755
index 0000000..f587358
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_12-ed4f3794.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_12-f44016e9.js b/digital_doctor/public/ai/assets/output_12-f44016e9.js
new file mode 100755
index 0000000..9e2e523
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_12-f44016e9.js
@@ -0,0 +1 @@
+const t=""+new URL("output_12-ed4f3794.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13-4ba498e1.js b/digital_doctor/public/ai/assets/output_13-4ba498e1.js
new file mode 100755
index 0000000..2ace42c
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13-4ba498e1.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13-9bb535d6.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13-9bb535d6.mp4 b/digital_doctor/public/ai/assets/output_13-9bb535d6.mp4
new file mode 100755
index 0000000..965b632
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13-9bb535d6.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_01-8dd9f441.mp4 b/digital_doctor/public/ai/assets/output_13_01-8dd9f441.mp4
new file mode 100755
index 0000000..6ac7b18
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_01-8dd9f441.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_01-be5fa943.js b/digital_doctor/public/ai/assets/output_13_01-be5fa943.js
new file mode 100755
index 0000000..58ddc2e
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_01-be5fa943.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_01-8dd9f441.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_02-1eb5040c.mp4 b/digital_doctor/public/ai/assets/output_13_02-1eb5040c.mp4
new file mode 100755
index 0000000..72c8eff
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_02-1eb5040c.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_02-fe2cb2aa.js b/digital_doctor/public/ai/assets/output_13_02-fe2cb2aa.js
new file mode 100755
index 0000000..b3019cc
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_02-fe2cb2aa.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_02-1eb5040c.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_03-1c36174d.mp4 b/digital_doctor/public/ai/assets/output_13_03-1c36174d.mp4
new file mode 100755
index 0000000..b7d8a20
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_03-1c36174d.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_03-bc055d69.js b/digital_doctor/public/ai/assets/output_13_03-bc055d69.js
new file mode 100755
index 0000000..f5539e9
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_03-bc055d69.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_03-1c36174d.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_04-2145a44b.js b/digital_doctor/public/ai/assets/output_13_04-2145a44b.js
new file mode 100755
index 0000000..e898dd6
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_04-2145a44b.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_04-b56e9a01.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_04-b56e9a01.mp4 b/digital_doctor/public/ai/assets/output_13_04-b56e9a01.mp4
new file mode 100755
index 0000000..937accd
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_04-b56e9a01.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_05-5d745b20.js b/digital_doctor/public/ai/assets/output_13_05-5d745b20.js
new file mode 100755
index 0000000..d95b25a
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_05-5d745b20.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_05-e4966ca2.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_05-e4966ca2.mp4 b/digital_doctor/public/ai/assets/output_13_05-e4966ca2.mp4
new file mode 100755
index 0000000..8859246
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_05-e4966ca2.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_06-12f3d912.js b/digital_doctor/public/ai/assets/output_13_06-12f3d912.js
new file mode 100755
index 0000000..0ecf4b0
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_06-12f3d912.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_06-76a081cd.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_06-76a081cd.mp4 b/digital_doctor/public/ai/assets/output_13_06-76a081cd.mp4
new file mode 100755
index 0000000..2ae27d7
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_06-76a081cd.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_07-34bb60a3.js b/digital_doctor/public/ai/assets/output_13_07-34bb60a3.js
new file mode 100755
index 0000000..f514874
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_07-34bb60a3.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_07-d4af83a6.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_07-d4af83a6.mp4 b/digital_doctor/public/ai/assets/output_13_07-d4af83a6.mp4
new file mode 100755
index 0000000..0f24baf
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_07-d4af83a6.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_08-75d2baea.mp4 b/digital_doctor/public/ai/assets/output_13_08-75d2baea.mp4
new file mode 100755
index 0000000..5464efa
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_08-75d2baea.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_08-7cfd1a9f.js b/digital_doctor/public/ai/assets/output_13_08-7cfd1a9f.js
new file mode 100755
index 0000000..3992230
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_08-7cfd1a9f.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_08-75d2baea.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_09-d67e5e8b.mp4 b/digital_doctor/public/ai/assets/output_13_09-d67e5e8b.mp4
new file mode 100755
index 0000000..6cf6d66
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_09-d67e5e8b.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_09-f965dd55.js b/digital_doctor/public/ai/assets/output_13_09-f965dd55.js
new file mode 100755
index 0000000..0e07e50
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_09-f965dd55.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_09-d67e5e8b.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_10-8d4e211a.js b/digital_doctor/public/ai/assets/output_13_10-8d4e211a.js
new file mode 100755
index 0000000..0146e7d
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_10-8d4e211a.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_10-f7d22272.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_10-f7d22272.mp4 b/digital_doctor/public/ai/assets/output_13_10-f7d22272.mp4
new file mode 100755
index 0000000..6216aff
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_10-f7d22272.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_11-37182595.js b/digital_doctor/public/ai/assets/output_13_11-37182595.js
new file mode 100755
index 0000000..af690a0
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_11-37182595.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_11-84f717d8.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_11-84f717d8.mp4 b/digital_doctor/public/ai/assets/output_13_11-84f717d8.mp4
new file mode 100755
index 0000000..84cef99
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_11-84f717d8.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_12-cd57160a.mp4 b/digital_doctor/public/ai/assets/output_13_12-cd57160a.mp4
new file mode 100755
index 0000000..6128f39
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_12-cd57160a.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_12-e1bce9ec.js b/digital_doctor/public/ai/assets/output_13_12-e1bce9ec.js
new file mode 100755
index 0000000..cd7a7fa
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_12-e1bce9ec.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_12-cd57160a.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_13-503167da.mp4 b/digital_doctor/public/ai/assets/output_13_13-503167da.mp4
new file mode 100755
index 0000000..9eb56ed
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_13-503167da.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_13-f32f3a2e.js b/digital_doctor/public/ai/assets/output_13_13-f32f3a2e.js
new file mode 100755
index 0000000..9d003ed
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_13-f32f3a2e.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_13-503167da.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_14-16e5c3c3.js b/digital_doctor/public/ai/assets/output_13_14-16e5c3c3.js
new file mode 100755
index 0000000..e0128f7
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_14-16e5c3c3.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_14-5a0cadde.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_14-5a0cadde.mp4 b/digital_doctor/public/ai/assets/output_13_14-5a0cadde.mp4
new file mode 100755
index 0000000..0060e6b
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_14-5a0cadde.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_15-40320042.mp4 b/digital_doctor/public/ai/assets/output_13_15-40320042.mp4
new file mode 100755
index 0000000..63f89c3
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_15-40320042.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_15-60f7de8e.js b/digital_doctor/public/ai/assets/output_13_15-60f7de8e.js
new file mode 100755
index 0000000..21fc127
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_15-60f7de8e.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_15-40320042.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_16-c8083263.js b/digital_doctor/public/ai/assets/output_13_16-c8083263.js
new file mode 100755
index 0000000..b3ace27
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_16-c8083263.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_16-ed3160dd.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_16-ed3160dd.mp4 b/digital_doctor/public/ai/assets/output_13_16-ed3160dd.mp4
new file mode 100755
index 0000000..72545c5
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_16-ed3160dd.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_17-03e71e71.js b/digital_doctor/public/ai/assets/output_13_17-03e71e71.js
new file mode 100755
index 0000000..fda5e79
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_17-03e71e71.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_17-8a6313ba.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_17-8a6313ba.mp4 b/digital_doctor/public/ai/assets/output_13_17-8a6313ba.mp4
new file mode 100755
index 0000000..ccbd963
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_17-8a6313ba.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_18-27c20f8b.js b/digital_doctor/public/ai/assets/output_13_18-27c20f8b.js
new file mode 100755
index 0000000..55e1b0a
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_18-27c20f8b.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_18-fbf434f8.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_18-fbf434f8.mp4 b/digital_doctor/public/ai/assets/output_13_18-fbf434f8.mp4
new file mode 100755
index 0000000..93ba41e
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_18-fbf434f8.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_19-051edec8.mp4 b/digital_doctor/public/ai/assets/output_13_19-051edec8.mp4
new file mode 100755
index 0000000..da5da8d
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_19-051edec8.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_19-5c1ff05e.js b/digital_doctor/public/ai/assets/output_13_19-5c1ff05e.js
new file mode 100755
index 0000000..5b58ba9
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_19-5c1ff05e.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_19-051edec8.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_20-255e899c.js b/digital_doctor/public/ai/assets/output_13_20-255e899c.js
new file mode 100755
index 0000000..2069b2c
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_20-255e899c.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_20-f5f4822a.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_20-f5f4822a.mp4 b/digital_doctor/public/ai/assets/output_13_20-f5f4822a.mp4
new file mode 100755
index 0000000..1dfeb2e
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_20-f5f4822a.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_21-8b180a32.mp4 b/digital_doctor/public/ai/assets/output_13_21-8b180a32.mp4
new file mode 100755
index 0000000..47969d7
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_21-8b180a32.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_21-a47c4a8c.js b/digital_doctor/public/ai/assets/output_13_21-a47c4a8c.js
new file mode 100755
index 0000000..58a5a4a
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_21-a47c4a8c.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_21-8b180a32.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_22-2ca4e9ea.mp4 b/digital_doctor/public/ai/assets/output_13_22-2ca4e9ea.mp4
new file mode 100755
index 0000000..789cad4
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_22-2ca4e9ea.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_22-65f7453c.js b/digital_doctor/public/ai/assets/output_13_22-65f7453c.js
new file mode 100755
index 0000000..93c71a3
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_22-65f7453c.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_22-2ca4e9ea.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_23-52e927e6.mp4 b/digital_doctor/public/ai/assets/output_13_23-52e927e6.mp4
new file mode 100755
index 0000000..b452334
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_23-52e927e6.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_23-bcbdbe26.js b/digital_doctor/public/ai/assets/output_13_23-bcbdbe26.js
new file mode 100755
index 0000000..22ca471
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_23-bcbdbe26.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_23-52e927e6.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_24-1d0287bd.js b/digital_doctor/public/ai/assets/output_13_24-1d0287bd.js
new file mode 100755
index 0000000..c77ae5c
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_24-1d0287bd.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_24-2faad2f2.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_24-2faad2f2.mp4 b/digital_doctor/public/ai/assets/output_13_24-2faad2f2.mp4
new file mode 100755
index 0000000..abc500b
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_24-2faad2f2.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_25-6d607649.mp4 b/digital_doctor/public/ai/assets/output_13_25-6d607649.mp4
new file mode 100755
index 0000000..37272e1
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_25-6d607649.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_25-7e9b3e1e.js b/digital_doctor/public/ai/assets/output_13_25-7e9b3e1e.js
new file mode 100755
index 0000000..29c88fb
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_25-7e9b3e1e.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_25-6d607649.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_26-4f5b8348.js b/digital_doctor/public/ai/assets/output_13_26-4f5b8348.js
new file mode 100755
index 0000000..4fa1fa6
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_26-4f5b8348.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_26-f6c55454.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_26-f6c55454.mp4 b/digital_doctor/public/ai/assets/output_13_26-f6c55454.mp4
new file mode 100755
index 0000000..56c9ea6
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_26-f6c55454.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_27-4e5bf454.mp4 b/digital_doctor/public/ai/assets/output_13_27-4e5bf454.mp4
new file mode 100755
index 0000000..2f88804
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_27-4e5bf454.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_27-c8ccd359.js b/digital_doctor/public/ai/assets/output_13_27-c8ccd359.js
new file mode 100755
index 0000000..44df37b
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_27-c8ccd359.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_27-4e5bf454.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_28-76607b06.js b/digital_doctor/public/ai/assets/output_13_28-76607b06.js
new file mode 100755
index 0000000..ffad6e4
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_28-76607b06.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_28-77c786b3.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_28-77c786b3.mp4 b/digital_doctor/public/ai/assets/output_13_28-77c786b3.mp4
new file mode 100755
index 0000000..4bdc38c
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_28-77c786b3.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_29-3cdf4085.js b/digital_doctor/public/ai/assets/output_13_29-3cdf4085.js
new file mode 100755
index 0000000..1b6e8a8
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_29-3cdf4085.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_29-aa0a083d.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_29-aa0a083d.mp4 b/digital_doctor/public/ai/assets/output_13_29-aa0a083d.mp4
new file mode 100755
index 0000000..8e2d935
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_29-aa0a083d.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_30-56438243.mp4 b/digital_doctor/public/ai/assets/output_13_30-56438243.mp4
new file mode 100755
index 0000000..e5f82b0
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_30-56438243.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_30-ca7632f6.js b/digital_doctor/public/ai/assets/output_13_30-ca7632f6.js
new file mode 100755
index 0000000..1ae22c9
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_30-ca7632f6.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_30-56438243.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_31-1b157b41.mp4 b/digital_doctor/public/ai/assets/output_13_31-1b157b41.mp4
new file mode 100755
index 0000000..ce405d1
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_31-1b157b41.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_31-4f180d67.js b/digital_doctor/public/ai/assets/output_13_31-4f180d67.js
new file mode 100755
index 0000000..d5d92fb
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_31-4f180d67.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_31-1b157b41.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_32-1449e83e.js b/digital_doctor/public/ai/assets/output_13_32-1449e83e.js
new file mode 100755
index 0000000..fb7ca05
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_32-1449e83e.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_32-d15287fc.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_32-d15287fc.mp4 b/digital_doctor/public/ai/assets/output_13_32-d15287fc.mp4
new file mode 100755
index 0000000..e7590c2
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_32-d15287fc.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_33-2c9155f0.mp4 b/digital_doctor/public/ai/assets/output_13_33-2c9155f0.mp4
new file mode 100755
index 0000000..ceeec2c
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_33-2c9155f0.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_33-99d8648d.js b/digital_doctor/public/ai/assets/output_13_33-99d8648d.js
new file mode 100755
index 0000000..153f293
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_33-99d8648d.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_33-2c9155f0.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_34-12a63606.mp4 b/digital_doctor/public/ai/assets/output_13_34-12a63606.mp4
new file mode 100755
index 0000000..8b36511
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_34-12a63606.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_34-f8d37aeb.js b/digital_doctor/public/ai/assets/output_13_34-f8d37aeb.js
new file mode 100755
index 0000000..9a0918c
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_34-f8d37aeb.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_34-12a63606.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_35-09e21367.mp4 b/digital_doctor/public/ai/assets/output_13_35-09e21367.mp4
new file mode 100755
index 0000000..bbbf3bf
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_35-09e21367.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_35-3cd1ad7a.js b/digital_doctor/public/ai/assets/output_13_35-3cd1ad7a.js
new file mode 100755
index 0000000..db838b5
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_35-3cd1ad7a.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_35-09e21367.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_36-9a881190.mp4 b/digital_doctor/public/ai/assets/output_13_36-9a881190.mp4
new file mode 100755
index 0000000..fab1318
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_36-9a881190.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_36-d2e7ad18.js b/digital_doctor/public/ai/assets/output_13_36-d2e7ad18.js
new file mode 100755
index 0000000..7a09aa0
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_36-d2e7ad18.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_36-9a881190.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_37-156d44e6.mp4 b/digital_doctor/public/ai/assets/output_13_37-156d44e6.mp4
new file mode 100755
index 0000000..7a89a0a
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_37-156d44e6.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_37-de95a257.js b/digital_doctor/public/ai/assets/output_13_37-de95a257.js
new file mode 100755
index 0000000..374a604
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_37-de95a257.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_37-156d44e6.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_38-3042aef1.mp4 b/digital_doctor/public/ai/assets/output_13_38-3042aef1.mp4
new file mode 100755
index 0000000..4cc871e
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_38-3042aef1.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_38-84ffebed.js b/digital_doctor/public/ai/assets/output_13_38-84ffebed.js
new file mode 100755
index 0000000..418c899
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_38-84ffebed.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_38-3042aef1.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_39-f2e4873f.mp4 b/digital_doctor/public/ai/assets/output_13_39-f2e4873f.mp4
new file mode 100755
index 0000000..8c336ea
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_39-f2e4873f.mp4 differ
diff --git a/digital_doctor/public/ai/assets/output_13_39-f9431935.js b/digital_doctor/public/ai/assets/output_13_39-f9431935.js
new file mode 100755
index 0000000..ef14884
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_39-f9431935.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_39-f2e4873f.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_40-7fd811da.js b/digital_doctor/public/ai/assets/output_13_40-7fd811da.js
new file mode 100755
index 0000000..2b5ff9a
--- /dev/null
+++ b/digital_doctor/public/ai/assets/output_13_40-7fd811da.js
@@ -0,0 +1 @@
+const t=""+new URL("output_13_40-bf35ce08.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/output_13_40-bf35ce08.mp4 b/digital_doctor/public/ai/assets/output_13_40-bf35ce08.mp4
new file mode 100755
index 0000000..5bf0f8d
Binary files /dev/null and b/digital_doctor/public/ai/assets/output_13_40-bf35ce08.mp4 differ
diff --git a/digital_doctor/public/ai/assets/pt-77ca63a5.png b/digital_doctor/public/ai/assets/pt-77ca63a5.png
new file mode 100755
index 0000000..b42af23
Binary files /dev/null and b/digital_doctor/public/ai/assets/pt-77ca63a5.png differ
diff --git a/digital_doctor/public/ai/assets/stay-4c5a2ffc.js b/digital_doctor/public/ai/assets/stay-4c5a2ffc.js
new file mode 100755
index 0000000..58efa1f
--- /dev/null
+++ b/digital_doctor/public/ai/assets/stay-4c5a2ffc.js
@@ -0,0 +1 @@
+const t=""+new URL("stay-964671fa.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/stay-964671fa.mp4 b/digital_doctor/public/ai/assets/stay-964671fa.mp4
new file mode 100755
index 0000000..4c2d51c
Binary files /dev/null and b/digital_doctor/public/ai/assets/stay-964671fa.mp4 differ
diff --git a/digital_doctor/public/ai/assets/stepFirst-3a1168aa.css b/digital_doctor/public/ai/assets/stepFirst-3a1168aa.css
new file mode 100755
index 0000000..cd31da2
--- /dev/null
+++ b/digital_doctor/public/ai/assets/stepFirst-3a1168aa.css
@@ -0,0 +1 @@
+.card-style{flex-basis:30rem;padding:5rem 3.5rem;background-color:#121212;border:1px solid rgba(255,255,255,.1);border-radius:10px;height:580px;width:560px}.card-style2{flex-basis:30rem;padding:5rem 3.5rem;color:#fff;border-radius:10px;min-height:75%}.input-style{height:44px;line-height:44px!important}.button-style{height:52px;line-height:52px!important;font-size:14px;font-weight:700;border-radius:5px}.button-style2{width:394px!important;height:40px;line-height:40px;font-size:14px;font-weight:700;margin-top:20px}.text32{font-size:32px}.text16{font-size:16px;color:#ffffff80}.text-40{font-size:40px}.dropdown{width:23rem;top:-25px}.color-fff{color:#ffffff80}.register-info{max-width:75%;border-radius:5px;padding:10px;background-color:#0a0a0a;border:solid 1px rgba(255,255,255,.1);color:#ffffff80}.register-info .btn-copy{color:var(--color-primary)}.register-info .rela-info{position:relative;top:-5px}.n-input{background-color:#f0f0f0;border-radius:10px}.n-input .n-input__input-el{color:#999}
diff --git a/digital_doctor/public/ai/assets/stepFirst-5c45f90c.js b/digital_doctor/public/ai/assets/stepFirst-5c45f90c.js
new file mode 100755
index 0000000..d1300d9
--- /dev/null
+++ b/digital_doctor/public/ai/assets/stepFirst-5c45f90c.js
@@ -0,0 +1 @@
+import{b as V,u as D}from"./validator-3b4c866c.js";import{d as F,u as O,r as n,b as I,c as j,t as r,e as z,f as u,i as o,h as l,x as R,g as x,w as d,o as E,_ as $,N as g,j as q,k as T,l as M,m as U,n as W,C as A}from"./index-fd641271.js";const G={class:"flex w-full h-full justify-center items-center relative"},H={class:"flex justify-center items-center card-style2"},J={style:{"flex-basis":"29.25rem"}},K={class:"text-40 mb-6 font-mono"},L=u("div",null,null,-1),P={class:"font-mono font-bold"},Z=F({__name:"stepFirst",setup(Q){const b=O(),p=n(null),f=I(),h=n("medium"),k=j({fontSize:"14px",fontWeight:500});let s=n({email:""}),w={email:{required:!0,message:r("user.text19"),trigger:["input","blur"],validator:(t,e)=>V(e)}};const c=D.emailTipsOptions;let _=n([{label:"",key:""},{label:"",key:""},{label:"",key:""},{label:"",key:""},{label:"",key:""}]),i=n(!1),v=n(!0);function C(){let t=s.value.email;for(let e=0;e{if(a)console.log(a),f.error("Invalid");else{let m=f.loading("loading",{duration:0}),y=await A(s.value.email);if(m.destroy(),y.code!=200){f.error(y.msg);return}f.success("Success"),b.push({name:"VerifyCode",params:{email:s.value.email}})}})}function B(){s.value.email?v.value=!1:v.value=!0}function S(t){var e;i.value=!1,s.value.email=t,(e=p.value)==null||e.validate(a=>{a&&console.log(a)})}return(t,e)=>(E(),z("div",G,[u("button",{onClick:e[0]||(e[0]=a=>l(b).back()),class:"flex text-base items-center mb-6 absolute",style:{color:"rgba(255, 255, 255, 50%)",top:"104px",left:"72px"},quaternary:""},[o(l($),{class:"text-3xl",icon:"bxs:chevron-left"}),R(" Back ")]),u("div",H,[u("div",J,[u("div",K,x(l(r)("user.text31")),1),o(l(W),{ref_key:"formRef",ref:p,"label-width":80,model:l(s),rules:l(w),size:h.value},{default:d(()=>[o(l(g),{label:l(r)("user.text3"),path:"email","label-style":k},{default:d(()=>[o(l(q),{value:l(s).email,"onUpdate:value":e[1]||(e[1]=a=>l(s).email=a),placeholder:l(r)("user.text19"),class:"input-style",onInput:C},null,8,["value","placeholder"])]),_:1},8,["label","label-style"]),o(l(T),{class:"dropdown",show:l(i),options:l(_),onSelect:S,onClickoutside:e[2]||(e[2]=a=>{M(i)?i.value=!1:i=!1})},{default:d(()=>[L]),_:1},8,["show","options"]),o(l(g),null,{default:d(()=>[o(l(U),{disabled:l(v),class:"button-style",block:!0,"attr-type":"button",onClick:N,type:"primary"},{default:d(()=>[u("text",P,x(l(r)("user.text16")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["model","rules","size"])])])]))}});export{Z as default};
diff --git a/digital_doctor/public/ai/assets/stepSecond-83f88fb3.js b/digital_doctor/public/ai/assets/stepSecond-83f88fb3.js
new file mode 100755
index 0000000..8817c57
--- /dev/null
+++ b/digital_doctor/public/ai/assets/stepSecond-83f88fb3.js
@@ -0,0 +1 @@
+import{d as w,u as B,b as N,r as v,e as x,f as s,i as p,h as e,x as S,g as a,y as u,z as E,A as D,l as F,v as R,w as g,C as j,o as y,_ as z,t as d,m as M,N as T,I as q}from"./index-fd641271.js";const A={class:"flex w-full h-full justify-center items-center relative"},P={class:"flex justify-center items-center card-style2"},U={style:{"flex-basis":"29.25rem"}},$={class:"text-40 mb-6 font-mono"},G={class:"text-base mb-6",style:{color:"rgba(255, 255, 255, 50%)"}},H={class:"input-box"},J={class:"tracking-widest text-sm mt-8"},K={key:0},L={class:"font-mono font-bold"},W=w({__name:"stepSecond",setup(O){const f=B(),c=N();let l=v(0),t=v(""),n=v(!1),_=v(!0),m=f.currentRoute.value.params.email;async function h(){if(t.value.length<6){c.error("VerifyCode Error");return}let r={code:t.value,username:m},o=c.loading("loading",{duration:0}),i=await q(r);if(o.destroy(),i.code!=200){c.error(i.msg);return}c.success("Check Success"),f.replace({name:"SetupPassword",params:{email:m,code:t.value}})}async function b(){if(l.value>0)return;let r=c.loading("loading",{duration:0}),o=await j(m);if(r.destroy(),o.code!=200){c.error(o.msg);return}c.success("Success"),l.value=60;const i=setInterval(()=>{l.value--,l.value<=0&&(l.value=0,clearInterval(i))},1e3)}function C(){if(l.value>0)return;l.value=60;const r=setInterval(()=>{l.value--,l.value<=0&&(l.value=0,clearInterval(r))},1e3)}C();function k(){t.value&&t.value.length>=6?_.value=!1:_.value=!0}function I(){n.value=!1}function V(){n.value=!0}return(r,o)=>(y(),x("div",A,[s("button",{onClick:o[0]||(o[0]=i=>e(f).replace({name:"VerifyEmail"})),class:"flex text-base items-center mb-6 absolute",style:{color:"rgba(255, 255, 255, 50%)",top:"104px",left:"72px"},quaternary:""},[p(e(z),{class:"text-3xl",icon:"bxs:chevron-left"}),S(" Back ")]),s("div",P,[s("div",U,[s("div",$,a(e(d)("user.text32")),1),s("div",G,a(e(d)("user.text13"))+a(e(m)),1),s("div",H,[s("div",{class:u(["code-item",e(t).length==0&&e(n)?"code-item-active":""])},a(e(t)[0]),3),s("div",{class:u(["code-item",e(t).length==1&&e(n)?"code-item-active":""])},a(e(t)[1]),3),s("div",{class:u(["code-item",e(t).length==2&&e(n)?"code-item-active":""])},a(e(t)[2]),3),s("div",{class:u(["code-item",e(t).length==3&&e(n)?"code-item-active":""])},a(e(t)[3]),3),s("div",{class:u(["code-item",e(t).length==4&&e(n)?"code-item-active":""])},a(e(t)[4]),3),s("div",{class:u(["code-item",e(t).length>=5&&e(n)?"code-item-active":""])},a(e(t)[5]),3),E(s("input",{class:"input-code","onUpdate:modelValue":o[1]||(o[1]=i=>F(t)?t.value=i:t=i),maxlength:6,type:"tel",onBlur:I,onFocus:V,onInput:k},null,544),[[D,e(t)]])]),s("div",null,[s("div",J,[s("text",{onClick:b},a(e(d)("user.text14")),1),e(l)>0?(y(),x("text",K,a(e(d)("user.text15"))+" "+a(e(l))+"s",1)):R("",!0)]),p(e(T),null,{default:g(()=>[p(e(M),{disabled:e(_),class:"button-style",block:!0,"attr-type":"button",onClick:h,type:"primary"},{default:g(()=>[s("text",L,a(e(d)("user.text16")),1)]),_:1},8,["disabled"])]),_:1})])])])]))}});export{W as default};
diff --git a/digital_doctor/public/ai/assets/stepSuccess-02b9f49f.js b/digital_doctor/public/ai/assets/stepSuccess-02b9f49f.js
new file mode 100755
index 0000000..9f1a505
--- /dev/null
+++ b/digital_doctor/public/ai/assets/stepSuccess-02b9f49f.js
@@ -0,0 +1 @@
+import{d as c,u as l,e as u,i as a,h as t,f as n,g as e,w as i,o as _,L as d,F as m,t as s,x as p,m as f}from"./index-fd641271.js";const x={class:"flex flex-col w-full h-full justify-center items-center relative text-white"},h={class:"mt-4 text32"},y={class:"mt-4 text16"},b=c({__name:"stepSuccess",setup(v){const r=l();return(g,o)=>(_(),u("div",x,[a(t(m),{width:"214",height:"214",src:t(d)},null,8,["src"]),n("div",h,e(t(s)("user.text33")),1),n("div",y,e(t(s)("user.text34")),1),a(t(f),{class:"button-style2 mt-8 font-mono font-bold",block:!0,"attr-type":"button",onClick:o[0]||(o[0]=w=>t(r).replace({name:"login"})),type:"primary"},{default:i(()=>[p(e(t(s)("user.text2")),1)]),_:1})]))}});export{b as default};
diff --git a/digital_doctor/public/ai/assets/stepThird-bc2c7d06.js b/digital_doctor/public/ai/assets/stepThird-bc2c7d06.js
new file mode 100755
index 0000000..cdaca88
--- /dev/null
+++ b/digital_doctor/public/ai/assets/stepThird-bc2c7d06.js
@@ -0,0 +1 @@
+import{d as E,u as F,s as $,r as d,b as j,c as q,t as l,e as U,f as u,i as o,h as e,x as H,g as x,w as c,o as J,_ as M,N as g,j as P,l as k,k as W,m as G,n as K,J as O}from"./index-fd641271.js";import{a as C,c as N,d as B,u as Q,e as X}from"./validator-3b4c866c.js";const Y={class:"flex w-full h-full justify-center items-center relative"},Z={class:"flex justify-center items-center card-style2"},ee={style:{"flex-basis":"29.25rem"}},se={class:"text-40 mb-4 font-mono"},te={class:"text-base mb-4",style:{color:"rgba(255, 255, 255, 50%)"}},ae=u("div",null,null,-1),re={class:"font-mono font-bold"},ue=E({__name:"stepThird",setup(le){const f=F(),{renderCustomHeader:w}=X(),{theme:b}=$(),y=d(null),p=j(),I=d("medium"),h=q({fontSize:"14px",fontWeight:500});let t=d({password:"",confirmPassword:""}),R={password:{required:!0,trigger:["input","blur"],validator:(r,s)=>C(s,6)?N(s)?B(s)?!0:new Error("At least 1 capital letter"):new Error("At least 1 number"):new Error("The value contains as least 6 characters")},confirmPassword:[{required:!0,message:l("user.text21"),trigger:["input","blur"]},{validator:A,message:l("user.text27"),trigger:""}]},m=Q.optionsDefaultPassword,n=d(!1),i=d(!0),S=f.currentRoute.value.params.email,T=f.currentRoute.value.params.code;function A(r,s){return s===t.value.password}function D(r){var s;r.preventDefault(),(s=y.value)==null||s.validate(async a=>{if(a)console.log(a),p.error("Invalid");else{let v={code:T,password:t.value.password,username:S},_=await O(v);if(_.code!=200){p.error(_.data.msg);return}p.success("Reset Success"),f.replace({name:"StepSuccess"})}})}function V(){var s,a,v;let r=t.value.password;C(r,6)&&(m.value[0].render=w({icon:"gravity-ui:circle-check-fill",color:(s=b.value)==null?void 0:s.common.primaryColor,textColor:"#fff",value:"The value contains as least 6 characters"})),N(r)&&(m.value[1].render=w({icon:"gravity-ui:circle-check-fill",color:(a=b.value)==null?void 0:a.common.primaryColor,textColor:"#fff",value:"At least 1 number"})),B(r)&&(m.value[2].render=w({icon:"gravity-ui:circle-check-fill",color:(v=b.value)==null?void 0:v.common.primaryColor,textColor:"#fff",value:"At least 1 capital letter"})),r&&t.value.confirmPassword?i.value=!1:i.value=!0}function L(){t.value.password&&t.value.confirmPassword?i.value=!1:i.value=!0}function z(){t.value.password!=t.value.confirmPassword&&p.error("Two passwords do not match")}return(r,s)=>(J(),U("div",Y,[u("button",{onClick:s[0]||(s[0]=a=>e(f).replace({name:"VerifyCode"})),class:"flex text-base items-center mb-6 absolute",style:{color:"rgba(255, 255, 255, 50%)",top:"104px",left:"72px"},quaternary:""},[o(e(M),{class:"text-3xl",icon:"bxs:chevron-left"}),H(" Back ")]),u("div",Z,[u("div",ee,[u("div",se,x(e(l)("user.text17")),1),u("div",te,x(e(l)("user.text18")),1),o(e(K),{ref_key:"formRefPassword",ref:y,"label-width":80,model:e(t),rules:e(R),size:I.value},{default:c(()=>[o(e(g),{label:e(l)("user.text4"),path:"password","label-style":h},{default:c(()=>[o(e(P),{type:"password",value:e(t).password,"onUpdate:value":s[1]||(s[1]=a=>e(t).password=a),placeholder:e(l)("user.text20"),class:"input-style",onInput:V,onFocus:s[2]||(s[2]=a=>{k(n)?n.value=!0:n=!0}),onBlur:s[3]||(s[3]=a=>{k(n)?n.value=!1:n=!1})},null,8,["value","placeholder"])]),_:1},8,["label","label-style"]),o(e(W),{class:"dropdown",show:e(n),options:e(m)},{default:c(()=>[ae]),_:1},8,["show","options"]),o(e(g),{label:e(l)("user.text29"),path:"confirmPassword","label-style":h},{default:c(()=>[o(e(P),{type:"password",disabled:!e(t).password,value:e(t).confirmPassword,"onUpdate:value":s[4]||(s[4]=a=>e(t).confirmPassword=a),placeholder:e(l)("user.text21"),class:"input-style",onInput:L,onBlur:z},null,8,["disabled","value","placeholder"])]),_:1},8,["label","label-style"]),o(e(G),{disabled:e(i),class:"button-style",block:!0,"attr-type":"button",onClick:D,type:"primary"},{default:c(()=>[u("text",re,x(e(l)("user.text16")),1)]),_:1},8,["disabled"])]),_:1},8,["model","rules","size"])])])]))}});export{ue as default};
diff --git a/digital_doctor/public/ai/assets/talk-645d6404.mp4 b/digital_doctor/public/ai/assets/talk-645d6404.mp4
new file mode 100755
index 0000000..05a5c4d
Binary files /dev/null and b/digital_doctor/public/ai/assets/talk-645d6404.mp4 differ
diff --git a/digital_doctor/public/ai/assets/talk-6e1ec931.js b/digital_doctor/public/ai/assets/talk-6e1ec931.js
new file mode 100755
index 0000000..fe1c976
--- /dev/null
+++ b/digital_doctor/public/ai/assets/talk-6e1ec931.js
@@ -0,0 +1 @@
+const t=""+new URL("talk-645d6404.mp4",import.meta.url).href;export{t as default};
diff --git a/digital_doctor/public/ai/assets/validator-3b4c866c.js b/digital_doctor/public/ai/assets/validator-3b4c866c.js
new file mode 100755
index 0000000..fa028ca
--- /dev/null
+++ b/digital_doctor/public/ai/assets/validator-3b4c866c.js
@@ -0,0 +1 @@
+import{K as a,_ as d,r as m}from"./index-fd641271.js";const f=()=>({iconRender:c=>{const{color:o,fontSize:t,icon:n}=c,r={};return o&&(r.color=o),t&&(r.fontSize=`${t}px`),n||window.console.warn("iconRender: icon is required"),()=>a(d,{icon:n,style:r})},renderCustomHeader:c=>{const{color:o,textColor:t,value:n,icon:r}=c,u={},i={};return o&&(u.color=o),t&&(i.color=t),i.marginLeft="6px",r||window.console.warn("iconRender: icon is required"),()=>a("div",{style:"display:flex;padding:8px 16px;align-items: center"},[a(d,{icon:r,style:u},""),a("div",{style:i},n)])}}),{renderCustomHeader:l}=f();var y;(e=>{e.emailTipsOptions=m([{label:"@gmail.com",key:"@gmail.com"},{label:"@hotmail.com",key:"@hotmail.com"},{label:"@outlook.com",key:"@outlook.com"},{label:"@naver.com",key:"@naver.com"},{label:"@mail.ru",key:"@mail.ru"}]),e.optionsDefaultPassword=m([{key:"1",type:"render",render:l({icon:"gravity-ui:circle-check",color:"rgba(255, 255, 255, 50%)",textColor:"rgba(255, 255, 255, 50%)",value:"The value contains as least 6 characters"})},{key:"2",type:"render",render:l({icon:"gravity-ui:circle-check",color:"rgba(255, 255, 255, 50%)",textColor:"rgba(255, 255, 255, 50%)",value:"At least 1 number"})},{key:"3",type:"render",render:l({icon:"gravity-ui:circle-check",color:"rgba(255, 255, 255, 50%)",textColor:"rgba(255, 255, 255, 50%)",value:"At least 1 capital letter"})}])})(y||(y={}));function k(e){return/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e)}function p(e){return/[0-9]/.test(e)}function b(e){return/[A-Z]/.test(e)}function h(e,s){return e.length>=s}export{h as a,k as b,p as c,b as d,f as e,y as u};
diff --git a/digital_doctor/public/ai/assets/wc-7984fe3d.png b/digital_doctor/public/ai/assets/wc-7984fe3d.png
new file mode 100755
index 0000000..47a7d97
Binary files /dev/null and b/digital_doctor/public/ai/assets/wc-7984fe3d.png differ
diff --git a/digital_doctor/public/ai/favicon.svg b/digital_doctor/public/ai/favicon.svg
new file mode 100755
index 0000000..ab38bce
--- /dev/null
+++ b/digital_doctor/public/ai/favicon.svg
@@ -0,0 +1 @@
+