ellm-proxy 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-ui/assets/{DashboardView-CQdlgirS.js → DashboardView-B71Dy3px.js} +1 -1
- package/dist/web-ui/assets/{LayoutView-BaY4Pz9W.js → LayoutView-C03GVB3X.js} +1 -1
- package/dist/web-ui/assets/LoginView-XTF5dHvd.js +1 -0
- package/dist/web-ui/assets/LogsView-B2ctrpv4.js +9 -0
- package/dist/web-ui/assets/LogsView-Dl50XQhG.css +1 -0
- package/dist/web-ui/assets/ProcessView-DmbVABQV.js +1 -0
- package/dist/web-ui/assets/ProvidersView-Dpr8MI-p.css +1 -0
- package/dist/web-ui/assets/ProvidersView-mb0KU16n.js +31 -0
- package/dist/web-ui/assets/SettingsView-BgLQVC2H.js +1 -0
- package/dist/web-ui/assets/{config-DNn5cjYY.js → config-BRaXq0LL.js} +1 -1
- package/dist/web-ui/assets/{index-DFlUx18F.js → index-dPeMJjrz.js} +2 -2
- package/dist/web-ui/assets/{providers-CGEmOxne.js → providers-Dmz2p4Wd.js} +1 -1
- package/dist/web-ui/assets/{useApi-BRPinb_2.js → useApi-C1Ngt_o5.js} +1 -1
- package/dist/web-ui/assets/{useToast-D7xlwSg6.js → useToast-B3quFZyv.js} +1 -1
- package/dist/web-ui/index.html +1 -1
- package/package.json +41 -40
- package/dist/web-ui/assets/LoginView-CPvz1Ylx.js +0 -1
- package/dist/web-ui/assets/LogsView-B-bIj36j.js +0 -9
- package/dist/web-ui/assets/LogsView-Wl3_adHm.css +0 -1
- package/dist/web-ui/assets/ProcessView-0x_ShSwV.js +0 -1
- package/dist/web-ui/assets/ProvidersView-BxAxDRFH.css +0 -1
- package/dist/web-ui/assets/ProvidersView-GQENcvJS.js +0 -31
- package/dist/web-ui/assets/SettingsView-BrAiaskZ.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{N as Kn,q as Mt,s as He,v as cr,x as Lt,y as jo,z as Ts,A as ia,E as Os,B as aa,C as Is,D as Kt,G as sa,H as xi,I as Ns,J as Cs,K as As,L as xs,M as Ps,O as Xr,P as Ds,Q as Kr,R as Rs,S as Ms,T as Ls,U as ws,V as gn,d as Jt,r as J,o as te,j as Me,w as M,b as K,t as Te,c as Be,F as Bo,p as ko,W as fo,X as Vs,u as q,e as ae,k as tt,a as P,Y as Fs,f as Ht,l as Pe,_ as cn,Z as Xo,$ as Rt,i as la,a0 as $s,a1 as Ao,a2 as Us,a3 as js,a4 as Bs,a5 as ks}from"./index-dPeMJjrz.js";import{u as un}from"./useToast-B3quFZyv.js";import{u as Ko}from"./providers-Dmz2p4Wd.js";import{A as Yt}from"./useApi-C1Ngt_o5.js";import"./config-BRaXq0LL.js";var yr={exports:{}},po={exports:{}},ho={};/**
|
|
2
|
+
* @vue/compiler-core v3.5.42
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const Sn=Symbol(""),En=Symbol(""),Gr=Symbol(""),Jn=Symbol(""),Go=Symbol(""),zt=Symbol(""),Ho=Symbol(""),Wo=Symbol(""),Hr=Symbol(""),Wr=Symbol(""),An=Symbol(""),Yr=Symbol(""),Yo=Symbol(""),zr=Symbol(""),Jr=Symbol(""),Qr=Symbol(""),Zr=Symbol(""),_r=Symbol(""),qr=Symbol(""),zo=Symbol(""),Jo=Symbol(""),tr=Symbol(""),Qn=Symbol(""),eo=Symbol(""),to=Symbol(""),bn=Symbol(""),xn=Symbol(""),no=Symbol(""),Dr=Symbol(""),ca=Symbol(""),Rr=Symbol(""),Zn=Symbol(""),ua=Symbol(""),fa=Symbol(""),ro=Symbol(""),da=Symbol(""),pa=Symbol(""),oo=Symbol(""),Qo=Symbol(""),on={[Sn]:"Fragment",[En]:"Teleport",[Gr]:"Suspense",[Jn]:"KeepAlive",[Go]:"BaseTransition",[zt]:"openBlock",[Ho]:"createBlock",[Wo]:"createElementBlock",[Hr]:"createVNode",[Wr]:"createElementVNode",[An]:"createCommentVNode",[Yr]:"createTextVNode",[Yo]:"createStaticVNode",[zr]:"resolveComponent",[Jr]:"resolveDynamicComponent",[Qr]:"resolveDirective",[Zr]:"resolveFilter",[_r]:"withDirectives",[qr]:"renderList",[zo]:"renderSlot",[Jo]:"createSlots",[tr]:"toDisplayString",[Qn]:"mergeProps",[eo]:"normalizeClass",[to]:"normalizeStyle",[bn]:"normalizeProps",[xn]:"guardReactiveProps",[no]:"toHandlers",[Dr]:"camelize",[ca]:"capitalize",[Rr]:"toHandlerKey",[Zn]:"setBlockTracking",[ua]:"pushScopeId",[fa]:"popScopeId",[ro]:"withCtx",[da]:"unref",[pa]:"isRef",[oo]:"withMemo",[Qo]:"isMemoSame"};function ha(e){Object.getOwnPropertySymbols(e).forEach(t=>{on[t]=e[t]})}const Xs={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Ks={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"},Gs={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Hs={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"},ze={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ma(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ze}}function Tn(e,t,n,o,i,a,r,s=!1,l=!1,c=!1,f=ze){return e&&(s?(e.helper(zt),e.helper(ln(e.inSSR,c))):e.helper(sn(e.inSSR,c)),r&&e.helper(_r)),{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=ze){return{type:17,loc:t,elements:e}}function mt(e,t=ze){return{type:15,loc:t,properties:e}}function Ge(e,t){return{type:16,loc:ze,key:He(e)?ie(e,!0):e,value:t}}function ie(e,t=!1,n=ze,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Ws(e,t){return{type:5,loc:t,content:He(e)?ie(e,!1,t):e}}function yt(e,t=ze){return{type:8,loc:t,children:e}}function Ye(e,t=[],n=ze){return{type:14,loc:n,callee:e,arguments:t}}function an(e,t=void 0,n=!1,o=!1,i=ze){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Mr(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:ze}}function va(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:ze}}function ga(e){return{type:21,body:e,loc:ze}}function Ys(e){return{type:22,elements:e,loc:ze}}function zs(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:ze}}function Js(e,t){return{type:24,left:e,right:t,loc:ze}}function Qs(e){return{type:25,expressions:e,loc:ze}}function Zs(e){return{type:26,returns:e,loc:ze}}function sn(e,t){return e||t?Hr:Wr}function ln(e,t){return e||t?Ho:Wo}function io(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 Pi=new Uint8Array([123,123]),Di=new Uint8Array([125,125]);function Ri(e){return e>=97&&e<=122||e>=65&&e<=90}function ht(e){return e===32||e===10||e===9||e===12||e===13}function jt(e){return e===47||e===62||ht(e)}function Lr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const _e={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 _s{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=Pi,this.delimiterClose=Di,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=Pi,this.delimiterClose=Di}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?jt(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||ht(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===_e.TitleEnd||this.currentSequence===_e.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===_e.Cdata[this.sequenceIndex]?++this.sequenceIndex===_e.Cdata.length&&(this.state=28,this.currentSequence=_e.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===_e.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):Ri(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){jt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(jt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Lr("</"+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){ht(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Ri(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ht(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):ht(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):ht(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||jt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||jt(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||jt(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||jt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||jt(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)):ht(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):ht(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){ht(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=_e.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===_e.ScriptEnd[3]?this.startSpecial(_e.ScriptEnd,4):t===_e.StyleEnd[3]?this.startSpecial(_e.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===_e.TitleEnd[3]?this.startSpecial(_e.TitleEnd,4):t===_e.TextareaEnd[3]?this.startSpecial(_e.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===_e.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 qs={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"},el={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 On(e,t,n,...o){return tn(e,t)}function tl(e,t,n,...o){if(xo(e,t)==="suppress-warning")return;const{message:a,link:r}=el[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 ya(e){}function Ce(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 nl={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__"},rl={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 ol(e,t,n=!1,o=[],i=Object.create(null)){}function il(e,t,n){return!1}function al(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 sl(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 ll(e,t){for(const n of e.params)for(const o of Nt(n))t(o)}function Ea(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 Nt(i.id))t(a)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else cl(o)?ul(o,!0,t):o.type==="SwitchStatement"&&fl(o,!0,t)}function cl(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function ul(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 Nt(i.id))n(a)}function fl(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 Nt(a.id))n(r);Ea(o,n)}}function Nt(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"?Nt(o.argument,t):Nt(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&Nt(o,t)});break;case"RestElement":Nt(e.argument,t);break;case"AssignmentPattern":Nt(e.left,t);break}return t}const dl=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Sa=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,pl=(e,t)=>Sa(t)&&t.key===e,ba=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Ta(e){return ba.includes(e.type)?Ta(e.expression):e}const nt=e=>e.type===4&&e.isStatic;function _o(e){switch(e){case"Teleport":case"teleport":return En;case"Suspense":case"suspense":return Gr;case"KeepAlive":case"keep-alive":return Jn;case"BaseTransition":case"base-transition":return Go}}const hl=/^$|^\d|[^\$\w\xA0-\uFFFF]/,nr=e=>!hl.test(e),qo=/[A-Za-z_$\xA0-\uFFFF]/,ml=/[\.\?\w$\xA0-\uFFFF]/,vl=/\s+[.[]\s*|\s*[.[]\s+/g,Oa=e=>e.type===4?e.content:e.loc.source,Ia=e=>{const t=Oa(e).trim().replace(vl,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:ml).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},gl=Kn,ei=Ia,yl=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Na=e=>yl.test(Oa(e)),El=Kn,Ca=Na;function Sl(e,t,n=t.length){return Aa({offset:e.offset,line:e.line,column:e.column},t,n)}function Aa(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 bl(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function at(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)&&(He(t)?i.name===t:t.test(i.name)))return i}}function rr(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&&nt(e)&&e.content===t)}function xa(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Er(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 In(e){return e.type===1&&e.tagType===3}function _n(e){return e.type===1&&e.tagType===2}const Tl=new Set([bn,xn]);function ni(e,t=[]){if(e&&!He(e)&&e.type===14){const n=e.callee;if(!He(n)&&Tl.has(n))return ni(e.arguments[0],t.concat(e))}return[e,t]}function qn(e,t,n){if(e.type!==13&&Ol(e,t))return;let o,i=e.type===13?e.props:e.arguments[2],a=[],r;if(i&&!He(i)&&i.type===14){const s=ni(i);i=s[0],a=s[1],r=a[a.length-1]}if(i==null||He(i))o=mt([t]);else if(i.type===14){const s=i.arguments[0];!He(s)&&s.type===15?Do(t,s)||s.properties.unshift(t):i.callee===no?o=Ye(n.helper(Qn),[mt([t]),i]):i.arguments.unshift(mt([t])),!o&&(o=i)}else i.type===15?(Do(t,i)||i.properties.unshift(t),o=i):(o=Ye(n.helper(Qn),[mt([t]),i]),r&&r.callee===xn&&(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 Ol(e,t){var n,o,i;if(t.key.type!==4||t.key.content!=="key")return!1;const a=e.arguments[2];if(a&&!He(a)){const[r]=ni(a);if(r&&!He(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 Nn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function Ot(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&&(Ot(o.arg,t)||Ot(o.exp,t)))return!0}return e.children.some(n=>Ot(n,t));case 11:return Ot(e.source,t)?!0:e.children.some(n=>Ot(n,t));case 9:return e.branches.some(n=>Ot(n,t));case 10:return Ot(e.condition,t)?!0:e.children.some(n=>Ot(n,t));case 4:return!e.isStatic&&nr(e.content)&&!!t[e.content];case 8:return e.children.some(n=>aa(n)&&Ot(n,t));case 5:case 12:return Ot(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Pa(e){return e.type===14&&e.callee===oo?e.arguments[1].returns:e}const Da=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ri(e){for(let t=0;t<e.length;t++)if(!ht(e.charCodeAt(t)))return!1;return!0}function ao(e){return e.type===2&&ri(e.content)||e.type===12&&ao(e.content)}function oi(e){return e.type===3||ao(e)}const Ra={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:cr,isPreTag:cr,isIgnoreNewlineTag:cr,isCustomElement:cr,onError:Zo,onWarn:ya,comments:!1,prefixIdentifiers:!1};let ve=Ra,er=null,wt="",et=null,de=null,ut="",Dt=-1,_t=-1,ii=0,Bt=!1,Ro=null;const xe=[],ke=new _s(xe,{onerr:Pt,ontext(e,t){ur(Ze(e,t),e,t)},ontextentity(e,t,n){ur(e,t,n)},oninterpolation(e,t){if(Bt)return ur(Ze(e,t),e,t);let n=e+ke.delimiterOpen.length,o=t-ke.delimiterClose.length;for(;ht(wt.charCodeAt(n));)n++;for(;ht(wt.charCodeAt(o-1));)o--;let i=Ze(n,o);i.includes("&")&&(i=ve.decodeEntities(i,!1)),Mo({type:5,content:br(i,!1,Ke(n,o)),loc:Ke(e,t)})},onopentagname(e,t){const n=Ze(e,t);et={type:1,tag:n,ns:ve.getNamespace(n,xe[0],ve.ns),tagType:0,props:[],children:[],loc:Ke(e-1,t),codegenNode:void 0}},onopentagend(e){Li(e)},onclosetag(e,t){const n=Ze(e,t);if(!ve.isVoidTag(n)){let o=!1;for(let i=0;i<xe.length;i++)if(xe[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&Pt(24,xe[0].loc.start.offset);for(let r=0;r<=i;r++){const s=xe.shift();Sr(s,t,r<i)}break}o||Pt(23,Ma(e,60))}},onselfclosingtag(e){const t=et.tag;et.isSelfClosing=!0,Li(e),xe[0]&&xe[0].tag===t&&Sr(xe.shift(),e)},onattribname(e,t){de={type:6,name:Ze(e,t),nameLoc:Ke(e,t),value:void 0,loc:Ke(e)}},ondirname(e,t){const n=Ze(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Bt&&o===""&&Pt(26,e),Bt||o==="")de={type:6,name:n,nameLoc:Ke(e,t),value:void 0,loc:Ke(e)};else if(de={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[ie("prop")]:[],loc:Ke(e)},o==="pre"){Bt=ke.inVPre=!0,Ro=et;const i=et.props;for(let a=0;a<i.length;a++)i[a].type===7&&(i[a]=Ll(i[a]))}},ondirarg(e,t){if(e===t)return;const n=Ze(e,t);if(Bt&&!Po(de))de.name+=n,en(de.nameLoc,t);else{const o=n[0]!=="[";de.arg=br(o?n:n.slice(1,-1),o,Ke(e,t),o?3:0)}},ondirmodifier(e,t){const n=Ze(e,t);if(Bt&&!Po(de))de.name+="."+n,en(de.nameLoc,t);else if(de.name==="slot"){const o=de.arg;o&&(o.content+="."+n,en(o.loc,t))}else{const o=ie(n,!0,Ke(e,t));de.modifiers.push(o)}},onattribdata(e,t){ut+=Ze(e,t),Dt<0&&(Dt=e),_t=t},onattribentity(e,t,n){ut+=e,Dt<0&&(Dt=t),_t=n},onattribnameend(e){const t=de.loc.start.offset,n=Ze(t,e);de.type===7&&(de.rawName=n),et.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Pt(2,t)},onattribend(e,t){if(et&&de){if(en(de.loc,t),e!==0)if(ut.includes("&")&&(ut=ve.decodeEntities(ut,!0)),de.type===6)de.name==="class"&&(ut=wa(ut).trim()),e===1&&!ut&&Pt(13,t),de.value={type:2,content:ut,loc:e===1?Ke(Dt,_t):Ke(Dt-1,_t+1)},ke.inSFCRoot&&et.tag==="template"&&de.name==="lang"&&ut&&ut!=="html"&&ke.enterRCDATA(Lr("</template"),0);else{let n=0;de.exp=br(ut,!1,Ke(Dt,_t),0,n),de.name==="for"&&(de.forParseResult=Nl(de.exp));let o=-1;de.name==="bind"&&(o=de.modifiers.findIndex(i=>i.content==="sync"))>-1&&On("COMPILER_V_BIND_SYNC",ve,de.loc,de.arg.loc.source)&&(de.name="model",de.modifiers.splice(o,1))}(de.type!==7||de.name!=="pre")&&et.props.push(de)}ut="",Dt=_t=-1},oncomment(e,t){ve.comments&&Mo({type:3,content:Ze(e,t),loc:Ke(e-4,t+3)})},onend(){const e=wt.length;for(let t=0;t<xe.length;t++)Sr(xe[t],e-1),Pt(24,xe[t].loc.start.offset)},oncdata(e,t){(xe[0]?xe[0].ns:ve.ns)!==0?ur(Ze(e,t),e,t):Pt(1,e-9)},onprocessinginstruction(e){(xe[0]?xe[0].ns:ve.ns)===0&&Pt(21,e-1)}}),Mi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Il=/^\(|\)$/g;function Nl(e){const t=e.loc,n=e.content,o=n.match(Da);if(!o)return;const[,i,a]=o,r=(u,p,d=!1)=>{const m=t.start.offset+p,h=m+u.length;return br(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(Il,"").trim();const c=i.indexOf(l),f=l.match(Mi);if(f){l=l.replace(Mi,"").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 Ze(e,t){return wt.slice(e,t)}function Li(e){ke.inSFCRoot&&(et.innerLoc=Ke(e+1,e+1)),Mo(et);const{tag:t,ns:n}=et;n===0&&ve.isPreTag(t)&&ii++,ve.isVoidTag(t)?Sr(et,e):(xe.unshift(et),(n===1||n===2)&&(ke.inXML=!0)),et=null}function ur(e,t,n){{const a=xe[0]&&xe[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=ve.decodeEntities(e,!1))}const o=xe[0]||er,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 Sr(e,t,n=!1){n?en(e.loc,Ma(t,60)):en(e.loc,Cl(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=Ze(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:a}=e;if(Bt||(o==="slot"?e.tagType=2:wi(e)?e.tagType=3:xl(e)&&(e.tagType=1)),ke.inRCDATA||(e.children=La(a)),i===0&&ve.isIgnoreNewlineTag(o)){const r=a[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&ve.isPreTag(o)&&ii--,Ro===e&&(Bt=ke.inVPre=!1,Ro=null),ke.inXML&&(xe[0]?xe[0].ns:ve.ns)===0&&(ke.inXML=!1);{const r=e.props;if(!ke.inSFCRoot&&tn("COMPILER_NATIVE_TEMPLATE",ve)&&e.tag==="template"&&!wi(e)){const l=xe[0]||er,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&&On("COMPILER_INLINE_TEMPLATE",ve,s.loc)&&e.children.length&&(s.value={type:2,content:Ze(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Cl(e,t){let n=e;for(;wt.charCodeAt(n)!==t&&n<wt.length-1;)n++;return n}function Ma(e,t){let n=e;for(;wt.charCodeAt(n)!==t&&n>=0;)n--;return n}const Al=new Set(["if","else","else-if","for","slot"]);function wi({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Al.has(t[n].name))return!0}return!1}function xl({tag:e,props:t}){if(ve.isCustomElement(e))return!1;if(e==="component"||Pl(e.charCodeAt(0))||_o(e)||ve.isBuiltInComponent&&ve.isBuiltInComponent(e)||ve.isNativeTag&&!ve.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(On("COMPILER_IS_ON_ELEMENT",ve,o.loc))return!0}}else if(o.name==="bind"&&nn(o.arg,"is")&&On("COMPILER_IS_ON_ELEMENT",ve,o.loc))return!0}return!1}function Pl(e){return e>64&&e<91}const Dl=/\r\n/g;function La(e){const t=ve.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(Dl,`
|
|
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&&Rl(i.content)))?(n=!0,e[o]=null):i.content=" "}else t&&(i.content=wa(i.content))}return n?e.filter(Boolean):e}function Rl(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function wa(e){let t="",n=!1;for(let o=0;o<e.length;o++)ht(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Mo(e){(xe[0]||er).children.push(e)}function Ke(e,t){return{start:ke.getPos(e),end:t==null?t:ke.getPos(t),source:t==null?t:Ze(e,t)}}function Ml(e){return Ke(e.start.offset,e.end.offset)}function en(e,t){e.end=ke.getPos(t),e.source=Ze(e.start.offset,t)}function Ll(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 br(e,t=!1,n,o=0,i=0){return ie(e,t,n,o)}function Pt(e,t,n){ve.onError(Ce(e,Ke(t,t)))}function wl(){ke.reset(),et=null,de=null,ut="",Dt=-1,_t=-1,xe.length=0}function ai(e,t){if(wl(),wt=e,ve=Mt({},Ra),t){let i;for(i in t)t[i]!=null&&(ve[i]=t[i])}ke.mode=ve.parseMode==="html"?1:ve.parseMode==="sfc"?2:0,ke.inXML=ve.ns===1||ve.ns===2;const n=t&&t.delimiters;n&&(ke.delimiterOpen=Lr(n[0]),ke.delimiterClose=Lr(n[1]));const o=er=ma([],e);return ke.parse(wt),o.loc=Ke(0,e.length),o.children=La(o.children),er=null,o}function Vl(e,t){Tr(e,void 0,t,!!Va(e))}function Va(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!_n(t[0])?t[0]:null}function Tr(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:ft(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)&&$a(u,n)>=2){const h=Ua(u);h&&(d.props=n.hoist(h))}d.dynamicProps&&(d.dynamicProps=n.hoist(d.dynamicProps))}}}else if(u.type===12&&(o?0:ft(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++,Tr(u,e,n,!1,i),p&&n.scopes.vSlot--}else if(u.type===11)Tr(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let p=0;p<u.branches.length;p++)Tr(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&&Kt(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&&!Kt(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&&!Kt(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=at(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&&!Kt(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 ft(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=$a(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=ft(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=ft(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 ft(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(He(s)||jo(s))continue;const l=ft(s,t);if(l===0)return 0;l<a&&(a=l)}return a;case 20:return 2;default:return 0}}const Fl=new Set([eo,to,bn,xn]);function Fa(e,t){if(e.type===14&&!He(e.callee)&&Fl.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ft(n,t);if(n.type===14)return Fa(n,t)}return 0}function $a(e,t){let n=3;const o=Ua(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=ft(r,t);if(l===0)return l;l<n&&(n=l);let c;if(s.type===4?c=ft(s,t):s.type===14?c=Fa(s,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Ua(e){const t=e.codegenNode;if(t.type===13)return t.props}function ja(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:r=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:c=Kn,isCustomElement:f=Kn,expressionPlugins:u=[],scopeId:p=null,slotted:d=!0,ssr:m=!1,inSSR:h=!1,ssrCssVars:v="",bindingMetadata:g=Os,inline:y=!1,isTS:I=!1,onError:S=Zo,onWarn:C=ya,compatConfig:A}){const B=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),w={filename:t,selfName:B&&ia(Lt(B[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:I,onError:S,onWarn:C,compatConfig:A,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 L=w.helpers.get(O)||0;return w.helpers.set(O,L+1),O},removeHelper(O){const L=w.helpers.get(O);if(L){const j=L-1;j?w.helpers.set(O,j):w.helpers.delete(O)}},helperString(O){return`_${on[w.helper(O)]}`},replaceNode(O){w.parent.children[w.childIndex]=w.currentNode=O},removeNode(O){const L=w.parent.children,j=O?L.indexOf(O):w.currentNode?w.childIndex:-1;!O||O===w.currentNode?(w.currentNode=null,w.onNodeRemoved()):w.childIndex>j&&(w.childIndex--,w.onNodeRemoved()),w.parent.children.splice(j,1)},onNodeRemoved:Kn,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){He(O)&&(O=ie(O)),w.hoists.push(O);const L=ie(`_hoisted_${w.hoists.length}`,!1,O.loc,2);return L.hoisted=O,L},cache(O,L=!1,j=!1){const R=va(w.cached.length,O,L,j);return w.cached.push(R),R}};return w.filters=new Set,w}function Ba(e,t){const n=ja(e,t);or(e,n),t.hoistStatic&&Vl(e,n),t.ssr||$l(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 $l(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const i=Va(e);if(i&&i.codegenNode){const a=i.codegenNode;a.type===13&&io(a,t),e.codegenNode=a}else e.codegenNode=o[0]}else if(o.length>1){let i=64;e.codegenNode=Tn(t,n(Sn),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Ul(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];He(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,or(i,t))}}function or(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&&(Kt(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(An);break;case 5:t.ssr||t.helper(tr);break;case 9:for(let a=0;a<e.branches.length;a++)or(e.branches[a],t);break;case 10:case 11:case 1:case 0:Ul(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function si(e,t){const n=He(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 so="/*@__PURE__*/",ka=e=>`${on[e]}: _${on[e]}`;function jl(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 Xa(e,t={}){const n=jl(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";Bl(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&&(mo(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(mo(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),mo(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?ot(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 Bl(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=[Hr,Wr,An,Yr,Yo].filter(p=>f.includes(p)).map(ka).join(", ");i(`const { ${u} } = _Vue
|
|
13
|
+
`,-1)}kl(e.hoists,t),a(),i("return ")}function mo(e,t,{helper:n,push:o,newline:i,isTS:a}){const r=n(t==="filter"?Zr:t==="component"?zr:Qr);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 ${Nn(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} = `),ot(a,t),o())}t.pure=!1}function li(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),ir(e,t,n),n&&t.deindent(),t.push("]")}function ir(e,t,n=!1,o=!0){const{push:i,newline:a}=t;for(let r=0;r<e.length;r++){const s=e[r];He(s)?i(s,-3):Kt(s)?li(s,t):ot(s,t),r<e.length-1&&(n?(o&&i(","),a()):o&&i(", "))}}function ot(e,t){if(He(e)){t.push(e,-3);return}if(jo(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:ot(e.codegenNode,t);break;case 2:Xl(e,t);break;case 4:Ka(e,t);break;case 5:Kl(e,t);break;case 12:ot(e.codegenNode,t);break;case 8:Ga(e,t);break;case 3:Hl(e,t);break;case 13:Wl(e,t);break;case 14:zl(e,t);break;case 15:Jl(e,t);break;case 17:Ql(e,t);break;case 18:Zl(e,t);break;case 19:_l(e,t);break;case 20:ql(e,t);break;case 21:ir(e.body,t,!0,!1);break}}function Xl(e,t){t.push(JSON.stringify(e.content),-3,e)}function Ka(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function Kl(e,t){const{push:n,helper:o,pure:i}=t;i&&n(so),n(`${o(tr)}(`),ot(e.content,t),n(")")}function Ga(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];He(o)?t.push(o,-3):ot(o,t)}}function Gl(e,t){const{push:n}=t;if(e.type===8)n("["),Ga(e,t),n("]");else if(e.isStatic){const o=nr(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else n(`[${e.content}]`,-3,e)}function Hl(e,t){const{push:n,helper:o,pure:i}=t;i&&n(so),n(`${o(An)}(${JSON.stringify(e.content)})`,-3,e)}function Wl(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(_r)+"("),u&&n(`(${o(zt)}(${p?"true":""}), `),i&&n(so);const h=u?ln(t.inSSR,d):sn(t.inSSR,d);n(o(h)+"(",-2,e),ir(Yl([a,r,s,m,c]),t),n(")"),u&&n(")"),f&&(n(", "),ot(f,t),n(")"))}function Yl(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function zl(e,t){const{push:n,helper:o,pure:i}=t,a=He(e.callee)?e.callee:o(e.callee);i&&n(so),n(a+"(",-2,e),ir(e.arguments,t),n(")")}function Jl(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];Gl(c,t),n(": "),ot(f,t),l<r.length-1&&(n(","),a())}s&&i(),n(s?"}":" }")}function Ql(e,t){li(e.elements,t)}function Zl(e,t){const{push:n,indent:o,deindent:i}=t,{params:a,returns:r,body:s,newline:l,isSlot:c}=e;c&&n(`_${on[ro]}(`),n("(",-2,e),Kt(a)?ir(a,t):a&&ot(a,t),n(") => "),(l||s)&&(n("{"),o()),r?(l&&n("return "),Kt(r)?li(r,t):ot(r,t)):s&&ot(s,t),(l||s)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function _l(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=!nr(n.content);u&&r("("),Ka(n,t),u&&r(")")}else r("("),ot(n,t),r(")");a&&s(),t.indentLevel++,a||r(" "),r("? "),ot(o,t),t.indentLevel--,a&&c(),a||r(" "),r(": ");const f=i.type===19;f||t.indentLevel++,ot(i,t),f||t.indentLevel--,a&&l(!0)}function ql(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(Zn)}(-1`),e.inVOnce&&n(", true"),n("),"),r(),n("(")),n(`_cache[${e.index}] = `),ot(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),r(),n(`${o(Zn)}(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 ec=(e,t)=>{if(e.type===5)e.content=Or(e.content,t);else if(e.type===1){const n=at(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=Or(a,t,i.name==="slot")),r&&r.type===4&&!r.isStatic&&(i.arg=Or(r,t))}}}};function Or(e,t,n=!1,o=!1,i=Object.create(t.identifiers)){return e}function Ha(e){return He(e)?e:e.type===4?e.content:e.children.map(Ha).join("")}const tc=si(/^(?:if|else|else-if)$/,(e,t,n)=>Wa(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=Fi(i,l,n);else{const c=nc(o.codegenNode);c.alternate=Fi(i,l+o.branches.length-1,n)}}}));function Wa(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(Ce(28,t.loc)),t.exp=ie("true",!1,i)}if(t.name==="if"){const i=Vi(e,t),a={type:9,loc:Ml(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(Ce(30,e.loc)),n.removeNode();const s=Vi(e,t);r.branches.push(s);const l=o&&o(r,s,!1);or(s,n),l&&l(),n.currentNode=null}else n.onError(Ce(30,e.loc));break}}}function Vi(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!at(e,"for")?e.children:[e],userKey:rr(e,"key"),isTemplateIf:n}}function Fi(e,t,n){return e.condition?Mr(e.condition,$i(e,t,n),Ye(n.helper(An),['""',"true"])):$i(e,t,n)}function $i(e,t,n){const{helper:o}=n,i=Ge("key",ie(`${t}`,!1,ze,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 qn(l,i,n),l}else return Tn(n,o(Sn),mt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=r.codegenNode,c=Pa(l);return c.type===13&&io(c,n),qn(c,i,n),l}}function nc(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 rc=si("for",(e,t,n)=>{const{helper:o,removeHelper:i}=n;return Ya(e,t,n,a=>{const r=Ye(o(qr),[a.source]),s=In(e),l=at(e,"memo"),c=rr(e,"key",!1,!0);c&&c.type;let f=c&&(c.type===6?c.value?ie(c.value.content,!0):void 0:c.exp);const u=f?Ge("key",f):null,p=a.source.type===4&&a.source.constType>0,d=p?64:c?128:256;return a.codegenNode=Tn(n,o(Sn),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=_n(e)?e:s&&e.children.length===1&&_n(e.children[0])?e.children[0]:null;if(y)h=y.codegenNode,s&&u&&qn(h,u,n);else if(g)h=Tn(n,o(Sn),u?mt([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{h=v[0].codegenNode,s&&u&&qn(h,u,n);const I=!p||h.isBlockRequired===!0;h.isBlock!==I&&(h.isBlock?(i(zt),i(ln(n.inSSR,h.isComponent))):i(sn(n.inSSR,h.isComponent))),h.isBlock=I,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 I=an(wr(a.parseResult,[ie("_cached")]));I.body=ga([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]),ie("_item.memo = _memo"),ie("return _item")]),r.arguments.push(I,ie("_cache"),ie(String(n.cached.length))),n.cached.push(null)}else r.arguments.push(an(wr(a.parseResult),h,!0))}})});function Ya(e,t,n,o){if(!t.exp){n.onError(Ce(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Ce(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:In(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 wr({value:e,key:t,index:n},o=[]){return oc([e,t,n,...o])}function oc(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,o)=>n||ie("_".repeat(o+1),!1))}const Ui=ie("undefined",!1),za=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=at(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},ic=(e,t)=>{let n;if(In(e)&&e.props.some(ti)&&(n=at(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)}}}},ac=(e,t,n,o)=>an(e,n,!1,!0,n.length?n[0].loc:o);function Ja(e,t,n=ac){t.helper(ro);const{children:o,loc:i}=e,a=[],r=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=at(e,"slot",!0);if(l){const{arg:v,exp:g}=l;v&&!nt(v)&&(s=!0),a.push(Ge(v||ie("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(!In(g)||!(y=at(g,"slot",!0))){g.type!==3&&u.push(g);continue}if(l){t.onError(Ce(37,y.loc));break}c=!0;const{children:I,loc:S}=g,{arg:C=ie("default",!0),exp:A,loc:B}=y;let w;nt(C)?w=C?C.content:"default":s=!0;const O=at(g,"for"),L=n(A,O,I,S);let j,R;if(j=at(g,"if"))s=!0,r.push(Mr(j.exp,fr(C,L,d++),Ui));else if(R=at(g,/^else(?:-if)?$/,!0)){let E=v,N;for(;E--&&(N=o[E],!!oi(N)););if(N&&In(N)&&at(N,/^(?:else-)?if$/)){let V=r[r.length-1];for(;V.alternate.type===19;)V=V.alternate;V.alternate=R.exp?Mr(R.exp,fr(C,L,d++),Ui):fr(C,L,d++)}else t.onError(Ce(30,R.loc))}else if(O){s=!0;const E=O.forParseResult;E?(ci(E),r.push(Ye(t.helper(qr),[E.source,an(wr(E),fr(C,L),!0)]))):t.onError(Ce(32,O.loc))}else{if(w){if(p.has(w)){t.onError(Ce(38,B));continue}p.add(w),w==="default"&&(f=!0)}a.push(Ge(C,L))}}if(!l){const v=(g,y)=>{const I=n(g,void 0,y,i);return t.compatConfig&&(I.isNonScopedSlot=!0),Ge("default",I)};c?u.length&&!u.every(ao)&&(f?t.onError(Ce(39,u[0].loc)):a.push(v(void 0,u))):a.push(v(void 0,o))}const m=s?2:Ir(e.children)?3:1;let h=mt(a.concat(Ge("_",ie(m+"",!1))),i);return r.length&&(h=Ye(t.helper(Jo),[h,Wt(r)])),{slots:h,hasDynamicSlots:s}}function fr(e,t,n){const o=[Ge("name",e),Ge("fn",t)];return n!=null&&o.push(Ge("key",ie(String(n),!0))),mt(o)}function Ir(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Ir(n.children))return!0;break;case 9:if(Ir(n.branches))return!0;break;case 10:case 11:if(Ir(n.children))return!0;break}}return!1}const Qa=new WeakMap,Za=(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?_a(e,t):`"${o}"`;const s=aa(r)&&r.callee===Jr;let l,c,f=0,u,p,d,m=!1,h=!1,v=s||r===En||r===Gr||!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 I=y.directives;d=I&&I.length?Wt(I.map(S=>qa(S,t))):void 0,y.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(r===Jn&&(v=!0,f|=1024),a&&r!==En&&r!==Jn){const{slots:I,hasDynamicSlots:S}=Ja(e,t);c=I,S&&(f|=1024)}else if(e.children.length===1&&r!==En){const I=e.children[0],S=I.type,C=S===5||S===8;C&&ft(I,t)===0&&(f|=1),C||S===2?c=I:c=e.children}else c=e.children;p&&p.length&&(u=lc(p));const g=e.codegenNode=Tn(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 _a(e,t,n=!1){let{tag:o}=e;const i=Lo(o),a=rr(e,"is",!1,!0);if(a)if(i||tn("COMPILER_IS_ON_ELEMENT",t)){let s;if(a.type===6?s=a.value&&ie(a.value.content,!0):(s=a.exp,s||(s=ie("is",!1,a.arg.loc))),s)return Ye(t.helper(Jr),[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(zr),t.components.add(o),Nn(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,I=!1,S=!1,C=!1;const A=[],B=R=>{c.length&&(f.push(mt(ji(c),s)),c=[]),R&&f.push(R)},w=()=>{t.scopes.vFor>0&&c.push(Ge(ie("ref_for",!0),ie("true")))},O=({key:R,value:E})=>{if(nt(R)){const N=R.content,V=sa(N);if(V&&(!o||i)&&N.toLowerCase()!=="onclick"&&N!=="onUpdate:modelValue"&&!xi(N)&&(I=!0),V&&xi(N)&&(C=!0),N==="ref"&&(v=!0),V&&E.type===14&&(E=E.arguments[0]),E.type===20||(E.type===4||E.type===8)&&ft(E,t)>0)return;N==="class"?g=!0:N==="style"?y=!0:N!=="ref"&&N!=="key"&&!A.includes(N)&&A.push(N),o&&(N==="class"||N==="style")&&!A.includes(N)&&A.push(N)}else S=!0};for(let R=0;R<n.length;R++){const E=n[R];if(E.type===6){const{loc:N,name:V,nameLoc:F,value:U}=E;let z=!0;if(V==="ref"&&(v=!0,w()),V==="is"&&(Lo(r)||U&&U.content.startsWith("vue:")||tn("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Ge(ie(V,!0,F),ie(U?U.content:"",z,U?U.loc:N)))}else{const{name:N,arg:V,exp:F,loc:U,modifiers:z}=E,ce=N==="bind",Se=N==="on";if(N==="slot"){o||t.onError(Ce(40,U));continue}if(N==="once"||N==="memo"||N==="is"||ce&&nn(V,"is")&&(Lo(r)||tn("COMPILER_IS_ON_ELEMENT",t))||Se&&a)continue;if(ce&&nn(V,"key")&&(d=!0),Se&&p&&V&&nt(V)&&Lt(V.content)==="vue:beforeUpdate"&&(d=!0,m=!0),ce&&nn(V,"ref")&&w(),!V&&(ce||Se)){if(S=!0,F)if(ce){if(B(),tn("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(F);continue}w(),B(),f.push(F)}else B({type:14,loc:U,callee:t.helper(no),arguments:o?[F]:[F,"true"]});else t.onError(Ce(ce?34:35,U));continue}ce&&z.some(Ee=>Ee.content==="prop")&&(h|=32);const ge=t.directiveTransforms[N];if(ge){const{props:Ee,needRuntime:Ae}=ge(E,e,t);!a&&Ee.forEach(O),Se&&V&&!nt(V)?B(mt(Ee,s)):c.push(...Ee),Ae&&(u.push(E),jo(Ae)&&Qa.set(E,Ae))}else Ts(N)||(u.push(E),p&&(d=!0,m=!0))}}let L;f.length?(B(),f.length>1?L=Ye(t.helper(Qn),f,s):L=f[0]):c.length&&(L=mt(ji(c),s)),S?h|=16:(g&&!o&&(h|=2),y&&!o&&(h|=4),A.length&&(h|=8),I&&(h|=32));const j=(h===0||h===32)&&(v||C||u.length>0);if(!d&&j&&(h|=512),!t.inSSR&&L)switch(L.type){case 15:let R=-1,E=-1,N=!1;for(let U=0;U<L.properties.length;U++){const z=L.properties[U].key;nt(z)?z.content==="class"?R=U:z.content==="style"&&(E=U):z.isHandlerKey||(N=!0)}const V=L.properties[R],F=L.properties[E];N?L=Ye(t.helper(bn),[L]):(V&&!nt(V.value)&&(V.value=Ye(t.helper(eo),[V.value])),F&&(y||F.value.type===4&&F.value.content.trim()[0]==="["||F.value.type===17)&&(F.value=Ye(t.helper(to),[F.value])));break;case 14:break;default:L=Ye(t.helper(bn),[Ye(t.helper(xn),[L])]);break}return{props:L,directives:u,patchFlag:h,dynamicPropNames:A,shouldUseBlock:d,needsPatch:j,isBlockRequired:m}}function ji(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"||sa(a))&&sc(r,i):(t.set(a,i),n.push(i))}return n}function sc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Wt([e.value,t.value],e.loc)}function qa(e,t){const n=[],o=Qa.get(e);o?n.push(t.helperString(o)):(t.helper(Qr),t.directives.add(e.name),n.push(Nn(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=ie("true",!1,i);n.push(mt(e.modifiers.map(r=>Ge(r,a)),i))}return Wt(n,e.loc)}function lc(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 cc=(e,t)=>{if(_n(e)){const{children:n,loc:o}=e,{slotName:i,slotProps:a}=es(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 es(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=ie(s,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&nt(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(Ce(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(Ce(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)?Is(Lt(u)):`on:${u}`;s=ie(p,!0,r.loc)}else s=yt([`${n.helperString(Rr)}(`,r,")"]);else s=r,s.children.unshift(`${n.helperString(Rr)}(`),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||Ca(l)),d=l.content.includes(";");(p||c&&u)&&(l=yt([`${p?"$event":"(...args)"} => ${d?"{":"("}`,l,d?"}":")"]))}let f={props:[Ge(s,l||ie("() => {}",!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},ts=(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(Dr)}(${a.content})`:(a.children.unshift(`${n.helperString(Dr)}(`),a.children.push(")"))),n.inSSR||(o.some(s=>s.content==="prop")&&Bi(a,"."),o.some(s=>s.content==="attr")&&Bi(a,"^")),{props:[Ge(a,r)]}},Bi=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},uc=(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(Er(r)){i=!0;for(let s=a+1;s<n.length;s++){const l=n[s];if(Er(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(Er(r)||r.type===8){const s=[];(r.type!==2||r.content!==" ")&&s.push(r),!t.ssr&&ft(r,t)===0&&s.push("1"),n[a]={type:12,content:r,loc:r.loc,codegenNode:Ye(t.helper(Yr),s)}}}}},ki=new WeakSet,fc=(e,t)=>{if(e.type===1&&at(e,"once",!0))return ki.has(e)||t.inVOnce||t.inSSR?void 0:(ki.add(e),t.inVOnce=!0,t.helper(Zn),()=>{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(Ce(41,e.loc)),Vn();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(Ce(44,o.loc)),Vn();if(s==="literal-const"||s==="setup-const")return n.onError(Ce(45,o.loc)),Vn();if(!r.trim()||!ei(o))return n.onError(Ce(42,o.loc)),Vn();const l=i||ie("modelValue",!0),c=i?nt(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=[Ge(l,e.exp),Ge(c,f)];if(e.modifiers.length&&t.tagType===1){const d=e.modifiers.map(h=>h.content).map(h=>(nr(h)?h:JSON.stringify(h))+": true").join(", "),m=i?nt(i)?`${i.content}Modifiers`:yt([i,' + "Modifiers"']):"modelModifiers";p.push(Ge(m,ie(`{ ${d} }`,!1,e.loc,2)))}return Vn(p)};function Vn(e=[]){return{props:e}}const dc=/[\w).+\-_$\]]/,pc=(e,t)=>{tn("COMPILER_FILTERS",t)&&(e.type===5?Vr(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Vr(n.exp,t)}))};function Vr(e,t){if(e.type===4)Xi(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];typeof o=="object"&&(o.type===4?Xi(o,t):o.type===8?Vr(o,t):o.type===5&&Vr(o.content,t))}}function Xi(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||!dc.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=hc(m,h[d],t);e.content=m,e.ast=void 0}}function hc(e,t,n){n.helper(Zr);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${Nn(t,"filter")}(${e})`;{const i=t.slice(0,o),a=t.slice(o+1);return n.filters.add(i),`${Nn(i,"filter")}(${e}${a!==")"?","+a:a}`}}const Ki=new WeakSet,mc=(e,t)=>{if(e.type===1){const n=at(e,"memo");return!n||Ki.has(e)||t.inSSR?void 0:(Ki.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&io(o,t),e.codegenNode=Ye(t.helper(oo),[n.exp,an(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}},ns=(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(Ce(53,o.loc)),n.exp=ie("",!0,o.loc);else{const i=Lt(o.content);(qo.test(i[0])||i[0]==="-")&&(n.exp=ie(i,!1,o.loc))}}}};function rs(e){return[[ns,fc,tc,mc,rc,pc,cc,Za,za,uc],{on:fi,bind:ts,model:di}]}function os(e,t={}){const n=t.onError||Zo,o=t.mode==="module";t.prefixIdentifiers===!0?n(Ce(48)):o&&n(Ce(49));const i=!1;t.cacheHandlers&&n(Ce(50)),t.scopeId&&!o&&n(Ce(51));const a=Mt({},t,{prefixIdentifiers:i}),r=He(e)?ai(e,a):e,[s,l]=rs();return Ba(r,Mt({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:Mt({},l,t.directiveTransforms||{})})),Xa(r,a)}const vc={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"},is=()=>({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(""),Fr=Symbol(""),gi=Symbol(""),yi=Symbol(""),Ei=Symbol(""),Si=Symbol(""),bi=Symbol("");ha({[pi]:"vModelRadio",[hi]:"vModelCheckbox",[mi]:"vModelText",[vi]:"vModelSelect",[Fr]:"vModelDynamic",[gi]:"withModifiers",[yi]:"withKeys",[Ei]:"vShow",[Si]:"Transition",[bi]:"TransitionGroup"});let dn;function gc(e,t=!1){return dn||(dn=document.createElement("div")),t?(dn.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,dn.children[0].getAttribute("foo")):(dn.innerHTML=e,dn.textContent)}const Ti={parseMode:"html",isVoidTag:Ns,isNativeTag:e=>Cs(e)||As(e)||xs(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:gc,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}},as=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:ie("style",!0,t.loc),exp:yc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},yc=(e,t)=>{const n=Ps(e);return ie(JSON.stringify(n),!1,t,3)};function Vt(e,t){return Ce(e,t)}const Ec={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__"},Sc={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."},bc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Vt(54,i)),t.children.length&&(n.onError(Vt(55,i)),t.children.length=0),{props:[Ge(ie("innerHTML",!0,i),o||ie("",!0))]}},Tc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Vt(56,i)),t.children.length&&(n.onError(Vt(57,i)),t.children.length=0),{props:[Ge(ie("textContent",!0),o?ft(o,n)>0?o:Ye(n.helperString(tr),[o],i):ie("",!0))]}},Oc=(e,t,n)=>{const o=di(e,t,n);if(!o.props.length||t.tagType===1)return o;e.arg&&n.onError(Vt(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=rr(t,"type");if(l){if(l.type===7)r=Fr;else if(l.value)switch(l.value.content){case"radio":r=pi;break;case"checkbox":r=hi;break;case"file":s=!0,n.onError(Vt(60,e.loc));break}}else xa(t)&&(r=Fr)}else i==="select"&&(r=vi);s||(o.needRuntime=n.helper(r))}else n.onError(Vt(58,e.loc));return o.props=o.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),o},Ic=Xr("passive,once,capture"),Nc=Xr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Cc=Xr("left,right"),ss=Xr("onkeyup,onkeydown,onkeypress"),Ac=(e,t,n,o)=>{const i=[],a=[],r=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&On("COMPILER_V_ON_NATIVE",n)||Ic(l)?r.push(l):Cc(l)?nt(e)?ss(e.content.toLowerCase())?i.push(l):a.push(l):(i.push(l),a.push(l)):Nc(l)?a.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:r}},Gi=(e,t)=>nt(e)&&e.content.toLowerCase()==="onclick"?ie(t,!0):e.type!==4?yt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,xc=(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}=Ac(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&&(!nt(a)||ss(a.content.toLowerCase()))&&(r=Ye(n.helper(yi),[r,JSON.stringify(s)])),c.length){const f=c.map(ia).join("");a=nt(a)?ie(`${a.content}${f}`,!0):yt(["(",a,`) + "${f}"`])}return{props:[Ge(a,r)]}}),Pc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Vt(62,i)),{props:[],needRuntime:n.helper(Ei)}},Dc=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},ls=[as],cs={cloak:is,html:bc,text:Tc,model:Oc,on:xc,show:Pc};function Rc(e,t={}){return os(e,Mt({},Ti,t,{nodeTransforms:[Dc,...ls,...t.nodeTransforms||[]],directiveTransforms:Mt({},cs,t.directiveTransforms||{}),transformHoist:null}))}function Mc(e,t={}){return ai(e,Mt({},Ti,t))}const Lc=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:Go,BindingTypes:vc,CAMELIZE:Dr,CAPITALIZE:ca,CREATE_BLOCK:Ho,CREATE_COMMENT:An,CREATE_ELEMENT_BLOCK:Wo,CREATE_ELEMENT_VNODE:Wr,CREATE_SLOTS:Jo,CREATE_STATIC:Yo,CREATE_TEXT:Yr,CREATE_VNODE:Hr,CompilerDeprecationTypes:qs,ConstantTypes:Hs,DOMDirectiveTransforms:cs,DOMErrorCodes:Ec,DOMErrorMessages:Sc,DOMNodeTransforms:ls,ElementTypes:Gs,ErrorCodes:nl,FRAGMENT:Sn,GUARD_REACTIVE_PROPS:xn,IS_MEMO_SAME:Qo,IS_REF:pa,KEEP_ALIVE:Jn,MERGE_PROPS:Qn,NORMALIZE_CLASS:eo,NORMALIZE_PROPS:bn,NORMALIZE_STYLE:to,Namespaces:Xs,NodeTypes:Ks,OPEN_BLOCK:zt,POP_SCOPE_ID:fa,PUSH_SCOPE_ID:ua,RENDER_LIST:qr,RENDER_SLOT:zo,RESOLVE_COMPONENT:zr,RESOLVE_DIRECTIVE:Qr,RESOLVE_DYNAMIC_COMPONENT:Jr,RESOLVE_FILTER:Zr,SET_BLOCK_TRACKING:Zn,SUSPENSE:Gr,TELEPORT:En,TO_DISPLAY_STRING:tr,TO_HANDLERS:no,TO_HANDLER_KEY:Rr,TRANSITION:Si,TRANSITION_GROUP:bi,TS_NODE_TYPES:ba,UNREF:da,V_MODEL_CHECKBOX:hi,V_MODEL_DYNAMIC:Fr,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:ro,WITH_DIRECTIVES:_r,WITH_MEMO:oo,advancePositionWithClone:Sl,advancePositionWithMutation:Aa,assert:bl,baseCompile:os,baseParse:ai,buildDirectiveArgs:qa,buildProps:ui,buildSlots:Ja,checkCompatEnabled:On,compile:Rc,convertToBlock:io,createArrayExpression:Wt,createAssignmentExpression:Js,createBlockStatement:ga,createCacheExpression:va,createCallExpression:Ye,createCompilerError:Ce,createCompoundExpression:yt,createConditionalExpression:Mr,createDOMCompilerError:Vt,createForLoopParams:wr,createFunctionExpression:an,createIfStatement:zs,createInterpolation:Ws,createObjectExpression:mt,createObjectProperty:Ge,createReturnStatement:Zs,createRoot:ma,createSequenceExpression:Qs,createSimpleExpression:ie,createStructuralDirectiveTransform:si,createTemplateLiteral:Ys,createTransformContext:ja,createVNodeCall:Tn,errorMessages:rl,extractIdentifiers:Nt,findDir:at,findProp:rr,forAliasRE:Da,generate:Xa,generateCodeFrame:Ds,getBaseTransformPreset:rs,getConstantType:ft,getMemoedVNodeCall:Pa,getVNodeBlockHelper:ln,getVNodeHelper:sn,hasDynamicKeyVBind:xa,hasScopeRef:Ot,helperNameMap:on,injectProp:qn,isAllWhitespace:ri,isCommentOrWhitespace:oi,isCoreComponent:_o,isFnExpression:Ca,isFnExpressionBrowser:Na,isFnExpressionNode:El,isFunctionType:dl,isInDestructureAssignment:al,isInNewExpression:sl,isMemberExpression:ei,isMemberExpressionBrowser:Ia,isMemberExpressionNode:gl,isReferencedIdentifier:il,isSimpleIdentifier:nr,isSlotOutlet:_n,isStaticArgOf:nn,isStaticExp:nt,isStaticProperty:Sa,isStaticPropertyKey:pl,isTemplateNode:In,isText:Er,isVPre:Po,isVSlot:ti,isWhitespaceText:ao,locStub:ze,noopDirectiveTransform:is,parse:Mc,parserOptions:Ti,processExpression:Or,processFor:Ya,processIf:Wa,processSlotOutlet:es,registerRuntimeHelpers:ha,resolveComponentType:_a,stringifyExpression:Ha,toValidAssetId:Nn,trackSlotScopes:za,trackVForSlotScopes:ic,transform:Ba,transformBind:ts,transformElement:Za,transformExpression:ec,transformModel:di,transformOn:fi,transformStyle:as,transformVBindShorthand:ns,traverseNode:or,unwrapTSNode:Ta,validFirstIdentCharRE:qo,walkBlockDeclarations:Ea,walkFunctionParams:ll,walkIdentifiers:ol,warnDeprecation:tl},Symbol.toStringTag,{value:"Module"})),wc=Kr(Lc),Vc=Kr(Rs),Fc=Kr(Ms);/**
|
|
18
|
+
* vue v3.5.42
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/var Hi;function $c(){return Hi||(Hi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=wc,n=Vc,o=Fc;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])})})(ho)),ho}var Wi;function Uc(){return Wi||(Wi=1,po.exports=$c()),po.exports}/**!
|
|
22
|
+
* Sortable 1.14.0
|
|
23
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
24
|
+
* @author owenm <owen23355@gmail.com>
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/function Yi(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 At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yi(Object(n),!0).forEach(function(o){jc(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Nr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nr=function(t){return typeof t}:Nr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function jc(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 Bc(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=Bc(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 Xc(e){return Kc(e)||Gc(e)||Hc(e)||Wc()}function Kc(e){if(Array.isArray(e))return wo(e)}function Gc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hc(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 Wc(){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 Yc="1.14.0";function Ft(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var $t=Ft(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ar=Ft(/Edge/i),zi=Ft(/firefox/i),Gn=Ft(/safari/i)&&!Ft(/chrome/i)&&!Ft(/android/i),us=Ft(/iP(ad|od|hone)/i),zc=Ft(/chrome/i)&&Ft(/android/i),fs={capture:!1,passive:!1};function pe(e,t,n){e.addEventListener(t,n,!$t&&fs)}function fe(e,t,n){e.removeEventListener(t,n,!$t&&fs)}function $r(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 Jc(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function It(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&$r(e,t):$r(e,t))||o&&e===n)return e;if(e===n)break}while(e=Jc(e))}return null}var Ji=/\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(Ji," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Ji," ")}}function H(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=H(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 ds(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 Ct(){var e=document.scrollingElement;return e||document.documentElement}function Re(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,r,s,l,c,f,u;if(e!==window&&e.parentNode&&e!==Ct()?(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,!$t))do if(i&&i.getBoundingClientRect&&(H(i,"transform")!=="none"||n&&H(i,"position")!=="static")){var p=i.getBoundingClientRect();r-=p.top+parseInt(H(i,"border-top-width")),s-=p.left+parseInt(H(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 Qi(e,t,n){for(var o=Gt(e,!0),i=Re(e)[t];o;){var a=Re(o)[n],r=void 0;if(r=i>=a,!r)return o;if(o===Ct())break;o=Gt(o,!1)}return!1}function Cn(e,t,n,o){for(var i=0,a=0,r=e.children;a<r.length;){if(r[a].style.display!=="none"&&r[a]!==Z.ghost&&(o||r[a]!==Z.dragged)&&It(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===Z.ghost||H(n,"display")==="none"||t&&!$r(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!==Z.clone&&(!t||$r(e,t))&&n++;return n}function Zi(e){var t=0,n=0,o=Ct();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 Qc(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 Ct();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=H(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 Ct();if(o||t)return n;o=!0}}while(n=n.parentNode);return Ct()}function Zc(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function vo(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 Hn;function ps(e,t){return function(){if(!Hn){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),Hn=setTimeout(function(){Hn=void 0},t)}}}function _c(){clearTimeout(Hn),Hn=void 0}function hs(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 _i(e,t){H(e,"position","absolute"),H(e,"top",t.top),H(e,"left",t.left),H(e,"width",t.width),H(e,"height",t.height)}function go(e){H(e,"position",""),H(e,"top",""),H(e,"left",""),H(e,"width",""),H(e,"height","")}var rt="Sortable"+new Date().getTime();function qc(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(H(i,"display")==="none"||i===Z.ghost)){e.push({target:i,rect:Re(i)});var a=At({},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(Qc(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=Re(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&&vo(p,u)&&!vo(f,u)&&(m.top-u.top)/(m.left-u.left)===(f.top-u.top)/(f.left-u.left)&&(l=tu(m,p,d,i.options)),vo(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){H(o,"transition",""),H(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,H(o,"transform","translate3d("+f+"px,"+u+"px,0)"),this.forRepaintDummy=eu(o),H(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),H(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){H(o,"transition",""),H(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function eu(e){return e.offsetWidth}function tu(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 pn=[],yo={initializeByDefault:!0},sr={mount:function(t){for(var n in yo)yo.hasOwnProperty(n)&&!(n in t)&&(t[n]=yo[n]);pn.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),pn.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var a=t+"Global";pn.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][a]&&n[r.pluginName][a](At({sortable:n},o)),n.options[r.pluginName]&&n[r.pluginName][t]&&n[r.pluginName][t](At({sortable:n},o)))})},initializePlugins:function(t,n,o,i){pn.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 pn.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 pn.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(i=a.optionListeners[n].call(t[a.pluginName],o))}),i}};function jn(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[rt],!!t){var h,v=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!$t&&!ar?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=At(At({},m),sr.getEventProperties(o,t));for(var I in y)h[I]=y[I];n&&n.dispatchEvent(h),v[g]&&v[g].call(t,h)}}var nu=["evt"],lt=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,a=kc(o,nu);sr.pluginEvent.bind(Z)(t,n,At({dragEl:k,parentEl:$e,ghostEl:se,rootEl:De,nextEl:qt,lastDownEl:Cr,cloneEl:Ue,cloneHidden:Xt,dragStarted:Bn,putSortable:Qe,activeSortable:Z.active,originalEvent:i,oldIndex:yn,oldDraggableIndex:Wn,newIndex:pt,newDraggableIndex:kt,hideGhostForTarget:ys,unhideGhostForTarget:Es,cloneNowHidden:function(){Xt=!0},cloneNowShown:function(){Xt=!1},dispatchSortableEvent:function(s){it({sortable:n,name:s,originalEvent:i})}},a))};function it(e){jn(At({putSortable:Qe,cloneEl:Ue,targetEl:k,rootEl:De,oldIndex:yn,oldDraggableIndex:Wn,newIndex:pt,newDraggableIndex:kt},e))}var k,$e,se,De,qt,Cr,Ue,Xt,yn,pt,Wn,kt,dr,Qe,vn=!1,Ur=!1,jr=[],Qt,bt,Eo,So,qi,ea,Bn,hn,Yn,zn=!1,pr=!1,Ar,qe,bo=[],Vo=!1,Br=[],lo=typeof document<"u",hr=us,ta=ar||$t?"cssFloat":"float",ru=lo&&!zc&&!us&&"draggable"in document.createElement("div"),ms=(function(){if(lo){if($t)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),vs=function(t,n){var o=H(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),a=Cn(t,0,n),r=Cn(t,1,n),s=a&&H(a),l=r&&H(r),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Re(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Re(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[ta]==="none"||r&&o[ta]==="none"&&c+f>i)?"vertical":"horizontal"},ou=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},iu=function(t,n){var o;return jr.some(function(i){var a=i[rt].options.emptyInsertThreshold;if(!(!a||Oi(i))){var r=Re(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},gs=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||Nr(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},ys=function(){!ms&&se&&H(se,"display","none")},Es=function(){!ms&&se&&H(se,"display","")};lo&&document.addEventListener("click",function(e){if(Ur)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ur=!1,!1},!0);var Zt=function(t){if(k){t=t.touches?t.touches[0]:t;var n=iu(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[rt]._onDragOver(o)}}},au=function(t){k&&k.parentNode[rt]._isOutsideThisEl(t.target)};function Z(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[rt]=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 vs(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:Z.supportPointer!==!1&&"PointerEvent"in window&&!Gn,emptyInsertThreshold:5};sr.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);gs(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:ru,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?pe(e,"pointerdown",this._onTapStart):(pe(e,"mousedown",this._onTapStart),pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(pe(e,"dragover",this),pe(e,"dragenter",this)),jr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Et(this,qc())}Z.prototype={constructor:Z,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(hn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,k):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(hu(o),!k&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Gn&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=It(l,i.draggable,o,!1),!(l&&l.animated)&&Cr!==l)){if(yn=je(l),Wn=je(l,i.draggable),typeof f=="function"){if(f.call(this,t,l,this)){it({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:o,fromEl:o}),lt("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(u){if(u=It(c,u.trim(),o,!1),u)return it({sortable:n,rootEl:u,name:"filter",targetEl:l,fromEl:o,toEl:o}),lt("filter",n,{evt:t}),!0}),f)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!It(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&&!k&&o.parentNode===a){var c=Re(o);if(De=a,k=o,$e=k.parentNode,qt=k.nextSibling,Cr=o,dr=r.group,Z.dragged=k,Qt={target:k,clientX:(n||t).clientX,clientY:(n||t).clientY},qi=Qt.clientX-c.left,ea=Qt.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,k.style["will-change"]="all",l=function(){if(lt("delayEnded",i,{evt:t}),Z.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!zi&&i.nativeDraggable&&(k.draggable=!0),i._triggerDragStart(t,n),it({sortable:i,name:"choose",originalEvent:t}),Ve(k,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){ds(k,f.trim(),To)}),pe(s,"dragover",Zt),pe(s,"mousemove",Zt),pe(s,"touchmove",Zt),pe(s,"mouseup",i._onDrop),pe(s,"touchend",i._onDrop),pe(s,"touchcancel",i._onDrop),zi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,k.draggable=!0),lt("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ar||$t))){if(Z.eventCanceled){this._onDrop();return}pe(s,"mouseup",i._disableDelayedDrag),pe(s,"touchend",i._disableDelayedDrag),pe(s,"touchcancel",i._disableDelayedDrag),pe(s,"mousemove",i._delayedDragTouchMoveHandler),pe(s,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&pe(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(){k&&To(k),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;fe(t,"mouseup",this._disableDelayedDrag),fe(t,"touchend",this._disableDelayedDrag),fe(t,"touchcancel",this._disableDelayedDrag),fe(t,"mousemove",this._delayedDragTouchMoveHandler),fe(t,"touchmove",this._delayedDragTouchMoveHandler),fe(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?pe(document,"pointermove",this._onTouchMove):n?pe(document,"touchmove",this._onTouchMove):pe(document,"mousemove",this._onTouchMove):(pe(k,"dragend",this),pe(De,"dragstart",this._onDragStart));try{document.selection?xr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(vn=!1,De&&k){lt("dragStarted",this,{evt:n}),this.nativeDraggable&&pe(document,"dragover",au);var o=this.options;!t&&Ve(k,o.dragClass,!1),Ve(k,o.ghostClass,!0),Z.active=this,t&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,ys();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY),t!==n);)n=t;if(k.parentNode[rt]._isOutsideThisEl(t),n)do{if(n[rt]){var o=void 0;if(o=n[rt]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Es()}},_onTouchMove:function(t){if(Qt){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,r=se&&rn(se,!0),s=se&&r&&r.a,l=se&&r&&r.d,c=hr&&qe&&Zi(qe),f=(a.clientX-Qt.clientX+i.x)/(s||1)+(c?c[0]-bo[0]:0)/(s||1),u=(a.clientY-Qt.clientY+i.y)/(l||1)+(c?c[1]-bo[1]:0)/(l||1);if(!Z.active&&!vn){if(o&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(se){r?(r.e+=f-(Eo||0),r.f+=u-(So||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,")");H(se,"webkitTransform",p),H(se,"mozTransform",p),H(se,"msTransform",p),H(se,"transform",p),Eo=f,So=u,bt=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!se){var t=this.options.fallbackOnBody?document.body:De,n=Re(k,!0,hr,!0,t),o=this.options;if(hr){for(qe=t;H(qe,"position")==="static"&&H(qe,"transform")==="none"&&qe!==document;)qe=qe.parentNode;qe!==document.body&&qe!==document.documentElement?(qe===document&&(qe=Ct()),n.top+=qe.scrollTop,n.left+=qe.scrollLeft):qe=Ct(),bo=Zi(qe)}se=k.cloneNode(!0),Ve(se,o.ghostClass,!1),Ve(se,o.fallbackClass,!0),Ve(se,o.dragClass,!0),H(se,"transition",""),H(se,"transform",""),H(se,"box-sizing","border-box"),H(se,"margin",0),H(se,"top",n.top),H(se,"left",n.left),H(se,"width",n.width),H(se,"height",n.height),H(se,"opacity","0.8"),H(se,"position",hr?"absolute":"fixed"),H(se,"zIndex","100000"),H(se,"pointerEvents","none"),Z.ghost=se,t.appendChild(se),H(se,"transform-origin",qi/parseInt(se.style.width)*100+"% "+ea/parseInt(se.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,a=o.options;if(lt("dragStart",this,{evt:t}),Z.eventCanceled){this._onDrop();return}lt("setupClone",this),Z.eventCanceled||(Ue=Ii(k),Ue.draggable=!1,Ue.style["will-change"]="",this._hideClone(),Ve(Ue,this.options.chosenClass,!1),Z.clone=Ue),o.cloneId=xr(function(){lt("clone",o),!Z.eventCanceled&&(o.options.removeCloneOnHide||De.insertBefore(Ue,k),o._hideClone(),it({sortable:o,name:"clone"}))}),!n&&Ve(k,a.dragClass,!0),n?(Ur=!0,o._loopId=setInterval(o._emulateDragOver,50)):(fe(document,"mouseup",o._onDrop),fe(document,"touchend",o._onDrop),fe(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(o,i,k)),pe(document,"drop",o),H(k,"transform","translateZ(0)")),vn=!0,o._dragStartId=xr(o._dragStarted.bind(o,n,t)),pe(document,"selectstart",o),Bn=!0,Gn&&H(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=Z.active,f=dr===l,u=s.sort,p=Qe||c,d,m=this,h=!1;if(Vo)return;function v(z,ce){lt(z,m,At({evt:t,isOwner:f,axis:d?"vertical":"horizontal",revert:r,dragRect:i,targetRect:a,canSort:u,fromSortable:p,target:o,completed:y,onMove:function(ge,Ee){return mr(De,n,k,i,ge,Re(ge),t,Ee)},changed:I},ce))}function g(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function y(z){return v("dragOverCompleted",{insertion:z}),z&&(f?c._hideClone():c._showClone(m),m!==p&&(Ve(k,Qe?Qe.options.ghostClass:c.options.ghostClass,!1),Ve(k,s.ghostClass,!0)),Qe!==m&&m!==Z.active?Qe=m:m===Z.active&&Qe&&(Qe=null),p===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===k&&!k.animated||o===n&&!o.animated)&&(hn=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(k.parentNode[rt]._isOutsideThisEl(t.target),!z&&Zt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function I(){pt=je(k),kt=je(k,s.draggable),it({sortable:m,name:"change",toEl:n,newIndex:pt,newDraggableIndex:kt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=It(o,s.draggable,n,!0),v("dragOver"),Z.eventCanceled)return h;if(k.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Ur=!1,c&&!s.disabled&&(f?u||(r=$e!==De):Qe===this||(this.lastPutMode=dr.checkPull(this,c,k,t))&&l.checkPut(this,c,k,t))){if(d=this._getDirection(t,o)==="vertical",i=Re(k),v("dragOverValid"),Z.eventCanceled)return h;if(r)return $e=De,g(),this._hideClone(),v("revert"),Z.eventCanceled||(qt?De.insertBefore(k,qt):De.appendChild(k)),y(!0);var S=Oi(n,s.draggable);if(!S||uu(t,d,this)&&!S.animated){if(S===k)return y(!1);if(S&&n===t.target&&(o=S),o&&(a=Re(o)),mr(De,n,k,i,o,a,t,!!o)!==!1)return g(),n.appendChild(k),$e=n,I(),y(!0)}else if(S&&cu(t,d,this)){var C=Cn(n,0,s,!0);if(C===k)return y(!1);if(o=C,a=Re(o),mr(De,n,k,i,o,a,t,!1)!==!1)return g(),n.insertBefore(k,C),$e=n,I(),y(!0)}else if(o.parentNode===n){a=Re(o);var A=0,B,w=k.parentNode!==n,O=!ou(k.animated&&k.toRect||i,o.animated&&o.toRect||a,d),L=d?"top":"left",j=Qi(o,"top","top")||Qi(k,"top","top"),R=j?j.scrollTop:void 0;hn!==o&&(B=a[L],zn=!1,pr=!O&&s.invertSwap||w),A=fu(t,o,a,d,O?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,pr,hn===o);var E;if(A!==0){var N=je(k);do N-=A,E=$e.children[N];while(E&&(H(E,"display")==="none"||E===se))}if(A===0||E===o)return y(!1);hn=o,Yn=A;var V=o.nextElementSibling,F=!1;F=A===1;var U=mr(De,n,k,i,o,a,t,F);if(U!==!1)return(U===1||U===-1)&&(F=U===1),Vo=!0,setTimeout(lu,30),g(),F&&!V?n.appendChild(k):o.parentNode.insertBefore(k,F?V:o),j&&hs(j,0,R-j.scrollTop),$e=k.parentNode,B!==void 0&&!pr&&(Ar=Math.abs(B-Re(o)[L])),I(),y(!0)}if(n.contains(k))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){fe(document,"mousemove",this._onTouchMove),fe(document,"touchmove",this._onTouchMove),fe(document,"pointermove",this._onTouchMove),fe(document,"dragover",Zt),fe(document,"mousemove",Zt),fe(document,"touchmove",Zt)},_offUpEvents:function(){var t=this.el.ownerDocument;fe(t,"mouseup",this._onDrop),fe(t,"touchend",this._onDrop),fe(t,"pointerup",this._onDrop),fe(t,"touchcancel",this._onDrop),fe(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(pt=je(k),kt=je(k,o.draggable),lt("drop",this,{evt:t}),$e=k&&k.parentNode,pt=je(k),kt=je(k,o.draggable),Z.eventCanceled){this._nulling();return}vn=!1,pr=!1,zn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fo(this.cloneId),Fo(this._dragStartId),this.nativeDraggable&&(fe(document,"drop",this),fe(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Gn&&H(document.body,"user-select",""),H(k,"transform",""),t&&(Bn&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),se&&se.parentNode&&se.parentNode.removeChild(se),(De===$e||Qe&&Qe.lastPutMode!=="clone")&&Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),k&&(this.nativeDraggable&&fe(k,"dragend",this),To(k),k.style["will-change"]="",Bn&&!vn&&Ve(k,Qe?Qe.options.ghostClass:this.options.ghostClass,!1),Ve(k,this.options.chosenClass,!1),it({sortable:this,name:"unchoose",toEl:$e,newIndex:null,newDraggableIndex:null,originalEvent:t}),De!==$e?(pt>=0&&(it({rootEl:$e,name:"add",toEl:$e,fromEl:De,originalEvent:t}),it({sortable:this,name:"remove",toEl:$e,originalEvent:t}),it({rootEl:$e,name:"sort",toEl:$e,fromEl:De,originalEvent:t}),it({sortable:this,name:"sort",toEl:$e,originalEvent:t})),Qe&&Qe.save()):pt!==yn&&pt>=0&&(it({sortable:this,name:"update",toEl:$e,originalEvent:t}),it({sortable:this,name:"sort",toEl:$e,originalEvent:t})),Z.active&&((pt==null||pt===-1)&&(pt=yn,kt=Wn),it({sortable:this,name:"end",toEl:$e,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){lt("nulling",this),De=k=$e=se=qt=Ue=Cr=Xt=Qt=bt=Bn=pt=kt=yn=Wn=hn=Yn=Qe=dr=Z.dragged=Z.ghost=Z.clone=Z.active=null,Br.forEach(function(t){t.checked=!0}),Br.length=Eo=So=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":k&&(this._onDragOver(t),su(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],It(n,r.draggable,this.el,!1)&&t.push(n.getAttribute(r.dataIdAttr)||pu(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(a,r){var s=i.children[r];It(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 It(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=sr.modifyOption(this,t,n);typeof i<"u"?o[t]=i:o[t]=n,t==="group"&&gs(o)},destroy:function(){lt("destroy",this);var t=this.el;t[rt]=null,fe(t,"mousedown",this._onTapStart),fe(t,"touchstart",this._onTapStart),fe(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(fe(t,"dragover",this),fe(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jr.splice(jr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Xt){if(lt("hideClone",this),Z.eventCanceled)return;H(Ue,"display","none"),this.options.removeCloneOnHide&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),Xt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Xt){if(lt("showClone",this),Z.eventCanceled)return;k.parentNode==De&&!this.options.group.revertClone?De.insertBefore(Ue,k):qt?De.insertBefore(Ue,qt):De.appendChild(Ue),this.options.group.revertClone&&this.animate(k,Ue),H(Ue,"display",""),Xt=!1}}};function su(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function mr(e,t,n,o,i,a,r,s){var l,c=e[rt],f=c.options.onMove,u;return window.CustomEvent&&!$t&&!ar?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||Re(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),f&&(u=f.call(c,l,r)),u}function To(e){e.draggable=!1}function lu(){Vo=!1}function cu(e,t,n){var o=Re(Cn(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 uu(e,t,n){var o=Re(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 fu(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&&Ar<c*i){if(!zn&&(Yn===1?l>f+c*a/2:l<u-c*a/2)&&(zn=!0),zn)p=!0;else if(Yn===1?l<f+Ar:l>u-Ar)return-Yn}else if(l>f+c*(1-i)/2&&l<u-c*(1-i)/2)return du(t)}return p=p||r,p&&(l<f+c*a/2||l>u-c*a/2)?l>f+c/2?1:-1:0}function du(e){return je(k)<je(e)?1:-1}function pu(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 hu(e){Br.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Br.push(o)}}function xr(e){return setTimeout(e,0)}function Fo(e){return clearTimeout(e)}lo&&pe(document,"touchmove",function(e){(Z.active||vn)&&e.cancelable&&e.preventDefault()});Z.utils={on:pe,off:fe,css:H,find:ds,is:function(t,n){return!!It(t,n,t,!1)},extend:Zc,throttle:ps,closest:It,toggleClass:Ve,clone:Ii,index:je,nextTick:xr,cancelNextTick:Fo,detectDirection:vs,getChild:Cn};Z.get=function(e){return e[rt]};Z.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&&(Z.utils=At(At({},Z.utils),o.utils)),sr.mount(o)})};Z.create=function(e,t){return new Z(e,t)};Z.version=Yc;var We=[],kn,$o,Uo=!1,Oo,Io,kr,Xn;function mu(){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?pe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?pe(document,"pointermove",this._handleFallbackAutoScroll):o.touches?pe(document,"touchmove",this._handleFallbackAutoScroll):pe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):(fe(document,"pointermove",this._handleFallbackAutoScroll),fe(document,"touchmove",this._handleFallbackAutoScroll),fe(document,"mousemove",this._handleFallbackAutoScroll)),na(),Pr(),_c()},nulling:function(){kr=$o=kn=Uo=Xn=Oo=Io=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||ar||$t||Gn){No(n,this.options,s,o);var l=Gt(s,!0);Uo&&(!Xn||a!==Oo||r!==Io)&&(Xn&&na(),Xn=setInterval(function(){var c=Gt(document.elementFromPoint(a,r),!0);c!==l&&(l=c,Pr()),No(n,i.options,c,o)},10),Oo=a,Io=r)}else{if(!this.options.bubbleScroll||Gt(s,!0)===Ct()){Pr();return}No(n,this.options,Gt(s,!1),!1)}}},Et(e,{pluginName:"scroll",initializeByDefault:!0})}function Pr(){We.forEach(function(e){clearInterval(e.pid)}),We=[]}function na(){clearInterval(Xn)}var No=ps(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=Ct(),c=!1,f;$o!==n&&($o=n,Pr(),kn=t.scroll,f=t.scrollFn,kn===!0&&(kn=Gt(n,!0)));var u=0,p=kn;do{var d=p,m=Re(d),h=m.top,v=m.bottom,g=m.left,y=m.right,I=m.width,S=m.height,C=void 0,A=void 0,B=d.scrollWidth,w=d.scrollHeight,O=H(d),L=d.scrollLeft,j=d.scrollTop;d===l?(C=I<B&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),A=S<w&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):(C=I<B&&(O.overflowX==="auto"||O.overflowX==="scroll"),A=S<w&&(O.overflowY==="auto"||O.overflowY==="scroll"));var R=C&&(Math.abs(y-i)<=r&&L+I<B)-(Math.abs(g-i)<=r&&!!L),E=A&&(Math.abs(v-a)<=r&&j+S<w)-(Math.abs(h-a)<=r&&!!j);if(!We[u])for(var N=0;N<=u;N++)We[N]||(We[N]={});(We[u].vx!=R||We[u].vy!=E||We[u].el!==d)&&(We[u].el=d,We[u].vx=R,We[u].vy=E,clearInterval(We[u].pid),(R!=0||E!=0)&&(c=!0,We[u].pid=setInterval((function(){o&&this.layer===0&&Z.active._onTouchMove(kr);var V=We[this.layer].vy?We[this.layer].vy*s:0,F=We[this.layer].vx?We[this.layer].vx*s:0;typeof f=="function"&&f.call(Z.dragged.parentNode[rt],F,V,e,kr,We[this.layer].el)!=="continue"||hs(We[this.layer].el,F,V)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Gt(p,!1)));Uo=c}},30),Ss=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=Cn(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:Ss};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:Ss};Et(Ci,{pluginName:"removeOnSpill"});var gt;function vu(){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(),gu(a,gt),r.animateAll(),r!==o&&o.animateAll())},nulling:function(){gt=null}},Et(e,{pluginName:"swap",eventProperties:function(){return{swapItem:gt}}})}function gu(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 oe=[],dt=[],Fn,Tt,$n=!1,ct=!1,mn=!1,Ne,Un,vr;function yu(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?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),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var r="";oe.length&&Tt===t?oe.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;Ne=o},delayEnded:function(){this.isMultiDrag=~oe.indexOf(Ne)},setupClone:function(n){var o=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var a=0;a<oe.length;a++)dt.push(Ii(oe[a])),dt[a].sortableIndex=oe[a].sortableIndex,dt[a].draggable=!1,dt[a].style["will-change"]="",Ve(dt[a],this.options.selectedClass,!1),oe[a]===Ne&&Ve(dt[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||oe.length&&Tt===o&&(ra(!0,i),a("clone"),r()))},showClone:function(n){var o=n.cloneNowShown,i=n.rootEl,a=n.cancel;this.isMultiDrag&&(ra(!1,i),dt.forEach(function(r){H(r,"display","")}),o(),vr=!1,a())},hideClone:function(n){var o=this;n.sortable;var i=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(dt.forEach(function(r){H(r,"display","none"),o.options.removeCloneOnHide&&r.parentNode&&r.parentNode.removeChild(r)}),i(),vr=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Tt&&Tt.multiDrag._deselectMultiDrag(),oe.forEach(function(o){o.sortableIndex=je(o)}),oe=oe.sort(function(o,i){return o.sortableIndex-i.sortableIndex}),mn=!0},dragStarted:function(n){var o=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){oe.forEach(function(r){r!==Ne&&H(r,"position","absolute")});var a=Re(Ne,!1,!0,!0);oe.forEach(function(r){r!==Ne&&_i(r,a)}),ct=!0,$n=!0}i.animateAll(function(){ct=!1,$n=!1,o.options.animation&&oe.forEach(function(r){go(r)}),o.options.sort&&gr()})}},dragOver:function(n){var o=n.target,i=n.completed,a=n.cancel;ct&&~oe.indexOf(o)&&(i(!1),a())},revert:function(n){var o=n.fromSortable,i=n.rootEl,a=n.sortable,r=n.dragRect;oe.length>1&&(oe.forEach(function(s){a.addAnimationState({target:s,rect:ct?Re(s):r}),go(s),s.fromRect=r,o.removeAnimationState(s)}),ct=!1,Eu(!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(),$n=!1,c.animation&&oe.length>1&&(ct||!i&&!r.options.sort&&!l)){var f=Re(Ne,!1,!0,!0);oe.forEach(function(p){p!==Ne&&(_i(p,f),s.appendChild(p))}),ct=!0}if(!i)if(ct||gr(),oe.length>1){var u=vr;r._showClone(o),r.options.animation&&!vr&&u&&dt.forEach(function(p){r.addAnimationState({target:p,rect:Un}),p.fromRect=Un,p.thisAnimationDuration=null})}else r._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,i=n.isOwner,a=n.activeSortable;if(oe.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){Un=Et({},o);var r=rn(Ne,!0);Un.top-=r.f,Un.left-=r.e}},dragOverAnimationComplete:function(){ct&&(ct=!1,gr())},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(!mn)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ve(Ne,u.selectedClass,!~oe.indexOf(Ne)),~oe.indexOf(Ne))oe.splice(oe.indexOf(Ne),1),Fn=null,jn({sortable:r,rootEl:i,name:"deselect",targetEl:Ne});else{if(oe.push(Ne),jn({sortable:r,rootEl:i,name:"select",targetEl:Ne}),o.shiftKey&&Fn&&r.el.contains(Fn)){var d=je(Fn),m=je(Ne);if(~d&&~m&&d!==m){var h,v;for(m>d?(v=d,h=m):(v=m,h=d+1);v<h;v++)~oe.indexOf(p[v])||(Ve(p[v],u.selectedClass,!0),oe.push(p[v]),jn({sortable:r,rootEl:i,name:"select",targetEl:p[v]}))}}else Fn=Ne;Tt=f}if(mn&&this.isMultiDrag){if(ct=!1,(a[rt].options.sort||a!==i)&&oe.length>1){var g=Re(Ne),y=je(Ne,":not(."+this.options.selectedClass+")");if(!$n&&u.animation&&(Ne.thisAnimationDuration=null),f.captureAnimationState(),!$n&&(u.animation&&(Ne.fromRect=g,oe.forEach(function(S){if(S.thisAnimationDuration=null,S!==Ne){var C=ct?Re(S):g;S.fromRect=C,f.addAnimationState({target:S,rect:C})}})),gr(),oe.forEach(function(S){p[y]?a.insertBefore(S,p[y]):a.appendChild(S),y++}),l===je(Ne))){var I=!1;oe.forEach(function(S){if(S.sortableIndex!==je(S)){I=!0;return}}),I&&s("update")}oe.forEach(function(S){go(S)}),f.animateAll()}Tt=f}(i===a||c&&c.lastPutMode!=="clone")&&dt.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=mn=!1,dt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),fe(document,"pointerup",this._deselectMultiDrag),fe(document,"mouseup",this._deselectMultiDrag),fe(document,"touchend",this._deselectMultiDrag),fe(document,"keydown",this._checkKeyDown),fe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof mn<"u"&&mn)&&Tt===this.sortable&&!(n&&It(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;oe.length;){var o=oe[0];Ve(o,this.options.selectedClass,!1),oe.shift(),jn({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[rt];!o||!o.options.multiDrag||~oe.indexOf(n)||(Tt&&Tt!==o&&(Tt.multiDrag._deselectMultiDrag(),Tt=o),Ve(n,o.options.selectedClass,!0),oe.push(n))},deselect:function(n){var o=n.parentNode[rt],i=oe.indexOf(n);!o||!o.options.multiDrag||!~i||(Ve(n,o.options.selectedClass,!1),oe.splice(i,1))}},eventProperties:function(){var n=this,o=[],i=[];return oe.forEach(function(a){o.push({multiDragElement:a,index:a.sortableIndex});var r;ct&&a!==Ne?r=-1:ct?r=je(a,":not(."+n.options.selectedClass+")"):r=je(a),i.push({multiDragElement:a,index:r})}),{items:Xc(oe),clones:[].concat(dt),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 Eu(e,t){oe.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function ra(e,t){dt.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function gr(){oe.forEach(function(e){e!==Ne&&e.parentNode&&e.parentNode.removeChild(e)})}Z.mount(new mu);Z.mount(Ci,Ni);const Su=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:yu,Sortable:Z,Swap:vu,default:Z},Symbol.toStringTag,{value:"Module"})),bu=Kr(Su);var Tu=yr.exports,oa;function Ou(){return oa||(oa=1,(function(e,t){(function(o,i){e.exports=i(Uc(),bu)})(typeof self<"u"?self:Tu,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,I,S,C,A,B,w;if(g?S=s:y?S=s[v]||u(v,{}):S=(s[v]||{}).prototype,S)for(C in h){if(B=h[C],m.noTargetGet?(w=l(S,C),A=w&&w.value):A=S[C],I=d(g?C:v+(y?".":"#")+C,m.forced),!I&&A!==void 0){if(typeof B==typeof A)continue;p(B,A)}(m.sham||A&&A.sham)&&c(B,"sham",!0),f(S,C,B,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),I=g.flags,S=String(I===void 0&&g instanceof RegExp&&!("flags"in p)?f.call(g):I);return"/"+y+"/"+S},{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(I){var S=String(u(this));f(I);var C=c(h(arguments.length>1?arguments[1]:void 0,S.length)),A=String(I);return m?m.call(S,A,C):S.slice(C,C+A.length)===A}})}),"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,I=y>1?arguments[1]:void 0,S=I!==void 0,C=d(v),A=0,B,w,O,L,j,R;if(S&&(I=s(I,y>2?arguments[2]:void 0,2)),C!=null&&!(g==Array&&f(C)))for(L=C.call(v),j=L.next,w=new g;!(O=j.call(L)).done;A++)R=S?c(L,I,[O.value,A],!0):O.value,p(w,A,R);else for(B=u(v.length),w=new g(B);B>A;A++)R=S?I(v[A],A):v[A],p(w,A,R);return w.length=A,w}}),"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,I=/\$([$&'`]|\d\d?)/g,S=function(C){return C===void 0?C:String(C)};s("replace",2,function(C,A,B,w){var O=w.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=w.REPLACE_KEEPS_$0,j=O?"$":"$0";return[function(N,V){var F=p(this),U=N==null?void 0:N[C];return U!==void 0?U.call(N,F,V):A.call(String(F),N,V)},function(E,N){if(!O&&L||typeof N=="string"&&N.indexOf(j)===-1){var V=B(A,E,this,N);if(V.done)return V.value}var F=l(E),U=String(this),z=typeof N=="function";z||(N=String(N));var ce=F.global;if(ce){var Se=F.unicode;F.lastIndex=0}for(var ge=[];;){var Ee=m(F,U);if(Ee===null||(ge.push(Ee),!ce))break;var Ae=String(Ee[0]);Ae===""&&(F.lastIndex=d(U,f(F.lastIndex),Se))}for(var X="",D=0,ue=0;ue<ge.length;ue++){Ee=ge[ue];for(var Y=String(Ee[0]),Oe=h(v(u(Ee.index),U.length),0),be=[],Je=1;Je<Ee.length;Je++)be.push(S(Ee[Je]));var Le=Ee.groups;if(z){var we=[Y].concat(be,Oe,U);Le!==void 0&&we.push(Le);var Ie=String(N.apply(void 0,we))}else Ie=R(Y,U,Oe,be,Le,N);Oe>=D&&(X+=U.slice(D,Oe)+Ie,D=Oe+Y.length)}return X+U.slice(D)}];function R(E,N,V,F,U,z){var ce=V+E.length,Se=F.length,ge=I;return U!==void 0&&(U=c(U),ge=y),A.call(z,ge,function(Ee,Ae){var X;switch(Ae.charAt(0)){case"$":return"$";case"&":return E;case"`":return N.slice(0,V);case"'":return N.slice(ce);case"<":X=U[Ae.slice(1,-1)];break;default:var D=+Ae;if(D===0)return Ee;if(D>Se){var ue=g(D/10);return ue===0?Ee:ue<=Se?F[ue-1]===void 0?Ae.charAt(1):F[ue-1]+Ae.charAt(1):Ee}X=F[D-1]}return X===void 0?"":X})}})}),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,{})},I=function(O){return function(L){var j;if(!c(L)||(j=v(L)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return j}};if(s){var S=new m,C=S.get,A=S.has,B=S.set;h=function(O,L){return B.call(S,O,L),L},v=function(O){return C.call(S,O)||{}},g=function(O){return A.call(S,O)}}else{var w=p("state");d[w]=!0,h=function(O,L){return f(O,w,L),L},v=function(O){return u(O,w)?O[w]:{}},g=function(O){return u(O,w)}}i.exports={set:h,get:v,has:g,enforce:y,getterFor:I}}),"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,I){var S=I?!!I.unsafe:!1,C=I?!!I.enumerable:!1,A=I?!!I.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){C?v[g]=y:f(g,y);return}else S?!A&&v[g]&&(C=!0):delete v[g];C?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=[],I;v>g;)I=h[g++],(!s||f.call(m,I))&&y.push(p?[I,m[I]]:m[I]);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"),I=function(){},S=function(O){return h+g+m+O+h+"/"+g+m},C=function(O){O.write(S("")),O.close();var L=O.parentWindow.Object;return O=null,L},A=function(){var O=p("iframe"),L="java"+g+":",j;return O.style.display="none",u.appendChild(O),O.src=String(L),j=O.contentWindow.document,j.open(),j.write(S("document.F=Object")),j.close(),j.F},B,w=function(){try{B=document.domain&&new ActiveXObject("htmlfile")}catch{}w=B?C(B):A();for(var O=c.length;O--;)delete w[v][c[O]];return w()};f[y]=!0,i.exports=Object.create||function(L,j){var R;return L!==null?(I[v]=s(L),R=new I,I[v]=null,R[y]=L):R=w(),j===void 0?R:l(R,j)}}),"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,I=g.BUGGY_SAFARI_ITERATORS,S=m("iterator"),C="keys",A="values",B="entries",w=function(){return this};i.exports=function(O,L,j,R,E,N,V){l(j,L,R);var F=function(ue){if(ue===E&&ge)return ge;if(!I&&ue in ce)return ce[ue];switch(ue){case C:return function(){return new j(this,ue)};case A:return function(){return new j(this,ue)};case B:return function(){return new j(this,ue)}}return function(){return new j(this)}},U=L+" Iterator",z=!1,ce=O.prototype,Se=ce[S]||ce["@@iterator"]||E&&ce[E],ge=!I&&Se||F(E),Ee=L=="Array"&&ce.entries||Se,Ae,X,D;if(Ee&&(Ae=c(Ee.call(new O)),y!==Object.prototype&&Ae.next&&(!h&&c(Ae)!==y&&(f?f(Ae,y):typeof Ae[S]!="function"&&p(Ae,S,w)),u(Ae,U,!0,!0),h&&(v[U]=w))),E==A&&Se&&Se.name!==A&&(z=!0,ge=function(){return Se.call(this)}),(!h||V)&&ce[S]!==ge&&p(ce,S,ge),v[L]=ge,E)if(X={values:F(A),keys:N?ge:F(C),entries:F(B)},V)for(D in X)(I||z||!(D in ce))&&d(ce,D,X[D]);else s({target:L,proto:!0,forced:I||z},X);return X}}),"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(B){var p=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,m=p.exec(B.stack)||d.exec(B.stack),h=m&&m[1]||!1,v=m&&m[2]||!1,g=document.location.href.replace(document.location.hash,""),y,I,S,C=document.getElementsByTagName("script");h===g&&(y=document.documentElement.outerHTML,I=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),S=y.replace(I,"$1").trim());for(var A=0;A<C.length;A++)if(C[A].readyState==="interactive"||C[A].src===h||h===g&&C[A].innerHTML&&C[A].innerHTML.trim()===S)return C[A];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,I,S,C,A,B=d&&y.sticky,w=s.call(y),O=y.source,L=0,j=g;return B&&(w=w.replace("y",""),w.indexOf("g")===-1&&(w+="g"),j=String(g).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&g[y.lastIndex-1]!==`
|
|
28
|
+
`)&&(O="(?: "+O+")",j=" "+j,L++),S=new RegExp("^(?:"+O+")",w)),m&&(S=new RegExp("^"+O+"$(?!\\s)",w)),p&&(I=y.lastIndex),C=c.call(B?S:y,j),B?C?(C.input=C.input.slice(L),C[0]=C[0].slice(L),C.index=y.lastIndex,y.lastIndex+=C[0].length):y.lastIndex=0:p&&C&&(y.lastIndex=y.global?C.index+C[0].length:I),m&&C&&C.length>1&&f.call(C[0],S,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(C[A]=void 0)}),C}),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"),I=9007199254740991,S="Maximum allowed index exceeded",C=g>=51||!l(function(){var O=[];return O[y]=!1,O.concat()[0]!==O}),A=h("concat"),B=function(O){if(!f(O))return!1;var L=O[y];return L!==void 0?!!L:c(O)},w=!C||!A;s({target:"Array",proto:!0,forced:w},{concat:function(L){var j=u(this),R=m(j,0),E=0,N,V,F,U,z;for(N=-1,F=arguments.length;N<F;N++)if(z=N===-1?j:arguments[N],B(z)){if(U=p(z.length),E+U>I)throw TypeError(S);for(V=0;V<U;V++,E++)V in z&&d(R,E,z[V])}else{if(E>=I)throw TypeError(S);d(R,E++,z)}return R.length=E,R}})}),"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 I=h,S=0,C=g?c(g,y,3):!1,A;S<m;){if(S in d){if(A=C?C(d[S],S,p):d[S],v>0&&s(A))I=f(u,p,A,l(A.length),I,v-1)-1;else{if(I>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[I]=A}I++}S++}return I};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,I=Math.min,S=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!v||!g},{splice:function(B,w){var O=u(this),L=f(O.length),j=l(B,L),R=arguments.length,E,N,V,F,U,z;if(R===0?E=N=0:R===1?(E=0,N=L-j):(E=R-2,N=I(y(c(w),0),L-j)),L+E-N>S)throw TypeError(C);for(V=p(O,N),F=0;F<N;F++)U=j+F,U in O&&d(V,F,O[U]);if(V.length=N,E<N){for(F=j;F<L-N;F++)U=F+N,z=F+E,U in O?O[z]=O[U]:delete O[z];for(F=L;F>L-N+E;F--)delete O[F-1]}else if(E>N)for(F=L-N;F>j;F--)U=F+N-1,z=F+E-1,U in O?O[z]=O[U]:delete O[z];for(F=0;F<E;F++)O[F+j]=arguments[F+2];return O.length=L-N+E,V}})}),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"),I=r("7b0b"),S=r("fc6a"),C=r("c04e"),A=r("5c6c"),B=r("7c73"),w=r("df75"),O=r("241c"),L=r("057f"),j=r("7418"),R=r("06cf"),E=r("9bf2"),N=r("d1e7"),V=r("9112"),F=r("6eeb"),U=r("5692"),z=r("f772"),ce=r("d012"),Se=r("90e3"),ge=r("b622"),Ee=r("e538"),Ae=r("746f"),X=r("d44e"),D=r("69f3"),ue=r("b727").forEach,Y=z("hidden"),Oe="Symbol",be="prototype",Je=ge("toPrimitive"),Le=D.set,we=D.getterFor(Oe),Ie=Object[be],Fe=l.Symbol,vt=c("JSON","stringify"),ne=R.f,re=E.f,xt=L.f,co=N.f,St=U("symbols"),Ut=U("op-symbols"),fn=U("string-to-symbol-registry"),Pn=U("symbol-to-string-registry"),Dn=U("wks"),Rn=l.QObject,Mn=!Rn||!Rn[be]||!Rn[be].findChild,Ln=u&&m(function(){return B(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a!=7})?function(ee,W,Q){var he=ne(Ie,W);he&&delete Ie[W],re(ee,W,Q),he&&ee!==Ie&&re(Ie,W,he)}:re,wn=function(ee,W){var Q=St[ee]=B(Fe[be]);return Le(Q,{type:Oe,tag:ee,description:W}),u||(Q.description=W),Q},T=d?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof Fe},b=function(W,Q,he){W===Ie&&b(Ut,Q,he),y(W);var me=C(Q,!0);return y(he),h(St,me)?(he.enumerable?(h(W,Y)&&W[Y][me]&&(W[Y][me]=!1),he=B(he,{enumerable:A(0,!1)})):(h(W,Y)||re(W,Y,A(1,{})),W[Y][me]=!0),Ln(W,me,he)):re(W,me,he)},x=function(W,Q){y(W);var he=S(Q),me=w(he).concat(ye(he));return ue(me,function(st){(!u||G.call(he,st))&&b(W,st,he[st])}),W},$=function(W,Q){return Q===void 0?B(W):x(B(W),Q)},G=function(W){var Q=C(W,!0),he=co.call(this,Q);return this===Ie&&h(St,Q)&&!h(Ut,Q)?!1:he||!h(this,Q)||!h(St,Q)||h(this,Y)&&this[Y][Q]?he:!0},_=function(W,Q){var he=S(W),me=C(Q,!0);if(!(he===Ie&&h(St,me)&&!h(Ut,me))){var st=ne(he,me);return st&&h(St,me)&&!(h(he,Y)&&he[Y][me])&&(st.enumerable=!0),st}},le=function(W){var Q=xt(S(W)),he=[];return ue(Q,function(me){!h(St,me)&&!h(ce,me)&&he.push(me)}),he},ye=function(W){var Q=W===Ie,he=xt(Q?Ut:S(W)),me=[];return ue(he,function(st){h(St,st)&&(!Q||h(Ie,st))&&me.push(St[st])}),me};if(p||(Fe=function(){if(this instanceof Fe)throw TypeError("Symbol is not a constructor");var W=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Q=Se(W),he=function(me){this===Ie&&he.call(Ut,me),h(this,Y)&&h(this[Y],Q)&&(this[Y][Q]=!1),Ln(this,Q,A(1,me))};return u&&Mn&&Ln(Ie,Q,{configurable:!0,set:he}),wn(Q,W)},F(Fe[be],"toString",function(){return we(this).tag}),F(Fe,"withoutSetter",function(ee){return wn(Se(ee),ee)}),N.f=G,E.f=b,R.f=_,O.f=L.f=le,j.f=ye,Ee.f=function(ee){return wn(ge(ee),ee)},u&&(re(Fe[be],"description",{configurable:!0,get:function(){return we(this).description}}),f||F(Ie,"propertyIsEnumerable",G,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:Fe}),ue(w(Dn),function(ee){Ae(ee)}),s({target:Oe,stat:!0,forced:!p},{for:function(ee){var W=String(ee);if(h(fn,W))return fn[W];var Q=Fe(W);return fn[W]=Q,Pn[Q]=W,Q},keyFor:function(W){if(!T(W))throw TypeError(W+" is not a symbol");if(h(Pn,W))return Pn[W]},useSetter:function(){Mn=!0},useSimple:function(){Mn=!1}}),s({target:"Object",stat:!0,forced:!p,sham:!u},{create:$,defineProperty:b,defineProperties:x,getOwnPropertyDescriptor:_}),s({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:le,getOwnPropertySymbols:ye}),s({target:"Object",stat:!0,forced:m(function(){j.f(1)})},{getOwnPropertySymbols:function(W){return j.f(I(W))}}),vt){var Xe=!p||m(function(){var ee=Fe();return vt([ee])!="[null]"||vt({a:ee})!="{}"||vt(Object(ee))!="{}"});s({target:"JSON",stat:!0,forced:Xe},{stringify:function(W,Q,he){for(var me=[W],st=1,uo;arguments.length>st;)me.push(arguments[st++]);if(uo=Q,!(!g(Q)&&W===void 0||T(W)))return v(Q)||(Q=function(bs,lr){if(typeof uo=="function"&&(lr=uo.call(this,bs,lr)),!T(lr))return lr}),me[1]=Q,vt.apply(null,me)}})}Fe[be][Je]||V(Fe[be],Je,Fe[be].valueOf),X(Fe,Oe),ce[Y]=!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 I={length:-1};v?f(I,1,{enumerable:!0,get:p}):I[1]=1,h.call(I,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,I=m==6,S=m==5||I;return function(C,A,B,w){for(var O=c(C),L=l(O),j=s(A,B,3),R=f(L.length),E=0,N=w||u,V=h?N(C,R):v?N(C,0):void 0,F,U;R>E;E++)if((S||E in L)&&(F=L[E],U=j(F,E,O),m)){if(h)V[E]=U;else if(U)switch(m){case 3:return!0;case 5:return F;case 6:return E;case 2:p.call(V,F)}else if(y)return!1}return I?-1:g||y?y:V}};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),I=f(g.length),S=p?I-1:0,C=p?-1:1;if(h<2)for(;;){if(S in y){v=y[S],S+=C;break}if(S+=C,p?S<0:I<=S)throw TypeError("Reduce of empty array with no initial value")}for(;p?S>=0:I>S;S+=C)S in y&&(v=m(v,y[S],S,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 I=[];return I.groups={a:"7"},I},"".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=/(?:)/,I=y.exec;y.exec=function(){return I.apply(this,arguments)};var S="ab".split(y);return S.length!==2||S[0]!=="a"||S[1]!=="b"});i.exports=function(y,I,S,C){var A=c(y),B=!l(function(){var E={};return E[A]=function(){return 7},""[y](E)!=7}),w=B&&!l(function(){var E=!1,N=/a/;return y==="split"&&(N={},N.constructor={},N.constructor[p]=function(){return N},N.flags="",N[A]=/./[A]),N.exec=function(){return E=!0,null},N[A](""),!E});if(!B||!w||y==="replace"&&!(d&&m&&!v)||y==="split"&&!g){var O=/./[A],L=S(A,""[y],function(E,N,V,F,U){return N.exec===f?B&&!U?{done:!0,value:O.call(N,V,F)}:{done:!0,value:E.call(V,N,F)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),j=L[0],R=L[1];s(String.prototype,y,j),s(RegExp.prototype,A,I==2?function(E,N){return R.call(E,this,N)}:function(E){return R.call(E,this)})}C&&u(RegExp.prototype[A],"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={},I=0,S,C;g.length>I;)C=v(h,S=g[I++]),C!==void 0&&p(y,S,C);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 A=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),B=this instanceof v?new m(A):A===void 0?m():m(A);return A===""&&(h[B]=!0),B};d(v,m);var g=v.prototype=m.prototype;g.constructor=v;var y=g.toString,I=String(m("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;p(g,"description",{configurable:!0,get:function(){var A=u(this)?this.valueOf():this,B=y.call(A);if(f(h,A))return"";var w=I?B.slice(7,-1):B.replace(S,"$1");return w===""?void 0:w}}),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,x){return b in T?Object.defineProperty(T,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):T[b]=x,T}function u(T,b){var x=Object.keys(T);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(T);b&&($=$.filter(function(G){return Object.getOwnPropertyDescriptor(T,G).enumerable})),x.push.apply(x,$)}return x}function p(T){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?u(Object(x),!0).forEach(function($){f(T,$,x[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(x)):u(Object(x)).forEach(function($){Object.defineProperty(T,$,Object.getOwnPropertyDescriptor(x,$))})}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 x=[],$=!0,G=!1,_=void 0;try{for(var le=T[Symbol.iterator](),ye;!($=(ye=le.next()).done)&&(x.push(ye.value),!(b&&x.length===b));$=!0);}catch(Xe){G=!0,_=Xe}finally{try{!$&&le.return!=null&&le.return()}finally{if(G)throw _}}return x}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function h(T,b){(b==null||b>T.length)&&(b=T.length);for(var x=0,$=new Array(b);x<b;x++)$[x]=T[x];return $}function v(T,b){if(T){if(typeof T=="string")return h(T,b);var x=Object.prototype.toString.call(T).slice(8,-1);if(x==="Object"&&T.constructor&&(x=T.constructor.name),x==="Map"||x==="Set")return Array.from(T);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))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 I(T){if(Array.isArray(T))return h(T)}function S(T){if(typeof Symbol<"u"&&Symbol.iterator in Object(T))return Array.from(T)}function C(){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 A(T){return I(T)||S(T)||v(T)||C()}var B=r("a352"),w=r.n(B);function O(T){T.parentElement!==null&&T.parentElement.removeChild(T)}function L(T,b,x){var $=x===0?T.children[0]:T.children[x-1].nextSibling;T.insertBefore(b,$)}var j=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function R(T){var b=Object.create(null);return function($){var G=b[$];return G||(b[$]=T($))}}var E=/-(\w)/g,N=R(function(T){return T.replace(E,function(b,x){return x.toUpperCase()})});r("5db7"),r("73d9");var V=["Start","Add","Remove","Update","End"],F=["Choose","Unchoose","Sort","Filter","Clone"],U=["Move"],z=[U,V,F].flatMap(function(T){return T}).map(function(T){return"on".concat(T)}),ce={manage:U,manageAndEmit:V,emit:F};function Se(T){return z.indexOf(T)!==-1}r("caad"),r("2ca0");var ge=["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 Ee(T){return ge.includes(T)}function Ae(T){return["transition-group","TransitionGroup"].includes(T)}function X(T){return["id","class","role","style"].includes(T)||T.startsWith("data-")||T.startsWith("aria-")||T.startsWith("on")}function D(T){return T.reduce(function(b,x){var $=y(x,2),G=$[0],_=$[1];return b[G]=_,b},{})}function ue(T){var b=T.$attrs,x=T.componentData,$=x===void 0?{}:x,G=D(Object.entries(b).filter(function(_){var le=y(_,2),ye=le[0];return le[1],X(ye)}));return p(p({},G),$)}function Y(T){var b=T.$attrs,x=T.callBackBuilder,$=D(Oe(b));Object.entries(x).forEach(function(_){var le=y(_,2),ye=le[0],Xe=le[1];ce[ye].forEach(function(ee){$["on".concat(ee)]=Xe(ee)})});var G="[data-draggable]".concat($.draggable||"");return p(p({},$),{},{draggable:G})}function Oe(T){return Object.entries(T).filter(function(b){var x=y(b,2),$=x[0];return x[1],!X($)}).map(function(b){var x=y(b,2),$=x[0],G=x[1];return[N($),G]}).filter(function(b){var x=y(b,2),$=x[0];return x[1],!Se($)})}r("c740");function be(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}function Je(T,b){for(var x=0;x<b.length;x++){var $=b[x];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(T,$.key,$)}}function Le(T,b,x){return b&&Je(T.prototype,b),T}var we=function(b){var x=b.el;return x},Ie=function(b,x){return b.__draggable_context=x},Fe=function(b){return b.__draggable_context},vt=(function(){function T(b){var x=b.nodes,$=x.header,G=x.default,_=x.footer,le=b.root,ye=b.realList;be(this,T),this.defaultNodes=G,this.children=[].concat(A($),A(G),A(_)),this.externalComponent=le.externalComponent,this.rootTransition=le.transition,this.tag=le.tag,this.realList=ye}return Le(T,[{key:"render",value:function(x,$){var G=this.tag,_=this.children,le=this._isRootComponent,ye=le?{default:function(){return _}}:_;return x(G,$,ye)}},{key:"updated",value:function(){var x=this.defaultNodes,$=this.realList;x.forEach(function(G,_){Ie(we(G),{element:$[_],index:_})})}},{key:"getUnderlyingVm",value:function(x){return Fe(x)}},{key:"getVmIndexFromDomIndex",value:function(x,$){var G=this.defaultNodes,_=G.length,le=$.children,ye=le.item(x);if(ye===null)return _;var Xe=Fe(ye);if(Xe)return Xe.index;if(_===0)return 0;var ee=we(G[0]),W=A(le).findIndex(function(Q){return Q===ee});return x<W?0:_}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),T})(),ne=r("8bbf");function re(T,b){var x=T[b];return x?x():[]}function xt(T){var b=T.$slots,x=T.realList,$=T.getKey,G=x||[],_=["header","footer"].map(function(Q){return re(b,Q)}),le=y(_,2),ye=le[0],Xe=le[1],ee=b.item;if(!ee)throw new Error("draggable element must have an item slot");var W=G.flatMap(function(Q,he){return ee({element:Q,index:he}).map(function(me){return me.key=$(Q),me.props=p(p({},me.props||{}),{},{"data-draggable":!0}),me})});if(W.length!==G.length)throw new Error("Item slot must have only one child");return{header:ye,footer:Xe,default:W}}function co(T){var b=Ae(T),x=!Ee(T)&&!b;return{transition:b,externalComponent:x,tag:x?Object(ne.resolveComponent)(T):b?ne.TransitionGroup:T}}function St(T){var b=T.$slots,x=T.tag,$=T.realList,G=T.getKey,_=xt({$slots:b,realList:$,getKey:G}),le=co(x);return new vt({nodes:_,root:le,realList:$})}function Ut(T,b){var x=this;Object(ne.nextTick)(function(){return x.$emit(T.toLowerCase(),b)})}function fn(T){var b=this;return function(x,$){if(b.realList!==null)return b["onDrag".concat(T)](x,$)}}function Pn(T){var b=this,x=fn.call(this,T);return function($,G){x.call(b,$,G),Ut.call(b,T,$)}}var Dn=null,Rn={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}},Mn=["update:modelValue","change"].concat(A([].concat(A(ce.manageAndEmit),A(ce.emit)).map(function(T){return T.toLowerCase()}))),Ln=Object(ne.defineComponent)({name:"draggable",inheritAttrs:!1,props:Rn,emits:Mn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var b=this.$slots,x=this.$attrs,$=this.tag,G=this.componentData,_=this.realList,le=this.getKey,ye=St({$slots:b,tag:$,realList:_,getKey:le});this.componentStructure=ye;var Xe=ue({$attrs:x,componentData:G});return ye.render(ne.h,Xe)}catch(ee){return this.error=!0,Object(ne.h)("pre",{style:{color:"red"}},ee.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&j.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var b=this;if(!this.error){var x=this.$attrs,$=this.$el,G=this.componentStructure;G.updated();var _=Y({$attrs:x,callBackBuilder:{manageAndEmit:function(Xe){return Pn.call(b,Xe)},emit:function(Xe){return Ut.bind(b,Xe)},manage:function(Xe){return fn.call(b,Xe)}}}),le=$.nodeType===1?$:$.parentElement;this._sortable=new w.a(le,_),this.targetDomElement=le,le.__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(x){return x[b]}}},watch:{$attrs:{handler:function(b){var x=this._sortable;x&&Oe(b).forEach(function($){var G=y($,2),_=G[0],le=G[1];x.option(_,le)})},deep:!0}},methods:{getUnderlyingVm:function(b){return this.componentStructure.getUnderlyingVm(b)||null},getUnderlyingPotencialDraggableComponent:function(b){return b.__draggable_component__},emitChanges:function(b){var x=this;Object(ne.nextTick)(function(){return x.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var x=A(this.modelValue);b(x),this.$emit("update:modelValue",x)},spliceList:function(){var b=arguments,x=function(G){return G.splice.apply(G,A(b))};this.alterList(x)},updatePosition:function(b,x){var $=function(_){return _.splice(x,0,_.splice(b,1)[0])};this.alterList($)},getRelatedContextFromMoveEvent:function(b){var x=b.to,$=b.related,G=this.getUnderlyingPotencialDraggableComponent(x);if(!G)return{component:G};var _=G.realList,le={list:_,component:G};if(x!==$&&_){var ye=G.getUnderlyingVm($)||{};return p(p({},ye),le)}return le},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),Dn=b.item},onDragAdd:function(b){var x=b.item._underlying_vm_;if(x!==void 0){O(b.item);var $=this.getVmIndexFromDomIndex(b.newIndex);this.spliceList($,0,x);var G={element:x,newIndex:$};this.emitChanges({added:G})}},onDragRemove:function(b){if(L(this.$el,b.item,b.oldIndex),b.pullMode==="clone"){O(b.clone);return}var x=this.context,$=x.index,G=x.element;this.spliceList($,1);var _={element:G,oldIndex:$};this.emitChanges({removed:_})},onDragUpdate:function(b){O(b.item),L(b.from,b.item,b.oldIndex);var x=this.context.index,$=this.getVmIndexFromDomIndex(b.newIndex);this.updatePosition(x,$);var G={element:this.context.element,oldIndex:x,newIndex:$};this.emitChanges({moved:G})},computeFutureIndex:function(b,x){if(!b.element)return 0;var $=A(x.to.children).filter(function(ye){return ye.style.display!=="none"}),G=$.indexOf(x.related),_=b.component.getVmIndexFromDomIndex(G),le=$.indexOf(Dn)!==-1;return le||!x.willInsertAfter?_:_+1},onDragMove:function(b,x){var $=this.move,G=this.realList;if(!$||!G)return!0;var _=this.getRelatedContextFromMoveEvent(b),le=this.computeFutureIndex(_,b),ye=p(p({},this.context),{},{futureIndex:le}),Xe=p(p({},b),{},{relatedContext:_,draggedContext:ye});return $(Xe,x)},onDragEnd:function(){Dn=null}}}),wn=Ln;a.default=wn}),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}),I=m("species"),S=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!g||!y},{slice:function(B,w){var O=p(this),L=u(O.length),j=f(B,L),R=f(w===void 0?L:w,L),E,N,V;if(c(O)&&(E=O.constructor,typeof E=="function"&&(E===Array||c(E.prototype))?E=void 0:l(E)&&(E=E[I],E===null&&(E=void 0)),E===Array||E===void 0))return S.call(O,j,R);for(N=new(E===void 0?Array:E)(C(R-j,0)),V=0;j<R;j++,V++)j in O&&d(N,V,O[j]);return N.length=V,N}})}),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})})(yr)),yr.exports}var Iu=Ou();const Nu=Ls(Iu),Ai=ws("testResults",()=>{const e=gn({}),t=gn({}),n=gn({}),o=gn({});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}}),Cu={class:"card-header"},Au={class:"card-title"},xu={class:"provider-name"},Pu={class:"card-meta"},Du={class:"meta-row"},Ru=["title"],Mu={class:"meta-row"},Lu={class:"meta-value"},wu={key:0,class:"model-tags"},Vu=["onClick"],Fu={key:0,class:"badge-mark"},$u={key:1,class:"badge-mark"},Uu={key:1,class:"text-empty"},ju={class:"card-footer"},Bu=Jt({__name:"ProviderCard",props:{provider:{}},emits:["clone","delete","edit","open-models","copy-model"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ai(),r=f=>f?f.length<=8?f:`${f.substring(0,6)}...${f.substring(f.length-4)}`:"-",s=Ht(()=>{const f=n.provider;return f.name||f.alias||r(f.apiKey||"")}),l=Pe(!1),c=async()=>{const f=n.provider.models;l.value=!0;try{await Promise.all(f.map(p=>a.testProxy(p.modelName)));const u=f.filter(p=>a.modelStatus[p.modelName]==="ok").length;i(`${s.value}: ${u}/${f.length} 个模型通过`,u===f.length?"success":"error")}catch{i("测试出错","error")}finally{l.value=!1}};return(f,u)=>{const p=J("el-tag"),d=J("el-icon"),m=J("el-button"),h=J("el-card");return te(),Me(h,{shadow:"never",class:"provider-card"},{header:M(()=>[K("div",Cu,[K("div",Au,[K("span",xu,Te(s.value),1),e.provider.alias&&e.provider.name!==e.provider.alias?(te(),Me(p,{key:0,type:"info",size:"small"},{default:M(()=>[ae(Te(e.provider.alias),1)]),_:1})):tt("",!0)]),P(d,{class:"drag-hint-icon"},{default:M(()=>[P(q(Fs))]),_:1})])]),default:M(()=>[K("div",Pu,[K("div",Du,[u[6]||(u[6]=K("span",{class:"meta-label"},"接口地址",-1)),K("span",{class:"meta-value",title:e.provider.apiBase},Te(e.provider.apiBase||"-"),9,Ru)]),K("div",Mu,[u[7]||(u[7]=K("span",{class:"meta-label"},"密钥",-1)),K("span",Lu,Te(r(e.provider.apiKey||"")),1)])]),e.provider.models.length?(te(),Be("div",wu,[(te(!0),Be(Bo,null,ko(e.provider.models,v=>(te(),Be("span",{key:v.modelName,class:Vs(["model-tag",{ok:q(a).modelStatus[v.modelName]==="ok",error:q(a).modelStatus[v.modelName]==="error"}]),onClick:fo(g=>o("copy-model",v.modelName),["stop"])},[ae(Te(v.modelName)+" ",1),q(a).modelStatus[v.modelName]==="ok"?(te(),Be("span",Fu,"✓")):tt("",!0),q(a).modelStatus[v.modelName]==="error"?(te(),Be("span",$u,"✗")):tt("",!0)],10,Vu))),128))])):(te(),Be("div",Uu,"暂无模型")),K("div",ju,[K("span",{class:"model-count",onClick:u[0]||(u[0]=fo(v=>o("open-models"),["stop"]))},Te(e.provider.models.length)+" 个模型",1),K("div",{class:"card-actions",onClick:u[5]||(u[5]=fo(()=>{},["stop"]))},[P(m,{size:"small",loading:l.value,disabled:l.value||!e.provider.models.length,onClick:c},{default:M(()=>[ae(Te(l.value?"测试中...":"一键测试"),1)]),_:1},8,["loading","disabled"]),P(m,{size:"small",onClick:u[1]||(u[1]=v=>o("clone"))},{default:M(()=>[...u[8]||(u[8]=[ae("复制",-1)])]),_:1}),P(m,{size:"small",onClick:u[2]||(u[2]=v=>o("delete"))},{default:M(()=>[...u[9]||(u[9]=[ae("删除",-1)])]),_:1}),P(m,{size:"small",onClick:u[3]||(u[3]=v=>o("open-models"))},{default:M(()=>[...u[10]||(u[10]=[ae("模型",-1)])]),_:1}),P(m,{size:"small",onClick:u[4]||(u[4]=v=>o("edit"))},{default:M(()=>[...u[11]||(u[11]=[ae("编辑",-1)])]),_:1})])])]),_:1})}}}),ku=cn(Bu,[["__scopeId","data-v-e96d8595"]]),Co=[{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:"custom",name:"自定义 / OpenAI 兼容中转",alias:"",keyNote:"不使用模板预填,按中转站文档填写即可;协议拿不准先用「测试」验证。",apiBase:"",autoV1:!0,protocol:"openai"}];function Xu(e){const{toast:t}=un(),n=Pe(!1),o=Pe(null),i=gn({}),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 Ku={key:0,class:"detail-body"},Gu={class:"detail-head"},Hu={class:"detail-name"},Wu={class:"muted-sm"},Yu={class:"detail-pre"},zu={class:"detail-pre"},Ju=Jt({__name:"TestDetailDialog",props:{modelValue:{type:Boolean},detail:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,i=Pe("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(),Me(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(()=>[P(u,{type:"primary",onClick:s[1]||(s[1]=d=>o("update:modelValue",!1))},{default:M(()=>[...s[3]||(s[3]=[ae("关闭",-1)])]),_:1})]),default:M(()=>[e.detail?(te(),Be("div",Ku,[K("div",Gu,[K("span",Hu,Te(e.detail.name),1),P(l,{type:e.detail.status==="ok"?"success":"danger",size:"small"},{default:M(()=>[ae(Te(e.detail.status==="ok"?"成功":"失败"),1)]),_:1},8,["type"]),K("span",Wu,Te(e.detail.msg),1)]),P(f,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=d=>i.value=d)},{default:M(()=>[P(c,{label:"请求参数 (Request)",name:"request"},{default:M(()=>[K("pre",Yu,Te(a(e.detail.request)),1)]),_:1}),P(c,{label:"响应数据 (Response)",name:"response"},{default:M(()=>[K("pre",zu,Te(a(e.detail.response)),1)]),_:1})]),_:1},8,["modelValue"])])):tt("",!0)]),_:1},8,["model-value"])}}}),Qu=cn(Ju,[["__scopeId","data-v-08dfa117"]]),Zu={class:"protocol-help"},_u={class:"help-item"},qu={class:"help-title"},ef={class:"help-item"},tf={class:"help-title"},nf={class:"help-item"},rf={class:"help-title"},of={class:"help-item"},af=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(),Me(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(()=>[P(f,{type:"primary",onClick:a[0]||(a[0]=p=>n("update:modelValue",!1))},{default:M(()=>[...a[15]||(a[15]=[ae("我知道了",-1)])]),_:1})]),default:M(()=>[K("div",Zu,[a[13]||(a[13]=K("p",{class:"help-intro"}," 协议就是上游 API「说话的格式」——同样的模型,接口路径、请求和响应的字段都不一样。选错格式,请求会直接失败。 ",-1)),K("div",_u,[K("div",qu,[a[3]||(a[3]=ae("OpenAI Chat Completions ",-1)),P(r,{size:"small",type:"primary"},{default:M(()=>[...a[2]||(a[2]=[ae("最常用",-1)])]),_:1})]),a[4]||(a[4]=K("p",null,"业界事实标准。DeepSeek、通义、Kimi、智谱、火山方舟等绝大多数国内外厂商,以及各类 OpenAI 兼容中转站,都用这套格式。",-1))]),K("div",ef,[K("div",tf,[a[6]||(a[6]=ae("Anthropic Messages ",-1)),P(r,{size:"small",type:"success"},{default:M(()=>[...a[5]||(a[5]=[ae("推荐优先",-1)])]),_:1})]),a[7]||(a[7]=K("p",null,[ae(" Claude 官方格式,以 /v1/messages 为标志。DeepSeek 官方 API 等少数厂商原生支持。 "),K("strong",null,"如果上游官方支持,优先选它"),ae("——尤其在 Claude Code 这类客户端场景下,能原生保留缓存控制(省 token 费用)、思维链等能力,避免协议来回转换造成损耗。 ")],-1))]),K("div",nf,[K("div",rf,[a[9]||(a[9]=ae("OpenAI Responses ",-1)),P(r,{size:"small",type:"info"},{default:M(()=>[...a[8]||(a[8]=[ae("小众",-1)])]),_:1})]),a[10]||(a[10]=K("p",null,"OpenAI 官方推出的新一代接口(/v1/responses),目前基本只有 OpenAI 自家在用。",-1))]),P(s),K("div",of,[a[11]||(a[11]=K("div",{class:"help-title"},"常用客户端对照表",-1)),a[12]||(a[12]=K("p",{class:"help-table-note"},"客户端接入本网关后用哪个入口,是客户端自己的属性,与上游协议选择无关;网关负责两边互转。",-1)),P(c,{data:o,size:"small",border:"",class:"help-table"},{default:M(()=>[P(l,{prop:"client",label:"客户端",width:"150"}),P(l,{prop:"endpoint",label:"网关入口",width:"190"}),P(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"])}}}),sf=cn(af,[["__scopeId","data-v-2248b61a"]]),lf={class:"full-width mb-8"},cf={class:"flex-gap-8 mb-8"},uf={class:"model-select-wrap"},ff={class:"muted-13"},df={key:0,class:"muted-12"},pf=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=Pe([]),s=Pe([]),l=Ht(()=>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 I=v?`${v}/${y}`:y,S=2;for(;o.form.models.some(C=>C.full_name===I);)I=`${v?`${v}/`:""}${y}-${S}`,S+=1;o.form.models.push({full_name:I,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=Pe(!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"),I=J("el-tooltip"),S=J("el-alert"),C=J("el-option"),A=J("el-select"),B=J("el-button"),w=J("el-table-column"),O=J("el-input"),L=J("el-link"),j=J("el-table"),R=J("el-form-item");return te(),Me(R,{prop:"models"},{label:M(()=>[g[2]||(g[2]=K("span",null,"模型列表",-1)),P(I,{placement:"top",content:"这家供应商下你要用哪些模型。至少添加一个才能保存;客户端请求时填「模型全名」即可路由到这里。"},{default:M(()=>[P(y,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1})]),default:M(()=>[K("div",lf,[P(S,{type:"info",closable:!1,"show-icon":"",title:"此处测试为直连上游(不经过网关),仅验证连通性;保存后可在列表卡片中测试完整代理链路。"})]),K("div",cf,[K("div",uf,[P(A,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=E=>s.value=E),multiple:"","collapse-tags":"",filterable:"","allow-create":"","default-first-option":"",placeholder:"搜索或输入模型名"},{default:M(()=>[(te(!0),Be(Bo,null,ko(l.value,E=>(te(),Me(C,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),P(B,{onClick:c,disabled:!s.value.length},{default:M(()=>[...g[3]||(g[3]=[ae("添加",-1)])]),_:1},8,["disabled"]),P(B,{loading:m.value,disabled:!e.form.api_base||!e.form.api_key,onClick:h},{default:M(()=>[ae(Te(m.value?"":"获取模型列表"),1)]),_:1},8,["loading","disabled"]),P(B,{loading:e.testingAll,disabled:!e.form.models.length||!e.form.api_base||!e.form.api_key,onClick:g[1]||(g[1]=E=>i("test-all"))},{default:M(()=>[ae(Te(e.testingAll?"":"测试全部"),1)]),_:1},8,["loading","disabled"])]),P(j,{border:"",data:e.form.models,class:"full-width","empty-text":"暂无模型"},{default:M(()=>[P(w,{type:"index",label:"#",width:"50",align:"center"}),P(w,{"min-width":"260"},{header:M(()=>[g[4]||(g[4]=K("span",{class:"col-help"},"模型全名(可编辑)",-1)),P(I,{placement:"top",content:"发请求时实际使用的模型名称(客户端填的 model 参数),默认 = 别名/上游模型名,可自由修改;全局唯一,点击可复制。"},{default:M(()=>[P(y,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1})]),default:M(({row:E})=>[P(O,{modelValue:E.full_name,"onUpdate:modelValue":N=>E.full_name=N},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),P(w,{prop:"upstream","min-width":"180"},{header:M(()=>[g[5]||(g[5]=K("span",{class:"col-help"},"上游模型",-1)),P(I,{placement:"top",content:"供应商 API 真实的模型标识(如 deepseek-chat、gpt-4o),请求会被转发给这个模型;同一上游模型可添加多次(如配不同协议),但模型全名不能重复。"},{default:M(()=>[P(y,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1})]),default:M(({row:E})=>[K("span",ff,Te(E.upstream),1)]),_:1}),P(w,{width:"230"},{header:M(()=>[g[6]||(g[6]=K("span",{class:"col-help"},"上游协议",-1)),P(I,{placement:"top",content:"请求该模型时使用的 API 格式,默认继承上方供应商协议;个别模型可单独改(如同一供应商既有 OpenAI 风格又有 Anthropic 风格的模型)。"},{default:M(()=>[P(y,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1})]),default:M(({row:E})=>[P(A,{modelValue:E.protocol,"onUpdate:modelValue":N=>E.protocol=N,class:"full-width",size:"small"},{default:M(()=>[P(C,{label:"Anthropic Messages",value:"anthropic"}),P(C,{label:"OpenAI Chat Completions",value:"openai"}),P(C,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue","onUpdate:modelValue"])]),_:1}),P(w,{label:"测试结果(直连)",width:"200",align:"center"},{default:M(({row:E})=>{var N,V;return[(N=e.modelTest[E.full_name])!=null&&N.loading?(te(),Be("span",df,"测试中...")):(V=e.modelTest[E.full_name])!=null&&V.status?(te(),Me(L,{key:1,type:e.modelTest[E.full_name].status==="ok"?"success":"danger",class:"test-result-link",onClick:F=>i("show-test-detail",E.full_name)},{default:M(()=>[ae(Te(e.modelTest[E.full_name].msg),1)]),_:2},1032,["type","onClick"])):tt("",!0)]}),_:1}),P(w,{width:"140",align:"center",label:"操作"},{default:M(({row:E})=>{var N;return[P(B,{link:"",loading:(N=e.modelTest[E.full_name])==null?void 0:N.loading,disabled:!e.form.api_base||!e.form.api_key,onClick:V=>i("test-model",E)},{default:M(()=>[...g[7]||(g[7]=[ae("测试",-1)])]),_:1},8,["loading","disabled","onClick"]),P(B,{link:"",type:"danger",onClick:V=>f(e.form.models.indexOf(E))},{default:M(()=>[...g[8]||(g[8]=[ae("删除",-1)])]),_:1},8,["onClick"])]}),_:1})]),_:1},8,["data"])]),_:1})}}}),hf=cn(pf,[["__scopeId","data-v-e64a6809"]]),mf={class:"dialog-body"},vf={class:"flex-gap-8 full-width"},gf={class:"full-url-toggle label-inline-toggle"},yf={key:0,class:"muted-sm"},Ef={key:0,class:"mt-4"},Sf={key:0,class:"test-ok-text"},bf={key:1,class:"test-fail-text"},Tf={key:1,class:"muted-sm"},Of={class:"flex-gap-8 flex-center"},If=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=Pe(n.editName),s=Ht(()=>n.editName!=null),l=Pe(""),c=Ht(()=>Co.find(X=>X.id===l.value)),f=X=>{var ue;const D=Co.find(Y=>Y.id===X);D&&(d.name=D.name,d.alias=D.alias,d.website=D.website||"",d.api_base=D.apiBase,d.autoV1=D.autoV1,d.protocol=D.protocol,(ue=D.presetModels)!=null&&ue.length&&!d.models.length&&w(D.presetModels))},u=()=>{var D;const X=(D=c.value)==null?void 0:D.keyUrl;X&&window.open(X,"_blank","noopener")},p=()=>{const X=d.website.trim();X&&R(X)&&window.open(X,"_blank","noopener")},d=gn({name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,models:[]}),{testingAll:m,keyStatus:h,modelTest:v,testKey:g,testModel:y,testAll:I,clearModelTest:S,resetKeyStatus:C}=Xu(d),A=Pe(null),B=X=>{var D;return(D=A.value)==null?void 0:D.loadCachedModels(X)},w=X=>{var D;return(D=A.value)==null?void 0:D.addPresetModels(X)},O=()=>{var X;return(X=A.value)==null?void 0:X.resetState()},L=Pe(),j=Pe(!1),R=X=>{try{const D=new URL(X);return D.protocol==="http:"||D.protocol==="https:"}catch{return!1}},E=(X,D,ue)=>{!D||R(D)?ue():ue(new Error("请输入有效的 URL(以 http:// 或 https:// 开头)"))},N={name:[{required:!0,message:"请输入供应商名称",trigger:"blur"}],alias:[{required:!0,message:"请输入供应商英文名称(别名)",trigger:"blur"}],website:[{validator:E,trigger:"blur"}],api_base:[{required:!0,message:"请输入请求地址 (API Base)",trigger:"blur"},{validator:E,trigger:"blur"}],api_key:[{required:!0,message:"请输入 API Key",trigger:"blur"}]},V={anthropic:"/messages",openai:"/chat/completions","openai-responses":"/responses"},F=Ht(()=>{const X=d.api_base.trim().replace(/\/+$/,"");if(!X)return"";const D=V[d.protocol]||"";return d.autoV1&&!/\/v\d+$/i.test(X)?`${X}/v1${D}`:`${X}${D}`}),U=()=>{var X;Object.assign(d,{name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,models:[]}),(X=L.value)==null||X.clearValidate(),l.value="",O(),C(),S(),ce.value=!1,ge.value=null},z=async()=>{var D,ue;U();const X=n.provider;if(n.editName!=null&&X)await B(X.name),Object.assign(d,{name:X.name||"",alias:X.alias||"",website:X.website||"",api_base:X.apiBase||"",protocol:X.customLlmProvider||"anthropic",api_key:X.apiKey||"",autoV1:X.autoV1!==!1,models:X.models.map(Y=>({full_name:Y.modelName,upstream:Y.model,protocol:Y.customLlmProvider||X.customLlmProvider||"anthropic"}))});else if(n.cloneOf){const Y=n.cloneOf;Y.name&&await B(Y.name);const Oe=(D=Y.alias)==null?void 0:D.trim(),be=Oe?`${Oe}-copy`:"copy",Je=`${((ue=Y.name)==null?void 0:ue.trim())||Oe||"供应商"}副本`;Object.assign(d,{name:Je,alias:be,website:Y.website||"",api_base:Y.apiBase||"",protocol:Y.customLlmProvider||"anthropic",api_key:Y.apiKey||"",autoV1:Y.autoV1!==!1,models:(Y.models||[]).map(Le=>{let we=Le.modelName;return Oe&&we.startsWith(`${Oe}/`)&&(we=`${be}/${we.slice(Oe.length+1)}`),{full_name:we,upstream:Le.model,protocol:Le.customLlmProvider||Y.customLlmProvider||"anthropic"}})})}};la(()=>{r.value=n.editName,z()}),Xo(()=>n.editName,async X=>{r.value=X,await z()});const ce=Pe(!1),Se=Pe(!1),ge=Pe(null),Ee=X=>{const D=v[X];!D||D.loading||(ge.value={name:X,status:D.status||"",msg:D.msg||"",request:D.request,response:D.response},ce.value=!0)},Ae=async()=>{var vt;if(!await((vt=L.value)==null?void 0:vt.validate().catch(()=>!1))||!d.models.length)return;const D=d.models.map(ne=>({full_name:ne.full_name.trim(),upstream:ne.upstream.trim(),protocol:ne.protocol||d.protocol})).filter(ne=>ne.full_name);if(!D.length){i("请至少填写一个有效的模型名称","error");return}const ue=d.name.trim(),Y=d.alias.trim(),Oe=d.website.trim(),be=d.api_base.trim(),Je=d.api_key.trim(),Le=a.suppliers.filter(ne=>ne.name!==r.value);if(Le.some(ne=>ne.name===ue)){i(`供应商名称已存在: ${ue}`,"error");return}if(Y&&Le.some(ne=>(ne.alias??"").trim()===Y)){i(`供应商别名已存在: ${Y}`,"error");return}const we={name:ue,...Y?{alias:Y}:{},...Oe?{website:Oe}:{},customLlmProvider:d.protocol,apiKey:Je,apiBase:be,...d.autoV1?{}:{autoV1:!1},models:D.map(ne=>({modelName:ne.full_name,model:ne.upstream,...ne.protocol&&ne.protocol!==d.protocol?{customLlmProvider:ne.protocol}:{}}))};if(we.models.some(ne=>ne.model.includes("/"))){i("上游模型名不得包含 /","error");return}const Ie=[...Le.flatMap(ne=>ne.models.map(re=>re.modelName)),...D.map(ne=>ne.full_name)],Fe=new Set;for(const ne of Ie){if(Fe.has(ne)){i(`模型名称重复: ${ne}`,"error");return}Fe.add(ne)}j.value=!0;try{const ne=r.value==null,re=await a.saveProviders(ne?[we,...Le]:[...Le,we]);ne&&a.moveProviderToTop(ue),i(re.message||"供应商已保存","success"),o("saved")}catch(ne){i(ne.message,"error")}finally{j.value=!1}};return(X,D)=>{const ue=J("el-alert"),Y=J("el-option"),Oe=J("el-select"),be=J("el-form-item"),Je=J("el-icon"),Le=J("el-tooltip"),we=J("el-input"),Ie=J("el-button"),Fe=J("el-switch"),vt=J("el-form"),ne=J("el-dialog");return te(),Me(ne,{"model-value":!0,title:r.value?"编辑供应商":"添加供应商",width:"1200px",top:"3vh","align-center":"","close-on-click-modal":!1,onClose:D[12]||(D[12]=re=>o("close"))},{footer:M(()=>[K("div",Of,[P(Ie,{onClick:D[11]||(D[11]=re=>o("close")),disabled:j.value},{default:M(()=>[...D[27]||(D[27]=[ae(" 取消 ",-1)])]),_:1},8,["disabled"]),P(Ie,{type:"primary",loading:j.value,onClick:Ae,disabled:!d.models.length||!d.api_base||!d.api_key||j.value},{default:M(()=>[ae(Te(j.value?"保存中...":r.value?"保存":"添加供应商"),1)]),_:1},8,["loading","disabled"])])]),default:M(()=>[K("div",mf,[!s.value&&!n.cloneOf?(te(),Me(ue,{key:0,class:"mb-16",type:"info",closable:!1,"show-icon":"",title:"添加流程:选模板 → 去平台创建 API Key → 粘贴 Key → 测试 → 保存。全新手建议从「供应商模板」开始。"})):tt("",!0),P(vt,{ref_key:"formRef",ref:L,model:d,rules:N,"label-position":"top"},{default:M(()=>[!s.value&&!n.cloneOf?(te(),Me(be,{key:0,label:"供应商模板"},{default:M(()=>[K("div",vf,[P(Oe,{modelValue:l.value,"onUpdate:modelValue":D[0]||(D[0]=re=>l.value=re),class:"full-width",placeholder:"选择模板快速填充,或选「自定义」手动填写",onChange:f},{default:M(()=>[(te(!0),Be(Bo,null,ko(q(Co),re=>(te(),Me(Y,{key:re.id,label:re.name,value:re.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),D[13]||(D[13]=K("div",{class:"muted-sm"},"内置常用厂商的地址和配置,选中后自动填充下方所有字段,仍可自由修改",-1))]),_:1})):tt("",!0),P(be,{prop:"name"},{label:M(()=>[D[14]||(D[14]=K("span",null,"供应商名称",-1)),P(Le,{placement:"top",content:"给你接入的 AI 服务起个名字,只在管理界面显示,随便起(如:DeepSeek、公司中转、朋友的号)。"},{default:M(()=>[P(Je,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1})]),default:M(()=>[P(we,{modelValue:d.name,"onUpdate:modelValue":D[1]||(D[1]=re=>d.name=re),modelModifiers:{trim:!0},placeholder:"如:DeepSeek(仅用于界面展示)"},null,8,["modelValue"])]),_:1}),P(be,{prop:"alias"},{label:M(()=>[D[15]||(D[15]=K("span",null,"供应商英文名称(别名)",-1)),P(Le,{placement:"top",content:"模型名的统一前缀。添加模型后名字会变成 前缀/模型名(如 ds/deepseek-chat),客户端选择模型时一眼能看出属于哪家。仅限英文小写。"},{default:M(()=>[P(Je,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1})]),default:M(()=>[P(we,{modelValue:d.alias,"onUpdate:modelValue":D[2]||(D[2]=re=>d.alias=re),modelModifiers:{trim:!0},placeholder:"如:ds"},null,8,["modelValue"]),D[16]||(D[16]=K("div",{class:"muted-sm"},"添加模型时的默认名称前缀,如 ds/deepseek-chat",-1))]),_:1}),P(be,{prop:"website"},{label:M(()=>[D[18]||(D[18]=K("span",null,"官网链接",-1)),P(Le,{placement:"top",content:"选填。方便以后回来查文档、看模型列表;填了之后这里会出现「打开链接」按钮。"},{default:M(()=>[P(Je,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1}),d.website?(te(),Me(Ie,{key:0,class:"label-action-btn",link:"",type:"primary",onClick:p},{default:M(()=>[...D[17]||(D[17]=[ae("打开链接",-1)])]),_:1})):tt("",!0)]),default:M(()=>[P(we,{modelValue:d.website,"onUpdate:modelValue":D[3]||(D[3]=re=>d.website=re),modelModifiers:{trim:!0},placeholder:"https://platform.deepseek.com(可选)"},null,8,["modelValue"])]),_:1}),P(be,{prop:"api_base"},{label:M(()=>[D[20]||(D[20]=K("span",null,"请求地址 (API Base)",-1)),P(Le,{placement:"top",content:"网关往哪发请求。官方厂商在「API 文档」里找,通常长得像 https://api.xxx.com;中转站会直接给你这个地址。模板会自动填好。"},{default:M(()=>[P(Je,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1}),K("div",gf,[D[19]||(D[19]=K("span",{class:"muted-13"},"自动补全 /v1",-1)),P(Fe,{modelValue:d.autoV1,"onUpdate:modelValue":D[4]||(D[4]=re=>d.autoV1=re)},null,8,["modelValue"])])]),default:M(()=>[P(we,{modelValue:d.api_base,"onUpdate:modelValue":D[5]||(D[5]=re=>d.api_base=re),modelModifiers:{trim:!0},placeholder:"https://api.deepseek.com"},null,8,["modelValue"]),F.value?(te(),Be("div",yf," 实际请求地址:"+Te(F.value)+"(开启自动补全时,地址末尾无 /v1~v9 版本段会插入 /v1;上游无版本前缀请关闭) ",1)):tt("",!0)]),_:1}),P(be,null,{label:M(()=>[D[22]||(D[22]=K("span",null,"上游协议 (Protocol)",-1)),P(Ie,{class:"label-action-btn",link:"",type:"primary",onClick:D[6]||(D[6]=re=>Se.value=!0)},{default:M(()=>[...D[21]||(D[21]=[ae(" 如何选择 ",-1)])]),_:1})]),default:M(()=>[P(Oe,{modelValue:d.protocol,"onUpdate:modelValue":D[7]||(D[7]=re=>d.protocol=re)},{default:M(()=>[P(Y,{label:"Anthropic Messages",value:"anthropic"}),P(Y,{label:"OpenAI Chat Completions",value:"openai"}),P(Y,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue"]),D[23]||(D[23]=K("div",{class:"muted-sm protocol-hint"},"上游接口的 API 风格,选错会请求失败;拿不准时先用下方「测试」逐个验证。",-1))]),_:1}),P(be,{prop:"api_key"},{label:M(()=>{var re,xt;return[D[26]||(D[26]=K("span",null,"API Key",-1)),P(Le,{placement:"top",content:"你在上游平台的「钥匙」,证明请求是你发的、从你账户扣费。在平台控制台创建,形如 sk- 开头的一串字符,粘贴到这里即可。"},{default:M(()=>[P(Je,{class:"col-help-icon"},{default:M(()=>[P(q(Rt))]),_:1})]),_:1}),(re=c.value)!=null&&re.keyUrl?(te(),Me(Ie,{key:0,class:"label-action-btn",link:"",type:"primary",onClick:u},{default:M(()=>[...D[24]||(D[24]=[ae("获取 Key",-1)])]),_:1})):tt("",!0),P(Ie,{class:"label-action-btn",link:"",type:"primary",loading:(xt=q(h))==null?void 0:xt.loading,disabled:!d.api_base||!d.api_key,onClick:q(g)},{default:M(()=>[...D[25]||(D[25]=[ae("测试",-1)])]),_:1},8,["loading","disabled","onClick"])]}),default:M(()=>{var re;return[P(we,{modelValue:d.api_key,"onUpdate:modelValue":D[8]||(D[8]=xt=>d.api_key=xt),modelModifiers:{trim:!0},placeholder:"如:sk-xxxxxxxx(DeepSeek 开放平台密钥)",onKeyup:$s(q(g),["enter"])},null,8,["modelValue","onKeyup"]),q(h)&&!q(h).loading?(te(),Be("div",Ef,[q(h).status==="ok"?(te(),Be("span",Sf,Te(q(h).msg),1)):q(h).status==="fail"?(te(),Be("span",bf,Te(q(h).msg),1)):tt("",!0)])):tt("",!0),(re=c.value)!=null&&re.keyNote?(te(),Be("div",Tf,Te(c.value.keyNote),1)):tt("",!0)]}),_:1}),P(hf,{ref_key:"modelEditorRef",ref:A,form:d,"model-test":q(v),"testing-all":q(m),"editing-name":r.value,onTestModel:q(y),onTestAll:q(I),onShowTestDetail:Ee},null,8,["form","model-test","testing-all","editing-name","onTestModel","onTestAll"])]),_:1},8,["model"])]),P(Qu,{modelValue:ce.value,"onUpdate:modelValue":D[9]||(D[9]=re=>ce.value=re),detail:ge.value},null,8,["modelValue","detail"]),P(sf,{modelValue:Se.value,"onUpdate:modelValue":D[10]||(D[10]=re=>Se.value=re)},null,8,["modelValue"])]),_:1},8,["title"])}}}),Nf=cn(If,[["__scopeId","data-v-097689eb"]]),Cf={class:"models-dialog-body"},Af=["onClick"],xf={class:"muted-13"},Pf={key:3,class:"muted-disabled"},Df={key:0,class:"muted-12"},Rf={key:1,class:"muted-disabled"},Mf={key:0,class:"muted-12"},Lf={key:1,class:"muted-disabled"},wf=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=Ht(()=>n.providerName!=null?a.suppliers.find(f=>f.name===n.providerName):void 0),l=Ht(()=>{const f=s.value;return f?f.alias&&f.alias!==f.name?`${f.name}(${f.alias})`:f.name:""}),c=async f=>{try{await Ao.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"),I=J("el-dialog");return te(),Me(I,{"model-value":e.modelValue,title:l.value,width:"1200px",top:"3vh","destroy-on-close":"","onUpdate:modelValue":u[0]||(u[0]=S=>o("update:modelValue",S))},{default:M(()=>[K("div",Cf,[s.value?(te(),Me(p,{key:0,class:"mb-8",type:"info",closable:!1,"show-icon":"",title:"测试走网关代理:请求经本网关转发至上游(含协议转换、计费记录),验证完整链路;编辑弹窗内测试为直连上游,仅验证连通性。"})):tt("",!0),s.value&&s.value.models.length?(te(),Me(g,{key:1,border:"",data:s.value.models,stripe:"",class:"models-table full-width"},{default:M(()=>[P(d,{prop:"modelName",label:"模型名称","min-width":"220"},{default:M(({row:S})=>[K("span",{class:"link-blue",onClick:C=>o("copy-model",S.modelName),title:"点击复制"},Te(S.modelName),9,Af)]),_:1}),P(d,{prop:"model",label:"上游模型","min-width":"180"},{default:M(({row:S})=>[K("span",xf,Te(S.model),1)]),_:1}),P(d,{prop:"customLlmProvider",label:"上游协议",width:"100",align:"center"},{default:M(({row:S})=>[P(m,{type:"info"},{default:M(()=>[ae(Te(S.customLlmProvider||s.value.customLlmProvider),1)]),_:2},1024)]),_:1}),P(d,{label:"状态",width:"150",align:"center"},{default:M(({row:S})=>[q(r).modelStatus[S.modelName]==="ok"?(te(),Me(m,{key:0,type:"success"},{default:M(()=>[...u[1]||(u[1]=[ae("通过",-1)])]),_:1})):q(r).modelStatus[S.modelName]==="error"?(te(),Me(h,{key:1,content:q(r).modelMessage[S.modelName],placement:"top","show-after":300},{default:M(()=>[P(m,{type:"danger",class:"error-tag"},{default:M(()=>[ae(Te(q(r).modelMessage[S.modelName]),1)]),_:2},1024)]),_:2},1032,["content"])):q(r).modelStatus[S.modelName]==="testing"?(te(),Me(m,{key:2,type:"warning"},{default:M(()=>[...u[2]||(u[2]=[ae("测试中",-1)])]),_:1})):(te(),Be("span",Pf,"-"))]),_:1}),P(d,{label:"耗时",width:"80",align:"center"},{default:M(({row:S})=>[q(r).modelLatency[S.modelName]?(te(),Be("span",Df,Te((q(r).modelLatency[S.modelName]/1e3).toFixed(1))+"s ",1)):(te(),Be("span",Rf,"-"))]),_:1}),P(d,{label:"上次测试","min-width":"160"},{default:M(({row:S})=>[q(r).modelTime[S.modelName]?(te(),Be("span",Mf,Te(q(r).modelTime[S.modelName]),1)):(te(),Be("span",Lf,"未测试"))]),_:1}),P(d,{label:"操作",width:"140",align:"center"},{default:M(({row:S})=>[P(v,{link:"",loading:q(r).modelStatus[S.modelName]==="testing",onClick:C=>q(r).testProxy(S.modelName)},{default:M(()=>[...u[3]||(u[3]=[ae(" 测试 ",-1)])]),_:1},8,["loading","onClick"]),P(v,{link:"",type:"danger",onClick:C=>c(S.modelName)},{default:M(()=>[...u[4]||(u[4]=[ae(" 删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])):s.value?(te(),Me(y,{key:2,description:"暂无模型","image-size":64})):tt("",!0)])]),_:1},8,["model-value","title"])}}}),Vf=cn(wf,[["__scopeId","data-v-a79f8c7b"]]),Ff={class:"muted-sm mb-8"},$f={class:"flex-between"},Uf={class:"flex-gap-8"},jf=Jt({__name:"ConfigFileDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue","saved"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Pe(""),r=Pe(""),s=Pe(!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="ellm.config.json"}catch(u){i(u.message,"error")}}});const l=async()=>{try{await navigator.clipboard.writeText(a.value),i("已复制","success")}catch{i("复制失败","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"),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(),Me(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",$f,[P(d,{onClick:l},{default:M(()=>[...u[3]||(u[3]=[ae("复制",-1)])]),_:1}),K("div",Uf,[P(d,{onClick:u[1]||(u[1]=h=>o("update:modelValue",!1))},{default:M(()=>[...u[4]||(u[4]=[ae("取消",-1)])]),_:1}),P(d,{type:"primary",loading:s.value,onClick:c},{default:M(()=>[...u[5]||(u[5]=[ae("保存并生效",-1)])]),_:1},8,["loading"])])])]),default:M(()=>[K("div",Ff," 配置文件:"+Te(r.value)+"(原样保存,校验通过后热更新生效) ",1),P(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"])}}}),Bf={class:"flex-end mb-16"},kf={key:0,class:"loading-block"},Xf=Jt({__name:"ProvidersView",setup(e){const{toast:t}=un(),n=Ko(),o=Ai(),i=Pe(!1),a=Pe(null),r=Pe(null),s=Pe(!1),l=Pe(null),c=Pe(!1),f=Pe(null),u=Ht({get:()=>n.orderedProviders,set:R=>n.reorderProviders(R)});function p(){}const d=async()=>{await Promise.all([n.loadProviders(),o.loadResults()])},m=()=>{const R={version:2,exported_at:new Date().toISOString(),providers:n.suppliers},E=new Blob([JSON.stringify(R,null,2)],{type:"application/json"}),N=URL.createObjectURL(E),V=document.createElement("a");V.href=N,V.download=`ellm-providers-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(V),V.click(),document.body.removeChild(V),URL.revokeObjectURL(N),t("已导出供应商配置","success")},h=()=>{var R;(R=f.value)==null||R.click()},v=R=>{var E,N;return R.customLlmProvider!==void 0||((N=(E=R.models)==null?void 0:E[0])==null?void 0:N.modelName)!==void 0?R:{name:String(R.name??""),...R.alias?{alias:String(R.alias)}:{},customLlmProvider:String(R.protocol??"openai"),...R.api_key?{apiKey:String(R.api_key)}:{},...R.api_base?{apiBase:String(R.api_base)}:{},models:(R.models??[]).map(V=>({modelName:String(V.full_name??""),model:String(V.upstream_model??V.full_name??""),...V.protocol&&V.protocol!==R.protocol?{customLlmProvider:String(V.protocol)}:{},...V.info!==void 0?{info:V.info}:{}}))}},g=async R=>{var V;const E=R.target,N=(V=E.files)==null?void 0:V[0];if(E.value="",!!N)try{const F=await N.text(),U=JSON.parse(F),z=Array.isArray(U)?U:Array.isArray(U.providers)?U.providers:Array.isArray(U.suppliers)?U.suppliers:null;if(!z){t("文件格式错误:未找到 providers","error");return}const ce=z.map(ge=>v(ge));await Ao.confirm(`确定导入 ${ce.length} 个供应商?将覆盖当前配置。`,"导入确认",{confirmButtonText:"导入",cancelButtonText:"取消",type:"warning"});const Se=await n.saveProviders(ce);await d(),t(Se.message||"导入成功","success")}catch(F){F!=="cancel"&&t(F.message||"导入失败","error")}},y=()=>{a.value=null,r.value=null,i.value=!0},I=R=>{a.value=R,r.value=null,i.value=!0},S=R=>{const E=n.suppliers.find(N=>N.name===R);E&&(a.value=null,r.value=E,i.value=!0)},C=()=>{i.value=!1,r.value=null},A=async()=>{i.value=!1,r.value=null,await d()},B=R=>R?R.length<=8?R:`${R.substring(0,6)}...${R.substring(R.length-4)}`:"-",w=R=>R.name||R.alias||B(R.apiKey||""),O=async R=>{try{const E=n.suppliers.find(N=>N.name===R);if(!E)return;await Ao.confirm(`确定删除该供应商(${w(E)})及其所有模型?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await n.deleteProvider(E),await d(),t("供应商已删除","success")}catch(E){E!=="cancel"&&t(E.message,"error")}},L=R=>{l.value=R,s.value=!0},j=async R=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(R);else{const E=document.createElement("textarea");E.value=R,E.style.position="fixed",E.style.left="-9999px",document.body.appendChild(E),E.select(),document.execCommand("copy"),document.body.removeChild(E)}t(`已复制: ${R}`,"success")}catch{t("复制失败","error")}};return la(d),(R,E)=>{const N=J("el-icon"),V=J("el-button"),F=J("el-empty");return te(),Be("div",null,[K("div",Bf,[P(V,{onClick:m},{default:M(()=>[P(N,null,{default:M(()=>[P(q(Us))]),_:1}),E[4]||(E[4]=ae(" 导出 ",-1))]),_:1}),P(V,{onClick:h},{default:M(()=>[P(N,null,{default:M(()=>[P(q(js))]),_:1}),E[5]||(E[5]=ae(" 导入 ",-1))]),_:1}),P(V,{onClick:E[0]||(E[0]=U=>c.value=!0)},{default:M(()=>[P(N,null,{default:M(()=>[P(q(Bs))]),_:1}),E[6]||(E[6]=ae(" 配置文件 ",-1))]),_:1}),P(V,{type:"primary",onClick:y},{default:M(()=>[P(N,null,{default:M(()=>[P(q(ks))]),_:1}),E[7]||(E[7]=ae(" 添加供应商 ",-1))]),_:1})]),q(n).loading?(te(),Be("div",kf,"加载中...")):q(n).orderedProviders.length===0?(te(),Me(F,{key:1,description:"暂无供应商,点击上方按钮添加"})):(te(),Me(q(Nu),{key:2,modelValue:u.value,"onUpdate:modelValue":E[1]||(E[1]=U=>u.value=U),"item-key":"name",filter:".card-actions","prevent-on-filter":!1,"ghost-class":"ghost","drag-class":"dragging",class:"provider-grid",onChange:p},{item:M(({element:U})=>[P(ku,{provider:U,onClone:z=>S(U.name),onDelete:z=>O(U.name),onEdit:z=>I(U.name),onOpenModels:z=>L(U.name),onCopyModel:j},null,8,["provider","onClone","onDelete","onEdit","onOpenModels"])]),_:1},8,["modelValue"])),i.value?(te(),Me(Nf,{key:3,"edit-name":a.value,provider:a.value!=null?q(n).suppliers.find(U=>U.name===a.value):void 0,"clone-of":r.value,onClose:C,onSaved:A},null,8,["edit-name","provider","clone-of"])):tt("",!0),P(Vf,{modelValue:s.value,"onUpdate:modelValue":E[2]||(E[2]=U=>s.value=U),"provider-name":l.value,onCopyModel:j,onChanged:d},null,8,["modelValue","provider-name"]),P(jf,{modelValue:c.value,"onUpdate:modelValue":E[3]||(E[3]=U=>c.value=U),onSaved:d},null,8,["modelValue"]),K("input",{ref_key:"fileInput",ref:f,type:"file",accept:".json,application/json",style:{display:"none"},onChange:g},null,544)])}}}),zf=cn(Xf,[["__scopeId","data-v-e250879b"]]);export{zf as default};
|