@farris/ui-vue 1.6.0-beta.5 → 1.6.0-beta.6
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/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +1 -1
- package/components/drawer/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +1 -1
- package/components/locale/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1 -1
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +265 -261
- package/components/transfer/index.umd.cjs +3 -3
- package/components/tree-view/index.esm.js +1144 -1133
- package/components/tree-view/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +9 -3
- package/designer/data-grid/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +1 -1
- package/designer/drawer/index.umd.cjs +1 -1
- package/farris.all.esm.js +8231 -6736
- package/farris.all.umd.cjs +15 -15
- package/package.json +1 -1
- package/types/calendar/src/components/header/header.component.d.ts +2 -2
- package/types/chs.d.ts +494 -0
- package/types/cht.d.ts +490 -0
- package/types/en.d.ts +494 -0
- package/types/filter-bar/index.d.ts +3 -3
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.component.d.ts +1 -1
- package/types/filter-bar/src/designer/filter-bar.design.component.d.ts +2 -2
- package/types/filter-bar/src/filter-bar.component.d.ts +1 -1
- package/types/index.d.ts +1479 -1
- package/types/order/src/designer/order.design.component.d.ts +3 -3
- package/types/order/src/order.component.d.ts +3 -3
- package/types/schema-selector/src/schema-selector.component.d.ts +1 -1
|
@@ -741,7 +741,7 @@ const yn = /* @__PURE__ */ vt({
|
|
|
741
741
|
style: _.value,
|
|
742
742
|
onMouseover: () => z.value = !0,
|
|
743
743
|
onMouseleave: () => z.value = !1
|
|
744
|
-
}, [s.value && e(d), s.value && dt(), s.value && ct.value && ft(), s.value && t(), s.value && y()]), s.value && i(), oe.value && De(), Ge(), ge.value && a()]);
|
|
744
|
+
}, [s.value && e(d), s.value && dt(), s.value && ct.value && ft(), s.value && t(), s.value && y()]), s.value && i(), oe.value && De(), s.value && Ge(), ge.value && a()]);
|
|
745
745
|
}
|
|
746
746
|
}), xn = mt(yn);
|
|
747
747
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(u,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("../common/index.umd.js"),require("vue"),require("@vueuse/core"),require("../data-view/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue","@vueuse/core","../data-view/index.umd.js"],x):(u=typeof globalThis<"u"?globalThis:u||self,x(u["data-grid"]={},u.common,u.Vue,u.VueUseCore,u.dataView))})(this,function(u,x,t,Ae,i){"use strict";const Le={enable:{type:Boolean,default:!1},index:{type:Number,default:1},mode:{type:String,default:"client"},showGoto:{type:Boolean,default:!1},showIndex:{type:Boolean,default:!0},showLimits:{type:Boolean,default:!1},showPageInfo:{type:Boolean,default:!0},size:{type:Number,default:20},sizeLimits:{type:Array,default:[10,20,30,50,100]},total:{type:Number,default:0},disabled:{type:Boolean,default:!1}},We={enable:{type:Boolean,default:!1},fields:{type:Array,default:[]},mode:{type:String,default:"client"},multiSort:{type:Boolean,default:!1}},Ue={customGroupRow:{type:Function,default:()=>{}},customGroupRowStyle:{type:Function,default:()=>{}},customSummaryStyle:{type:Function,default:()=>{}},enable:{type:Boolean,default:!1},groupColSpan:{type:Number,default:1},groupFields:{type:Array,default:[]},showGroupedColumn:{type:Boolean,default:!0},showGroupPanel:{type:Boolean,default:!1},showSummary:{type:Boolean,default:!1},summaryPosition:{type:String,default:"separate"}},qe={enable:{type:Boolean,default:!1},filterStyle:{type:String,default:"filter-column"},mode:{type:String,default:"server"},showSummary:{type:Boolean,default:!0}},Ke={wrapHeadings:{type:Boolean,default:!1}},_e={enable:{type:Boolean,default:!1},heading:{type:String,default:"序号"},width:{type:Number,default:36},showEllipsis:{type:Boolean,default:!0}},$e={customRowStyle:{type:Function,default:()=>{}},customRowStatus:{type:Function,default:()=>{}},disable:{type:Function,default:()=>{}},height:{type:Number,default:28},showHovering:{type:Boolean,default:!0},wrapContent:{type:Boolean,default:!1}},Ye={enable:{type:Boolean,default:!1},customSummaryStyle:{type:Function,default:()=>{}},groupFields:{type:Array,default:[]},mode:{type:String,default:"client"},position:{type:String,default:"bottom"}},Je={fitColumns:{type:Boolean,default:!1},fitMode:{type:String,default:"average"},groups:{type:Array,defaut:[]},reorderColumn:{type:Boolean,default:!1},resizeColumn:{type:Boolean,default:!0},resizeColumnOnDoubleClick:{type:Boolean,default:!0}},Qe={checkOnSelect:{type:Boolean,default:!1},clearSelectionOnEmpty:{type:Boolean,default:!0},customSelectionItem:{type:Function,default:()=>{}},enabelSelectRow:{type:Boolean,default:!0},keepSelectingOnClick:{type:Boolean,default:!0},keepSelectingOnPaging:{type:Boolean,default:!0},multiSelect:{type:Boolean,default:!1},focusSelection:{type:String,default:"current"},selectOnCheck:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!1},showSelection:{type:Boolean,default:!1}},Xe={selectOnEditing:{type:Boolean,default:!1},editMode:{type:String,default:"cell"}},Ze={show:{type:Boolean,default:!1},message:{type:String,default:"加载中..."}},Pe={appendOnEnterAtLastCell:{type:Boolean,default:!1},beforeEditCell:{type:Function,default:o=>!0},beforeEndEditCell:{type:Function,default:()=>!0},changePolicy:{type:String,default:"push"},columns:{type:Array,default:[]},columnOption:{type:Object},commandOption:{type:Object,default:{enable:!1,commands:[],halign:"center"}},data:{type:Array,default:[]},disabled:{type:Boolean,default:!1},disabledField:{type:String,default:"disabled"},editable:{type:Boolean,default:!1},editOption:{type:Object,default:{selectOnEditing:!1,editMode:"cell"}},enableCommands:{type:Boolean,default:!1},enableFilter:{type:Boolean,default:!1},filter:{type:Object},fit:{type:Boolean,default:!1},focusOnEditingCell:{type:Boolean,default:!0},group:{type:Object},header:{type:Object},height:{type:Number,default:-1},id:{type:String,default:""},idField:{type:String,default:"id",require:!0},loading:{type:Boolean,default:!1},mergeCell:{type:Boolean,default:!1},minHeight:{type:Number,default:300},minWidth:{type:Number,default:400},newDataItem:{type:Function,default:()=>{}},pagination:{type:Object,default:{enable:!1,size:20}},rowNumber:{type:Object,default:{enable:!0,width:32,showEllipsis:!0,heading:"序号"}},rowOption:{type:Object,default:{wrapContent:!1}},selection:{type:Object,default:{enableSelectRow:!0,multiSelect:!1,multiSelectMode:"DependOnCheck",showCheckbox:!1,showSelectAll:!1,showSelection:!0,keepSelectingOnClick:!0}},selectionValues:{type:Array,default:[]},selectOnEditingCell:{type:Boolean,default:!1},showBorder:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showHorizontalLines:{type:Boolean,default:!0},showScrollBar:{type:String,default:"auto"},showSetting:{type:Boolean,default:!1},showStripe:{type:Boolean,default:!0},showVerticallLines:{type:Boolean,default:!1},sort:{type:Object},summary:{type:Object,default:{enable:!1,groupFields:["numericField1","numericField2"]}},virtualized:{type:Boolean,default:!0},width:{type:Number,default:-1}};function et(o,g,Ee,ne,I,O,h,oe,d,w,le,z,f,A,E,L){const{isNull:V,isUndefined:W}=x.useCommonUtils(),{totalItems:me,rawView:ye}=L,{calculateCellPositionInRow:r,cellKey:S,cellPosition:ae,rowKey:y,rowPosition:U,rowSpanCellPosition:pe,groupCellPosition:ge,summaryCellPosition:j}=h,{cellContentClass:Ce,cellContentPosition:he,cellContentClassWithEllipsis:N}=O,{collpaseGroupIconClass:v}=w,{gridCellClass:q,gridRowClass:M,onClickRow:b,onMouseoverRow:K,onMouseoutRow:_}=z,{onClickCell:G}=d,{toggleGroupRow:C}=f,{columnContext:B,hasLeftFixedColumn:D,hasRightFixedColumn:$}=oe,{navigateOnKeyUp:Se,navigateOnKeyDown:Ve}=le,T=e=>(e||[]).some(a=>t.isVNode(a)?!(a.type===t.Comment||a.type===t.Fragment&&!T(a.children)):!0)?e:null,ie=e=>{var a,s,n;return((s=(a=e.column)==null?void 0:a.editor)==null?void 0:s.type)==="switch"||((n=e.column)==null?void 0:n.dataType)==="boolean"?{display:"flex",flexGrow:"1",overflow:"hidden"}:{flexGrow:"1"}},Y=t.reactive({"fv-grid-content-left-fixed":!0}),J=t.reactive({"fv-grid-content-right-fixed":!0});t.watch([me,ye],e=>{!e[0]&&!e[1].length?(Y["fv-grid-content-left-fixed"]=!1,J["fv-grid-content-right-fixed"]=!1):(Y["fv-grid-content-left-fixed"]=!0,J["fv-grid-content-right-fixed"]=!0)});const{gridDataStyle:Q,gridMergedDataStyle:ve,leftFixedGridDataStyle:be,leftFixedGridMergedDataStyle:m,rightFixedGridDataStyle:Be,rightFixedGridMergedDataStyle:re}=A;function se(e,a){a.collapse=!a.collapse,E.value=C(a.collapse?"collapse":"expand",a,E.value)}function H(e,a){const s=[];if(e.groupField&&a[e.groupField]){for(let p=0;p<=e.layer;p++)s.push(t.createVNode("div",{class:"fv-grid-group-row-icon",onClick:R=>se(R,e)},[t.createVNode("span",{class:v(e)},null)]));const n=e.data[e.groupField];s.push(t.createVNode("div",{ref:n.setRef,key:S(e,e.layer+1),class:"fv-grid-cell",style:ge(n,a,e.layer)},[n.data])),Object.values(e.data).filter(p=>p.field!==e.groupField&&p.colSpan!==0).forEach(p=>{s.push(t.createVNode("div",{ref:p.setRef,key:S(e,p.index),class:"fv-grid-cell",style:ae(p,a)},[p.data]))})}return s}function F(e,a,s){return e.layer>-1&&t.createVNode("div",{ref:e.setRef,key:y(e),class:M(e,s),style:U(e),onClick:n=>b(n,e),onMouseover:n=>K(n,e)},[H(e,a)])}function Oe(e,a){const s=[];if(e.groupField&&a[e.groupField]){const n=e.data[e.groupField];s.push(t.createVNode("div",{ref:n.setRef,key:S(e,e.layer+1),class:"fv-grid-cell",style:j(n,a,e.layer)},[n.data]))}return s}function ue(e,a,s){return e.layer>-1&&t.createVNode("div",{ref:e.setRef,key:y(e),class:M(e,s),style:U(e),onClick:n=>b(n,e),onMouseover:n=>K(n,e)},[Oe(e,a)])}function X(e,a){var s,n;return e.showTips&&typeof((s=e.column)==null?void 0:s.formatter)!="function"&&((n=e.column)==null?void 0:n.dataType)!=="commands"?t.createVNode("div",{class:N(e),title:e.formatter(e,a)},[e.formatter(e,a)]):t.createVNode("div",{class:N(e)},[e.formatter(e,a)])}function de(e){const a=!V(e.data)&&!W(e.data)?e.data.toString():e.data;return e.showTips?t.createVNode("div",{class:N(e),title:a},[a]):t.createVNode("div",{class:N(e)},[a])}function Fe(e,a){return!V(e.data)&&!W(e.data)?e.data.toString():e.data,e.mode===i.CellMode.editing?t.createVNode("div",{style:ie(e)},[e.getEditor(e)]):e.column.columnTemplate?e.column.columnTemplate(e,a):e.formatter?X(e,a):de(e)}function ce(e,a,s){return t.createVNode("div",{ref:e.setRef,key:y(e),class:M(e,s),style:U(e),onClick:n=>b(n,e),onMouseover:n=>K(n,e),onMouseout:n=>_(n,e)},[Object.values(e.data).filter(n=>a[n.field]&&n.rowSpan===1).map(n=>{var R,fe;const p=g.slots.cellTemplate&&T(g.slots.cellTemplate({cell:n,row:e}));return t.createVNode("div",{ref:n.setRef,key:S(e,n.index),class:q(n),style:ae(n,a),onClick:te=>G(te,n,e,n.column),onKeydown:te=>Se(te,n)},[t.createVNode("div",{class:Ce(n),style:he(n)},[p?(fe=(R=g.slots).cellTemplate)==null?void 0:fe.call(R,{cell:n,row:e}):Fe(n,e)])])})])}const Ie=[ce,F,ue];function Z(e,a){const s=r(e);return E.value.map((n,p)=>Ie[n.type](n,s,p))}function ee(e){const a=r(e);return E.value.map(s=>Object.values(s.data).filter(n=>a[n.field]&&n.rowSpan>1).map(n=>t.createVNode("div",{key:S(s,n.index),class:"fv-grid-cell fv-grid-merged-cell",style:pe(s,n,a)},[n.data])))}function we(){return t.createVNode("div",{ref:ne,class:Y},[t.createVNode("div",{class:"fv-grid-data",style:be.value},[Z(B.value.leftColumns.filter(e=>e.visible))]),t.createVNode("div",{class:"fv-grid-merge-date",style:m.value},[ee(B.value.leftColumns.filter(e=>e.visible))])])}function Ne(){return t.createVNode("div",{ref:Ee,class:"fv-grid-content-primary"},[t.createVNode("div",{class:"fv-grid-data",style:Q.value},[Z(B.value.primaryColumns.filter(e=>e.visible))]),t.createVNode("div",{class:"fv-grid-merge-date",style:ve.value},[ee(B.value.primaryColumns.filter(e=>e.visible))])])}function Ge(){return t.createVNode("div",{ref:I,class:J},[t.createVNode("div",{class:"fv-grid-data",style:Be.value},[Z(B.value.rightColumns.filter(e=>e.visible))]),t.createVNode("div",{class:"fv-grid-merge-date",style:re.value},[ee(B.value.rightColumns.filter(e=>e.visible))])])}function De(){const e=[];return D.value&&e.push(we()),e.push(Ne()),$.value&&e.push(Ge()),e}return{renderDataArea:De}}const xe=t.defineComponent({name:"FDataGrid",props:Pe,emits:["changed","clickRow","doubleClickRow","selectionChange","unSelectItem","selectItem","enterUpInLastCell","pageIndexChanged","pageSizeChanged","beginEditCell","endEditCell"],setup(o,g){var He,Re;const ne=((He=o.rowOption)==null?void 0:He.height)||28,I=t.ref(20),O=t.ref(o.columns),h=i.useIdentify(o),oe=t.ref(),d=t.ref(),w=t.ref(),le=t.ref(),z=t.ref(),f=t.ref([]),A=t.ref(!1),E=t.ref(((Re=o.rowOption)==null?void 0:Re.wrapContent)||!1),L=i.useGroupData(o,h),V=i.useFilter(),W=i.useHierarchy(o),{showLoading:me,renderLoading:ye}=i.useLoading(o,oe),r=i.useDataView(o,new Map,V,W,h),S=i.usePagination(o,r),{shouldRenderPagination:ae}=S,y=i.useSelection(o,r,h,f,g),{showSelectAll:U,updateSelectAllStatus:pe}=y,ge=t.computed(()=>o.disabled),j=t.computed(()=>o.virtualized?Math.min(r.dataView.value.length,I.value):r.dataView.value.length);t.computed(()=>o.loadingConfig.message);const{containerStyleObject:Ce}=i.useDataViewContainerStyle(o),he=i.useCommandColumn(o),{applyCommands:N}=he;N(O);const v=i.useColumn(o),q=i.useSort(o),{applyColumnSorter:M,columnContext:b,updateColumnRenderContext:K}=v;M(r,q);const _=i.useGroupColumn(o,b),G=i.useRow(o,g,y,h),C=i.useEdit(o,g,h,G,f),B=i.useVisualDataBound(o),D=i.useVisualDataCell(o,C,B),$=i.useVisualDataRow(o,r,C,W,h,B,D),Se=i.useVisualGroupRow(o,h,D,$),Ve=i.useVisualSummaryRow(o,h,D,$),T=i.useVisualData(o,O,r,j,0,$,Se,Ve),{getVisualData:ie}=T,Y=i.useCellContentStyle(b),J=i.useCellPosition(o,b),Q=i.useSidebar(o,y),{sidebarWidth:ve,showSidebarCheckBox:be}=Q,m=i.useVirtualScroll(o,r,f,b,T,j,0,ve,C),{onWheel:Be,dataGridWidth:re,viewPortHeight:se,viewPortWidth:H,resetScroll:F,updateVisibleRowsOnLatestVisibleScope:Oe}=m,ue=i.useFitColumn(o,b,d,H,_),{calculateColumnsSize:X}=ue,de=i.useFilterHistory(),Fe=i.useColumnFilter(d,z,r,de,m),ce=i.useDragColumn(o,g,v,r,_,L,m),Ie=t.computed(()=>({"fv-grid":!0,"fv-grid-bordered":o.showBorder,"fv-grid-horizontal-bordered":o.showHorizontalLines,"fv-datagrid-strip":o.showStripe})),Z=t.computed(()=>({"fv-grid-content":!0,"fv-grid-content-hover":A.value,"fv-grid-wrap-content":E.value})),ee=t.computed(()=>{const l={};return m.shouldShowHorizontalScrollbar.value&&(l.paddingBottom="10px"),m.shouldShowVirticalScrollbar.value&&(l.paddingRight="10px"),l}),{renderGridHeader:we,renderGridColumnResizeOverlay:Ne,shouldShowHeader:Ge}=i.getColumnHeader(o,g,d,le,z,v,r,ce,Fe,V,de,ue,_,y,Q,q,m,H,f),{renderDataGridPagination:De}=i.getPagination(o,g,r,m,S),{renderDataGridSidebar:e}=i.getSidebar(o,G,y,Q,m),{renderDisableMask:a}=i.getDisableMask(),{renderDataGridSummary:s}=i.getSummary(o,r,v),{renderHorizontalScrollbar:n}=i.getHorizontalScrollbar(o,d,m),{renderVerticalScrollbar:p}=i.getVerticalScrollbar(o,d,m),{renderFilterPanel:R}=i.getFilterPanel(o,v,r,V,m),{renderGroupPanel:fe}=i.getGroupPanel(o,r,ce,L,m);function te(){var c,k;const l=Math.ceil(d.value.clientHeight/ne);l>I.value&&(I.value=l,Oe()),se.value=((c=w.value)==null?void 0:c.clientHeight)||0,re.value=((k=d.value)==null?void 0:k.clientWidth)||0,X()}t.onMounted(()=>{d.value&&(I.value=Math.max(Math.ceil(d.value.clientHeight/ne),I.value),f.value=ie(0,j.value+0-1),Ae.useResizeObserver(d.value,te),X(),t.nextTick(()=>{d.value&&(re.value=d.value.clientWidth),w.value&&(H.value=w.value.clientWidth,se.value=w.value.clientHeight)})),me.value&&ye()}),t.onUnmounted(()=>{}),t.watch(H,()=>{});function nt(){r.insertNewDataItem(),F()}function ot(){r.insertNewDataItem(f.value.length),F()}function lt(l){C.onEditingRow(l)}function at(l){r.removeDataItem(l),F()}function it(l){r.removeDataItemById(l),F()}function rt(l){C.acceptEditingRow(l)}function st(l){C.cancelEditingRow(l)}function ut(l){f.value.forEach((c,k)=>{const ke=r.visibleDataItems.value.findIndex(P=>P===c.raw),ze=f.value[k-1];l.forEach(P=>{c.data[P.field]?D.updateCellByColumn(c.data[P.field],P,ze,c.raw):c.data[P.field]=D.createCellByColumn(P,ke,c.raw,c,ze)})})}function je(l){l&&(O.value=l,ut(O.value),N(O),K(O.value),M(r,q),X())}function Me(l,c){l&&(r.load(l),f.value=ie(0,j.value+0-1),c!=null&&c.keepScrollTop?m.scrollTo(m.offsetY.value):F(),be.value&&U.value&&pe()),C.clear()}function dt(l){S.updatePagination(l)}t.watch(r.shouldGroupingData,(l,c)=>{l!==c&&(r.updateDataView(),F())}),t.watch(()=>o.data,l=>{o.changePolicy==="default"&&Me(l)},{deep:!0}),t.watch(()=>o.columns,l=>{je(l)});function ct(l){y.selectItemById(l)}function ft(l){const c=h.idField.value,k=f.value.find(ke=>ke.raw[c]===l);k&&G.clickRowItem(k)}function mt(l){G.activeRowById(l)}function yt(l){y.selectItemByIds(l)}function pt(){return f.value}function gt(l){return f.value.filter(c=>l.includes(c.raw[o.idField]))}function Ct(){return y.getSelectedItems()}function ht(){return y.getSelectionRow()}function St(){C.endEditCell()}function vt(l){y.unSelectItemByIds(l)}function bt(){y.clearSelection()}function Bt(){return y.currentSelectedDataId.value}function Ot(){m.scrollToBottom()}function Ft(l){m.scrollToRowByIndex(l)}const Te={activeRowById:mt,addNewDataItem:nt,addNewDataItemAtLast:ot,removeDataItem:at,removeDataItemById:it,editDataItem:lt,acceptDataItem:rt,cancelDataItem:st,selectItemById:ct,selectItemByIds:yt,updateColumns:je,updateDataSource:Me,updatePagination:dt,getVisibleData:pt,getVisibleDataByIds:gt,getSelectedItems:Ct,getSelectionRow:ht,getCurrentRowId:Bt,endEditCell:St,clickRowItemById:ft,clearSelection:bt,unSelectItemByIds:vt,scrollToBottom:Ot,scrollToRowByIndex:Ft};g.expose(Te);const It=i.useNavigation(o,g,Te,v,C,f),{renderDataArea:wt}=et(o,g,w,le,z,Y,J,v,C,L,It,G,T,m,f,r),Nt=t.computed(()=>!f.value||!f.value.length),{renderEmpty:Gt}=i.getEmpty(g);return()=>t.createVNode("div",{ref:oe,class:Ie.value,style:Ce.value,onWheel:Be},[d.value&&o.enableFilter&&R(),d.value&&fe(),d.value&&Ge.value&&we(),t.createVNode("div",{ref:d,class:Z.value,style:ee.value,onMouseover:()=>A.value=!0,onMouseleave:()=>A.value=!1},[d.value&&e(f),d.value&&wt(),d.value&&Nt.value&&Gt(),d.value&&n(),d.value&&p()]),d.value&&s(),ae.value&&De(),Ne(),ge.value&&a()])}}),tt=x.withInstall(xe);u.FDataGrid=xe,u.columnOptions=Je,u.dataGridProps=Pe,u.default=tt,u.editOptions=Xe,u.filterOptions=qe,u.groupOptions=Ue,u.headerOptions=Ke,u.loadingOptions=Ze,u.paginationOptions=Le,u.rowNumberOptions=_e,u.rowOptions=$e,u.selectionOptions=Qe,u.sortOptions=We,u.summaryOptions=Ye,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(d,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("../common/index.umd.js"),require("vue"),require("@vueuse/core"),require("../data-view/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue","@vueuse/core","../data-view/index.umd.js"],x):(d=typeof globalThis<"u"?globalThis:d||self,x(d["data-grid"]={},d.common,d.Vue,d.VueUseCore,d.dataView))})(this,function(d,x,t,Ae,i){"use strict";const Le={enable:{type:Boolean,default:!1},index:{type:Number,default:1},mode:{type:String,default:"client"},showGoto:{type:Boolean,default:!1},showIndex:{type:Boolean,default:!0},showLimits:{type:Boolean,default:!1},showPageInfo:{type:Boolean,default:!0},size:{type:Number,default:20},sizeLimits:{type:Array,default:[10,20,30,50,100]},total:{type:Number,default:0},disabled:{type:Boolean,default:!1}},We={enable:{type:Boolean,default:!1},fields:{type:Array,default:[]},mode:{type:String,default:"client"},multiSort:{type:Boolean,default:!1}},Ue={customGroupRow:{type:Function,default:()=>{}},customGroupRowStyle:{type:Function,default:()=>{}},customSummaryStyle:{type:Function,default:()=>{}},enable:{type:Boolean,default:!1},groupColSpan:{type:Number,default:1},groupFields:{type:Array,default:[]},showGroupedColumn:{type:Boolean,default:!0},showGroupPanel:{type:Boolean,default:!1},showSummary:{type:Boolean,default:!1},summaryPosition:{type:String,default:"separate"}},qe={enable:{type:Boolean,default:!1},filterStyle:{type:String,default:"filter-column"},mode:{type:String,default:"server"},showSummary:{type:Boolean,default:!0}},Ke={wrapHeadings:{type:Boolean,default:!1}},_e={enable:{type:Boolean,default:!1},heading:{type:String,default:"序号"},width:{type:Number,default:36},showEllipsis:{type:Boolean,default:!0}},$e={customRowStyle:{type:Function,default:()=>{}},customRowStatus:{type:Function,default:()=>{}},disable:{type:Function,default:()=>{}},height:{type:Number,default:28},showHovering:{type:Boolean,default:!0},wrapContent:{type:Boolean,default:!1}},Ye={enable:{type:Boolean,default:!1},customSummaryStyle:{type:Function,default:()=>{}},groupFields:{type:Array,default:[]},mode:{type:String,default:"client"},position:{type:String,default:"bottom"}},Je={fitColumns:{type:Boolean,default:!1},fitMode:{type:String,default:"average"},groups:{type:Array,defaut:[]},reorderColumn:{type:Boolean,default:!1},resizeColumn:{type:Boolean,default:!0},resizeColumnOnDoubleClick:{type:Boolean,default:!0}},Qe={checkOnSelect:{type:Boolean,default:!1},clearSelectionOnEmpty:{type:Boolean,default:!0},customSelectionItem:{type:Function,default:()=>{}},enabelSelectRow:{type:Boolean,default:!0},keepSelectingOnClick:{type:Boolean,default:!0},keepSelectingOnPaging:{type:Boolean,default:!0},multiSelect:{type:Boolean,default:!1},focusSelection:{type:String,default:"current"},selectOnCheck:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!1},showSelection:{type:Boolean,default:!1}},Xe={selectOnEditing:{type:Boolean,default:!1},editMode:{type:String,default:"cell"}},Ze={show:{type:Boolean,default:!1},message:{type:String,default:"加载中..."}},Pe={appendOnEnterAtLastCell:{type:Boolean,default:!1},beforeEditCell:{type:Function,default:o=>!0},beforeEndEditCell:{type:Function,default:()=>!0},changePolicy:{type:String,default:"push"},columns:{type:Array,default:[]},columnOption:{type:Object},commandOption:{type:Object,default:{enable:!1,commands:[],halign:"center"}},data:{type:Array,default:[]},disabled:{type:Boolean,default:!1},disabledField:{type:String,default:"disabled"},editable:{type:Boolean,default:!1},editOption:{type:Object,default:{selectOnEditing:!1,editMode:"cell"}},enableCommands:{type:Boolean,default:!1},enableFilter:{type:Boolean,default:!1},filter:{type:Object},fit:{type:Boolean,default:!1},focusOnEditingCell:{type:Boolean,default:!0},group:{type:Object},header:{type:Object},height:{type:Number,default:-1},id:{type:String,default:""},idField:{type:String,default:"id",require:!0},loading:{type:Boolean,default:!1},mergeCell:{type:Boolean,default:!1},minHeight:{type:Number,default:300},minWidth:{type:Number,default:400},newDataItem:{type:Function,default:()=>{}},pagination:{type:Object,default:{enable:!1,size:20}},rowNumber:{type:Object,default:{enable:!0,width:32,showEllipsis:!0,heading:"序号"}},rowOption:{type:Object,default:{wrapContent:!1}},selection:{type:Object,default:{enableSelectRow:!0,multiSelect:!1,multiSelectMode:"DependOnCheck",showCheckbox:!1,showSelectAll:!1,showSelection:!0,keepSelectingOnClick:!0}},selectionValues:{type:Array,default:[]},selectOnEditingCell:{type:Boolean,default:!1},showBorder:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showHorizontalLines:{type:Boolean,default:!0},showScrollBar:{type:String,default:"auto"},showSetting:{type:Boolean,default:!1},showStripe:{type:Boolean,default:!0},showVerticallLines:{type:Boolean,default:!1},sort:{type:Object},summary:{type:Object,default:{enable:!1,groupFields:["numericField1","numericField2"]}},virtualized:{type:Boolean,default:!0},width:{type:Number,default:-1}};function et(o,g,Ee,ne,I,O,h,oe,u,w,le,z,f,A,E,L){const{isNull:V,isUndefined:W}=x.useCommonUtils(),{totalItems:me,rawView:ye}=L,{calculateCellPositionInRow:r,cellKey:S,cellPosition:ae,rowKey:y,rowPosition:U,rowSpanCellPosition:pe,groupCellPosition:ge,summaryCellPosition:j}=h,{cellContentClass:Ce,cellContentPosition:he,cellContentClassWithEllipsis:N}=O,{collpaseGroupIconClass:v}=w,{gridCellClass:q,gridRowClass:M,onClickRow:b,onMouseoverRow:K,onMouseoutRow:_}=z,{onClickCell:G}=u,{toggleGroupRow:C}=f,{columnContext:B,hasLeftFixedColumn:D,hasRightFixedColumn:$}=oe,{navigateOnKeyUp:Se,navigateOnKeyDown:Ve}=le,T=e=>(e||[]).some(a=>t.isVNode(a)?!(a.type===t.Comment||a.type===t.Fragment&&!T(a.children)):!0)?e:null,ie=e=>{var a,s,n;return((s=(a=e.column)==null?void 0:a.editor)==null?void 0:s.type)==="switch"||((n=e.column)==null?void 0:n.dataType)==="boolean"?{display:"flex",flexGrow:"1",overflow:"hidden"}:{flexGrow:"1"}},Y=t.reactive({"fv-grid-content-left-fixed":!0}),J=t.reactive({"fv-grid-content-right-fixed":!0});t.watch([me,ye],e=>{!e[0]&&!e[1].length?(Y["fv-grid-content-left-fixed"]=!1,J["fv-grid-content-right-fixed"]=!1):(Y["fv-grid-content-left-fixed"]=!0,J["fv-grid-content-right-fixed"]=!0)});const{gridDataStyle:Q,gridMergedDataStyle:ve,leftFixedGridDataStyle:be,leftFixedGridMergedDataStyle:m,rightFixedGridDataStyle:Be,rightFixedGridMergedDataStyle:re}=A;function se(e,a){a.collapse=!a.collapse,E.value=C(a.collapse?"collapse":"expand",a,E.value)}function H(e,a){const s=[];if(e.groupField&&a[e.groupField]){for(let p=0;p<=e.layer;p++)s.push(t.createVNode("div",{class:"fv-grid-group-row-icon",onClick:R=>se(R,e)},[t.createVNode("span",{class:v(e)},null)]));const n=e.data[e.groupField];s.push(t.createVNode("div",{ref:n.setRef,key:S(e,e.layer+1),class:"fv-grid-cell",style:ge(n,a,e.layer)},[n.data])),Object.values(e.data).filter(p=>p.field!==e.groupField&&p.colSpan!==0).forEach(p=>{s.push(t.createVNode("div",{ref:p.setRef,key:S(e,p.index),class:"fv-grid-cell",style:ae(p,a)},[p.data]))})}return s}function F(e,a,s){return e.layer>-1&&t.createVNode("div",{ref:e.setRef,key:y(e),class:M(e,s),style:U(e),onClick:n=>b(n,e),onMouseover:n=>K(n,e)},[H(e,a)])}function Oe(e,a){const s=[];if(e.groupField&&a[e.groupField]){const n=e.data[e.groupField];s.push(t.createVNode("div",{ref:n.setRef,key:S(e,e.layer+1),class:"fv-grid-cell",style:j(n,a,e.layer)},[n.data]))}return s}function ue(e,a,s){return e.layer>-1&&t.createVNode("div",{ref:e.setRef,key:y(e),class:M(e,s),style:U(e),onClick:n=>b(n,e),onMouseover:n=>K(n,e)},[Oe(e,a)])}function X(e,a){var s,n;return e.showTips&&typeof((s=e.column)==null?void 0:s.formatter)!="function"&&((n=e.column)==null?void 0:n.dataType)!=="commands"?t.createVNode("div",{class:N(e),title:e.formatter(e,a)},[e.formatter(e,a)]):t.createVNode("div",{class:N(e)},[e.formatter(e,a)])}function de(e){const a=!V(e.data)&&!W(e.data)?e.data.toString():e.data;return e.showTips?t.createVNode("div",{class:N(e),title:a},[a]):t.createVNode("div",{class:N(e)},[a])}function Fe(e,a){return!V(e.data)&&!W(e.data)?e.data.toString():e.data,e.mode===i.CellMode.editing?t.createVNode("div",{style:ie(e)},[e.getEditor(e)]):e.column.columnTemplate?e.column.columnTemplate(e,a):e.formatter?X(e,a):de(e)}function ce(e,a,s){return t.createVNode("div",{ref:e.setRef,key:y(e),class:M(e,s),style:U(e),onClick:n=>b(n,e),onMouseover:n=>K(n,e),onMouseout:n=>_(n,e)},[Object.values(e.data).filter(n=>a[n.field]&&n.rowSpan===1).map(n=>{var R,fe;const p=g.slots.cellTemplate&&T(g.slots.cellTemplate({cell:n,row:e}));return t.createVNode("div",{ref:n.setRef,key:S(e,n.index),class:q(n),style:ae(n,a),onClick:te=>G(te,n,e,n.column),onKeydown:te=>Se(te,n)},[t.createVNode("div",{class:Ce(n),style:he(n)},[p?(fe=(R=g.slots).cellTemplate)==null?void 0:fe.call(R,{cell:n,row:e}):Fe(n,e)])])})])}const Ie=[ce,F,ue];function Z(e,a){const s=r(e);return E.value.map((n,p)=>Ie[n.type](n,s,p))}function ee(e){const a=r(e);return E.value.map(s=>Object.values(s.data).filter(n=>a[n.field]&&n.rowSpan>1).map(n=>t.createVNode("div",{key:S(s,n.index),class:"fv-grid-cell fv-grid-merged-cell",style:pe(s,n,a)},[n.data])))}function we(){return t.createVNode("div",{ref:ne,class:Y},[t.createVNode("div",{class:"fv-grid-data",style:be.value},[Z(B.value.leftColumns.filter(e=>e.visible))]),t.createVNode("div",{class:"fv-grid-merge-date",style:m.value},[ee(B.value.leftColumns.filter(e=>e.visible))])])}function Ne(){return t.createVNode("div",{ref:Ee,class:"fv-grid-content-primary"},[t.createVNode("div",{class:"fv-grid-data",style:Q.value},[Z(B.value.primaryColumns.filter(e=>e.visible))]),t.createVNode("div",{class:"fv-grid-merge-date",style:ve.value},[ee(B.value.primaryColumns.filter(e=>e.visible))])])}function Ge(){return t.createVNode("div",{ref:I,class:J},[t.createVNode("div",{class:"fv-grid-data",style:Be.value},[Z(B.value.rightColumns.filter(e=>e.visible))]),t.createVNode("div",{class:"fv-grid-merge-date",style:re.value},[ee(B.value.rightColumns.filter(e=>e.visible))])])}function De(){const e=[];return D.value&&e.push(we()),e.push(Ne()),$.value&&e.push(Ge()),e}return{renderDataArea:De}}const xe=t.defineComponent({name:"FDataGrid",props:Pe,emits:["changed","clickRow","doubleClickRow","selectionChange","unSelectItem","selectItem","enterUpInLastCell","pageIndexChanged","pageSizeChanged","beginEditCell","endEditCell"],setup(o,g){var He,Re;const ne=((He=o.rowOption)==null?void 0:He.height)||28,I=t.ref(20),O=t.ref(o.columns),h=i.useIdentify(o),oe=t.ref(),u=t.ref(),w=t.ref(),le=t.ref(),z=t.ref(),f=t.ref([]),A=t.ref(!1),E=t.ref(((Re=o.rowOption)==null?void 0:Re.wrapContent)||!1),L=i.useGroupData(o,h),V=i.useFilter(),W=i.useHierarchy(o),{showLoading:me,renderLoading:ye}=i.useLoading(o,oe),r=i.useDataView(o,new Map,V,W,h),S=i.usePagination(o,r),{shouldRenderPagination:ae}=S,y=i.useSelection(o,r,h,f,g),{showSelectAll:U,updateSelectAllStatus:pe}=y,ge=t.computed(()=>o.disabled),j=t.computed(()=>o.virtualized?Math.min(r.dataView.value.length,I.value):r.dataView.value.length);t.computed(()=>o.loadingConfig.message);const{containerStyleObject:Ce}=i.useDataViewContainerStyle(o),he=i.useCommandColumn(o),{applyCommands:N}=he;N(O);const v=i.useColumn(o),q=i.useSort(o),{applyColumnSorter:M,columnContext:b,updateColumnRenderContext:K}=v;M(r,q);const _=i.useGroupColumn(o,b),G=i.useRow(o,g,y,h),C=i.useEdit(o,g,h,G,f),B=i.useVisualDataBound(o),D=i.useVisualDataCell(o,C,B),$=i.useVisualDataRow(o,r,C,W,h,B,D),Se=i.useVisualGroupRow(o,h,D,$),Ve=i.useVisualSummaryRow(o,h,D,$),T=i.useVisualData(o,O,r,j,0,$,Se,Ve),{getVisualData:ie}=T,Y=i.useCellContentStyle(b),J=i.useCellPosition(o,b),Q=i.useSidebar(o,y),{sidebarWidth:ve,showSidebarCheckBox:be}=Q,m=i.useVirtualScroll(o,r,f,b,T,j,0,ve,C),{onWheel:Be,dataGridWidth:re,viewPortHeight:se,viewPortWidth:H,resetScroll:F,updateVisibleRowsOnLatestVisibleScope:Oe}=m,ue=i.useFitColumn(o,b,u,H,_),{calculateColumnsSize:X}=ue,de=i.useFilterHistory(),Fe=i.useColumnFilter(u,z,r,de,m),ce=i.useDragColumn(o,g,v,r,_,L,m),Ie=t.computed(()=>({"fv-grid":!0,"fv-grid-bordered":o.showBorder,"fv-grid-horizontal-bordered":o.showHorizontalLines,"fv-datagrid-strip":o.showStripe})),Z=t.computed(()=>({"fv-grid-content":!0,"fv-grid-content-hover":A.value,"fv-grid-wrap-content":E.value})),ee=t.computed(()=>{const l={};return m.shouldShowHorizontalScrollbar.value&&(l.paddingBottom="10px"),m.shouldShowVirticalScrollbar.value&&(l.paddingRight="10px"),l}),{renderGridHeader:we,renderGridColumnResizeOverlay:Ne,shouldShowHeader:Ge}=i.getColumnHeader(o,g,u,le,z,v,r,ce,Fe,V,de,ue,_,y,Q,q,m,H,f),{renderDataGridPagination:De}=i.getPagination(o,g,r,m,S),{renderDataGridSidebar:e}=i.getSidebar(o,G,y,Q,m),{renderDisableMask:a}=i.getDisableMask(),{renderDataGridSummary:s}=i.getSummary(o,r,v),{renderHorizontalScrollbar:n}=i.getHorizontalScrollbar(o,u,m),{renderVerticalScrollbar:p}=i.getVerticalScrollbar(o,u,m),{renderFilterPanel:R}=i.getFilterPanel(o,v,r,V,m),{renderGroupPanel:fe}=i.getGroupPanel(o,r,ce,L,m);function te(){var c,k;const l=Math.ceil(u.value.clientHeight/ne);l>I.value&&(I.value=l,Oe()),se.value=((c=w.value)==null?void 0:c.clientHeight)||0,re.value=((k=u.value)==null?void 0:k.clientWidth)||0,X()}t.onMounted(()=>{u.value&&(I.value=Math.max(Math.ceil(u.value.clientHeight/ne),I.value),f.value=ie(0,j.value+0-1),Ae.useResizeObserver(u.value,te),X(),t.nextTick(()=>{u.value&&(re.value=u.value.clientWidth),w.value&&(H.value=w.value.clientWidth,se.value=w.value.clientHeight)})),me.value&&ye()}),t.onUnmounted(()=>{}),t.watch(H,()=>{});function nt(){r.insertNewDataItem(),F()}function ot(){r.insertNewDataItem(f.value.length),F()}function lt(l){C.onEditingRow(l)}function at(l){r.removeDataItem(l),F()}function it(l){r.removeDataItemById(l),F()}function rt(l){C.acceptEditingRow(l)}function st(l){C.cancelEditingRow(l)}function ut(l){f.value.forEach((c,k)=>{const ke=r.visibleDataItems.value.findIndex(P=>P===c.raw),ze=f.value[k-1];l.forEach(P=>{c.data[P.field]?D.updateCellByColumn(c.data[P.field],P,ze,c.raw):c.data[P.field]=D.createCellByColumn(P,ke,c.raw,c,ze)})})}function je(l){l&&(O.value=l,ut(O.value),N(O),K(O.value),M(r,q),X())}function Me(l,c){l&&(r.load(l),f.value=ie(0,j.value+0-1),c!=null&&c.keepScrollTop?m.scrollTo(m.offsetY.value):F(),be.value&&U.value&&pe()),C.clear()}function dt(l){S.updatePagination(l)}t.watch(r.shouldGroupingData,(l,c)=>{l!==c&&(r.updateDataView(),F())}),t.watch(()=>o.data,l=>{o.changePolicy==="default"&&Me(l)},{deep:!0}),t.watch(()=>o.columns,l=>{je(l)});function ct(l){y.selectItemById(l)}function ft(l){const c=h.idField.value,k=f.value.find(ke=>ke.raw[c]===l);k&&G.clickRowItem(k)}function mt(l){G.activeRowById(l)}function yt(l){y.selectItemByIds(l)}function pt(){return f.value}function gt(l){return f.value.filter(c=>l.includes(c.raw[o.idField]))}function Ct(){return y.getSelectedItems()}function ht(){return y.getSelectionRow()}function St(){C.endEditCell()}function vt(l){y.unSelectItemByIds(l)}function bt(){y.clearSelection()}function Bt(){return y.currentSelectedDataId.value}function Ot(){m.scrollToBottom()}function Ft(l){m.scrollToRowByIndex(l)}const Te={activeRowById:mt,addNewDataItem:nt,addNewDataItemAtLast:ot,removeDataItem:at,removeDataItemById:it,editDataItem:lt,acceptDataItem:rt,cancelDataItem:st,selectItemById:ct,selectItemByIds:yt,updateColumns:je,updateDataSource:Me,updatePagination:dt,getVisibleData:pt,getVisibleDataByIds:gt,getSelectedItems:Ct,getSelectionRow:ht,getCurrentRowId:Bt,endEditCell:St,clickRowItemById:ft,clearSelection:bt,unSelectItemByIds:vt,scrollToBottom:Ot,scrollToRowByIndex:Ft};g.expose(Te);const It=i.useNavigation(o,g,Te,v,C,f),{renderDataArea:wt}=et(o,g,w,le,z,Y,J,v,C,L,It,G,T,m,f,r),Nt=t.computed(()=>!f.value||!f.value.length),{renderEmpty:Gt}=i.getEmpty(g);return()=>t.createVNode("div",{ref:oe,class:Ie.value,style:Ce.value,onWheel:Be},[u.value&&o.enableFilter&&R(),u.value&&fe(),u.value&&Ge.value&&we(),t.createVNode("div",{ref:u,class:Z.value,style:ee.value,onMouseover:()=>A.value=!0,onMouseleave:()=>A.value=!1},[u.value&&e(f),u.value&&wt(),u.value&&Nt.value&&Gt(),u.value&&n(),u.value&&p()]),u.value&&s(),ae.value&&De(),u.value&&Ne(),ge.value&&a()])}}),tt=x.withInstall(xe);d.FDataGrid=xe,d.columnOptions=Je,d.dataGridProps=Pe,d.default=tt,d.editOptions=Xe,d.filterOptions=qe,d.groupOptions=Ue,d.headerOptions=Ke,d.loadingOptions=Ze,d.paginationOptions=Le,d.rowNumberOptions=_e,d.rowOptions=$e,d.selectionOptions=Qe,d.sortOptions=We,d.summaryOptions=Ye,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(C,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("../input-group/index.umd.js"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","../input-group/index.umd.js","vue-i18n"],c):(C=typeof globalThis<"u"?globalThis:C||self,c(C["discussion-editor"]={},C.Vue,C.FInputGroup,C.vueI18n))})(this,function(C,c,z,Fe){"use strict";var ds=Object.defineProperty;var ps=(C,c,z)=>c in C?ds(C,c,{enumerable:!0,configurable:!0,writable:!0,value:z}):C[c]=z;var Le=(C,c,z)=>ps(C,typeof c!="symbol"?c+"":c,z);const De={cancelVisible:{Type:Boolean,default:!0},personnelsPrimaryKey:{Type:String,default:"id"},personnelsDisplayKey:{Type:String,default:"name"},replyPersonnelsDisplayKey:{Type:String,default:"userName"},editHeight:{Type:Number,default:130},type:{Type:String,default:"user"},orgUrl:{Type:String,default:""},personSearchUrl:{Type:String,default:""},sectionData:{Type:Object,default:[]},replyUser:{Type:Object,default:{id:{}}},personnels:{Type:Object,default:[]},attachFiles:{Type:Object,default:[]}};var pe=(e=>(e[e.Cancel=0]="Cancel",e[e.Confirm=1]="Confirm",e))(pe||{});function Tt(e,t){const n=c.ref(e.personSearchUrl),s=c.ref(e.personnelsDisplayKey),r=c.ref(!1),o=[],i=c.ref(!1);function l(g){g&&g.stopPropagation&&g.stopPropagation()}function h(g,E,d){return!g||!E?!1:d.findIndex(y=>g===y[E])!==-1}function u(g,E){return n.value&&`${n.value}${g}${E}`,new Promise((d,y)=>{d(!0)})}function f(g){if(g&&g[s.value]){const E=g[s.value];return E.substring(E.length-2,E.length)}return""}function m(){i.value=!1,r.value=!1}return{personSearchUrl:n,personnelsDisplayKey:s,personModalVisible:i,relativeVisible:r,selectedPersonnels:o,stopBubble:l,_isInArray:h,getSearchData:u,getAvatar:f,setRelativeValue:m}}const Ue="zh-CHS",Ot={locale:Ue,fallbackLocale:Ue,uri:"assets/i18n/ui"};function Ve(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nt}=Object.prototype,{getPrototypeOf:he}=Object,{iterator:te,toStringTag:ke}=Symbol,ne=(e=>t=>{const n=Nt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>ne(t)===e),se=e=>t=>typeof t===e,{isArray:$}=Array,G=se("undefined");function At(e){return e!==null&&!G(e)&&e.constructor!==null&&!G(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Be=B("ArrayBuffer");function xt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Be(e.buffer),t}const Ct=se("string"),F=se("function"),ve=se("number"),re=e=>e!==null&&typeof e=="object",Pt=e=>e===!0||e===!1,oe=e=>{if(ne(e)!=="object")return!1;const t=he(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ke in e)&&!(te in e)},Lt=B("Date"),Ft=B("File"),Dt=B("Blob"),Ut=B("FileList"),Vt=e=>re(e)&&F(e.pipe),kt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((t=ne(e))==="formdata"||t==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},Bt=B("URLSearchParams"),[vt,_t,jt,qt]=["ReadableStream","Request","Response","Headers"].map(B),It=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function X(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),$(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(s=0;s<i;s++)l=o[s],t.call(null,e[l],l,e)}}function _e(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,je=e=>!G(e)&&e!==I;function me(){const{caseless:e}=je(this)&&this||{},t={},n=(s,r)=>{const o=e&&_e(t,r)||r;oe(t[o])&&oe(s)?t[o]=me(t[o],s):oe(s)?t[o]=me({},s):$(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&X(arguments[s],n);return t}const Mt=(e,t,n,{allOwnKeys:s}={})=>(X(t,(r,o)=>{n&&F(r)?e[o]=Ve(r,n):e[o]=r},{allOwnKeys:s}),e),Ht=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zt=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},$t=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&he(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Jt=e=>{if(!e)return null;if($(e))return e;let t=e.length;if(!ve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&he(Uint8Array)),Gt=(e,t)=>{const s=(e&&e[te]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Xt=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Qt=B("HTMLFormElement"),Zt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),qe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yt=B("RegExp"),Ie=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};X(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},en=e=>{Ie(e,(t,n)=>{if(F(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(F(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tn=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return $(e)?s(e):s(String(e).split(t)),n},nn=()=>{},sn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rn(e){return!!(e&&F(e.append)&&e[ke]==="FormData"&&e[te])}const on=e=>{const t=new Array(10),n=(s,r)=>{if(re(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=$(s)?[]:{};return X(s,(i,l)=>{const h=n(i,r+1);!G(h)&&(o[l]=h)}),t[r]=void 0,o}}return s};return n(e,0)},an=B("AsyncFunction"),ln=e=>e&&(re(e)||F(e))&&F(e.then)&&F(e.catch),Me=((e,t)=>e?setImmediate:t?((n,s)=>(I.addEventListener("message",({source:r,data:o})=>{r===I&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),I.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(I.postMessage)),cn=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||Me,a={isArray:$,isArrayBuffer:Be,isBuffer:At,isFormData:kt,isArrayBufferView:xt,isString:Ct,isNumber:ve,isBoolean:Pt,isObject:re,isPlainObject:oe,isReadableStream:vt,isRequest:_t,isResponse:jt,isHeaders:qt,isUndefined:G,isDate:Lt,isFile:Ft,isBlob:Dt,isRegExp:Yt,isFunction:F,isStream:Vt,isURLSearchParams:Bt,isTypedArray:Wt,isFileList:Ut,forEach:X,merge:me,extend:Mt,trim:It,stripBOM:Ht,inherits:zt,toFlatObject:$t,kindOf:ne,kindOfTest:B,endsWith:Kt,toArray:Jt,forEachEntry:Gt,matchAll:Xt,isHTMLForm:Qt,hasOwnProperty:qe,hasOwnProp:qe,reduceDescriptors:Ie,freezeMethods:en,toObjectSet:tn,toCamelCase:Zt,noop:nn,toFiniteNumber:sn,findKey:_e,global:I,isContextDefined:je,isSpecCompliantForm:rn,toJSONObject:on,isAsyncFn:an,isThenable:ln,setImmediate:Me,asap:cn,isIterable:e=>e!=null&&F(e[te])};function w(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}a.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const He=w.prototype,ze={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ze[e]={value:e}}),Object.defineProperties(w,ze),Object.defineProperty(He,"isAxiosError",{value:!0}),w.from=(e,t,n,s,r,o)=>{const i=Object.create(He);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},l=>l!=="isAxiosError"),w.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const un=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function $e(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(r,o){return r=$e(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function fn(e){return a.isArray(e)&&!e.some(be)}const dn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!a.isUndefined(b[y])});const s=n.metaTokens,r=n.visitor||f,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(r))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!h&&a.isBlob(d))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?h&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,y,b){let R=d;if(d&&!b&&typeof d=="object"){if(a.endsWith(y,"{}"))y=s?y:y.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&fn(d)||(a.isFileList(d)||a.endsWith(y,"[]"))&&(R=a.toArray(d)))return y=$e(y),R.forEach(function(A,V){!(a.isUndefined(A)||A===null)&&t.append(i===!0?Ke([y],V,o):i===null?y:y+"[]",u(A))}),!1}return be(d)?!0:(t.append(Ke(b,y,o),u(d)),!1)}const m=[],g=Object.assign(dn,{defaultVisitor:f,convertValue:u,isVisitable:be});function E(d,y){if(!a.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(d),a.forEach(d,function(R,S){(!(a.isUndefined(R)||R===null)&&r.call(t,R,a.isString(S)?S.trim():S,y,g))===!0&&E(R,y?y.concat(S):[S])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ye(e,t){this._pairs=[],e&&ie(e,this,t)}const We=ye.prototype;We.append=function(t,n){this._pairs.push([t,n])},We.toString=function(t){const n=t?function(s){return t.call(this,s,Je)}:Je;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function pn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ge(e,t,n){if(!t)return e;const s=n&&n.encode||pn;a.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=a.isURLSearchParams(t)?t.toString():new ye(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Xe{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ye,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ge=typeof window<"u"&&typeof document<"u",we=typeof navigator=="object"&&navigator||void 0,mn=ge&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),bn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yn=ge&&window.location.href||"http://localhost",P={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:mn,hasStandardBrowserWebWorkerEnv:bn,navigator:we,origin:yn},Symbol.toStringTag,{value:"Module"})),...hn};function gn(e,t){return ie(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return P.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function wn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function En(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function Ze(e){function t(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),h=o>=n.length;return i=!i&&a.isArray(r)?r.length:i,h?(a.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!a.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&a.isArray(r[i])&&(r[i]=En(r[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,r)=>{t(wn(s),r,n,0)}),n}return null}function Rn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Q={transitional:Qe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(Ze(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return gn(t,this.formSerializer).toString();if((l=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ie(l?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Rn(t)):t}],transformResponse:[function(t){const n=this.transitional||Q.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?w.from(l,w.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{Q.headers[e]={}});const Sn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tn=e=>{const t={};let n,s,r;return e&&e.split(`
|
|
1
|
+
(function(C,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("../input-group/index.umd.js"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","../input-group/index.umd.js","vue-i18n"],c):(C=typeof globalThis<"u"?globalThis:C||self,c(C["discussion-editor"]={},C.Vue,C.FInputGroup,C.vueI18n))})(this,function(C,c,z,Fe){"use strict";var ds=Object.defineProperty;var ps=(C,c,z)=>c in C?ds(C,c,{enumerable:!0,configurable:!0,writable:!0,value:z}):C[c]=z;var Le=(C,c,z)=>ps(C,typeof c!="symbol"?c+"":c,z);const De={cancelVisible:{Type:Boolean,default:!0},personnelsPrimaryKey:{Type:String,default:"id"},personnelsDisplayKey:{Type:String,default:"name"},replyPersonnelsDisplayKey:{Type:String,default:"userName"},editHeight:{Type:Number,default:130},type:{Type:String,default:"user"},orgUrl:{Type:String,default:""},personSearchUrl:{Type:String,default:""},sectionData:{Type:Object,default:[]},replyUser:{Type:Object,default:{id:{}}},personnels:{Type:Object,default:[]},attachFiles:{Type:Object,default:[]}};var pe=(e=>(e[e.Cancel=0]="Cancel",e[e.Confirm=1]="Confirm",e))(pe||{});function Tt(e,t){const n=c.ref(e.personSearchUrl),s=c.ref(e.personnelsDisplayKey),r=c.ref(!1),o=[],i=c.ref(!1);function l(g){g&&g.stopPropagation&&g.stopPropagation()}function h(g,E,d){return!g||!E?!1:d.findIndex(y=>g===y[E])!==-1}function u(g,E){return n.value&&`${n.value}${g}${E}`,new Promise((d,y)=>{d(!0)})}function f(g){if(g&&g[s.value]){const E=g[s.value];return E.substring(E.length-2,E.length)}return""}function m(){i.value=!1,r.value=!1}return{personSearchUrl:n,personnelsDisplayKey:s,personModalVisible:i,relativeVisible:r,selectedPersonnels:o,stopBubble:l,_isInArray:h,getSearchData:u,getAvatar:f,setRelativeValue:m}}const Ue="zh-CHS",Ot={locale:Ue,fallbackLocale:Ue,uri:""};function Ve(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nt}=Object.prototype,{getPrototypeOf:he}=Object,{iterator:te,toStringTag:ke}=Symbol,ne=(e=>t=>{const n=Nt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>ne(t)===e),se=e=>t=>typeof t===e,{isArray:$}=Array,G=se("undefined");function At(e){return e!==null&&!G(e)&&e.constructor!==null&&!G(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Be=B("ArrayBuffer");function xt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Be(e.buffer),t}const Ct=se("string"),F=se("function"),ve=se("number"),re=e=>e!==null&&typeof e=="object",Pt=e=>e===!0||e===!1,oe=e=>{if(ne(e)!=="object")return!1;const t=he(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ke in e)&&!(te in e)},Lt=B("Date"),Ft=B("File"),Dt=B("Blob"),Ut=B("FileList"),Vt=e=>re(e)&&F(e.pipe),kt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((t=ne(e))==="formdata"||t==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},Bt=B("URLSearchParams"),[vt,_t,jt,qt]=["ReadableStream","Request","Response","Headers"].map(B),It=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function X(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),$(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(s=0;s<i;s++)l=o[s],t.call(null,e[l],l,e)}}function _e(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,je=e=>!G(e)&&e!==I;function me(){const{caseless:e}=je(this)&&this||{},t={},n=(s,r)=>{const o=e&&_e(t,r)||r;oe(t[o])&&oe(s)?t[o]=me(t[o],s):oe(s)?t[o]=me({},s):$(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&X(arguments[s],n);return t}const Mt=(e,t,n,{allOwnKeys:s}={})=>(X(t,(r,o)=>{n&&F(r)?e[o]=Ve(r,n):e[o]=r},{allOwnKeys:s}),e),Ht=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zt=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},$t=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&he(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Jt=e=>{if(!e)return null;if($(e))return e;let t=e.length;if(!ve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&he(Uint8Array)),Gt=(e,t)=>{const s=(e&&e[te]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Xt=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Qt=B("HTMLFormElement"),Zt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),qe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yt=B("RegExp"),Ie=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};X(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},en=e=>{Ie(e,(t,n)=>{if(F(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(F(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tn=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return $(e)?s(e):s(String(e).split(t)),n},nn=()=>{},sn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rn(e){return!!(e&&F(e.append)&&e[ke]==="FormData"&&e[te])}const on=e=>{const t=new Array(10),n=(s,r)=>{if(re(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=$(s)?[]:{};return X(s,(i,l)=>{const h=n(i,r+1);!G(h)&&(o[l]=h)}),t[r]=void 0,o}}return s};return n(e,0)},an=B("AsyncFunction"),ln=e=>e&&(re(e)||F(e))&&F(e.then)&&F(e.catch),Me=((e,t)=>e?setImmediate:t?((n,s)=>(I.addEventListener("message",({source:r,data:o})=>{r===I&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),I.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(I.postMessage)),cn=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||Me,a={isArray:$,isArrayBuffer:Be,isBuffer:At,isFormData:kt,isArrayBufferView:xt,isString:Ct,isNumber:ve,isBoolean:Pt,isObject:re,isPlainObject:oe,isReadableStream:vt,isRequest:_t,isResponse:jt,isHeaders:qt,isUndefined:G,isDate:Lt,isFile:Ft,isBlob:Dt,isRegExp:Yt,isFunction:F,isStream:Vt,isURLSearchParams:Bt,isTypedArray:Wt,isFileList:Ut,forEach:X,merge:me,extend:Mt,trim:It,stripBOM:Ht,inherits:zt,toFlatObject:$t,kindOf:ne,kindOfTest:B,endsWith:Kt,toArray:Jt,forEachEntry:Gt,matchAll:Xt,isHTMLForm:Qt,hasOwnProperty:qe,hasOwnProp:qe,reduceDescriptors:Ie,freezeMethods:en,toObjectSet:tn,toCamelCase:Zt,noop:nn,toFiniteNumber:sn,findKey:_e,global:I,isContextDefined:je,isSpecCompliantForm:rn,toJSONObject:on,isAsyncFn:an,isThenable:ln,setImmediate:Me,asap:cn,isIterable:e=>e!=null&&F(e[te])};function w(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}a.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const He=w.prototype,ze={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ze[e]={value:e}}),Object.defineProperties(w,ze),Object.defineProperty(He,"isAxiosError",{value:!0}),w.from=(e,t,n,s,r,o)=>{const i=Object.create(He);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},l=>l!=="isAxiosError"),w.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const un=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function $e(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(r,o){return r=$e(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function fn(e){return a.isArray(e)&&!e.some(be)}const dn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!a.isUndefined(b[y])});const s=n.metaTokens,r=n.visitor||f,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(r))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!h&&a.isBlob(d))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?h&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,y,b){let R=d;if(d&&!b&&typeof d=="object"){if(a.endsWith(y,"{}"))y=s?y:y.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&fn(d)||(a.isFileList(d)||a.endsWith(y,"[]"))&&(R=a.toArray(d)))return y=$e(y),R.forEach(function(A,V){!(a.isUndefined(A)||A===null)&&t.append(i===!0?Ke([y],V,o):i===null?y:y+"[]",u(A))}),!1}return be(d)?!0:(t.append(Ke(b,y,o),u(d)),!1)}const m=[],g=Object.assign(dn,{defaultVisitor:f,convertValue:u,isVisitable:be});function E(d,y){if(!a.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(d),a.forEach(d,function(R,S){(!(a.isUndefined(R)||R===null)&&r.call(t,R,a.isString(S)?S.trim():S,y,g))===!0&&E(R,y?y.concat(S):[S])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ye(e,t){this._pairs=[],e&&ie(e,this,t)}const We=ye.prototype;We.append=function(t,n){this._pairs.push([t,n])},We.toString=function(t){const n=t?function(s){return t.call(this,s,Je)}:Je;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function pn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ge(e,t,n){if(!t)return e;const s=n&&n.encode||pn;a.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=a.isURLSearchParams(t)?t.toString():new ye(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Xe{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ye,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ge=typeof window<"u"&&typeof document<"u",we=typeof navigator=="object"&&navigator||void 0,mn=ge&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),bn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yn=ge&&window.location.href||"http://localhost",P={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:mn,hasStandardBrowserWebWorkerEnv:bn,navigator:we,origin:yn},Symbol.toStringTag,{value:"Module"})),...hn};function gn(e,t){return ie(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return P.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function wn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function En(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function Ze(e){function t(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),h=o>=n.length;return i=!i&&a.isArray(r)?r.length:i,h?(a.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!a.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&a.isArray(r[i])&&(r[i]=En(r[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,r)=>{t(wn(s),r,n,0)}),n}return null}function Rn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Q={transitional:Qe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(Ze(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return gn(t,this.formSerializer).toString();if((l=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ie(l?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Rn(t)):t}],transformResponse:[function(t){const n=this.transitional||Q.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?w.from(l,w.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{Q.headers[e]={}});const Sn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tn=e=>{const t={};let n,s,r;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Sn[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Ye=Symbol("internals");function Z(e){return e&&String(e).trim().toLowerCase()}function ae(e){return e===!1||e==null?e:a.isArray(e)?e.map(ae):String(e)}function On(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ee(e,t,n,s,r){if(a.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!a.isString(t)){if(a.isString(s))return t.indexOf(s)!==-1;if(a.isRegExp(s))return s.test(t)}}function An(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function xn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class D{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,h,u){const f=Z(h);if(!f)throw new Error("header name must be a non-empty string");const m=a.findKey(r,f);(!m||r[m]===void 0||u===!0||u===void 0&&r[m]!==!1)&&(r[m||h]=ae(l))}const i=(l,h)=>a.forEach(l,(u,f)=>o(u,f,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Nn(t))i(Tn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let l={},h,u;for(const f of t){if(!a.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[u=f[0]]=(h=l[u])?a.isArray(h)?[...h,f[1]]:[h,f[1]]:f[1]}i(l,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=Z(t),t){const s=a.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return On(r);if(a.isFunction(n))return n.call(this,r,s);if(a.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Z(t),t){const s=a.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ee(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=Z(i),i){const l=a.findKey(s,i);l&&(!n||Ee(s,s[l],l,n))&&(delete s[l],r=!0)}}return a.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||Ee(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return a.forEach(this,(r,o)=>{const i=a.findKey(s,o);if(i){n[i]=ae(r),delete n[o];return}const l=t?An(o):String(o).trim();l!==o&&delete n[o],n[l]=ae(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&a.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Ye]=this[Ye]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=Z(i);s[l]||(xn(r,i),s[l]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),a.freezeMethods(D);function Re(e,t){const n=this||Q,s=t||n,r=D.from(s.headers);let o=s.data;return a.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function et(e){return!!(e&&e.__CANCEL__)}function K(e,t,n){w.call(this,e??"canceled",w.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(K,w,{__CANCEL__:!0});function tt(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Cn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pn(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const u=Date.now(),f=s[o];i||(i=u),n[r]=h,s[r]=u;let m=o,g=0;for(;m!==r;)g+=n[m++],m=m%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i<t)return;const E=f&&u-f;return E?Math.round(g*1e3/E):void 0}}function Ln(e,t){let n=0,s=1e3/t,r,o;const i=(u,f=Date.now())=>{n=f,r=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),m=f-n;m>=s?i(u,f):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-m)))},()=>r&&i(r)]}const le=(e,t,n=3)=>{let s=0;const r=Pn(50,250);return Ln(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,h=i-s,u=r(h),f=i<=l;s=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:h,rate:u||void 0,estimated:u&&l&&f?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},nt=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},st=e=>(...t)=>a.asap(()=>e(...t)),Fn=P.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,P.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,Dn=P.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(s)&&i.push("path="+s),a.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Un(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rt(e,t,n){let s=!Un(t);return e&&(s||n==!1)?Vn(e,t):t}const ot=e=>e instanceof D?{...e}:e;function M(e,t){t=t||{};const n={};function s(u,f,m,g){return a.isPlainObject(u)&&a.isPlainObject(f)?a.merge.call({caseless:g},u,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function r(u,f,m,g){if(a.isUndefined(f)){if(!a.isUndefined(u))return s(void 0,u,m,g)}else return s(u,f,m,g)}function o(u,f){if(!a.isUndefined(f))return s(void 0,f)}function i(u,f){if(a.isUndefined(f)){if(!a.isUndefined(u))return s(void 0,u)}else return s(void 0,f)}function l(u,f,m){if(m in t)return s(u,f);if(m in e)return s(void 0,u)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,f,m)=>r(ot(u),ot(f),m,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(f){const m=h[f]||r,g=m(e[f],t[f],f);a.isUndefined(g)&&m!==l||(n[f]=g)}),n}const it=e=>{const t=M({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=D.from(i),t.url=Ge(rt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let h;if(a.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[u,...f]=h?h.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...f].join("; "))}}if(P.hasStandardBrowserEnv&&(s&&a.isFunction(s)&&(s=s(t)),s||s!==!1&&Fn(t.url))){const u=r&&o&&Dn.read(o);u&&i.set(r,u)}return t},kn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const r=it(e);let o=r.data;const i=D.from(r.headers).normalize();let{responseType:l,onUploadProgress:h,onDownloadProgress:u}=r,f,m,g,E,d;function y(){E&&E(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function R(){if(!b)return;const A=D.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:A,config:e,request:b};tt(function(N){n(N),y()},function(N){s(N),y()},O),b=null}"onloadend"in b?b.onloadend=R:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(R)},b.onabort=function(){b&&(s(new w("Request aborted",w.ECONNABORTED,e,b)),b=null)},b.onerror=function(){s(new w("Network Error",w.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let V=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const O=r.transitional||Qe;r.timeoutErrorMessage&&(V=r.timeoutErrorMessage),s(new w(V,O.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,e,b)),b=null},o===void 0&&i.setContentType(null),"setRequestHeader"in b&&a.forEach(i.toJSON(),function(V,O){b.setRequestHeader(O,V)}),a.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),l&&l!=="json"&&(b.responseType=r.responseType),u&&([g,d]=le(u,!0),b.addEventListener("progress",g)),h&&b.upload&&([m,E]=le(h),b.upload.addEventListener("progress",m),b.upload.addEventListener("loadend",E)),(r.cancelToken||r.signal)&&(f=A=>{b&&(s(!A||A.type?new K(null,e,b):A),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const S=Cn(r.url);if(S&&P.protocols.indexOf(S)===-1){s(new w("Unsupported protocol "+S+":",w.ERR_BAD_REQUEST,e));return}b.send(o||null)})},Bn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(u){if(!r){r=!0,l();const f=u instanceof Error?u:this.reason;s.abort(f instanceof w?f:new K(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new w(`timeout ${t} of ms exceeded`,w.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:h}=s;return h.unsubscribe=()=>a.asap(l),h}},vn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},_n=async function*(e,t){for await(const n of jn(e))yield*vn(n,t)},jn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},at=(e,t,n,s)=>{const r=_n(e,t);let o=0,i,l=h=>{i||(i=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:u,value:f}=await r.next();if(u){l(),h.close();return}let m=f.byteLength;if(n){let g=o+=m;n(g)}h.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(h){return l(h),r.return()}},{highWaterMark:2})},ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lt=ce&&typeof ReadableStream=="function",qn=ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ct=(e,...t)=>{try{return!!e(...t)}catch{return!1}},In=lt&&ct(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ut=64*1024,Se=lt&&ct(()=>a.isReadableStream(new Response("").body)),ue={stream:Se&&(e=>e.body)};ce&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ue[t]&&(ue[t]=a.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new w(`Response type '${t}' is not supported`,w.ERR_NOT_SUPPORT,s)})})})(new Response);const Mn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(P.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await qn(e)).byteLength},Hn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Mn(t)},Te={http:un,xhr:kn,fetch:ce&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:h,responseType:u,headers:f,withCredentials:m="same-origin",fetchOptions:g}=it(e);u=u?(u+"").toLowerCase():"text";let E=Bn([r,o&&o.toAbortSignal()],i),d;const y=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let b;try{if(h&&In&&n!=="get"&&n!=="head"&&(b=await Hn(f,s))!==0){let O=new Request(t,{method:"POST",body:s,duplex:"half"}),v;if(a.isFormData(s)&&(v=O.headers.get("content-type"))&&f.setContentType(v),O.body){const[N,j]=nt(b,le(st(h)));s=at(O.body,ut,N,j)}}a.isString(m)||(m=m?"include":"omit");const R="credentials"in Request.prototype;d=new Request(t,{...g,signal:E,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:s,duplex:"half",credentials:R?m:void 0});let S=await fetch(d,g);const A=Se&&(u==="stream"||u==="response");if(Se&&(l||A&&y)){const O={};["status","statusText","headers"].forEach(Y=>{O[Y]=S[Y]});const v=a.toFiniteNumber(S.headers.get("content-length")),[N,j]=l&&nt(v,le(st(l),!0))||[];S=new Response(at(S.body,ut,N,()=>{j&&j(),y&&y()}),O)}u=u||"text";let V=await ue[a.findKey(ue,u)||"text"](S,e);return!A&&y&&y(),await new Promise((O,v)=>{tt(O,v,{data:V,headers:D.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:d})})}catch(R){throw y&&y(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,e,d),{cause:R.cause||R}):w.from(R,R&&R.code,e,d)}})};a.forEach(Te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ft=e=>`- ${e}`,zn=e=>a.isFunction(e)||e===null||e===!1,dt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o<t;o++){n=e[o];let i;if(s=n,!zn(n)&&(s=Te[(i=String(n)).toLowerCase()],s===void 0))throw new w(`Unknown adapter '${i}'`);if(s)break;r[i||"#"+o]=s}if(!s){const o=Object.entries(r).map(([l,h])=>`adapter ${l} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(ft).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(O,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("../common/index.umd.js"),require("vue"),require("../button/index.umd.js"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue","../button/index.umd.js","vue-i18n"],L):(O=typeof globalThis<"u"?globalThis:O||self,L(O.drawer={},O.common,O.Vue,O.FButton,O.vueI18n))})(this,function(O,L,b,ge,Ee){"use strict";var Dn=Object.defineProperty;var _n=(O,L,b)=>L in O?Dn(O,L,{enumerable:!0,configurable:!0,writable:!0,value:b}):O[L]=b;var be=(O,L,b)=>_n(O,typeof L!="symbol"?L+"":L,b);const Re={backgroundColor:{type:String,default:"#fff"},beforeClose:{type:Function,default:()=>!0},class:{type:String,default:""},modalClass:{type:String,default:""},height:{type:String,default:300},modelValue:{type:Boolean,default:!1},position:{type:String,default:"right"},appendTo:{type:String,default:"body"},showEntry:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},allowClickMaskToClose:{type:Boolean,default:!0},title:{type:String,default:""},width:{type:String,default:300},host:{type:Object,default:"body"}},Se="zh-CHS",ct={locale:Se,fallbackLocale:Se,uri:"assets/i18n/ui"};function Te(e,t){return function(){return e.apply(t,arguments)}}const{toString:lt}=Object.prototype,{getPrototypeOf:oe}=Object,{iterator:J,toStringTag:Oe}=Symbol,W=(e=>t=>{const n=lt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>W(t)===e),K=e=>t=>typeof t===e,{isArray:I}=Array,V=K("undefined");function ut(e){return e!==null&&!V(e)&&e.constructor!==null&&!V(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ae=F("ArrayBuffer");function ft(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ae(e.buffer),t}const dt=K("string"),N=K("function"),Ce=K("number"),X=e=>e!==null&&typeof e=="object",ht=e=>e===!0||e===!1,v=e=>{if(W(e)!=="object")return!1;const t=oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Oe in e)&&!(J in e)},pt=F("Date"),mt=F("File"),yt=F("Blob"),wt=F("FileList"),bt=e=>X(e)&&N(e.pipe),gt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||N(e.append)&&((t=W(e))==="formdata"||t==="object"&&N(e.toString)&&e.toString()==="[object FormData]"))},Et=F("URLSearchParams"),[Rt,St,Tt,Ot]=["ReadableStream","Request","Response","Headers"].map(F),At=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Ne(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xe=e=>!V(e)&&e!==D;function ie(){const{caseless:e}=xe(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ne(t,s)||s;v(t[o])&&v(r)?t[o]=ie(t[o],r):v(r)?t[o]=ie({},r):I(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&H(arguments[r],n);return t}const Ct=(e,t,n,{allOwnKeys:r}={})=>(H(t,(s,o)=>{n&&N(s)?e[o]=Te(s,n):e[o]=s},{allOwnKeys:r}),e),Nt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Pt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ft=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!Ce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oe(Uint8Array)),Ut=(e,t)=>{const r=(e&&e[J]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Bt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Dt=F("HTMLFormElement"),_t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jt=F("RegExp"),Le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},qt=e=>{Le(e,(t,n)=>{if(N(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(N(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},It=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return I(e)?r(e):r(String(e).split(t)),n},Mt=()=>{},Vt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ht(e){return!!(e&&N(e.append)&&e[Oe]==="FormData"&&e[J])}const zt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=I(r)?[]:{};return H(r,(i,c)=>{const f=n(i,s+1);!V(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},$t=F("AsyncFunction"),Jt=e=>e&&(X(e)||N(e))&&N(e.then)&&N(e.catch),Fe=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:o})=>{s===D&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",N(D.postMessage)),Wt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||Fe,a={isArray:I,isArrayBuffer:Ae,isBuffer:ut,isFormData:gt,isArrayBufferView:ft,isString:dt,isNumber:Ce,isBoolean:ht,isObject:X,isPlainObject:v,isReadableStream:Rt,isRequest:St,isResponse:Tt,isHeaders:Ot,isUndefined:V,isDate:pt,isFile:mt,isBlob:yt,isRegExp:jt,isFunction:N,isStream:bt,isURLSearchParams:Et,isTypedArray:kt,isFileList:wt,forEach:H,merge:ie,extend:Ct,trim:At,stripBOM:Nt,inherits:xt,toFlatObject:Pt,kindOf:W,kindOfTest:F,endsWith:Lt,toArray:Ft,forEachEntry:Ut,matchAll:Bt,isHTMLForm:Dt,hasOwnProperty:Pe,hasOwnProp:Pe,reduceDescriptors:Le,freezeMethods:qt,toObjectSet:It,toCamelCase:_t,noop:Mt,toFiniteNumber:Vt,findKey:Ne,global:D,isContextDefined:xe,isSpecCompliantForm:Ht,toJSONObject:zt,isAsyncFn:$t,isThenable:Jt,setImmediate:Fe,asap:Wt,isIterable:e=>e!=null&&N(e[J])};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ke=y.prototype,Ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ue[e]={value:e}}),Object.defineProperties(y,Ue),Object.defineProperty(ke,"isAxiosError",{value:!0}),y.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Kt=null;function ae(e){return a.isPlainObject(e)||a.isArray(e)}function Be(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function De(e,t,n){return e?e.concat(t).map(function(s,o){return s=Be(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Xt(e){return a.isArray(e)&&!e.some(ae)}const vt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,m){return!a.isUndefined(m[w])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!f&&a.isBlob(h))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,w,m){let R=h;if(h&&!m&&typeof h=="object"){if(a.endsWith(w,"{}"))w=r?w:w.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&Xt(h)||(a.isFileList(h)||a.endsWith(w,"[]"))&&(R=a.toArray(h)))return w=Be(w),R.forEach(function(A,U){!(a.isUndefined(A)||A===null)&&t.append(i===!0?De([w],U,o):i===null?w:w+"[]",u(A))}),!1}return ae(h)?!0:(t.append(De(m,w,o),u(h)),!1)}const d=[],p=Object.assign(vt,{defaultVisitor:l,convertValue:u,isVisitable:ae});function g(h,w){if(!a.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(h),a.forEach(h,function(R,T){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(T)?T.trim():T,w,p))===!0&&g(R,w?w.concat(T):[T])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ce(e,t){this._pairs=[],e&&G(e,this,t)}const je=ce.prototype;je.append=function(t,n){this._pairs.push([t,n])},je.toString=function(t){const n=t?function(r){return t.call(this,r,_e)}:_e;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Gt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qe(e,t,n){if(!t)return e;const r=n&&n.encode||Gt;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ie{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ce,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},le=typeof window<"u"&&typeof document<"u",ue=typeof navigator=="object"&&navigator||void 0,Zt=le&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),Yt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",en=le&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:le,hasStandardBrowserEnv:Zt,hasStandardBrowserWebWorkerEnv:Yt,navigator:ue,origin:en},Symbol.toStringTag,{value:"Module"})),...Qt};function tn(e,t){return G(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function nn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Ve(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=rn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(nn(r),s,n,0)}),n}return null}function sn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const z={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),sn(t)):t}],transformResponse:[function(t){const n=this.transitional||z.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{z.headers[e]={}});const on=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),an=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
1
|
+
(function(O,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("../common/index.umd.js"),require("vue"),require("../button/index.umd.js"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue","../button/index.umd.js","vue-i18n"],L):(O=typeof globalThis<"u"?globalThis:O||self,L(O.drawer={},O.common,O.Vue,O.FButton,O.vueI18n))})(this,function(O,L,b,ge,Ee){"use strict";var Dn=Object.defineProperty;var _n=(O,L,b)=>L in O?Dn(O,L,{enumerable:!0,configurable:!0,writable:!0,value:b}):O[L]=b;var be=(O,L,b)=>_n(O,typeof L!="symbol"?L+"":L,b);const Re={backgroundColor:{type:String,default:"#fff"},beforeClose:{type:Function,default:()=>!0},class:{type:String,default:""},modalClass:{type:String,default:""},height:{type:String,default:300},modelValue:{type:Boolean,default:!1},position:{type:String,default:"right"},appendTo:{type:String,default:"body"},showEntry:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},allowClickMaskToClose:{type:Boolean,default:!0},title:{type:String,default:""},width:{type:String,default:300},host:{type:Object,default:"body"}},Se="zh-CHS",ct={locale:Se,fallbackLocale:Se,uri:""};function Te(e,t){return function(){return e.apply(t,arguments)}}const{toString:lt}=Object.prototype,{getPrototypeOf:oe}=Object,{iterator:J,toStringTag:Oe}=Symbol,W=(e=>t=>{const n=lt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>W(t)===e),K=e=>t=>typeof t===e,{isArray:I}=Array,V=K("undefined");function ut(e){return e!==null&&!V(e)&&e.constructor!==null&&!V(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ae=F("ArrayBuffer");function ft(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ae(e.buffer),t}const dt=K("string"),N=K("function"),Ce=K("number"),X=e=>e!==null&&typeof e=="object",ht=e=>e===!0||e===!1,v=e=>{if(W(e)!=="object")return!1;const t=oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Oe in e)&&!(J in e)},pt=F("Date"),mt=F("File"),yt=F("Blob"),wt=F("FileList"),bt=e=>X(e)&&N(e.pipe),gt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||N(e.append)&&((t=W(e))==="formdata"||t==="object"&&N(e.toString)&&e.toString()==="[object FormData]"))},Et=F("URLSearchParams"),[Rt,St,Tt,Ot]=["ReadableStream","Request","Response","Headers"].map(F),At=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Ne(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xe=e=>!V(e)&&e!==D;function ie(){const{caseless:e}=xe(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ne(t,s)||s;v(t[o])&&v(r)?t[o]=ie(t[o],r):v(r)?t[o]=ie({},r):I(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&H(arguments[r],n);return t}const Ct=(e,t,n,{allOwnKeys:r}={})=>(H(t,(s,o)=>{n&&N(s)?e[o]=Te(s,n):e[o]=s},{allOwnKeys:r}),e),Nt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Pt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ft=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!Ce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oe(Uint8Array)),Ut=(e,t)=>{const r=(e&&e[J]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Bt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Dt=F("HTMLFormElement"),_t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jt=F("RegExp"),Le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},qt=e=>{Le(e,(t,n)=>{if(N(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(N(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},It=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return I(e)?r(e):r(String(e).split(t)),n},Mt=()=>{},Vt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ht(e){return!!(e&&N(e.append)&&e[Oe]==="FormData"&&e[J])}const zt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=I(r)?[]:{};return H(r,(i,c)=>{const f=n(i,s+1);!V(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},$t=F("AsyncFunction"),Jt=e=>e&&(X(e)||N(e))&&N(e.then)&&N(e.catch),Fe=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:o})=>{s===D&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",N(D.postMessage)),Wt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||Fe,a={isArray:I,isArrayBuffer:Ae,isBuffer:ut,isFormData:gt,isArrayBufferView:ft,isString:dt,isNumber:Ce,isBoolean:ht,isObject:X,isPlainObject:v,isReadableStream:Rt,isRequest:St,isResponse:Tt,isHeaders:Ot,isUndefined:V,isDate:pt,isFile:mt,isBlob:yt,isRegExp:jt,isFunction:N,isStream:bt,isURLSearchParams:Et,isTypedArray:kt,isFileList:wt,forEach:H,merge:ie,extend:Ct,trim:At,stripBOM:Nt,inherits:xt,toFlatObject:Pt,kindOf:W,kindOfTest:F,endsWith:Lt,toArray:Ft,forEachEntry:Ut,matchAll:Bt,isHTMLForm:Dt,hasOwnProperty:Pe,hasOwnProp:Pe,reduceDescriptors:Le,freezeMethods:qt,toObjectSet:It,toCamelCase:_t,noop:Mt,toFiniteNumber:Vt,findKey:Ne,global:D,isContextDefined:xe,isSpecCompliantForm:Ht,toJSONObject:zt,isAsyncFn:$t,isThenable:Jt,setImmediate:Fe,asap:Wt,isIterable:e=>e!=null&&N(e[J])};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ke=y.prototype,Ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ue[e]={value:e}}),Object.defineProperties(y,Ue),Object.defineProperty(ke,"isAxiosError",{value:!0}),y.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Kt=null;function ae(e){return a.isPlainObject(e)||a.isArray(e)}function Be(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function De(e,t,n){return e?e.concat(t).map(function(s,o){return s=Be(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Xt(e){return a.isArray(e)&&!e.some(ae)}const vt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,m){return!a.isUndefined(m[w])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!f&&a.isBlob(h))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,w,m){let R=h;if(h&&!m&&typeof h=="object"){if(a.endsWith(w,"{}"))w=r?w:w.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&Xt(h)||(a.isFileList(h)||a.endsWith(w,"[]"))&&(R=a.toArray(h)))return w=Be(w),R.forEach(function(A,U){!(a.isUndefined(A)||A===null)&&t.append(i===!0?De([w],U,o):i===null?w:w+"[]",u(A))}),!1}return ae(h)?!0:(t.append(De(m,w,o),u(h)),!1)}const d=[],p=Object.assign(vt,{defaultVisitor:l,convertValue:u,isVisitable:ae});function g(h,w){if(!a.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(h),a.forEach(h,function(R,T){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(T)?T.trim():T,w,p))===!0&&g(R,w?w.concat(T):[T])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ce(e,t){this._pairs=[],e&&G(e,this,t)}const je=ce.prototype;je.append=function(t,n){this._pairs.push([t,n])},je.toString=function(t){const n=t?function(r){return t.call(this,r,_e)}:_e;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Gt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qe(e,t,n){if(!t)return e;const r=n&&n.encode||Gt;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ie{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ce,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},le=typeof window<"u"&&typeof document<"u",ue=typeof navigator=="object"&&navigator||void 0,Zt=le&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),Yt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",en=le&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:le,hasStandardBrowserEnv:Zt,hasStandardBrowserWebWorkerEnv:Yt,navigator:ue,origin:en},Symbol.toStringTag,{value:"Module"})),...Qt};function tn(e,t){return G(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function nn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Ve(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=rn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(nn(r),s,n,0)}),n}return null}function sn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const z={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),sn(t)):t}],transformResponse:[function(t){const n=this.transitional||z.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{z.headers[e]={}});const on=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),an=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&on[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},He=Symbol("internals");function $(e){return e&&String(e).trim().toLowerCase()}function Q(e){return e===!1||e==null?e:a.isArray(e)?e.map(Q):String(e)}function cn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ln=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function un(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class x{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=$(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=Q(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!ln(t))i(an(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=$(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return cn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=$(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||fe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=Q(s),delete n[o];return}const c=t?un(o):String(o).trim();c!==o&&delete n[o],n[c]=Q(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[He]=this[He]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=$(i);r[c]||(fn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),a.freezeMethods(x);function de(e,t){const n=this||z,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ze(e){return!!(e&&e.__CANCEL__)}function M(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(M,y,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,p=0;for(;d!==s;)p+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const g=l&&u-l;return g?Math.round(p*1e3/g):void 0}}function pn(e,t){let n=0,r=1e3/t,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const Z=(e,t,n=3)=>{let r=0;const s=hn(50,250);return pn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Je=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},We=e=>(...t)=>a.asap(()=>e(...t)),mn=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,yn=C.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ke(e,t,n){let r=!wn(t);return e&&(r||n==!1)?bn(e,t):t}const Xe=e=>e instanceof x?{...e}:e;function _(e,t){t=t||{};const n={};function r(u,l,d,p){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:p},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,p){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,p)}else return r(u,l,d,p)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(Xe(u),Xe(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,p=d(e[l],t[l],l);a.isUndefined(p)&&d!==c||(n[l]=p)}),n}const ve=e=>{const t=_({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=qe(Ke(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(C.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&mn(t.url))){const u=s&&o&&yn.read(o);u&&i.set(s,u)}return t},gn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=ve(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,p,g,h;function w(){g&&g(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function R(){if(!m)return;const A=x.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:A,config:e,request:m};$e(function(q){n(q),w()},function(q){r(q),w()},P),m=null}"onloadend"in m?m.onloadend=R:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(R)},m.onabort=function(){m&&(r(new y("Request aborted",y.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let U=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||Me;s.timeoutErrorMessage&&(U=s.timeoutErrorMessage),r(new y(U,P.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,m)),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(U,P){m.setRequestHeader(P,U)}),a.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),c&&c!=="json"&&(m.responseType=s.responseType),u&&([p,h]=Z(u,!0),m.addEventListener("progress",p)),f&&m.upload&&([d,g]=Z(f),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(l=A=>{m&&(r(!A||A.type?new M(null,e,m):A),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const T=dn(s.url);if(T&&C.protocols.indexOf(T)===-1){r(new y("Unsupported protocol "+T+":",y.ERR_BAD_REQUEST,e));return}m.send(o||null)})},En=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof y?l:new M(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},Rn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Sn=async function*(e,t){for await(const n of Tn(e))yield*Rn(n,t)},Tn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ge=(e,t,n,r)=>{const s=Sn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let p=o+=d;n(p)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Y=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qe=Y&&typeof ReadableStream=="function",On=Y&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ze=(e,...t)=>{try{return!!e(...t)}catch{return!1}},An=Qe&&Ze(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ye=64*1024,he=Qe&&Ze(()=>a.isReadableStream(new Response("").body)),ee={stream:he&&(e=>e.body)};Y&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ee[t]&&(ee[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Cn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await On(e)).byteLength},Nn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Cn(t)},pe={http:Kt,xhr:gn,fetch:Y&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=ve(e);u=u?(u+"").toLowerCase():"text";let g=En([s,o&&o.toAbortSignal()],i),h;const w=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let m;try{if(f&&An&&n!=="get"&&n!=="head"&&(m=await Nn(l,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),B;if(a.isFormData(r)&&(B=P.headers.get("content-type"))&&l.setContentType(B),P.body){const[q,se]=Je(m,Z(We(f)));r=Ge(P.body,Ye,q,se)}}a.isString(d)||(d=d?"include":"omit");const R="credentials"in Request.prototype;h=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:R?d:void 0});let T=await fetch(h,p);const A=he&&(u==="stream"||u==="response");if(he&&(c||A&&w)){const P={};["status","statusText","headers"].forEach(at=>{P[at]=T[at]});const B=a.toFiniteNumber(T.headers.get("content-length")),[q,se]=c&&Je(B,Z(We(c),!0))||[];T=new Response(Ge(T.body,Ye,q,()=>{se&&se(),w&&w()}),P)}u=u||"text";let U=await ee[a.findKey(ee,u)||"text"](T,e);return!A&&w&&w(),await new Promise((P,B)=>{$e(P,B,{data:U,headers:x.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:h})})}catch(R){throw w&&w(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,h),{cause:R.cause||R}):y.from(R,R&&R.code,e,h)}})};a.forEach(pe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const et=e=>`- ${e}`,xn=e=>a.isFunction(e)||e===null||e===!1,tt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!xn(n)&&(r=pe[(i=String(n)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(et).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(A,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue-i18n"],C):(A=typeof globalThis<"u"?globalThis:A||self,C(A.locale={},A.vueI18n))})(this,function(A,C){"use strict";var Pn=Object.defineProperty;var Fn=(A,C,_)=>C in A?Pn(A,C,{enumerable:!0,configurable:!0,writable:!0,value:_}):A[C]=_;var we=(A,C,_)=>Fn(A,typeof C!="symbol"?C+"":C,_);const _=Symbol("LOCALE_SERVICE"),Ee="zh-CHS",st={locale:Ee,fallbackLocale:Ee,uri:"assets/i18n/ui"};function Re(e,t){return function(){return e.apply(t,arguments)}}const{toString:ot}=Object.prototype,{getPrototypeOf:oe}=Object,{iterator:W,toStringTag:ge}=Symbol,K=(e=>t=>{const n=ot.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>K(t)===e),v=e=>t=>typeof t===e,{isArray:I}=Array,H=v("undefined");function it(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Se=P("ArrayBuffer");function at(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Se(e.buffer),t}const ct=v("string"),x=v("function"),Oe=v("number"),X=e=>e!==null&&typeof e=="object",lt=e=>e===!0||e===!1,G=e=>{if(K(e)!=="object")return!1;const t=oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ge in e)&&!(W in e)},ut=P("Date"),ft=P("File"),dt=P("Blob"),pt=P("FileList"),ht=e=>X(e)&&x(e.pipe),mt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=K(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},yt=P("URLSearchParams"),[bt,wt,Et,Rt]=["ReadableStream","Request","Response","Headers"].map(P),gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function z(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Te(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ae=e=>!H(e)&&e!==D;function ie(){const{caseless:e}=Ae(this)&&this||{},t={},n=(r,s)=>{const o=e&&Te(t,s)||s;G(t[o])&&G(r)?t[o]=ie(t[o],r):G(r)?t[o]=ie({},r):I(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&z(arguments[r],n);return t}const St=(e,t,n,{allOwnKeys:r}={})=>(z(t,(s,o)=>{n&&x(s)?e[o]=Re(s,n):e[o]=s},{allOwnKeys:r}),e),Ot=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},At=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ct=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xt=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!Oe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Nt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oe(Uint8Array)),Lt=(e,t)=>{const r=(e&&e[W]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Pt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ft=P("HTMLFormElement"),Ut=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Bt=P("RegExp"),xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};z(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},_t=e=>{xe(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return I(e)?r(e):r(String(e).split(t)),n},kt=()=>{},jt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qt(e){return!!(e&&x(e.append)&&e[ge]==="FormData"&&e[W])}const It=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=I(r)?[]:{};return z(r,(i,c)=>{const f=n(i,s+1);!H(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Mt=P("AsyncFunction"),Ht=e=>e&&(X(e)||x(e))&&x(e.then)&&x(e.catch),Ne=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:o})=>{s===D&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(D.postMessage)),zt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||Ne,a={isArray:I,isArrayBuffer:Se,isBuffer:it,isFormData:mt,isArrayBufferView:at,isString:ct,isNumber:Oe,isBoolean:lt,isObject:X,isPlainObject:G,isReadableStream:bt,isRequest:wt,isResponse:Et,isHeaders:Rt,isUndefined:H,isDate:ut,isFile:ft,isBlob:dt,isRegExp:Bt,isFunction:x,isStream:ht,isURLSearchParams:yt,isTypedArray:Nt,isFileList:pt,forEach:z,merge:ie,extend:St,trim:gt,stripBOM:Ot,inherits:Tt,toFlatObject:At,kindOf:K,kindOfTest:P,endsWith:Ct,toArray:xt,forEachEntry:Lt,matchAll:Pt,isHTMLForm:Ft,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:xe,freezeMethods:_t,toObjectSet:Dt,toCamelCase:Ut,noop:kt,toFiniteNumber:jt,findKey:Te,global:D,isContextDefined:Ae,isSpecCompliantForm:qt,toJSONObject:It,isAsyncFn:Mt,isThenable:Ht,setImmediate:Ne,asap:zt,isIterable:e=>e!=null&&x(e[W])};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Le=m.prototype,Pe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pe[e]={value:e}}),Object.defineProperties(m,Pe),Object.defineProperty(Le,"isAxiosError",{value:!0}),m.from=(e,t,n,r,s,o)=>{const i=Object.create(Le);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Jt=null;function ae(e){return a.isPlainObject(e)||a.isArray(e)}function Fe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map(function(s,o){return s=Fe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function $t(e){return a.isArray(e)&&!e.some(ae)}const Vt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Q(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,y,h){let E=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&$t(d)||(a.isFileList(d)||a.endsWith(y,"[]"))&&(E=a.toArray(d)))return y=Fe(y),E.forEach(function(O,U){!(a.isUndefined(O)||O===null)&&t.append(i===!0?Ue([y],U,o):i===null?y:y+"[]",l(O))}),!1}return ae(d)?!0:(t.append(Ue(h,y,o),l(d)),!1)}const p=[],b=Object.assign(Vt,{defaultVisitor:u,convertValue:l,isVisitable:ae});function g(d,y){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(d),a.forEach(d,function(E,S){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(S)?S.trim():S,y,b))===!0&&g(E,y?y.concat(S):[S])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ce(e,t){this._pairs=[],e&&Q(e,this,t)}const _e=ce.prototype;_e.append=function(t,n){this._pairs.push([t,n])},_e.toString=function(t){const n=t?function(r){return t.call(this,r,Be)}:Be;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Wt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function De(e,t,n){if(!t)return e;const r=n&&n.encode||Wt;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ke{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ce,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},le=typeof window<"u"&&typeof document<"u",ue=typeof navigator=="object"&&navigator||void 0,vt=le&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),Xt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gt=le&&window.location.href||"http://localhost",T={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:le,hasStandardBrowserEnv:vt,hasStandardBrowserWebWorkerEnv:Xt,navigator:ue,origin:Gt},Symbol.toStringTag,{value:"Module"})),...Kt};function Qt(e,t){return Q(e,new T.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return T.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Zt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Yt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function qe(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Yt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Zt(r),s,n,0)}),n}return null}function en(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const J={transitional:je,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(qe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Qt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Q(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),en(t)):t}],transformResponse:[function(t){const n=this.transitional||J.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{J.headers[e]={}});const tn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
1
|
+
(function(A,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue-i18n"],C):(A=typeof globalThis<"u"?globalThis:A||self,C(A.locale={},A.vueI18n))})(this,function(A,C){"use strict";var Pn=Object.defineProperty;var Fn=(A,C,_)=>C in A?Pn(A,C,{enumerable:!0,configurable:!0,writable:!0,value:_}):A[C]=_;var we=(A,C,_)=>Fn(A,typeof C!="symbol"?C+"":C,_);const _=Symbol("LOCALE_SERVICE"),Ee="zh-CHS",st={locale:Ee,fallbackLocale:Ee,uri:""};function Re(e,t){return function(){return e.apply(t,arguments)}}const{toString:ot}=Object.prototype,{getPrototypeOf:oe}=Object,{iterator:W,toStringTag:ge}=Symbol,K=(e=>t=>{const n=ot.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>K(t)===e),v=e=>t=>typeof t===e,{isArray:I}=Array,H=v("undefined");function it(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Se=P("ArrayBuffer");function at(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Se(e.buffer),t}const ct=v("string"),x=v("function"),Oe=v("number"),X=e=>e!==null&&typeof e=="object",lt=e=>e===!0||e===!1,G=e=>{if(K(e)!=="object")return!1;const t=oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ge in e)&&!(W in e)},ut=P("Date"),ft=P("File"),dt=P("Blob"),pt=P("FileList"),ht=e=>X(e)&&x(e.pipe),mt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=K(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},yt=P("URLSearchParams"),[bt,wt,Et,Rt]=["ReadableStream","Request","Response","Headers"].map(P),gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function z(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Te(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ae=e=>!H(e)&&e!==D;function ie(){const{caseless:e}=Ae(this)&&this||{},t={},n=(r,s)=>{const o=e&&Te(t,s)||s;G(t[o])&&G(r)?t[o]=ie(t[o],r):G(r)?t[o]=ie({},r):I(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&z(arguments[r],n);return t}const St=(e,t,n,{allOwnKeys:r}={})=>(z(t,(s,o)=>{n&&x(s)?e[o]=Re(s,n):e[o]=s},{allOwnKeys:r}),e),Ot=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},At=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ct=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xt=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!Oe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Nt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oe(Uint8Array)),Lt=(e,t)=>{const r=(e&&e[W]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Pt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ft=P("HTMLFormElement"),Ut=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Bt=P("RegExp"),xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};z(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},_t=e=>{xe(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return I(e)?r(e):r(String(e).split(t)),n},kt=()=>{},jt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qt(e){return!!(e&&x(e.append)&&e[ge]==="FormData"&&e[W])}const It=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=I(r)?[]:{};return z(r,(i,c)=>{const f=n(i,s+1);!H(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Mt=P("AsyncFunction"),Ht=e=>e&&(X(e)||x(e))&&x(e.then)&&x(e.catch),Ne=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:o})=>{s===D&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(D.postMessage)),zt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof process<"u"&&process.nextTick||Ne,a={isArray:I,isArrayBuffer:Se,isBuffer:it,isFormData:mt,isArrayBufferView:at,isString:ct,isNumber:Oe,isBoolean:lt,isObject:X,isPlainObject:G,isReadableStream:bt,isRequest:wt,isResponse:Et,isHeaders:Rt,isUndefined:H,isDate:ut,isFile:ft,isBlob:dt,isRegExp:Bt,isFunction:x,isStream:ht,isURLSearchParams:yt,isTypedArray:Nt,isFileList:pt,forEach:z,merge:ie,extend:St,trim:gt,stripBOM:Ot,inherits:Tt,toFlatObject:At,kindOf:K,kindOfTest:P,endsWith:Ct,toArray:xt,forEachEntry:Lt,matchAll:Pt,isHTMLForm:Ft,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:xe,freezeMethods:_t,toObjectSet:Dt,toCamelCase:Ut,noop:kt,toFiniteNumber:jt,findKey:Te,global:D,isContextDefined:Ae,isSpecCompliantForm:qt,toJSONObject:It,isAsyncFn:Mt,isThenable:Ht,setImmediate:Ne,asap:zt,isIterable:e=>e!=null&&x(e[W])};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Le=m.prototype,Pe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pe[e]={value:e}}),Object.defineProperties(m,Pe),Object.defineProperty(Le,"isAxiosError",{value:!0}),m.from=(e,t,n,r,s,o)=>{const i=Object.create(Le);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Jt=null;function ae(e){return a.isPlainObject(e)||a.isArray(e)}function Fe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map(function(s,o){return s=Fe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function $t(e){return a.isArray(e)&&!e.some(ae)}const Vt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Q(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,y,h){let E=d;if(d&&!h&&typeof d=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&$t(d)||(a.isFileList(d)||a.endsWith(y,"[]"))&&(E=a.toArray(d)))return y=Fe(y),E.forEach(function(O,U){!(a.isUndefined(O)||O===null)&&t.append(i===!0?Ue([y],U,o):i===null?y:y+"[]",l(O))}),!1}return ae(d)?!0:(t.append(Ue(h,y,o),l(d)),!1)}const p=[],b=Object.assign(Vt,{defaultVisitor:u,convertValue:l,isVisitable:ae});function g(d,y){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(d),a.forEach(d,function(E,S){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(S)?S.trim():S,y,b))===!0&&g(E,y?y.concat(S):[S])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ce(e,t){this._pairs=[],e&&Q(e,this,t)}const _e=ce.prototype;_e.append=function(t,n){this._pairs.push([t,n])},_e.toString=function(t){const n=t?function(r){return t.call(this,r,Be)}:Be;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Wt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function De(e,t,n){if(!t)return e;const r=n&&n.encode||Wt;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ke{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ce,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},le=typeof window<"u"&&typeof document<"u",ue=typeof navigator=="object"&&navigator||void 0,vt=le&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),Xt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gt=le&&window.location.href||"http://localhost",T={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:le,hasStandardBrowserEnv:vt,hasStandardBrowserWebWorkerEnv:Xt,navigator:ue,origin:Gt},Symbol.toStringTag,{value:"Module"})),...Kt};function Qt(e,t){return Q(e,new T.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return T.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Zt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Yt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function qe(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Yt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Zt(r),s,n,0)}),n}return null}function en(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const J={transitional:je,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(qe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Qt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Q(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),en(t)):t}],transformResponse:[function(t){const n=this.transitional||J.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{J.headers[e]={}});const tn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&tn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ie=Symbol("internals");function $(e){return e&&String(e).trim().toLowerCase()}function Z(e){return e===!1||e==null?e:a.isArray(e)?e.map(Z):String(e)}function rn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const sn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function on(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function an(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class N{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,l){const u=$(f);if(!u)throw new Error("header name must be a non-empty string");const p=a.findKey(s,u);(!p||s[p]===void 0||l===!0||l===void 0&&s[p]!==!1)&&(s[p||f]=Z(c))}const i=(c,f)=>a.forEach(c,(l,u)=>o(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!sn(t))i(nn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=$(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return rn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=$(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||fe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=Z(s),delete n[o];return}const c=t?on(o):String(o).trim();c!==o&&delete n[o],n[c]=Z(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ie]=this[Ie]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=$(i);r[c]||(an(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(N.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),a.freezeMethods(N);function de(e,t){const n=this||J,r=t||n,s=N.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Me(e){return!!(e&&e.__CANCEL__)}function M(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(M,m,{__CANCEL__:!0});function He(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function cn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ln(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[o];i||(i=l),n[s]=f,r[s]=l;let p=o,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const g=u&&l-u;return g?Math.round(b*1e3/g):void 0}}function un(e,t){let n=0,r=1e3/t,s,o;const i=(l,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),p=u-n;p>=r?i(l,u):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-p)))},()=>s&&i(s)]}const Y=(e,t,n=3)=>{let r=0;const s=ln(50,250);return un(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),u=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},ze=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Je=e=>(...t)=>a.asap(()=>e(...t)),fn=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,dn=T.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $e(e,t,n){let r=!pn(t);return e&&(r||n==!1)?hn(e,t):t}const Ve=e=>e instanceof N?{...e}:e;function k(e,t){t=t||{};const n={};function r(l,u,p,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(l,u,p,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,p,b)}else return r(l,u,p,b)}function o(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,p){if(p in t)return r(l,u);if(p in e)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,p)=>s(Ve(l),Ve(u),p,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=f[u]||s,b=p(e[u],t[u],u);a.isUndefined(b)&&p!==c||(n[u]=b)}),n}const We=e=>{const t=k({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=N.from(i),t.url=De($e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(T.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&fn(t.url))){const l=s&&o&&dn.read(o);l&&i.set(s,l)}return t},mn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=We(e);let o=s.data;const i=N.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=s,u,p,b,g,d;function y(){g&&g(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function E(){if(!h)return;const O=N.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:O,config:e,request:h};He(function(q){n(q),y()},function(q){r(q),y()},L),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let U=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||je;s.timeoutErrorMessage&&(U=s.timeoutErrorMessage),r(new m(U,L.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(U,L){h.setRequestHeader(L,U)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),l&&([b,d]=Y(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,g]=Y(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(u=O=>{h&&(r(!O||O.type?new M(null,e,h):O),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const S=cn(s.url);if(S&&T.protocols.indexOf(S)===-1){r(new m("Unsupported protocol "+S+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},yn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof m?u:new M(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},bn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},wn=async function*(e,t){for await(const n of En(e))yield*bn(n,t)},En=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const s=wn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await s.next();if(l){c(),f.close();return}let p=u.byteLength;if(n){let b=o+=p;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},ee=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ve=ee&&typeof ReadableStream=="function",Rn=ee&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gn=ve&&Xe(()=>{let e=!1;const t=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ge=64*1024,pe=ve&&Xe(()=>a.isReadableStream(new Response("").body)),te={stream:pe&&(e=>e.body)};ee&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!te[t]&&(te[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(T.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Rn(e)).byteLength},On=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},he={http:Jt,xhr:mn,fetch:ee&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:p="same-origin",fetchOptions:b}=We(e);l=l?(l+"").toLowerCase():"text";let g=yn([s,o&&o.toAbortSignal()],i),d;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(f&&gn&&n!=="get"&&n!=="head"&&(h=await On(u,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),B;if(a.isFormData(r)&&(B=L.headers.get("content-type"))&&u.setContentType(B),L.body){const[q,se]=ze(h,Y(Je(f)));r=Ke(L.body,Ge,q,se)}}a.isString(p)||(p=p?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,{...b,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:E?p:void 0});let S=await fetch(d,b);const O=pe&&(l==="stream"||l==="response");if(pe&&(c||O&&y)){const L={};["status","statusText","headers"].forEach(rt=>{L[rt]=S[rt]});const B=a.toFiniteNumber(S.headers.get("content-length")),[q,se]=c&&ze(B,Y(Je(c),!0))||[];S=new Response(Ke(S.body,Ge,q,()=>{se&&se(),y&&y()}),L)}l=l||"text";let U=await te[a.findKey(te,l)||"text"](S,e);return!O&&y&&y(),await new Promise((L,B)=>{He(L,B,{data:U,headers:N.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:d})})}catch(E){throw y&&y(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,d),{cause:E.cause||E}):m.from(E,E&&E.code,e,d)}})};a.forEach(he,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,Ze={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Tn(n)&&(r=he[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(Qe).join(`
|
|
@@ -11697,7 +11697,7 @@ const or = /* @__PURE__ */ ot({
|
|
|
11697
11697
|
style: xe.value,
|
|
11698
11698
|
onMouseover: () => m.value = !0,
|
|
11699
11699
|
onMouseleave: () => m.value = !1
|
|
11700
|
-
}, [l.value && q(d), l.value && lt(), l.value && qt.value && Qe(), l.value && ye(), l.value && Ge()]), l.value && Pe(), _.value && ct(), Re(), I.value && _e()]);
|
|
11700
|
+
}, [l.value && q(d), l.value && lt(), l.value && qt.value && Qe(), l.value && ye(), l.value && Ge()]), l.value && Pe(), _.value && ct(), l.value && Re(), I.value && _e()]);
|
|
11701
11701
|
}
|
|
11702
11702
|
});
|
|
11703
11703
|
hn(or);
|