@vtj/pro 0.16.36 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +4 -4
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +7 -7
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/vue/vue.global.js +137 -74
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +8 -8
- package/dist/assets/{@element-plus-icons-vue-DfQfjj5s.js → @element-plus-icons-vue-CXRJnQYo.js} +1 -1
- package/dist/assets/{@vueuse-DGhgU4Wj.js → @vueuse-w7qmHU3H.js} +1 -1
- package/dist/assets/Editor-BcijGQZx-bQZe_R8O.js +531 -0
- package/dist/assets/{Editor-DVUZplwr-DKStJloP.css → Editor-BcijGQZx-xwJs2FyB.css} +1 -1
- package/dist/assets/{auth-CxTnx6Ld.js → auth-C4mrJ31Y.js} +1 -1
- package/dist/assets/dayjs-CxR8wwn9.js +1 -0
- package/dist/assets/element-plus-Bgelixwu.js +39 -0
- package/dist/assets/{element-plus-AP7zs95r.css → element-plus-Bw1qTWaj.css} +1 -1
- package/dist/assets/index-BlFihnwD.js +1 -0
- package/dist/assets/index-ZU10z4rD.js +2 -0
- package/dist/assets/mockjs-C_1w07tn.js +9 -0
- package/dist/assets/page-Xd5VkPhH.js +2 -0
- package/dist/assets/preview-BrO82JG-.js +2 -0
- package/dist/assets/shared-Bc0G8KpM.js +25 -0
- package/dist/assets/uni-page-BrivKbVY.js +1 -0
- package/dist/assets/utils-BBxwIlQH.js +1 -0
- package/dist/assets/vue-BaPf1eHv.js +35 -0
- package/dist/assets/{vue-router-DLyhMsB6.js → vue-router-B2eGcVGj.js} +3 -3
- package/dist/assets/{vxe-BJJKGxpR.js → vxe-C7ZzhQxY.js} +1 -1
- package/dist/index.html +11 -11
- package/dist/uni/assets/{index-CkFVRzRq.js → index-D-hwt8LT.js} +9 -9
- package/dist/uni/index.html +1 -1
- package/package.json +13 -13
- package/dist/assets/Editor-DVUZplwr-DPbn-wdM.js +0 -525
- package/dist/assets/dayjs-GGXMDmCk.js +0 -1
- package/dist/assets/element-plus-ClWnlNxy.js +0 -39
- package/dist/assets/index-DFenbaHc.js +0 -1
- package/dist/assets/index-RWflYXk6.js +0 -2
- package/dist/assets/mockjs-C_F9xDf5.js +0 -9
- package/dist/assets/page-wthyLn0Y.js +0 -2
- package/dist/assets/preview-iM1wzdeR.js +0 -2
- package/dist/assets/shared-Df95_Dth.js +0 -25
- package/dist/assets/uni-page-hurVTe5x.js +0 -1
- package/dist/assets/utils-CUeXtXwr.js +0 -1
- package/dist/assets/vue-Cs4cahp0.js +0 -35
|
@@ -42,28 +42,28 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
42
42
|
* author : Adam Draper
|
|
43
43
|
* license : MIT
|
|
44
44
|
* http://adamwdraper.github.com/Numeral-js/
|
|
45
|
-
*/(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(oe,function(){var e,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return e=function(a){var c,f,h,p;if(e.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||r.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||e._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},e.version=n,e.isNumeral=function(a){return a instanceof l},e._=r={numberToFormat:function(a,c,f){var h=s[e.options.currentLocale],p=!1,d=!1,g=0,v="",E=1e12,m=1e9,b=1e6,_=1e3,w="",y=!1,T,O,L,S,A,M,j;if(a=a||0,O=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),O>=E&&!T||T==="t"?(v+=h.abbreviations.trillion,a=a/E):O<E&&O>=m&&!T||T==="b"?(v+=h.abbreviations.billion,a=a/m):O<m&&O>=b&&!T||T==="m"?(v+=h.abbreviations.million,a=a/b):(O<b&&O>=_&&!T||T==="k")&&(v+=h.abbreviations.thousand,a=a/_)),e._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),w=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):w=e._.toFixed(a,S.length,f),L=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",d&&Number(w.slice(1))===0&&(w="")):L=e._.toFixed(a,0,f),v&&!T&&Number(L)>=1e3&&v!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(L,"-")&&(L=L.slice(1),y=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),j=L+w+(v||""),p?j=(p&&y?"(":"")+j+(p&&y?")":""):A>=0?j=A===0?(y?"-":"+")+j:j+(y?"-":"+"):y&&(j="-"+j),j},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=r.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,v,E,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,E=Math.pow(10,g),m=(f(a+"e+"+g)/E).toFixed(g),h>c-g&&(v=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(v,"")),m}},e.options=u,e.formats=i,e.locales=s,e.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},e.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},e.reset=function(){for(var a in o)u[a]=o[a]},e.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},e.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},e.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},e.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},e.validate=function(a,c){var f,h,p,d,g,v,E,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=e.localeData(c)}catch(b){E=e.localeData(e.locale())}return p=E.currency.symbol,g=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(v=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||e._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(e(this._value).subtract(a).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=e._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(e._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var v,E=e._.includes(d,"ib")?c:a,m=e._.includes(d," b")||e._.includes(d," ib")?" ":"",b,_,w;for(d=d.replace(/\s?i?b/,""),b=0;b<=E.suffixes.length;b++)if(_=Math.pow(E.base,b),w=Math.pow(E.base,b+1),p===null||p===0||p>=_&&p<w){m+=E.suffixes[b],_>0&&(p=p/_);break}return v=e._.numberToFormat(p,d,g),v+m},unformat:function(p){var d=e._.stringToNumber(p),g,v;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(e._.includes(p,a.suffixes[g])){v=Math.pow(a.base,g);break}if(e._.includes(p,c.suffixes[g])){v=Math.pow(c.base,g);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,v;for(c=c.replace(/\s?\$\s?/,""),d=e._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!e._.includes(p.before,"-")&&!e._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v<p.before.length;v++)switch(g=p.before[v],g){case"$":d=e._.insert(d,h.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+h.currency.symbol.length-1);break}for(v=p.after.length-1;v>=0;v--)switch(g=p.after[v],g){case"$":d=v===p.after.length-1?d+h.currency.symbol:e._.insert(d,h.currency.symbol,-(p.after.length-(1+v)));break;case" ":d=v===p.after.length-1?d+" ":e._.insert(d," ",-(p.after.length-(1+v)+h.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!e._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=e._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=e._.includes(a,"e-")?h*=-1:h;function p(d,g,v,E){var m=e._.correctionFactor(d,g),b=d*m*(g*m)/(m*m);return b}return e._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p,d=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=e._.includes(c," %")?" ":"",p;return e.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=e._.stringToNumber(a);return e.options.scalePercentBy100?c*.01:c}})})(),(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),e})})(Cg);var Bo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(oe,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,m={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(I){var B=["th","st","nd","rd"],$=I%100;return"["+I+(B[($-20)%10]||B[$]||B[0])+"]"}},b=function(I,B,$){var H=String(I);return!H||H.length>=B?I:""+Array(B+1-H.length).join($)+I},_={s:b,z:function(I){var B=-I.utcOffset(),$=Math.abs(B),H=Math.floor($/60),F=$%60;return(B<=0?"+":"-")+b(H,2,"0")+":"+b(F,2,"0")},m:function I(B,$){if(B.date()<$.date())return-I($,B);var H=12*($.year()-B.year())+($.month()-B.month()),F=B.clone().add(H,f),q=$-F<0,z=B.clone().add(H+(q?-1:1),f);return+(-(H+($-F)/(q?F-z:z-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",y={};y[w]=m;var T="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[T])},L=function I(B,$,H){var F;if(!B)return w;if(typeof B=="string"){var q=B.toLowerCase();y[q]&&(F=q),$&&(y[q]=$,F=q);var z=B.split("-");if(!F&&z.length>1)return I(z[0])}else{var x=B.name;y[x]=B,F=x}return!H&&F&&(w=F),F||!H&&w},S=function(I,B){if(O(I))return I.clone();var $=typeof B=="object"?B:{};return $.date=I,$.args=arguments,new M($)},A=_;A.l=L,A.i=O,A.w=function(I,B){return S(I,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var B=I.prototype;return B.parse=function($){this.$d=(function(H){var F=H.date,q=H.utc;if(F===null)return new Date(NaN);if(A.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var z=F.match(v);if(z){var x=z[2]-1||0,C=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)):new Date(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)}}return new Date(F)})($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return A},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function($,H){var F=S($);return this.startOf(H)<=F&&F<=this.endOf(H)},B.isAfter=function($,H){return S($)<this.startOf(H)},B.isBefore=function($,H){return this.endOf(H)<S($)},B.$g=function($,H,F){return A.u($)?this[H]:this.set(F,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,H){var F=this,q=!!A.u(H)||H,z=A.p($),x=function(Le,ae){var Pe=A.w(F.$u?Date.UTC(F.$y,ae,Le):new Date(F.$y,ae,Le),F);return q?Pe:Pe.endOf(a)},C=function(Le,ae){return A.w(F.toDate()[Le].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},D=this.$W,N=this.$M,te=this.$D,xe="set"+(this.$u?"UTC":"");switch(z){case p:return q?x(1,0):x(31,11);case f:return q?x(1,N):x(0,N+1);case c:var we=this.$locale().weekStart||0,ft=(D<we?D+7:D)-we;return x(q?te-ft:te+(6-ft),N);case a:case d:return C(xe+"Hours",0);case l:return C(xe+"Minutes",1);case u:return C(xe+"Seconds",2);case o:return C(xe+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,H){var F,q=A.p($),z="set"+(this.$u?"UTC":""),x=(F={},F[a]=z+"Date",F[d]=z+"Date",F[f]=z+"Month",F[p]=z+"FullYear",F[l]=z+"Hours",F[u]=z+"Minutes",F[o]=z+"Seconds",F[s]=z+"Milliseconds",F)[q],C=q===a?this.$D+(H-this.$W):H;if(q===f||q===p){var D=this.clone().set(d,1);D.$d[x](C),D.init(),this.$d=D.set(d,Math.min(this.$D,D.daysInMonth())).$d}else x&&this.$d[x](C);return this.init(),this},B.set=function($,H){return this.clone().$set($,H)},B.get=function($){return this[A.p($)]()},B.add=function($,H){var F,q=this;$=Number($);var z=A.p(H),x=function(N){var te=S(q);return A.w(te.date(te.date()+Math.round(N*$)),q)};if(z===f)return this.set(f,this.$M+$);if(z===p)return this.set(p,this.$y+$);if(z===a)return x(1);if(z===c)return x(7);var C=(F={},F[u]=n,F[l]=i,F[o]=r,F)[z]||1,D=this.$d.getTime()+$*C;return A.w(D,this)},B.subtract=function($,H){return this.add(-1*$,H)},B.format=function($){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),x=this.$H,C=this.$m,D=this.$M,N=F.weekdays,te=F.months,xe=F.meridiem,we=function(ae,Pe,ht,Bt){return ae&&(ae[Pe]||ae(H,q))||ht[Pe].slice(0,Bt)},ft=function(ae){return A.s(x%12||12,ae,"0")},Le=xe||function(ae,Pe,ht){var Bt=ae<12?"AM":"PM";return ht?Bt.toLowerCase():Bt};return q.replace(E,(function(ae,Pe){return Pe||(function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return A.s(H.$y,4,"0");case"M":return D+1;case"MM":return A.s(D+1,2,"0");case"MMM":return we(F.monthsShort,D,te,3);case"MMMM":return we(te,D);case"D":return H.$D;case"DD":return A.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return we(F.weekdaysMin,H.$W,N,2);case"ddd":return we(F.weekdaysShort,H.$W,N,3);case"dddd":return N[H.$W];case"H":return String(x);case"HH":return A.s(x,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Le(x,C,!0);case"A":return Le(x,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(H.$s);case"ss":return A.s(H.$s,2,"0");case"SSS":return A.s(H.$ms,3,"0");case"Z":return z}return null})(ae)||z.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,H,F){var q,z=this,x=A.p(H),C=S($),D=(C.utcOffset()-this.utcOffset())*n,N=this-C,te=function(){return A.m(z,C)};switch(x){case p:q=te()/12;break;case f:q=te();break;case h:q=te()/3;break;case c:q=(N-D)/6048e5;break;case a:q=(N-D)/864e5;break;case l:q=N/i;break;case u:q=N/n;break;case o:q=N/r;break;default:q=N}return F?q:A.a(q)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return y[this.$L]},B.locale=function($,H){if(!$)return this.$L;var F=this.clone(),q=L($,H,!0);return q&&(F.$L=q),F},B.clone=function(){return A.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},I})(),j=M.prototype;return S.prototype=j,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){j[I[1]]=function(B){return this.$g(B,I[0],I[1])}})),S.extend=function(I,B){return I.$i||(I(B,M,S),I.$i=!0),S},S.locale=L,S.isDayjs=O,S.unix=function(I){return S(1e3*I)},S.en=y[w],S.Ls=y,S.p={},S}))})(Bo);var Po=Bo.exports;const Bg=Ld(Po);var Pg={exports:{}};(function(t,e){(function(r,n){t.exports=n(Po)})(oe,(function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(Pg);Bg.locale("zh-cn");function jg(t=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return t?e.toLowerCase():e.replace(/-/gi,"")}function ir(t=0){return U(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function Ng(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function Ig(t,e){return Array.from(new Set(t))}function Wi(t){return t?[].concat(t):[]}function jr(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)||(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Mg(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)&&(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var jo={exports:{}};(function(t){var e=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var h=[];return a.forEach(function(p){h.push(r(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",v="",E="",m=2,b=3,_=2,w=[],y=0,T=0,O;for(O=0;O<l.length;O+=1)if(g=l.charAt(O),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),v=E+g,Object.prototype.hasOwnProperty.call(p,v))E=v;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[v]=b++,E=String(g)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;for(;;)if(y=y<<1,T==a-1){w.push(c(y));break}else T++;return w.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",v=[],E,m,b,_,w,y,T,O={val:c(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(b=0,w=Math.pow(2,2),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 2:return""}for(f[3]=T,m=T,v.push(T);;){if(O.index>l)return"";for(b=0,w=Math.pow(2,d),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(T=b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;v.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(jo);var No=jo.exports;function Fg(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var i="",s=r+1;s<t.length;){var o=t.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){l+=t[s++]+t[s++];continue}if(t[s]===")"){if(u--,u===0){s++;break}}else if(t[s]==="("&&(u++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=t[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:l}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function Io(t,e){e===void 0&&(e={});for(var r=Fg(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(rt(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(y){if(l<r.length&&r[l].type===y)return r[l++].value},f=function(y){var T=c(y);if(T!==void 0)return T;var O=r[l],L=O.type,S=O.index;throw new TypeError("Unexpected ".concat(L," at ").concat(S,", expected ").concat(y))},h=function(){for(var y="",T;T=c("CHAR")||c("ESCAPED_CHAR");)y+=T;return y};l<r.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var v=p||"";i.indexOf(v)===-1&&(a+=v,v=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:v,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var E=p||c("ESCAPED_CHAR");if(E){a+=E;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var v=h(),b=c("NAME")||"",_=c("PATTERN")||"",w=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:v,suffix:w,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Lg(t,e){return Ug(Io(t,e),e)}function Ug(t,e){e===void 0&&(e={});var r=Dn(e),n=e.encode,i=n===void 0?function(l){return l}:n,s=e.validate,o=s===void 0?!0:s,u=t.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<t.length;c++){var f=t[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var v=i(h[g],f);if(o&&!u[c].test(v))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var v=i(String(h),f);if(o&&!u[c].test(v))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function Hg(t,e){var r=[],n=Cn(t,r,e);return Vg(n,r,e)}function Vg(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=t.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=e[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function rt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Dn(t){return t&&t.sensitive?"":"i"}function kg(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}function qg(t,e,r){var n=t.map(function(i){return Cn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Dn(r))}function zg(t,e,r){return Wg(Io(t,r),e,r)}function Wg(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(S){return S}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,g="[".concat(rt(d),"]|$"),v="[".concat(rt(h),"]"),E=o?"^":"",m=0,b=t;m<b.length;m++){var _=b[m];if(typeof _=="string")E+=rt(c(_));else{var w=rt(c(_.prefix)),y=rt(c(_.suffix));if(_.pattern)if(e&&e.push(_),w||y)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";E+="(?:".concat(w,"((?:").concat(_.pattern,")(?:").concat(y).concat(w,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(T)}else E+="(?:".concat(w,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(w).concat(y,")").concat(_.modifier)}}if(l)i||(E+="".concat(v,"?")),E+=r.endsWith?"(?=".concat(g,")"):"$";else{var O=t[t.length-1],L=typeof O=="string"?v.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(v,"(?=").concat(g,"))?")),L||(E+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(E,Dn(r))}function Cn(t,e,r){return t instanceof RegExp?kg(t,e):Array.isArray(t)?qg(t,e,r):zg(t,e,r)}var Kg=Object.defineProperty,Jg=(t,e,r)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dt=(t,e,r)=>(Jg(t,typeof e!="symbol"?e+"":e,r),r);class Gg{constructor(){dt(this,"queue",[]),dt(this,"isProcessing",!1),dt(this,"results",[]),dt(this,"cache",new Map),dt(this,"pendingTasks",new Map)}add(e,r){const n=this.cache.get(e);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(e);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:e,task:r,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(e,s),s}getAllResults(){return[...this.results]}getResult(e){return this.cache.get(e)}clearCacheForKey(e){this.cache.delete(e)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:e,task:r,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(e);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(e),this.processQueue();return}const o=yield r(),u={key:e,status:"fulfilled",value:o};this.results.push(u),this.cache.set(e,u),n(o),this.pendingTasks.delete(e)}catch(s){const o={key:e,status:"rejected",reason:s};this.results.push(o),this.cache.set(e,o),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}No.compress;No.decompress;/**!
|
|
45
|
+
*/(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(oe,function(){var e,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return e=function(a){var c,f,h,p;if(e.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||r.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||e._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},e.version=n,e.isNumeral=function(a){return a instanceof l},e._=r={numberToFormat:function(a,c,f){var h=s[e.options.currentLocale],p=!1,d=!1,g=0,v="",E=1e12,m=1e9,b=1e6,_=1e3,w="",y=!1,T,O,L,S,A,M,j;if(a=a||0,O=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),O>=E&&!T||T==="t"?(v+=h.abbreviations.trillion,a=a/E):O<E&&O>=m&&!T||T==="b"?(v+=h.abbreviations.billion,a=a/m):O<m&&O>=b&&!T||T==="m"?(v+=h.abbreviations.million,a=a/b):(O<b&&O>=_&&!T||T==="k")&&(v+=h.abbreviations.thousand,a=a/_)),e._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),w=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):w=e._.toFixed(a,S.length,f),L=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",d&&Number(w.slice(1))===0&&(w="")):L=e._.toFixed(a,0,f),v&&!T&&Number(L)>=1e3&&v!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(L,"-")&&(L=L.slice(1),y=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),j=L+w+(v||""),p?j=(p&&y?"(":"")+j+(p&&y?")":""):A>=0?j=A===0?(y?"-":"+")+j:j+(y?"-":"+"):y&&(j="-"+j),j},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=r.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,v,E,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,E=Math.pow(10,g),m=(f(a+"e+"+g)/E).toFixed(g),h>c-g&&(v=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(v,"")),m}},e.options=u,e.formats=i,e.locales=s,e.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},e.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},e.reset=function(){for(var a in o)u[a]=o[a]},e.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},e.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},e.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},e.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},e.validate=function(a,c){var f,h,p,d,g,v,E,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=e.localeData(c)}catch(b){E=e.localeData(e.locale())}return p=E.currency.symbol,g=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(v=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||e._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(e(this._value).subtract(a).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=e._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(e._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var v,E=e._.includes(d,"ib")?c:a,m=e._.includes(d," b")||e._.includes(d," ib")?" ":"",b,_,w;for(d=d.replace(/\s?i?b/,""),b=0;b<=E.suffixes.length;b++)if(_=Math.pow(E.base,b),w=Math.pow(E.base,b+1),p===null||p===0||p>=_&&p<w){m+=E.suffixes[b],_>0&&(p=p/_);break}return v=e._.numberToFormat(p,d,g),v+m},unformat:function(p){var d=e._.stringToNumber(p),g,v;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(e._.includes(p,a.suffixes[g])){v=Math.pow(a.base,g);break}if(e._.includes(p,c.suffixes[g])){v=Math.pow(c.base,g);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,v;for(c=c.replace(/\s?\$\s?/,""),d=e._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!e._.includes(p.before,"-")&&!e._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v<p.before.length;v++)switch(g=p.before[v],g){case"$":d=e._.insert(d,h.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+h.currency.symbol.length-1);break}for(v=p.after.length-1;v>=0;v--)switch(g=p.after[v],g){case"$":d=v===p.after.length-1?d+h.currency.symbol:e._.insert(d,h.currency.symbol,-(p.after.length-(1+v)));break;case" ":d=v===p.after.length-1?d+" ":e._.insert(d," ",-(p.after.length-(1+v)+h.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!e._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=e._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=e._.includes(a,"e-")?h*=-1:h;function p(d,g,v,E){var m=e._.correctionFactor(d,g),b=d*m*(g*m)/(m*m);return b}return e._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p,d=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=e._.includes(c," %")?" ":"",p;return e.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=e._.stringToNumber(a);return e.options.scalePercentBy100?c*.01:c}})})(),(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),e})})(Cg);var Bo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(oe,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|YYYY|YY|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,m={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(I){var B=["th","st","nd","rd"],$=I%100;return"["+I+(B[($-20)%10]||B[$]||B[0])+"]"}},b=function(I,B,$){var H=String(I);return!H||H.length>=B?I:""+Array(B+1-H.length).join($)+I},_={s:b,z:function(I){var B=-I.utcOffset(),$=Math.abs(B),H=Math.floor($/60),F=$%60;return(B<=0?"+":"-")+b(H,2,"0")+":"+b(F,2,"0")},m:function I(B,$){if(B.date()<$.date())return-I($,B);var H=12*($.year()-B.year())+($.month()-B.month()),F=B.clone().add(H,f),q=$-F<0,z=B.clone().add(H+(q?-1:1),f);return+(-(H+($-F)/(q?F-z:z-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",y={};y[w]=m;var T="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[T])},L=function I(B,$,H){var F;if(!B)return w;if(typeof B=="string"){var q=B.toLowerCase();y[q]&&(F=q),$&&(y[q]=$,F=q);var z=B.split("-");if(!F&&z.length>1)return I(z[0])}else{var x=B.name;y[x]=B,F=x}return!H&&F&&(w=F),F||!H&&w},S=function(I,B){if(O(I))return I.clone();var $=typeof B=="object"?B:{};return $.date=I,$.args=arguments,new M($)},A=_;A.l=L,A.i=O,A.w=function(I,B){return S(I,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var B=I.prototype;return B.parse=function($){this.$d=(function(H){var F=H.date,q=H.utc;if(F===null)return new Date(NaN);if(A.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var z=F.match(v);if(z){var x=z[2]-1||0,C=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)):new Date(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)}}return new Date(F)})($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return A},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function($,H){var F=S($);return this.startOf(H)<=F&&F<=this.endOf(H)},B.isAfter=function($,H){return S($)<this.startOf(H)},B.isBefore=function($,H){return this.endOf(H)<S($)},B.$g=function($,H,F){return A.u($)?this[H]:this.set(F,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,H){var F=this,q=!!A.u(H)||H,z=A.p($),x=function(Le,ae){var Pe=A.w(F.$u?Date.UTC(F.$y,ae,Le):new Date(F.$y,ae,Le),F);return q?Pe:Pe.endOf(a)},C=function(Le,ae){return A.w(F.toDate()[Le].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},D=this.$W,N=this.$M,te=this.$D,xe="set"+(this.$u?"UTC":"");switch(z){case p:return q?x(1,0):x(31,11);case f:return q?x(1,N):x(0,N+1);case c:var we=this.$locale().weekStart||0,ft=(D<we?D+7:D)-we;return x(q?te-ft:te+(6-ft),N);case a:case d:return C(xe+"Hours",0);case l:return C(xe+"Minutes",1);case u:return C(xe+"Seconds",2);case o:return C(xe+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,H){var F,q=A.p($),z="set"+(this.$u?"UTC":""),x=(F={},F[a]=z+"Date",F[d]=z+"Date",F[f]=z+"Month",F[p]=z+"FullYear",F[l]=z+"Hours",F[u]=z+"Minutes",F[o]=z+"Seconds",F[s]=z+"Milliseconds",F)[q],C=q===a?this.$D+(H-this.$W):H;if(q===f||q===p){var D=this.clone().set(d,1);D.$d[x](C),D.init(),this.$d=D.set(d,Math.min(this.$D,D.daysInMonth())).$d}else x&&this.$d[x](C);return this.init(),this},B.set=function($,H){return this.clone().$set($,H)},B.get=function($){return this[A.p($)]()},B.add=function($,H){var F,q=this;$=Number($);var z=A.p(H),x=function(N){var te=S(q);return A.w(te.date(te.date()+Math.round(N*$)),q)};if(z===f)return this.set(f,this.$M+$);if(z===p)return this.set(p,this.$y+$);if(z===a)return x(1);if(z===c)return x(7);var C=(F={},F[u]=n,F[l]=i,F[o]=r,F)[z]||1,D=this.$d.getTime()+$*C;return A.w(D,this)},B.subtract=function($,H){return this.add(-1*$,H)},B.format=function($){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),x=this.$H,C=this.$m,D=this.$M,N=F.weekdays,te=F.months,xe=F.meridiem,we=function(ae,Pe,ht,Bt){return ae&&(ae[Pe]||ae(H,q))||ht[Pe].slice(0,Bt)},ft=function(ae){return A.s(x%12||12,ae,"0")},Le=xe||function(ae,Pe,ht){var Bt=ae<12?"AM":"PM";return ht?Bt.toLowerCase():Bt};return q.replace(E,(function(ae,Pe){return Pe||(function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return A.s(H.$y,4,"0");case"M":return D+1;case"MM":return A.s(D+1,2,"0");case"MMM":return we(F.monthsShort,D,te,3);case"MMMM":return we(te,D);case"D":return H.$D;case"DD":return A.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return we(F.weekdaysMin,H.$W,N,2);case"ddd":return we(F.weekdaysShort,H.$W,N,3);case"dddd":return N[H.$W];case"H":return String(x);case"HH":return A.s(x,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Le(x,C,!0);case"A":return Le(x,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(H.$s);case"ss":return A.s(H.$s,2,"0");case"SSS":return A.s(H.$ms,3,"0");case"Z":return z}return null})(ae)||z.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,H,F){var q,z=this,x=A.p(H),C=S($),D=(C.utcOffset()-this.utcOffset())*n,N=this-C,te=function(){return A.m(z,C)};switch(x){case p:q=te()/12;break;case f:q=te();break;case h:q=te()/3;break;case c:q=(N-D)/6048e5;break;case a:q=(N-D)/864e5;break;case l:q=N/i;break;case u:q=N/n;break;case o:q=N/r;break;default:q=N}return F?q:A.a(q)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return y[this.$L]},B.locale=function($,H){if(!$)return this.$L;var F=this.clone(),q=L($,H,!0);return q&&(F.$L=q),F},B.clone=function(){return A.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},I})(),j=M.prototype;return S.prototype=j,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){j[I[1]]=function(B){return this.$g(B,I[0],I[1])}})),S.extend=function(I,B){return I.$i||(I(B,M,S),I.$i=!0),S},S.locale=L,S.isDayjs=O,S.unix=function(I){return S(1e3*I)},S.en=y[w],S.Ls=y,S.p={},S}))})(Bo);var Po=Bo.exports;const Bg=Ld(Po);var Pg={exports:{}};(function(t,e){(function(r,n){t.exports=n(Po)})(oe,(function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(Pg);Bg.locale("zh-cn");function jg(t=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return t?e.toLowerCase():e.replace(/-/gi,"")}function ir(t=0){return U(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function Ng(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function Ig(t,e){return Array.from(new Set(t))}function Wi(t){return t?[].concat(t):[]}function jr(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)||(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Mg(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)&&(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var jo={exports:{}};(function(t){var e=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var h=[];return a.forEach(function(p){h.push(r(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",v="",E="",m=2,b=3,_=2,w=[],y=0,T=0,O;for(O=0;O<l.length;O+=1)if(g=l.charAt(O),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),v=E+g,Object.prototype.hasOwnProperty.call(p,v))E=v;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[v]=b++,E=String(g)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;for(;;)if(y=y<<1,T==a-1){w.push(c(y));break}else T++;return w.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",v=[],E,m,b,_,w,y,T,O={val:c(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(b=0,w=Math.pow(2,2),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 2:return""}for(f[3]=T,m=T,v.push(T);;){if(O.index>l)return"";for(b=0,w=Math.pow(2,d),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(T=b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;v.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(jo);var No=jo.exports;function Fg(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var i="",s=r+1;s<t.length;){var o=t.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){l+=t[s++]+t[s++];continue}if(t[s]===")"){if(u--,u===0){s++;break}}else if(t[s]==="("&&(u++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=t[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:l}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function Io(t,e){e===void 0&&(e={});for(var r=Fg(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(rt(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(y){if(l<r.length&&r[l].type===y)return r[l++].value},f=function(y){var T=c(y);if(T!==void 0)return T;var O=r[l],L=O.type,S=O.index;throw new TypeError("Unexpected ".concat(L," at ").concat(S,", expected ").concat(y))},h=function(){for(var y="",T;T=c("CHAR")||c("ESCAPED_CHAR");)y+=T;return y};l<r.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var v=p||"";i.indexOf(v)===-1&&(a+=v,v=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:v,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var E=p||c("ESCAPED_CHAR");if(E){a+=E;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var v=h(),b=c("NAME")||"",_=c("PATTERN")||"",w=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:v,suffix:w,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Lg(t,e){return Ug(Io(t,e),e)}function Ug(t,e){e===void 0&&(e={});var r=Dn(e),n=e.encode,i=n===void 0?function(l){return l}:n,s=e.validate,o=s===void 0?!0:s,u=t.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<t.length;c++){var f=t[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var v=i(h[g],f);if(o&&!u[c].test(v))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var v=i(String(h),f);if(o&&!u[c].test(v))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function Hg(t,e){var r=[],n=Cn(t,r,e);return Vg(n,r,e)}function Vg(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=t.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=e[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function rt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Dn(t){return t&&t.sensitive?"":"i"}function kg(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}function qg(t,e,r){var n=t.map(function(i){return Cn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Dn(r))}function zg(t,e,r){return Wg(Io(t,r),e,r)}function Wg(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(S){return S}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,g="[".concat(rt(d),"]|$"),v="[".concat(rt(h),"]"),E=o?"^":"",m=0,b=t;m<b.length;m++){var _=b[m];if(typeof _=="string")E+=rt(c(_));else{var w=rt(c(_.prefix)),y=rt(c(_.suffix));if(_.pattern)if(e&&e.push(_),w||y)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";E+="(?:".concat(w,"((?:").concat(_.pattern,")(?:").concat(y).concat(w,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(T)}else E+="(?:".concat(w,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(w).concat(y,")").concat(_.modifier)}}if(l)i||(E+="".concat(v,"?")),E+=r.endsWith?"(?=".concat(g,")"):"$";else{var O=t[t.length-1],L=typeof O=="string"?v.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(v,"(?=").concat(g,"))?")),L||(E+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(E,Dn(r))}function Cn(t,e,r){return t instanceof RegExp?kg(t,e):Array.isArray(t)?qg(t,e,r):zg(t,e,r)}var Kg=Object.defineProperty,Jg=(t,e,r)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dt=(t,e,r)=>(Jg(t,typeof e!="symbol"?e+"":e,r),r);class Gg{constructor(){dt(this,"queue",[]),dt(this,"isProcessing",!1),dt(this,"results",[]),dt(this,"cache",new Map),dt(this,"pendingTasks",new Map)}add(e,r){const n=this.cache.get(e);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(e);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:e,task:r,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(e,s),s}getAllResults(){return[...this.results]}getResult(e){return this.cache.get(e)}clearCacheForKey(e){this.cache.delete(e)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:e,task:r,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(e);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(e),this.processQueue();return}const o=yield r(),u={key:e,status:"fulfilled",value:o};this.results.push(u),this.cache.set(e,u),n(o),this.pendingTasks.delete(e)}catch(s){const o={key:e,status:"rejected",reason:s};this.results.push(o),this.cache.set(e,o),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}No.compress;No.decompress;/**!
|
|
46
46
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.
|
|
49
|
+
* @version 0.17.0
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
51
|
*/const Yg="VueMaterial",Zg="VueRouterMaterial",Qg={[Yg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zg]:["RouterView","RouterLink"]};let Xg=class{constructor(){k(this,"listeners",[]);k(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var ev=Object.defineProperty,tv=(t,e,r)=>e in t?ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fe=(t,e,r)=>tv(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();function Mo(t,e){return function(){return t.apply(e,arguments)}}const{toString:rv}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:fr,toStringTag:Fo}=Symbol,hr=(t=>e=>{const r=rv.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>hr(e)===t),pr=t=>e=>typeof e===t,{isArray:lt}=Array,st=pr("undefined");function xt(t){return t!==null&&!st(t)&&t.constructor!==null&&!st(t.constructor)&&ue(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lo=_e("ArrayBuffer");function nv(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lo(t.buffer),e}const iv=pr("string"),ue=pr("function"),Uo=pr("number"),Ot=t=>t!==null&&typeof t=="object",sv=t=>t===!0||t===!1,Jt=t=>{if(hr(t)!=="object")return!1;const e=Bn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in t)&&!(fr in t)},ov=t=>{if(!Ot(t)||xt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},av=_e("Date"),uv=_e("File"),cv=t=>!!(t&&typeof t.uri<"u"),lv=t=>t&&typeof t.getParts<"u",fv=_e("Blob"),hv=_e("FileList"),pv=t=>Ot(t)&&ue(t.pipe);function dv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ki=dv(),Ji=typeof Ki.FormData<"u"?Ki.FormData:void 0,gv=t=>{let e;return t&&(Ji&&t instanceof Ji||ue(t.append)&&((e=hr(t))==="formdata"||e==="object"&&ue(t.toString)&&t.toString()==="[object FormData]"))},vv=_e("URLSearchParams"),[mv,yv,bv,_v]=["ReadableStream","Request","Response","Headers"].map(_e),wv=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $t(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),lt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(xt(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,t[u],u,t)}}function Ho(t,e){if(xt(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=t=>!st(t)&&t!==ke;function an(){const{caseless:t,skipUndefined:e}=Vo(this)&&this||{},r={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&Ho(r,s)||s;Jt(r[o])&&Jt(i)?r[o]=an(r[o],i):Jt(i)?r[o]=an({},i):lt(i)?r[o]=i.slice():(!e||!st(i))&&(r[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&$t(arguments[i],n);return r}const Ev=(t,e,r,{allOwnKeys:n}={})=>($t(e,(i,s)=>{r&&ue(i)?Object.defineProperty(t,s,{value:Mo(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Sv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Tv=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Rv=(t,e,r,n)=>{let i,s,o;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&Bn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Av=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},xv=t=>{if(!t)return null;if(lt(t))return t;let e=t.length;if(!Uo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ov=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bn(Uint8Array)),$v=(t,e)=>{const r=(t&&t[fr]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Dv=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Cv=_e("HTMLFormElement"),Bv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),Gi=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Pv=_e("RegExp"),ko=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};$t(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},jv=t=>{ko(t,(e,r)=>{if(ue(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Nv=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return lt(t)?n(t):n(String(t).split(e)),r},Iv=()=>{},Mv=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Fv(t){return!!(t&&ue(t.append)&&t[Fo]==="FormData"&&t[fr])}const Lv=t=>{const e=new Array(10),r=(n,i)=>{if(Ot(n)){if(e.indexOf(n)>=0)return;if(xt(n))return n;if(!("toJSON"in n)){e[i]=n;const s=lt(n)?[]:{};return $t(n,(o,u)=>{const l=r(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return r(t,0)},Uv=_e("AsyncFunction"),Hv=t=>t&&(Ot(t)||ue(t))&&ue(t.then)&&ue(t.catch),qo=((t,e)=>t?setImmediate:e?((r,n)=>(ke.addEventListener("message",({source:i,data:s})=>{i===ke&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(ke.postMessage)),Vv=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||qo,kv=t=>t!=null&&ue(t[fr]),R={isArray:lt,isArrayBuffer:Lo,isBuffer:xt,isFormData:gv,isArrayBufferView:nv,isString:iv,isNumber:Uo,isBoolean:sv,isObject:Ot,isPlainObject:Jt,isEmptyObject:ov,isReadableStream:mv,isRequest:yv,isResponse:bv,isHeaders:_v,isUndefined:st,isDate:av,isFile:uv,isReactNativeBlob:cv,isReactNative:lv,isBlob:fv,isRegExp:Pv,isFunction:ue,isStream:pv,isURLSearchParams:vv,isTypedArray:Ov,isFileList:hv,forEach:$t,merge:an,extend:Ev,trim:wv,stripBOM:Sv,inherits:Tv,toFlatObject:Rv,kindOf:hr,kindOfTest:_e,endsWith:Av,toArray:xv,forEachEntry:$v,matchAll:Dv,isHTMLForm:Cv,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:ko,freezeMethods:jv,toObjectSet:Nv,toCamelCase:Bv,noop:Iv,toFiniteNumber:Mv,findKey:Ho,global:ke,isContextDefined:Vo,isSpecCompliantForm:Fv,toJSONObject:Lv,isAsyncFn:Uv,isThenable:Hv,setImmediate:qo,asap:Vv,isIterable:kv};let W=class zo extends Error{static from(e,r,n,i,s,o){const u=new zo(e.message,r||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),o&&Object.assign(u,o),u}constructor(e,r,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){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:R.toJSONObject(this.config),code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const qv=null;function un(t){return R.isPlainObject(t)||R.isArray(t)}function Wo(t){return R.endsWith(t,"[]")?t.slice(0,-2):t}function Nr(t,e,r){return t?t.concat(e).map(function(n,i){return n=Wo(n),!r&&i?"["+n+"]":n}).join(r?".":""):e}function zv(t){return R.isArray(t)&&!t.some(un)}const Wv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function dr(t,e,r){if(!R.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(e);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let v=p;if(R.isReactNative(e)&&R.isReactNativeBlob(p))return e.append(Nr(g,d,s),l(p)),!1;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&zv(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(v=R.toArray(p)))return d=Wo(d),v.forEach(function(E,m){!(R.isUndefined(E)||E===null)&&e.append(o===!0?Nr([d],m,s):o===null?d:d+"[]",l(E))}),!1}return un(p)?!0:(e.append(Nr(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Wv,{defaultVisitor:a,convertValue:l,isVisitable:un});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,v){(!(R.isUndefined(g)||g===null)&&i.call(e,g,R.isString(v)?v.trim():v,d,f))===!0&&h(g,d?d.concat(v):[v])}),c.pop()}}if(!R.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Pn(t,e){this._pairs=[],t&&dr(t,this,e)}const Ko=Pn.prototype;Ko.append=function(t,e){this._pairs.push([t,e])};Ko.toString=function(t){const e=t?function(r){return t.call(this,r,Yi)}:Yi;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Kv(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(t,e,r){if(!e)return t;const n=r&&r.encode||Kv,i=R.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let o;if(s?o=s(e,i):o=R.isURLSearchParams(e)?e.toString():new Pn(e,i).toString(n),o){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Zi{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(r){r!==null&&e(r)})}}const jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jv=typeof URLSearchParams<"u"?URLSearchParams:Pn,Gv=typeof FormData<"u"?FormData:null,Yv=typeof Blob<"u"?Blob:null,Zv={isBrowser:!0,classes:{URLSearchParams:Jv,FormData:Gv,Blob:Yv},protocols:["http","https","file","blob","url","data"]},Nn=typeof window<"u"&&typeof document<"u",cn=typeof navigator=="object"&&navigator||void 0,Qv=Nn&&(!cn||["ReactNative","NativeScript","NS"].indexOf(cn.product)<0),Xv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",em=Nn&&window.location.href||"http://localhost",tm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nn,hasStandardBrowserEnv:Qv,hasStandardBrowserWebWorkerEnv:Xv,navigator:cn,origin:em},Symbol.toStringTag,{value:"Module"})),ie=V(V({},tm),Zv);function rm(t,e){return dr(t,new ie.classes.URLSearchParams,V({visitor:function(r,n,i,s){return ie.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function nm(t){return R.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function im(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],e[s]=t[s];return e}function Go(t){function e(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=im(i[o])),!u)}if(R.isFormData(t)&&R.isFunction(t.entries)){const r={};return R.forEachEntry(t,(n,i)=>{e(nm(n),i,r,0)}),r}return null}function sm(t,e,r){if(R.isString(t))try{return(e||JSON.parse)(t),R.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Dt={transitional:jn,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return n?JSON.stringify(Go(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return rm(t,this.formSerializer).toString();if((s=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dr(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),sm(t)):t}],transformResponse:[function(t){const e=this.transitional||Dt.transitional,r=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],t=>{Dt.headers[t]={}});const om=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),am=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
52
|
-
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&om[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Qi=Symbol("internals");function gt(t){return t&&String(t).trim().toLowerCase()}function Gt(t){return t===!1||t==null?t:R.isArray(t)?t.map(Gt):String(t)}function um(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const cm=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ir(t,e,r,n,i){if(R.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function fm(t,e){const r=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(
|
|
53
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const r=(this[Qi]=this[Qi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=gt(s);r[o]||(fm(n,s),r[o]=!0)}return R.isArray(e)?e.forEach(i):i(e),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ce.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});R.freezeMethods(ce);function Mr(t,e){const r=this||Dt,n=e||r,i=ce.from(n.headers);let s=n.data;return R.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Yo(t){return!!(t&&t.__CANCEL__)}let Ct=class extends W{constructor(e,r,n){super(e!=null?e:"canceled",W.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zo(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hm(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function dm(t,e){let r=0,n=1e3/e,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const sr=(t,e,r=3)=>{let n=0;const i=pm(50,250);return dm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(f)},r)},Xi=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},es=t=>(...e)=>R.asap(()=>t(...e)),gm=ie.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ie.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,vm=ie.hasStandardBrowserEnv?{write(t,e,r,n,i,s,o){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];R.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mm(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ym(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Qo(t,e,r){let n=!mm(e);return t&&(n||r==!1)?ym(t,e):e}const ts=t=>t instanceof ce?V({},t):t;function Ke(t,e){e=e||{};const r={};function n(a,c,f,h){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:h},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in e)return n(a,c);if(f in t)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ts(a),ts(c),f,!0)};return R.forEach(Object.keys(V(V({},t),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=R.hasOwnProp(l,a)?l[a]:i,f=c(t[a],e[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Xo=t=>{const e=Ke({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=e;if(e.headers=o=ce.from(o),e.url=Jo(Qo(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(r)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(r.getHeaders)){const l=r.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(ie.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(e)),n||n!==!1&&gm(e.url))){const l=i&&s&&vm.read(s);l&&o.set(i,l)}return e},bm=typeof XMLHttpRequest<"u",_m=bm&&function(t){return new Promise(function(e,r){const n=Xo(t);let i=n.data;const s=ce.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function v(){if(!g)return;const m=ce.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:t,request:g};Zo(function(_){e(_),d()},function(_){r(_),d()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,t,g)),g=null)},g.onerror=function(m){const b=m&&m.message?m.message:"Network Error",_=new W(b,W.ERR_NETWORK,t,g);_.event=m||null,r(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||jn;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),r(new W(m,b.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,b){g.setRequestHeader(b,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=sr(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=sr(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(r(!m||m.type?new Ct(null,t,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=hm(n.url);if(E&&ie.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,t));return}g.send(i||null)})},wm=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new Ct(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new W(`timeout of ${e}ms exceeded`,W.ETIMEDOUT))},e);const u=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),t=null)};t.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Em=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Sm=function(t,e){return _r(this,null,function*(){try{for(var r=Un(Tm(t)),n,i,s;n=!(i=yield new Ue(r.next())).done;n=!1){const o=i.value;yield*wr(Em(o,e))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Ue(i.call(r)))}finally{if(s)throw s[0]}}})},Tm=function(t){return _r(this,null,function*(){if(t[Symbol.asyncIterator]){yield*wr(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new Ue(e.read());if(r)break;yield n}}finally{yield new Ue(e.cancel())}})},rs=(t,e,r,n)=>{const i=Sm(t,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(r){let p=s+=h;r(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},ns=64*1024,{isFunction:Ht}=R,Rm=(({Request:t,Response:e})=>({Request:t,Response:e}))(R.global),{ReadableStream:is,TextEncoder:ss}=R.global,os=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Am=t=>{t=R.merge.call({skipUndefined:!0},Rm,t);const{fetch:e,Request:r,Response:n}=t,i=e?Ht(e):typeof fetch=="function",s=Ht(r),o=Ht(n);if(!i)return!1;const u=i&&Ht(is),l=i&&(typeof ss=="function"?(d=>g=>d.encode(g))(new ss):d=>U(null,null,function*(){return new Uint8Array(yield new r(d).arrayBuffer())})),a=s&&u&&os(()=>{let d=!1;const g=new r(ie.origin,{body:new is,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&os(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,v)=>{let E=g&&g[d];if(E)return E.call(g);throw new W(`Response type '${d}' is not supported`,W.ERR_NOT_SUPPORT,v)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new r(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const v=R.toFiniteNumber(d.getContentLength());return v!=null?v:h(g)});return d=>U(null,null,function*(){let{url:g,method:v,data:E,signal:m,cancelToken:b,timeout:_,onDownloadProgress:w,onUploadProgress:y,responseType:T,headers:O,withCredentials:L="same-origin",fetchOptions:S}=Xo(d),A=e||fetch;T=T?(T+"").toLowerCase():"text";let M=wm([m,b&&b.toAbortSignal()],_),j=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let B;try{if(y&&a&&v!=="get"&&v!=="head"&&(B=yield p(O,E))!==0){let x=new r(g,{method:"POST",body:E,duplex:"half"}),C;if(R.isFormData(E)&&(C=x.headers.get("content-type"))&&O.setContentType(C),x.body){const[D,N]=Xi(B,sr(es(y)));E=rs(x.body,ns,D,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in r.prototype,H=re(V({},S),{signal:M,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:E,duplex:"half",credentials:$?L:void 0});j=s&&new r(g,H);let F=yield s?A(j,S):A(g,H);const q=c&&(T==="stream"||T==="response");if(c&&(w||q&&I)){const x={};["status","statusText","headers"].forEach(te=>{x[te]=F[te]});const C=R.toFiniteNumber(F.headers.get("content-length")),[D,N]=w&&Xi(C,sr(es(w),!0))||[];F=new n(rs(F.body,ns,D,()=>{N&&N(),I&&I()}),x)}T=T||"text";let z=yield f[R.findKey(f,T)||"text"](F,d);return!q&&I&&I(),yield new Promise((x,C)=>{Zo(x,C,{data:z,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:j})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,d,j,$&&$.response),{cause:$.cause||$}):W.from($,$&&$.code,d,j,$&&$.response)}})},xm=new Map,ea=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,s=[n,i,r];let o=s.length,u=o,l,a,c=xm;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:Am(e)),c=a;return a};ea();const In={http:qv,xhr:_m,fetch:{get:ea}};R.forEach(In,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const as=t=>`- ${t}`,Om=t=>R.isFunction(t)||t===null||t===!1;function $m(t,e){t=R.isArray(t)?t:[t];const{length:r}=t;let n,i;const s={};for(let o=0;o<r;o++){n=t[o];let u;if(i=n,!Om(n)&&(i=In[(u=String(n)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(e))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=r?o.length>1?`since :
|
|
52
|
+
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&om[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Qi=Symbol("internals");function gt(t){return t&&String(t).trim().toLowerCase()}function Gt(t){return t===!1||t==null?t:R.isArray(t)?t.map(Gt):String(t)}function um(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const cm=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ir(t,e,r,n,i){if(R.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function fm(t,e){const r=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function i(o,u,l){const a=gt(u);if(!a)throw new Error("header name must be a non-empty string");const c=R.findKey(n,a);(!c||n[c]===void 0||l===!0||l===void 0&&n[c]!==!1)&&(n[c||u]=Gt(o))}const s=(o,u)=>R.forEach(o,(l,a)=>i(l,a,u));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(R.isString(t)&&(t=t.trim())&&!cm(t))s(am(t),e);else if(R.isObject(t)&&R.isIterable(t)){let o={},u,l;for(const a of t){if(!R.isArray(a))throw TypeError("Object iterator must return a key-value pair");o[l=a[0]]=(u=o[l])?R.isArray(u)?[...u,a[1]]:[u,a[1]]:a[1]}s(o,e)}else t!=null&&i(e,t,r);return this}get(t,e){if(t=gt(t),t){const r=R.findKey(this,t);if(r){const n=this[r];if(!e)return n;if(e===!0)return um(n);if(R.isFunction(e))return e.call(this,n,r);if(R.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=gt(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Ir(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let n=!1;function i(s){if(s=gt(s),s){const o=R.findKey(r,s);o&&(!e||Ir(r,r[o],o,e))&&(delete r[o],n=!0)}}return R.isArray(t)?t.forEach(i):i(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];(!t||Ir(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return R.forEach(this,(n,i)=>{const s=R.findKey(r,i);if(s){e[s]=Gt(n),delete e[i];return}const o=t?lm(i):String(i).trim();o!==i&&delete e[i],e[o]=Gt(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return R.forEach(this,(r,n)=>{r!=null&&r!==!1&&(e[n]=t&&R.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
|
53
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(n=>r.set(n)),r}static accessor(t){const e=(this[Qi]=this[Qi]={accessors:{}}).accessors,r=this.prototype;function n(i){const s=gt(i);e[s]||(fm(r,i),e[s]=!0)}return R.isArray(t)?t.forEach(n):n(t),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ce.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});R.freezeMethods(ce);function Mr(t,e){const r=this||Dt,n=e||r,i=ce.from(n.headers);let s=n.data;return R.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Yo(t){return!!(t&&t.__CANCEL__)}let Ct=class extends W{constructor(e,r,n){super(e!=null?e:"canceled",W.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zo(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hm(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function dm(t,e){let r=0,n=1e3/e,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const sr=(t,e,r=3)=>{let n=0;const i=pm(50,250);return dm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(f)},r)},Xi=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},es=t=>(...e)=>R.asap(()=>t(...e)),gm=ie.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ie.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,vm=ie.hasStandardBrowserEnv?{write(t,e,r,n,i,s,o){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];R.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mm(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ym(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Qo(t,e,r){let n=!mm(e);return t&&(n||r==!1)?ym(t,e):e}const ts=t=>t instanceof ce?V({},t):t;function Ke(t,e){e=e||{};const r={};function n(a,c,f,h){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:h},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in e)return n(a,c);if(f in t)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ts(a),ts(c),f,!0)};return R.forEach(Object.keys(V(V({},t),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=R.hasOwnProp(l,a)?l[a]:i,f=c(t[a],e[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Xo=t=>{const e=Ke({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=e;if(e.headers=o=ce.from(o),e.url=Jo(Qo(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(r)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(r.getHeaders)){const l=r.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(ie.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(e)),n||n!==!1&&gm(e.url))){const l=i&&s&&vm.read(s);l&&o.set(i,l)}return e},bm=typeof XMLHttpRequest<"u",_m=bm&&function(t){return new Promise(function(e,r){const n=Xo(t);let i=n.data;const s=ce.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function v(){if(!g)return;const m=ce.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:t,request:g};Zo(function(_){e(_),d()},function(_){r(_),d()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,t,g)),g=null)},g.onerror=function(m){const b=m&&m.message?m.message:"Network Error",_=new W(b,W.ERR_NETWORK,t,g);_.event=m||null,r(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||jn;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),r(new W(m,b.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,b){g.setRequestHeader(b,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=sr(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=sr(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(r(!m||m.type?new Ct(null,t,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=hm(n.url);if(E&&ie.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,t));return}g.send(i||null)})},wm=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new Ct(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new W(`timeout of ${e}ms exceeded`,W.ETIMEDOUT))},e);const u=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),t=null)};t.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Em=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Sm=function(t,e){return _r(this,null,function*(){try{for(var r=Un(Tm(t)),n,i,s;n=!(i=yield new Ue(r.next())).done;n=!1){const o=i.value;yield*wr(Em(o,e))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Ue(i.call(r)))}finally{if(s)throw s[0]}}})},Tm=function(t){return _r(this,null,function*(){if(t[Symbol.asyncIterator]){yield*wr(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new Ue(e.read());if(r)break;yield n}}finally{yield new Ue(e.cancel())}})},rs=(t,e,r,n)=>{const i=Sm(t,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(r){let p=s+=h;r(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},ns=64*1024,{isFunction:Ht}=R,Rm=(({Request:t,Response:e})=>({Request:t,Response:e}))(R.global),{ReadableStream:is,TextEncoder:ss}=R.global,os=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Am=t=>{t=R.merge.call({skipUndefined:!0},Rm,t);const{fetch:e,Request:r,Response:n}=t,i=e?Ht(e):typeof fetch=="function",s=Ht(r),o=Ht(n);if(!i)return!1;const u=i&&Ht(is),l=i&&(typeof ss=="function"?(d=>g=>d.encode(g))(new ss):d=>U(null,null,function*(){return new Uint8Array(yield new r(d).arrayBuffer())})),a=s&&u&&os(()=>{let d=!1;const g=new r(ie.origin,{body:new is,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&os(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,v)=>{let E=g&&g[d];if(E)return E.call(g);throw new W(`Response type '${d}' is not supported`,W.ERR_NOT_SUPPORT,v)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new r(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const v=R.toFiniteNumber(d.getContentLength());return v!=null?v:h(g)});return d=>U(null,null,function*(){let{url:g,method:v,data:E,signal:m,cancelToken:b,timeout:_,onDownloadProgress:w,onUploadProgress:y,responseType:T,headers:O,withCredentials:L="same-origin",fetchOptions:S}=Xo(d),A=e||fetch;T=T?(T+"").toLowerCase():"text";let M=wm([m,b&&b.toAbortSignal()],_),j=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let B;try{if(y&&a&&v!=="get"&&v!=="head"&&(B=yield p(O,E))!==0){let x=new r(g,{method:"POST",body:E,duplex:"half"}),C;if(R.isFormData(E)&&(C=x.headers.get("content-type"))&&O.setContentType(C),x.body){const[D,N]=Xi(B,sr(es(y)));E=rs(x.body,ns,D,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in r.prototype,H=re(V({},S),{signal:M,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:E,duplex:"half",credentials:$?L:void 0});j=s&&new r(g,H);let F=yield s?A(j,S):A(g,H);const q=c&&(T==="stream"||T==="response");if(c&&(w||q&&I)){const x={};["status","statusText","headers"].forEach(te=>{x[te]=F[te]});const C=R.toFiniteNumber(F.headers.get("content-length")),[D,N]=w&&Xi(C,sr(es(w),!0))||[];F=new n(rs(F.body,ns,D,()=>{N&&N(),I&&I()}),x)}T=T||"text";let z=yield f[R.findKey(f,T)||"text"](F,d);return!q&&I&&I(),yield new Promise((x,C)=>{Zo(x,C,{data:z,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:j})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,d,j,$&&$.response),{cause:$.cause||$}):W.from($,$&&$.code,d,j,$&&$.response)}})},xm=new Map,ea=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,s=[n,i,r];let o=s.length,u=o,l,a,c=xm;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:Am(e)),c=a;return a};ea();const In={http:qv,xhr:_m,fetch:{get:ea}};R.forEach(In,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const as=t=>`- ${t}`,Om=t=>R.isFunction(t)||t===null||t===!1;function $m(t,e){t=R.isArray(t)?t:[t];const{length:r}=t;let n,i;const s={};for(let o=0;o<r;o++){n=t[o];let u;if(i=n,!Om(n)&&(i=In[(u=String(n)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(e))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=r?o.length>1?`since :
|
|
54
54
|
`+o.map(as).join(`
|
|
55
55
|
`):" "+as(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const ta={getAdapter:$m,adapters:In};function Fr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function us(t){return Fr(t),t.headers=ce.from(t.headers),t.data=Mr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ta.getAdapter(t.adapter||Dt.adapter,t)(t).then(function(e){return Fr(t),e.data=Mr.call(t,t.transformResponse,e),e.headers=ce.from(e.headers),e},function(e){return Yo(e)||(Fr(t),e&&e.response&&(e.response.data=Mr.call(t,t.transformResponse,e.response),e.response.headers=ce.from(e.response.headers))),Promise.reject(e)})}const ra="1.13.6",gr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{gr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const cs={};gr.transitional=function(t,e,r){function n(i,s){return"[Axios v"+ra+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new W(n(s," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!cs[s]&&(cs[s]=!0,console.warn(n(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,s,o):!0}};gr.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dm(t,e,r){if(typeof t!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],o=e[s];if(o){const u=t[s],l=u===void 0||o(u,s,t);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const Yt={assertOptions:Dm,validators:gr},le=Yt.validators;let qe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}request(e,r){return U(this,null,function*(){try{return yield this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
56
|
-
`+s):n.stack=s}catch(o){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ke(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean),legacyInterceptorReqResOrdering:le.transitional(le.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Yt.assertOptions(i,{encode:le.function,serialize:le.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Yt.assertOptions(r,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ce.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;l=l&&d.synchronous;const g=r.transitional||jn;g&&g.legacyInterceptorReqResOrdering?u.unshift(d.fulfilled,d.rejected):u.push(d.fulfilled,d.rejected)});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[us.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(r);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=r;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(v){g.call(this,v);break}}try{c=us.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(e){e=Ke(this.defaults,e);const r=Qo(e.baseURL,e.url,e.allowAbsoluteUrls);return Jo(r,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){qe.prototype[t]=function(e,r){return this.request(Ke(r||{},{method:t,url:e,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function e(r){return function(n,i,s){return this.request(Ke(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}qe.prototype[t]=e(),qe.prototype[t+"Form"]=e(!0)});let Cm=class na{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(i,s,o){n.reason||(n.reason=new Ct(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new na(function(r){e=r}),cancel:e}}};function Bm(t){return function(e){return t.apply(null,e)}}function Pm(t){return R.isObject(t)&&t.isAxiosError===!0}const ln={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ln).forEach(([t,e])=>{ln[e]=t});function ia(t){const e=new qe(t),r=Mo(qe.prototype.request,e);return R.extend(r,qe.prototype,e,{allOwnKeys:!0}),R.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return ia(Ke(t,n))},r}const Q=ia(Dt);Q.Axios=qe;Q.CanceledError=Ct;Q.CancelToken=Cm;Q.isCancel=Yo;Q.VERSION=ra;Q.toFormData=dr;Q.AxiosError=W;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=Bm;Q.isAxiosError=Pm;Q.mergeConfig=Ke;Q.AxiosHeaders=ce;Q.formToJSON=t=>Go(R.isHTMLForm(t)?new FormData(t):t);Q.getAdapter=ta.getAdapter;Q.HttpStatusCode=ln;Q.default=Q;const{Axios:R1,AxiosError:A1,CanceledError:x1,isCancel:O1,CancelToken:$1,VERSION:D1,all:C1,Cancel:B1,isAxiosError:P1,spread:j1,toFormData:N1,AxiosHeaders:I1,HttpStatusCode:M1,formToJSON:F1,getAdapter:L1,mergeConfig:U1}=Q,jm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Nm=["put","post","patch"],ls="Local-Request-Id",Im=100,Mm=300,Fm="/api/proxy";class Lm{constructor(e={}){fe(this,"axios"),fe(this,"settings"),fe(this,"records",{}),fe(this,"isLoading",!1),fe(this,"stopSkipWarn"),fe(this,"showLoading"),fe(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=jr(e,["settings","query"]);this.axios=Q.create(vt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=On(this.openLoading.bind(this),Im),this.showError=Md(this._showError.bind(this),Mm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=vt(this.settings,e.settings||{});const r=jr(e,["settings","query"]);this.axios.defaults=vt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=V(V({"Content-Type":jm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[ls]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:o,skipWarn:u}=e,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return Nm.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=V({},s)):o==="form"?c=V(V(V({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=V(V({},s),h)),{data:a,params:c}}createUrl(e){let{url:r,params:n}=e;if(r){let i=Tt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Lg(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||Fm,{protocol:s,host:o}=location||{},u=Tt(r)?r:`${s}//${o}${r}`;return n.Target=u,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:r,hideLoading:n}=e;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const o=(s=r==null?void 0:r.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(u,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=vt({},this.settings,e.settings||{}),i=e.query||{},s=jr(e,["settings","query"]),o=jg(!1),u=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:u};const l=this.createUrl(s)||"",a=this.createHeaders(o,n,s),{url:c,headers:f}=this.createProxy(n,l,a),{data:h,params:p}=this.createSendData(n,s,f,r,i);return this.showLoading(n),new Promise((d,g)=>{this.axios(re(V({cancelToken:u.token},s),{url:c,headers:f,data:h,params:p})).then(v=>{var E;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(E=v.data)==null?void 0:E.data):(this.showError(n,v.data),g(v.data))}).catch(v=>(this.showError(n,v),g(v))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[ls],l=this.records[u];if(!l)return o;const{data:a}=o;if(!a||typeof a!="object")return o;if((a==null?void 0:a.code)===r){i&&i(o);const c=new Promise(n).then(()=>this.send(re(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function Mn(t={}){const e=new Lm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(r,re(V({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const fn=Mn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),hn=typeof window<"u";function Um(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class sa{constructor(e={}){fe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),fe(this,"caches",{}),fe(this,"types"),this.types={local:hn?window.localStorage:this.caches,session:hn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+e,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+e,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(e,r),null):l}remove(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+e;s===this.caches?delete s[o]:s.removeItem(o)}clear(e={}){const{type:r}=V(V({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new sa;function oa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zt={exports:{}},Hm=Zt.exports,fs;function Vm(){return fs||(fs=1,(function(t,e){(function(r,n){n(e,t)})(Hm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,v){var E=c.jsonpCallbackFunction||s(),m=p+"_"+E;window[E]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(E)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+E),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=m,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){v(new Error("JSONP request to "+a+" timed out")),o(E),u(m),window[E]=function(){o(E)}},h),b.onerror=function(){v(new Error("JSONP request to "+a+" failed")),o(E),u(m),d&&clearTimeout(d)}})}n.exports=l})})(Zt,Zt.exports)),Zt.exports}var km=Vm();const qm=oa(km);function zm(t){if(hn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Wm(t=""){const e=t.match(Co);return e?e[0]:""}function aa(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function pn(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ua(t,e){e=typeof e=="string"?pn(e):e;const r=t.split("?")[0],n=pn(t),i=Object.assign({},n,e),s=aa(i);return s?[r,s].join("?"):t}const Qt=Object.freeze(Object.defineProperty({__proto__:null,append:ua,getCurrentHost:zm,getHost:Wm,parse:pn,stringify:aa},Symbol.toStringTag,{value:"Module"}));function ca(r){return U(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=Nd(t)(n||{}));const i=ua(t,n);return yield(yield qm(i,e)).json()})}var Ur,hs;function Km(){if(hs)return Ur;hs=1,Ur=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&t(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?e:r;l(u,s),u.onload||e(u,s),o.appendChild(u)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Ur}var Jm=Km();const Gm=oa(Jm);function ps(t,e={}){return new Promise((r,n)=>{const{library:i}=e;Gm(t,e,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ds={debug:-1,log:0,info:0,warn:1,error:2},Ym=function(t,e,r,n){return function(...i){if(e&&ds[e]<=ds[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Zm(i,r))}};function Zm(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Qm(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const Xm={level:"warn",bizName:"*"};class ey{constructor(e){fe(this,"config"),fe(this,"options"),this.options=V(V({},Xm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Qm(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Ym(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function ty(t){return new ey(t)}const it=ty({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Vt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var ry={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function dn(t,e){function r(i,s,o){if(!(typeof document>"u")){o=Vt({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=t.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Vt({},s,{expires:-1}))},withAttributes:function(i){return dn(this.converter,Vt({},this.attributes,i))},withConverter:function(i){return dn(Vt({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Fn=dn(ry,{path:"/"});function ny(t,e,r){Fn.set(t,e,r)}function iy(t){return Fn.get(t)}function sy(t,e){Fn.remove(t,e)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:iy,remove:sy,set:ny},Symbol.toStringTag,{value:"Module"}));/**!
|
|
56
|
+
`+s):n.stack=s}catch(o){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ke(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean),legacyInterceptorReqResOrdering:le.transitional(le.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Yt.assertOptions(i,{encode:le.function,serialize:le.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Yt.assertOptions(r,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ce.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;l=l&&d.synchronous;const g=r.transitional||jn;g&&g.legacyInterceptorReqResOrdering?u.unshift(d.fulfilled,d.rejected):u.push(d.fulfilled,d.rejected)});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[us.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(r);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=r;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(v){g.call(this,v);break}}try{c=us.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(e){e=Ke(this.defaults,e);const r=Qo(e.baseURL,e.url,e.allowAbsoluteUrls);return Jo(r,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){qe.prototype[t]=function(e,r){return this.request(Ke(r||{},{method:t,url:e,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function e(r){return function(n,i,s){return this.request(Ke(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}qe.prototype[t]=e(),qe.prototype[t+"Form"]=e(!0)});let Cm=class na{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(i,s,o){n.reason||(n.reason=new Ct(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new na(function(r){e=r}),cancel:e}}};function Bm(t){return function(e){return t.apply(null,e)}}function Pm(t){return R.isObject(t)&&t.isAxiosError===!0}const ln={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ln).forEach(([t,e])=>{ln[e]=t});function ia(t){const e=new qe(t),r=Mo(qe.prototype.request,e);return R.extend(r,qe.prototype,e,{allOwnKeys:!0}),R.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return ia(Ke(t,n))},r}const Q=ia(Dt);Q.Axios=qe;Q.CanceledError=Ct;Q.CancelToken=Cm;Q.isCancel=Yo;Q.VERSION=ra;Q.toFormData=dr;Q.AxiosError=W;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=Bm;Q.isAxiosError=Pm;Q.mergeConfig=Ke;Q.AxiosHeaders=ce;Q.formToJSON=t=>Go(R.isHTMLForm(t)?new FormData(t):t);Q.getAdapter=ta.getAdapter;Q.HttpStatusCode=ln;Q.default=Q;const{Axios:T1,AxiosError:R1,CanceledError:A1,isCancel:x1,CancelToken:O1,VERSION:$1,all:D1,Cancel:C1,isAxiosError:B1,spread:P1,toFormData:j1,AxiosHeaders:N1,HttpStatusCode:I1,formToJSON:M1,getAdapter:F1,mergeConfig:L1}=Q,jm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Nm=["put","post","patch"],ls="Local-Request-Id",Im=100,Mm=300,Fm="/api/proxy";class Lm{constructor(e={}){fe(this,"axios"),fe(this,"settings"),fe(this,"records",{}),fe(this,"isLoading",!1),fe(this,"stopSkipWarn"),fe(this,"showLoading"),fe(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=jr(e,["settings","query"]);this.axios=Q.create(vt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=On(this.openLoading.bind(this),Im),this.showError=Md(this._showError.bind(this),Mm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=vt(this.settings,e.settings||{});const r=jr(e,["settings","query"]);this.axios.defaults=vt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=V(V({"Content-Type":jm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[ls]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:o,skipWarn:u}=e,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return Nm.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=V({},s)):o==="form"?c=V(V(V({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=V(V({},s),h)),{data:a,params:c}}createUrl(e){let{url:r,params:n}=e;if(r){let i=Tt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Lg(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||Fm,{protocol:s,host:o}=location||{},u=Tt(r)?r:`${s}//${o}${r}`;return n.Target=u,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{hideLoading:r}=e;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const o=(s=r==null?void 0:r.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(u,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=vt({},this.settings,e.settings||{}),i=e.query||{},s=jr(e,["settings","query"]),o=jg(!1),u=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:u};const l=this.createUrl(s)||"",a=this.createHeaders(o,n,s),{url:c,headers:f}=this.createProxy(n,l,a),{data:h,params:p}=this.createSendData(n,s,f,r,i);return this.showLoading(n),new Promise((d,g)=>{this.axios(re(V({cancelToken:u.token},s),{url:c,headers:f,data:h,params:p})).then(v=>{var E;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(E=v.data)==null?void 0:E.data):(this.showError(n,v.data),g(v.data))}).catch(v=>(this.showError(n,v),g(v))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[ls],l=this.records[u];if(!l)return o;const{data:a}=o;if(!a||typeof a!="object")return o;if((a==null?void 0:a.code)===r){i&&i(o);const c=new Promise(n).then(()=>this.send(re(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function Mn(t={}){const e=new Lm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(r,re(V({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const fn=Mn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),hn=typeof window<"u";function Um(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class sa{constructor(e={}){fe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),fe(this,"caches",{}),fe(this,"types"),this.types={local:hn?window.localStorage:this.caches,session:hn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+e,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+e,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(e,r),null):l}remove(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+e;s===this.caches?delete s[o]:s.removeItem(o)}clear(e={}){const{type:r}=V(V({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new sa;function oa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zt={exports:{}},Hm=Zt.exports,fs;function Vm(){return fs||(fs=1,(function(t,e){(function(r,n){n(e,t)})(Hm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,v){var E=c.jsonpCallbackFunction||s(),m=p+"_"+E;window[E]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(E)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+E),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=m,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){v(new Error("JSONP request to "+a+" timed out")),o(E),u(m),window[E]=function(){o(E)}},h),b.onerror=function(){v(new Error("JSONP request to "+a+" failed")),o(E),u(m),d&&clearTimeout(d)}})}n.exports=l})})(Zt,Zt.exports)),Zt.exports}var km=Vm();const qm=oa(km);function zm(t){if(hn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Wm(t=""){const e=t.match(Co);return e?e[0]:""}function aa(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function pn(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ua(t,e){e=typeof e=="string"?pn(e):e;const r=t.split("?")[0],n=pn(t),i=Object.assign({},n,e),s=aa(i);return s?[r,s].join("?"):t}const Qt=Object.freeze(Object.defineProperty({__proto__:null,append:ua,getCurrentHost:zm,getHost:Wm,parse:pn,stringify:aa},Symbol.toStringTag,{value:"Module"}));function ca(r){return U(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=Nd(t)(n||{}));const i=ua(t,n);return yield(yield qm(i,e)).json()})}var Ur,hs;function Km(){if(hs)return Ur;hs=1,Ur=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&t(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?e:r;l(u,s),u.onload||e(u,s),o.appendChild(u)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Ur}var Jm=Km();const Gm=oa(Jm);function ps(t,e={}){return new Promise((r,n)=>{const{library:i}=e;Gm(t,e,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ds={debug:-1,log:0,info:0,warn:1,error:2},Ym=function(t,e,r,n){return function(...i){if(e&&ds[e]<=ds[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Zm(i,r))}};function Zm(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Qm(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const Xm={level:"warn",bizName:"*"};class ey{constructor(e){fe(this,"config"),fe(this,"options"),this.options=V(V({},Xm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Qm(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Ym(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function ty(t){return new ey(t)}const it=ty({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function Vt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)n!=="__proto__"&&(t[n]=r[n])}return t}var ry={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function dn(t,e){function r(i,s,o){if(!(typeof document>"u")){o=Vt({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(c in o||(o[c]=t.read(a,c)),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Vt({},s,{expires:-1}))},withAttributes:function(i){return dn(this.converter,Vt({},this.attributes,i))},withConverter:function(i){return dn(Vt({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Fn=dn(ry,{path:"/"});function ny(t,e,r){Fn.set(t,e,r)}function iy(t){return Fn.get(t)}function sy(t,e){Fn.remove(t,e)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:iy,remove:sy,set:ny},Symbol.toStringTag,{value:"Module"}));/**!
|
|
57
57
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/renderer
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.
|
|
60
|
+
* @version 0.17.0
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const Vr="0.
|
|
62
|
+
*/const Vr="0.17.0";var X=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(X||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],oy=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],ay={String,Number,Boolean,Array,Object,Function,Date},Xt="VtjPage",kr="VtjHomepage",la="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),uy="component,slot".split(",");function kt(t,e){return t.map(r=>Tt(r)||r.startsWith("/")?r:`${e}${r}`)}function vr(t){return/\.css$/.test(t)}function mr(t){return/\.js$/.test(t)}function cy(t){return/\.json$/.test(t)}function ly(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function fy(t,e,r=!1){const n=t.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{h==null||h.forEach(E=>{mr(E)&&i.push(ly(E,r)),vr(E)&&s.push(E)}),d&&(u.push(d),l[d]=kt(h||[],e),v&&(a[d]=v)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:kt(i,e),css:kt(s,e),materials:kt(o,e),libraryExports:u,materialExports:Ig(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function hy(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function py(t=[]){const e=t.filter(n=>vr(n)),r=t.filter(n=>mr(n));return{css:e,js:r}}function dy(t,e){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(E,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let w=1;for(f++;f<a.length&&w>0;)a[f]==="{"?w++:a[f]==="}"&&w--,f++;const y=a.substring(E,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:y,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const v=a.substring(d,f-1);c.push({type:"rule",selector:p,content:v.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${e}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${e}]${p}`:c}return`${c}[${e}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=r(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
63
63
|
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${e}]`)||n(f)?c:`${f}[${e}]`})}}const gy=750;function vy(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=gy;return e*n/i}function my(t,e){let r=!1,n=!1,i=!1,s="";for(let o=0;o<e.length;o++){const u=e[o];if(u==="'"&&!n&&!i?r=!r:u==='"'&&!r&&!i?n=!n:e.substr(o,4).toLowerCase()==="url("&&!r&&!n?i=!0:u===")"&&i&&(i=!1),!r&&!n&&!i){const l=e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${vy(t,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function fa(t){return Me(t)?t:JSON.stringify(t)}function yr(t,e,r,n=!1){const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,o=t.__uniConfig?my(t,r):r,u=n?dy(o,s):o,l=!!t.__uniConfig;if(i.prototype.replaceSync&&!l){const a=new i;a.id=e,a.replaceSync(u);const c=t.document,f=c.adoptedStyleSheets,h=Array.from(f).filter(p=>p.id!==e);c.adoptedStyleSheets=[...h,a]}else{const a=t.document;let c=a.getElementById(e);c?c.innerHTML=u:(c=a.createElement("style"),c.id=e,c.innerHTML=u,a.head.appendChild(c))}}function yy(t,e){return U(this,null,function*(){const r=yield window.fetch(e).then(n=>n.text()).catch(()=>"");r&&yr(window,t,r)})}function ha(t,e=window){const r=e.document,n=e.document.head;for(const i of t)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function pa(n,i){return U(this,arguments,function*(t,e,r=window){const s=r.document,o=r.document.head;let u=r[e];return u?u.default||u:new Promise((l,a)=>{for(const c of t){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[e],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function by(t){return ze(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ze(t==null?void 0:t.install)}function _y(t){return uy.includes(t)}function wy(t){return la.includes(t)}function Rt(t=window){const e=window==null?void 0:window.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&window)return window.Mock=r,r}function Ey(t){return/^\([\s\S]*\)/.test(t.trim())}function Sy(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function Ty(t){return t.includes("=")}function Ry(t){if(typeof window>"u")return;const e=window[0]||window;if(e.__simulator__)try{const r=e.__simulator__.engine.provider.errorHandler;r&&r(t)}catch(r){}}function At(t,e,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(t.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
|
|
64
64
|
`)+u;const l=i?`
|
|
65
65
|
${u}
|
|
66
|
-
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,t,(s=e==null?void 0:e.__self)!=null?s:e),Ry(o),n)throw o}}function pe(t,e,r=!1,n=!1,i=!1){var o;const s=At(t,e,r,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",t,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${t.value}" not a function`);return s}function me(t){return t&&t.type==="JSExpression"}function de(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const Ay={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},xy=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Ay,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:r,router:n,request:i}=e;this.mode=r,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(r,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[r+"."+i])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[r+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(xy,this)}isAuthPath(e){const{auth:r,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof r=="string"){const i=r.split("#")[1]||r;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:r}=this.options;if(!e)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=r?`${e}${n}`:e}setData(e){const{privateKey:r}=this.options;if(Array.isArray(e)&&r){const n=e.map(i=>zi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?zi(e,r):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:r}=this.options,n=Lr.get(e,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===Xt){const r=e.params.id;return r&&this.can(r)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((r,n,i)=>this.guard(r,i))}guard(e,r){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return r();if(this.isLogined()){if(this.hasRoutePermission(e))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),r(!1)):Me(i)?r(i):r(!1)}}r(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>e.fullPath.startsWith(n)):r(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return e.status===r||((i=e.data)==null?void 0:i[n])===r}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield ir(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),e.useResponse(r=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Oy(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=t;let l=null;return{request:Mn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function $y(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,re(V({},t.jsonpOptions),{query:i}));{const i=t.headers?At(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:re(V({},t.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function Dy(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function Cy(t=[],e=[],r){const n={};for(const i of t){const s=$y(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=Dy(i,r);return n}function By(){return U(this,arguments,function*(t=[],e=window){const r=Rt(e);r&&(ga(e),t.forEach(n=>jy(r,n)))})}function Py(t,e=window){const r=de(t.mockTemplate)&&t.mockTemplate.value?pe(t.mockTemplate,{},!0):void 0,n=Rt(e);return(...i)=>U(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function jy(t,e){if(!e.mock)return;const{url:r,mockTemplate:n}=e;if(r&&n)try{const i=Tt(r)?new URL(r).pathname:r,s=Cn(`(.*)${i}(.*)`),o=Hg(i,{decode:decodeURIComponent}),u=At(n,{},!0);t.mock(s,l=>{var p;const a=Qt.parse(l.url)||{},c=l.body instanceof FormData?Um(l.body):l.body,f=Tt(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return t.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(t=window){const e=Rt(t);e&&(e._mocked={})}class Ny{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=e;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,r=or){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){if(!this.__instance)return;const e=this.__instance;gs.forEach(r=>{var n;this[r]=e[r]||((n=e._)==null?void 0:n[r.replace("$","")])||null})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return At({type:i,value:s},this)}else return At(e,this)}__ref(e=null,r){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof r=="string"&&(delete this.$refs[r],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof r=="function"?r(i):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,r,n){const i=e[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const r=V(V({},this.context),e),n=re(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(t){var f,p;const{Vue:e=or,mode:r=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=t,u=e.computed(()=>t.dsl),l={$components:n,$libs:i,$apis:s},a=new Ny({mode:r,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},My((f=u.value.props)!=null?f:[],a)),setup(){return U(this,arguments,function*(d={}){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(t.window||window,u.value.id,u.value.css||"",!0),a.state=Fy(e,(_=u.value.state)!=null?_:{},a);const g=Ly(e,(w=u.value.computed)!=null?w:{},a),v=Uy((y=u.value.methods)!=null?y:{},a),E=Hy(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=Vy(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),ky(e,(T=u.value.watch)!=null?T:[],a),V(V(V({vtj:a,state:a.state},d),g),v)})},emits:Iy(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},qy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function Iy(t=[]){return t.map(e=>Me(e)?e:e.name)}function My(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return t.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Fy(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=r.__parseExpression(s):de(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Ly(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=t.computed(r.__parseFunction(s)),n),{})}function Uy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function Hy(t,e=[],r){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?r.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=t.inject(u,l),n},{})}function Vy(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=Py(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return r},{})}function ky(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function qy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>{const s=e.__parseFunction(i);return r[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),r},{})}class zy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,r){this.__props[e]=r}getProps(e){return this.__props[e]}loadProps(e,r){return(e?this.getProps(e):null)||(e&&this.setProps(e,r),r)}setEvents(e,r){}getEvents(e){return this.__events[e]}loadEvents(e,r){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,r),r)}setNode(e,r){this.__nodes[e]=r}getNode(e){return this.__nodes[e]}loadNode(e,r){return(e?this.getNode(e):null)||(e&&this.setNode(e,r),r)}isEqual(e,r){return vd(e,r)}clear(){this.__props={},this.__events={},this.__nodes={}}}const qt=new zy,Wy=new Gg;let qr=[],Xe={},zt={};const Ky=(t,e)=>e;function va(r){return U(this,arguments,function*(t,e=window){const{urls:n=[],library:i}=t,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(t){const{getDsl:e,getDslByUrl:r,options:n}=t;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield Wy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(t)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield r(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(t)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(t,e,r=or,n=Ky,i=[],s=!1,o=0){var _;if(!t||!t.name||t.invisible)return null;const u=(_=r.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=t,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!Gy(c,e))return t0(t,e,r,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(t.name==="component")return Yy(w,(N=t.props)==null?void 0:N.is);if(t.name==="slot")return t.name;const D=n(`${t.id}_${y}`,t.name,t.from,r);return Me(D)?_y(D)||wy(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Zy(l,(q=t.props)!=null?q:{},w),S=e0(r,t.id,(z=t.events)!=null?z:{},w);if(t.name==="slot")return r0(r,t,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},i0(d,w))),E&&Object.assign(L,s0(E,w)),g.forEach(D=>{la.includes(t.name)?Object.assign(L,o0(D,w)):Object.assign(L,a0(r,D,w))});const A=u0(r,(C=t.children)!=null?C:[],w,n,t),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,j=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},j),I),L),S);qt.isEqual($,qt.getNode(B))||qt.setNode(B,$);let H=r.createVNode(O,qt.getNode(B)||$||{},A);const F=u?Jy(u,m,w):[];return F.length&&(H=r.withDirectives(H,F)),H};return p?f0(p,b,e):b(e,o)}function Jy(t,e,r){const n=t.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ma(t=[]){const e=t.find(c=>Ee(c.name)==="vIf"),r=t.find(c=>Ee(c.name)==="vElseIf"),n=t.find(c=>Ee(c.name)==="vElse"),i=t.find(c=>Ee(c.name)==="vFor"),s=t.find(c=>Ee(c.name)==="vShow"),o=t.find(c=>Ee(c.name)==="vBind"),u=t.find(c=>Ee(c.name)==="vHtml"),l=t.filter(c=>Ee(c.name)==="vModel"),a=t.filter(c=>!oy.includes(Ee(c.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Gy(t,e){return!!e.__parseExpression(t.value)}function Yy(t,e){return e?me(e)?t.__parseExpression(e):e:"div"}function Zy(t,e,r){const n=mn(e,r);return n.ref=r.__ref(t,n.ref),n}function mn(t,e){return me(t)?e.__parseExpression(t):de(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>mn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=mn(i,e),r},{}):t}function Qy(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function Xy(t){return Ey(t.value)?t:Sy(t.value)?{type:"JSFunction",value:`(...args) => (() => {
|
|
66
|
+
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,t,(s=e==null?void 0:e.__self)!=null?s:e),Ry(o),n)throw o}}function pe(t,e,r=!1,n=!1,i=!1){var o;const s=At(t,e,r,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",t,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${t.value}" not a function`);return s}function me(t){return t&&t.type==="JSExpression"}function de(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const Ay={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},xy=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Ay,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:r,router:n,request:i}=e;this.mode=r,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(r,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[r+"."+i])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[r+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(xy,this)}isAuthPath(e){const{auth:r,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof r=="string"){const i=r.split("#")[1]||r;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:r}=this.options;if(!e)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=r?`${e}${n}`:e}setData(e){const{privateKey:r}=this.options;if(Array.isArray(e)&&r){const n=e.map(i=>zi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?zi(e,r):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:r}=this.options,n=Lr.get(e,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===Xt){const r=e.params.id;return r&&this.can(r)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((r,n,i)=>this.guard(r,i))}guard(e,r){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return r();if(this.isLogined()){if(this.hasRoutePermission(e))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),r(!1)):Me(i)?r(i):r(!1)}}r(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>e.fullPath.startsWith(n)):r(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return e.status===r||((i=e.data)==null?void 0:i[n])===r}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield ir(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),e.useResponse(r=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Oy(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=t;let l=null;return{request:Mn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function $y(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,re(V({},t.jsonpOptions),{query:i}));{const i=t.headers?At(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:re(V({},t.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function Dy(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function Cy(t=[],e=[],r){const n={};for(const i of t){const s=$y(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=Dy(i,r);return n}function By(){return U(this,arguments,function*(t=[],e=window){const r=Rt(e);r&&(ga(e),t.forEach(n=>jy(r,n)))})}function Py(t,e=window){const r=de(t.mockTemplate)&&t.mockTemplate.value?pe(t.mockTemplate,{},!0):void 0,n=Rt(e);return(...i)=>U(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function jy(t,e){if(!e.mock)return;const{url:r,mockTemplate:n,method:i="get"}=e;if(r&&n)try{const s=Tt(r)?new URL(r).pathname:r,o=Cn(`(.*)${s}(.*)`),u=Hg(s,{decode:decodeURIComponent}),l=At(n,{},!0);t.mock(o,i.toLowerCase(),a=>{var d;const c=Qt.parse(a.url)||{},f=a.body instanceof FormData?Um(a.body):a.body,h=Tt(a.url)?new URL(a.url).pathname:a.url.split("?")[0],p=(d=u(h))==null?void 0:d.params;Object.assign(a,{data:f,params:p,query:c});try{return t.mock(l(a))}catch(g){return console.warn("[mockApi]",o,a,g),null}})}catch(s){console.warn("mockApi",s)}}function ga(t=window){const e=Rt(t);e&&(e._mocked={})}class Ny{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=e;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,r=or){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){if(!this.__instance)return;const e=this.__instance;gs.forEach(r=>{var n;this[r]=e[r]||((n=e._)==null?void 0:n[r.replace("$","")])||null})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return At({type:i,value:s},this)}else return At(e,this)}__ref(e=null,r){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof r=="string"&&(delete this.$refs[r],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof r=="function"?r(i):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,r,n){const i=e[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const r=V(V({},this.context),e),n=re(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(t){var f,p;const{Vue:e=or,mode:r=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=t,u=e.computed(()=>t.dsl),l={$components:n,$libs:i,$apis:s},a=new Ny({mode:r,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},My((f=u.value.props)!=null?f:[],a)),setup(){return U(this,arguments,function*(d={}){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(t.window||window,u.value.id,u.value.css||"",!0),a.state=Fy(e,(_=u.value.state)!=null?_:{},a);const g=Ly(e,(w=u.value.computed)!=null?w:{},a),v=Uy((y=u.value.methods)!=null?y:{},a),E=Hy(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=Vy(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),ky(e,(T=u.value.watch)!=null?T:[],a),V(V(V({vtj:a,state:a.state},d),g),v)})},emits:Iy(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},qy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function Iy(t=[]){return t.map(e=>Me(e)?e:e.name)}function My(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return t.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Fy(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=r.__parseExpression(s):de(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Ly(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=t.computed(r.__parseFunction(s)),n),{})}function Uy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function Hy(t,e=[],r){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?r.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=t.inject(u,l),n},{})}function Vy(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=Py(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return r},{})}function ky(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function qy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>{const s=e.__parseFunction(i);return r[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),r},{})}class zy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,r){this.__props[e]=r}getProps(e){return this.__props[e]}loadProps(e,r){return(e?this.getProps(e):null)||(e&&this.setProps(e,r),r)}setEvents(e,r){}getEvents(e){return this.__events[e]}loadEvents(e,r){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,r),r)}setNode(e,r){this.__nodes[e]=r}getNode(e){return this.__nodes[e]}loadNode(e,r){return(e?this.getNode(e):null)||(e&&this.setNode(e,r),r)}isEqual(e,r){return vd(e,r)}clear(){this.__props={},this.__events={},this.__nodes={}}}const qt=new zy,Wy=new Gg;let qr=[],Xe={},zt={};const Ky=(t,e)=>e;function va(r){return U(this,arguments,function*(t,e=window){const{urls:n=[],library:i}=t,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(t){const{getDsl:e,getDslByUrl:r,options:n}=t;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield Wy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(t)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield r(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(t)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(t,e,r=or,n=Ky,i=[],s=!1,o=0){var _;if(!t||!t.name||t.invisible)return null;const u=(_=r.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=t,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!Gy(c,e))return t0(t,e,r,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(t.name==="component")return Yy(w,(N=t.props)==null?void 0:N.is);if(t.name==="slot")return t.name;const D=n(`${t.id}_${y}`,t.name,t.from,r);return Me(D)?_y(D)||wy(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Zy(l,(q=t.props)!=null?q:{},w),S=e0(r,t.id,(z=t.events)!=null?z:{},w);if(t.name==="slot")return r0(r,t,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},i0(d,w))),E&&Object.assign(L,s0(E,w)),g.forEach(D=>{la.includes(t.name)?Object.assign(L,o0(D,w)):Object.assign(L,a0(r,D,w))});const A=u0(r,(C=t.children)!=null?C:[],w,n,t),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,j=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},j),I),L),S);qt.isEqual($,qt.getNode(B))||qt.setNode(B,$);let H=r.createVNode(O,qt.getNode(B)||$||{},A);const F=u?Jy(u,m,w):[];return F.length&&(H=r.withDirectives(H,F)),H};return p?f0(p,b,e):b(e,o)}function Jy(t,e,r){const n=t.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ma(t=[]){const e=t.find(c=>Ee(c.name)==="vIf"),r=t.find(c=>Ee(c.name)==="vElseIf"),n=t.find(c=>Ee(c.name)==="vElse"),i=t.find(c=>Ee(c.name)==="vFor"),s=t.find(c=>Ee(c.name)==="vShow"),o=t.find(c=>Ee(c.name)==="vBind"),u=t.find(c=>Ee(c.name)==="vHtml"),l=t.filter(c=>Ee(c.name)==="vModel"),a=t.filter(c=>!oy.includes(Ee(c.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Gy(t,e){return!!e.__parseExpression(t.value)}function Yy(t,e){return e?me(e)?t.__parseExpression(e):e:"div"}function Zy(t,e,r){const n=mn(e,r);return n.ref=r.__ref(t,n.ref),n}function mn(t,e){return me(t)?e.__parseExpression(t):de(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>mn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=mn(i,e),r},{}):t}function Qy(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function Xy(t){return Ey(t.value)?t:Sy(t.value)?{type:"JSFunction",value:`(...args) => (() => {
|
|
67
67
|
return (($event) => {
|
|
68
68
|
${t.value}
|
|
69
69
|
}).apply(this, args);
|
|
@@ -75,6 +75,6 @@ ${u}
|
|
|
75
75
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
76
76
|
* @name @vtj/uni
|
|
77
77
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
78
|
-
* @version 0.
|
|
78
|
+
* @version 0.17.0
|
|
79
79
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
80
80
|
*/const $0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",D0="VTJ",C0="__UNI__1FC118B",B0="VTJ移动跨端项目",P0="1.0.0",j0="100",N0=!1,I0={},M0={enable:!1},F0="3",L0={name:D0,appid:C0,description:B0,versionName:P0,versionCode:j0,transformPx:N0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:I0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:M0,vueVersion:F0},U0=[],H0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},V0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},k0={pages:U0,globalStyle:H0,easycom:V0};function q0(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},t),{manifestJson:Object.assign({},L0,e),pagesJson:Object.assign({},k0,r,{pages:i})})}const _n={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function wa(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)_n[n]&&(e[_n[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function z0(t){const e={};for(const r in t)_n[r]||(e[r]=t[r]);return e}function W0(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function K0(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function J0(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function G0(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Y0(t){var u;const e=G0(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function Z0(t,e=window){var h,p,d,g;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:o}=K0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Y0(t),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:W0(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:J0(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([v,E])=>{e[v]=E})}const Q0="4.76";function X0(t,e=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},z0(a)),{navigationBar:wa(a),isNVue:!1}),compilerVersion:Q0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function e1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function t1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=t,{PageComponent:u,setupPage:l,getApp:a}=e;return{mpType:"page",setup(){return U(this,null,function*(){var g,v;const f=((v=(g=a())==null?void 0:g.$route)==null?void 0:v.query)||{},{loader:h,component:p}=r,d=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function r1(t,e,r){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=t.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},wa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function n1(t,e,r,n,i=window){const s=r.map((o,u)=>{const l=r1(n,o,u),a=t1(t,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return t.h(t.Suspense,[t.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function i1(t,e,r=window){yr(r,String(t),e)}function s1(t,e){e&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=e[r];t.component(r,n)})}function o1(t){const e=q0(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;Z0(e,l),X0(e,l),e1(i,l),n1(r,i,s,o,l),i1(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(s1,i),h.use(c),h}function a1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{$0.includes(n)&&i&&(r[n]=e(i))}),r}function ms(t,e){return()=>U(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function u1(n){return U(this,arguments,function*(t,e=!1,r=vs){var u,l,a;const i=((u=t.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=t.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ms(t,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===vs?"/":r;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=t.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ms(t,f.id),style:{navigationStyle:"custom"}})}return s})}function c1(){var t;return(t=window.uni)!=null&&t.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Ea(t,e="",r="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:t,showCancel:!1}):(window.alert(t),!0)})}function l1(t=X.Runtime){let e={};t===X.Runtime?e=Object.assign({}):e=Object.assign({});let r={};for(const[n,i]of Object.entries(e))r[n]=()=>Promise.resolve(i);return r}const f1=Oy({loading:c1,notify:Ea}),Sa=new O0(A0(Ea)),h1=l1(),{provider:p1,onReady:d1}=w0({nodeEnv:"production",mode:X.Runtime,modules:h1,materialPath:"../",adapter:f1,service:Sa,dependencies:{Vue:()=>kn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(t=>t.W),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>kn(()=>import("./vue-router-BaL-Hp_b.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),g1=t=>U(null,null,function*(){const e=(yield Sa.getExtension().catch(()=>null))||{},r=top||window,n=yield S0(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=t.project;if(!o)return;const u=o.uniConfig||{},l=a1(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield u1(t,!0),p=o1({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(t),n&&p.use(n,t),p.mount(document.body)});d1(()=>g1(p1));
|