@indfnd/common-mobile 0.0.118 → 0.0.119
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.119](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.118...v0.0.119) (2025-12-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 修复小程序会话问题 ([c3f97ed](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c3f97ed0203a1b1ac494c0ec5337f1e721b83824))
|
|
11
|
+
|
|
5
12
|
### [0.0.118](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.117...v0.0.118) (2025-12-12)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "0.0.
|
|
6
|
+
const version$2 = "0.0.118";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -30633,7 +30633,6 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
30633
30633
|
if (tokenInQuery) {
|
|
30634
30634
|
console.log("tokenInQuery", tokenInQuery);
|
|
30635
30635
|
setToken(tokenInQuery);
|
|
30636
|
-
setCookie("lambo-sso-key", tokenInQuery, 1);
|
|
30637
30636
|
token = tokenInQuery;
|
|
30638
30637
|
}
|
|
30639
30638
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Y,ji){typeof exports=="object"&&typeof module!="undefined"?ji(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],ji):(Y=typeof globalThis!="undefined"?globalThis:Y||self,ji(Y.IndMobileCommon={},Y.lodash,Y["@indfnd/utils"],Y.vue,Y["view-design"]))})(this,function(Y,ji,N,Wf,$e){"use strict";function _o(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=_o(ji),Tt=_o(Wf),Yf={name:"@indfnd/common-mobile",version:"0.0.117",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.26",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},Xf=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backHome}},[e._v("\u8FD4\u56DE\u9996\u9875")]),i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backPrev}},[e._v("\u8FD4\u56DE\u4E0A\u4E00\u9875("+e._s(e.second)+"s)")])],1)},qf=[];function at(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var u;if(s?(u=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),r&&r.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(s)},l._ssrRegister=u):r&&(u=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(f,p){return u.call(p),h(f,p)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:e,options:l}}const Gf={name:"IndBackBtnGroup",data(){return{second:5,timer:null}},mounted(){this.timer=setInterval(()=>{this.second===0?this.backPrev():this.second--},1e3)},beforeDestroy(){clearInterval(this.timer)},methods:{backHome(){this.$router.replace({name:this.$config.homeRouteName})},backPrev(){this.$router.go(-1)}}},Eo={};var Jf=at(Gf,Xf,qf,!1,Zf,null,null,null);function Zf(e){for(let t in Eo)this[t]=Eo[t]}var Qf=function(){return Jf.exports}(),tp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-error-page"},[i("div",{staticClass:"content-con"},[i("img",{attrs:{src:e.src,alt:e.code}}),i("div",{staticClass:"text-con"},[i("h4",[e._v(e._s(e.code))]),i("h5",[e._v(e._s(e.desc))])])])])},ep=[];const ip={name:"IndErrorContent",components:{BackBtnGroup:Qf},props:{code:String,desc:String,src:String}},Do={};var np=at(ip,tp,ep,!1,rp,null,null,null);function rp(e){for(let t in Do)this[t]=Do[t]}var Jr=function(){return np.exports}(),ap=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},sp=[];const op={name:"IndNotFound",components:{ErrorContent:Jr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Oo={};var lp=at(op,ap,sp,!1,cp,null,null,null);function cp(e){for(let t in Oo)this[t]=Oo[t]}var zi=function(){return lp.exports}(),Mo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Lo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Mo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",h="week",c="month",d="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var y=["th","st","nd","rd"],x=P%100;return"["+P+(y[(x-20)%10]||y[x]||y[0])+"]"}},I=function(P,y,x){var _=String(P);return!_||_.length>=y?P:""+Array(y+1-_.length).join(x)+P},$={s:I,z:function(P){var y=-P.utcOffset(),x=Math.abs(y),_=Math.floor(x/60),E=x%60;return(y<=0?"+":"-")+I(_,2,"0")+":"+I(E,2,"0")},m:function P(y,x){if(y.date()<x.date())return-P(x,y);var _=12*(x.year()-y.year())+(x.month()-y.month()),E=y.clone().add(_,c),j=x-E<0,H=y.clone().add(_+(j?-1:1),c);return+(-(_+(x-E)/(j?E-H:H-E))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:f,w:h,d:u,D:p,h:l,m:o,s,ms:a,Q:d}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},D="en",A={};A[D]=T;var W="$isDayjsObject",R=function(P){return P instanceof et||!(!P||!P[W])},V=function P(y,x,_){var E;if(!y)return D;if(typeof y=="string"){var j=y.toLowerCase();A[j]&&(E=j),x&&(A[j]=x,E=j);var H=y.split("-");if(!E&&H.length>1)return P(H[0])}else{var S=y.name;A[S]=y,E=S}return!_&&E&&(D=E),E||!_&&D},B=function(P,y){if(R(P))return P.clone();var x=typeof y=="object"?y:{};return x.date=P,x.args=arguments,new et(x)},M=$;M.l=V,M.i=R,M.w=function(P,y){return B(P,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var et=function(){function P(x){this.$L=V(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[W]=!0}var y=P.prototype;return y.parse=function(x){this.$d=function(_){var E=_.date,j=_.utc;if(E===null)return new Date(NaN);if(M.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var H=E.match(v);if(H){var S=H[2]-1||0,g=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,g)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,g)}}return new Date(E)}(x),this.init()},y.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},y.$utils=function(){return M},y.isValid=function(){return this.$d.toString()!==m},y.isSame=function(x,_){var E=B(x);return this.startOf(_)<=E&&E<=this.endOf(_)},y.isAfter=function(x,_){return B(x)<this.startOf(_)},y.isBefore=function(x,_){return this.endOf(_)<B(x)},y.$g=function(x,_,E){return M.u(x)?this[_]:this.set(E,x)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(x,_){var E=this,j=!!M.u(_)||_,H=M.p(x),S=function(kt,xt){var Me=M.w(E.$u?Date.UTC(E.$y,xt,kt):new Date(E.$y,xt,kt),E);return j?Me:Me.endOf(u)},g=function(kt,xt){return M.w(E.toDate()[kt].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(xt)),E)},C=this.$W,F=this.$M,U=this.$D,X="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case c:return j?S(1,F):S(0,F+1);case h:var Q=this.$locale().weekStart||0,ct=(C<Q?C+7:C)-Q;return S(j?U-ct:U+(6-ct),F);case u:case p:return g(X+"Hours",0);case l:return g(X+"Minutes",1);case o:return g(X+"Seconds",2);case s:return g(X+"Milliseconds",3);default:return this.clone()}},y.endOf=function(x){return this.startOf(x,!1)},y.$set=function(x,_){var E,j=M.p(x),H="set"+(this.$u?"UTC":""),S=(E={},E[u]=H+"Date",E[p]=H+"Date",E[c]=H+"Month",E[f]=H+"FullYear",E[l]=H+"Hours",E[o]=H+"Minutes",E[s]=H+"Seconds",E[a]=H+"Milliseconds",E)[j],g=j===u?this.$D+(_-this.$W):_;if(j===c||j===f){var C=this.clone().set(p,1);C.$d[S](g),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](g);return this.init(),this},y.set=function(x,_){return this.clone().$set(x,_)},y.get=function(x){return this[M.p(x)]()},y.add=function(x,_){var E,j=this;x=Number(x);var H=M.p(_),S=function(F){var U=B(j);return M.w(U.date(U.date()+Math.round(F*x)),j)};if(H===c)return this.set(c,this.$M+x);if(H===f)return this.set(f,this.$y+x);if(H===u)return S(1);if(H===h)return S(7);var g=(E={},E[o]=n,E[l]=r,E[s]=i,E)[H]||1,C=this.$d.getTime()+x*g;return M.w(C,this)},y.subtract=function(x,_){return this.add(-1*x,_)},y.format=function(x){var _=this,E=this.$locale();if(!this.isValid())return E.invalidDate||m;var j=x||"YYYY-MM-DDTHH:mm:ssZ",H=M.z(this),S=this.$H,g=this.$m,C=this.$M,F=E.weekdays,U=E.months,X=E.meridiem,Q=function(xt,Me,wn,Gr){return xt&&(xt[Me]||xt(_,j))||wn[Me].slice(0,Gr)},ct=function(xt){return M.s(S%12||12,xt,"0")},kt=X||function(xt,Me,wn){var Gr=xt<12?"AM":"PM";return wn?Gr.toLowerCase():Gr};return j.replace(w,function(xt,Me){return Me||function(wn){switch(wn){case"YY":return String(_.$y).slice(-2);case"YYYY":return M.s(_.$y,4,"0");case"M":return C+1;case"MM":return M.s(C+1,2,"0");case"MMM":return Q(E.monthsShort,C,U,3);case"MMMM":return Q(U,C);case"D":return _.$D;case"DD":return M.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Q(E.weekdaysMin,_.$W,F,2);case"ddd":return Q(E.weekdaysShort,_.$W,F,3);case"dddd":return F[_.$W];case"H":return String(S);case"HH":return M.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,g,!0);case"A":return kt(S,g,!1);case"m":return String(g);case"mm":return M.s(g,2,"0");case"s":return String(_.$s);case"ss":return M.s(_.$s,2,"0");case"SSS":return M.s(_.$ms,3,"0");case"Z":return H}return null}(xt)||H.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(x,_,E){var j,H=this,S=M.p(_),g=B(x),C=(g.utcOffset()-this.utcOffset())*n,F=this-g,U=function(){return M.m(H,g)};switch(S){case f:j=U()/12;break;case c:j=U();break;case d:j=U()/3;break;case h:j=(F-C)/6048e5;break;case u:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return E?j:M.a(j)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return A[this.$L]},y.locale=function(x,_){if(!x)return this.$L;var E=this.clone(),j=V(x,_,!0);return j&&(E.$L=j),E},y.clone=function(){return M.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},P}(),ot=et.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",u],["$M",c],["$y",f],["$D",p]].forEach(function(P){ot[P[1]]=function(y){return this.$g(y,P[0],P[1])}}),B.extend=function(P,y){return P.$i||(P(y,et,B),P.$i=!0),B},B.locale=V,B.isDayjs=R,B.unix=function(P){return B(1e3*P)},B.en=A[D],B.Ls=A,B.p={},B})})(Lo);var yi=Lo.exports,dp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.formatValue,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},on:{"on-clear":e.clear},nativeOn:{click:function(n){e.visible=!0}}}),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom","get-container":"body"},model:{value:e.visible,callback:function(n){e.visible=n},expression:"visible"}},[e.type!="year-quarter"&&e.type!="year-half"?i("van-datetime-picker",e._b({attrs:{type:e.type,value:e.dateValue},on:{confirm:e.confirm,cancel:e.cancel}},"van-datetime-picker",Object.assign({},e.$attrs),!1)):i("van-picker",{attrs:{"show-toolbar":"",title:e.$attrs.placeholder,columns:e.dataList},on:{confirm:e.confirm,cancel:e.cancel}})],1)],1)},fp=[];const Ao=new Date().getFullYear(),No=new Date().getMonth()+1,pp=`Q${N.getQuarterNum(No)}`,mp=`H${N.getHalfYearNum(No)}`,Po=10,Bo=10,vp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?yi(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ao+pp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Ao+mp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?yi(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?N.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=yi(this.dateValue).format("YYYYMM");else if(this.type=="date")i=yi(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Fo={};var gp=at(vp,dp,fp,!1,yp,null,null,null);function yp(e){for(let t in Fo)this[t]=Fo[t]}var Ro=function(){return gp.exports}();function Zr(e){window.curTarget=e.target||e.srcElement||e.curTarget}function bp(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Sp(e){let t=e.split("_");for(let i=1;i<t.length;i++)t[i]=t[i].substring(0,1).toUpperCase()+t[i].substring(1);return t.join("")}function Qr(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let u={...l._attributes};u.id=t?Sp(u.id):u.id;let h=u.props;if(h)try{h=JSON.parse(h)}catch{console.log("props \u89E3\u6790\u5F02\u5E38",h),h=null}u.props=h;let c=u.enumList;if(c)try{c=JSON.parse(c)}catch{console.log("enumList \u89E3\u6790\u5F02\u5E38",c),c=null}return u.enumList=c,u});let n=i.filter(l=>l.frontHide!="true").map(l=>({...l,title:l.name,width:200,field:l.id,sortable:!0,align:l.type=="INTEGER"?"right":"left",type:l.inputType||null})),r=i.filter(l=>l.listSearch=="true").map(l=>({...l,formKey:l.id,title:l.name,type:l.searchType||"input"})),a=i.filter(l=>l.frontHide!="true").map(l=>({...l,formKey:l.id,title:l.name,isTitle:l.isTitle==="true",type:l.inputType||null,required:l.required==="true"})),s=e.table,o=null;return s&&(s instanceof Array?o=s.map(l=>Qr(l)):o=[Qr(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function ta(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return Qr(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const Cp=!1;var je=N.useConfig(Cp);new Tt.default;const wp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},xp=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},$p=(e,t)=>{let i={...t,icon:t.meta.icon};const{crumbs:n}=e.meta;n&&n.length>0&&n.forEach(a=>{a.meta={title:a.title},a.type===2&&(a.to=a.name)});let r=[{...i,to:t.name}];return n&&n.length>0&&(r=r.concat(n)),r},Vo=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},kp=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},ea=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=ea(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Tp=(e,t)=>{let i={};if(e.length===2)i=ea(e);else{const n=e.findIndex(r=>xn(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Ip=(e,t)=>{let i=e.length,n=!1;return wp(i,r=>{xn(e[r],t)&&(n=!0)}),n},xn=(e,t)=>e.name===t.name;var jo={exports:{}};/*!
|
|
1
|
+
(function(Y,ji){typeof exports=="object"&&typeof module!="undefined"?ji(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],ji):(Y=typeof globalThis!="undefined"?globalThis:Y||self,ji(Y.IndMobileCommon={},Y.lodash,Y["@indfnd/utils"],Y.vue,Y["view-design"]))})(this,function(Y,ji,N,Wf,$e){"use strict";function _o(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=_o(ji),Tt=_o(Wf),Yf={name:"@indfnd/common-mobile",version:"0.0.118",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.26",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},Xf=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backHome}},[e._v("\u8FD4\u56DE\u9996\u9875")]),i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backPrev}},[e._v("\u8FD4\u56DE\u4E0A\u4E00\u9875("+e._s(e.second)+"s)")])],1)},qf=[];function at(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var u;if(s?(u=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),r&&r.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(s)},l._ssrRegister=u):r&&(u=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(f,p){return u.call(p),h(f,p)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:e,options:l}}const Gf={name:"IndBackBtnGroup",data(){return{second:5,timer:null}},mounted(){this.timer=setInterval(()=>{this.second===0?this.backPrev():this.second--},1e3)},beforeDestroy(){clearInterval(this.timer)},methods:{backHome(){this.$router.replace({name:this.$config.homeRouteName})},backPrev(){this.$router.go(-1)}}},Eo={};var Jf=at(Gf,Xf,qf,!1,Zf,null,null,null);function Zf(e){for(let t in Eo)this[t]=Eo[t]}var Qf=function(){return Jf.exports}(),tp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-error-page"},[i("div",{staticClass:"content-con"},[i("img",{attrs:{src:e.src,alt:e.code}}),i("div",{staticClass:"text-con"},[i("h4",[e._v(e._s(e.code))]),i("h5",[e._v(e._s(e.desc))])])])])},ep=[];const ip={name:"IndErrorContent",components:{BackBtnGroup:Qf},props:{code:String,desc:String,src:String}},Do={};var np=at(ip,tp,ep,!1,rp,null,null,null);function rp(e){for(let t in Do)this[t]=Do[t]}var Jr=function(){return np.exports}(),ap=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},sp=[];const op={name:"IndNotFound",components:{ErrorContent:Jr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Oo={};var lp=at(op,ap,sp,!1,cp,null,null,null);function cp(e){for(let t in Oo)this[t]=Oo[t]}var zi=function(){return lp.exports}(),Mo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Lo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Mo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",h="week",c="month",d="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var y=["th","st","nd","rd"],x=P%100;return"["+P+(y[(x-20)%10]||y[x]||y[0])+"]"}},I=function(P,y,x){var _=String(P);return!_||_.length>=y?P:""+Array(y+1-_.length).join(x)+P},$={s:I,z:function(P){var y=-P.utcOffset(),x=Math.abs(y),_=Math.floor(x/60),E=x%60;return(y<=0?"+":"-")+I(_,2,"0")+":"+I(E,2,"0")},m:function P(y,x){if(y.date()<x.date())return-P(x,y);var _=12*(x.year()-y.year())+(x.month()-y.month()),E=y.clone().add(_,c),j=x-E<0,H=y.clone().add(_+(j?-1:1),c);return+(-(_+(x-E)/(j?E-H:H-E))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:f,w:h,d:u,D:p,h:l,m:o,s,ms:a,Q:d}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},D="en",A={};A[D]=T;var W="$isDayjsObject",R=function(P){return P instanceof et||!(!P||!P[W])},V=function P(y,x,_){var E;if(!y)return D;if(typeof y=="string"){var j=y.toLowerCase();A[j]&&(E=j),x&&(A[j]=x,E=j);var H=y.split("-");if(!E&&H.length>1)return P(H[0])}else{var S=y.name;A[S]=y,E=S}return!_&&E&&(D=E),E||!_&&D},B=function(P,y){if(R(P))return P.clone();var x=typeof y=="object"?y:{};return x.date=P,x.args=arguments,new et(x)},M=$;M.l=V,M.i=R,M.w=function(P,y){return B(P,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var et=function(){function P(x){this.$L=V(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[W]=!0}var y=P.prototype;return y.parse=function(x){this.$d=function(_){var E=_.date,j=_.utc;if(E===null)return new Date(NaN);if(M.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var H=E.match(v);if(H){var S=H[2]-1||0,g=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,g)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,g)}}return new Date(E)}(x),this.init()},y.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},y.$utils=function(){return M},y.isValid=function(){return this.$d.toString()!==m},y.isSame=function(x,_){var E=B(x);return this.startOf(_)<=E&&E<=this.endOf(_)},y.isAfter=function(x,_){return B(x)<this.startOf(_)},y.isBefore=function(x,_){return this.endOf(_)<B(x)},y.$g=function(x,_,E){return M.u(x)?this[_]:this.set(E,x)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(x,_){var E=this,j=!!M.u(_)||_,H=M.p(x),S=function(kt,xt){var Me=M.w(E.$u?Date.UTC(E.$y,xt,kt):new Date(E.$y,xt,kt),E);return j?Me:Me.endOf(u)},g=function(kt,xt){return M.w(E.toDate()[kt].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(xt)),E)},C=this.$W,F=this.$M,U=this.$D,X="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case c:return j?S(1,F):S(0,F+1);case h:var Q=this.$locale().weekStart||0,ct=(C<Q?C+7:C)-Q;return S(j?U-ct:U+(6-ct),F);case u:case p:return g(X+"Hours",0);case l:return g(X+"Minutes",1);case o:return g(X+"Seconds",2);case s:return g(X+"Milliseconds",3);default:return this.clone()}},y.endOf=function(x){return this.startOf(x,!1)},y.$set=function(x,_){var E,j=M.p(x),H="set"+(this.$u?"UTC":""),S=(E={},E[u]=H+"Date",E[p]=H+"Date",E[c]=H+"Month",E[f]=H+"FullYear",E[l]=H+"Hours",E[o]=H+"Minutes",E[s]=H+"Seconds",E[a]=H+"Milliseconds",E)[j],g=j===u?this.$D+(_-this.$W):_;if(j===c||j===f){var C=this.clone().set(p,1);C.$d[S](g),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](g);return this.init(),this},y.set=function(x,_){return this.clone().$set(x,_)},y.get=function(x){return this[M.p(x)]()},y.add=function(x,_){var E,j=this;x=Number(x);var H=M.p(_),S=function(F){var U=B(j);return M.w(U.date(U.date()+Math.round(F*x)),j)};if(H===c)return this.set(c,this.$M+x);if(H===f)return this.set(f,this.$y+x);if(H===u)return S(1);if(H===h)return S(7);var g=(E={},E[o]=n,E[l]=r,E[s]=i,E)[H]||1,C=this.$d.getTime()+x*g;return M.w(C,this)},y.subtract=function(x,_){return this.add(-1*x,_)},y.format=function(x){var _=this,E=this.$locale();if(!this.isValid())return E.invalidDate||m;var j=x||"YYYY-MM-DDTHH:mm:ssZ",H=M.z(this),S=this.$H,g=this.$m,C=this.$M,F=E.weekdays,U=E.months,X=E.meridiem,Q=function(xt,Me,wn,Gr){return xt&&(xt[Me]||xt(_,j))||wn[Me].slice(0,Gr)},ct=function(xt){return M.s(S%12||12,xt,"0")},kt=X||function(xt,Me,wn){var Gr=xt<12?"AM":"PM";return wn?Gr.toLowerCase():Gr};return j.replace(w,function(xt,Me){return Me||function(wn){switch(wn){case"YY":return String(_.$y).slice(-2);case"YYYY":return M.s(_.$y,4,"0");case"M":return C+1;case"MM":return M.s(C+1,2,"0");case"MMM":return Q(E.monthsShort,C,U,3);case"MMMM":return Q(U,C);case"D":return _.$D;case"DD":return M.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Q(E.weekdaysMin,_.$W,F,2);case"ddd":return Q(E.weekdaysShort,_.$W,F,3);case"dddd":return F[_.$W];case"H":return String(S);case"HH":return M.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,g,!0);case"A":return kt(S,g,!1);case"m":return String(g);case"mm":return M.s(g,2,"0");case"s":return String(_.$s);case"ss":return M.s(_.$s,2,"0");case"SSS":return M.s(_.$ms,3,"0");case"Z":return H}return null}(xt)||H.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(x,_,E){var j,H=this,S=M.p(_),g=B(x),C=(g.utcOffset()-this.utcOffset())*n,F=this-g,U=function(){return M.m(H,g)};switch(S){case f:j=U()/12;break;case c:j=U();break;case d:j=U()/3;break;case h:j=(F-C)/6048e5;break;case u:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return E?j:M.a(j)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return A[this.$L]},y.locale=function(x,_){if(!x)return this.$L;var E=this.clone(),j=V(x,_,!0);return j&&(E.$L=j),E},y.clone=function(){return M.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},P}(),ot=et.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",u],["$M",c],["$y",f],["$D",p]].forEach(function(P){ot[P[1]]=function(y){return this.$g(y,P[0],P[1])}}),B.extend=function(P,y){return P.$i||(P(y,et,B),P.$i=!0),B},B.locale=V,B.isDayjs=R,B.unix=function(P){return B(1e3*P)},B.en=A[D],B.Ls=A,B.p={},B})})(Lo);var yi=Lo.exports,dp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.formatValue,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},on:{"on-clear":e.clear},nativeOn:{click:function(n){e.visible=!0}}}),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom","get-container":"body"},model:{value:e.visible,callback:function(n){e.visible=n},expression:"visible"}},[e.type!="year-quarter"&&e.type!="year-half"?i("van-datetime-picker",e._b({attrs:{type:e.type,value:e.dateValue},on:{confirm:e.confirm,cancel:e.cancel}},"van-datetime-picker",Object.assign({},e.$attrs),!1)):i("van-picker",{attrs:{"show-toolbar":"",title:e.$attrs.placeholder,columns:e.dataList},on:{confirm:e.confirm,cancel:e.cancel}})],1)],1)},fp=[];const Ao=new Date().getFullYear(),No=new Date().getMonth()+1,pp=`Q${N.getQuarterNum(No)}`,mp=`H${N.getHalfYearNum(No)}`,Po=10,Bo=10,vp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?yi(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ao+pp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Ao+mp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Po;r<=e+Bo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?yi(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?N.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=yi(this.dateValue).format("YYYYMM");else if(this.type=="date")i=yi(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Fo={};var gp=at(vp,dp,fp,!1,yp,null,null,null);function yp(e){for(let t in Fo)this[t]=Fo[t]}var Ro=function(){return gp.exports}();function Zr(e){window.curTarget=e.target||e.srcElement||e.curTarget}function bp(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Sp(e){let t=e.split("_");for(let i=1;i<t.length;i++)t[i]=t[i].substring(0,1).toUpperCase()+t[i].substring(1);return t.join("")}function Qr(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let u={...l._attributes};u.id=t?Sp(u.id):u.id;let h=u.props;if(h)try{h=JSON.parse(h)}catch{console.log("props \u89E3\u6790\u5F02\u5E38",h),h=null}u.props=h;let c=u.enumList;if(c)try{c=JSON.parse(c)}catch{console.log("enumList \u89E3\u6790\u5F02\u5E38",c),c=null}return u.enumList=c,u});let n=i.filter(l=>l.frontHide!="true").map(l=>({...l,title:l.name,width:200,field:l.id,sortable:!0,align:l.type=="INTEGER"?"right":"left",type:l.inputType||null})),r=i.filter(l=>l.listSearch=="true").map(l=>({...l,formKey:l.id,title:l.name,type:l.searchType||"input"})),a=i.filter(l=>l.frontHide!="true").map(l=>({...l,formKey:l.id,title:l.name,isTitle:l.isTitle==="true",type:l.inputType||null,required:l.required==="true"})),s=e.table,o=null;return s&&(s instanceof Array?o=s.map(l=>Qr(l)):o=[Qr(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function ta(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return Qr(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const Cp=!1;var je=N.useConfig(Cp);new Tt.default;const wp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},xp=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},$p=(e,t)=>{let i={...t,icon:t.meta.icon};const{crumbs:n}=e.meta;n&&n.length>0&&n.forEach(a=>{a.meta={title:a.title},a.type===2&&(a.to=a.name)});let r=[{...i,to:t.name}];return n&&n.length>0&&(r=r.concat(n)),r},Vo=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},kp=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},ea=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=ea(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Tp=(e,t)=>{let i={};if(e.length===2)i=ea(e);else{const n=e.findIndex(r=>xn(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Ip=(e,t)=>{let i=e.length,n=!1;return wp(i,r=>{xn(e[r],t)&&(n=!0)}),n},xn=(e,t)=>e.name===t.name;var jo={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
*/function Sr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sr=function(t){return typeof t}:Sr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function Fw(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},se.apply(this,arguments)}function Ze(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable}))),n.forEach(function(r){Fw(e,r,i[r])})}return e}function Rw(e,t){if(e==null)return{};var i={},n=Object.keys(e),r,a;for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}function Vw(e,t){if(e==null)return{};var i=Rw(e,t),n,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(i[n]=e[n]))}return i}function jw(e){return zw(e)||Hw(e)||Uw()}function zw(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}function Hw(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Uw(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Kw="1.10.2";function Re(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Ve=Re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),on=Re(/Edge/i),Od=Re(/firefox/i),js=Re(/safari/i)&&!Re(/chrome/i)&&!Re(/android/i),Md=Re(/iP(ad|od|hone)/i),Ww=Re(/chrome/i)&&Re(/android/i),Ld={capture:!1,passive:!1};function nt(e,t,i){e.addEventListener(t,i,!Ve&&Ld)}function Z(e,t,i){e.removeEventListener(t,i,!Ve&&Ld)}function Cr(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Yw(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Se(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Cr(e,t):Cr(e,t))||n&&e===i)return e;if(e===i)break}while(e=Yw(e))}return null}var Ad=/\s+/g;function ht(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Ad," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Ad," ")}}function z(e,t,i){var n=e&&e.style;if(n){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=i+(typeof i=="string"?"":"px")}}function fi(e,t){var i="";if(typeof e=="string")i=e;else do{var n=z(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function Nd(e,t,i){if(e){var n=e.getElementsByTagName(t),r=0,a=n.length;if(i)for(;r<a;r++)i(n[r],r);return n}return[]}function Oe(){var e=document.scrollingElement;return e||document.documentElement}function pt(e,t,i,n,r){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,o,l,u,h,c;if(e!==window&&e!==Oe()?(a=e.getBoundingClientRect(),s=a.top,o=a.left,l=a.bottom,u=a.right,h=a.height,c=a.width):(s=0,o=0,l=window.innerHeight,u=window.innerWidth,h=window.innerHeight,c=window.innerWidth),(t||i)&&e!==window&&(r=r||e.parentNode,!Ve))do if(r&&r.getBoundingClientRect&&(z(r,"transform")!=="none"||i&&z(r,"position")!=="static")){var d=r.getBoundingClientRect();s-=d.top+parseInt(z(r,"border-top-width")),o-=d.left+parseInt(z(r,"border-left-width")),l=s+a.height,u=o+a.width;break}while(r=r.parentNode);if(n&&e!==window){var f=fi(r||e),p=f&&f.a,m=f&&f.d;f&&(s/=m,o/=p,c/=p,h/=m,l=s+h,u=o+c)}return{top:s,left:o,bottom:l,right:u,width:c,height:h}}}function Pd(e,t,i){for(var n=Qe(e,!0),r=pt(e)[t];n;){var a=pt(n)[i],s=void 0;if(i==="top"||i==="left"?s=r>=a:s=r<=a,!s)return n;if(n===Oe())break;n=Qe(n,!1)}return!1}function wr(e,t,i){for(var n=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==K.ghost&&a[r]!==K.dragged&&Se(a[r],i.draggable,e,!1)){if(n===t)return a[r];n++}r++}return null}function zs(e,t){for(var i=e.lastElementChild;i&&(i===K.ghost||z(i,"display")==="none"||t&&!Cr(i,t));)i=i.previousElementSibling;return i||null}function mt(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==K.clone&&(!t||Cr(e,t))&&i++;return i}function Bd(e){var t=0,i=0,n=Oe();if(e)do{var r=fi(e),a=r.a,s=r.d;t+=e.scrollLeft*a,i+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,i]}function Xw(e,t){for(var i in e)if(!!e.hasOwnProperty(i)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i)}return-1}function Qe(e,t){if(!e||!e.getBoundingClientRect)return Oe();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=z(i);if(i.clientWidth<i.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Oe();if(n||t)return i;n=!0}}while(i=i.parentNode);return Oe()}function qw(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Hs(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var ln;function Fd(e,t){return function(){if(!ln){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),ln=setTimeout(function(){ln=void 0},t)}}}function Gw(){clearTimeout(ln),ln=void 0}function Rd(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Us(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function Vd(e,t){z(e,"position","absolute"),z(e,"top",t.top),z(e,"left",t.left),z(e,"width",t.width),z(e,"height",t.height)}function Ks(e){z(e,"position",""),z(e,"top",""),z(e,"left",""),z(e,"width",""),z(e,"height","")}var At="Sortable"+new Date().getTime();function Jw(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(z(r,"display")==="none"||r===K.ghost)){e.push({target:r,rect:pt(r)});var a=Ze({},e[e.length-1].rect);if(r.thisAnimationDuration){var s=fi(r,!0);s&&(a.top-=s.f,a.left-=s.e)}r.fromRect=a}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(Xw(e,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var a=!1,s=0;e.forEach(function(o){var l=0,u=o.target,h=u.fromRect,c=pt(u),d=u.prevFromRect,f=u.prevToRect,p=o.rect,m=fi(u,!0);m&&(c.top-=m.f,c.left-=m.e),u.toRect=c,u.thisAnimationDuration&&Hs(d,c)&&!Hs(h,c)&&(p.top-c.top)/(p.left-c.left)===(h.top-c.top)/(h.left-c.left)&&(l=Qw(p,d,f,r.options)),Hs(c,h)||(u.prevFromRect=h,u.prevToRect=c,l||(l=r.options.animation),r.animate(u,p,c,l)),l&&(a=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,r,a,s){if(s){z(n,"transition",""),z(n,"transform","");var o=fi(this.el),l=o&&o.a,u=o&&o.d,h=(r.left-a.left)/(l||1),c=(r.top-a.top)/(u||1);n.animatingX=!!h,n.animatingY=!!c,z(n,"transform","translate3d("+h+"px,"+c+"px,0)"),Zw(n),z(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),z(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){z(n,"transition",""),z(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function Zw(e){return e.offsetWidth}function Qw(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var cn=[],Ws={initializeByDefault:!0},un={mount:function(t){for(var i in Ws)Ws.hasOwnProperty(i)&&!(i in t)&&(t[i]=Ws[i]);cn.push(t)},pluginEvent:function(t,i,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=t+"Global";cn.forEach(function(s){!i[s.pluginName]||(i[s.pluginName][a]&&i[s.pluginName][a](Ze({sortable:i},n)),i.options[s.pluginName]&&i[s.pluginName][t]&&i[s.pluginName][t](Ze({sortable:i},n)))})},initializePlugins:function(t,i,n,r){cn.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var u=new o(t,i,t.options);u.sortable=t,u.options=t.options,t[l]=u,se(n,u.defaults)}});for(var a in t.options)if(!!t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s!="undefined"&&(t.options[a]=s)}},getEventProperties:function(t,i){var n={};return cn.forEach(function(r){typeof r.eventProperties=="function"&&se(n,r.eventProperties.call(i[r.pluginName],t))}),n},modifyOption:function(t,i,n){var r;return cn.forEach(function(a){!t[a.pluginName]||a.optionListeners&&typeof a.optionListeners[i]=="function"&&(r=a.optionListeners[i].call(t[a.pluginName],n))}),r}};function hn(e){var t=e.sortable,i=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,s=e.toEl,o=e.fromEl,l=e.oldIndex,u=e.newIndex,h=e.oldDraggableIndex,c=e.newDraggableIndex,d=e.originalEvent,f=e.putSortable,p=e.extraEventProperties;if(t=t||i&&i[At],!!t){var m,v=t.options,w="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Ve&&!on?m=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(n,!0,!0)),m.to=s||i,m.from=o||i,m.item=r||i,m.clone=a,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=h,m.newDraggableIndex=c,m.originalEvent=d,m.pullMode=f?f.lastPutMode:void 0;var T=Ze({},p,un.getEventProperties(n,t));for(var I in T)m[I]=T[I];i&&i.dispatchEvent(m),v[w]&&v[w].call(t,m)}}var Kt=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=Vw(n,["evt"]);un.pluginEvent.bind(K)(t,i,Ze({dragEl:L,parentEl:yt,ghostEl:G,rootEl:dt,nextEl:pi,lastDownEl:xr,cloneEl:vt,cloneHidden:ti,dragStarted:fn,putSortable:Dt,activeSortable:K.active,originalEvent:r,oldIndex:Ni,oldDraggableIndex:dn,newIndex:Xt,newDraggableIndex:ei,hideGhostForTarget:Yd,unhideGhostForTarget:Xd,cloneNowHidden:function(){ti=!0},cloneNowShown:function(){ti=!1},dispatchSortableEvent:function(o){Ft({sortable:i,name:o,originalEvent:r})}},a))};function Ft(e){hn(Ze({putSortable:Dt,cloneEl:vt,targetEl:L,rootEl:dt,oldIndex:Ni,oldDraggableIndex:dn,newIndex:Xt,newDraggableIndex:ei},e))}var L,yt,G,dt,pi,xr,vt,ti,Ni,Xt,dn,ei,$r,Dt,Pi=!1,kr=!1,Tr=[],mi,Ce,Ys,Xs,jd,zd,fn,Bi,pn,mn=!1,Ir=!1,_r,Nt,qs=[],Gs=!1,Er=[],Dr=typeof document!="undefined",Or=Md,Hd=on||Ve?"cssFloat":"float",tx=Dr&&!Ww&&!Md&&"draggable"in document.createElement("div"),Ud=function(){if(!!Dr){if(Ve)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Kd=function(t,i){var n=z(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=wr(t,0,i),s=wr(t,1,i),o=a&&z(a),l=s&&z(s),u=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+pt(a).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+pt(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&o.float!=="none"){var c=o.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return a&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||u>=r&&n[Hd]==="none"||s&&n[Hd]==="none"&&u+h>r)?"vertical":"horizontal"},ex=function(t,i,n){var r=n?t.left:t.top,a=n?t.right:t.bottom,s=n?t.width:t.height,o=n?i.left:i.top,l=n?i.right:i.bottom,u=n?i.width:i.height;return r===o||a===l||r+s/2===o+u/2},ix=function(t,i){var n;return Tr.some(function(r){if(!zs(r)){var a=pt(r),s=r[At].options.emptyInsertThreshold,o=t>=a.left-s&&t<=a.right+s,l=i>=a.top-s&&i<=a.bottom+s;if(s&&o&&l)return n=r}}),n},Wd=function(t){function i(a,s){return function(o,l,u,h){var c=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(a==null&&(s||c))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return i(a(o,l,u,h),s)(o,l,u,h);var d=(s?o:l).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var n={},r=t.group;(!r||Sr(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=i(r.pull,!0),n.checkPut=i(r.put),n.revertClone=r.revertClone,t.group=n},Yd=function(){!Ud&&G&&z(G,"display","none")},Xd=function(){!Ud&&G&&z(G,"display","")};Dr&&document.addEventListener("click",function(e){if(kr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),kr=!1,!1},!0);var vi=function(t){if(L){t=t.touches?t.touches[0]:t;var i=ix(t.clientX,t.clientY);if(i){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[At]._onDragOver(n)}}},nx=function(t){L&&L.parentNode[At]._isOutsideThisEl(t.target)};function K(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=se({},t),e[At]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Kd(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,o){s.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:K.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};un.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);Wd(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:tx,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?nt(e,"pointerdown",this._onTapStart):(nt(e,"mousedown",this._onTapStart),nt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(nt(e,"dragover",this),nt(e,"dragenter",this)),Tr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),se(this,Jw())}K.prototype={constructor:K,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Bi=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,L):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var i=this,n=this.el,r=this.options,a=r.preventOnFilter,s=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(o||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,h=r.filter;if(ux(n),!L&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!u.isContentEditable&&(l=Se(l,r.draggable,n,!1),!(l&&l.animated)&&xr!==l)){if(Ni=mt(l),dn=mt(l,r.draggable),typeof h=="function"){if(h.call(this,t,l,this)){Ft({sortable:i,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),Kt("filter",i,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(c){if(c=Se(u,c.trim(),n,!1),c)return Ft({sortable:i,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),Kt("filter",i,{evt:t}),!0}),h)){a&&t.cancelable&&t.preventDefault();return}r.handle&&!Se(u,r.handle,n,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function(t,i,n){var r=this,a=r.el,s=r.options,o=a.ownerDocument,l;if(n&&!L&&n.parentNode===a){var u=pt(n);if(dt=a,L=n,yt=L.parentNode,pi=L.nextSibling,xr=n,$r=s.group,K.dragged=L,mi={target:L,clientX:(i||t).clientX,clientY:(i||t).clientY},jd=mi.clientX-u.left,zd=mi.clientY-u.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,L.style["will-change"]="all",l=function(){if(Kt("delayEnded",r,{evt:t}),K.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Od&&r.nativeDraggable&&(L.draggable=!0),r._triggerDragStart(t,i),Ft({sortable:r,name:"choose",originalEvent:t}),ht(L,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Nd(L,h.trim(),Zs)}),nt(o,"dragover",vi),nt(o,"mousemove",vi),nt(o,"touchmove",vi),nt(o,"mouseup",r._onDrop),nt(o,"touchend",r._onDrop),nt(o,"touchcancel",r._onDrop),Od&&this.nativeDraggable&&(this.options.touchStartThreshold=4,L.draggable=!0),Kt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(on||Ve))){if(K.eventCanceled){this._onDrop();return}nt(o,"mouseup",r._disableDelayedDrag),nt(o,"touchend",r._disableDelayedDrag),nt(o,"touchcancel",r._disableDelayedDrag),nt(o,"mousemove",r._delayedDragTouchMoveHandler),nt(o,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&nt(o,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){L&&Zs(L),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Z(t,"mouseup",this._disableDelayedDrag),Z(t,"touchend",this._disableDelayedDrag),Z(t,"touchcancel",this._disableDelayedDrag),Z(t,"mousemove",this._delayedDragTouchMoveHandler),Z(t,"touchmove",this._delayedDragTouchMoveHandler),Z(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?nt(document,"pointermove",this._onTouchMove):i?nt(document,"touchmove",this._onTouchMove):nt(document,"mousemove",this._onTouchMove):(nt(L,"dragend",this),nt(dt,"dragstart",this._onDragStart));try{document.selection?Mr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Pi=!1,dt&&L){Kt("dragStarted",this,{evt:i}),this.nativeDraggable&&nt(document,"dragover",nx);var n=this.options;!t&&ht(L,n.dragClass,!1),ht(L,n.ghostClass,!0),K.active=this,t&&this._appendGhost(),Ft({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(Ce){this._lastX=Ce.clientX,this._lastY=Ce.clientY,Yd();for(var t=document.elementFromPoint(Ce.clientX,Ce.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ce.clientX,Ce.clientY),t!==i);)i=t;if(L.parentNode[At]._isOutsideThisEl(t),i)do{if(i[At]){var n=void 0;if(n=i[At]._onDragOver({clientX:Ce.clientX,clientY:Ce.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);Xd()}},_onTouchMove:function(t){if(mi){var i=this.options,n=i.fallbackTolerance,r=i.fallbackOffset,a=t.touches?t.touches[0]:t,s=G&&fi(G,!0),o=G&&s&&s.a,l=G&&s&&s.d,u=Or&&Nt&&Bd(Nt),h=(a.clientX-mi.clientX+r.x)/(o||1)+(u?u[0]-qs[0]:0)/(o||1),c=(a.clientY-mi.clientY+r.y)/(l||1)+(u?u[1]-qs[1]:0)/(l||1);if(!K.active&&!Pi){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(G){s?(s.e+=h-(Ys||0),s.f+=c-(Xs||0)):s={a:1,b:0,c:0,d:1,e:h,f:c};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");z(G,"webkitTransform",d),z(G,"mozTransform",d),z(G,"msTransform",d),z(G,"transform",d),Ys=h,Xs=c,Ce=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!G){var t=this.options.fallbackOnBody?document.body:dt,i=pt(L,!0,Or,!0,t),n=this.options;if(Or){for(Nt=t;z(Nt,"position")==="static"&&z(Nt,"transform")==="none"&&Nt!==document;)Nt=Nt.parentNode;Nt!==document.body&&Nt!==document.documentElement?(Nt===document&&(Nt=Oe()),i.top+=Nt.scrollTop,i.left+=Nt.scrollLeft):Nt=Oe(),qs=Bd(Nt)}G=L.cloneNode(!0),ht(G,n.ghostClass,!1),ht(G,n.fallbackClass,!0),ht(G,n.dragClass,!0),z(G,"transition",""),z(G,"transform",""),z(G,"box-sizing","border-box"),z(G,"margin",0),z(G,"top",i.top),z(G,"left",i.left),z(G,"width",i.width),z(G,"height",i.height),z(G,"opacity","0.8"),z(G,"position",Or?"absolute":"fixed"),z(G,"zIndex","100000"),z(G,"pointerEvents","none"),K.ghost=G,t.appendChild(G),z(G,"transform-origin",jd/parseInt(G.style.width)*100+"% "+zd/parseInt(G.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,r=t.dataTransfer,a=n.options;if(Kt("dragStart",this,{evt:t}),K.eventCanceled){this._onDrop();return}Kt("setupClone",this),K.eventCanceled||(vt=Us(L),vt.draggable=!1,vt.style["will-change"]="",this._hideClone(),ht(vt,this.options.chosenClass,!1),K.clone=vt),n.cloneId=Mr(function(){Kt("clone",n),!K.eventCanceled&&(n.options.removeCloneOnHide||dt.insertBefore(vt,L),n._hideClone(),Ft({sortable:n,name:"clone"}))}),!i&&ht(L,a.dragClass,!0),i?(kr=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Z(document,"mouseup",n._onDrop),Z(document,"touchend",n._onDrop),Z(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,L)),nt(document,"drop",n),z(L,"transform","translateZ(0)")),Pi=!0,n._dragStartId=Mr(n._dragStarted.bind(n,i,t)),nt(document,"selectstart",n),fn=!0,js&&z(document.body,"user-select","none")},_onDragOver:function(t){var i=this.el,n=t.target,r,a,s,o=this.options,l=o.group,u=K.active,h=$r===l,c=o.sort,d=Dt||u,f,p=this,m=!1;if(Gs)return;function v(_,E){Kt(_,p,Ze({evt:t,isOwner:h,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:a,canSort:c,fromSortable:d,target:n,completed:T,onMove:function(H,S){return Js(dt,i,L,r,H,pt(H),t,S)},changed:I},E))}function w(){v("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function T(_){return v("dragOverCompleted",{insertion:_}),_&&(h?u._hideClone():u._showClone(p),p!==d&&(ht(L,Dt?Dt.options.ghostClass:u.options.ghostClass,!1),ht(L,o.ghostClass,!0)),Dt!==p&&p!==K.active?Dt=p:p===K.active&&Dt&&(Dt=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){v("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===L&&!L.animated||n===i&&!n.animated)&&(Bi=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(L.parentNode[At]._isOutsideThisEl(t.target),!_&&vi(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function I(){Xt=mt(L),ei=mt(L,o.draggable),Ft({sortable:p,name:"change",toEl:i,newIndex:Xt,newDraggableIndex:ei,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Se(n,o.draggable,i,!0),v("dragOver"),K.eventCanceled)return m;if(L.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return T(!1);if(kr=!1,u&&!o.disabled&&(h?c||(s=!dt.contains(L)):Dt===this||(this.lastPutMode=$r.checkPull(this,u,L,t))&&l.checkPut(this,u,L,t))){if(f=this._getDirection(t,n)==="vertical",r=pt(L),v("dragOverValid"),K.eventCanceled)return m;if(s)return yt=dt,w(),this._hideClone(),v("revert"),K.eventCanceled||(pi?dt.insertBefore(L,pi):dt.appendChild(L)),T(!0);var $=zs(i,o.draggable);if(!$||sx(t,f,this)&&!$.animated){if($===L)return T(!1);if($&&i===t.target&&(n=$),n&&(a=pt(n)),Js(dt,i,L,r,n,a,t,!!n)!==!1)return w(),i.appendChild(L),yt=i,I(),T(!0)}else if(n.parentNode===i){a=pt(n);var D=0,A,W=L.parentNode!==i,R=!ex(L.animated&&L.toRect||r,n.animated&&n.toRect||a,f),V=f?"top":"left",B=Pd(n,"top","top")||Pd(L,"top","top"),M=B?B.scrollTop:void 0;Bi!==n&&(A=a[V],mn=!1,Ir=!R&&o.invertSwap||W),D=ox(t,n,a,f,R?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Ir,Bi===n);var et;if(D!==0){var ot=mt(L);do ot-=D,et=yt.children[ot];while(et&&(z(et,"display")==="none"||et===G))}if(D===0||et===n)return T(!1);Bi=n,pn=D;var P=n.nextElementSibling,y=!1;y=D===1;var x=Js(dt,i,L,r,n,a,t,y);if(x!==!1)return(x===1||x===-1)&&(y=x===1),Gs=!0,setTimeout(ax,30),w(),y&&!P?i.appendChild(L):n.parentNode.insertBefore(L,y?P:n),B&&Rd(B,0,M-B.scrollTop),yt=L.parentNode,A!==void 0&&!Ir&&(_r=Math.abs(A-pt(n)[V])),I(),T(!0)}if(i.contains(L))return T(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Z(document,"mousemove",this._onTouchMove),Z(document,"touchmove",this._onTouchMove),Z(document,"pointermove",this._onTouchMove),Z(document,"dragover",vi),Z(document,"mousemove",vi),Z(document,"touchmove",vi)},_offUpEvents:function(){var t=this.el.ownerDocument;Z(t,"mouseup",this._onDrop),Z(t,"touchend",this._onDrop),Z(t,"pointerup",this._onDrop),Z(t,"touchcancel",this._onDrop),Z(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;if(Xt=mt(L),ei=mt(L,n.draggable),Kt("drop",this,{evt:t}),yt=L&&L.parentNode,Xt=mt(L),ei=mt(L,n.draggable),K.eventCanceled){this._nulling();return}Pi=!1,Ir=!1,mn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qs(this.cloneId),Qs(this._dragStartId),this.nativeDraggable&&(Z(document,"drop",this),Z(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),js&&z(document.body,"user-select",""),z(L,"transform",""),t&&(fn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(dt===yt||Dt&&Dt.lastPutMode!=="clone")&&vt&&vt.parentNode&&vt.parentNode.removeChild(vt),L&&(this.nativeDraggable&&Z(L,"dragend",this),Zs(L),L.style["will-change"]="",fn&&!Pi&&ht(L,Dt?Dt.options.ghostClass:this.options.ghostClass,!1),ht(L,this.options.chosenClass,!1),Ft({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:t}),dt!==yt?(Xt>=0&&(Ft({rootEl:yt,name:"add",toEl:yt,fromEl:dt,originalEvent:t}),Ft({sortable:this,name:"remove",toEl:yt,originalEvent:t}),Ft({rootEl:yt,name:"sort",toEl:yt,fromEl:dt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Dt&&Dt.save()):Xt!==Ni&&Xt>=0&&(Ft({sortable:this,name:"update",toEl:yt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:yt,originalEvent:t})),K.active&&((Xt==null||Xt===-1)&&(Xt=Ni,ei=dn),Ft({sortable:this,name:"end",toEl:yt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Kt("nulling",this),dt=L=yt=G=pi=vt=xr=ti=mi=Ce=fn=Xt=ei=Ni=dn=Bi=pn=Dt=$r=K.dragged=K.ghost=K.clone=K.active=null,Er.forEach(function(t){t.checked=!0}),Er.length=Ys=Xs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":L&&(this._onDragOver(t),rx(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,r=0,a=n.length,s=this.options;r<a;r++)i=n[r],Se(i,s.draggable,this.el,!1)&&t.push(i.getAttribute(s.dataIdAttr)||cx(i));return t},sort:function(t){var i={},n=this.el;this.toArray().forEach(function(r,a){var s=n.children[a];Se(s,this.options.draggable,n,!1)&&(i[r]=s)},this),t.forEach(function(r){i[r]&&(n.removeChild(i[r]),n.appendChild(i[r]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return Se(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var r=un.modifyOption(this,t,i);typeof r!="undefined"?n[t]=r:n[t]=i,t==="group"&&Wd(n)},destroy:function(){Kt("destroy",this);var t=this.el;t[At]=null,Z(t,"mousedown",this._onTapStart),Z(t,"touchstart",this._onTapStart),Z(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Z(t,"dragover",this),Z(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Tr.splice(Tr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ti){if(Kt("hideClone",this),K.eventCanceled)return;z(vt,"display","none"),this.options.removeCloneOnHide&&vt.parentNode&&vt.parentNode.removeChild(vt),ti=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ti){if(Kt("showClone",this),K.eventCanceled)return;dt.contains(L)&&!this.options.group.revertClone?dt.insertBefore(vt,L):pi?dt.insertBefore(vt,pi):dt.appendChild(vt),this.options.group.revertClone&&this.animate(L,vt),z(vt,"display",""),ti=!1}}};function rx(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Js(e,t,i,n,r,a,s,o){var l,u=e[At],h=u.options.onMove,c;return window.CustomEvent&&!Ve&&!on?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=r||t,l.relatedRect=a||pt(t),l.willInsertAfter=o,l.originalEvent=s,e.dispatchEvent(l),h&&(c=h.call(u,l,s)),c}function Zs(e){e.draggable=!1}function ax(){Gs=!1}function sx(e,t,i){var n=pt(zs(i.el,i.options.draggable)),r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}function ox(e,t,i,n,r,a,s,o){var l=n?e.clientY:e.clientX,u=n?i.height:i.width,h=n?i.top:i.left,c=n?i.bottom:i.right,d=!1;if(!s){if(o&&_r<u*r){if(!mn&&(pn===1?l>h+u*a/2:l<c-u*a/2)&&(mn=!0),mn)d=!0;else if(pn===1?l<h+_r:l>c-_r)return-pn}else if(l>h+u*(1-r)/2&&l<c-u*(1-r)/2)return lx(t)}return d=d||s,d&&(l<h+u*a/2||l>c-u*a/2)?l>h+u/2?1:-1:0}function lx(e){return mt(L)<mt(e)?1:-1}function cx(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function ux(e){Er.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Er.push(n)}}function Mr(e){return setTimeout(e,0)}function Qs(e){return clearTimeout(e)}Dr&&nt(document,"touchmove",function(e){(K.active||Pi)&&e.cancelable&&e.preventDefault()}),K.utils={on:nt,off:Z,css:z,find:Nd,is:function(t,i){return!!Se(t,i,t,!1)},extend:qw,throttle:Fd,closest:Se,toggleClass:ht,clone:Us,index:mt,nextTick:Mr,cancelNextTick:Qs,detectDirection:Kd,getChild:wr},K.get=function(e){return e[At]},K.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(K.utils=Ze({},K.utils,n.utils)),un.mount(n)})},K.create=function(e,t){return new K(e,t)},K.version=Kw;var bt=[],vn,to,eo=!1,io,no,Lr,gn;function hx(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(i){var n=i.originalEvent;this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?nt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?nt(document,"touchmove",this._handleFallbackAutoScroll):nt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Z(document,"dragover",this._handleAutoScroll):(Z(document,"pointermove",this._handleFallbackAutoScroll),Z(document,"touchmove",this._handleFallbackAutoScroll),Z(document,"mousemove",this._handleFallbackAutoScroll)),qd(),Ar(),Gw()},nulling:function(){Lr=to=vn=eo=gn=io=no=null,bt.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var r=this,a=(i.touches?i.touches[0]:i).clientX,s=(i.touches?i.touches[0]:i).clientY,o=document.elementFromPoint(a,s);if(Lr=i,n||on||Ve||js){ro(i,this.options,o,n);var l=Qe(o,!0);eo&&(!gn||a!==io||s!==no)&&(gn&&qd(),gn=setInterval(function(){var u=Qe(document.elementFromPoint(a,s),!0);u!==l&&(l=u,Ar()),ro(i,r.options,u,n)},10),io=a,no=s)}else{if(!this.options.bubbleScroll||Qe(o,!0)===Oe()){Ar();return}ro(i,this.options,Qe(o,!1),!1)}}},se(e,{pluginName:"scroll",initializeByDefault:!0})}function Ar(){bt.forEach(function(e){clearInterval(e.pid)}),bt=[]}function qd(){clearInterval(gn)}var ro=Fd(function(e,t,i,n){if(!!t.scroll){var r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,o=t.scrollSpeed,l=Oe(),u=!1,h;to!==i&&(to=i,Ar(),vn=t.scroll,h=t.scrollFn,vn===!0&&(vn=Qe(i,!0)));var c=0,d=vn;do{var f=d,p=pt(f),m=p.top,v=p.bottom,w=p.left,T=p.right,I=p.width,$=p.height,D=void 0,A=void 0,W=f.scrollWidth,R=f.scrollHeight,V=z(f),B=f.scrollLeft,M=f.scrollTop;f===l?(D=I<W&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),A=$<R&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(D=I<W&&(V.overflowX==="auto"||V.overflowX==="scroll"),A=$<R&&(V.overflowY==="auto"||V.overflowY==="scroll"));var et=D&&(Math.abs(T-r)<=s&&B+I<W)-(Math.abs(w-r)<=s&&!!B),ot=A&&(Math.abs(v-a)<=s&&M+$<R)-(Math.abs(m-a)<=s&&!!M);if(!bt[c])for(var P=0;P<=c;P++)bt[P]||(bt[P]={});(bt[c].vx!=et||bt[c].vy!=ot||bt[c].el!==f)&&(bt[c].el=f,bt[c].vx=et,bt[c].vy=ot,clearInterval(bt[c].pid),(et!=0||ot!=0)&&(u=!0,bt[c].pid=setInterval(function(){n&&this.layer===0&&K.active._onTouchMove(Lr);var y=bt[this.layer].vy?bt[this.layer].vy*o:0,x=bt[this.layer].vx?bt[this.layer].vx*o:0;typeof h=="function"&&h.call(K.dragged.parentNode[At],x,y,e,Lr,bt[this.layer].el)!=="continue"||Rd(bt[this.layer].el,x,y)}.bind({layer:c}),24))),c++}while(t.bubbleScroll&&d!==l&&(d=Qe(d,!1)));eo=u}},30),Gd=function(t){var i=t.originalEvent,n=t.putSortable,r=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!i){var u=n||a;o();var h=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,c=document.elementFromPoint(h.clientX,h.clientY);l(),u&&!u.el.contains(c)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ao(){}ao.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=wr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(i,r):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:Gd},se(ao,{pluginName:"revertOnSpill"});function so(){}so.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),r.animateAll()},drop:Gd},se(so,{pluginName:"removeOnSpill"});var oe;function dx(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(i){var n=i.dragEl;oe=n},dragOverValid:function(i){var n=i.completed,r=i.target,a=i.onMove,s=i.activeSortable,o=i.changed,l=i.cancel;if(!!s.options.swap){var u=this.sortable.el,h=this.options;if(r&&r!==u){var c=oe;a(r)!==!1?(ht(r,h.swapClass,!0),oe=r):oe=null,c&&c!==oe&&ht(c,h.swapClass,!1)}o(),n(!0),l()}},drop:function(i){var n=i.activeSortable,r=i.putSortable,a=i.dragEl,s=r||this.sortable,o=this.options;oe&&ht(oe,o.swapClass,!1),oe&&(o.swap||r&&r.options.swap)&&a!==oe&&(s.captureAnimationState(),s!==n&&n.captureAnimationState(),fx(a,oe),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){oe=null}},se(e,{pluginName:"swap",eventProperties:function(){return{swapItem:oe}}})}function fx(e,t){var i=e.parentNode,n=t.parentNode,r,a;!i||!n||i.isEqualNode(t)||n.isEqualNode(e)||(r=mt(e),a=mt(t),i.isEqualNode(n)&&r<a&&a++,i.insertBefore(t,i.children[r]),n.insertBefore(e,n.children[a]))}var q=[],qt=[],yn,we,bn=!1,Gt=!1,Fi=!1,ut,Sn,Nr;function px(){function e(t){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));t.options.supportPointer?nt(document,"pointerup",this._deselectMultiDrag):(nt(document,"mouseup",this._deselectMultiDrag),nt(document,"touchend",this._deselectMultiDrag)),nt(document,"keydown",this._checkKeyDown),nt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,a){var s="";q.length&&we===t?q.forEach(function(o,l){s+=(l?", ":"")+o.textContent}):s=a.textContent,r.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var n=i.dragEl;ut=n},delayEnded:function(){this.isMultiDrag=~q.indexOf(ut)},setupClone:function(i){var n=i.sortable,r=i.cancel;if(!!this.isMultiDrag){for(var a=0;a<q.length;a++)qt.push(Us(q[a])),qt[a].sortableIndex=q[a].sortableIndex,qt[a].draggable=!1,qt[a].style["will-change"]="",ht(qt[a],this.options.selectedClass,!1),q[a]===ut&&ht(qt[a],this.options.chosenClass,!1);n._hideClone(),r()}},clone:function(i){var n=i.sortable,r=i.rootEl,a=i.dispatchSortableEvent,s=i.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||q.length&&we===n&&(Jd(!0,r),a("clone"),s())},showClone:function(i){var n=i.cloneNowShown,r=i.rootEl,a=i.cancel;!this.isMultiDrag||(Jd(!1,r),qt.forEach(function(s){z(s,"display","")}),n(),Nr=!1,a())},hideClone:function(i){var n=this;i.sortable;var r=i.cloneNowHidden,a=i.cancel;!this.isMultiDrag||(qt.forEach(function(s){z(s,"display","none"),n.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),r(),Nr=!0,a())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&we&&we.multiDrag._deselectMultiDrag(),q.forEach(function(n){n.sortableIndex=mt(n)}),q=q.sort(function(n,r){return n.sortableIndex-r.sortableIndex}),Fi=!0},dragStarted:function(i){var n=this,r=i.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){q.forEach(function(s){s!==ut&&z(s,"position","absolute")});var a=pt(ut,!1,!0,!0);q.forEach(function(s){s!==ut&&Vd(s,a)}),Gt=!0,bn=!0}r.animateAll(function(){Gt=!1,bn=!1,n.options.animation&&q.forEach(function(s){Ks(s)}),n.options.sort&&Pr()})}},dragOver:function(i){var n=i.target,r=i.completed,a=i.cancel;Gt&&~q.indexOf(n)&&(r(!1),a())},revert:function(i){var n=i.fromSortable,r=i.rootEl,a=i.sortable,s=i.dragRect;q.length>1&&(q.forEach(function(o){a.addAnimationState({target:o,rect:Gt?pt(o):s}),Ks(o),o.fromRect=s,n.removeAnimationState(o)}),Gt=!1,mx(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(i){var n=i.sortable,r=i.isOwner,a=i.insertion,s=i.activeSortable,o=i.parentEl,l=i.putSortable,u=this.options;if(a){if(r&&s._hideClone(),bn=!1,u.animation&&q.length>1&&(Gt||!r&&!s.options.sort&&!l)){var h=pt(ut,!1,!0,!0);q.forEach(function(d){d!==ut&&(Vd(d,h),o.appendChild(d))}),Gt=!0}if(!r)if(Gt||Pr(),q.length>1){var c=Nr;s._showClone(n),s.options.animation&&!Nr&&c&&qt.forEach(function(d){s.addAnimationState({target:d,rect:Sn}),d.fromRect=Sn,d.thisAnimationDuration=null})}else s._showClone(n)}},dragOverAnimationCapture:function(i){var n=i.dragRect,r=i.isOwner,a=i.activeSortable;if(q.forEach(function(o){o.thisAnimationDuration=null}),a.options.animation&&!r&&a.multiDrag.isMultiDrag){Sn=se({},n);var s=fi(ut,!0);Sn.top-=s.f,Sn.left-=s.e}},dragOverAnimationComplete:function(){Gt&&(Gt=!1,Pr())},drop:function(i){var n=i.originalEvent,r=i.rootEl,a=i.parentEl,s=i.sortable,o=i.dispatchSortableEvent,l=i.oldIndex,u=i.putSortable,h=u||this.sortable;if(!!n){var c=this.options,d=a.children;if(!Fi)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ht(ut,c.selectedClass,!~q.indexOf(ut)),~q.indexOf(ut))q.splice(q.indexOf(ut),1),yn=null,hn({sortable:s,rootEl:r,name:"deselect",targetEl:ut,originalEvt:n});else{if(q.push(ut),hn({sortable:s,rootEl:r,name:"select",targetEl:ut,originalEvt:n}),n.shiftKey&&yn&&s.el.contains(yn)){var f=mt(yn),p=mt(ut);if(~f&&~p&&f!==p){var m,v;for(p>f?(v=f,m=p):(v=p,m=f+1);v<m;v++)~q.indexOf(d[v])||(ht(d[v],c.selectedClass,!0),q.push(d[v]),hn({sortable:s,rootEl:r,name:"select",targetEl:d[v],originalEvt:n}))}}else yn=ut;we=h}if(Fi&&this.isMultiDrag){if((a[At].options.sort||a!==r)&&q.length>1){var w=pt(ut),T=mt(ut,":not(."+this.options.selectedClass+")");if(!bn&&c.animation&&(ut.thisAnimationDuration=null),h.captureAnimationState(),!bn&&(c.animation&&(ut.fromRect=w,q.forEach(function($){if($.thisAnimationDuration=null,$!==ut){var D=Gt?pt($):w;$.fromRect=D,h.addAnimationState({target:$,rect:D})}})),Pr(),q.forEach(function($){d[T]?a.insertBefore($,d[T]):a.appendChild($),T++}),l===mt(ut))){var I=!1;q.forEach(function($){if($.sortableIndex!==mt($)){I=!0;return}}),I&&o("update")}q.forEach(function($){Ks($)}),h.animateAll()}we=h}(r===a||u&&u.lastPutMode!=="clone")&&qt.forEach(function($){$.parentNode&&$.parentNode.removeChild($)})}},nullingGlobal:function(){this.isMultiDrag=Fi=!1,qt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Z(document,"pointerup",this._deselectMultiDrag),Z(document,"mouseup",this._deselectMultiDrag),Z(document,"touchend",this._deselectMultiDrag),Z(document,"keydown",this._checkKeyDown),Z(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Fi!="undefined"&&Fi)&&we===this.sortable&&!(i&&Se(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;q.length;){var n=q[0];ht(n,this.options.selectedClass,!1),q.shift(),hn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},se(e,{pluginName:"multiDrag",utils:{select:function(i){var n=i.parentNode[At];!n||!n.options.multiDrag||~q.indexOf(i)||(we&&we!==n&&(we.multiDrag._deselectMultiDrag(),we=n),ht(i,n.options.selectedClass,!0),q.push(i))},deselect:function(i){var n=i.parentNode[At],r=q.indexOf(i);!n||!n.options.multiDrag||!~r||(ht(i,n.options.selectedClass,!1),q.splice(r,1))}},eventProperties:function(){var i=this,n=[],r=[];return q.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var s;Gt&&a!==ut?s=-1:Gt?s=mt(a,":not(."+i.options.selectedClass+")"):s=mt(a),r.push({multiDragElement:a,index:s})}),{items:jw(q),clones:[].concat(qt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function mx(e,t){q.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function Jd(e,t){qt.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function Pr(){q.forEach(function(e){e!==ut&&e.parentNode&&e.parentNode.removeChild(e)})}K.mount(new hx),K.mount(so,ao);var vx=Object.freeze(Object.defineProperty({__proto__:null,default:K,MultiDrag:px,Sortable:K,Swap:dx},Symbol.toStringTag,{value:"Module"})),gx=hp(vx);(function(e,t){(function(n,r){e.exports=r(gx)})(typeof self!="undefined"?self:Mo,function(i){return function(n){var r={};function a(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=r,a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(o&1&&(s=a(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var u in s)a.d(l,u,function(h){return s[h]}.bind(null,u));return l},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s="fb15")}({"01f9":function(n,r,a){var s=a("2d00"),o=a("5ca1"),l=a("2aba"),u=a("32e9"),h=a("84f2"),c=a("41a0"),d=a("7f20"),f=a("38fd"),p=a("2b4c")("iterator"),m=!([].keys&&"next"in[].keys()),v="@@iterator",w="keys",T="values",I=function(){return this};n.exports=function($,D,A,W,R,V,B){c(A,D,W);var M=function(C){if(!m&&C in y)return y[C];switch(C){case w:return function(){return new A(this,C)};case T:return function(){return new A(this,C)}}return function(){return new A(this,C)}},et=D+" Iterator",ot=R==T,P=!1,y=$.prototype,x=y[p]||y[v]||R&&y[R],_=x||M(R),E=R?ot?M("entries"):_:void 0,j=D=="Array"&&y.entries||x,H,S,g;if(j&&(g=f(j.call(new $)),g!==Object.prototype&&g.next&&(d(g,et,!0),!s&&typeof g[p]!="function"&&u(g,p,I))),ot&&x&&x.name!==T&&(P=!0,_=function(){return x.call(this)}),(!s||B)&&(m||P||!y[p])&&u(y,p,_),h[D]=_,h[et]=I,R)if(H={values:ot?_:M(T),keys:V?_:M(w),entries:E},B)for(S in H)S in y||l(y,S,H[S]);else o(o.P+o.F*(m||P),D,H);return H}},"02f4":function(n,r,a){var s=a("4588"),o=a("be13");n.exports=function(l){return function(u,h){var c=String(o(u)),d=s(h),f=c.length,p,m;return d<0||d>=f?l?"":void 0:(p=c.charCodeAt(d),p<55296||p>56319||d+1===f||(m=c.charCodeAt(d+1))<56320||m>57343?l?c.charAt(d):p:l?c.slice(d,d+2):(p-55296<<10)+(m-56320)+65536)}}},"0390":function(n,r,a){var s=a("02f4")(!0);n.exports=function(o,l,u){return l+(u?s(o,l).length:1)}},"0bfb":function(n,r,a){var s=a("cb7c");n.exports=function(){var o=s(this),l="";return o.global&&(l+="g"),o.ignoreCase&&(l+="i"),o.multiline&&(l+="m"),o.unicode&&(l+="u"),o.sticky&&(l+="y"),l}},"0d58":function(n,r,a){var s=a("ce10"),o=a("e11e");n.exports=Object.keys||function(u){return s(u,o)}},1495:function(n,r,a){var s=a("86cc"),o=a("cb7c"),l=a("0d58");n.exports=a("9e1e")?Object.defineProperties:function(h,c){o(h);for(var d=l(c),f=d.length,p=0,m;f>p;)s.f(h,m=d[p++],c[m]);return h}},"214f":function(n,r,a){a("b0c5");var s=a("2aba"),o=a("32e9"),l=a("79e5"),u=a("be13"),h=a("2b4c"),c=a("520a"),d=h("species"),f=!l(function(){var m=/./;return m.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(m,"$<a>")!=="7"}),p=function(){var m=/(?:)/,v=m.exec;m.exec=function(){return v.apply(this,arguments)};var w="ab".split(m);return w.length===2&&w[0]==="a"&&w[1]==="b"}();n.exports=function(m,v,w){var T=h(m),I=!l(function(){var V={};return V[T]=function(){return 7},""[m](V)!=7}),$=I?!l(function(){var V=!1,B=/a/;return B.exec=function(){return V=!0,null},m==="split"&&(B.constructor={},B.constructor[d]=function(){return B}),B[T](""),!V}):void 0;if(!I||!$||m==="replace"&&!f||m==="split"&&!p){var D=/./[T],A=w(u,T,""[m],function(B,M,et,ot,P){return M.exec===c?I&&!P?{done:!0,value:D.call(M,et,ot)}:{done:!0,value:B.call(et,M,ot)}:{done:!1}}),W=A[0],R=A[1];s(String.prototype,m,W),o(RegExp.prototype,T,v==2?function(V,B){return R.call(V,this,B)}:function(V){return R.call(V,this)})}}},"230e":function(n,r,a){var s=a("d3f4"),o=a("7726").document,l=s(o)&&s(o.createElement);n.exports=function(u){return l?o.createElement(u):{}}},"23c6":function(n,r,a){var s=a("2d95"),o=a("2b4c")("toStringTag"),l=s(function(){return arguments}())=="Arguments",u=function(h,c){try{return h[c]}catch{}};n.exports=function(h){var c,d,f;return h===void 0?"Undefined":h===null?"Null":typeof(d=u(c=Object(h),o))=="string"?d:l?s(c):(f=s(c))=="Object"&&typeof c.callee=="function"?"Arguments":f}},2621:function(n,r){r.f=Object.getOwnPropertySymbols},"2aba":function(n,r,a){var s=a("7726"),o=a("32e9"),l=a("69a8"),u=a("ca5a")("src"),h=a("fa5b"),c="toString",d=(""+h).split(c);a("8378").inspectSource=function(f){return h.call(f)},(n.exports=function(f,p,m,v){var w=typeof m=="function";w&&(l(m,"name")||o(m,"name",p)),f[p]!==m&&(w&&(l(m,u)||o(m,u,f[p]?""+f[p]:d.join(String(p)))),f===s?f[p]=m:v?f[p]?f[p]=m:o(f,p,m):(delete f[p],o(f,p,m)))})(Function.prototype,c,function(){return typeof this=="function"&&this[u]||h.call(this)})},"2aeb":function(n,r,a){var s=a("cb7c"),o=a("1495"),l=a("e11e"),u=a("613b")("IE_PROTO"),h=function(){},c="prototype",d=function(){var f=a("230e")("iframe"),p=l.length,m="<",v=">",w;for(f.style.display="none",a("fab2").appendChild(f),f.src="javascript:",w=f.contentWindow.document,w.open(),w.write(m+"script"+v+"document.F=Object"+m+"/script"+v),w.close(),d=w.F;p--;)delete d[c][l[p]];return d()};n.exports=Object.create||function(p,m){var v;return p!==null?(h[c]=s(p),v=new h,h[c]=null,v[u]=p):v=d(),m===void 0?v:o(v,m)}},"2b4c":function(n,r,a){var s=a("5537")("wks"),o=a("ca5a"),l=a("7726").Symbol,u=typeof l=="function",h=n.exports=function(c){return s[c]||(s[c]=u&&l[c]||(u?l:o)("Symbol."+c))};h.store=s},"2d00":function(n,r){n.exports=!1},"2d95":function(n,r){var a={}.toString;n.exports=function(s){return a.call(s).slice(8,-1)}},"2fdb":function(n,r,a){var s=a("5ca1"),o=a("d2c8"),l="includes";s(s.P+s.F*a("5147")(l),"String",{includes:function(h){return!!~o(this,h,l).indexOf(h,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(n,r,a){var s=a("86cc"),o=a("4630");n.exports=a("9e1e")?function(l,u,h){return s.f(l,u,o(1,h))}:function(l,u,h){return l[u]=h,l}},"38fd":function(n,r,a){var s=a("69a8"),o=a("4bf8"),l=a("613b")("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(h){return h=o(h),s(h,l)?h[l]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"41a0":function(n,r,a){var s=a("2aeb"),o=a("4630"),l=a("7f20"),u={};a("32e9")(u,a("2b4c")("iterator"),function(){return this}),n.exports=function(h,c,d){h.prototype=s(u,{next:o(1,d)}),l(h,c+" Iterator")}},"456d":function(n,r,a){var s=a("4bf8"),o=a("0d58");a("5eda")("keys",function(){return function(u){return o(s(u))}})},4588:function(n,r){var a=Math.ceil,s=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?s:a)(o)}},4630:function(n,r){n.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"4bf8":function(n,r,a){var s=a("be13");n.exports=function(o){return Object(s(o))}},5147:function(n,r,a){var s=a("2b4c")("match");n.exports=function(o){var l=/./;try{"/./"[o](l)}catch{try{return l[s]=!1,!"/./"[o](l)}catch{}}return!0}},"520a":function(n,r,a){var s=a("0bfb"),o=RegExp.prototype.exec,l=String.prototype.replace,u=o,h="lastIndex",c=function(){var p=/a/,m=/b*/g;return o.call(p,"a"),o.call(m,"a"),p[h]!==0||m[h]!==0}(),d=/()??/.exec("")[1]!==void 0,f=c||d;f&&(u=function(m){var v=this,w,T,I,$;return d&&(T=new RegExp("^"+v.source+"$(?!\\s)",s.call(v))),c&&(w=v[h]),I=o.call(v,m),c&&I&&(v[h]=v.global?I.index+I[0].length:w),d&&I&&I.length>1&&l.call(I[0],T,function(){for($=1;$<arguments.length-2;$++)arguments[$]===void 0&&(I[$]=void 0)}),I}),n.exports=u},"52a7":function(n,r){r.f={}.propertyIsEnumerable},5537:function(n,r,a){var s=a("8378"),o=a("7726"),l="__core-js_shared__",u=o[l]||(o[l]={});(n.exports=function(h,c){return u[h]||(u[h]=c!==void 0?c:{})})("versions",[]).push({version:s.version,mode:a("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(n,r,a){var s=a("7726"),o=a("8378"),l=a("32e9"),u=a("2aba"),h=a("9b43"),c="prototype",d=function(f,p,m){var v=f&d.F,w=f&d.G,T=f&d.S,I=f&d.P,$=f&d.B,D=w?s:T?s[p]||(s[p]={}):(s[p]||{})[c],A=w?o:o[p]||(o[p]={}),W=A[c]||(A[c]={}),R,V,B,M;w&&(m=p);for(R in m)V=!v&&D&&D[R]!==void 0,B=(V?D:m)[R],M=$&&V?h(B,s):I&&typeof B=="function"?h(Function.call,B):B,D&&u(D,R,B,f&d.U),A[R]!=B&&l(A,R,M),I&&W[R]!=B&&(W[R]=B)};s.core=o,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},"5eda":function(n,r,a){var s=a("5ca1"),o=a("8378"),l=a("79e5");n.exports=function(u,h){var c=(o.Object||{})[u]||Object[u],d={};d[u]=h(c),s(s.S+s.F*l(function(){c(1)}),"Object",d)}},"5f1b":function(n,r,a){var s=a("23c6"),o=RegExp.prototype.exec;n.exports=function(l,u){var h=l.exec;if(typeof h=="function"){var c=h.call(l,u);if(typeof c!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return c}if(s(l)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(l,u)}},"613b":function(n,r,a){var s=a("5537")("keys"),o=a("ca5a");n.exports=function(l){return s[l]||(s[l]=o(l))}},"626a":function(n,r,a){var s=a("2d95");n.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return s(o)=="String"?o.split(""):Object(o)}},6762:function(n,r,a){var s=a("5ca1"),o=a("c366")(!0);s(s.P,"Array",{includes:function(u){return o(this,u,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(n,r,a){var s=a("626a"),o=a("be13");n.exports=function(l){return s(o(l))}},"69a8":function(n,r){var a={}.hasOwnProperty;n.exports=function(s,o){return a.call(s,o)}},"6a99":function(n,r,a){var s=a("d3f4");n.exports=function(o,l){if(!s(o))return o;var u,h;if(l&&typeof(u=o.toString)=="function"&&!s(h=u.call(o))||typeof(u=o.valueOf)=="function"&&!s(h=u.call(o))||!l&&typeof(u=o.toString)=="function"&&!s(h=u.call(o)))return h;throw TypeError("Can't convert object to primitive value")}},7333:function(n,r,a){var s=a("0d58"),o=a("2621"),l=a("52a7"),u=a("4bf8"),h=a("626a"),c=Object.assign;n.exports=!c||a("79e5")(function(){var d={},f={},p=Symbol(),m="abcdefghijklmnopqrst";return d[p]=7,m.split("").forEach(function(v){f[v]=v}),c({},d)[p]!=7||Object.keys(c({},f)).join("")!=m})?function(f,p){for(var m=u(f),v=arguments.length,w=1,T=o.f,I=l.f;v>w;)for(var $=h(arguments[w++]),D=T?s($).concat(T($)):s($),A=D.length,W=0,R;A>W;)I.call($,R=D[W++])&&(m[R]=$[R]);return m}:c},7726:function(n,r){var a=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},"77f1":function(n,r,a){var s=a("4588"),o=Math.max,l=Math.min;n.exports=function(u,h){return u=s(u),u<0?o(u+h,0):l(u,h)}},"79e5":function(n,r){n.exports=function(a){try{return!!a()}catch{return!0}}},"7f20":function(n,r,a){var s=a("86cc").f,o=a("69a8"),l=a("2b4c")("toStringTag");n.exports=function(u,h,c){u&&!o(u=c?u:u.prototype,l)&&s(u,l,{configurable:!0,value:h})}},8378:function(n,r){var a=n.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)},"84f2":function(n,r){n.exports={}},"86cc":function(n,r,a){var s=a("cb7c"),o=a("c69a"),l=a("6a99"),u=Object.defineProperty;r.f=a("9e1e")?Object.defineProperty:function(c,d,f){if(s(c),d=l(d,!0),s(f),o)try{return u(c,d,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(c[d]=f.value),c}},"9b43":function(n,r,a){var s=a("d8e8");n.exports=function(o,l,u){if(s(o),l===void 0)return o;switch(u){case 1:return function(h){return o.call(l,h)};case 2:return function(h,c){return o.call(l,h,c)};case 3:return function(h,c,d){return o.call(l,h,c,d)}}return function(){return o.apply(l,arguments)}}},"9c6c":function(n,r,a){var s=a("2b4c")("unscopables"),o=Array.prototype;o[s]==null&&a("32e9")(o,s,{}),n.exports=function(l){o[s][l]=!0}},"9def":function(n,r,a){var s=a("4588"),o=Math.min;n.exports=function(l){return l>0?o(s(l),9007199254740991):0}},"9e1e":function(n,r,a){n.exports=!a("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(n,r){n.exports=i},a481:function(n,r,a){var s=a("cb7c"),o=a("4bf8"),l=a("9def"),u=a("4588"),h=a("0390"),c=a("5f1b"),d=Math.max,f=Math.min,p=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,w=function(T){return T===void 0?T:String(T)};a("214f")("replace",2,function(T,I,$,D){return[function(R,V){var B=T(this),M=R==null?void 0:R[I];return M!==void 0?M.call(R,B,V):$.call(String(B),R,V)},function(W,R){var V=D($,W,this,R);if(V.done)return V.value;var B=s(W),M=String(this),et=typeof R=="function";et||(R=String(R));var ot=B.global;if(ot){var P=B.unicode;B.lastIndex=0}for(var y=[];;){var x=c(B,M);if(x===null||(y.push(x),!ot))break;var _=String(x[0]);_===""&&(B.lastIndex=h(M,l(B.lastIndex),P))}for(var E="",j=0,H=0;H<y.length;H++){x=y[H];for(var S=String(x[0]),g=d(f(u(x.index),M.length),0),C=[],F=1;F<x.length;F++)C.push(w(x[F]));var U=x.groups;if(et){var X=[S].concat(C,g,M);U!==void 0&&X.push(U);var Q=String(R.apply(void 0,X))}else Q=A(S,M,g,C,U,R);g>=j&&(E+=M.slice(j,g)+Q,j=g+S.length)}return E+M.slice(j)}];function A(W,R,V,B,M,et){var ot=V+W.length,P=B.length,y=v;return M!==void 0&&(M=o(M),y=m),$.call(et,y,function(x,_){var E;switch(_.charAt(0)){case"$":return"$";case"&":return W;case"`":return R.slice(0,V);case"'":return R.slice(ot);case"<":E=M[_.slice(1,-1)];break;default:var j=+_;if(j===0)return x;if(j>P){var H=p(j/10);return H===0?x:H<=P?B[H-1]===void 0?_.charAt(1):B[H-1]+_.charAt(1):x}E=B[j-1]}return E===void 0?"":E})}})},aae3:function(n,r,a){var s=a("d3f4"),o=a("2d95"),l=a("2b4c")("match");n.exports=function(u){var h;return s(u)&&((h=u[l])!==void 0?!!h:o(u)=="RegExp")}},ac6a:function(n,r,a){for(var s=a("cadf"),o=a("0d58"),l=a("2aba"),u=a("7726"),h=a("32e9"),c=a("84f2"),d=a("2b4c"),f=d("iterator"),p=d("toStringTag"),m=c.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},w=o(v),T=0;T<w.length;T++){var I=w[T],$=v[I],D=u[I],A=D&&D.prototype,W;if(A&&(A[f]||h(A,f,m),A[p]||h(A,p,I),c[I]=m,$))for(W in s)A[W]||l(A,W,s[W],!0)}},b0c5:function(n,r,a){var s=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(n,r){n.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},c366:function(n,r,a){var s=a("6821"),o=a("9def"),l=a("77f1");n.exports=function(u){return function(h,c,d){var f=s(h),p=o(f.length),m=l(d,p),v;if(u&&c!=c){for(;p>m;)if(v=f[m++],v!=v)return!0}else for(;p>m;m++)if((u||m in f)&&f[m]===c)return u||m||0;return!u&&-1}}},c649:function(n,r,a){(function(s){a.d(r,"c",function(){return f}),a.d(r,"a",function(){return c}),a.d(r,"b",function(){return l}),a.d(r,"d",function(){return d}),a("a481");function o(){return typeof window!="undefined"?window.console:s.console}var l=o();function u(p){var m=Object.create(null);return function(w){var T=m[w];return T||(m[w]=p(w))}}var h=/-(\w)/g,c=u(function(p){return p.replace(h,function(m,v){return v?v.toUpperCase():""})});function d(p){p.parentElement!==null&&p.parentElement.removeChild(p)}function f(p,m,v){var w=v===0?p.children[0]:p.children[v-1].nextSibling;p.insertBefore(m,w)}}).call(this,a("c8ba"))},c69a:function(n,r,a){n.exports=!a("9e1e")&&!a("79e5")(function(){return Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,r){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},ca5a:function(n,r){var a=0,s=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++a+s).toString(36))}},cadf:function(n,r,a){var s=a("9c6c"),o=a("d53b"),l=a("84f2"),u=a("6821");n.exports=a("01f9")(Array,"Array",function(h,c){this._t=u(h),this._i=0,this._k=c},function(){var h=this._t,c=this._k,d=this._i++;return!h||d>=h.length?(this._t=void 0,o(1)):c=="keys"?o(0,d):c=="values"?o(0,h[d]):o(0,[d,h[d]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},cb7c:function(n,r,a){var s=a("d3f4");n.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},ce10:function(n,r,a){var s=a("69a8"),o=a("6821"),l=a("c366")(!1),u=a("613b")("IE_PROTO");n.exports=function(h,c){var d=o(h),f=0,p=[],m;for(m in d)m!=u&&s(d,m)&&p.push(m);for(;c.length>f;)s(d,m=c[f++])&&(~l(p,m)||p.push(m));return p}},d2c8:function(n,r,a){var s=a("aae3"),o=a("be13");n.exports=function(l,u,h){if(s(u))throw TypeError("String#"+h+" doesn't accept regex!");return String(o(l))}},d3f4:function(n,r){n.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},d53b:function(n,r){n.exports=function(a,s){return{value:s,done:!!a}}},d8e8:function(n,r){n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},e11e:function(n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(n,r,a){var s=a("5ca1"),o=a("9def"),l=a("d2c8"),u="startsWith",h=""[u];s(s.P+s.F*a("5147")(u),"String",{startsWith:function(d){var f=l(this,d,u),p=o(Math.min(arguments.length>1?arguments[1]:void 0,f.length)),m=String(d);return h?h.call(f,m,p):f.slice(p,p+m.length)===m}})},f6fd:function(n,r){(function(a){var s="currentScript",o=a.getElementsByTagName("script");s in a||Object.defineProperty(a,s,{get:function(){try{throw new Error}catch(h){var l,u=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(h.stack)||[!1])[1];for(l in o)if(o[l].src==u||o[l].readyState=="interactive")return o[l];return null}}})})(document)},f751:function(n,r,a){var s=a("5ca1");s(s.S+s.F,"Object",{assign:a("7333")})},fa5b:function(n,r,a){n.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(n,r,a){var s=a("7726").document;n.exports=s&&s.documentElement},fb15:function(n,r,a){if(a.r(r),typeof window!="undefined"){a("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1])}a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d");function o(S){if(Array.isArray(S))return S}function l(S,g){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var C=[],F=!0,U=!1,X=void 0;try{for(var Q=S[Symbol.iterator](),ct;!(F=(ct=Q.next()).done)&&(C.push(ct.value),!(g&&C.length===g));F=!0);}catch(kt){U=!0,X=kt}finally{try{!F&&Q.return!=null&&Q.return()}finally{if(U)throw X}}return C}}function u(S,g){(g==null||g>S.length)&&(g=S.length);for(var C=0,F=new Array(g);C<g;C++)F[C]=S[C];return F}function h(S,g){if(!!S){if(typeof S=="string")return u(S,g);var C=Object.prototype.toString.call(S).slice(8,-1);if(C==="Object"&&S.constructor&&(C=S.constructor.name),C==="Map"||C==="Set")return Array.from(S);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return u(S,g)}}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
19
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(S,g){return o(S)||l(S,g)||h(S,g)||c()}a("6762"),a("2fdb");function f(S){if(Array.isArray(S))return u(S)}function p(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
20
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(S){return f(S)||p(S)||h(S)||m()}var w=a("a352"),T=a.n(w),I=a("c649");function $(S,g,C){return C===void 0||(S=S||{},S[g]=C),S}function D(S,g){return S.map(function(C){return C.elm}).indexOf(g)}function A(S,g,C,F){if(!S)return[];var U=S.map(function(ct){return ct.elm}),X=g.length-F,Q=v(g).map(function(ct,kt){return kt>=X?U.length:U.indexOf(ct)});return C?Q.filter(function(ct){return ct!==-1}):Q}function W(S,g){var C=this;this.$nextTick(function(){return C.$emit(S.toLowerCase(),g)})}function R(S){var g=this;return function(C){g.realList!==null&&g["onDrag"+S](C),W.call(g,S,C)}}function V(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var g=d(S,1),C=g[0].componentOptions;return C?V(C.tag):!1}function M(S,g,C){return S[C]||(g[C]?g[C]():void 0)}function et(S,g,C){var F=0,U=0,X=M(g,C,"header");X&&(F=X.length,S=S?[].concat(v(X),v(S)):v(X));var Q=M(g,C,"footer");return Q&&(U=Q.length,S=S?[].concat(v(S),v(Q)):v(Q)),{children:S,headerOffset:F,footerOffset:U}}function ot(S,g){var C=null,F=function(xt,Me){C=$(C,xt,Me)},U=Object.keys(S).filter(function(kt){return kt==="id"||kt.startsWith("data-")}).reduce(function(kt,xt){return kt[xt]=S[xt],kt},{});if(F("attrs",U),!g)return C;var X=g.on,Q=g.props,ct=g.attrs;return F("on",X),F("props",Q),Object.assign(C.attrs,ct),C}var P=["Start","Add","Remove","Update","End"],y=["Choose","Unchoose","Sort","Filter","Clone"],x=["Move"].concat(P,y).map(function(S){return"on"+S}),_=null,E={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(g){return g}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:E,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(g){var C=this.$slots.default;this.transitionMode=B(C);var F=et(C,this.$slots,this.$scopedSlots),U=F.children,X=F.headerOffset,Q=F.footerOffset;this.headerOffset=X,this.footerOffset=Q;var ct=ot(this.$attrs,this.componentData);return g(this.getTag(),ct,U)},created:function(){this.list!==null&&this.value!==null&&I.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&I.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&I.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var g=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var C={};P.forEach(function(X){C["on"+X]=R.call(g,X)}),y.forEach(function(X){C["on"+X]=W.bind(g,X)});var F=Object.keys(this.$attrs).reduce(function(X,Q){return X[Object(I.a)(Q)]=g.$attrs[Q],X},{}),U=Object.assign({},this.options,F,C,{onMove:function(Q,ct){return g.onDragMove(Q,ct)}});!("draggable"in U)&&(U.draggable=">*"),this._sortable=new T.a(this.rootContainer,U),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(g){this.updateOptions(g)},deep:!0},$attrs:{handler:function(g){this.updateOptions(g)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var g=this._vnode.fnOptions;return g&&g.functional},getTag:function(){return this.tag||this.element},updateOptions:function(g){for(var C in g){var F=Object(I.a)(C);x.indexOf(F)===-1&&this._sortable.option(F,g[C])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var g=this.$slots.default;return this.transitionMode?g[0].child.$slots.default:g},computeIndexes:function(){var g=this;this.$nextTick(function(){g.visibleIndexes=A(g.getChildrenNodes(),g.rootContainer.children,g.transitionMode,g.footerOffset)})},getUnderlyingVm:function(g){var C=D(this.getChildrenNodes()||[],g);if(C===-1)return null;var F=this.realList[C];return{index:C,element:F}},getUnderlyingPotencialDraggableComponent:function(g){var C=g.__vue__;return!C||!C.$options||!V(C.$options._componentTag)?!("realList"in C)&&C.$children.length===1&&"realList"in C.$children[0]?C.$children[0]:C:C.$parent},emitChanges:function(g){var C=this;this.$nextTick(function(){C.$emit("change",g)})},alterList:function(g){if(this.list){g(this.list);return}var C=v(this.value);g(C),this.$emit("input",C)},spliceList:function(){var g=arguments,C=function(U){return U.splice.apply(U,v(g))};this.alterList(C)},updatePosition:function(g,C){var F=function(X){return X.splice(C,0,X.splice(g,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(g){var C=g.to,F=g.related,U=this.getUnderlyingPotencialDraggableComponent(C);if(!U)return{component:U};var X=U.realList,Q={list:X,component:U};if(C!==F&&X&&U.getUnderlyingVm){var ct=U.getUnderlyingVm(F);if(ct)return Object.assign(ct,Q)}return Q},getVmIndex:function(g){var C=this.visibleIndexes,F=C.length;return g>F-1?F:C[g]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(g){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var C=this.getChildrenNodes();C[g].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(g){this.context=this.getUnderlyingVm(g.item),g.item._underlying_vm_=this.clone(this.context.element),_=g.item},onDragAdd:function(g){var C=g.item._underlying_vm_;if(C!==void 0){Object(I.d)(g.item);var F=this.getVmIndex(g.newIndex);this.spliceList(F,0,C),this.computeIndexes();var U={element:C,newIndex:F};this.emitChanges({added:U})}},onDragRemove:function(g){if(Object(I.c)(this.rootContainer,g.item,g.oldIndex),g.pullMode==="clone"){Object(I.d)(g.clone);return}var C=this.context.index;this.spliceList(C,1);var F={element:this.context.element,oldIndex:C};this.resetTransitionData(C),this.emitChanges({removed:F})},onDragUpdate:function(g){Object(I.d)(g.item),Object(I.c)(g.from,g.item,g.oldIndex);var C=this.context.index,F=this.getVmIndex(g.newIndex);this.updatePosition(C,F);var U={element:this.context.element,oldIndex:C,newIndex:F};this.emitChanges({moved:U})},updateProperty:function(g,C){g.hasOwnProperty(C)&&(g[C]+=this.headerOffset)},computeFutureIndex:function(g,C){if(!g.element)return 0;var F=v(C.to.children).filter(function(ct){return ct.style.display!=="none"}),U=F.indexOf(C.related),X=g.component.getVmIndex(U),Q=F.indexOf(_)!==-1;return Q||!C.willInsertAfter?X:X+1},onDragMove:function(g,C){var F=this.move;if(!F||!this.realList)return!0;var U=this.getRelatedContextFromMoveEvent(g),X=this.context,Q=this.computeFutureIndex(U,g);Object.assign(X,{futureIndex:Q});var ct=Object.assign({},g,{relatedContext:U,draggedContext:X});return F(ct,C)},onDragEnd:function(){this.computeIndexes(),_=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(Dd);var yx=up(Dd.exports),bx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"app-page"},[i("van-sticky",{staticClass:"myapp-sticky",attrs:{"offset-top":48}},[i("div",{ref:"myapp",staticClass:"myapp",style:{width:"-webkit-fill-available"}},[i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" \u6211\u7684\u5E94\u7528 "),i("van-button",{staticClass:"edit-btn",attrs:{size:"small",type:"info",text:this.editButtonName},on:{click:e.toggleEdit}})],1)]),i("draggable",{staticClass:"wrapper",attrs:{options:{disabled:e.disableDraggable}},model:{value:e.my_apps,callback:function(n){e.my_apps=n},expression:"my_apps"}},[i("transition-group",{staticClass:"my-app-list",staticStyle:{display:"flex","flex-wrap":"wrap"}},e._l(e.my_apps,function(n,r){return i("apps-item",{key:r,staticClass:"item",staticStyle:{width:"25%",padding:"16px 8px","box-sizing":"border-box"},attrs:{item:n,state:n.state,editStatus:e.currentEditStatus=="on"?"minus":"off"},on:{touchend:e.rmFromMyAppsClick}})}),1)],1)],1)])]),i("van-tabs",{attrs:{color:"#488aff",scrollspy:"",sticky:"","offset-top":e.offsetTop},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,staticClass:"menu"},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:e.currentEditStatus=="on"?"plus":"off"},on:{touchend:e.addToMyAppsClick}})],1)}),1)],1)}),1),i("tabbar")],1)],1)},Sx=[];const Cx={components:{tabbar:Ai,MyApps:Vs,appsItem:sn,Draggable:yx},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){St("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},Zd={};var xx=at(Cx,bx,Sx,!1,$x,null,null,null);function $x(e){for(let t in Zd)this[t]=Zd[t]}var oo=function(){return xx.exports}(),kx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app"},[i("van-sticky",[i("van-nav-bar",{attrs:{title:e.title,"right-text":"\u4FDD\u5B58","left-arrow":""},on:{"click-left":e.back,"click-right":e.save}})],1),i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(e.title))])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,on:{click:function(r){return e.rmFromMyApps(n)}}},[i("div",{staticStyle:{height:"100%"}},[i("van-badge",{attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:"minus"}})]},proxy:!0}],null,!0)},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1)]),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])],1)])}),1)],1),i("van-tabs",{attrs:{scrollspy:"",sticky:""},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:10,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,on:{click:function(s){return e.addToMyApps(a)}}},[a.state?i("div",{staticStyle:{height:"100%"}},[i("van-badge",{attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:"plus"}})]},proxy:!0}],null,!0)},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1)]),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(a.meta.title))])])],1):i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(a.meta.title))])])])])}),1)],1)}),1)],1)},Tx=[],ik="";const Ix={name:"IndMAppsEdit",data(){return{myAppList:[],active:0,name:"apps",apps_menus:[],title:"\u5E94\u7528\u7BA1\u7406"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList;let t=this.$store.getters.getMenuTreeList.filter(i=>i.name===this.name)[0].children;this.title=t[0].meta.title,this.mergeData(this.myAppList,t),this.apps_menus=t,console.log(t)},methods:{back(){this.$router.back()},save(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.myAppList),this.$router.back()}).catch(()=>{})},mergeData(e,t){return t.forEach(i=>{let n=!1;for(let r of e)if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1;break}n||(i.state=!0),i.children&&this.mergeData(e,i.children)}),t},addToMyApps(e){if(this.myAppList.length!==0)for(var t=0;t<this.myAppList.length;t++)if(this.myAppList.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.myAppList.push(this.findMenu(this.apps_menus,e,!1));break}else this.myAppList.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.myAppList.length;t++)if(this.myAppList[t].meta.permissionId===e.meta.permissionId){this.myAppList.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},Qd={};var _x=at(Ix,kx,Tx,!1,Ex,"1cee7da5",null,null);function Ex(e){for(let t in Qd)this[t]=Qd[t]}var lo=function(){return _x.exports}(),Dx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-myApp-slim"},[i("div",{staticClass:"ind-myApp-slim-content"},[i("div",{staticClass:"ind-myApp-slim-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-icon-group"},[e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"50%"},attrs:{src:n.meta.icon,alt:n.meta.title}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[e._t("default")],2)])},Ox=[];const Mx={data(){return{}},props:{icons:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{getIcons(){return this.icons},displayedIcons(){return this.icons.slice(0,9)},showMoreIcon(){return this.icons.length>9},moreCount(){const e=this.icons.length-9;return e>99?"99":e}},methods:{edit(){this.$emit("edit")},open(){this.$emit("open")}}},tf={};var Lx=at(Mx,Dx,Ox,!1,Ax,null,null,null);function Ax(e){for(let t in tf)this[t]=tf[t]}var ef=function(){return Lx.exports}(),Nx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("van-grid",{attrs:{"column-num":4}},e._l(e.searchApp,function(n,r){return i("van-grid-item",{key:r},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1)],1),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp},on:{edit:e.edit,open:e.open}},[e.disMyapp?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.paginatedApps,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.paginatedApps.length>1?"20px":"0"}},[i("van-grid",{attrs:{"column-num":4,border:!1}},e._l(n,function(a,s){return i("van-grid-item",{key:s},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1)],1)])}),1)],1):e._e()]),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{staticClass:"ind-m-sidebar-text"},[e._v(e._s(n.meta.title))])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{staticClass:"ind-m-menu-section-content"},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,class:["ind-m-app-item-wrapper",{"full-width":a.children}]},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":3}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("van-grid-item",{key:o.meta.permissionId,staticClass:"menu"},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},Px=[];const Bx={components:{tabbar:Ai,appsItem:sn,myapp:ef},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){var i;this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList")),this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((n,r)=>{this.$set(this.tabActiveKeys,r,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,u)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=u)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList,t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},nf={};var Fx=at(Bx,Nx,Px,!1,Rx,null,null,null);function Rx(e){for(let t in nf)this[t]=nf[t]}var Vx=function(){return Fx.exports}(),jx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("van-grid",{attrs:{"column-num":4}},e._l(e.searchApp,function(n,r){return i("van-grid-item",{key:r},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1)],1),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp},on:{edit:e.edit,open:e.open}},[e.disMyapp?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.paginatedApps,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.paginatedApps.length>1?"20px":"0"}},[i("van-grid",{attrs:{"column-num":4,border:!1}},e._l(n,function(a,s){return i("van-grid-item",{key:s},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1)],1)])}),1)],1):e._e()]),i("div",[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-my-app-container",style:{height:e.disMyapp?"calc(100vh - 480px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("div",{key:r,ref:"contentSection"+r,refInFor:!0,staticClass:"ind-my-app-container-square"},[i("div",{staticClass:"ind-my-app-container-square-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{"column-num":4,border:!1}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1)],1)}),0)]),i("tabbar")],1)],1)},zx=[];function Hx(e){return e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),{...t,children:i.map(r=>({...r,children:void 0}))}})}const Ux={components:{tabbar:Ai,appsItem:sn,myapp:ef},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],scrollObserver:null}},mounted(){var i;this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList")),this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.name===this.name);this.apps_menus=t[0].children,this.apps_menus=Hx(this.apps_menus),this.title=t[0].meta.title,this.$nextTick(()=>{this.setupScrollObserver()})},beforeDestroy(){this.scrollObserver&&this.scrollObserver.disconnect()},methods:{setupScrollObserver(){const e=document.querySelector(".ind-my-app-container");if(!e)return;const t=Array.from(e.children);t.length!==0&&(this.scrollObserver&&this.scrollObserver.disconnect(),this.scrollObserver=new IntersectionObserver(i=>{let n=null,r=0;if(i.forEach(a=>{a.intersectionRatio>r&&(r=a.intersectionRatio,n=a.target)}),n){const a=Array.from(e.children).indexOf(n);a!==-1&&this.active!==a&&(this.active=a,this.scrollTabIntoView(a))}},{root:e,rootMargin:"-30% 0px -70% 0px",threshold:[0,.1,.5,1]}),t.forEach(i=>{this.scrollObserver.observe(i)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e),this.scrollToContent(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container"),i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList,t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},rf={};var Kx=at(Ux,jx,zx,!1,Wx,null,null,null);function Wx(e){for(let t in rf)this[t]=rf[t]}var Yx=function(){return Kx.exports}(),Xx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},qx=[];function af(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=af(n,t+1);r>i&&(i=r)}return i}function Gx(e){let t=0;for(const i of e){const n=af(i);n>t&&(t=n)}return t}const Jx={components:{aboveleveltwo:Vx,leveltwo:Yx},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList;((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&(e=e.find(a=>{var s;return a.extendProps&&((s=JSON.parse(a.extendProps))==null?void 0:s.mainMobile)=="1"}).children);let t=e.filter(r=>r.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.appsMenusExtended(this.apps_menus);const i=Gx(this.apps_menus);this.depth=i},computed:{currentComponent(){var e,t;if(this.level=((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.theLevel)||3,this.depth=this.depth||4,this.level==2&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},sf={};var Zx=at(Jx,Xx,qx,!1,Qx,null,null,null);function Qx(e){for(let t in sf)this[t]=sf[t]}var co=function(){return Zx.exports}(),t1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"custom-overlay",class:{show:e.loading},on:{click:function(n){n.stopPropagation()}}},[e.isFullScreenLoading&&e.loadingImageUrl(!0)?i("div",{staticClass:"ind-loading-wrapper-global"},[i("img",{staticStyle:{height:"100%",width:"100%"},attrs:{src:e.loadingImageUrl(!0),alt:""}}),i("div",{staticClass:"ind-loading-wrapper-text"},[e._v(" "+e._s(e.text||"\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...")+" ")])]):!e.isFullScreenLoading&&e.loadingImageUrl(!1)?i("div",{staticClass:"ind-loading-wrapper-local"},[i("div",{staticClass:"ind-loading-block ind-vcenter"},[i("div",{staticClass:"ind-loading-block-center"},[i("img",{attrs:{src:e.loadingImageUrl(!1),alt:""}}),i("div",{staticClass:"ind-loading-block-text"},[e._v(e._s(e.text||"\u52A0\u8F7D\u4E2D..."))])])])]):e.loadingImageUrl(!1)?e._e():i("div",{staticClass:"ind-loading-wrapper-local"},[i("div",{staticClass:"ind-loading-block ind-vcenter"},[i("div",{staticClass:"ind-loading-block-center"},[i("div",{staticClass:"img-divv"},[i("van-loading")],1),i("div",{staticClass:"ind-loading-block-text"},[e._v(e._s(e.text||"\u52A0\u8F7D\u4E2D..."))])])])])])},e1=[];const i1={props:{loading:Boolean,isFullScreenLoading:{type:Boolean,default:!1},text:String},data(){return{}},methods:{loadingImageUrl(e){const t=e?"systemDefaultConfig.globalLoading":"systemDefaultConfig.localLoading",i=this.getSafeConfigValue(t);return i&&i.trim()!==""?`/user-manage-server/oss/file/get/${i}`:!1},getSafeConfigValue(e){if(!!this.$config)return e.split(".").reduce((t,i)=>t&&t[i]!==void 0?t[i]:void 0,this.$config)}}},of={};var n1=at(i1,t1,e1,!1,r1,null,null,null);function r1(e){for(let t in of)this[t]=of[t]}var lf=function(){return n1.exports}(),a1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-page"},[i("van-sticky",[i("van-nav-bar",{attrs:{fixed:!0,"left-arrow":"",placeholder:!0,"safe-area-inset-top":!0,title:"\u8BBE\u7F6E"},on:{"click-left":e.onClickLeft}})],1),i("van-cell-group",{attrs:{title:"\u8BBE\u7F6E"}},[i("van-cell",{attrs:{title:"vconsole\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.vconsoleChecked,callback:function(n){e.vconsoleChecked=n},expression:"vconsoleChecked"}})],1),e.isHb?i("van-cell",{attrs:{title:"\u8FDC\u7A0B\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.chiiChecked,callback:function(n){e.chiiChecked=n},expression:"chiiChecked"}})],1):e._e()],1)],1)},s1=[];const o1={data(){return{vconsoleChecked:!1,chiiChecked:!1,isHb:location.pathname.includes("scyxweb")}},watch:{vconsoleChecked:function(){if(this.vconsoleChecked){const e=document.createElement("script");e.src="vconsole.min.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e.onload=function(){window.vConsole=new VConsole}}this.vconsoleChecked=!0},chiiChecked:function(){if(this.chiiChecked){const e=document.createElement("script");e.src="//dev.sunquan.tech/inspect/target.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}this.chiiChecked=!0}},methods:{onClickLeft(){this.$router.back()}}},cf={};var l1=at(o1,a1,s1,!1,c1,null,null,null);function c1(e){for(let t in cf)this[t]=cf[t]}var uo=function(){return l1.exports}(),ho=Object.freeze(Object.defineProperty({__proto__:null,NotFound:zi,ErrorContent:Jr,DatePicker:Ro,Form:Ko,LoadMore:Yo,User1:el,BasicLayout:nl,EmptyLayout:Ci,DetailView:sl,PageView:ll,PopupView:ul,QueryView:dl,Login:Fs,Search:yd,SelectPanel:Cd,InputSelect:xd,SelectBtn:kd,User:Rs,Apps:oo,AppsEdit:lo,MyApps:Vs,AppsNew:co,appItem:sn,tabbar:Ai,LoadingPanel:lf,Setting:uo},Symbol.toStringTag,{value:"Module"})),uf={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||N.config)}},hf={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:b.default.cloneDeep(b.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},u1=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:uf,IndRouterPlugin:hf},Symbol.toStringTag,{value:"Module"}));const df=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},ff={bind:df,update:df};var fo=Object.freeze(Object.defineProperty({__proto__:null,permission:ff},Symbol.toStringTag,{value:"Module"}));const pf={name:je.rootRouteName,path:"/",redirect:"/home",component:Ci,meta:{hideInMenu:!0,notCache:!0},children:[{name:je.homeRouteName,path:"home",redirect:"/apps?t="+new Date().getTime(),meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},h1={name:je.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:Fs},d1={name:"user",path:"/user",component:Rs,meta:{hideInMenu:!0,notCache:!0}},f1={name:"setting",path:"/setting",component:uo,meta:{hideInMenu:!0,notCache:!0}},p1={name:"apps",path:"/apps",component:oo,meta:{hideInMenu:!0,notCache:!0}},m1={name:"appsNew",path:"/appsNew",component:co,meta:{hideInMenu:!0,notCache:!0}},v1={name:"appsEdit",path:"/appsEdit",component:lo,meta:{hideInMenu:!0,notCache:!0}},g1={path:"/404",meta:{hideInMenu:!0},component:zi};function y1({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(pf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[h1]:[];return[i,...n,d1,f1,p1,v1,g1,m1]}function b1({rootChildren:e}={}){const t=b.default.cloneDeep(pf);return t.component=Ci,t.children=[],e&&e.length&&t.children.push(...e),[t]}const S1={EmptyLayout:{component:Ci},EmptyLayoutNotCache:{component:{...Ci,name:"IndEmptyLayoutNotCache"}}},Br={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function mf(e){return[Br.DIRECTORY,Br.MENU].includes(e)}function vf(e,t=[]){return e?t.filter(i=>{const n=(i==null?void 0:i.permissionValue)||"";return n.startsWith(e)||n.startsWith(`${N.config.routerBase}-${e}`)}):t}function po({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=N.getSessionStorage("appInfo");e.forEach(o=>{const{permissionId:l,label:u,appId:h,pid:c,icon:d,type:f,uri:p,permissionValue:m,extendProps:v}=o;if(h!=s.appId)return;const w=m;let T=!1,I=!1;if(o&&o.extendProps)try{T=JSON.parse(o.extendProps).hideInIbp==="1"}catch{T=!1}try{if(o&&o.extension){const $=JSON.parse(o.extension);$.extendProps&&(typeof $.extendProps=="string"?JSON.parse($.extendProps):$.extendProps).hideInMenu==1&&(I=!0)}}catch{I=!1}if(c===n&&!(T||I)){if(mf(f)){let $={type:f,name:w,pid:c,path:gf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:u,icon:d,crumbs:[...r],activeName:w},children:[],extendProps:v};$.meta.crumbs.push({icon:d,name:w,title:u,type:f}),Br.DIRECTORY===f&&($.component="EmptyLayout"),po({list:e,menuTree:$.children,pageNode:i,parentId:l,crumbs:$.meta.crumbs,root:!1}),$.children.length||delete $.children,t.push($)}if(Br.PAGE===f){let $={type:f,name:w,pid:c,path:gf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:u,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};$.meta.crumbs.push({icon:d,name:w,title:u,type:f}),i.children.push($)}}})}function gf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function yf(e=[]){e=e.filter(i=>mf(i.type));const t=[];return po({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function C1(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return po({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),mo(t)}function mo(e=[]){for(let t of e)if(t.component){const i=S1[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||zi):(console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${t.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`),t.component=zi),t.children&&t.children.length>0&&mo(t.children)}return e}var vo={exports:{}},bf=function(t,i){return function(){for(var r=new Array(arguments.length),a=0;a<r.length;a++)r[a]=arguments[a];return t.apply(i,r)}},w1=bf,gi=Object.prototype.toString;function go(e){return gi.call(e)==="[object Array]"}function yo(e){return typeof e=="undefined"}function x1(e){return e!==null&&!yo(e)&&e.constructor!==null&&!yo(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function $1(e){return gi.call(e)==="[object ArrayBuffer]"}function k1(e){return typeof FormData!="undefined"&&e instanceof FormData}function T1(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function I1(e){return typeof e=="string"}function _1(e){return typeof e=="number"}function Sf(e){return e!==null&&typeof e=="object"}function Fr(e){if(gi.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function E1(e){return gi.call(e)==="[object Date]"}function D1(e){return gi.call(e)==="[object File]"}function O1(e){return gi.call(e)==="[object Blob]"}function Cf(e){return gi.call(e)==="[object Function]"}function M1(e){return Sf(e)&&Cf(e.pipe)}function L1(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function A1(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function N1(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function bo(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),go(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function So(){var e={};function t(r,a){Fr(e[a])&&Fr(r)?e[a]=So(e[a],r):Fr(r)?e[a]=So({},r):go(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)bo(arguments[i],t);return e}function P1(e,t,i){return bo(t,function(r,a){i&&typeof r=="function"?e[a]=w1(r,i):e[a]=r}),e}function B1(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Jt={isArray:go,isArrayBuffer:$1,isBuffer:x1,isFormData:k1,isArrayBufferView:T1,isString:I1,isNumber:_1,isObject:Sf,isPlainObject:Fr,isUndefined:yo,isDate:E1,isFile:D1,isBlob:O1,isFunction:Cf,isStream:M1,isURLSearchParams:L1,isStandardBrowserEnv:N1,forEach:bo,merge:So,extend:P1,trim:A1,stripBOM:B1},Ri=Jt;function wf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var xf=function(t,i,n){if(!i)return t;var r;if(n)r=n(i);else if(Ri.isURLSearchParams(i))r=i.toString();else{var a=[];Ri.forEach(i,function(l,u){l===null||typeof l=="undefined"||(Ri.isArray(l)?u=u+"[]":l=[l],Ri.forEach(l,function(c){Ri.isDate(c)?c=c.toISOString():Ri.isObject(c)&&(c=JSON.stringify(c)),a.push(wf(u)+"="+wf(c))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},F1=Jt;function Rr(){this.handlers=[]}Rr.prototype.use=function(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Rr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Rr.prototype.forEach=function(t){F1.forEach(this.handlers,function(n){n!==null&&t(n)})};var R1=Rr,V1=Jt,j1=function(t,i){V1.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},$f=function(t,i,n,r,a){return t.config=i,n&&(t.code=n),t.request=r,t.response=a,t.isAxiosError=!0,t.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:this.config,code:this.code}},t},z1=$f,kf=function(t,i,n,r,a){var s=new Error(t);return z1(s,i,n,r,a)},H1=kf,U1=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(H1("Request failed with status code "+n.status,n.config,null,n.request,n))},Vr=Jt,K1=Vr.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Vr.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Vr.isString(a)&&l.push("path="+a),Vr.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(i){var n=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),W1=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Y1=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},X1=W1,q1=Y1,G1=function(t,i){return t&&!X1(i)?q1(t,i):i},Co=Jt,J1=["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"],Z1=function(t){var i={},n,r,a;return t&&Co.forEach(t.split(`
|
|
21
|
-
`),function(o){if(a=o.indexOf(":"),n=Co.trim(o.substr(0,a)).toLowerCase(),r=Co.trim(o.substr(a+1)),n){if(i[n]&&J1.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},Tf=Jt,Q1=Tf.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n;function r(a){var s=a;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=r(window.location.href),function(s){var o=Tf.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),jr=Jt,t$=U1,e$=K1,i$=xf,n$=G1,r$=Z1,a$=Q1,wo=kf,If=function(t){return new Promise(function(n,r){var a=t.data,s=t.headers,o=t.responseType;jr.isFormData(a)&&delete s["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var u=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(u+":"+h)}var c=n$(t.baseURL,t.url);l.open(t.method.toUpperCase(),i$(c,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function d(){if(!!l){var p="getAllResponseHeaders"in l?r$(l.getAllResponseHeaders()):null,m=!o||o==="text"||o==="json"?l.responseText:l.response,v={data:m,status:l.status,statusText:l.statusText,headers:p,config:t,request:l};t$(n,r,v),l=null}}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){!l||(r(wo("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(wo("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(wo(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},jr.isStandardBrowserEnv()){var f=(t.withCredentials||a$(c))&&t.xsrfCookieName?e$.read(t.xsrfCookieName):void 0;f&&(s[t.xsrfHeaderName]=f)}"setRequestHeader"in l&&jr.forEach(s,function(m,v){typeof a=="undefined"&&v.toLowerCase()==="content-type"?delete s[v]:l.setRequestHeader(v,m)}),jr.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(m){!l||(l.abort(),r(m),l=null)}),a||(a=null),l.send(a)})},Ot=Jt,_f=j1,s$=$f,o$={"Content-Type":"application/x-www-form-urlencoded"};function Ef(e,t){!Ot.isUndefined(e)&&Ot.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l$(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=If),e}function c$(e,t,i){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var zr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l$(),transformRequest:[function(t,i){return _f(i,"Accept"),_f(i,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t)?t:Ot.isArrayBufferView(t)?t.buffer:Ot.isURLSearchParams(t)?(Ef(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ot.isObject(t)||i&&i["Content-Type"]==="application/json"?(Ef(i,"application/json"),c$(t)):t}],transformResponse:[function(t){var i=this.transitional,n=i&&i.silentJSONParsing,r=i&&i.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?s$(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};zr.headers={common:{Accept:"application/json, text/plain, */*"}},Ot.forEach(["delete","get","head"],function(t){zr.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){zr.headers[t]=Ot.merge(o$)});var xo=zr,u$=Jt,h$=xo,d$=function(t,i,n){var r=this||h$;return u$.forEach(n,function(s){t=s.call(r,t,i)}),t},Df=function(t){return!!(t&&t.__CANCEL__)},Of=Jt,$o=d$,f$=Df,p$=xo;function ko(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var m$=function(t){ko(t),t.headers=t.headers||{},t.data=$o.call(t,t.data,t.headers,t.transformRequest),t.headers=Of.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Of.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||p$.adapter;return i(t).then(function(r){return ko(t),r.data=$o.call(t,r.data,r.headers,t.transformResponse),r},function(r){return f$(r)||(ko(t),r&&r.response&&(r.response.data=$o.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Pt=Jt,Mf=function(t,i){i=i||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(d,f){return Pt.isPlainObject(d)&&Pt.isPlainObject(f)?Pt.merge(d,f):Pt.isPlainObject(f)?Pt.merge({},f):Pt.isArray(f)?f.slice():f}function u(d){Pt.isUndefined(i[d])?Pt.isUndefined(t[d])||(n[d]=l(void 0,t[d])):n[d]=l(t[d],i[d])}Pt.forEach(r,function(f){Pt.isUndefined(i[f])||(n[f]=l(void 0,i[f]))}),Pt.forEach(a,u),Pt.forEach(s,function(f){Pt.isUndefined(i[f])?Pt.isUndefined(t[f])||(n[f]=l(void 0,t[f])):n[f]=l(void 0,i[f])}),Pt.forEach(o,function(f){f in i?n[f]=l(t[f],i[f]):f in t&&(n[f]=l(void 0,t[f]))});var h=r.concat(a).concat(s).concat(o),c=Object.keys(t).concat(Object.keys(i)).filter(function(f){return h.indexOf(f)===-1});return Pt.forEach(c,u),n},v$={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},Lf=v$,To={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){To[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Af={},g$=Lf.version.split(".");function Nf(e,t){for(var i=t?t.split("."):g$,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}To.transitional=function(t,i,n){var r=i&&Nf(i);function a(s,o){return"[Axios v"+Lf.version+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return function(s,o,l){if(t===!1)throw new Error(a(o," has been removed in "+i));return r&&!Af[o]&&(Af[o]=!0,console.warn(a(o," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,o,l):!0}};function y$(e,t,i){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],s=t[a];if(s){var o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new TypeError("option "+a+" must be "+l);continue}if(i!==!0)throw Error("Unknown option "+a)}}var b$={isOlderVersion:Nf,assertOptions:y$,validators:To},Pf=Jt,S$=xf,Bf=R1,Ff=m$,Hr=Mf,Rf=b$,Vi=Rf.validators;function Cn(e){this.defaults=e,this.interceptors={request:new Bf,response:new Bf}}Cn.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Hr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&Rf.assertOptions(i,{silentJSONParsing:Vi.transitional(Vi.boolean,"1.0.0"),forcedJSONParsing:Vi.transitional(Vi.boolean,"1.0.0"),clarifyTimeoutError:Vi.transitional(Vi.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(r=r&&d.synchronous,n.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!r){var o=[Ff,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(a),s=Promise.resolve(t);o.length;)s=s.then(o.shift(),o.shift());return s}for(var l=t;n.length;){var u=n.shift(),h=n.shift();try{l=u(l)}catch(c){h(c);break}}try{s=Ff(l)}catch(c){return Promise.reject(c)}for(;a.length;)s=s.then(a.shift(),a.shift());return s},Cn.prototype.getUri=function(t){return t=Hr(this.defaults,t),S$(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Pf.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(i,n){return this.request(Hr(n||{},{method:t,url:i,data:(n||{}).data}))}}),Pf.forEach(["post","put","patch"],function(t){Cn.prototype[t]=function(i,n,r){return this.request(Hr(r||{},{method:t,url:i,data:n}))}});var C$=Cn;function Io(e){this.message=e}Io.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Io.prototype.__CANCEL__=!0;var Vf=Io,w$=Vf;function Ur(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(r){t=r});var i=this;e(function(r){i.reason||(i.reason=new w$(r),t(i.reason))})}Ur.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ur.source=function(){var t,i=new Ur(function(r){t=r});return{token:i,cancel:t}};var x$=Ur,$$=function(t){return function(n){return t.apply(null,n)}},k$=function(t){return typeof t=="object"&&t.isAxiosError===!0},jf=Jt,T$=bf,Kr=C$,I$=Mf,_$=xo;function zf(e){var t=new Kr(e),i=T$(Kr.prototype.request,t);return jf.extend(i,Kr.prototype,t),jf.extend(i,t),i}var xe=zf(_$);xe.Axios=Kr,xe.create=function(t){return zf(I$(xe.defaults,t))},xe.Cancel=Vf,xe.CancelToken=x$,xe.isCancel=Df,xe.all=function(t){return Promise.all(t)},xe.spread=$$,xe.isAxiosError=k$,vo.exports=xe,vo.exports.default=xe;var E$=vo.exports;const Wr=location.pathname.includes("scyxweb"),D$=navigator.userAgent.toLowerCase(),O$=!!/wxwork/.test(D$),Hf={set:function(e,t,i){if(e.indexOf("=")!==-1)throw new Error("Cookie\u4E0D\u652F\u6301key\u4E2D\u4F7F\u7528\u7B49\u53F7\u3010=\u3011, key:"+e);let n=new Date;n.setTime(n.getTime()+24*60*60*1e3*i),window.document.cookie=e+"="+t+";path=/;expires="+n.toGMTString()},get:function(e){if(document.cookie.length>0){var t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let r=t[n].split("=");if(r[0]===e){var i=r[1];for(let a=2;a<r.length;a++)i+="="+r[a];return i}}}}};async function M$({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:r}){var p,m;await t.dispatch("getUserInfo"),await t.dispatch("getAppListData");const a=await t.dispatch("getPermissionData"),s=JSON.parse(((m=(p=N.getSessionStorage("appInfo"))==null?void 0:p.extendProps)==null?void 0:m.extendProps)||"{}"),o=N.getLocalStorage("versionInfo");if(o){if(s.appVersion>o.appVersion){N.setLocalStorage("versionInfo",s);let v=window.location.href,w=new URL(v),T=new URLSearchParams(w.search);T.set("v",s.appVersion),w.search=T.toString(),window.location.href=w.href}}else N.setLocalStorage("versionInfo",s);e.options=b.default.cloneDeep(r);const l=vf(i,a),u=C1(l);console.log("dynamicROuters",u);const h=e.options.routes.find(v=>v.path==="/");for(const v of u)e.addRoute(h.name,v),h.children.push(v);const d=vf(i,n).filter(v=>e.options.routes.findIndex(w=>v.name===w.name)===-1);d.forEach(v=>{v.component=v.name,v.meta={hideInMenu:!0,title:v.label,activeName:v.name}});const f=mo(d);for(const v of f)e.addRoute(je.rootRouteName,v)}function L$({router:e,store:t,microType:i,allowPermissionList:n}){Ep();const r=je.loginRouteName,a=b.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||Wr){try{await Yr(t)}catch(s){if(console.log("pluginLogin e",s),Wr)if(O$)location.href=location.protocol+"//"+location.host+"/hbwebchat/wxmain?syscode=gtptrpxebl";else try{await ft.alert({title:"\u63D0\u793A",message:"\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"}),console.log("\u4F1A\u8BDD\u5931\u6548-------2"),wx.miniProgram.navigateTo({url:"/pages/index/reload"})}catch(o){return console.log(o),!1}}await t.dispatch("getUserInfo"),await t.dispatch("getAppListData"),await t.dispatch("getPermissionData")}else window.confirm("\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u662F\u5426\u91CD\u65B0\u767B\u5F55\uFF1F")&&e.push({name:r},()=>{window.location.reload()})},window.apiErrorHandler=function(s){$e.Message.error({content:s,duration:10,closable:!0})},e.beforeEach(async(s,o,l)=>{console.log("router.beforeEach at guard"),$e.LoadingBar.start();let u=N.getToken(),h=location.search;if(h){let f=/token=(.*)/.exec(h);if(f&&f.length>1&&u!==f[1]&&(u=f[1],t.dispatch("loginSuccess",u)),!u){let p=window.getQueryVariable("tokenWeapp");p&&(console.log("tokenInQuery",p),N.setToken(p),setCookie("lambo-sso-key",p,1),u=p)}}console.log("typeof window.Code",typeof window.Code);async function c(){var f,p,m;if(t.state.user.userName)console.log("window?.selectInst?.show",(f=window==null?void 0:window.selectInst)==null?void 0:f.show),(p=window==null?void 0:window.selectInst)!=null&&p.show?(window.selectInst.$emit("update:show",!1),console.log("router3"),l(!1)):(m=window==null?void 0:window.popupPageInst)!=null&&m.value?(window.popupPageInst.$emit("input",!1),console.log("router4"),l(!1)):(console.log("router5"),l());else{$e.Spin.show();try{await M$({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1");const v=getQueryVariable("state");let w={};!!v&&v!="null"?(w=JSON.parse(decodeURIComponent(decodeURIComponent(v))),console.log("state",w),sessionStorage.setItem("isFromIM","1"),console.log("isFromIM\u6807\u8BC61\u5DF2\u6DFB\u52A0\u5230sessionStorage"),l({path:w.url,replace:!0})):l({...s,replace:!0})}catch{console.log("router2"),l({name:r})}$e.Spin.hide()}}const d=getQueryVariable("code");typeof window.Code!="undefined"||d||Wr?u?(await Uf()||(u=await Yr(t),t.dispatch("loginSuccess",u)),await c()):(u=await Yr(t),t.dispatch("loginSuccess",u),await c()):!u&&s.name!==r?(console.log("router6"),l({name:r})):s.name===r?(console.log("router7"),l()):(console.log("router8"),await Uf()||(u=await Yr(t),t.dispatch("loginSuccess",u)),await c())}),e.afterEach(s=>{$e.LoadingBar.finish(),window.scrollTo(0,0)})}const Yr=e=>(sessionStorage.removeItem("lambo-token"),sessionStorage.removeItem("sso_token"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("v8-token"),localStorage.removeItem("userId"),localStorage.removeItem("userInfo"),Hf.set("lambo-sso-key","",1),Hf.set("TOKEN_KEY","",1),e.commit("setUserName",""),e.commit("setToken",""),Wr?new Promise((t,i)=>{let n=location.protocol+"//"+location.host+"/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";N.axios.get(n).then(async r=>{N.setToken(r.token),t(r.token),localStorage.setItem("v8-token",r.token),sessionStorage.setItem("lambo-token",r.token)}).catch(r=>{console.log("\u83B7\u53D6token\u5F02\u5E38",r),i(0)})}):new Promise((t,i)=>{console.log("1111`111");const n=getQueryVariable("code");n?N.axios.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code="+n).then(async r=>{N.setToken(r.token),t(r.token)}).catch(r=>{console.log("\u83B7\u53D6token\u5F02\u5E38",r),$e.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),i(0)}):(Code.postMessage(""),window.getCode=function(r){console.log("getCode res",r),N.axios.get("/ind-uc-ext-server/sso/ssoAppLogin?code="+r).then(async a=>{N.setToken(a.token),t(a.token)}).catch(a=>{console.log("\u83B7\u53D6token\u5F02\u5E38",a),$e.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),i(0)})})}));window.getQueryVariable=function(t){var i=window.location.search.substring(1),n=i.split("&");for(let a=0;a<n.length;a++){let s=n[a].split("=");if(s[0]==t)return s.slice(1).join("=")}let r=window.location.hash.substring(2);r.includes("?")&&(i=r.split("?")[1]),n=i.split("&");for(let a=0;a<n.length;a++){let s=n[a].split("=");if(s[0]==t)return s.slice(1).join("=")}return!1};const Uf=async()=>{var e;if(localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let t=N.getToken();return((e=(await E$.get(`${je.authServerContext}/manage/user/getCurrentInfo`,{params:{},headers:{token:t}})).data)==null?void 0:e.code)==1}catch(t){return console.log("getLoginData e",t),$e.Message.error({content:"\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01",duration:10,closable:!0}),!1}},A$={mode:"history",base:"ind-mobile"};var N$={state:{userName:"",avatarImgPath:"",userManageUnitId:"",token:N.getToken()},mutations:{setAvatar(e,t){e.avatarImgPath=t},setUserName(e,t){e.userName=t},setUserManageUnitId(e,t){e.userManageUnitId=t},setToken(e,t){e.token=t,N.setToken(t)}},actions:{async handleLogin({dispatch:e},{userName:t,password:i,validCodeId:n,validCodeInput:r}){const a=await N.loginApi({userName:t,password:i,validCodeId:n,validCodeInput:r});return e("loginSuccess",a.token),a.url},loginSuccess({commit:e,dispatch:t},i){N.clearUserInfoCache(),e("setToken",i),e("setTagNavList",[]),window.top===window.self&&N.clearPermissionCache()},async handleLogout({state:e,commit:t}){await N.logoutApi(e.token),t("setToken",""),t("setUserName",""),t("setUserManageUnitId",""),setTimeout(()=>{window.location.reload()},0)},async getUserInfo({commit:e}){const t=N.getUserInfoCache();if(t)return e("setAvatar",t.userAvater),e("setUserName",t.userName),e("setUserManageUnitId",t.manageUnitId),t;const{data:i}=await N.getUserInfoApi();return e("setAvatar",i.userAvater),e("setUserName",i.userName),e("setUserManageUnitId",i.manageUnitId),N.setUserInfoCache(i),i}}};const Kf=location.pathname.includes("scyxweb");function P$(e){return N.axios.get(`${location.protocol}//${location.host}${Kf?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function B$(e){return N.axios.post(`${location.protocol}//${location.host}${Kf?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}const{homeRouteName:Xr}=je,F$=(e,t,i)=>{const n=Tp(e.tagNavList,i);e.tagNavList=e.tagNavList.filter(r=>!xn(r,i)),t.push(n)};var R$={state:{appInfo:"",appList:[],permissionList:[],permission:{},menuTreeList:[],myAppsList:[],homeRoute:{},breadCrumbList:[],tagNavList:[],activeName:"",collectMenuList:[],maxTabNum:5,theme:kn()},getters:{getAppInfo(e){let t=e.appInfo;return t||(t=N.getSessionStorage("appInfo")),t||{}},getAppList(e){let t=e.appList;return t.length||(t=N.getSessionStorage("appList")),t||[]},getMenuTreeList(e){let t=e.menuTreeList;return t.length||(t=N.getSessionStorage("menuTreeList")),t||[]},getMaxTabNum(e){let t=e.maxTabNum;return t||(t=N.getSessionStorage("maxTabNum")),t||5},getTheme(e){let t=e.theme;return t||(t=kn()),t},getMyAppsList(e){let t=e.myAppsList;return t.length||(t=N.getSessionStorage("myAppsList")),t||[]}},mutations:{setAppList(e,t){N.setSessionStorage("appList",t),e.appList=t},setAppInfo(e,t){let i=e.appList;i.length<=0&&(i=N.getSessionStorage("appList")||[]);const n=i.find(r=>r.appId==t);n&&(N.setSessionStorage("appInfo",n),e.appInfo=n)},setPermission(e,t){e.permission=t},setPermissionList(e,t){e.permissionList=t},setMenuTreeList(e,t){N.setSessionStorage("menuTreeList",t),e.menuTreeList=t},setMyAppsList(e,t){N.setSessionStorage("myAppsList",t),e.myAppsList=t},setHomeRoute(e,t){const i=t.options.routes;e.homeRoute=ea(i,Xr)},setBreadCrumb(e,t){e.breadCrumbList=$p(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=kp()||[];let n=i.findIndex(r=>r.name===Xr);if(n==-1&&i.unshift({meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"},hideInMenu:!0,icon:"md-home",title:"\u9996\u9875",name:"home",params:{},query:{}}),i[0]&&i[0].name!==Xr&&i.shift(),n>0){let r=i.splice(n,1)[0];i.unshift(r)}e.tagNavList=i,Vo([...i])},closeTag(e,{$router:t,route:i}){let n=e.tagNavList.filter(r=>xn(r,i));i=n[0]?n[0]:null,i&&F$(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=xp(t);Ip(e.tagNavList,n)||(console.log("type=="+i),i==="push"?(e.tagNavList.length>=e.maxTabNum+1&&e.tagNavList.splice(1,1),e.tagNavList.push(n)):n.name===Xr?e.tagNavList.unshift(n):e.tagNavList.splice(1,e.tagNavList.length>=e.maxTabNum?1:0,n),Vo([...e.tagNavList]))},setActiveName(e,t){e.activeName=t},setCollectMenuList(e,t){e.collectMenuList=t},setMaxTabNum(e,t=5){N.setSessionStorage("maxTabNum",t),e.maxTabNum=t},setTheme(e,t){e.theme=t,N.setLocalStorage($n,t),Tn(t)}},actions:{async getAppListData({commit:e,getters:t}){let i=t.getAppList;if(!i.length){const{data:r=[]}=await N.getAppListApi();i=r.filter(a=>a.basepath!=="/cmsadmin"),e("setAppList",i)}let n="";if(location.search){let r=/appId=([^&]*)/.exec(location.search);r&&r.length>1&&(n=r[1])}if(i.length==1&&(n=i[0].appId||""),!n){let r=i.find(a=>{var s;return((s=a.application)==null?void 0:s.appBizCode)=="mobile-main"})||{};n=(r==null?void 0:r.appId)||""}if(!n){const r=N.getSessionStorage("appInfo");n=(r==null?void 0:r.appId)||""}return n||(n=i.find(a=>a.application.extendProps.is_mobile_app=="1").appId||""),e("setAppInfo",n),i},async getPermissionData({commit:e}){const t=N.getPermissionCache();if(t){const i={};for(const n of t)n.permissionValue&&(i[n.permissionValue]=!0);return e("setPermissionList",t),e("setPermission",i),e("setMenuTreeList",yf(t)),t}try{const{data:i}=await N.getPermissionApi(),n={};for(const r of i)r.permissionValue&&(n[r.permissionValue]=!0);return e("setPermissionList",i),e("setPermission",n),e("setMenuTreeList",yf(i)),N.setPermissionCache(i),i}catch(i){console.log("getPermissionData: "+i)}},async addMenuHistory({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};n&&r&&await N.menuHistoryApi({appId:n,permissionId:r})},async addMenuCollect({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};if(!n||!r||item.type!=="2")return Promise.reject("\u8BE5\u9875\u9762\u4E0D\u80FD\u88AB\u6536\u85CF");await N.addMenuCollectApi({appId:n,permissionId:r})},async removeMenuCollect({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};if(!n||!r||item.type!=="2")return Promise.reject("\u8BE5\u9875\u9762\u4E0D\u80FD\u88AB\u6536\u85CF");await N.removeMenuCollectApi({appId:n,permissionId:r})},async saveMyAppsList({commit:e},t){try{await B$(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await P$(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const V$={modules:{user:N$,app:R$}},qr=function(e,t={theme:""}){var r;if(qr.installed)return;const i=t.theme||kn();let n=t.config||{};if(b.default.isEmpty(n)||b.default.forEach(n,(a,s)=>{N.setConfig(s,a)}),Tn(i),location.pathname.includes("scyxweb")){let a=location.protocol+"//"+location.host+"/hbwebchat/scyxweb/ind-mobile/manage/global?t="+new Date().getTime();N.axios.get(a).then(s=>{e.prototype.$config=b.default.merge({},e.prototype.$config||{},s)})}(r=e.prototype.$config)!=null&&r.systemDefaultConfig?console.log("\u4F7F\u7528\u5DF2\u7F13\u5B58\u7684\u914D\u7F6E",e.prototype.$config):N.axios.get("/user-manage-server/anon/system/qrySystemConfig").then(a=>{var s;try{const o=JSON.parse(((s=a==null?void 0:a.data)==null?void 0:s.settingInfo)||"{}");e.prototype.$config=b.default.merge({},e.prototype.$config||{},o),console.log("\u7CFB\u7EDF\u914D\u7F6E\u5DF2\u52A0\u8F7D",e.prototype.$config)}catch(o){console.error("\u89E3\u6790 settingInfo \u5931\u8D25:",o)}}).catch(a=>{console.error("\u8BF7\u6C42\u5931\u8D25:",a)}),Object.keys(ho).forEach(a=>{e.component(`IndM${a}`,ho[a])}),Object.keys(fo).forEach(a=>{e.directive(a,fo[a])}),window.lastInnerHeight=window.innerHeight,window.addEventListener("resize",function(){var a=window.innerHeight;a<window.lastInnerHeight?(console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86"),bp(),window.lastInnerHeight=window.innerHeight):(console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86"),window.lastInnerHeight=window.innerHeight)})};typeof window!="undefined"&&window.Vue&&qr(window.Vue);const j$={version:Yf.version,install:qr,components:ho,plugins:u1,getDefaultTheme:kn,doChangeTheme:Tn,directives:fo};Y.Apps=oo,Y.AppsEdit=lo,Y.AppsNew=co,Y.BasicLayout=nl,Y.DatePicker=Ro,Y.DetailView=sl,Y.EmptyLayout=Ci,Y.ErrorContent=Jr,Y.Form=Ko,Y.IndConfigPlugin=uf,Y.IndRouterPlugin=hf,Y.InputSelect=xd,Y.LoadMore=Yo,Y.LoadingPanel=lf,Y.Login=Fs,Y.MyApps=Vs,Y.NotFound=zi,Y.PageView=ll,Y.PopupView=ul,Y.QueryView=dl,Y.Search=yd,Y.SelectBtn=kd,Y.SelectPanel=Cd,Y.Setting=uo,Y.User=Rs,Y.User1=el,Y.addRouterGuards=L$,Y.appItem=sn,Y.createMacroBasicRoutes=y1,Y.createMicroBasicRoutes=b1,Y.default=j$,Y.install=qr,Y.permission=ff,Y.routerOptions=A$,Y.store=V$,Y.tabbar=Ai,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
21
|
+
`),function(o){if(a=o.indexOf(":"),n=Co.trim(o.substr(0,a)).toLowerCase(),r=Co.trim(o.substr(a+1)),n){if(i[n]&&J1.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},Tf=Jt,Q1=Tf.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n;function r(a){var s=a;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=r(window.location.href),function(s){var o=Tf.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),jr=Jt,t$=U1,e$=K1,i$=xf,n$=G1,r$=Z1,a$=Q1,wo=kf,If=function(t){return new Promise(function(n,r){var a=t.data,s=t.headers,o=t.responseType;jr.isFormData(a)&&delete s["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var u=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(u+":"+h)}var c=n$(t.baseURL,t.url);l.open(t.method.toUpperCase(),i$(c,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function d(){if(!!l){var p="getAllResponseHeaders"in l?r$(l.getAllResponseHeaders()):null,m=!o||o==="text"||o==="json"?l.responseText:l.response,v={data:m,status:l.status,statusText:l.statusText,headers:p,config:t,request:l};t$(n,r,v),l=null}}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){!l||(r(wo("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(wo("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(wo(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},jr.isStandardBrowserEnv()){var f=(t.withCredentials||a$(c))&&t.xsrfCookieName?e$.read(t.xsrfCookieName):void 0;f&&(s[t.xsrfHeaderName]=f)}"setRequestHeader"in l&&jr.forEach(s,function(m,v){typeof a=="undefined"&&v.toLowerCase()==="content-type"?delete s[v]:l.setRequestHeader(v,m)}),jr.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(m){!l||(l.abort(),r(m),l=null)}),a||(a=null),l.send(a)})},Ot=Jt,_f=j1,s$=$f,o$={"Content-Type":"application/x-www-form-urlencoded"};function Ef(e,t){!Ot.isUndefined(e)&&Ot.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l$(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=If),e}function c$(e,t,i){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var zr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l$(),transformRequest:[function(t,i){return _f(i,"Accept"),_f(i,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t)?t:Ot.isArrayBufferView(t)?t.buffer:Ot.isURLSearchParams(t)?(Ef(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ot.isObject(t)||i&&i["Content-Type"]==="application/json"?(Ef(i,"application/json"),c$(t)):t}],transformResponse:[function(t){var i=this.transitional,n=i&&i.silentJSONParsing,r=i&&i.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?s$(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};zr.headers={common:{Accept:"application/json, text/plain, */*"}},Ot.forEach(["delete","get","head"],function(t){zr.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){zr.headers[t]=Ot.merge(o$)});var xo=zr,u$=Jt,h$=xo,d$=function(t,i,n){var r=this||h$;return u$.forEach(n,function(s){t=s.call(r,t,i)}),t},Df=function(t){return!!(t&&t.__CANCEL__)},Of=Jt,$o=d$,f$=Df,p$=xo;function ko(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var m$=function(t){ko(t),t.headers=t.headers||{},t.data=$o.call(t,t.data,t.headers,t.transformRequest),t.headers=Of.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Of.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||p$.adapter;return i(t).then(function(r){return ko(t),r.data=$o.call(t,r.data,r.headers,t.transformResponse),r},function(r){return f$(r)||(ko(t),r&&r.response&&(r.response.data=$o.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Pt=Jt,Mf=function(t,i){i=i||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(d,f){return Pt.isPlainObject(d)&&Pt.isPlainObject(f)?Pt.merge(d,f):Pt.isPlainObject(f)?Pt.merge({},f):Pt.isArray(f)?f.slice():f}function u(d){Pt.isUndefined(i[d])?Pt.isUndefined(t[d])||(n[d]=l(void 0,t[d])):n[d]=l(t[d],i[d])}Pt.forEach(r,function(f){Pt.isUndefined(i[f])||(n[f]=l(void 0,i[f]))}),Pt.forEach(a,u),Pt.forEach(s,function(f){Pt.isUndefined(i[f])?Pt.isUndefined(t[f])||(n[f]=l(void 0,t[f])):n[f]=l(void 0,i[f])}),Pt.forEach(o,function(f){f in i?n[f]=l(t[f],i[f]):f in t&&(n[f]=l(void 0,t[f]))});var h=r.concat(a).concat(s).concat(o),c=Object.keys(t).concat(Object.keys(i)).filter(function(f){return h.indexOf(f)===-1});return Pt.forEach(c,u),n},v$={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},Lf=v$,To={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){To[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Af={},g$=Lf.version.split(".");function Nf(e,t){for(var i=t?t.split("."):g$,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}To.transitional=function(t,i,n){var r=i&&Nf(i);function a(s,o){return"[Axios v"+Lf.version+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return function(s,o,l){if(t===!1)throw new Error(a(o," has been removed in "+i));return r&&!Af[o]&&(Af[o]=!0,console.warn(a(o," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,o,l):!0}};function y$(e,t,i){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],s=t[a];if(s){var o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new TypeError("option "+a+" must be "+l);continue}if(i!==!0)throw Error("Unknown option "+a)}}var b$={isOlderVersion:Nf,assertOptions:y$,validators:To},Pf=Jt,S$=xf,Bf=R1,Ff=m$,Hr=Mf,Rf=b$,Vi=Rf.validators;function Cn(e){this.defaults=e,this.interceptors={request:new Bf,response:new Bf}}Cn.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Hr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&Rf.assertOptions(i,{silentJSONParsing:Vi.transitional(Vi.boolean,"1.0.0"),forcedJSONParsing:Vi.transitional(Vi.boolean,"1.0.0"),clarifyTimeoutError:Vi.transitional(Vi.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(r=r&&d.synchronous,n.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!r){var o=[Ff,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(a),s=Promise.resolve(t);o.length;)s=s.then(o.shift(),o.shift());return s}for(var l=t;n.length;){var u=n.shift(),h=n.shift();try{l=u(l)}catch(c){h(c);break}}try{s=Ff(l)}catch(c){return Promise.reject(c)}for(;a.length;)s=s.then(a.shift(),a.shift());return s},Cn.prototype.getUri=function(t){return t=Hr(this.defaults,t),S$(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Pf.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(i,n){return this.request(Hr(n||{},{method:t,url:i,data:(n||{}).data}))}}),Pf.forEach(["post","put","patch"],function(t){Cn.prototype[t]=function(i,n,r){return this.request(Hr(r||{},{method:t,url:i,data:n}))}});var C$=Cn;function Io(e){this.message=e}Io.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Io.prototype.__CANCEL__=!0;var Vf=Io,w$=Vf;function Ur(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(r){t=r});var i=this;e(function(r){i.reason||(i.reason=new w$(r),t(i.reason))})}Ur.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ur.source=function(){var t,i=new Ur(function(r){t=r});return{token:i,cancel:t}};var x$=Ur,$$=function(t){return function(n){return t.apply(null,n)}},k$=function(t){return typeof t=="object"&&t.isAxiosError===!0},jf=Jt,T$=bf,Kr=C$,I$=Mf,_$=xo;function zf(e){var t=new Kr(e),i=T$(Kr.prototype.request,t);return jf.extend(i,Kr.prototype,t),jf.extend(i,t),i}var xe=zf(_$);xe.Axios=Kr,xe.create=function(t){return zf(I$(xe.defaults,t))},xe.Cancel=Vf,xe.CancelToken=x$,xe.isCancel=Df,xe.all=function(t){return Promise.all(t)},xe.spread=$$,xe.isAxiosError=k$,vo.exports=xe,vo.exports.default=xe;var E$=vo.exports;const Wr=location.pathname.includes("scyxweb"),D$=navigator.userAgent.toLowerCase(),O$=!!/wxwork/.test(D$),Hf={set:function(e,t,i){if(e.indexOf("=")!==-1)throw new Error("Cookie\u4E0D\u652F\u6301key\u4E2D\u4F7F\u7528\u7B49\u53F7\u3010=\u3011, key:"+e);let n=new Date;n.setTime(n.getTime()+24*60*60*1e3*i),window.document.cookie=e+"="+t+";path=/;expires="+n.toGMTString()},get:function(e){if(document.cookie.length>0){var t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let r=t[n].split("=");if(r[0]===e){var i=r[1];for(let a=2;a<r.length;a++)i+="="+r[a];return i}}}}};async function M$({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:r}){var p,m;await t.dispatch("getUserInfo"),await t.dispatch("getAppListData");const a=await t.dispatch("getPermissionData"),s=JSON.parse(((m=(p=N.getSessionStorage("appInfo"))==null?void 0:p.extendProps)==null?void 0:m.extendProps)||"{}"),o=N.getLocalStorage("versionInfo");if(o){if(s.appVersion>o.appVersion){N.setLocalStorage("versionInfo",s);let v=window.location.href,w=new URL(v),T=new URLSearchParams(w.search);T.set("v",s.appVersion),w.search=T.toString(),window.location.href=w.href}}else N.setLocalStorage("versionInfo",s);e.options=b.default.cloneDeep(r);const l=vf(i,a),u=C1(l);console.log("dynamicROuters",u);const h=e.options.routes.find(v=>v.path==="/");for(const v of u)e.addRoute(h.name,v),h.children.push(v);const d=vf(i,n).filter(v=>e.options.routes.findIndex(w=>v.name===w.name)===-1);d.forEach(v=>{v.component=v.name,v.meta={hideInMenu:!0,title:v.label,activeName:v.name}});const f=mo(d);for(const v of f)e.addRoute(je.rootRouteName,v)}function L$({router:e,store:t,microType:i,allowPermissionList:n}){Ep();const r=je.loginRouteName,a=b.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||Wr){try{await Yr(t)}catch(s){if(console.log("pluginLogin e",s),Wr)if(O$)location.href=location.protocol+"//"+location.host+"/hbwebchat/wxmain?syscode=gtptrpxebl";else try{await ft.alert({title:"\u63D0\u793A",message:"\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"}),console.log("\u4F1A\u8BDD\u5931\u6548-------2"),wx.miniProgram.navigateTo({url:"/pages/index/reload"})}catch(o){return console.log(o),!1}}await t.dispatch("getUserInfo"),await t.dispatch("getAppListData"),await t.dispatch("getPermissionData")}else window.confirm("\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u662F\u5426\u91CD\u65B0\u767B\u5F55\uFF1F")&&e.push({name:r},()=>{window.location.reload()})},window.apiErrorHandler=function(s){$e.Message.error({content:s,duration:10,closable:!0})},e.beforeEach(async(s,o,l)=>{console.log("router.beforeEach at guard"),$e.LoadingBar.start();let u=N.getToken(),h=location.search;if(h){let f=/token=(.*)/.exec(h);if(f&&f.length>1&&u!==f[1]&&(u=f[1],t.dispatch("loginSuccess",u)),!u){let p=window.getQueryVariable("tokenWeapp");p&&(console.log("tokenInQuery",p),N.setToken(p),u=p)}}console.log("typeof window.Code",typeof window.Code);async function c(){var f,p,m;if(t.state.user.userName)console.log("window?.selectInst?.show",(f=window==null?void 0:window.selectInst)==null?void 0:f.show),(p=window==null?void 0:window.selectInst)!=null&&p.show?(window.selectInst.$emit("update:show",!1),console.log("router3"),l(!1)):(m=window==null?void 0:window.popupPageInst)!=null&&m.value?(window.popupPageInst.$emit("input",!1),console.log("router4"),l(!1)):(console.log("router5"),l());else{$e.Spin.show();try{await M$({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1");const v=getQueryVariable("state");let w={};!!v&&v!="null"?(w=JSON.parse(decodeURIComponent(decodeURIComponent(v))),console.log("state",w),sessionStorage.setItem("isFromIM","1"),console.log("isFromIM\u6807\u8BC61\u5DF2\u6DFB\u52A0\u5230sessionStorage"),l({path:w.url,replace:!0})):l({...s,replace:!0})}catch{console.log("router2"),l({name:r})}$e.Spin.hide()}}const d=getQueryVariable("code");typeof window.Code!="undefined"||d||Wr?u?(await Uf()||(u=await Yr(t),t.dispatch("loginSuccess",u)),await c()):(u=await Yr(t),t.dispatch("loginSuccess",u),await c()):!u&&s.name!==r?(console.log("router6"),l({name:r})):s.name===r?(console.log("router7"),l()):(console.log("router8"),await Uf()||(u=await Yr(t),t.dispatch("loginSuccess",u)),await c())}),e.afterEach(s=>{$e.LoadingBar.finish(),window.scrollTo(0,0)})}const Yr=e=>(sessionStorage.removeItem("lambo-token"),sessionStorage.removeItem("sso_token"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("v8-token"),localStorage.removeItem("userId"),localStorage.removeItem("userInfo"),Hf.set("lambo-sso-key","",1),Hf.set("TOKEN_KEY","",1),e.commit("setUserName",""),e.commit("setToken",""),Wr?new Promise((t,i)=>{let n=location.protocol+"//"+location.host+"/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";N.axios.get(n).then(async r=>{N.setToken(r.token),t(r.token),localStorage.setItem("v8-token",r.token),sessionStorage.setItem("lambo-token",r.token)}).catch(r=>{console.log("\u83B7\u53D6token\u5F02\u5E38",r),i(0)})}):new Promise((t,i)=>{console.log("1111`111");const n=getQueryVariable("code");n?N.axios.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code="+n).then(async r=>{N.setToken(r.token),t(r.token)}).catch(r=>{console.log("\u83B7\u53D6token\u5F02\u5E38",r),$e.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),i(0)}):(Code.postMessage(""),window.getCode=function(r){console.log("getCode res",r),N.axios.get("/ind-uc-ext-server/sso/ssoAppLogin?code="+r).then(async a=>{N.setToken(a.token),t(a.token)}).catch(a=>{console.log("\u83B7\u53D6token\u5F02\u5E38",a),$e.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),i(0)})})}));window.getQueryVariable=function(t){var i=window.location.search.substring(1),n=i.split("&");for(let a=0;a<n.length;a++){let s=n[a].split("=");if(s[0]==t)return s.slice(1).join("=")}let r=window.location.hash.substring(2);r.includes("?")&&(i=r.split("?")[1]),n=i.split("&");for(let a=0;a<n.length;a++){let s=n[a].split("=");if(s[0]==t)return s.slice(1).join("=")}return!1};const Uf=async()=>{var e;if(localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let t=N.getToken();return((e=(await E$.get(`${je.authServerContext}/manage/user/getCurrentInfo`,{params:{},headers:{token:t}})).data)==null?void 0:e.code)==1}catch(t){return console.log("getLoginData e",t),$e.Message.error({content:"\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01",duration:10,closable:!0}),!1}},A$={mode:"history",base:"ind-mobile"};var N$={state:{userName:"",avatarImgPath:"",userManageUnitId:"",token:N.getToken()},mutations:{setAvatar(e,t){e.avatarImgPath=t},setUserName(e,t){e.userName=t},setUserManageUnitId(e,t){e.userManageUnitId=t},setToken(e,t){e.token=t,N.setToken(t)}},actions:{async handleLogin({dispatch:e},{userName:t,password:i,validCodeId:n,validCodeInput:r}){const a=await N.loginApi({userName:t,password:i,validCodeId:n,validCodeInput:r});return e("loginSuccess",a.token),a.url},loginSuccess({commit:e,dispatch:t},i){N.clearUserInfoCache(),e("setToken",i),e("setTagNavList",[]),window.top===window.self&&N.clearPermissionCache()},async handleLogout({state:e,commit:t}){await N.logoutApi(e.token),t("setToken",""),t("setUserName",""),t("setUserManageUnitId",""),setTimeout(()=>{window.location.reload()},0)},async getUserInfo({commit:e}){const t=N.getUserInfoCache();if(t)return e("setAvatar",t.userAvater),e("setUserName",t.userName),e("setUserManageUnitId",t.manageUnitId),t;const{data:i}=await N.getUserInfoApi();return e("setAvatar",i.userAvater),e("setUserName",i.userName),e("setUserManageUnitId",i.manageUnitId),N.setUserInfoCache(i),i}}};const Kf=location.pathname.includes("scyxweb");function P$(e){return N.axios.get(`${location.protocol}//${location.host}${Kf?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function B$(e){return N.axios.post(`${location.protocol}//${location.host}${Kf?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}const{homeRouteName:Xr}=je,F$=(e,t,i)=>{const n=Tp(e.tagNavList,i);e.tagNavList=e.tagNavList.filter(r=>!xn(r,i)),t.push(n)};var R$={state:{appInfo:"",appList:[],permissionList:[],permission:{},menuTreeList:[],myAppsList:[],homeRoute:{},breadCrumbList:[],tagNavList:[],activeName:"",collectMenuList:[],maxTabNum:5,theme:kn()},getters:{getAppInfo(e){let t=e.appInfo;return t||(t=N.getSessionStorage("appInfo")),t||{}},getAppList(e){let t=e.appList;return t.length||(t=N.getSessionStorage("appList")),t||[]},getMenuTreeList(e){let t=e.menuTreeList;return t.length||(t=N.getSessionStorage("menuTreeList")),t||[]},getMaxTabNum(e){let t=e.maxTabNum;return t||(t=N.getSessionStorage("maxTabNum")),t||5},getTheme(e){let t=e.theme;return t||(t=kn()),t},getMyAppsList(e){let t=e.myAppsList;return t.length||(t=N.getSessionStorage("myAppsList")),t||[]}},mutations:{setAppList(e,t){N.setSessionStorage("appList",t),e.appList=t},setAppInfo(e,t){let i=e.appList;i.length<=0&&(i=N.getSessionStorage("appList")||[]);const n=i.find(r=>r.appId==t);n&&(N.setSessionStorage("appInfo",n),e.appInfo=n)},setPermission(e,t){e.permission=t},setPermissionList(e,t){e.permissionList=t},setMenuTreeList(e,t){N.setSessionStorage("menuTreeList",t),e.menuTreeList=t},setMyAppsList(e,t){N.setSessionStorage("myAppsList",t),e.myAppsList=t},setHomeRoute(e,t){const i=t.options.routes;e.homeRoute=ea(i,Xr)},setBreadCrumb(e,t){e.breadCrumbList=$p(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=kp()||[];let n=i.findIndex(r=>r.name===Xr);if(n==-1&&i.unshift({meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"},hideInMenu:!0,icon:"md-home",title:"\u9996\u9875",name:"home",params:{},query:{}}),i[0]&&i[0].name!==Xr&&i.shift(),n>0){let r=i.splice(n,1)[0];i.unshift(r)}e.tagNavList=i,Vo([...i])},closeTag(e,{$router:t,route:i}){let n=e.tagNavList.filter(r=>xn(r,i));i=n[0]?n[0]:null,i&&F$(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=xp(t);Ip(e.tagNavList,n)||(console.log("type=="+i),i==="push"?(e.tagNavList.length>=e.maxTabNum+1&&e.tagNavList.splice(1,1),e.tagNavList.push(n)):n.name===Xr?e.tagNavList.unshift(n):e.tagNavList.splice(1,e.tagNavList.length>=e.maxTabNum?1:0,n),Vo([...e.tagNavList]))},setActiveName(e,t){e.activeName=t},setCollectMenuList(e,t){e.collectMenuList=t},setMaxTabNum(e,t=5){N.setSessionStorage("maxTabNum",t),e.maxTabNum=t},setTheme(e,t){e.theme=t,N.setLocalStorage($n,t),Tn(t)}},actions:{async getAppListData({commit:e,getters:t}){let i=t.getAppList;if(!i.length){const{data:r=[]}=await N.getAppListApi();i=r.filter(a=>a.basepath!=="/cmsadmin"),e("setAppList",i)}let n="";if(location.search){let r=/appId=([^&]*)/.exec(location.search);r&&r.length>1&&(n=r[1])}if(i.length==1&&(n=i[0].appId||""),!n){let r=i.find(a=>{var s;return((s=a.application)==null?void 0:s.appBizCode)=="mobile-main"})||{};n=(r==null?void 0:r.appId)||""}if(!n){const r=N.getSessionStorage("appInfo");n=(r==null?void 0:r.appId)||""}return n||(n=i.find(a=>a.application.extendProps.is_mobile_app=="1").appId||""),e("setAppInfo",n),i},async getPermissionData({commit:e}){const t=N.getPermissionCache();if(t){const i={};for(const n of t)n.permissionValue&&(i[n.permissionValue]=!0);return e("setPermissionList",t),e("setPermission",i),e("setMenuTreeList",yf(t)),t}try{const{data:i}=await N.getPermissionApi(),n={};for(const r of i)r.permissionValue&&(n[r.permissionValue]=!0);return e("setPermissionList",i),e("setPermission",n),e("setMenuTreeList",yf(i)),N.setPermissionCache(i),i}catch(i){console.log("getPermissionData: "+i)}},async addMenuHistory({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};n&&r&&await N.menuHistoryApi({appId:n,permissionId:r})},async addMenuCollect({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};if(!n||!r||item.type!=="2")return Promise.reject("\u8BE5\u9875\u9762\u4E0D\u80FD\u88AB\u6536\u85CF");await N.addMenuCollectApi({appId:n,permissionId:r})},async removeMenuCollect({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};if(!n||!r||item.type!=="2")return Promise.reject("\u8BE5\u9875\u9762\u4E0D\u80FD\u88AB\u6536\u85CF");await N.removeMenuCollectApi({appId:n,permissionId:r})},async saveMyAppsList({commit:e},t){try{await B$(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await P$(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const V$={modules:{user:N$,app:R$}},qr=function(e,t={theme:""}){var r;if(qr.installed)return;const i=t.theme||kn();let n=t.config||{};if(b.default.isEmpty(n)||b.default.forEach(n,(a,s)=>{N.setConfig(s,a)}),Tn(i),location.pathname.includes("scyxweb")){let a=location.protocol+"//"+location.host+"/hbwebchat/scyxweb/ind-mobile/manage/global?t="+new Date().getTime();N.axios.get(a).then(s=>{e.prototype.$config=b.default.merge({},e.prototype.$config||{},s)})}(r=e.prototype.$config)!=null&&r.systemDefaultConfig?console.log("\u4F7F\u7528\u5DF2\u7F13\u5B58\u7684\u914D\u7F6E",e.prototype.$config):N.axios.get("/user-manage-server/anon/system/qrySystemConfig").then(a=>{var s;try{const o=JSON.parse(((s=a==null?void 0:a.data)==null?void 0:s.settingInfo)||"{}");e.prototype.$config=b.default.merge({},e.prototype.$config||{},o),console.log("\u7CFB\u7EDF\u914D\u7F6E\u5DF2\u52A0\u8F7D",e.prototype.$config)}catch(o){console.error("\u89E3\u6790 settingInfo \u5931\u8D25:",o)}}).catch(a=>{console.error("\u8BF7\u6C42\u5931\u8D25:",a)}),Object.keys(ho).forEach(a=>{e.component(`IndM${a}`,ho[a])}),Object.keys(fo).forEach(a=>{e.directive(a,fo[a])}),window.lastInnerHeight=window.innerHeight,window.addEventListener("resize",function(){var a=window.innerHeight;a<window.lastInnerHeight?(console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86"),bp(),window.lastInnerHeight=window.innerHeight):(console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86"),window.lastInnerHeight=window.innerHeight)})};typeof window!="undefined"&&window.Vue&&qr(window.Vue);const j$={version:Yf.version,install:qr,components:ho,plugins:u1,getDefaultTheme:kn,doChangeTheme:Tn,directives:fo};Y.Apps=oo,Y.AppsEdit=lo,Y.AppsNew=co,Y.BasicLayout=nl,Y.DatePicker=Ro,Y.DetailView=sl,Y.EmptyLayout=Ci,Y.ErrorContent=Jr,Y.Form=Ko,Y.IndConfigPlugin=uf,Y.IndRouterPlugin=hf,Y.InputSelect=xd,Y.LoadMore=Yo,Y.LoadingPanel=lf,Y.Login=Fs,Y.MyApps=Vs,Y.NotFound=zi,Y.PageView=ll,Y.PopupView=ul,Y.QueryView=dl,Y.Search=yd,Y.SelectBtn=kd,Y.SelectPanel=Cd,Y.Setting=uo,Y.User=Rs,Y.User1=el,Y.addRouterGuards=L$,Y.appItem=sn,Y.createMacroBasicRoutes=y1,Y.createMicroBasicRoutes=b1,Y.default=j$,Y.install=qr,Y.permission=ff,Y.routerOptions=A$,Y.store=V$,Y.tabbar=Ai,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|