ezllm 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ellm-proxy.js +1 -1
- package/dist/cli.js +86 -27664
- package/dist/server.js +244 -42293
- package/dist/web-ui/assets/{DashboardView-fRDkGq0g.js → DashboardView-BE5e2n6u.js} +1 -1
- package/dist/web-ui/assets/{LayoutView-CK_MaWN7.js → LayoutView-Div_5EBT.js} +1 -1
- package/dist/web-ui/assets/{LoginView-B1naaT8E.js → LoginView-cCi4Iwct.js} +1 -1
- package/dist/web-ui/assets/{LogsView-YtH8gJPU.js → LogsView-CNop4N9G.js} +1 -1
- package/dist/web-ui/assets/ProvidersView-0jNbWJE5.css +1 -0
- package/dist/web-ui/assets/ProvidersView-CTqR-k3L.js +31 -0
- package/dist/web-ui/assets/ServiceStatusView-D1pXtHQJ.js +5 -0
- package/dist/web-ui/assets/ServiceStatusView-DN0AwyLo.css +1 -0
- package/dist/web-ui/assets/{SettingsView-DepOaZYg.js → SettingsView--ZDLNPOa.js} +1 -1
- package/dist/web-ui/assets/{SetupView-BwDwokAd.js → SetupView-BqrEqw3F.js} +1 -1
- package/dist/web-ui/assets/{config-CdOq1p3C.js → config-D_yFz2xb.js} +1 -1
- package/dist/web-ui/assets/{index-CgzCvxTY.js → index-B2BlgF9y.js} +2 -2
- package/dist/web-ui/assets/providers-ABdiyjVl.js +1 -0
- package/dist/web-ui/assets/{useLoadError-UA3r7sR9.js → useLoadError-Vo8GaucY.js} +1 -1
- package/dist/web-ui/assets/{useManagerApi-CBQNomtR.js → useManagerApi-CnyeOfgT.js} +1 -1
- package/dist/web-ui/assets/{useToast-DNMhOOeI.js → useToast-Cve-kXIC.js} +1 -1
- package/dist/web-ui/index.html +1 -1
- package/docs/DESIGN.md +8 -8
- package/package.json +1 -1
- package/dist/web-ui/assets/ProvidersView-Caqpg_0F.css +0 -1
- package/dist/web-ui/assets/ProvidersView-DWtS_e7t.js +0 -31
- package/dist/web-ui/assets/ServiceStatusView-D3ybS2T-.js +0 -39
- package/dist/web-ui/assets/ServiceStatusView-DrPoYMN-.css +0 -1
- package/dist/web-ui/assets/providers-i7t_wEzk.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{N as Hn,B as Mt,C as Ge,D as ur,G as Lt,H as jo,I as Is,J as aa,K as Ns,L as sa,M as Cs,O as Ht,P as la,Q as xi,R as As,S as xs,T as Ps,U as Ds,V as Rs,W as Hr,X as Ms,Y as Gr,Z as Ls,$ as ws,a0 as Vs,a1 as Fs,a2 as yn,A as Yt,d as Jt,a as J,o as te,c as Ae,a3 as Pi,w as M,f as K,t as Te,e as Be,F as Bo,z as ko,a4 as dn,i as Q,g as ie,j as Qe,h as A,a5 as $s,p as wt,E as Rr,r as De,_ as cn,a6 as Xo,a7 as Ct,l as ca,a8 as Us,a9 as js,aa as Bs,ab as ks,ac as Xs}from"./index-B2BlgF9y.js";import{u as un}from"./useToast-Cve-kXIC.js";import{u as Ko}from"./providers-ABdiyjVl.js";import{u as Ks}from"./useLoadError-Vo8GaucY.js";import{c as ua}from"./clipboard-aCBIMfw7.js";import"./config-D_yFz2xb.js";var Er={exports:{}},ho={exports:{}},mo={};/**
|
|
2
|
+
* @vue/compiler-core v3.5.42
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const bn=Symbol(""),Sn=Symbol(""),Wr=Symbol(""),Qn=Symbol(""),Ho=Symbol(""),zt=Symbol(""),Go=Symbol(""),Wo=Symbol(""),Yr=Symbol(""),zr=Symbol(""),xn=Symbol(""),Jr=Symbol(""),Yo=Symbol(""),Qr=Symbol(""),Zr=Symbol(""),_r=Symbol(""),qr=Symbol(""),eo=Symbol(""),to=Symbol(""),zo=Symbol(""),Jo=Symbol(""),nr=Symbol(""),Zn=Symbol(""),no=Symbol(""),ro=Symbol(""),Tn=Symbol(""),Pn=Symbol(""),oo=Symbol(""),Mr=Symbol(""),fa=Symbol(""),Lr=Symbol(""),_n=Symbol(""),da=Symbol(""),pa=Symbol(""),io=Symbol(""),ha=Symbol(""),ma=Symbol(""),ao=Symbol(""),Qo=Symbol(""),on={[bn]:"Fragment",[Sn]:"Teleport",[Wr]:"Suspense",[Qn]:"KeepAlive",[Ho]:"BaseTransition",[zt]:"openBlock",[Go]:"createBlock",[Wo]:"createElementBlock",[Yr]:"createVNode",[zr]:"createElementVNode",[xn]:"createCommentVNode",[Jr]:"createTextVNode",[Yo]:"createStaticVNode",[Qr]:"resolveComponent",[Zr]:"resolveDynamicComponent",[_r]:"resolveDirective",[qr]:"resolveFilter",[eo]:"withDirectives",[to]:"renderList",[zo]:"renderSlot",[Jo]:"createSlots",[nr]:"toDisplayString",[Zn]:"mergeProps",[no]:"normalizeClass",[ro]:"normalizeStyle",[Tn]:"normalizeProps",[Pn]:"guardReactiveProps",[oo]:"toHandlers",[Mr]:"camelize",[fa]:"capitalize",[Lr]:"toHandlerKey",[_n]:"setBlockTracking",[da]:"pushScopeId",[pa]:"popScopeId",[io]:"withCtx",[ha]:"unref",[ma]:"isRef",[ao]:"withMemo",[Qo]:"isMemoSame"};function va(e){Object.getOwnPropertySymbols(e).forEach(t=>{on[t]=e[t]})}const Hs={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Gs={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},Ws={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Ys={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Je={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ga(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Je}}function On(e,t,n,o,i,a,r,s=!1,l=!1,c=!1,f=Je){return e&&(s?(e.helper(zt),e.helper(ln(e.inSSR,c))):e.helper(sn(e.inSSR,c)),r&&e.helper(eo)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:a,directives:r,isBlock:s,disableTracking:l,isComponent:c,loc:f}}function Wt(e,t=Je){return{type:17,loc:t,elements:e}}function vt(e,t=Je){return{type:15,loc:t,properties:e}}function He(e,t){return{type:16,loc:Je,key:Ge(e)?se(e,!0):e,value:t}}function se(e,t=!1,n=Je,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function zs(e,t){return{type:5,loc:t,content:Ge(e)?se(e,!1,t):e}}function yt(e,t=Je){return{type:8,loc:t,children:e}}function Ye(e,t=[],n=Je){return{type:14,loc:n,callee:e,arguments:t}}function an(e,t=void 0,n=!1,o=!1,i=Je){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function wr(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Je}}function ya(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:Je}}function Ea(e){return{type:21,body:e,loc:Je}}function Js(e){return{type:22,elements:e,loc:Je}}function Qs(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Je}}function Zs(e,t){return{type:24,left:e,right:t,loc:Je}}function _s(e){return{type:25,expressions:e,loc:Je}}function qs(e){return{type:26,returns:e,loc:Je}}function sn(e,t){return e||t?Yr:zr}function ln(e,t){return e||t?Go:Wo}function so(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(sn(o,e.isComponent)),t(zt),t(ln(o,e.isComponent)))}const Di=new Uint8Array([123,123]),Ri=new Uint8Array([125,125]);function Mi(e){return e>=97&&e<=122||e>=65&&e<=90}function mt(e){return e===32||e===10||e===9||e===12||e===13}function Bt(e){return e===47||e===62||mt(e)}function Vr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const et={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class el{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Di,this.delimiterClose=Ri,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Di,this.delimiterClose=Ri}getPos(t){let n=1,o=t+1;const i=this.newlines.length;let a=-1;if(i>100){let r=-1,s=i;for(;r+1<s;){const l=r+s>>>1;this.newlines[l]<t?r=l:s=l}a=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){a=r;break}return a>=0&&(n=a+2,o=t-this.newlines[a]),{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Bt(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||mt(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===et.TitleEnd||this.currentSequence===et.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===et.Cdata[this.sequenceIndex]?++this.sequenceIndex===et.Cdata.length&&(this.state=28,this.currentSequence=et.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===et.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Mi(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Bt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Bt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Vr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){mt(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Mi(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||mt(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):mt(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):mt(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Bt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Bt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Bt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Bt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Bt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):mt(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):mt(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){mt(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=et.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===et.ScriptEnd[3]?this.startSpecial(et.ScriptEnd,4):t===et.StyleEnd[3]?this.startSpecial(et.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===et.TitleEnd[3]?this.startSpecial(et.TitleEnd,4):t===et.TextareaEnd[3]?this.startSpecial(et.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===et.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const tl={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},nl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function xo(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function tn(e,t){const n=xo("MODE",t),o=xo(e,t);return n===3?o===!0:o!==!1}function In(e,t,n,...o){return tn(e,t)}function rl(e,t,n,...o){if(xo(e,t)==="suppress-warning")return;const{message:a,link:r}=nl[e],s=`(deprecation ${e}) ${typeof a=="function"?a(...o):a}${r?`
|
|
6
|
+
Details: ${r}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function Zo(e){throw e}function Sa(e){}function xe(e,t,n,o){const i=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(i));return a.code=e,a.loc=t,a}const ol={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},il={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
7
|
+
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function al(e,t,n=!1,o=[],i=Object.create(null)){}function sl(e,t,n){return!1}function ll(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const o=t[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function cl(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function ul(e,t){for(const n of e.params)for(const o of At(n))t(o)}function ba(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const o of n)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const i of o.declarations)for(const a of At(i.id))t(a)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else fl(o)?dl(o,!0,t):o.type==="SwitchStatement"&&pl(o,!0,t)}function fl(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function dl(e,t,n){const o=e.type==="ForStatement"?e.init:e.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const i of o.declarations)for(const a of At(i.id))n(a)}function pl(e,t,n){for(const o of e.cases){for(const i of o.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const a of i.declarations)for(const r of At(a.id))n(r);ba(o,n)}}function At(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const o of e.properties)o.type==="RestElement"?At(o.argument,t):At(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&At(o,t)});break;case"RestElement":At(e.argument,t);break;case"AssignmentPattern":At(e.left,t);break}return t}const hl=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Ta=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,ml=(e,t)=>Ta(t)&&t.key===e,Oa=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Ia(e){return Oa.includes(e.type)?Ia(e.expression):e}const rt=e=>e.type===4&&e.isStatic;function _o(e){switch(e){case"Teleport":case"teleport":return Sn;case"Suspense":case"suspense":return Wr;case"KeepAlive":case"keep-alive":return Qn;case"BaseTransition":case"base-transition":return Ho}}const vl=/^$|^\d|[^\$\w\xA0-\uFFFF]/,rr=e=>!vl.test(e),qo=/[A-Za-z_$\xA0-\uFFFF]/,gl=/[\.\?\w$\xA0-\uFFFF]/,yl=/\s+[.[]\s*|\s*[.[]\s+/g,Na=e=>e.type===4?e.content:e.loc.source,Ca=e=>{const t=Na(e).trim().replace(yl,s=>s.trim());let n=0,o=[],i=0,a=0,r=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")o.push(n),n=1,i++;else if(l==="(")o.push(n),n=2,a++;else if(!(s===0?qo:gl).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,r=l):l==="["?i++:l==="]"&&(--i||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,r=l;else if(l==="(")a++;else if(l===")"){if(s===t.length-1)return!1;--a||(n=o.pop())}break;case 3:l===r&&(n=o.pop(),r=null);break}}return!i&&!a},El=Hn,ei=Ca,Sl=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Aa=e=>Sl.test(Na(e)),bl=Hn,xa=Aa;function Tl(e,t,n=t.length){return Pa({offset:e.offset,line:e.line,column:e.column},t,n)}function Pa(e,t,n=t.length){let o=0,i=-1;for(let a=0;a<n;a++)t.charCodeAt(a)===10&&(o++,i=a);return e.offset+=n,e.line+=o,e.column=i===-1?e.column+n:n-i,e}function Ol(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function st(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&(n||i.exp)&&(Ge(t)?i.name===t:t.test(i.name)))return i}}function or(e,t,n=!1,o=!1){for(let i=0;i<e.props.length;i++){const a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||o))return a}else if(a.name==="bind"&&(a.exp||o)&&nn(a.arg,t))return a}}function nn(e,t){return!!(e&&rt(e)&&e.content===t)}function Da(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Sr(e){return e.type===5||e.type===2}function Po(e){return e.type===7&&e.name==="pre"}function ti(e){return e.type===7&&e.name==="slot"}function Nn(e){return e.type===1&&e.tagType===3}function qn(e){return e.type===1&&e.tagType===2}const Il=new Set([Tn,Pn]);function ni(e,t=[]){if(e&&!Ge(e)&&e.type===14){const n=e.callee;if(!Ge(n)&&Il.has(n))return ni(e.arguments[0],t.concat(e))}return[e,t]}function er(e,t,n){if(e.type!==13&&Nl(e,t))return;let o,i=e.type===13?e.props:e.arguments[2],a=[],r;if(i&&!Ge(i)&&i.type===14){const s=ni(i);i=s[0],a=s[1],r=a[a.length-1]}if(i==null||Ge(i))o=vt([t]);else if(i.type===14){const s=i.arguments[0];!Ge(s)&&s.type===15?Do(t,s)||s.properties.unshift(t):i.callee===oo?o=Ye(n.helper(Zn),[vt([t]),i]):i.arguments.unshift(vt([t])),!o&&(o=i)}else i.type===15?(Do(t,i)||i.properties.unshift(t),o=i):(o=Ye(n.helper(Zn),[vt([t]),i]),r&&r.callee===Pn&&(r=a[a.length-2]));e.type===13?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Nl(e,t){var n,o,i;if(t.key.type!==4||t.key.content!=="key")return!1;const a=e.arguments[2];if(a&&!Ge(a)){const[r]=ni(a);if(r&&!Ge(r)&&r.type===15&&Do(t,r))return!0}return(n=e.arguments)[2]||(n[2]="{}"),(o=e.arguments)[3]||(o[3]="undefined"),(i=e.arguments)[4]||(i[4]="undefined"),e.arguments[5]=t.value,!0}function Do(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===o)}return n}function Cn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function It(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(o.type===7&&(It(o.arg,t)||It(o.exp,t)))return!0}return e.children.some(n=>It(n,t));case 11:return It(e.source,t)?!0:e.children.some(n=>It(n,t));case 9:return e.branches.some(n=>It(n,t));case 10:return It(e.condition,t)?!0:e.children.some(n=>It(n,t));case 4:return!e.isStatic&&rr(e.content)&&!!t[e.content];case 8:return e.children.some(n=>sa(n)&&It(n,t));case 5:case 12:return It(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Ra(e){return e.type===14&&e.callee===ao?e.arguments[1].returns:e}const Ma=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ri(e){for(let t=0;t<e.length;t++)if(!mt(e.charCodeAt(t)))return!1;return!0}function lo(e){return e.type===2&&ri(e.content)||e.type===12&&lo(e.content)}function oi(e){return e.type===3||lo(e)}const La={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ur,isPreTag:ur,isIgnoreNewlineTag:ur,isCustomElement:ur,onError:Zo,onWarn:Sa,comments:!1,prefixIdentifiers:!1};let Ee=La,tr=null,Vt="",nt=null,me=null,ft="",Rt=-1,_t=-1,ii=0,kt=!1,Ro=null;const Pe=[],ke=new el(Pe,{onerr:Dt,ontext(e,t){fr(qe(e,t),e,t)},ontextentity(e,t,n){fr(e,t,n)},oninterpolation(e,t){if(kt)return fr(qe(e,t),e,t);let n=e+ke.delimiterOpen.length,o=t-ke.delimiterClose.length;for(;mt(Vt.charCodeAt(n));)n++;for(;mt(Vt.charCodeAt(o-1));)o--;let i=qe(n,o);i.includes("&")&&(i=Ee.decodeEntities(i,!1)),Mo({type:5,content:Tr(i,!1,Ke(n,o)),loc:Ke(e,t)})},onopentagname(e,t){const n=qe(e,t);nt={type:1,tag:n,ns:Ee.getNamespace(n,Pe[0],Ee.ns),tagType:0,props:[],children:[],loc:Ke(e-1,t),codegenNode:void 0}},onopentagend(e){wi(e)},onclosetag(e,t){const n=qe(e,t);if(!Ee.isVoidTag(n)){let o=!1;for(let i=0;i<Pe.length;i++)if(Pe[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&Dt(24,Pe[0].loc.start.offset);for(let r=0;r<=i;r++){const s=Pe.shift();br(s,t,r<i)}break}o||Dt(23,wa(e,60))}},onselfclosingtag(e){const t=nt.tag;nt.isSelfClosing=!0,wi(e),Pe[0]&&Pe[0].tag===t&&br(Pe.shift(),e)},onattribname(e,t){me={type:6,name:qe(e,t),nameLoc:Ke(e,t),value:void 0,loc:Ke(e)}},ondirname(e,t){const n=qe(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!kt&&o===""&&Dt(26,e),kt||o==="")me={type:6,name:n,nameLoc:Ke(e,t),value:void 0,loc:Ke(e)};else if(me={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[se("prop")]:[],loc:Ke(e)},o==="pre"){kt=ke.inVPre=!0,Ro=nt;const i=nt.props;for(let a=0;a<i.length;a++)i[a].type===7&&(i[a]=Vl(i[a]))}},ondirarg(e,t){if(e===t)return;const n=qe(e,t);if(kt&&!Po(me))me.name+=n,en(me.nameLoc,t);else{const o=n[0]!=="[";me.arg=Tr(o?n:n.slice(1,-1),o,Ke(e,t),o?3:0)}},ondirmodifier(e,t){const n=qe(e,t);if(kt&&!Po(me))me.name+="."+n,en(me.nameLoc,t);else if(me.name==="slot"){const o=me.arg;o&&(o.content+="."+n,en(o.loc,t))}else{const o=se(n,!0,Ke(e,t));me.modifiers.push(o)}},onattribdata(e,t){ft+=qe(e,t),Rt<0&&(Rt=e),_t=t},onattribentity(e,t,n){ft+=e,Rt<0&&(Rt=t),_t=n},onattribnameend(e){const t=me.loc.start.offset,n=qe(t,e);me.type===7&&(me.rawName=n),nt.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Dt(2,t)},onattribend(e,t){if(nt&&me){if(en(me.loc,t),e!==0)if(ft.includes("&")&&(ft=Ee.decodeEntities(ft,!0)),me.type===6)me.name==="class"&&(ft=Fa(ft).trim()),e===1&&!ft&&Dt(13,t),me.value={type:2,content:ft,loc:e===1?Ke(Rt,_t):Ke(Rt-1,_t+1)},ke.inSFCRoot&&nt.tag==="template"&&me.name==="lang"&&ft&&ft!=="html"&&ke.enterRCDATA(Vr("</template"),0);else{let n=0;me.exp=Tr(ft,!1,Ke(Rt,_t),0,n),me.name==="for"&&(me.forParseResult=Al(me.exp));let o=-1;me.name==="bind"&&(o=me.modifiers.findIndex(i=>i.content==="sync"))>-1&&In("COMPILER_V_BIND_SYNC",Ee,me.loc,me.arg.loc.source)&&(me.name="model",me.modifiers.splice(o,1))}(me.type!==7||me.name!=="pre")&&nt.props.push(me)}ft="",Rt=_t=-1},oncomment(e,t){Ee.comments&&Mo({type:3,content:qe(e,t),loc:Ke(e-4,t+3)})},onend(){const e=Vt.length;for(let t=0;t<Pe.length;t++)br(Pe[t],e-1),Dt(24,Pe[t].loc.start.offset)},oncdata(e,t){(Pe[0]?Pe[0].ns:Ee.ns)!==0?fr(qe(e,t),e,t):Dt(1,e-9)},onprocessinginstruction(e){(Pe[0]?Pe[0].ns:Ee.ns)===0&&Dt(21,e-1)}}),Li=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Cl=/^\(|\)$/g;function Al(e){const t=e.loc,n=e.content,o=n.match(Ma);if(!o)return;const[,i,a]=o,r=(u,p,d=!1)=>{const m=t.start.offset+p,h=m+u.length;return Tr(u,!1,Ke(m,h),0,d?1:0)},s={source:r(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Cl,"").trim();const c=i.indexOf(l),f=l.match(Li);if(f){l=l.replace(Li,"").trim();const u=f[1].trim();let p;if(u&&(p=n.indexOf(u,c+l.length),s.key=r(u,p,!0)),f[2]){const d=f[2].trim();d&&(s.index=r(d,n.indexOf(d,s.key?p+u.length:c+l.length),!0))}}return l&&(s.value=r(l,c,!0)),s}function qe(e,t){return Vt.slice(e,t)}function wi(e){ke.inSFCRoot&&(nt.innerLoc=Ke(e+1,e+1)),Mo(nt);const{tag:t,ns:n}=nt;n===0&&Ee.isPreTag(t)&&ii++,Ee.isVoidTag(t)?br(nt,e):(Pe.unshift(nt),(n===1||n===2)&&(ke.inXML=!0)),nt=null}function fr(e,t,n){{const a=Pe[0]&&Pe[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=Ee.decodeEntities(e,!1))}const o=Pe[0]||tr,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=e,en(i.loc,n)):o.children.push({type:2,content:e,loc:Ke(t,n)})}function br(e,t,n=!1){n?en(e.loc,wa(t,60)):en(e.loc,xl(t,62)+1),ke.inSFCRoot&&(e.children.length?e.innerLoc.end=Mt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Mt({},e.innerLoc.start),e.innerLoc.source=qe(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:a}=e;if(kt||(o==="slot"?e.tagType=2:Vi(e)?e.tagType=3:Dl(e)&&(e.tagType=1)),ke.inRCDATA||(e.children=Va(a)),i===0&&Ee.isIgnoreNewlineTag(o)){const r=a[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&Ee.isPreTag(o)&&ii--,Ro===e&&(kt=ke.inVPre=!1,Ro=null),ke.inXML&&(Pe[0]?Pe[0].ns:Ee.ns)===0&&(ke.inXML=!1);{const r=e.props;if(!ke.inSFCRoot&&tn("COMPILER_NATIVE_TEMPLATE",Ee)&&e.tag==="template"&&!Vi(e)){const l=Pe[0]||tr,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const s=r.find(l=>l.type===6&&l.name==="inline-template");s&&In("COMPILER_INLINE_TEMPLATE",Ee,s.loc)&&e.children.length&&(s.value={type:2,content:qe(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function xl(e,t){let n=e;for(;Vt.charCodeAt(n)!==t&&n<Vt.length-1;)n++;return n}function wa(e,t){let n=e;for(;Vt.charCodeAt(n)!==t&&n>=0;)n--;return n}const Pl=new Set(["if","else","else-if","for","slot"]);function Vi({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Pl.has(t[n].name))return!0}return!1}function Dl({tag:e,props:t}){if(Ee.isCustomElement(e))return!1;if(e==="component"||Rl(e.charCodeAt(0))||_o(e)||Ee.isBuiltInComponent&&Ee.isBuiltInComponent(e)||Ee.isNativeTag&&!Ee.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const o=t[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(In("COMPILER_IS_ON_ELEMENT",Ee,o.loc))return!0}}else if(o.name==="bind"&&nn(o.arg,"is")&&In("COMPILER_IS_ON_ELEMENT",Ee,o.loc))return!0}return!1}function Rl(e){return e>64&&e<91}const Ml=/\r\n/g;function Va(e){const t=Ee.whitespace!=="preserve";let n=!1;for(let o=0;o<e.length;o++){const i=e[o];if(i.type===2)if(ii)i.content=i.content.replace(Ml,`
|
|
8
|
+
`);else if(ri(i.content)){const a=e[o-1]&&e[o-1].type,r=e[o+1]&&e[o+1].type;!a||!r||t&&(a===3&&(r===3||r===1)||a===1&&(r===3||r===1&&Ll(i.content)))?(n=!0,e[o]=null):i.content=" "}else t&&(i.content=Fa(i.content))}return n?e.filter(Boolean):e}function Ll(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Fa(e){let t="",n=!1;for(let o=0;o<e.length;o++)mt(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Mo(e){(Pe[0]||tr).children.push(e)}function Ke(e,t){return{start:ke.getPos(e),end:t==null?t:ke.getPos(t),source:t==null?t:qe(e,t)}}function wl(e){return Ke(e.start.offset,e.end.offset)}function en(e,t){e.end=ke.getPos(t),e.source=qe(e.start.offset,t)}function Vl(e){const t={type:6,name:e.rawName,nameLoc:Ke(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Tr(e,t=!1,n,o=0,i=0){return se(e,t,n,o)}function Dt(e,t,n){Ee.onError(xe(e,Ke(t,t)))}function Fl(){ke.reset(),nt=null,me=null,ft="",Rt=-1,_t=-1,Pe.length=0}function ai(e,t){if(Fl(),Vt=e,Ee=Mt({},La),t){let i;for(i in t)t[i]!=null&&(Ee[i]=t[i])}ke.mode=Ee.parseMode==="html"?1:Ee.parseMode==="sfc"?2:0,ke.inXML=Ee.ns===1||Ee.ns===2;const n=t&&t.delimiters;n&&(ke.delimiterOpen=Vr(n[0]),ke.delimiterClose=Vr(n[1]));const o=tr=ga([],e);return ke.parse(Vt),o.loc=Ke(0,e.length),o.children=Va(o.children),tr=null,o}function $l(e,t){Or(e,void 0,t,!!$a(e))}function $a(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!qn(t[0])?t[0]:null}function Or(e,t,n,o=!1,i=!1){const{children:a}=e,r=[];for(let f=0;f<a.length;f++){const u=a[f];if(u.type===1&&u.tagType===0){const p=o?0:dt(u,n);if(p>0){if(p>=2){u.codegenNode.patchFlag=-1,r.push(u);continue}}else{const d=u.codegenNode;if(d.type===13){const m=d.patchFlag;if((m===void 0||m===512||m===1)&&ja(u,n)>=2){const h=Ba(u);h&&(d.props=n.hoist(h))}d.dynamicProps&&(d.dynamicProps=n.hoist(d.dynamicProps))}}}else if(u.type===12&&(o?0:dt(u,n))>=2){u.codegenNode.type===14&&u.codegenNode.arguments.length>0&&u.codegenNode.arguments.push("-1"),r.push(u);continue}if(u.type===1){const p=u.tagType===1;p&&n.scopes.vSlot++,Or(u,e,n,!1,i),p&&n.scopes.vSlot--}else if(u.type===11)Or(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let p=0;p<u.branches.length;p++)Or(u.branches[p],e,n,u.branches[p].children.length===1,i)}let s=!1;if(r.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Ht(e.codegenNode.children))e.codegenNode.children=l(Wt(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Ht(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=c(e.codegenNode,"default");f&&(f.returns=l(Wt(f.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Ht(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=st(e,"slot",!0),u=f&&f.arg&&c(t.codegenNode,f.arg);u&&(u.returns=l(Wt(u.returns)),s=!0)}}if(!s)for(const f of r)f.codegenNode=n.cache(f.codegenNode);function l(f){const u=n.cache(f);return u.needArraySpread=!0,u}function c(f,u){if(f.children&&!Ht(f.children)&&f.children.type===15){const p=f.children.properties.find(d=>d.key===u||d.key.content===u);return p&&p.value}}r.length&&n.transformHoist&&n.transformHoist(a,n,e)}function dt(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const s=ja(e,t);if(s===0)return n.set(e,0),0;s<r&&(r=s);for(let l=0;l<e.children.length;l++){const c=dt(e.children[l],t);if(c===0)return n.set(e,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const f=dt(c.exp,t);if(f===0)return n.set(e,0),0;f<r&&(r=f)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(zt),t.removeHelper(ln(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(sn(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return dt(e.content,t);case 4:return e.constType;case 8:let a=3;for(let r=0;r<e.children.length;r++){const s=e.children[r];if(Ge(s)||jo(s))continue;const l=dt(s,t);if(l===0)return 0;l<a&&(a=l)}return a;case 20:return 2;default:return 0}}const Ul=new Set([no,ro,Tn,Pn]);function Ua(e,t){if(e.type===14&&!Ge(e.callee)&&Ul.has(e.callee)){const n=e.arguments[0];if(n.type===4)return dt(n,t);if(n.type===14)return Ua(n,t)}return 0}function ja(e,t){let n=3;const o=Ba(e);if(o&&o.type===15){const{properties:i}=o;for(let a=0;a<i.length;a++){const{key:r,value:s}=i[a],l=dt(r,t);if(l===0)return l;l<n&&(n=l);let c;if(s.type===4?c=dt(s,t):s.type===14?c=Ua(s,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Ba(e){const t=e.codegenNode;if(t.type===13)return t.props}function ka(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:r=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:c=Hn,isCustomElement:f=Hn,expressionPlugins:u=[],scopeId:p=null,slotted:d=!0,ssr:m=!1,inSSR:h=!1,ssrCssVars:v="",bindingMetadata:g=Ns,inline:y=!1,isTS:S=!1,onError:E=Zo,onWarn:x=Sa,compatConfig:P}){const j=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),V={filename:t,selfName:j&&aa(Lt(j[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:a,nodeTransforms:r,directiveTransforms:s,transformHoist:l,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:p,slotted:d,ssr:m,inSSR:h,ssrCssVars:v,bindingMetadata:g,inline:y,isTS:S,onError:E,onWarn:x,compatConfig:P,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const w=V.helpers.get(O)||0;return V.helpers.set(O,w+1),O},removeHelper(O){const w=V.helpers.get(O);if(w){const U=w-1;U?V.helpers.set(O,U):V.helpers.delete(O)}},helperString(O){return`_${on[V.helper(O)]}`},replaceNode(O){V.parent.children[V.childIndex]=V.currentNode=O},removeNode(O){const w=V.parent.children,U=O?w.indexOf(O):V.currentNode?V.childIndex:-1;!O||O===V.currentNode?(V.currentNode=null,V.onNodeRemoved()):V.childIndex>U&&(V.childIndex--,V.onNodeRemoved()),V.parent.children.splice(U,1)},onNodeRemoved:Hn,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){Ge(O)&&(O=se(O)),V.hoists.push(O);const w=se(`_hoisted_${V.hoists.length}`,!1,O.loc,2);return w.hoisted=O,w},cache(O,w=!1,U=!1){const X=ya(V.cached.length,O,w,U);return V.cached.push(X),X}};return V.filters=new Set,V}function Xa(e,t){const n=ka(e,t);ir(e,n),t.hoistStatic&&$l(e,n),t.ssr||jl(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function jl(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const i=$a(e);if(i&&i.codegenNode){const a=i.codegenNode;a.type===13&&so(a,t),e.codegenNode=a}else e.codegenNode=o[0]}else if(o.length>1){let i=64;e.codegenNode=On(t,n(bn),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Bl(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];Ge(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,ir(i,t))}}function ir(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let a=0;a<n.length;a++){const r=n[a](e,t);if(r&&(Ht(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(xn);break;case 5:t.ssr||t.helper(nr);break;case 9:for(let a=0;a<e.branches.length;a++)ir(e.branches[a],t);break;case 10:case 11:case 1:case 0:Bl(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function si(e,t){const n=Ge(e)?o=>o===e:o=>e.test(o);return(o,i)=>{if(o.type===1){const{props:a}=o;if(o.tagType===3&&a.some(ti))return;const r=[];for(let s=0;s<a.length;s++){const l=a[s];if(l.type===7&&n(l.name)){a.splice(s,1),s--;const c=t(o,l,i);c&&r.push(c)}}return r}}}const co="/*@__PURE__*/",Ka=e=>`${on[e]}: _${on[e]}`;function kl(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:a=null,optimizeImports:r=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:p=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:a,optimizeImports:r,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(h){return`_${on[h]}`},push(h,v=-2,g){d.code+=h},indent(){m(++d.indentLevel)},deindent(h=!1){h?--d.indentLevel:m(--d.indentLevel)},newline(){m(d.indentLevel)}};function m(h){d.push(`
|
|
9
|
+
`+" ".repeat(h),0)}return d}function Ha(e,t={}){const n=kl(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:i,prefixIdentifiers:a,indent:r,deindent:s,newline:l,scopeId:c,ssr:f}=n,u=Array.from(e.helpers),p=u.length>0,d=!a&&o!=="module";Xl(e,n);const h=f?"ssrRender":"render",g=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${h}(${g}) {`),r(),d&&(i("with (_ctx) {"),r(),p&&(i(`const { ${u.map(Ka).join(", ")} } = _Vue
|
|
10
|
+
`,-1),l())),e.components.length&&(vo(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(vo(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),vo(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let y=0;y<e.temps;y++)i(`${y>0?", ":""}_temp${y}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
11
|
+
`,0),l()),f||i("return "),e.codegenNode?it(e.codegenNode,n):i("null"),d&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Xl(e,t){const{ssr:n,prefixIdentifiers:o,push:i,newline:a,runtimeModuleName:r,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,f=Array.from(e.helpers);if(f.length>0&&(i(`const _Vue = ${c}
|
|
12
|
+
`,-1),e.hoists.length)){const u=[Yr,zr,xn,Jr,Yo].filter(p=>f.includes(p)).map(Ka).join(", ");i(`const { ${u} } = _Vue
|
|
13
|
+
`,-1)}Kl(e.hoists,t),a(),i("return ")}function vo(e,t,{helper:n,push:o,newline:i,isTS:a}){const r=n(t==="filter"?qr:t==="component"?Qr:_r);for(let s=0;s<e.length;s++){let l=e[s];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),o(`const ${Cn(l,t)} = ${r}(${JSON.stringify(l)}${c?", true":""})${a?"!":""}`),s<e.length-1&&i()}}function Kl(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let i=0;i<e.length;i++){const a=e[i];a&&(n(`const _hoisted_${i+1} = `),it(a,t),o())}t.pure=!1}function li(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),ar(e,t,n),n&&t.deindent(),t.push("]")}function ar(e,t,n=!1,o=!0){const{push:i,newline:a}=t;for(let r=0;r<e.length;r++){const s=e[r];Ge(s)?i(s,-3):Ht(s)?li(s,t):it(s,t),r<e.length-1&&(n?(o&&i(","),a()):o&&i(", "))}}function it(e,t){if(Ge(e)){t.push(e,-3);return}if(jo(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:it(e.codegenNode,t);break;case 2:Hl(e,t);break;case 4:Ga(e,t);break;case 5:Gl(e,t);break;case 12:it(e.codegenNode,t);break;case 8:Wa(e,t);break;case 3:Yl(e,t);break;case 13:zl(e,t);break;case 14:Ql(e,t);break;case 15:Zl(e,t);break;case 17:_l(e,t);break;case 18:ql(e,t);break;case 19:ec(e,t);break;case 20:tc(e,t);break;case 21:ar(e.body,t,!0,!1);break}}function Hl(e,t){t.push(JSON.stringify(e.content),-3,e)}function Ga(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function Gl(e,t){const{push:n,helper:o,pure:i}=t;i&&n(co),n(`${o(nr)}(`),it(e.content,t),n(")")}function Wa(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];Ge(o)?t.push(o,-3):it(o,t)}}function Wl(e,t){const{push:n}=t;if(e.type===8)n("["),Wa(e,t),n("]");else if(e.isStatic){const o=rr(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else n(`[${e.content}]`,-3,e)}function Yl(e,t){const{push:n,helper:o,pure:i}=t;i&&n(co),n(`${o(xn)}(${JSON.stringify(e.content)})`,-3,e)}function zl(e,t){const{push:n,helper:o,pure:i}=t,{tag:a,props:r,children:s,patchFlag:l,dynamicProps:c,directives:f,isBlock:u,disableTracking:p,isComponent:d}=e;let m;l&&(m=String(l)),f&&n(o(eo)+"("),u&&n(`(${o(zt)}(${p?"true":""}), `),i&&n(co);const h=u?ln(t.inSSR,d):sn(t.inSSR,d);n(o(h)+"(",-2,e),ar(Jl([a,r,s,m,c]),t),n(")"),u&&n(")"),f&&(n(", "),it(f,t),n(")"))}function Jl(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Ql(e,t){const{push:n,helper:o,pure:i}=t,a=Ge(e.callee)?e.callee:o(e.callee);i&&n(co),n(a+"(",-2,e),ar(e.arguments,t),n(")")}function Zl(e,t){const{push:n,indent:o,deindent:i,newline:a}=t,{properties:r}=e;if(!r.length){n("{}",-2,e);return}const s=r.length>1||!1;n(s?"{":"{ "),s&&o();for(let l=0;l<r.length;l++){const{key:c,value:f}=r[l];Wl(c,t),n(": "),it(f,t),l<r.length-1&&(n(","),a())}s&&i(),n(s?"}":" }")}function _l(e,t){li(e.elements,t)}function ql(e,t){const{push:n,indent:o,deindent:i}=t,{params:a,returns:r,body:s,newline:l,isSlot:c}=e;c&&n(`_${on[io]}(`),n("(",-2,e),Ht(a)?ar(a,t):a&&it(a,t),n(") => "),(l||s)&&(n("{"),o()),r?(l&&n("return "),Ht(r)?li(r,t):it(r,t)):s&&it(s,t),(l||s)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ec(e,t){const{test:n,consequent:o,alternate:i,newline:a}=e,{push:r,indent:s,deindent:l,newline:c}=t;if(n.type===4){const u=!rr(n.content);u&&r("("),Ga(n,t),u&&r(")")}else r("("),it(n,t),r(")");a&&s(),t.indentLevel++,a||r(" "),r("? "),it(o,t),t.indentLevel--,a&&c(),a||r(" "),r(": ");const f=i.type===19;f||t.indentLevel++,it(i,t),f||t.indentLevel--,a&&l(!0)}function tc(e,t){const{push:n,helper:o,indent:i,deindent:a,newline:r}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${o(_n)}(-1`),e.inVOnce&&n(", true"),n("),"),r(),n("(")),n(`_cache[${e.index}] = `),it(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),r(),n(`${o(_n)}(1),`),r(),n(`_cache[${e.index}]`),a()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const nc=(e,t)=>{if(e.type===5)e.content=Ir(e.content,t);else if(e.type===1){const n=st(e,"memo");for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&i.name!=="for"){const a=i.exp,r=i.arg;a&&a.type===4&&!(i.name==="on"&&r)&&!(n&&t.vForMemoKeyedNodes.has(e)&&r&&r.type===4&&r.content==="key")&&(i.exp=Ir(a,t,i.name==="slot")),r&&r.type===4&&!r.isStatic&&(i.arg=Ir(r,t))}}}};function Ir(e,t,n=!1,o=!1,i=Object.create(t.identifiers)){return e}function Ya(e){return Ge(e)?e:e.type===4?e.content:e.children.map(Ya).join("")}const rc=si(/^(?:if|else|else-if)$/,(e,t,n)=>za(e,t,n,(o,i,a)=>{const r=n.parent.children;let s=r.indexOf(o),l=0;for(;s-->=0;){const c=r[s];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(a)o.codegenNode=$i(i,l,n);else{const c=oc(o.codegenNode);c.alternate=$i(i,l+o.branches.length-1,n)}}}));function za(e,t,n,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(xe(28,t.loc)),t.exp=se("true",!1,i)}if(t.name==="if"){const i=Fi(e,t),a={type:9,loc:wl(e.loc),branches:[i]};if(n.replaceNode(a),o)return o(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);for(;a-->=-1;){const r=i[a];if(r&&oi(r)){n.removeNode(r);continue}if(r&&r.type===9){(t.name==="else-if"||t.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&n.onError(xe(30,e.loc)),n.removeNode();const s=Fi(e,t);r.branches.push(s);const l=o&&o(r,s,!1);ir(s,n),l&&l(),n.currentNode=null}else n.onError(xe(30,e.loc));break}}}function Fi(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!st(e,"for")?e.children:[e],userKey:or(e,"key"),isTemplateIf:n}}function $i(e,t,n){return e.condition?wr(e.condition,Ui(e,t,n),Ye(n.helper(xn),['""',"true"])):Ui(e,t,n)}function Ui(e,t,n){const{helper:o}=n,i=He("key",se(`${t}`,!1,Je,2)),{children:a}=e,r=a[0];if(a.length!==1||r.type!==1)if(a.length===1&&r.type===11){const l=r.codegenNode;return er(l,i,n),l}else return On(n,o(bn),vt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=r.codegenNode,c=Ra(l);return c.type===13&&so(c,n),er(c,i,n),l}}function oc(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ic=si("for",(e,t,n)=>{const{helper:o,removeHelper:i}=n;return Ja(e,t,n,a=>{const r=Ye(o(to),[a.source]),s=Nn(e),l=st(e,"memo"),c=or(e,"key",!1,!0);c&&c.type;let f=c&&(c.type===6?c.value?se(c.value.content,!0):void 0:c.exp);const u=f?He("key",f):null,p=a.source.type===4&&a.source.constType>0,d=p?64:c?128:256;return a.codegenNode=On(n,o(bn),void 0,r,d,void 0,void 0,!0,!p,!1,e.loc),()=>{var m;let h;const{children:v}=a,g=v.length!==1||v[0].type!==1,y=qn(e)?e:s&&e.children.length===1&&qn(e.children[0])?e.children[0]:null;if(y)h=y.codegenNode,s&&u&&er(h,u,n);else if(g)h=On(n,o(bn),u?vt([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{h=v[0].codegenNode,s&&u&&er(h,u,n);const S=!p||h.isBlockRequired===!0;h.isBlock!==S&&(h.isBlock?(i(zt),i(ln(n.inSSR,h.isComponent))):i(sn(n.inSSR,h.isComponent))),h.isBlock=S,h.isBlock?(o(zt),o(ln(n.inSSR,h.isComponent))):(o(sn(n.inSSR,h.isComponent)),h.needsPatch&&(h.patchFlag=((m=h.patchFlag)!=null?m:0)|512))}if(l){const S=an(Fr(a.parseResult,[se("_cached")]));S.body=Ea([yt(["const _memo = (",l.exp,")"]),yt(["if (_cached && _cached.el",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Qo)}(_cached, _memo)) return _cached`]),yt(["const _item = ",h]),se("_item.memo = _memo"),se("return _item")]),r.arguments.push(S,se("_cache"),se(String(n.cached.length))),n.cached.push(null)}else r.arguments.push(an(Fr(a.parseResult),h,!0))}})});function Ja(e,t,n,o){if(!t.exp){n.onError(xe(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(xe(32,t.loc));return}ci(i);const{addIdentifiers:a,removeIdentifiers:r,scopes:s}=n,{source:l,value:c,key:f,index:u}=i,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:i,children:Nn(e)?e.children:[e]};n.replaceNode(p),s.vFor++;const d=o&&o(p);return()=>{s.vFor--,d&&d()}}function ci(e,t){e.finalized||(e.finalized=!0)}function Fr({value:e,key:t,index:n},o=[]){return ac([e,t,n,...o])}function ac(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,o)=>n||se("_".repeat(o+1),!1))}const ji=se("undefined",!1),Qa=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=st(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},sc=(e,t)=>{let n;if(Nn(e)&&e.props.some(ti)&&(n=st(e,"for"))){const o=n.forParseResult;if(o){ci(o);const{value:i,key:a,index:r}=o,{addIdentifiers:s,removeIdentifiers:l}=t;return i&&s(i),a&&s(a),r&&s(r),()=>{i&&l(i),a&&l(a),r&&l(r)}}}},lc=(e,t,n,o)=>an(e,n,!1,!0,n.length?n[0].loc:o);function Za(e,t,n=lc){t.helper(io);const{children:o,loc:i}=e,a=[],r=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=st(e,"slot",!0);if(l){const{arg:v,exp:g}=l;v&&!rt(v)&&(s=!0),a.push(He(v||se("default",!0),n(g,void 0,o,i)))}let c=!1,f=!1;const u=[],p=new Set;let d=0;for(let v=0;v<o.length;v++){const g=o[v];let y;if(!Nn(g)||!(y=st(g,"slot",!0))){g.type!==3&&u.push(g);continue}if(l){t.onError(xe(37,y.loc));break}c=!0;const{children:S,loc:E}=g,{arg:x=se("default",!0),exp:P,loc:j}=y;let V;rt(x)?V=x?x.content:"default":s=!0;const O=st(g,"for"),w=n(P,O,S,E);let U,X;if(U=st(g,"if"))s=!0,r.push(wr(U.exp,dr(x,w,d++),ji));else if(X=st(g,/^else(?:-if)?$/,!0)){let L=v,I;for(;L--&&(I=o[L],!!oi(I)););if(I&&Nn(I)&&st(I,/^(?:else-)?if$/)){let N=r[r.length-1];for(;N.alternate.type===19;)N=N.alternate;N.alternate=X.exp?wr(X.exp,dr(x,w,d++),ji):dr(x,w,d++)}else t.onError(xe(30,X.loc))}else if(O){s=!0;const L=O.forParseResult;L?(ci(L),r.push(Ye(t.helper(to),[L.source,an(Fr(L),dr(x,w),!0)]))):t.onError(xe(32,O.loc))}else{if(V){if(p.has(V)){t.onError(xe(38,j));continue}p.add(V),V==="default"&&(f=!0)}a.push(He(x,w))}}if(!l){const v=(g,y)=>{const S=n(g,void 0,y,i);return t.compatConfig&&(S.isNonScopedSlot=!0),He("default",S)};c?u.length&&!u.every(lo)&&(f?t.onError(xe(39,u[0].loc)):a.push(v(void 0,u))):a.push(v(void 0,o))}const m=s?2:Nr(e.children)?3:1;let h=vt(a.concat(He("_",se(m+"",!1))),i);return r.length&&(h=Ye(t.helper(Jo),[h,Wt(r)])),{slots:h,hasDynamicSlots:s}}function dr(e,t,n){const o=[He("name",e),He("fn",t)];return n!=null&&o.push(He("key",se(String(n),!0))),vt(o)}function Nr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Nr(n.children))return!0;break;case 9:if(Nr(n.branches))return!0;break;case 10:case 11:if(Nr(n.children))return!0;break}}return!1}const _a=new WeakMap,qa=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:o,props:i}=e,a=e.tagType===1;let r=a?es(e,t):`"${o}"`;const s=sa(r)&&r.callee===Zr;let l,c,f=0,u,p,d,m=!1,h=!1,v=s||r===Sn||r===Wr||!a&&(o==="svg"||o==="foreignObject"||o==="math");if(i.length>0){const y=ui(e,t,void 0,a,s);l=y.props,f=y.patchFlag,p=y.dynamicPropNames,m=y.needsPatch,h=y.isBlockRequired;const S=y.directives;d=S&&S.length?Wt(S.map(E=>ts(E,t))):void 0,y.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(r===Qn&&(v=!0,f|=1024),a&&r!==Sn&&r!==Qn){const{slots:S,hasDynamicSlots:E}=Za(e,t);c=S,E&&(f|=1024)}else if(e.children.length===1&&r!==Sn){const S=e.children[0],E=S.type,x=E===5||E===8;x&&dt(S,t)===0&&(f|=1),x||E===2?c=S:c=e.children}else c=e.children;p&&p.length&&(u=uc(p));const g=e.codegenNode=On(t,r,l,c,f===0?void 0:f,u,d,!!v,!1,a,e.loc);m=m&&(f===0||f===32),m&&(g.needsPatch=!0),h&&(g.isBlockRequired=!0)};function es(e,t,n=!1){let{tag:o}=e;const i=Lo(o),a=or(e,"is",!1,!0);if(a)if(i||tn("COMPILER_IS_ON_ELEMENT",t)){let s;if(a.type===6?s=a.value&&se(a.value.content,!0):(s=a.exp,s||(s=se("is",!1,a.arg.loc))),s)return Ye(t.helper(Zr),[s])}else a.type===6&&a.value.content.startsWith("vue:")&&(o=a.value.content.slice(4));const r=_o(o)||t.isBuiltInComponent(o);return r?(n||t.helper(r),r):(t.helper(Qr),t.components.add(o),Cn(o,"component"))}function ui(e,t,n=e.props,o,i,a=!1){const{tag:r,loc:s,children:l}=e;let c=[];const f=[],u=[],p=l.length>0;let d=!1,m=!1,h=0,v=!1,g=!1,y=!1,S=!1,E=!1,x=!1;const P=[],j=X=>{c.length&&(f.push(vt(Bi(c),s)),c=[]),X&&f.push(X)},V=()=>{t.scopes.vFor>0&&c.push(He(se("ref_for",!0),se("true")))},O=({key:X,value:L})=>{if(rt(X)){const I=X.content,N=la(I);if(N&&(!o||i)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!xi(I)&&(S=!0),N&&xi(I)&&(x=!0),I==="ref"&&(v=!0),N&&L.type===14&&(L=L.arguments[0]),L.type===20||(L.type===4||L.type===8)&&dt(L,t)>0)return;I==="class"?g=!0:I==="style"?y=!0:I!=="ref"&&I!=="key"&&!P.includes(I)&&P.push(I),o&&(I==="class"||I==="style")&&!P.includes(I)&&P.push(I)}else E=!0};for(let X=0;X<n.length;X++){const L=n[X];if(L.type===6){const{loc:I,name:N,nameLoc:C,value:$}=L;let k=!0;if(N==="ref"&&(v=!0,V()),N==="is"&&(Lo(r)||$&&$.content.startsWith("vue:")||tn("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(He(se(N,!0,C),se($?$.content:"",k,$?$.loc:I)))}else{const{name:I,arg:N,exp:C,loc:$,modifiers:k}=L,oe=I==="bind",he=I==="on";if(I==="slot"){o||t.onError(xe(40,$));continue}if(I==="once"||I==="memo"||I==="is"||oe&&nn(N,"is")&&(Lo(r)||tn("COMPILER_IS_ON_ELEMENT",t))||he&&a)continue;if(oe&&nn(N,"key")&&(d=!0),he&&p&&N&&rt(N)&&Lt(N.content)==="vue:beforeUpdate"&&(d=!0,m=!0),oe&&nn(N,"ref")&&V(),!N&&(oe||he)){if(E=!0,C)if(oe){if(j(),tn("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(C);continue}V(),j(),f.push(C)}else j({type:14,loc:$,callee:t.helper(oo),arguments:o?[C]:[C,"true"]});else t.onError(xe(oe?34:35,$));continue}oe&&k.some(fe=>fe.content==="prop")&&(h|=32);const ee=t.directiveTransforms[I];if(ee){const{props:fe,needRuntime:Oe}=ee(L,e,t);!a&&fe.forEach(O),he&&N&&!rt(N)?j(vt(fe,s)):c.push(...fe),Oe&&(u.push(L),jo(Oe)&&_a.set(L,Oe))}else Is(I)||(u.push(L),p&&(d=!0,m=!0))}}let w;f.length?(j(),f.length>1?w=Ye(t.helper(Zn),f,s):w=f[0]):c.length&&(w=vt(Bi(c),s)),E?h|=16:(g&&!o&&(h|=2),y&&!o&&(h|=4),P.length&&(h|=8),S&&(h|=32));const U=(h===0||h===32)&&(v||x||u.length>0);if(!d&&U&&(h|=512),!t.inSSR&&w)switch(w.type){case 15:let X=-1,L=-1,I=!1;for(let $=0;$<w.properties.length;$++){const k=w.properties[$].key;rt(k)?k.content==="class"?X=$:k.content==="style"&&(L=$):k.isHandlerKey||(I=!0)}const N=w.properties[X],C=w.properties[L];I?w=Ye(t.helper(Tn),[w]):(N&&!rt(N.value)&&(N.value=Ye(t.helper(no),[N.value])),C&&(y||C.value.type===4&&C.value.content.trim()[0]==="["||C.value.type===17)&&(C.value=Ye(t.helper(ro),[C.value])));break;case 14:break;default:w=Ye(t.helper(Tn),[Ye(t.helper(Pn),[w])]);break}return{props:w,directives:u,patchFlag:h,dynamicPropNames:P,shouldUseBlock:d,needsPatch:U,isBlockRequired:m}}function Bi(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const a=i.key.content,r=t.get(a);r?(a==="style"||a==="class"||la(a))&&cc(r,i):(t.set(a,i),n.push(i))}return n}function cc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Wt([e.value,t.value],e.loc)}function ts(e,t){const n=[],o=_a.get(e);o?n.push(t.helperString(o)):(t.helper(_r),t.directives.add(e.name),n.push(Cn(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const a=se("true",!1,i);n.push(vt(e.modifiers.map(r=>He(r,a)),i))}return Wt(n,e.loc)}function uc(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}function Lo(e){return e==="component"||e==="Component"}const fc=(e,t)=>{if(qn(e)){const{children:n,loc:o}=e,{slotName:i,slotProps:a}=ns(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;a&&(r[2]=a,s=3),n.length&&(r[3]=an([],n,!1,!1,o),s=4),t.scopeId&&!t.slotted&&(s=5),r.splice(s),e.codegenNode=Ye(t.helper(zo),r,o)}};function ns(e,t){let n='"default"',o;const i=[];for(let a=0;a<e.props.length;a++){const r=e.props[a];if(r.type===6)r.value&&(r.name==="name"?n=JSON.stringify(r.value.content):(r.name=Lt(r.name),i.push(r)));else if(r.name==="bind"&&nn(r.arg,"name")){if(r.exp)n=r.exp;else if(r.arg&&r.arg.type===4){const s=Lt(r.arg.content);n=r.exp=se(s,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&rt(r.arg)&&(r.arg.content=Lt(r.arg.content)),i.push(r)}if(i.length>0){const{props:a,directives:r}=ui(e,t,i,!1,!1);o=a,r.length&&t.onError(xe(36,r[0].loc))}return{slotName:n,slotProps:o}}const fi=(e,t,n,o)=>{const{loc:i,modifiers:a,arg:r}=e;!e.exp&&!a.length&&n.onError(xe(35,i));let s;if(r.type===4)if(r.isStatic){let u=r.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const p=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Cs(Lt(u)):`on:${u}`;s=se(p,!0,r.loc)}else s=yt([`${n.helperString(Lr)}(`,r,")"]);else s=r,s.children.unshift(`${n.helperString(Lr)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const u=ei(l),p=!(u||xa(l)),d=l.content.includes(";");(p||c&&u)&&(l=yt([`${p?"$event":"(...args)"} => ${d?"{":"("}`,l,d?"}":")"]))}let f={props:[He(s,l||se("() => {}",!1,i))]};return o&&(f=o(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},rs=(e,t,n)=>{const{modifiers:o,loc:i}=e,a=e.arg;let{exp:r}=e;return r&&r.type===4&&!r.content.trim()&&(r=void 0),a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),o.some(s=>s.content==="camel")&&(a.type===4?a.isStatic?a.content=Lt(a.content):a.content=`${n.helperString(Mr)}(${a.content})`:(a.children.unshift(`${n.helperString(Mr)}(`),a.children.push(")"))),n.inSSR||(o.some(s=>s.content==="prop")&&ki(a,"."),o.some(s=>s.content==="attr")&&ki(a,"^")),{props:[He(a,r)]}},ki=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},dc=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let o,i=!1;for(let a=0;a<n.length;a++){const r=n[a];if(Sr(r)){i=!0;for(let s=a+1;s<n.length;s++){const l=n[s];if(Sr(l))o||(o=n[a]=yt([r],r.loc)),o.children.push(" + ",l),n.splice(s,1),s--;else{o=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(a=>a.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a<n.length;a++){const r=n[a];if(Sr(r)||r.type===8){const s=[];(r.type!==2||r.content!==" ")&&s.push(r),!t.ssr&&dt(r,t)===0&&s.push("1"),n[a]={type:12,content:r,loc:r.loc,codegenNode:Ye(t.helper(Jr),s)}}}}},Xi=new WeakSet,pc=(e,t)=>{if(e.type===1&&st(e,"once",!0))return Xi.has(e)||t.inVOnce||t.inSSR?void 0:(Xi.add(e),t.inVOnce=!0,t.helper(_n),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},di=(e,t,n)=>{const{exp:o,arg:i}=e;if(!o)return n.onError(xe(41,e.loc)),Fn();const a=o.loc.source.trim(),r=o.type===4?o.content:a,s=n.bindingMetadata[a];if(s==="props"||s==="props-aliased")return n.onError(xe(44,o.loc)),Fn();if(s==="literal-const"||s==="setup-const")return n.onError(xe(45,o.loc)),Fn();if(!r.trim()||!ei(o))return n.onError(xe(42,o.loc)),Fn();const l=i||se("modelValue",!0),c=i?rt(i)?`onUpdate:${Lt(i.content)}`:yt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;const u=n.isTS?"($event: any)":"$event";f=yt([`${u} => ((`,o,") = $event)"]);const p=[He(l,e.exp),He(c,f)];if(e.modifiers.length&&t.tagType===1){const d=e.modifiers.map(h=>h.content).map(h=>(rr(h)?h:JSON.stringify(h))+": true").join(", "),m=i?rt(i)?`${i.content}Modifiers`:yt([i,' + "Modifiers"']):"modelModifiers";p.push(He(m,se(`{ ${d} }`,!1,e.loc,2)))}return Fn(p)};function Fn(e=[]){return{props:e}}const hc=/[\w).+\-_$\]]/,mc=(e,t)=>{tn("COMPILER_FILTERS",t)&&(e.type===5?$r(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&$r(n.exp,t)}))};function $r(e,t){if(e.type===4)Ki(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];typeof o=="object"&&(o.type===4?Ki(o,t):o.type===8?$r(o,t):o.type===5&&$r(o.content,t))}}function Ki(e,t){const n=e.content;let o=!1,i=!1,a=!1,r=!1,s=0,l=0,c=0,f=0,u,p,d,m,h=[];for(d=0;d<n.length;d++)if(p=u,u=n.charCodeAt(d),o)u===39&&p!==92&&(o=!1);else if(i)u===34&&p!==92&&(i=!1);else if(a)u===96&&p!==92&&(a=!1);else if(r)u===47&&p!==92&&(r=!1);else if(u===124&&n.charCodeAt(d+1)!==124&&n.charCodeAt(d-1)!==124&&!s&&!l&&!c)m===void 0?(f=d+1,m=n.slice(0,d).trim()):v();else{switch(u){case 34:i=!0;break;case 39:o=!0;break;case 96:a=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(u===47){let g=d-1,y;for(;g>=0&&(y=n.charAt(g),y===" ");g--);(!y||!hc.test(y))&&(r=!0)}}m===void 0?m=n.slice(0,d).trim():f!==0&&v();function v(){h.push(n.slice(f,d).trim()),f=d+1}if(h.length){for(d=0;d<h.length;d++)m=vc(m,h[d],t);e.content=m,e.ast=void 0}}function vc(e,t,n){n.helper(qr);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${Cn(t,"filter")}(${e})`;{const i=t.slice(0,o),a=t.slice(o+1);return n.filters.add(i),`${Cn(i,"filter")}(${e}${a!==")"?","+a:a}`}}const Hi=new WeakSet,gc=(e,t)=>{if(e.type===1){const n=st(e,"memo");return!n||Hi.has(e)||t.inSSR?void 0:(Hi.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&so(o,t),e.codegenNode=Ye(t.helper(ao),[n.exp,an(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}},os=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const o=n.arg;if(o.type!==4||!o.isStatic)t.onError(xe(53,o.loc)),n.exp=se("",!0,o.loc);else{const i=Lt(o.content);(qo.test(i[0])||i[0]==="-")&&(n.exp=se(i,!1,o.loc))}}}};function is(e){return[[os,pc,rc,gc,ic,mc,fc,qa,Qa,dc],{on:fi,bind:rs,model:di}]}function as(e,t={}){const n=t.onError||Zo,o=t.mode==="module";t.prefixIdentifiers===!0?n(xe(48)):o&&n(xe(49));const i=!1;t.cacheHandlers&&n(xe(50)),t.scopeId&&!o&&n(xe(51));const a=Mt({},t,{prefixIdentifiers:i}),r=Ge(e)?ai(e,a):e,[s,l]=is();return Xa(r,Mt({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:Mt({},l,t.directiveTransforms||{})})),Ha(r,a)}const yc={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},ss=()=>({props:[]});/**
|
|
14
|
+
* @vue/compiler-dom v3.5.42
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const pi=Symbol(""),hi=Symbol(""),mi=Symbol(""),vi=Symbol(""),Ur=Symbol(""),gi=Symbol(""),yi=Symbol(""),Ei=Symbol(""),Si=Symbol(""),bi=Symbol("");va({[pi]:"vModelRadio",[hi]:"vModelCheckbox",[mi]:"vModelText",[vi]:"vModelSelect",[Ur]:"vModelDynamic",[gi]:"withModifiers",[yi]:"withKeys",[Ei]:"vShow",[Si]:"Transition",[bi]:"TransitionGroup"});let pn;function Ec(e,t=!1){return pn||(pn=document.createElement("div")),t?(pn.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,pn.children[0].getAttribute("foo")):(pn.innerHTML=e,pn.textContent)}const Ti={parseMode:"html",isVoidTag:As,isNativeTag:e=>xs(e)||Ps(e)||Ds(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Ec,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Si;if(e==="TransitionGroup"||e==="transition-group")return bi},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(o=0);if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},ls=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:se("style",!0,t.loc),exp:Sc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Sc=(e,t)=>{const n=Rs(e);return se(JSON.stringify(n),!1,t,3)};function Ft(e,t){return xe(e,t)}const bc={X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},Tc={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Oc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Ft(54,i)),t.children.length&&(n.onError(Ft(55,i)),t.children.length=0),{props:[He(se("innerHTML",!0,i),o||se("",!0))]}},Ic=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Ft(56,i)),t.children.length&&(n.onError(Ft(57,i)),t.children.length=0),{props:[He(se("textContent",!0),o?dt(o,n)>0?o:Ye(n.helperString(nr),[o],i):se("",!0))]}},Nc=(e,t,n)=>{const o=di(e,t,n);if(!o.props.length||t.tagType===1)return o;e.arg&&n.onError(Ft(59,e.arg.loc));const{tag:i}=t,a=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||a){let r=mi,s=!1;if(i==="input"||a){const l=or(t,"type");if(l){if(l.type===7)r=Ur;else if(l.value)switch(l.value.content){case"radio":r=pi;break;case"checkbox":r=hi;break;case"file":s=!0,n.onError(Ft(60,e.loc));break}}else Da(t)&&(r=Ur)}else i==="select"&&(r=vi);s||(o.needRuntime=n.helper(r))}else n.onError(Ft(58,e.loc));return o.props=o.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),o},Cc=Hr("passive,once,capture"),Ac=Hr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),xc=Hr("left,right"),cs=Hr("onkeyup,onkeydown,onkeypress"),Pc=(e,t,n,o)=>{const i=[],a=[],r=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&In("COMPILER_V_ON_NATIVE",n)||Cc(l)?r.push(l):xc(l)?rt(e)?cs(e.content.toLowerCase())?i.push(l):a.push(l):(i.push(l),a.push(l)):Ac(l)?a.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:r}},Gi=(e,t)=>rt(e)&&e.content.toLowerCase()==="onclick"?se(t,!0):e.type!==4?yt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Dc=(e,t,n)=>fi(e,t,n,o=>{const{modifiers:i}=e;if(!i.length)return o;let{key:a,value:r}=o.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=Pc(a,i,n,e.loc);if(l.includes("right")&&(a=Gi(a,"onContextmenu")),l.includes("middle")&&(a=Gi(a,"onMouseup")),l.length&&(r=Ye(n.helper(gi),[r,JSON.stringify(l)])),s.length&&(!rt(a)||cs(a.content.toLowerCase()))&&(r=Ye(n.helper(yi),[r,JSON.stringify(s)])),c.length){const f=c.map(aa).join("");a=rt(a)?se(`${a.content}${f}`,!0):yt(["(",a,`) + "${f}"`])}return{props:[He(a,r)]}}),Rc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Ft(62,i)),{props:[],needRuntime:n.helper(Ei)}},Mc=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},us=[ls],fs={cloak:ss,html:Oc,text:Ic,model:Nc,on:Dc,show:Rc};function Lc(e,t={}){return as(e,Mt({},Ti,t,{nodeTransforms:[Mc,...us,...t.nodeTransforms||[]],directiveTransforms:Mt({},fs,t.directiveTransforms||{}),transformHoist:null}))}function wc(e,t={}){return ai(e,Mt({},Ti,t))}const Vc=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:Ho,BindingTypes:yc,CAMELIZE:Mr,CAPITALIZE:fa,CREATE_BLOCK:Go,CREATE_COMMENT:xn,CREATE_ELEMENT_BLOCK:Wo,CREATE_ELEMENT_VNODE:zr,CREATE_SLOTS:Jo,CREATE_STATIC:Yo,CREATE_TEXT:Jr,CREATE_VNODE:Yr,CompilerDeprecationTypes:tl,ConstantTypes:Ys,DOMDirectiveTransforms:fs,DOMErrorCodes:bc,DOMErrorMessages:Tc,DOMNodeTransforms:us,ElementTypes:Ws,ErrorCodes:ol,FRAGMENT:bn,GUARD_REACTIVE_PROPS:Pn,IS_MEMO_SAME:Qo,IS_REF:ma,KEEP_ALIVE:Qn,MERGE_PROPS:Zn,NORMALIZE_CLASS:no,NORMALIZE_PROPS:Tn,NORMALIZE_STYLE:ro,Namespaces:Hs,NodeTypes:Gs,OPEN_BLOCK:zt,POP_SCOPE_ID:pa,PUSH_SCOPE_ID:da,RENDER_LIST:to,RENDER_SLOT:zo,RESOLVE_COMPONENT:Qr,RESOLVE_DIRECTIVE:_r,RESOLVE_DYNAMIC_COMPONENT:Zr,RESOLVE_FILTER:qr,SET_BLOCK_TRACKING:_n,SUSPENSE:Wr,TELEPORT:Sn,TO_DISPLAY_STRING:nr,TO_HANDLERS:oo,TO_HANDLER_KEY:Lr,TRANSITION:Si,TRANSITION_GROUP:bi,TS_NODE_TYPES:Oa,UNREF:ha,V_MODEL_CHECKBOX:hi,V_MODEL_DYNAMIC:Ur,V_MODEL_RADIO:pi,V_MODEL_SELECT:vi,V_MODEL_TEXT:mi,V_ON_WITH_KEYS:yi,V_ON_WITH_MODIFIERS:gi,V_SHOW:Ei,WITH_CTX:io,WITH_DIRECTIVES:eo,WITH_MEMO:ao,advancePositionWithClone:Tl,advancePositionWithMutation:Pa,assert:Ol,baseCompile:as,baseParse:ai,buildDirectiveArgs:ts,buildProps:ui,buildSlots:Za,checkCompatEnabled:In,compile:Lc,convertToBlock:so,createArrayExpression:Wt,createAssignmentExpression:Zs,createBlockStatement:Ea,createCacheExpression:ya,createCallExpression:Ye,createCompilerError:xe,createCompoundExpression:yt,createConditionalExpression:wr,createDOMCompilerError:Ft,createForLoopParams:Fr,createFunctionExpression:an,createIfStatement:Qs,createInterpolation:zs,createObjectExpression:vt,createObjectProperty:He,createReturnStatement:qs,createRoot:ga,createSequenceExpression:_s,createSimpleExpression:se,createStructuralDirectiveTransform:si,createTemplateLiteral:Js,createTransformContext:ka,createVNodeCall:On,errorMessages:il,extractIdentifiers:At,findDir:st,findProp:or,forAliasRE:Ma,generate:Ha,generateCodeFrame:Ms,getBaseTransformPreset:is,getConstantType:dt,getMemoedVNodeCall:Ra,getVNodeBlockHelper:ln,getVNodeHelper:sn,hasDynamicKeyVBind:Da,hasScopeRef:It,helperNameMap:on,injectProp:er,isAllWhitespace:ri,isCommentOrWhitespace:oi,isCoreComponent:_o,isFnExpression:xa,isFnExpressionBrowser:Aa,isFnExpressionNode:bl,isFunctionType:hl,isInDestructureAssignment:ll,isInNewExpression:cl,isMemberExpression:ei,isMemberExpressionBrowser:Ca,isMemberExpressionNode:El,isReferencedIdentifier:sl,isSimpleIdentifier:rr,isSlotOutlet:qn,isStaticArgOf:nn,isStaticExp:rt,isStaticProperty:Ta,isStaticPropertyKey:ml,isTemplateNode:Nn,isText:Sr,isVPre:Po,isVSlot:ti,isWhitespaceText:lo,locStub:Je,noopDirectiveTransform:ss,parse:wc,parserOptions:Ti,processExpression:Ir,processFor:Ja,processIf:za,processSlotOutlet:ns,registerRuntimeHelpers:va,resolveComponentType:es,stringifyExpression:Ya,toValidAssetId:Cn,trackSlotScopes:Qa,trackVForSlotScopes:sc,transform:Xa,transformBind:rs,transformElement:qa,transformExpression:nc,transformModel:di,transformOn:fi,transformStyle:ls,transformVBindShorthand:os,traverseNode:ir,unwrapTSNode:Ia,validFirstIdentCharRE:qo,walkBlockDeclarations:ba,walkFunctionParams:ul,walkIdentifiers:al,warnDeprecation:rl},Symbol.toStringTag,{value:"Module"})),Fc=Gr(Vc),$c=Gr(Ls),Uc=Gr(ws);/**
|
|
18
|
+
* vue v3.5.42
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/var Wi;function jc(){return Wi||(Wi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Fc,n=$c,o=Uc;function i(l){var c=Object.create(null);if(l)for(var f in l)c[f]=l[f];return c.default=l,Object.freeze(c)}var a=i(n);const r=Object.create(null);function s(l,c){if(!o.isString(l))if(l.nodeType)l=l.innerHTML;else return o.NOOP;const f=o.genCacheKey(l,c),u=r[f];if(u)return u;if(l[0]==="#"){const h=document.querySelector(l);l=h?h.innerHTML:""}const p=o.extend({hoistStatic:!0,onError:void 0,onWarn:o.NOOP},c);!p.isCustomElement&&typeof customElements<"u"&&(p.isCustomElement=h=>!!customElements.get(h));const{code:d}=t.compile(l,p),m=new Function("Vue",d)(a);return m._rc=!0,r[f]=m}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(mo)),mo}var Yi;function Bc(){return Yi||(Yi=1,ho.exports=jc()),ho.exports}/**!
|
|
22
|
+
* Sortable 1.14.0
|
|
23
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
24
|
+
* @author owenm <owen23355@gmail.com>
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zi(Object(n),!0).forEach(function(o){kc(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Cr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cr=function(t){return typeof t}:Cr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Et.apply(this,arguments)}function Xc(e,t){if(e==null)return{};var n={},o=Object.keys(e),i,a;for(a=0;a<o.length;a++)i=o[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Kc(e,t){if(e==null)return{};var n=Xc(e,t),o,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)o=a[i],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Hc(e){return Gc(e)||Wc(e)||Yc(e)||zc()}function Gc(e){if(Array.isArray(e))return wo(e)}function Wc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yc(e,t){if(e){if(typeof e=="string")return wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(e,t)}}function wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function zc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Jc="1.14.0";function $t(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ut=$t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),sr=$t(/Edge/i),Ji=$t(/firefox/i),Gn=$t(/safari/i)&&!$t(/chrome/i)&&!$t(/android/i),ds=$t(/iP(ad|od|hone)/i),Qc=$t(/chrome/i)&&$t(/android/i),ps={capture:!1,passive:!1};function ve(e,t,n){e.addEventListener(t,n,!Ut&&ps)}function pe(e,t,n){e.removeEventListener(t,n,!Ut&&ps)}function jr(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Zc(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nt(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&jr(e,t):jr(e,t))||o&&e===n)return e;if(e===n)break}while(e=Zc(e))}return null}var Qi=/\s+/g;function Ve(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Qi," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Qi," ")}}function W(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function rn(e,t){var n="";if(typeof e=="string")n=e;else do{var o=W(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function hs(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,a=o.length;if(n)for(;i<a;i++)n(o[i],i);return o}return[]}function xt(){var e=document.scrollingElement;return e||document.documentElement}function Le(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,r,s,l,c,f,u;if(e!==window&&e.parentNode&&e!==xt()?(a=e.getBoundingClientRect(),r=a.top,s=a.left,l=a.bottom,c=a.right,f=a.height,u=a.width):(r=0,s=0,l=window.innerHeight,c=window.innerWidth,f=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Ut))do if(i&&i.getBoundingClientRect&&(W(i,"transform")!=="none"||n&&W(i,"position")!=="static")){var p=i.getBoundingClientRect();r-=p.top+parseInt(W(i,"border-top-width")),s-=p.left+parseInt(W(i,"border-left-width")),l=r+a.height,c=s+a.width;break}while(i=i.parentNode);if(o&&e!==window){var d=rn(i||e),m=d&&d.a,h=d&&d.d;d&&(r/=h,s/=m,u/=m,f/=h,l=r+f,c=s+u)}return{top:r,left:s,bottom:l,right:c,width:u,height:f}}}function Zi(e,t,n){for(var o=Gt(e,!0),i=Le(e)[t];o;){var a=Le(o)[n],r=void 0;if(r=i>=a,!r)return o;if(o===xt())break;o=Gt(o,!1)}return!1}function An(e,t,n,o){for(var i=0,a=0,r=e.children;a<r.length;){if(r[a].style.display!=="none"&&r[a]!==q.ghost&&(o||r[a]!==q.dragged)&&Nt(r[a],n.draggable,e,!1)){if(i===t)return r[a];i++}a++}return null}function Oi(e,t){for(var n=e.lastElementChild;n&&(n===q.ghost||W(n,"display")==="none"||t&&!jr(n,t));)n=n.previousElementSibling;return n||null}function je(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==q.clone&&(!t||jr(e,t))&&n++;return n}function _i(e){var t=0,n=0,o=xt();if(e)do{var i=rn(e),a=i.a,r=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*r}while(e!==o&&(e=e.parentNode));return[t,n]}function _c(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}return-1}function Gt(e,t){if(!e||!e.getBoundingClientRect)return xt();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=W(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return xt();if(o||t)return n;o=!0}}while(n=n.parentNode);return xt()}function qc(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function go(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Wn;function ms(e,t){return function(){if(!Wn){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),Wn=setTimeout(function(){Wn=void 0},t)}}}function eu(){clearTimeout(Wn),Wn=void 0}function vs(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ii(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function qi(e,t){W(e,"position","absolute"),W(e,"top",t.top),W(e,"left",t.left),W(e,"width",t.width),W(e,"height",t.height)}function yo(e){W(e,"position",""),W(e,"top",""),W(e,"left",""),W(e,"width",""),W(e,"height","")}var ot="Sortable"+new Date().getTime();function tu(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(W(i,"display")==="none"||i===q.ghost)){e.push({target:i,rect:Le(i)});var a=Pt({},e[e.length-1].rect);if(i.thisAnimationDuration){var r=rn(i,!0);r&&(a.top-=r.f,a.left-=r.e)}i.fromRect=a}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(_c(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var a=!1,r=0;e.forEach(function(s){var l=0,c=s.target,f=c.fromRect,u=Le(c),p=c.prevFromRect,d=c.prevToRect,m=s.rect,h=rn(c,!0);h&&(u.top-=h.f,u.left-=h.e),c.toRect=u,c.thisAnimationDuration&&go(p,u)&&!go(f,u)&&(m.top-u.top)/(m.left-u.left)===(f.top-u.top)/(f.left-u.left)&&(l=ru(m,p,d,i.options)),go(u,f)||(c.prevFromRect=f,c.prevToRect=u,l||(l=i.options.animation),i.animate(c,m,u,l)),l&&(a=!0,r=Math.max(r,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),e=[]},animate:function(o,i,a,r){if(r){W(o,"transition",""),W(o,"transform","");var s=rn(this.el),l=s&&s.a,c=s&&s.d,f=(i.left-a.left)/(l||1),u=(i.top-a.top)/(c||1);o.animatingX=!!f,o.animatingY=!!u,W(o,"transform","translate3d("+f+"px,"+u+"px,0)"),this.forRepaintDummy=nu(o),W(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),W(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){W(o,"transition",""),W(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function nu(e){return e.offsetWidth}function ru(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var hn=[],Eo={initializeByDefault:!0},lr={mount:function(t){for(var n in Eo)Eo.hasOwnProperty(n)&&!(n in t)&&(t[n]=Eo[n]);hn.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),hn.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var a=t+"Global";hn.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][a]&&n[r.pluginName][a](Pt({sortable:n},o)),n.options[r.pluginName]&&n[r.pluginName][t]&&n[r.pluginName][t](Pt({sortable:n},o)))})},initializePlugins:function(t,n,o,i){hn.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var c=new s(t,n,t.options);c.sortable=t,c.options=t.options,t[l]=c,Et(o,c.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var r=this.modifyOption(t,a,t.options[a]);typeof r<"u"&&(t.options[a]=r)}},getEventProperties:function(t,n){var o={};return hn.forEach(function(i){typeof i.eventProperties=="function"&&Et(o,i.eventProperties.call(n[i.pluginName],t))}),o},modifyOption:function(t,n,o){var i;return hn.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(i=a.optionListeners[n].call(t[a.pluginName],o))}),i}};function Bn(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,a=e.cloneEl,r=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,f=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,d=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[ot],!!t){var h,v=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ut&&!sr?h=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(o,!0,!0)),h.to=r||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=l,h.newIndex=c,h.oldDraggableIndex=f,h.newDraggableIndex=u,h.originalEvent=p,h.pullMode=d?d.lastPutMode:void 0;var y=Pt(Pt({},m),lr.getEventProperties(o,t));for(var S in y)h[S]=y[S];n&&n.dispatchEvent(h),v[g]&&v[g].call(t,h)}}var ou=["evt"],ct=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,a=Kc(o,ou);lr.pluginEvent.bind(q)(t,n,Pt({dragEl:B,parentEl:$e,ghostEl:le,rootEl:Me,nextEl:qt,lastDownEl:Ar,cloneEl:Ue,cloneHidden:Kt,dragStarted:kn,putSortable:_e,activeSortable:q.active,originalEvent:i,oldIndex:En,oldDraggableIndex:Yn,newIndex:ht,newDraggableIndex:Xt,hideGhostForTarget:Ss,unhideGhostForTarget:bs,cloneNowHidden:function(){Kt=!0},cloneNowShown:function(){Kt=!1},dispatchSortableEvent:function(s){at({sortable:n,name:s,originalEvent:i})}},a))};function at(e){Bn(Pt({putSortable:_e,cloneEl:Ue,targetEl:B,rootEl:Me,oldIndex:En,oldDraggableIndex:Yn,newIndex:ht,newDraggableIndex:Xt},e))}var B,$e,le,Me,qt,Ar,Ue,Kt,En,ht,Yn,Xt,pr,_e,gn=!1,Br=!1,kr=[],Qt,Tt,So,bo,ea,ta,kn,mn,zn,Jn=!1,hr=!1,xr,tt,To=[],Vo=!1,Xr=[],uo=typeof document<"u",mr=ds,na=sr||Ut?"cssFloat":"float",iu=uo&&!Qc&&!ds&&"draggable"in document.createElement("div"),gs=(function(){if(uo){if(Ut)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),ys=function(t,n){var o=W(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),a=An(t,0,n),r=An(t,1,n),s=a&&W(a),l=r&&W(r),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Le(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Le(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var u=s.float==="left"?"left":"right";return r&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=i&&o[na]==="none"||r&&o[na]==="none"&&c+f>i)?"vertical":"horizontal"},au=function(t,n,o){var i=o?t.left:t.top,a=o?t.right:t.bottom,r=o?t.width:t.height,s=o?n.left:n.top,l=o?n.right:n.bottom,c=o?n.width:n.height;return i===s||a===l||i+r/2===s+c/2},su=function(t,n){var o;return kr.some(function(i){var a=i[ot].options.emptyInsertThreshold;if(!(!a||Oi(i))){var r=Le(i),s=t>=r.left-a&&t<=r.right+a,l=n>=r.top-a&&n<=r.bottom+a;if(s&&l)return o=i}}),o},Es=function(t){function n(a,r){return function(s,l,c,f){var u=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(a==null&&(r||u))return!0;if(a==null||a===!1)return!1;if(r&&a==="clone")return a;if(typeof a=="function")return n(a(s,l,c,f),r)(s,l,c,f);var p=(r?s:l).options.group.name;return a===!0||typeof a=="string"&&a===p||a.join&&a.indexOf(p)>-1}}var o={},i=t.group;(!i||Cr(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,t.group=o},Ss=function(){!gs&&le&&W(le,"display","none")},bs=function(){!gs&&le&&W(le,"display","")};uo&&document.addEventListener("click",function(e){if(Br)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Br=!1,!1},!0);var Zt=function(t){if(B){t=t.touches?t.touches[0]:t;var n=su(t.clientX,t.clientY);if(n){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[ot]._onDragOver(o)}}},lu=function(t){B&&B.parentNode[ot]._isOutsideThisEl(t.target)};function q(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Et({},t),e[ot]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ys(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,s){r.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:q.supportPointer!==!1&&"PointerEvent"in window&&!Gn,emptyInsertThreshold:5};lr.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Es(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:iu,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ve(e,"pointerdown",this._onTapStart):(ve(e,"mousedown",this._onTapStart),ve(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ve(e,"dragover",this),ve(e,"dragenter",this)),kr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Et(this,tu())}q.prototype={constructor:q,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(mn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,B):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,i=this.options,a=i.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,f=i.filter;if(vu(o),!B&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Gn&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Nt(l,i.draggable,o,!1),!(l&&l.animated)&&Ar!==l)){if(En=je(l),Yn=je(l,i.draggable),typeof f=="function"){if(f.call(this,t,l,this)){at({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:o,fromEl:o}),ct("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(u){if(u=Nt(c,u.trim(),o,!1),u)return at({sortable:n,rootEl:u,name:"filter",targetEl:l,fromEl:o,toEl:o}),ct("filter",n,{evt:t}),!0}),f)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!Nt(c,i.handle,o,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,o){var i=this,a=i.el,r=i.options,s=a.ownerDocument,l;if(o&&!B&&o.parentNode===a){var c=Le(o);if(Me=a,B=o,$e=B.parentNode,qt=B.nextSibling,Ar=o,pr=r.group,q.dragged=B,Qt={target:B,clientX:(n||t).clientX,clientY:(n||t).clientY},ea=Qt.clientX-c.left,ta=Qt.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,B.style["will-change"]="all",l=function(){if(ct("delayEnded",i,{evt:t}),q.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Ji&&i.nativeDraggable&&(B.draggable=!0),i._triggerDragStart(t,n),at({sortable:i,name:"choose",originalEvent:t}),Ve(B,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){hs(B,f.trim(),Oo)}),ve(s,"dragover",Zt),ve(s,"mousemove",Zt),ve(s,"touchmove",Zt),ve(s,"mouseup",i._onDrop),ve(s,"touchend",i._onDrop),ve(s,"touchcancel",i._onDrop),Ji&&this.nativeDraggable&&(this.options.touchStartThreshold=4,B.draggable=!0),ct("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(sr||Ut))){if(q.eventCanceled){this._onDrop();return}ve(s,"mouseup",i._disableDelayedDrag),ve(s,"touchend",i._disableDelayedDrag),ve(s,"touchcancel",i._disableDelayedDrag),ve(s,"mousemove",i._delayedDragTouchMoveHandler),ve(s,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&ve(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,r.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){B&&Oo(B),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;pe(t,"mouseup",this._disableDelayedDrag),pe(t,"touchend",this._disableDelayedDrag),pe(t,"touchcancel",this._disableDelayedDrag),pe(t,"mousemove",this._delayedDragTouchMoveHandler),pe(t,"touchmove",this._delayedDragTouchMoveHandler),pe(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?ve(document,"pointermove",this._onTouchMove):n?ve(document,"touchmove",this._onTouchMove):ve(document,"mousemove",this._onTouchMove):(ve(B,"dragend",this),ve(Me,"dragstart",this._onDragStart));try{document.selection?Pr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(gn=!1,Me&&B){ct("dragStarted",this,{evt:n}),this.nativeDraggable&&ve(document,"dragover",lu);var o=this.options;!t&&Ve(B,o.dragClass,!1),Ve(B,o.ghostClass,!0),q.active=this,t&&this._appendGhost(),at({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Tt){this._lastX=Tt.clientX,this._lastY=Tt.clientY,Ss();for(var t=document.elementFromPoint(Tt.clientX,Tt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Tt.clientX,Tt.clientY),t!==n);)n=t;if(B.parentNode[ot]._isOutsideThisEl(t),n)do{if(n[ot]){var o=void 0;if(o=n[ot]._onDragOver({clientX:Tt.clientX,clientY:Tt.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);bs()}},_onTouchMove:function(t){if(Qt){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,r=le&&rn(le,!0),s=le&&r&&r.a,l=le&&r&&r.d,c=mr&&tt&&_i(tt),f=(a.clientX-Qt.clientX+i.x)/(s||1)+(c?c[0]-To[0]:0)/(s||1),u=(a.clientY-Qt.clientY+i.y)/(l||1)+(c?c[1]-To[1]:0)/(l||1);if(!q.active&&!gn){if(o&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(le){r?(r.e+=f-(So||0),r.f+=u-(bo||0)):r={a:1,b:0,c:0,d:1,e:f,f:u};var p="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");W(le,"webkitTransform",p),W(le,"mozTransform",p),W(le,"msTransform",p),W(le,"transform",p),So=f,bo=u,Tt=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!le){var t=this.options.fallbackOnBody?document.body:Me,n=Le(B,!0,mr,!0,t),o=this.options;if(mr){for(tt=t;W(tt,"position")==="static"&&W(tt,"transform")==="none"&&tt!==document;)tt=tt.parentNode;tt!==document.body&&tt!==document.documentElement?(tt===document&&(tt=xt()),n.top+=tt.scrollTop,n.left+=tt.scrollLeft):tt=xt(),To=_i(tt)}le=B.cloneNode(!0),Ve(le,o.ghostClass,!1),Ve(le,o.fallbackClass,!0),Ve(le,o.dragClass,!0),W(le,"transition",""),W(le,"transform",""),W(le,"box-sizing","border-box"),W(le,"margin",0),W(le,"top",n.top),W(le,"left",n.left),W(le,"width",n.width),W(le,"height",n.height),W(le,"opacity","0.8"),W(le,"position",mr?"absolute":"fixed"),W(le,"zIndex","100000"),W(le,"pointerEvents","none"),q.ghost=le,t.appendChild(le),W(le,"transform-origin",ea/parseInt(le.style.width)*100+"% "+ta/parseInt(le.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,a=o.options;if(ct("dragStart",this,{evt:t}),q.eventCanceled){this._onDrop();return}ct("setupClone",this),q.eventCanceled||(Ue=Ii(B),Ue.draggable=!1,Ue.style["will-change"]="",this._hideClone(),Ve(Ue,this.options.chosenClass,!1),q.clone=Ue),o.cloneId=Pr(function(){ct("clone",o),!q.eventCanceled&&(o.options.removeCloneOnHide||Me.insertBefore(Ue,B),o._hideClone(),at({sortable:o,name:"clone"}))}),!n&&Ve(B,a.dragClass,!0),n?(Br=!0,o._loopId=setInterval(o._emulateDragOver,50)):(pe(document,"mouseup",o._onDrop),pe(document,"touchend",o._onDrop),pe(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(o,i,B)),ve(document,"drop",o),W(B,"transform","translateZ(0)")),gn=!0,o._dragStartId=Pr(o._dragStarted.bind(o,n,t)),ve(document,"selectstart",o),kn=!0,Gn&&W(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,i,a,r,s=this.options,l=s.group,c=q.active,f=pr===l,u=s.sort,p=_e||c,d,m=this,h=!1;if(Vo)return;function v(k,oe){ct(k,m,Pt({evt:t,isOwner:f,axis:d?"vertical":"horizontal",revert:r,dragRect:i,targetRect:a,canSort:u,fromSortable:p,target:o,completed:y,onMove:function(ee,fe){return vr(Me,n,B,i,ee,Le(ee),t,fe)},changed:S},oe))}function g(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function y(k){return v("dragOverCompleted",{insertion:k}),k&&(f?c._hideClone():c._showClone(m),m!==p&&(Ve(B,_e?_e.options.ghostClass:c.options.ghostClass,!1),Ve(B,s.ghostClass,!0)),_e!==m&&m!==q.active?_e=m:m===q.active&&_e&&(_e=null),p===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===B&&!B.animated||o===n&&!o.animated)&&(mn=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(B.parentNode[ot]._isOutsideThisEl(t.target),!k&&Zt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function S(){ht=je(B),Xt=je(B,s.draggable),at({sortable:m,name:"change",toEl:n,newIndex:ht,newDraggableIndex:Xt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=Nt(o,s.draggable,n,!0),v("dragOver"),q.eventCanceled)return h;if(B.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Br=!1,c&&!s.disabled&&(f?u||(r=$e!==Me):_e===this||(this.lastPutMode=pr.checkPull(this,c,B,t))&&l.checkPut(this,c,B,t))){if(d=this._getDirection(t,o)==="vertical",i=Le(B),v("dragOverValid"),q.eventCanceled)return h;if(r)return $e=Me,g(),this._hideClone(),v("revert"),q.eventCanceled||(qt?Me.insertBefore(B,qt):Me.appendChild(B)),y(!0);var E=Oi(n,s.draggable);if(!E||du(t,d,this)&&!E.animated){if(E===B)return y(!1);if(E&&n===t.target&&(o=E),o&&(a=Le(o)),vr(Me,n,B,i,o,a,t,!!o)!==!1)return g(),n.appendChild(B),$e=n,S(),y(!0)}else if(E&&fu(t,d,this)){var x=An(n,0,s,!0);if(x===B)return y(!1);if(o=x,a=Le(o),vr(Me,n,B,i,o,a,t,!1)!==!1)return g(),n.insertBefore(B,x),$e=n,S(),y(!0)}else if(o.parentNode===n){a=Le(o);var P=0,j,V=B.parentNode!==n,O=!au(B.animated&&B.toRect||i,o.animated&&o.toRect||a,d),w=d?"top":"left",U=Zi(o,"top","top")||Zi(B,"top","top"),X=U?U.scrollTop:void 0;mn!==o&&(j=a[w],Jn=!1,hr=!O&&s.invertSwap||V),P=pu(t,o,a,d,O?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,hr,mn===o);var L;if(P!==0){var I=je(B);do I-=P,L=$e.children[I];while(L&&(W(L,"display")==="none"||L===le))}if(P===0||L===o)return y(!1);mn=o,zn=P;var N=o.nextElementSibling,C=!1;C=P===1;var $=vr(Me,n,B,i,o,a,t,C);if($!==!1)return($===1||$===-1)&&(C=$===1),Vo=!0,setTimeout(uu,30),g(),C&&!N?n.appendChild(B):o.parentNode.insertBefore(B,C?N:o),U&&vs(U,0,X-U.scrollTop),$e=B.parentNode,j!==void 0&&!hr&&(xr=Math.abs(j-Le(o)[w])),S(),y(!0)}if(n.contains(B))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pe(document,"mousemove",this._onTouchMove),pe(document,"touchmove",this._onTouchMove),pe(document,"pointermove",this._onTouchMove),pe(document,"dragover",Zt),pe(document,"mousemove",Zt),pe(document,"touchmove",Zt)},_offUpEvents:function(){var t=this.el.ownerDocument;pe(t,"mouseup",this._onDrop),pe(t,"touchend",this._onDrop),pe(t,"pointerup",this._onDrop),pe(t,"touchcancel",this._onDrop),pe(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(ht=je(B),Xt=je(B,o.draggable),ct("drop",this,{evt:t}),$e=B&&B.parentNode,ht=je(B),Xt=je(B,o.draggable),q.eventCanceled){this._nulling();return}gn=!1,hr=!1,Jn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fo(this.cloneId),Fo(this._dragStartId),this.nativeDraggable&&(pe(document,"drop",this),pe(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Gn&&W(document.body,"user-select",""),W(B,"transform",""),t&&(kn&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(Me===$e||_e&&_e.lastPutMode!=="clone")&&Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),B&&(this.nativeDraggable&&pe(B,"dragend",this),Oo(B),B.style["will-change"]="",kn&&!gn&&Ve(B,_e?_e.options.ghostClass:this.options.ghostClass,!1),Ve(B,this.options.chosenClass,!1),at({sortable:this,name:"unchoose",toEl:$e,newIndex:null,newDraggableIndex:null,originalEvent:t}),Me!==$e?(ht>=0&&(at({rootEl:$e,name:"add",toEl:$e,fromEl:Me,originalEvent:t}),at({sortable:this,name:"remove",toEl:$e,originalEvent:t}),at({rootEl:$e,name:"sort",toEl:$e,fromEl:Me,originalEvent:t}),at({sortable:this,name:"sort",toEl:$e,originalEvent:t})),_e&&_e.save()):ht!==En&&ht>=0&&(at({sortable:this,name:"update",toEl:$e,originalEvent:t}),at({sortable:this,name:"sort",toEl:$e,originalEvent:t})),q.active&&((ht==null||ht===-1)&&(ht=En,Xt=Yn),at({sortable:this,name:"end",toEl:$e,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ct("nulling",this),Me=B=$e=le=qt=Ue=Ar=Kt=Qt=Tt=kn=ht=Xt=En=Yn=mn=zn=_e=pr=q.dragged=q.ghost=q.clone=q.active=null,Xr.forEach(function(t){t.checked=!0}),Xr.length=So=bo=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":B&&(this._onDragOver(t),cu(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,i=0,a=o.length,r=this.options;i<a;i++)n=o[i],Nt(n,r.draggable,this.el,!1)&&t.push(n.getAttribute(r.dataIdAttr)||mu(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(a,r){var s=i.children[r];Nt(s,this.options.draggable,i,!1)&&(o[a]=s)},this),n&&this.captureAnimationState(),t.forEach(function(a){o[a]&&(i.removeChild(o[a]),i.appendChild(o[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Nt(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var i=lr.modifyOption(this,t,n);typeof i<"u"?o[t]=i:o[t]=n,t==="group"&&Es(o)},destroy:function(){ct("destroy",this);var t=this.el;t[ot]=null,pe(t,"mousedown",this._onTapStart),pe(t,"touchstart",this._onTapStart),pe(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(pe(t,"dragover",this),pe(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),kr.splice(kr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Kt){if(ct("hideClone",this),q.eventCanceled)return;W(Ue,"display","none"),this.options.removeCloneOnHide&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),Kt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Kt){if(ct("showClone",this),q.eventCanceled)return;B.parentNode==Me&&!this.options.group.revertClone?Me.insertBefore(Ue,B):qt?Me.insertBefore(Ue,qt):Me.appendChild(Ue),this.options.group.revertClone&&this.animate(B,Ue),W(Ue,"display",""),Kt=!1}}};function cu(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function vr(e,t,n,o,i,a,r,s){var l,c=e[ot],f=c.options.onMove,u;return window.CustomEvent&&!Ut&&!sr?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=i||t,l.relatedRect=a||Le(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),f&&(u=f.call(c,l,r)),u}function Oo(e){e.draggable=!1}function uu(){Vo=!1}function fu(e,t,n){var o=Le(An(n.el,0,n.options,!0)),i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function du(e,t,n){var o=Le(Oi(n.el,n.options.draggable)),i=10;return t?e.clientX>o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function pu(e,t,n,o,i,a,r,s){var l=o?e.clientY:e.clientX,c=o?n.height:n.width,f=o?n.top:n.left,u=o?n.bottom:n.right,p=!1;if(!r){if(s&&xr<c*i){if(!Jn&&(zn===1?l>f+c*a/2:l<u-c*a/2)&&(Jn=!0),Jn)p=!0;else if(zn===1?l<f+xr:l>u-xr)return-zn}else if(l>f+c*(1-i)/2&&l<u-c*(1-i)/2)return hu(t)}return p=p||r,p&&(l<f+c*a/2||l>u-c*a/2)?l>f+c/2?1:-1:0}function hu(e){return je(B)<je(e)?1:-1}function mu(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function vu(e){Xr.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Xr.push(o)}}function Pr(e){return setTimeout(e,0)}function Fo(e){return clearTimeout(e)}uo&&ve(document,"touchmove",function(e){(q.active||gn)&&e.cancelable&&e.preventDefault()});q.utils={on:ve,off:pe,css:W,find:hs,is:function(t,n){return!!Nt(t,n,t,!1)},extend:qc,throttle:ms,closest:Nt,toggleClass:Ve,clone:Ii,index:je,nextTick:Pr,cancelNextTick:Fo,detectDirection:ys,getChild:An};q.get=function(e){return e[ot]};q.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(q.utils=Pt(Pt({},q.utils),o.utils)),lr.mount(o)})};q.create=function(e,t){return new q(e,t)};q.version=Jc;var We=[],Xn,$o,Uo=!1,Io,No,Kr,Kn;function gu(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?ve(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ve(document,"pointermove",this._handleFallbackAutoScroll):o.touches?ve(document,"touchmove",this._handleFallbackAutoScroll):ve(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?pe(document,"dragover",this._handleAutoScroll):(pe(document,"pointermove",this._handleFallbackAutoScroll),pe(document,"touchmove",this._handleFallbackAutoScroll),pe(document,"mousemove",this._handleFallbackAutoScroll)),ra(),Dr(),eu()},nulling:function(){Kr=$o=Xn=Uo=Kn=Io=No=null,We.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,a=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(a,r);if(Kr=n,o||this.options.forceAutoScrollFallback||sr||Ut||Gn){Co(n,this.options,s,o);var l=Gt(s,!0);Uo&&(!Kn||a!==Io||r!==No)&&(Kn&&ra(),Kn=setInterval(function(){var c=Gt(document.elementFromPoint(a,r),!0);c!==l&&(l=c,Dr()),Co(n,i.options,c,o)},10),Io=a,No=r)}else{if(!this.options.bubbleScroll||Gt(s,!0)===xt()){Dr();return}Co(n,this.options,Gt(s,!1),!1)}}},Et(e,{pluginName:"scroll",initializeByDefault:!0})}function Dr(){We.forEach(function(e){clearInterval(e.pid)}),We=[]}function ra(){clearInterval(Kn)}var Co=ms(function(e,t,n,o){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,s=t.scrollSpeed,l=xt(),c=!1,f;$o!==n&&($o=n,Dr(),Xn=t.scroll,f=t.scrollFn,Xn===!0&&(Xn=Gt(n,!0)));var u=0,p=Xn;do{var d=p,m=Le(d),h=m.top,v=m.bottom,g=m.left,y=m.right,S=m.width,E=m.height,x=void 0,P=void 0,j=d.scrollWidth,V=d.scrollHeight,O=W(d),w=d.scrollLeft,U=d.scrollTop;d===l?(x=S<j&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),P=E<V&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):(x=S<j&&(O.overflowX==="auto"||O.overflowX==="scroll"),P=E<V&&(O.overflowY==="auto"||O.overflowY==="scroll"));var X=x&&(Math.abs(y-i)<=r&&w+S<j)-(Math.abs(g-i)<=r&&!!w),L=P&&(Math.abs(v-a)<=r&&U+E<V)-(Math.abs(h-a)<=r&&!!U);if(!We[u])for(var I=0;I<=u;I++)We[I]||(We[I]={});(We[u].vx!=X||We[u].vy!=L||We[u].el!==d)&&(We[u].el=d,We[u].vx=X,We[u].vy=L,clearInterval(We[u].pid),(X!=0||L!=0)&&(c=!0,We[u].pid=setInterval((function(){o&&this.layer===0&&q.active._onTouchMove(Kr);var N=We[this.layer].vy?We[this.layer].vy*s:0,C=We[this.layer].vx?We[this.layer].vx*s:0;typeof f=="function"&&f.call(q.dragged.parentNode[ot],C,N,e,Kr,We[this.layer].el)!=="continue"||vs(We[this.layer].el,C,N)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Gt(p,!1)));Uo=c}},30),Ts=function(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,a=t.activeSortable,r=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var c=o||a;s();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(f.clientX,f.clientY);l(),c&&!c.el.contains(u)&&(r("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function Ni(){}Ni.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=An(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Ts};Et(Ni,{pluginName:"revertOnSpill"});function Ci(){}Ci.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Ts};Et(Ci,{pluginName:"removeOnSpill"});var gt;function yu(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var o=n.dragEl;gt=o},dragOverValid:function(n){var o=n.completed,i=n.target,a=n.onMove,r=n.activeSortable,s=n.changed,l=n.cancel;if(r.options.swap){var c=this.sortable.el,f=this.options;if(i&&i!==c){var u=gt;a(i)!==!1?(Ve(i,f.swapClass,!0),gt=i):gt=null,u&&u!==gt&&Ve(u,f.swapClass,!1)}s(),o(!0),l()}},drop:function(n){var o=n.activeSortable,i=n.putSortable,a=n.dragEl,r=i||this.sortable,s=this.options;gt&&Ve(gt,s.swapClass,!1),gt&&(s.swap||i&&i.options.swap)&&a!==gt&&(r.captureAnimationState(),r!==o&&o.captureAnimationState(),Eu(a,gt),r.animateAll(),r!==o&&o.animateAll())},nulling:function(){gt=null}},Et(e,{pluginName:"swap",eventProperties:function(){return{swapItem:gt}}})}function Eu(e,t){var n=e.parentNode,o=t.parentNode,i,a;!n||!o||n.isEqualNode(t)||o.isEqualNode(e)||(i=je(e),a=je(t),n.isEqualNode(o)&&i<a&&a++,n.insertBefore(t,n.children[i]),o.insertBefore(e,o.children[a]))}var ae=[],pt=[],$n,Ot,Un=!1,ut=!1,vn=!1,Ce,jn,gr;function Su(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?ve(document,"pointerup",this._deselectMultiDrag):(ve(document,"mouseup",this._deselectMultiDrag),ve(document,"touchend",this._deselectMultiDrag)),ve(document,"keydown",this._checkKeyDown),ve(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var r="";ae.length&&Ot===t?ae.forEach(function(s,l){r+=(l?", ":"")+s.textContent}):r=a.textContent,i.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;Ce=o},delayEnded:function(){this.isMultiDrag=~ae.indexOf(Ce)},setupClone:function(n){var o=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var a=0;a<ae.length;a++)pt.push(Ii(ae[a])),pt[a].sortableIndex=ae[a].sortableIndex,pt[a].draggable=!1,pt[a].style["will-change"]="",Ve(pt[a],this.options.selectedClass,!1),ae[a]===Ce&&Ve(pt[a],this.options.chosenClass,!1);o._hideClone(),i()}},clone:function(n){var o=n.sortable,i=n.rootEl,a=n.dispatchSortableEvent,r=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ae.length&&Ot===o&&(oa(!0,i),a("clone"),r()))},showClone:function(n){var o=n.cloneNowShown,i=n.rootEl,a=n.cancel;this.isMultiDrag&&(oa(!1,i),pt.forEach(function(r){W(r,"display","")}),o(),gr=!1,a())},hideClone:function(n){var o=this;n.sortable;var i=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(pt.forEach(function(r){W(r,"display","none"),o.options.removeCloneOnHide&&r.parentNode&&r.parentNode.removeChild(r)}),i(),gr=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ot&&Ot.multiDrag._deselectMultiDrag(),ae.forEach(function(o){o.sortableIndex=je(o)}),ae=ae.sort(function(o,i){return o.sortableIndex-i.sortableIndex}),vn=!0},dragStarted:function(n){var o=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){ae.forEach(function(r){r!==Ce&&W(r,"position","absolute")});var a=Le(Ce,!1,!0,!0);ae.forEach(function(r){r!==Ce&&qi(r,a)}),ut=!0,Un=!0}i.animateAll(function(){ut=!1,Un=!1,o.options.animation&&ae.forEach(function(r){yo(r)}),o.options.sort&&yr()})}},dragOver:function(n){var o=n.target,i=n.completed,a=n.cancel;ut&&~ae.indexOf(o)&&(i(!1),a())},revert:function(n){var o=n.fromSortable,i=n.rootEl,a=n.sortable,r=n.dragRect;ae.length>1&&(ae.forEach(function(s){a.addAnimationState({target:s,rect:ut?Le(s):r}),yo(s),s.fromRect=r,o.removeAnimationState(s)}),ut=!1,bu(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var o=n.sortable,i=n.isOwner,a=n.insertion,r=n.activeSortable,s=n.parentEl,l=n.putSortable,c=this.options;if(a){if(i&&r._hideClone(),Un=!1,c.animation&&ae.length>1&&(ut||!i&&!r.options.sort&&!l)){var f=Le(Ce,!1,!0,!0);ae.forEach(function(p){p!==Ce&&(qi(p,f),s.appendChild(p))}),ut=!0}if(!i)if(ut||yr(),ae.length>1){var u=gr;r._showClone(o),r.options.animation&&!gr&&u&&pt.forEach(function(p){r.addAnimationState({target:p,rect:jn}),p.fromRect=jn,p.thisAnimationDuration=null})}else r._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,i=n.isOwner,a=n.activeSortable;if(ae.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){jn=Et({},o);var r=rn(Ce,!0);jn.top-=r.f,jn.left-=r.e}},dragOverAnimationComplete:function(){ut&&(ut=!1,yr())},drop:function(n){var o=n.originalEvent,i=n.rootEl,a=n.parentEl,r=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,c=n.putSortable,f=c||this.sortable;if(o){var u=this.options,p=a.children;if(!vn)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ve(Ce,u.selectedClass,!~ae.indexOf(Ce)),~ae.indexOf(Ce))ae.splice(ae.indexOf(Ce),1),$n=null,Bn({sortable:r,rootEl:i,name:"deselect",targetEl:Ce});else{if(ae.push(Ce),Bn({sortable:r,rootEl:i,name:"select",targetEl:Ce}),o.shiftKey&&$n&&r.el.contains($n)){var d=je($n),m=je(Ce);if(~d&&~m&&d!==m){var h,v;for(m>d?(v=d,h=m):(v=m,h=d+1);v<h;v++)~ae.indexOf(p[v])||(Ve(p[v],u.selectedClass,!0),ae.push(p[v]),Bn({sortable:r,rootEl:i,name:"select",targetEl:p[v]}))}}else $n=Ce;Ot=f}if(vn&&this.isMultiDrag){if(ut=!1,(a[ot].options.sort||a!==i)&&ae.length>1){var g=Le(Ce),y=je(Ce,":not(."+this.options.selectedClass+")");if(!Un&&u.animation&&(Ce.thisAnimationDuration=null),f.captureAnimationState(),!Un&&(u.animation&&(Ce.fromRect=g,ae.forEach(function(E){if(E.thisAnimationDuration=null,E!==Ce){var x=ut?Le(E):g;E.fromRect=x,f.addAnimationState({target:E,rect:x})}})),yr(),ae.forEach(function(E){p[y]?a.insertBefore(E,p[y]):a.appendChild(E),y++}),l===je(Ce))){var S=!1;ae.forEach(function(E){if(E.sortableIndex!==je(E)){S=!0;return}}),S&&s("update")}ae.forEach(function(E){yo(E)}),f.animateAll()}Ot=f}(i===a||c&&c.lastPutMode!=="clone")&&pt.forEach(function(E){E.parentNode&&E.parentNode.removeChild(E)})}},nullingGlobal:function(){this.isMultiDrag=vn=!1,pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),pe(document,"pointerup",this._deselectMultiDrag),pe(document,"mouseup",this._deselectMultiDrag),pe(document,"touchend",this._deselectMultiDrag),pe(document,"keydown",this._checkKeyDown),pe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof vn<"u"&&vn)&&Ot===this.sortable&&!(n&&Nt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ae.length;){var o=ae[0];Ve(o,this.options.selectedClass,!1),ae.shift(),Bn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Et(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[ot];!o||!o.options.multiDrag||~ae.indexOf(n)||(Ot&&Ot!==o&&(Ot.multiDrag._deselectMultiDrag(),Ot=o),Ve(n,o.options.selectedClass,!0),ae.push(n))},deselect:function(n){var o=n.parentNode[ot],i=ae.indexOf(n);!o||!o.options.multiDrag||!~i||(Ve(n,o.options.selectedClass,!1),ae.splice(i,1))}},eventProperties:function(){var n=this,o=[],i=[];return ae.forEach(function(a){o.push({multiDragElement:a,index:a.sortableIndex});var r;ut&&a!==Ce?r=-1:ut?r=je(a,":not(."+n.options.selectedClass+")"):r=je(a),i.push({multiDragElement:a,index:r})}),{items:Hc(ae),clones:[].concat(pt),oldIndicies:o,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function bu(e,t){ae.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function oa(e,t){pt.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function yr(){ae.forEach(function(e){e!==Ce&&e.parentNode&&e.parentNode.removeChild(e)})}q.mount(new gu);q.mount(Ci,Ni);const Tu=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Su,Sortable:q,Swap:yu,default:q},Symbol.toStringTag,{value:"Module"})),Ou=Gr(Tu);var Iu=Er.exports,ia;function Nu(){return ia||(ia=1,(function(e,t){(function(o,i){e.exports=i(Bc(),Ou)})(typeof self<"u"?self:Iu,function(n,o){return(function(i){var a={};function r(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,r),l.l=!0,l.exports}return r.m=i,r.c=a,r.d=function(s,l,c){r.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:c})},r.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,l){if(l&1&&(s=r(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var f in s)r.d(c,f,(function(u){return s[u]}).bind(null,f));return c},r.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(l,"a",l),l},r.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},r.p="",r(r.s="fb15")})({"00ee":(function(i,a,r){var s=r("b622"),l=s("toStringTag"),c={};c[l]="z",i.exports=String(c)==="[object z]"}),"0366":(function(i,a,r){var s=r("1c0b");i.exports=function(l,c,f){if(s(l),c===void 0)return l;switch(f){case 0:return function(){return l.call(c)};case 1:return function(u){return l.call(c,u)};case 2:return function(u,p){return l.call(c,u,p)};case 3:return function(u,p,d){return l.call(c,u,p,d)}}return function(){return l.apply(c,arguments)}}}),"057f":(function(i,a,r){var s=r("fc6a"),l=r("241c").f,c={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(p){try{return l(p)}catch{return f.slice()}};i.exports.f=function(d){return f&&c.call(d)=="[object Window]"?u(d):l(s(d))}}),"06cf":(function(i,a,r){var s=r("83ab"),l=r("d1e7"),c=r("5c6c"),f=r("fc6a"),u=r("c04e"),p=r("5135"),d=r("0cfb"),m=Object.getOwnPropertyDescriptor;a.f=s?m:function(v,g){if(v=f(v),g=u(g,!0),d)try{return m(v,g)}catch{}if(p(v,g))return c(!l.f.call(v,g),v[g])}}),"0cfb":(function(i,a,r){var s=r("83ab"),l=r("d039"),c=r("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,a,r){var s=r("23e7"),l=r("d58f").left,c=r("a640"),f=r("ae40"),u=c("reduce"),p=f("reduce",{1:0});s({target:"Array",proto:!0,forced:!u||!p},{reduce:function(m){return l(this,m,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,a,r){var s=r("c6b6"),l=r("9263");i.exports=function(c,f){var u=c.exec;if(typeof u=="function"){var p=u.call(c,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(s(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,f)}}),"159b":(function(i,a,r){var s=r("da84"),l=r("fdbc"),c=r("17c2"),f=r("9112");for(var u in l){var p=s[u],d=p&&p.prototype;if(d&&d.forEach!==c)try{f(d,"forEach",c)}catch{d.forEach=c}}}),"17c2":(function(i,a,r){var s=r("b727").forEach,l=r("a640"),c=r("ae40"),f=l("forEach"),u=c("forEach");i.exports=!f||!u?function(d){return s(this,d,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,a,r){var s=r("d066");i.exports=s("document","documentElement")}),"1c0b":(function(i,a){i.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}}),"1c7e":(function(i,a,r){var s=r("b622"),l=s("iterator"),c=!1;try{var f=0,u={next:function(){return{done:!!f++}},return:function(){c=!0}};u[l]=function(){return this},Array.from(u,function(){throw 2})}catch{}i.exports=function(p,d){if(!d&&!c)return!1;var m=!1;try{var h={};h[l]=function(){return{next:function(){return{done:m=!0}}}},p(h)}catch{}return m}}),"1d80":(function(i,a){i.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}}),"1dde":(function(i,a,r){var s=r("d039"),l=r("b622"),c=r("2d00"),f=l("species");i.exports=function(u){return c>=51||!s(function(){var p=[],d=p.constructor={};return d[f]=function(){return{foo:1}},p[u](Boolean).foo!==1})}}),"23cb":(function(i,a,r){var s=r("a691"),l=Math.max,c=Math.min;i.exports=function(f,u){var p=s(f);return p<0?l(p+u,0):c(p,u)}}),"23e7":(function(i,a,r){var s=r("da84"),l=r("06cf").f,c=r("9112"),f=r("6eeb"),u=r("ce4e"),p=r("e893"),d=r("94ca");i.exports=function(m,h){var v=m.target,g=m.global,y=m.stat,S,E,x,P,j,V;if(g?E=s:y?E=s[v]||u(v,{}):E=(s[v]||{}).prototype,E)for(x in h){if(j=h[x],m.noTargetGet?(V=l(E,x),P=V&&V.value):P=E[x],S=d(g?x:v+(y?".":"#")+x,m.forced),!S&&P!==void 0){if(typeof j==typeof P)continue;p(j,P)}(m.sham||P&&P.sham)&&c(j,"sham",!0),f(E,x,j,m)}}}),"241c":(function(i,a,r){var s=r("ca84"),l=r("7839"),c=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return s(u,c)}}),"25f0":(function(i,a,r){var s=r("6eeb"),l=r("825a"),c=r("d039"),f=r("ad6d"),u="toString",p=RegExp.prototype,d=p[u],m=c(function(){return d.call({source:"a",flags:"b"})!="/a/b"}),h=d.name!=u;(m||h)&&s(RegExp.prototype,u,function(){var g=l(this),y=String(g.source),S=g.flags,E=String(S===void 0&&g instanceof RegExp&&!("flags"in p)?f.call(g):S);return"/"+y+"/"+E},{unsafe:!0})}),"2ca0":(function(i,a,r){var s=r("23e7"),l=r("06cf").f,c=r("50c4"),f=r("5a34"),u=r("1d80"),p=r("ab13"),d=r("c430"),m="".startsWith,h=Math.min,v=p("startsWith"),g=!d&&!v&&!!(function(){var y=l(String.prototype,"startsWith");return y&&!y.writable})();s({target:"String",proto:!0,forced:!g&&!v},{startsWith:function(S){var E=String(u(this));f(S);var x=c(h(arguments.length>1?arguments[1]:void 0,E.length)),P=String(S);return m?m.call(E,P,x):E.slice(x,x+P.length)===P}})}),"2d00":(function(i,a,r){var s=r("da84"),l=r("342f"),c=s.process,f=c&&c.versions,u=f&&f.v8,p,d;u?(p=u.split("."),d=p[0]+p[1]):l&&(p=l.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=l.match(/Chrome\/(\d+)/),p&&(d=p[1]))),i.exports=d&&+d}),"342f":(function(i,a,r){var s=r("d066");i.exports=s("navigator","userAgent")||""}),"35a1":(function(i,a,r){var s=r("f5df"),l=r("3f8c"),c=r("b622"),f=c("iterator");i.exports=function(u){if(u!=null)return u[f]||u["@@iterator"]||l[s(u)]}}),"37e8":(function(i,a,r){var s=r("83ab"),l=r("9bf2"),c=r("825a"),f=r("df75");i.exports=s?Object.defineProperties:function(p,d){c(p);for(var m=f(d),h=m.length,v=0,g;h>v;)l.f(p,g=m[v++],d[g]);return p}}),"3bbe":(function(i,a,r){var s=r("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(i,a,r){var s=r("6547").charAt,l=r("69f3"),c=r("7dd0"),f="String Iterator",u=l.set,p=l.getterFor(f);c(String,"String",function(d){u(this,{type:f,string:String(d),index:0})},function(){var m=p(this),h=m.string,v=m.index,g;return v>=h.length?{value:void 0,done:!0}:(g=s(h,v),m.index+=g.length,{value:g,done:!1})})}),"3f8c":(function(i,a){i.exports={}}),4160:(function(i,a,r){var s=r("23e7"),l=r("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(i,a,r){var s=r("da84");i.exports=s}),"44ad":(function(i,a,r){var s=r("d039"),l=r("c6b6"),c="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?c.call(f,""):Object(f)}:Object}),"44d2":(function(i,a,r){var s=r("b622"),l=r("7c73"),c=r("9bf2"),f=s("unscopables"),u=Array.prototype;u[f]==null&&c.f(u,f,{configurable:!0,value:l(null)}),i.exports=function(p){u[f][p]=!0}}),"44e7":(function(i,a,r){var s=r("861d"),l=r("c6b6"),c=r("b622"),f=c("match");i.exports=function(u){var p;return s(u)&&((p=u[f])!==void 0?!!p:l(u)=="RegExp")}}),4930:(function(i,a,r){var s=r("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})}),"4d64":(function(i,a,r){var s=r("fc6a"),l=r("50c4"),c=r("23cb"),f=function(u){return function(p,d,m){var h=s(p),v=l(h.length),g=c(m,v),y;if(u&&d!=d){for(;v>g;)if(y=h[g++],y!=y)return!0}else for(;v>g;g++)if((u||g in h)&&h[g]===d)return u||g||0;return!u&&-1}};i.exports={includes:f(!0),indexOf:f(!1)}}),"4de4":(function(i,a,r){var s=r("23e7"),l=r("b727").filter,c=r("1dde"),f=r("ae40"),u=c("filter"),p=f("filter");s({target:"Array",proto:!0,forced:!u||!p},{filter:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,a,r){var s=r("0366"),l=r("7b0b"),c=r("9bdd"),f=r("e95a"),u=r("50c4"),p=r("8418"),d=r("35a1");i.exports=function(h){var v=l(h),g=typeof this=="function"?this:Array,y=arguments.length,S=y>1?arguments[1]:void 0,E=S!==void 0,x=d(v),P=0,j,V,O,w,U,X;if(E&&(S=s(S,y>2?arguments[2]:void 0,2)),x!=null&&!(g==Array&&f(x)))for(w=x.call(v),U=w.next,V=new g;!(O=U.call(w)).done;P++)X=E?c(w,S,[O.value,P],!0):O.value,p(V,P,X);else for(j=u(v.length),V=new g(j);j>P;P++)X=E?S(v[P],P):v[P],p(V,P,X);return V.length=P,V}}),"4fad":(function(i,a,r){var s=r("23e7"),l=r("6f53").entries;s({target:"Object",stat:!0},{entries:function(f){return l(f)}})}),"50c4":(function(i,a,r){var s=r("a691"),l=Math.min;i.exports=function(c){return c>0?l(s(c),9007199254740991):0}}),5135:(function(i,a){var r={}.hasOwnProperty;i.exports=function(s,l){return r.call(s,l)}}),5319:(function(i,a,r){var s=r("d784"),l=r("825a"),c=r("7b0b"),f=r("50c4"),u=r("a691"),p=r("1d80"),d=r("8aa5"),m=r("14c3"),h=Math.max,v=Math.min,g=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,E=function(x){return x===void 0?x:String(x)};s("replace",2,function(x,P,j,V){var O=V.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=V.REPLACE_KEEPS_$0,U=O?"$":"$0";return[function(I,N){var C=p(this),$=I==null?void 0:I[x];return $!==void 0?$.call(I,C,N):P.call(String(C),I,N)},function(L,I){if(!O&&w||typeof I=="string"&&I.indexOf(U)===-1){var N=j(P,L,this,I);if(N.done)return N.value}var C=l(L),$=String(this),k=typeof I=="function";k||(I=String(I));var oe=C.global;if(oe){var he=C.unicode;C.lastIndex=0}for(var ee=[];;){var fe=m(C,$);if(fe===null||(ee.push(fe),!oe))break;var Oe=String(fe[0]);Oe===""&&(C.lastIndex=d($,f(C.lastIndex),he))}for(var H="",R=0,ue=0;ue<ee.length;ue++){fe=ee[ue];for(var z=String(fe[0]),Ne=h(v(u(fe.index),$.length),0),be=[],ze=1;ze<fe.length;ze++)be.push(E(fe[ze]));var Re=fe.groups;if(k){var Fe=[z].concat(be,Ne,$);Re!==void 0&&Fe.push(Re);var we=String(I.apply(void 0,Fe))}else we=X(z,$,Ne,be,Re,I);Ne>=R&&(H+=$.slice(R,Ne)+we,R=Ne+z.length)}return H+$.slice(R)}];function X(L,I,N,C,$,k){var oe=N+L.length,he=C.length,ee=S;return $!==void 0&&($=c($),ee=y),P.call(k,ee,function(fe,Oe){var H;switch(Oe.charAt(0)){case"$":return"$";case"&":return L;case"`":return I.slice(0,N);case"'":return I.slice(oe);case"<":H=$[Oe.slice(1,-1)];break;default:var R=+Oe;if(R===0)return fe;if(R>he){var ue=g(R/10);return ue===0?fe:ue<=he?C[ue-1]===void 0?Oe.charAt(1):C[ue-1]+Oe.charAt(1):fe}H=C[R-1]}return H===void 0?"":H})}})}),5692:(function(i,a,r){var s=r("c430"),l=r("c6cd");(i.exports=function(c,f){return l[c]||(l[c]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,a,r){var s=r("d066"),l=r("241c"),c=r("7418"),f=r("825a");i.exports=s("Reflect","ownKeys")||function(p){var d=l.f(f(p)),m=c.f;return m?d.concat(m(p)):d}}),"5a34":(function(i,a,r){var s=r("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(i,a){i.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}}),"5db7":(function(i,a,r){var s=r("23e7"),l=r("a2bf"),c=r("7b0b"),f=r("50c4"),u=r("1c0b"),p=r("65f0");s({target:"Array",proto:!0},{flatMap:function(m){var h=c(this),v=f(h.length),g;return u(m),g=p(h,0),g.length=l(g,h,h,v,0,1,m,arguments.length>1?arguments[1]:void 0),g}})}),6547:(function(i,a,r){var s=r("a691"),l=r("1d80"),c=function(f){return function(u,p){var d=String(l(u)),m=s(p),h=d.length,v,g;return m<0||m>=h?f?"":void 0:(v=d.charCodeAt(m),v<55296||v>56319||m+1===h||(g=d.charCodeAt(m+1))<56320||g>57343?f?d.charAt(m):v:f?d.slice(m,m+2):(v-55296<<10)+(g-56320)+65536)}};i.exports={codeAt:c(!1),charAt:c(!0)}}),"65f0":(function(i,a,r){var s=r("861d"),l=r("e8b5"),c=r("b622"),f=c("species");i.exports=function(u,p){var d;return l(u)&&(d=u.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:s(d)&&(d=d[f],d===null&&(d=void 0))),new(d===void 0?Array:d)(p===0?0:p)}}),"69f3":(function(i,a,r){var s=r("7f9a"),l=r("da84"),c=r("861d"),f=r("9112"),u=r("5135"),p=r("f772"),d=r("d012"),m=l.WeakMap,h,v,g,y=function(O){return g(O)?v(O):h(O,{})},S=function(O){return function(w){var U;if(!c(w)||(U=v(w)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return U}};if(s){var E=new m,x=E.get,P=E.has,j=E.set;h=function(O,w){return j.call(E,O,w),w},v=function(O){return x.call(E,O)||{}},g=function(O){return P.call(E,O)}}else{var V=p("state");d[V]=!0,h=function(O,w){return f(O,V,w),w},v=function(O){return u(O,V)?O[V]:{}},g=function(O){return u(O,V)}}i.exports={set:h,get:v,has:g,enforce:y,getterFor:S}}),"6eeb":(function(i,a,r){var s=r("da84"),l=r("9112"),c=r("5135"),f=r("ce4e"),u=r("8925"),p=r("69f3"),d=p.get,m=p.enforce,h=String(String).split("String");(i.exports=function(v,g,y,S){var E=S?!!S.unsafe:!1,x=S?!!S.enumerable:!1,P=S?!!S.noTargetGet:!1;if(typeof y=="function"&&(typeof g=="string"&&!c(y,"name")&&l(y,"name",g),m(y).source=h.join(typeof g=="string"?g:"")),v===s){x?v[g]=y:f(g,y);return}else E?!P&&v[g]&&(x=!0):delete v[g];x?v[g]=y:l(v,g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(this).source||u(this)})}),"6f53":(function(i,a,r){var s=r("83ab"),l=r("df75"),c=r("fc6a"),f=r("d1e7").f,u=function(p){return function(d){for(var m=c(d),h=l(m),v=h.length,g=0,y=[],S;v>g;)S=h[g++],(!s||f.call(m,S))&&y.push(p?[S,m[S]]:m[S]);return y}};i.exports={entries:u(!0),values:u(!1)}}),"73d9":(function(i,a,r){var s=r("44d2");s("flatMap")}),7418:(function(i,a){a.f=Object.getOwnPropertySymbols}),"746f":(function(i,a,r){var s=r("428f"),l=r("5135"),c=r("e538"),f=r("9bf2").f;i.exports=function(u){var p=s.Symbol||(s.Symbol={});l(p,u)||f(p,u,{value:c.f(u)})}}),7839:(function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,a,r){var s=r("1d80");i.exports=function(l){return Object(s(l))}}),"7c73":(function(i,a,r){var s=r("825a"),l=r("37e8"),c=r("7839"),f=r("d012"),u=r("1be4"),p=r("cc12"),d=r("f772"),m=">",h="<",v="prototype",g="script",y=d("IE_PROTO"),S=function(){},E=function(O){return h+g+m+O+h+"/"+g+m},x=function(O){O.write(E("")),O.close();var w=O.parentWindow.Object;return O=null,w},P=function(){var O=p("iframe"),w="java"+g+":",U;return O.style.display="none",u.appendChild(O),O.src=String(w),U=O.contentWindow.document,U.open(),U.write(E("document.F=Object")),U.close(),U.F},j,V=function(){try{j=document.domain&&new ActiveXObject("htmlfile")}catch{}V=j?x(j):P();for(var O=c.length;O--;)delete V[v][c[O]];return V()};f[y]=!0,i.exports=Object.create||function(w,U){var X;return w!==null?(S[v]=s(w),X=new S,S[v]=null,X[y]=w):X=V(),U===void 0?X:l(X,U)}}),"7dd0":(function(i,a,r){var s=r("23e7"),l=r("9ed3"),c=r("e163"),f=r("d2bb"),u=r("d44e"),p=r("9112"),d=r("6eeb"),m=r("b622"),h=r("c430"),v=r("3f8c"),g=r("ae93"),y=g.IteratorPrototype,S=g.BUGGY_SAFARI_ITERATORS,E=m("iterator"),x="keys",P="values",j="entries",V=function(){return this};i.exports=function(O,w,U,X,L,I,N){l(U,w,X);var C=function(ue){if(ue===L&&ee)return ee;if(!S&&ue in oe)return oe[ue];switch(ue){case x:return function(){return new U(this,ue)};case P:return function(){return new U(this,ue)};case j:return function(){return new U(this,ue)}}return function(){return new U(this)}},$=w+" Iterator",k=!1,oe=O.prototype,he=oe[E]||oe["@@iterator"]||L&&oe[L],ee=!S&&he||C(L),fe=w=="Array"&&oe.entries||he,Oe,H,R;if(fe&&(Oe=c(fe.call(new O)),y!==Object.prototype&&Oe.next&&(!h&&c(Oe)!==y&&(f?f(Oe,y):typeof Oe[E]!="function"&&p(Oe,E,V)),u(Oe,$,!0,!0),h&&(v[$]=V))),L==P&&he&&he.name!==P&&(k=!0,ee=function(){return he.call(this)}),(!h||N)&&oe[E]!==ee&&p(oe,E,ee),v[w]=ee,L)if(H={values:C(P),keys:I?ee:C(x),entries:C(j)},N)for(R in H)(S||k||!(R in oe))&&d(oe,R,H[R]);else s({target:w,proto:!0,forced:S||k},H);return H}}),"7f9a":(function(i,a,r){var s=r("da84"),l=r("8925"),c=s.WeakMap;i.exports=typeof c=="function"&&/native code/.test(l(c))}),"825a":(function(i,a,r){var s=r("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(i,a,r){var s=r("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,a,r){var s=r("c04e"),l=r("9bf2"),c=r("5c6c");i.exports=function(f,u,p){var d=s(u);d in f?l.f(f,d,c(0,p)):f[d]=p}}),"861d":(function(i,a){i.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}}),8875:(function(i,a,r){var s,l,c;(function(f,u){l=[],s=u,c=typeof s=="function"?s.apply(a,l):s,c!==void 0&&(i.exports=c)})(typeof self<"u"?self:this,function(){function f(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(j){var p=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,m=p.exec(j.stack)||d.exec(j.stack),h=m&&m[1]||!1,v=m&&m[2]||!1,g=document.location.href.replace(document.location.hash,""),y,S,E,x=document.getElementsByTagName("script");h===g&&(y=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),E=y.replace(S,"$1").trim());for(var P=0;P<x.length;P++)if(x[P].readyState==="interactive"||x[P].src===h||h===g&&x[P].innerHTML&&x[P].innerHTML.trim()===E)return x[P];return null}}return f})}),8925:(function(i,a,r){var s=r("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(c){return l.call(c)}),i.exports=s.inspectSource}),"8aa5":(function(i,a,r){var s=r("6547").charAt;i.exports=function(l,c,f){return c+(f?s(l,c).length:1)}}),"8bbf":(function(i,a){i.exports=n}),"90e3":(function(i,a){var r=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++r+s).toString(36)}}),9112:(function(i,a,r){var s=r("83ab"),l=r("9bf2"),c=r("5c6c");i.exports=s?function(f,u,p){return l.f(f,u,c(1,p))}:function(f,u,p){return f[u]=p,f}}),9263:(function(i,a,r){var s=r("ad6d"),l=r("9f7f"),c=RegExp.prototype.exec,f=String.prototype.replace,u=c,p=(function(){var v=/a/,g=/b*/g;return c.call(v,"a"),c.call(g,"a"),v.lastIndex!==0||g.lastIndex!==0})(),d=l.UNSUPPORTED_Y||l.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,h=p||m||d;h&&(u=function(g){var y=this,S,E,x,P,j=d&&y.sticky,V=s.call(y),O=y.source,w=0,U=g;return j&&(V=V.replace("y",""),V.indexOf("g")===-1&&(V+="g"),U=String(g).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&g[y.lastIndex-1]!==`
|
|
28
|
+
`)&&(O="(?: "+O+")",U=" "+U,w++),E=new RegExp("^(?:"+O+")",V)),m&&(E=new RegExp("^"+O+"$(?!\\s)",V)),p&&(S=y.lastIndex),x=c.call(j?E:y,U),j?x?(x.input=x.input.slice(w),x[0]=x[0].slice(w),x.index=y.lastIndex,y.lastIndex+=x[0].length):y.lastIndex=0:p&&x&&(y.lastIndex=y.global?x.index+x[0].length:S),m&&x&&x.length>1&&f.call(x[0],E,function(){for(P=1;P<arguments.length-2;P++)arguments[P]===void 0&&(x[P]=void 0)}),x}),i.exports=u}),"94ca":(function(i,a,r){var s=r("d039"),l=/#|\.prototype\./,c=function(m,h){var v=u[f(m)];return v==d?!0:v==p?!1:typeof h=="function"?s(h):!!h},f=c.normalize=function(m){return String(m).replace(l,".").toLowerCase()},u=c.data={},p=c.NATIVE="N",d=c.POLYFILL="P";i.exports=c}),"99af":(function(i,a,r){var s=r("23e7"),l=r("d039"),c=r("e8b5"),f=r("861d"),u=r("7b0b"),p=r("50c4"),d=r("8418"),m=r("65f0"),h=r("1dde"),v=r("b622"),g=r("2d00"),y=v("isConcatSpreadable"),S=9007199254740991,E="Maximum allowed index exceeded",x=g>=51||!l(function(){var O=[];return O[y]=!1,O.concat()[0]!==O}),P=h("concat"),j=function(O){if(!f(O))return!1;var w=O[y];return w!==void 0?!!w:c(O)},V=!x||!P;s({target:"Array",proto:!0,forced:V},{concat:function(w){var U=u(this),X=m(U,0),L=0,I,N,C,$,k;for(I=-1,C=arguments.length;I<C;I++)if(k=I===-1?U:arguments[I],j(k)){if($=p(k.length),L+$>S)throw TypeError(E);for(N=0;N<$;N++,L++)N in k&&d(X,L,k[N])}else{if(L>=S)throw TypeError(E);d(X,L++,k)}return X.length=L,X}})}),"9bdd":(function(i,a,r){var s=r("825a");i.exports=function(l,c,f,u){try{return u?c(s(f)[0],f[1]):c(f)}catch(d){var p=l.return;throw p!==void 0&&s(p.call(l)),d}}}),"9bf2":(function(i,a,r){var s=r("83ab"),l=r("0cfb"),c=r("825a"),f=r("c04e"),u=Object.defineProperty;a.f=s?u:function(d,m,h){if(c(d),m=f(m,!0),c(h),l)try{return u(d,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(d[m]=h.value),d}}),"9ed3":(function(i,a,r){var s=r("ae93").IteratorPrototype,l=r("7c73"),c=r("5c6c"),f=r("d44e"),u=r("3f8c"),p=function(){return this};i.exports=function(d,m,h){var v=m+" Iterator";return d.prototype=l(s,{next:c(1,h)}),f(d,v,!1,!0),u[v]=p,d}}),"9f7f":(function(i,a,r){var s=r("d039");function l(c,f){return RegExp(c,f)}a.UNSUPPORTED_Y=s(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),a.BROKEN_CARET=s(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})}),a2bf:(function(i,a,r){var s=r("e8b5"),l=r("50c4"),c=r("0366"),f=function(u,p,d,m,h,v,g,y){for(var S=h,E=0,x=g?c(g,y,3):!1,P;E<m;){if(E in d){if(P=x?x(d[E],E,p):d[E],v>0&&s(P))S=f(u,p,P,l(P.length),S,v-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[S]=P}S++}E++}return S};i.exports=f}),a352:(function(i,a){i.exports=o}),a434:(function(i,a,r){var s=r("23e7"),l=r("23cb"),c=r("a691"),f=r("50c4"),u=r("7b0b"),p=r("65f0"),d=r("8418"),m=r("1dde"),h=r("ae40"),v=m("splice"),g=h("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,S=Math.min,E=9007199254740991,x="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!v||!g},{splice:function(j,V){var O=u(this),w=f(O.length),U=l(j,w),X=arguments.length,L,I,N,C,$,k;if(X===0?L=I=0:X===1?(L=0,I=w-U):(L=X-2,I=S(y(c(V),0),w-U)),w+L-I>E)throw TypeError(x);for(N=p(O,I),C=0;C<I;C++)$=U+C,$ in O&&d(N,C,O[$]);if(N.length=I,L<I){for(C=U;C<w-I;C++)$=C+I,k=C+L,$ in O?O[k]=O[$]:delete O[k];for(C=w;C>w-I+L;C--)delete O[C-1]}else if(L>I)for(C=w-I;C>U;C--)$=C+I-1,k=C+L-1,$ in O?O[k]=O[$]:delete O[k];for(C=0;C<L;C++)O[C+U]=arguments[C+2];return O.length=w-I+L,N}})}),a4d3:(function(i,a,r){var s=r("23e7"),l=r("da84"),c=r("d066"),f=r("c430"),u=r("83ab"),p=r("4930"),d=r("fdbf"),m=r("d039"),h=r("5135"),v=r("e8b5"),g=r("861d"),y=r("825a"),S=r("7b0b"),E=r("fc6a"),x=r("c04e"),P=r("5c6c"),j=r("7c73"),V=r("df75"),O=r("241c"),w=r("057f"),U=r("7418"),X=r("06cf"),L=r("9bf2"),I=r("d1e7"),N=r("9112"),C=r("6eeb"),$=r("5692"),k=r("f772"),oe=r("d012"),he=r("90e3"),ee=r("b622"),fe=r("e538"),Oe=r("746f"),H=r("d44e"),R=r("69f3"),ue=r("b727").forEach,z=k("hidden"),Ne="Symbol",be="prototype",ze=ee("toPrimitive"),Re=R.set,Fe=R.getterFor(Ne),we=Object[be],Ie=l.Symbol,de=c("JSON","stringify"),Ze=X.f,_=L.f,St=w.f,fo=I.f,bt=$("symbols"),jt=$("op-symbols"),fn=$("string-to-symbol-registry"),Dn=$("symbol-to-string-registry"),Rn=$("wks"),Mn=l.QObject,Ln=!Mn||!Mn[be]||!Mn[be].findChild,wn=u&&m(function(){return j(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a!=7})?function(re,Y,Z){var ge=Ze(we,Y);ge&&delete we[Y],_(re,Y,Z),ge&&re!==we&&_(we,Y,ge)}:_,Vn=function(re,Y){var Z=bt[re]=j(Ie[be]);return Re(Z,{type:Ne,tag:re,description:Y}),u||(Z.description=Y),Z},T=d?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof Ie},b=function(Y,Z,ge){Y===we&&b(jt,Z,ge),y(Y);var ye=x(Z,!0);return y(ge),h(bt,ye)?(ge.enumerable?(h(Y,z)&&Y[z][ye]&&(Y[z][ye]=!1),ge=j(ge,{enumerable:P(0,!1)})):(h(Y,z)||_(Y,z,P(1,{})),Y[z][ye]=!0),wn(Y,ye,ge)):_(Y,ye,ge)},D=function(Y,Z){y(Y);var ge=E(Z),ye=V(ge).concat(Se(ge));return ue(ye,function(lt){(!u||G.call(ge,lt))&&b(Y,lt,ge[lt])}),Y},F=function(Y,Z){return Z===void 0?j(Y):D(j(Y),Z)},G=function(Y){var Z=x(Y,!0),ge=fo.call(this,Z);return this===we&&h(bt,Z)&&!h(jt,Z)?!1:ge||!h(this,Z)||!h(bt,Z)||h(this,z)&&this[z][Z]?ge:!0},ne=function(Y,Z){var ge=E(Y),ye=x(Z,!0);if(!(ge===we&&h(bt,ye)&&!h(jt,ye))){var lt=Ze(ge,ye);return lt&&h(bt,ye)&&!(h(ge,z)&&ge[z][ye])&&(lt.enumerable=!0),lt}},ce=function(Y){var Z=St(E(Y)),ge=[];return ue(Z,function(ye){!h(bt,ye)&&!h(oe,ye)&&ge.push(ye)}),ge},Se=function(Y){var Z=Y===we,ge=St(Z?jt:E(Y)),ye=[];return ue(ge,function(lt){h(bt,lt)&&(!Z||h(we,lt))&&ye.push(bt[lt])}),ye};if(p||(Ie=function(){if(this instanceof Ie)throw TypeError("Symbol is not a constructor");var Y=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Z=he(Y),ge=function(ye){this===we&&ge.call(jt,ye),h(this,z)&&h(this[z],Z)&&(this[z][Z]=!1),wn(this,Z,P(1,ye))};return u&&Ln&&wn(we,Z,{configurable:!0,set:ge}),Vn(Z,Y)},C(Ie[be],"toString",function(){return Fe(this).tag}),C(Ie,"withoutSetter",function(re){return Vn(he(re),re)}),I.f=G,L.f=b,X.f=ne,O.f=w.f=ce,U.f=Se,fe.f=function(re){return Vn(ee(re),re)},u&&(_(Ie[be],"description",{configurable:!0,get:function(){return Fe(this).description}}),f||C(we,"propertyIsEnumerable",G,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:Ie}),ue(V(Rn),function(re){Oe(re)}),s({target:Ne,stat:!0,forced:!p},{for:function(re){var Y=String(re);if(h(fn,Y))return fn[Y];var Z=Ie(Y);return fn[Y]=Z,Dn[Z]=Y,Z},keyFor:function(Y){if(!T(Y))throw TypeError(Y+" is not a symbol");if(h(Dn,Y))return Dn[Y]},useSetter:function(){Ln=!0},useSimple:function(){Ln=!1}}),s({target:"Object",stat:!0,forced:!p,sham:!u},{create:F,defineProperty:b,defineProperties:D,getOwnPropertyDescriptor:ne}),s({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:ce,getOwnPropertySymbols:Se}),s({target:"Object",stat:!0,forced:m(function(){U.f(1)})},{getOwnPropertySymbols:function(Y){return U.f(S(Y))}}),de){var Xe=!p||m(function(){var re=Ie();return de([re])!="[null]"||de({a:re})!="{}"||de(Object(re))!="{}"});s({target:"JSON",stat:!0,forced:Xe},{stringify:function(Y,Z,ge){for(var ye=[Y],lt=1,po;arguments.length>lt;)ye.push(arguments[lt++]);if(po=Z,!(!g(Z)&&Y===void 0||T(Y)))return v(Z)||(Z=function(Os,cr){if(typeof po=="function"&&(cr=po.call(this,Os,cr)),!T(cr))return cr}),ye[1]=Z,de.apply(null,ye)}})}Ie[be][ze]||N(Ie[be],ze,Ie[be].valueOf),H(Ie,Ne),oe[z]=!0}),a630:(function(i,a,r){var s=r("23e7"),l=r("4df4"),c=r("1c7e"),f=!c(function(u){Array.from(u)});s({target:"Array",stat:!0,forced:f},{from:l})}),a640:(function(i,a,r){var s=r("d039");i.exports=function(l,c){var f=[][l];return!!f&&s(function(){f.call(null,c||function(){throw 1},1)})}}),a691:(function(i,a){var r=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:r)(l)}}),ab13:(function(i,a,r){var s=r("b622"),l=s("match");i.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[l]=!1,"/./"[c](f)}catch{}}return!1}}),ac1f:(function(i,a,r){var s=r("23e7"),l=r("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(i,a,r){var s=r("825a");i.exports=function(){var l=s(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}}),ae40:(function(i,a,r){var s=r("83ab"),l=r("d039"),c=r("5135"),f=Object.defineProperty,u={},p=function(d){throw d};i.exports=function(d,m){if(c(u,d))return u[d];m||(m={});var h=[][d],v=c(m,"ACCESSORS")?m.ACCESSORS:!1,g=c(m,0)?m[0]:p,y=c(m,1)?m[1]:void 0;return u[d]=!!h&&!l(function(){if(v&&!s)return!0;var S={length:-1};v?f(S,1,{enumerable:!0,get:p}):S[1]=1,h.call(S,g,y)})}}),ae93:(function(i,a,r){var s=r("e163"),l=r("9112"),c=r("5135"),f=r("b622"),u=r("c430"),p=f("iterator"),d=!1,m=function(){return this},h,v,g;[].keys&&(g=[].keys(),"next"in g?(v=s(s(g)),v!==Object.prototype&&(h=v)):d=!0),h==null&&(h={}),!u&&!c(h,p)&&l(h,p,m),i.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:d}}),b041:(function(i,a,r){var s=r("00ee"),l=r("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(i,a,r){var s=r("83ab"),l=r("9bf2").f,c=Function.prototype,f=c.toString,u=/^\s*function ([^ (]*)/,p="name";s&&!(p in c)&&l(c,p,{configurable:!0,get:function(){try{return f.call(this).match(u)[1]}catch{return""}}})}),b622:(function(i,a,r){var s=r("da84"),l=r("5692"),c=r("5135"),f=r("90e3"),u=r("4930"),p=r("fdbf"),d=l("wks"),m=s.Symbol,h=p?m:m&&m.withoutSetter||f;i.exports=function(v){return c(d,v)||(u&&c(m,v)?d[v]=m[v]:d[v]=h("Symbol."+v)),d[v]}}),b64b:(function(i,a,r){var s=r("23e7"),l=r("7b0b"),c=r("df75"),f=r("d039"),u=f(function(){c(1)});s({target:"Object",stat:!0,forced:u},{keys:function(d){return c(l(d))}})}),b727:(function(i,a,r){var s=r("0366"),l=r("44ad"),c=r("7b0b"),f=r("50c4"),u=r("65f0"),p=[].push,d=function(m){var h=m==1,v=m==2,g=m==3,y=m==4,S=m==6,E=m==5||S;return function(x,P,j,V){for(var O=c(x),w=l(O),U=s(P,j,3),X=f(w.length),L=0,I=V||u,N=h?I(x,X):v?I(x,0):void 0,C,$;X>L;L++)if((E||L in w)&&(C=w[L],$=U(C,L,O),m)){if(h)N[L]=$;else if($)switch(m){case 3:return!0;case 5:return C;case 6:return L;case 2:p.call(N,C)}else if(y)return!1}return S?-1:g||y?y:N}};i.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}}),c04e:(function(i,a,r){var s=r("861d");i.exports=function(l,c){if(!s(l))return l;var f,u;if(c&&typeof(f=l.toString)=="function"&&!s(u=f.call(l))||typeof(f=l.valueOf)=="function"&&!s(u=f.call(l))||!c&&typeof(f=l.toString)=="function"&&!s(u=f.call(l)))return u;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,a){i.exports=!1}),c6b6:(function(i,a){var r={}.toString;i.exports=function(s){return r.call(s).slice(8,-1)}}),c6cd:(function(i,a,r){var s=r("da84"),l=r("ce4e"),c="__core-js_shared__",f=s[c]||l(c,{});i.exports=f}),c740:(function(i,a,r){var s=r("23e7"),l=r("b727").findIndex,c=r("44d2"),f=r("ae40"),u="findIndex",p=!0,d=f(u);u in[]&&Array(1)[u](function(){p=!1}),s({target:"Array",proto:!0,forced:p||!d},{findIndex:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),c(u)}),c8ba:(function(i,a){var r;r=(function(){return this})();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}i.exports=r}),c975:(function(i,a,r){var s=r("23e7"),l=r("4d64").indexOf,c=r("a640"),f=r("ae40"),u=[].indexOf,p=!!u&&1/[1].indexOf(1,-0)<0,d=c("indexOf"),m=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:p||!d||!m},{indexOf:function(v){return p?u.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(i,a,r){var s=r("5135"),l=r("fc6a"),c=r("4d64").indexOf,f=r("d012");i.exports=function(u,p){var d=l(u),m=0,h=[],v;for(v in d)!s(f,v)&&s(d,v)&&h.push(v);for(;p.length>m;)s(d,v=p[m++])&&(~c(h,v)||h.push(v));return h}}),caad:(function(i,a,r){var s=r("23e7"),l=r("4d64").includes,c=r("44d2"),f=r("ae40"),u=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!u},{includes:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}}),c("includes")}),cc12:(function(i,a,r){var s=r("da84"),l=r("861d"),c=s.document,f=l(c)&&l(c.createElement);i.exports=function(u){return f?c.createElement(u):{}}}),ce4e:(function(i,a,r){var s=r("da84"),l=r("9112");i.exports=function(c,f){try{l(s,c,f)}catch{s[c]=f}return f}}),d012:(function(i,a){i.exports={}}),d039:(function(i,a){i.exports=function(r){try{return!!r()}catch{return!0}}}),d066:(function(i,a,r){var s=r("428f"),l=r("da84"),c=function(f){return typeof f=="function"?f:void 0};i.exports=function(f,u){return arguments.length<2?c(s[f])||c(l[f]):s[f]&&s[f][u]||l[f]&&l[f][u]}}),d1e7:(function(i,a,r){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!s.call({1:2},1);a.f=c?function(u){var p=l(this,u);return!!p&&p.enumerable}:s}),d28b:(function(i,a,r){var s=r("746f");s("iterator")}),d2bb:(function(i,a,r){var s=r("825a"),l=r("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var c=!1,f={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(f,[]),c=f instanceof Array}catch{}return function(d,m){return s(d),l(m),c?u.call(d,m):d.__proto__=m,d}})():void 0)}),d3b7:(function(i,a,r){var s=r("00ee"),l=r("6eeb"),c=r("b041");s||l(Object.prototype,"toString",c,{unsafe:!0})}),d44e:(function(i,a,r){var s=r("9bf2").f,l=r("5135"),c=r("b622"),f=c("toStringTag");i.exports=function(u,p,d){u&&!l(u=d?u:u.prototype,f)&&s(u,f,{configurable:!0,value:p})}}),d58f:(function(i,a,r){var s=r("1c0b"),l=r("7b0b"),c=r("44ad"),f=r("50c4"),u=function(p){return function(d,m,h,v){s(m);var g=l(d),y=c(g),S=f(g.length),E=p?S-1:0,x=p?-1:1;if(h<2)for(;;){if(E in y){v=y[E],E+=x;break}if(E+=x,p?E<0:S<=E)throw TypeError("Reduce of empty array with no initial value")}for(;p?E>=0:S>E;E+=x)E in y&&(v=m(v,y[E],E,g));return v}};i.exports={left:u(!1),right:u(!0)}}),d784:(function(i,a,r){r("ac1f");var s=r("6eeb"),l=r("d039"),c=r("b622"),f=r("9263"),u=r("9112"),p=c("species"),d=!l(function(){var y=/./;return y.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(y,"$<a>")!=="7"}),m=(function(){return"a".replace(/./,"$0")==="$0"})(),h=c("replace"),v=(function(){return/./[h]?/./[h]("a","$0")==="":!1})(),g=!l(function(){var y=/(?:)/,S=y.exec;y.exec=function(){return S.apply(this,arguments)};var E="ab".split(y);return E.length!==2||E[0]!=="a"||E[1]!=="b"});i.exports=function(y,S,E,x){var P=c(y),j=!l(function(){var L={};return L[P]=function(){return 7},""[y](L)!=7}),V=j&&!l(function(){var L=!1,I=/a/;return y==="split"&&(I={},I.constructor={},I.constructor[p]=function(){return I},I.flags="",I[P]=/./[P]),I.exec=function(){return L=!0,null},I[P](""),!L});if(!j||!V||y==="replace"&&!(d&&m&&!v)||y==="split"&&!g){var O=/./[P],w=E(P,""[y],function(L,I,N,C,$){return I.exec===f?j&&!$?{done:!0,value:O.call(I,N,C)}:{done:!0,value:L.call(N,I,C)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),U=w[0],X=w[1];s(String.prototype,y,U),s(RegExp.prototype,P,S==2?function(L,I){return X.call(L,this,I)}:function(L){return X.call(L,this)})}x&&u(RegExp.prototype[P],"sham",!0)}}),d81d:(function(i,a,r){var s=r("23e7"),l=r("b727").map,c=r("1dde"),f=r("ae40"),u=c("map"),p=f("map");s({target:"Array",proto:!0,forced:!u||!p},{map:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(i,a,r){(function(s){var l=function(c){return c&&c.Math==Math&&c};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,r("c8ba"))}),dbb4:(function(i,a,r){var s=r("23e7"),l=r("83ab"),c=r("56ef"),f=r("fc6a"),u=r("06cf"),p=r("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(m){for(var h=f(m),v=u.f,g=c(h),y={},S=0,E,x;g.length>S;)x=v(h,E=g[S++]),x!==void 0&&p(y,E,x);return y}})}),dbf1:(function(i,a,r){(function(s){r.d(a,"a",function(){return c});function l(){return typeof window<"u"?window.console:s.console}var c=l()}).call(this,r("c8ba"))}),ddb0:(function(i,a,r){var s=r("da84"),l=r("fdbc"),c=r("e260"),f=r("9112"),u=r("b622"),p=u("iterator"),d=u("toStringTag"),m=c.values;for(var h in l){var v=s[h],g=v&&v.prototype;if(g){if(g[p]!==m)try{f(g,p,m)}catch{g[p]=m}if(g[d]||f(g,d,h),l[h]){for(var y in c)if(g[y]!==c[y])try{f(g,y,c[y])}catch{g[y]=c[y]}}}}}),df75:(function(i,a,r){var s=r("ca84"),l=r("7839");i.exports=Object.keys||function(f){return s(f,l)}}),e01a:(function(i,a,r){var s=r("23e7"),l=r("83ab"),c=r("da84"),f=r("5135"),u=r("861d"),p=r("9bf2").f,d=r("e893"),m=c.Symbol;if(l&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var h={},v=function(){var P=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),j=this instanceof v?new m(P):P===void 0?m():m(P);return P===""&&(h[j]=!0),j};d(v,m);var g=v.prototype=m.prototype;g.constructor=v;var y=g.toString,S=String(m("test"))=="Symbol(test)",E=/^Symbol\((.*)\)[^)]+$/;p(g,"description",{configurable:!0,get:function(){var P=u(this)?this.valueOf():this,j=y.call(P);if(f(h,P))return"";var V=S?j.slice(7,-1):j.replace(E,"$1");return V===""?void 0:V}}),s({global:!0,forced:!0},{Symbol:v})}}),e163:(function(i,a,r){var s=r("5135"),l=r("7b0b"),c=r("f772"),f=r("e177"),u=c("IE_PROTO"),p=Object.prototype;i.exports=f?Object.getPrototypeOf:function(d){return d=l(d),s(d,u)?d[u]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}}),e177:(function(i,a,r){var s=r("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(i,a,r){var s=r("fc6a"),l=r("44d2"),c=r("3f8c"),f=r("69f3"),u=r("7dd0"),p="Array Iterator",d=f.set,m=f.getterFor(p);i.exports=u(Array,"Array",function(h,v){d(this,{type:p,target:s(h),index:0,kind:v})},function(){var h=m(this),v=h.target,g=h.kind,y=h.index++;return!v||y>=v.length?(h.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:v[y],done:!1}:{value:[y,v[y]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")}),e439:(function(i,a,r){var s=r("23e7"),l=r("d039"),c=r("fc6a"),f=r("06cf").f,u=r("83ab"),p=l(function(){f(1)}),d=!u||p;s({target:"Object",stat:!0,forced:d,sham:!u},{getOwnPropertyDescriptor:function(h,v){return f(c(h),v)}})}),e538:(function(i,a,r){var s=r("b622");a.f=s}),e893:(function(i,a,r){var s=r("5135"),l=r("56ef"),c=r("06cf"),f=r("9bf2");i.exports=function(u,p){for(var d=l(p),m=f.f,h=c.f,v=0;v<d.length;v++){var g=d[v];s(u,g)||m(u,g,h(p,g))}}}),e8b5:(function(i,a,r){var s=r("c6b6");i.exports=Array.isArray||function(c){return s(c)=="Array"}}),e95a:(function(i,a,r){var s=r("b622"),l=r("3f8c"),c=s("iterator"),f=Array.prototype;i.exports=function(u){return u!==void 0&&(l.Array===u||f[c]===u)}}),f5df:(function(i,a,r){var s=r("00ee"),l=r("c6b6"),c=r("b622"),f=c("toStringTag"),u=l((function(){return arguments})())=="Arguments",p=function(d,m){try{return d[m]}catch{}};i.exports=s?l:function(d){var m,h,v;return d===void 0?"Undefined":d===null?"Null":typeof(h=p(m=Object(d),f))=="string"?h:u?l(m):(v=l(m))=="Object"&&typeof m.callee=="function"?"Arguments":v}}),f772:(function(i,a,r){var s=r("5692"),l=r("90e3"),c=s("keys");i.exports=function(f){return c[f]||(c[f]=l(f))}}),fb15:(function(i,a,r){if(r.r(a),typeof window<"u"){var s=window.document.currentScript;{var l=r("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(r.p=c[1])}r("99af"),r("4de4"),r("4160"),r("c975"),r("d81d"),r("a434"),r("159b"),r("a4d3"),r("e439"),r("dbb4"),r("b64b");function f(T,b,D){return b in T?Object.defineProperty(T,b,{value:D,enumerable:!0,configurable:!0,writable:!0}):T[b]=D,T}function u(T,b){var D=Object.keys(T);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(T);b&&(F=F.filter(function(G){return Object.getOwnPropertyDescriptor(T,G).enumerable})),D.push.apply(D,F)}return D}function p(T){for(var b=1;b<arguments.length;b++){var D=arguments[b]!=null?arguments[b]:{};b%2?u(Object(D),!0).forEach(function(F){f(T,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(D)):u(Object(D)).forEach(function(F){Object.defineProperty(T,F,Object.getOwnPropertyDescriptor(D,F))})}return T}function d(T){if(Array.isArray(T))return T}r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function m(T,b){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(T)))){var D=[],F=!0,G=!1,ne=void 0;try{for(var ce=T[Symbol.iterator](),Se;!(F=(Se=ce.next()).done)&&(D.push(Se.value),!(b&&D.length===b));F=!0);}catch(Xe){G=!0,ne=Xe}finally{try{!F&&ce.return!=null&&ce.return()}finally{if(G)throw ne}}return D}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function h(T,b){(b==null||b>T.length)&&(b=T.length);for(var D=0,F=new Array(b);D<b;D++)F[D]=T[D];return F}function v(T,b){if(T){if(typeof T=="string")return h(T,b);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(T);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return h(T,b)}}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(T,b){return d(T)||m(T,b)||v(T,b)||g()}function S(T){if(Array.isArray(T))return h(T)}function E(T){if(typeof Symbol<"u"&&Symbol.iterator in Object(T))return Array.from(T)}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(T){return S(T)||E(T)||v(T)||x()}var j=r("a352"),V=r.n(j);function O(T){T.parentElement!==null&&T.parentElement.removeChild(T)}function w(T,b,D){var F=D===0?T.children[0]:T.children[D-1].nextSibling;T.insertBefore(b,F)}var U=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function X(T){var b=Object.create(null);return function(F){var G=b[F];return G||(b[F]=T(F))}}var L=/-(\w)/g,I=X(function(T){return T.replace(L,function(b,D){return D.toUpperCase()})});r("5db7"),r("73d9");var N=["Start","Add","Remove","Update","End"],C=["Choose","Unchoose","Sort","Filter","Clone"],$=["Move"],k=[$,N,C].flatMap(function(T){return T}).map(function(T){return"on".concat(T)}),oe={manage:$,manageAndEmit:N,emit:C};function he(T){return k.indexOf(T)!==-1}r("caad"),r("2ca0");var ee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function fe(T){return ee.includes(T)}function Oe(T){return["transition-group","TransitionGroup"].includes(T)}function H(T){return["id","class","role","style"].includes(T)||T.startsWith("data-")||T.startsWith("aria-")||T.startsWith("on")}function R(T){return T.reduce(function(b,D){var F=y(D,2),G=F[0],ne=F[1];return b[G]=ne,b},{})}function ue(T){var b=T.$attrs,D=T.componentData,F=D===void 0?{}:D,G=R(Object.entries(b).filter(function(ne){var ce=y(ne,2),Se=ce[0];return ce[1],H(Se)}));return p(p({},G),F)}function z(T){var b=T.$attrs,D=T.callBackBuilder,F=R(Ne(b));Object.entries(D).forEach(function(ne){var ce=y(ne,2),Se=ce[0],Xe=ce[1];oe[Se].forEach(function(re){F["on".concat(re)]=Xe(re)})});var G="[data-draggable]".concat(F.draggable||"");return p(p({},F),{},{draggable:G})}function Ne(T){return Object.entries(T).filter(function(b){var D=y(b,2),F=D[0];return D[1],!H(F)}).map(function(b){var D=y(b,2),F=D[0],G=D[1];return[I(F),G]}).filter(function(b){var D=y(b,2),F=D[0];return D[1],!he(F)})}r("c740");function be(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}function ze(T,b){for(var D=0;D<b.length;D++){var F=b[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}function Re(T,b,D){return b&&ze(T.prototype,b),T}var Fe=function(b){var D=b.el;return D},we=function(b,D){return b.__draggable_context=D},Ie=function(b){return b.__draggable_context},de=(function(){function T(b){var D=b.nodes,F=D.header,G=D.default,ne=D.footer,ce=b.root,Se=b.realList;be(this,T),this.defaultNodes=G,this.children=[].concat(P(F),P(G),P(ne)),this.externalComponent=ce.externalComponent,this.rootTransition=ce.transition,this.tag=ce.tag,this.realList=Se}return Re(T,[{key:"render",value:function(D,F){var G=this.tag,ne=this.children,ce=this._isRootComponent,Se=ce?{default:function(){return ne}}:ne;return D(G,F,Se)}},{key:"updated",value:function(){var D=this.defaultNodes,F=this.realList;D.forEach(function(G,ne){we(Fe(G),{element:F[ne],index:ne})})}},{key:"getUnderlyingVm",value:function(D){return Ie(D)}},{key:"getVmIndexFromDomIndex",value:function(D,F){var G=this.defaultNodes,ne=G.length,ce=F.children,Se=ce.item(D);if(Se===null)return ne;var Xe=Ie(Se);if(Xe)return Xe.index;if(ne===0)return 0;var re=Fe(G[0]),Y=P(ce).findIndex(function(Z){return Z===re});return D<Y?0:ne}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),T})(),Ze=r("8bbf");function _(T,b){var D=T[b];return D?D():[]}function St(T){var b=T.$slots,D=T.realList,F=T.getKey,G=D||[],ne=["header","footer"].map(function(Z){return _(b,Z)}),ce=y(ne,2),Se=ce[0],Xe=ce[1],re=b.item;if(!re)throw new Error("draggable element must have an item slot");var Y=G.flatMap(function(Z,ge){return re({element:Z,index:ge}).map(function(ye){return ye.key=F(Z),ye.props=p(p({},ye.props||{}),{},{"data-draggable":!0}),ye})});if(Y.length!==G.length)throw new Error("Item slot must have only one child");return{header:Se,footer:Xe,default:Y}}function fo(T){var b=Oe(T),D=!fe(T)&&!b;return{transition:b,externalComponent:D,tag:D?Object(Ze.resolveComponent)(T):b?Ze.TransitionGroup:T}}function bt(T){var b=T.$slots,D=T.tag,F=T.realList,G=T.getKey,ne=St({$slots:b,realList:F,getKey:G}),ce=fo(D);return new de({nodes:ne,root:ce,realList:F})}function jt(T,b){var D=this;Object(Ze.nextTick)(function(){return D.$emit(T.toLowerCase(),b)})}function fn(T){var b=this;return function(D,F){if(b.realList!==null)return b["onDrag".concat(T)](D,F)}}function Dn(T){var b=this,D=fn.call(this,T);return function(F,G){D.call(b,F,G),jt.call(b,T,F)}}var Rn=null,Mn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(b){return b}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ln=["update:modelValue","change"].concat(P([].concat(P(oe.manageAndEmit),P(oe.emit)).map(function(T){return T.toLowerCase()}))),wn=Object(Ze.defineComponent)({name:"draggable",inheritAttrs:!1,props:Mn,emits:Ln,data:function(){return{error:!1}},render:function(){try{this.error=!1;var b=this.$slots,D=this.$attrs,F=this.tag,G=this.componentData,ne=this.realList,ce=this.getKey,Se=bt({$slots:b,tag:F,realList:ne,getKey:ce});this.componentStructure=Se;var Xe=ue({$attrs:D,componentData:G});return Se.render(Ze.h,Xe)}catch(re){return this.error=!0,Object(Ze.h)("pre",{style:{color:"red"}},re.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&U.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var b=this;if(!this.error){var D=this.$attrs,F=this.$el,G=this.componentStructure;G.updated();var ne=z({$attrs:D,callBackBuilder:{manageAndEmit:function(Xe){return Dn.call(b,Xe)},emit:function(Xe){return jt.bind(b,Xe)},manage:function(Xe){return fn.call(b,Xe)}}}),ce=F.nodeType===1?F:F.parentElement;this._sortable=new V.a(ce,ne),this.targetDomElement=ce,ce.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var b=this.list;return b||this.modelValue},getKey:function(){var b=this.itemKey;return typeof b=="function"?b:function(D){return D[b]}}},watch:{$attrs:{handler:function(b){var D=this._sortable;D&&Ne(b).forEach(function(F){var G=y(F,2),ne=G[0],ce=G[1];D.option(ne,ce)})},deep:!0}},methods:{getUnderlyingVm:function(b){return this.componentStructure.getUnderlyingVm(b)||null},getUnderlyingPotencialDraggableComponent:function(b){return b.__draggable_component__},emitChanges:function(b){var D=this;Object(Ze.nextTick)(function(){return D.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var D=P(this.modelValue);b(D),this.$emit("update:modelValue",D)},spliceList:function(){var b=arguments,D=function(G){return G.splice.apply(G,P(b))};this.alterList(D)},updatePosition:function(b,D){var F=function(ne){return ne.splice(D,0,ne.splice(b,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(b){var D=b.to,F=b.related,G=this.getUnderlyingPotencialDraggableComponent(D);if(!G)return{component:G};var ne=G.realList,ce={list:ne,component:G};if(D!==F&&ne){var Se=G.getUnderlyingVm(F)||{};return p(p({},Se),ce)}return ce},getVmIndexFromDomIndex:function(b){return this.componentStructure.getVmIndexFromDomIndex(b,this.targetDomElement)},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),Rn=b.item},onDragAdd:function(b){var D=b.item._underlying_vm_;if(D!==void 0){O(b.item);var F=this.getVmIndexFromDomIndex(b.newIndex);this.spliceList(F,0,D);var G={element:D,newIndex:F};this.emitChanges({added:G})}},onDragRemove:function(b){if(w(this.$el,b.item,b.oldIndex),b.pullMode==="clone"){O(b.clone);return}var D=this.context,F=D.index,G=D.element;this.spliceList(F,1);var ne={element:G,oldIndex:F};this.emitChanges({removed:ne})},onDragUpdate:function(b){O(b.item),w(b.from,b.item,b.oldIndex);var D=this.context.index,F=this.getVmIndexFromDomIndex(b.newIndex);this.updatePosition(D,F);var G={element:this.context.element,oldIndex:D,newIndex:F};this.emitChanges({moved:G})},computeFutureIndex:function(b,D){if(!b.element)return 0;var F=P(D.to.children).filter(function(Se){return Se.style.display!=="none"}),G=F.indexOf(D.related),ne=b.component.getVmIndexFromDomIndex(G),ce=F.indexOf(Rn)!==-1;return ce||!D.willInsertAfter?ne:ne+1},onDragMove:function(b,D){var F=this.move,G=this.realList;if(!F||!G)return!0;var ne=this.getRelatedContextFromMoveEvent(b),ce=this.computeFutureIndex(ne,b),Se=p(p({},this.context),{},{futureIndex:ce}),Xe=p(p({},b),{},{relatedContext:ne,draggedContext:Se});return F(Xe,D)},onDragEnd:function(){Rn=null}}}),Vn=wn;a.default=Vn}),fb6a:(function(i,a,r){var s=r("23e7"),l=r("861d"),c=r("e8b5"),f=r("23cb"),u=r("50c4"),p=r("fc6a"),d=r("8418"),m=r("b622"),h=r("1dde"),v=r("ae40"),g=h("slice"),y=v("slice",{ACCESSORS:!0,0:0,1:2}),S=m("species"),E=[].slice,x=Math.max;s({target:"Array",proto:!0,forced:!g||!y},{slice:function(j,V){var O=p(this),w=u(O.length),U=f(j,w),X=f(V===void 0?w:V,w),L,I,N;if(c(O)&&(L=O.constructor,typeof L=="function"&&(L===Array||c(L.prototype))?L=void 0:l(L)&&(L=L[S],L===null&&(L=void 0)),L===Array||L===void 0))return E.call(O,U,X);for(I=new(L===void 0?Array:L)(x(X-U,0)),N=0;U<X;U++,N++)U in O&&d(I,N,O[U]);return I.length=N,I}})}),fc6a:(function(i,a,r){var s=r("44ad"),l=r("1d80");i.exports=function(c){return s(l(c))}}),fdbc:(function(i,a){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(i,a,r){var s=r("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(Er)),Er.exports}var Cu=Nu();const Au=Vs(Cu),Ai=Fs("testResults",()=>{const e=yn({}),t=yn({}),n=yn({}),o=yn({});function i(s){for(const[l,c]of Object.entries(s))e[l]=c.status,t[l]=c.message||"",n[l]=c.time?new Date(c.time).toLocaleString():"",o[l]=c.latency||0}async function a(){try{const s=await Yt.get("/api/test/results");i(s)}catch{}}async function r(s){e[s]="testing",t[s]="";try{const l=await Yt.post("/api/test/proxy",{model:s});e[s]=l.status,t[s]=l.message||"",n[s]=new Date().toLocaleString(),o[s]=l.latency||0}catch(l){e[s]="error",t[s]=l.message,n[s]=new Date().toLocaleString(),o[s]=0}}return{modelStatus:e,modelMessage:t,modelTime:n,modelLatency:o,loadResults:a,testProxy:r}}),xu={class:"card-header"},Pu={class:"card-title"},Du={class:"provider-name"},Ru={class:"card-header-right"},Mu={class:"card-meta"},Lu={class:"meta-row"},wu=["title"],Vu={class:"meta-row"},Fu={class:"meta-value"},$u={key:0,class:"model-tags"},Uu=["onClick"],ju={key:0,class:"badge-mark"},Bu={key:1,class:"badge-mark"},ku={key:1,class:"text-empty"},Xu={class:"card-footer"},Ku=Jt({__name:"ProviderCard",props:{provider:{}},emits:["clone","delete","edit","open-models","copy-model","toggle-enabled"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ai(),r=wt(()=>n.provider.enabled!==!1),s=async p=>{const d=!!p;if(d!==r.value){try{await Rr.confirm(d?`确定启用该供应商(${c.value})?其 ${String(n.provider.models.length)} 个模型将对外提供。`:`确定停用该供应商(${c.value})?其 ${String(n.provider.models.length)} 个模型将立即停止对外提供(客户端请求返回 404),配置完整保留。`,d?"启用确认":"停用确认",{confirmButtonText:d?"启用":"停用",cancelButtonText:"取消",type:"warning"})}catch{return}o("toggle-enabled",d)}},l=p=>p?p.length<=8?p:`${p.substring(0,6)}...${p.substring(p.length-4)}`:"-",c=wt(()=>{const p=n.provider;return p.name||p.alias||l(p.apiKey||"")}),f=De(!1),u=async()=>{const p=n.provider.models;f.value=!0;try{await Promise.all(p.map(m=>a.testProxy(m.modelName)));const d=p.filter(m=>a.modelStatus[m.modelName]==="ok").length;i(`${c.value}: ${d}/${p.length} 个模型通过`,d===p.length?"success":"error")}catch{i("测试出错","error")}finally{f.value=!1}};return(p,d)=>{const m=J("el-tag"),h=J("el-switch"),v=J("el-icon"),g=J("el-button"),y=J("el-card");return te(),Ae(y,{shadow:"never",class:Pi(["provider-card",{"is-disabled":!r.value}])},{header:M(()=>[K("div",xu,[K("div",Pu,[K("span",Du,Te(c.value),1),e.provider.alias&&e.provider.name!==e.provider.alias?(te(),Ae(m,{key:0,type:"info",size:"small"},{default:M(()=>[ie(Te(e.provider.alias),1)]),_:1})):Qe("",!0),r.value?Qe("",!0):(te(),Ae(m,{key:1,type:"warning",size:"small","disable-transitions":""},{default:M(()=>[...d[9]||(d[9]=[ie("已停用",-1)])]),_:1}))]),K("div",Ru,[K("div",{class:"header-switch",onMousedown:d[0]||(d[0]=dn(()=>{},["stop"])),onTouchstart:d[1]||(d[1]=dn(()=>{},["stop"])),onClick:d[2]||(d[2]=dn(()=>{},["stop"]))},[A(h,{"model-value":r.value,size:"small","inline-prompt":"","active-text":"启用","inactive-text":"停用",onChange:s},null,8,["model-value"])],32),A(v,{class:"drag-hint-icon"},{default:M(()=>[A(Q($s))]),_:1})])])]),default:M(()=>[K("div",Mu,[K("div",Lu,[d[10]||(d[10]=K("span",{class:"meta-label"},"接口地址",-1)),K("span",{class:"meta-value",title:e.provider.apiBase},Te(e.provider.apiBase||"-"),9,wu)]),K("div",Vu,[d[11]||(d[11]=K("span",{class:"meta-label"},"密钥",-1)),K("span",Fu,Te(l(e.provider.apiKey||"")),1)])]),e.provider.models.length?(te(),Be("div",$u,[(te(!0),Be(Bo,null,ko(e.provider.models,S=>(te(),Be("span",{key:S.modelName,class:Pi(["model-tag",{ok:Q(a).modelStatus[S.modelName]==="ok",error:Q(a).modelStatus[S.modelName]==="error"}]),onClick:dn(E=>o("copy-model",S.modelName),["stop"])},[ie(Te(S.modelName)+" ",1),Q(a).modelStatus[S.modelName]==="ok"?(te(),Be("span",ju,"✓")):Qe("",!0),Q(a).modelStatus[S.modelName]==="error"?(te(),Be("span",Bu,"✗")):Qe("",!0)],10,Uu))),128))])):(te(),Be("div",ku,"暂无模型")),K("div",Xu,[K("span",{class:"model-count",onClick:d[3]||(d[3]=dn(S=>o("open-models"),["stop"]))},Te(e.provider.models.length)+" 个模型",1),K("div",{class:"card-actions",onClick:d[8]||(d[8]=dn(()=>{},["stop"]))},[A(g,{size:"small",loading:f.value,disabled:f.value||!e.provider.models.length,onClick:u},{default:M(()=>[ie(Te(f.value?"测试中...":"一键测试"),1)]),_:1},8,["loading","disabled"]),A(g,{size:"small",onClick:d[4]||(d[4]=S=>o("clone"))},{default:M(()=>[...d[12]||(d[12]=[ie("复制",-1)])]),_:1}),A(g,{size:"small",onClick:d[5]||(d[5]=S=>o("delete"))},{default:M(()=>[...d[13]||(d[13]=[ie("删除",-1)])]),_:1}),A(g,{size:"small",onClick:d[6]||(d[6]=S=>o("open-models"))},{default:M(()=>[...d[14]||(d[14]=[ie("模型",-1)])]),_:1}),A(g,{size:"small",onClick:d[7]||(d[7]=S=>o("edit"))},{default:M(()=>[...d[15]||(d[15]=[ie("编辑",-1)])]),_:1})])])]),_:1},8,["class"])}}}),Hu=cn(Ku,[["__scopeId","data-v-fb9c6a43"]]),Ao=[{id:"deepseek",name:"DeepSeek(按量 API)",alias:"ds",website:"https://platform.deepseek.com",keyUrl:"https://platform.deepseek.com/api_keys",keyNote:"登录 DeepSeek 开放平台 →「API keys」→ 创建。官方原生支持 Anthropic 协议:本模板已指向 Anthropic 兼容地址(api.deepseek.com/anthropic),配合 Claude Code 等客户端可原生保留缓存控制。同一把 Key 也可改用 OpenAI 协议地址 https://api.deepseek.com。",apiBase:"https://api.deepseek.com/anthropic",autoV1:!1,protocol:"anthropic",presetModels:["deepseek-v4-pro","deepseek-v4-flash"]},{id:"kimi",name:"月之暗面 Kimi(按量 API)",alias:"kimi",website:"https://platform.kimi.com",keyUrl:"https://platform.kimi.com/console/api-keys",keyNote:"登录 Kimi 开放平台 →「API Key 管理」→ 新建。本模板指向 Anthropic 兼容地址(api.moonshot.cn/anthropic),配合 Claude Code 使用;1M 上下文模型名需加 [1m] 后缀(如 kimi-k3[1m])。同一把 Key 也可改用 OpenAI 协议地址 https://api.moonshot.cn/v1。",apiBase:"https://api.moonshot.cn/anthropic",autoV1:!1,protocol:"anthropic",presetModels:["kimi-k3","kimi-k2.7-code"]},{id:"zhipu",name:"智谱 GLM(按量 API)",alias:"zhipu",website:"https://open.bigmodel.cn",keyUrl:"https://bigmodel.cn/usercenter/proj-mgmt/apikeys",keyNote:"登录智谱开放平台 →「API Keys」→ 创建。按量付费用此 Key + 本模板地址(OpenAI 兼容 /api/paas/v4)。若购买的是 Coding Plan 套餐,请改用下方「智谱 GLM(Coding Plan)」模板——套餐 Key 与按量 Key 不通用。",apiBase:"https://open.bigmodel.cn/api/paas/v4",autoV1:!1,protocol:"openai",presetModels:["glm-5.3","glm-5.3-flash"]},{id:"zhipu-coding",name:"智谱 GLM(Coding Plan)",alias:"zhipu-code",website:"https://bigmodel.cn/coding-plan/personal/overview",keyUrl:"https://bigmodel.cn/coding-plan/personal/overview",keyNote:"Coding Plan 套餐专用:Key 在套餐页面单独获取,与按量付费 Key 不通用。本模板指向套餐 Anthropic 端点(/api/anthropic),供 Claude Code 等客户端使用;注意地址填错会把套餐额度按按量计费扣费。",apiBase:"https://open.bigmodel.cn/api/anthropic",autoV1:!1,protocol:"anthropic",presetModels:["glm-5.3","glm-5.3-flash"]},{id:"ark",name:"火山方舟(按量 API)",alias:"ark",website:"https://console.volcengine.com/ark",keyUrl:"https://console.volcengine.com/ark/region:cn-beijing/apikey",keyNote:"火山方舟控制台 →「API Key 管理」→ 创建。API Key 鉴权可直接填模型名(如 doubao-seed-2.1-turbo);若使用 Access Key 鉴权则需填推理接入点 ID(ep-xxx)。购买 Coding Plan 套餐请改用下方「火山方舟(Coding Plan)」模板。",apiBase:"https://ark.cn-beijing.volces.com/api/v3",autoV1:!1,protocol:"openai"},{id:"ark-coding",name:"火山方舟(Coding Plan)",alias:"ark-code",website:"https://console.volcengine.com/ark",keyUrl:"https://console.volcengine.com/ark/region:cn-beijing/apikey",keyNote:"Coding Plan 套餐专用端点(/api/coding/v3),模型直接填模型名(如 ark-code-latest 自动切换、doubao-seed-evolving、glm-5.3、deepseek-v4-flash 等),无需接入点。注意:误用按量地址(/api/v3)会把套餐额度按按量计费扣费。",apiBase:"https://ark.cn-beijing.volces.com/api/coding/v3",autoV1:!1,protocol:"openai",presetModels:["ark-code-latest","doubao-seed-evolving"]},{id:"dashscope",name:"阿里云百炼(按量 API)",alias:"ali",website:"https://bailian.console.aliyun.com",keyUrl:"https://bailian.console.aliyun.com/?apiKey=1",keyNote:"登录阿里云百炼控制台 →右上角「API-KEY」→ 创建。本模板为 OpenAI 兼容地址(旧域名,仍可用);开通 Token Plan / Coding Plan 套餐的用户请到对应套餐控制台获取专属 Key 和地址。",apiBase:"https://dashscope.aliyuncs.com/compatible-mode/v1",autoV1:!1,protocol:"openai",presetModels:["qwen3.8-max","qwen3.7-plus"]},{id:"openai",name:"OpenAI(按量 API)",alias:"openai",website:"https://platform.openai.com",keyUrl:"https://platform.openai.com/api-keys",keyNote:"登录 OpenAI 平台 →「API keys」→ 创建新密钥。官方支持 /v1/chat/completions 与 /v1/responses 两种协议(不支持 Anthropic 协议)。",apiBase:"https://api.openai.com/v1",autoV1:!1,protocol:"openai",presetModels:["gpt-5.6-sol","gpt-5.5"]},{id:"st",name:"商汤",alias:"st",website:"https://senseaudio.cn/login?inviteCode=X5VH5PZY",apiBase:"https://api.senseaudio.cn",autoV1:!0,protocol:"openai",presetModels:["glm-5.3-flash","deepseek-v4-pro-0813","deepseek-v4-flash-0731"]},{id:"custom",name:"自定义 / OpenAI 兼容中转",alias:"",keyNote:"不使用模板预填,按中转站文档填写即可;协议拿不准先用「测试」验证。",apiBase:"",autoV1:!0,protocol:"openai"}];function Gu(e){const{toast:t}=un(),n=De(!1),o=De(null),i=yn({}),a=()=>{for(const f of Object.keys(i))delete i[f]},r=()=>{o.value=null},s=async()=>{const f=e.api_key.trim(),u=e.api_base.trim();if(!(!f||!u)){o.value={loading:!0};try{const p=await Yt.post("/api/test",{api_base:u,api_key:f,protocol:e.protocol,autoV1:e.autoV1});p.status==="ok"?(o.value={loading:!1,status:"ok",msg:`连接成功 (${p.models??0} 个模型)`},t("连接成功","success")):(o.value={loading:!1,status:"fail",msg:p.message},t(`连接失败: ${p.message}`,"error"))}catch(p){o.value={loading:!1,status:"fail",msg:p.message},t(p.message,"error")}}},l=async f=>{i[f.full_name]={loading:!0};try{const u=await Yt.post("/api/test/model",{model:f.upstream,api_base:e.api_base.trim(),api_key:e.api_key.trim(),protocol:f.protocol||e.protocol,autoV1:e.autoV1});i[f.full_name]={loading:!1,status:u.status==="ok"?"ok":"fail",msg:u.status==="ok"&&u.latency!=null?`${u.message} · ${u.latency}ms`:u.message,request:u.request,response:u.response},t(u.status==="ok"?"模型可用":`模型不可用: ${u.message}`,u.status==="ok"?"success":"error")}catch(u){i[f.full_name]={loading:!1,status:"fail",msg:u.message},t(u.message,"error")}};return{testingAll:n,keyStatus:o,modelTest:i,testKey:s,testModel:l,testAll:async()=>{const f=[...e.models];if(f.length){n.value=!0;try{await Promise.all(f.map(u=>l(u)))}finally{n.value=!1}}},clearModelTest:a,resetKeyStatus:r}}const Wu={key:0,class:"detail-body"},Yu={class:"detail-head"},zu={class:"detail-name"},Ju={class:"muted-sm"},Qu={class:"detail-pre"},Zu={class:"detail-pre"},_u=Jt({__name:"TestDetailDialog",props:{modelValue:{type:Boolean},detail:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,i=De("request");Xo(()=>n.modelValue,r=>{r&&(i.value="request")});const a=r=>{if(r==null)return"(无)";try{const s=new WeakSet;return JSON.stringify(r,(l,c)=>{if(c&&typeof c=="object"){if(s.has(c))return"[circular]";s.add(c)}return c},2)}catch{return String(r)}};return(r,s)=>{const l=J("el-tag"),c=J("el-tab-pane"),f=J("el-tabs"),u=J("el-button"),p=J("el-dialog");return te(),Ae(p,{"model-value":e.modelValue,title:"测试详情",width:"900px",top:"5vh","align-center":"","append-to-body":"","onUpdate:modelValue":s[2]||(s[2]=d=>o("update:modelValue",d))},{footer:M(()=>[A(u,{type:"primary",onClick:s[1]||(s[1]=d=>o("update:modelValue",!1))},{default:M(()=>[...s[3]||(s[3]=[ie("关闭",-1)])]),_:1})]),default:M(()=>[e.detail?(te(),Be("div",Wu,[K("div",Yu,[K("span",zu,Te(e.detail.name),1),A(l,{type:e.detail.status==="ok"?"success":"danger",size:"small"},{default:M(()=>[ie(Te(e.detail.status==="ok"?"成功":"失败"),1)]),_:1},8,["type"]),K("span",Ju,Te(e.detail.msg),1)]),A(f,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=d=>i.value=d)},{default:M(()=>[A(c,{label:"请求参数 (Request)",name:"request"},{default:M(()=>[K("pre",Qu,Te(a(e.detail.request)),1)]),_:1}),A(c,{label:"响应数据 (Response)",name:"response"},{default:M(()=>[K("pre",Zu,Te(a(e.detail.response)),1)]),_:1})]),_:1},8,["modelValue"])])):Qe("",!0)]),_:1},8,["model-value"])}}}),qu=cn(_u,[["__scopeId","data-v-08dfa117"]]),ef={class:"protocol-help"},tf={class:"help-item"},nf={class:"help-title"},rf={class:"help-item"},of={class:"help-title"},af={class:"help-item"},sf={class:"help-title"},lf={class:"help-item"},cf=Jt({__name:"ProtocolHelpDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=[{client:"Claude Code",endpoint:"/v1/messages",note:"Anthropic 协议入口;上游优先选 Anthropic Messages(官方支持时),缓存/思维链原生保留"},{client:"Codex CLI",endpoint:"/v1/chat/completions",note:"OpenAI Chat 协议入口;上游协议随意,网关自动转换"},{client:"其他 OpenAI SDK / 工具",endpoint:"/v1/chat/completions",note:"OpenAI Chat 协议入口(chat/completions 是事实标准)"}];return(i,a)=>{const r=J("el-tag"),s=J("el-divider"),l=J("el-table-column"),c=J("el-table"),f=J("el-button"),u=J("el-dialog");return te(),Ae(u,{"model-value":e.modelValue,title:"上游协议怎么选?",width:"760px","align-center":"","append-to-body":"","onUpdate:modelValue":a[1]||(a[1]=p=>n("update:modelValue",p))},{footer:M(()=>[A(f,{type:"primary",onClick:a[0]||(a[0]=p=>n("update:modelValue",!1))},{default:M(()=>[...a[15]||(a[15]=[ie("我知道了",-1)])]),_:1})]),default:M(()=>[K("div",ef,[a[13]||(a[13]=K("p",{class:"help-intro"}," 协议就是上游 API「说话的格式」——同样的模型,接口路径、请求和响应的字段都不一样。选错格式,请求会直接失败。 ",-1)),K("div",tf,[K("div",nf,[a[3]||(a[3]=ie("OpenAI Chat Completions ",-1)),A(r,{size:"small",type:"primary"},{default:M(()=>[...a[2]||(a[2]=[ie("最常用",-1)])]),_:1})]),a[4]||(a[4]=K("p",null,"业界事实标准。DeepSeek、通义、Kimi、智谱、火山方舟等绝大多数国内外厂商,以及各类 OpenAI 兼容中转站,都用这套格式。",-1))]),K("div",rf,[K("div",of,[a[6]||(a[6]=ie("Anthropic Messages ",-1)),A(r,{size:"small",type:"success"},{default:M(()=>[...a[5]||(a[5]=[ie("推荐优先",-1)])]),_:1})]),a[7]||(a[7]=K("p",null,[ie(" Claude 官方格式,以 /v1/messages 为标志。DeepSeek 官方 API 等少数厂商原生支持。 "),K("strong",null,"如果上游官方支持,优先选它"),ie("——尤其在 Claude Code 这类客户端场景下,能原生保留缓存控制(省 token 费用)、思维链等能力,避免协议来回转换造成损耗。 ")],-1))]),K("div",af,[K("div",sf,[a[9]||(a[9]=ie("OpenAI Responses ",-1)),A(r,{size:"small",type:"info"},{default:M(()=>[...a[8]||(a[8]=[ie("小众",-1)])]),_:1})]),a[10]||(a[10]=K("p",null,"OpenAI 官方推出的新一代接口(/v1/responses),目前基本只有 OpenAI 自家在用。",-1))]),A(s),K("div",lf,[a[11]||(a[11]=K("div",{class:"help-title"},"常用客户端对照表",-1)),a[12]||(a[12]=K("p",{class:"help-table-note"},"客户端接入本网关后用哪个入口,是客户端自己的属性,与上游协议选择无关;网关负责两边互转。",-1)),A(c,{data:o,size:"small",border:"",class:"help-table"},{default:M(()=>[A(l,{prop:"client",label:"客户端",width:"150"}),A(l,{prop:"endpoint",label:"网关入口",width:"190"}),A(l,{prop:"note",label:"说明","min-width":"220"})]),_:1})]),a[14]||(a[14]=K("div",{class:"help-item"},[K("div",{class:"help-title"},"还是拿不准?"),K("p",null,"先选 OpenAI Chat Completions,添加模型后用「测试」按钮验证:成功即选对;报 404 / format 类错误时,换 Anthropic Messages 再试。")],-1))])]),_:1},8,["model-value"])}}}),uf=cn(cf,[["__scopeId","data-v-2248b61a"]]),ff={class:"full-width mb-8"},df={class:"flex-gap-8 mb-8"},pf={class:"model-select-wrap"},hf={class:"muted-13"},mf={key:0,class:"muted-12"},vf=Jt({__name:"ProviderModelEditor",props:{form:{},modelTest:{},testingAll:{type:Boolean},editingName:{}},emits:["test-model","test-all","show-test-detail"],setup(e,{expose:t,emit:n}){const o=e,i=n,{toast:a}=un(),r=De([]),s=De([]),l=wt(()=>r.value.filter(v=>!o.form.models.some(g=>g.full_name===(o.form.alias.trim()?`${o.form.alias.trim()}/${v}`:v)))),c=()=>{const v=o.form.alias.trim();for(const g of s.value){const y=g.trim();if(!y)continue;r.value.includes(y)||r.value.push(y);let S=v?`${v}/${y}`:y,E=2;for(;o.form.models.some(x=>x.full_name===S);)S=`${v?`${v}/`:""}${y}-${E}`,E+=1;o.form.models.push({full_name:S,upstream:y,protocol:o.form.protocol})}s.value=[]},f=v=>{o.form.models.splice(v,1)};t({loadCachedModels:async v=>{const g=await Yt.get(`/api/test/models-cache/${encodeURIComponent(v)}`).catch(()=>({models:[]}));r.value=g.models||[]},addPresetModels:v=>{r.value=[...v],s.value=[...v],c()},resetState:()=>{r.value=[],s.value=[]}});const m=De(!1),h=async()=>{var v;m.value=!0;try{const g=o.editingName!=null?o.editingName:`new::${o.form.api_base.trim()}`,y=await Yt.post("/api/test/fetch-models",{api_base:o.form.api_base.trim(),api_key:o.form.api_key.trim(),keyId:g,protocol:o.form.protocol,autoV1:o.form.autoV1});y.status==="ok"&&((v=y.models)==null?void 0:v.length)>0?(r.value=[...new Set([...r.value,...y.models])],a(`已获取 ${y.models.length} 个模型`,"success")):/404/.test(y.message||"")?a("该上游不支持获取模型列表(404),请手动输入模型名,或到官网文档查看支持的模型","error"):a(y.message||"未获取到模型","error")}catch(g){a(g.message,"error")}finally{m.value=!1}};return(v,g)=>{const y=J("el-icon"),S=J("el-tooltip"),E=J("el-alert"),x=J("el-option"),P=J("el-select"),j=J("el-button"),V=J("el-table-column"),O=J("el-input"),w=J("el-switch"),U=J("el-link"),X=J("el-table"),L=J("el-form-item");return te(),Ae(L,{prop:"models"},{label:M(()=>[g[2]||(g[2]=K("span",null,"模型列表",-1)),A(S,{placement:"top",content:"这家供应商下你要用哪些模型。至少添加一个才能保存;客户端请求时填「模型全名」即可路由到这里。"},{default:M(()=>[A(y,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(()=>[K("div",ff,[A(E,{type:"info",closable:!1,"show-icon":"",title:"此处测试为直连上游(不经过网关),仅验证连通性;保存后可在列表卡片中测试完整代理链路。"})]),K("div",df,[K("div",pf,[A(P,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=I=>s.value=I),multiple:"","collapse-tags":"",filterable:"","allow-create":"","default-first-option":"",placeholder:"搜索或输入模型名"},{default:M(()=>[(te(!0),Be(Bo,null,ko(l.value,I=>(te(),Ae(x,{key:I,label:I,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),A(j,{onClick:c,disabled:!s.value.length},{default:M(()=>[...g[3]||(g[3]=[ie("添加",-1)])]),_:1},8,["disabled"]),A(j,{loading:m.value,disabled:!e.form.api_base||!e.form.api_key,onClick:h},{default:M(()=>[ie(Te(m.value?"":"获取模型列表"),1)]),_:1},8,["loading","disabled"]),A(j,{loading:e.testingAll,disabled:!e.form.models.length||!e.form.api_base||!e.form.api_key,onClick:g[1]||(g[1]=I=>i("test-all"))},{default:M(()=>[ie(Te(e.testingAll?"":"测试全部"),1)]),_:1},8,["loading","disabled"])]),A(X,{border:"",data:e.form.models,class:"full-width","empty-text":"暂无模型"},{default:M(()=>[A(V,{type:"index",label:"#",width:"50",align:"center"}),A(V,{"min-width":"260"},{header:M(()=>[g[4]||(g[4]=K("span",{class:"col-help"},"模型全名(可编辑)",-1)),A(S,{placement:"top",content:"发请求时实际使用的模型名称(客户端填的 model 参数),默认 = 别名/上游模型名,可自由修改;全局唯一,点击可复制。"},{default:M(()=>[A(y,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(({row:I})=>[A(O,{modelValue:I.full_name,"onUpdate:modelValue":N=>I.full_name=N},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),A(V,{prop:"upstream","min-width":"180"},{header:M(()=>[g[5]||(g[5]=K("span",{class:"col-help"},"上游模型",-1)),A(S,{placement:"top",content:"供应商 API 真实的模型标识(如 deepseek-chat、gpt-4o),请求会被转发给这个模型;同一上游模型可添加多次(如配不同协议),但模型全名不能重复。"},{default:M(()=>[A(y,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(({row:I})=>[K("span",hf,Te(I.upstream),1)]),_:1}),A(V,{width:"230"},{header:M(()=>[g[6]||(g[6]=K("span",{class:"col-help"},"上游协议",-1)),A(S,{placement:"top",content:"请求该模型时使用的 API 格式,默认继承上方供应商协议;个别模型可单独改(如同一供应商既有 OpenAI 风格又有 Anthropic 风格的模型)。"},{default:M(()=>[A(y,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(({row:I})=>[A(P,{modelValue:I.protocol,"onUpdate:modelValue":N=>I.protocol=N,class:"full-width",size:"small"},{default:M(()=>[A(x,{label:"Anthropic Messages",value:"anthropic"}),A(x,{label:"OpenAI Chat Completions",value:"openai"}),A(x,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue","onUpdate:modelValue"])]),_:1}),A(V,{width:"120",align:"center"},{header:M(()=>[g[7]||(g[7]=K("span",{class:"col-help"},"完整透传",-1)),A(S,{placement:"top",content:"开启后请求此模型不做任何参数加工(不注入、不补字段、不重建流),请求与响应都原样转发上游;仅保留模型名替换与 [DONE] 兜底。要求客户端协议与上游协议一致——用其它协议调用会直接报 400,不会自动转换。日志仍完整记录入站/上游/客户端三段原文。"},{default:M(()=>[A(y,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(({row:I})=>[A(w,{modelValue:I.rawPassthrough,"onUpdate:modelValue":N=>I.rawPassthrough=N},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),A(V,{label:"测试结果(直连)",width:"170",align:"center"},{default:M(({row:I})=>{var N,C;return[(N=e.modelTest[I.full_name])!=null&&N.loading?(te(),Be("span",mf,"测试中...")):(C=e.modelTest[I.full_name])!=null&&C.status?(te(),Ae(U,{key:1,type:e.modelTest[I.full_name].status==="ok"?"success":"danger",class:"test-result-link",onClick:$=>i("show-test-detail",I.full_name)},{default:M(()=>[ie(Te(e.modelTest[I.full_name].msg),1)]),_:2},1032,["type","onClick"])):Qe("",!0)]}),_:1}),A(V,{width:"140",align:"center",label:"操作"},{default:M(({row:I})=>{var N;return[A(j,{link:"",loading:(N=e.modelTest[I.full_name])==null?void 0:N.loading,disabled:!e.form.api_base||!e.form.api_key,onClick:C=>i("test-model",I)},{default:M(()=>[...g[8]||(g[8]=[ie("测试",-1)])]),_:1},8,["loading","disabled","onClick"]),A(j,{link:"",type:"danger",onClick:C=>f(e.form.models.indexOf(I))},{default:M(()=>[...g[9]||(g[9]=[ie("删除",-1)])]),_:1},8,["onClick"])]}),_:1})]),_:1},8,["data"])]),_:1})}}}),gf=cn(vf,[["__scopeId","data-v-cd73a0be"]]),yf={class:"dialog-body"},Ef={class:"flex-gap-8 full-width"},Sf={class:"full-url-toggle label-inline-toggle"},bf={key:0,class:"muted-sm"},Tf={key:0,class:"mt-4"},Of={key:0,class:"test-ok-text"},If={key:1,class:"test-fail-text"},Nf={key:1,class:"muted-sm"},Cf={class:"flex-gap-8 flex-center"},Af=Jt({__name:"ProviderModal",props:{editName:{},provider:{},cloneOf:{}},emits:["close","saved"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ko(),r=De(n.editName),s=wt(()=>n.editName!=null),l=De(""),c=wt(()=>Ao.find(H=>H.id===l.value)),f=H=>{var ue;const R=Ao.find(z=>z.id===H);R&&(d.name=R.name,d.alias=R.alias,d.website=R.website||"",d.api_base=R.apiBase,d.autoV1=R.autoV1,d.protocol=R.protocol,(ue=R.presetModels)!=null&&ue.length&&!d.models.length&&V(R.presetModels))},u=()=>{var R;const H=(R=c.value)==null?void 0:R.keyUrl;H&&window.open(H,"_blank","noopener")},p=()=>{const H=d.website.trim();H&&X(H)&&window.open(H,"_blank","noopener")},d=yn({name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,enabled:!0,models:[]}),{testingAll:m,keyStatus:h,modelTest:v,testKey:g,testModel:y,testAll:S,clearModelTest:E,resetKeyStatus:x}=Gu(d),P=De(null),j=H=>{var R;return(R=P.value)==null?void 0:R.loadCachedModels(H)},V=H=>{var R;return(R=P.value)==null?void 0:R.addPresetModels(H)},O=()=>{var H;return(H=P.value)==null?void 0:H.resetState()},w=De(),U=De(!1),X=H=>{try{const R=new URL(H);return R.protocol==="http:"||R.protocol==="https:"}catch{return!1}},L=(H,R,ue)=>{!R||X(R)?ue():ue(new Error("请输入有效的 URL(以 http:// 或 https:// 开头)"))},I={name:[{required:!0,message:"请输入供应商名称",trigger:"blur"}],alias:[{required:!0,message:"请输入供应商英文名称(别名)",trigger:"blur"}],website:[{validator:L,trigger:"blur"}],api_base:[{required:!0,message:"请输入请求地址 (API Base)",trigger:"blur"},{validator:L,trigger:"blur"}],api_key:[{required:!0,message:"请输入 API Key",trigger:"blur"}]},N={anthropic:"/messages",openai:"/chat/completions","openai-responses":"/responses"},C=wt(()=>{const H=d.api_base.trim().replace(/\/+$/,"");if(!H)return"";const R=N[d.protocol]||"";return d.autoV1&&!/\/v\d+$/i.test(H)?`${H}/v1${R}`:`${H}${R}`}),$=()=>{var H;Object.assign(d,{name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,enabled:!0,models:[]}),(H=w.value)==null||H.clearValidate(),l.value="",O(),x(),E(),oe.value=!1,ee.value=null},k=async()=>{var R,ue;$();const H=n.provider;if(n.editName!=null&&H)await j(H.name),Object.assign(d,{name:H.name||"",alias:H.alias||"",website:H.website||"",api_base:H.apiBase||"",protocol:H.customLlmProvider||"anthropic",api_key:H.apiKey||"",autoV1:H.autoV1!==!1,enabled:H.enabled!==!1,models:H.models.map(z=>({full_name:z.modelName,upstream:z.model,protocol:z.customLlmProvider||H.customLlmProvider||"anthropic",rawPassthrough:z.rawPassthrough===!0}))});else if(n.cloneOf){const z=n.cloneOf;z.name&&await j(z.name);const Ne=(R=z.alias)==null?void 0:R.trim(),be=Ne?`${Ne}-copy`:"copy",ze=`${((ue=z.name)==null?void 0:ue.trim())||Ne||"供应商"}副本`;Object.assign(d,{name:ze,alias:be,website:z.website||"",api_base:z.apiBase||"",protocol:z.customLlmProvider||"anthropic",api_key:z.apiKey||"",autoV1:z.autoV1!==!1,enabled:z.enabled!==!1,models:(z.models||[]).map(Re=>{let Fe=Re.modelName;return Ne&&Fe.startsWith(`${Ne}/`)&&(Fe=`${be}/${Fe.slice(Ne.length+1)}`),{full_name:Fe,upstream:Re.model,protocol:Re.customLlmProvider||z.customLlmProvider||"anthropic",rawPassthrough:Re.rawPassthrough===!0}})})}};ca(()=>{r.value=n.editName,k()}),Xo(()=>n.editName,async H=>{r.value=H,await k()});const oe=De(!1),he=De(!1),ee=De(null),fe=H=>{const R=v[H];!R||R.loading||(ee.value={name:H,status:R.status||"",msg:R.msg||"",request:R.request,response:R.response},oe.value=!0)},Oe=async()=>{var Ie;if(!await((Ie=w.value)==null?void 0:Ie.validate().catch(()=>!1))||!d.models.length)return;const R=d.models.map(de=>({full_name:de.full_name.trim(),upstream:de.upstream.trim(),protocol:de.protocol||d.protocol,rawPassthrough:de.rawPassthrough===!0})).filter(de=>de.full_name);if(!R.length){i("请至少填写一个有效的模型名称","error");return}const ue=d.name.trim(),z=d.alias.trim(),Ne=d.website.trim(),be=d.api_base.trim(),ze=d.api_key.trim(),Re=a.suppliers.filter(de=>de.name!==r.value);if(Re.some(de=>de.name===ue)){i(`供应商名称已存在: ${ue}`,"error");return}const Fe=Re.filter(de=>de.enabled!==!1);if(d.enabled&&z&&Fe.some(de=>(de.alias??"").trim()===z)){i(`供应商别名已被启用中的供应商占用: ${z}`,"error");return}const we={name:ue,...z?{alias:z}:{},...Ne?{website:Ne}:{},customLlmProvider:d.protocol,apiKey:ze,apiBase:be,...d.autoV1?{}:{autoV1:!1},...d.enabled?{}:{enabled:!1},models:R.map(de=>({modelName:de.full_name,model:de.upstream,...de.rawPassthrough?{rawPassthrough:!0}:{},...de.protocol&&de.protocol!==d.protocol?{customLlmProvider:de.protocol}:{}}))};if(d.enabled){const de=Fe.flatMap(_=>_.models.map(St=>St.modelName)),Ze=R.map(_=>_.full_name).find(_=>de.includes(_));if(Ze){i(`模型名称已被启用中的供应商占用: ${Ze}`,"error");return}}U.value=!0;try{const de=r.value==null,Ze=await a.saveProviders(de?[we,...Re]:[...Re,we]);de&&a.moveProviderToTop(ue),i(Ze.message||"供应商已保存","success"),o("saved")}catch(de){i(de.message,"error")}finally{U.value=!1}};return(H,R)=>{const ue=J("el-alert"),z=J("el-option"),Ne=J("el-select"),be=J("el-form-item"),ze=J("el-icon"),Re=J("el-tooltip"),Fe=J("el-input"),we=J("el-switch"),Ie=J("el-button"),de=J("el-form"),Ze=J("el-dialog");return te(),Ae(Ze,{"model-value":!0,title:r.value?"编辑供应商":"添加供应商",width:"1200px",top:"3vh","align-center":"","close-on-click-modal":!1,onClose:R[13]||(R[13]=_=>o("close"))},{footer:M(()=>[K("div",Cf,[A(Ie,{onClick:R[12]||(R[12]=_=>o("close")),disabled:U.value},{default:M(()=>[...R[30]||(R[30]=[ie(" 取消 ",-1)])]),_:1},8,["disabled"]),A(Ie,{type:"primary",loading:U.value,onClick:Oe,disabled:!d.models.length||!d.api_base||!d.api_key||U.value},{default:M(()=>[ie(Te(U.value?"保存中...":r.value?"保存":"添加供应商"),1)]),_:1},8,["loading","disabled"])])]),default:M(()=>[K("div",yf,[!s.value&&!n.cloneOf?(te(),Ae(ue,{key:0,class:"mb-16",type:"info",closable:!1,"show-icon":"",title:"添加流程:选模板 → 去平台创建 API Key → 粘贴 Key → 测试 → 保存。全新手建议从「供应商模板」开始。"})):Qe("",!0),A(de,{ref_key:"formRef",ref:w,model:d,rules:I,"label-position":"top"},{default:M(()=>[!s.value&&!n.cloneOf?(te(),Ae(be,{key:0,label:"供应商模板"},{default:M(()=>[K("div",Ef,[A(Ne,{modelValue:l.value,"onUpdate:modelValue":R[0]||(R[0]=_=>l.value=_),class:"full-width",placeholder:"选择模板快速填充,或选「自定义」手动填写",onChange:f},{default:M(()=>[(te(!0),Be(Bo,null,ko(Q(Ao),_=>(te(),Ae(z,{key:_.id,label:_.name,value:_.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),R[14]||(R[14]=K("div",{class:"muted-sm"},"内置常用厂商的地址和配置,选中后自动填充下方所有字段,仍可自由修改",-1))]),_:1})):Qe("",!0),A(be,{prop:"name"},{label:M(()=>[R[15]||(R[15]=K("span",null,"供应商名称",-1)),A(Re,{placement:"top",content:"给你接入的 AI 服务起个名字,只在管理界面显示,随便起(如:DeepSeek、公司中转、朋友的号)。"},{default:M(()=>[A(ze,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(()=>[A(Fe,{modelValue:d.name,"onUpdate:modelValue":R[1]||(R[1]=_=>d.name=_),modelModifiers:{trim:!0},placeholder:"如:DeepSeek(仅用于界面展示)"},null,8,["modelValue"])]),_:1}),A(be,null,{label:M(()=>[R[16]||(R[16]=K("span",null,"启用",-1)),A(Re,{placement:"top",content:"关闭后本供应商的全部模型不参与网关路由(客户端请求会得到 404,模型列表也不显示),配置本身完整保留,随时可再开启。"},{default:M(()=>[A(ze,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(()=>[A(we,{modelValue:d.enabled,"onUpdate:modelValue":R[2]||(R[2]=_=>d.enabled=_)},null,8,["modelValue"]),R[17]||(R[17]=K("div",{class:"muted-sm"},"关闭后本供应商的模型不再对外提供(卡片开关可随时切换)",-1))]),_:1}),A(be,{prop:"alias"},{label:M(()=>[R[18]||(R[18]=K("span",null,"供应商英文名称(别名)",-1)),A(Re,{placement:"top",content:"模型名的统一前缀。添加模型后名字会变成 前缀/模型名(如 ds/deepseek-chat),客户端选择模型时一眼能看出属于哪家。仅限英文小写。"},{default:M(()=>[A(ze,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1})]),default:M(()=>[A(Fe,{modelValue:d.alias,"onUpdate:modelValue":R[3]||(R[3]=_=>d.alias=_),modelModifiers:{trim:!0},placeholder:"如:ds"},null,8,["modelValue"]),R[19]||(R[19]=K("div",{class:"muted-sm"},"添加模型时的默认名称前缀,如 ds/deepseek-chat",-1))]),_:1}),A(be,{prop:"website"},{label:M(()=>[R[21]||(R[21]=K("span",null,"官网链接",-1)),A(Re,{placement:"top",content:"选填。方便以后回来查文档、看模型列表;填了之后这里会出现「打开链接」按钮。"},{default:M(()=>[A(ze,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1}),d.website?(te(),Ae(Ie,{key:0,class:"label-action-btn",link:"",type:"primary",onClick:p},{default:M(()=>[...R[20]||(R[20]=[ie("打开链接",-1)])]),_:1})):Qe("",!0)]),default:M(()=>[A(Fe,{modelValue:d.website,"onUpdate:modelValue":R[4]||(R[4]=_=>d.website=_),modelModifiers:{trim:!0},placeholder:"https://platform.deepseek.com(可选)"},null,8,["modelValue"])]),_:1}),A(be,{prop:"api_base"},{label:M(()=>[R[23]||(R[23]=K("span",null,"请求地址 (API Base)",-1)),A(Re,{placement:"top",content:"网关往哪发请求。官方厂商在「API 文档」里找,通常长得像 https://api.xxx.com;中转站会直接给你这个地址。模板会自动填好。"},{default:M(()=>[A(ze,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1}),K("div",Sf,[R[22]||(R[22]=K("span",{class:"muted-13"},"自动补全 /v1",-1)),A(we,{modelValue:d.autoV1,"onUpdate:modelValue":R[5]||(R[5]=_=>d.autoV1=_)},null,8,["modelValue"])])]),default:M(()=>[A(Fe,{modelValue:d.api_base,"onUpdate:modelValue":R[6]||(R[6]=_=>d.api_base=_),modelModifiers:{trim:!0},placeholder:"https://api.deepseek.com"},null,8,["modelValue"]),C.value?(te(),Be("div",bf," 实际请求地址:"+Te(C.value)+"(开启自动补全时,地址末尾无 /v1~v9 版本段会插入 /v1;上游无版本前缀请关闭) ",1)):Qe("",!0)]),_:1}),A(be,null,{label:M(()=>[R[25]||(R[25]=K("span",null,"上游协议 (Protocol)",-1)),A(Ie,{class:"label-action-btn",link:"",type:"primary",onClick:R[7]||(R[7]=_=>he.value=!0)},{default:M(()=>[...R[24]||(R[24]=[ie(" 如何选择 ",-1)])]),_:1})]),default:M(()=>[A(Ne,{modelValue:d.protocol,"onUpdate:modelValue":R[8]||(R[8]=_=>d.protocol=_)},{default:M(()=>[A(z,{label:"Anthropic Messages",value:"anthropic"}),A(z,{label:"OpenAI Chat Completions",value:"openai"}),A(z,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue"]),R[26]||(R[26]=K("div",{class:"muted-sm protocol-hint"},"上游接口的 API 风格,选错会请求失败;拿不准时先用下方「测试」逐个验证。",-1))]),_:1}),A(be,{prop:"api_key"},{label:M(()=>{var _,St;return[R[29]||(R[29]=K("span",null,"API Key",-1)),A(Re,{placement:"top",content:"你在上游平台的「钥匙」,证明请求是你发的、从你账户扣费。在平台控制台创建,形如 sk- 开头的一串字符,粘贴到这里即可。"},{default:M(()=>[A(ze,{class:"col-help-icon"},{default:M(()=>[A(Q(Ct))]),_:1})]),_:1}),(_=c.value)!=null&&_.keyUrl?(te(),Ae(Ie,{key:0,class:"label-action-btn",link:"",type:"primary",onClick:u},{default:M(()=>[...R[27]||(R[27]=[ie("获取 Key",-1)])]),_:1})):Qe("",!0),A(Ie,{class:"label-action-btn",link:"",type:"primary",loading:(St=Q(h))==null?void 0:St.loading,disabled:!d.api_base||!d.api_key,onClick:Q(g)},{default:M(()=>[...R[28]||(R[28]=[ie("测试",-1)])]),_:1},8,["loading","disabled","onClick"])]}),default:M(()=>{var _;return[A(Fe,{modelValue:d.api_key,"onUpdate:modelValue":R[9]||(R[9]=St=>d.api_key=St),modelModifiers:{trim:!0},placeholder:"如:sk-xxxxxxxx(DeepSeek 开放平台密钥)",onKeyup:Us(Q(g),["enter"])},null,8,["modelValue","onKeyup"]),Q(h)&&!Q(h).loading?(te(),Be("div",Tf,[Q(h).status==="ok"?(te(),Be("span",Of,Te(Q(h).msg),1)):Q(h).status==="fail"?(te(),Be("span",If,Te(Q(h).msg),1)):Qe("",!0)])):Qe("",!0),(_=c.value)!=null&&_.keyNote?(te(),Be("div",Nf,Te(c.value.keyNote),1)):Qe("",!0)]}),_:1}),A(gf,{ref_key:"modelEditorRef",ref:P,form:d,"model-test":Q(v),"testing-all":Q(m),"editing-name":r.value,onTestModel:Q(y),onTestAll:Q(S),onShowTestDetail:fe},null,8,["form","model-test","testing-all","editing-name","onTestModel","onTestAll"])]),_:1},8,["model"])]),A(qu,{modelValue:oe.value,"onUpdate:modelValue":R[10]||(R[10]=_=>oe.value=_),detail:ee.value},null,8,["modelValue","detail"]),A(uf,{modelValue:he.value,"onUpdate:modelValue":R[11]||(R[11]=_=>he.value=_)},null,8,["modelValue"])]),_:1},8,["title"])}}}),xf=cn(Af,[["__scopeId","data-v-473a3050"]]),Pf={class:"models-dialog-body"},Df=["onClick"],Rf={class:"muted-13"},Mf={key:3,class:"muted-disabled"},Lf={key:0,class:"muted-12"},wf={key:1,class:"muted-disabled"},Vf={key:0,class:"muted-12"},Ff={key:1,class:"muted-disabled"},$f=Jt({__name:"ProviderModelsDialog",props:{modelValue:{type:Boolean},providerName:{}},emits:["update:modelValue","copy-model","changed"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ko(),r=Ai(),s=wt(()=>n.providerName!=null?a.suppliers.find(f=>f.name===n.providerName):void 0),l=wt(()=>{const f=s.value;return f?f.alias&&f.alias!==f.name?`${f.name}(${f.alias})`:f.name:""}),c=async f=>{try{await Rr.confirm(`确定删除模型 "${f}"?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await a.deleteModel(f),o("changed"),i("模型已删除","success")}catch(u){u!=="cancel"&&i(u.message,"error")}};return(f,u)=>{const p=J("el-alert"),d=J("el-table-column"),m=J("el-tag"),h=J("el-tooltip"),v=J("el-button"),g=J("el-table"),y=J("el-empty"),S=J("el-dialog");return te(),Ae(S,{"model-value":e.modelValue,title:l.value,width:"1200px",top:"3vh","destroy-on-close":"","onUpdate:modelValue":u[0]||(u[0]=E=>o("update:modelValue",E))},{default:M(()=>[K("div",Pf,[s.value?(te(),Ae(p,{key:0,class:"mb-8",type:"info",closable:!1,"show-icon":"",title:"测试走网关代理:请求经本网关转发至上游(含协议转换、计费记录),验证完整链路;编辑弹窗内测试为直连上游,仅验证连通性。"})):Qe("",!0),s.value&&s.value.models.length?(te(),Ae(g,{key:1,border:"",data:s.value.models,stripe:"",class:"models-table full-width"},{default:M(()=>[A(d,{prop:"modelName",label:"模型名称","min-width":"220"},{default:M(({row:E})=>[K("span",{class:"link-blue",onClick:x=>o("copy-model",E.modelName),title:"点击复制"},Te(E.modelName),9,Df)]),_:1}),A(d,{prop:"model",label:"上游模型","min-width":"180"},{default:M(({row:E})=>[K("span",Rf,Te(E.model),1)]),_:1}),A(d,{prop:"customLlmProvider",label:"上游协议",width:"100",align:"center"},{default:M(({row:E})=>[A(m,{type:"info"},{default:M(()=>[ie(Te(E.customLlmProvider||s.value.customLlmProvider),1)]),_:2},1024)]),_:1}),A(d,{label:"状态",width:"150",align:"center"},{default:M(({row:E})=>[Q(r).modelStatus[E.modelName]==="ok"?(te(),Ae(m,{key:0,type:"success"},{default:M(()=>[...u[1]||(u[1]=[ie("通过",-1)])]),_:1})):Q(r).modelStatus[E.modelName]==="error"?(te(),Ae(h,{key:1,content:Q(r).modelMessage[E.modelName],placement:"top","show-after":300},{default:M(()=>[A(m,{type:"danger",class:"error-tag"},{default:M(()=>[ie(Te(Q(r).modelMessage[E.modelName]),1)]),_:2},1024)]),_:2},1032,["content"])):Q(r).modelStatus[E.modelName]==="testing"?(te(),Ae(m,{key:2,type:"warning"},{default:M(()=>[...u[2]||(u[2]=[ie("测试中",-1)])]),_:1})):(te(),Be("span",Mf,"-"))]),_:1}),A(d,{label:"耗时",width:"80",align:"center"},{default:M(({row:E})=>[Q(r).modelLatency[E.modelName]?(te(),Be("span",Lf,Te((Q(r).modelLatency[E.modelName]/1e3).toFixed(1))+"s ",1)):(te(),Be("span",wf,"-"))]),_:1}),A(d,{label:"上次测试","min-width":"160"},{default:M(({row:E})=>[Q(r).modelTime[E.modelName]?(te(),Be("span",Vf,Te(Q(r).modelTime[E.modelName]),1)):(te(),Be("span",Ff,"未测试"))]),_:1}),A(d,{label:"操作",width:"140",align:"center"},{default:M(({row:E})=>[A(v,{link:"",loading:Q(r).modelStatus[E.modelName]==="testing",onClick:x=>Q(r).testProxy(E.modelName)},{default:M(()=>[...u[3]||(u[3]=[ie(" 测试 ",-1)])]),_:1},8,["loading","onClick"]),A(v,{link:"",type:"danger",onClick:x=>c(E.modelName)},{default:M(()=>[...u[4]||(u[4]=[ie(" 删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])):s.value?(te(),Ae(y,{key:2,description:"暂无模型","image-size":64})):Qe("",!0)])]),_:1},8,["model-value","title"])}}}),Uf=cn($f,[["__scopeId","data-v-a79f8c7b"]]),jf={class:"muted-sm mb-8"},Bf={class:"flex-between"},kf={class:"flex-gap-8"},Xf=Jt({__name:"ConfigFileDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue","saved"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=De(""),r=De(""),s=De(!1);Xo(()=>n.modelValue,async f=>{if(f){a.value="";try{const u=await Yt.get("/api/config");a.value=JSON.stringify(u,null,2)+`
|
|
31
|
+
`,r.value="ezllm.config.json"}catch(u){i(u.message,"error")}}});const l=async()=>{const f=await ua(a.value);i(f?"已复制":"复制失败",f?"success":"error")},c=async()=>{s.value=!0;try{const f=JSON.parse(a.value),u=await Yt.put("/api/config",f);o("update:modelValue",!1),i(u.message||"配置已保存","success"),u.restartHint&&i(u.restartHint,"warning"),o("saved")}catch(f){f instanceof SyntaxError?i(`JSON 解析失败: ${f.message}`,"error"):i(f.message,"error")}finally{s.value=!1}};return(f,u)=>{const p=J("el-input"),d=J("el-button"),m=J("el-dialog");return te(),Ae(m,{"model-value":e.modelValue,title:"配置文件",width:"800px",top:"5vh","destroy-on-close":"","onUpdate:modelValue":u[2]||(u[2]=h=>o("update:modelValue",h))},{footer:M(()=>[K("div",Bf,[A(d,{onClick:l},{default:M(()=>[...u[3]||(u[3]=[ie("复制",-1)])]),_:1}),K("div",kf,[A(d,{onClick:u[1]||(u[1]=h=>o("update:modelValue",!1))},{default:M(()=>[...u[4]||(u[4]=[ie("取消",-1)])]),_:1}),A(d,{type:"primary",loading:s.value,onClick:c},{default:M(()=>[...u[5]||(u[5]=[ie("保存并生效",-1)])]),_:1},8,["loading"])])])]),default:M(()=>[K("div",jf," 配置文件:"+Te(r.value)+"(原样保存,校验通过后热更新生效) ",1),A(p,{type:"textarea",rows:24,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=h=>a.value=h),placeholder:"loading...",spellcheck:"false",class:"full-width"},null,8,["modelValue"])]),_:1},8,["model-value"])}}}),Kf={class:"flex-end mb-16"},Hf={key:1,class:"loading-block"},Gf=Jt({__name:"ProvidersView",setup(e){const{toast:t}=un(),n=Ko(),o=Ai(),{loadError:i,run:a}=Ks(),r=De(!1),s=De(null),l=De(null),c=De(!1),f=De(null),u=De(!1),p=De(null),d=wt({get:()=>n.orderedProviders,set:N=>n.reorderProviders(N)});function m(){}const h=()=>a(async()=>{await Promise.all([n.loadProviders(),o.loadResults()])}),v=()=>{const N={version:2,exported_at:new Date().toISOString(),providers:n.suppliers},C=new Blob([JSON.stringify(N,null,2)],{type:"application/json"}),$=URL.createObjectURL(C),k=document.createElement("a");k.href=$,k.download=`ezllm-providers-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL($),t("已导出供应商配置","success")},g=()=>{var N;(N=p.value)==null||N.click()},y=N=>{var C,$;return N.customLlmProvider!==void 0||(($=(C=N.models)==null?void 0:C[0])==null?void 0:$.modelName)!==void 0?N:{name:String(N.name??""),...N.alias?{alias:String(N.alias)}:{},customLlmProvider:String(N.protocol??"openai"),...N.api_key?{apiKey:String(N.api_key)}:{},...N.api_base?{apiBase:String(N.api_base)}:{},models:(N.models??[]).map(k=>({modelName:String(k.full_name??""),model:String(k.upstream_model??k.full_name??""),...k.protocol&&k.protocol!==N.protocol?{customLlmProvider:String(k.protocol)}:{},...k.info!==void 0?{info:k.info}:{}}))}},S=async N=>{var k;const C=N.target,$=(k=C.files)==null?void 0:k[0];if(C.value="",!!$)try{const oe=await $.text(),he=JSON.parse(oe),ee=Array.isArray(he)?he:Array.isArray(he.providers)?he.providers:Array.isArray(he.suppliers)?he.suppliers:null;if(!ee){t("文件格式错误:未找到 providers","error");return}const fe=ee.map(H=>y(H));await Rr.confirm(`确定导入 ${fe.length} 个供应商?将覆盖当前配置。`,"导入确认",{confirmButtonText:"导入",cancelButtonText:"取消",type:"warning"});const Oe=await n.saveProviders(fe);await h(),t(Oe.message||"导入成功","success")}catch(oe){oe!=="cancel"&&t(oe.message||"导入失败","error")}},E=()=>{s.value=null,l.value=null,r.value=!0},x=N=>{s.value=N,l.value=null,r.value=!0},P=N=>{const C=n.suppliers.find($=>$.name===N);C&&(s.value=null,l.value=C,r.value=!0)},j=()=>{r.value=!1,l.value=null},V=async()=>{r.value=!1,l.value=null,await h()},O=N=>N?N.length<=8?N:`${N.substring(0,6)}...${N.substring(N.length-4)}`:"-",w=N=>N.name||N.alias||O(N.apiKey||""),U=async N=>{try{const C=n.suppliers.find($=>$.name===N);if(!C)return;await Rr.confirm(`确定删除该供应商(${w(C)})及其所有模型?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await n.deleteProvider(C),await h(),t("供应商已删除","success")}catch(C){C!=="cancel"&&t(C.message,"error")}},X=N=>{f.value=N,c.value=!0},L=async(N,C)=>{const $=n.suppliers.map(k=>{if(k.name!==N)return k;if(C){const{enabled:oe,...he}=k;return he}return{...k,enabled:!1}});try{const k=await n.saveProviders($);await h(),t(k.message||(C?"供应商已启用":"供应商已停用"),"success")}catch(k){t(k.message||"操作失败","error")}},I=async N=>{await ua(N)?t(`已复制: ${N}`,"success"):t("复制失败","error")};return ca(h),(N,C)=>{const $=J("el-icon"),k=J("el-button"),oe=J("el-alert"),he=J("el-empty");return te(),Be("div",null,[K("div",Kf,[A(k,{onClick:v},{default:M(()=>[A($,null,{default:M(()=>[A(Q(js))]),_:1}),C[4]||(C[4]=ie(" 导出 ",-1))]),_:1}),A(k,{onClick:g},{default:M(()=>[A($,null,{default:M(()=>[A(Q(Bs))]),_:1}),C[5]||(C[5]=ie(" 导入 ",-1))]),_:1}),A(k,{onClick:C[0]||(C[0]=ee=>u.value=!0)},{default:M(()=>[A($,null,{default:M(()=>[A(Q(ks))]),_:1}),C[6]||(C[6]=ie(" 配置文件 ",-1))]),_:1}),A(k,{type:"primary",onClick:E},{default:M(()=>[A($,null,{default:M(()=>[A(Q(Xs))]),_:1}),C[7]||(C[7]=ie(" 添加供应商 ",-1))]),_:1})]),Q(i)?(te(),Ae(oe,{key:0,title:Q(i),type:"error","show-icon":"",closable:!1,class:"mb-16"},{default:M(()=>[A(k,{size:"small",onClick:h},{default:M(()=>[...C[8]||(C[8]=[ie("重试",-1)])]),_:1})]),_:1},8,["title"])):Qe("",!0),Q(n).loading?(te(),Be("div",Hf,"加载中...")):!Q(i)&&Q(n).orderedProviders.length===0?(te(),Ae(he,{key:2,description:"暂无供应商,点击上方按钮添加"})):(te(),Ae(Q(Au),{key:3,modelValue:d.value,"onUpdate:modelValue":C[1]||(C[1]=ee=>d.value=ee),"item-key":"name",filter:".card-actions, .header-switch","prevent-on-filter":!1,"ghost-class":"ghost","drag-class":"dragging",class:"provider-grid",onChange:m},{item:M(({element:ee})=>[A(Hu,{provider:ee,onClone:fe=>P(ee.name),onDelete:fe=>U(ee.name),onEdit:fe=>x(ee.name),onOpenModels:fe=>X(ee.name),onCopyModel:I,onToggleEnabled:fe=>L(ee.name,fe)},null,8,["provider","onClone","onDelete","onEdit","onOpenModels","onToggleEnabled"])]),_:1},8,["modelValue"])),r.value?(te(),Ae(xf,{key:4,"edit-name":s.value,provider:s.value!=null?Q(n).suppliers.find(ee=>ee.name===s.value):void 0,"clone-of":l.value,onClose:j,onSaved:V},null,8,["edit-name","provider","clone-of"])):Qe("",!0),A(Uf,{modelValue:c.value,"onUpdate:modelValue":C[2]||(C[2]=ee=>c.value=ee),"provider-name":f.value,onCopyModel:I,onChanged:h},null,8,["modelValue","provider-name"]),A(Xf,{modelValue:u.value,"onUpdate:modelValue":C[3]||(C[3]=ee=>u.value=ee),onSaved:h},null,8,["modelValue"]),K("input",{ref_key:"fileInput",ref:p,type:"file",accept:".json,application/json",style:{display:"none"},onChange:S},null,544)])}}}),_f=cn(Gf,[["__scopeId","data-v-2205c1b9"]]);export{_f as default};
|